(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"0481":function(e,t,n){"use strict";var r=n("23e7"),i=n("a2bf"),o=n("7b0b"),a=n("50c4"),s=n("a691"),c=n("65f0");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t.length),r=c(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},"0538":function(e,t,n){"use strict";var r=n("1c0b"),i=n("861d"),o=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:"top center 0",n=arguments.length>2?arguments[2]:void 0;return{name:e,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:n},origin:{type:String,default:t}},render:function(t,n){var o="transition".concat(n.props.group?"-group":""),a={props:{name:e,mode:n.props.mode},on:{beforeEnter:function(e){e.style.transformOrigin=n.props.origin,e.style.webkitTransformOrigin=n.props.origin}}};return n.props.leaveAbsolute&&(a.on.leave=i(a.on.leave,(function(e){var t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth,i=e.offsetHeight;e._transitionInitialStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height},e.style.position="absolute",e.style.top=t+"px",e.style.left=n+"px",e.style.width=r+"px",e.style.height=i+"px"})),a.on.afterLeave=i(a.on.afterLeave,(function(e){if(e&&e._transitionInitialStyles){var t=e._transitionInitialStyles,n=t.position,r=t.top,i=t.left,o=t.width,a=t.height;delete e._transitionInitialStyles,e.style.position=n||"",e.style.top=r||"",e.style.left=i||"",e.style.width=o||"",e.style.height=a||""}}))),n.props.hideOnLeave&&(a.on.leave=i(a.on.leave,(function(e){e.style.setProperty("display","none","important")}))),t(o,Object(r["a"])(n.data,a),n.children)}}}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in-out";return{name:e,functional:!0,props:{mode:{type:String,default:n}},render:function(n,i){return n("transition",Object(r["a"])(i.data,{props:{name:e},on:t}),i.children)}}}var s=n("ade3"),c=n("80d2"),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?"width":"height",r="offset".concat(Object(c["A"])(n));return{beforeEnter:function(e){e._parent=e.parentNode,e._initialStyle=Object(s["a"])({transition:e.style.transition,overflow:e.style.overflow},n,e.style[n])},enter:function(t){var i=t._initialStyle;t.style.setProperty("transition","none","important"),t.style.overflow="hidden";var o="".concat(t[r],"px");t.style[n]="0",t.offsetHeight,t.style.transition=i.transition,e&&t._parent&&t._parent.classList.add(e),requestAnimationFrame((function(){t.style[n]=o}))},afterEnter:o,enterCancelled:o,leave:function(e){e._initialStyle=Object(s["a"])({transition:"",overflow:e.style.overflow},n,e.style[n]),e.style.overflow="hidden",e.style[n]="".concat(e[r],"px"),e.offsetHeight,requestAnimationFrame((function(){return e.style[n]="0"}))},afterLeave:i,leaveCancelled:i};function i(t){e&&t._parent&&t._parent.classList.remove(e),o(t)}function o(e){var t=e._initialStyle[n];e.style.overflow=e._initialStyle.overflow,null!=t&&(e.style[n]=t),delete e._initialStyle}},l=(o("carousel-transition"),o("carousel-reverse-transition"),o("tab-transition"),o("tab-reverse-transition"),o("menu-transition"),o("fab-transition","center center","out-in"),o("dialog-transition"),o("dialog-bottom-transition"),o("dialog-top-transition"),o("fade-transition")),h=(o("scale-transition"),o("scroll-x-transition"),o("scroll-x-reverse-transition"),o("scroll-y-transition"),o("scroll-y-reverse-transition"),o("slide-x-transition")),d=(o("slide-x-reverse-transition"),o("slide-y-transition"),o("slide-y-reverse-transition"),a("expand-transition",u())),p=a("expand-x-transition",u("",!0))},"07ac":function(e,t,n){var r=n("23e7"),i=n("6f53").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},"0bc6":function(e,t,n){},"0cb2":function(e,t,n){var r=n("7b0b"),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,c,u,l){var h=n+e.length,d=c.length,p=s;return void 0!==u&&(u=r(u),p=a),o.call(l,p,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(h);case"<":a=u[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>d){var l=i(s/10);return 0===l?r:l<=d?void 0===c[l-1]?o.charAt(1):c[l-1]+o.charAt(1):r}a=c[s-1]}return void 0===a?"":a}))}},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("c430"),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0f98":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return f}));var r=n("7de8"),i=n("d6d0"),o=n("cb2c"),a=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])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),s([Object(r["m"])("0")],t.prototype,"x",void 0),s([Object(r["m"])("0")],t.prototype,"y",void 0),s([Object(r["m"])(null)],t.prototype,"content",void 0),s([Object(r["m"])("Center")],t.prototype,"horizontalAlignment",void 0),s([Object(r["m"])("Pixel")],t.prototype,"coordinateUnits",void 0),s([Object(r["m"])("Chart")],t.prototype,"region",void 0),s([Object(r["m"])("Middle")],t.prototype,"verticalAlignment",void 0),s([Object(r["m"])(null)],t.prototype,"xAxisName",void 0),s([Object(r["m"])(null)],t.prototype,"yAxisName",void 0),s([Object(r["m"])(null)],t.prototype,"description",void 0),t}(r["d"]),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),s([Object(r["m"])("")],t.prototype,"color",void 0),s([Object(r["m"])(1)],t.prototype,"width",void 0),s([Object(r["m"])("Rectangle")],t.prototype,"type",void 0),t}(r["d"]),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),s([Object(r["m"])(null)],t.prototype,"start",void 0),s([Object(r["m"])(null)],t.prototype,"end",void 0),s([Object(r["m"])("")],t.prototype,"text",void 0),s([Object(r["m"])(null)],t.prototype,"maximumTextWidth",void 0),s([Object(r["m"])(null)],t.prototype,"customAttributes",void 0),s([Object(r["m"])("")],t.prototype,"type",void 0),t}(r["d"]),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),s([Object(r["m"])(!0)],t.prototype,"visible",void 0),s([Object(r["m"])(!1)],t.prototype,"startFromAxis",void 0),s([Object(r["m"])(null)],t.prototype,"start",void 0),s([Object(r["m"])(null)],t.prototype,"end",void 0),s([Object(r["m"])(null)],t.prototype,"size",void 0),s([Object(r["m"])("#808080")],t.prototype,"color",void 0),s([Object(r["m"])(null)],t.prototype,"dashArray",void 0),s([Object(r["m"])("Auto")],t.prototype,"sizeType",void 0),s([Object(r["m"])(!1)],t.prototype,"isRepeat",void 0),s([Object(r["m"])(null)],t.prototype,"repeatEvery",void 0),s([Object(r["m"])(null)],t.prototype,"repeatUntil",void 0),s([Object(r["m"])(!1)],t.prototype,"isSegmented",void 0),s([Object(r["m"])(null)],t.prototype,"segmentStart",void 0),s([Object(r["m"])(null)],t.prototype,"segmentEnd",void 0),s([Object(r["m"])(null)],t.prototype,"segmentAxisName",void 0),s([Object(r["f"])({color:"transparent",width:1},o["b"])],t.prototype,"border",void 0),s([Object(r["m"])("")],t.prototype,"text",void 0),s([Object(r["m"])(null)],t.prototype,"rotation",void 0),s([Object(r["m"])("Middle")],t.prototype,"horizontalAlignment",void 0),s([Object(r["m"])("Middle")],t.prototype,"verticalAlignment",void 0),s([Object(r["f"])(i["a"].stripLineLabelFont,o["i"])],t.prototype,"textStyle",void 0),s([Object(r["m"])("Behind")],t.prototype,"zIndex",void 0),s([Object(r["m"])(1)],t.prototype,"opacity",void 0),t}(r["d"]),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),s([Object(r["m"])("Center")],t.prototype,"alignment",void 0),s([Object(r["m"])("Wrap")],t.prototype,"overflow",void 0),s([Object(r["f"])(i["a"].axisLabelFont,o["i"])],t.prototype,"textStyle",void 0),s([Object(r["f"])({color:null,width:1,type:"Rectangle"},u)],t.prototype,"border",void 0),s([Object(r["e"])([],l)],t.prototype,"categories",void 0),t}(r["d"]),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),s([Object(r["m"])(null)],t.prototype,"minimum",void 0),s([Object(r["m"])(null)],t.prototype,"maximum",void 0),t}(r["d"]),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),s([Object(r["m"])(!1)],t.prototype,"enable",void 0),s([Object(r["m"])(null)],t.prototype,"pointsLength",void 0),s([Object(r["f"])({},p)],t.prototype,"range",void 0),t}(r["d"])},"107c":function(e,t,n){var r=n("d039");e.exports=r((function(){var e=RegExp("(?b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},"10d2":function(e,t,n){"use strict";var r=n("8dd9");t["a"]=r["a"]},1148:function(e,t,n){"use strict";var r=n("a691"),i=n("1d80");e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},1276:function(e,t,n){"use strict";var r=n("d784"),i=n("44e7"),o=n("825a"),a=n("1d80"),s=n("4840"),c=n("8aa5"),u=n("50c4"),l=n("14c3"),h=n("9263"),d=n("9f7f"),p=n("d039"),f=d.UNSUPPORTED_Y,g=[].push,m=Math.min,y=4294967295,v=!p((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));r("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?y:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);var s,c,u,l=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,f=new RegExp(e.source,d+"g");while(s=h.call(f,r)){if(c=f.lastIndex,c>p&&(l.push(r.slice(p,s.index)),s.length>1&&s.index=o))break;f.lastIndex===s.index&&f.lastIndex++}return p===r.length?!u&&f.test("")||l.push(""):l.push(r.slice(p)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,this,e,i,r!==t);if(a.done)return a.value;var h=o(this),d=String(e),p=s(h,RegExp),g=h.unicode,v=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(f?"g":"y"),b=new p(f?"^(?:"+h.source+")":h,v),M=void 0===i?y:i>>>0;if(0===M)return[];if(0===d.length)return null===l(b,d)?[d]:[];var w=0,S=0,O=[];while(S=0||(i[n]=e[n]);return i}function p(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return t=e[Symbol.iterator](),t.next.bind(t)}Object.defineProperty(t,"__esModule",{value:!0});var m=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(h(Error)),y=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return o(t,e),t}(m),v=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return o(t,e),t}(m),b=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return o(t,e),t}(m),M=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(m),w=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return o(t,e),t}(m),S=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(m),O=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return o(t,e),t}(m),C="numeric",x="short",T="long",I={year:C,month:C,day:C},N={year:C,month:x,day:C},j={year:C,month:x,day:C,weekday:x},A={year:C,month:T,day:C},k={year:C,month:T,day:C,weekday:T},D={hour:C,minute:C},E={hour:C,minute:C,second:C},L={hour:C,minute:C,second:C,timeZoneName:x},z={hour:C,minute:C,second:C,timeZoneName:T},_={hour:C,minute:C,hour12:!1},P={hour:C,minute:C,second:C,hour12:!1},R={hour:C,minute:C,second:C,hour12:!1,timeZoneName:x},U={hour:C,minute:C,second:C,hour12:!1,timeZoneName:T},B={year:C,month:C,day:C,hour:C,minute:C},F={year:C,month:C,day:C,hour:C,minute:C,second:C},Y={year:C,month:x,day:C,hour:C,minute:C},V={year:C,month:x,day:C,hour:C,minute:C,second:C},H={year:C,month:x,day:C,weekday:x,hour:C,minute:C},Q={year:C,month:T,day:C,hour:C,minute:C,timeZoneName:x},q={year:C,month:T,day:C,hour:C,minute:C,second:C,timeZoneName:x},$={year:C,month:T,day:C,weekday:T,hour:C,minute:C,timeZoneName:T},W={year:C,month:T,day:C,weekday:T,hour:C,minute:C,second:C,timeZoneName:T};function G(e){return"undefined"===typeof e}function K(e){return"number"===typeof e}function Z(e){return"number"===typeof e&&e%1===0}function J(e){return"string"===typeof e}function X(e){return"[object Date]"===Object.prototype.toString.call(e)}function ee(){try{return"undefined"!==typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function te(){return!G(Intl.DateTimeFormat.prototype.formatToParts)}function ne(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function re(e){return Array.isArray(e)?e:[e]}function ie(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function oe(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}function ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function se(e,t,n){return Z(e)&&e>=t&&e<=n}function ce(e,t){return e-t*Math.floor(e/t)}function ue(e,t){void 0===t&&(t=2);var n,r=e<0?"-":"",i=r?-1*e:e;return n=i.toString().length=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function ye(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function ve(e){return e>99?e:e>60?1900+e:2e3+e}function be(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);var a=Object.assign({timeZoneName:t},o),s=ee();if(s&&te()){var c=new Intl.DateTimeFormat(n,a).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:null}if(s){var u=new Intl.DateTimeFormat(n,o).format(i),l=new Intl.DateTimeFormat(n,a).format(i),h=l.substring(u.length),d=h.replace(/^[, \u200e]+/,"");return d}return null}function Me(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return 60*n+i}function we(e){var t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new S("Invalid unit value "+e);return t}function Se(e,t,n){var r={};for(var i in e)if(ae(e,i)){if(n.indexOf(i)>=0)continue;var o=e[i];if(void 0===o||null===o)continue;r[t(i)]=we(o)}return r}function Oe(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+ue(n,2)+":"+ue(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+ue(n,2)+ue(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function Ce(e){return oe(e,["hour","minute","second","millisecond"])}var xe=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function Te(e){return JSON.stringify(e,Object.keys(e).sort())}var Ie=["January","February","March","April","May","June","July","August","September","October","November","December"],Ne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],je=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ae(e){switch(e){case"narrow":return[].concat(je);case"short":return[].concat(Ne);case"long":return[].concat(Ie);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var ke=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],De=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ee=["M","T","W","T","F","S","S"];function Le(e){switch(e){case"narrow":return[].concat(Ee);case"short":return[].concat(De);case"long":return[].concat(ke);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var ze=["AM","PM"],_e=["Before Christ","Anno Domini"],Pe=["BC","AD"],Re=["B","A"];function Ue(e){switch(e){case"narrow":return[].concat(Re);case"short":return[].concat(Pe);case"long":return[].concat(_e);default:return null}}function Be(e){return ze[e.hour<12?0:1]}function Fe(e,t){return Le(t)[e.weekday-1]}function Ye(e,t){return Ae(t)[e.month-1]}function Ve(e,t){return Ue(t)[e.year<0?0:1]}function He(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var s=Object.is(t,-0)||t<0,c=Math.abs(t),u=1===c,l=i[e],h=r?u?l[1]:l[2]||l[1]:u?i[e][0]:e;return s?c+" "+h+" ago":"in "+c+" "+h}function Qe(e){var t=oe(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]),n=Te(t),r="EEEE, LLLL d, yyyy, h:mm a";switch(n){case Te(I):return"M/d/yyyy";case Te(N):return"LLL d, yyyy";case Te(j):return"EEE, LLL d, yyyy";case Te(A):return"LLLL d, yyyy";case Te(k):return"EEEE, LLLL d, yyyy";case Te(D):return"h:mm a";case Te(E):return"h:mm:ss a";case Te(L):return"h:mm a";case Te(z):return"h:mm a";case Te(_):return"HH:mm";case Te(P):return"HH:mm:ss";case Te(R):return"HH:mm";case Te(U):return"HH:mm";case Te(B):return"M/d/yyyy, h:mm a";case Te(Y):return"LLL d, yyyy, h:mm a";case Te(Q):return"LLLL d, yyyy, h:mm a";case Te($):return r;case Te(F):return"M/d/yyyy, h:mm:ss a";case Te(V):return"LLL d, yyyy, h:mm:ss a";case Te(H):return"EEE, d LLL yyyy, h:mm a";case Te(q):return"LLLL d, yyyy, h:mm:ss a";case Te(W):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return r}}function qe(e,t){for(var n,r="",i=g(e);!(n=i()).done;){var o=n.value;o.literal?r+=o.val:r+=t(o.val)}return r}var $e={D:I,DD:N,DDD:A,DDDD:k,t:D,tt:E,ttt:L,tttt:z,T:_,TT:P,TTT:R,TTTT:U,f:B,ff:Y,fff:Q,ffff:$,F:F,FF:V,FFF:q,FFFF:W},We=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&i.push({literal:!1,val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return $e[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());var n=this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t));return n.format()},t.formatDateTime=function(e,t){void 0===t&&(t={});var n=this.loc.dtFormatter(e,Object.assign({},this.opts,t));return n.format()},t.formatDateTimeParts=function(e,t){void 0===t&&(t={});var n=this.loc.dtFormatter(e,Object.assign({},this.opts,t));return n.formatToParts()},t.resolvedOptions=function(e,t){void 0===t&&(t={});var n=this.loc.dtFormatter(e,Object.assign({},this.opts,t));return n.resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return ue(e,t);var n=Object.assign({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&te(),a=function(e,n){return r.loc.extract(t,e,n)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},c=function(){return i?Be(t):a({hour:"numeric",hour12:!0},"dayperiod")},u=function(e,n){return i?Ye(t,e):a(n?{month:e}:{month:e,day:"numeric"},"month")},l=function(e,n){return i?Fe(t,e):a(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},h=function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n},d=function(e){return i?Ve(t,e):a({era:e},"era")},p=function(e){switch(e){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12===0?12:t.hour%12);case"hh":return r.num(t.hour%12===0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return s({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return o?a({day:"numeric"},"day"):r.num(t.day);case"dd":return o?a({day:"2-digit"},"day"):r.num(t.day,2);case"c":return r.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return r.num(t.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return o?a({month:"numeric"},"month"):r.num(t.month);case"MM":return o?a({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return o?a({year:"numeric"},"year"):r.num(t.year);case"yy":return o?a({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):r.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return h(e)}};return qe(e.parseFormat(n),p)},t.formatDurationFromString=function(t,n){var r=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=function(e){return function(t){var n=i(t);return n?r.num(e.get(n),t.length):t}},a=e.parseFormat(n),s=a.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),c=t.shiftTo.apply(t,s.map(i).filter((function(e){return e})));return qe(a,o(c))},e}(),Ge=function(){function e(e,t){this.reason=e,this.explanation=t}var t=e.prototype;return t.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Ke=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new O},t.formatOffset=function(e,t){throw new O},t.offset=function(e){throw new O},t.equals=function(e){throw new O},i(e,[{key:"type",get:function(){throw new O}},{key:"name",get:function(){throw new O}},{key:"universal",get:function(){throw new O}},{key:"isValid",get:function(){throw new O}}]),e}(),Ze=null,Je=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.offsetName=function(e,t){var n=t.format,r=t.locale;return be(e,n,r)},n.formatOffset=function(e,t){return Oe(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},i(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return ee()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ze&&(Ze=new t),Ze}}]),t}(Ke),Xe=RegExp("^"+xe.source+"$"),et={};function tt(e){return et[e]||(et[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),et[e]}var nt={year:0,month:1,day:2,hour:3,minute:4,second:5};function rt(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],u=r[6];return[a,i,o,s,c,u]}function it(e,t){for(var n=e.formatToParts(t),r=[],i=0;i=0?p:1e3+p,(h-d)/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},i(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Ke),st=null,ct=function(e){function t(t){var n;return n=e.call(this)||this,n.fixed=t,n}o(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(Me(n[1],n[2]))}return null},i(t,null,[{key:"utcInstance",get:function(){return null===st&&(st=new t(0)),st}}]);var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return Oe(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},i(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+Oe(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Ke),ut=function(e){function t(t){var n;return n=e.call(this)||this,n.zoneName=t,n}o(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},i(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Ke);function lt(e,t){var n;if(G(e)||null===e)return t;if(e instanceof Ke)return e;if(J(e)){var r=e.toLowerCase();return"local"===r?t:"utc"===r||"gmt"===r?ct.utcInstance:null!=(n=at.parseGMTOffset(e))?ct.instance(n):at.isValidSpecifier(r)?at.create(e):ct.parseSpecifier(r)||new ut(e)}return K(e)?ct.instance(e):"object"===typeof e&&e.offset&&"number"===typeof e.offset?e:new ut(e)}var ht=function(){return Date.now()},dt=null,pt=null,ft=null,gt=null,mt=!1,yt=function(){function e(){}return e.resetCaches=function(){zt.resetCache(),at.resetCache()},i(e,null,[{key:"now",get:function(){return ht},set:function(e){ht=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){dt=e?lt(e):null}},{key:"defaultZone",get:function(){return dt||Je.instance}},{key:"defaultLocale",get:function(){return pt},set:function(e){pt=e}},{key:"defaultNumberingSystem",get:function(){return ft},set:function(e){ft=e}},{key:"defaultOutputCalendar",get:function(){return gt},set:function(e){gt=e}},{key:"throwOnInvalid",get:function(){return mt},set:function(e){mt=e}}]),e}(),vt={};function bt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=vt[n];return r||(r=new Intl.DateTimeFormat(e,t),vt[n]=r),r}var Mt={};function wt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=Mt[n];return r||(r=new Intl.NumberFormat(e,t),Mt[n]=r),r}var St={};function Ot(e,t){void 0===t&&(t={});var n=t,r=(n.base,d(n,["base"])),i=JSON.stringify([e,r]),o=St[i];return o||(o=new Intl.RelativeTimeFormat(e,t),St[i]=o),o}var Ct=null;function xt(){if(Ct)return Ct;if(ee()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return Ct=e&&"und"!==e?e:"en-US",Ct}return Ct="en-US",Ct}function Tt(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=bt(e).resolvedOptions()}catch(s){n=bt(r).resolvedOptions()}var i=n,o=i.numberingSystem,a=i.calendar;return[r,o,a]}function It(e,t,n){return ee()?n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e:[]}function Nt(e){for(var t=[],n=1;n<=12;n++){var r=di.utc(2016,n,1);t.push(e(r))}return t}function jt(e){for(var t=[],n=1;n<=7;n++){var r=di.utc(2016,11,13+n);t.push(e(r))}return t}function At(e,t,n,r,i){var o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):i(t)}function kt(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||ee()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)}var Dt=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&ee()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=wt(e,r)}}var t=e.prototype;return t.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}var n=this.floor?Math.floor(e):de(e,3);return ue(n,this.padTo)},e}(),Et=function(){function e(e,t,n){var r;if(this.opts=n,this.hasIntl=ee(),e.zone.universal&&this.hasIntl){var i=e.offset/60*-1,o=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,a=at.isValidZone(o);0!==e.offset&&a?(r=o,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:di.fromMillis(e.ts+60*e.offset*1e3))}else"local"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);if(this.hasIntl){var s=Object.assign({},this.opts);r&&(s.timeZone=r),this.dtf=bt(t,s)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=Qe(this.opts),t=zt.create("en-US");return We.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&te()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),Lt=function(){function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&ne()&&(this.rtf=Ot(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):He(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),zt=function(){function e(e,t,n,r){var i=Tt(e),o=i[0],a=i[1],s=i[2];this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.intl=It(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var o=t||yt.defaultLocale,a=o||(i?"en-US":xt()),s=n||yt.defaultNumberingSystem,c=r||yt.defaultOutputCalendar;return new e(a,s,c,o)},e.resetCache=function(){Ct=null,vt={},Mt={},St={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,o=n.outputCalendar;return e.create(r,i,o)};var t=e.prototype;return t.listingMode=function(e){void 0===e&&(e=!0);var t=ee(),n=t&&te(),r=this.isEnglish(),i=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return n||r&&i||e?!n||r&&i?"en":"intl":"error"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),At(this,e,n,Ae,(function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=Nt((function(e){return r.extract(e,n,"month")}))),r.monthsCache[i][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),At(this,e,n,Le,(function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=jt((function(e){return r.extract(e,n,"weekday")}))),r.weekdaysCache[i][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),At(this,void 0,e,(function(){return ze}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hour12:!0};t.meridiemCache=[di.utc(2016,11,13,9),di.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),At(this,e,t,Ue,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[di.utc(-40,1,1),di.utc(2017,1,1)].map((function(e){return n.extract(e,t,"era")}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t),i=r.formatToParts(),o=i.find((function(e){return e.type.toLowerCase()===n}));return o?o.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new Dt(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new Et(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new Lt(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||ee()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(e,[{key:"fastNumbers",get:function(){return null==this.fastNumbersCached&&(this.fastNumbersCached=kt(this)),this.fastNumbersCached}}]),e}();function _t(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r3?ke.indexOf(e)+1:De.indexOf(e)+1),s}var un=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ln(e){var t,n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],c=e[7],u=e[8],l=e[9],h=e[10],d=e[11],p=cn(n,o,i,r,a,s,c);return t=u?sn[u]:l?0:Me(h,d),[p,new ct(t)]}function hn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var dn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,pn=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function gn(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],s=e[7],c=cn(t,i,r,n,o,a,s);return[c,ct.utcInstance]}function mn(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6],s=e[7],c=cn(t,s,n,r,i,o,a);return[c,ct.utcInstance]}var yn=_t(Ht,Vt),vn=_t(Qt,Vt),bn=_t(qt,Vt),Mn=_t(Yt),wn=Pt(Xt,en,tn),Sn=Pt($t,en,tn),On=Pt(Wt,en,tn),Cn=Pt(en,tn);function xn(e){return Rt(e,[yn,wn],[vn,Sn],[bn,On],[Mn,Cn])}function Tn(e){return Rt(hn(e),[un,ln])}function In(e){return Rt(e,[dn,gn],[pn,gn],[fn,mn])}function Nn(e){return Rt(e,[on,an])}var jn=Pt(en);function An(e){return Rt(e,[rn,jn])}var kn=_t(Gt,Zt),Dn=_t(Kt),En=Pt(Xt,en,tn,nn),Ln=Pt(en,tn,nn);function zn(e){return Rt(e,[kn,En],[Dn,Ln])}var _n="Invalid Duration",Pn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Rn=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Pn),Un=365.2425,Bn=30.436875,Fn=Object.assign({years:{quarters:4,months:12,weeks:Un/7,days:Un,hours:24*Un,minutes:24*Un*60,seconds:24*Un*60*60,milliseconds:24*Un*60*60*1e3},quarters:{months:3,weeks:Un/28,days:Un/4,hours:24*Un/4,minutes:24*Un*60/4,seconds:24*Un*60*60/4,milliseconds:24*Un*60*60*1e3/4},months:{weeks:Bn/7,days:Bn,hours:24*Bn,minutes:24*Bn*60,seconds:24*Bn*60*60,milliseconds:24*Bn*60*60*1e3}},Pn),Yn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Vn=Yn.slice(0).reverse();function Hn(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new Wn(r)}function Qn(e){return e<0?Math.floor(e):Math.ceil(e)}function qn(e,t,n,r,i){var o=e[i][n],a=t[n]/o,s=Math.sign(a)===Math.sign(r[i]),c=!s&&0!==r[i]&&Math.abs(a)<=1?Qn(a):Math.trunc(a);r[i]+=c,t[n]-=c*o}function $n(e,t){Vn.reduce((function(n,r){return G(t[r])?n:(n&&qn(e,t,n,t,r),r)}),null)}var Wn=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||zt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Fn:Rn,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject(Object.assign({milliseconds:t},n))},e.fromObject=function(t){if(null==t||"object"!==typeof t)throw new S("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:Se(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:zt.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,n){var r=Nn(t),i=r[0];if(i){var o=Object.assign(i,n);return e.fromObject(o)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,n){var r=An(t),i=r[0];if(i){var o=Object.assign(i,n);return e.fromObject(o)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new S("need to specify a reason the Duration is invalid");var r=t instanceof Ge?t:new Ge(t,n);if(yt.throwOnInvalid)throw new b(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new w(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?We.create(this.loc,n).formatDurationFromString(this,e):_n},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=de(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var i=n.toFormat(r);return e.includePrefix&&(i="T"+i),i},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,n=Gn(e),r={},i=g(Yn);!(t=i()).done;){var o=t.value;(ae(n.values,o)||ae(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return Hn(this,{values:r},!0)},t.minus=function(e){if(!this.isValid)return this;var t=Gn(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n=0){i=l;var h=0;for(var d in s)h+=this.matrix[d][l]*s[d],s[d]=0;K(c[l])&&(h+=c[l]);var p=Math.trunc(h);for(var f in a[l]=p,s[l]=h-p,c)Yn.indexOf(f)>Yn.indexOf(l)&&qn(this.matrix,c,f,a,l)}else K(c[l])&&(s[l]=c[l])}for(var m in s)0!==s[m]&&(a[i]+=m===i?s[m]:s[m]/this.matrix[i][m]);return Hn(this,{values:a},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i+this.e?this.e:u;a.push(e.fromDateTimes(s,l)),s=l,c+=1}return a},t.splitBy=function(t){var n=Gn(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];var r,i=this.s,o=1,a=[];while(i+this.e?this.e:s,a.push(e.fromDateTimes(i,r)),i=r,o+=1}return a},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e=r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.st.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,o=0,a=[],s=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),c=(n=Array.prototype).concat.apply(n,s),u=c.sort((function(e,t){return e.time-t.time})),l=g(u);!(r=l()).done;){var h=r.value;o+="s"===h.type?1:-1,1===o?i=h.time:(i&&+i!==+h.time&&a.push(e.fromDateTimes(i,h.time)),i=null)}return e.merge(a)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i=0){var d;r=l;var p,f=h(e,t);if(i=e.plus((d={},d[l]=f,d)),i>t)e=e.plus((p={},p[l]=f-1,p)),f-=1;else e=i;a[l]=f}}return[e,a,i,r]}function nr(e,t,n,r){var i=tr(e,t,n),o=i[0],a=i[1],s=i[2],c=i[3],u=t-o,l=n.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));if(0===l.length){var h;if(s0?(d=Wn.fromMillis(u,r)).shiftTo.apply(d,l).plus(p):p}var rr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ir={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},or=rr.hanidec.replace(/[\[|\]]/g,"").split("");function ar(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n=a&&r<=s&&(t+=r-a)}}return parseInt(t,10)}return t}function sr(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+rr[n||"latn"]+t)}var cr="missing Intl.DateTimeFormat.formatToParts support";function ur(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(ar(n))}}}var lr=String.fromCharCode(160),hr="( |"+lr+")",dr=new RegExp(hr,"g");function pr(e){return e.replace(/\./g,"\\.?").replace(dr,hr)}function fr(e){return e.replace(/\./g,"").replace(dr," ").toLowerCase()}function gr(e,t){return null===e?null:{regex:RegExp(e.map(pr).join("|")),deser:function(n){var r=n[0];return e.findIndex((function(e){return fr(r)===fr(e)}))+t}}}function mr(e,t){return{regex:e,deser:function(e){var t=e[1],n=e[2];return Me(t,n)},groups:t}}function yr(e){return{regex:e,deser:function(e){var t=e[0];return t}}}function vr(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function br(e,t){var n=sr(t),r=sr(t,"{2}"),i=sr(t,"{3}"),o=sr(t,"{4}"),a=sr(t,"{6}"),s=sr(t,"{1,2}"),c=sr(t,"{1,3}"),u=sr(t,"{1,6}"),l=sr(t,"{1,9}"),h=sr(t,"{2,4}"),d=sr(t,"{4,6}"),p=function(e){return{regex:RegExp(vr(e.val)),deser:function(e){var t=e[0];return t},literal:!0}},f=function(f){if(e.literal)return p(f);switch(f.val){case"G":return gr(t.eras("short",!1),0);case"GG":return gr(t.eras("long",!1),0);case"y":return ur(u);case"yy":return ur(h,ve);case"yyyy":return ur(o);case"yyyyy":return ur(d);case"yyyyyy":return ur(a);case"M":return ur(s);case"MM":return ur(r);case"MMM":return gr(t.months("short",!0,!1),1);case"MMMM":return gr(t.months("long",!0,!1),1);case"L":return ur(s);case"LL":return ur(r);case"LLL":return gr(t.months("short",!1,!1),1);case"LLLL":return gr(t.months("long",!1,!1),1);case"d":return ur(s);case"dd":return ur(r);case"o":return ur(c);case"ooo":return ur(i);case"HH":return ur(r);case"H":return ur(s);case"hh":return ur(r);case"h":return ur(s);case"mm":return ur(r);case"m":return ur(s);case"q":return ur(s);case"qq":return ur(r);case"s":return ur(s);case"ss":return ur(r);case"S":return ur(c);case"SSS":return ur(i);case"u":return yr(l);case"a":return gr(t.meridiems(),0);case"kkkk":return ur(o);case"kk":return ur(h,ve);case"W":return ur(s);case"WW":return ur(r);case"E":case"c":return ur(n);case"EEE":return gr(t.weekdays("short",!1,!1),1);case"EEEE":return gr(t.weekdays("long",!1,!1),1);case"ccc":return gr(t.weekdays("short",!0,!1),1);case"cccc":return gr(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return mr(new RegExp("([+-]"+s.source+")(?::("+r.source+"))?"),2);case"ZZZ":return mr(new RegExp("([+-]"+s.source+")("+r.source+")?"),2);case"z":return yr(/[a-z_+-/]{1,256}?/i);default:return p(f)}},g=f(e)||{invalidReason:cr};return g.token=e,g}var Mr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function wr(e,t,n){var r=e.type,i=e.value;if("literal"===r)return{literal:!0,val:i};var o=n[r],a=Mr[r];return"object"===typeof a&&(a=a[o]),a?{literal:!1,val:a}:void 0}function Sr(e){var t=e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"");return["^"+t+"$",e]}function Or(e,t,n){var r=e.match(t);if(r){var i={},o=1;for(var a in n)if(ae(n,a)){var s=n[a],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(o,o+c))),o+=c}return[r,i]}return[r,{}]}function Cr(e){var t,n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};t=G(e.Z)?G(e.z)?null:at.create(e.z):new ct(e.Z),G(e.q)||(e.M=3*(e.q-1)+1),G(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),G(e.u)||(e.S=he(e.u));var r=Object.keys(e).reduce((function(t,r){var i=n(r);return i&&(t[i]=e[r]),t}),{});return[r,t]}var xr=null;function Tr(){return xr||(xr=di.fromMillis(1555555555555)),xr}function Ir(e,t){if(e.literal)return e;var n=We.macroTokenToFormatOpts(e.val);if(!n)return e;var r=We.create(t,n),i=r.formatDateTimeParts(Tr()),o=i.map((function(e){return wr(e,t,n)}));return o.includes(void 0)?e:o}function Nr(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return Ir(e,t)})))}function jr(e,t,n){var r=Nr(We.parseFormat(n),e),i=r.map((function(t){return br(t,e)})),o=i.find((function(e){return e.invalidReason}));if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};var a=Sr(i),s=a[0],c=a[1],u=RegExp(s,"i"),l=Or(t,u,c),h=l[0],d=l[1],p=d?Cr(d):[null,null],f=p[0],g=p[1];if(ae(d,"a")&&ae(d,"H"))throw new M("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:u,rawMatches:h,matches:d,result:f,zone:g}}function Ar(e,t,n){var r=jr(e,t,n),i=r.result,o=r.zone,a=r.invalidReason;return[i,o,a]}var kr=[0,31,59,90,120,151,181,212,243,273,304,334],Dr=[0,31,60,91,121,152,182,213,244,274,305,335];function Er(e,t){return new Ge("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Lr(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function zr(e,t,n){return n+(pe(e)?Dr:kr)[t-1]}function _r(e,t){var n=pe(e)?Dr:kr,r=n.findIndex((function(e){return eye(n)?(t=n+1,s=1):t=n,Object.assign({weekYear:t,weekNumber:s,weekday:a},Ce(e))}function Rr(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=Lr(n,1,4),a=fe(n),s=7*r+i-o-3;s<1?(t=n-1,s+=fe(t)):s>a?(t=n+1,s-=fe(n)):t=n;var c=_r(t,s),u=c.month,l=c.day;return Object.assign({year:t,month:u,day:l},Ce(e))}function Ur(e){var t=e.year,n=e.month,r=e.day,i=zr(t,n,r);return Object.assign({year:t,ordinal:i},Ce(e))}function Br(e){var t=e.year,n=e.ordinal,r=_r(t,n),i=r.month,o=r.day;return Object.assign({year:t,month:i,day:o},Ce(e))}function Fr(e){var t=Z(e.weekYear),n=se(e.weekNumber,1,ye(e.weekYear)),r=se(e.weekday,1,7);return t?n?!r&&Er("weekday",e.weekday):Er("week",e.week):Er("weekYear",e.weekYear)}function Yr(e){var t=Z(e.year),n=se(e.ordinal,1,fe(e.year));return t?!n&&Er("ordinal",e.ordinal):Er("year",e.year)}function Vr(e){var t=Z(e.year),n=se(e.month,1,12),r=se(e.day,1,ge(e.year,e.month));return t?n?!r&&Er("day",e.day):Er("month",e.month):Er("year",e.year)}function Hr(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,o=se(t,0,23)||24===t&&0===n&&0===r&&0===i,a=se(n,0,59),s=se(r,0,59),c=se(i,0,999);return o?a?s?!c&&Er("millisecond",i):Er("second",r):Er("minute",n):Er("hour",t)}var Qr="Invalid DateTime",qr=864e13;function $r(e){return new Ge("unsupported zone",'the zone "'+e.name+'" is not supported')}function Wr(e){return null===e.weekData&&(e.weekData=Pr(e.c)),e.weekData}function Gr(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new di(Object.assign({},n,t,{old:n}))}function Kr(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Zr(e,t){e+=60*t*1e3;var n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Jr(e,t,n){return Kr(me(e),t,n)}function Xr(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,ge(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),a=Wn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=me(o),c=Kr(s,n,e.zone),u=c[0],l=c[1];return 0!==a&&(u+=a,l=e.zone.offset(u)),{ts:u,o:l}}function ei(e,t,n,r,i){var o=n.setZone,a=n.zone;if(e&&0!==Object.keys(e).length){var s=t||a,c=di.fromObject(Object.assign(e,n,{zone:s,setZone:void 0}));return o?c:c.setZone(a)}return di.invalid(new Ge("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function ti(e,t,n){return void 0===n&&(n=!0),e.isValid?We.create(zt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function ni(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,o=void 0!==i&&i,a=t.includeOffset,s=t.includePrefix,c=void 0!==s&&s,u=t.includeZone,l=void 0!==u&&u,h=t.spaceZone,d=void 0!==h&&h,p=t.format,f=void 0===p?"extended":p,g="basic"===f?"HHmm":"HH:mm";r&&0===e.second&&0===e.millisecond||(g+="basic"===f?"ss":":ss",o&&0===e.millisecond||(g+=".SSS")),(l||a)&&d&&(g+=" "),l?g+="z":a&&(g+="basic"===f?"ZZZ":"ZZ");var m=ti(e,g);return c&&(m="T"+m),m}var ri={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ii={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},oi={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ai=["year","month","day","hour","minute","second","millisecond"],si=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ci=["year","ordinal","hour","minute","second","millisecond"];function ui(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new w(e);return t}function li(e,t){for(var n,r=g(ai);!(n=r()).done;){var i=n.value;G(e[i])&&(e[i]=ri[i])}var o=Vr(e)||Hr(e);if(o)return di.invalid(o);var a=yt.now(),s=t.offset(a),c=Jr(e,s,t),u=c[0],l=c[1];return new di({ts:u,zone:t,o:l})}function hi(e,t,n){var r=!!G(n.round)||n.round,i=function(e,i){e=de(e,r||n.calendary?0:2,!0);var o=t.loc.clone(n).relFormatter(n);return o.format(e,i)},o=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(o(n.unit),n.unit);for(var a,s=g(n.units);!(a=s()).done;){var c=a.value,u=o(c);if(Math.abs(u)>=1)return i(u,c)}return i(e>t?-0:0,n.units[n.units.length-1])}var di=function(){function e(e){var t=e.zone||yt.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Ge("invalid input"):null)||(t.isValid?null:$r(t));this.ts=G(e.ts)?yt.now():e.ts;var r=null,i=null;if(!n){var o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){var a=[e.old.c,e.old.o];r=a[0],i=a[1]}else{var s=t.offset(this.ts);r=Zr(this.ts,s),n=Number.isNaN(r.year)?new Ge("invalid input"):null,r=n?null:r,i=n?null:s}}this._zone=t,this.loc=e.loc||zt.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(t,n,r,i,o,a,s){return G(t)?e.now():li({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:s},yt.defaultZone)},e.utc=function(t,n,r,i,o,a,s){return G(t)?new e({ts:yt.now(),zone:ct.utcInstance}):li({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:s},ct.utcInstance)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r=X(t)?t.valueOf():NaN;if(Number.isNaN(r))return e.invalid("invalid input");var i=lt(n.zone,yt.defaultZone);return i.isValid?new e({ts:r,zone:i,loc:zt.fromObject(n)}):e.invalid($r(i))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),K(t))return t<-qr||t>qr?e.invalid("Timestamp out of range"):new e({ts:t,zone:lt(n.zone,yt.defaultZone),loc:zt.fromObject(n)});throw new S("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),K(t))return new e({ts:1e3*t,zone:lt(n.zone,yt.defaultZone),loc:zt.fromObject(n)});throw new S("fromSeconds requires a numerical input")},e.fromObject=function(t){var n=lt(t.zone,yt.defaultZone);if(!n.isValid)return e.invalid($r(n));var r=yt.now(),i=n.offset(r),o=Se(t,ui,["zone","locale","outputCalendar","numberingSystem"]),a=!G(o.ordinal),s=!G(o.year),c=!G(o.month)||!G(o.day),u=s||c,l=o.weekYear||o.weekNumber,h=zt.fromObject(t);if((u||a)&&l)throw new M("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new M("Can't mix ordinal dates with month/day");var d,p,f=l||o.weekday&&!u,m=Zr(r,i);f?(d=si,p=ii,m=Pr(m)):a?(d=ci,p=oi,m=Ur(m)):(d=ai,p=ri);for(var y,v=!1,b=g(d);!(y=b()).done;){var w=y.value,S=o[w];G(S)?o[w]=v?p[w]:m[w]:v=!0}var O=f?Fr(o):a?Yr(o):Vr(o),C=O||Hr(o);if(C)return e.invalid(C);var x=f?Rr(o):a?Br(o):o,T=Jr(x,i,n),I=T[0],N=T[1],j=new e({ts:I,zone:n,o:N,loc:h});return o.weekday&&u&&t.weekday!==j.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+j.toISO()):j},e.fromISO=function(e,t){void 0===t&&(t={});var n=xn(e),r=n[0],i=n[1];return ei(r,i,t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=Tn(e),r=n[0],i=n[1];return ei(r,i,t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=In(e),r=n[0],i=n[1];return ei(r,i,t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),G(t)||G(n))throw new S("fromFormat requires an input string and a format");var i=r,o=i.locale,a=void 0===o?null:o,s=i.numberingSystem,c=void 0===s?null:s,u=zt.fromOpts({locale:a,numberingSystem:c,defaultToEN:!0}),l=Ar(u,t,n),h=l[0],d=l[1],p=l[2];return p?e.invalid(p):ei(h,d,r,"format "+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=zn(e),r=n[0],i=n[1];return ei(r,i,t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new S("need to specify a reason the DateTime is invalid");var r=t instanceof Ge?t:new Ge(t,n);if(yt.throwOnInvalid)throw new y(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=We.create(this.loc.clone(e),e).resolvedOptions(this),n=t.locale,r=t.numberingSystem,i=t.calendar;return{locale:n,numberingSystem:r,outputCalendar:i}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(ct.instance(e),t)},t.toLocal=function(){return this.setZone(yt.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,o=void 0!==i&&i,a=r.keepCalendarTime,s=void 0!==a&&a;if(t=lt(t,yt.defaultZone),t.equals(this.zone))return this;if(t.isValid){var c=this.ts;if(o||s){var u=t.offset(this.ts),l=this.toObject(),h=Jr(l,u,t);c=h[0]}return Gr(this,{ts:c,zone:t})}return e.invalid($r(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar,o=this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i});return Gr(this,{loc:o})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=Se(e,ui,[]),r=!G(n.weekYear)||!G(n.weekNumber)||!G(n.weekday),i=!G(n.ordinal),o=!G(n.year),a=!G(n.month)||!G(n.day),s=o||a,c=n.weekYear||n.weekNumber;if((s||i)&&c)throw new M("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&i)throw new M("Can't mix ordinal dates with month/day");r?t=Rr(Object.assign(Pr(this.c),n)):G(n.ordinal)?(t=Object.assign(this.toObject(),n),G(n.day)&&(t.day=Math.min(ge(t.year,t.month),t.day))):t=Br(Object.assign(Ur(this.c),n));var u=Jr(t,this.o,this.zone),l=u[0],h=u[1];return Gr(this,{ts:l,o:h})},t.plus=function(e){if(!this.isValid)return this;var t=Gn(e);return Gr(this,Xr(this,t))},t.minus=function(e){if(!this.isValid)return this;var t=Gn(e).negate();return Gr(this,Xr(this,t))},t.startOf=function(e){if(!this.isValid)return this;var t={},n=Wn.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0;break}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?We.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Qr},t.toLocaleString=function(e){return void 0===e&&(e=I),this.isValid?We.create(this.loc.clone(e),e).formatDateTime(this):Qr},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?We.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=void 0===e?{}:e,n=t.format,r=void 0===n?"extended":n,i="basic"===r?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(i="+"+i),ti(this,i)},t.toISOWeekDate=function(){return ti(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,o=void 0!==i&&i,a=t.includeOffset,s=void 0===a||a,c=t.includePrefix,u=void 0!==c&&c,l=t.format,h=void 0===l?"extended":l;return ni(this,{suppressSeconds:o,suppressMilliseconds:r,includeOffset:s,includePrefix:u,format:h})},t.toRFC2822=function(){return ti(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return ti(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return ti(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone,o=void 0!==i&&i;return ni(this,{includeOffset:r,includeZone:o,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Qr},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return Wn.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var r=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),i=re(t).map(Wn.normalizeUnit),o=e.valueOf()>this.valueOf(),a=o?this:e,s=o?e:this,c=nr(a,s,i,r);return o?c.negate():c},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},t.until=function(e){return this.isValid?Jn.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({zone:this.zone}),r=t.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return pe(this.year)}},{key:"daysInMonth",get:function(){return ge(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?fe(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ye(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return I}},{key:"DATE_MED",get:function(){return N}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return j}},{key:"DATE_FULL",get:function(){return A}},{key:"DATE_HUGE",get:function(){return k}},{key:"TIME_SIMPLE",get:function(){return D}},{key:"TIME_WITH_SECONDS",get:function(){return E}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return L}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return z}},{key:"TIME_24_SIMPLE",get:function(){return _}},{key:"TIME_24_WITH_SECONDS",get:function(){return P}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return R}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return U}},{key:"DATETIME_SHORT",get:function(){return B}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return F}},{key:"DATETIME_MED",get:function(){return Y}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return V}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return H}},{key:"DATETIME_FULL",get:function(){return Q}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return q}},{key:"DATETIME_HUGE",get:function(){return $}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return W}}]),e}();function pi(e){if(di.isDateTime(e))return e;if(e&&e.valueOf&&K(e.valueOf()))return di.fromJSDate(e);if(e&&"object"===typeof e)return di.fromObject(e);throw new S("Unknown datetime argument: "+e+", of type "+typeof e)}var fi="1.28.0";t.DateTime=di,t.Duration=Wn,t.FixedOffsetZone=ct,t.IANAZone=at,t.Info=Xn,t.Interval=Jn,t.InvalidZone=ut,t.LocalZone=Je,t.Settings=yt,t.VERSION=fi,t.Zone=Ke},"132d":function(e,t,n){"use strict";n("7db0"),n("caad"),n("c975"),n("fb6a"),n("45fc"),n("a9e3"),n("2532"),n("498a"),n("c96a");var r,i=n("5530"),o=(n("4804"),n("7e2b")),a=n("a9ad"),s=n("af2b"),c=n("7560"),u=n("80d2"),l=n("a026"),h=n("58df");function d(e){return["fas","far","fal","fab","fad","fak"].some((function(t){return e.includes(t)}))}function p(e){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4}(function(e){e["xSmall"]="12px",e["small"]="16px",e["default"]="24px",e["medium"]="28px",e["large"]="36px",e["xLarge"]="40px"})(r||(r={}));var f=Object(h["a"])(o["a"],a["a"],s["a"],c["a"]).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium:function(){return!1},hasClickListener:function(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon:function(){var e="";return this.$slots.default&&(e=this.$slots.default[0].text.trim()),Object(u["y"])(this,e)},getSize:function(){var e={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},t=Object(u["v"])(e).find((function(t){return e[t]}));return t&&r[t]||Object(u["g"])(this.size)},getDefaultData:function(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:Object(i["a"])({"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0},this.attrs$),on:this.listeners$}},getSvgWrapperData:function(){var e=this.getSize(),t=Object(i["a"])(Object(i["a"])({},this.getDefaultData()),{},{style:e?{fontSize:e,height:e,width:e}:void 0});return this.applyColors(t),t},applyColors:function(e){e.class=Object(i["a"])(Object(i["a"])({},e.class),this.themeClasses),this.setTextColor(this.color,e)},renderFontIcon:function(e,t){var n=[],r=this.getDefaultData(),i="material-icons",o=e.indexOf("-"),a=o<=-1;a?n.push(e):(i=e.slice(0,o),d(i)&&(i="")),r.class[i]=!0,r.class[e]=!a;var s=this.getSize();return s&&(r.style={fontSize:s}),this.applyColors(r),t(this.hasClickListener?"button":this.tag,r,n)},renderSvgIcon:function(e,t){var n={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},r=this.getSize();return r&&(n.style={fontSize:r,height:r,width:r}),t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t("svg",n,[t("path",{attrs:{d:e}})])])},renderSvgIconComponent:function(e,t){var n={class:{"v-icon__component":!0}},r=this.getSize();r&&(n.style={fontSize:r,height:r,width:r}),this.applyColors(n);var i=e.component;return n.props=e.props,n.nativeOn=n.on,t(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[t(i,n)])}},render:function(e){var t=this.getIcon();return"string"===typeof t?p(t)?this.renderSvgIcon(t,e):this.renderFontIcon(t,e):this.renderSvgIconComponent(t,e)}});t["a"]=l["default"].extend({name:"v-icon",$_wrapperFor:f,functional:!0,render:function(e,t){var n=t.data,r=t.children,i="";return n.domProps&&(i=n.domProps.textContent||n.domProps.innerHTML||i,delete n.domProps.textContent,delete n.domProps.innerHTML),e(f,n,i?[i]:r)}})},"13d5":function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,o=n("a640"),a=n("2d00"),s=n("605d"),c=o("reduce"),u=!s&&a>79&&a<83;r({target:"Array",proto:!0,forced:!c||u},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n("c6b6"),i=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in i){var c=r[s],u=c&&c.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(l){u.forEach=o}}},"15fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a4d3"),n("c975"),n("b64b");function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function i(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},"166a":function(e,t,n){},"16b7":function(e,t,n){"use strict";n("a9e3");var r=n("a026");t["a"]=r["default"].extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:function(){return{openTimeout:void 0,closeTimeout:void 0}},methods:{clearDelay:function(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay:function(e,t){var n=this;this.clearDelay();var r=parseInt(this["".concat(e,"Delay")],10);this["".concat(e,"Timeout")]=setTimeout(t||function(){n.isActive={open:!0,close:!1}[e]},r)}}})},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},1800:function(e,t,n){"use strict";n("4de4");var r=n("a026");t["a"]=r["default"].extend({name:"v-list-item-action",functional:!0,render:function(e,t){var n=t.data,r=t.children,i=void 0===r?[]:r;n.staticClass=n.staticClass?"v-list-item__action ".concat(n.staticClass):"v-list-item__action";var o=i.filter((function(e){return!1===e.isComment&&" "!==e.text}));return o.length>1&&(n.staticClass+=" v-list-item__action--stack"),e("div",n,i)}})},"18a5":function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),o=n("af03");r({target:"String",proto:!0,forced:o("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1b2c":function(e,t,n){},"1b7b":function(e,t,n){"use strict";n.d(t,"a",(function(){return Jn})); /*! @azure/msal-browser v2.38.3 2023-10-27 */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function 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 o,a,s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function d(){for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1,i=!!n&&he.indexOf(n)>-1,o=!!t&&le.some((function(e){return t.indexOf(e)>-1}));return r||o||i},t.createNoTokensFoundError=function(){return new t(de.noTokensFoundError.code,de.noTokensFoundError.desc)},t.createNativeAccountUnavailableError=function(){return new t(de.native_account_unavailable.code,de.native_account_unavailable.desc)},t}(ce),fe={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},ge={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"}; /*! @azure/msal-common v13.3.1 2023-10-27 */(function(e){e["HandshakeRequest"]="Handshake",e["HandshakeResponse"]="HandshakeResponse",e["GetToken"]="GetToken",e["Response"]="Response"})(J||(J={})),function(e){e["LocalStorage"]="localStorage",e["SessionStorage"]="sessionStorage",e["MemoryStorage"]="memoryStorage"}(X||(X={})),function(e){e["GET"]="GET",e["POST"]="POST"}(ee||(ee={})),function(e){e["AUTHORITY"]="authority",e["ACQUIRE_TOKEN_ACCOUNT"]="acquireToken.account",e["SESSION_STATE"]="session.state",e["REQUEST_STATE"]="request.state",e["NONCE_IDTOKEN"]="nonce.id_token",e["ORIGIN_URI"]="request.origin",e["RENEW_STATUS"]="token.renew.status",e["URL_HASH"]="urlHash",e["REQUEST_PARAMS"]="request.params",e["SCOPES"]="scopes",e["INTERACTION_STATUS_KEY"]="interaction.status",e["CCS_CREDENTIAL"]="ccs.credential",e["CORRELATION_ID"]="request.correlationId",e["NATIVE_REQUEST"]="request.native",e["REDIRECT_CONTEXT"]="request.redirect.context"}(te||(te={})),function(e){e["ACCOUNT_KEYS"]="msal.account.keys",e["TOKEN_KEYS"]="msal.token.keys"}(ne||(ne={})),function(e){e["WRAPPER_SKU"]="wrapper.sku",e["WRAPPER_VER"]="wrapper.version"}(re||(re={})),function(e){e[e["acquireTokenRedirect"]=861]="acquireTokenRedirect",e[e["acquireTokenPopup"]=862]="acquireTokenPopup",e[e["ssoSilent"]=863]="ssoSilent",e[e["acquireTokenSilent_authCode"]=864]="acquireTokenSilent_authCode",e[e["handleRedirectPromise"]=865]="handleRedirectPromise",e[e["acquireTokenByCode"]=866]="acquireTokenByCode",e[e["acquireTokenSilent_silentFlow"]=61]="acquireTokenSilent_silentFlow",e[e["logout"]=961]="logout",e[e["logoutPopup"]=962]="logoutPopup"}(ie||(ie={})),function(e){e["Redirect"]="redirect",e["Popup"]="popup",e["Silent"]="silent",e["None"]="none"}(oe||(oe={})),function(e){e["Startup"]="startup",e["Login"]="login",e["Logout"]="logout",e["AcquireToken"]="acquireToken",e["SsoSilent"]="ssoSilent",e["HandleRedirect"]="handleRedirect",e["None"]="none"}(ae||(ae={}));var me,ye={scopes:T},ve="jwk";(function(e){e["React"]="@azure/msal-react",e["Angular"]="@azure/msal-angular"})(me||(me={}));var be,Me="msal.db",we=1,Se=Me+".keys";(function(e){e[e["Default"]=0]="Default",e[e["AccessToken"]=1]="AccessToken",e[e["AccessTokenAndRefreshToken"]=2]="AccessTokenAndRefreshToken",e[e["RefreshToken"]=3]="RefreshToken",e[e["RefreshTokenAndNetwork"]=4]="RefreshTokenAndNetwork",e[e["Skip"]=5]="Skip"})(be||(be={})); /*! @azure/msal-common v13.3.1 2023-10-27 */ var Oe,Ce={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},xe=function(e){function t(n,r){var i=e.call(this,n,r)||this;return i.name="JoseHeaderError",Object.setPrototypeOf(i,t.prototype),i}return g(t,e),t.createMissingKidError=function(){return new t(Ce.missingKidError.code,Ce.missingKidError.desc)},t.createMissingAlgError=function(){return new t(Ce.missingAlgError.code,Ce.missingAlgError.desc)},t}(ce),Te=function(){function e(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return e.getShrHeaderString=function(t){if(!t.kid)throw xe.createMissingKidError();if(!t.alg)throw xe.createMissingAlgError();var n=new e({typ:t.typ||G.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(n)},e}(),Ie=function(){function e(){}return e.decimalToHex=function(e){var t=e.toString(16);while(t.length<2)t="0"+t;return t},e}(),Ne=function(){function e(e){this.cryptoObj=e}return e.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,Ie.decimalToHex(e[0])+Ie.decimalToHex(e[1])+Ie.decimalToHex(e[2])+Ie.decimalToHex(e[3])+"-"+Ie.decimalToHex(e[4])+Ie.decimalToHex(e[5])+"-"+Ie.decimalToHex(e[6])+Ie.decimalToHex(e[7])+"-"+Ie.decimalToHex(e[8])+Ie.decimalToHex(e[9])+"-"+Ie.decimalToHex(e[10])+Ie.decimalToHex(e[11])+Ie.decimalToHex(e[12])+Ie.decimalToHex(e[13])+Ie.decimalToHex(e[14])+Ie.decimalToHex(e[15])}catch(a){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",r=0,i=x.EMPTY_STRING,o=0;o<36;o++)"-"!==t[o]&&"4"!==t[o]&&(r=16*Math.random()|0),"x"===t[o]?i+=n[r]:"y"===t[o]?(r&=3,r|=8,i+=n[r]):i+=t[o];return i}},e.prototype.isGuid=function(e){var t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)},e}(),je=function(){function e(){}return e.stringToUtf8Arr=function(e){for(var t,n=0,r=e.length,i=0;i>>6),o[a++]=128+(63&t)):t<65536?(o[a++]=224+(t>>>12),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t)):t<2097152?(o[a++]=240+(t>>>18),o[a++]=128+(t>>>12&63),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t)):t<67108864?(o[a++]=248+(t>>>24),o[a++]=128+(t>>>18&63),o[a++]=128+(t>>>12&63),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t)):(o[a++]=252+(t>>>30),o[a++]=128+(t>>>24&63),o[a++]=128+(t>>>18&63),o[a++]=128+(t>>>12&63),o[a++]=128+(t>>>6&63),o[a++]=128+(63&t));return o},e.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r251&&n<254&&i+5247&&n<252&&i+4239&&n<248&&i+3223&&n<240&&i+2191&&n<224&&i+1>>r&24),2!==r&&e.length-a!==1||(n+=String.fromCharCode(this.uint6ToB64(o>>>18&63),this.uint6ToB64(o>>>12&63),this.uint6ToB64(o>>>6&63),this.uint6ToB64(63&o)),o=0);return 0===t?n:n.substring(0,n.length-t)+(1===t?"=":"==")},e.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:62===e?43:63===e?47:65},e}(),ke=function(){function e(){}return e.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(t);return je.utf8ArrToString(n)},e.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,x.EMPTY_STRING),r=n.length,i=t?Math.ceil((3*r+1>>>2)/t)*t:3*r+1>>>2,o=new Uint8Array(i),a=void 0,s=void 0,c=0,u=0,l=0;l>>(16>>>a&24)&255;c=0}return o},e.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0},e}(),De={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},Ee=function(e){function t(n,r){var i=e.call(this,n,r)||this;return i.name="ClientAuthError",Object.setPrototypeOf(i,t.prototype),i}return g(t,e),t.createClientInfoDecodingError=function(e){return new t(De.clientInfoDecodingError.code,De.clientInfoDecodingError.desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(De.clientInfoEmptyError.code,""+De.clientInfoEmptyError.desc)},t.createTokenParsingError=function(e){return new t(De.tokenParsingError.code,De.tokenParsingError.desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(De.nullOrEmptyToken.code,De.nullOrEmptyToken.desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(De.endpointResolutionError.code,De.endpointResolutionError.desc+" Detail: "+e)},t.createNetworkError=function(e,n){return new t(De.networkError.code,De.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(De.unableToGetOpenidConfigError.code,De.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(De.hashNotDeserialized.code,De.hashNotDeserialized.desc+" Given Object: "+e)},t.createInvalidStateError=function(e,n){return new t(De.invalidStateError.code,De.invalidStateError.desc+" Invalid State: "+e+", Root Err: "+n)},t.createStateMismatchError=function(){return new t(De.stateMismatchError.code,De.stateMismatchError.desc)},t.createStateNotFoundError=function(e){return new t(De.stateNotFoundError.code,De.stateNotFoundError.desc+": "+e)},t.createNonceMismatchError=function(){return new t(De.nonceMismatchError.code,De.nonceMismatchError.desc)},t.createAuthTimeNotFoundError=function(){return new t(De.authTimeNotFoundError.code,De.authTimeNotFoundError.desc)},t.createMaxAgeTranspiredError=function(){return new t(De.maxAgeTranspiredError.code,De.maxAgeTranspiredError.desc)},t.createNonceNotFoundError=function(e){return new t(De.nonceNotFoundError.code,De.nonceNotFoundError.desc+": "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(De.multipleMatchingTokens.code,De.multipleMatchingTokens.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(De.multipleMatchingAccounts.code,De.multipleMatchingAccounts.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(De.multipleMatchingAppMetadata.code,De.multipleMatchingAppMetadata.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(De.tokenRequestCannotBeMade.code,De.tokenRequestCannotBeMade.desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(De.appendEmptyScopeError.code,De.appendEmptyScopeError.desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(De.removeEmptyScopeError.code,De.removeEmptyScopeError.desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(De.appendScopeSetError.code,De.appendScopeSetError.desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(De.emptyInputScopeSetError.code,""+De.emptyInputScopeSetError.desc)},t.createDeviceCodeCancelledError=function(){return new t(De.DeviceCodePollingCancelled.code,""+De.DeviceCodePollingCancelled.desc)},t.createDeviceCodeExpiredError=function(){return new t(De.DeviceCodeExpired.code,""+De.DeviceCodeExpired.desc)},t.createDeviceCodeUnknownError=function(){return new t(De.DeviceCodeUnknownError.code,""+De.DeviceCodeUnknownError.desc)},t.createNoAccountInSilentRequestError=function(){return new t(De.NoAccountInSilentRequest.code,""+De.NoAccountInSilentRequest.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(De.invalidCacheRecord.code,De.invalidCacheRecord.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(De.invalidCacheEnvironment.code,De.invalidCacheEnvironment.desc)},t.createNoAccountFoundError=function(){return new t(De.noAccountFound.code,De.noAccountFound.desc)},t.createCachePluginError=function(){return new t(De.CachePluginError.code,""+De.CachePluginError.desc)},t.createNoCryptoObjectError=function(e){return new t(De.noCryptoObj.code,""+De.noCryptoObj.desc+e)},t.createInvalidCacheTypeError=function(){return new t(De.invalidCacheType.code,""+De.invalidCacheType.desc)},t.createUnexpectedAccountTypeError=function(){return new t(De.unexpectedAccountType.code,""+De.unexpectedAccountType.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(De.unexpectedCredentialType.code,""+De.unexpectedCredentialType.desc)},t.createInvalidAssertionError=function(){return new t(De.invalidAssertion.code,""+De.invalidAssertion.desc)},t.createInvalidCredentialError=function(){return new t(De.invalidClientCredential.code,""+De.invalidClientCredential.desc)},t.createRefreshRequiredError=function(){return new t(De.tokenRefreshRequired.code,De.tokenRefreshRequired.desc)},t.createUserTimeoutReachedError=function(){return new t(De.userTimeoutReached.code,De.userTimeoutReached.desc)},t.createTokenClaimsRequiredError=function(){return new t(De.tokenClaimsRequired.code,De.tokenClaimsRequired.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(De.noAuthorizationCodeFromServer.code,De.noAuthorizationCodeFromServer.desc)},t.createBindingKeyNotRemovedError=function(){return new t(De.bindingKeyNotRemovedError.code,De.bindingKeyNotRemovedError.desc)},t.createLogoutNotSupportedError=function(){return new t(De.logoutNotSupported.code,De.logoutNotSupported.desc)},t.createKeyIdMissingError=function(){return new t(De.keyIdMissing.code,De.keyIdMissing.desc)},t.createNoNetworkConnectivityError=function(){return new t(De.noNetworkConnectivity.code,De.noNetworkConnectivity.desc)},t.createUserCanceledError=function(){return new t(De.userCanceledError.code,De.userCanceledError.desc)},t}(ce),Le=function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw Ee.createTokenNullOrEmptyError(t);var n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,r=n.exec(t);if(!r||r.length<4)throw Ee.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));var i={header:r[1],JWSPayload:r[2],JWSSig:r[3]};return i},e.isEmpty=function(e){return"undefined"===typeof e||!e||0===e.length},e.isEmptyObj=function(t){if(t&&!e.isEmpty(t))try{var n=JSON.parse(t);return 0===Object.keys(n).length}catch(r){}return!0},e.startsWith=function(e,t){return 0===e.indexOf(t)},e.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},e.queryStringToObject=function(e){var t={},n=e.split("&"),r=function(e){return decodeURIComponent(e.replace(/\+/g," "))};return n.forEach((function(e){if(e.trim()){var n=e.split(/=(.+)/g,2),i=n[0],o=n[1];i&&o&&(t[r(i)]=r(o))}})),t},e.trimArrayEntries=function(e){return e.map((function(e){return e.trim()}))},e.removeEmptyStringsFromArray=function(t){return t.filter((function(t){return!e.isEmpty(t)}))},e.jsonParseHelper=function(e){try{return JSON.parse(e)}catch(t){return null}},e.matchPattern=function(e,t){var n=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return n.test(t)},e}(),ze={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},_e=function(e){function t(n,r){var i=e.call(this,n,r)||this;return Object.setPrototypeOf(i,t.prototype),i.name="BrowserAuthError",i}return i(t,e),t.createPkceNotGeneratedError=function(e){return new t(ze.pkceNotGenerated.code,ze.pkceNotGenerated.desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(ze.cryptoDoesNotExist.code,ze.cryptoDoesNotExist.desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(ze.httpMethodNotImplementedError.code,ze.httpMethodNotImplementedError.desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(ze.emptyNavigateUriError.code,ze.emptyNavigateUriError.desc)},t.createEmptyHashError=function(e){return new t(ze.hashEmptyError.code,ze.hashEmptyError.desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(ze.hashDoesNotContainStateError.code,ze.hashDoesNotContainStateError.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(ze.hashDoesNotContainKnownPropertiesError.code,ze.hashDoesNotContainKnownPropertiesError.desc)},t.createUnableToParseStateError=function(){return new t(ze.unableToParseStateError.code,ze.unableToParseStateError.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(ze.stateInteractionTypeMismatchError.code,ze.stateInteractionTypeMismatchError.desc)},t.createInteractionInProgressError=function(){return new t(ze.interactionInProgress.code,ze.interactionInProgress.desc)},t.createPopupWindowError=function(e){var n=ze.popupWindowError.desc;return n=Le.isEmpty(e)?n:n+" Details: "+e,new t(ze.popupWindowError.code,n)},t.createEmptyWindowCreatedError=function(){return new t(ze.emptyWindowError.code,ze.emptyWindowError.desc)},t.createUserCancelledError=function(){return new t(ze.userCancelledError.code,ze.userCancelledError.desc)},t.createMonitorPopupTimeoutError=function(){return new t(ze.monitorPopupTimeoutError.code,ze.monitorPopupTimeoutError.desc)},t.createMonitorIframeTimeoutError=function(){return new t(ze.monitorIframeTimeoutError.code,ze.monitorIframeTimeoutError.desc)},t.createRedirectInIframeError=function(e){return new t(ze.redirectInIframeError.code,ze.redirectInIframeError.desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(ze.blockTokenRequestsInHiddenIframeError.code,ze.blockTokenRequestsInHiddenIframeError.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(ze.blockAcquireTokenInPopupsError.code,ze.blockAcquireTokenInPopupsError.desc)},t.createIframeClosedPrematurelyError=function(){return new t(ze.iframeClosedPrematurelyError.code,ze.iframeClosedPrematurelyError.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(ze.silentLogoutUnsupportedError.code,ze.silentLogoutUnsupportedError.desc)},t.createNoAccountError=function(){return new t(ze.noAccountError.code,ze.noAccountError.desc)},t.createSilentPromptValueError=function(e){return new t(ze.silentPromptValueError.code,ze.silentPromptValueError.desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(ze.unableToParseTokenRequestCacheError.code,ze.unableToParseTokenRequestCacheError.desc)},t.createNoTokenRequestCacheError=function(){return new t(ze.noTokenRequestCacheError.code,ze.noTokenRequestCacheError.desc)},t.createAuthRequestNotSetError=function(){return new t(ze.authRequestNotSet.code,ze.authRequestNotSet.desc)},t.createNoCachedAuthorityError=function(){return new t(ze.noCachedAuthorityError.code,ze.noCachedAuthorityError.desc)},t.createInvalidCacheTypeError=function(){return new t(ze.invalidCacheType.code,""+ze.invalidCacheType.desc)},t.createNonBrowserEnvironmentError=function(){return new t(ze.notInBrowserEnvironment.code,ze.notInBrowserEnvironment.desc)},t.createDatabaseNotOpenError=function(){return new t(ze.databaseNotOpen.code,ze.databaseNotOpen.desc)},t.createNoNetworkConnectivityError=function(){return new t(ze.noNetworkConnectivity.code,ze.noNetworkConnectivity.desc)},t.createPostRequestFailedError=function(e,n){return new t(ze.postRequestFailed.code,ze.postRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createGetRequestFailedError=function(e,n){return new t(ze.getRequestFailed.code,ze.getRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(ze.failedToParseNetworkResponse.code,ze.failedToParseNetworkResponse.desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(ze.unableToLoadTokenError.code,ze.unableToLoadTokenError.desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(ze.signingKeyNotFoundInStorage.code,ze.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(ze.authCodeRequired.code,ze.authCodeRequired.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(ze.authCodeOrNativeAccountRequired.code,ze.authCodeOrNativeAccountRequired.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(ze.spaCodeAndNativeAccountPresent.code,ze.spaCodeAndNativeAccountPresent.desc)},t.createDatabaseUnavailableError=function(){return new t(ze.databaseUnavailable.code,ze.databaseUnavailable.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(ze.unableToAcquireTokenFromNativePlatform.code,ze.unableToAcquireTokenFromNativePlatform.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(ze.nativeHandshakeTimeout.code,ze.nativeHandshakeTimeout.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(ze.nativeExtensionNotInstalled.code,ze.nativeExtensionNotInstalled.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(ze.nativeConnectionNotEstablished.code,ze.nativeConnectionNotEstablished.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(ze.nativeBrokerCalledBeforeInitialize.code,ze.nativeBrokerCalledBeforeInitialize.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(ze.nativePromptNotSupported.code,ze.nativePromptNotSupported.desc)},t}(ce),Pe=32,Re=function(){function e(e){this.base64Encode=new Ae,this.cryptoObj=e}return e.prototype.generateCodes=function(){return u(this,void 0,void 0,(function(){var e,t;return l(this,(function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}}))}))},e.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(Pe);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(n){throw _e.createPkceNotGeneratedError(n)}},e.prototype.generateCodeChallengeFromVerifier=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=r.sent(),_e.createPkceNotGeneratedError(n);case 3:return[2]}}))}))},e}(),Ue=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,window.crypto.subtle.generateKey(e,t,n)]}))}))},e.prototype.exportKey=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){return[2,window.crypto.subtle.exportKey(ve,e)]}))}))},e.prototype.importKey=function(e,t,n,r){return u(this,void 0,void 0,(function(){return l(this,(function(i){return[2,window.crypto.subtle.importKey(ve,e,t,n,r)]}))}))},e.prototype.sign=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,window.crypto.subtle.sign(e,t,n)]}))}))},e.prototype.digest=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,window.crypto.subtle.digest(e,t)]}))}))},e}(),Be=function(){function e(){}return e.prototype.initPrng=function(e){return window.msrCrypto.initPrng(d(e))},e.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]}))}))},e.prototype.exportKey=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){return[2,window.msrCrypto.subtle.exportKey(ve,e)]}))}))},e.prototype.importKey=function(e,t,n,r){return u(this,void 0,void 0,(function(){return l(this,(function(i){return[2,window.msrCrypto.subtle.importKey(ve,e,t,n,r)]}))}))},e.prototype.sign=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,window.msrCrypto.subtle.sign(e,t,n)]}))}))},e.prototype.digest=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,window.msrCrypto.subtle.digest(e,t)]}))}))},e}(),Fe=function(){function e(){}return e.prototype.getRandomValues=function(e){return window["msCrypto"].getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,new Promise((function(r,i){var o=window["msCrypto"].subtle.generateKey(e,t,n);o.addEventListener("complete",(function(e){r(e.target.result)})),o.addEventListener("error",(function(e){i(e)}))}))]}))}))},e.prototype.exportKey=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){return[2,new Promise((function(t,n){var r=window["msCrypto"].subtle.exportKey(ve,e);r.addEventListener("complete",(function(e){var r=e.target.result,i=je.utf8ArrToString(new Uint8Array(r)).replace(/\r/g,x.EMPTY_STRING).replace(/\n/g,x.EMPTY_STRING).replace(/\t/g,x.EMPTY_STRING).split(" ").join(x.EMPTY_STRING).replace("\0",x.EMPTY_STRING);try{t(JSON.parse(i))}catch(e){n(e)}})),r.addEventListener("error",(function(e){n(e)}))}))]}))}))},e.prototype.importKey=function(e,t,n,r){return u(this,void 0,void 0,(function(){var i,o;return l(this,(function(a){return i=je.getSortedObjectString(e),o=je.stringToArrayBuffer(i),[2,new Promise((function(e,i){var a=window["msCrypto"].subtle.importKey(ve,o,t,n,r);a.addEventListener("complete",(function(t){e(t.target.result)})),a.addEventListener("error",(function(e){i(e)}))}))]}))}))},e.prototype.sign=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,new Promise((function(r,i){var o=window["msCrypto"].subtle.sign(e,t,n);o.addEventListener("complete",(function(e){r(e.target.result)})),o.addEventListener("error",(function(e){i(e)}))}))]}))}))},e.prototype.digest=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,new Promise((function(n,r){var i=window["msCrypto"].subtle.digest(e,t.buffer);i.addEventListener("complete",(function(e){n(e.target.result)})),i.addEventListener("error",(function(e){r(e)}))}))]}))}))},e}(),Ye={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},Ve=function(e){function t(n,r){var i=e.call(this,n,r)||this;return i.name="BrowserConfigurationAuthError",Object.setPrototypeOf(i,t.prototype),i}return i(t,e),t.createRedirectUriEmptyError=function(){return new t(Ye.redirectUriNotSet.code,Ye.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(Ye.postLogoutUriNotSet.code,Ye.postLogoutUriNotSet.desc)},t.createStorageNotSupportedError=function(e){return new t(Ye.storageNotSupportedError.code,Ye.storageNotSupportedError.desc+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(Ye.noRedirectCallbacksSet.code,Ye.noRedirectCallbacksSet.desc)},t.createStubPcaInstanceCalledError=function(){return new t(Ye.stubPcaInstanceCalled.code,Ye.stubPcaInstanceCalled.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(Ye.inMemRedirectUnavailable.code,Ye.inMemRedirectUnavailable.desc)},t.createEntropyNotProvided=function(){return new t(Ye.entropyNotProvided.code,Ye.entropyNotProvided.desc)},t}(ce),He="RSASSA-PKCS1-v1_5",Qe="SHA-256",qe=2048,$e=new Uint8Array([1,0,1]),We=function(){function e(e,t){var n,r;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new Ue;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new Fe;else{if(!this.hasMsrCrypto()||!(null===(n=this.cryptoOptions)||void 0===n?void 0:n.useMsrCrypto))throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),_e.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new Be}if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(null===(r=this.cryptoOptions)||void 0===r?void 0:r.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),Ve.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:He,hash:Qe,modulusLength:qe,publicExponent:$e}}return e.prototype.hasIECrypto=function(){return"msCrypto"in window},e.prototype.hasBrowserCrypto=function(){return"crypto"in window},e.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},e.prototype.sha256Digest=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){return t=je.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:Qe},t)]}))}))},e.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},e.prototype.generateKeyPair=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]}))}))},e.prototype.exportJwk=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){return[2,this.subtleCrypto.exportKey(e)]}))}))},e.prototype.importJwk=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]}))}))},e.prototype.sign=function(e,t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]}))}))},e}(),Ge=function(){function e(){this.dbName=Me,this.version=we,this.tableName=Se,this.dbOpen=!1}return e.prototype.open=function(){return u(this,void 0,void 0,(function(){var e=this;return l(this,(function(t){return[2,new Promise((function(t,n){var r=window.indexedDB.open(e.dbName,e.version);r.addEventListener("upgradeneeded",(function(t){var n=t;n.target.result.createObjectStore(e.tableName)})),r.addEventListener("success",(function(n){var r=n;e.db=r.target.result,e.dbOpen=!0,t()})),r.addEventListener("error",(function(){return n(_e.createDatabaseUnavailableError())}))}))]}))}))},e.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return u(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}}))}))},e.prototype.getItem=function(e){return u(this,void 0,void 0,(function(){var t=this;return l(this,(function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise((function(n,r){if(!t.db)return r(_e.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readonly"),o=i.objectStore(t.tableName),a=o.get(e);a.addEventListener("success",(function(e){var r=e;t.closeConnection(),n(r.target.result)})),a.addEventListener("error",(function(e){t.closeConnection(),r(e)}))}))]}}))}))},e.prototype.setItem=function(e,t){return u(this,void 0,void 0,(function(){var n=this;return l(this,(function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise((function(r,i){if(!n.db)return i(_e.createDatabaseNotOpenError());var o=n.db.transaction([n.tableName],"readwrite"),a=o.objectStore(n.tableName),s=a.put(t,e);s.addEventListener("success",(function(){n.closeConnection(),r()})),s.addEventListener("error",(function(e){n.closeConnection(),i(e)}))}))]}}))}))},e.prototype.removeItem=function(e){return u(this,void 0,void 0,(function(){var t=this;return l(this,(function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise((function(n,r){if(!t.db)return r(_e.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readwrite"),o=i.objectStore(t.tableName),a=o.delete(e);a.addEventListener("success",(function(){t.closeConnection(),n()})),a.addEventListener("error",(function(e){t.closeConnection(),r(e)}))}))]}}))}))},e.prototype.getKeys=function(){return u(this,void 0,void 0,(function(){var e=this;return l(this,(function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise((function(t,n){if(!e.db)return n(_e.createDatabaseNotOpenError());var r=e.db.transaction([e.tableName],"readonly"),i=r.objectStore(e.tableName),o=i.getAllKeys();o.addEventListener("success",(function(n){var r=n;e.closeConnection(),t(r.target.result)})),o.addEventListener("error",(function(t){e.closeConnection(),n(t)}))}))]}}))}))},e.prototype.containsKey=function(e){return u(this,void 0,void 0,(function(){var t=this;return l(this,(function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise((function(n,r){if(!t.db)return r(_e.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readonly"),o=i.objectStore(t.tableName),a=o.count(e);a.addEventListener("success",(function(e){var r=e;t.closeConnection(),n(1===r.target.result)})),a.addEventListener("error",(function(e){t.closeConnection(),r(e)}))}))]}}))}))},e.prototype.deleteDatabase=function(){return u(this,void 0,void 0,(function(){return l(this,(function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise((function(e,t){var n=window.indexedDB.deleteDatabase(Me);n.addEventListener("success",(function(){return e(!0)})),n.addEventListener("blocked",(function(){return e(!0)})),n.addEventListener("error",(function(){return t(!1)}))}))]}))}))},e}(),Ke=function(){function e(){this.cache=new Map}return e.prototype.getItem=function(e){return this.cache.get(e)||null},e.prototype.setItem=function(e,t){this.cache.set(e,t)},e.prototype.removeItem=function(e){this.cache.delete(e)},e.prototype.getKeys=function(){var e=[];return this.cache.forEach((function(t,n){e.push(n)})),e},e.prototype.containsKey=function(e){return this.cache.has(e)},e.prototype.clear=function(){this.cache.clear()},e}(),Ze=function(){function e(e,t){this.inMemoryCache=new Ke,this.indexedDBCache=new Ge,this.logger=e,this.storeName=t}return e.prototype.handleDatabaseAccessError=function(e){if(!(e instanceof _e&&e.errorCode===ze.databaseUnavailable.code))throw e;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},e.prototype.getItem=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}}))}))},e.prototype.setItem=function(e,t){return u(this,void 0,void 0,(function(){var n;return l(this,(function(r){switch(r.label){case 0:this.inMemoryCache.setItem(e,t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}}))}))},e.prototype.removeItem=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}}))}))},e.prototype.getKeys=function(){return u(this,void 0,void 0,(function(){var e,t;return l(this,(function(n){switch(n.label){case 0:if(e=this.inMemoryCache.getKeys(),0!==e.length)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}}))}))},e.prototype.containsKey=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}}))}))},e.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},e.prototype.clearPersistent=function(){return u(this,void 0,void 0,(function(){var e,t;return l(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=n.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=n.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}}))}))},e}();(function(e){e["asymmetricKeys"]="asymmetricKeys",e["symmetricKeys"]="symmetricKeys"})(Oe||(Oe={}));var Je,Xe=function(){function e(e){this.logger=e,this.asymmetricKeys=new Ze(this.logger,Oe.asymmetricKeys),this.symmetricKeys=new Ze(this.logger,Oe.symmetricKeys)}return e.prototype.clear=function(){return u(this,void 0,void 0,(function(){var e;return l(this,(function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return e=t.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}}))}))},e}(),et=function(){function e(e,t,n){this.logger=e,this.browserCrypto=new We(this.logger,n),this.b64Encode=new Ae,this.b64Decode=new ke,this.guidGenerator=new Ne(this.browserCrypto),this.pkceGenerator=new Re(this.browserCrypto),this.cache=new Xe(this.logger),this.performanceClient=t}return e.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},e.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},e.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},e.prototype.generatePkceCodes=function(){return u(this,void 0,void 0,(function(){return l(this,(function(e){return[2,this.pkceGenerator.generateCodes()]}))}))},e.prototype.getPublicKeyThumbprint=function(t){var n;return u(this,void 0,void 0,(function(){var r,i,a,s,c,u,h,d;return l(this,(function(l){switch(l.label){case 0:return r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(o.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return i=l.sent(),[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return a=l.sent(),s={e:a.e,kty:a.kty,n:a.n},c=je.getSortedObjectString(s),[4,this.hashString(c)];case 3:return u=l.sent(),[4,this.browserCrypto.exportJwk(i.privateKey)];case 4:return h=l.sent(),[4,this.browserCrypto.importJwk(h,!1,["sign"])];case 5:return d=l.sent(),[4,this.cache.asymmetricKeys.setItem(u,{privateKey:d,publicKey:i.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return l.sent(),r&&r.endMeasurement({success:!0}),[2,u]}}))}))},e.prototype.removeTokenBindingKey=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=n.sent(),[2,!t]}}))}))},e.prototype.clearKeystore=function(){return u(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}}))}))},e.prototype.signJwt=function(e,t,n){var r;return u(this,void 0,void 0,(function(){var i,a,s,c,u,h,d,p,f,g,m,y,v;return l(this,(function(l){switch(l.label){case 0:return i=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(o.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(a=l.sent(),!a)throw _e.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=l.sent(),c=je.getSortedObjectString(s),u=this.b64Encode.urlEncode(JSON.stringify({kid:t})),h=Te.getShrHeaderString({kid:u,alg:s.alg}),d=this.b64Encode.urlEncode(h),e.cnf={jwk:JSON.parse(c)},p=this.b64Encode.urlEncode(JSON.stringify(e)),f=d+"."+p,g=je.stringToArrayBuffer(f),[4,this.browserCrypto.sign(a.privateKey,g)];case 3:return m=l.sent(),y=this.b64Encode.urlEncodeArr(new Uint8Array(m)),v=f+"."+y,i&&i.endMeasurement({success:!0}),[2,v]}}))}))},e.prototype.hashString=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){switch(r.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=r.sent(),n=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(n)]}}))}))},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e}(); /*! @azure/msal-browser v2.38.3 2023-10-27 */(function(e){e[e["Error"]=0]="Error",e[e["Warning"]=1]="Warning",e[e["Info"]=2]="Info",e[e["Verbose"]=3]="Verbose",e[e["Trace"]=4]="Trace"})(Je||(Je={}));var tt,nt=function(){function e(t,n,r){this.level=Je.Info;var i=function(){},o=t||e.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||i,this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level="number"===typeof o.logLevel?o.logLevel:Je.Info,this.correlationId=o.correlationId||x.EMPTY_STRING,this.packageName=n||x.EMPTY_STRING,this.packageVersion=r||x.EMPTY_STRING}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Je.Info}},e.prototype.clone=function(t,n,r){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},t,n)},e.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var n,r=(new Date).toUTCString();n=Le.isEmpty(t.correlationId)?Le.isEmpty(this.correlationId)?"["+r+"]":"["+r+"] : ["+this.correlationId+"]":"["+r+"] : ["+t.correlationId+"]";var i=n+" : "+this.packageName+"@"+this.packageVersion+" : "+Je[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,i,t.containsPii||!1)}},e.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},e.prototype.error=function(e,t){this.logMessage(e,{logLevel:Je.Error,containsPii:!1,correlationId:t||x.EMPTY_STRING})},e.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:Je.Error,containsPii:!0,correlationId:t||x.EMPTY_STRING})},e.prototype.warning=function(e,t){this.logMessage(e,{logLevel:Je.Warning,containsPii:!1,correlationId:t||x.EMPTY_STRING})},e.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:Je.Warning,containsPii:!0,correlationId:t||x.EMPTY_STRING})},e.prototype.info=function(e,t){this.logMessage(e,{logLevel:Je.Info,containsPii:!1,correlationId:t||x.EMPTY_STRING})},e.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:Je.Info,containsPii:!0,correlationId:t||x.EMPTY_STRING})},e.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:Je.Verbose,containsPii:!1,correlationId:t||x.EMPTY_STRING})},e.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:Je.Verbose,containsPii:!0,correlationId:t||x.EMPTY_STRING})},e.prototype.trace=function(e,t){this.logMessage(e,{logLevel:Je.Trace,containsPii:!1,correlationId:t||x.EMPTY_STRING})},e.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:Je.Trace,containsPii:!0,correlationId:t||x.EMPTY_STRING})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e}(),rt=function(){function e(e,t,n,r,i,o){this.authority=t,this.libraryName=r,this.libraryVersion=i,this.applicationTelemetry=o,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return e.prototype.startPerformanceMeasurement=function(e,t){return{}},e.prototype.startPerformanceMeasuremeant=function(e,t){return{}},e.prototype.getIntFields=function(){return p},e.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);if(n){if(n.name===e)return n.time;this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement")}else this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement")},e.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t=e.scopes.size&&e.asArray().every((function(e){return t.containsScope(e)})))},e.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return I.forEach((function(n){e.containsScope(n)&&(t+=1)})),this.scopes.size===t},e.prototype.appendScope=function(e){Le.isEmpty(e)||this.scopes.add(e.trim())},e.prototype.appendScopes=function(e){var t=this;try{e.forEach((function(e){return t.appendScope(e)}))}catch(n){throw Ee.createAppendScopeSetError(n)}},e.prototype.removeScope=function(e){if(Le.isEmpty(e))throw Ee.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},e.prototype.removeOIDCScopes=function(){var e=this;I.forEach((function(t){e.scopes.delete(t)}))},e.prototype.unionScopeSets=function(e){if(!e)throw Ee.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach((function(e){return t.add(e.toLowerCase())})),this.scopes.forEach((function(e){return t.add(e.toLowerCase())})),t},e.prototype.intersectingScopeSets=function(e){if(!e)throw Ee.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),r=this.getScopeCount(),i=t.size;return ie+t)throw Ee.createMaxAgeTranspiredError()},e}(),yt="@azure/msal-common",vt="13.3.1",bt=function(){function e(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(yt,vt)}return e.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var n=t.reduce((function(t,n){var r=e.getAccount(n);return r?(t.push(r),t):t}),[]);if(n.length<1)return[];var r=n.map((function(t){return e.getAccountInfoFromEntity(t)}));return r},e.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},e.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),n=this.getIdToken(t);return n&&(t.idToken=n.secret,t.idTokenClaims=new mt(n.secret,this.cryptoImpl).claims),t},e.prototype.saveCacheRecord=function(e){return y(this,void 0,void 0,(function(){return v(this,(function(t){switch(t.label){case 0:if(!e)throw Ee.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}}))}))},e.prototype.saveAccessToken=function(e){return y(this,void 0,void 0,(function(){var t,n,r,i,o=this;return v(this,(function(a){switch(a.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),r=ht.fromString(e.target),i=[],n.accessToken.forEach((function(e){if(o.accessTokenKeyMatchesFilter(e,t,!1)){var n=o.getAccessTokenCredential(e);if(n&&o.credentialMatchesFilter(n,t)){var a=ht.fromString(n.target);a.intersectingScopeSets(r)&&i.push(o.removeAccessToken(e))}}})),[4,Promise.all(i)];case 1:return a.sent(),this.setAccessTokenCredential(e),[2]}}))}))},e.prototype.getAccountsFilteredBy=function(e){var t=this,n=this.getAccountKeys(),r=[];return n.forEach((function(n){if(t.isAccountKey(n,e.homeAccountId,e.realm)){var i=t.getAccount(n);i&&(e.homeAccountId&&!t.matchHomeAccountId(i,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(i,e.localAccountId)||e.username&&!t.matchUsername(i,e.username)||e.environment&&!t.matchEnvironment(i,e.environment)||e.realm&&!t.matchRealm(i,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(i,e.nativeAccountId)||r.push(i))}})),r},e.prototype.isAccountKey=function(e,t,n){return!(e.split(E.CACHE_KEY_SEPARATOR).length<3)&&(!(t&&!e.toLowerCase().includes(t.toLowerCase()))&&!(n&&!e.toLowerCase().includes(n.toLowerCase())))},e.prototype.isCredentialKey=function(e){if(e.split(E.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(-1===t.indexOf(L.ID_TOKEN.toLowerCase())&&-1===t.indexOf(L.ACCESS_TOKEN.toLowerCase())&&-1===t.indexOf(L.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===t.indexOf(L.REFRESH_TOKEN.toLowerCase()))return!1;if(t.indexOf(L.REFRESH_TOKEN.toLowerCase())>-1){var n=""+L.REFRESH_TOKEN+E.CACHE_KEY_SEPARATOR+this.clientId+E.CACHE_KEY_SEPARATOR,r=""+L.REFRESH_TOKEN+E.CACHE_KEY_SEPARATOR+B+E.CACHE_KEY_SEPARATOR;if(-1===t.indexOf(n.toLowerCase())&&-1===t.indexOf(r.toLowerCase()))return!1}else if(-1===t.indexOf(this.clientId.toLowerCase()))return!1;return!0},e.prototype.credentialMatchesFilter=function(e,t){if(t.clientId&&!this.matchClientId(e,t.clientId))return!1;if(t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash))return!1;if("string"===typeof t.homeAccountId&&!this.matchHomeAccountId(e,t.homeAccountId))return!1;if(t.environment&&!this.matchEnvironment(e,t.environment))return!1;if(t.realm&&!this.matchRealm(e,t.realm))return!1;if(t.credentialType&&!this.matchCredentialType(e,t.credentialType))return!1;if(t.familyId&&!this.matchFamilyId(e,t.familyId))return!1;if(t.target&&!this.matchTarget(e,t.target))return!1;if((t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash)return!1;if(e.credentialType===L.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(t.tokenType&&!this.matchTokenType(e,t.tokenType))return!1;if(t.tokenType===Y.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId))return!1}return!0},e.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},e.prototype.getAppMetadataFilteredByInternal=function(e,t){var n=this,r=this.getKeys(),i={};return r.forEach((function(r){if(n.isAppMetadata(r)){var o=n.getAppMetadata(r);o&&(e&&!n.matchEnvironment(o,e)||t&&!n.matchClientId(o,t)||(i[r]=o))}})),i},e.prototype.getAuthorityMetadataByAlias=function(e){var t=this,n=this.getAuthorityMetadataKeys(),r=null;return n.forEach((function(n){if(t.isAuthorityMetadata(n)&&-1!==n.indexOf(t.clientId)){var i=t.getAuthorityMetadata(n);i&&-1!==i.aliases.indexOf(e)&&(r=i)}})),r},e.prototype.removeAllAccounts=function(){return y(this,void 0,void 0,(function(){var e,t,n=this;return v(this,(function(r){switch(r.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach((function(e){t.push(n.removeAccount(e))})),[4,Promise.all(t)];case 1:return r.sent(),[2]}}))}))},e.prototype.removeAccount=function(e){return y(this,void 0,void 0,(function(){var t;return v(this,(function(n){switch(n.label){case 0:if(t=this.getAccount(e),!t)throw Ee.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}}))}))},e.prototype.removeAccountContext=function(e){return y(this,void 0,void 0,(function(){var t,n,r,i=this;return v(this,(function(o){switch(o.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),r=[],t.idToken.forEach((function(e){0===e.indexOf(n)&&i.removeIdToken(e)})),t.accessToken.forEach((function(e){0===e.indexOf(n)&&r.push(i.removeAccessToken(e))})),t.refreshToken.forEach((function(e){0===e.indexOf(n)&&i.removeRefreshToken(e)})),[4,Promise.all(r)];case 1:return o.sent(),[2]}}))}))},e.prototype.removeAccessToken=function(e){return y(this,void 0,void 0,(function(){var t,n,r;return v(this,(function(i){switch(i.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==L.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==Y.POP)return[3,4];if(n=t,r=n.keyId,!r)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(r)];case 2:return i.sent(),[3,4];case 3:throw i.sent(),Ee.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}}))}))},e.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach((function(t){e.isAppMetadata(t)&&e.removeItem(t)})),!0},e.prototype.readCacheRecord=function(e,t,n){var r=this.getTokenKeys(),i=this.readAccountFromCache(e),o=this.getIdToken(e,r),a=this.getAccessToken(e,t,r),s=this.getRefreshToken(e,!1,r),c=this.readAppMetadataFromCache(n);return i&&o&&(i.idTokenClaims=new mt(o.secret,this.cryptoImpl).claims),{account:i,idToken:o,accessToken:a,refreshToken:s,appMetadata:c}},e.prototype.readAccountFromCache=function(e){var t=gt.generateAccountCacheKey(e);return this.getAccount(t)},e.prototype.getIdToken=function(e,t){var n=this;this.commonLogger.trace("CacheManager - getIdToken called");var r={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:L.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},i=this.getIdTokensByFilter(r,t),o=i.length;return o<1?(this.commonLogger.info("CacheManager:getIdToken - No token found"),null):o>1?(this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"),i.forEach((function(e){n.removeIdToken(e.generateCredentialKey())})),null):(this.commonLogger.info("CacheManager:getIdToken - Returning id token"),i[0])},e.prototype.getIdTokensByFilter=function(e,t){var n=this,r=t&&t.idToken||this.getTokenKeys().idToken,i=[];return r.forEach((function(t){if(n.idTokenKeyMatchesFilter(t,m({clientId:n.clientId},e))){var r=n.getIdTokenCredential(t);r&&n.credentialMatchesFilter(r,e)&&i.push(r)}})),i},e.prototype.idTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return(!t.clientId||-1!==n.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==n.indexOf(t.homeAccountId.toLowerCase()))},e.prototype.removeIdToken=function(e){this.removeItem(e)},e.prototype.removeRefreshToken=function(e){this.removeItem(e)},e.prototype.getAccessToken=function(e,t,n){var r=this;this.commonLogger.trace("CacheManager - getAccessToken called");var i=ht.createSearchScopes(t.scopes),o=t.authenticationScheme||Y.BEARER,a=o&&o.toLowerCase()!==Y.BEARER.toLowerCase()?L.ACCESS_TOKEN_WITH_AUTH_SCHEME:L.ACCESS_TOKEN,s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:a,clientId:this.clientId,realm:e.tenantId,target:i,tokenType:o,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},c=n&&n.accessToken||this.getTokenKeys().accessToken,u=[];c.forEach((function(e){if(r.accessTokenKeyMatchesFilter(e,s,!0)){var t=r.getAccessTokenCredential(e);t&&r.credentialMatchesFilter(t,s)&&u.push(t)}}));var l=u.length;return l<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):l>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),u.forEach((function(e){r.removeAccessToken(e.generateCredentialKey())})),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0])},e.prototype.accessTokenKeyMatchesFilter=function(e,t,n){var r=e.toLowerCase();if(t.clientId&&-1===r.indexOf(t.clientId.toLowerCase()))return!1;if(t.homeAccountId&&-1===r.indexOf(t.homeAccountId.toLowerCase()))return!1;if(t.realm&&-1===r.indexOf(t.realm.toLowerCase()))return!1;if(t.requestedClaimsHash&&-1===r.indexOf(t.requestedClaimsHash.toLowerCase()))return!1;if(t.target)for(var i=t.target.asArray(),o=0;o1)throw Ee.createMultipleMatchingAppMetadataInCacheError();return r[0]},e.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!(!t||t.familyId!==B)},e.prototype.matchHomeAccountId=function(e,t){return!("string"!==typeof e.homeAccountId||t!==e.homeAccountId)},e.prototype.matchLocalAccountId=function(e,t){return!("string"!==typeof e.localAccountId||t!==e.localAccountId)},e.prototype.matchUsername=function(e,t){return!("string"!==typeof e.username||t.toLowerCase()!==e.username.toLowerCase())},e.prototype.matchUserAssertionHash=function(e,t){return!(!e.userAssertionHash||t!==e.userAssertionHash)},e.prototype.matchEnvironment=function(e,t){var n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)},e.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},e.prototype.matchClientId=function(e,t){return!(!e.clientId||t!==e.clientId)},e.prototype.matchFamilyId=function(e,t){return!(!e.familyId||t!==e.familyId)},e.prototype.matchRealm=function(e,t){return!(!e.realm||t!==e.realm)},e.prototype.matchNativeAccountId=function(e,t){return!(!e.nativeAccountId||t!==e.nativeAccountId)},e.prototype.matchTarget=function(e,t){var n=e.credentialType!==L.ACCESS_TOKEN&&e.credentialType!==L.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var r=ht.fromString(e.target);return r.containsScopeSet(t)},e.prototype.matchTokenType=function(e,t){return!(!e.tokenType||e.tokenType!==t)},e.prototype.matchKeyId=function(e,t){return!(!e.keyId||e.keyId!==t)},e.prototype.isAppMetadata=function(e){return-1!==e.indexOf(R)},e.prototype.isAuthorityMetadata=function(e){return-1!==e.indexOf(F.CACHE_KEY)},e.prototype.generateAuthorityMetadataCacheKey=function(e){return F.CACHE_KEY+"-"+this.clientId+"-"+e},e.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},e}(),Mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.setAccount=function(){var e="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAccount=function(){var e="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setIdTokenCredential=function(){var e="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getIdTokenCredential=function(){var e="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setAccessTokenCredential=function(){var e="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAccessTokenCredential=function(){var e="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setRefreshTokenCredential=function(){var e="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getRefreshTokenCredential=function(){var e="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setAppMetadata=function(){var e="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAppMetadata=function(){var e="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setServerTelemetry=function(){var e="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getServerTelemetry=function(){var e="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setAuthorityMetadata=function(){var e="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAuthorityMetadata=function(){var e="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAuthorityMetadataKeys=function(){var e="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.setThrottlingCache=function(){var e="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getThrottlingCache=function(){var e="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.removeItem=function(){var e="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.containsKey=function(){var e="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getKeys=function(){var e="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getAccountKeys=function(){var e="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.getTokenKeys=function(){var e="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t.prototype.clear=function(){return y(this,void 0,void 0,(function(){var e;return v(this,(function(t){throw e="Storage interface - clear() has not been implemented for the cacheStorage interface.",ce.createUnexpectedError(e)}))}))},t.prototype.updateCredentialCacheKey=function(){var e="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw ce.createUnexpectedError(e)},t}(bt),wt=function(){function e(){}return e.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},e.isTokenExpired=function(t,n){var r=Number(t)||0,i=e.nowSeconds()+n;return i>r},e.wasClockTurnedBack=function(t){var n=Number(t);return n>e.nowSeconds()},e.delay=function(e,t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))},e}(),St=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.createAccessTokenEntity=function(e,n,r,i,o,a,s,c,u,l,h,d,p,f,g){var m,y,v=new t;v.homeAccountId=e,v.credentialType=L.ACCESS_TOKEN,v.secret=r;var b=wt.nowSeconds();if(v.cachedAt=b.toString(),v.expiresOn=s.toString(),v.extendedExpiresOn=c.toString(),l&&(v.refreshOn=l.toString()),v.environment=n,v.clientId=i,v.realm=o,v.target=a,v.userAssertionHash=d,v.tokenType=Le.isEmpty(h)?Y.BEARER:h,f&&(v.requestedClaims=f,v.requestedClaimsHash=g),(null===(m=v.tokenType)||void 0===m?void 0:m.toLowerCase())!==Y.BEARER.toLowerCase())switch(v.credentialType=L.ACCESS_TOKEN_WITH_AUTH_SCHEME,v.tokenType){case Y.POP:var M=mt.extractTokenClaims(r,u);if(!(null===(y=null===M||void 0===M?void 0:M.cnf)||void 0===y?void 0:y.kid))throw Ee.createTokenClaimsRequiredError();v.keyId=M.cnf.kid;break;case Y.SSH:v.keyId=p}return v},t.isAccessTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e["credentialType"]===L.ACCESS_TOKEN||e["credentialType"]===L.ACCESS_TOKEN_WITH_AUTH_SCHEME))},t}(st),Ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.createRefreshTokenEntity=function(e,n,r,i,o,a){var s=new t;return s.clientId=i,s.credentialType=L.REFRESH_TOKEN,s.environment=n,s.homeAccountId=e,s.secret=r,s.userAssertionHash=a,o&&(s.familyId=o),s},t.isRefreshTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e["credentialType"]===L.REFRESH_TOKEN)},t}(st),Ct=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(e,t){var n=[R,e,t];return n.join(E.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,n,r){var i=new e;return i.clientId=t,i.environment=n,r&&(i.familyId=r),i},e.isAppMetadataEntity=function(e,t){return!!t&&(0===e.indexOf(R)&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"))},e}(),xt=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(e,t){var n=0===e.indexOf(V.CACHE_KEY),r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&r},e}(),Tt=function(){function e(){this.expiresAt=wt.nowSeconds()+F.REFRESH_TIME_SECONDS}return e.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},e.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},e.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},e.prototype.resetExpiresAt=function(){this.expiresAt=wt.nowSeconds()+F.REFRESH_TIME_SECONDS},e.prototype.isExpired=function(){return this.expiresAt<=wt.nowSeconds()},e.isAuthorityMetadataEntity=function(e,t){return!!t&&(0===e.indexOf(F.CACHE_KEY)&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"))},e}(),It=function(){function e(){}return e.isThrottlingEntity=function(e,t){var n=!1;e&&(n=0===e.indexOf(K.THROTTLING_PREFIX));var r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),n&&r},e}(),Nt=function(){function e(){}return e.setRequestState=function(t,n,r){var i=e.generateLibraryState(t,r);return Le.isEmpty(n)?i:""+i+x.RESOURCE_DELIM+n},e.generateLibraryState=function(e,t){if(!e)throw Ee.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};t&&(n.meta=t);var r=JSON.stringify(n);return e.base64Encode(r)},e.parseRequestState=function(e,t){if(!e)throw Ee.createNoCryptoObjectError("parseRequestState");if(Le.isEmpty(t))throw Ee.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(x.RESOURCE_DELIM),r=n[0],i=n.length>1?n.slice(1).join(x.RESOURCE_DELIM):x.EMPTY_STRING,o=e.base64Decode(r),a=JSON.parse(o);return{userRequestState:Le.isEmpty(i)?x.EMPTY_STRING:i,libraryState:a}}catch(s){throw Ee.createInvalidStateError(t,s)}},e}(); /*! @azure/msal-common v13.3.1 2023-10-27 */(function(e){e["HOME_ACCOUNT_ID"]="home_account_id",e["UPN"]="UPN"})(ft||(ft={})); /*! @azure/msal-browser v2.38.3 2023-10-27 */ var jt,At,kt=function(){function e(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return e.prototype.validateWindowStorage=function(e){if(e!==X.LocalStorage&&e!==X.SessionStorage)throw Ve.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw Ve.createStorageNotSupportedError(e)},e.prototype.getItem=function(e){return this.windowStorage.getItem(e)},e.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},e.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},e.prototype.getKeys=function(){return Object.keys(this.windowStorage)},e.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},e}(),Dt=function(){function e(t){if(this._urlString=t,Le.isEmpty(this._urlString))throw lt.createUrlEmptyError();Le.isEmpty(this.getHash())&&(this._urlString=e.canonicalizeUri(t))}return Object.defineProperty(e.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),e.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return Le.endsWith(t,"?")?t=t.slice(0,-1):Le.endsWith(t,"?/")&&(t=t.slice(0,-2)),Le.endsWith(t,"/")||(t+="/"),t}return e},e.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw lt.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw lt.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw lt.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(e,t){return Le.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},e.removeHashFromUrl=function(t){return e.canonicalizeUri(t.split("#")[0])},e.prototype.replaceTenantPath=function(t){var n=this.getUrlComponents(),r=n.PathSegments;return!t||0===r.length||r[0]!==S.COMMON&&r[0]!==S.ORGANIZATIONS||(r[0]=t),e.constructAuthorityUriFromObject(n)},e.prototype.getHash=function(){return e.parseHash(this.urlString)},e.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw lt.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},r=n.AbsolutePath.split("/");return r=r.filter((function(e){return e&&e.length>0})),n.PathSegments=r,!Le.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},e.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw lt.createUrlParseError("Given url string: "+e);return n[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===x.FORWARD_SLASH){var r=new e(n),i=r.getUrlComponents();return i.Protocol+"//"+i.HostNameAndPort+t}return t},e.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):x.EMPTY_STRING},e.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):x.EMPTY_STRING},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(Le.isEmpty(t))return{};var n=e.parseHash(t),r=Le.queryStringToObject(Le.isEmpty(n)?t:n);if(!r)throw Ee.createHashNotDeserializedError(JSON.stringify(r));return r},e.getDeserializedQueryString=function(t){if(Le.isEmpty(t))return{};var n=e.parseQueryString(t),r=Le.queryStringToObject(Le.isEmpty(n)?t:n);if(!r)throw Ee.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if(Le.isEmpty(t)||t.indexOf("=")<0)return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e}(),Et=function(){function e(){}return e.extractBrowserRequestState=function(e,t){if(Le.isEmpty(t))return null;try{var n=Nt.parseRequestState(e,t);return n.libraryState.meta}catch(r){throw Ee.createInvalidStateError(t,r)}},e.parseServerResponseFromHash=function(e){if(!e)return{};var t=new Dt(e);return Dt.getDeserializedHash(t.getHash())},e}(),Lt=function(e){function t(t,n,r,i){var o=e.call(this,t,r,i)||this;return o.COOKIE_LIFE_MULTIPLIER=864e5,o.cacheConfig=n,o.logger=i,o.internalStorage=new Ke,o.browserStorage=o.setupBrowserStorage(o.cacheConfig.cacheLocation),o.temporaryCacheStorage=o.setupTemporaryCacheStorage(o.cacheConfig.temporaryCacheLocation,o.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(o.migrateCacheEntries(),o.createKeyMaps()),o}return i(t,e),t.prototype.setupBrowserStorage=function(e){switch(e){case X.LocalStorage:case X.SessionStorage:try{return new kt(e)}catch(t){this.logger.verbose(t);break}}return this.cacheConfig.cacheLocation=X.MemoryStorage,new Ke},t.prototype.setupTemporaryCacheStorage=function(e,t){switch(t){case X.LocalStorage:case X.SessionStorage:try{return new kt(e||X.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case X.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,t=x.CACHE_PREFIX+"."+w.ID_TOKEN,n=x.CACHE_PREFIX+"."+w.CLIENT_INFO,r=x.CACHE_PREFIX+"."+w.ERROR,i=x.CACHE_PREFIX+"."+w.ERROR_DESC,o=this.browserStorage.getItem(t),a=this.browserStorage.getItem(n),s=this.browserStorage.getItem(r),c=this.browserStorage.getItem(i),u=[o,a,s,c],l=[w.ID_TOKEN,w.CLIENT_INFO,w.ERROR,w.ERROR_DESC];l.forEach((function(t,n){return e.migrateCacheEntry(t,u[n])}))},t.prototype.migrateCacheEntry=function(e,t){t&&this.setTemporaryCache(e,t,!0)},t.prototype.createKeyMaps=function(){var e=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var t=this.getItem(ne.ACCOUNT_KEYS),n=this.getItem(ne.TOKEN_KEYS+"."+this.clientId);if(t&&n)this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");else{var r=this.browserStorage.getKeys();r.forEach((function(t){if(e.isCredentialKey(t)){var n=e.getItem(t);if(n){var r=e.validateAndParseJson(n);if(r&&r.hasOwnProperty("credentialType"))switch(r["credentialType"]){case L.ID_TOKEN:if(ct.isIdTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+t+" found, saving key to token key map");var i=bt.toObject(new ct,r),o=e.updateCredentialCacheKey(t,i);return void e.addTokenKey(o,L.ID_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+t);break;case L.ACCESS_TOKEN:case L.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(St.isAccessTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+t+" found, saving key to token key map");var a=bt.toObject(new St,r);o=e.updateCredentialCacheKey(t,a);return void e.addTokenKey(o,L.ACCESS_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+t);break;case L.REFRESH_TOKEN:if(Ot.isRefreshTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+t+" found, saving key to token key map");var s=bt.toObject(new Ot,r);o=e.updateCredentialCacheKey(t,s);return void e.addTokenKey(o,L.REFRESH_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+t);break}}}if(e.isAccountKey(t)){n=e.getItem(t);if(n){var c=e.validateAndParseJson(n);c&>.isAccountEntity(c)&&(e.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+t+" found, saving key to account key map"),e.addAccountKeyToMap(t))}}}))}},t.prototype.validateAndParseJson=function(e){try{var t=JSON.parse(e);return t&&"object"===typeof t?t:null}catch(n){return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,t){this.browserStorage.setItem(e,t)},t.prototype.getAccount=function(e){this.logger.trace("BrowserCacheManager.getAccount called");var t=this.getItem(e);if(!t)return this.removeAccountKeyFromMap(e),null;var n=this.validateAndParseJson(t);return n&>.isAccountEntity(n)?bt.toObject(new gt,n):(this.removeAccountKeyFromMap(e),null)},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var t=e.generateAccountKey();this.setItem(t,JSON.stringify(e)),this.addAccountKeyToMap(t)},t.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var e=this.getItem(ne.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},t.prototype.addAccountKeyToMap=function(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+e);var t=this.getAccountKeys();-1===t.indexOf(e)?(t.push(e),this.setItem(ne.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},t.prototype.removeAccountKeyFromMap=function(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+e);var t=this.getAccountKeys(),n=t.indexOf(e);n>-1?(t.splice(n,1),this.setItem(ne.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},t.prototype.removeAccount=function(t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return e.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]}))}))},t.prototype.removeIdToken=function(t){e.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,L.ID_TOKEN)},t.prototype.removeAccessToken=function(t){return u(this,void 0,void 0,(function(){return l(this,(function(n){return e.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,L.ACCESS_TOKEN),[2]}))}))},t.prototype.removeRefreshToken=function(t){e.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,L.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var e=this.getItem(ne.TOKEN_KEYS+"."+this.clientId);if(e){var t=this.validateAndParseJson(e);if(t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},t.prototype.addTokenKey=function(e,t){this.logger.trace("BrowserCacheManager addTokenKey called");var n=this.getTokenKeys();switch(t){case L.ID_TOKEN:-1===n.idToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),n.idToken.push(e));break;case L.ACCESS_TOKEN:-1===n.accessToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),n.accessToken.push(e));break;case L.REFRESH_TOKEN:-1===n.refreshToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),n.refreshToken.push(e));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+t),Ee.createUnexpectedCredentialTypeError()}this.setItem(ne.TOKEN_KEYS+"."+this.clientId,JSON.stringify(n))},t.prototype.removeTokenKey=function(e,t){this.logger.trace("BrowserCacheManager removeTokenKey called");var n=this.getTokenKeys();switch(t){case L.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+e+" from map");var r=n.idToken.indexOf(e);r>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),n.idToken.splice(r,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case L.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+e+" from map");var i=n.accessToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),n.accessToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case L.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+e+" from map");var o=n.refreshToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),n.refreshToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+t),Ee.createUnexpectedCredentialTypeError()}this.setItem(ne.TOKEN_KEYS+"."+this.clientId,JSON.stringify(n))},t.prototype.getIdTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,L.ID_TOKEN),null;var n=this.validateAndParseJson(t);return n&&ct.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),bt.toObject(new ct,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,L.ID_TOKEN),null)},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,L.ID_TOKEN)},t.prototype.getAccessTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,L.ACCESS_TOKEN),null;var n=this.validateAndParseJson(t);return n&&St.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),bt.toObject(new St,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,L.ACCESS_TOKEN),null)},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,L.ACCESS_TOKEN)},t.prototype.getRefreshTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,L.REFRESH_TOKEN),null;var n=this.validateAndParseJson(t);return n&&Ot.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),bt.toObject(new Ot,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,L.REFRESH_TOKEN),null)},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,L.REFRESH_TOKEN)},t.prototype.getAppMetadata=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&Ct.isAppMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),bt.toObject(new Ct,n)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var t=e.generateAppMetadataKey();this.setItem(t,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&xt.isServerTelemetryEntity(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),bt.toObject(new xt,n)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},t.prototype.setServerTelemetry=function(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t))},t.prototype.getAuthorityMetadata=function(e){var t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&Tt.isAuthorityMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),bt.toObject(new Tt,n)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this,t=this.internalStorage.getKeys();return t.filter((function(t){return e.isAuthorityMetadata(t)}))},t.prototype.setWrapperMetadata=function(e,t){this.internalStorage.setItem(re.WRAPPER_SKU,e),this.internalStorage.setItem(re.WRAPPER_VER,t)},t.prototype.getWrapperMetadata=function(){var e=this.internalStorage.getItem(re.WRAPPER_SKU)||x.EMPTY_STRING,t=this.internalStorage.getItem(re.WRAPPER_VER)||x.EMPTY_STRING;return[e,t]},t.prototype.setAuthorityMetadata=function(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(w.ACTIVE_ACCOUNT_FILTERS),t=this.getItem(e);if(!t){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var n=this.generateCacheKey(w.ACTIVE_ACCOUNT),r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var i=this.getAccountInfoByFilter({localAccountId:r})[0]||null;return i?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(i),i):null}var o=this.validateAndParseJson(t);return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:o.homeAccountId,localAccountId:o.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},t.prototype.setActiveAccount=function(e){var t=this.generateCacheKey(w.ACTIVE_ACCOUNT_FILTERS),n=this.generateCacheKey(w.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");var r={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId};this.browserStorage.setItem(t,JSON.stringify(r)),this.browserStorage.setItem(n,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t),this.browserStorage.removeItem(n)},t.prototype.getAccountInfoByFilter=function(e){var t=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+t.length+" accounts found"),t.filter((function(t){return(!e.username||e.username.toLowerCase()===t.username.toLowerCase())&&((!e.homeAccountId||e.homeAccountId===t.homeAccountId)&&((!e.localAccountId||e.localAccountId===t.localAccountId)&&((!e.tenantId||e.tenantId===t.tenantId)&&(!e.environment||e.environment===t.environment))))}))},t.prototype.getAccountInfoByHints=function(e,t){var n=this.getAllAccounts().filter((function(n){if(t){var r=n.idTokenClaims&&n.idTokenClaims["sid"];return t===r}return!!e&&e===n.username}));if(1===n.length)return n[0];if(n.length>1)throw Ee.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&It.isThrottlingEntity(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),bt.toObject(new It,n)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},t.prototype.setThrottlingCache=function(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t))},t.prototype.getTemporaryCache=function(e,t){var n=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var r=this.getItemCookie(n);if(r)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),r}var i=this.temporaryCacheStorage.getItem(n);if(!i){if(this.cacheConfig.cacheLocation===X.LocalStorage){var o=this.browserStorage.getItem(n);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),o}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),i},t.prototype.setTemporaryCache=function(e,t,n){var r=n?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(r,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(r,t))},t.prototype.removeItem=function(e){this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))},t.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},t.prototype.getKeys=function(){return d(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return u(this,void 0,void 0,(function(){var e=this;return l(this,(function(t){switch(t.label){case 0:return[4,this.removeAllAccounts()];case 1:return t.sent(),this.removeAppMetadata(),this.getKeys().forEach((function(t){!e.browserStorage.containsKey(t)&&!e.temporaryCacheStorage.containsKey(t)||-1===t.indexOf(x.CACHE_PREFIX)&&-1===t.indexOf(e.clientId)||e.removeItem(t)})),this.internalStorage.clear(),[2]}}))}))},t.prototype.clearTokensAndKeysWithClaims=function(){return u(this,void 0,void 0,(function(){var e,t,n=this;return l(this,(function(r){switch(r.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),e=this.getTokenKeys(),t=[],e.accessToken.forEach((function(e){var r=n.getAccessTokenCredential(e);(null===r||void 0===r?void 0:r.requestedClaimsHash)&&e.includes(r.requestedClaimsHash.toLowerCase())&&t.push(n.removeAccessToken(e))})),[4,Promise.all(t)];case 1:return r.sent(),t.length>0&&this.logger.warning(t.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}}))}))},t.prototype.setItemCookie=function(e,t,n){var r=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/;SameSite=Lax;";if(n){var i=this.getCookieExpirationTime(n);r+="expires="+i+";"}this.cacheConfig.secureCookies&&(r+="Secure;"),document.cookie=r},t.prototype.getItemCookie=function(e){for(var t=encodeURIComponent(e)+"=",n=document.cookie.split(";"),r=0;r=300)&&(t===ee.POST?o(_e.createPostRequestFailedError("Failed with status "+a.status,e)):o(_e.createGetRequestFailedError("Failed with status "+a.status,e)));try{var n=JSON.parse(a.responseText),s={headers:r.getHeaderDict(a),body:n,status:a.status};i(s)}catch(c){o(_e.createFailedToParseNetworkResponseError(e))}},a.onerror=function(){window.navigator.onLine?t===ee.POST?o(_e.createPostRequestFailedError("Failed with status "+a.status,e)):o(_e.createGetRequestFailedError("Failed with status "+a.status,e)):o(_e.createNoNetworkConnectivityError())},t===ee.POST&&n&&n.body)a.send(n.body);else{if(t!==ee.GET)throw _e.createHttpMethodNotImplementedError(t);a.send()}}))},e.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach((function(t){e.setRequestHeader(t,n[t])}))}},e.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),n=t.trim().split(/[\r\n]+/),r={};return n.forEach((function(e){var t=e.split(": "),n=t.shift(),i=t.join(": ");n&&i&&(r[n]=i)})),r},e}(),Kt=function(){function e(){}return e.clearHash=function(e){e.location.hash=x.EMPTY_STRING,"function"===typeof e.history.replaceState&&e.history.replaceState(null,x.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},e.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):x.EMPTY_STRING},e.isInIframe=function(){return window.parent!==window},e.isInPopup=function(){return"undefined"!==typeof window&&!!window.opener&&window.opener!==window&&"string"===typeof window.name&&0===window.name.indexOf(fe.POPUP_NAME_PREFIX+".")},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var e=new Dt(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Wt:new Gt},e.blockReloadInHiddenIframes=function(){var t=Dt.hashContainsKnownProperties(window.location.hash);if(t&&e.isInIframe())throw _e.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===oe.Redirect&&r&&!n)throw _e.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw _e.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(e){if(!e)throw _e.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw _e.createNativeBrokerCalledBeforeInitialize()},e.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/"),i=t>0||n>0,o=r>0;return i||o},e}(),Zt=function(){function e(){}return e.prototype.navigateInternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.prototype.navigateExternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise((function(e){setTimeout((function(){e(!0)}),t.timeout)}))},e}(),Jt=6e4,Xt=6e3,en=3e4,tn=2e3; /*! @azure/msal-browser v2.38.3 2023-10-27 */function nn(e,t){var n=e.auth,r=e.cache,i=e.system,o=e.telemetry,a={clientId:x.EMPTY_STRING,authority:""+x.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:x.EMPTY_STRING,authorityMetadata:x.EMPTY_STRING,redirectUri:x.EMPTY_STRING,postLogoutRedirectUri:x.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:jt.AAD,azureCloudOptions:{azureCloudInstance:At.None,tenant:x.EMPTY_STRING},skipAuthorityMetadataCache:!1},c={cacheLocation:X.SessionStorage,temporaryCacheLocation:X.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!r||r.cacheLocation!==X.LocalStorage),claimsBasedCachingEnabled:!0},u={loggerCallback:function(){},logLevel:Je.Info,piiLoggingEnabled:!1},l=s(s({},Pt),{loggerOptions:u,networkClient:t?Kt.getBrowserNetworkClient():$t,navigationClient:new Zt,loadFrameTimeout:0,windowHashTimeout:(null===i||void 0===i?void 0:i.loadFrameTimeout)||Jt,iframeHashTimeout:(null===i||void 0===i?void 0:i.loadFrameTimeout)||Xt,navigateFrameWait:t&&Kt.detectIEOrEdge()?500:0,redirectNavigationTimeout:en,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(null===i||void 0===i?void 0:i.nativeBrokerHandshakeTimeout)||tn,pollIntervalMilliseconds:fe.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),h=s(s({},i),{loggerOptions:(null===i||void 0===i?void 0:i.loggerOptions)||u}),d={application:{appName:x.EMPTY_STRING,appVersion:x.EMPTY_STRING}},p={auth:s(s({},a),n),cache:s(s({},c),r),system:s(s({},l),h),telemetry:s(s({},d),o)};return p} /*! @azure/msal-browser v2.38.3 2023-10-27 */var rn,on="@azure/msal-browser",an="2.38.3";(function(e){e["INITIALIZE_START"]="msal:initializeStart",e["INITIALIZE_END"]="msal:initializeEnd",e["ACCOUNT_ADDED"]="msal:accountAdded",e["ACCOUNT_REMOVED"]="msal:accountRemoved",e["LOGIN_START"]="msal:loginStart",e["LOGIN_SUCCESS"]="msal:loginSuccess",e["LOGIN_FAILURE"]="msal:loginFailure",e["ACQUIRE_TOKEN_START"]="msal:acquireTokenStart",e["ACQUIRE_TOKEN_SUCCESS"]="msal:acquireTokenSuccess",e["ACQUIRE_TOKEN_FAILURE"]="msal:acquireTokenFailure",e["ACQUIRE_TOKEN_NETWORK_START"]="msal:acquireTokenFromNetworkStart",e["SSO_SILENT_START"]="msal:ssoSilentStart",e["SSO_SILENT_SUCCESS"]="msal:ssoSilentSuccess",e["SSO_SILENT_FAILURE"]="msal:ssoSilentFailure",e["ACQUIRE_TOKEN_BY_CODE_START"]="msal:acquireTokenByCodeStart",e["ACQUIRE_TOKEN_BY_CODE_SUCCESS"]="msal:acquireTokenByCodeSuccess",e["ACQUIRE_TOKEN_BY_CODE_FAILURE"]="msal:acquireTokenByCodeFailure",e["HANDLE_REDIRECT_START"]="msal:handleRedirectStart",e["HANDLE_REDIRECT_END"]="msal:handleRedirectEnd",e["POPUP_OPENED"]="msal:popupOpened",e["LOGOUT_START"]="msal:logoutStart",e["LOGOUT_SUCCESS"]="msal:logoutSuccess",e["LOGOUT_FAILURE"]="msal:logoutFailure",e["LOGOUT_END"]="msal:logoutEnd",e["RESTORE_FROM_BFCACHE"]="msal:restoreFromBFCache"})(rn||(rn={})); /*! @azure/msal-browser v2.38.3 2023-10-27 */ var sn,cn=function(){function e(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return e.prototype.addEventCallback=function(e){if("undefined"!==typeof window){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},e.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},e.prototype.enableAccountStorageEvents=function(){"undefined"!==typeof window&&(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},e.prototype.disableAccountStorageEvents=function(){"undefined"!==typeof window&&(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},e.prototype.emitEvent=function(e,t,n,r){var i=this;if("undefined"!==typeof window){var o={eventType:e,interactionType:t||null,payload:n||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach((function(t,n){i.logger.verbose("Emitting event to callback "+n+": "+e),t.apply(null,[o])}))}},e.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if("object"!==typeof n||!gt.isAccountEntity(n))return;var r=bt.toObject(new gt,n),i=r.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(rn.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(rn.ACCOUNT_REMOVED,void 0,i))}catch(e){return}},e}(),un=function(){function e(){}return e.generateThrottlingStorageKey=function(e){return K.THROTTLING_PREFIX+"."+JSON.stringify(e)},e.preProcess=function(t,n){var r,i=e.generateThrottlingStorageKey(n),o=t.getThrottlingCache(i);if(o){if(o.throttleTime=500&&e.status<600},e.checkResponseForRetryAfter=function(e){return!!e.headers&&(e.headers.hasOwnProperty(M.RETRY_AFTER)&&(e.status<200||e.status>=300))},e.calculateThrottleTime=function(e){var t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(1e3*Math.min(n+(t||K.DEFAULT_THROTTLE_TIME_SECONDS),n+K.DEFAULT_MAX_THROTTLE_TIME_SECONDS))},e.removeThrottle=function(e,t,n,r){var i={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:r,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},o=this.generateThrottlingStorageKey(i);e.removeItem(o)},e}(),ln=function(){function e(e,t){this.networkClient=e,this.cacheManager=t}return e.prototype.sendPostRequest=function(e,t,n){return y(this,void 0,void 0,(function(){var r,i;return v(this,(function(o){switch(o.label){case 0:un.preProcess(this.cacheManager,e),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return r=o.sent(),[3,4];case 3:throw i=o.sent(),i instanceof ce?i:Ee.createNetworkError(t,i);case 4:return un.postProcess(this.cacheManager,e,r),[2,r]}}))}))},e}(),hn=function(){function e(){}return e.validateRedirectUri=function(e){if(Le.isEmpty(e))throw lt.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var n in j)t.push(j[n]);if(t.indexOf(e)<0)throw lt.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(t){throw lt.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if(Le.isEmpty(e)||Le.isEmpty(t))throw lt.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if([_.PLAIN,_.S256].indexOf(e)<0)throw lt.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(e,t){return e?(t.forEach((function(t,n){e[n]&&delete e[n]})),Object.fromEntries(Object.entries(e).filter((function(e){var t=e[1];return""!==t})))):{}},e}(),dn=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(O.RESPONSE_TYPE,encodeURIComponent(x.CODE_RESPONSE_TYPE))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(O.RESPONSE_TYPE,encodeURIComponent(x.TOKEN_RESPONSE_TYPE+" "+x.ID_TOKEN_RESPONSE_TYPE))},e.prototype.addResponseMode=function(e){this.parameters.set(O.RESPONSE_MODE,encodeURIComponent(e||A.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(O.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var n=t?b(e||[],T):e||[],r=new ht(n);this.parameters.set(O.SCOPE,encodeURIComponent(r.printScopes()))},e.prototype.addClientId=function(e){this.parameters.set(O.CLIENT_ID,encodeURIComponent(e))},e.prototype.addRedirectUri=function(e){hn.validateRedirectUri(e),this.parameters.set(O.REDIRECT_URI,encodeURIComponent(e))},e.prototype.addPostLogoutRedirectUri=function(e){hn.validateRedirectUri(e),this.parameters.set(O.POST_LOGOUT_URI,encodeURIComponent(e))},e.prototype.addIdTokenHint=function(e){this.parameters.set(O.ID_TOKEN_HINT,encodeURIComponent(e))},e.prototype.addDomainHint=function(e){this.parameters.set(N.DOMAIN_HINT,encodeURIComponent(e))},e.prototype.addLoginHint=function(e){this.parameters.set(N.LOGIN_HINT,encodeURIComponent(e))},e.prototype.addCcsUpn=function(e){this.parameters.set(M.CCS_HEADER,encodeURIComponent("UPN:"+e))},e.prototype.addCcsOid=function(e){this.parameters.set(M.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},e.prototype.addSid=function(e){this.parameters.set(N.SID,encodeURIComponent(e))},e.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);hn.validateClaims(n),this.parameters.set(O.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(e){this.parameters.set(O.CLIENT_REQUEST_ID,encodeURIComponent(e))},e.prototype.addLibraryInfo=function(e){this.parameters.set(O.X_CLIENT_SKU,e.sku),this.parameters.set(O.X_CLIENT_VER,e.version),e.os&&this.parameters.set(O.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(O.X_CLIENT_CPU,e.cpu)},e.prototype.addApplicationTelemetry=function(e){(null===e||void 0===e?void 0:e.appName)&&this.parameters.set(O.X_APP_NAME,e.appName),(null===e||void 0===e?void 0:e.appVersion)&&this.parameters.set(O.X_APP_VER,e.appVersion)},e.prototype.addPrompt=function(e){hn.validatePrompt(e),this.parameters.set(""+O.PROMPT,encodeURIComponent(e))},e.prototype.addState=function(e){Le.isEmpty(e)||this.parameters.set(O.STATE,encodeURIComponent(e))},e.prototype.addNonce=function(e){this.parameters.set(O.NONCE,encodeURIComponent(e))},e.prototype.addCodeChallengeParams=function(e,t){if(hn.validateCodeChallengeParams(e,t),!e||!t)throw lt.createInvalidCodeChallengeParamsError();this.parameters.set(O.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(O.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},e.prototype.addAuthorizationCode=function(e){this.parameters.set(O.CODE,encodeURIComponent(e))},e.prototype.addDeviceCode=function(e){this.parameters.set(O.DEVICE_CODE,encodeURIComponent(e))},e.prototype.addRefreshToken=function(e){this.parameters.set(O.REFRESH_TOKEN,encodeURIComponent(e))},e.prototype.addCodeVerifier=function(e){this.parameters.set(O.CODE_VERIFIER,encodeURIComponent(e))},e.prototype.addClientSecret=function(e){this.parameters.set(O.CLIENT_SECRET,encodeURIComponent(e))},e.prototype.addClientAssertion=function(e){Le.isEmpty(e)||this.parameters.set(O.CLIENT_ASSERTION,encodeURIComponent(e))},e.prototype.addClientAssertionType=function(e){Le.isEmpty(e)||this.parameters.set(O.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},e.prototype.addOboAssertion=function(e){this.parameters.set(O.OBO_ASSERTION,encodeURIComponent(e))},e.prototype.addRequestTokenUse=function(e){this.parameters.set(O.REQUESTED_TOKEN_USE,encodeURIComponent(e))},e.prototype.addGrantType=function(e){this.parameters.set(O.GRANT_TYPE,encodeURIComponent(e))},e.prototype.addClientInfo=function(){this.parameters.set(U,"1")},e.prototype.addExtraQueryParameters=function(e){var t=this,n=hn.sanitizeEQParams(e,this.parameters);Object.keys(n).forEach((function(n){t.parameters.set(n,e[n])}))},e.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(e)try{n=JSON.parse(e)}catch(r){throw lt.createInvalidClaimsRequestError()}else n={};return t&&t.length>0&&(n.hasOwnProperty(C.ACCESS_TOKEN)||(n[C.ACCESS_TOKEN]={}),n[C.ACCESS_TOKEN][C.XMS_CC]={values:t}),JSON.stringify(n)},e.prototype.addUsername=function(e){this.parameters.set(H.username,encodeURIComponent(e))},e.prototype.addPassword=function(e){this.parameters.set(H.password,encodeURIComponent(e))},e.prototype.addPopToken=function(e){Le.isEmpty(e)||(this.parameters.set(O.TOKEN_TYPE,Y.POP),this.parameters.set(O.REQ_CNF,encodeURIComponent(e)))},e.prototype.addSshJwk=function(e){Le.isEmpty(e)||(this.parameters.set(O.TOKEN_TYPE,Y.SSH),this.parameters.set(O.REQ_CNF,encodeURIComponent(e)))},e.prototype.addServerTelemetry=function(e){this.parameters.set(O.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(O.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(O.X_MS_LIB_CAPABILITY,K.X_MS_LIB_CAPABILITY_VALUE)},e.prototype.addLogoutHint=function(e){this.parameters.set(O.LOGOUT_HINT,encodeURIComponent(e))},e.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach((function(t,n){e.push(n+"="+t)})),e.join("&")},e}(),pn=function(){function e(e,t){this.config=Qt(e),this.logger=new nt(this.config.loggerOptions,yt,vt),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new ln(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return e.prototype.createTokenRequestHeaders=function(e){var t={};if(t[M.CONTENT_TYPE]=x.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case ft.HOME_ACCOUNT_ID:try{var n=pt(e.credential);t[M.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case ft.UPN:t[M.CCS_HEADER]="UPN: "+e.credential;break}return t},e.prototype.executePostToTokenEndpoint=function(e,t,n,r){return y(this,void 0,void 0,(function(){var i;return v(this,(function(o){switch(o.label){case 0:return[4,this.networkManager.sendPostRequest(r,e,{body:t,headers:n})];case 1:return i=o.sent(),this.config.serverTelemetryManager&&i.status<500&&429!==i.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}}))}))},e.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw Ee.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},e.prototype.createTokenQueryParameters=function(e){var t=new dn;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},e}(),fn=function(){function e(e,t,n,r,i){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=r||null,this.appMetadata=i||null}return e}(); /*! @azure/msal-common v13.3.1 2023-10-27 */(function(e){e["SW"]="sw",e["UHW"]="uhw"})(sn||(sn={}));var gn=function(){function e(e,t){this.cryptoUtils=e,this.performanceClient=t}return e.prototype.generateCnf=function(e){var t,n;return y(this,void 0,void 0,(function(){var r,i,a;return v(this,(function(s){switch(s.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.PopTokenGenerateCnf,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return r=s.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(r)),a={kid:r.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}}))}))},e.prototype.generateKid=function(e){var t;return y(this,void 0,void 0,(function(){var n;return v(this,(function(r){switch(r.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return n=r.sent(),[2,{kid:n,xms_ksl:sn.SW}]}}))}))},e.prototype.signPopToken=function(e,t,n){return y(this,void 0,void 0,(function(){return v(this,(function(r){return[2,this.signPayload(e,t,n)]}))}))},e.prototype.signPayload=function(e,t,n,r){return y(this,void 0,void 0,(function(){var i,o,a,s,c,u;return v(this,(function(l){switch(l.label){case 0:return i=n.resourceRequestMethod,o=n.resourceRequestUri,a=n.shrClaims,s=n.shrNonce,c=o?new Dt(o):void 0,u=null===c||void 0===c?void 0:c.getUrlComponents(),[4,this.cryptoUtils.signJwt(m({at:e,ts:wt.nowSeconds(),m:null===i||void 0===i?void 0:i.toUpperCase(),u:null===u||void 0===u?void 0:u.HostNameAndPort,nonce:s||this.cryptoUtils.createNewGuid(),p:null===u||void 0===u?void 0:u.AbsolutePath,q:(null===u||void 0===u?void 0:u.QueryString)?[[],u.QueryString]:void 0,client_claims:a||void 0},r),t,n.correlationId)];case 1:return[2,l.sent()]}}))}))},e}(),mn=function(){function e(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(e.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e}(),yn=function(){function e(e,t,n,r,i,o,a){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=r,this.serializableCache=i,this.persistencePlugin=o,this.performanceClient=a}return e.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?Ee.createStateNotFoundError("Cached State"):Ee.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw Ee.createStateMismatchError();if(e.error||e.error_description||e.suberror){if(pe.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new pe(e.error||x.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||x.EMPTY_STRING,e.trace_id||x.EMPTY_STRING,e.correlation_id||x.EMPTY_STRING,e.claims||x.EMPTY_STRING);throw new ue(e.error||x.EMPTY_STRING,e.error_description,e.suberror)}e.client_info&&dt(e.client_info,n)},e.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(pe.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new pe(e.error,e.error_description,e.suberror,e.timestamp||x.EMPTY_STRING,e.trace_id||x.EMPTY_STRING,e.correlation_id||x.EMPTY_STRING,e.claims||x.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new ue(e.error,t,e.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,i,a,s,c,u,l){var h;return y(this,void 0,void 0,(function(){var d,p,f,g,m,y,b;return v(this,(function(v){switch(v.label){case 0:if(null===(h=this.performanceClient)||void 0===h||h.addQueueMeasurement(o.HandleServerTokenResponse,t.correlation_id),t.id_token){if(d=new mt(t.id_token||x.EMPTY_STRING,this.cryptoObj),a&&!Le.isEmpty(a.nonce)&&d.claims.nonce!==a.nonce)throw Ee.createNonceMismatchError();if(i.maxAge||0===i.maxAge){if(p=d.claims.auth_time,!p)throw Ee.createAuthTimeNotFoundError();mt.checkMaxAge(p,i.maxAge)}}this.homeAccountIdentifier=gt.generateHomeAccountId(t.client_info||x.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,d),a&&a.state&&(f=Nt.parseRequestState(this.cryptoObj,a.state)),t.key_id=t.key_id||i.sshKid||void 0,g=this.generateCacheRecord(t,n,r,i,d,s,a),v.label=1;case 1:return v.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new mn(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:v.sent(),v.label=3;case 3:return c&&!u&&g.account&&(y=g.account.generateAccountKey(),b=this.cacheStorage.getAccount(y),!b)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,n,g,!1,i,d,f,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(g)];case 4:return v.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:v.sent(),v.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,g,!1,i,d,f,t,l)]}}))}))},e.prototype.generateCacheRecord=function(e,t,n,r,i,o,a){var s,c,u=t.getPreferredCache();if(Le.isEmpty(u))throw Ee.createInvalidCacheEnvironmentError();!Le.isEmpty(e.id_token)&&i&&(s=ct.createIdTokenEntity(this.homeAccountIdentifier,u,e.id_token||x.EMPTY_STRING,this.clientId,i.claims.tid||x.EMPTY_STRING),c=this.generateAccountEntity(e,i,t,a));var l=null;if(!Le.isEmpty(e.access_token)){var h=e.scope?ht.fromString(e.scope):new ht(r.scopes||[]),d=("string"===typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,p=("string"===typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,f=("string"===typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,g=n+d,m=g+p,y=f&&f>0?n+f:void 0;l=St.createAccessTokenEntity(this.homeAccountIdentifier,u,e.access_token||x.EMPTY_STRING,this.clientId,i?i.claims.tid||x.EMPTY_STRING:t.tenant,h.printScopes(),g,m,this.cryptoObj,y,e.token_type,o,e.key_id,r.claims,r.requestedClaimsHash)}var v=null;Le.isEmpty(e.refresh_token)||(v=Ot.createRefreshTokenEntity(this.homeAccountIdentifier,u,e.refresh_token||x.EMPTY_STRING,this.clientId,e.foci,o));var b=null;return Le.isEmpty(e.foci)||(b=Ct.createAppMetadataEntity(this.clientId,u,e.foci)),new fn(c,s,l,v,b)},e.prototype.generateAccountEntity=function(e,t,n,r){var i=n.authorityType,o=r?r.cloud_graph_host_name:x.EMPTY_STRING,a=r?r.msgraph_host:x.EMPTY_STRING;if(i===tt.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),gt.createGenericAccount(this.homeAccountIdentifier,t,n,o,a);if(Le.isEmpty(e.client_info)&&"AAD"===n.protocolMode)throw Ee.createClientInfoEmptyError();return e.client_info?gt.createAccount(e.client_info,this.homeAccountIdentifier,t,n,o,a):gt.createGenericAccount(this.homeAccountIdentifier,t,n,o,a)},e.generateAuthenticationResult=function(e,t,n,r,i,o,a,s,c){var u,l,h;return y(this,void 0,void 0,(function(){var d,p,f,g,m,y,b,M,w,S,O;return v(this,(function(v){switch(v.label){case 0:if(d=x.EMPTY_STRING,p=[],f=null,m=x.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==Y.POP)return[3,2];if(y=new gn(e),b=n.accessToken,M=b.secret,w=b.keyId,!w)throw Ee.createKeyIdMissingError();return[4,y.signPopToken(M,w,i)];case 1:return d=v.sent(),[3,3];case 2:d=n.accessToken.secret,v.label=3;case 3:p=ht.fromString(n.accessToken.target).asArray(),f=new Date(1e3*Number(n.accessToken.expiresOn)),g=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),v.label=4;case 4:return n.appMetadata&&(m=n.appMetadata.familyId===B?B:x.EMPTY_STRING),S=(null===o||void 0===o?void 0:o.claims.oid)||(null===o||void 0===o?void 0:o.claims.sub)||x.EMPTY_STRING,O=(null===o||void 0===o?void 0:o.claims.tid)||x.EMPTY_STRING,(null===s||void 0===s?void 0:s.spa_accountid)&&n.account&&(n.account.nativeAccountId=null===s||void 0===s?void 0:s.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:S,tenantId:O,scopes:p,account:n.account?n.account.getAccountInfo():null,idToken:o?o.rawToken:x.EMPTY_STRING,idTokenClaims:o?o.claims:{},accessToken:d,fromCache:r,expiresOn:f,correlationId:i.correlationId,requestId:c||x.EMPTY_STRING,extExpiresOn:g,familyId:m,tokenType:(null===(u=n.accessToken)||void 0===u?void 0:u.tokenType)||x.EMPTY_STRING,state:a?a.userRequestState:x.EMPTY_STRING,cloudGraphHostName:(null===(l=n.account)||void 0===l?void 0:l.cloudGraphHostName)||x.EMPTY_STRING,msGraphHost:(null===(h=n.account)||void 0===h?void 0:h.msGraphHost)||x.EMPTY_STRING,code:null===s||void 0===s?void 0:s.spa_code,fromNativeBroker:!1}]}}))}))},e}(),vn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.includeRedirectUri=!0,r}return g(t,e),t.prototype.getAuthCodeUrl=function(e){var t,n;return y(this,void 0,void 0,(function(){var r;return v(this,(function(i){switch(i.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.GetAuthCodeUrl,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.AuthClientCreateQueryString,e.correlationId),[4,this.createAuthCodeUrlQueryString(e)];case 1:return r=i.sent(),[2,Dt.appendQueryString(this.authority.authorizationEndpoint,r)]}}))}))},t.prototype.acquireToken=function(e,t){var n,r,i,a,s,c;return y(this,void 0,void 0,(function(){var u,l,h,d,p,f,g=this;return v(this,(function(m){switch(m.label){case 0:if(!e||!e.code)throw Ee.createTokenRequestCannotBeMadeError();return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(o.AuthClientAcquireToken,e.correlationId),u=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement("AuthCodeClientAcquireToken",e.correlationId),this.logger.info("in acquireToken call in auth-code client"),l=wt.nowSeconds(),null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.AuthClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(this.authority,e)];case 1:return h=m.sent(),d=null===(a=h.headers)||void 0===a?void 0:a[M.X_MS_REQUEST_ID],p=null===(s=h.headers)||void 0===s?void 0:s[M.X_MS_HTTP_VERSION],p&&(null===u||void 0===u||u.addStaticFields({httpVerAuthority:p})),f=new yn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),f.validateTokenResponse(h.body),null===(c=this.performanceClient)||void 0===c||c.setPreQueueTime(o.HandleServerTokenResponse,e.correlationId),[2,f.handleServerTokenResponse(h.body,this.authority,l,e,t,void 0,void 0,void 0,d).then((function(e){return null===u||void 0===u||u.endMeasurement({success:!0}),e})).catch((function(t){throw g.logger.verbose("Error in fetching token in ACC",e.correlationId),null===u||void 0===u||u.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t}))]}}))}))},t.prototype.handleFragmentResponse=function(e,t){var n=new yn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),r=new Dt(e),i=Dt.getDeserializedHash(r.getHash());if(n.validateServerAuthorizationCodeResponse(i,t,this.cryptoUtils),!i.code)throw Ee.createNoAuthCodeInServerResponseError();return m(m({},i),{code:i.code})},t.prototype.getLogoutUri=function(e){if(!e)throw lt.createEmptyLogoutRequestError();var t=this.createLogoutUrlQueryString(e);return Dt.appendQueryString(this.authority.endSessionEndpoint,t)},t.prototype.executeTokenRequest=function(e,t){var n,r;return y(this,void 0,void 0,(function(){var i,a,s,c,u,l,h;return v(this,(function(d){switch(d.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(o.AuthClientExecuteTokenRequest,t.correlationId),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(o.AuthClientCreateTokenRequestBody,t.correlationId),i=this.createTokenQueryParameters(t),a=Dt.appendQueryString(e.tokenEndpoint,i),[4,this.createTokenRequestBody(t)];case 1:if(s=d.sent(),c=void 0,t.clientInfo)try{u=dt(t.clientInfo,this.cryptoUtils),c={credential:""+u.uid+E.CLIENT_INFO_SEPARATOR+u.utid,type:ft.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}return l=this.createTokenRequestHeaders(c||t.ccsCredential),h={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(a,s,l,h)]}}))}))},t.prototype.createTokenRequestBody=function(e){var t,n;return y(this,void 0,void 0,(function(){var r,i,a,s,c,u,l,h;return v(this,(function(d){switch(d.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.AuthClientCreateTokenRequestBody,e.correlationId),r=new dn,r.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):hn.validateRedirectUri(e.redirectUri),r.addScopes(e.scopes),r.addAuthorizationCode(e.code),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&r.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&r.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(i=this.config.clientCredentials.clientAssertion,r.addClientAssertion(i.assertion),r.addClientAssertionType(i.assertionType)),r.addGrantType(k.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme!==Y.POP?[3,2]:(a=new gn(this.cryptoUtils,this.performanceClient),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.PopTokenGenerateCnf,e.correlationId),[4,a.generateCnf(e)]);case 1:return s=d.sent(),r.addPopToken(s.reqCnfString),[3,3];case 2:if(e.authenticationScheme===Y.SSH){if(!e.sshJwk)throw lt.createMissingSshJwkError();r.addSshJwk(e.sshJwk)}d.label=3;case 3:if(c=e.correlationId||this.config.cryptoInterface.createNewGuid(),r.addCorrelationId(c),(!Le.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),u=void 0,e.clientInfo)try{l=dt(e.clientInfo,this.cryptoUtils),u={credential:""+l.uid+E.CLIENT_INFO_SEPARATOR+l.utid,type:ft.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}else u=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case ft.HOME_ACCOUNT_ID:try{l=pt(u.credential),r.addCcsOid(l)}catch(p){this.logger.verbose("Could not parse home account ID for CCS Header: "+p)}break;case ft.UPN:r.addCcsUpn(u.credential);break}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),!e.enableSpaAuthorizationCode||e.tokenBodyParameters&&e.tokenBodyParameters[O.RETURN_SPA_CODE]||r.addExtraQueryParameters((h={},h[O.RETURN_SPA_CODE]="1",h)),[2,r.createQueryString()]}}))}))},t.prototype.createAuthCodeUrlQueryString=function(e){var t;return y(this,void 0,void 0,(function(){var n,r,i,a,s,c,u,l;return v(this,(function(h){switch(h.label){case 0:if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.AuthClientCreateQueryString,e.correlationId),n=new dn,n.addClientId(this.config.authOptions.clientId),r=b(e.scopes||[],e.extraScopesToConsent||[]),n.addScopes(r),n.addRedirectUri(e.redirectUri),i=e.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(i),n.addResponseMode(e.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&n.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&n.addPrompt(e.prompt),e.domainHint&&n.addDomainHint(e.domainHint),e.prompt!==j.SELECT_ACCOUNT)if(e.sid&&e.prompt===j.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(e.sid);else if(e.account){if(a=this.extractAccountSid(e.account),s=this.extractLoginHint(e.account),s){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(s);try{c=pt(e.account.homeAccountId),n.addCcsOid(c)}catch(d){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(a&&e.prompt===j.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(a);try{c=pt(e.account.homeAccountId),n.addCcsOid(c)}catch(d){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(e.account.username);try{c=pt(e.account.homeAccountId),n.addCcsOid(c)}catch(d){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&n.addNonce(e.nonce),e.state&&n.addState(e.state),(!Le.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&n.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker?(n.addNativeBroker(),e.authenticationScheme!==Y.POP?[3,2]:(u=new gn(this.cryptoUtils),[4,u.generateCnf(e)])):[3,2];case 1:l=h.sent(),n.addPopToken(l.reqCnfString),h.label=2;case 2:return[2,n.createQueryString()]}}))}))},t.prototype.createLogoutUrlQueryString=function(e){var t=new dn;return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()},t.prototype.extractAccountSid=function(e){var t;return(null===(t=e.idTokenClaims)||void 0===t?void 0:t.sid)||null},t.prototype.extractLoginHint=function(e){var t;return(null===(t=e.idTokenClaims)||void 0===t?void 0:t.login_hint)||null},t}(pn); /*! @azure/msal-common v13.3.1 2023-10-27 */ /*! @azure/msal-common v13.3.1 2023-10-27 */ function bn(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")} /*! @azure/msal-common v13.3.1 2023-10-27 */var Mn={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},wn=Mn.endpointMetadata,Sn=Mn.instanceDiscoveryMetadata; /*! @azure/msal-common v13.3.1 2023-10-27 */ function On(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")} /*! @azure/msal-common v13.3.1 2023-10-27 */function Cn(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")} /*! @azure/msal-common v13.3.1 2023-10-27 */var xn,Tn=function(){function e(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return e.prototype.detectRegion=function(t,n){var r,i,a,s;return y(this,void 0,void 0,(function(){var c,u,l,h,d;return v(this,(function(p){switch(p.label){case 0:if(null===(r=this.performanceClient)||void 0===r||r.addQueueMeasurement(o.RegionDiscoveryDetectRegion,this.correlationId),c=t,c)return[3,8];u=e.IMDS_OPTIONS,p.label=1;case 1:return p.trys.push([1,6,,7]),null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(x.IMDS_VERSION,u)];case 2:return l=p.sent(),l.status===Q.httpSuccess&&(c=l.body,n.region_source=q.IMDS),l.status!==Q.httpBadRequest?[3,5]:(null===(a=this.performanceClient)||void 0===a||a.setPreQueueTime(o.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(u)]);case 3:return h=p.sent(),h?(null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(o.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(h,u)]):(n.region_source=q.FAILED_AUTO_DETECTION,[2,null]);case 4:d=p.sent(),d.status===Q.httpSuccess&&(c=d.body,n.region_source=q.IMDS),p.label=5;case 5:return[3,7];case 6:return p.sent(),n.region_source=q.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:n.region_source=q.ENVIRONMENT_VARIABLE,p.label=9;case 9:return c||(n.region_source=q.FAILED_AUTO_DETECTION),[2,c||null]}}))}))},e.prototype.getRegionFromIMDS=function(e,t){var n;return y(this,void 0,void 0,(function(){return v(this,(function(r){return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(o.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(x.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,x.IMDS_TIMEOUT)]}))}))},e.prototype.getCurrentVersion=function(e){var t;return y(this,void 0,void 0,(function(){var n;return v(this,(function(r){switch(r.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.RegionDiscoveryGetCurrentVersion,this.correlationId),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(x.IMDS_ENDPOINT+"?format=json",e)];case 2:return n=r.sent(),n.status===Q.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return r.sent(),[2,null];case 4:return[2]}}))}))},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e}(),In=function(){function e(e,t,n,r,i,o,a){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=r,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=o,this.correlationId=a,this.regionDiscovery=new Tn(t,this.performanceClient,this.correlationId)}return e.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(x.CIAM_AUTH_URL))return tt.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case x.ADFS:return tt.Adfs;case x.DSTS:return tt.Dsts}return tt.Default},Object.defineProperty(e.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new Dt(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw Ee.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw Ee.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw Ee.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Ee.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}throw Ee.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw Ee.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw Ee.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),e.prototype.canReplaceTenant=function(t){return 1===t.PathSegments.length&&!e.reservedTenantDomains.has(t.PathSegments[0])&&this.getAuthorityType(t)===tt.Default&&this.protocolMode===jt.AAD},e.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},e.prototype.replacePath=function(e){var t=this,n=e,r=new Dt(this.metadata.canonical_authority),i=r.getUrlComponents(),o=i.PathSegments,a=this.canonicalAuthorityUrlComponents.PathSegments;return a.forEach((function(e,r){var a=o[r];if(0===r&&t.canReplaceTenant(i)){var s=new Dt(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];a!==s&&(t.logger.verbose("Replacing tenant domain name "+a+" with id "+s),a=s)}e!==a&&(n=n.replace("/"+a+"/","/"+e+"/"))})),this.replaceTenant(n)},Object.defineProperty(e.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===tt.Adfs||this.authorityType===tt.Dsts||this.protocolMode===jt.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),e.prototype.discoveryComplete=function(){return!!this.metadata},e.prototype.resolveEndpointsAsync=function(){var e,t,n;return y(this,void 0,void 0,(function(){var r,i,a,s;return v(this,(function(c){switch(c.label){case 0:return null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(o.AuthorityResolveEndpointsAsync,this.correlationId),r=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),r||(r=new Tt,r.updateCanonicalAuthority(this.canonicalAuthority)),null===(t=this.performanceClient)||void 0===t||t.setPreQueueTime(o.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(r)];case 1:return i=c.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,r.preferred_network),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(r)];case 2:return a=c.sent(),i!==P.CACHE&&a!==P.CACHE&&(r.resetExpiresAt(),r.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(r.preferred_cache),this.cacheManager.setAuthorityMetadata(s,r),this.metadata=r,[2]}}))}))},e.prototype.updateEndpointMetadata=function(e){var t,n,r,i,a,s;return y(this,void 0,void 0,(function(){var c,u;return v(this,(function(l){switch(l.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.AuthorityUpdateEndpointMetadata,this.correlationId),c=this.getEndpointMetadataFromConfig(),c?(e.updateEndpointMetadata(c,!1),[2,P.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,P.CACHE]:(null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return c=l.sent(),c?(null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion)?(null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,3]:[3,4];case 2:c=l.sent(),l.label=3;case 3:return e.updateEndpointMetadata(c,!0),[2,P.NETWORK];case 4:return u=this.getEndpointMetadataFromHardcodedValues(),!u||this.authorityOptions.skipAuthorityMetadataCache?[3,7]:(null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.azureRegion)?(null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(o.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(u)]):[3,6];case 5:u=l.sent(),l.label=6;case 6:return e.updateEndpointMetadata(u,!1),[2,P.HARDCODED_VALUES];case 7:throw Ee.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}}))}))},e.prototype.isAuthoritySameType=function(e){var t=new Dt(e.canonical_authority),n=t.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length},e.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw lt.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var e;return y(this,void 0,void 0,(function(){var t,n;return v(this,(function(r){switch(r.label){case 0:null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(o.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return n=r.sent(),[2,bn(n.body)?n.body:null];case 3:return r.sent(),[2,null];case 4:return[2]}}))}))},e.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in wn?wn[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var n,r,i,a;return y(this,void 0,void 0,(function(){var s,c;return v(this,(function(u){switch(u.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(o.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),s=null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion,s?s!==x.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=$.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=s,[2,e.replaceWithRegionalInformation(t,s)]):(null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(o.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion(null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(c=u.sent(),c)return this.regionDiscoveryMetadata.region_outcome=$.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=c,[2,e.replaceWithRegionalInformation(t,c)];this.regionDiscoveryMetadata.region_outcome=$.AUTO_DETECTION_REQUESTED_FAILED,u.label=2;case 2:return[2,t]}}))}))},e.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return y(this,void 0,void 0,(function(){var r,i,a;return v(this,(function(s){switch(s.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||x.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||x.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||x.NOT_APPLICABLE)),r=this.getCloudDiscoveryMetadataFromConfig(),r?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(r,!1),[2,P.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,P.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(o.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(r=s.sent(),r)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(r,!0),[2,P.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),a=this.getCloudDiscoveryMetadataFromHarcodedValues(),a&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(a,!1),[2,P.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),lt.createUntrustedAuthorityError()}}))}))},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===tt.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=e.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),n)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),n;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch(r){throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),lt.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},e.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var t;return y(this,void 0,void 0,(function(){var n,r,i,a,s,c,u,l;return v(this,(function(h){switch(h.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(o.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),n=""+x.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},i=null,h.label=1;case 1:return h.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(n,r)];case 2:if(a=h.sent(),s=void 0,c=void 0,On(a.body))s=a.body,c=s.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+s.tenant_discovery_endpoint);else{if(!Cn(a.body))return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+a.status),s=a.body,s.error===x.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+s.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+s.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),c=[]}return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),i=e.getCloudDiscoveryMetadataFromNetworkResponse(c,this.hostnameAndPort),[3,4];case 3:return u=h.sent(),u instanceof ce?this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: "+u.errorCode+"\nError Description: "+u.errorMessage):(l=u,this.logger.error("A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: "+l.name+"\nError Description: "+l.message)),[2,null];case 4:return i||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),i=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}}))}))},e.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Sn?Sn[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter((function(t){return Dt.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort}));return t.length>0},e.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==At.None){var r=t.tenant?t.tenant:x.DEFAULT_COMMON_TENANT;n=t.azureCloudInstance+"/"+r+"/"}return n||e},e.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},e.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n-1)return r}return null},e.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw Ee.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},e.isPublicCloudAuthority=function(e){return x.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},e.buildRegionalAuthorityString=function(e,t,n){var r=new Dt(e);r.validateAsUri();var i=r.getUrlComponents(),o=t+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(o=t+"."+x.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=Dt.constructAuthorityUriFromObject(m(m({},r.getUrlComponents()),{HostNameAndPort:o})).urlString;return n?a+"?"+n:a},e.replaceWithRegionalInformation=function(t,n){return t.authorization_endpoint=e.buildRegionalAuthorityString(t.authorization_endpoint,n),t.token_endpoint=e.buildRegionalAuthorityString(t.token_endpoint,n,x.REGIONAL_AUTH_NON_MSI_QUERY_STRING),t.end_session_endpoint&&(t.end_session_endpoint=e.buildRegionalAuthorityString(t.end_session_endpoint,n)),t},e.transformCIAMAuthority=function(e){var t=e.endsWith(x.FORWARD_SLASH)?e:""+e+x.FORWARD_SLASH,n=new Dt(e),r=n.getUrlComponents();if(0===r.PathSegments.length&&r.HostNameAndPort.endsWith(x.CIAM_AUTH_URL)){var i=r.HostNameAndPort.split(".")[0];t=""+t+i+x.AAD_TENANT_DOMAIN_SUFFIX}return t},e.reservedTenantDomains=new Set(["{tenant}","{tenantid}",S.COMMON,S.CONSUMERS,S.ORGANIZATIONS]),e}(),Nn=function(){function e(){}return e.createDiscoveredInstance=function(t,n,r,i,a,s,c){return y(this,void 0,void 0,(function(){var u,l,h;return v(this,(function(d){switch(d.label){case 0:null===s||void 0===s||s.addQueueMeasurement(o.AuthorityFactoryCreateDiscoveredInstance,c),u=In.transformCIAMAuthority(t),l=e.createInstance(u,n,r,i,a,s,c),d.label=1;case 1:return d.trys.push([1,3,,4]),null===s||void 0===s||s.setPreQueueTime(o.AuthorityResolveEndpointsAsync,c),[4,l.resolveEndpointsAsync()];case 2:return d.sent(),[2,l];case 3:throw h=d.sent(),Ee.createEndpointDiscoveryIncompleteError(h);case 4:return[2]}}))}))},e.createInstance=function(e,t,n,r,i,o,a){if(Le.isEmpty(e))throw lt.createUrlEmptyError();return new In(e,t,n,r,i,o,a)},e}(),jn=function(){function e(e,t){this.cacheOutcome=W.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||x.EMPTY_STRING,this.wrapperVer=e.wrapperVer||x.EMPTY_STRING,this.telemetryCacheKey=V.CACHE_KEY+E.CACHE_KEY_SEPARATOR+e.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+V.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(V.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),r=[e,n].join(V.VALUE_SEPARATOR);return[V.SCHEMA_VERSION,r,t].join(V.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join(V.VALUE_SEPARATOR),i=t.errors.slice(0,n).join(V.VALUE_SEPARATOR),o=t.errors.length,a=n=V.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),Le.isEmpty(e.subError)?Le.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(V.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},e.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},e.prototype.getLastRequests=function(){var e=new xt,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.errors.length;if(n===r)this.cacheManager.removeItem(this.telemetryCacheKey);else{var i=new xt;i.failedRequests=t.failedRequests.slice(2*n),i.errors=t.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i)}},e.maxErrorsToSend=function(e){var t,n=0,r=0,i=e.errors.length;for(t=0;t0)&&s.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case ft.HOME_ACCOUNT_ID:try{h=pt(e.ccsCredential.credential),s.addCcsOid(h)}catch(p){this.logger.verbose("Could not parse home account ID for CCS Header: "+p)}break;case ft.UPN:s.addCcsUpn(e.ccsCredential.credential);break}return null===a||void 0===a||a.endMeasurement({success:!0}),[2,s.createQueryString()]}}))}))},t}(pn),zn=function(e){function t(t,n){return e.call(this,t,n)||this}return g(t,e),t.prototype.acquireToken=function(e){return y(this,void 0,void 0,(function(){var t,n;return v(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,r.sent()];case 2:if(t=r.sent(),t instanceof Ee&&t.errorCode===De.tokenRefreshRequired.code)return n=new Ln(this.config,this.performanceClient),[2,n.acquireTokenByRefreshToken(e)];throw t;case 3:return[2]}}))}))},t.prototype.acquireCachedToken=function(e){var t,n,r,i,o;return y(this,void 0,void 0,(function(){var a,s;return v(this,(function(c){switch(c.label){case 0:if(!e)throw lt.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(t=this.serverTelemetryManager)||void 0===t||t.setCacheOutcome(W.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),Ee.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!Le.isEmptyObj(e.claims))throw null===(n=this.serverTelemetryManager)||void 0===n||n.setCacheOutcome(W.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),Ee.createRefreshRequiredError();if(!e.account)throw Ee.createNoAccountInSilentRequestError();if(a=e.authority||this.authority.getPreferredCache(),s=this.cacheManager.readCacheRecord(e.account,e,a),!s.accessToken)throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(W.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),Ee.createRefreshRequiredError();if(wt.wasClockTurnedBack(s.accessToken.cachedAt)||wt.isTokenExpired(s.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(W.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),Ee.createRefreshRequiredError();if(s.accessToken.refreshOn&&wt.isTokenExpired(s.accessToken.refreshOn,0))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(W.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),Ee.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(s,e)];case 1:return[2,c.sent()]}}))}))},t.prototype.generateResultFromCacheRecord=function(e,t){return y(this,void 0,void 0,(function(){var n,r;return v(this,(function(i){switch(i.label){case 0:if(e.idToken&&(n=new mt(e.idToken.secret,this.config.cryptoInterface)),t.maxAge||0===t.maxAge){if(r=null===n||void 0===n?void 0:n.claims.auth_time,!r)throw Ee.createAuthTimeNotFoundError();mt.checkMaxAge(r,t.maxAge)}return[4,yn.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)];case 1:return[2,i.sent()]}}))}))},t}(pn),_n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a;return l(this,(function(s){switch(s.label){case 0:return t=this.performanceClient.startMeasurement(o.SilentCacheClientAcquireToken,e.correlationId),n=this.initializeServerTelemetryManager(ie.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(n,e.authority,e.azureCloudOptions)];case 1:r=s.sent(),this.logger.verbose("Silent auth client created"),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,r.acquireCachedToken(e)];case 3:return i=s.sent(),t.endMeasurement({success:!0,fromCache:!0}),[2,i];case 4:throw a=s.sent(),a instanceof _e&&a.errorCode===ze.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),t.endMeasurement({errorCode:a instanceof ce&&a.errorCode||void 0,subErrorCode:a instanceof ce&&a.subError||void 0,success:!1}),a;case 5:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(_e.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,t,n){return u(this,void 0,void 0,(function(){var r;return l(this,(function(i){switch(i.label){case 0:return this.performanceClient.setPreQueueTime(o.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=i.sent(),[2,new zn(r,this.performanceClient)]}}))}))},t.prototype.initializeSilentRequest=function(e,t){return u(this,void 0,void 0,(function(){var n;return l(this,(function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(o.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(o.InitializeBaseRequest,this.correlationId),n=[s({},e)],[4,this.initializeBaseRequest(e,t)];case 1:return[2,s.apply(void 0,[s.apply(void 0,n.concat([r.sent()])),{account:t,forceRefresh:e.forceRefresh||!1}])]}}))}))},t}(kn),Pn=function(e){function t(t,n,r,i,o,a,s,c,u,l,h,d){var p=e.call(this,t,n,r,i,o,a,c,u,d)||this;return p.apiId=s,p.accountId=l,p.nativeMessageHandler=u,p.nativeStorageManager=h,p.silentCacheClient=new _n(t,p.nativeStorageManager,r,i,o,a,c,u,d),p}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,s,c;return l(this,(function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),t=this.performanceClient.startMeasurement(o.NativeInteractionClientAcquireToken,e.correlationId),n=wt.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:r=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,r)];case 3:return i=u.sent(),t.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,i];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return a={method:J.GetToken,request:r},[4,this.nativeMessageHandler.sendMessage(a)];case 6:return s=u.sent(),c=this.validateNativeResponse(s),[2,this.handleNativeResponse(c,r,n).then((function(e){return t.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e})).catch((function(e){throw t.endMeasurement({success:!1,errorCode:e.errorCode,subErrorCode:e.subError,isNativeBroker:!0}),e}))]}}))}))},t.prototype.createSilentCacheRequest=function(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:ht.fromString(e.scope).asArray(),account:t,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,t){return u(this,void 0,void 0,(function(){var n,r,i,o;return l(this,(function(a){switch(a.label){case 0:if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Ee.createNoAccountFoundError();if(n=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:e}),!n)throw Ee.createNoAccountFoundError();a.label=1;case 1:return a.trys.push([1,3,,4]),r=this.createSilentCacheRequest(t,n),[4,this.silentCacheClient.acquireToken(r)];case 2:return i=a.sent(),[2,i];case 3:throw o=a.sent(),o;case 4:return[2]}}))}))},t.prototype.acquireTokenRedirect=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,o,a;return l(this,(function(s){switch(s.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:t=s.sent(),n={method:J.GetToken,request:t},s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(n)];case 3:return r=s.sent(),this.validateNativeResponse(r),[3,5];case 4:if(i=s.sent(),i instanceof En&&i.isFatal())throw i;return[3,5];case 5:return this.browserStorage.setTemporaryCache(te.NATIVE_REQUEST,JSON.stringify(t),!0),o={apiId:ie.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(a,o)];case 6:return s.sent(),[2]}}))}))},t.prototype.handleRedirectPromise=function(){return u(this,void 0,void 0,(function(){var e,t,n,r,i,o,a,s;return l(this,(function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(e=this.browserStorage.getCachedNativeRequest(),!e)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];t=e.prompt,n=c(e,["prompt"]),t&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(te.NATIVE_REQUEST)),r={method:J.GetToken,request:n},i=wt.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(r)];case 2:return o=u.sent(),this.validateNativeResponse(o),a=this.handleNativeResponse(o,n,i),this.browserStorage.setInteractionInProgress(!1),[2,a];case 3:throw s=u.sent(),this.browserStorage.setInteractionInProgress(!1),s;case 4:return[2]}}))}))},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(e,t,n){return u(this,void 0,void 0,(function(){var r,i,o,a,s,c;return l(this,(function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==t.accountId)throw En.createUserSwitchError();return[4,this.getDiscoveredAuthority(t.authority)];case 1:return r=u.sent(),i=r.getPreferredCache(),o=this.createIdTokenObj(e),a=this.createHomeAccountIdentifier(e,o),s=this.createAccountEntity(e,a,o,i),[4,this.generateAuthenticationResult(e,t,o,s,r.canonicalAuthority,n)];case 2:return c=u.sent(),this.cacheAccount(s),this.cacheNativeTokens(e,t,a,s,o,c.accessToken,c.tenantId,n),[2,c]}}))}))},t.prototype.createIdTokenObj=function(e){return new mt(e.id_token||x.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(e,t){var n=gt.generateHomeAccountId(e.client_info||x.EMPTY_STRING,tt.Default,this.logger,this.browserCrypto,t);return n},t.prototype.createAccountEntity=function(e,t,n,r){return gt.createAccount(e.client_info,t,n,void 0,void 0,void 0,r,e.account.id)},t.prototype.generateScopes=function(e,t){return e.scope?ht.fromString(e.scope):ht.fromString(t.scope)},t.prototype.generatePopAccessToken=function(e,t){return u(this,void 0,void 0,(function(){var n,r;return l(this,(function(i){switch(i.label){case 0:if(t.tokenType!==Y.POP)return[3,2];if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,e.shr];if(n=new gn(this.browserCrypto),r={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce},!t.keyId)throw Ee.createKeyIdMissingError();return[4,n.signPopToken(e.access_token,t.keyId,r)];case 1:return[2,i.sent()];case 2:return[2,e.access_token]}}))}))},t.prototype.generateAuthenticationResult=function(e,t,n,r,i,o){return u(this,void 0,void 0,(function(){var a,s,c,u,h,d,p,f;return l(this,(function(l){switch(l.label){case 0:return a=this.addTelemetryFromNativeResponse(e),s=e.scope?ht.fromString(e.scope):ht.fromString(t.scope),c=e.account.properties||{},u=c["UID"]||n.claims.oid||n.claims.sub||x.EMPTY_STRING,h=c["TenantId"]||n.claims.tid||x.EMPTY_STRING,[4,this.generatePopAccessToken(e,t)];case 1:return d=l.sent(),p=t.tokenType===Y.POP?Y.POP:Y.BEARER,f={authority:i,uniqueId:u,tenantId:h,scopes:s.asArray(),account:r.getAccountInfo(),idToken:e.id_token,idTokenClaims:n.claims,accessToken:d,fromCache:!!a&&this.isResponseFromCache(a),expiresOn:new Date(1e3*Number(o+e.expires_in)),tokenType:p,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0},[2,f]}}))}))},t.prototype.cacheAccount=function(e){var t=this;this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch((function(e){t.logger.error("Error occurred while removing account context from browser storage. "+e)}))},t.prototype.cacheNativeTokens=function(e,t,n,r,i,o,a,s){var c=ct.createIdTokenEntity(n,t.authority,e.id_token||x.EMPTY_STRING,t.clientId,i.claims.tid||x.EMPTY_STRING),u=t.tokenType===Y.POP?x.SHR_NONCE_VALIDITY:("string"===typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,l=s+u,h=this.generateScopes(e,t),d=St.createAccessTokenEntity(n,t.authority,o,t.clientId,i?i.claims.tid||x.EMPTY_STRING:a,h.printScopes(),l,0,this.browserCrypto),p=new fn(r,c,d);this.nativeStorageManager.saveCacheRecord(p)},t.prototype.addTelemetryFromNativeResponse=function(e){var t=this.getMATSFromResponse(e);return t?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null},t.prototype.validateNativeResponse=function(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw En.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch(t){this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return"undefined"===typeof e.is_cached?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached},t.prototype.initializeNativeRequest=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,o,a,u,h,d,p,f=this;return l(this,(function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),t=e.authority||this.config.auth.authority,e.account?[4,this.validateRequestAuthority(t,e.account)]:[3,2];case 1:l.sent(),l.label=2;case 2:return n=new Dt(t),n.validateAsUri(),r=e.scopes,i=c(e,["scopes"]),o=new ht(r||[]),o.appendScopes(T),a=function(){switch(f.apiId){case ie.ssoSilent:case ie.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),j.NONE}if(e.prompt)switch(e.prompt){case j.NONE:case j.CONSENT:case j.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+e.prompt+" is not compatible with native flow"),_e.createNativePromptParameterNotSupportedError()}else f.logger.trace("initializeNativeRequest: prompt was not provided")},u=s(s({},i),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:o.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:a(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:s(s(s({},e.extraQueryParameters),e.tokenQueryParameters),{telemetry:ge.MATS_TELEMETRY}),extendedExpiryToken:!1}),e.authenticationScheme!==Y.POP?[3,4]:(h={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},d=new gn(this.browserCrypto),[4,d.generateCnf(h)]);case 3:p=l.sent(),u.reqCnf=p.reqCnfString,u.keyId=p.kid,l.label=4;case 4:return[2,u]}}))}))},t}(An),Rn=function(){function e(e,t,n,r){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=r,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(o.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(e){return u(this,void 0,void 0,(function(){var t,n=this;return l(this,(function(r){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:ge.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise((function(e,r){n.resolvers.set(t.responseId,{resolve:e,reject:r})}))]}))}))},e.createProvider=function(t,n,r){return u(this,void 0,void 0,(function(){var i,o;return l(this,(function(a){switch(a.label){case 0:t.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),i=new e(t,n,r,ge.PREFERRED_EXTENSION_ID),[4,i.sendHandshakeRequest()];case 2:return a.sent(),[2,i];case 3:return a.sent(),o=new e(t,n,r),[4,o.sendHandshakeRequest()];case 4:return a.sent(),[2,o];case 5:return[2]}}))}))},e.prototype.sendHandshakeRequest=function(){return u(this,void 0,void 0,(function(){var e,t=this;return l(this,(function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:ge.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:J.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(e){t.onChannelMessage(e)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise((function(n,r){t.handshakeResolvers.set(e.responseId,{resolve:n,reject:r}),t.timeoutId=window.setTimeout((function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),r(_e.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)}),t.handshakeTimeoutMs)}))]}))}))},e.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(t.channel&&t.channel===ge.CHANNEL_ID&&(!t.extensionId||t.extensionId===this.extensionId)&&t.body.method===J.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(t.responseId);n&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(_e.createNativeExtensionNotInstalledError()))}}},e.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),r=this.handshakeResolvers.get(t.responseId);try{var i=t.body.method;if(i===J.Response){if(!n)return;var o=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(o)),"Success"!==o.status)n.reject(En.createError(o.code,o.description,o.ext));else{if(!o.result)throw ce.createUnexpectedError("Event does not contain result.");o.result["code"]&&o.result["description"]?n.reject(En.createError(o.result["code"],o.result["description"],o.result["ext"])):n.resolve(o.result)}this.resolvers.delete(t.responseId)}else if(i===J.HandshakeResponse){if(!r)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),r.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(a){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+a.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(a):r&&r.reject(a)}},e.prototype.getExtensionId=function(){return this.extensionId},e.prototype.getExtensionVersion=function(){return this.extensionVersion},e.isNativeAvailable=function(e,t,n,r){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(r)switch(r){case Y.BEARER:case Y.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},e}(),Un=function(){function e(e,t,n,r,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=r,this.performanceClient=i}return e.prototype.handleCodeResponseFromHash=function(e,t,n,r){return u(this,void 0,void 0,(function(){var i,a,s;return l(this,(function(c){if(this.performanceClient.addQueueMeasurement(o.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),Le.isEmpty(e))throw _e.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(t),a=this.browserStorage.getTemporaryCache(i),!a)throw Ee.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(u){throw u instanceof ue&&u.subError===ze.userCancelledError.code?_e.createUserCancelledError():u}return this.performanceClient.setPreQueueTime(o.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,t,n,r)]}))}))},e.prototype.handleCodeResponseFromServer=function(e,t,n,r,i){return void 0===i&&(i=!0),u(this,void 0,void 0,(function(){var a,s,c,u,h,d;return l(this,(function(l){switch(l.label){case 0:if(this.performanceClient.addQueueMeasurement(o.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(t),s=this.browserStorage.getTemporaryCache(a),!s)throw Ee.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(o.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,r)]):[3,2];case 1:l.sent(),l.label=2;case 2:return i&&(e.nonce=u||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(h=this.checkCcsCredentials(),h&&(this.authCodeRequest.ccsCredential=h)),this.performanceClient.setPreQueueTime(o.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return d=l.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}}))}))},e.prototype.updateTokenEndpointAuthority=function(e,t,n){return u(this,void 0,void 0,(function(){var r,i;return l(this,(function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(o.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),r="https://"+e+"/"+t.tenant+"/",[4,Nn.createDiscoveredInstance(r,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}}))}))},e.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(te.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch(t){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},e}(),Bn=function(e){function t(t,n,r,i,o,a,s,c,u,l){var h=e.call(this,t,n,r,i,o,a,s,u,l)||this;return h.unloadWindow=h.unloadWindow.bind(h),h.nativeStorage=c,h}return i(t,e),t.prototype.acquireToken=function(e){try{var t=this.generatePopupName(e.scopes||T,e.authority||this.config.auth.authority),n=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,t,n);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var r=this.openSizedPopup("about:blank",t,n);return this.acquireTokenPopupAsync(e,t,n,r)}catch(i){return Promise.reject(i)}},t.prototype.logout=function(e){try{this.logger.verbose("logoutPopup called");var t=this.initializeLogoutRequest(e),n=this.generateLogoutPopupName(t),r=e&&e.authority,i=e&&e.mainWindowRedirectUri,o=(null===e||void 0===e?void 0:e.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,n,o,r,void 0,i);this.logger.verbose("asyncPopup set to false, opening popup");var a=this.openSizedPopup("about:blank",n,o);return this.logoutPopupAsync(t,n,o,r,a,i)}catch(s){return Promise.reject(s)}},t.prototype.acquireTokenPopupAsync=function(e,t,n,r){return u(this,void 0,void 0,(function(){var i,a,c,u,h,d,p,f,g,m,y,v,b,M,w,S,O,C=this;return l(this,(function(l){switch(l.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),i=this.initializeServerTelemetryManager(ie.acquireTokenPopup),this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,oe.Popup)];case 1:a=l.sent(),this.browserStorage.updateCacheEntries(a.state,a.nonce,a.authority,a.loginHint||x.EMPTY_STRING,a.account||null),l.label=2;case 2:return l.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(a)];case 3:return c=l.sent(),this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(i,a.authority,a.azureCloudOptions)];case 4:return u=l.sent(),this.logger.verbose("Auth code client created"),h=Rn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme),d=void 0,h&&(d=this.performanceClient.startMeasurement(o.FetchAccountIdWithNativeBroker,e.correlationId)),[4,u.getAuthCodeUrl(s(s({},a),{nativeBroker:h}))];case 5:return p=l.sent(),f=new Un(u,this.browserStorage,c,this.logger,this.performanceClient),g={popup:r,popupName:t,popupWindowAttributes:n},m=this.initiateAuthRequest(p,g),this.eventHandler.emitEvent(rn.POPUP_OPENED,oe.Popup,{popupWindow:m},null),[4,this.monitorPopupForHash(m)];case 6:if(y=l.sent(),v=Dt.getDeserializedHash(y),b=this.validateAndExtractStateFromHash(v,oe.Popup,a.correlationId),un.removeThrottle(this.browserStorage,this.config.auth.clientId,c),v.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw _e.createNativeConnectionNotEstablishedError();return M=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,v.accountId,this.nativeStorage,a.correlationId),w=Nt.parseRequestState(this.browserCrypto,b).userRequestState,[2,M.acquireToken(s(s({},a),{state:w,prompt:void 0})).finally((function(){C.browserStorage.cleanRequestByState(b)}))]}return[4,f.handleCodeResponseFromHash(y,b,u.authority,this.networkClient)];case 7:return S=l.sent(),[2,S];case 8:throw O=l.sent(),r&&r.close(),O instanceof ce&&O.setCorrelationId(this.correlationId),i.cacheFailedRequest(O),this.browserStorage.cleanRequestByState(a.state),O;case 9:return[2]}}))}))},t.prototype.logoutPopupAsync=function(e,t,n,r,i,a){return u(this,void 0,void 0,(function(){var s,c,u,h,d,p,f;return l(this,(function(l){switch(l.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(rn.LOGOUT_START,oe.Popup,e),s=this.initializeServerTelemetryManager(ie.logoutPopup),l.label=1;case 1:return l.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(e.account)];case 2:return l.sent(),this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(s,r)];case 3:return c=l.sent(),this.logger.verbose("Auth code client created"),u=c.getLogoutUri(e),this.eventHandler.emitEvent(rn.LOGOUT_SUCCESS,oe.Popup,e),h=this.openPopup(u,{popupName:t,popupWindowAttributes:n,popup:i}),this.eventHandler.emitEvent(rn.POPUP_OPENED,oe.Popup,{popupWindow:h},null),[4,this.waitForLogoutPopup(h)];case 4:return l.sent(),a?(d={apiId:ie.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},p=Dt.getAbsoluteUrl(a,Kt.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+p),this.navigationClient.navigateInternal(p,d)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw f=l.sent(),i&&i.close(),f instanceof ce&&f.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(rn.LOGOUT_FAILURE,oe.Popup,null,f),this.eventHandler.emitEvent(rn.LOGOUT_END,oe.Popup),s.cacheFailedRequest(f),f;case 6:return this.eventHandler.emitEvent(rn.LOGOUT_END,oe.Popup),[2]}}))}))},t.prototype.initiateAuthRequest=function(e,t){if(Le.isEmpty(e))throw this.logger.error("Navigate url is empty"),_e.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+e),this.openPopup(e,t)},t.prototype.monitorPopupForHash=function(e){var t=this;return new Promise((function(n,r){var i=t.config.system.windowHashTimeout/t.config.system.pollIntervalMilliseconds,o=0;t.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var a=setInterval((function(){if(e.closed)return t.logger.error("PopupHandler.monitorPopupForHash - window closed"),t.cleanPopup(),clearInterval(a),void r(_e.createUserCancelledError());var s=x.EMPTY_STRING,c=x.EMPTY_STRING;try{s=e.location.href,c=e.location.hash}catch(u){}Le.isEmpty(s)||"about:blank"===s||(t.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),o++,c?(t.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(a),t.cleanPopup(e),Dt.hashContainsKnownProperties(c)?(t.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),n(c)):(t.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),t.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+c),r(_e.createHashDoesNotContainKnownPropertiesError()))):o>i&&(t.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(a),r(_e.createMonitorPopupTimeoutError())))}),t.config.system.pollIntervalMilliseconds)}))},t.prototype.waitForLogoutPopup=function(e){var t=this;return new Promise((function(n){t.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var r=setInterval((function(){e.closed&&(t.logger.error("PopupHandler.waitForLogoutPopup - window closed"),t.cleanPopup(),clearInterval(r),n());var i=x.EMPTY_STRING;try{i=e.location.href}catch(o){}Le.isEmpty(i)||"about:blank"===i||(t.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(r),t.cleanPopup(e),n())}),t.config.system.pollIntervalMilliseconds)}))},t.prototype.openPopup=function(e,t){try{var n=void 0;if(t.popup?(n=t.popup,this.logger.verbosePii("Navigating popup window to: "+e),n.location.assign(e)):"undefined"===typeof t.popup&&(this.logger.verbosePii("Opening popup window to: "+e),n=this.openSizedPopup(e,t.popupName,t.popupWindowAttributes)),!n)throw _e.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(r){throw this.logger.error("error opening popup "+r.message),this.browserStorage.setInteractionInProgress(!1),_e.createPopupWindowError(r.toString())}},t.prototype.openSizedPopup=function(e,t,n){var r,i,o,a,s=window.screenLeft?window.screenLeft:window.screenX,c=window.screenTop?window.screenTop:window.screenY,u=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,l=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,h=null===(r=n.popupSize)||void 0===r?void 0:r.width,d=null===(i=n.popupSize)||void 0===i?void 0:i.height,p=null===(o=n.popupPosition)||void 0===o?void 0:o.top,f=null===(a=n.popupPosition)||void 0===a?void 0:a.left;return(!h||h<0||h>u)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),h=fe.POPUP_WIDTH),(!d||d<0||d>l)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),d=fe.POPUP_HEIGHT),(!p||p<0||p>l)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),p=Math.max(0,l/2-fe.POPUP_HEIGHT/2+c)),(!f||f<0||f>u)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),f=Math.max(0,u/2-fe.POPUP_WIDTH/2+s)),window.open(e,t,"width="+h+", height="+d+", top="+p+", left="+f+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(oe.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(e,t){return fe.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+e.join("-")+"."+t+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){var t=e.account&&e.account.homeAccountId;return fe.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t+"."+this.correlationId},t}(kn),Fn=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,r,i,a)||this;return s.browserCrypto=o,s}return i(t,e),t.prototype.initiateAuthRequest=function(e,t){return u(this,void 0,void 0,(function(){var n,r;return l(this,(function(i){switch(i.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),Le.isEmpty(e)?[3,7]:(t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(te.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(te.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),n={apiId:ie.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1},"function"!==typeof t.onRedirectNavigate?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),r=t.onRedirectNavigate(e),!1===r?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,t.navigationClient.navigateExternal(e,n)])));case 1:return i.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,t.navigationClient.navigateExternal(e,n)];case 5:return i.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),_e.createEmptyNavigationUriError();case 8:return[2]}}))}))},t.prototype.handleCodeResponseFromHash=function(e,t,n,r){return u(this,void 0,void 0,(function(){var i,o,a,s,c,u,h;return l(this,(function(l){switch(l.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),Le.isEmpty(e))throw _e.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),i=this.browserStorage.generateStateKey(t),o=this.browserStorage.getTemporaryCache(i),!o)throw Ee.createStateNotFoundError("Cached State");try{a=this.authModule.handleFragmentResponse(e,o)}catch(d){throw d instanceof ue&&d.subError===ze.userCancelledError.code?_e.createUserCancelledError():d}return s=this.browserStorage.generateNonceKey(o),c=this.browserStorage.getTemporaryCache(s),this.authCodeRequest.code=a.code,a.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(a.cloud_instance_host_name,n,r)]:[3,2];case 1:l.sent(),l.label=2;case 2:return a.nonce=c||void 0,a.state=o,a.client_info?this.authCodeRequest.clientInfo=a.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),[4,this.authModule.acquireToken(this.authCodeRequest,a)];case 3:return h=l.sent(),this.browserStorage.cleanRequestByState(t),[2,h]}}))}))},t}(Un),Yn=function(e){function t(t,n,r,i,o,a,s,c,u,l){var h=e.call(this,t,n,r,i,o,a,s,u,l)||this;return h.nativeStorage=c,h}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,c,u,h,d,p=this;return l(this,(function(l){switch(l.label){case 0:return this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,oe.Redirect)];case 1:t=l.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||x.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(ie.acquireTokenRedirect),r=function(e){e.persisted&&(p.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),p.browserStorage.cleanRequestByState(t.state),p.eventHandler.emitEvent(rn.RESTORE_FROM_BFCACHE,oe.Redirect))},l.label=2;case 2:return l.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 3:return i=l.sent(),this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(n,t.authority,t.azureCloudOptions)];case 4:return a=l.sent(),this.logger.verbose("Auth code client created"),c=new Fn(a,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient),[4,a.getAuthCodeUrl(s(s({},t),{nativeBroker:Rn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return u=l.sent(),h=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+h),window.addEventListener("pageshow",r),[4,c.initiateAuthRequest(u,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:h,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,l.sent()];case 7:throw d=l.sent(),d instanceof ce&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",r),n.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(t.state),d;case 8:return[2]}}))}))},t.prototype.handleRedirectPromise=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u,h,d,p;return l(this,(function(l){switch(l.label){case 0:t=this.initializeServerTelemetryManager(ie.handleRedirectPromise),l.label=1;case 1:if(l.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(n=this.getRedirectResponseHash(e||window.location.hash),!n)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),[2,null];r=void 0;try{i=Dt.getDeserializedHash(n),r=this.validateAndExtractStateFromHash(i,oe.Redirect),this.logger.verbose("State extracted from hash")}catch(f){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+f),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),[2,null]}return o=this.browserStorage.getTemporaryCache(te.ORIGIN_URI,!0)||x.EMPTY_STRING,a=Dt.removeHashFromUrl(o),s=Dt.removeHashFromUrl(window.location.href),a===s&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,r,t)]):[3,3];case 2:return c=l.sent(),o.indexOf("#")>-1&&Kt.replaceHash(o),[2,c];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,r,t)]);case 4:return Kt.isInIframe()&&!this.config.system.allowRedirectInIframe?[3,9]:(this.browserStorage.setTemporaryCache(te.URL_HASH,n,!0),u={apiId:ie.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,o&&"null"!==o?[3,6]:(d=Kt.getHomepage(),this.browserStorage.setTemporaryCache(te.ORIGIN_URI,d,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(d,u)]));case 5:return h=l.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+o),[4,this.navigationClient.navigateInternal(o,u)];case 7:h=l.sent(),l.label=8;case 8:if(!h)return[2,this.handleHash(n,r,t)];l.label=9;case 9:return[2,null];case 10:throw p=l.sent(),p instanceof ce&&p.setCorrelationId(this.correlationId),t.cacheFailedRequest(p),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),p;case 11:return[2]}}))}))},t.prototype.getRedirectResponseHash=function(e){this.logger.verbose("getRedirectResponseHash called");var t=Dt.hashContainsKnownProperties(e);if(t)return Kt.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var n=this.browserStorage.getTemporaryCache(te.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(te.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),n},t.prototype.handleHash=function(e,t,n){return u(this,void 0,void 0,(function(){var r,i,a,c,u,h,d,p=this;return l(this,(function(l){switch(l.label){case 0:if(r=this.browserStorage.getCachedRequest(t,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),i=Dt.getDeserializedHash(e),i.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw _e.createNativeConnectionNotEstablishedError();return a=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,i.accountId,this.nativeStorage,r.correlationId),c=Nt.parseRequestState(this.browserCrypto,t).userRequestState,[2,a.acquireToken(s(s({},r),{state:c,prompt:void 0})).finally((function(){p.browserStorage.cleanRequestByState(t)}))]}if(u=this.browserStorage.getCachedAuthority(t),!u)throw _e.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(n,u)];case 1:return h=l.sent(),this.logger.verbose("Auth code client created"),un.removeThrottle(this.browserStorage,this.config.auth.clientId,r),d=new Fn(h,this.browserStorage,r,this.logger,this.browserCrypto,this.performanceClient),[4,d.handleCodeResponseFromHash(e,t,h.authority,this.networkClient)];case 2:return[2,l.sent()]}}))}))},t.prototype.logout=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,s,c;return l(this,(function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(ie.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(rn.LOGOUT_START,oe.Redirect,e),[4,this.clearCacheOnLogout(t.account)];case 2:return u.sent(),r={apiId:ie.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(n,e&&e.authority)];case 3:return i=u.sent(),this.logger.verbose("Auth code client created"),a=i.getLogoutUri(t),this.eventHandler.emitEvent(rn.LOGOUT_SUCCESS,oe.Redirect,t),e&&"function"===typeof e.onRedirectNavigate?(s=e.onRedirectNavigate(a),!1===s?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,r)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,r)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw c=u.sent(),c instanceof ce&&c.setCorrelationId(this.correlationId),n.cacheFailedRequest(c),this.eventHandler.emitEvent(rn.LOGOUT_FAILURE,oe.Redirect,null,c),this.eventHandler.emitEvent(rn.LOGOUT_END,oe.Redirect),c;case 11:return this.eventHandler.emitEvent(rn.LOGOUT_END,oe.Redirect),[2]}}))}))},t.prototype.getRedirectStartPage=function(e){var t=e||window.location.href;return Dt.getAbsoluteUrl(t,Kt.getCurrentUri())},t}(kn),Vn=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,r,i,a)||this;return s.navigateFrameWait=o.navigateFrameWait,s.pollIntervalMilliseconds=o.pollIntervalMilliseconds,s}return i(t,e),t.prototype.initiateAuthRequest=function(e){return u(this,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:if(this.performanceClient.addQueueMeasurement(o.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),Le.isEmpty(e))throw this.logger.info("Navigate url is empty"),_e.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(o.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(e)]):[3,2];case 1:return[2,t.sent()];case 2:return[2,this.loadFrameSync(e)]}}))}))},t.prototype.monitorIframeForHash=function(e,t){var n=this;return this.performanceClient.addQueueMeasurement(o.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise((function(r,i){ta)return n.removeHiddenIframe(e),clearInterval(s),void i(_e.createMonitorIframeTimeoutError());var t=x.EMPTY_STRING,o=e.contentWindow;try{t=o?o.location.href:x.EMPTY_STRING}catch(u){}if(!Le.isEmpty(t)){var c=o?o.location.hash:x.EMPTY_STRING;return Dt.hashContainsKnownProperties(c)?(n.removeHiddenIframe(e),clearInterval(s),void r(c)):void 0}}),n.pollIntervalMilliseconds)}))},t.prototype.loadFrame=function(e){var t=this;return this.performanceClient.addQueueMeasurement(o.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise((function(n,r){var i=t.createHiddenIframe();setTimeout((function(){i?(i.src=e,n(i)):r("Unable to load iframe")}),t.navigateFrameWait)}))},t.prototype.loadFrameSync=function(e){var t=this.createHiddenIframe();return t.src=e,t},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}(Un),Hn=function(e){function t(t,n,r,i,o,a,s,c,u,l,h){var d=e.call(this,t,n,r,i,o,a,c,l,h)||this;return d.apiId=s,d.nativeStorage=u,d}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a;return l(this,(function(c){switch(c.label){case 0:if(this.performanceClient.addQueueMeasurement(o.SilentIframeClientAcquireToken,e.correlationId),this.logger.verbose("acquireTokenByIframe called"),t=this.performanceClient.startMeasurement(o.SilentIframeClientAcquireToken,e.correlationId),Le.isEmpty(e.loginHint)&&Le.isEmpty(e.sid)&&(!e.account||Le.isEmpty(e.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==j.NONE&&e.prompt!==j.NO_SESSION)throw t.endMeasurement({success:!1}),_e.createSilentPromptValueError(e.prompt);return this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(s(s({},e),{prompt:e.prompt||j.NONE}),oe.Silent)];case 1:n=c.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||x.EMPTY_STRING,n.account||null),r=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(o.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(r,n.authority,n.azureCloudOptions)];case 3:return i=c.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(o.SilentIframeClientTokenHelper,e.correlationId),[4,this.silentTokenHelper(i,n).then((function(e){return t.endMeasurement({success:!0,fromCache:!1,requestId:e.requestId}),e}))];case 4:return[2,c.sent()];case 5:throw a=c.sent(),a instanceof ce&&a.setCorrelationId(this.correlationId),r.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(n.state),t.endMeasurement({errorCode:a instanceof ce&&a.errorCode||void 0,subErrorCode:a instanceof ce&&a.subError||void 0,success:!1}),a;case 6:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(_e.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,t){return u(this,void 0,void 0,(function(){var n,r,i,a,c,u,h,d,p,f=this;return l(this,(function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(o.SilentIframeClientTokenHelper,t.correlationId),this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 1:return n=l.sent(),this.performanceClient.setPreQueueTime(o.GetAuthCodeUrl,t.correlationId),[4,e.getAuthCodeUrl(s(s({},t),{nativeBroker:Rn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 2:return r=l.sent(),i=new Vn(e,this.browserStorage,n,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(o.SilentHandlerInitiateAuthRequest,t.correlationId),[4,i.initiateAuthRequest(r)];case 3:return a=l.sent(),this.performanceClient.setPreQueueTime(o.SilentHandlerMonitorIframeForHash,t.correlationId),[4,i.monitorIframeForHash(a,this.config.system.iframeHashTimeout)];case 4:if(c=l.sent(),u=Dt.getDeserializedHash(c),h=this.validateAndExtractStateFromHash(u,oe.Silent,n.correlationId),u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw _e.createNativeConnectionNotEstablishedError();return d=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,this.correlationId),p=Nt.parseRequestState(this.browserCrypto,h).userRequestState,[2,d.acquireToken(s(s({},t),{state:p,prompt:t.prompt||j.NONE})).finally((function(){f.browserStorage.cleanRequestByState(h)}))]}return this.performanceClient.setPreQueueTime(o.HandleCodeResponseFromHash,t.correlationId),[2,i.handleCodeResponseFromHash(c,h,e.authority,this.networkClient)]}}))}))},t}(kn),Qn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,c=this;return l(this,(function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(o.SilentRefreshClientAcquireToken,e.correlationId),this.performanceClient.setPreQueueTime(o.InitializeBaseRequest,e.correlationId),n=[s({},e)],[4,this.initializeBaseRequest(e,e.account)];case 1:return t=s.apply(void 0,n.concat([u.sent()])),r=this.performanceClient.startMeasurement(o.SilentRefreshClientAcquireToken,t.correlationId),i=this.initializeServerTelemetryManager(ie.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(i,t.authority,t.azureCloudOptions)];case 2:return a=u.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(o.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),[2,a.acquireTokenByRefreshToken(t).then((function(e){return r.endMeasurement({success:!0,fromCache:e.fromCache,requestId:e.requestId}),e})).catch((function(e){throw e instanceof ce&&e.setCorrelationId(c.correlationId),i.cacheFailedRequest(e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}))]}}))}))},t.prototype.logout=function(){return Promise.reject(_e.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,t,n){return u(this,void 0,void 0,(function(){var r;return l(this,(function(i){switch(i.label){case 0:return this.performanceClient.setPreQueueTime(o.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=i.sent(),[2,new Ln(r,this.performanceClient)]}}))}))},t}(kn),qn=function(){function e(e,t,n,r){this.isBrowserEnvironment="undefined"!==typeof window,this.config=e,this.storage=t,this.logger=n,this.cryptoObj=r}return e.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw _e.createUnableToLoadTokenError("Please ensure server response includes id token.");var r,i,o=new mt(t.id_token,this.cryptoObj);if(e.account){var a=this.loadAccount(o,e.account.environment,void 0,void 0,e.account.homeAccountId);r=new fn(a,this.loadIdToken(o,a.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,a.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,a.homeAccountId,e.account.environment))}else{if(!e.authority)throw _e.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var s=In.generateAuthority(e.authority,e.azureCloudOptions),c={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(i=new In(s,this.config.system.networkClient,this.storage,c,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");a=this.loadAccount(o,i.hostnameAndPort,n.clientInfo,i.authorityType);r=new fn(a,this.loadIdToken(o,a.homeAccountId,i.hostnameAndPort,i.tenant),this.loadAccessToken(e,t,a.homeAccountId,i.hostnameAndPort,i.tenant,n),this.loadRefreshToken(e,t,a.homeAccountId,i.hostnameAndPort))}else{if(!t.client_info)throw _e.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response");a=this.loadAccount(o,i.hostnameAndPort,t.client_info,i.authorityType);r=new fn(a,this.loadIdToken(o,a.homeAccountId,i.hostnameAndPort,i.tenant),this.loadAccessToken(e,t,a.homeAccountId,i.hostnameAndPort,i.tenant,n),this.loadRefreshToken(e,t,a.homeAccountId,i.hostnameAndPort))}}return this.generateAuthenticationResult(e,o,r,i)},e.prototype.loadAccount=function(e,t,n,r,i){var o;if(i?o=i:void 0!==r&&n&&(o=gt.generateHomeAccountId(n,r,this.logger,this.cryptoObj,e)),!o)throw _e.createUnableToLoadTokenError("Unexpected missing homeAccountId");var a=n?gt.createAccount(n,o,e,void 0,void 0,void 0,t):gt.createGenericAccount(o,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(a),a;throw _e.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(e,t,n,r){var i=ct.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw _e.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadAccessToken=function(e,t,n,r,i,o){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw _e.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!o.extendedExpiresOn)throw _e.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new ht(e.scopes).printScopes(),s=o.expiresOn||t.expires_in+(new Date).getTime()/1e3,c=o.extendedExpiresOn,u=St.createAccessTokenEntity(n,r,t.access_token,this.config.auth.clientId,i,a,s,c,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw _e.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadRefreshToken=function(e,t,n,r){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=Ot.createRefreshTokenEntity(n,r,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw _e.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(e,t,n,r){var i,o,a,s,c=x.EMPTY_STRING,u=[],l=null;(null===n||void 0===n?void 0:n.accessToken)&&(c=n.accessToken.secret,u=ht.fromString(n.accessToken.target).asArray(),l=new Date(1e3*Number(n.accessToken.expiresOn)),s=new Date(1e3*Number(n.accessToken.extendedExpiresOn)));var h=(null===t||void 0===t?void 0:t.claims.oid)||(null===t||void 0===t?void 0:t.claims.sub)||x.EMPTY_STRING,d=(null===t||void 0===t?void 0:t.claims.tid)||x.EMPTY_STRING;return{authority:r?r.canonicalAuthority:x.EMPTY_STRING,uniqueId:h,tenantId:d,scopes:u,account:(null===n||void 0===n?void 0:n.account)?n.account.getAccountInfo():null,idToken:t?t.rawToken:x.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:l,correlationId:e.correlationId||x.EMPTY_STRING,requestId:x.EMPTY_STRING,extExpiresOn:s,familyId:x.EMPTY_STRING,tokenType:(null===(i=null===n||void 0===n?void 0:n.accessToken)||void 0===i?void 0:i.tokenType)||x.EMPTY_STRING,state:x.EMPTY_STRING,cloudGraphHostName:(null===(o=null===n||void 0===n?void 0:n.account)||void 0===o?void 0:o.cloudGraphHostName)||x.EMPTY_STRING,msGraphHost:(null===(a=null===n||void 0===n?void 0:n.account)||void 0===a?void 0:a.msGraphHost)||x.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},e}(),$n=function(e){function t(t){var n=e.call(this,t)||this;return n.includeRedirectUri=!1,n}return i(t,e),t}(vn),Wn=function(e){function t(t,n,r,i,o,a,s,c,u,l){var h=e.call(this,t,n,r,i,o,a,c,u,l)||this;return h.apiId=s,h}return i(t,e),t.prototype.acquireToken=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,c,u;return l(this,(function(l){switch(l.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw _e.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(o.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,oe.Silent)];case 1:t=l.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||x.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,4,,5]),r=s(s({},t),{code:e.code}),this.performanceClient.setPreQueueTime(o.StandardInteractionClientGetClientConfiguration,e.correlationId),[4,this.getClientConfiguration(n,t.authority)];case 3:return i=l.sent(),a=new $n(i),this.logger.verbose("Auth code client created"),c=new Vn(a,this.browserStorage,r,this.logger,this.config.system,this.performanceClient),[2,c.handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t.state,a.authority,this.networkClient,!1)];case 4:throw u=l.sent(),u instanceof ce&&u.setCorrelationId(this.correlationId),n.cacheFailedRequest(u),this.browserStorage.cleanRequestByState(t.state),u;case 5:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(_e.createSilentLogoutUnsupportedError())},t}(kn),Gn=function(){function e(t,n){this.correlationId=n,this.measureName=e.makeMeasureName(t,n),this.startMark=e.makeStartMark(t,n),this.endMark=e.makeEndMark(t,n)}return e.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},e.makeStartMark=function(e,t){return"msal.start."+e+"."+t},e.makeEndMark=function(e,t){return"msal.end."+e+"."+t},e.supportsBrowserPerformance=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.performance&&"function"===typeof window.performance.mark&&"function"===typeof window.performance.measure&&"function"===typeof window.performance.clearMarks&&"function"===typeof window.performance.clearMeasures&&"function"===typeof window.performance.getEntriesByName},e.flushMeasurements=function(t,n){if(e.supportsBrowserPerformance())try{n.forEach((function(n){var r=e.makeMeasureName(n.name,t),i=window.performance.getEntriesByName(r,"measure");i.length>0&&(window.performance.clearMeasures(r),window.performance.clearMarks(e.makeStartMark(r,t)),window.performance.clearMarks(e.makeEndMark(r,t)))}))}catch(r){}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(t){}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(t){}},e.prototype.flushMeasurement=function(){if(e.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var n=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),n}}catch(r){}return null},e}(),Kn=function(e){function t(t,n,r,i,o,a,s){var c=e.call(this,t,n,r,i,o,a)||this;return c.browserCrypto=new We(c.logger,s),c.guidGenerator=new Ne(c.browserCrypto),c}return i(t,e),t.prototype.startPerformanceMeasuremeant=function(e,t){return new Gn(e,t)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return(null===(e=document.visibilityState)||void 0===e?void 0:e.toString())||null},t.prototype.deleteIncompleteSubMeasurements=function(e){var t=this.eventsByCorrelationId.get(e.event.correlationId),n=t&&t.eventId===e.event.eventId,r=[];n&&(null===t||void 0===t?void 0:t.incompleteSubMeasurements)&&t.incompleteSubMeasurements.forEach((function(e){r.push(s({},e))})),r.length>0&&Gn.flushMeasurements(e.event.correlationId,r)},t.prototype.supportsBrowserPerformanceNow=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.performance&&"function"===typeof window.performance.now},t.prototype.startMeasurement=function(t,n){var r=this,i=this.getPageVisibility(),o=e.prototype.startMeasurement.call(this,t,n);return s(s({},o),{endMeasurement:function(e){var t=o.endMeasurement(s({startPageVisibility:i,endPageVisibility:r.getPageVisibility()},e));return r.deleteIncompleteSubMeasurements(o),t},discardMeasurement:function(){o.discardMeasurement(),r.deleteIncompleteSubMeasurements(o),o.measurement.flushMeasurement()}})},t.prototype.setPreQueueTime=function(e,t){if(this.supportsBrowserPerformanceNow())if(t){var n=this.preQueueTimeByCorrelationId.get(t);n&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+n.name+" found",t),this.addQueueMeasurement(n.name,t,void 0,!0)),this.preQueueTimeByCorrelationId.set(t,{name:e,time:window.performance.now()})}else this.logger.trace("BrowserPerformanceClient: correlationId for "+e+" not provided, unable to set telemetry queue time");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+e)},t.prototype.addQueueMeasurement=function(t,n,r,i){if(this.supportsBrowserPerformanceNow())if(n){var o=e.prototype.getPreQueueTime.call(this,t,n);if(o){var a=window.performance.now(),s=r||e.prototype.calculateQueuedTime.call(this,o,a);return e.prototype.addQueueMeasurement.call(this,t,n,s,i)}}else this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t)},t}(rt),Zn=function(){function e(e){this.isBrowserEnvironment="undefined"!==typeof window,this.config=nn(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new nt(this.config.system.loggerOptions,on,an),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new Kn(this.config.auth.clientId,this.config.auth.authority,this.logger,on,an,this.config.telemetry.application,this.config.system.cryptoOptions):new ot(this.config.auth.clientId,this.config.auth.authority,this.logger,on,an,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new et(this.logger,this.performanceClient,this.config.system.cryptoOptions):at,this.eventHandler=new cn(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Lt(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):zt(this.config.auth.clientId,this.logger);var t={cacheLocation:X.MemoryStorage,temporaryCacheLocation:X.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new Lt(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new qn(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return u(this,void 0,void 0,(function(){var e,t,n,r,i;return l(this,(function(a){switch(a.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(o.InitializeClientApplication),this.eventHandler.emitEvent(rn.INITIALIZE_START),!e)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),n=this,[4,Rn.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=a.sent(),[3,4];case 3:return r=a.sent(),this.logger.verbose(r),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),i=this.performanceClient.startMeasurement(o.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),i.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(rn.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}}))}))},e.prototype.handleRedirectPromise=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u=this;return l(this,(function(l){return this.logger.verbose("handleRedirectPromise called"),Kt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||x.EMPTY_STRING,r=this.redirectResponse.get(n),"undefined"===typeof r?(this.eventHandler.emitEvent(rn.HANDLE_REDIRECT_START,oe.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),o=void 0,i&&Rn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),o=a.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),s=this.browserStorage.getTemporaryCache(te.CORRELATION_ID,!0)||x.EMPTY_STRING,c=this.createRedirectClient(s),o=c.handleRedirectPromise(e)),r=o.then((function(e){if(e){var n=t.length0?u.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,e):u.eventHandler.emitEvent(rn.LOGIN_FAILURE,oe.Redirect,null,e),u.eventHandler.emitEvent(rn.HANDLE_REDIRECT_END,oe.Redirect),e})),this.redirectResponse.set(n,r)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,r]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])}))}))},e.prototype.acquireTokenRedirect=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,o,a=this;return l(this,(function(s){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(oe.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_START,oe.Redirect,e):this.eventHandler.emitEvent(rn.LOGIN_START,oe.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),r=i.acquireTokenRedirect(e).catch((function(t){if(t instanceof En&&t.isFatal()){a.nativeExtensionProvider=void 0;var n=a.createRedirectClient(e.correlationId);return n.acquireToken(e)}if(t instanceof pe){a.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");n=a.createRedirectClient(e.correlationId);return n.acquireToken(e)}throw a.browserStorage.setInteractionInProgress(!1),t}))):(o=this.createRedirectClient(e.correlationId),r=o.acquireToken(e)),[2,r.catch((function(e){throw n?a.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,e):a.eventHandler.emitEvent(rn.LOGIN_FAILURE,oe.Redirect,null,e),e}))]}))}))},e.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(o.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(oe.Popup)}catch(c){return Promise.reject(c)}var i,a=this.getAllAccounts();if(a.length>0?this.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_START,oe.Popup,e):this.eventHandler.emitEvent(rn.LOGIN_START,oe.Popup,e),this.canUseNative(e))i=this.acquireTokenNative(e,ie.acquireTokenPopup).then((function(e){return t.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e})).catch((function(n){if(n instanceof En&&n.isFatal()){t.nativeExtensionProvider=void 0;var r=t.createPopupClient(e.correlationId);return r.acquireToken(e)}if(n instanceof pe){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");r=t.createPopupClient(e.correlationId);return r.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),n}));else{var s=this.createPopupClient(e.correlationId);i=s.acquireToken(e)}return i.then((function(e){var n=a.length0?t.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_FAILURE,oe.Popup,null,e):t.eventHandler.emitEvent(rn.LOGIN_FAILURE,oe.Popup,null,e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),Promise.reject(e)}))},e.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},e.prototype.ssoSilent=function(e){var t;return u(this,void 0,void 0,(function(){var n,r,i,a,c=this;return l(this,(function(u){return n=this.getRequestCorrelationId(e),r=s(s({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(oe.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(o.SsoSilent,n),null===(t=this.ssoSilentMeasurement)||void 0===t||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(rn.SSO_SILENT_START,oe.Silent,r),this.canUseNative(r)?i=this.acquireTokenNative(r,ie.ssoSilent).catch((function(e){if(e instanceof En&&e.isFatal()){c.nativeExtensionProvider=void 0;var t=c.createSilentIframeClient(r.correlationId);return t.acquireToken(r)}throw e})):(a=this.createSilentIframeClient(r.correlationId),i=a.acquireToken(r)),[2,i.then((function(e){var t,n;return c.eventHandler.emitEvent(rn.SSO_SILENT_SUCCESS,oe.Silent,e),null===(t=c.ssoSilentMeasurement)||void 0===t||t.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),null===(n=c.ssoSilentMeasurement)||void 0===n||n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw c.eventHandler.emitEvent(rn.SSO_SILENT_FAILURE,oe.Silent,null,e),null===(t=c.ssoSilentMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",c.trackPageVisibilityWithMeasurement)}))]}))}))},e.prototype.acquireTokenByCode=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a=this;return l(this,(function(c){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_BY_CODE_START,oe.Silent,e),n=this.performanceClient.startMeasurement(o.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw _e.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return r=e.code,i=this.hybridAuthCodeResponses.get(r),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),i=this.acquireTokenByCodeAsync(s(s({},e),{correlationId:t})).then((function(e){return a.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_BY_CODE_SUCCESS,oe.Silent,e),a.hybridAuthCodeResponses.delete(r),n.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){throw a.hybridAuthCodeResponses.delete(r),a.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,e),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})),this.hybridAuthCodeResponses.set(r,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,ie.acquireTokenByCode,e.nativeAccountId).catch((function(e){throw e instanceof En&&e.isFatal()&&(a.nativeExtensionProvider=void 0),e}))];throw _e.createUnableToAcquireTokenFromNativePlatformError()}throw _e.createAuthCodeOrNativeAccountIdRequiredError()}catch(u){throw this.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,u),n.endMeasurement({errorCode:u instanceof ce&&u.errorCode||void 0,subErrorCode:u instanceof ce&&u.subError||void 0,success:!1}),u}return[2]}))}))},e.prototype.acquireTokenByCodeAsync=function(e){var t;return u(this,void 0,void 0,(function(){var n,r,i=this;return l(this,(function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(o.AcquireTokenByCodeAsync,e.correlationId),null===(t=this.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),n=this.createSilentAuthCodeClient(e.correlationId),[4,n.acquireToken(e).then((function(e){var t;return null===(t=i.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw null===(t=i.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)}))];case 1:return r=a.sent(),[2,r]}}))}))},e.prototype.acquireTokenFromCache=function(e,t,n){return u(this,void 0,void 0,(function(){return l(this,(function(r){switch(this.performanceClient.addQueueMeasurement(o.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case be.Default:case be.AccessToken:case be.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw Ee.createRefreshRequiredError()}return[2]}))}))},e.prototype.acquireTokenByRefreshToken=function(e,t){return u(this,void 0,void 0,(function(){var n;return l(this,(function(r){switch(this.performanceClient.addQueueMeasurement(o.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case be.Default:case be.AccessTokenAndRefreshToken:case be.RefreshToken:case be.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(o.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw Ee.createRefreshRequiredError()}return[2]}))}))},e.prototype.acquireTokenBySilentIframe=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){return this.performanceClient.addQueueMeasurement(o.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(o.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]}))}))},e.prototype.logout=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(s({correlationId:t},e))]}))}))},e.prototype.logoutRedirect=function(e){return u(this,void 0,void 0,(function(){var t,n;return l(this,(function(r){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(oe.Redirect),n=this.createRedirectClient(t),[2,n.logout(e)]}))}))},e.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(oe.Popup);var n=this.createPopupClient(t);return n.logout(e)}catch(r){return Promise.reject(r)}},e.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},e.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},e.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},e.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},e.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},e.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},e.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(void 0===t&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Kt.blockNonBrowserEnvironment(this.isBrowserEnvironment),Kt.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Kt.blockReloadInHiddenIframes(),Kt.blockAcquireTokenInPopups(),Kt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===oe.Redirect&&this.config.cache.cacheLocation===X.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Ve.createInMemoryRedirectUnavailableError();e!==oe.Redirect&&e!==oe.Popup||this.preflightInteractiveRequest(t)},e.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Kt.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(e,t,n){return u(this,void 0,void 0,(function(){var r;return l(this,(function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw _e.createNativeConnectionNotEstablishedError();return r=new Pn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,r.acquireToken(e)]}))}))},e.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!Rn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case j.NONE:case j.CONSENT:case j.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!(!t&&!this.getNativeAccountId(e))||(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1)},e.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},e.prototype.createPopupClient=function(e){return new Bn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createRedirectClient=function(e){return new Yn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentIframeClient=function(e){return new Hn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentCacheClient=function(e){return new _n(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentRefreshClient=function(e){return new Qn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentAuthCodeClient=function(e){return new Wn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ie.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},e.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},e.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},e.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},e.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},e.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},e.prototype.getTokenCache=function(){return this.tokenCache},e.prototype.getLogger=function(){return this.logger},e.prototype.setLogger=function(e){this.logger=e},e.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},e.prototype.setNavigationClient=function(e){this.navigationClient=e},e.prototype.getConfiguration=function(){return this.config},e.prototype.getRequestCorrelationId=function(e){return(null===e||void 0===e?void 0:e.correlationId)?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():x.EMPTY_STRING},e}(),Jn=function(e){function t(t){var n=e.call(this,t)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return i(t,e),t.prototype.loginRedirect=function(e){return u(this,void 0,void 0,(function(){var t;return l(this,(function(n){return t=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",t),[2,this.acquireTokenRedirect(s({correlationId:t},e||ye))]}))}))},t.prototype.loginPopup=function(e){var t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup(s({correlationId:t},e||ye))},t.prototype.acquireTokenSilent=function(e){return u(this,void 0,void 0,(function(){var t,n,r,i,a,c,u,h=this;return l(this,(function(l){if(t=this.getRequestCorrelationId(e),n=this.performanceClient.startMeasurement(o.AcquireTokenSilent,t),n.addStaticFields({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.verbose("acquireTokenSilent called",t),r=e.account||this.getActiveAccount(),!r)throw _e.createNoAccountError();return i={clientId:this.config.auth.clientId,authority:e.authority||x.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:r.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},a=JSON.stringify(i),c=this.activeSilentTokenRequests.get(a),"undefined"===typeof c?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t),this.performanceClient.setPreQueueTime(o.AcquireTokenSilentAsync,t),u=this.acquireTokenSilentAsync(s(s({},e),{correlationId:t}),r).then((function(t){return h.activeSilentTokenRequests.delete(a),n.addStaticFields({accessTokenSize:t.accessToken.length,idTokenSize:t.idToken.length}),n.endMeasurement({success:!0,fromCache:t.fromCache,isNativeBroker:t.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:t.requestId}),t})).catch((function(e){throw h.activeSilentTokenRequests.delete(a),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})),this.activeSilentTokenRequests.set(a,u),[2,u]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),n.discardMeasurement(),[2,c])}))}))},t.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},t.prototype.acquireTokenSilentAsync=function(e,t){var n;return u(this,void 0,void 0,(function(){var r,i,a,c,h,d=this;return l(this,(function(p){switch(p.label){case 0:return this.performanceClient.addQueueMeasurement(o.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_START,oe.Silent,e),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(o.AcquireTokenSilentAsync,e.correlationId),null===(n=this.astsAsyncMeasurement)||void 0===n||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),Rn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&t.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),i=s(s({},e),{account:t}),r=this.acquireTokenNative(i,ie.acquireTokenSilent_silentFlow).catch((function(t){return u(d,void 0,void 0,(function(){var n;return l(this,(function(r){if(t instanceof En&&t.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,n=this.createSilentIframeClient(e.correlationId),[2,n.acquireToken(e)];throw t}))}))})),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),a=this.createSilentCacheClient(e.correlationId),this.performanceClient.setPreQueueTime(o.InitializeSilentRequest,e.correlationId),[4,a.initializeSilentRequest(e,t)];case 2:c=p.sent(),h=s(s({},e),{cacheLookupPolicy:e.cacheLookupPolicy||be.Default}),this.performanceClient.setPreQueueTime(o.AcquireTokenFromCache,c.correlationId),r=this.acquireTokenFromCache(a,c,h).catch((function(t){if(h.cacheLookupPolicy===be.AccessToken)throw t;return Kt.blockReloadInHiddenIframes(),d.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_NETWORK_START,oe.Silent,c),d.performanceClient.setPreQueueTime(o.AcquireTokenByRefreshToken,c.correlationId),d.acquireTokenByRefreshToken(c,h).catch((function(t){var n=t instanceof ue,r=t instanceof pe,i=t.errorCode===de.noTokensFoundError.code,a=t.errorCode===fe.INVALID_GRANT_ERROR;if((!n||!a||r||h.cacheLookupPolicy===be.AccessTokenAndRefreshToken||h.cacheLookupPolicy===be.RefreshToken)&&h.cacheLookupPolicy!==be.Skip&&!i)throw t;return d.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),d.performanceClient.setPreQueueTime(o.AcquireTokenBySilentIframe,c.correlationId),d.acquireTokenBySilentIframe(c)}))})),p.label=3;case 3:return[2,r.then((function(e){var t;return d.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_SUCCESS,oe.Silent,e),null===(t=d.astsAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw d.eventHandler.emitEvent(rn.ACQUIRE_TOKEN_FAILURE,oe.Silent,null,e),null===(t=d.astsAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",d.trackPageVisibility)}))]}}))}))},t}(Zn)},"1baa":function(e,t,n){"use strict";var r=n("5530"),i=(n("899c"),n("604c")),o=n("a9ad"),a=n("58df");t["a"]=Object(a["a"])(i["a"],o["a"]).extend({name:"v-list-item-group",provide:function(){return{isInGroup:!0,listItemGroup:this}},computed:{classes:function(){return Object(r["a"])(Object(r["a"])({},i["a"].options.computed.classes.call(this)),{},{"v-list-item-group":!0})}},methods:{genData:function(){return this.setTextColor(this.color,Object(r["a"])(Object(r["a"])({},i["a"].options.methods.genData.call(this)),{},{attrs:{role:"listbox"}}))}}})},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},"1c87":function(e,t,n){"use strict";n("99af"),n("ac1f"),n("5319"),n("498a"),n("9911");var r=n("ade3"),i=n("5530"),o=n("a026"),a=n("5607"),s=n("80d2");t["a"]=o["default"].extend({name:"routable",directives:{Ripple:a["a"]},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactPath:Boolean,exactActiveClass:String,link:Boolean,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:{type:[Boolean,Object],default:null},tag:String,target:String},data:function(){return{isActive:!1,proxyClass:""}},computed:{classes:function(){var e={};return this.to||(this.activeClass&&(e[this.activeClass]=this.isActive),this.proxyClass&&(e[this.proxyClass]=this.isActive)),e},computedRipple:function(){var e;return null!=(e=this.ripple)?e:!this.disabled&&this.isClickable},isClickable:function(){return!this.disabled&&Boolean(this.isLink||this.$listeners.click||this.$listeners["!click"]||this.$attrs.tabindex)},isLink:function(){return this.to||this.href||this.link},styles:function(){return{}}},watch:{$route:"onRouteChange"},mounted:function(){this.onRouteChange()},methods:{generateRouteLink:function(){var e,t,n=this.exact,o=(e={attrs:{tabindex:"tabindex"in this.$attrs?this.$attrs.tabindex:void 0},class:this.classes,style:this.styles,props:{},directives:[{name:"ripple",value:this.computedRipple}]},Object(r["a"])(e,this.to?"nativeOn":"on",Object(i["a"])(Object(i["a"])({},this.$listeners),"click"in this?{click:this.click}:void 0)),Object(r["a"])(e,"ref","link"),e);if("undefined"===typeof this.exact&&(n="/"===this.to||this.to===Object(this.to)&&"/"===this.to.path),this.to){var a=this.activeClass,s=this.exactActiveClass||a;this.proxyClass&&(a="".concat(a," ").concat(this.proxyClass).trim(),s="".concat(s," ").concat(this.proxyClass).trim()),t=this.nuxt?"nuxt-link":"router-link",Object.assign(o.props,{to:this.to,exact:n,exactPath:this.exactPath,activeClass:a,exactActiveClass:s,append:this.append,replace:this.replace})}else t=(this.href?"a":this.tag)||"div","a"===t&&this.href&&(o.attrs.href=this.href);return this.target&&(o.attrs.target=this.target),{tag:t,data:o}},onRouteChange:function(){var e=this;if(this.to&&this.$refs.link&&this.$route){var t="".concat(this.activeClass||""," ").concat(this.proxyClass||"").trim(),n="".concat(this.exactActiveClass||""," ").concat(this.proxyClass||"").trim()||t,r="_vnode.data.class."+(this.exact?n:t);this.$nextTick((function(){!Object(s["n"])(e.$refs.link,r)===e.isActive&&e.toggle()}))}},toggle:function(){this.isActive=!this.isActive}}})},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"20f6":function(e,t,n){},"21be":function(e,t,n){"use strict";n("99af"),n("caad"),n("2532");var r=n("2909"),i=n("a026"),o=n("80d2");t["a"]=i["default"].extend().extend({name:"stackable",data:function(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex:function(){if("undefined"===typeof window)return 0;var e=this.stackElement||this.$refs.content,t=this.isActive?this.getMaxZIndex(this.stackExclude||[e])+2:Object(o["r"])(e);return null==t?t:parseInt(t)}},methods:{getMaxZIndex:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.$el,n=[this.stackMinZIndex,Object(o["r"])(t)],i=[].concat(Object(r["a"])(document.getElementsByClassName("v-menu__content--active")),Object(r["a"])(document.getElementsByClassName("v-dialog__content--active"))),a=0;ad;d++)if(f=O(e[d]),f&&f instanceof u)return f;return new u(!1)}l=h.call(e)}g=l.next;while(!(m=g.call(l)).done){try{f=O(m.value)}catch(C){throw c(l),C}if("object"==typeof f&&f&&f instanceof u)return f}return new u(!1)}},"22da":function(e,t,n){"use strict";var r=n("490a");t["a"]=r["a"]},"23cb":function(e,t,n){var r=n("a691"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),c=n("e893"),u=n("94ca");e.exports=function(e,t){var n,l,h,d,p,f,g=e.target,m=e.global,y=e.stat;if(l=m?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,l)for(h in t){if(p=t[h],e.noTargetGet?(f=i(l,h),d=f&&f.value):d=l[h],n=u(m?h:g+(y?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof p===typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(l,h,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var c={adapter:s(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n("4362"))},"24b2":function(e,t,n){"use strict";n("a9e3");var r=n("80d2"),i=n("a026");t["a"]=i["default"].extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles:function(){var e={},t=Object(r["g"])(this.height),n=Object(r["g"])(this.minHeight),i=Object(r["g"])(this.minWidth),o=Object(r["g"])(this.maxHeight),a=Object(r["g"])(this.maxWidth),s=Object(r["g"])(this.width);return t&&(e.height=t),n&&(e.minHeight=n),i&&(e.minWidth=i),o&&(e.maxHeight=o),a&&(e.maxWidth=a),s&&(e.width=s),e}}})},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("5a34"),o=n("1d80"),a=n("ab13");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},"25a8":function(e,t,n){},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),i=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",c=RegExp.prototype,u=c[s],l=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),h=u.name!=s;(l||h)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"262e":function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return i}))},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("6b75");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0");function o(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}var a=n("06c5");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){return i(e)||o(e)||Object(a["a"])(e)||s()}},"297c":function(e,t,n){"use strict";n("a9e3");var r=n("a026"),i=(n("c7cd"),n("5530")),o=n("ade3"),a=(n("6ece"),n("0789")),s=n("90a2"),c=n("a9ad"),u=n("fe6c"),l=n("a452"),h=n("7560"),d=n("80d2"),p=n("58df"),f=Object(p["a"])(c["a"],Object(u["b"])(["absolute","fixed","top","bottom"]),l["a"],h["a"]),g=f.extend({name:"v-progress-linear",directives:{intersect:s["a"]},props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0,isVisible:!0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(d["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(d["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var e,t=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return e={opacity:t},Object(o["a"])(e,this.isReversed?"right":"left",Object(d["g"])(this.normalizedValue,"%")),Object(o["a"])(e,"width",Object(d["g"])(Math.max(0,this.normalizedBuffer-this.normalizedValue),"%")),e},classes:function(){return Object(i["a"])({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped,"v-progress-linear--visible":this.isVisible},this.themeClasses)},computedTransition:function(){return this.indeterminate?a["c"]:a["d"]},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var e={};return this.active||(e.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(e.width=Object(d["g"])(this.normalizedBuffer,"%")),e}},methods:{genContent:function(){var e=Object(d["p"])(this,"default",{value:this.internalLazyValue});return e?this.$createElement("div",{staticClass:"v-progress-linear__content"},e):null},genListeners:function(){var e=this.$listeners;return this.reactive&&(e.click=this.onClick),e},genProgressBar:function(e){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(o["a"])({},e,!0)}))},onClick:function(e){if(this.reactive){var t=this.$el.getBoundingClientRect(),n=t.width;this.internalValue=e.offsetX/n*100}},onObserve:function(e,t,n){this.isVisible=n},normalize:function(e){return e<0?0:e>100?100:parseFloat(e)}},render:function(e){var t={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?Object(d["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return e("div",t,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}}),m=g;t["a"]=r["default"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(m,{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},"2a62":function(e,t,n){var r=n("825a");e.exports=function(e){var t=e["return"];if(void 0!==t)return r(t.call(e)).value}},"2b19":function(e,t,n){var r=n("23e7"),i=n("129f");r({target:"Object",stat:!0},{is:i})},"2b3d":function(e,t,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),a=n("0d3b"),s=n("da84"),c=n("37e8"),u=n("6eeb"),l=n("19aa"),h=n("5135"),d=n("60da"),p=n("4df4"),f=n("6547").codeAt,g=n("5fb2"),m=n("d44e"),y=n("9861"),v=n("69f3"),b=s.URL,M=y.URLSearchParams,w=y.getState,S=v.set,O=v.getterFor("URL"),C=Math.floor,x=Math.pow,T="Invalid authority",I="Invalid scheme",N="Invalid host",j="Invalid port",A=/[A-Za-z]/,k=/[\d+-.A-Za-z]/,D=/\d/,E=/^0x/i,L=/^[0-7]+$/,z=/^\d+$/,_=/^[\dA-Fa-f]+$/,P=/[\0\t\n\r #%/:<>?@[\\\]^|]/,R=/[\0\t\n\r #/:<>?@[\\\]^|]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\t\n\r]/g,F=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return N;if(n=V(t.slice(1,-1)),!n)return N;e.host=n}else if(J(e)){if(t=g(t),P.test(t))return N;if(n=Y(t),null===n)return N;e.host=n}else{if(R.test(t))return N;for(n="",r=p(t),i=0;i4)return e;for(n=[],r=0;r1&&"0"==i.charAt(0)&&(o=E.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?z:8==o?L:_).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r=x(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r6)return;r=0;while(d()){if(i=null,r>0){if(!("."==d()&&r<4))return;h++}if(!D.test(d()))return;while(D.test(d())){if(o=parseInt(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;h++}c[u]=256*c[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;c[u++]=t}else{if(null!==l)return;h++,u++,l=u}}if(null!==l){a=u-l,u=7;while(0!=u&&a>0)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s}else if(8!=u)return;return c},H=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t},Q=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=C(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=H(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},q={},$=d({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),W=d({},$,{"#":1,"?":1,"{":1,"}":1}),G=d({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),K=function(e,t){var n=f(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(e){return h(Z,e.scheme)},X=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&A.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ie=function(e){return"."===e||"%2e"===e.toLowerCase()},oe=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ae={},se={},ce={},ue={},le={},he={},de={},pe={},fe={},ge={},me={},ye={},ve={},be={},Me={},we={},Se={},Oe={},Ce={},xe={},Te={},Ie=function(e,t,n,i){var o,a,s,c,u=n||ae,l=0,d="",f=!1,g=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(B,""),o=p(t);while(l<=o.length){switch(a=o[l],u){case ae:if(!a||!A.test(a)){if(n)return I;u=ce;continue}d+=a.toLowerCase(),u=se;break;case se:if(a&&(k.test(a)||"+"==a||"-"==a||"."==a))d+=a.toLowerCase();else{if(":"!=a){if(n)return I;d="",u=ce,l=0;continue}if(n&&(J(e)!=h(Z,d)||"file"==d&&(X(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(J(e)&&Z[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?u=be:J(e)&&i&&i.scheme==e.scheme?u=ue:J(e)?u=pe:"/"==o[l+1]?(u=le,l++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Ce)}break;case ce:if(!i||i.cannotBeABaseURL&&"#"!=a)return I;if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,u=Te;break}u="file"==i.scheme?be:he;continue;case ue:if("/"!=a||"/"!=o[l+1]){u=he;continue}u=fe,l++;break;case le:if("/"==a){u=ge;break}u=Oe;continue;case he:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&J(e))u=de;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",u=xe;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),u=Oe;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=Te}break;case de:if(!J(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,u=Oe;continue}u=ge}else u=fe;break;case pe:if(u=fe,"/"!=a||"/"!=d.charAt(l+1))continue;l++;break;case fe:if("/"!=a&&"\\"!=a){u=ge;continue}break;case ge:if("@"==a){f&&(d="%40"+d),f=!0,s=p(d);for(var y=0;y65535)return j;e.port=J(e)&&M===Z[e.scheme]?null:M,d=""}if(n)return;u=Se;continue}return j}d+=a;break;case be:if(e.scheme="file","/"==a||"\\"==a)u=Me;else{if(!i||"file"!=i.scheme){u=Oe;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",u=xe;else{if("#"!=a){ne(o.slice(l).join(""))||(e.host=i.host,e.path=i.path.slice(),re(e)),u=Oe;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=Te}}break;case Me:if("/"==a||"\\"==a){u=we;break}i&&"file"==i.scheme&&!ne(o.slice(l).join(""))&&(te(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),u=Oe;continue;case we:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&te(d))u=Oe;else if(""==d){if(e.host="",n)return;u=Se}else{if(c=F(e,d),c)return c;if("localhost"==e.host&&(e.host=""),n)return;d="",u=Se}continue}d+=a;break;case Se:if(J(e)){if(u=Oe,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=Oe,"/"!=a))continue}else e.fragment="",u=Te;else e.query="",u=xe;break;case Oe:if(a==r||"/"==a||"\\"==a&&J(e)||!n&&("?"==a||"#"==a)){if(oe(d)?(re(e),"/"==a||"\\"==a&&J(e)||e.path.push("")):ie(d)?"/"==a||"\\"==a&&J(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(a==r||"?"==a||"#"==a))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==a?(e.query="",u=xe):"#"==a&&(e.fragment="",u=Te)}else d+=K(a,W);break;case Ce:"?"==a?(e.query="",u=xe):"#"==a?(e.fragment="",u=Te):a!=r&&(e.path[0]+=K(a,q));break;case xe:n||"#"!=a?a!=r&&("'"==a&&J(e)?e.query+="%27":e.query+="#"==a?"%23":K(a,q)):(e.fragment="",u=Te);break;case Te:a!=r&&(e.fragment+=K(a,$));break}l++}},Ne=function(e){var t,n,r=l(this,Ne,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=S(r,{type:"URL"});if(void 0!==i)if(i instanceof Ne)t=O(i);else if(n=Ie(t={},String(i)),n)throw TypeError(n);if(n=Ie(s,a,null,t),n)throw TypeError(n);var c=s.searchParams=new M,u=w(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},o||(r.href=Ae.call(r),r.origin=ke.call(r),r.protocol=De.call(r),r.username=Ee.call(r),r.password=Le.call(r),r.host=ze.call(r),r.hostname=_e.call(r),r.port=Pe.call(r),r.pathname=Re.call(r),r.search=Ue.call(r),r.searchParams=Be.call(r),r.hash=Fe.call(r))},je=Ne.prototype,Ae=function(){var e=O(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",X(e)&&(u+=n+(r?":"+r:"")+"@"),u+=Q(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},ke=function(){var e=O(this),t=e.scheme,n=e.port;if("blob"==t)try{return new Ne(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&J(e)?t+"://"+Q(e.host)+(null!==n?":"+n:""):"null"},De=function(){return O(this).scheme+":"},Ee=function(){return O(this).username},Le=function(){return O(this).password},ze=function(){var e=O(this),t=e.host,n=e.port;return null===t?"":null===n?Q(t):Q(t)+":"+n},_e=function(){var e=O(this).host;return null===e?"":Q(e)},Pe=function(){var e=O(this).port;return null===e?"":String(e)},Re=function(){var e=O(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ue=function(){var e=O(this).query;return e?"?"+e:""},Be=function(){return O(this).searchParams},Fe=function(){var e=O(this).fragment;return e?"#"+e:""},Ye=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&c(je,{href:Ye(Ae,(function(e){var t=O(this),n=String(e),r=Ie(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)})),origin:Ye(ke),protocol:Ye(De,(function(e){var t=O(this);Ie(t,String(e)+":",ae)})),username:Ye(Ee,(function(e){var t=O(this),n=p(String(e));if(!ee(t)){t.username="";for(var r=0;r1?arguments[1]:void 0,t.length)),r=String(e);return l?l.call(t,r,n):t.slice(n,n+r.length)===r}})},"2caf":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("4ae1"),n("3410");function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n("d3b7"),n("25f0");function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var o=n("99de");function a(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return Object(o["a"])(this,n)}}},"2cf4":function(e,t,n){var r,i,o,a=n("da84"),s=n("d039"),c=n("0366"),u=n("1be4"),l=n("cc12"),h=n("1cdc"),d=n("605d"),p=a.location,f=a.setImmediate,g=a.clearImmediate,m=a.process,y=a.MessageChannel,v=a.Dispatch,b=0,M={},w="onreadystatechange",S=function(e){if(M.hasOwnProperty(e)){var t=M[e];delete M[e],t()}},O=function(e){return function(){S(e)}},C=function(e){S(e.data)},x=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};f&&g||(f=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return M[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},g=function(e){delete M[e]},d?r=function(e){m.nextTick(O(e))}:v&&v.now?r=function(e){v.now(O(e))}:y&&!h?(i=new y,o=i.port2,i.port1.onmessage=C,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&p&&"file:"!==p.protocol&&!s(x)?(r=x,a.addEventListener("message",C,!1)):r=w in l("script")?function(e){u.appendChild(l("script"))[w]=function(){u.removeChild(this),S(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:f,clear:g}},"2d00":function(e,t,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,c=s&&s.versions,u=c&&c.v8;u?(r=u.split("."),i=r[0]<4?1:r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2d85":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n("d77f"),i=n("7de8"),o=function(){function e(e){return this.subQuery=null,this.isChild=!1,this.distincts=[],this.queries=[],this.key="",this.fKey="","string"===typeof e?this.fromTable=e:e&&e instanceof Array&&(this.lookups=e),this.expands=[],this.sortedColumns=[],this.groupedColumns=[],this.subQuery=null,this.isChild=!1,this.params=[],this.lazyLoad=[],this}return e.prototype.setKey=function(e){return this.key=e,this},e.prototype.using=function(e){return this.dataManager=e,this},e.prototype.execute=function(e,t,n,i){return e=e||this.dataManager,e?e.executeQuery(this,t,n,i):r["a"].throwError('Query - execute() : dataManager needs to be is set using "using" function or should be passed as argument')},e.prototype.executeLocal=function(e){return e=e||this.dataManager,e?e.executeLocal(this):r["a"].throwError('Query - executeLocal() : dataManager needs to be is set using "using" function or should be passed as argument')},e.prototype.clone=function(){var t=new e;return t.queries=this.queries.slice(0),t.key=this.key,t.isChild=this.isChild,t.dataManager=this.dataManager,t.fromTable=this.fromTable,t.params=this.params.slice(0),t.expands=this.expands.slice(0),t.sortedColumns=this.sortedColumns.slice(0),t.groupedColumns=this.groupedColumns.slice(0),t.subQuerySelector=this.subQuerySelector,t.subQuery=this.subQuery,t.fKey=this.fKey,t.isCountRequired=this.isCountRequired,t.distincts=this.distincts.slice(0),t.lazyLoad=this.lazyLoad.slice(0),t},e.prototype.from=function(e){return this.fromTable=e,this},e.prototype.addParams=function(e,t){return"function"===typeof t?this.params.push({key:e,fn:t}):this.params.push({key:e,value:t}),this},e.prototype.distinct=function(e){return this.distincts="string"===typeof e?[].slice.call([e],0):e.slice(0),this},e.prototype.expand=function(e){return this.expands="string"===typeof e?[].slice.call([e],0):e.slice(0),this},e.prototype.where=function(e,t,n,r,i,o){t=t?t.toLowerCase():null;var s=null;return"string"===typeof e?s=new a(e,t,n,r,i,o):e instanceof a&&(s=e),this.queries.push({fn:"onWhere",e:s}),this},e.prototype.search=function(e,t,n,i,o){"string"===typeof t&&(t=[t]),n&&"none"!==n||(n="contains");var a=r["a"].fnOperators[n];return this.queries.push({fn:"onSearch",e:{fieldNames:t,operator:n,searchKey:e,ignoreCase:i,ignoreAccent:o,comparer:a}}),this},e.prototype.sortBy=function(e,t,n){return this.sortByForeignKey(e,t,n)},e.prototype.sortByForeignKey=function(t,n,o,a){var s,c,u=Object(i["w"])(a)?"ascending":a;if("string"===typeof t&&r["a"].endsWith(t.toLowerCase()," desc")&&(t=t.replace(/ desc$/i,""),n="descending"),n&&"string"!==typeof n||(u=n?n.toLowerCase():"ascending",n=r["a"].fnSort(n)),o){s=e.filterQueries(this.queries,"onSortBy");for(var l=0;l=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return z}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function c(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=c(e[n],t)})),r}function u(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function l(e){return null!==e&&"object"===typeof e}function h(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var p=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},p.prototype.forEachChild=function(e){u(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&u(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&u(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&u(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,f);var g=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;m(e.concat(r),t.getChild(r),n.modules[r])}}g.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},g.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},g.prototype.update=function(e){m([],this.root,e)},g.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new p(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&u(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},g.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var y;var v=function(e){var t=this;void 0===e&&(e={}),!y&&"undefined"!==typeof window&&window.Vue&&D(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,c=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return c.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;O(this,u,[],this._modules.root),S(this,u),n.forEach((function(e){return e(t)}));var l=void 0!==e.devtools?e.devtools:y.config.devtools;l&&a(this)},b={state:{configurable:!0}};function M(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;O(e,n,[],e._modules.root,!0),S(e,n,t)}function S(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};u(i,(function(t,n){o[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=y.config.silent;y.config.silent=!0,e._vm=new y({data:{$$state:t},computed:o}),y.config.silent=a,e.strict&&j(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),y.nextTick((function(){return r.$destroy()})))}function O(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=A(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){y.set(s,c,r.state)}))}var u=r.context=C(e,a,n);r.forEachMutation((function(t,n){var r=a+n;T(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;I(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;N(e,r,t,u)})),r.forEachChild((function(r,o){O(e,t,n.concat(o),r,i)}))}function C(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=k(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,i){var o=k(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return x(e,t)}},state:{get:function(){return A(e.state,n)}}}),i}function x(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function T(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function I(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return h(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function N(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function j(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(e,t){return t.reduce((function(e,t){return e[t]}),e)}function k(e,t,n){return l(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function D(e){y&&e===y||(y=e,r(y))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(e){0},v.prototype.commit=function(e,t,n){var r=this,i=k(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},v.prototype.dispatch=function(e,t){var n=this,r=k(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},v.prototype.subscribe=function(e,t){return M(e,this._subscribers,t)},v.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return M(n,this._actionSubscribers,t)},v.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},v.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},v.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),O(this,this.state,e,this._modules.get(e),n.preserveState),S(this,this.state)},v.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=A(t.state,e.slice(0,-1));y.delete(n,e[e.length-1])})),w(this)},v.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},v.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},v.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(v.prototype,b);var E=B((function(e,t){var n={};return R(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=F(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),L=B((function(e,t){var n={};return R(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=F(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),z=B((function(e,t){var n={};return R(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||F(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),_=B((function(e,t){var n={};return R(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=F(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),P=function(e){return{mapState:E.bind(null,e),mapGetters:z.bind(null,e),mapMutations:L.bind(null,e),mapActions:_.bind(null,e)}};function R(e){return U(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function U(e){return Array.isArray(e)||l(e)}function B(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function F(e,t,n){var r=e._modulesNamespaceMap[n];return r}function Y(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var u=e.logActions;void 0===u&&(u=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var h=c(e.state);"undefined"!==typeof l&&(s&&e.subscribe((function(e,o){var a=c(o);if(n(e,h,a)){var s=Q(),u=i(e),d="mutation "+e.type+s;V(l,d,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(h)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),H(l)}h=a})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var r=Q(),i=a(e),s="action "+e.type+r;V(l,s,t),l.log("%c action","color: #03A9F4; font-weight: bold",i),H(l)}})))}}function V(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function H(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function Q(){var e=new Date;return" @ "+$(e.getHours(),2)+":"+$(e.getMinutes(),2)+":"+$(e.getSeconds(),2)+"."+$(e.getMilliseconds(),3)}function q(e,t){return new Array(t+1).join(e)}function $(e,t){return q("0",t-e.toString().length)+e}var W={Store:v,install:D,version:"3.5.1",mapState:E,mapMutations:L,mapGetters:z,mapActions:_,createNamespacedHelpers:P,createLogger:Y};t["a"]=W}).call(this,n("c8ba"))},"2fa4":function(e,t,n){"use strict";n("20f6");var r=n("80d2");t["a"]=Object(r["i"])("spacer","div","v-spacer")},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},3206:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));n("99af");var r=n("ade3"),i=n("a026"),o=n("d9bd");function a(e,t){return function(){return Object(o["c"])("The ".concat(e," component must be used inside a ").concat(t))}}function s(e,t,n){var o=t&&n?{register:a(t,n),unregister:a(t,n)}:null;return i["default"].extend({name:"registrable-inject",inject:Object(r["a"])({},e,{default:o})})}function c(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i["default"].extend({name:"registrable-provide",provide:function(){return Object(r["a"])({},e,t?this:{register:this.register,unregister:this.unregister})}})}},"326d":function(e,t,n){"use strict";var r=n("e449");t["a"]=r["a"]},3408:function(e,t,n){},3410:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177"),c=i((function(){a(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"34ef":function(e,t,n){"use strict";var r=n("cc20");t["a"]=r["a"]},"35a1":function(e,t,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},"37e8":function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,c=0;while(s>c)i.f(e,n=r[c++],t[n]);return e}},3835:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function i(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}var o=n("06c5");function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||i(e,t)||Object(o["a"])(e,t)||a()}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},"38cb":function(e,t,n){"use strict";n("fb6a"),n("a9e3");var r=n("53ca"),i=n("a9ad"),o=n("7560"),a=n("3206"),s=n("80d2"),c=n("d9bd"),u=n("58df"),l=Object(u["a"])(i["a"],Object(a["a"])("form"),o["a"]);t["a"]=l.extend({name:"validatable",props:{disabled:Boolean,error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:function(){return[]}},messages:{type:[String,Array],default:function(){return[]}},readonly:Boolean,rules:{type:Array,default:function(){return[]}},success:Boolean,successMessages:{type:[String,Array],default:function(){return[]}},validateOnBlur:Boolean,value:{required:!1}},data:function(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor:function(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError:function(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess:function(){return this.internalSuccessMessages.length>0||this.success},externalError:function(){return this.internalErrorMessages.length>0||this.error},hasMessages:function(){return this.validationTarget.length>0},hasState:function(){return!this.isDisabled&&(this.hasSuccess||this.shouldValidate&&this.hasError)},internalErrorMessages:function(){return this.genInternalMessages(this.errorMessages)},internalMessages:function(){return this.genInternalMessages(this.messages)},internalSuccessMessages:function(){return this.genInternalMessages(this.successMessages)},internalValue:{get:function(){return this.lazyValue},set:function(e){this.lazyValue=e,this.$emit("input",e)}},isDisabled:function(){return this.disabled||!!this.form&&this.form.disabled},isInteractive:function(){return!this.isDisabled&&!this.isReadonly},isReadonly:function(){return this.readonly||!!this.form&&this.form.readonly},shouldValidate:function(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations:function(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState:function(){if(!this.isDisabled)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.computedColor:void 0},validationTarget:function(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler:function(e,t){Object(s["j"])(e,t)||this.validate()},deep:!0},internalValue:function(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused:function(e){e||this.isDisabled||(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting:function(){var e=this;setTimeout((function(){e.hasInput=!1,e.hasFocused=!1,e.isResetting=!1,e.validate()}),0)},hasError:function(e){this.shouldValidate&&this.$emit("update:error",e)},value:function(e){this.lazyValue=e}},beforeMount:function(){this.validate()},created:function(){this.form&&this.form.register(this)},beforeDestroy:function(){this.form&&this.form.unregister(this)},methods:{genInternalMessages:function(e){return e?Array.isArray(e)?e:[e]:[]},reset:function(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:null},resetValidation:function(){this.isResetting=!0},validate:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=[];t=t||this.internalValue,e&&(this.hasInput=this.hasFocused=!0);for(var i=0;i=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.axes=[],t.nearSizes=[],t.farSizes=[],t.insideFarSizes=[],t.insideNearSizes=[],t}return d(t,e),t.prototype.computeSize=function(e,t,n,r){var i=0,o="Inside"===e.labelPosition&&r.axes.indexOf(e)>-1?-5:5;e.visible&&e.internalVisibility&&(i+=e.findTickSize(e.crossInAxis)+t+e.findLabelSize(e.crossInAxis,o,n,r)+.5*e.lineStyle.width),e.isAxisOpposedPosition?this.farSizes.push(i):this.nearSizes.push(i)},p([Object(r["m"])("100%")],t.prototype,"height",void 0),p([Object(r["f"])({},i["b"])],t.prototype,"border",void 0),t}(r["d"]),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.axes=[],t.nearSizes=[],t.farSizes=[],t.insideFarSizes=[],t.insideNearSizes=[],t.padding=0,t}return d(t,e),t.prototype.computeSize=function(e,t,n,r){var i=0,o=5;e.visible&&e.internalVisibility&&(i+=e.findTickSize(e.crossInAxis)+t+e.findLabelSize(e.crossInAxis,o,n,r)+.5*e.lineStyle.width),e.isAxisOpposedPosition?this.farSizes.push(i):this.nearSizes.push(i)},p([Object(r["m"])("100%")],t.prototype,"width",void 0),p([Object(r["f"])({},i["b"])],t.prototype,"border",void 0),t}(r["d"]),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),p([Object(r["m"])(1)],t.prototype,"width",void 0),p([Object(r["m"])("")],t.prototype,"dashArray",void 0),p([Object(r["m"])(null)],t.prototype,"color",void 0),t}(r["d"]),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),p([Object(r["m"])(.7)],t.prototype,"width",void 0),p([Object(r["m"])("")],t.prototype,"dashArray",void 0),p([Object(r["m"])(null)],t.prototype,"color",void 0),t}(r["d"]),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),p([Object(r["m"])(1)],t.prototype,"width",void 0),p([Object(r["m"])("")],t.prototype,"dashArray",void 0),p([Object(r["m"])(null)],t.prototype,"color",void 0),t}(r["d"]),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),p([Object(r["m"])(1)],t.prototype,"width",void 0),p([Object(r["m"])(5)],t.prototype,"height",void 0),p([Object(r["m"])(null)],t.prototype,"color",void 0),t}(r["d"]),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),p([Object(r["m"])(.7)],t.prototype,"width",void 0),p([Object(r["m"])(5)],t.prototype,"height",void 0),p([Object(r["m"])(null)],t.prototype,"color",void 0),t}(r["d"]),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),p([Object(r["m"])(!1)],t.prototype,"enable",void 0),p([Object(r["m"])(null)],t.prototype,"fill",void 0),p([Object(r["f"])(u["a"].crosshairLabelFont,i["i"])],t.prototype,"textStyle",void 0),t}(r["d"]),S=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.visibleLabels=[],o.series=[],o.rect=new a["c"](void 0,void 0,0,0),o.axisBottomLine=null,o.intervalDivs=[10,5,2,1],o.isStack100=!1,o.crossAt=null,o.updatedRect=null,o.multiLevelLabelHeight=0,o.isChart=!0,o.isIntervalInDecimal=!0,o.titleCollection=[],o.titleSize=new a["d"](0,0),o.internalVisibility=!0,o.isRTLEnabled=!1,o.angle=o.labelRotation,o}return d(t,e),t.prototype.findTickSize=function(e){return"Inside"===this.tickPosition?0:!e||e.visibleRange&&!this.isInside(e.visibleRange)?this.majorTickLines.height:0},t.prototype.isInside=function(e){return Object(o["O"])(this.crossAt,e)||!this.isAxisOpposedPosition&&this.crossAt>=e.max||this.isAxisOpposedPosition&&this.crossAt<=e.min},t.prototype.findLabelSize=function(e,t,n,i){var s,c,u=0,l="Horizontal"===this.orientation;if(this.title){var h=this.titleRotation;if(Object(r["w"])(h)?(this.titleSize=Object(a["i"])(this.title,this.titleStyle),u=this.titleSize.height+t):(this.titleSize=Object(o["Z"])(this.titleStyle,this.title,h,i),u=("Vertical"===this.orientation?this.titleSize.width:this.titleSize.height)+t),this.rect.width||this.rect.height){var d=l?this.rect.width:this.rect.height;this.titleCollection=Object(o["J"])(this.title,this.titleStyle,d),u*=this.titleCollection.length}}var p=u+t+this.titlePadding+this.labelPadding+("Vertical"===this.orientation?this.maxLabelSize.width:this.maxLabelSize.height)+this.multiLevelLabelHeight;if(e&&this.placeNextToAxisLine){var f=e.visibleRange,g="Horizontal"===e.orientation?e.rect.width:e.rect.height;if(!f||!g)return 0;this.isInside(f)&&(c=this.findDifference(e),s=c*(g/f.delta),s=c*((g-(st.max&&(e=t.max),this.updatedRect=Object(r["r"])({},this.rect,null,!0),"Horizontal"===this.orientation?(e=this.crossInAxis.rect.height-Object(o["nb"])(e,this.crossInAxis)*this.crossInAxis.rect.height,this.updatedRect.y=this.crossInAxis.rect.y+e):(e=Object(o["nb"])(e,this.crossInAxis)*this.crossInAxis.rect.width,this.updatedRect.x=this.crossInAxis.rect.x+e)},t.prototype.findDifference=function(e){var t=0;return t=this.isAxisOpposedPosition?e.isAxisInverse?e.visibleRange.min:e.visibleRange.max:e.isAxisInverse?e.visibleRange.max:e.visibleRange.min,Math.abs(this.crossAt-t)},t.prototype.calculateVisibleRangeOnZooming=function(e){if(Object(o["R"])(this)){var t=this.actualRange,n=void 0,r=void 0;this.isAxisInverse?(n=this.actualRange.max-this.zoomPosition*this.actualRange.delta,r=n-this.zoomFactor*this.actualRange.delta):(n=this.actualRange.min+this.zoomPosition*this.actualRange.delta,r=n+this.zoomFactor*this.actualRange.delta),nt.max&&(n-=r-t.max,r=t.max),this.doubleRange=new s["a"](n,r),this.visibleRange={min:this.doubleRange.start,max:this.doubleRange.end,delta:this.doubleRange.delta,interval:this.visibleRange.interval}}},t.prototype.triggerRangeRender=function(e,t,n,r){var i={cancel:!1,name:l["e"],axis:this,minimum:t,maximum:n,interval:r};e.trigger(l["e"],i),i.cancel||(this.visibleRange={min:i.minimum,max:i.maximum,interval:i.interval,delta:i.maximum-i.minimum})},t.prototype.getRangePadding=function(e){var t=this.rangePadding;if("Auto"!==t)return t;switch(this.orientation){case"Horizontal":t=e.requireInvertedAxis?this.isStack100||this.baseModule.chart.stockChart?"Round":"Normal":"None";break;case"Vertical":t=e.requireInvertedAxis?"None":this.isStack100||this.baseModule.chart.stockChart?"Round":"Normal";break}return t},t.prototype.getMaxLabelWidth=function(e){var t,n,i=0,s=!1;this.angle=this.labelRotation,this.maxLabelSize=new a["d"](0,0);for(var c,u=this.labelIntersectAction,l=0,h=this.visibleLabels.length;l/g," "),this.labelStyle),c.breakLabelSize=Object(a["i"])(this.enableTrim?c.text.join("
"):c.originalText,this.labelStyle)):c.size=Object(a["i"])(c.text,this.labelStyle);var d=n?c.breakLabelSize.width:c.size.width;d>this.maxLabelSize.width&&(this.maxLabelSize.width=d,this.rotatedLabel=c.text);var p=n?c.breakLabelSize.height:c.size.height;if(p>this.maxLabelSize.height&&(this.maxLabelSize.height=p),n&&(c.text=this.enableTrim?c.text:c.originalText.split("
")),"None"!==u&&"Hide"!==u&&"Trim"!==u&&("None"!==u||this.angle%360===0)&&"Horizontal"===this.orientation&&this.rect.width>0&&!s){var f=n?c.breakLabelSize.width:c.size.width;switch(t=Object(o["nb"])(c.value,this)*this.rect.width+this.rect.x,t-=f/2,"Shift"===this.edgeLabelPlacement&&(0===l&&tthis.rect.x+this.rect.width&&(t=this.rect.x+this.rect.width-f)),u){case"MultipleRows":l>0&&this.findMultiRows(l,t,c,n);break;case"Rotate45":case"Rotate90":l>0&&(this.isAxisInverse?t+f>=i:t<=i)&&(this.angle="Rotate45"===u?45:90,s=!0);break;default:if(n){for(var g=void 0,m=[],y=void 0,v=0;v1)for(var b=0;bthis.maxLabelSize.height&&(this.maxLabelSize.height=M);break}i=this.isAxisInverse?t:t+f}}if(0!==this.angle&&"Horizontal"===this.orientation){this.rotatedLabel=Object(r["w"])(this.rotatedLabel)?"":this.rotatedLabel;var w=-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle;"Outside"===this.labelPosition&&!w&&Object(o["P"])(this.rotatedLabel)?this.maxLabelSize=new a["d"](this.maxLabelSize.height,this.maxLabelSize.width):e.stockChart||(this.maxLabelSize=Object(o["Z"])(this.labelStyle,this.rotatedLabel,this.angle,e))}else if(0!==this.angle&&"Vertical"===this.orientation){this.rotatedLabel=Object(r["w"])(this.rotatedLabel)?"":this.rotatedLabel;w=-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle;"Outside"===this.labelPosition&&!w&&Object(o["P"])(this.rotatedLabel)?this.maxLabelSize=new a["d"](this.maxLabelSize.height,this.maxLabelSize.width):e.stockChart||(this.maxLabelSize=Object(o["Z"])(this.labelStyle,this.rotatedLabel,this.angle,e))}e.multiLevelLabelModule&&this.multiLevelLabels.length>0&&e.multiLevelLabelModule.getMultilevelLabelsHeight(this)},t.prototype.findMultiRows=function(e,t,n,r){for(var i,a,s,c,u=[],l=e-1;l>=0;l--)i=this.visibleLabels[l],s=r?i.breakLabelSize.width:i.size.width,a=Object(o["nb"])(i.value,this)*this.rect.width+this.rect.x,c=this.isAxisInverse?t+n.size.width>a-.5*s:ti.index?n.index:i.index+1):n.index=u.indexOf(i.index)>-1?n.index:i.index;var h=(r?n.breakLabelSize.height:n.size.height)*n.index+5*(n.index-1);h>this.maxLabelSize.height&&(this.maxLabelSize.height=h)},t.prototype.getModule=function(e){"Double"===this.valueType?this.baseModule=new c["a"](e):this.baseModule=e[Object(o["y"])(this.valueType)+"Module"]},t.prototype.setIsInversedAndOpposedPosition=function(e){void 0===e&&(e=!1),this.isAxisOpposedPosition=this.opposedPosition||!e&&this.isRTLEnabled&&"Vertical"===this.orientation,this.isAxisInverse=this.isInversed||this.isRTLEnabled&&"Horizontal"===this.orientation},p([Object(r["f"])(u["a"].axisLabelFont,i["i"])],t.prototype,"labelStyle",void 0),p([Object(r["f"])({},w)],t.prototype,"crosshairTooltip",void 0),p([Object(r["m"])("")],t.prototype,"title",void 0),p([Object(r["f"])(u["a"].axisTitleFont,i["i"])],t.prototype,"titleStyle",void 0),p([Object(r["m"])("")],t.prototype,"labelFormat",void 0),p([Object(r["m"])("")],t.prototype,"skeleton",void 0),p([Object(r["m"])("DateTime")],t.prototype,"skeletonType",void 0),p([Object(r["m"])("Center")],t.prototype,"lineBreakAlignment",void 0),p([Object(r["m"])(0)],t.prototype,"plotOffset",void 0),p([Object(r["m"])(null)],t.prototype,"plotOffsetLeft",void 0),p([Object(r["m"])(null)],t.prototype,"plotOffsetTop",void 0),p([Object(r["m"])(null)],t.prototype,"plotOffsetRight",void 0),p([Object(r["m"])(null)],t.prototype,"plotOffsetBottom",void 0),p([Object(r["m"])(!1)],t.prototype,"isIndexed",void 0),p([Object(r["m"])(10)],t.prototype,"logBase",void 0),p([Object(r["m"])(0)],t.prototype,"columnIndex",void 0),p([Object(r["m"])(0)],t.prototype,"rowIndex",void 0),p([Object(r["m"])(1)],t.prototype,"span",void 0),p([Object(r["m"])(null)],t.prototype,"desiredIntervals",void 0),p([Object(r["m"])(3)],t.prototype,"maximumLabels",void 0),p([Object(r["m"])(1)],t.prototype,"zoomFactor",void 0),p([Object(r["m"])(0)],t.prototype,"zoomPosition",void 0),p([Object(r["m"])(!0)],t.prototype,"enableScrollbarOnZooming",void 0),p([Object(r["m"])(!1)],t.prototype,"opposedPosition",void 0),p([Object(r["m"])(!0)],t.prototype,"enableAutoIntervalOnZooming",void 0),p([Object(r["m"])("Auto")],t.prototype,"rangePadding",void 0),p([Object(r["m"])("Double")],t.prototype,"valueType",void 0),p([Object(r["m"])("None")],t.prototype,"edgeLabelPlacement",void 0),p([Object(r["m"])("Auto")],t.prototype,"intervalType",void 0),p([Object(r["m"])("BetweenTicks")],t.prototype,"labelPlacement",void 0),p([Object(r["m"])("Outside")],t.prototype,"tickPosition",void 0),p([Object(r["m"])("Outside")],t.prototype,"labelPosition",void 0),p([Object(r["m"])("")],t.prototype,"name",void 0),p([Object(r["m"])(!0)],t.prototype,"visible",void 0),p([Object(r["m"])(0)],t.prototype,"minorTicksPerInterval",void 0),p([Object(r["m"])(0)],t.prototype,"labelRotation",void 0),p([Object(r["m"])(null)],t.prototype,"titleRotation",void 0),p([Object(r["m"])(null)],t.prototype,"crossesAt",void 0),p([Object(r["m"])(!0)],t.prototype,"placeNextToAxisLine",void 0),p([Object(r["m"])(null)],t.prototype,"crossesInAxis",void 0),p([Object(r["m"])(null)],t.prototype,"minimum",void 0),p([Object(r["m"])(null)],t.prototype,"maximum",void 0),p([Object(r["m"])(null)],t.prototype,"interval",void 0),p([Object(r["m"])(34)],t.prototype,"maximumLabelWidth",void 0),p([Object(r["m"])(!1)],t.prototype,"enableTrim",void 0),p([Object(r["m"])(5)],t.prototype,"labelPadding",void 0),p([Object(r["m"])(5)],t.prototype,"titlePadding",void 0),p([Object(r["f"])({},b)],t.prototype,"majorTickLines",void 0),p([Object(r["f"])({},M)],t.prototype,"minorTickLines",void 0),p([Object(r["f"])({},m)],t.prototype,"majorGridLines",void 0),p([Object(r["f"])({},y)],t.prototype,"minorGridLines",void 0),p([Object(r["f"])({},v)],t.prototype,"lineStyle",void 0),p([Object(r["m"])(r["c"].isDevice?"Rotate45":"Trim")],t.prototype,"labelIntersectAction",void 0),p([Object(r["m"])(!1)],t.prototype,"isInversed",void 0),p([Object(r["m"])(100)],t.prototype,"coefficient",void 0),p([Object(r["m"])(0)],t.prototype,"startAngle",void 0),p([Object(r["m"])(!0)],t.prototype,"startFromZero",void 0),p([Object(r["m"])(null)],t.prototype,"description",void 0),p([Object(r["m"])(2)],t.prototype,"tabIndex",void 0),p([Object(r["e"])([],h["e"])],t.prototype,"stripLines",void 0),p([Object(r["e"])([],h["c"])],t.prototype,"multiLevelLabels",void 0),p([Object(r["f"])({color:null,width:0,type:"Rectangle"},h["b"])],t.prototype,"border",void 0),p([Object(r["f"])({},h["d"])],t.prototype,"scrollbarSettings",void 0),t}(r["d"]),O=function(){function e(e,t,n,r,i,o,s){void 0===i&&(i=new a["d"](0,0)),void 0===o&&(o=new a["d"](0,0)),void 0===s&&(s=1),this.text=e,this.originalText=r,this.value=t,this.labelStyle=n,this.size=i,this.breakLabelSize=o,this.index=s}return e}()},"3a2f":function(e,t,n){"use strict";n("a9e3");var r=n("ade3"),i=(n("9734"),n("4ad4")),o=n("a9ad"),a=n("16b7"),s=n("b848"),c=n("f573"),u=n("80d2"),l=n("d9bd"),h=n("58df");t["a"]=Object(h["a"])(o["a"],a["a"],s["a"],c["a"]).extend({name:"v-tooltip",props:{closeDelay:{type:[Number,String],default:0},disabled:Boolean,openDelay:{type:[Number,String],default:0},openOnHover:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!0},tag:{type:String,default:"span"},transition:String},data:function(){return{calculatedMinWidth:0,closeDependents:!1}},computed:{calculatedLeft:function(){var e=this.dimensions,t=e.activator,n=e.content,r=!this.bottom&&!this.left&&!this.top&&!this.right,i=!1!==this.attach?t.offsetLeft:t.left,o=0;return this.top||this.bottom||r?o=i+t.width/2-n.width/2:(this.left||this.right)&&(o=i+(this.right?t.width:-n.width)+(this.right?10:-10)),this.nudgeLeft&&(o-=parseInt(this.nudgeLeft)),this.nudgeRight&&(o+=parseInt(this.nudgeRight)),"".concat(this.calcXOverflow(o,this.dimensions.content.width),"px")},calculatedTop:function(){var e=this.dimensions,t=e.activator,n=e.content,r=!1!==this.attach?t.offsetTop:t.top,i=0;return this.top||this.bottom?i=r+(this.bottom?t.height:-n.height)+(this.bottom?10:-10):(this.left||this.right)&&(i=r+t.height/2-n.height/2),this.nudgeTop&&(i-=parseInt(this.nudgeTop)),this.nudgeBottom&&(i+=parseInt(this.nudgeBottom)),!1===this.attach&&(i+=this.pageYOffset),"".concat(this.calcYOverflow(i),"px")},classes:function(){return{"v-tooltip--top":this.top,"v-tooltip--right":this.right,"v-tooltip--bottom":this.bottom,"v-tooltip--left":this.left,"v-tooltip--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},computedTransition:function(){return this.transition?this.transition:this.isActive?"scale-transition":"fade-transition"},offsetY:function(){return this.top||this.bottom},offsetX:function(){return this.left||this.right},styles:function(){return{left:this.calculatedLeft,maxWidth:Object(u["g"])(this.maxWidth),minWidth:Object(u["g"])(this.minWidth),top:this.calculatedTop,zIndex:this.zIndex||this.activeZIndex}}},beforeMount:function(){var e=this;this.$nextTick((function(){e.value&&e.callActivate()}))},mounted:function(){"v-slot"===Object(u["q"])(this,"activator",!0)&&Object(l["b"])("v-tooltip's activator slot must be bound, try '