/*! For license information please see index.b9a0d5eb.js.LICENSE.txt */
(()=>{var __webpack_modules__={21429(e,t,n){"use strict";n.r(t),n.d(t,{accessibilityListItem:()=>s,getHighContrastBackgroundColorSelectors:()=>l,RenderListItemDescription:()=>c,AccessibilityList:()=>o,AccessibilityListWithAriaLabel:()=>a});var r=n(40887);function o(e){var t=e.items;return r.createElement(r.Fragment,null,t)}function a(e){return null}var s=n(42616).declareStringWithPlaceholders("accessibility-utils-ui.utilityStrings.accessibilityListItem"),l=function(){return{"@media screen and (-ms-high-contrast: active)":{backgroundColor:"white",MsHighContrastAdjust:"none"},"@media screen and (-ms-high-contrast: black-on-white)":{backgroundColor:"black",MsHighContrastAdjust:"none"}}};function c(e){return null}},82617(e,t,n){"use strict";n.r(t),n.d(t,{filterOutNull:()=>o});var r=n(55291);function o(e){return e.filter(r.O)}},63971(e,t,n){"use strict";function r(e,t){return void 0===e?t:e}n.r(t),n.d(t,{undefinedToNull:()=>C,cacheLatest:()=>x,find:()=>l,memoizeSelector:()=>L.memoizeSelector,isDefined:()=>I.O,lowerFirst:()=>q,neverGuard:()=>_,updateWith:()=>y,safeJoinStrings:()=>X,uniq:()=>J,filterOutNull:()=>s.filterOutNull,isSafeInteger:()=>N(),omitNull:()=>g,memoizeFunction:()=>F.memoizeFunction,isEmpty:()=>A,matchAll:()=>M,generateGuid:()=>P,endsWith:()=>K,areEqualNumbers:()=>S,createArrayAndFillWith:()=>k,backfillUndefined:()=>r,neverGuardDefault:()=>E,countStringOccurrences:()=>a,keys:()=>p.keys,omitEmpty:()=>m,sortObjectBy:()=>V,uniqBy:()=>Q,hasOwnProperty:()=>b,upperFirst:()=>W,makeObject:()=>B,range:()=>z,memoizeFunctionProperties:()=>O.memoizeFunctionProperties,throwError:()=>Y.throwError,merge:()=>H,identity:()=>w,flattenJoin:()=>d,defaultToEmptyArray:()=>h,startsWith:()=>G,isString:()=>U});var o=n(55478);function a(e){return e.reduce(function(e,t){var n;return(0,o.__assign)((0,o.__assign)({},e),((n={})[t]=(e[t]||0)+1,n))},{})}var s=n(82617);function l(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var c=n(75857),u=n.n(c);function d(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u()((0,s.filterOutNull)(e)).join(",")}var p=n(36396),f=[];function h(e){return e||f}function m(e){return v(e,function(e){return null!=e&&""!==e&&(!(e instanceof Array)||e.length>0)})}function g(e){return v(e,function(e){return null!==e})}function v(e,t){if(null==e)return e;for(var n={},r=0,o=(0,p.keys)(e);r<o.length;r++){var a=o[r];t(e[a])&&(n[a]=e[a])}return n}function y(e,t){return Object.assign({},e,t)}function b(e,t){return e.hasOwnProperty(t)}function x(e){var t=void 0;return function(n){if(t&&n===t.arg)return t.result;var r=e(n);return t={arg:n,result:r},r}}function C(e){return void 0===e?null:e}function k(e,t){var n=[];if(e>0&&e<Number.MAX_VALUE)for(var r=0;r<e;r+=1)n.push(t(r));return n}function w(e){return e}function S(e,t,n){return void 0===n&&(n=1e-5),Math.abs(e-t)<n}function _(e){return e}function E(e,t){return t}let P=function(){var e=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()};var I=n(55291),T=n(3514),D=n.n(T);function A(e){return D()(e)}var R=n(35054),N=n.n(R);function B(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r={};return t.forEach(function(t){return r[t]=e(t)}),r}function M(e,t){var n=[];if(!t.global)throw Error("regular expression must have the global flag set");var r=null;do(r=t.exec(e))&&n.push(r);while(r&&r[0]);return n}var F=n(34600),O=n(39450),L=n(30006);function H(e,t,n){if(0===t.length)return e;if(0===e.length)return t;for(var r=0,o=0,a=[];r<e.length&&o<t.length;)1===n(e[r],t[o])?a.push(t[o++]):a.push(e[r++]);return r===e.length&&a.push.apply(a,t.slice(o)),o===t.length&&a.push.apply(a,e.slice(r)),a}function z(e,t,n){return(0,o.__spreadArray)([],Array(e),!0).map(function(e,r){return(t||0)+r*(n||1)})}function V(e,t){var n=(0,p.keys)(e).sort(function(e,n){return t(e.toString()).localeCompare(t(n.toString()))}),r={};return n.forEach(function(t){r[t]=e[t]}),r}function U(e){return"string"==typeof e}function j(e){return null==e||0===e.length}function W(e){return e.length?e[0].toUpperCase()+e.slice(1):e}function q(e){return e.length?e[0].toLowerCase()+e.slice(1):e}function G(e,t){return e.slice(0,t.length)===t}function K(e,t){return e.slice(0-t.length)===t}function X(e,t){return e.join(t)}var Y=n(5030);function Q(e,t){var n=e.map(t);return e.filter(function(e,r){return n.indexOf(t(e))===r})}function J(e){return Q(e,function(e){return e})}},55291(e,t,n){"use strict";function r(e){var t=function(e){return!0},n=function(e){return!1};return null!=e?t(e):n(e)}n.d(t,{O:()=>r})},36396(e,t,n){"use strict";function r(e){return"string"==typeof e?Object.keys(e.split("")):"number"==typeof e||"boolean"==typeof e?[]:Object.keys(e)}n.r(t),n.d(t,{keys:()=>r})},99694(e,t,n){"use strict";n.r(t);var r=n(34600),o={};for(let e in r)"default"!==e&&(o[e]=()=>r[e]);n.d(t,o)},5030(e,t,n){"use strict";function r(e){throw Error(e)}n.r(t),n.d(t,{throwError:()=>r})},22870(e,t,n){"use strict";n.r(t),n.d(t,{toSupportedLocale:()=>a,isSupportedLocale:()=>o,supportedLocales:()=>r});var r=["af","am","ar","as-in","az-latn-az","be-by","bg","bn-in","bn-bd","bs-latn-ba","ca","ca-es-valencia","cs","cy","da","de","el","en-gb","en-us","es","es-mx","et","eu","fa","fi","fil","fr","fr-ca","ga-ie","gd-gb","gl","gu","ha-latn-ng","he","hi","hr","hu","hy","id","is","it","ja","ka","kk","km-kh","kn","ko","kok","ky","lb-lu","lo-la","lt","lv","mi-nz","mk","ml","mn-mn","mr","ms","mt-mt","ne-np","nl","nn-no","no","or","pa-in","pl","prs","pt","pt-pt","quz-pe","ro","ru","sd-arab-pk","si-lk","sk","sl","sq","sr","sr-cyrl","sr-cyrl-ba","sv","sw","ta","te","th","tk-tm","tr","tt","ug-cn","uk","ur","uz","vi","zh-hans","zh-hant","zu-za"];function o(e){return r.indexOf(e)>=0}function a(e,t){if(e){var n=e.toLowerCase().replace("_","-"),a=s(n);if(a)return a;if(o(n))return n;var l=n.split("-");if(l.length>2){var c=l.slice(0,l.length-1).join("-");if(o(c))return c;var u=s(c);if(u)return u}if(l.length>1){var d=l[0];if(o(d))return d}var p=n.substr(0,2);if(o(p))return p;var f=s(p);if(f)return f;for(var h=0,m=r;h<m.length;h++){var g=m[h];if(0===g.indexOf(p))return g}}if(t)return t;throw Error("".concat(e," cannot be mapped to a supported locale"))}function s(e){if(0===e.indexOf("es-")&&"es-es"!==e)return"es-mx";if(0===e.indexOf("en-")&&"en-us"!==e)return"en-gb";if(0===e.indexOf("ja-"))return"ja";switch(e){case"zh-hk":case"zh-mo":case"zh-rhk":case"zh-rtw":case"zh-sg":case"zh-tw":return"zh-hant";case"zh-rcn":return"zh-hans";case"be":return"nl";case"ga":return"ga-ie";case"in":return"id";case"iw":return"he";case"nb":return"no";default:return}}},76679(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapStringsWithPlaceholdersToStandardFormat=t.mapStringsToStandardFormat=t.declarePluralStringWithPlaceholders=t.declarePluralString=void 0;var r=n(47728),o=n(88333),a=n(19371),s=n(35642),l=n(26765),c=n(82527);function u(e){var t=e.comment,n=e.placeholders,a=e.strings;return{comment:t,placeholders:n,text:function(e){return(0,r.createICUString)((0,s.doPseudoLocalization)()?(0,o.pseudoLocalizePluralWithPlaceholders)(a,e):a(e))}}}t.declarePluralString=function(e,t){var n=t&&{text:(0,r.createICUString)(t.strings),comment:t.comment},s=function(t){return void 0===t&&(t=(0,a.getDefaultStringProvider)()),(0,o.resolveString)(e,n,t)};return s.toString=s,s.key=e,s},t.declarePluralStringWithPlaceholders=function(e,t){var n=t&&u(t),r=function(t,r){return void 0===r&&(r=(0,a.getDefaultStringProvider)()),(0,o.resolveStringWithPlaceholders)(e,n,r,{alreadyPseudoLocalized:!0})(t)};return r.toString=function(t){return(void 0===t&&(t=(0,a.getDefaultStringProvider)()),(0,s.isDevLocalization)()&&n||!(0,c.stringExists)(e,t)&&n)?(0,l.getStringDescriptionWithPlaceholders)(e,n).stringToBeLocalized:(0,c.lookUpString)(e,t)},r.key=e,r},t.mapStringsToStandardFormat=function(e){var t=e.comment,n=e.strings;return{text:(0,r.createICUString)(n),comment:t}},t.mapStringsWithPlaceholdersToStandardFormat=u},88333(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pseudoLocalizePluralWithPlaceholders=t.declareStringWithPlaceholders=t.declareString=t.lookupStringInStringProvider=t.resolveStringWithPlaceholders=t.resolveString=void 0;var r=n(59802),o=n(39732),a=n(19371),s=n(35642),l=n(26765),c=n(30453),u=n(82527),d=/\\{\\d+\\}/g,p=(0,o.memoizeFunction)(function(e){return RegExp("\\{".concat(e,"\\}"),"g")});function f(e,t,n){try{if((0,s.isDevLocalization)()&&t)return(0,s.doPseudoLocalization)()?v(t.text):t.text;if(!(0,u.stringExists)(e,n)&&t)return t.text;return(0,u.lookUpString)(e,n)}catch(e){return(0,u.handleLocalizationError)(e,n),""}}t.resolveString=f;var h=function(e,t){return function(n){try{return e(n)}catch(e){return(0,u.handleLocalizationError)(e,t),""}}};function m(e,t,n,o){try{if((0,s.isDevLocalization)()&&t&&t.text&&!(null==o?void 0:o.alreadyPseudoLocalized))return h(function(e){return(0,s.doPseudoLocalization)()?w(t,e):t.text(e)},n);if(!(0,u.stringExists)(e,n)&&t&&t.text)return h(t.text,n);return h(function(t){return(0,r.keys)(t).sort().reduce(function(e,n,r){var o=t[n],a=("string"==typeof o&&o||o&&o.toString&&o.toString()||"").replace(d,"");return(e||"").replace(p(r),a)},(0,u.lookUpString)(e,n))},n)}catch(e){return(0,u.handleLocalizationError)(e,n),function(){return""}}}t.resolveStringWithPlaceholders=m,t.lookupStringInStringProvider=function(e){return function(t){return function(n){return n?m(t,void 0,e)(n):f(t,void 0,e)}}},t.declareString=function(e,t){var n=function(n){return void 0===n&&(n=(0,a.getDefaultStringProvider)()),f(e,t,n)};return n.toString=n,n.key=e,n},t.declareStringWithPlaceholders=function(e,t){var n=function(n,r){return void 0===r&&(r=(0,a.getDefaultStringProvider)()),m(e,t,r)(n)};return n.toString=function(n){return(void 0===n&&(n=(0,a.getDefaultStringProvider)()),(0,s.isDevLocalization)()&&t||!(0,u.stringExists)(e,n)&&t)?(0,l.getStringDescriptionWithPlaceholders)(e,t).stringToBeLocalized:(0,u.lookUpString)(e,n)},n.key=e,n};var g="0.7059175321136157";function v(e){var t={},n={};(e.match(/({.+?})/g)||[]).forEach(function(e,r){var o="".concat(g,"_").concat(r);t[e]=o,n[o]=e});var r=Object.keys(t).reduce(function(e,n){return e.replace(n,t[n])},x(e)),o=(0,c.pseudoLocalize)(r);return Object.keys(n).reduce(function(e,t){return e.replace(t,n[t])},C(o))}var y="->INF::",b="".concat(g,"_-1");function x(e){return e.replace(RegExp(y,"g"),b)}function C(e){return e.replace(RegExp(b,"g"),y)}function k(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(e,t){var n={},o={};(0,r.keys)(t).forEach(function(e,r){var a="".concat(g,"_").concat(r);n[e]=a,o[a]=t[e]});var a=(0,c.pseudoLocalize)(x(e.text(n)));return(0,r.keys)(o).reduce(function(e,t){return e.replace(RegExp(k(t),"g"),o[t])},C(a))}t.pseudoLocalizePluralWithPlaceholders=function(e,t){var n={},o={};(0,r.keys)(t).forEach(function(e,r){var a="".concat(g,"_").concat(r);n[e]=a,o[a]=t[e]});var a=e(n);return(0,r.keys)(a).forEach(function(e){var t=(0,c.pseudoLocalize)(x(a[e]));a[e]=(0,r.keys)(o).reduce(function(e,t){return e.replace(RegExp(k(t),"g"),o[t])},C(t))}),a}},19371(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lookupStringInDefaultStringProvider=t.clearStringMapLoadersForDefaultStringProvider=t.setCurrentLocaleForDefaultStringProvider=t.getCurrentLocaleForDefaultStringProvider=t.addStringMapLoaderForDefaultStringProvider=t.addStringMapForDefaultStringProvider=t.setLocalizationErrorHandlerForDefaultStringProvider=t.getDefaultStringProvider=void 0;var r=n(55478),o=n(35642),a=n(82527),s={currentLocale:void 0,strings:{},errorHandler:function(e){return console.error(e)},loaders:[],stringMapInitialized:!1,suppressEmptyStringMapErrors:(0,o.isTest)()};function l(){return s}t.getDefaultStringProvider=l,t.setLocalizationErrorHandlerForDefaultStringProvider=function(e){s=(0,a.setLocalizationErrorHandler)(e,s)},t.addStringMapForDefaultStringProvider=function(e,t){s=(0,a.addStringMap)(e,t,s)},t.addStringMapLoaderForDefaultStringProvider=function(e){s=(0,a.addStringMapLoader)(e,s)},t.getCurrentLocaleForDefaultStringProvider=function(){return(0,a.getCurrentLocale)(l())},t.setCurrentLocaleForDefaultStringProvider=function(e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(t){switch(t.label){case 0:return[4,(0,a.setCurrentLocale)(e,s)];case 1:return[2,(s=t.sent()).currentLocale]}})})},t.clearStringMapLoadersForDefaultStringProvider=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return[4,(0,a.clearStringMapLoaders)(l())];case 1:return s=e.sent(),[2]}})})},t.lookupStringInDefaultStringProvider=function(e){return(0,a.lookUpString)(e,l())}},35642(e,t,n){"use strict";var r=n(39907);Object.defineProperty(t,"__esModule",{value:!0}),t.doPseudoLocalization=t.disableDevModeForLocalization=t.enableDevModeForLocalization=t.enablePseudoLocalization=t.disablePseudoLocalization=t.togglePseudoLocalization=t.isTest=t.isDevLocalization=t.skipLocalization=t.isDev=void 0;var o=!1,a=!1;function s(){return"u">typeof __DEV__&&__DEV__&&!a}function l(){return"u">typeof __SKIP_LOC__&&__SKIP_LOC__}t.isDev=s,t.skipLocalization=l,t.isDevLocalization=function(){return s()||l()},t.isTest=function(){return void 0!==r&&r.env,!1},t.togglePseudoLocalization=function(){o=!o},t.disablePseudoLocalization=function(){o=!0},t.enablePseudoLocalization=function(){o=!1},t.enableDevModeForLocalization=function(){a=!1},t.disableDevModeForLocalization=function(){a=!0},t.doPseudoLocalization=function(){return!("u"<typeof __DEV__)&&!!__DEV__&&!a&&!("u">typeof __DISABLE_PSEUDO_LOC__&&__DISABLE_PSEUDO_LOC__||o)}},26765(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStringDescriptionWithPlaceholders=t.getStringDescriptionWithoutPlaceholders=t.getStringDescriptionWithOnlyKey=void 0;var r=n(55478),o=n(9513),a=n(38628),s=n(438);function l(e){return(e=(0,o.upperFirst)(e.trim()))&&!(0,o.endsWith)(e,".")&&(e+="."),e}t.getStringDescriptionWithOnlyKey=function(e){return{key:e,stringToBeLocalized:"",comment:"",placeholderNames:[]}},t.getStringDescriptionWithoutPlaceholders=function(e,t){return{key:e,stringToBeLocalized:t.text,comment:t.comment,placeholderNames:[]}},t.getStringDescriptionWithPlaceholders=function(e,t){for(var n=(0,o.keys)(t.placeholders).filter(o.isString).sort(),c={},u=0,d=(0,o.keys)(t.placeholders);u<d.length;u++){var p=d[u];c[p]=(0,o.isString)(p)?"{".concat(n.indexOf(p),"}"):(0,s.throwError)("Placeholder name ".concat(p," is not a string"))}var f=t.text(c),h=r.__spreadArray([t.comment],n.map(function(e,n){var r=t.placeholders[e].trim();return r?"{".concat(n,"} is a placeholder for ").concat((0,o.lowerFirst)(r)):null}),!0),m=(0,a.filterOutNull)(h).map(l).filter(Boolean).join(" ");return n.forEach(function(e,t){m=m.replace("{"+e+"}","{"+t+"}")}),{key:e,stringToBeLocalized:f,comment:m,placeholderNames:n}}},64778(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSupportedLocale=t.supportedLocales=t.isSupportedLocale=t.stringExists=t.setLocalizationErrorHandler=t.setCurrentLocale=t.lookUpString=t.getCurrentLocale=t.flattenStringMap=t.clearStringMapLoaders=t.addStringMapLoader=t.addStringMap=t.makeGetStringMapLoader=t.getStringDescriptionWithoutPlaceholders=t.getStringDescriptionWithPlaceholders=t.getStringDescriptionWithOnlyKey=t.togglePseudoLocalization=t.isDevLocalization=t.isDev=t.enablePseudoLocalization=t.enableDevModeForLocalization=t.disablePseudoLocalization=t.disableDevModeForLocalization=t.setLocalizationErrorHandlerForDefaultStringProvider=t.setCurrentLocaleForDefaultStringProvider=t.lookupStringInDefaultStringProvider=t.getDefaultStringProvider=t.getCurrentLocaleForDefaultStringProvider=t.clearStringMapLoadersForDefaultStringProvider=t.addStringMapLoaderForDefaultStringProvider=t.addStringMapForDefaultStringProvider=t.lookupStringInStringProvider=t.declareStringWithPlaceholders=t.declareString=t.mapStringsWithPlaceholdersToStandardFormat=t.mapStringsToStandardFormat=t.declarePluralStringWithPlaceholders=t.declarePluralString=void 0;var r=n(76679);Object.defineProperty(t,"declarePluralString",{enumerable:!0,get:function(){return r.declarePluralString}}),Object.defineProperty(t,"declarePluralStringWithPlaceholders",{enumerable:!0,get:function(){return r.declarePluralStringWithPlaceholders}}),Object.defineProperty(t,"mapStringsToStandardFormat",{enumerable:!0,get:function(){return r.mapStringsToStandardFormat}}),Object.defineProperty(t,"mapStringsWithPlaceholdersToStandardFormat",{enumerable:!0,get:function(){return r.mapStringsWithPlaceholdersToStandardFormat}});var o=n(88333);Object.defineProperty(t,"declareString",{enumerable:!0,get:function(){return o.declareString}}),Object.defineProperty(t,"declareStringWithPlaceholders",{enumerable:!0,get:function(){return o.declareStringWithPlaceholders}}),Object.defineProperty(t,"lookupStringInStringProvider",{enumerable:!0,get:function(){return o.lookupStringInStringProvider}});var a=n(19371);Object.defineProperty(t,"addStringMapForDefaultStringProvider",{enumerable:!0,get:function(){return a.addStringMapForDefaultStringProvider}}),Object.defineProperty(t,"addStringMapLoaderForDefaultStringProvider",{enumerable:!0,get:function(){return a.addStringMapLoaderForDefaultStringProvider}}),Object.defineProperty(t,"clearStringMapLoadersForDefaultStringProvider",{enumerable:!0,get:function(){return a.clearStringMapLoadersForDefaultStringProvider}}),Object.defineProperty(t,"getCurrentLocaleForDefaultStringProvider",{enumerable:!0,get:function(){return a.getCurrentLocaleForDefaultStringProvider}}),Object.defineProperty(t,"getDefaultStringProvider",{enumerable:!0,get:function(){return a.getDefaultStringProvider}}),Object.defineProperty(t,"lookupStringInDefaultStringProvider",{enumerable:!0,get:function(){return a.lookupStringInDefaultStringProvider}}),Object.defineProperty(t,"setCurrentLocaleForDefaultStringProvider",{enumerable:!0,get:function(){return a.setCurrentLocaleForDefaultStringProvider}}),Object.defineProperty(t,"setLocalizationErrorHandlerForDefaultStringProvider",{enumerable:!0,get:function(){return a.setLocalizationErrorHandlerForDefaultStringProvider}});var s=n(35642);Object.defineProperty(t,"disableDevModeForLocalization",{enumerable:!0,get:function(){return s.disableDevModeForLocalization}}),Object.defineProperty(t,"disablePseudoLocalization",{enumerable:!0,get:function(){return s.disablePseudoLocalization}}),Object.defineProperty(t,"enableDevModeForLocalization",{enumerable:!0,get:function(){return s.enableDevModeForLocalization}}),Object.defineProperty(t,"enablePseudoLocalization",{enumerable:!0,get:function(){return s.enablePseudoLocalization}}),Object.defineProperty(t,"isDev",{enumerable:!0,get:function(){return s.isDev}}),Object.defineProperty(t,"isDevLocalization",{enumerable:!0,get:function(){return s.isDevLocalization}}),Object.defineProperty(t,"togglePseudoLocalization",{enumerable:!0,get:function(){return s.togglePseudoLocalization}});var l=n(26765);Object.defineProperty(t,"getStringDescriptionWithOnlyKey",{enumerable:!0,get:function(){return l.getStringDescriptionWithOnlyKey}}),Object.defineProperty(t,"getStringDescriptionWithPlaceholders",{enumerable:!0,get:function(){return l.getStringDescriptionWithPlaceholders}}),Object.defineProperty(t,"getStringDescriptionWithoutPlaceholders",{enumerable:!0,get:function(){return l.getStringDescriptionWithoutPlaceholders}});var c=n(112);Object.defineProperty(t,"makeGetStringMapLoader",{enumerable:!0,get:function(){return c.makeGetStringMapLoader}});var u=n(82527);Object.defineProperty(t,"addStringMap",{enumerable:!0,get:function(){return u.addStringMap}}),Object.defineProperty(t,"addStringMapLoader",{enumerable:!0,get:function(){return u.addStringMapLoader}}),Object.defineProperty(t,"clearStringMapLoaders",{enumerable:!0,get:function(){return u.clearStringMapLoaders}}),Object.defineProperty(t,"flattenStringMap",{enumerable:!0,get:function(){return u.flattenStringMap}}),Object.defineProperty(t,"getCurrentLocale",{enumerable:!0,get:function(){return u.getCurrentLocale}}),Object.defineProperty(t,"lookUpString",{enumerable:!0,get:function(){return u.lookUpString}}),Object.defineProperty(t,"setCurrentLocale",{enumerable:!0,get:function(){return u.setCurrentLocale}}),Object.defineProperty(t,"setLocalizationErrorHandler",{enumerable:!0,get:function(){return u.setLocalizationErrorHandler}}),Object.defineProperty(t,"stringExists",{enumerable:!0,get:function(){return u.stringExists}});var d=n(38305);Object.defineProperty(t,"isSupportedLocale",{enumerable:!0,get:function(){return d.isSupportedLocale}}),Object.defineProperty(t,"supportedLocales",{enumerable:!0,get:function(){return d.supportedLocales}}),Object.defineProperty(t,"toSupportedLocale",{enumerable:!0,get:function(){return d.toSupportedLocale}})},112(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeGetStringMapLoader=void 0;var r=n(38305);t.makeGetStringMapLoader=function(e){return function(t){var n=function(t){return e((0,r.toSupportedLocale)(t,"en-us"))};return t?e((0,r.toSupportedLocale)(t,"en-us")).catch(function(){}).then(function(){return n}):Promise.resolve(n)}}},30453(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pseudoLocalize=void 0;var n={a:"ȧ",A:"Ȧ",b:"ƀ",B:"Ɓ",c:"ƈ",C:"Ƈ",d:"ḓ",D:"Ḓ",e:"ḗ",E:"Ḗ",f:"ƒ",F:"Ƒ",g:"ɠ",G:"Ɠ",h:"ħ",H:"Ħ",i:"ī",I:"Ī",j:"ĵ",J:"Ĵ",k:"ķ",K:"Ķ",l:"ŀ",L:"Ŀ",m:"ḿ",M:"Ḿ",n:"ƞ",N:"Ƞ",o:"ǿ",O:"Ǿ",p:"ƥ",P:"Ƥ",q:"ɋ",Q:"Ɋ",r:"ř",R:"Ř",s:"ş",S:"Ş",t:"ŧ",T:"Ŧ",v:"ṽ",V:"Ṽ",u:"ŭ",U:"Ŭ",w:"ẇ",W:"Ẇ",x:"ẋ",X:"Ẋ",y:"ẏ",Y:"Ẏ",z:"ẑ",Z:"Ẑ"},r=function(e){return"aeiou".indexOf(e.toLowerCase())>=0};t.pseudoLocalize=function(e){return e.split("").reduce(function(e,t){var o=n[t]||t;return e+(o+(r(t)?o:""))},"")}},82527(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lookUpString=t.stringExists=t.flattenStringMap=t.clearStringMapLoaders=t.setCurrentLocale=t.getCurrentLocale=t.addStringMapLoader=t.addStringMap=t.handleLocalizationError=t.setLocalizationErrorHandler=void 0;var r,o=n(55478),a=n(59802),s=n(39732),l=n(35642);t.setLocalizationErrorHandler=function(e,t){return o.__assign(o.__assign({},t),{errorHandler:e})},t.handleLocalizationError=function(e,t){t.errorHandler(e)};var c=(0,s.memoizeFunction)(function(e,t){var n=p(t);return function(t){return Promise.resolve(e===t?n:{})}});function u(e,t){return -1===t.loaders.indexOf(e)?o.__assign(o.__assign({},t),{loaders:t.loaders.concat(e)}):t}function d(e,t){return o.__awaiter(this,void 0,void 0,function(){var n,r=this;return o.__generator(this,function(a){switch(a.label){case 0:return n=function(n){return o.__awaiter(r,void 0,void 0,function(){var r;return o.__generator(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,n(e)];case 1:return[2,o.sent()];case 2:return r=o.sent().message||"unknown error",t.errorHandler("Async string map loader failed: ".concat(r)),[2,{}];case 3:return[2]}})})},[4,Promise.all(t.loaders.map(n))];case 1:return[2,a.sent().map(p).reduce(function(e,t){return o.__assign(o.__assign({},e),t)},{})]}})})}function p(e){var t={};function n(e,r){for(var o=0,s=(0,a.keys)(r);o<s.length;o++){var l=s[o];if("string"==typeof l){var c=r[l];"string"==typeof c?t[e+l]=c:"object"==typeof c&&n(e+l+".",c)}}}return e&&n("",e),t}function f(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}t.addStringMap=function(e,t,n){if(n.currentLocale===e||void 0===n.currentLocale){var r=p(t);return o.__assign(o.__assign({},n),{currentLocale:void 0===n.currentLocale?e:n.currentLocale,strings:o.__assign(o.__assign({},n.strings),r),stringMapInitialized:!0})}return u(c(e,t),n)},t.addStringMapLoader=u,t.getCurrentLocale=function(e){return r?r.then(function(e){return e.currentLocale}):Promise.resolve(e.currentLocale)},t.setCurrentLocale=function(e,t){var n=d(e,t).then(function(n){return o.__assign(o.__assign({},t),{strings:n,currentLocale:e,stringMapInitialized:!0})});return r=r?r.then(function(){return n}):n},t.clearStringMapLoaders=function(e){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(t){switch(t.label){case 0:if(!r)return[3,2];return[4,r];case 1:t.sent(),t.label=2;case 2:return r=void 0,[2,o.__assign(o.__assign({},e),{loaders:[],strings:{},currentLocale:void 0})]}})})},t.flattenStringMap=p,t.stringExists=function(e,t){return"string"==typeof t.strings[e]},t.lookUpString=function(e,t){var n=t.strings[e];if(!n||"string"!=typeof n){var r=(0,l.isDev)()||(0,l.isTest)()?e:"";return f(t.strings)?t.suppressEmptyStringMapErrors||t.errorHandler("The current string map is empty. The string is probably resolved too early, at import time. Key: ".concat(e)):t.errorHandler("Key ".concat(e," does not exist in string map"),{stringsLoaded:!!t.stringMapInitialized}),r}return n}},38305(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSupportedLocale=t.supportedLocales=t.isSupportedLocale=void 0;var r=n(78618);Object.defineProperty(t,"isSupportedLocale",{enumerable:!0,get:function(){return r.isSupportedLocale}}),Object.defineProperty(t,"supportedLocales",{enumerable:!0,get:function(){return r.supportedLocales}}),Object.defineProperty(t,"toSupportedLocale",{enumerable:!0,get:function(){return r.toSupportedLocale}})},70301(e,t,n){"use strict";n.r(t),n.d(t,{memoizeFunction:()=>f});var r=n(55478),o=n(79264),a=n(46343),s=n.n(a),l="u">typeof __WHY_DID_YOU_RECOMPUTE__&&__WHY_DID_YOU_RECOMPUTE__||"u">typeof globalThis&&globalThis.__WHY_DID_YOU_RECOMPUTE__,c=0,u={empty:!0},d={},p="u"<typeof WeakMap?null:WeakMap,f=function(e,t){if(void 0===t&&(t=100),!p)return e;var n=m(),a=0,u=c,d=l?new Map:void 0,f=l?Error("Memoized function defined").stack:"";return function(){for(var p,g,v,y,b=[],x=0;x<arguments.length;x++)b[x]=arguments[x];var C=n;(u!==c||t>0&&a>t)&&(n=m(),a=0,u=c,null==d||d.clear()),C=n;for(var k=function(e){var t=h(b[e]);if(!(null==(p=C.map)?void 0:p.has(t))&&(null==(g=C.map)||g.set(t,m()),l&&d)){var n=null!=(v=d.get(C))?v:[],a=n.filter(function(e){return e!==t&&s()(e,t)})[0];if(a){o.safeConsole.warn("Why-did-you-recompute: Identical (deep-comparison) past arguments to memoizeFunction found with differing instance equality: ");var c=Error("Indentical argument passed").stack,u=function(e,t){o.safeConsole.table(e),Object.keys(e).forEach(function(n){var r=e[n],a=t[n];r!==a&&s()(r,a)&&(o.safeConsole.warn("Duplication present in child prop '".concat(n,"'")),u(r,a))})};u(a,t),o.safeConsole.warn(c),o.safeConsole.warn(f)}d.set(C,(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(n),!1),[t],!1))}C=null==(y=C.map)?void 0:y.get(t)},w=0;w<b.length;w++)k(w);return!C.hasOwnProperty("value")&&(C.value=e.apply(void 0,(0,r.__spreadArray)([],(0,r.__read)(b),!1)),a++),C.value}};function h(e){return e?"object"==typeof e||"function"==typeof e?e:(d[e]||(d[e]={val:e}),d[e]):u}function m(){return{map:p?new p:null}}},94004(e,t,n){"use strict";n.r(t),n.d(t,{memoizeFunctionProperties:()=>s});var r=n(55478),o=n(70301),a=Object.keys;function s(e){var t,n,s={};try{for(var l=(0,r.__values)(a(e)),c=l.next();!c.done;c=l.next()){var u=c.value,d=e[u];if("function"==typeof d){var p=d;s[u]=(0,o.memoizeFunction)(p.bind(s))}else s[u]=d}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s}},48960(e,t,n){"use strict";n.r(t),n.d(t,{memoizeSelector:()=>c});var r=n(55478),o=Object.keys,a=25,s=function(e,t){if(!e||!t||e===t)return e===t;var n=o(e);return n.length===o(t).length&&n.every(function(n){return t.hasOwnProperty(n)&&e[n]===t[n]})},l=function(e){var t=[];return function(n){var o=void 0;if(t.forEach(function(e){var t=(0,r.__read)(e,2),a=t[0],l=t[1];return s(a,n)&&(o=l)}),o)return o;var l=e(n);return t.unshift([n,l]),t=t.slice(0,a),l}},c=function(e,t){var n=l(t),o=void 0;return function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var l=n(e.apply(void 0,(0,r.__spreadArray)([],(0,r.__read)(t),!1)));if(void 0!==o&&o!==l){if(Array.isArray(l)&&Array.isArray(o)){var c=o;if(l.length===c.length&&l.every(function(e,t){return e===c[t]}))return o}else if("object"==typeof l&&"object"==typeof o&&s(o,l))return o}return o=l,l}}},11443(e,t,n){"use strict";n.r(t),n.d(t,{initIcons:()=>nb,StandalonePhotoPicker:()=>n_,PhotoPicker:()=>nv,PhotoPickerStore:()=>ec});var r=n(6136),o=n(40887),a=n(82419),s=n(83857);function l(e){function t(t){return 1/(1+Math.exp(-e*t))-.5}var n=.5/t(1);return function(e){return e<=0?0:e>1?1:n*t(2*e-1)+.5}}function c(e){return e}function u(e,t){try{if(t)return e.toDataURL();return e.toDataURL("image/jpeg")}catch(e){return console.error(e),""}}var d={1:[1,0,0,1,0,0],2:[-1,0,0,1,0,0],3:[-1,0,0,-1,0,0],4:[1,0,0,-1,0,0],5:[0,1,1,0,0,0],6:[0,1,-1,0,0,0],7:[0,-1,-1,0,0,0],8:[0,-1,1,0,0,0]},p=256,f="white",h=648,m=125,g=.01,v="rgba(0, 120, 215, 0.5)",y=function(e){return e*Math.PI/180};function b(e,t,n,r,o,a){e.save(),e.translate(t/2,t/2),e.transform.apply(e,d[r]),e.rotate(y(n)),e.translate(-t/2,-t/2),a(e,o),e.restore()}function x(e,t,n,r){var o=y(r),a=d[n],s=a[0],l=a[2],c=a[1],u=a[3];return e-=p/2,t-=p/2,{x:(t=(e=e*s+t*c)*l+t*u)*Math.sin(o)+e*Math.cos(o)+p/2,y:t*Math.cos(o)-e*Math.sin(o)+p/2}}function C(e,t,n){return Math.min(n,Math.max(e,t))}var k="photoPickerFirstFocusableSelector",w="PhotoPicker";function S(e,t){void 0===t&&(t=null);var n="".concat(w).concat(e,"Action");return(0,r.makeActionCreator)(n,{featureName:w,exportOptions:t?{exportType:"UserInteraction",exportName:t}:void 0})}var _=S("UploadedPhotoTooSmall"),E=S("CancelButtonClicked","PhotoPickerCancelButtonClicked"),P=S("CloseButtonClicked","PhotoPickerCloseButtonClickedAction"),I=S("DoneButtonClicked","PhotoPickerDoneButtonClickedAction"),T=S("UploadNewPhotoButtonClicked","PhotoPickerUploadNewPhotoButtonClickedAction"),D=S("ImageEditPaneDismissed","PhotoPickerImageEditPaneDismissed"),A=S("ImageUpdated"),R=S("LoadedCurrentImage"),N=S("LoadedEmptyImage"),B=S("LoadedNewImage"),M=S("SomethingWentWrong"),F=S("UploadStarted","PhotoPickerApplyButtonClicked"),O=S("UploadProgress"),L=S("UploadSucceeded"),H=S("WarningDismissed"),z=S("Keyboard"),V=S("ImageRotate"),U=S("Zoom"),j=S("ImageLoaded"),W=S("DragStarted"),q=S("DragProgress"),G=S("ResetEditCanvas"),K=S("EmptyImageRendered"),X=S("SetImageUpdated"),Y=S("PhotoListImageSelected"),Q=S("NewImageUploaded"),J=S("PhotoListLoadPhotos");function Z(e,t,n){var r=new FileReader,o=function(){return e(M({warning:"NOT_AN_IMAGE"}))};r.onerror=o,r.onloadend=function(){var a=document.createElement("img");a.onerror=o,a.onload=function(){a.alt=t.name,e(B({dataUrl:a.src,fileName:t.name})),e(X()),n&&e(Q({selectedIndex:0,newImageUrl:a.src}))},a.src=String(r.result)},r.readAsDataURL(t)}function ee(e,t,n,r,o,a,s){e(F({now:t})),a(n,function(){e(L({dataUrl:n})),null==s||s(r===o.length?-1:r,o)},function(){return e(M({warning:"UNKNOWN"}))})}function et(e,t,n,r){if(!t){e(N({isPhotoListPresent:!0})),e(Y({selectedIndex:n}));return}if(t.startsWith("data:image/")){e(B({dataUrl:t,isPhotoListPresent:!0,fileName:r})),e(X()),e(Y({selectedIndex:n}));return}var o=new Image;o.crossOrigin="Anonymous",o.onload=function(){var t=document.createElement("canvas");t.width=o.naturalWidth,o.alt=r||"",t.height=o.naturalHeight;var a=t.getContext("2d");a&&(a.drawImage(o,0,0),e(B({dataUrl:u(t,!1),isPhotoListPresent:!0,fileName:r})),e(X()),e(Y({selectedIndex:n})))},o.src=t}var en=n(69315),er=function(){return(er=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},eo=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},ei="PhotoPickerStore",ea={xpos:0,ypos:0,absoluteScale:1,relativeScale:0,stepSize:.1,imageRotationAngle:0,orientation:1,maximumScale:1,naturalMin:0,naturalWidth:0,naturalHeight:0,moving:!1,lastMouseX:0,lastMouseY:0,zoomInDisabled:!0,zoomOutDisabled:!0,image:void 0,initialRender:!0,imageUpdated:!0},es={photoPicker:{dataUrl:void 0,currentImageDataUrl:void 0,status:"READY",warning:void 0,show:!1,isUpdated:!1,uploadStart:0,uploadDuration:0,isUploadedPhotoTooSmall:!1},editCanvas:er(er({},ea),{originalCanvasState:ea}),photoList:{selectedIndex:0,imageUrls:[]}},el=(0,a.HY)({photoPicker:(0,r.buildReducer)().handleAction(E,eu).handleAction(P,eu).handleAction(I,eu).handleAction(D,eu).handleAction(H,ed).handleAction(R,eb).handleAction(B,ep).handleAction(N,ef).handleAction(F,em).handleAction(O,eg).handleAction(L,ev).handleAction(M,ey).handleAction(A,eh).handleAction(_,ex).done(es.photoPicker),editCanvas:(0,r.buildReducer)().handleAction(G,eC).handleAction(z,ek).handleAction(U,ew).handleAction(j,e_).handleAction(W,eE).handleAction(q,eP).handleAction(X,eT).handleAction(K,eI).handleAction(E,eC).handleAction(P,eC).handleAction(I,eC).handleAction(D,eC).handleAction(V,eS).done(es.editCanvas),photoList:(0,r.buildReducer)().handleAction(Y,eD).handleAction(N,eB).handleAction(Q,eA).handleAction(J,eR).handleAction(E,eN).handleAction(P,eN).handleAction(I,eN).handleAction(D,eN).done(es.photoList)}),ec=(0,r.makeFunctionalStore)(ei,el,function(e){return{getPhotoPickerState:function(){return e.photoPicker},getEditCanvasState:function(){return e.editCanvas},getPhotoListState:function(){return e.photoList}}});function eu(e){return(0,en.updateWith)(e,{dataUrl:void 0,currentImageDataUrl:void 0,status:"READY",warning:void 0,isUpdated:!1,fileName:void 0})}function ed(e){return(0,en.updateWith)(e,{status:"READY",warning:void 0})}function ep(e,t){return(0,en.updateWith)(e,{dataUrl:t.payload.dataUrl,status:"READY",warning:void 0,isUpdated:t.payload.dataUrl!==e.currentImageDataUrl||!!t.payload.isPhotoListPresent,fileName:t.payload.fileName})}function ef(e,t){return(0,en.updateWith)(e,{dataUrl:"",status:"READY",warning:void 0,isUpdated:!!e.currentImageDataUrl||!!t.payload.isPhotoListPresent,fileName:void 0})}function eh(e){return(0,en.updateWith)(e,{isUpdated:!0})}function em(e,t){return(0,en.updateWith)(e,{status:"IN_PROGRESS",warning:void 0,uploadStart:t.payload.now,uploadDuration:0})}function eg(e,t){return"IN_PROGRESS"===e.status?(0,en.updateWith)(e,{uploadDuration:t.payload.now-e.uploadStart}):e}function ev(e,t){return(0,en.updateWith)(e,{currentImageDataUrl:t.payload.dataUrl,status:"SUCCESS",warning:void 0})}function ey(e,t){return(0,en.updateWith)(e,{status:"SOMETHING_WENT_WRONG",warning:t.payload.warning})}function eb(e,t){var n=t.payload.dataUrl;return(0,en.updateWith)(e,{dataUrl:e.dataUrl||n,currentImageDataUrl:e.currentImageDataUrl||n,isUpdated:!!t.payload.isSuggestedPhoto||!!t.payload.isPhotoListPresent})}function ex(e,t){return(0,en.updateWith)(e,t.payload)}function eC(e){return(0,en.updateWith)(e,es.editCanvas)}function ek(e,t){return(0,en.updateWith)(e,t.payload)}function ew(e,t){return(0,en.updateWith)(e,t.payload)}function eS(e,t){return(0,en.updateWith)(e,t.payload)}function e_(e,t){return(0,en.updateWith)(e,er(er({},t.payload),{originalCanvasState:e.originalCanvasState.initialRender?(0,en.updateWith)(e.originalCanvasState,t.payload):e.originalCanvasState}))}function eE(e,t){return(0,en.updateWith)(e,t.payload)}function eP(e,t){return(0,en.updateWith)(e,t.payload)}function eI(e){return(0,en.updateWith)(e,{initialRender:!1})}function eT(e){return(0,en.updateWith)(e,{imageUpdated:!0})}function eD(e,t){return(0,en.updateWith)(e,t.payload)}function eA(e,t){return(0,en.updateWith)(e,{selectedIndex:t.payload.selectedIndex,imageUrls:eo([t.payload.newImageUrl],e.imageUrls,!0)})}function eR(e,t){return(0,en.updateWith)(e,t.payload)}function eN(e){return(0,en.updateWith)(e,es.photoList)}function eB(e){return(0,en.updateWith)(e,{selectedIndex:-1})}var eM=["absoluteScale","imageRotationAngle","xpos","ypos"],eF=n(86643),eO=n(99050),eL=n(64050),eH=n(78412),ez=n(30207),eV=n(4825),eU=n(82540),ej=(0,eV.J9)(function(){return(0,eU.l8)({closeButton:{float:"right",marginTop:-20,marginRight:-20},removeButton:{marginLeft:"auto"}})}),eW=function(e){var t=e.onClick,n=e.dataLogName,r=e.ariaLabel,a=e.title,s=ej();switch(e.buttonType){case"Primary":return o.createElement(eF.j,{disabled:e.disabled,onClick:t,"data-log-name":n,ariaLabel:r,title:a,componentRef:e.buttonRef},e.buttonLabel);case"Action":return o.createElement(eO.r,{className:s.removeButton,iconProps:{iconName:e.iconName},onClick:t,"data-log-name":n,disabled:e.disabled,title:a},e.buttonLabel);case"Icon":return o.createElement(eL.S,{content:a,styles:{root:s.closeButton}},o.createElement(eH.K,{iconProps:{iconName:e.iconName},onClick:t,"data-log-name":n,ariaLabel:r}));case"Default":return o.createElement(ez.Y,{onClick:t,"data-log-name":n,ariaLabel:r,title:a},e.buttonLabel);default:return c(e)}},eq=n(15842),eG=n(13713),eK=n(77272),eX=(0,eV.J9)(function(e,t){return(0,eU.l8)({root:(0,eU.Zq)({margin:"7px 0",color:e.palette.neutralPrimary},null==t?void 0:t.root),text:(0,eU.Zq)(e.fonts.medium,null==t?void 0:t.text)})}),eY=function(e){var t=eX((0,eq.useTheme)(),e.styles),n="UNKNOWN"===e.warning,r="IMAGE_TOO_SMALL_ERROR"===e.warning,a=n||r?eG.H.error:eG.H.warning,s=n?void 0:e.onDismiss;return o.createElement(eK.n,{className:t.root,messageBarType:a,onDismiss:s,isMultiline:!0,"aria-live":"polite",styles:t,dismissButtonAriaLabel:e.dismissButtonAriaLabel},e.warningText)},e$=n(22450),eQ=n(38667),eJ=512,eZ=(0,eV.J9)(function(e,t){var n=e.palette;return(0,eU.l8)({modal:(0,eU.Zq)({width:eJ,maxWidth:eJ,margin:0,selectors:{"#lpc-photo-picker .ms-Button-icon":{display:"inline-block",minWidth:16,padding:"0px 4px",backgroundColor:"transparent"},"#lpc-photo-picker .ms-Slider-slideBox:focus":{outline:"transparent"},"#lpc-photo-picker .ms-Button--icon &hover":{color:n.themePrimary},"#lpc-photo-picker .ms-Button--icon &active":{color:n.themeDarker},"#lpc-photo-picker .ms-Button--primary &:not([disabled])":{backgroundColor:n.themePrimary},"#lpc-photo-picker .ms-Button--primary &:hover":{backgroundColor:n.themeDarkAlt},"#lpc-photo-picker .ms-Button--primary &:active":{backgroundColor:n.themeDark},"#lpc-photo-picker .ms-Button--default .ms-Button-label":{color:n.neutralDark},"#lpc-photo-picker .ms-Button--default &:hover":{backgroundColor:n.neutralLight},"#lpc-photo-picker .ms-Button--default &:active":{backgroundColor:n.neutralTertiaryAlt}}},null==t?void 0:t.modal),picker:(0,eU.Zq)(e.fonts.medium,{padding:32,overflow:"hidden"},null==t?void 0:t.root),header:(0,eU.Zq)(e.fonts.xLarge,{display:"flex",alignContent:"space-between",color:n.neutralPrimary,fontWeight:300,marginBottom:7,flexGrow:1},null==t?void 0:t.header),endActions:{marginTop:e.spacing.l1,alignItems:"center",display:"flex",selectors:{button:{marginRight:12,minWidth:62,padding:"0px 4px",fontSize:e.fonts.medium.fontSize,borderRadius:4}}},editCanvasAndPhotoListContainer:{display:"flex",padding:"0px 8px"}})}),e0=function(e){var t=e.hideTitleText,n=e.isComponentInline,r=e.titleText,a=e.closeIcon,s=e.infoBar,l=e.uploadPhoto,c=e.editCanvas,u=e.applyButton,d=e.cancelButton,p=e.removeButton,f=e.onDismiss,h=e.focusTrapRef,m=e.hideEndActions,g=e.imageEditorDescription,v=e.customUploadButton,y=e.photoList,b=e.styles,x=eZ((0,eq.useTheme)(),b),C=o.createElement(o.Fragment,null,!n&&a,!t&&o.createElement("div",{className:x.header,id:"dialogTitle",role:"heading","aria-level":1},r),s,l,o.createElement("div",{className:x.editCanvasAndPhotoListContainer},c,y),g,!m&&o.createElement("div",{className:x.endActions},u,d,p),v);return o.createElement(o.Fragment,null,n?o.createElement("div",{id:"lpc-photo-picker",className:x.picker},C):o.createElement(e$.a,{className:"lpc_nested_popup",containerClassName:x.modal,isOpen:!0,onDismiss:f,titleAriaId:"dialogTitle"},o.createElement(eQ.Y,{id:"lpc-photo-picker",className:x.picker,componentRef:h,firstFocusableSelector:k},C)))},e1=(0,eV.J9)(function(e,t){return(0,eU.l8)({fileInput:{display:"none"},button:(0,eU.Zq)({color:e.palette.themePrimary,padding:0,margin:"0 0 12px -4px"},null==t?void 0:t.button)})}),e2=function(e){var t=e1((0,eq.useTheme)(),e.styles),n=o.useRef(null);return o.createElement(o.Fragment,null,o.createElement("input",{role:"button",className:t.fileInput,type:"file",ref:n,onClick:function(e){return e.currentTarget.value=""},onChange:function(t){return t.currentTarget.files&&e.onFileSelected(t.currentTarget.files[0],e.isPhotoListPresent)},"data-log-name":"PhotoPickerFileInput",accept:"image/*"}),o.createElement(eO.r,{componentRef:e.buttonRef,className:"".concat(t.button," ").concat(k),iconProps:{iconName:"Add"},onClick:function(){var t;null==(t=n.current)||t.click(),e.onUploadNewPhoto()}},e.uploadText))},e5=n(6056),e4=n(35523),e3=n(20006),e6=n(46530),e8=n(34534),e9=n(80866);function e7(e){var t=new DataView(te(e));if(65496!==t.getUint16(0,!1))return 1;for(var n=t.byteLength,r=2;r<n;){var o=t.getUint16(r,!1);if(r+=2,65505===o){if(0x45786966!==t.getUint32(r+=2,!1))break;var a=18761===t.getUint16(r+=6,!1);r+=t.getUint32(r+4,a);var s=t.getUint16(r,a);r+=2;for(var l=0;l<s;l++)if(274===t.getUint16(r+12*l,a))return tt(t.getUint16(r+12*l+8,a))}else if((65280&o)!=65280)break;else r+=t.getUint16(r,!1)}return 1}function te(e){for(var t=atob(e.replace(/^data\:([^\;]+)\;base64,/i,"")),n=t.length,r=new ArrayBuffer(n),o=new Uint8Array(r),a=0;a<n;a++)o[a]=t.charCodeAt(a);return r}function tt(e){return e<1||e>8?1:e}var tn=n(93030),tr=n(55478),to=n(31068),ti=n(82602),ta=n(48891),ts=n(15994),tl=n(74721),tc=n(1369),tu=n(57273),td=n(53325),tp=n(68032),tf=1e3,th=(0,tu.Z)(),tm=function(e){return function(t){var n;return(n={})[e]="".concat(t,"%"),n}},tg=function(e,t,n){return n===t?0:(e-t)/(n-t)*100},tv=function(e,t,n,r){o.useImperativeHandle(e.componentRef,function(){return{get value(){return n},get range(){return r},focus:function(){var e;null==(e=t.current)||e.focus()}}},[r,t,n])},ty=function(e,t){var n=e.step,r=void 0===n?1:n,a=e.className,s=e.disabled,l=void 0!==s&&s,c=e.label,u=e.max,d=void 0===u?10:u,p=e.min,f=void 0===p?0:p,h=e.showValue,m=void 0===h||h,g=e.buttonProps,v=void 0===g?{}:g,y=e.vertical,b=void 0!==y&&y,x=e.snapToStep,C=e.valueFormat,k=e.styles,w=e.theme,S=e.originFromZero,_=e["aria-labelledby"],E=e.ariaLabel,P=void 0===E?e["aria-label"]:E,I=e.ranged,T=e.onChange,D=e.onChanged,A=o.useRef([]),R=(0,ta.j)(),N=R.setTimeout,B=R.clearTimeout,M=o.useRef(null),F=(0,ts.k)(e.value,e.defaultValue,function(e,t){return null==T?void 0:T(t,I?[W.latestLowerValue,t]:void 0,e)}),O=F[0],L=F[1],H=(0,ts.k)(e.lowerValue,e.defaultLowerValue,function(e,t){return null==T?void 0:T(W.latestValue,[t,W.latestValue],e)}),z=H[0],V=H[1],U=Math.max(f,Math.min(d,O||0)),j=Math.max(f,Math.min(U,z||0)),W=(0,tl.d)({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:U,latestLowerValue:j});W.latestValue=U,W.latestLowerValue=j;var q=(0,tc.B)("Slider",e.id||(null==v?void 0:v.id)),G=th(k,{className:a,disabled:l,vertical:b,showTransitions:!x&&!W.isBetweenSteps,showValue:m,ranged:I,theme:w}),K=(d-f)/r,X=function(){B(W.onKeyDownTimer),W.onKeyDownTimer=-1},Y=function(e){X(),D&&(W.onKeyDownTimer=N(function(){D(e,W.latestValue,I?[W.latestLowerValue,W.latestValue]:void 0)},tf))},Q=function(t){var n=e.ariaValueText;if(void 0!==t)return n?n(t):t.toString()},J=function(e,t,n){t=Math.min(d,Math.max(f,t)),n=void 0!==n?Math.min(d,Math.max(f,n)):void 0;var o=0;if(isFinite(r))for(;Math.round(r*Math.pow(10,o))/Math.pow(10,o)!==r;)o++;var a=parseFloat(t.toFixed(o));W.isBetweenSteps=void 0!==n&&n!==a,I?W.isAdjustingLowerValue&&(S?a<=0:a<=W.latestValue)?V(a,e):!W.isAdjustingLowerValue&&(S?a>=0:a>=W.latestLowerValue)&&L(a,e):L(a,e)},Z=function(t){var n=W.isAdjustingLowerValue?W.latestLowerValue:W.latestValue,o=0;switch(t.which){case(0,e4.SM)(e3.c.left,e.theme):case e3.c.down:o=-r,X(),Y(t);break;case(0,e4.SM)(e3.c.right,e.theme):case e3.c.up:o=r,X(),Y(t);break;case e3.c.home:n=f,X(),Y(t);break;case e3.c.end:n=d,X(),Y(t);break;default:return}J(t,n+o),t.preventDefault(),t.stopPropagation()},ee=function(e,t){var n=0;switch(e.type){case"mousedown":case"mousemove":n=t?e.clientY:e.clientX;break;case"touchstart":case"touchmove":n=t?e.touches[0].clientY:e.touches[0].clientX}return n},et=function(t){var n,r,o=M.current.getBoundingClientRect(),a=(e.vertical?o.height:o.width)/K;if(e.vertical){var s=ee(t,e.vertical);n=(r=o.bottom-s)/a}else{var l=ee(t,e.vertical);n=(r=(0,e4.jI)(e.theme)?o.right-l:l-o.left)/a}return n},en=function(e,t){var n=et(e),o=f+r*n;J(e,f+r*Math.round(n),o),t||(e.preventDefault(),e.stopPropagation())},er=function(e){if(I){var t=f+r*et(e);W.isAdjustingLowerValue=t<=W.latestLowerValue||t-W.latestLowerValue<=W.latestValue-t}"mousedown"===e.type?A.current.push((0,td.on)(window,"mousemove",en,!0),(0,td.on)(window,"mouseup",eo,!0)):"touchstart"===e.type&&A.current.push((0,td.on)(window,"touchmove",en,!0),(0,td.on)(window,"touchend",eo,!0)),en(e,!0)},eo=function(e){W.isBetweenSteps=void 0,null==D||D(e,W.latestValue,I?[W.latestLowerValue,W.latestValue]:void 0),ea()},ei=function(e){W.isAdjustingLowerValue=e.target===es.current},ea=o.useCallback(function(){A.current.forEach(function(e){return e()}),A.current=[]},[]);o.useEffect(function(){return ea},[ea]);var es=o.useRef(null),el=o.useRef(null),ec=o.useRef(null);tv(e,ec,U,I?[j,U]:void 0);var eu=tm(b?"bottom":(0,e4.jI)(e.theme)?"right":"left"),ed=tm(b?"height":"width"),ep=S?0:f,ef=tg(U,f,d),eh=tg(j,f,d),em=tg(ep,f,d),eg=I?ef-eh:Math.abs(em-ef),ev=Math.min(100-ef,100-em),ey=I?eh:Math.min(ef,em),eb={className:G.root,ref:t},ex={className:G.titleLabel,children:c,disabled:l,htmlFor:P?void 0:q},eC=m?{className:G.valueLabel,children:C?C(U):U,disabled:l,htmlFor:l?q:void 0}:void 0,ek=I&&m?{className:G.valueLabel,children:C?C(j):j,disabled:l}:void 0,ew=S?{className:G.zeroTick,style:eu(em)}:void 0,eS={className:(0,e8.A)(G.lineContainer,G.activeSection),style:ed(eg)},e_={className:(0,e8.A)(G.lineContainer,G.inactiveSection),style:ed(ev)},eE={className:(0,e8.A)(G.lineContainer,G.inactiveSection),style:ed(ey)},eP=(0,tr.__assign)({"aria-disabled":l,role:"slider",tabIndex:l?void 0:0},{"data-is-focusable":!l}),eI=(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({id:q,className:(0,e8.A)(G.slideBox,v.className),ref:ec},!l&&{onMouseDown:er,onTouchStart:er,onKeyDown:Z}),v&&(0,tp.G1)(v,tp.JM,["id","className"])),!I&&(0,tr.__assign)((0,tr.__assign)({},eP),{"aria-valuemin":f,"aria-valuemax":d,"aria-valuenow":U,"aria-valuetext":Q(U),"aria-label":P||c,"aria-labelledby":_})),eT=l?{}:{onFocus:ei},eD=(0,tr.__assign)({ref:el,className:G.thumb,style:eu(ef)},I&&(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({},eP),eT),{id:"max-".concat(q),"aria-valuemin":j,"aria-valuemax":d,"aria-valuenow":U,"aria-valuetext":Q(U),"aria-label":"max ".concat(P||c)})),eA=I?(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({ref:es,className:G.thumb,style:eu(eh)},eP),eT),{id:"min-".concat(q),"aria-valuemin":f,"aria-valuemax":U,"aria-valuenow":j,"aria-valuetext":Q(j),"aria-label":"min ".concat(P||c)}):void 0;return{root:eb,label:ex,sliderBox:eI,container:{className:G.container},valueLabel:eC,lowerValueLabel:ek,thumb:eD,lowerValueThumb:eA,zeroTick:ew,activeTrack:eS,topInactiveTrack:e_,bottomInactiveTrack:eE,sliderLine:{ref:M,className:G.line}}},tb="SliderBase",tx=o.forwardRef(function(e,t){var n=ty(e,t);return o.createElement("div",(0,tr.__assign)({},n.root),n&&o.createElement(ti.J,(0,tr.__assign)({},n.label)),o.createElement("div",(0,tr.__assign)({},n.container),e.ranged&&(e.vertical?n.valueLabel&&o.createElement(ti.J,(0,tr.__assign)({},n.valueLabel)):n.lowerValueLabel&&o.createElement(ti.J,(0,tr.__assign)({},n.lowerValueLabel))),o.createElement("div",(0,tr.__assign)({},n.sliderBox),o.createElement("div",(0,tr.__assign)({},n.sliderLine),e.ranged&&o.createElement("span",(0,tr.__assign)({},n.lowerValueThumb)),o.createElement("span",(0,tr.__assign)({},n.thumb)),n.zeroTick&&o.createElement("span",(0,tr.__assign)({},n.zeroTick)),o.createElement("span",(0,tr.__assign)({},n.bottomInactiveTrack)),o.createElement("span",(0,tr.__assign)({},n.activeTrack)),o.createElement("span",(0,tr.__assign)({},n.topInactiveTrack)))),e.ranged&&e.vertical?n.lowerValueLabel&&o.createElement(ti.J,(0,tr.__assign)({},n.lowerValueLabel)):n.valueLabel&&o.createElement(ti.J,(0,tr.__assign)({},n.valueLabel))),o.createElement(to.MO,null))});tx.displayName=tb;var tC={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"},tk=function(e){var t,n,r,o,a,s,l,c,u,d,p,f,h,m=e.className,g=e.titleLabelClassName,v=e.theme,y=e.vertical,b=e.disabled,x=e.showTransitions,C=e.showValue,k=e.ranged,w=v.semanticColors,S=v.palette,_=(0,eU.Km)(tC,v),E=w.inputBackgroundCheckedHovered,P=w.inputBackgroundChecked,I=S.neutralSecondaryAlt,T=S.neutralPrimary,D=S.neutralSecondaryAlt,A=w.disabledText,R=w.disabledBackground,N=w.inputBackground,B=w.smallInputBorder,M=w.disabledBorder,F=!b&&{backgroundColor:E,selectors:((t={})[eU.up]={backgroundColor:"Highlight"},t)},O=!b&&{backgroundColor:I,selectors:((n={})[eU.up]={borderColor:"Highlight"},n)},L=!b&&{backgroundColor:P,selectors:((r={})[eU.up]={backgroundColor:"Highlight"},r)},H=!b&&{border:"2px solid ".concat(E),selectors:((o={})[eU.up]={borderColor:"Highlight"},o)},z=!e.disabled&&{backgroundColor:w.inputPlaceholderBackgroundChecked,selectors:((a={})[eU.up]={backgroundColor:"Highlight"},a)};return{root:(0,tr.__spreadArray)((0,tr.__spreadArray)((0,tr.__spreadArray)((0,tr.__spreadArray)((0,tr.__spreadArray)([_.root,v.fonts.medium,{userSelect:"none"},y&&{marginRight:8}],[b?void 0:_.enabled],!1),[b?_.disabled:void 0],!1),[y?void 0:_.row],!1),[y?_.column:void 0],!1),[m],!1),titleLabel:[{padding:0},g],container:[_.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},y&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:(0,tr.__spreadArray)((0,tr.__spreadArray)([_.slideBox,!k&&(0,eU.gm)(v),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:((s={})[":active .".concat(_.activeSection)]=F,s[":hover .".concat(_.activeSection)]=L,s[":active .".concat(_.inactiveSection)]=O,s[":hover .".concat(_.inactiveSection)]=O,s[":active .".concat(_.thumb)]=H,s[":hover .".concat(_.thumb)]=H,s[":active .".concat(_.zeroTick)]=z,s[":hover .".concat(_.zeroTick)]=z,s[eU.up]={forcedColorAdjust:"none"},s)},y?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[C?_.showValue:void 0],!1),[x?_.showTransitions:void 0],!1),thumb:[_.thumb,k&&(0,eU.gm)(v,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:B,borderRadius:10,boxSizing:"border-box",background:N,display:"block",width:16,height:16,position:"absolute"},y?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:(0,e4.jI)(v)?"translateX(50%)":"translateX(-50%)"},x&&{transition:"left ".concat(eU.cs.durationValue3," ").concat(eU.cs.easeFunction1)},b&&{borderColor:M,selectors:((l={})[eU.up]={borderColor:"GrayText"},l)}],line:[_.line,{display:"flex",position:"relative"},y?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},y?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[_.activeSection,{background:T,selectors:((c={})[eU.up]={backgroundColor:"WindowText"},c)},x&&{transition:"width ".concat(eU.cs.durationValue3," ").concat(eU.cs.easeFunction1)},b&&{background:A,selectors:((u={})[eU.up]={backgroundColor:"GrayText",borderColor:"GrayText"},u)}],inactiveSection:[_.inactiveSection,{background:D,selectors:((d={})[eU.up]={border:"1px solid WindowText"},d)},x&&{transition:"width ".concat(eU.cs.durationValue3," ").concat(eU.cs.easeFunction1)},b&&{background:R,selectors:((p={})[eU.up]={borderColor:"GrayText"},p)}],zeroTick:[_.zeroTick,{position:"absolute",background:w.disabledBorder,selectors:((f={})[eU.up]={backgroundColor:"WindowText"},f)},e.disabled&&{background:w.disabledBackground,selectors:((h={})[eU.up]={backgroundColor:"GrayText"},h)},e.vertical?{width:"16px",height:"1px",transform:(0,e4.jI)(v)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[_.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},y?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}},tw=(0,tn.I)(tx,tk,void 0,{scope:"Slider"}),tS=n(23562),t_=(0,en.memoizeFunction)(function(e,t){return(0,eU.l8)({sliderContainer:{flexGrow:1,marginTop:2,marginBottom:24,selectors:{"&:disabled":{background:"transparent",cursor:"not-allowed"}}},sliderButton:{selectors:{"&:disabled":{background:"transparent",cursor:"not-allowed"}}},editControls:{paddingTop:10,display:"flex",flexDirection:"row",width:"100%",height:32},root:(0,eU.Zq)({selectors:{"&:disabled":{background:"transparent",cursor:"not-allowed"}}},null==t?void 0:t.root),slideBox:(0,eU.Zq)({padding:"0 10px"},null==t?void 0:t.slideBox),thumb:(0,eU.Zq)({border:"2px solid ".concat(e.palette.themePrimary)},null==t?void 0:t.thumb),activeThumb:(0,eU.Zq)({backgroundColor:e.palette.themePrimary},null==t?void 0:t.activeThumb),inactiveThumb:(0,eU.Zq)({backgroundColor:e.palette.themeLight},null==t?void 0:t.inactiveThumb),announcement:{position:"absolute",width:1,height:1,margin:-1,overflowX:"hidden",overflowY:"hidden"}})}),tE=function(e){return"".concat(Math.round(e),"\xb0")},tP=function(e){return"".concat(Math.round(e))},tI=function(e){var t,n,r=t_((0,eq.useTheme)(),e.styles),a=e.onImageRotate,s=e.setBaseAngleForStraightening,l=o.useCallback(function(t){a(t-e.imageRotationAngle+e.baseAngleForStraightening)},[a,e.baseAngleForStraightening,e.imageRotationAngle]),c=o.useCallback(function(){a(90),s(e.baseAngleForStraightening+90)},[a,s,e.baseAngleForStraightening]),u=o.useCallback(function(){e.onImageRotate(-90),e.setBaseAngleForStraightening(e.baseAngleForStraightening-90)},[e]),d=null!=(n=null==(t=e.imagePositionInformationString)?void 0:t.call(e,{p0:tE(e.imageRotationAngle)}))?n:tE(e.imageRotationAngle);return o.createElement("div",{className:r.editControls},o.createElement(eH.K,{className:r.sliderButton,title:e.counterClockwiseString,ariaLabel:e.counterClockwiseString,onClick:u,onRenderIcon:tT,disabled:e.isPhotoUploading}),o.createElement(eL.S,{content:d,styles:{root:r.sliderContainer}},o.createElement(tw,{styles:{root:r.root,slideBox:r.slideBox,thumb:r.thumb,activeSection:r.activeThumb,inactiveSection:r.inactiveThumb},min:-45,max:45,step:1,value:e.imageRotationAngle-e.baseAngleForStraightening,showValue:!1,disabled:e.isPhotoUploading,originFromZero:!0,onChange:l,ariaValueText:tP,"aria-label":e.rotateString})),o.createElement(eH.K,{className:r.sliderButton,disabled:e.isPhotoUploading,title:e.clockwiseString,ariaLabel:e.clockwiseString,onClick:c,onRenderIcon:tD}),o.createElement("div",{"aria-live":"assertive",role:"status",className:r.announcement},tE(e.imageRotationAngle)))};function tT(){return o.createElement("span",null,o.createElement(tS.pfk,null))}function tD(){return o.createElement("span",null,o.createElement(tS.yl$,null))}var tA=function(e){return"".concat(e,"%")},tR=function(e,t){return Math.round((e*(t-1)+1)*100)},tN=function(e,t){return Math.round((e/100-1)/(t-1)*100)/100},tB=function(e){var t,n,r=o.useState(!1),a=r[0],s=r[1],l=o.useRef(0),c=e.zoom,u=o.useCallback(function(t,n,r){if(!e.image||e.maximumScale<1||isNaN(t)){null==r||r.stopPropagation();return}c(tN(t,e.maximumScale)-e.relativeScale,.5*e.canvasSize,.5*e.canvasSize)},[e.image,e.maximumScale,e.relativeScale,c,e.canvasSize]),d=o.useCallback(function(t){c(t,e.canvasSize/2,e.canvasSize/2),s(!0),l.current&&clearTimeout(l.current),l.current=window.setTimeout(function(){return s(!1)},3e3)},[c,l,e.canvasSize]);o.useEffect(function(){return function(){return clearTimeout(l.current)}},[l]);var p=t_((0,eq.useTheme)(),e.styles),f=C(2*e.stepSize,.1,.2),h=tR(0,e.maximumScale),m=tR(1,e.maximumScale),g=tR(e.relativeScale,e.maximumScale),v=tR(C(e.stepSize,.05,.1),e.maximumScale)-tR(0,e.maximumScale),y=e.maximumScale<=1?e.zoomAtMaxString:null!=(n=null==(t=e.imageScaleInformationString)?void 0:t.call(e,{p0:tA(g)}))?n:tA(g);return o.createElement("div",{className:p.editControls},o.createElement(eH.K,{className:p.sliderButton,iconProps:{iconName:"CalculatorSubtract"},title:e.zoomOutString,ariaLabel:e.zoomOutString,onClick:function(){return d(-f)},disabled:e.isPhotoUploading||e.zoomOutDisabled}),o.createElement(eL.S,{content:y,styles:{root:p.sliderContainer}},o.createElement(tw,{styles:{root:p.root,slideBox:p.slideBox,thumb:p.thumb,activeSection:p.activeThumb,inactiveSection:p.inactiveThumb},ariaValueText:tA,ariaLabel:e.zoomString,min:h,max:m,disabled:e.isPhotoUploading||e.maximumScale<=1,step:v,value:g,showValue:!1,onChange:u})),o.createElement(eH.K,{className:p.sliderButton,iconProps:{iconName:"CalculatorAddition"},title:e.zoomInString,ariaLabel:e.zoomInString,onClick:function(){return d(f)},disabled:e.isPhotoUploading||e.zoomInDisabled}),a&&o.createElement("div",{"aria-live":"assertive",role:"status",className:p.announcement},tA(tR(e.relativeScale,e.maximumScale))))},tM=n(76926),tF=n(56599),tO=n(35797),tL=(0,eV.J9)(function(e,t){var n=e.palette;return(0,eU.l8)({editPivot:{height:46},link:(0,eU.Zq)({lineHeight:10,width:46,height:46,padding:0,marginRight:0,color:n.neutralSecondary},null==t?void 0:t.link),linkSelected:(0,eU.Zq)({color:n.neutralDark,fontWeight:600},null==t?void 0:t.linkSelected),button:(0,eU.Zq)({flex:"0 1 100%",height:44},null==t?void 0:t.button),buttonText:(0,eU.Zq)({fontSize:10,marginTop:5},null==t?void 0:t.buttonText)})}),tH=function(e){var t=tL((0,eq.useTheme)(),e.styles),n=e.setSelectedKey,r=o.useCallback(function(e){var t;(null==(t=null==e?void 0:e.props)?void 0:t.itemKey)&&n(e.props.itemKey)},[n]),a=o.useCallback(function(n){if(!(null==n?void 0:n.itemKey))return null;var r=n.itemKey,a="Rotate"===r?[o.createElement(tS.nHW,{key:r}),e.rotateString]:[o.createElement(tO.$97,{key:r}),e.zoomString],s=a[0],l=a[1];return o.createElement("span",{className:t.button},s,o.createElement("div",{className:t.buttonText},l))},[e.rotateString,e.zoomString,t.button,t.buttonText]);return o.createElement(tM.f,{styles:{root:t.editPivot,link:t.link,linkIsSelected:t.linkSelected},"aria-label":e.pivotString,selectedKey:e.selectedKey,onLinkClick:r,headersOnly:!0,"aria-disabled":e.isPhotoUploading},o.createElement(tF.y,{itemKey:"Zoom",onRenderItemLink:a}),o.createElement(tF.y,{itemKey:"Rotate",onRenderItemLink:a}))},tz=function(){return(tz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},tV=256,tU=(0,eV.J9)(function(e,t,n,r){return(0,eU.l8)({editControlsPlaceholderSpace:{height:32},editCanvas:(0,eU.Zq)({backgroundColor:e.palette.neutralLight,cursor:t?"move":"inherit"},null==n?void 0:n.root),isDropActive:{outline:"1px solid purple"},invisible:tz({clip:"rect(1px, 1px, 1px, 1px)"},{height:1,overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:1}),canvasContainer:{margin:r?"0 0 0 auto":"0 auto",display:"flex",alignItems:"center",flexDirection:"column",width:tV,position:"relative"},textboy:(0,eU.Zq)({color:e.palette.white,position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",top:0,left:0,width:tV,height:tV},null==n?void 0:n.textboy),initials:(0,eU.Zq)({fontSize:128,lineHeight:128},null==n?void 0:n.initials)})}),tj=function(e){var t,n=o.useRef(!1),r=o.useRef(null),a=o.useRef(null),s=(0,e5.I)(e.personDisplayName,(0,e4.jI)()),l=!e.image||e.maximumScale<=1||e.progress>0,c=e.image,u=e.progress>0&&e.progress<1,d=!l||e.naturalHeight!==e.naturalWidth,h=tU((0,eq.useTheme)(),d,e.styles.canvas,e.isPhotoListPresent),y=o.useState(!1),k=y[0],w=y[1],S=o.useState(0),_=S[0],E=S[1],P=o.useState(),I=P[0],T=P[1],D=o.useCallback(function(e){return E(e%360)},[]),A=e.onRefocus,R=e.onZoomEvent,N=e.onError,B=e.onDragProgress,M=e.onReset,F=e.onDragStart,O=e.onCanvasUpdated,L=e.onEmptyImageRendered,H=e.onFileSelected,z=e.onImageLoaded,V=e.onKeyboardEvent,U=e.onRotateEvent,j=e.isUploadedPhotoTooSmall,W=o.useCallback(function(t,n){return"Fit"===e.imageScaling&&n<p?(p-n)/2:t>0?0:t+n<p?p-n:t},[e.imageScaling]),q=o.useCallback(function(t,n,r,o){return W(t+(n-t)*o/e.absoluteScale,o*r/e.maximumScale)},[W,e.absoluteScale,e.maximumScale]),G=o.useCallback(function(t,n,r){if(!(!e.image||e.maximumScale<1||isNaN(t))&&"Rotate"!==I){var o=Math.min(1,Math.max(0,e.relativeScale+t));if(o!==e.relativeScale){var a=Math.exp(o*Math.log(e.maximumScale)),s=a<=1,l=a>=e.maximumScale,c=q(n,e.xpos,e.naturalWidth,a),u=q(r,e.ypos,e.naturalHeight,a);R({absoluteScale:a,relativeScale:o,zoomOutDisabled:s,zoomInDisabled:l,xpos:c,ypos:u})}}},[e.image,e.maximumScale,e.relativeScale,e.xpos,e.naturalWidth,e.ypos,e.naturalHeight,q,R,I]),K=o.useCallback(function(t){U({imageRotationAngle:(e.imageRotationAngle+t)%360})},[e.imageRotationAngle,U]),X=o.useCallback(function(t){if(e.image&&!(e.maximumScale<1)){var n,r,o,a,s,l,c,u,d="",f=e.xpos.toFixed(1),h=e.ypos.toFixed(1);switch(t.key){case"+":return G(e.stepSize,p/2,p/2);case"-":return G(-1*e.stepSize,p/2,p/2);case"ArrowLeft":d=null==(r=(n=e.strings).leftArrowKeyAriaLabel)?void 0:r.call(n,{p0:f,p1:h});break;case"ArrowRight":d=null==(a=(o=e.strings).rightArrowKeyAriaLabel)?void 0:a.call(o,{p0:f,p1:h});break;case"ArrowUp":d=null==(l=(s=e.strings).upArrowKeyAriaLabel)?void 0:l.call(s,{p0:f,p1:h});break;case"ArrowDown":d=null==(u=(c=e.strings).downArrowKeyAriaLabel)?void 0:u.call(c,{p0:f,p1:h})}t.currentTarget.setAttribute("aria-label","".concat(d));var m=t.which===e3.c.left&&1||t.which===e3.c.right&&-1||0,g=t.which===e3.c.up&&1||t.which===e3.c.down&&-1||0,v=x(m,g,e.orientation,e.imageRotationAngle),y=v.x,b=v.y,C=y*e.naturalWidth/100,k=b*e.naturalHeight/100,w=W(e.xpos+C,e.naturalWidth*e.absoluteScale/e.maximumScale),S=W(e.ypos+k,e.naturalHeight*e.absoluteScale/e.maximumScale);V({xpos:w,ypos:S})}},[e.stepSize,e.orientation,e.image,e.naturalWidth,e.naturalHeight,e.xpos,e.ypos,e.absoluteScale,e.maximumScale,V,e.imageRotationAngle,G,W,e.strings]),Y=o.useCallback(function(t){var o,a,s,l=1;"Fit"===e.imageScaling?(l=1.2,s=(a=Math.max(t.naturalWidth,t.naturalHeight))*l/p):s=(a=Math.min(t.naturalWidth,t.naturalHeight))/p;var c=function(e){return-((e/s-p)*.5)},u=Math.min(1,Math.max(g,p/(2*Math.max(t.naturalWidth,t.naturalHeight))));D(0),!e.initialRender&&s<1&&(t.naturalHeight<48||t.naturalWidth<48?setTimeout(function(){return N("IMAGE_TOO_SMALL_ERROR")},0):setTimeout(function(){return N("IMAGE_TOO_SMALL_WARNING")},0)),j(t.naturalHeight<48||t.naturalWidth<48),n.current||z({naturalMin:a,naturalWidth:t.naturalWidth*l,naturalHeight:t.naturalHeight*l,stepSize:u,maximumScale:s,orientation:e7(t.src),imageRotationAngle:0,image:t,zoomInDisabled:!1,initialRender:!1,xpos:c(t.naturalWidth*l),ypos:c(t.naturalHeight*l),absoluteScale:1,relativeScale:0,imageUpdated:!1}),e.initialRender||null==(o=r.current)||o.focus()},[e.initialRender,N,j,z,n,r,e.imageScaling,D]),Q=o.useCallback(function(t){if(t){var n=new Image;n.onload=function(){return Y(n)},n.src=t,n.alt=e.fileName||""}else M(),""===t&&L()},[M,Y,L,e.fileName]),J=o.useCallback(function(t){if(e.image){tW(t);var n=t.deltaY>0?-1:1,r=x(t.nativeEvent.offsetX,t.nativeEvent.offsetY,e.orientation,e.imageRotationAngle),o=r.x,a=r.y;G(C(e.stepSize,.05,.1)*n,o,a)}},[e.image,e.orientation,e.stepSize,G,e.imageRotationAngle]),Z=o.useCallback(function(t){var n=tq(t),r=x(n[0],n[1],e.orientation,e.imageRotationAngle),o=r.x,a=r.y;e.image&&(tW(t),F({moving:!0,lastMouseX:o,lastMouseY:a}))},[e.image,F,e.orientation,e.imageRotationAngle]),ee=o.useCallback(function(t){if(tW(t),e.image){var n=["mousemove","touchmove"].includes(t.type);if(n&&e.moving){var r=tq(t),o=x(r[0],r[1],e.orientation,e.imageRotationAngle),a=o.x,s=o.y;B({moving:!0,xpos:W(e.xpos+(a-e.lastMouseX),e.naturalWidth*e.absoluteScale/e.maximumScale),ypos:W(e.ypos+(s-e.lastMouseY),e.naturalHeight*e.absoluteScale/e.maximumScale),lastMouseX:a,lastMouseY:s})}else B({moving:!1,xpos:e.xpos,ypos:e.ypos,lastMouseX:e.lastMouseX,lastMouseY:e.lastMouseY})}},[e.orientation,e.image,e.moving,e.xpos,e.ypos,e.lastMouseX,e.lastMouseY,e.naturalWidth,e.naturalHeight,e.absoluteScale,e.maximumScale,W,B,e.imageRotationAngle]),et=o.useCallback(function(e){tW(e),w(!0)},[w]),er=o.useCallback(function(e){tW(e),w(!1)},[w]),eo=o.useCallback(function(t){er(t),t.dataTransfer&&H(t.dataTransfer.files[0],e.isPhotoListPresent)},[er,H,e.isPhotoListPresent]),ei=o.useCallback(function(){var t=r.current;if(t&&a.current){var n=t.getContext("2d");if(!n)return void N("UNSUPPORTED_BROWSER");var o=window.getComputedStyle(t);n.fillStyle=o.backgroundColor||"#ffffff",n.fillRect(0,0,1,1);var s=n.getImageData(0,0,1,1).data,l="rgba(".concat(s[0],", ").concat(s[1],", ").concat(s[2],", 0.6)"),c="rgba(".concat(s[0],", ").concat(s[1],", ").concat(s[2],", 1)"),u=(0,e6.X)({text:e.personDisplayName});""===e.dataUrl?(n.fillStyle=u,a.current.style.display="flex"):(n.fillStyle=e.customBackgroundColor||f,a.current.style.display="none"),n.fillRect(0,0,p,p),e.image&&b(n,p,e.imageRotationAngle,e.orientation,e.image,function(t,n){return t.drawImage(n,e.xpos,e.ypos,e.naturalWidth*e.absoluteScale/e.maximumScale,e.naturalHeight*e.absoluteScale/e.maximumScale)}),null==O||O(t),"Circle"===e.imageCropShape&&(n.save(),n.beginPath(),n.rect(0,0,p,p),n.arc(p/2,p/2,m,0,2*Math.PI,!0),n.clip(),n.fillStyle=l,n.fillRect(0,0,p,p),n.restore(),n.save(),n.beginPath(),n.arc(p/2,p/2,m+1,0,2*Math.PI,!0),n.lineWidth=2,n.strokeStyle=c,n.stroke(),n.restore(),n.save(),n.beginPath(),n.lineWidth=4,n.fillStyle=v,n.strokeStyle=v,n.arc(p/2,p/2,m,-Math.PI/2,2*e.progress*Math.PI-Math.PI/2,!1),1===e.progress&&n.fill(),n.stroke(),n.restore())}},[e.personDisplayName,e.dataUrl,e.image,e.imageRotationAngle,e.orientation,e.xpos,e.ypos,e.naturalWidth,e.naturalHeight,e.absoluteScale,e.maximumScale,e.progress,N,e.customBackgroundColor,O,e.imageCropShape,a]);o.useEffect(function(){return ei(),function(){n.current=!0}},[]),o.useEffect(function(){ei()}),o.useEffect(function(){1===e.progress&&A()},[e.progress,A]),o.useEffect(function(){e.dataUrl&&T(l?"Rotate":"Zoom")},[e.dataUrl,l]),o.useEffect(function(){e.dataUrl?e.imageUpdated&&Q(e.dataUrl):e.image&&(M(),L())},[e.dataUrl,e.imageUpdated,e.image,M,L,l,Q]);var ea=o.useMemo(function(){var t,n;return e.image?1===e.progress?e.strings.success:e.fileName?null==(n=(t=e.strings).photoSelected)?void 0:n.call(t,{p0:e.fileName}):e.strings.dropZoneImageAriaLabel:e.strings.dropZoneEmptyAriaLabel},[e.image,e.progress,e.fileName,e.strings]),es=o.useRef((0,en.generateGuid)());return o.createElement("div",{className:h.canvasContainer},o.createElement("div",{"aria-live":"polite"},o.createElement("canvas",{className:(0,e8.A)(h.editCanvas,((t={})[h.isDropActive]=k,t)),role:"img",tabIndex:c?0:-1,ref:r,width:p,height:p,onKeyDown:X,"aria-label":ea,onDragEnter:et,onDrop:eo,onDragLeave:er,onDragOver:tW,onMouseDown:Z,onMouseMove:ee,onMouseUp:ee,onMouseLeave:ee,onWheel:J,onTouchStart:Z,onTouchMove:ee,onTouchEnd:ee,"aria-describedby":es.current}),e.image&&e.fileName&&o.createElement("img",{alt:e.fileName,id:es.current,"aria-hidden":!0,hidden:!0}),o.createElement("div",{className:h.textboy,ref:a,onDragEnter:et,onDragLeave:er,onDragOver:tW,onDrop:eo},o.createElement("div",{className:h.initials},s),o.createElement("div",null,e.strings.dropZone))),o.createElement("div",{role:"region","aria-live":"assertive","aria-atomic":!0},1===e.progress?o.createElement("div",{className:h.textboy},o.createElement("span",{className:h.invisible},e.strings.success),o.createElement(e9.I,{className:h.initials,iconName:"CheckMark"})):null),c?o.createElement(o.Fragment,null,"Zoom"!==I&&e.enableImageRotation?o.createElement(tI,{styles:e.styles.slider,isPhotoUploading:u,clockwiseString:e.strings.clockwise,counterClockwiseString:e.strings.counterClockwise,rotateString:e.strings.rotate,baseAngleForStraightening:_,imagePositionInformationString:e.strings.imagePositionInformationString,setBaseAngleForStraightening:D,onImageRotate:K,imageRotationAngle:e.imageRotationAngle,panEnabled:d}):o.createElement(tB,{styles:e.styles.slider,zoomOutString:e.strings.zoomOut,zoomInString:e.strings.zoomIn,zoomString:e.strings.zoom,zoomAtMaxString:e.strings.zoomAtMax||"",imageScaleInformationString:e.strings.imageScaleInformationString,isPhotoUploading:u,canvasSize:p,image:e.image,maximumScale:e.maximumScale,stepSize:e.stepSize,zoomOutDisabled:e.zoomOutDisabled,relativeScale:e.relativeScale,zoomInDisabled:e.zoomInDisabled,panEnabled:d,zoom:G}),e.enableImageRotation&&o.createElement(tH,{styles:e.styles.pivot,zoomAtMaxString:e.strings.zoomAtMax,isPhotoUploading:u,maximumScale:e.maximumScale,selectedKey:I,setSelectedKey:T,rotateString:e.strings.rotate,zoomString:e.strings.zoom,pivotString:e.strings.pivot})):o.createElement("div",{className:h.editControlsPlaceholderSpace,"aria-live":"polite"}))},tW=function(e){e.stopPropagation(),e.preventDefault()},tq=function(e){return"targetTouches"in e?[e.targetTouches[0].clientX,e.targetTouches[0].clientY]:[e.clientX,e.clientY]};function tG(e){return ec.getSelectors(e).getEditCanvasState()}function tK(e){return{onReset:function(){return e(G())},onKeyboardEvent:function(t){return e(z({xpos:t.xpos,ypos:t.ypos}))},onZoomEvent:function(t){return e(U({absoluteScale:t.absoluteScale,relativeScale:t.relativeScale,zoomOutDisabled:t.zoomOutDisabled,zoomInDisabled:t.zoomInDisabled,xpos:t.xpos,ypos:t.ypos}))},onImageLoaded:function(t){return e(j({naturalMin:t.naturalMin,naturalWidth:t.naturalWidth,naturalHeight:t.naturalHeight,stepSize:t.stepSize,maximumScale:t.maximumScale,orientation:t.orientation,imageRotationAngle:t.imageRotationAngle,image:t.image,zoomInDisabled:t.zoomInDisabled,initialRender:t.initialRender,xpos:t.xpos,ypos:t.ypos,absoluteScale:t.absoluteScale,relativeScale:t.relativeScale,imageUpdated:t.imageUpdated}))},onDragStart:function(t){return e(W({moving:t.moving,lastMouseX:t.lastMouseX,lastMouseY:t.lastMouseY}))},onDragProgress:function(t){return e(q({moving:t.moving,xpos:t.xpos,ypos:t.ypos,lastMouseX:t.lastMouseX,lastMouseY:t.lastMouseY}))},onEmptyImageRendered:function(){return e(K())},onRotateEvent:function(t){return e(V({imageRotationAngle:t.imageRotationAngle}))}}}var tX=(0,s.Ng)(tG,tK)(tj),tY=n(96621),t$=n(30217),tQ=n(23755),tJ=n(6095),tZ=function(e){return(0,eq.makeGetStyles)(function(t){return(0,eU.l8)({listItem:(0,eU.Zq)({height:56,width:56,marginBottom:10,border:"none",boxSizing:"border-box",display:"flex",padding:0,background:"transparent",cursor:"pointer",selectors:{"&:focus":{outline:"2px solid ".concat(t.palette.themePrimary)},"&:hover":{opacity:.9,border:"1px solid ".concat(t.palette.neutralLighter)}}},null==e?void 0:e.listItem),lastListItem:{marginBottom:0},listItemSelected:(0,eU.Zq)({outline:"2px solid ".concat(t.palette.themePrimary),opacity:.9},null==e?void 0:e.listItemSelected),listItemWithBackground:{background:t.palette.neutralLighter},photoListItemImage:{height:"100%",width:"100%"},emptyListIcon:(0,eU.Zq)({margin:"auto",fontSize:"24px",color:t.palette.neutralSecondaryAlt},null==e?void 0:e.emptyListIcon)})})},t0=function(e){var t,n=(0,eq.useTheme)(),r=tZ(e.styles)(n);return o.createElement("button",{className:(0,e8.A)(r.listItem,((t={})[r.listItemSelected]=e.index===e.selectedIndex,t[r.listItemWithBackground]=e.isEmptyPhoto,t[r.lastListItem]=e.isLastPhoto,t)),onClick:function(){var t;e.onClickHandler({selectedIndex:e.index,imageUrl:e.imageUrl||"",fileName:"".concat(e.photoListImageAriaLabel||""," ").concat(e.index+1).trim()}),e.isEmptyPhoto&&(null==(t=e.onPhotoRemoved)||t.call(e))},"aria-describedby":e.ariaDescribedBy},e.isEmptyPhoto?o.createElement(t$.l8,{"aria-label":e.photoListEmptyImageAriaLabel,iconName:"Contact",className:r.emptyListIcon}):o.createElement(tQ._,{src:e.imageUrl,className:r.photoListItemImage,alt:e.photoListImageAriaLabel,imageFit:tJ.N_.cover}))},t1=function(e){return(0,eq.makeGetStylesFromStyleObject)((0,eU.l8)({root:(0,eU.Zq)({height:256,width:56,padding:"0px 25px 0px 12px",overflowY:"auto",margin:0,listStyle:"none"},null==e?void 0:e.root)}))()},t2=function(e){var t=t1(e.styles),n=e.imageUrls,r=e.showEmptyPhoto?n.length:n.length-1;return o.createElement("ul",{className:t.root,"aria-label":e.strings.photoListAriaLabel},n.map(function(t,n){return o.createElement(tY.RenderListItemDescription,{posInSet:n+1,setSize:r+1,key:n,onRenderDescribedElement:function(a){return o.createElement("li",{key:n},o.createElement(t0,{key:n,styles:e.styles,imageUrl:t,index:n,selectedIndex:e.selectedIndex,isLastPhoto:n===r,isEmptyPhoto:!1,photoListImageAriaLabel:e.strings.photoListImageAriaLabel,onClickHandler:e.onPhotoListImageSelected,ariaDescribedBy:a}))}})}),!!e.showEmptyPhoto&&o.createElement(tY.RenderListItemDescription,{posInSet:r+1,setSize:r+1,onRenderDescribedElement:function(t){return o.createElement("li",null,o.createElement(t0,{index:n.length,selectedIndex:e.selectedIndex,isLastPhoto:!0,isEmptyPhoto:!0,styles:e.styles,photoListEmptyImageAriaLabel:e.strings.photoListEmptyImageAriaLabel,onClickHandler:e.onPhotoListImageSelected,onPhotoRemoved:e.onPhotoRemoved,ariaDescribedBy:t}))}}))},t5=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),t4=function(){return(t4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},t3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return t5(t,e),t.prototype.componentDidMount=function(){this.props.photoListLoadPhotos(this.props.photoListSelectedIndex||0,this.props.photoListImageUrls)},t.prototype.render=function(){return o.createElement(t2,t4({},this.props))},t}(o.Component);function t6(e){return ec.getSelectors(e).getPhotoListState()}function t8(e){return{photoListLoadPhotos:function(t,n){e(J({selectedIndex:t,imageUrls:n}))},onPhotoListImageSelected:function(t){et(e,t.imageUrl,t.selectedIndex,t.fileName)}}}var t9=(0,s.Ng)(t6,t8)(t3),t7=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ne=function(){return(ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},nt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},nn=l(5),nr=function(e){function t(t){var n=e.call(this,t)||this;return n.focusTrap=null,n.primaryButton=null,n.uploadFileButton=null,n.onCanvasUpdated=function(e){var t,r;n.props.isCanvasDirty&&n.props.onImageChanged?n.props.onImageChanged(n.props.latestImageStats):null==(r=(t=n.props).onCanvasUpdated)||r.call(t,e,n.props.isCanvasDirty)},n.handleOnRemoveButtonClicked=function(){n.props.loadedEmptyImage(Array.isArray(n.props.personImageUrl)),n.uploadFileButton&&n.uploadFileButton.focus()},n.handleOnSaveButtonClicked=function(){if("SUCCESS"===n.props.status)return n.props.onDone(),n.props.onDismiss();n.props.startUpload()},n.handleUploadAnimation=function(){"IN_PROGRESS"===n.props.status&&n.props.onUploadProgress(Date.now())},n.handleOnCancelButtonClicked=function(){n.props.onCancel(),n.props.onDismiss()},n.handleOnCloseButtonClicked=function(){n.props.onClose(),n.props.onDismiss()},n.getFocusTrapRef=n.getFocusTrapRef.bind(n),n.getButtonRef=n.getButtonRef.bind(n),n.getUploadButtonRef=n.getUploadButtonRef.bind(n),n}return t7(t,e),t.prototype.getFocusTrapRef=function(){var e=this,t=function(t){return e.focusTrap=t};return t.current=null,t},t.prototype.getButtonRef=function(){var e=this,t=function(t){return e.primaryButton=t};return t.current=null,t},t.prototype.getUploadButtonRef=function(){var e=this,t=function(t){return e.uploadFileButton=t};return t.current=null,t},t.prototype.render=function(){var e,t,n=this,r=this.getWarningText(this.props.warning);return o.createElement(e0,{styles:this.props.styles.picker,onDismiss:this.props.onDismiss,focusTrapRef:this.getFocusTrapRef(),hideTitleText:!!this.props.hideUploadHeader,isComponentInline:!!this.props.isComponentInline,titleText:this.props.strings.uploadHeader,imageEditorDescription:this.props.strings.imageEditorDescription,hideEndActions:this.props.hideButtons,closeIcon:o.createElement(eW,{buttonType:"Icon",iconName:"Cancel",onClick:this.handleOnCloseButtonClicked,dataLogName:"PhotoPickerClose",title:this.props.strings.closeIconTitle,ariaLabel:this.props.strings.closeIconAriaLabel}),infoBar:r?o.createElement(eY,{styles:this.props.styles.infoBar,warning:this.props.warning,warningText:r,onDismiss:this.props.onDismissInfoBar,dismissButtonAriaLabel:this.props.strings.infoBarDismissButtonAriaLabel}):null,uploadPhoto:this.props.hideUploadPhotoButton&&this.props.renderCustomUploadButton?null:o.createElement(e2,{styles:this.props.styles.uploadPhoto,buttonRef:this.getUploadButtonRef(),onFileSelected:this.props.onFileSelected,onUploadNewPhoto:this.props.onUploadNewPhoto,uploadText:this.props.strings.upload,isPhotoListPresent:Array.isArray(this.props.personImageUrl)}),editCanvas:o.createElement(tX,{dataUrl:this.props.dataUrl,enableImageRotation:this.props.enableImageRotation,fileName:this.props.fileName,personDisplayName:this.props.personDisplayName,progress:this.props.progress,warning:r,strings:this.props.strings,onError:this.props.onError,isUploadedPhotoTooSmall:function(e){return n.props.onUploadedPhotoTooSmall(e)},styles:this.props.styles,onFileSelected:this.props.onFileSelected,onRefocus:function(){return n.onFocusChange()},onUpdate:this.props.onImageUpdated,imageCropShape:this.props.imageCropShape||"Circle",imageScaling:this.props.imageScaling||"Fill",onCanvasUpdated:this.onCanvasUpdated,isComponentInline:!!this.props.isComponentInline,customBackgroundColor:this.props.customBackgroundColor,isPhotoListPresent:Array.isArray(this.props.personImageUrl)}),photoList:Array.isArray(this.props.personImageUrl)?o.createElement(t9,{styles:this.props.styles.list,photoListImageUrls:this.props.personImageUrl,photoListSelectedIndex:this.props.photoListSelectedIndex,showEmptyPhoto:!!this.props.showPhotoListEmptyPhoto,strings:this.props.strings,onPhotoRemoved:function(){var e;null==(e=n.uploadFileButton)||e.focus()}}):null,applyButton:o.createElement(eW,{buttonType:"Primary",buttonLabel:this.getSaveButtonText(this.props.status),dataLogName:"PhotoPickerOkay",onClick:this.handleOnSaveButtonClicked,disabled:this.getIsPrimaryButtonDisabled(),buttonRef:this.getButtonRef()}),cancelButton:this.props.progress>0?null:o.createElement(eW,{buttonType:"Default",buttonLabel:this.props.strings.cancel,dataLogName:"PhotoPickerCancel",onClick:this.handleOnCancelButtonClicked}),removeButton:this.props.isImageRemovable?o.createElement(eW,{buttonType:"Action",buttonLabel:this.props.strings.remove,iconName:"Delete",dataLogName:"PhotoPickerDelete",disabled:this.getIsRemoveButtonDisabled(),onClick:this.handleOnRemoveButtonClicked}):null,customUploadButton:null==(t=(e=this.props).renderCustomUploadButton)?void 0:t.call(e,{onFileSelected:this.props.onFileSelected,onUploadNewPhoto:this.props.onUploadNewPhoto})})},t.prototype.componentDidMount=function(){var e=this;this.props.loadCurrentImage(),requestAnimationFrame(function(){return e.focusTrap&&e.focusTrap.focus()})},t.prototype.componentWillUnmount=function(){this.props.onImageEditPaneDismissed()},t.prototype.componentDidUpdate=function(e){"IN_PROGRESS"===this.props.status&&requestAnimationFrame(this.handleUploadAnimation),"IN_PROGRESS"===e.status&&"SUCCESS"===this.props.status&&this.primaryButton&&this.primaryButton.focus()},t.prototype.onFocusChange=function(){"SUCCESS"===this.props.status?this.primaryButton&&this.primaryButton.focus():this.focusTrap&&this.focusTrap.focus()},t.prototype.getSaveButtonText=function(e){switch(e){case"IN_PROGRESS":return this.props.strings.inProgress;case"SUCCESS":return this.props.strings.close;case"READY":case"SOMETHING_WENT_WRONG":return this.props.strings.apply;default:return(0,en.neverGuard)(e)}},t.prototype.getWarningText=function(e){switch(e){case"IMAGE_TOO_SMALL_WARNING":return this.props.strings.imageTooSmall;case"IMAGE_TOO_SMALL_ERROR":return this.props.strings.imageTooSmallError;case"NOT_AN_IMAGE":return this.props.strings.notAnImage;case"UNKNOWN":return this.props.strings.somethingWentWrong;case"UNSUPPORTED_BROWSER":return this.props.strings.unsupportedBrowser;default:return""}},t.prototype.getIsPrimaryButtonDisabled=function(){return!this.props.isCanvasDirty||"IN_PROGRESS"===this.props.status||this.props.isUploadedPhotoTooSmall},t.prototype.getIsRemoveButtonDisabled=function(){return!this.props.dataUrl||"IN_PROGRESS"===this.props.status},t}(o.Component);function no(e){var t=ec.getSelectors(e).getPhotoPickerState(),n=ec.getSelectors(e).getEditCanvasState(),r=n.originalCanvasState,o=na(nt(n,["originalCanvasState"])),a=na(r);return{dataUrl:t.dataUrl,initialImage:t.currentImageDataUrl,warning:t.warning,status:t.status,isCanvasDirty:t.isUpdated||nl(a,o),isUploadedPhotoTooSmall:t.isUploadedPhotoTooSmall,progress:nc(t.status,t.uploadDuration),latestImageStats:o,fileName:t.fileName}}var ni={absoluteScale:0,imageRotationAngle:0,xpos:0,ypos:0},na=function(e){return eM.reduce(function(t,n){var r;return ne(ne({},t),((r={})[n]=Number(e[n]),r))},ni)},ns=4,nl=function(e,t){return eM.some(function(n){return t[n].toFixed(ns)!==e[n].toFixed(ns)})},nc=function(e,t){switch(e){case"IN_PROGRESS":return .999999*nn(t/2e3);case"SUCCESS":return 1;case"READY":case"SOMETHING_WENT_WRONG":return 0;default:(0,en.neverGuard)(e)}};function nu(e){return{onUploadedPhotoTooSmall:function(t){return e(_({isUploadedPhotoTooSmall:t}))},onDismissInfoBar:function(){return e(H())},onError:function(t){return e(M({warning:t}))},onUploadNewPhoto:function(){return e(T())},onFileSelected:function(t,n){return Z(e,t,n)},onCancel:function(){return e(E())},onClose:function(){return e(P())},onDone:function(){return e(I())},onImageEditPaneDismissed:function(){return e(D())},onImageUpdated:function(){return e(A())},onUploadProgress:function(t){return e(O({now:t}))}}}var nd=(0,s.Ng)(no,nu)(nr),np=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nf=function(){return(nf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},nh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.loadCurrentImage=function(){var e=new Image;e.crossOrigin="Anonymous",e.onload=function(){return t.imageLoaded(e)},e.onerror=function(){return t.imageLoadFailed()},e.src=Array.isArray(t.props.personImageUrl)?t.props.personImageUrl[t.props.photoListSelectedIndex||0]||"":t.props.personImageUrl},t.imageLoaded=function(e){var n=document.createElement("canvas");n.width=e.naturalWidth,n.height=e.naturalHeight;var r=n.getContext("2d");r?(r.drawImage(e,0,0),t.props.onLoadedCurrentImage(u(n,t.props.isComponentInline),!!t.props.isSuggestedPhoto,Array.isArray(t.props.personImageUrl))):t.props.onError("UNSUPPORTED_BROWSER")},t.imageLoadFailed=function(){t.props.onLoadedEmptyImage(Array.isArray(t.props.personImageUrl))},t.startUpload=function(){var e=t.getImageDataUrlFromCanvas();t.props.onStartUpload(Date.now(),e,t.props.selectedIndex,t.props.imageUrls,t.props.onUpload,t.props.getPhotoListDataOnUpload)},t.getImageDataUrlFromCanvas=function(e){if(!t.props.image)return"";e||(e=h);var n=document.createElement("canvas"),r=t.props.naturalMin/t.props.absoluteScale;n.width=r,n.height=r;var o=n.getContext("2d");if(!o)return t.props.onError("UNSUPPORTED_BROWSER"),"";o.fillStyle=t.props.customBackgroundColor||f,o.fillRect(0,0,n.width,n.height),t.props.image&&b(o,n.width,t.props.imageRotationAngle,t.props.orientation,t.props.image,function(e,r){return o.drawImage(r,t.props.xpos*n.width/p,t.props.ypos*n.height/p,t.props.naturalWidth,t.props.naturalHeight)});for(var a=1;n.width*a/4>=e;)a/=2,o.drawImage(n,0,0,n.width*a,n.height*a);var s=document.createElement("canvas"),l=Math.min(t.props.naturalMin/t.props.absoluteScale,e);s.width=l,s.height=l;var c=s.getContext("2d");return c?(c.drawImage(n,0,0,n.width*a,n.width*a,0,0,l,l),u(s,t.props.isComponentInline)):(t.props.onError("UNSUPPORTED_BROWSER"),"")},t.stopEventDefaults=function(e){e.stopPropagation(),e.preventDefault()},t}return np(t,e),t.prototype.render=function(){return o.createElement(nd,nf({loadCurrentImage:this.loadCurrentImage,startUpload:this.startUpload,loadedEmptyImage:this.props.onLoadedEmptyImage,styles:this.props.styles||{}},this.props))},t}(o.Component);function nm(e){return nf(nf({},ec.getSelectors(e).getEditCanvasState()),ec.getSelectors(e).getPhotoListState())}function ng(e){return{onError:function(t){return e(M({warning:t}))},onLoadedCurrentImage:function(t,n,r){return e(R({dataUrl:t,isSuggestedPhoto:n,isPhotoListPresent:r}))},onLoadedEmptyImage:function(t){return e(N({isPhotoListPresent:t}))},onStartUpload:function(t,n,r,o,a,s){return ee(e,t,n,r,o,a,s)}}}var nv=(0,s.Ng)(nm,ng)(nh),ny=n(85067);function nb(){(0,ny.v)(void 0,{disableWarnings:!0})}var nx=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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nC=function(){return(nC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},nk=null,nw=!1,nS=0,n_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nx(t,e),t.prototype.UNSAFE_componentWillMount=function(){if(nS>=1)throw Error("Can only mount one StandalonePhotoPicker at a time.");if(nS+=1,nw||(nw=!0,nb()),null===nk){var e=(0,a.y$)((0,r.makeReducer)([ec]));nk=new r.AppContext({reduxStore:e})}},t.prototype.componentWillUnmount=function(){nS-=1},t.prototype.render=function(){return nk?o.createElement(r.App,{context:nk},o.createElement(nv,nC({},this.props))):null},t}(o.Component)},68900(e,t,n){"use strict";n.r(t),n.d(t,{mapMidgardLocaleToCLDRLocale:()=>u,getPluralStringUnsafe:()=>m,mapNumberToRangeForLocale:()=>p,parsePluralString:()=>h,getPluralString:()=>g,getStringForRange:()=>d,createICUString:()=>f});var r=n(55478),o=n(9513),a=n(85341),s=n.n(a),l=["zero","one","two","few","many","other"],c={zero:/zero\s*{([^}]+)}/,one:/one\s*{([^}]+)}/,two:/two\s*{([^}]+)}/,few:/few\s*{([^}]+)}/,many:/many\s*{([^}]+)}/,other:/other\s*{([^}]+)}/};function u(e){return e.split("-")[0]}function d(e,t){var n=(0,r.__read)(c[t].exec(e)||[],2)[1];return void 0===n?"":n}function p(e,t){return s()(t,e)}function f(e){var t="{count, plural,",n="}",r="";return l.forEach(function(t){e[t]&&(r+=" ".concat(t,"{").concat(e[t],"}"))}),"".concat(t).concat(r).concat(n)}function h(e,t,n){return d(e,p(t,n)||"other")}function m(e,t,n){if(t<0||t!==1/0&&!(0,o.isSafeInteger)(t))throw Error("count must be a positive integer or Infinity");return h(e,t,n)}function g(e,t,n){if(void 0===t)return e;try{return m(e,t,n||"en")}catch(t){return e}}},7354(e,t,n){"use strict";n.r(t),n.d(t,{ImmutableMap:()=>b,makeSafeExceptionHandler:()=>u,transition:()=>C,withLoadingStatusSelectors:()=>x,bindActionCreators:()=>iH,buildReducer:()=>ij,withProperties:()=>i6,App:()=>v,stateMachineReducer:()=>w,withCssExtraction:()=>i7,immutableMapReducer:()=>i$,makeSelectorFactory:()=>i5,selectorsKey:()=>rQ,withAppContext:()=>i8,withNewDisplayName:()=>ae,isEqual:()=>iJ,setLogPayloadPostProcessor:()=>rG,withSafeSetState:()=>at,createStoreAndSetDevToolsExtension:()=>iW,makeReducer:()=>r0,getAppContext:()=>iq,isShallowEqual:()=>i1,makeActionCreator:()=>rY,withSingletons:()=>an,AppContext:()=>m,asmTransition:()=>k,loadStoreStateAction:()=>rZ,getAppContextOrThrowError:()=>iG,getComponentName:()=>iK,appContextReactContextTypes:()=>g,makeActionLogger:()=>rX,storesKey:()=>rJ,getExceptionHandler:()=>iX,getLogPayloadPostProcessor:()=>rK,makeFunctionalStore:()=>i4,getSingleton:()=>iY,makeActionCreatorWithMeta:()=>r$,StoreCollection:()=>r1});var r=n(55478),o=n(40887),a=n(83857),s=n(39067),l={exportCss:function(){}};function c(e,t){console.error("Exception in ".concat(e)),console.error(t)}function u(e){if(!e||!e.handleException)return{handleException:c};var t=!1;return{handleException:function(n,r){if(t)c(n,r);else{t=!0;try{e.handleException(n,r)}finally{t=!1}}}}}var d=u(void 0),p=1;function f(e){return"number"!=typeof e._singleton_index&&(e._singleton_index=p,p+=1),e._singleton_index}function h(e){return e._Name||e.name||"Unknown"}var m=function(){function e(e){this.singletonsByIndex={},this._exceptionHandler=d,this._cssExtractor=l,this.reduxStore=e&&e.reduxStore}return Object.defineProperty(e.prototype,"exceptionHandler",{get:function(){return this._exceptionHandler},set:function(e){this._exceptionHandler=u(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cssExtractor",{get:function(){return this._cssExtractor},set:function(e){this._cssExtractor=e},enumerable:!1,configurable:!0}),e.prototype.addSingleton=function(e){if(this.findSingleton(e.constructor))throw Error("Singleton ".concat(h(e.constructor)," already exists."));var t=f(e.constructor);if(void 0!==this.singletonsByIndex[t])throw Error("Singleton with index ".concat(t," already exists."));this.singletonsByIndex[t]=e},e.prototype.getSingleton=function(e){var t=this.findSingleton(e);if(void 0===t)throw Error("Singleton ".concat(h(e)," not found."));return t},e.prototype.findSingleton=function(e){if("number"==typeof e._singleton_index){var t=this.singletonsByIndex[e._singleton_index];if(t&&t.constructor===e)return t}},e}(),g={appContext:s.instanceOf(m).isRequired},v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getChildContext=function(){return{appContext:this.props.context}},t.prototype.componentDidCatch=function(e,t){this.props.context.exceptionHandler.handleException("App.componentDidCatch:".concat(t.componentStack),e)},t.prototype.render=function(){return this.props.context.reduxStore?o.createElement(a.Kq,{store:this.props.context.reduxStore},this.props.children):o.createElement(o.Fragment,null,this.props.children)},t.childContextTypes=(0,r.__assign)({},g),t}(o.Component);function y(e,t,n,o){if(!t.length)return e;var a=(0,r.__assign)({},e),s=!1;return(t.forEach(function(e,t){var r=o(e,t),l=n(e,t,r);a[l]!==r&&(a[l]=r,s=!0)}),s)?a:e}var b={create:function(e){var t={};if(null==e)return t;if(e instanceof Array)for(var n=0;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}else Object.keys(e).forEach(function(n){t[n]=e[n]});return t},map:function(e,t){if(!e)return e;var n={},r=!1;return Object.keys(e).forEach(function(o){var a=e[o],s=t(o,a,e);n[o]=s,r=r||s!==a}),r?n:e},filter:function(e,t){if(!e)return e;var n={},r=!1;return Object.keys(e).forEach(function(o){var a=e[o];t(o,a,e)?n[o]=a:r=!0}),r?n:e},get:function(e,t){if(e)return e[t]},insert:function(e,t,n){if(e&&e[t]===n)return e;var o=(0,r.__assign)({},e);return o[t]=n,o},insertArray:function(e,t,n){return y(e,t,n,function(e){return e})},insertArrayWith:y,remove:function(e,t){if(!e||!(t in e))return e;var n=(0,r.__assign)({},e);return delete n[t],n},replace:function(e,t,n){var o=e?(0,r.__assign)({},e):{};return o[t]=n(o[t]),o},replaceMany:function(e,t,n){if(!t.length)return e;var o=(0,r.__assign)({},e);return t.forEach(function(e){o[e]=n(o[e],e)}),o},keys:function(e){return e?Object.keys(e):[]},values:function(e){var t=[];return e&&Object.keys(e).forEach(function(n){var r=e[n];t.push(r)}),t},entries:function(e){var t=[];return e&&Object.keys(e).forEach(function(n){var r=e[n];t.push([n,r])}),t}};function x(e,t){return(0,r.__assign)({isLoading:function(e){var n=t(e);return!!n&&n.isLoading&&(!n.hasLoadedPreviously||n.hasError)},isCallInProgress:function(e){var n=t(e);return!!n&&n.isLoading},hasError:function(e){var n=t(e);return!!n&&n.hasError},hasLoaded:function(e){var n=t(e);return!!n&&(n.hasLoadedPreviously||n.hasError)},hasLoadedPreviously:function(e){var n=t(e);return!!n&&n.hasLoadedPreviously},hasStartedPreviously:function(e){var n=t(e);return!!n&&(n.isLoading||n.hasLoadedPreviously||n.hasError)}},e)}function C(e,t,n){return e[t][n]||t}function k(e,t,n){return e[t].filter(function(e){return e.action.toString()===n.type}).reduce(function(e,t){return t.nextState||e},t)}function w(e,t){return function(n,r){return k(e,n||t,r)}}var S=n(9513);let _="object"==typeof global&&global&&global.Object===Object&&global;var E="object"==typeof self&&self&&self.Object===Object&&self;let P=_||E||Function("return this")(),I=P.Symbol;var T=Object.prototype,D=T.hasOwnProperty,A=T.toString,R=I?I.toStringTag:void 0;let N=function(e){var t=D.call(e,R),n=e[R];try{e[R]=void 0;var r=!0}catch(e){}var o=A.call(e);return r&&(t?e[R]=n:delete e[R]),o};var B=Object.prototype.toString;let M=function(e){return B.call(e)};var F="[object Null]",O="[object Undefined]",L=I?I.toStringTag:void 0;let H=function(e){return null==e?void 0===e?O:F:L&&L in Object(e)?N(e):M(e)},z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var V="[object AsyncFunction]",U="[object Function]",j="[object GeneratorFunction]",W="[object Proxy]";let q=function(e){if(!z(e))return!1;var t=H(e);return t==U||t==j||t==V||t==W},G=P["__core-js_shared__"];var K=function(){var e=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();let X=function(e){return!!K&&K in e};var Y=Function.prototype.toString;let Q=function(e){if(null!=e){try{return Y.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var J=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,ee=Object.prototype,et=Function.prototype.toString,en=ee.hasOwnProperty,er=RegExp("^"+et.call(en).replace(J,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let eo=function(e){return!(!z(e)||X(e))&&(q(e)?er:Z).test(Q(e))},ei=function(e,t){return null==e?void 0:e[t]},ea=function(e,t){var n=ei(e,t);return eo(n)?n:void 0},es=function(){try{var e=ea(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),el=function(e,t,n){"__proto__"==t&&es?es(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ec=function(e){return function(e,t,n){for(var r=-1,o=Object(e),a=n(e),s=a.length;s--;){var l=a[++r];if(!1===t(o[l],l,o))break}return e}}(),eu=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},ed=function(e){return null!=e&&"object"==typeof e};var ep="[object Arguments]";let ef=function(e){return ed(e)&&H(e)==ep};var eh=Object.prototype,em=eh.hasOwnProperty,eg=eh.propertyIsEnumerable;let ev=ef(function(){return arguments}())?ef:function(e){return ed(e)&&em.call(e,"callee")&&!eg.call(e,"callee")},ey=Array.isArray,eb=function(){return!1};var ex="object"==typeof exports&&exports&&!exports.nodeType&&exports,eC=ex&&"object"==typeof module&&module&&!module.nodeType&&module,ek=eC&&eC.exports===ex?P.Buffer:void 0;let ew=(ek?ek.isBuffer:void 0)||eb;var eS=0x1fffffffffffff,e_=/^(?:0|[1-9]\d*)$/;let eE=function(e,t){var n=typeof e;return!!(t=null==t?eS:t)&&("number"==n||"symbol"!=n&&e_.test(e))&&e>-1&&e%1==0&&e<t};var eP=0x1fffffffffffff;let eI=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=eP};var eT="[object Arguments]",eD="[object Array]",eA="[object Boolean]",eR="[object Date]",eN="[object Error]",eB="[object Function]",eM="[object Map]",eF="[object Number]",eO="[object Object]",eL="[object RegExp]",eH="[object Set]",ez="[object String]",eV="[object WeakMap]",eU="[object ArrayBuffer]",ej="[object DataView]",eW="[object Float64Array]",eq="[object Int8Array]",eG="[object Int16Array]",eK="[object Int32Array]",eX="[object Uint8Array]",eY="[object Uint8ClampedArray]",e$="[object Uint16Array]",eQ="[object Uint32Array]",eJ={};eJ["[object Float32Array]"]=eJ[eW]=eJ[eq]=eJ[eG]=eJ[eK]=eJ[eX]=eJ[eY]=eJ[e$]=eJ[eQ]=!0,eJ[eT]=eJ[eD]=eJ[eU]=eJ[eA]=eJ[ej]=eJ[eR]=eJ[eN]=eJ[eB]=eJ[eM]=eJ[eF]=eJ[eO]=eJ[eL]=eJ[eH]=eJ[ez]=eJ[eV]=!1;let eZ=function(e){return ed(e)&&eI(e.length)&&!!eJ[H(e)]},e0=function(e){return function(t){return e(t)}};var e1="object"==typeof exports&&exports&&!exports.nodeType&&exports,e2=e1&&"object"==typeof module&&module&&!module.nodeType&&module,e5=e2&&e2.exports===e1&&_.process;let e4=function(){try{var e=e2&&e2.require&&e2.require("util").types;if(e)return e;return e5&&e5.binding&&e5.binding("util")}catch(e){}}();var e3=e4&&e4.isTypedArray;let e6=e3?e0(e3):eZ;var e8=Object.prototype.hasOwnProperty;let e9=function(e,t){var n=ey(e),r=!n&&ev(e),o=!n&&!r&&ew(e),a=!n&&!r&&!o&&e6(e),s=n||r||o||a,l=s?eu(e.length,String):[],c=l.length;for(var u in e)(t||e8.call(e,u))&&!(s&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||eE(u,c)))&&l.push(u);return l};var e7=Object.prototype;let te=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||e7)},tt=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var tn=Object.prototype.hasOwnProperty;let tr=function(e){if(!te(e))return tt(e);var t=[];for(var n in Object(e))tn.call(e,n)&&"constructor"!=n&&t.push(n);return t},to=function(e){return null!=e&&eI(e.length)&&!q(e)},ti=function(e){return to(e)?e9(e):tr(e)},ta=function(e,t){return e&&ec(e,t,ti)},ts=function(){this.__data__=[],this.size=0},tl=function(e,t){return e===t||e!=e&&t!=t},tc=function(e,t){for(var n=e.length;n--;)if(tl(e[n][0],t))return n;return -1};var tu=Array.prototype.splice;let td=function(e){var t=this.__data__,n=tc(t,e);return!(n<0)&&(n==t.length-1?t.pop():tu.call(t,n,1),--this.size,!0)},tp=function(e){var t=this.__data__,n=tc(t,e);return n<0?void 0:t[n][1]},tf=function(e){return tc(this.__data__,e)>-1},th=function(e,t){var n=this.__data__,r=tc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function tm(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tm.prototype.clear=ts,tm.prototype.delete=td,tm.prototype.get=tp,tm.prototype.has=tf,tm.prototype.set=th;let tg=tm,tv=function(){this.__data__=new tg,this.size=0},ty=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},tb=function(e){return this.__data__.get(e)},tx=function(e){return this.__data__.has(e)},tC=ea(P,"Map"),tk=ea(Object,"create"),tw=function(){this.__data__=tk?tk(null):{},this.size=0},tS=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t};var t_="__lodash_hash_undefined__",tE=Object.prototype.hasOwnProperty;let tP=function(e){var t=this.__data__;if(tk){var n=t[e];return n===t_?void 0:n}return tE.call(t,e)?t[e]:void 0};var tI=Object.prototype.hasOwnProperty;let tT=function(e){var t=this.__data__;return tk?void 0!==t[e]:tI.call(t,e)};var tD="__lodash_hash_undefined__";let tA=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=tk&&void 0===t?tD:t,this};function tR(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tR.prototype.clear=tw,tR.prototype.delete=tS,tR.prototype.get=tP,tR.prototype.has=tT,tR.prototype.set=tA;let tN=tR,tB=function(){this.size=0,this.__data__={hash:new tN,map:new(tC||tg),string:new tN}},tM=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},tF=function(e,t){var n=e.__data__;return tM(t)?n["string"==typeof t?"string":"hash"]:n.map},tO=function(e){var t=tF(this,e).delete(e);return this.size-=!!t,t},tL=function(e){return tF(this,e).get(e)},tH=function(e){return tF(this,e).has(e)},tz=function(e,t){var n=tF(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this};function tV(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tV.prototype.clear=tB,tV.prototype.delete=tO,tV.prototype.get=tL,tV.prototype.has=tH,tV.prototype.set=tz;let tU=tV;var tj=200;let tW=function(e,t){var n=this.__data__;if(n instanceof tg){var r=n.__data__;if(!tC||r.length<tj-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new tU(r)}return n.set(e,t),this.size=n.size,this};function tq(e){var t=this.__data__=new tg(e);this.size=t.size}tq.prototype.clear=tv,tq.prototype.delete=ty,tq.prototype.get=tb,tq.prototype.has=tx,tq.prototype.set=tW;let tG=tq;var tK="__lodash_hash_undefined__";let tX=function(e){return this.__data__.set(e,tK),this},tY=function(e){return this.__data__.has(e)};function t$(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new tU;++t<n;)this.add(e[t])}t$.prototype.add=t$.prototype.push=tX,t$.prototype.has=tY;let tQ=t$,tJ=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},tZ=function(e,t){return e.has(t)};var t0=1,t1=2;let t2=function(e,t,n,r,o,a){var s=n&t0,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=n&t1?new tQ:void 0;for(a.set(e,t),a.set(t,e);++p<l;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,a):r(m,g,p,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!tJ(t,function(e,t){if(!tZ(h,t)&&(m===e||o(m,e,n,r,a)))return h.push(t)})){f=!1;break}}else if(!(m===g||o(m,g,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f},t5=P.Uint8Array,t4=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},t3=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var t6=1,t8=2,t9="[object Boolean]",t7="[object Date]",ne="[object Error]",nt="[object Map]",nn="[object Number]",nr="[object RegExp]",no="[object Set]",ni="[object String]",na="[object Symbol]",ns="[object ArrayBuffer]",nl="[object DataView]",nc=I?I.prototype:void 0,nu=nc?nc.valueOf:void 0;let nd=function(e,t,n,r,o,a,s){switch(n){case nl:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case ns:if(e.byteLength!=t.byteLength||!a(new t5(e),new t5(t)))break;return!0;case t9:case t7:case nn:return tl(+e,+t);case ne:return e.name==t.name&&e.message==t.message;case nr:case ni:return e==t+"";case nt:var l=t4;case no:var c=r&t6;if(l||(l=t3),e.size!=t.size&&!c)break;var u=s.get(e);if(u)return u==t;r|=t8,s.set(e,t);var d=t2(l(e),l(t),r,o,a,s);return s.delete(e),d;case na:if(nu)return nu.call(e)==nu.call(t)}return!1},np=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},nf=function(e,t,n){var r=t(e);return ey(e)?r:np(r,n(e))},nh=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[o++]=s)}return a},nm=function(){return[]};var ng=Object.prototype.propertyIsEnumerable,nv=Object.getOwnPropertySymbols;let ny=nv?function(e){return null==e?[]:nh(nv(e=Object(e)),function(t){return ng.call(e,t)})}:nm,nb=function(e){return nf(e,ti,ny)};var nx=1,nC=Object.prototype.hasOwnProperty;let nk=function(e,t,n,r,o,a){var s=n&nx,l=nb(e),c=l.length;if(c!=nb(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:nC.call(t,d)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<c;){var g=e[d=l[u]],v=t[d];if(r)var y=s?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(!(void 0===y?g===v||o(g,v,n,r,a):y)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(h=!1)}return a.delete(e),a.delete(t),h},nw=ea(P,"DataView"),nS=ea(P,"Promise"),n_=ea(P,"Set"),nE=ea(P,"WeakMap");var nP="[object Map]",nI="[object Object]",nT="[object Promise]",nD="[object Set]",nA="[object WeakMap]",nR="[object DataView]",nN=Q(nw),nB=Q(tC),nM=Q(nS),nF=Q(n_),nO=Q(nE),nL=H;(nw&&nL(new nw(new ArrayBuffer(1)))!=nR||tC&&nL(new tC)!=nP||nS&&nL(nS.resolve())!=nT||n_&&nL(new n_)!=nD||nE&&nL(new nE)!=nA)&&(nL=function(e){var t=H(e),n=t==nI?e.constructor:void 0,r=n?Q(n):"";if(r)switch(r){case nN:return nR;case nB:return nP;case nM:return nT;case nF:return nD;case nO:return nA}return t});let nH=nL;var nz=1,nV="[object Arguments]",nU="[object Array]",nj="[object Object]",nW=Object.prototype.hasOwnProperty;let nq=function(e,t,n,r,o,a){var s=ey(e),l=ey(t),c=s?nU:nH(e),u=l?nU:nH(t);c=c==nV?nj:c,u=u==nV?nj:u;var d=c==nj,p=u==nj,f=c==u;if(f&&ew(e)){if(!ew(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new tG),s||e6(e)?t2(e,t,n,r,o,a):nd(e,t,c,n,r,o,a);if(!(n&nz)){var h=d&&nW.call(e,"__wrapped__"),m=p&&nW.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,v=m?t.value():t;return a||(a=new tG),o(g,v,n,r,a)}}return!!f&&(a||(a=new tG),nk(e,t,n,r,o,a))};function nG(e,t,n,r,o){return e===t||(null!=e&&null!=t&&(ed(e)||ed(t))?nq(e,t,n,r,nG,o):e!=e&&t!=t)}let nK=nG;var nX=1,nY=2;let n$=function(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Object(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(void 0===u&&!(c in e))return!1}else{var p=new tG;if(r)var f=r(u,d,c,e,t,p);if(!(void 0===f?nK(d,u,nX|nY,r,p):f))return!1}}return!0},nQ=function(e){return e==e&&!z(e)},nJ=function(e){for(var t=ti(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,nQ(o)]}return t},nZ=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},n0=function(e){var t=nJ(e);return 1==t.length&&t[0][2]?nZ(t[0][0],t[0][1]):function(n){return n===e||n$(n,e,t)}};var n1="[object Symbol]";let n2=function(e){return"symbol"==typeof e||ed(e)&&H(e)==n1};var n5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n4=/^\w*$/;let n3=function(e,t){if(ey(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||n2(e))||n4.test(e)||!n5.test(e)||null!=t&&e in Object(t)};var n6="Expected a function";function n8(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError(n6);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=e.apply(this,r);return n.cache=a.set(o,s)||a,s};return n.cache=new(n8.Cache||tU),n}n8.Cache=tU;let n9=n8;var n7=500,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rt=/\\(\\)?/g;let rn=function(e){var t=n9(e,function(e){return n.size===n7&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,function(e,n,r,o){t.push(r?o.replace(rt,"$1"):n||e)}),t}),rr=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};var ro=1/0,ri=I?I.prototype:void 0,ra=ri?ri.toString:void 0;function rs(e){if("string"==typeof e)return e;if(ey(e))return rr(e,rs)+"";if(n2(e))return ra?ra.call(e):"";var t=e+"";return"0"==t&&1/e==-ro?"-0":t}let rl=rs,rc=function(e){return null==e?"":rl(e)},ru=function(e,t){return ey(e)?e:n3(e,t)?[e]:rn(rc(e))};var rd=1/0;let rp=function(e){if("string"==typeof e||n2(e))return e;var t=e+"";return"0"==t&&1/e==-rd?"-0":t},rf=function(e,t){t=ru(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[rp(t[n++])];return n&&n==r?e:void 0},rh=function(e,t,n){var r=null==e?void 0:rf(e,t);return void 0===r?n:r},rm=function(e,t){return null!=e&&t in Object(e)},rg=function(e,t,n){t=ru(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var s=rp(t[r]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&eI(o)&&eE(s,o)&&(ey(e)||ev(e))},rv=function(e,t){return null!=e&&rg(e,t,rm)};var ry=1,rb=2;let rx=function(e,t){return n3(e)&&nQ(t)?nZ(rp(e),t):function(n){var r=rh(n,e);return void 0===r&&r===t?rv(n,e):nK(t,r,ry|rb)}},rC=function(e){return e},rk=function(e){return function(t){return null==t?void 0:t[e]}},rw=function(e){return function(t){return rf(t,e)}},rS=function(e){return n3(e)?rk(rp(e)):rw(e)},r_=function(e){return"function"==typeof e?e:null==e?rC:"object"==typeof e?ey(e)?rx(e[0],e[1]):n0(e):rS(e)},rE=function(e,t){var n={};return t=r_(t,3),ta(e,function(e,r,o){el(n,r,t(e,r,o))}),n},rP=function(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var s=e[o];t(r,s,n(s),e)}return r},rI=function(e,t){return function(t,n){if(null==t)return t;if(!to(t))return e(t,n);for(var r=t.length,o=-1,a=Object(t);++o<r&&!1!==n(a[o],o,a););return t}}(ta),rT=function(e,t,n,r){return rI(e,function(e,o,a){t(r,e,n(e),a)}),r},rD=function(e,t){return function(n,r){var o=ey(n)?rP:rT,a=t?t():{};return o(n,e,r_(r,2),a)}};var rA=Object.prototype.hasOwnProperty;let rR=rD(function(e,t,n){rA.call(e,n)?e[n].push(t):el(e,n,[t])});var rN=n(82419),rB=n(78958),rM=n.n(rB);let rF=function(e){return"function"==typeof e},rO=function(e){return e},rL=function(e){return null===e};function rH(e,t,n){void 0===t&&(t=rO),rM()(rF(t)||rL(t),"Expected payloadCreator to be a function, undefined or null");var r=rL(t)||t===rO?rO:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e instanceof Error?e:t.apply(void 0,[e].concat(r))},o=rF(n),a=e.toString(),s=function(){var t=r.apply(void 0,arguments),a={type:e};return t instanceof Error&&(a.error=!0),void 0!==t&&(a.payload=t),o&&(a.meta=n.apply(void 0,arguments)),a};return s.toString=function(){return a},s}var rz={},rV={};function rU(e){if(!e)return[void 0,void 0];var t=e.logger;return[(0,r.__rest)(e,["logger"]),t]}function rj(e,t){rz[e]=t}function rW(e,t){rV[e]=t}var rq=void 0;function rG(e){rq=e}function rK(){return rq}function rX(e,t){return function(n){return function(n){return function(o){var a=o,s=rz[a.type],l=rV[a.type],c=t.eventNames&&t.eventNames[a.type];if(void 0!==s||c){var u=s&&void 0!==a.payload?s(a.payload,t):void 0;if(null!==u){var d=rU(u),p=d[0],f=d[1],h=l&&a.meta&&a.meta.metaPayload?l(a.meta.metaPayload,t):{},m=(0,r.__assign)((0,r.__assign)({},p),h);rq&&rq(m);var g=a.meta&&a.meta.featureName||"None",v=a.meta&&a.meta.exportOptions||void 0;(f||e).logTrace({eventId:c||a.type,featureName:g,exportOptions:v,properties:m})}}return n(o)}}}}function rY(e,t){return rj(e,t.getLogProperties||null),rH(e,function(e){return e},function(){return{featureName:t.featureName,exportOptions:t.exportOptions||null}})}function r$(e,t){return rj(e,t.getLogProperties||null),rW(e,t.getLogPropertiesFromMeta||null),rH(e,function(e){return e},function(e,n){return{featureName:t.featureName,exportOptions:t.exportOptions||null,metaPayload:n}})}var rQ="selectors",rJ="stores",rZ=rY("LOAD_STATE",{featureName:"NoLogging"});function r0(e,t){if(t&&t[rJ])throw Error("The '".concat(rJ,"' key of the state tree is reserved for functional stores."));if(t&&t[rQ])throw Error("The '".concat(rQ,"' key of the state tree is reserved for debug output from selectors."));var n,o,a=rE(rR(e,function(e){return e.name}),function(e){return e[0].reducer}),s=(0,rN.HY)((0,S.sortObjectBy)(a,function(e){return e})),l=(0,rN.HY)((0,r.__assign)(((n={})[rJ]=s,n),t||{})),c=((o={})[rJ]={},o);return function(e,t){return t.type===rZ.toString()?t.payload:l(e||c,t)}}var r1=function(){function e(e){this.stores=[],e&&this.addStores(e)}return e.prototype.addStores=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.addStore(r)}},e.prototype.addStore=function(e){this.stores.some(function(t){return t.name===e.name})&&(0,S.throwError)("StoreCollection: Store ".concat(e.name," is already registered.")),this.stores.push(e)},e.prototype.makeReducer=function(e){return r0(this.stores,e)},e}();let r2=nE&&new nE,r5=r2?function(e,t){return r2.set(e,t),e}:rC;var r4=Object.create;let r3=function(){function e(){}return function(t){if(!z(t))return{};if(r4)return r4(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),r6=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r3(e.prototype),r=e.apply(n,t);return z(r)?r:n}};var r8=1;let r9=function(e,t,n){var r=t&r8,o=r6(e);function a(){return(this&&this!==P&&this instanceof a?o:e).apply(r?n:this,arguments)}return a},r7=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var oe=Math.max;let ot=function(e,t,n,r){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,u=oe(a-s,0),d=Array(c+u),p=!r;++l<c;)d[l]=t[l];for(;++o<s;)(p||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d};var on=Math.max;let or=function(e,t,n,r){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=on(a-l,0),p=Array(d+u),f=!r;++o<d;)p[o]=e[o];for(var h=o;++c<u;)p[h+c]=t[c];for(;++s<l;)(f||o<a)&&(p[h+n[s]]=e[o++]);return p},oo=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r},oi=function(){};var oa=0xffffffff;function os(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oa,this.__views__=[]}os.prototype=r3(oi.prototype),os.prototype.constructor=os;let ol=os,oc=function(){},ou=r2?function(e){return r2.get(e)}:oc,od={};var op=Object.prototype.hasOwnProperty;let of=function(e){for(var t=e.name+"",n=od[t],r=op.call(od,t)?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t};function oh(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}oh.prototype=r3(oi.prototype),oh.prototype.constructor=oh;let om=oh,og=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},ov=function(e){if(e instanceof ol)return e.clone();var t=new om(e.__wrapped__,e.__chain__);return t.__actions__=og(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t};var oy=Object.prototype.hasOwnProperty;function ob(e){if(ed(e)&&!ey(e)&&!(e instanceof ol)){if(e instanceof om)return e;if(oy.call(e,"__wrapped__"))return ov(e)}return new om(e)}ob.prototype=oi.prototype,ob.prototype.constructor=ob;let ox=ob,oC=function(e){var t=of(e),n=ox[t];if("function"!=typeof n||!(t in ol.prototype))return!1;if(e===n)return!0;var r=ou(n);return!!r&&e===r[0]};var ok=800,ow=16,oS=Date.now;let o_=function(e){var t=0,n=0;return function(){var r=oS(),o=ow-(r-n);if(n=r,o>0){if(++t>=ok)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},oE=o_(r5);var oP=/\{\n\/\* \[wrapped with (.+)\] \*/,oI=/,? & /;let oT=function(e){var t=e.match(oP);return t?t[1].split(oI):[]};var oD=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;let oA=function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oD,"{\n/* [wrapped with "+t+"] */\n")},oR=function(e){return function(){return e}},oN=o_(es?function(e,t){return es(e,"toString",{configurable:!0,enumerable:!1,value:oR(t),writable:!0})}:rC),oB=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},oM=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return -1},oF=function(e){return e!=e},oO=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1},oL=function(e,t,n){return t==t?oO(e,t,n):oM(e,oF,n)},oH=function(e,t){return!!(null==e?0:e.length)&&oL(e,t,0)>-1};var oz=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];let oV=function(e,t){return oB(oz,function(n){var r="_."+n[0];t&n[1]&&!oH(e,r)&&e.push(r)}),e.sort()},oU=function(e,t,n){var r=t+"";return oN(e,oA(r,oV(oT(r),n)))};var oj=1,oW=2,oq=4,oG=8,oK=32,oX=64;let oY=function(e,t,n,r,o,a,s,l,c,u){var d=t&oG,p=d?s:void 0,f=d?void 0:s,h=d?a:void 0,m=d?void 0:a;t|=d?oK:oX,(t&=~(d?oX:oK))&oq||(t&=~(oj|oW));var g=[e,t,o,h,p,m,f,l,c,u],v=n.apply(void 0,g);return oC(e)&&oE(v,g),v.placeholder=r,oU(v,e,t)},o$=function(e){return e.placeholder};var oQ=Math.min;let oJ=function(e,t){for(var n=e.length,r=oQ(t.length,n),o=og(e);r--;){var a=t[r];e[r]=eE(a,n)?o[a]:void 0}return e};var oZ="__lodash_placeholder__";let o0=function(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var s=e[n];(s===t||s===oZ)&&(e[n]=oZ,a[o++]=n)}return a};var o1=1,o2=2,o5=8,o4=16,o3=128,o6=512;function o8(e,t,n,r,o,a,s,l,c,u){var d=t&o3,p=t&o1,f=t&o2,h=t&(o5|o4),m=t&o6,g=f?void 0:r6(e);function v(){for(var y=arguments.length,b=Array(y),x=y;x--;)b[x]=arguments[x];if(h)var C=o$(v),k=oo(b,C);if(r&&(b=ot(b,r,o,h)),a&&(b=or(b,a,s,h)),y-=k,h&&y<u){var w=o0(b,C);return oY(e,t,o8,v.placeholder,n,b,w,l,c,u-y)}var S=p?n:this,_=f?S[e]:e;return y=b.length,l?b=oJ(b,l):m&&y>1&&b.reverse(),d&&c<y&&(b.length=c),this&&this!==P&&this instanceof v&&(_=g||r6(_)),_.apply(S,b)}return v}let o9=o8,o7=function(e,t,n){var r=r6(e);function o(){for(var a=arguments.length,s=Array(a),l=a,c=o$(o);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:o0(s,c);return(a-=u.length)<n?oY(e,t,o9,o.placeholder,void 0,s,u,void 0,void 0,n-a):r7(this&&this!==P&&this instanceof o?r:e,this,s)}return o};var ie=1;let it=function(e,t,n,r){var o=t&ie,a=r6(e);function s(){for(var t=-1,l=arguments.length,c=-1,u=r.length,d=Array(u+l),p=this&&this!==P&&this instanceof s?a:e;++c<u;)d[c]=r[c];for(;l--;)d[c++]=arguments[++t];return r7(p,o?n:this,d)}return s};var ir="__lodash_placeholder__",io=1,ii=2,ia=4,is=8,il=128,ic=256,iu=Math.min;let id=function(e,t){var n=e[1],r=t[1],o=n|r,a=o<(io|ii|il),s=r==il&&n==is||r==il&&n==ic&&e[7].length<=t[8]||r==(il|ic)&&t[7].length<=t[8]&&n==is;if(!(a||s))return e;r&io&&(e[2]=t[2],o|=n&io?0:ia);var l=t[3];if(l){var c=e[3];e[3]=c?ot(c,l,t[4]):l,e[4]=c?o0(e[3],ir):t[4]}return(l=t[5])&&(c=e[5],e[5]=c?or(c,l,t[6]):l,e[6]=c?o0(e[5],ir):t[6]),(l=t[7])&&(e[7]=l),r&il&&(e[8]=null==e[8]?t[8]:iu(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e};var ip=/\s/;let ih=function(e){for(var t=e.length;t--&&ip.test(e.charAt(t)););return t};var im=/^\s+/;let ig=function(e){return e?e.slice(0,ih(e)+1).replace(im,""):e};var iv=0/0,iy=/^[-+]0x[0-9a-f]+$/i,ib=/^0b[01]+$/i,ix=/^0o[0-7]+$/i,iC=parseInt;let ik=function(e){if("number"==typeof e)return e;if(n2(e))return iv;if(z(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=z(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ig(e);var n=ib.test(e);return n||ix.test(e)?iC(e.slice(2),n?2:8):iy.test(e)?iv:+e};var iw=1/0,iS=17976931348623157e292;let i_=function(e){return e?(e=ik(e))===iw||e===-iw?(e<0?-1:1)*iS:e==e?e:0:0===e?e:0},iE=function(e){var t=i_(e),n=t%1;return t==t?n?t-n:t:0};var iP="Expected a function",iI=1,iT=2,iD=8,iA=16,iR=32,iN=64,iB=Math.max;let iM=function(e,t,n,r,o,a,s,l){var c=t&iT;if(!c&&"function"!=typeof e)throw TypeError(iP);var u=r?r.length:0;if(u||(t&=~(iR|iN),r=o=void 0),s=void 0===s?s:iB(iE(s),0),l=void 0===l?l:iE(l),u-=o?o.length:0,t&iN){var d=r,p=o;r=o=void 0}var f=c?void 0:ou(e),h=[e,t,n,r,o,d,p,a,s,l];if(f&&id(h,f),e=h[0],t=h[1],n=h[2],r=h[3],o=h[4],(l=h[9]=void 0===h[9]?c?0:e.length:iB(h[9]-u,0))||!(t&(iD|iA))||(t&=~(iD|iA)),t&&t!=iI)m=t==iD||t==iA?o7(e,t,l):t!=iR&&t!=(iI|iR)||o.length?o9.apply(void 0,h):it(e,t,n,r);else var m=r9(e,t,n);return oU((f?r5:oE)(m,h),e,t)};var iF=8;function iO(e,t,n){var r=iM(e,iF,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=iO.placeholder,r}iO.placeholder={};let iL=iO;var iH=function(e,t,n){var r={};return(0,S.keys)(n).forEach(function(o){var a=n[o],s=iV(n[o])?iL(a)(e):iz(a)?function(){return a(e)}:n[o];r[o]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t(s.apply(void 0,e))}}),r};function iz(e){return 1===e.length}function iV(e){return e.length>1}var iU="ReduxStateJanitorStartedAction";function ij(){var e={},t={};return{handlePayload:function(n,r){var o=n.toString();if(e[o]||t[o])throw Error("Already handling an action type named ".concat(o));return e[o]=r,this},handleAction:function(n,r){var o=n.toString();if(e[o]||t[o])throw Error("Already handling an action type named ".concat(o));return t[o]=r,this},done:function(n,o){var a=(0,r.__assign)({},e),s=(0,r.__assign)({},t);return function(e,t){if(void 0===e&&(e=n),t.type===iU)return o?o(e):n;var r=a[t.type];if(r)e=r(e,t.payload);else{var l=s[t.type];l&&(e=l(e,t))}return e}}}}function iW(e,t,n){var r=window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({name:t}):rN.Zz,o=n?r(n):r;return(0,rN.y$)(e.makeReducer(),o)}function iq(e){var t=e.context&&e.context.appContext;if(t&&t instanceof m)return t}function iG(e){return iq(e)||(0,S.throwError)("AppContext not found.")}function iK(e){var t=e,n=t&&t._reactInternalInstance&&t._reactInternalInstance._currentElement;return n&&n.type&&n.type.name||t.constructor.displayName||t.constructor.name}function iX(e){var t=iq(e);return t&&t.exceptionHandler||d}function iY(e,t){return(iq(e)||(0,S.throwError)("AppContext not found.")).getSingleton(t)}function i$(e,t,n){return function(r,o){if(o.type===iU)return b.create();var a=e(o);if(!a)return r||null;var s=n(b.get(r||null,a)||t,o);return b.insert(r||null,a,s)}}rY(iU,{featureName:"NoLogging"});var iQ=function(e){return e!=e};function iJ(e,t){if(e===t||iQ(e)&&iQ(t))return!0;if(!e||!t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!iJ(e[n],t[n]))return!1;return!0}if(Array.isArray(e)||Array.isArray(t))return!1;if("[object Date]"===Object.prototype.toString.call(e)&&"[object Date]"===Object.prototype.toString.call(t))return e.getTime()===t.getTime();if("object"==typeof e&&"object"==typeof t){for(var r=0,o=Object.keys(e);r<o.length;r++){var a=o[r];if(!iJ(e[a],t[a]))return!1}for(var s=0,l=Object.keys(t);s<l.length;s++){var a=l[s];if(!(a in e))return!1}return!0}return!1}var iZ=Object.prototype.hasOwnProperty;function i0(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function i1(e,t){if(i0(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!iZ.call(t,n[o])||!i0(e[n[o]],t[n[o]]))return!1;return!0}var i2=n(96991);function i5(e,t){var n=e.name;return(0,i2.createSelector)(function(t){return b.get(t.stores,n)||e.initialState},function(e){return(0,S.memoizeFunctionProperties)(t(e))})}function i4(e,t,n){var r=t(void 0,{type:void 0}),o=i5({name:e,initialState:r},n);return{name:e,initialState:r,reducer:t,getSelectors:o}}function i3(e,t){return t.contextTypes=(0,r.__assign)((0,r.__assign)({},e.contextTypes||{}),g),t.defaultProps=e.defaultProps,t.displayName=e.displayName,t}var i6=function(e){return function(t){var n=Object.keys(e),o=t,a=function(t){function o(r,o){var a=t.call(this,r,o)||this;return n.forEach(function(t){Object.defineProperty(a,t,{get:function(){return e[t](a)}})}),a}return(0,r.__extends)(o,t),o}(o);return i3(o,a)}},i8=i6({appContext:function(e){return iq(e)||(0,S.throwError)("AppContext not found.")}});function i9(e){var t=iq(e);return t&&t.cssExtractor||l}var i7=function(e){var t=e,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.exportStyles=[],t}return(0,r.__extends)(n,e),n.prototype.UNSAFE_componentWillMount=function(){var e=t.prototype.UNSAFE_componentWillMount;e&&e.call(this),this.exportCssStyles()},n.prototype.exportCssStyles=function(){if(this.exportStyles){var e=i9(this);this.exportStyles.forEach(function(t){var n=t&&t._getContent&&"function"==typeof t._getContent&&t._getContent();n&&n.length>0&&n.forEach(function(t){e.exportCss(t[1])})})}},n}(t);return i3(t,n)},ae=function(e){return function(t){var n=t,o=function(t){function n(n,r){var o=t.call(this,n,r)||this;return o.constructor.displayName=e(o.constructor.displayName),o}return(0,r.__extends)(n,t),n}(n);return i3(n,o)}},at=function(e){var t=e,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._maySetState=!1,t}return(0,r.__extends)(n,e),n.prototype.UNSAFE_componentWillMount=function(){var e=t.prototype.UNSAFE_componentWillMount;e&&e.call(this),this._maySetState=!0},n.prototype.componentWillUnmount=function(){var e=t.prototype.componentWillUnmount;e&&e.call(this),this._maySetState=!1},n.prototype.setStateWithCallback=function(e,t){var n=this;if(this._maySetState){var r=function(t,r){try{return e(t,r)}catch(e){return iX(n).handleException("".concat(iK(n),".setStateWithCallback"),e),t}};return this.setState(r)}},n.prototype.setStateIfMounted=function(e){this._maySetState&&this.setState(function(){return e})},n.prototype.updateStateIfMounted=function(e){this._maySetState&&this.setState(function(t){return(0,r.__assign)((0,r.__assign)({},t),e)})},n}(t);return i3(t,n)},an=function(e){return function(t){var n=Object.keys(e),o=t,a=function(t){function o(r,o){var a=t.call(this,r,o)||this;return n.forEach(function(t){Object.defineProperty(a,t,{get:function(){return iY(a,e[t])}})}),a}return(0,r.__extends)(o,t),o}(o);return i3(o,a)}}},373(e,t,n){"use strict";n.r(t),n.d(t,{safeConsole:()=>c});var r,o,a,s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},l="u">typeof console?console:void 0,c={trace:(null!=(r=null==l?void 0:l.trace)?r:s).bind(l),warn:(null!=(o=null==l?void 0:l.warn)?o:s).bind(l),table:(null!=(a=null==l?void 0:l.table)?a:s).bind(l)}},19197(e,t,n){"use strict";n.r(t),n.d(t,{makeGetStyles:()=>eE,useTheme:()=>eN,makeGetStylesFromStyleObject:()=>eT,changeTheme:()=>ek,withTheme:()=>eF});var r,o,a,s,l,c,u,d,p,f,h=n(82540),m={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(r||(r={}));var g={elevation4:r.depth4,elevation8:r.depth8,elevation16:r.depth16,elevation64:r.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};function v(){return void 0===o&&(o="u">typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),o}function y(){return{rtl:v()}}o=v();var b=n(55478),x=0,C=1,k=2,w="__stylesheet__",S="u">typeof navigator&&/rv:11.0/.test(navigator.userAgent),_={};try{_=window||{}}catch(e){}var E=function(){function e(e,t){var n,r,o,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,b.__assign)({injectionMode:"u"<typeof document?x:C,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!=(n=null==t?void 0:t.classNameToArgs)?n:this._classNameToArgs,this._counter=null!=(r=null==t?void 0:t.counter)?r:this._counter,this._keyToClassName=null!=(a=null!=(o=this._config.classNameCache)?o:null==t?void 0:t.keyToClassName)?a:this._keyToClassName,this._preservedRules=null!=(s=null==t?void 0:t.preservedRules)?s:this._preservedRules,this._rules=null!=(l=null==t?void 0:t.rules)?l:this._rules}return e.getInstance=function(){if(!(a=_[w])||a._lastStyleElement&&a._lastStyleElement.ownerDocument!==document){var t=(null==_?void 0:_.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);a=n,_[w]=n}return a},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=(0,b.__assign)((0,b.__assign)({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter(function(t){return t!==e})}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter(function(t){return t!==e})}},e.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=n!==x?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case C:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case k:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach(function(e){return e()})},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(e){return e()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return!this._styleElement&&"u">typeof document&&(this._styleElement=this._createStyleElement(),S||window.requestAnimationFrame(function(){e._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}(),P={};function I(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=P[n]=P[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}function T(){var e;if(!s){var t="u">typeof document?document:void 0,n="u">typeof navigator?navigator:void 0,r=null==(e=null==n?void 0:n.userAgent)?void 0:e.toLowerCase();s=t?{isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!!(n&&(/rv:11.0/i.test(n.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return s}var D={"user-select":1};function A(e,t){var n=T(),r=e[t];if(D[r]){var o=e[t+1];D[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var R=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function N(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=R.indexOf(n)>-1,a=n.indexOf("--")>-1,s=o||a?"":"px";e[t+1]="".concat(r).concat(s)}}var B="left",M="right",F="@noflip",O=((l={})[B]=M,l[M]=B,l),L={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function H(e,t,n){if(e.rtl){var r=t[n];if(r){var o=t[n+1];if("string"==typeof o&&o.indexOf(F)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(B)>=0)t[n]=r.replace(B,M);else if(r.indexOf(M)>=0)t[n]=r.replace(M,B);else if(String(o).indexOf(B)>=0)t[n+1]=o.replace(B,M);else if(String(o).indexOf(M)>=0)t[n+1]=o.replace(M,B);else if(O[r])t[n]=O[r];else if(L[o])t[n+1]=L[o];else switch(r){case"margin":case"padding":t[n+1]=V(o);break;case"box-shadow":t[n+1]=z(o,0)}}}}function z(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}function V(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}var U="displayName";function j(e){var t=e&&e["&"];return t?t.displayName:void 0}var W=/\:global\((.+?)\)/g;function q(e){if(!W.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map(function(e){return":global(".concat(e.trim(),")")}).join(", ")]);return t.reverse().reduce(function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)},e)}function G(e,t){return e.indexOf(":global(")>=0?e.replace(W,"$1"):0===e.indexOf(":")?t+e:0>e.indexOf("&")?t+" "+e:e}function K(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?X([r],t,n=n+"{"+e):n.indexOf(",")>-1?q(n).split(",").map(function(e){return e.trim()}).forEach(function(n){return X([r],t,G(n,e))}):X([r],t,G(n,e))}function X(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=Stylesheet.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,s=e;a<s.length;a++){var l=s[a];if("string"==typeof l){var c=r.argsFromClassName(l);c&&X(c,t,n)}else if(Array.isArray(l))X(l,t,n);else for(var u in l)if(l.hasOwnProperty(u)){var d=l[u];if("selectors"===u){var p=l.selectors;for(var f in p)p.hasOwnProperty(f)&&K(n,t,f,p[f])}else"object"==typeof d?null!==d&&K(n,t,u,d):void 0!==d&&("margin"===u||"padding"===u?Y(o,u,d):o[u]=d)}}return t}function Y(e,t,n){var r="string"==typeof n?tokenizeWithParentheses(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map(function(e){return e+" !important"})),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function Q(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,a=t.__order;o<a.length;o++){var s=a[o];n.push(s);var l=t[s];for(var c in l)l.hasOwnProperty(c)&&void 0!==l[c]&&(r=!0,n.push(c,l[c]))}return r?n.join(""):void 0}function J(e,t){return t<=0?"":1===t?e:e+J(e,t-1)}function Z(e,t){if(!t)return"";var n=[];for(var r in t)t.hasOwnProperty(r)&&r!==U&&void 0!==t[r]&&n.push(r,t[r]);for(var o=0;o<n.length;o+=2)I(n,o),N(n,o),H(e,n,o),A(n,o);for(var o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function ee(e){var t=E.getInstance(),n=Z(y(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(c||(c={})),function(e){e.Arabic="'".concat(c.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(c.Cyrillic,"'"),e.EastEuropean="'".concat(c.EastEuropean,"'"),e.Greek="'".concat(c.Greek,"'"),e.Hebrew="'".concat(c.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(c.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(c.Vietnamese,"'"),e.WestEuropean="'".concat(c.WestEuropean,"'"),e.Armenian="'".concat(c.Armenian,"'"),e.Georgian="'".concat(c.Georgian,"'")}(u||(u={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(d||(d={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(p||(p={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(f||(f={}));var et="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",en="'Segoe UI', '".concat(c.WestEuropean,"'"),er={ar:u.Arabic,bg:u.Cyrillic,cs:u.EastEuropean,el:u.Greek,et:u.EastEuropean,he:u.Hebrew,hi:u.Hindi,hr:u.EastEuropean,hu:u.EastEuropean,ja:u.Japanese,kk:u.EastEuropean,ko:u.Korean,lt:u.EastEuropean,lv:u.EastEuropean,pl:u.EastEuropean,ru:u.Cyrillic,sk:u.EastEuropean,"sr-latn":u.EastEuropean,th:u.Thai,tr:u.EastEuropean,uk:u.Cyrillic,vi:u.Vietnamese,"zh-hans":u.ChineseSimplified,"zh-hant":u.ChineseTraditional,hy:u.Armenian,ka:u.Georgian};function eo(e){return"".concat(e,", ").concat(et)}function ei(e){for(var t in er)if(er.hasOwnProperty(t)&&e&&0===t.indexOf(e))return er[t];return en}function ea(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function es(e){var t=eo(ei(e));return{tiny:ea(d.mini,p.regular,t),xSmall:ea(d.xSmall,p.regular,t),small:ea(d.small,p.regular,t),smallPlus:ea(d.smallPlus,p.regular,t),medium:ea(d.medium,p.regular,t),mediumPlus:ea(d.mediumPlus,p.regular,t),large:ea(d.large,p.regular,t),xLarge:ea(d.xLarge,p.semibold,t),xLargePlus:ea(d.xLargePlus,p.semibold,t),xxLarge:ea(d.xxLarge,p.semibold,t),xxLargePlus:ea(d.xxLargePlus,p.semibold,t),superLarge:ea(d.superLarge,p.semibold,t),mega:ea(d.mega,p.semibold,t)}}var el=n(74423),ec=n(46330),eu="https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets",ed=es((0,el.Z)());function ep(e,t,n,r){ee({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function ef(e,t,n,r,o){void 0===r&&(r="segoeui");var a="".concat(e,"/").concat(n,"/").concat(r);ep(t,a+"-light",p.light,o&&o+" Light"),ep(t,a+"-semilight",p.semilight,o&&o+" SemiLight"),ep(t,a+"-regular",p.regular,o),ep(t,a+"-semibold",p.semibold,o&&o+" SemiBold"),ep(t,a+"-bold",p.bold,o&&o+" Bold")}!function(e){if(e){var t="".concat(e,"/fonts");ef(t,c.Thai,"leelawadeeui-thai","leelawadeeui"),ef(t,c.Arabic,"segoeui-arabic"),ef(t,c.Cyrillic,"segoeui-cyrillic"),ef(t,c.EastEuropean,"segoeui-easteuropean"),ef(t,c.Greek,"segoeui-greek"),ef(t,c.Hebrew,"segoeui-hebrew"),ef(t,c.Vietnamese,"segoeui-vietnamese"),ef(t,c.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),ef(t,u.Selawik,"selawik","selawik"),ef(t,c.Armenian,"segoeui-armenian"),ef(t,c.Georgian,"segoeui-georgian"),ep("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),p.light),ep("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),p.semibold)}}(function(){var e,t,n=null==(e=(0,ec.z)())?void 0:e.FabricConfig;return null!=(t=null==n?void 0:n.fontBaseUrl)?t:eu}());var eh=n(40449);function em(e,t,n,r,o){return void 0===o&&(o=!1),ev(eg(e,t,(0,b.__assign)({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function eg(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,f=s.themeDarkAlt,h=s.themeLighter,m=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,x=s.neutralQuaternaryAlt,C=s.neutralPrimary,k=s.neutralSecondary,w=s.neutralSecondaryAlt,S=s.neutralTertiary,_=s.neutralTertiaryAlt,E=s.neutralLighterAlt,P=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),p&&(a.linkHovered=p),f&&(a.primaryButtonBackgroundHovered=f),h&&(a.inputPlaceholderBackgroundChecked=h),m&&(a.bodyBackgroundChecked=m,a.bodyFrameDivider=m,a.bodyDivider=m,a.variantBorder=m,a.buttonBackgroundCheckedHovered=m,a.buttonBackgroundPressed=m,a.listItemBackgroundChecked=m,a.listHeaderBackgroundPressed=m,a.menuItemBackgroundPressed=m,a.menuItemBackgroundChecked=m),g&&(a.bodyBackgroundHovered=g,a.buttonBackgroundHovered=g,a.buttonBackgroundDisabled=g,a.buttonBorderDisabled=g,a.primaryButtonBackgroundDisabled=g,a.disabledBackground=g,a.listItemBackgroundHovered=g,a.listHeaderBackgroundHovered=g,a.menuItemBackgroundHovered=g),y&&(a.primaryButtonTextDisabled=y,a.disabledSubtext=y),x&&(a.listItemBackgroundCheckedHovered=x),S&&(a.disabledBodyText=S,a.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||S,a.buttonTextDisabled=S,a.inputIconDisabled=S,a.disabledText=S),C&&(a.bodyText=C,a.actionLink=C,a.buttonText=C,a.inputBorderHovered=C,a.inputText=C,a.listText=C,a.menuItemText=C),E&&(a.bodyStandoutBackground=E,a.defaultStateBackground=E),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),k&&(a.bodySubtext=k,a.focusBorder=k,a.inputBorder=k,a.smallInputBorder=k,a.inputPlaceholderText=k),w&&(a.buttonBorder=w),_&&(a.disabledBodySubtext=_,a.disabledBorder=_,a.buttonBackgroundChecked=_,a.menuDivider=_),P&&(a.accentButtonBackground=P),(null==t?void 0:t.elevation4)&&(a.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?a.cardShadowHovered=t.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=(0,b.__assign)((0,b.__assign)({},a),n)}function ev(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}function ey(e,t){void 0===t&&(t={});var n,r,o,a=(0,eh.h)({},e,t,{semanticColors:eg(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null==(n=t.palette)?void 0:n.themePrimary)&&!(null==(r=t.palette)?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s<l.length;s++){var c=l[s];a.fonts[c]=(0,eh.h)(a.fonts[c],t.defaultFontStyle,null==(o=null==t?void 0:t.fonts)?void 0:o[c])}return a}var eb={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function ex(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return ey({palette:m,effects:g,fonts:ed,spacing:eb,isInverted:n,disableGlobalClassNames:!1,semanticColors:em(m,g,void 0,n,t),rtl:void 0},e)}var eC=n(59980);function ek(e,t){if(t)t(e);else{(0,h.EQ)(e);var n=ex(e);eC.X.applyScopedSettings("WithTheme",{theme:n})}}var ew=n(9513),eS=n(4825),e_=function(){return{}};function eE(e){return(0,eS.J9)(function(t,n){void 0===n&&(n=e_);var r=e(t),o=n(t);return(0,h.l8)(eP(r,o))})}function eP(e,t){return ew.makeObject.apply(void 0,(0,b.__spreadArray)([function(n){var r=e[n];return(Array.isArray(r)?r:[r]).concat(t[n])}],(0,ew.keys)(e),!1))}var eI={};function eT(e){return(0,eS.J9)(function(t){return void 0===t&&(t=eI),(0,h.l8)(eP(e,t))})}var eD=n(68578),eA=n(40887),eR=(0,ew.memoizeFunction)(function(e){var t=e,n=(0,b.__assign)({},t.palette);return n.neutralPrimarySurface||(n.neutralPrimarySurface=n.white),n.neutralSecondarySurface||(n.neutralSecondarySurface=n.white),n.neutralTertiarySurface||(n.neutralTertiarySurface=n.neutralLighter),n.neutralHover||(n.neutralHover=n.neutralLight),(0,b.__assign)((0,b.__assign)({},t),{palette:n})});function eN(){var e=eA.useContext(eD.z),t=eB(e.customizations),n=eA.useState(t),r=n[0],o=n[1];return eA.useEffect(function(){o(eB(e.customizations))},[e.customizations]),eA.useEffect(function(){var t=function(){o(eB(e.customizations))};return eC.X.observe(t),function(){return eC.X.unobserve(t)}},[e.customizations]),eR(r)}function eB(e){return eC.X.getSettings(["theme"],"WithTheme",e).theme}var eM=n(1965);function eF(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,b.__extends)(n,t),n.prototype.render=function(){var t=eR(this.props.theme);return eA.createElement(e,(0,b.__assign)({},this.props,{theme:t}))},n}(eA.Component);return(0,eM.T)("WithTheme",["theme"])(t)}},63395(e,t,n){"use strict";n.r(t),n.d(t,{Button:()=>ee,ButtonGroup:()=>et,Callout:()=>er,Captcha:()=>ek,Checkbox:()=>en,Dropdown:()=>ei,Error:()=>ea,FilePicker:()=>ew,FluentUIElementFactory:()=>uW,Group:()=>ec,Hyperlink:()=>eu,Image:()=>ex,Label:()=>ed,Modal:()=>ep,Overlay:()=>eh,Panel:()=>ef,Radio:()=>em,SecurePropertyLabel:()=>eS,Separator:()=>eC,Spinner:()=>eg,Text:()=>ey,TextBox:()=>eb,oneDSService:()=>uU});var r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b=n(40887),x=n.n(b),C=n(99050),k=n(78412),w=n(86643),S=n(82540),_=n(30207),E=n(5264),P=n(15146),I=n(8992),T=n(23755),D=n(80866),A=n(73671),R=n(96959),N=n(82602),B=n(22450),M=n(26831),F=n(79281),O=n(48563),L=n(42006),H=n(55577),z=n(16915),V=n(28387),U=n(30217),j=n(91595),W=n(46689),q=n(90787),G=n(57273),K=n(44478),X=n(85067),Y=function(e,t){return(Y=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])})(e,t)};function Q(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var J=function(){return(J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Z(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var ee=function(e){function t(t){var n=e.call(this,t)||this;return n.renderIcon=function(e){var t={iconName:""};return e&&(e.indexOf("add-icon")>=0?t.iconName="Add":e.indexOf("edit-icon")>=0?t.iconName="PageEdit":e.indexOf("close-icon")>=0&&(t.iconName="ChromeClose")),t},n}return Q(t,e),t.prototype.render=function(){if(null!=this.props.styleHints)return this.renderWithStyleHints();var e=this.props,t=e.id,n=e.displayContent,r=e.onClick,o=e.additionalClassName,a=e.disabled,s=e.ariaLabel,l=e.primary,c=e.tabIndex,u=e.propertyElementRef;e.styleHints;var d={};return o&&(d.root={},o.indexOf("margin-left")>=0&&(d.root.marginLeft="16px"),o.indexOf("button-blue")>=0&&(d.root.color="#006FC9"),o.indexOf("full-width")>=0&&(d.root.width="100%"),o.indexOf("negative-margin")>=0&&(d.root.margin="-4px"),o.indexOf("no-padding")>=0&&(d.root.padding="0px")),o&&o.indexOf("action-trigger")>=0?b.createElement(C.r,{id:t,onClick:r,className:o,disabled:a,ariaLabel:s,primary:l,iconProps:this.renderIcon(o),componentRef:u,styles:d},n):o&&o.indexOf("close-icon")>=0?b.createElement(k.K,{id:t,onClick:r,className:o,disabled:a,ariaLabel:"Close",primary:l,title:"Close",iconProps:this.renderIcon(o),componentRef:u}):l?b.createElement(w.j,{id:t,onClick:r,className:o,disabled:a,ariaLabel:s,primary:l,tabIndex:c?Number(c):void 0,componentRef:u,styles:(0,S.l8)(d,this.getPrimaryButtonStyles(this.props))},n):b.createElement(_.Y,{id:t,onClick:r,className:o,disabled:a,ariaLabel:s,primary:l,tabIndex:c?Number(c):void 0,componentRef:u,styles:(0,S.l8)(d,this.getButtonStyles(this.props))},n)},t.prototype.renderWithStyleHints=function(){var e=this.props,t=e.id,n=e.displayContent,r=e.onClick,o=e.additionalClassName,a=e.disabled,s=e.ariaLabel,l=e.primary,c=e.tabIndex,u=e.propertyElementRef,d=e.styleHints,p={id:t,onClick:r,className:o,disabled:a,ariaLabel:s,primary:l,tabIndex:c?Number(c):void 0,componentRef:u,styles:this.getStylesFromHints(d)},f=l?"primary":"default";switch(f=(null==o?void 0:o.includes("action-trigger"))?"action":f){case"primary":return p.styles=(0,S.l8)(p.styles,this.getPrimaryButtonStyles(this.props)),b.createElement(w.j,J({},p),n);case"action":return p.iconProps=this.getIconProps(d),b.createElement(C.r,J({},p),n);default:return p.styles=(0,S.l8)(p.styles,this.getButtonStyles(this.props)),b.createElement(_.Y,J({},p),n)}},t.prototype.getIconProps=function(e){if(e){var t=e.includes("icon-addTo")?"addTo":void 0;if(t){var n={iconName:t};return n}}},t.prototype.getPrimaryButtonStyles=function(e){if((null==(t=e.theme)?void 0:t.button)||(null==(n=e.theme)?void 0:n.primaryButton)){var t,n,r=e.theme,o=r.button,a=r.primaryButton;return{root:a||o,rootHovered:(null==a?void 0:a.hover)||(null==o?void 0:o.hover),rootFocused:(null==a?void 0:a.focus)||(null==o?void 0:o.focus)}}},t.prototype.getButtonStyles=function(e){if(null==(t=e.theme)?void 0:t.button){var t,n=e.theme.button;return{root:n,rootHovered:n.hover,rootFocused:n.focus}}},t.prototype.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"text-accent":t=(0,S.l8)(t,{root:{color:"#0078D4"}});break;case"width-fill":t=(0,S.l8)(t,{root:{width:"100%"}});break;case"width-fill-large":t=(0,S.l8)(t,{root:{width:"100%",maxWidth:"200px"}});break;case"padding-none":t=(0,S.l8)(t,{root:{padding:0}});break;case"padding-small":t=(0,S.l8)(t,{root:{padding:"0.75rem",height:"unset"}});break;case"padding-medium":t=(0,S.l8)(t,{root:{padding:"1.2rem",height:"unset"}});break;case"margin-none":t=e.some(function(e){return e.startsWith("icon-")})?(0,S.l8)(t,{root:{margin:0},icon:{margin:0}}):(0,S.l8)(t,{root:{margin:0},label:{margin:0}});break;case"margin-top-small":t=(0,S.l8)(t,{root:{marginTop:"0.75rem"}});break;case"content-align-start":t=(0,S.l8)(t,{flexContainer:{justifyContent:"flex-start"}});break;case"display-hyperlink":t=(0,S.l8)(t,{root:{boxSizing:"unset",fontWeight:"inherit",fontSize:"inherit",border:"none",padding:"0px",borderRadius:"unset",minWidth:"unset",height:"unset",margin:"0px",background:"none",color:"rgb(0, 120, 212)",textDecoration:"underline"},rootHovered:{backgroundColor:"transparent",color:"rgb(0, 69, 120)"},label:{margin:0,fontWeight:"inherit"}})}return t}},t}(b.Component),et=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.render=function(){var e=this.props,t=(e.additionalClassName,e.id),n=(e.displayId,e.options),r=void 0===n?[]:n,o=(e.optionsDirection,e.styleHints),a={id:t,tokens:this.getTokensFromStyleHints(o)},s={grow:1};return b.createElement(E.B,J({},a),r&&r.map(function(e,t){return b.createElement(E.B.Item,J({},s,{key:t}),e&&b.cloneElement(e,{key:t}))}))},t.prototype.getTokensFromStyleHints=function(e){if(e){for(var t,n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"gap-none":t=J(J({},t),{childrenGap:0});break;case"gap-small":t=J(J({},t),{childrenGap:"0.5rem"});break;case"gap-medium":t=J(J({},t),{childrenGap:"1rem"})}return t}},t}(b.Component),en=function(e){var t=e.additionalClassName,n=e.ariaLabel,r=e.checked,o=e.disabled,a=e.displayContent,s=e.elementId,l=e.onChange,c=(e.tabIndex,e.propertyElementRef),u=function(e,t){l&&l(t||e&&e.currentTarget&&e.currentTarget.checked)};return b.createElement(P.S,{ariaLabel:n,className:t,defaultChecked:r,checked:r,disabled:o,id:s,label:a,onChange:u,componentRef:c,styles:d(e)});function d(e){if(null==(t=e.theme)?void 0:t.checkbox){var t,n=e.theme.checkbox;return{root:n,label:n.label}}}},er=function(e){function t(t){var n=e.call(this,t)||this;return n.toggle=function(){return n.setState({visible:!n.state.visible})},n.state={visible:!1},n.escapeHandler=n.escapeHandler.bind(n),n}return Q(t,e),t.prototype.escapeHandler=function(e){27===e.keyCode&&this.state.visible&&(this.setState({visible:!1}),e.stopPropagation())},t.prototype.componentDidMount=function(){document.addEventListener("keydown",this.escapeHandler,!1)},t.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.escapeHandler,!1)},t.prototype.render=function(){var e=this.props,t=e.id,n=e.children,r=e.linkAdditionalClassName,o=e.linkText,a=e.linkAriaLabel,s=e.tabIndex,l=this.state.visible;return b.createElement(b.Fragment,null,b.createElement(k.K,{key:"".concat(t,"-toggle"),id:t,className:r,iconProps:{iconName:"Info"},title:o,ariaLabel:a,onClick:this.toggle,styles:{root:{marginBottom:-3}},tabIndex:s?Number(s)+1:void 0,"aria-expanded":l}),l&&b.createElement(I.P,{key:"".concat(t,"-dialog"),target:"#".concat(t),setInitialFocus:!0,onDismiss:this.toggle,ariaDescribedBy:"".concat(t,"-container"),role:"alert",style:{padding:"20px"}},b.createElement("div",{id:"".concat(t,"-container"),style:{maxHeight:"75vh"}},n&&n.map(function(e,t){return e&&b.cloneElement(e,{key:t})}))))},t}(b.Component),eo="__placeholder__",ei=function(e){function t(t){var n=e.call(this,t)||this;return n.dropdownOption=function(e){return n.optionsElements&&n.optionsElements[e.key.toString()]?b.createElement(b.Fragment,null,n.optionsElements[e.key.toString()]):b.createElement("div",{style:{display:"flex"}},e.data&&e.data.imageUrl&&b.createElement(T._,{src:e.data.imageUrl,"aria-hidden":"true",height:"2em"}),b.createElement("span",null,e.text))},n.dropdownTitle=function(e){return n.dropdownOption(e[0])},n.downCaret=function(e){return b.createElement(D.I,{iconName:"ChevronDown"})},n}return Q(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.onChange,r=e.value,o=e.inlineError,a=e.isInValidationErrorGroup,s=e.additionalClassName,l=e.hidden,c=e.disabled,u=e.required,d=e.dropdownOptions,p=e.optionsElements,f=e.placeholder,h=e.ariaLabelId,m=e.onFocus,g=e.onBlur,v=e.showDisplayName,y=e.displayName,x=e.tabIndex,C=e.propertyElementRef,k=v?y:null,w=a&&!c;this.dropdownOptions=Z([],d,!0),this.optionsElements=J({},p),f&&(this.dropdownOptions.unshift({key:eo,text:f}),this.optionsElements&&(this.optionsElements[eo]=b.createElement("span",null,f)));var _=null;c&&(_={label:{color:"rgb(118,118,118)"}});var E=(0,S.l8)(_,this.getStylesFromHints(this.props.styleHints),this.getStyles(this.props));return b.createElement(A.m,{id:t,options:this.dropdownOptions,onChange:function(e,t,r){var o=t&&t.key&&t.key.toString();n&&n(o===eo?"":o)},selectedKey:f&&(void 0===r||""===r)?eo:r,errorMessage:o||(w?" ":void 0),className:s,hidden:l,disabled:c,required:u,label:k,placeholder:f,"aria-labelledby":h,onFocus:function(e){var t=e&&e.currentTarget&&e.currentTarget.value;m&&m(t===eo?"":t)},onBlur:function(e){var t=e&&e.currentTarget&&e.currentTarget.value;g&&g(t===eo?"":t)},onRenderOption:this.dropdownOption,onRenderTitle:this.dropdownTitle,styles:E,tabIndex:c?-1:x?Number(x):0,componentRef:C})},t.prototype.getStyles=function(e){if(null==(t=e.theme)?void 0:t.dropdown){var t,n=e.theme.dropdown;return{title:n,dropdown:{":focus::after":n.focus},dropdownItems:n.options,dropdownItemSelected:n.optionSelected,subComponentStyles:{label:{root:n.label}}}}},t.prototype.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"padding-horizontal-medium":var o="1.2rem",a={paddingLeft:o,paddingRight:o};t=(0,S.l8)(t,{title:a,dropdownItem:a,dropdownItemSelected:a,caretDownWrapper:{padding:"0 "+o,right:0}});break;case"padding-vertical-small":var o="0.75rem",a={paddingTop:o,paddingBottom:o,lineHeight:"unset",height:"unset"};t=(0,S.l8)(t,{title:a,dropdownItem:a,dropdownItemSelected:a,caretDownWrapper:{display:"flex",alignItems:"center",height:"100%"}})}return t}},t}(b.Component),ea=function(e){var t=e.errorMessage;if(!t)return null;var n=(0,S.O4)(),r=n.semanticColors,o={errorMessage:["pidl-office-fabric-error-message",S.lw.slideDownIn20,n.fonts.small,{color:r.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}]},a=(0,G.Z)()(o,{hasErrorMessage:!0});return b.createElement("div",{role:"alert"},b.createElement("p",{className:a.errorMessage},b.createElement("span",null,t)))};"u">typeof globalThis||("u">typeof window?window:void 0!==n.g?n.g:"u">typeof self&&self);var es=function e(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var a in e)t.call(e,a)&&e[a]&&(r=o(r,a));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}),el=K.pidlReactClassPrefix+"fluent-ui.",ec=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.render=function(){if(null!=this.props.styleHints)return this.renderWithStyleHints();var e,t=this.props,n=t.childNodes,r=void 0===n?[]:n,o=t.layoutOrientation,a=t.errorNode,s=t.labelNode,l=t.displaySettings,c=t.elementId;t.styleHints;var u=this.props.groupClassName,d=u.filter(function(e){return(0,K.startsWith)(e,el)}),p=(null==(e=null==l?void 0:l.submitButtonBlock)?void 0:e.id)&&c.endsWith(l.submitButtonBlock.id)&&!l.submitButtonBlock.show?{display:"none"}:void 0,f=(u=u.filter(function(e){return!(0,K.startsWith)(e,K.pidlReactClassPrefix)})).includes("pidlddc-full-width"),h=f?{grow:1}:void 0;if(u.includes("pidlddc-absolute-bottom")){var m={position:"absolute",bottom:"10px"};p=J(J({},p),m),f&&(p.width="100%")}var g={id:c,className:es(u),horizontal:"inline"===o,style:p},v=[];return u.includes("pidlddc-space-between")&&(g.horizontalAlign="space-between"),d.forEach(function(e){var t=(e=e.substring(el.length)).split(".");if("columnGap"===t[0]&&(g=J(J({},g),{gap:"0 ".concat(t[1])})),"width"===t[0]){var n={width:"".concat(t[1])};p=J(J({},p),n),g.style=p}"innerStackFlex"===t[0]&&(v={root:{flex:t[1]}})}),b.createElement(E.B,J({},g),s,r&&r.map(function(e,t){return b.createElement(E.B.Item,J({},h,{align:"auto",key:t,styles:J({},v)}),e&&b.cloneElement(e,{key:t}))}),a)},t.prototype.renderWithStyleHints=function(){var e=this,t=this.props,n=t.childNodes,r=void 0===n?[]:n,o=t.errorNode,a=t.labelNode,s=this.getStackProps(this.props);return b.createElement(E.B,J({},s),a,r&&r.map(function(t,n){var r=e.getStackItemProps(t,s.horizontal);return b.createElement(E.B.Item,J({},r,{key:n}),t&&b.cloneElement(t,{key:n}))}),o)},t.prototype.getStackStyle=function(e,t){var n;return(null==(n=null==e?void 0:e.submitButtonBlock)?void 0:n.id)&&(null==t?void 0:t.endsWith(e.submitButtonBlock.id))&&!e.submitButtonBlock.show?{display:"none"}:void 0},t.prototype.getStackStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"align-vertical-center":t=(0,S.l8)(t,{root:{alignItems:"center"}});break;case"padding-top-small":t=(0,S.l8)(t,{root:{paddingTop:"0.5rem"}});break;case"padding-vertical-medium":t=(0,S.l8)(t,{root:{paddingTop:"1.2rem",paddingBottom:"1.2rem"}});break;case"padding-medium":t=(0,S.l8)(t,{root:{padding:"1.5rem"}});break;case"anchor-bottom":case"dock-bottom":t=(0,S.l8)(t,{root:{position:"absolute",bottom:0,width:"100%"}});break;case"dock-horizontal":t=(0,S.l8)(t,{root:{position:"absolute",left:0,right:0,width:"100%"}});break;case"width-fill":t=(0,S.l8)(t,{root:{width:"100%"}});break;case"background-opaque":t=(0,S.l8)(t,{root:{backgroundColor:"white"}});break;case"margin-top-small":t=(0,S.l8)(t,{root:{"margin-top":"0.5rem"}})}return t}},t.prototype.getStackTokensFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"gap-none":t=J(J({},t),{childrenGap:0});break;case"gap-small":t=J(J({},t),{childrenGap:"0.5rem"});break;case"gap-medium":t=J(J({},t),{childrenGap:"1rem"})}return t}},t.prototype.getGrowPropFromStyleHints=function(e,t){return(void 0===t&&(t=!1),t)?e.includes("width-fill")?1:void 0:e.includes("height-fill")?1:void 0},t.prototype.getStackProps=function(e){var t=e.groupClassName,n=e.layoutOrientation,r=e.displaySettings,o=e.elementId,a=e.styleHints,s="inline"===n||a.includes("direction-horizontal");return{id:o,className:es(t),horizontal:s,styles:this.getStackStylesFromHints(a),style:this.getStackStyle(r,o),tokens:this.getStackTokensFromHints(a),grow:this.getGrowPropFromStyleHints(a)}},t.prototype.getStackItemProps=function(e,t){var n=this.getReactNodeStyleHints(e)||[];return{grow:this.getGrowPropFromStyleHints(n,t),align:"auto"}},t.prototype.getReactNodeStyleHints=function(e){var t,n,r,o,a=null==e?void 0:e.props,s=null==(t=null==a?void 0:a.element)?void 0:t.styleHints;if(a&&!s){var l=a.children&&"function"==typeof a.children?a.children:void 0;s=null==(o=null==(r=null==(n=null==l?void 0:l(0))?void 0:n.props)?void 0:r.element)?void 0:o.styleHints}return s},t}(b.Component),eu=function(e){var t=e.id,n=e.displayContent,r=e.href,o=e.additionalClassName,a=e.ariaLabel,s=e.onClick,l=e.tabIndex,c=function(e){e&&e.preventDefault&&e.preventDefault(),s&&s(e)},u={root:{textDecoration:"underline"}};return b.createElement(R.N,{id:t,href:r,className:o,"aria-label":a,onClick:c,tabIndex:l?Number(l):void 0,styles:J(J({},d(e)),u)},n);function d(e){if(null==(t=e.theme)?void 0:t.link){var t,n=e.theme.link;return{root:n,selectors:{":hover":n.hover,":focus":n.focus,":visited:":n.visited}}}}},ed=function(e){var t=e.elementId,n=e.required,r=e.disabled,o=e.displayContent;return b.createElement(N.J,{id:t,disabled:r,required:n},o)},ep=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.render=function(){var e=this.props,t=e.childNodes,n=(e.layoutOrientation,e.elementId),r=e.groupClassName,o=(e.displayId,e.type,e.displaySettings,e.open);return b.createElement(B.a,{key:n,containerClassName:es(r),isOpen:o},t)},t}(b.Component),ef=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.render=function(){var e=this.props,t=e.elementId,n=e.children,r=e.additionalClassName,o=e.size,a=e.customWidth,s=e.hasCloseButton,l=e.isLightDismiss,c=e.closeButtonAriaLabel,u=e.onDismissed,d=void 0;switch(o){case"small":case"smallFixedFar":d=M.H.smallFixedFar;break;case"smallFixedNear":d=M.H.smallFixedNear;break;case"smallFluid":d=M.H.smallFluid;break;case"medium":d=M.H.medium;break;case"large":d=M.H.large;break;case"largeFixed":d=M.H.largeFixed;break;case"extraLarge":d=M.H.extraLarge;break;case"custom":d=M.H.custom;break;case"customNear":d=M.H.customNear}return b.createElement(F.Z,{key:"".concat(t,"-Panel"),className:r,onDismissed:u,type:d,customWidth:a,hasCloseButton:s,isLightDismiss:l,closeButtonAriaLabel:c,isOpen:!0},n)},t}(b.Component),eh=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.render=function(){var e=this.props,t=e.elementId,n=e.children,r=e.additionalClassName,o=e.isDarkThemed,a=e.onClick;return b.createElement(O.h,{key:"".concat(t,"-modal"),className:r,isDarkThemed:o,onClick:a},n)},t}(b.Component),em=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e,t){n.props.onSelect&&n.props.onSelect(t.key)},n}return Q(t,e),t.prototype.getAriaLabel=function(e,t){var n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y=null==e?void 0:e.displayText;if(y)return y;if(t){var b=t.props,x=null==(n=null==b?void 0:b.element)?void 0:n.tags;if(null==x?void 0:x["pi-container"]){var C=null==(o=null==(r=null==b?void 0:b.childNodes)?void 0:r.find)?void 0:o.call(r,function(t){var n,r;return(null==(r=null==(n=t.props)?void 0:n.element)?void 0:r.id)==="optionDisplayGroup_".concat(e.value)}),k=null==(l=null==(s=null==(a=null==C?void 0:C.props)?void 0:a.childNodes)?void 0:s.find)?void 0:l.call(s,function(t){var n,r;return(null==(r=null==(n=t.props)?void 0:n.element)?void 0:r.id)==="optionTextGroup_".concat(e.value)}),w=null==(f=null==(p=null==(d=null==(u=null==(c=null==k?void 0:k.props)?void 0:c.childNodes)?void 0:u.map)?void 0:d.call(u,function(e){var t,n;return null==(n=null==(t=e.props)?void 0:t.element)?void 0:n.displayContent}))?void 0:p.join)?void 0:f.call(p," ");return w}if(null==x?void 0:x["address-container"]){var w=null==(v=null==(g=null==(m=null==(h=null==b?void 0:b.childNodes)?void 0:h.map)?void 0:m.call(h,function(e){var t,n;return null==(n=null==(t=e.props)?void 0:t.element)?void 0:n.displayContent}))?void 0:g.join)?void 0:v.call(g," ");return w}}return null},t.prototype.fixLogoAlt=function(e,t){var n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y;if(t){var b=t.props,x=null==(n=null==b?void 0:b.element)?void 0:n.tags;if(null==x?void 0:x["pi-container"]){var C=null==(o=null==(r=b.childNodes)?void 0:r.find)?void 0:o.call(r,function(t){return t.key==="optionLogo_".concat(e)});if((null==(a=null==C?void 0:C.props)?void 0:a.element)&&!C.props.element.accessibilityName){var k=null==(y=null==(v=null==(g=null==(m=null==(h=null==(f=null==(p=null==(d=null==(u=null==(c=null==(l=null==(s=t._owner)?void 0:s.stateNode)?void 0:l.state)?void 0:c.properties)?void 0:u.id)?void 0:d.possibleOptions)?void 0:p[e])?void 0:f.pidlAction)?void 0:h.context)?void 0:m.instance)?void 0:g.paymentMethod)?void 0:v.display)?void 0:y.name;C.props.element.accessibilityName=k}}}},t.prototype.isRadioRequired=function(e,t){var n;if(t){var r=t.props,o=null==(n=null==r?void 0:r.element)?void 0:n.tags;if(null==o?void 0:o["address-container"])return!1}return e},t.prototype.render=function(){var e=this,t=this.props,n=t.elementId,r=t.options,o=t.showDisplayName,a=t.displayName,s=t.additionalClassName,l=t.disabled,c=t.required,u=t.selectedValue,d=t.optionsElements,p=(t.propertyName,t.propertyElementRef),f=(0,S.Zq)({display:"flex",alignItems:"center"});this.optionsElements=d;var h=[],m=c;return r.forEach(function(t){var n,r={};s&&s.indexOf("gray-option")>=0&&(r.root={backgroundColor:"#e1dfdd"});var o={key:t.value,text:t.displayText,disabled:t.isDisabled,styles:J(J({},r),e.getStyles(e.props))},a=null==(n=e.optionsElements)?void 0:n[o.key];o.ariaLabel=e.getAriaLabel(t,a),m=e.isRadioRequired(c,a),e.fixLogoAlt(o.key,a),a&&(o.onRenderField=function(e,t){return b.createElement("div",{className:f},t(e),a)}),h.push(o)}),b.createElement(L.n,{id:n,className:es(s),defaultSelectedKey:u,options:h,onChange:this.onChange,label:o?a:"",required:m,disabled:l,componentRef:p})},t.prototype.getStyles=function(e){if(null==(t=e.theme)?void 0:t.radio){var t,n=e.theme.radio;return{root:n,subComponentStyles:{label:{root:n.label}}}}},t}(b.Component),eg=function(e){var t=e.elementId,n=e.additionalClassName,r=e.ariaLabel,o=e.ariaLive,a=e.label,s=e.labelPosition,l=e.size;return b.createElement(H.y,{id:t,className:n,ariaLabel:r,ariaLive:"assertive"===o?"assertive":"off"===o?"off":"polite",label:a,labelPosition:"left"===s?"left":"top"===s?"top":"right"===s?"right":"bottom",size:"xSmall"===l?0:"small"===l?1:"medium"===l?2:3})},ev=function(e){var t=(0,S.l8)(r(e.styleHints),n(e));if(e.hidden)return null;if(e.variant&&"xLarge"==e.variant)return b.createElement(z.E,{id:e.id,className:e.additionalClassName,block:!e.inline,variant:e.variant,style:e.style,styles:t,as:"h2"},e.displayContent);return b.createElement(z.E,{id:e.id,className:e.additionalClassName,block:!e.inline,variant:e.variant,style:e.style,styles:t},e.displayContent);function n(e){if(null==(t=e.theme)?void 0:t.text){var t,n=e.theme.text;return{root:n}}}function r(e){if(e){for(var t={},n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"text-alert":t=(0,S.l8)(t,{root:{color:"rgb(199, 33, 39)"}});break;case"content-align-start":t=(0,S.l8)(t,{root:{display:"block",textAlign:"start"}});break;case"text-bold":t=(0,S.l8)(t,{root:{fontWeight:600}});break;case"padding-top-medium":t=(0,S.l8)(t,{root:{paddingTop:"1.2rem"}});break;case"padding-bottom-small":t=(0,S.l8)(t,{root:{paddingBottom:"0.75rem"}});break;case"padding-end-x-small":t=(0,S.l8)(t,{root:{paddingRight:"0.5rem"}});break;case"alignment-horizontal-center":t=(0,S.l8)(t,{root:{display:"block",textAlign:"center"}});break;case"add-sign-style":t=(0,S.l8)(t,{root:{fontFamily:"Segoe MDL2 Assets"}});break;case"text-accent":t=(0,S.l8)(t,{root:{color:"#0078D4"}})}return t}}},ey=function(e){var t,n,r=(0,S.Zq)({"margin-top":"4px","padding-right":"5px",color:"#C72127"}),o=J({},e);return(null==(t=e.additionalClassName)?void 0:t.includes("pidlddc-single-pi-display-pidl-text"))&&(o.style=J({paddingLeft:"10px",paddingTop:"1.0em",fontWeight:"bold"},e.style),(null==(n=e.additionalClassName)?void 0:n.includes("pidlddc-single-pi-display-pidl-text-expired"))&&(o.style=J({color:"red"},o.style))),e.additionalClassName&&e.additionalClassName.indexOf("pidlddc-warning-icon")>=0?b.createElement(E.B,{horizontal:!0,horizontalAlign:"space-between"},b.createElement(V.a,null,b.createElement(U.l8,{iconName:"Error",className:r})),b.createElement(V.a,null,ev(o))):ev(o)},eb=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=n.props.onChange;t&&e.target&&t(e.target.value)},n.onGetErrorStyle=function(e){return n.props.inlineError?{fieldGroup:{borderColor:(0,S.O4)().semanticColors.errorText}}:{}},n.onRenderLabel=function(){var e=n.props,t=e.showDisplayName,r=e.id,o=e.displayName,a=e.inlineHelpLink,s=e.required,l=r+"_label",c=t?b.createElement(N.J,{required:s,htmlFor:r,id:l},o):null;return a?b.createElement(E.B,{horizontal:!0,verticalAlign:"center"},c,a):c},n}return Q(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.value,r=e.additionalClassName,o=e.inlineError,a=e.isInValidationErrorGroup,s=e.hidden,l=e.disabled,c=e.required,u=e.placeholder,d=(e.ariaLabelId,e.maskInput),p=e.maxLength,f=e.onFocus,h=e.onBlur,m=e.inlineLogo,g=e.displayName,v=e.showDisplayName,y=e.inlineHelpLink,x=e.tabIndex,C=e.propertyElementRef,k=e.styleHints,w={src:m,shouldFadeIn:!0,width:"1.5rem",height:"1.5rem"},_=m?{iconType:j.A.image,imageProps:w}:null,E=a&&!l,P=J({id:t,iconProps:_,value:n,onBlur:function(e){h&&e.currentTarget&&h(e.currentTarget.value)},onChange:this.onChange,onFocus:function(e){f&&e.currentTarget&&f(e.currentTarget.value)},errorMessage:o||(E?" ":void 0),className:r,hidden:s,disabled:l,label:g,required:c,placeholder:u,maxLength:p,styles:(0,S.l8)(this.onGetErrorStyle,this.getStylesFromHints(k),this.getStyles(this.props)),tabIndex:x?Number(x):void 0,componentRef:C},this.getPropsFromStyles(this.props.theme));return v||(P["aria-labelledby"]=null,P.label=null,P.ariaLabel=g),y&&(P["aria-labelledby"]=t,P.onRenderLabel=this.onRenderLabel),d&&(P.type="password"),b.createElement(W.A,J({},P))},t.prototype.getStyles=function(e){if(null==(t=e.theme)?void 0:t.textbox){var t,n=e.theme.textbox,r=J(J({},n),{":focus":n.focus}),o={border:n.border};return{field:r,fieldGroup:o,subComponentStyles:{label:{root:n.label}}}}},t.prototype.getPropsFromStyles=function(e){var t;return{borderless:(null==(t=null==e?void 0:e.textbox)?void 0:t.border)==="none"}},t.prototype.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"gap-bottom-small":t=(0,S.l8)(t,{root:{marginBottom:"0.5rem"}});break;case"width-small":t=(0,S.l8)(t,{fieldGroup:{width:"5.5rem"}});break;case"width-fill":t=(0,S.l8)(t,{root:{width:"100%"}});break;case"width-half":t=(0,S.l8)(t,{root:{width:"50%"}});break;case"width-quarter":t=(0,S.l8)(t,{root:{width:"25%"}});break;case"width-third":t=(0,S.l8)(t,{root:{width:"33%"}})}return t}},t}(b.Component),ex=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.render=function(){if(null!=this.props.styleHints)return this.renderWithStyleHints();var e=this.props,t=e.additionalClassName,n=e.ariaLabel,r=e.elementId,o=e.sourceUrl,a={src:o,width:48,height:48,alt:n||r};return t&&t.indexOf("image-icon")>=0?b.createElement(T._,J({},a)):b.createElement("img",{id:r,src:o,alt:n||r,"aria-label":n||r,className:t})},t.prototype.renderWithStyleHints=function(){var e=this.props,t=e.additionalClassName,n=e.ariaLabel,r=e.elementId,o=e.sourceUrl,a=e.styleHints;return b.createElement("img",{id:r,src:o,alt:n||r,"aria-label":n||r,className:t,style:this.getHtmlStyleFromStyleHints(a)})},t.prototype.getHtmlStyleFromStyleHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"image-extra-small":t=J(J({},t),{width:"24px"});break;case"image-small":t=J(J({},t),{width:"32px"});break;case"image-medium":t=J(J({},t),{width:"72px"});break;case"image-extra-medium":t=J(J({},t),{width:"120px"});break;case"image-large":t=J(J({},t),{width:"230px"});break;case"image-height-small":t=J(J({},t),{height:"18px"});break;case"alignment-horizontal-center":t=J(J({},t),{display:"block",marginInline:"auto"})}return t}},t}(b.Component),eC=function(e){var t=e.id,n=e.additionalClassName;return b.createElement(q.w,{id:t,className:n})},ek=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.render=function(){var e=this.props,t=e.audioChildNodes,n=void 0===t?[]:t,r=e.imageChildNodes,o=void 0===r?[]:r,a=e.elementId,s=(e.displayId,e.type,e.showImageCaptcha),l=e.displayName,c=e.showDisplayName,u=e.required,d=this.props.captchaClassName;d=d.filter(function(e){return!(0,K.startsWith)(e,K.pidlReactClassPrefix)});var p=c?b.createElement(N.J,{required:u,htmlFor:a,id:a+"_label"},l):null,f={id:a,className:es(d)};return b.createElement(E.B,J({},f),p,b.createElement(E.B,{style:{paddingBottom:"10px",gap:"5px"}},s&&o&&o.map(function(e,t){return e&&b.cloneElement(e,{key:t})}),!s&&n&&n.map(function(e,t){return e&&b.cloneElement(e,{key:t})})))},t}(b.Component),ew=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.additionalClassName,r=e.ariaLabel,o=e.displayName,a=e.displayContent,s=e.showDisplayName,l=e.disabled,c=e.inlineHelpLink,u=e.onChange,d=e.onButtonClick,p=e.required,f=e.errorNode,h=e.selectedFile,m=e.inputFileRef,g=s?b.createElement(N.J,{disabled:l,required:p,htmlFor:t,id:t+"_label"},o):null;return b.createElement("div",{id:t,className:es(n)},b.createElement(E.B,{horizontal:!0,verticalAlign:"center"},g,c),b.createElement("input",{type:"file",name:"file",ref:m,onChange:function(e){return u(e)},style:{display:"none"}}),b.createElement(w.j,{id:t+"_button","aria-label":r,disabled:l,onClick:d},a)," ",b.createElement(z.E,{id:t+"_label"}," ",h," "),f)},t}(b.Component),eS=function(e){var t=e.elementId,n=e.required,r=e.disabled,o=e.displayContent,a=e.inlineHelpLink;return b.createElement(E.B,{horizontal:!0,verticalAlign:"center"},b.createElement(N.J,{id:t,disabled:r,required:n},o),a)},e_="function",eE="object",eP="undefined",eI="prototype",eT="hasOwnProperty";function eD(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if(n!==eE&&n!==e_)throw TypeError("Object prototype may only be an Object:"+e);function r(){}return r[eI]=e,new r}function eA(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object[eI][eT].call(t,o)&&(e[o]=t[o]);return e}var eR=function(e,t){return(eR=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[eT](n)&&(e[n]=t[n])})(e,t)};function eN(e,t){function n(){this.constructor=e}eR(e,t),e[eI]=null===t?eD(t):(n[eI]=t[eI],new n)}var eB=function(){return typeof globalThis!==eP&&globalThis?globalThis:typeof self!==eP&&self?self:typeof window!==eP&&window?window:typeof n.g!==eP&&n.g?n.g:null}()||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(eB,eA,eN),__assign||(__assign=eB.__assign),__extends||(__extends=eB.__extends);var eM="function",eF="object",eO="undefined",eL="prototype",eH="hasOwnProperty";function ez(){return typeof globalThis!==eO&&globalThis?globalThis:typeof self!==eO&&self?self:typeof window!==eO&&window?window:typeof n.g!==eO&&n.g?n.g:null}function eV(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if(n!==eF&&n!==eM)throw TypeError("Object prototype may only be an Object:"+e);function r(){}return r[eL]=e,new r}function eU(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object[eL][eH].call(t,o)&&(e[o]=t[o]);return e}var ej=function(e,t){return(ej=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[eH](n)&&(e[n]=t[n])})(e,t)};function eW(e,t){function n(){this.constructor=e}ej(e,t),e[eL]=null===t?eV(t):(n[eL]=t[eL],new n)}var eq=ez()||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(eq,eU,eW),__assign||(__assign=eq.__assign),__extends||(__extends=eq.__extends);var eG=0,eK=1,eX=2,eY=4,e$=5,eQ=eO,eJ=eF,eZ=null,e0=null,e1="window",e2="document",e5="navigator",e4="location",e3="console",e6="performance",e8="JSON",e9="crypto",e7="msCrypto",te="ReactNative",tt=ez;function tn(e){var t=tt();return t&&t[e]?t[e]:e===e1&&tr()?window:null}function tr(){return!!(typeof window===eJ&&window)}function to(){return tr()?window:tn(e1)}function ti(){return!!(typeof document===eJ&&document)}function ta(){return ti()?document:tn(e2)}function ts(){return!!(typeof navigator===eJ&&navigator)}function tl(){return ts()?navigator:tn(e5)}function tc(){return typeof location===eJ&&location?location:tn(e4)}function tu(){return typeof console!==eQ?console:tn(e3)}function td(){return tn(e6)}function tp(){return!!(typeof JSON===eJ&&JSON||null!==tn(e8))}function tf(){return tp()?JSON||tn(e8):null}function th(){return tn(e9)}function tm(){return tn(e7)}function tg(){var e=tl();return!!e&&!!e.product&&e.product===te}var tv="on",ty="attachEvent",tb="addEventListener",tx="detachEvent",tC="removeEventListener",tk=0x100000000,tw=0xffffffff,tS=null,t_=!1,tE=0x75bcd15,tP=0x3ade68b1;function tI(e){e<0&&(e>>>=0),tE=0x75bcd15+e&tw,tP=0x3ade68b1-e&tw,t_=!0}function tT(){tI(Math.random()*tk^new Date().getTime())}function tD(e,t){return typeof e===t}function tA(e){return tD(e,eO)||void 0===e}function tR(e){return tA(e)||null===e}function tN(e,t){return e&&Object[eL].hasOwnProperty.call(e,t)}function tB(e){return tD(e,eF)}function tM(e){return tD(e,eM)}function tF(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!tR(e))try{tR(e[tb])?tR(e[ty])||(e[ty](tv+t,n),o=!0):(e[tb](t,n,r),o=!0)}catch(e){}return o}function tO(e,t,n,r){if(void 0===r&&(r=!1),!tR(e))try{tR(e[tC])?tR(e[tx])||e[tx](tv+t,n):e[tC](t,n,r)}catch(e){}}function tL(e,t,n,r){var o=Object.defineProperty;if(o)try{var a={enumerable:!0,configurable:!0};return n&&(a.get=n),r&&(a.set=r),o(e,t,a),!0}catch(e){}return!1}function tH(e,t){if(e&&tB(e))for(var n in e)tN(e,n)&&t.call(e,n,e[n])}function tz(e,t,n){if(e&&t&&e!==t&&tB(e)&&tB(t)){var r=function(r){if(tV.isString(r)){var o=t[r];tM(o)?(!n||n(r,!0,t,e))&&(e[r]=function(e){return function(){var n=arguments;return t[e].apply(t,n)}}(r)):(!n||n(r,!1,t,e))&&(tN(e,r)&&delete e[r],tL(e,r,function(){return t[r]},function(e){t[r]=e})||(e[r]=o))}};for(var o in t)r(o)}return e}var tV=function(){function e(){}return e.isDate=function(e){return"[object Date]"===Object[eL].toString.call(e)},e.isArray=function(e){return"[object Array]"===Object[eL].toString.call(e)},e.isError=function(e){return"[object Error]"===Object[eL].toString.call(e)},e.isString=function(e){return tD(e,"string")},e.isNumber=function(e){return tD(e,"number")},e.isBoolean=function(e){return tD(e,"boolean")},e.disableCookies=function(){e._canUseCookies=!1},e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(tU,function(e){var n=0|t();return("x"===e?n:3&n|8).toString(16)})},e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},e.arrForEach=function(e,t,n){for(var r=e.length,o=0;o<r;o++)o in e&&t.call(n||e,e[o],o,e)},e.arrIndexOf=function(e,t,n){for(var r=e.length,o=n||0,a=Math.max(o>=0?o:r-Math.abs(o),0);a<r;a++)if(a in e&&e[a]===t)return a;return -1},e.arrMap=function(e,t,n){for(var r=e.length,o=n||e,a=Array(r),s=0;s<r;s++)s in e&&(a[s]=t.call(o,e[s],e));return a},e.arrReduce=function(e,t,n){var r,o=e.length,a=0;if(arguments.length>=3)r=arguments[2];else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++;return r},e.strTrim=function(t){return e.isString(t)?t.replace(/^\s+|\s+$/g,""):t},e.objKeys=function(e){var t=!({toString:null}).propertyIsEnumerable("toString");if(!tM(e)&&(!tB(e)||null===e))throw TypeError("objKeys called on non-object");var n=[];for(var r in e)tN(e,r)&&n.push(r);if(t)for(var o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=o.length,s=0;s<a;s++)tN(e,o[s])&&n.push(o[s]);return n},e.addEventHandler=function(e,t){var n=!1,r=to();r&&(n=tF(r,e,t),n=tF(r.body,e,t)||n);var o=ta();return o&&(n=tj.Attach(o,e,t)||n),n},e.dateNow=function(){var e=Date;return e.now?e.now():new e().getTime()},e.perfNow=function(){var t=td();return t&&t.now?t.now():e.dateNow()},e.newId=function(t){void 0===t&&(t=22);for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=e.random32()>>>0,o=0,a="";a.length<t;)o++,a+=n.charAt(63&r),r>>>=6,5===o&&(r=(e.random32()<<2|3&r)>>>0,o=0);return a},e.isIE=function(){if(null===tS){var e=((tl()||{}).userAgent||"").toLowerCase();tS=-1!==e.indexOf("msie")||-1!==e.indexOf("trident/")}return tS},e.randomValue=function(t){return t>0?Math.floor(e.random32()/tw*(t+1))>>>0:0},e.random32=function(t){var n,r=th()||tm();return r&&r.getRandomValues?n=r.getRandomValues(new Uint32Array(1))[0]&tw:e.isIE()?(t_||tT(),n=e.mwcRandom32()&tw):n=Math.floor(tk*Math.random()|0),t||(n>>>=0),n},e.mwcRandomSeed=function(e){e?tI(e):tT()},e.mwcRandom32=function(e){var t=((tP=36969*(65535&tP)+(tP>>16)&tw)<<16)+(65535&(tE=18e3*(65535&tE)+(tE>>16)&tw))>>>0&tw;return e||(t>>>=0),t},e.generateW3CId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",o=0;o<4;o++)r+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var a=n[8+(3&e.random32())|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+a+r.substr(16,3)+r.substr(19,12)},e.isTypeof=tD,e.isUndefined=tA,e.isNullOrUndefined=tR,e.hasOwnProperty=tN,e.isFunction=tM,e.isObject=tB,e.objCreate=eV,e.objDefineAccessors=tL,e}(),tU=/[xy]/g,tj=function(){function e(){}return e.Attach=tF,e.AttachEvent=tF,e.Detach=tO,e.DetachEvent=tO,e}();!function(e){e[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING"}(r||(r={}));var tW={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103},tq="undefined",tG="constructor",tK="prototype",tX="function",tY="_dynInstFuncs",t$="_isDynProxy",tQ="_dynClass",tJ="_dynCls$",tZ="_dynInstChk",t0=tZ,t1="_dfOpts",t2="_unknown_",t5="__proto__",t4="_dyn"+t5,t3="__dynProto$Gbl",t6="_dynInstProto",t8="useBaseInst",t9="setInstFuncs",t7=Object,ne=t7.getPrototypeOf,nt=t7.getOwnPropertyNames,nn=function(){var e;return typeof globalThis!==tq&&(e=globalThis),e||typeof self===tq||(e=self),e||typeof window===tq||(e=window),e||typeof n.g===tq||(e=n.g),e||{}}(),nr=nn[t3]||(nn[t3]={o:((o={})[t9]=!0,o[t8]=!0,o),n:1e3});function no(e,t){return e&&t7[tK].hasOwnProperty.call(e,t)}function ni(e){return e&&(e===t7[tK]||e===Array[tK])}function na(e){return ni(e)||e===Function[tK]}function ns(e){var t;if(e){if(ne)return ne(e);var n=e[t5]||e[tK]||(e[tG]?e[tG][tK]:null);t=e[t4]||n,no(e,t4)||(delete e[t6],t=e[t4]=e[t6]||e[t4],e[t6]=n)}return t}function nl(e,t){var n=[];if(nt)n=nt(e);else for(var r in e)"string"==typeof r&&no(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function nc(e,t,n){return t!==tG&&typeof e[t]===tX&&(n||no(e,t))&&t!==t5&&t!==tK}function nu(e){throw TypeError("DynamicProto: "+e)}function nd(){return Object.create?function(e){var t=Object.create;return t?t(null):{}}(0):{}}function np(e){var t=nd();return nl(e,function(n){!t[n]&&nc(e,n,!1)&&(t[n]=e[n])}),t}function nf(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function nh(e,t,n,r){function o(e,t,n){var o=t[n];if(o[t$]&&r){var a=e[tY]||{};!1!==a[t0]&&(o=(a[t[tQ]]||{})[n]||o)}return function(){return o.apply(e,arguments)}}var a=nd();nl(n,function(e){a[e]=o(t,n,e)});for(var s=ns(e),l=[];s&&!na(s)&&!nf(l,s);)nl(s,function(e){!a[e]&&nc(s,e,!ne)&&(a[e]=o(t,s,e))}),l.push(s),s=ns(s);return a}function nm(e,t,n,r){var o=null;if(e&&no(n,tQ)){var a=e[tY]||nd();if((o=(a[n[tQ]]||nd())[t])||nu("Missing ["+t+"] "+tX),!o[tZ]&&!1!==a[t0]){for(var s=!no(e,t),l=ns(e),c=[];s&&l&&!na(l)&&!nf(c,l);){var u=l[t];if(u){s=u===r;break}c.push(l),l=ns(l)}try{s&&(e[t]=o),o[tZ]=1}catch(e){a[t0]=!1}}}return o}function ng(e,t,n){var r=t[e];return r===n&&(r=ns(t)[e]),typeof r!==tX&&nu("["+e+"] is not a "+tX),r}function nv(e,t,n,r,o){function a(e,t){var n=function(){return(nm(this,t,e,n)||ng(t,e,n)).apply(this,arguments)};return n[t$]=1,n}if(!ni(e)){var s=n[tY]=n[tY]||nd();if(!ni(s)){var l=s[t]=s[t]||nd();!1!==s[t0]&&(s[t0]=!!o),ni(l)||nl(n,function(t){nc(n,t,!1)&&n[t]!==r[t]&&(l[t]=n[t],delete n[t],no(e,t)&&(!e[t]||e[t][t$])||(e[t]=a(e,t)))})}}}function ny(e,t){if(ne){for(var n=[],r=ns(t);r&&!na(r)&&!nf(n,r);){if(r===e)return!0;n.push(r),r=ns(r)}return!1}return!0}function nb(e,t){return no(e,tK)?e.name||t||t2:((e||{})[tG]||{}).name||t||t2}function nx(e,t,n,r){no(e,tK)||nu("theClass is an invalid class definition.");var o=e[tK];ny(o,t)||nu("["+nb(e)+"] not in hierarchy of ["+nb(t)+"]");var a=null;no(o,tQ)?a=o[tQ]:(a=tJ+nb(e,"_")+"$"+nr.n,nr.n++,o[tQ]=a);var s=nx[t1],l=!!s[t8];l&&r&&void 0!==r[t8]&&(l=!!r[t8]);var c=np(t),u=nh(o,t,c,l);n(t,u);var d=!!ne&&!!s[t9];d&&r&&(d=!!r[t9]),nv(o,a,t,c,!1!==d)}nx[t1]=nr.o;var nC="AI (Internal): ",nk="AI: ",nw="AITR_";function nS(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var n_=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o.messageId=e,o.message=(n?nk:nC)+e;var a="";tp()&&(a=tf().stringify(r));var s=(t?" message:"+nS(t):"")+(r?" props:"+nS(a):"");o.message+=s}return e.dataType="MessageData",e}(),nE=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,o={};nx(e,this,function(e){var a=tV.isNullOrUndefined,s=tV.isUndefined,l=tV.isFunction;function c(e,n){var r=t[e];return a(r)?n:r}function u(){return n>=e.maxInternalMessageLimit()}a(t)&&(t={}),e.consoleLoggingLevel=function(){return c("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return c("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return c("maxMessageLimit",25)},e.enableDebugExceptions=function(){return c("enableDebugExceptions",!1)},e.throwInternal=function(t,n,a,l,c){void 0===c&&(c=!1);var u=new n_(n,a,c,l);if(e.enableDebugExceptions())throw u;if(!s(u)&&u&&!s(u.message)){if(c){var d=+u.messageId;!o[d]&&e.consoleLoggingLevel()>=r.WARNING&&(e.warnToConsole(u.message),o[d]=!0)}else e.consoleLoggingLevel()>=r.WARNING&&e.warnToConsole(u.message);e.logInternalMessage(t,u)}},e.warnToConsole=function(e){var t=tu();if(t){var n="log";t.warn&&(n="warn"),l(t[n])&&t[n](e)}},e.resetInternalMessageCount=function(){n=0,o={}},e.logInternalMessage=function(t,r){if(!u()){var a=!0,s=nw+r.messageId;if(o[s]?a=!1:o[s]=!0,a&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(r),n++),n===e.maxInternalMessageLimit())){var l="Internal events throttle limit per PageView reached for this app.",c=new n_(tW.MessageLimitPerPVExceeded,l,!1);e.queue.push(c),e.warnToConsole(l)}}}})}return e.prototype.enableDebugExceptions=function(){return!1},e.prototype.consoleLoggingLevel=function(){return 0},e.prototype.telemetryLoggingLevel=function(){return 1},e.prototype.maxInternalMessageLimit=function(){return 25},e.prototype.throwInternal=function(e,t,n,r,o){void 0===o&&(o=!1)},e.prototype.warnToConsole=function(e){},e.prototype.resetInternalMessageCount=function(){},e.prototype.logInternalMessage=function(e,t){},e}(),nP="ctx",nI=function(){function e(t,n,r){var o,a=this,s=!1;a.start=tV.dateNow(),a.name=t,a.isAsync=r,a.isChildEvt=function(){return!1},tV.isFunction(n)&&(s=tV.objDefineAccessors(a,"payload",function(){return!o&&tV.isFunction(n)&&(o=n(),n=null),o})),a.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?a[t]:(a[nP]||{})[t]:null},a.setCtx=function(t,n){t&&(t===e.ParentContextKey?(a[t]||(a.isChildEvt=function(){return!0}),a[t]=n):t===e.ChildrenContextKey?a[t]=n:(a[nP]=a[nP]||{})[t]=n)},a.complete=function(){var t=0,r=a.getCtx(e.ChildrenContextKey);if(tV.isArray(r))for(var o=0;o<r.length;o++){var l=r[o];l&&(t+=l.time)}a.time=tV.dateNow()-a.start,a.exTime=a.time-t,a.complete=function(){},!s&&tV.isFunction(n)&&(a.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),nT=function(){function e(t){this.ctx={},nx(e,this,function(e){e.create=function(e,t,n){return new nI(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e[nP]=e[nP]||{})[t]=n)},e.getCtx=function(t){return(e[nP]||{})[t]}})}return e.prototype.create=function(e,t,n){return null},e.prototype.fire=function(e){},e.prototype.setCtx=function(e,t){},e.prototype.getCtx=function(e){},e}(),nD="CoreUtils.doPerf";function nA(e,t,n,r,o){if(e){var a=e;if(a&&tV.isFunction(a.getPerfMgr)&&(a=a.getPerfMgr()),a){var s=void 0,l=a.getCtx(nD);try{if(s=a.create(t(),r,o)){if(l&&s.setCtx&&(s.setCtx(nI.ParentContextKey,l),l.getCtx&&l.setCtx)){var c=l.getCtx(nI.ChildrenContextKey);c||(c=[],l.setCtx(nI.ChildrenContextKey,c)),c.push(s)}return a.setCtx(nD,s),n(s)}}catch(e){s&&s.setCtx&&s.setCtx("exception",e)}finally{s&&a.fire(s),a.setCtx(nD,l)}}}return n()}var nR=tV.isFunction,nN=function(){return function(e,t){var n=this,o=null,a=nR(e.processTelemetry),s=nR(e.setNextPlugin);n._hasRun=!1,n.getPlugin=function(){return e},n.getNext=function(){return o},n.setNext=function(e){o=e},n.processTelemetry=function(l,c){c||(c=t);var u=e?e.identifier:"TelemetryPluginChain";nA(c?c.core():null,function(){return u+":processTelemetry"},function(){if(e&&a){n._hasRun=!0;try{c.setNext(o),s&&e.setNextPlugin(o),o&&(o._hasRun=!1),e.processTelemetry(l,c)}catch(n){var t=o&&o._hasRun;o&&t||c.diagLog().throwInternal(r.CRITICAL,tW.PluginException,"Plugin ["+e.identifier+"] failed during processTelemetry - "+n),o&&!t&&o.processTelemetry(l,c)}}else o&&(n._hasRun=!0,o.processTelemetry(l,c))},function(){return{item:l}},!l.sync)}}}(),nB=tV.isNullOrUndefined;function nM(e,t){var n=[];if(e&&e.length>0)for(var r=null,o=0;o<e.length;o++){var a=e[o];if(a&&tV.isFunction(a.processTelemetry)){var s=new nN(a,t);n.push(s),r&&r.setNext(s),r=s}}return n.length>0?n[0]:null}function nF(e,t,n){var r=[],o=!n;if(e)for(;e;){var a=e.getPlugin();(o||a===n)&&(o=!0,r.push(a)),e=e.getNext()}return o||r.push(n),nM(r,t)}function nO(e,t,n){var r=e,o=!1;return n&&e&&(r=[],tV.arrForEach(e,function(e){(o||e===n)&&(o=!0,r.push(e))})),n&&!o&&(r||(r=[]),r.push(n)),nM(r,t)}var nL=function(){function e(t,n,r,o){var a=this,s=null;null!==o&&(t&&tV.isFunction(t.getPlugin)?s=nF(t,a,o||t.getPlugin()):o?s=nO(t,a,o):tV.isUndefined(o)&&(s=nM(t,a))),a.core=function(){return r},a.diagLog=function(){var e=(r||{}).logger;return e||(e=new nE(n||{})),e},a.getCfg=function(){return n},a.getExtCfg=function(e,t){if(void 0===t&&(t={}),n){var r,o=n.extensionConfig;o&&e&&(r=o[e])}return r||t},a.getConfig=function(e,t,r){void 0===r&&(r=!1);var o,s=a.getExtCfg(e,null);return s&&!nB(s[t])?o=s[t]:n&&!nB(n[t])&&(o=n[t]),nB(o)?r:o},a.hasNext=function(){return null!=s},a.getNext=function(){return s},a.setNext=function(e){s=e},a.processNext=function(e){var t=s;t&&(s=t.getNext(),t.processTelemetry(e,a))},a.createNew=function(t,o){return void 0===t&&(t=null),new e(t||s,n,r,o)}}return e}(),nH=tV.isFunction,nz="getPlugin",nV=function(){function e(){var e=this,t=!1,n=null,r=null;e.core=null,e.diagLog=function(t){return e._getTelCtx(t).diagLog()},e.isInitialized=function(){return t},e.setInitialized=function(e){t=e},e.setNextPlugin=function(e){r=e},e.processNext=function(e,t){t?t.processNext(e):r&&nH(r.processTelemetry)&&r.processTelemetry(e,null)},e._getTelCtx=function(t){void 0===t&&(t=null);var o=t;if(!o){var a=n||new nL(null,{},e.core);o=r&&r[nz]?a.createNew(null,r[nz]):a.createNew(null,r)}return o},e._baseTelInit=function(o,a,s,l){o&&(o.extensionConfig=o.extensionConfig||[]),!l&&a&&(l=a.getProcessTelContext().getNext());var c=r;r&&r[nz]&&(c=r[nz]()),e.core=a,n=new nL(l,o,a,c),t=!0}}return e.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},e}(),nU=tV.isFunction,nj="processTelemetry",nW="priority",nq="setNextPlugin",nG="isInitialized";function nK(e,t){for(var n=[],r=null,o=e.getNext();o;){var a=o.getPlugin();a&&(r&&nU(r[nq])&&nU(a[nj])&&r[nq](a),nU(a[nG])&&a[nG]()||n.push(a),r=a,o=o.getNext())}tV.arrForEach(n,function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())})}function nX(e){return e.sort(function(e,t){var n=0,r=nU(t[nj]);return nU(e[nj])?n=r?e[nW]-t[nW]:1:r&&(n=-1),n})}var nY=500,n$="Channel has invalid priority",nQ=tV.objDefineAccessors,nJ=function(e){function t(){var n,r=e.call(this)||this;r.identifier="ChannelControllerPlugin",r.priority=nY;var o=tV.arrForEach;function a(e){o(e,function(e){if(e.priority<nY)throw Error(n$+e.identifier)})}function s(e){e&&e.length>0&&(a(e=e.sort(function(e,t){return e.priority-t.priority})),n.push(e))}function l(e,t){if(n=[],e&&o(e,function(e){return s(e)}),t){var r=[];o(t,function(e){e.priority>nY&&r.push(e)}),s(r)}}return nx(t,r,function(e,t){e.setNextPlugin=function(e){},e.processTelemetry=function(e,t){n&&o(n,function(n){n.length>0&&r._getTelCtx(t).createNew(n).processNext(e)})},e.getChannelControls=function(){return n},e.initialize=function(r,a,s){e.isInitialized()||(t.initialize(r,a,s),r.isCookieUseDisabled&&tV.disableCookies(),l((r||{}).channels,s),o(n,function(e){return nK(new nL(e,r,a),s)}))}}),r}return __extends(t,e),t.prototype.processTelemetry=function(e,t){},t.prototype.getChannelControls=function(){return null},t.prototype.initialize=function(e,t,n){},t._staticInit=function(){nQ(t.prototype,"ChannelControls",t.prototype.getChannelControls),nQ(t.prototype,"channelQueue",t.prototype.getChannelControls)}(),t}(nV),nZ="Extensions must provide callback to initialize",n0=tV.arrForEach,n1=tV.isNullOrUndefined,n2="_notificationManager",n5=function(){function e(){var t,n,r,o,a=!1;nx(e,this,function(e){e._extensions=[],n=new nJ,e.logger=tV.objCreate({throwInternal:function(e,t,n,r,o){void 0===o&&(o=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),t=[],e.isInitialized=function(){return a},e.initialize=function(t,o,s,l){if(e.isInitialized())throw Error("Core should not be initialized more than once");if(!t||n1(t.instrumentationKey))throw Error("Please provide instrumentation key");r=l,e[n2]=l,e.config=t||{},t.extensions=n1(t.extensions)?[]:t.extensions,(t.extensionConfig=n1(t.extensionConfig)?{}:t.extensionConfig).NotificationManager=l,s&&(e.logger=s);var c=[];c.push.apply(c,o.concat(t.extensions));var u=[],d=[],p={};if(n0(c=nX(c),function(e){if(n1(e)||n1(e.initialize))throw Error(nZ);var t=e.priority,r=e.identifier;e&&t&&(n1(p[t])?p[t]=r:s.warnToConsole("Two extensions have same priority #"+t+" - "+p[t]+", "+r)),!t||t<n.priority?u.push(e):d.push(e)}),c.push(n),u.push(n),e._extensions=c=nX(c),nK(new nL([n],t,e),c),nK(new nL(u,t,e),c),e._extensions=u,0===e.getTransmissionControls().length)throw Error("No channels available");a=!0,e.releaseQueue()},e.getTransmissionControls=function(){return n.getChannelControls()},e.track=function(n){n.iKey||(n.iKey=e.config.instrumentationKey),n.time||(n.time=tV.toISOString(new Date)),n1(n.ver)&&(n.ver="4.0"),e.isInitialized()?e.getProcessTelContext().processNext(n):t.push(n)},e.getProcessTelContext=function(){var t=e._extensions,r=t;return t&&0!==t.length||(r=[n]),new nL(r,e.config,e)},e.getNotifyMgr=function(){return r||(r=tV.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}}),e[n2]=r),r},e.getPerfMgr=function(){return!o&&e.config&&e.config.enablePerfMgr&&(o=new nT(e.getNotifyMgr())),o},e.setPerfMgr=function(e){o=e},e.eventCnt=function(){return t.length},e.releaseQueue=function(){t.length>0&&(n0(t,function(t){e.getProcessTelContext().processNext(t)}),t=[])}})}return e.prototype.initialize=function(e,t,n,r){},e.prototype.getTransmissionControls=function(){return null},e.prototype.track=function(e){},e.prototype.getProcessTelContext=function(){return null},e.prototype.getNotifyMgr=function(){return null},e.prototype.getPerfMgr=function(){return null},e.prototype.setPerfMgr=function(e){},e.prototype.eventCnt=function(){return 0},e.prototype.releaseQueue=function(){},e}(),n4=function(){function e(t){this.listeners=[];var n=tV.arrForEach,r=!!(t||{}).perfEvtsSendAll;nx(e,this,function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=tV.arrIndexOf(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=tV.arrIndexOf(e.listeners,t)},e.eventsSent=function(t){n(e.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(t)},0)})},e.eventsDiscarded=function(t,r){n(e.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(t,r)},0)})},e.eventsSendRequest=function(t,r){n(e.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(e){}})},e.perfEvent=function(t){t&&(r||!t.isChildEvt())&&n(e.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(e){}})}})}return e.prototype.addNotificationListener=function(e){},e.prototype.removeNotificationListener=function(e){},e.prototype.eventsSent=function(e){},e.prototype.eventsDiscarded=function(e,t){},e.prototype.eventsSendRequest=function(e,t){},e}(),n3=function(e){function t(){var n=e.call(this)||this;return nx(t,n,function(e,t){function n(e){if(tV.isNullOrUndefined(e.name))throw r(e),Error("telemetry name required")}function r(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],eX)}e.initialize=function(e,n,r,o){t.initialize(e,n,r||new nE(e),o||new n4(e))},e.track=function(o){nA(e.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===o)throw r(o),Error("Invalid telemetry item");n(o),t.track(o)},function(){return{item:o}},!o.sync)},e.addNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.addNotificationListener(t)},e.removeNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.removeNotificationListener(t)},e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;return n&&n>0||(n=1e4),setInterval(function(){var n=e.logger?e.logger.queue:[];tV.arrForEach(n,function(n){var r={name:t||"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:tV.toISOString(new Date),baseType:n_.dataType,baseData:{message:n.message}};e.track(r)}),n.length=0},n)}}),n}return __extends(t,e),t.prototype.initialize=function(e,t,n,r){},t.prototype.track=function(e){},t.prototype.addNotificationListener=function(e){},t.prototype.removeNotificationListener=function(e){},t.prototype.pollInternalLogs=function(e){return 0},t}(n5),n6="_aiHooks",n8=null,n9="__proto__",n7="constructor";function re(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function rt(e,t,n,r,o){o>=0&&o<=2&&re(e,function(e,a){var s=e.cbks,l=s[n8[o]];if(l){t.ctx=function(){return r[a]=r[a]||{}};try{l.apply(t.inst,n)}catch(e){var c=t.err;try{var u=s[n8[2]];u&&(t.err=e,u.apply(t.inst,n))}catch(e){}finally{t.err=c}}}})}function rn(e){return function(){var t=this,n=arguments,r=e.h,o={name:e.n,inst:t,ctx:null,set:c},a=[],s=l([o],n);function l(e,t){return re(t,function(t){e.push(t)}),e}function c(e,t){(n=l([],n))[e]=t,s=l([o],n)}rt(r,o,s,a,0);var u=e.f;try{o.rslt=u.apply(t,n)}catch(e){throw o.err=e,rt(r,o,s,a,3),e}return rt(r,o,s,a,1),o.rslt}}var rr=Object.getPrototypeOf;function ro(e){if(e){if(rr)return rr(e);var t=e[n9]||e[eZ]||e[n7];if(t)return t}return null}function ri(e,t,n){var r=null;return e&&(tV.hasOwnProperty(e,t)?r=e:n&&(r=ri(ro(e),t,!1))),r}function ra(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n){var o=ri(e,t,r);if(o){var a=o[t];if(typeof a===e0){var s=a[n6];if(!s){var l=rn(s={i:0,n:t,f:a,h:[]});l[n6]=s,o[t]=l}var c={id:s.i,cbks:n,rm:function(){var e=this.id;re(s.h,function(t,n){if(t.id===e)return s.h.splice(n,1),1})}};return s.i++,s.h.push(c),c}}}return null}var rs=0,rl=13,rc=32,ru=1,rd=2,rp=3,rf=0,rh=1,rm=6,rg=7,rv=__assign(__assign({},tW),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519}),ry="1DS-Web-JS-3.0.2",rb="undefined",rx="prototype",rC=((a={})[0]=rf,a[2]=rm,a[1]=rh,a[3]=rg,a[4098]=rm,a[4097]=rh,a[4099]=rg,a),rk=null,rw=tV.isUndefined,rS=tV.isNullOrUndefined;function r_(e){return!rw(e)}var rE=tV.hasOwnProperty,rP=null,rI=tV.arrForEach;tV.arrIndexOf,tV.arrMap,tV.arrReduce;var rT=tV.objKeys;tV.toISOString;var rD=tg,rA=tV.isString,rR=tV.isNumber,rN=tV.isBoolean,rB=tV.isFunction,rM=tV.isArray,rF=tV.isObject,rO=tV.strTrim,rL=!!ta(),rH=!!to();function rz(e){return!(rS(e)||""===e)}function rV(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return""}function rU(){return null===rP&&(rP=ts()&&!!tl().sendBeacon),rP}function rj(e){return!!(e&&rR(e))&&!!(e>=1)&&!!(e<=3)}function rW(e,t,n){if(!rA(e)||rS(t)||""===t)return null;if(rA(t)||rR(t)||rN(t)||rM(t))t={value:t};else if("object"!=typeof t||t.hasOwnProperty("value")){if(rS(t.value)||""===t.value||!rA(t.value)&&!rR(t.value)&&!rN(t.value)&&!rM(t.value))return null}else t={value:n?JSON.stringify(t):t};if(rM(t.value)&&!r5(t.value))return null;if(!rS(t.kind)){if(rM(t.value)||!r1(t.kind))return null;t.value=t.value.toString()}return t}function rq(){var e=tn("XMLHttpRequest");if(e)return!!(rw(new e().withCredentials)&&1)}function rG(e,t,n){var r=-1;if(!rw(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),r2(n))-1===r&&(r=0),r|=n;else{var o=rC[r9(e)]||-1;-1!==r&&-1!==o?r|=o:o===rm&&(r=o)}return r}function rK(){if(void 0===s){s=!1;try{var e=ta(),t=tl();e&&!rw(e.cookie)&&t&&t.cookieEnabled&&(s=!0)}catch(e){}}return s}function rX(e){return!!rA(e)&&(!!(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&r7(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11"))}function rY(e,t,n){if(rK()){var r="",o=tc();o&&"https:"===o.protocol&&(r=";secure",null===rk&&(rk=rX((tl()||{}).userAgent)),rk||(t+=";SameSite=None"));var a=new Date;a.setTime(a.getTime()+24*n*36e5);var s="; expires="+a.toUTCString();ta().cookie=e+"="+t+s+"; path=/"+r}}function r$(e){rY(e,"",-1)}function rQ(e){if(rK()){e+="=";for(var t=decodeURIComponent((ta()||{}).cookie||"").split(";"),n=0;n<t.length;n++){for(var r=t[n],o=0;" "===r.charAt(o);)o++;if(0===(r=r.substring(o)).indexOf(e))return r.substring(e.length,r.length)}}return""}function rJ(e){void 0===e&&(e="D");var t=tV.newGuid();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,"")),t}function rZ(e,t,n,r,o){var a={},s=!1,l=0,c=arguments.length,u=arguments;for("[object Boolean]"===Object[rx].toString.call(u[0])&&(s=u[0],l++);l<c;l++){var e=u[l];tH(e,function(e,t){s&&t&&rF(t)?a[e]=rZ(!0,a[e],t):a[e]=t})}return a}var r0=tV.perfNow;function r1(e){return!!rR(e)&&(!!(e>=rs)&&!!(e<=rl)||e===rc)}function r2(e){return!!rR(e)&&!!(e>=0)&&!!(e<=9)}function r5(e){return e.length>0}var r4=tV.objDefineAccessors;function r3(e){var t=r8("beforeunload",e);return t=r8("unload",e)||t,t=r8("pagehide",e)||t}function r6(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=r0()}var r8=tV.addEventHandler;function r9(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===eF&&(t=4,rM(e)?(t=4096,e.length>0&&(t|=r9(e[0]))):rE(e,"value")&&(t=8192|r9(e.value)))}return t}function r7(e,t){return void 0!==e&&void 0!==t&&-1!==e.indexOf(t,e.length-t.length)}var oe="version",ot="properties",on=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],n.pluginVersionString="",nx(t,n,function(e,t){e.initialize=function(n,o,a,s){nA(e,function(){return"AppInsightsCore.initialize"},function(){if(n){n.endpointUrl||(n.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var l=n.propertyStorageOverride;if(l&&(!l.getProperty||!l.setProperty))throw Error("Invalid property storage override passed.");n.channels&&rI(n.channels,function(t){t&&rI(t,function(t){if(t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}})})}e.getWParam=function(){return"u">typeof document?0:-1},o&&rI(o,function(t){if(t&&t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}}),e.pluginVersionString=e.pluginVersionStringArr.join(";");try{t.initialize(n,o,a,s)}catch(t){e.logger.throwInternal(r.CRITICAL,rv.ErrorProvidedChannels,"Channels must be provided through config.channels only")}e.pollInternalLogs("InternalLog")},function(){return{config:n,extensions:o,logger:a,notificationManager:s}})},e.track=function(n){nA(e,function(){return"AppInsightsCore.track"},function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=r0(),rj(r.latency)||(r.latency=ru);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=ry;var a=r.baseData=r.baseData||{};a[ot]||(a[ot]={});var s=a[ot];s[oe]||(s[oe]=""),""!==e.pluginVersionString&&(s[oe]=e.pluginVersionString)}t.track(r)},function(){return{item:n}},!n.sync)}}),n}return __extends(t,e),t.prototype.initialize=function(e,t,n,r){},t.prototype.track=function(e){},t}(n3);!function(e){function t(){var n=e.call(this)||this;return nx(t,n,function(e,t){e.initialize=function(n,o,a,s){n&&!n.endpointUrl&&(n.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),e.getWParam=function(){return rL?0:-1};try{t.initialize(n,o,a,s)}catch(t){e.logger.throwInternal(r.CRITICAL,rv.ErrorProvidedChannels,"Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=ry}t.track(n)}}),n}__extends(t,e),t.prototype.initialize=function(e,t,n,r){},t.prototype.track=function(e){}}(n5);var or=rB;function oo(e,t,n){return function(r){e[t]=r,n()}}var oi=function(){function e(t){var n=0,r=null,o=[];function a(t,a,l,c){o.push(function(){var o;try{(o=1===n?or(t)?t(r):r:or(a)?a(r):r)instanceof e?o.then(l,c):2!==n||or(a)?l(o):c(o)}catch(e){c(e);return}}),0!==n&&s()}function s(){if(o.length>0){var e=o.slice();o=[],setTimeout(function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch(e){}},0)}}function l(e){0===n&&(r=e,n=1,s())}function c(e){0===n&&(r=e,n=2,s())}nx(e,this,function(t){t.then=function(t,n){return new e(function(e,r){a(t,n,e,r)})},t.catch=function(e){return t.then(null,e)}}),function(){if(!or(t))throw TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(l,c)}catch(e){c(e)}}()}return e.resolve=function(t){return t instanceof e?t:new e(t&&or(t.then)?function(e,n){try{t.then(e,n)}catch(e){n(e)}}:function(e){e(t)})},e.reject=function(t){return new e(function(e,n){n(t)})},e.all=function(t){if(t&&t.length)return new e(function(e,n){try{for(var r=[],o=0,a=0;a<t.length;a++){var s=t[a];s&&or(s.then)?(o++,s.then(oo(r,a,function(){0==--o&&e(r)}),n)):r[a]=s}0===o&&setTimeout(function(){e(r)},0)}catch(e){n(e)}})},e.race=function(t){return new e(function(e,n){if(t&&t.length)try{for(var r=function(r){var o=t[r];o&&or(o.then)?o.then(e,n):setTimeout(function(){e(o)},0)},o=0;o<t.length;o++)r(o)}catch(e){n(e)}})},e.prototype.then=function(e,t){},e.prototype.catch=function(e){},e}(),oa=6e5,os=0,ol=[],oc=[],ou=[];function od(){return new Date().getTime()}!function(){function e(t,n){var r=0,o=(t||"<unnamed>")+"."+os;function a(e){var t=tt();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+o+"] "+e)}function s(e){n&&n.warnToConsole("ESPromiseScheduler["+o+"] "+e)}os++,nx(e,this,function(e){var t=null,n=0;function l(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,c,u){var d=o+"."+n;n++,c&&(d+="-("+c+")");var p=d+"{"+r+"}";r++;var f={evt:null,tm:od(),id:p,isRunning:!1,isAborted:!1};return t?f.evt=x(f,t):f.evt=b(f),(t=f).evt._schId=p,f.evt;function h(e){for(var t=od(),n=t-oa,r=e.length,o=0;o<r;){var a=e[o];if(a&&a.tm<n){var l=null;a.abort?(l="Aborting ["+a.id+"] due to Excessive runtime ("+(t-a.tm)+" ms)",a.abort(l)):l="Removing ["+a.id+"] due to Excessive runtime ("+(t-a.tm)+" ms)",s(l),e.splice(o,1),r--}else o++}}function m(e,n){var r=!1,o=l(ol,e);if(o||(o=l(ou,e),r=!0),o){o.to&&(clearTimeout(o.to),o.to=null);var c=od()-o.tm;n?r?s("Timed out event ["+e+"] finally complete -- "+c+" ms"):a("Promise ["+e+"] Complete -- "+c+" ms"):(ou.push(o),s("Event ["+e+"] Timed out and removed -- "+c+" ms"))}else a("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),h(ol),h(oc),h(ou)}function g(e,t){return function(n){return m(e,!0),t&&t(n),n}}function v(e,t,n,r){t.then(function(t){return t instanceof oi?(a("Event ["+e+"] returned a promise -- waiting"),v(e,t,n,r),t):g(e,n)(t)},g(e,r))}function y(e,t){var n=e.id;return new oi(function(r,o){a("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,m(n,!1),o(Error(t))};var s=t(n);s instanceof oi?(u&&(e.to=setTimeout(function(){m(n,!1),o(Error("Timed out after ["+u+"] ms"))},u)),v(n,s,function(t){a("Event ["+n+"] Resolving after "+(od()-e.tm)+" ms"),r(t)},o)):(a("Promise ["+n+"] Auto completed as the start action did not return a promise"),r())})}function b(t){var n=od();return(t.wTm=n-t.tm,t.tm=n,t.isAborted)?oi.reject(Error("["+d+"] was aborted")):(ol.push(t),y(t,e))}function x(e,t){var n=new oi(function(n,r){var o=od()-t.tm,s=t.id;a("["+d+"] is waiting for ["+s+":"+o+" ms] to complete before starting -- ["+oc.length+"] waiting and ["+ol.length+"] running"),e.abort=function(t){e.abort=null,l(oc,d),e.isAborted=!0,r(Error(t))},t.evt.then(function(t){l(oc,d),b(e).then(n,r)},function(t){l(oc,d),b(e).then(n,r)})});return oc.push(e),n}}})}e.incomplete=function(){return ol},e.waitingToStart=function(){return oc},e.prototype.scheduleEvent=function(e,t,n){}}();var op=tV.isNullOrUndefined;!function(){(function e(e){var t=this,n={},r=[],o=[];function a(e,t){var a,s=n[e];if(s&&(a=s[t]),!a&&null!==a){if(rA(e)&&rA(t))if(o.length>0){for(var l=0;l<o.length;l++)if(o[l].handleField(e,t)){a={canHandle:!0,fieldHandler:o[l]};break}}else 0===r.length&&(a={canHandle:!0});if(!a&&null!==a){a=null;for(var l=0;l<r.length;l++)if(r[l].handleField(e,t)){a={canHandle:!0,handler:r[l],fieldHandler:null};break}}s||(s=n[e]={}),s[t]=a}return a}function s(e,t,n,r,o,a){if(e.handler)return e.handler.property(t,n,o,a);if(!op(o.kind)){if((4096&r)==4096||!r1(o.kind))return null;o.value=o.value.toString()}return c(e.fieldHandler,t,n,r,o)}function l(e,t,n){return rz(n)?{value:n}:null}function c(e,n,r,o,a){if(a&&e){var s=e.getSanitizer(n,r,o,a.kind,a.propertyType);if(s)if(4===o){var u={};tH(a.value,function(t,o){var a=n+"."+r;if(rz(o)){var s=l(a,t,o);(s=c(e,a,t,r9(o),s))&&(u[t]=s.value)}}),a.value=u}else{var d={path:n,name:r,type:o,prop:a,sanitizer:t};a=s.call(t,d)}}return a}e&&o.push(e),t.addSanitizer=function(e){e&&(r.push(e),n={})},t.addFieldSanitizer=function(e){e&&(o.push(e),n={})},t.handleField=function(e,t){var n=a(e,t);return!!n&&n.canHandle},t.value=function(e,t,n,r){var o=a(e,t);if(o&&o.canHandle){if(!o||!o.canHandle)return null;if(o.handler)return o.handler.value(e,t,n,r);if(!rA(t)||op(n)||""===n)return null;var c=null,u=r9(n);if((8192&u)==8192){var d=-8193&u;if(!rz((c=n).value)||1!==d&&2!==d&&3!==d&&(4096&d)!=4096)return null}else 1===u||2===u||3===u||(4096&u)==4096?c=l(e,t,n):4===u&&(c=l(e,t,r?JSON.stringify(n):n));if(c)return s(o,e,t,u,c,r)}return null},t.property=function(e,t,n,r){var o=a(e,t);if(!o||!o.canHandle||!rA(t)||op(n)||!rz(n.value))return null;var l=r9(n.value);return 0===l?null:s(o,e,t,l,n,r)}}).getFieldType=r9}();var of="function",oh="object",om="undefined",og="prototype",ov="hasOwnProperty";function oy(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if(n!==oh&&n!==of)throw TypeError("Object prototype may only be an Object:"+e);function r(){}return r[og]=e,new r}function ob(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object[og][ov].call(t,o)&&(e[o]=t[o]);return e}var ox=function(e,t){return(ox=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[ov](n)&&(e[n]=t[n])})(e,t)};function oC(e,t){function n(){this.constructor=e}ox(e,t),e[og]=null===t?oy(t):(n[og]=t[og],new n)}var ok=function(){return typeof globalThis!==om&&globalThis?globalThis:typeof self!==om&&self?self:typeof window!==om&&window?window:typeof n.g!==om&&n.g?n.g:null}()||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(ok,ob,oC),__assign||(__assign=ok.__assign),__extends||(__extends=ok.__extends);var ow=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function oS(e,t){void 0===t&&(t=ow);var n=null;if(e)for(var r=e.split(","),o=0;o<r.length;o++)o_(r[o],t)&&(n?n+=","+r[o]:n=r[o]);return n}function o_(e,t){if(void 0===t&&(t=ow),!e||e.length<4)return!1;for(var n=!1,r=256,o=e.substring(0,3).toString().toUpperCase(),a=0;a<t.length;a++)if(t[a]+":"===o&&e.length<=r){n=!0;break}return n}var oE=function(){function e(e){this.appExpId=null,this.flightIdNameSpaces=ow.slice(0),this.expIdCookieName="Treatments",this._propertiesConfig=e;var t=ta();if(t){var n=t.documentElement;t&&(this.locale=n.lang)}this.env=e.env?e.env:this._getMetaDataFromDOM("awa-").env}return e.prototype.getExpId=function(){return this._propertiesConfig.expId?this._readExpIdFromCoreData(this._propertiesConfig.expId):this._readExpIdFromCookie()},e.prototype._getMetaDataFromDOM=function(e){var t,n={},r=ta();if(r){t=r&&r.querySelectorAll("meta");for(var o=0;o<t.length;o++){var a=t[o];a.name&&0===a.name.toLowerCase().indexOf(e)&&(n[a.name.replace(e,"")]=a.content)}}return n},e.prototype._setAppExpId=function(e){e!==this.appExpId&&(this.appExpId=oS(e,this.flightIdNameSpaces))},e.prototype._getAppExpId=function(){return this.appExpId},e.prototype._readExpIdFromCookie=function(){return this._setAppExpId(rQ(this.expIdCookieName)),this._getAppExpId()},e.prototype._readExpIdFromCoreData=function(e){return this._setAppExpId(e),this._getAppExpId()},e.validateAppExpId=oS,e._staticInit=function(){r4(e.prototype,"expId",e.prototype.getExpId)}(),e}(),oP=function(){return function(){}}(),oI=null;function oT(e,t,n,r){var o="",a="",s=ta();if(s){r&&(o=";domain="+r);var l=tc();l&&"https:"===l.protocol&&(a=";secure",null===oI&&(oI=rX((tl()||{}).userAgent)),oI||(n+=";SameSite=None")),rK()&&(s.cookie=t+"="+n+o+";path=/"+a)}}function oD(){return void 0===l&&(l=!!oR(c.LocalStorage)),l}function oA(){return oD()?oR(c.LocalStorage):null}function oR(e){var t,n,r=null;try{var o=tt();if(!o)return null;n=new Date,(r=e===c.LocalStorage?o.localStorage:o.sessionStorage)&&rB(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(e){r=null}return r}function oN(e,t,n){var o=oA();if(null!==o)try{return o.setItem(t,n),!0}catch(t){l=!1,e.throwInternal(r.CRITICAL,rv.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+t)}return!1}function oB(e,t){var n=oA();if(null!==n)try{return n.getItem(t)}catch(t){l=!1,e.throwInternal(r.CRITICAL,rv.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+t)}return null}!function(e){e[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage"}(c||(c={})),tV.isDate;var oM=tV.toISOString,oF=function(){function e(t,n,r){if(this._logger=r,!t.disableCookiesUsage&&rK()){var o=rQ("MUID");if(o&&this.setLocalId("t:"+o),n.enableApplicationInsightsUser){var a=rQ(e.userCookieName);if(a){var s=a.split(e.cookieSeparator);s.length>0&&(this.id=s[0])}if(!this.id){this.id=tV.newId(t&&!tV.isUndefined(t.idLength)?t.idLength:22);var l=new Date,c=oM(l);this.accountAcquisitionDate=c,l.setTime(l.getTime()+31536e6);var u=[this.id,c],d=n.cookieDomain?n.cookieDomain:void 0;oT(this._logger,e.userCookieName,u.join(e.cookieSeparator)+";expires="+l.toUTCString(),d)}}}if("u">typeof navigator){var p=navigator;this.locale=p.userLanguage||p.language}}return e.prototype.getLocalId=function(){if(this._customLocalId)return this._customLocalId;var e=rQ("MUID");e&&this.setLocalId("t:"+e)},e.prototype.setLocalId=function(e){this._customLocalId=e},e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=function(){r4(e.prototype,"localId",e.prototype.getLocalId,e.prototype.setLocalId)}(),e}(),oO="MSIE",oL="Chrome",oH="Firefox",oz="Safari",oV="Edge",oU="Electron",oj="SkypeShell",oW="PhantomJS",oq="Opera",oG="([\\d,.]+)",oK="Unknown",oX=function(){function e(e){this._propertiesConfig=e;var t=tc();if(t){var n=t.hostname;n&&(this.domain="file:"===t.protocol?"local":n)}var r="u">typeof navigator?navigator.userAgent:"";if(e.userAgent&&(r=e.userAgent),e.populateBrowserInfo){if(r){var o=this._getBrowserName(r);this.browser=o,this.browserVer=this._getBrowserVersion(r,o)}var a=this._getScreenResolution();this.screenRes=a.w+"X"+a.h}}return e.prototype.getUserConsent=function(){return this._propertiesConfig.userConsented||!!rQ(this._propertiesConfig.userConsentCookieName||"MSCC")},e.prototype.getUserConsentDetails=function(){try{if(this._propertiesConfig.callback&&this._propertiesConfig.callback.userConsentDetails){var e=this._propertiesConfig.callback.userConsentDetails();if(e)return JSON.stringify({Required:!!e.Required&&e.Required,Analytics:!!e.Analytics&&e.Analytics,SocialMedia:!!e.SocialMedia&&e.SocialMedia,Advertising:!!e.Advertising&&e.Advertising})}}catch(e){}return null},e.prototype._getBrowserName=function(e){return this._userAgentContainsString("OPR/",e)?oq:this._userAgentContainsString(oW,e)?oW:this._userAgentContainsString(oV,e)?oV:this._userAgentContainsString(oU,e)?oU:this._userAgentContainsString(oL,e)?oL:this._userAgentContainsString("Trident",e)?oO:this._userAgentContainsString(oH,e)?oH:this._userAgentContainsString(oz,e)?oz:this._userAgentContainsString(oj,e)?oj:oK},e.prototype._userAgentContainsString=function(e,t){return t.indexOf(e)>-1},e.prototype._getBrowserVersion=function(e,t){return t===oO?this._getIeVersion(e):this._getOtherVersion(t,e)},e.prototype._getIeVersion=function(e){var t=e.match(RegExp(oO+" "+oG));if(t)return t[1];var n=e.match(RegExp("rv:"+oG));if(n)return n[1]},e.prototype._getOtherVersion=function(e,t){e===oz&&(e="Version");var n=t.match(RegExp(e+"/"+oG));return n?n[1]:oK},e.prototype._getScreenResolution=function(){var e={h:0,w:0},t=to();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e},e._staticInit=function(){r4(e.prototype,"userConsent",e.prototype.getUserConsent)}(),e}(),oY="Windows",o$="Mac OS X",oQ="Android",oJ=/(windows|win32)/i,oZ=/ arm;/i,o0=/windows\sphone\s\d+\.\d+/i,o1=/(macintosh|mac os x)/i,o2=/(ipad|iphone|ipod)(?=.*like mac os x)/i,o5=/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,o4=/android/i,o3=/CrOS/i,o6={"5.1":"XP","6.0":"Vista","6.1":"7","6.2":"8","6.3":"8.1","10.0":"10"},o8="([\\d,.]+)",o9="([\\d,_,.]+)",o7="Unknown",ie=function(){function e(e){var t="u">typeof navigator?navigator.userAgent:"";if(e.userAgent&&(t=e.userAgent),t&&e.populateOperatingSystemInfo){var n=this._getOsName(t.toLowerCase());this.name=n,this.ver=this._getOsVersion(t,n)}}return e.prototype._getOsName=function(e){return e.match(o0)?"Windows Phone":e.match(oZ)?"Windows RT":e.match(oJ)?oY:e.match(o2)?"iOS":e.match(o4)?oQ:e.match(o5)?"Linux":-1!==e.indexOf("x11")?"Unix":-1!==e.indexOf("blackberry")?"BlackBerry":-1!==e.indexOf("symbian")?"Symbian":-1!==e.indexOf("nokia")?"Nokia":e.match(o1)?o$:e.match(o3)?"Chrome OS":o7},e.prototype._getOsVersion=function(e,t){return t===oY?this._getGenericOsVersion(e,"Windows NT"):t===oQ?this._getGenericOsVersion(e,t):t===o$?this._getMacOsxVersion(e):o7},e.prototype._getGenericOsVersion=function(e,t){var n=e.match(RegExp(t+" "+o8));return n?o6[n[1]]?o6[n[1]]:n[1]:o7},e.prototype._getMacOsxVersion=function(e){var t=e.match(RegExp(o$+" "+o9));if(t){var n=t[1].replace(/_/g,".");if(n){var r=this._getDelimiter(n);return r?n.split(r)[0]:n}}return o7},e.prototype._getDelimiter=function(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null},e}(),it=function(){function e(e){e.serviceName&&(this.serviceName=e.serviceName)}return e.prototype.getMsfpc=function(){return rQ("MSFPC")},e.prototype.getAnid=function(){return rQ("ANON").slice(0,34)},e._staticInit=function(){r4(e.prototype,"msfpc",e.prototype.getMsfpc),r4(e.prototype,"anid",e.prototype.getAnid)}(),e}(),ir=1048576,io=2097152,ii=function(){return function(e){this.popSample=100,this.eventFlags=0,e.hashIdentifiers&&(this.eventFlags=this.eventFlags|ir),e.dropIdentifiers&&(this.eventFlags=this.eventFlags|io)}}(),ia=function(){return function(){var e=new Date().getTimezoneOffset(),t=e%60,n=(e-t)/60,r="+";n>0&&(r="-"),n=Math.abs(n),t=Math.abs(t),this.tz=r+(n<10?"0"+n:n.toString())+":"+(t<10?"0"+t:t.toString())}}(),is=function(){return function(){}}(),il=function(){function e(){}return e.prototype.setId=function(e){this.customId=e},e.prototype.getId=function(){return rA(this.customId)?this.customId:this.automaticId},e._staticInit=function(){r4(e.prototype,"id",e.prototype.getId,e.prototype.setId)}(),e}(),ic=function(){return function(e,t,n,r){if(e.enableApplicationInsightsTrace){this.traceId=t||tV.generateW3CId(),this.parentId=n,this.name=r;var o=tc();o&&o.pathname&&(this.name=o.pathname)}}}(),iu=function(){function e(){}return e.id="id",e.ver="ver",e.appName="name",e.locale="locale",e.expId="expId",e.env="env",e}(),id=function(){function e(){}return e.domain="domain",e.browser="browser",e.browserVer="browserVer",e.screenRes="screenRes",e.userConsent="userConsent",e.consentDetails="consentDetails",e}(),ip=function(){function e(){}return e.locale="locale",e.localId="localId",e.id="id",e}(),ih=function(){function e(){}return e.osName="name",e.ver="ver",e}(),im=function(){function e(){}return e.ver="ver",e.seq="seq",e.installId="installId",e.epoch="epoch",e}(),ig=function(){function e(){}return e.msfpc="msfpc",e.anid="anid",e.serviceName="serviceName",e}(),iv=function(){function e(){}return e.popSample="popSample",e.eventFlags="eventFlags",e}(),iy=function(){function e(){}return e.tz="tz",e}(),ib=function(){function e(){}return e.sessionId="sesId",e}(),ix=function(){function e(){}return e.localId="localId",e.deviceClass="deviceClass",e.make="make",e.model="model",e}(),iC=function(){function e(){}return e.role="role",e.roleInstance="roleInstance",e.roleVer="roleVer",e}(),ik=function(){function e(){}return e.traceId="traceID",e.traceName="name",e.parentId="parentID",e}(),iw=function(){function e(){}return e.UserExt="user",e.DeviceExt="device",e.TraceExt="trace",e.WebExt="web",e.AppExt="app",e.OSExt="os",e.SdkExt="sdk",e.IntWebExt="intweb",e.UtcExt="utc",e.LocExt="loc",e.CloudExt="cloud",e}(),iS="MicrosoftApplicationsTelemetryDeviceId",i_=function(){function e(e){if(this._sequenceId=0,this._propertyStorage=e.propertyStorageOverride,this.seq=this._sequenceId,this.epoch=new Date().getTime().toString(),!e.disableCookiesUsage&&rK()||this._propertyStorage){var t=this._getData(iS);t||(t=tV.newGuid()),this._saveData(iS,t),this.installId=t}else r$(iS)}return e.prototype.getSequenceId=function(){return++this._sequenceId},e.prototype._saveData=function(e,t){var n=this._propertyStorage;n?n.setProperty(e,t):rY(e,t,365)},e.prototype._getData=function(e){return this._propertyStorage?this._propertyStorage.getProperty(e)||"":rQ(e)},e}(),iE=function(){function e(t,n){var o,a,s;nx(e,this,function(l){var c=u(t);function u(e){return{sessionRenewalMs:e.sessionRenewalMs&&function(){return e.sessionRenewalMs},sessionExpirationMs:e.sessionExpirationMs&&function(){return e.sessionExpirationMs},cookieDomain:e.cookieDomain&&function(){return e.cookieDomain},namePrefix:e.namePrefix&&function(){return e.namePrefix},sessionAsGuid:function(){return e.sessionAsGuid},idLength:function(){return e.idLength?e.idLength:22}}}function d(){var e=rQ(s());if(e&&tV.isFunction(e.split))p(e);else{var t=oB(a,s());t&&p(t)}l.automaticSession.getId()||f()}function p(e){var t=l.automaticSession,n=e.split("|");n.length>0&&t.setId(n[0]);try{if(n.length>1){var o=+n[1];t.acquisitionDate=+new Date(o),t.acquisitionDate=t.acquisitionDate>0?t.acquisitionDate:0}if(n.length>2){var s=+n[2];t.renewalDate=+new Date(s),t.renewalDate=t.renewalDate>0?t.renewalDate:0}}catch(e){a.throwInternal(r.CRITICAL,rv.ErrorParsingAISessionCookie,"Error parsing ai_session cookie, session will be reset: "+e)}0===t.renewalDate&&a.throwInternal(r.WARNING,rv.SessionRenewalDateIsZero,"AI session renewal date is 0, session will be reset.")}function f(){var e=l.automaticSession,t=new Date().getTime(),n=l.config.sessionAsGuid();!tV.isUndefined(n)&&n?tV.isBoolean(n)?e.setId(rJ()):e.setId(rJ(n)):e.setId(tV.newId(c&&c.idLength?c.idLength():22)),e.acquisitionDate=t,e.renewalDate=t,h(e.getId(),e.acquisitionDate,e.renewalDate),oD()||a.throwInternal(r.WARNING,rv.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")}function h(e,t,n){var r=t+l.config.sessionExpirationMs(),c=n+l.config.sessionRenewalMs(),u=new Date,d=[e,t,n];r<c?u.setTime(r):u.setTime(c);var p=l.config.cookieDomain?l.config.cookieDomain():null;oT(a,s(),d.join("|")+";expires="+u.toUTCString(),p),o=new Date().getTime()}function m(e,t,n){oN(a,s(),[e,t,n].join("|"))}a=tV.isNullOrUndefined(n)?new nE:n,tV.isFunction(t.sessionExpirationMs)||(c.sessionExpirationMs=function(){return e.acquisitionSpan}),tV.isFunction(t.sessionRenewalMs)||(c.sessionRenewalMs=function(){return e.renewalSpan}),l.config=c,s=function(){return l.config.namePrefix&&l.config.namePrefix()?e.cookieNameConst+l.config.namePrefix():e.cookieNameConst},l.automaticSession=new il,l.update=function(){l.automaticSession.getId()||d();var t=l.automaticSession,n=l.config,r=new Date().getTime(),a=r-t.acquisitionDate>n.sessionExpirationMs(),s=r-t.renewalDate>n.sessionRenewalMs();if(a||s)f();else{var c=o;(!c||r-c>e.cookieUpdateInterval)&&(t.renewalDate=r,h(t.getId(),t.acquisitionDate,t.renewalDate))}},l.backup=function(){var e=l.automaticSession;m(e.getId(),e.acquisitionDate,e.renewalDate)}})}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e.cookieNameConst="ai_session",e}(),iP=rA,iI=function(){function e(e,t,n){this.app=new oE(t),this.cloud=new oP,this.user=new oF(e,t,n&&n.logger),this.os=new ie(t),this.web=new oX(t),this.sdk=new i_(e),this.intWeb=new it(t),this.utc=new ii(t),this.loc=new ia,this.device=new is,this.telemetryTrace=new ic(t),this.sessionManager=new iE(t,n&&n.logger),this.session=new il}return e.prototype.getSessionId=function(){var e=this.session;if(e&&iP(e.customId))return e.customId;var t=this.sessionManager;t.update();var n=t.automaticSession;if(n){var r=n.getId();r&&iP(r)&&(e.automaticId=r)}return e.automaticId},e.prototype.applyApplicationContext=function(e){var t=this.app;iP(t.id)&&(e.ext[iw.AppExt][iu.id]=t.id),iP(t.ver)&&(e.ext[iw.AppExt][iu.ver]=t.ver),iP(t.name)&&(e.ext[iw.AppExt][iu.appName]=t.name),iP(t.locale)&&(e.ext[iw.AppExt][iu.locale]=t.locale);var n=t.getExpId();iP(n)&&(e.ext[iw.AppExt][iu.expId]=n),iP(t.env)&&(e.ext[iw.AppExt][iu.env]=t.env)},e.prototype.applyUserContext=function(e){var t=this.user,n=t.getLocalId();iP(n)&&(e.ext[iw.UserExt][ip.localId]=n),iP(t.locale)&&(e.ext[iw.UserExt][ip.locale]=t.locale),iP(t.id)&&(e.ext[iw.UserExt][ip.id]=t.id)},e.prototype.applyWebContext=function(e){var t=this.web;iP(t.domain)&&(e.ext[iw.WebExt][id.domain]=t.domain),iP(t.browser)&&(e.ext[iw.WebExt][id.browser]=t.browser),iP(t.browserVer)&&(e.ext[iw.WebExt][id.browserVer]=t.browserVer),iP(t.screenRes)&&(e.ext[iw.WebExt][id.screenRes]=t.screenRes),e.ext[iw.WebExt][id.userConsent]=t.getUserConsent(),e.ext[iw.WebExt][id.consentDetails]=t.getUserConsentDetails()},e.prototype.applyOsContext=function(e){var t=this.os;iP(t.name)&&(e.ext[iw.OSExt][ih.osName]=t.name),iP(t.ver)&&(e.ext[iw.OSExt][ih.ver]=t.ver)},e.prototype.applySdkContext=function(e){var t=this.sdk;e.ext[iw.SdkExt][im.seq]=t.getSequenceId(),e.ext[iw.SdkExt][im.epoch]=t.epoch,iP(t.installId)&&(e.ext[iw.SdkExt][im.installId]=t.installId)},e.prototype.applyIntWebContext=function(e){var t=this.intWeb,n=t.getMsfpc();iP(n)&&(e.ext[iw.IntWebExt][ig.msfpc]=n);var r=t.getAnid();iP(r)&&(e.ext[iw.IntWebExt][ig.anid]=r),iP(t.serviceName)&&(e.ext[iw.IntWebExt][ig.serviceName]=t.serviceName)},e.prototype.applyUtcContext=function(e){var t=this.utc;e.ext[iw.UtcExt][iv.popSample]=t.popSample,t.eventFlags>0&&(e.ext[iw.UtcExt][iv.eventFlags]=t.eventFlags)},e.prototype.applyLocContext=function(e){e.ext[iw.LocExt][iy.tz]=this.loc.tz},e.prototype.applySessionContext=function(e){e.ext[iw.AppExt][ib.sessionId]=this.getSessionId()},e.prototype.applyDeviceContext=function(e){var t=this.device;iP(t.localId)&&(e.ext[iw.DeviceExt][ix.localId]=t.localId),iP(t.make)&&(e.ext[iw.DeviceExt][ix.make]=t.make),iP(t.model)&&(e.ext[iw.DeviceExt][ix.model]=t.model),iP(t.deviceClass)&&(e.ext[iw.DeviceExt][ix.deviceClass]=t.deviceClass)},e.prototype.applyCloudContext=function(e){var t=this.cloud;iP(t.role)&&(e.ext[iw.CloudExt][iC.role]=t.role),iP(t.roleInstance)&&(e.ext[iw.CloudExt][iC.roleInstance]=t.roleInstance),iP(t.roleVer)&&(e.ext[iw.CloudExt][iC.roleVer]=t.roleVer)},e.prototype.applyAITraceContext=function(e){var t=this.telemetryTrace;iP(t.traceId)&&(e.ext[iw.TraceExt][ik.traceId]=t.traceId),iP(t.name)&&(e.ext[iw.TraceExt][ik.traceName]=t.name),iP(t.parentId)&&(e.ext[iw.TraceExt][ik.parentId]=t.parentId)},e}(),iT=function(e){function t(){var n,r=e.call(this)||this;r.identifier="SystemPropertiesCollector",r.priority=3,r.version="3.0.2";var o={};return nx(t,r,function(t,a){function s(e,t){e&&tH(e,function(e,n){t[e]||(t[e]=n)})}t.initialize=function(o,a,s){e.prototype.initialize.call(r,o,a,s),n=new iI(o,t._getTelCtx().getExtCfg(t.identifier),a)},t.processTelemetry=function(e,r){r6(e,t.identifier),r=t._getTelCtx(r);var a=e.ext=e.ext?e.ext:{};e.data=e.data?e.data:{},a[iw.AppExt]=a[iw.AppExt]||{},a[iw.UserExt]=a[iw.UserExt]||{},a[iw.WebExt]=a[iw.WebExt]||{},a[iw.OSExt]=a[iw.OSExt]||{},a[iw.SdkExt]=a[iw.SdkExt]||{},a[iw.IntWebExt]=a[iw.IntWebExt]||{},a[iw.UtcExt]=a[iw.UtcExt]||{},a[iw.LocExt]=a[iw.LocExt]||{},a[iw.DeviceExt]=a[iw.DeviceExt]||{},a[iw.TraceExt]=a[iw.TraceExt]||{},a[iw.CloudExt]=a[iw.CloudExt]||{},n.applyApplicationContext(e),n.applyUserContext(e),n.applyWebContext(e),n.applyOsContext(e),n.applySdkContext(e),n.applyIntWebContext(e),n.applyUtcContext(e),n.applyLocContext(e),n.applySessionContext(e),n.applyDeviceContext(e),n.applyAITraceContext(e),n.applyCloudContext(e),rI(rT(a),function(e){0===rT(a[e]).length&&delete a[e]}),s(o,e.data),t.processNext(e,r)},t.getPropertiesContext=function(){return n},t.setProperty=function(e,t){o[e]=t}}),r}return __extends(t,e),t}(nV),iD="function",iA="object",iR="undefined",iN="prototype",iB="hasOwnProperty";function iM(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if(n!==iA&&n!==iD)throw TypeError("Object prototype may only be an Object:"+e);function r(){}return r[iN]=e,new r}function iF(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object[iN][iB].call(t,o)&&(e[o]=t[o]);return e}var iO=function(e,t){return(iO=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[iB](n)&&(e[n]=t[n])})(e,t)};function iL(e,t){function n(){this.constructor=e}iO(e,t),e[iN]=null===t?iM(t):(n[iN]=t[iN],new n)}var iH=function(){return typeof globalThis!==iR&&globalThis?globalThis:typeof self!==iR&&self?self:typeof window!==iR&&window?window:typeof n.g!==iR&&n.g?n.g:null}()||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(iH,iF,iL),__assign||(__assign=iH.__assign),__extends||(__extends=iH.__extends);var iz="REAL_TIME",iV="NEAR_REAL_TIME",iU="BEST_EFFORT",ij=function(){function e(t,n){var r=n?[].concat(n):[],o=tV.isNullOrUndefined,a=this;a.iKey=function(){return t},a.count=function(){return r.length},a.events=function(){return r},a.addEvents=function(e,t){return(void 0===t&&(t=!0),e&&e.length>0)?(r=t?r.concat(e):e.concat(r),e.length):0},a.split=function(n,a){var s=new e(t);if(n<r.length){var l=r.length-n;o(a)||(l=a<l?a:l),s.addEvents(r.splice(n,l),!0)}return s}}return e.create=function(t,n){return new e(t,n)},e}(),iW=20,iq=3984588,iG=65e3,iK=2e6,iX=65e3,iY="metadata",i$="f",iQ=/\./,iJ=function(){function e(t,n,r,o){var a="data",s="baseData",l="ext",c=!!o,u=n,d={};nx(e,this,function(e){function n(e,t){var n=d[e];return void 0===n&&(n=!1,0===e.indexOf("ext.metadata")?n=!0:0===e.indexOf("ext.web")&&(n=!0),d[e]=n),n}function o(e,t,a,s,l,d){tH(e,function(e,p){var f=null;if(rz(p)){var h=a,m=e,g=l,v=t;if(c&&!s&&iQ.test(e)){var y=e.split("."),b=y.length;if(b>1){g&&(g=g.slice());for(var x=0;x<b-1;x++){var C=y[x];v=v[C]=v[C]||{},h+="."+C,g&&g.push(C)}m=y[b-1]}}if(f=!(s&&n(h,m))&&u&&u.handleField(h,m)?u.value(h,m,p,r):rW(m,p,r)){var k=f.value;if(v[m]=k,d&&d(g,m,f),rF(k)&&!rM(k)){var w=g;w&&(w=w.slice()).push(m),o(p,k,h+"."+m,s,w,d)}}}})}e.createPayload=function(e,t,n,r){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r}},e.appendPayload=function(n,r,o){var a=n&&r&&!n.overflow;return a&&nA(t,function(){return"Serializer:appendPayload"},function(){for(var t=r.events(),a=n.payloadBlob,s=n.numEvents,l=!1,c=[],u=n.isBeacon,d=u?iG:iq,p=u?iX:iK,f=0,h=0;f<t.length;){var m=t[f];if(m){if(s>=o){n.overflow=r.split(f);break}var g=e.getEventBlob(m);if(g.length<=p){var v=g.length;if(a.length+v>d){n.overflow=r.split(f);break}a&&(a+="\n"),a+=g,++h>iW&&(a.substr(0,1),h=0),l=!0,s++}else c.push(m),t.splice(f,1),f--}f++}if(c&&c.length>0&&n.sizeExceed.push(ij.create(r.iKey(),c)),l){n.batches.push(r),n.payloadBlob=a,n.numEvents=s;var y=r.iKey();-1===tV.arrIndexOf(n.apiKeys,y)&&n.apiKeys.push(y)}},function(){return{payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:o}}),a},e.getEventBlob=function(e){return nA(t,function(){return"Serializer.getEventBlob"},function(){var t={name:e.name,time:e.time,ver:e.ver,iKey:"o:"+rV(e.iKey)},n={},r=e[l];r&&(t[l]=n,tH(r,function(e,t){o(t,n[e]={},"ext."+e,!0,null,null)}));var c=t[a]={baseType:e.baseType},u=c[s]={};return o(e.baseData,u,s,!1,[s],function(e,t,r){iZ(n,e,t,r)}),o(e.data,c,a,!1,[],function(e,t,r){iZ(n,e,t,r)}),JSON.stringify(t)},function(){return{item:e}})}})}return e}();function iZ(e,t,n,r){if(r&&e){var o=rG(r.value,r.kind,r.propertyType);if(o>-1){var a=e[iY];a||(a=e[iY]={f:{}});var s=a[i$];s||(s=a[i$]={}),rI(t,function(e){s[e]||(s[e]={f:{}});var t=s[e][i$];t||(t=s[e][i$]={}),s=t}),s=s[n]={},rM(r.value)?s.a={t:o}:s.t=o}}}var i0=.8,i1=1.2,i2=3e3,i5=6e5,i4=function(){function e(){}return e.shouldRetryForStatus=function(e){return!(e>=300&&e<500&&408!==e&&429!==e||501===e||505===e)},e.getMillisToBackoffForRetry=function(e){var t=0,n=i2*i0;return Math.min(t=Math.pow(2,e)*(Math.floor(Math.random()*(i2*i1-n))+n),i5)},e}(),i3=1e3,i6=function(){function e(){var t={};function n(e){var t=[];return e&&rI(e,function(e){t.push(rO(e))}),t}nx(e,this,function(e){e.setKillSwitchTenants=function(e,r){if(e&&r)try{var o=n(e.split(","));if("this-request-only"===r)return o;for(var a=parseInt(r,10)*i3,s=0;s<o.length;++s)t[o[s]]=tV.dateNow()+a}catch(e){}return[]},e.isTenantKilled=function(e){var n=t,r=rO(e);return!!(void 0!==n[r]&&n[r]>tV.dateNow())||(delete n[r],!1)}})}return e}(),i8=function(){function e(){var t=!0,n=!0,r=!0,o="use-collector-delta",a=!1;nx(e,this,function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,a||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return o},e.setClockSkew=function(e){a||(e?(o=e,n=!0,a=!0):n=!1,t=!0)}})}return e}(),i9="POST",i7="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ae="drop",at="send",an="requeue",ar="rspFail",ao="oth",ai="kill-tokens",aa="kill-duration",as="kill-duration-seconds",al="time-delta-millis",ac=((u={})[1]=an,u[100]=an,u[200]="sent",u[8004]=ae,u[8003]=ae,u);function au(e){try{return e.responseText}catch(e){}return""}var ad=function(){function e(t,n,o,a){this._responseHandlers=[];var s,l,c,u="?cors=true&content-type=application/x-json-stream&client-id=NO_AUTH&client-version="+ry,d=new i6,p=!1,f=new i8,h=!1,m=0,g=!0,v=[],y={},b=[],x=null,C=!1;nx(e,this,function(e){var k=!0;function w(e,t){var n=new XDomainRequest;n.open(i9,e.urlString),n.onload=function(){var e=au(n);E(t,200,{},e),W(e)},n.onerror=function(){E(t,400,{})},n.ontimeout=function(){E(t,500,{})},n.send(e.data)}function S(e,t){var n;fetch(e.urlString,((n={body:e.data,method:i9,credentials:"include"})[i7]=!0,n.headers=e.headers,n)).then(function(e){var n={},r="";e.headers&&e.headers.forEach(function(e,t){n[t]=e}),e.body&&e.text().then(function(e){r=e}),E(t,e.status,n,r),W(r)}).catch(function(e){E(t,0,{})})}function _(e,t,n){function r(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=rO(r))}return e}function o(e){var t={};return e.getAllResponseHeaders?t=U(e.getAllResponseHeaders()):(t=r(t,e,al),t=r(t,e,aa),t=r(t,e,as)),t}function a(e,n){E(t,e.status,o(e),n)}var s=new XMLHttpRequest;try{s[i7]=!0}catch(e){}k&&(s.withCredentials=!0),s.open(i9,e.urlString,!n),rI(rT(e.headers),function(t){s.setRequestHeader(t,e.headers[t])}),s.onload=function(){var e=au(s);a(s,e),W(e)},s.onerror=function(){a(s)},s.ontimeout=function(){a(s)},s.send(e.data)}function E(e,t,n,o){try{e(t,n,o)}catch(e){s.diagLog().throwInternal(r.WARNING,rv.SendPostOnCompleteFailure,e)}}function P(){return!p&&m<n}function I(){var e=b;return b=[],e}function T(e,t,n){var r=!1;return e&&e.length>0&&!p&&l&&x&&(r=t||P()&&(n>0||f.allowRequestSending())),r}function D(e){var t={};return e&&rI(e,function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}}),t}function A(e,n,r,o,a,s){if(e&&0!==e.length){if(p)return void q(e,1,o);var l=e;nA(c,function(){return"HttpManager:_sendBatches"},function(l){l&&(e=e.slice(0));for(var c=[],u=null,p=r0();T(e,o,n);){var f=e.shift();f&&f.count()>0&&(d.isTenantKilled(f.iKey())?c.push(f):(u=u||x.createPayload(n,r,o,s&&N()),x.appendPayload(u,f,t)?null!==u.overflow&&(e=[u.overflow].concat(e),u.overflow=null,M(u,p,r0(),a),p=r0(),u=null):(M(u,p,r0(),a),p=r0(),e=[f].concat(e),u=null)))}u&&M(u,p,r0(),a),e.length>0&&(b=e.concat(b)),q(c,8004,o)},function(){return{batches:D(l),retryCount:n,isTeardown:r,isSynchronous:o,sendReason:a,useSendBeacon:s}},!o)}}function R(e){var t=u,n="";rI(e.apiKeys,function(e){n.length>0&&(n+=","),n+=e}),n.length>0&&(t+="&apikey="+n),t+="&upload-time="+tV.dateNow().toString();var r=j(e);if(rz(r)&&(t=t+"&ext.intweb.msfpc="+r),f.shouldAddClockSkewHeaders()&&(t+="&time-delta-to-apply-millis="+f.getClockSkewHeaderValue()),c.getWParam){var o=c.getWParam();o>=0&&(t+="&w="+o)}for(var a=0;a<v.length;a++)t+="&"+v[a].name+"="+v[a].value;return t}function N(){return!g&&h&&rU()}function B(e,t,n){e[t]=e[t]||{},e[t][s.identifier]=n}function M(t,n,r,o){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var a=R(t),s=r0(),u="sendAttempt";nA(c,function(){return"HttpManager:_doPayloadSend"},function(){rI(t.batches,function(e){rI(e.events(),function(e){if(C){var t=e.timings=e.timings||{};B(t,"sendEventStart",s),B(t,"serializationStart",n),B(t,"serializationCompleted",r)}e[u]>0?e[u]++:e[u]=1})}),q(t.batches,1e3+(o||0),t.isSync,!0);var d={data:t.payloadBlob,urlString:a,headers:y},p=null,h=!!e.sendHook;N()&&t.isBeacon?(h=!1,p=function(n){F(n,t,o),e.sendListener&&e.sendListener(d,n,t.isSync||t.isTeardown,!0)}):l&&(p=function(n){f.firstRequestSent();var r=function(e,n){L(e,n,t,o)};try{l.sendPOST(n,r,t.isTeardown||t.isSync),e.sendListener&&e.sendListener(d,n,t.isSync||t.isTeardown,!1)}catch(e){E(r,0,{})}}),nA(c,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(p)if(!t.isSync&&m++,h){var n={data:d.data,urlString:d.urlString,headers:d.headers},r=!1;nA(c,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{e.sendHook(n,function(e){r=!0,p(e)},t.isSync||t.isTeardown)}catch(e){r||p(d)}})}else p(d)})},function(){return{thePayload:t,serializationStart:n,serializationCompleted:r,sendReason:o}},t.isSync)}q(t.sizeExceed,8003,t.isSync)}function F(e,t,n){try{if(rU()){var r=tl();if(r.sendBeacon(e.urlString,e.data))return void H(t,200,n,!1);var o=null;rI(t.batches,function(t){if(o&&t&&t.count()>0){for(var n=t.events(),a=0;a<n.length;a++)if(!r.sendBeacon(e.urlString,x.getEventBlob(n[a]))){o.push(t.split(a));break}}else o.push(t.split(0))}),H(t,200,n,!1),q(o,8003,t.isSync,!0)}}catch(e){s.diagLog().warnToConsole("Failed to send telemetry using sendBeacon API. Ex:"+e)}}function O(e,t){C&&rI(e,function(e){B(e.timings=e.timings||{},"sendEventCompleted",t)})}function L(e,t,n,r){var a=9e3,s=null,l=!1,c=!1;try{var u=!0;if(typeof e!==rb){if(t){f.setClockSkew(t[al]);var p=t[aa]||t["kill-duration-seconds"];rI(d.setKillSwitchTenants(t[ai],p),function(e){rI(n.batches,function(t){if(t.iKey()===e){s=s||[];var r=t.split(0);n.numEvents-=r.count(),s.push(r)}})})}if(200===e){a=200;return}(!i4.shouldRetryForStatus(e)||n.numEvents<=0)&&(u=!1),a=9e3+e%1e3}if(u){a=100;var h=n.retryCnt;n.isSync||(h<o?(l=!0,V(function(){!n.isSync&&m--,A(n.batches,h+1,n.isTeardown,n.isSync,5,n.isBeacon)},!0,i4.getMillisToBackoffForRetry(h))):c=!0)}}finally{l||(f.setClockSkew(),H(n,a,r,c)),q(s,8004,n.isSync)}}function H(t,n,r,o){try{o&&s._backOffTransmission(),200===n&&(o||t.isSync||s._clearBackOff(),z(t.batches)),q(t.batches,n,t.isSync,!0)}finally{t.isSync||(m--,5!==r&&e.sendQueuedRequests(r,!t.isSync,t.isBeacon))}}function z(e){if(C){var t=r0();rI(e,function(e){e&&e.count()>0&&O(e.events(),t)})}}function V(e,t,n){t?e():s._setTimeoutOverride(e,n)}function U(e){var t={};return rA(e)&&rI(rO(e).split(/[\r\n]+/),function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=rO(e.substring(0,n)).toLowerCase(),o=rO(e.substring(n+1));t[r]=o}else t[rO(e)]=1}}),t}function j(e){for(var t=0;t<e.batches.length;t++)for(var n=e.batches[t].events(),r=0;r<n.length;r++){var o=(n[r].ext||{}).intweb||{};if(rz(o.msfpc))return encodeURIComponent(o.msfpc)}return""}function W(t){var n=e._responseHandlers;try{for(var o=0;o<n.length;o++)try{n[o](t)}catch(e){s.diagLog().throwInternal(r.CRITICAL,rv.PostResponseHandler,"Response handler failed: "+e)}if(t){var a=JSON.parse(t);rz(a.webResult)&&rz(a.webResult.msfpc)&&rY("MSFPC",a.webResult.msfpc,365)}}catch(e){}}function q(e,t,n,o){if(e&&e.length>0&&a){var l=a[G(t)];l&&nA(c,function(){return"HttpManager:_sendBatchesNotification"},function(){V(function(){try{l.call(a,e,t,n)}catch(e){s.diagLog().throwInternal(r.CRITICAL,rv.NotificationException,"send request notification failed: "+e)}},o||n,0)},function(){return{batches:D(e),reason:t,isSync:n,sendSync:o}},!n)}}function G(e){var t=ac[e];return!rz(t)&&(t=ao,e>=9e3&&e<=9999?t=ar:e>=8e3&&e<=8999?t=ae:e>=1e3&&e<=1999&&(t=at)),t}e.initialize=function(e,t,n,r,o){o||(o={}),u=e+u,C=!(c=t).config.disableEventTimings;var a=!!c.config.enableCompoundKey;s=n;var d=o.valueSanitizer,p=o.stringifyObjects;if(tV.isUndefined(o.enableCompoundKey)||(a=!!o.enableCompoundKey),x=new iJ(c,d,p,a),!(l=r)){g=!1,h=!rD();var f=tc();f&&f.protocol&&"file:"===f.protocol.toLowerCase()&&(k=!1);var m=null;rq()?m=w:rD()?m=S:"u">typeof XMLHttpRequest&&(m=_),l={sendPOST:m}}},e._getDbgPlgTargets=function(){return[l,d,x]},e.addQueryStringParameter=function(e,t){for(var n=0;n<v.length;n++)if(v[n].name===e){v[n].value=t;return}v.push({name:e,value:t})},e.addHeader=function(e,t){y[e]=t},e.canSendRequest=function(){return P()&&f.allowRequestSending()},e.sendQueuedRequests=function(e,t,n){var r=!tV.isNullOrUndefined(t)&&!t;T(b,r,0)&&A(I(),0,!1,r,e||0,!!n)},e.isCompletelyIdle=function(){return!p&&0===m&&0===b.length},e.addBatch=function(e){if(e&&e.count()>0){if(d.isTenantKilled(e.iKey()))return!1;b.push(e)}return!0},e.teardown=function(){b.length>0&&A(I(),0,!0,!0,2,!0)},e.pause=function(){p=!0},e.resume=function(){p=!1,e.sendQueuedRequests(4,!1)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&A([e],0,!1,!0,t||0,!!n)}})}return e}(),ap=.25,af=500,ah=20,am=6,ag=4,av=rH?window:void 0,ay=2,ab=1,ax="eventsDiscarded",aC="overrideInstrumentationKey",ak=function(e){function t(){var n,o,a,s,l,c,u=e.call(this)||this;u.identifier="PostChannel",u.priority=1011,u.version="3.0.2";var d=!1,p=[],f=null,h=!1,m=0,g=1e4,v={},y=iz,b=null,x=0,C=0,k={},w=-1;return nx(t,u,function(e,t){function u(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=ru),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,e.sync){if(x||h)e.latency=rp,e.sync=!1;else if(a)return void a.sendSynchronousBatch(ij.create(e.iKey,[e]),3)}var n=!1;m<g?n=!N(e,t):(n=!0,B(e.iKey,e.latency)&&(n=!N(e,t))),n&&U(ax,[e],e$)}function S(e,t,n,r){var o=M(e,t,n);return a.sendQueuedRequests(t,n,r),o}function _(){return m>0}function E(){w>=0&&M(w,c,!0)&&a.sendQueuedRequests(c,!0,!1);var e=v[y][1];b||f||!(e>=0)||h||(_()?b=P(function(){b=null,S(0===C?rp:ru,1,!0),C++,C%=2,E()},e):C=0)}function P(t,n){0===n&&x&&(n=1);var r=1e3;return x&&(r=i4.getMillisToBackoffForRetry(x-1)),e._setTimeoutOverride(t,n*r)}function I(){null!==b&&(e._clearTimeoutOverride(b),b=null,C=0)}function T(t,n){I(),f&&(e._clearTimeoutOverride(f),f=null),h||S(ru,t,n,!0)}function D(){k[rp]={batches:[],iKeyMap:{}},k[rd]={batches:[],iKeyMap:{}},k[ru]={batches:[],iKeyMap:{}}}function A(e,t,n){var r=k[t];r||(r=k[t=ru]);var o=r.iKeyMap[e];return!o&&n&&(o=ij.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function R(t,n){a.canSendRequest()&&!x&&(s>0&&m>s&&(n=!0),n&&null==f&&e.flush(t,null,20))}function N(e,t){var n=A(e.iKey,e.latency,!0);return!!n.addEvents([e],t)&&(m++,t&&0===e.sendAttempt&&R(!e.sync,l>0&&n.count()>=l),!0)}function B(e,t){for(var n=ru;n<=t;){var r=A(e,t,!0);if(r&&r.count()>0){var o=r.split(0,ah);if(o.count()>0)return j(ax,[o],e$),!0}n++}return!1}function M(t,n,r){var o=!1;return!r||a.canSendRequest()?nA(e.core,function(){return"PostChannel._queueBatches"},function(){for(var e=[],n=rp;n>=t;){var r=k[n];r&&r.batches&&(rI(r.batches,function(t){a.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),m-=t.count()}),r.batches=[],r.iKeyMap={}),n--}e.length>0&&U(ax,e,eY),o&&w>=t&&(w=-1,c=0)},function(){return{latency:t,sendReason:n}},r):(w=w>=0?Math.min(w,t):t,c=Math.max(c,n)),o}function F(e,t){S(ru,t,!0),O(function(){e&&e(),p.length>0?f=P(function(){return F(p.shift(),t)},0):(f=null,_()&&E())})}function O(e){a.isCompletelyIdle()?e():f=P(function(){O(e)},ap)}function L(){I(),H(),y=iz,E()}function H(){(v={})[iz]=[2,1],v[iV]=[6,3],v[iU]=[18,9]}function z(t,n){var r=[];rI(t,function(t){t&&t.count()>0&&rI(t.events(),function(t){t&&(t.sync&&(t.latency=rp,t.sync=!1),t.sendAttempt<am?(r6(t,e.identifier),u(t,!1)):r.push(t))})}),r.length>0&&U(ax,r,eK)}function V(t,n){var o=e._notificationManager||{},a=o[t];if(a)try{a.apply(o,n)}catch(n){e.diagLog().throwInternal(r.CRITICAL,rv.NotificationException,t+" notification failed: "+n)}}function U(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&V(e,[t].concat(n))}function j(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&rI(t,function(t){t&&t.count()>0&&V(e,[t.events()].concat(n))})}function W(e,t,n){e&&e.length>0&&V("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function q(e,t){j("eventsSent",e,t),E()}function G(e,t){j(ax,e,t>=8e3&&t<=8999?t-8e3:eG)}function K(e){j(ax,e,eK),E()}function X(e,t){j(ax,e,eG),E()}function Y(){l=n&&n.disableAutoBatchFlushLimit?0:Math.max(af*(ay+1),g/6)}H(),D(),Y(),a=new ad(af,ay,ab,{requeue:z,send:W,sent:q,drop:G,rspFail:K,oth:X}),e._getDbgPlgTargets=function(){return[a]},e.initialize=function(r,l,c){nA(l,function(){return"PostChannel:initialize"},function(){var u=l;t.initialize(r,l,c),e.setInitialized(!1);var d=e._getTelCtx();r.extensionConfig[e.identifier]=r.extensionConfig[e.identifier]||{},n=d.getExtCfg(e.identifier),e._setTimeoutOverride=n.setTimeoutOverride?n.setTimeoutOverride:setTimeout.bind(av),e._clearTimeoutOverride=n.clearTimeoutOverride?n.clearTimeoutOverride:clearTimeout.bind(av);var p=u.getWParam;u.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|p()},n.eventsLimitInMem>0&&(g=n.eventsLimitInMem),n.autoFlushEventsLimit>0&&(s=n.autoFlushEventsLimit),Y(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(o=n.httpXHROverride),rz(r.anonCookieName)&&a.addQueryStringParameter("anoncknm",r.anonCookieName),a.sendHook=n.payloadPreprocessor,a.sendListener=n.payloadListener;var f=n.overrideEndpointUrl?n.overrideEndpointUrl:r.endpointUrl;e._notificationManager=r.extensionConfig.NotificationManager,a.initialize(f,e.core,e,o,n),r3(function(){T(2,!1)}),e.setInitialized(!0)},function(){return{coreConfig:r,core:l,extensions:c}})},e.processTelemetry=function(t,r){r6(t,e.identifier);var o=(r=e._getTelCtx(r)).getExtCfg(e.identifier),a=!!n.disableTelemetry;o&&(a=a||!!o.disableTelemetry);var s=t;a||d||(n[aC]&&(s.iKey=n[aC]),o&&o[aC]&&(s.iKey=o[aC]),u(s,!0),E()),e.processNext(s,r)},e.setEventQueueLimits=function(e,t){g=e>0?e:1e4,s=t>0?t:0,Y();var n=m>e;if(!n&&l>0)for(var r=ru;!n&&r<=rp;r++){var o=k[r];o&&o.batches&&rI(o.batches,function(e){e&&e.count()>=l&&(n=!0)})}R(!0,n)},e.teardown=function(){T(2,!1),d=!0,a.teardown()},e.pause=function(){I(),h=!0,a.pause()},e.resume=function(){h=!1,a.resume(),E()},e.addResponseHandler=function(e){a._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){L(),tH(e,function(e,t){if(t.length>=2){if(t.splice(0,t.length-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var n=t[0]/t[1];t[0]=Math.ceil(n)*t[1]}v[e]=t}})},e.flush=function(e,t,n){void 0===e&&(e=!0),h||(I(),n=n||1,e?(M(ru,n,e),null==f?f=P(function(){F(t,n)},0):p.push(t)):(S(ru,n,!1),null!=t&&t()))},e.setMsaAuthTicket=function(e){a.addHeader("AuthMsaDeviceTicket",e)},e.hasEvents=_,e._setTransmitProfile=function(e){y!==e&&void 0!==v[e]&&(I(),y=e,E())},e._backOffTransmission=function(){x<ag&&(x++,I(),E())},e._clearBackOff=function(){x&&(x=0,I(),E())}}),u}return __extends(t,e),t}(nV),aw="function",aS="object",a_="undefined",aE="prototype",aP="hasOwnProperty";function aI(){return typeof globalThis!==a_&&globalThis?globalThis:typeof self!==a_&&self?self:typeof window!==a_&&window?window:typeof n.g!==a_&&n.g?n.g:null}function aT(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if(n!==aS&&n!==aw)throw TypeError("Object prototype may only be an Object:"+e);function r(){}return r[aE]=e,new r}function aD(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object[aE][aP].call(t,o)&&(e[o]=t[o]);return e}var aA=function(e,t){return(aA=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[aP](n)&&(e[n]=t[n])})(e,t)};function aR(e,t){function n(){this.constructor=e}aA(e,t),e[aE]=null===t?aT(t):(n[aE]=t[aE],new n)}var aN=aI()||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(aN,aD,aR),__assign||(__assign=aN.__assign),__extends||(__extends=aN.__extends),function(e){e[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage"}(d||(d={})),function(e){e[e.Default=0]="Default",e[e.Required=1]="Required",e[e.Array=2]="Array",e[e.Hidden=4]="Hidden"}(p||(p={})),function(e){e[e.AI=0]="AI",e[e.AI_AND_W3C=1]="AI_AND_W3C",e[e.W3C=2]="W3C"}(f||(f={}));var aB=2,aM=a_,aF=aS,aO=aE,aL=null,aH="window",az="document",aV="navigator",aU="history",aj="location",aW="console",aq="performance",aG="JSON",aK="crypto",aX="msCrypto",aY=aI;function a$(e){var t=aY();return t&&t[e]?t[e]:e===aH&&aQ()?window:null}function aQ(){return!!(typeof window===aF&&window)}function aJ(){return aQ()?window:a$(aH)}function aZ(){return!!(typeof document===aF&&document)}function a0(){return aZ()?document:a$(az)}function a1(){return!!(typeof navigator===aF&&navigator)}function a2(){return a1()?navigator:a$(aV)}function a5(){return!!(typeof history===aF&&history)}function a4(){return a5()?history:a$(aU)}function a3(){return typeof location===aF&&location?location:a$(aj)}function a6(){return typeof console!==aM?console:a$(aW)}function a8(){return a$(aq)}function a9(){return!!(typeof JSON===aF&&JSON||null!==a$(aG))}function a7(){return a9()?JSON||a$(aG):null}function se(){return a$(aK)}function st(){return a$(aX)}var sn="on",sr="attachEvent",so="addEventListener",si="detachEvent",sa="removeEventListener",ss=0x100000000,sl=0xffffffff,sc=null,su=!1,sd=0x75bcd15,sp=0x3ade68b1;function sf(e){e<0&&(e>>>=0),sd=0x75bcd15+e&sl,sp=0x3ade68b1-e&sl,su=!0}function sh(){sf(Math.random()*ss^new Date().getTime())}function sm(e,t){return typeof e===t}function sg(e){return sm(e,a_)||void 0===e}function sv(e){return sg(e)||null===e}function sy(e,t){return e&&Object[aE].hasOwnProperty.call(e,t)}function sb(e){return sm(e,aS)}function sx(e){return sm(e,aw)}function sC(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!sv(e))try{sv(e[so])?sv(e[sr])||(e[sr](sn+t,n),o=!0):(e[so](t,n,r),o=!0)}catch(e){}return o}function sk(e,t,n,r){if(void 0===r&&(r=!1),!sv(e))try{sv(e[sa])?sv(e[si])||e[si](sn+t,n):e[sa](t,n,r)}catch(e){}}function sw(e,t,n,r){var o=Object.defineProperty;if(o)try{var a={enumerable:!0,configurable:!0};return n&&(a.get=n),r&&(a.set=r),o(e,t,a),!0}catch(e){}return!1}function sS(e,t){if(e&&sb(e))for(var n in e)sy(e,n)&&t.call(e,n,e[n])}var s_=function(){function e(){}return e.isDate=function(e){return"[object Date]"===Object[aE].toString.call(e)},e.isArray=function(e){return"[object Array]"===Object[aE].toString.call(e)},e.isError=function(e){return"[object Error]"===Object[aE].toString.call(e)},e.isString=function(e){return sm(e,"string")},e.isNumber=function(e){return sm(e,"number")},e.isBoolean=function(e){return sm(e,"boolean")},e.disableCookies=function(){e._canUseCookies=!1},e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(sE,function(e){var n=0|t();return("x"===e?n:3&n|8).toString(16)})},e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},e.arrForEach=function(e,t,n){for(var r=e.length,o=0;o<r;o++)o in e&&t.call(n||e,e[o],o,e)},e.arrIndexOf=function(e,t,n){for(var r=e.length,o=n||0,a=Math.max(o>=0?o:r-Math.abs(o),0);a<r;a++)if(a in e&&e[a]===t)return a;return -1},e.arrMap=function(e,t,n){for(var r=e.length,o=n||e,a=Array(r),s=0;s<r;s++)s in e&&(a[s]=t.call(o,e[s],e));return a},e.arrReduce=function(e,t,n){var r,o=e.length,a=0;if(arguments.length>=3)r=arguments[2];else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++;return r},e.strTrim=function(t){return e.isString(t)?t.replace(/^\s+|\s+$/g,""):t},e.objKeys=function(e){var t=!({toString:null}).propertyIsEnumerable("toString");if(!sx(e)&&(!sb(e)||null===e))throw TypeError("objKeys called on non-object");var n=[];for(var r in e)sy(e,r)&&n.push(r);if(t)for(var o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=o.length,s=0;s<a;s++)sy(e,o[s])&&n.push(o[s]);return n},e.addEventHandler=function(e,t){var n=!1,r=aJ();r&&(n=sC(r,e,t),n=sC(r.body,e,t)||n);var o=a0();return o&&(n=sP.Attach(o,e,t)||n),n},e.dateNow=function(){var e=Date;return e.now?e.now():new e().getTime()},e.perfNow=function(){var t=a8();return t&&t.now?t.now():e.dateNow()},e.newId=function(t){void 0===t&&(t=22);for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=e.random32()>>>0,o=0,a="";a.length<t;)o++,a+=n.charAt(63&r),r>>>=6,5===o&&(r=(e.random32()<<2|3&r)>>>0,o=0);return a},e.isIE=function(){if(null===sc){var e=((a2()||{}).userAgent||"").toLowerCase();sc=-1!==e.indexOf("msie")||-1!==e.indexOf("trident/")}return sc},e.randomValue=function(t){return t>0?Math.floor(e.random32()/sl*(t+1))>>>0:0},e.random32=function(t){var n,r=se()||st();return r&&r.getRandomValues?n=r.getRandomValues(new Uint32Array(1))[0]&sl:e.isIE()?(su||sh(),n=e.mwcRandom32()&sl):n=Math.floor(ss*Math.random()|0),t||(n>>>=0),n},e.mwcRandomSeed=function(e){e?sf(e):sh()},e.mwcRandom32=function(e){var t=((sp=36969*(65535&sp)+(sp>>16)&sl)<<16)+(65535&(sd=18e3*(65535&sd)+(sd>>16)&sl))>>>0&sl;return e||(t>>>=0),t},e.generateW3CId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",o=0;o<4;o++)r+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var a=n[8+(3&e.random32())|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+a+r.substr(16,3)+r.substr(19,12)},e.isTypeof=sm,e.isUndefined=sg,e.isNullOrUndefined=sv,e.hasOwnProperty=sy,e.isFunction=sx,e.isObject=sb,e.objCreate=aT,e.objDefineAccessors=sw,e}(),sE=/[xy]/g,sP=function(){function e(){}return e.Attach=sC,e.AttachEvent=sC,e.Detach=sk,e.DetachEvent=sk,e}();!function(e){e[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING"}(h||(h={}));var sI=1,sT=2,sD=3,sA=4,sR=5,sN=6,sB=8,sM=10,sF=11,sO=23,sL=25,sH=29,sz=30,sV=31,sU=32,sj=35,sW=36,sq=37,sG=38,sK=39,sX=45,sY=49,s$=52,sQ=56,sJ=57,sZ=61,s0=62,s1=63,s2=64,s5=66,s4=68,s3=69,s6=73,s8="AI (Internal): ",s9="AI: ",s7="AITR_";function le(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var lt=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o.messageId=e,o.message=(n?s9:s8)+e;var a="";a9()&&(a=a7().stringify(r));var s=(t?" message:"+le(t):"")+(r?" props:"+le(a):"");o.message+=s}return e.dataType="MessageData",e}(),ln=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={};nx(e,this,function(e){var o=s_.isNullOrUndefined,a=s_.isUndefined,s=s_.isFunction;function l(e,n){var r=t[e];return o(r)?n:r}function c(){return n>=e.maxInternalMessageLimit()}o(t)&&(t={}),e.consoleLoggingLevel=function(){return l("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return l("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return l("maxMessageLimit",25)},e.enableDebugExceptions=function(){return l("enableDebugExceptions",!1)},e.throwInternal=function(t,n,o,s,l){void 0===l&&(l=!1);var c=new lt(n,o,l,s);if(e.enableDebugExceptions())throw c;if(!a(c)&&c&&!a(c.message)){if(l){var u=+c.messageId;!r[u]&&e.consoleLoggingLevel()>=h.WARNING&&(e.warnToConsole(c.message),r[u]=!0)}else e.consoleLoggingLevel()>=h.WARNING&&e.warnToConsole(c.message);e.logInternalMessage(t,c)}},e.warnToConsole=function(e){var t=a6();if(t){var n="log";t.warn&&(n="warn"),s(t[n])&&t[n](e)}},e.resetInternalMessageCount=function(){n=0,r={}},e.logInternalMessage=function(t,o){if(!c()){var a=!0,s=s7+o.messageId;if(r[s]?a=!1:r[s]=!0,a&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(o),n++),n===e.maxInternalMessageLimit())){var l="Internal events throttle limit per PageView reached for this app.",u=new lt(sO,l,!1);e.queue.push(u),e.warnToConsole(l)}}}})}return e.prototype.enableDebugExceptions=function(){return!1},e.prototype.consoleLoggingLevel=function(){return 0},e.prototype.telemetryLoggingLevel=function(){return 1},e.prototype.maxInternalMessageLimit=function(){return 25},e.prototype.throwInternal=function(e,t,n,r,o){void 0===o&&(o=!1)},e.prototype.warnToConsole=function(e){},e.prototype.resetInternalMessageCount=function(){},e.prototype.logInternalMessage=function(e,t){},e}(),lr="ctx",lo=function(){function e(t,n,r){var o,a=this,s=!1;a.start=s_.dateNow(),a.name=t,a.isAsync=r,a.isChildEvt=function(){return!1},s_.isFunction(n)&&(s=s_.objDefineAccessors(a,"payload",function(){return!o&&s_.isFunction(n)&&(o=n(),n=null),o})),a.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?a[t]:(a[lr]||{})[t]:null},a.setCtx=function(t,n){t&&(t===e.ParentContextKey?(a[t]||(a.isChildEvt=function(){return!0}),a[t]=n):t===e.ChildrenContextKey?a[t]=n:(a[lr]=a[lr]||{})[t]=n)},a.complete=function(){var t=0,r=a.getCtx(e.ChildrenContextKey);if(s_.isArray(r))for(var o=0;o<r.length;o++){var l=r[o];l&&(t+=l.time)}a.time=s_.dateNow()-a.start,a.exTime=a.time-t,a.complete=function(){},!s&&s_.isFunction(n)&&(a.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),li=function(){function e(t){this.ctx={},nx(e,this,function(e){e.create=function(e,t,n){return new lo(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e[lr]=e[lr]||{})[t]=n)},e.getCtx=function(t){return(e[lr]||{})[t]}})}return e.prototype.create=function(e,t,n){return null},e.prototype.fire=function(e){},e.prototype.setCtx=function(e,t){},e.prototype.getCtx=function(e){},e}(),la="CoreUtils.doPerf";function ls(e,t,n,r,o){if(e){var a=e;if(a&&s_.isFunction(a.getPerfMgr)&&(a=a.getPerfMgr()),a){var s=void 0,l=a.getCtx(la);try{if(s=a.create(t(),r,o)){if(l&&s.setCtx&&(s.setCtx(lo.ParentContextKey,l),l.getCtx&&l.setCtx)){var c=l.getCtx(lo.ChildrenContextKey);c||(c=[],l.setCtx(lo.ChildrenContextKey,c)),c.push(s)}return a.setCtx(la,s),n(s)}}catch(e){s&&s.setCtx&&s.setCtx("exception",e)}finally{s&&a.fire(s),a.setCtx(la,l)}}}return n()}var ll=s_.isFunction,lc=function(){return function(e,t){var n=this,r=null,o=ll(e.processTelemetry),a=ll(e.setNextPlugin);n._hasRun=!1,n.getPlugin=function(){return e},n.getNext=function(){return r},n.setNext=function(e){r=e},n.processTelemetry=function(s,l){l||(l=t);var c=e?e.identifier:"TelemetryPluginChain";ls(l?l.core():null,function(){return c+":processTelemetry"},function(){if(e&&o){n._hasRun=!0;try{l.setNext(r),a&&e.setNextPlugin(r),r&&(r._hasRun=!1),e.processTelemetry(s,l)}catch(n){var t=r&&r._hasRun;r&&t||l.diagLog().throwInternal(h.CRITICAL,s6,"Plugin ["+e.identifier+"] failed during processTelemetry - "+n),r&&!t&&r.processTelemetry(s,l)}}else r&&(n._hasRun=!0,r.processTelemetry(s,l))},function(){return{item:s}},!s.sync)}}}(),lu=s_.isNullOrUndefined;function ld(e,t){var n=[];if(e&&e.length>0)for(var r=null,o=0;o<e.length;o++){var a=e[o];if(a&&s_.isFunction(a.processTelemetry)){var s=new lc(a,t);n.push(s),r&&r.setNext(s),r=s}}return n.length>0?n[0]:null}function lp(e,t,n){var r=[],o=!n;if(e)for(;e;){var a=e.getPlugin();(o||a===n)&&(o=!0,r.push(a)),e=e.getNext()}return o||r.push(n),ld(r,t)}function lf(e,t,n){var r=e,o=!1;return n&&e&&(r=[],s_.arrForEach(e,function(e){(o||e===n)&&(o=!0,r.push(e))})),n&&!o&&(r||(r=[]),r.push(n)),ld(r,t)}var lh=function(){function e(t,n,r,o){var a=this,s=null;null!==o&&(t&&s_.isFunction(t.getPlugin)?s=lp(t,a,o||t.getPlugin()):o?s=lf(t,a,o):s_.isUndefined(o)&&(s=ld(t,a))),a.core=function(){return r},a.diagLog=function(){var e=(r||{}).logger;return e||(e=new ln(n||{})),e},a.getCfg=function(){return n},a.getExtCfg=function(e,t){if(void 0===t&&(t={}),n){var r,o=n.extensionConfig;o&&e&&(r=o[e])}return r||t},a.getConfig=function(e,t,r){void 0===r&&(r=!1);var o,s=a.getExtCfg(e,null);return s&&!lu(s[t])?o=s[t]:n&&!lu(n[t])&&(o=n[t]),lu(o)?r:o},a.hasNext=function(){return null!=s},a.getNext=function(){return s},a.setNext=function(e){s=e},a.processNext=function(e){var t=s;t&&(s=t.getNext(),t.processTelemetry(e,a))},a.createNew=function(t,o){return void 0===t&&(t=null),new e(t||s,n,r,o)}}return e}(),lm=s_.isFunction,lg="getPlugin",lv=function(){function e(){var e=this,t=!1,n=null,r=null;e.core=null,e.diagLog=function(t){return e._getTelCtx(t).diagLog()},e.isInitialized=function(){return t},e.setInitialized=function(e){t=e},e.setNextPlugin=function(e){r=e},e.processNext=function(e,t){t?t.processNext(e):r&&lm(r.processTelemetry)&&r.processTelemetry(e,null)},e._getTelCtx=function(t){void 0===t&&(t=null);var o=t;if(!o){var a=n||new lh(null,{},e.core);o=r&&r[lg]?a.createNew(null,r[lg]):a.createNew(null,r)}return o},e._baseTelInit=function(o,a,s,l){o&&(o.extensionConfig=o.extensionConfig||[]),!l&&a&&(l=a.getProcessTelContext().getNext());var c=r;r&&r[lg]&&(c=r[lg]()),e.core=a,n=new lh(l,o,a,c),t=!0}}return e.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},e}(),ly=s_.isFunction,lb="processTelemetry",lx="priority",lC="setNextPlugin",lk="isInitialized";function lw(e,t){for(var n=[],r=null,o=e.getNext();o;){var a=o.getPlugin();a&&(r&&ly(r[lC])&&ly(a[lb])&&r[lC](a),ly(a[lk])&&a[lk]()||n.push(a),r=a,o=o.getNext())}s_.arrForEach(n,function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())})}function lS(e){return e.sort(function(e,t){var n=0,r=ly(t[lb]);return ly(e[lb])?n=r?e[lx]-t[lx]:1:r&&(n=-1),n})}var l_=500,lE="Channel has invalid priority",lP=s_.objDefineAccessors,lI=function(e){function t(){var n,r=e.call(this)||this;r.identifier="ChannelControllerPlugin",r.priority=l_;var o=s_.arrForEach;function a(e){o(e,function(e){if(e.priority<l_)throw Error(lE+e.identifier)})}function s(e){e&&e.length>0&&(a(e=e.sort(function(e,t){return e.priority-t.priority})),n.push(e))}function l(e,t){if(n=[],e&&o(e,function(e){return s(e)}),t){var r=[];o(t,function(e){e.priority>l_&&r.push(e)}),s(r)}}return nx(t,r,function(e,t){e.setNextPlugin=function(e){},e.processTelemetry=function(e,t){n&&o(n,function(n){n.length>0&&r._getTelCtx(t).createNew(n).processNext(e)})},e.getChannelControls=function(){return n},e.initialize=function(r,a,s){e.isInitialized()||(t.initialize(r,a,s),r.isCookieUseDisabled&&s_.disableCookies(),l((r||{}).channels,s),o(n,function(e){return lw(new lh(e,r,a),s)}))}}),r}return __extends(t,e),t.prototype.processTelemetry=function(e,t){},t.prototype.getChannelControls=function(){return null},t.prototype.initialize=function(e,t,n){},t._staticInit=function(){lP(t.prototype,"ChannelControls",t.prototype.getChannelControls),lP(t.prototype,"channelQueue",t.prototype.getChannelControls)}(),t}(lv),lT="Extensions must provide callback to initialize",lD=s_.arrForEach,lA=s_.isNullOrUndefined,lR="_notificationManager",lN=function(){function e(){var t,n,r,o,a=!1;nx(e,this,function(e){e._extensions=[],n=new lI,e.logger=s_.objCreate({throwInternal:function(e,t,n,r,o){void 0===o&&(o=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),t=[],e.isInitialized=function(){return a},e.initialize=function(t,o,s,l){if(e.isInitialized())throw Error("Core should not be initialized more than once");if(!t||lA(t.instrumentationKey))throw Error("Please provide instrumentation key");r=l,e[lR]=l,e.config=t||{},t.extensions=lA(t.extensions)?[]:t.extensions,(t.extensionConfig=lA(t.extensionConfig)?{}:t.extensionConfig).NotificationManager=l,s&&(e.logger=s);var c=[];c.push.apply(c,o.concat(t.extensions));var u=[],d=[],p={};if(lD(c=lS(c),function(e){if(lA(e)||lA(e.initialize))throw Error(lT);var t=e.priority,r=e.identifier;e&&t&&(lA(p[t])?p[t]=r:s.warnToConsole("Two extensions have same priority #"+t+" - "+p[t]+", "+r)),!t||t<n.priority?u.push(e):d.push(e)}),c.push(n),u.push(n),e._extensions=c=lS(c),lw(new lh([n],t,e),c),lw(new lh(u,t,e),c),e._extensions=u,0===e.getTransmissionControls().length)throw Error("No channels available");a=!0,e.releaseQueue()},e.getTransmissionControls=function(){return n.getChannelControls()},e.track=function(n){n.iKey||(n.iKey=e.config.instrumentationKey),n.time||(n.time=s_.toISOString(new Date)),lA(n.ver)&&(n.ver="4.0"),e.isInitialized()?e.getProcessTelContext().processNext(n):t.push(n)},e.getProcessTelContext=function(){var t=e._extensions,r=t;return t&&0!==t.length||(r=[n]),new lh(r,e.config,e)},e.getNotifyMgr=function(){return r||(r=s_.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}}),e[lR]=r),r},e.getPerfMgr=function(){return!o&&e.config&&e.config.enablePerfMgr&&(o=new li(e.getNotifyMgr())),o},e.setPerfMgr=function(e){o=e},e.eventCnt=function(){return t.length},e.releaseQueue=function(){t.length>0&&(lD(t,function(t){e.getProcessTelContext().processNext(t)}),t=[])}})}return e.prototype.initialize=function(e,t,n,r){},e.prototype.getTransmissionControls=function(){return null},e.prototype.track=function(e){},e.prototype.getProcessTelContext=function(){return null},e.prototype.getNotifyMgr=function(){return null},e.prototype.getPerfMgr=function(){return null},e.prototype.setPerfMgr=function(e){},e.prototype.eventCnt=function(){return 0},e.prototype.releaseQueue=function(){},e}(),lB=function(){function e(t){this.listeners=[];var n=s_.arrForEach,r=!!(t||{}).perfEvtsSendAll;nx(e,this,function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=s_.arrIndexOf(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=s_.arrIndexOf(e.listeners,t)},e.eventsSent=function(t){n(e.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(t)},0)})},e.eventsDiscarded=function(t,r){n(e.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(t,r)},0)})},e.eventsSendRequest=function(t,r){n(e.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(e){}})},e.perfEvent=function(t){t&&(r||!t.isChildEvt())&&n(e.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(e){}})}})}return e.prototype.addNotificationListener=function(e){},e.prototype.removeNotificationListener=function(e){},e.prototype.eventsSent=function(e){},e.prototype.eventsDiscarded=function(e,t){},e.prototype.eventsSendRequest=function(e,t){},e}();!function(e){function t(){var n=e.call(this)||this;return nx(t,n,function(e,t){function n(e){if(s_.isNullOrUndefined(e.name))throw r(e),Error("telemetry name required")}function r(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],aB)}e.initialize=function(e,n,r,o){t.initialize(e,n,r||new ln(e),o||new lB(e))},e.track=function(o){ls(e.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===o)throw r(o),Error("Invalid telemetry item");n(o),t.track(o)},function(){return{item:o}},!o.sync)},e.addNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.addNotificationListener(t)},e.removeNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.removeNotificationListener(t)},e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;return n&&n>0||(n=1e4),setInterval(function(){var n=e.logger?e.logger.queue:[];s_.arrForEach(n,function(n){var r={name:t||"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:s_.toISOString(new Date),baseType:lt.dataType,baseData:{message:n.message}};e.track(r)}),n.length=0},n)}}),n}__extends(t,e),t.prototype.initialize=function(e,t,n,r){},t.prototype.track=function(e){},t.prototype.addNotificationListener=function(e){},t.prototype.removeNotificationListener=function(e){},t.prototype.pollInternalLogs=function(e){return 0}}(lN);var lM="_aiHooks",lF=null,lO="__proto__",lL="constructor";function lH(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function lz(e,t,n,r,o){o>=0&&o<=2&&lH(e,function(e,a){var s=e.cbks,l=s[lF[o]];if(l){t.ctx=function(){return r[a]=r[a]||{}};try{l.apply(t.inst,n)}catch(e){var c=t.err;try{var u=s[lF[2]];u&&(t.err=e,u.apply(t.inst,n))}catch(e){}finally{t.err=c}}}})}function lV(e){return function(){var t=this,n=arguments,r=e.h,o={name:e.n,inst:t,ctx:null,set:c},a=[],s=l([o],n);function l(e,t){return lH(t,function(t){e.push(t)}),e}function c(e,t){(n=l([],n))[e]=t,s=l([o],n)}lz(r,o,s,a,0);var u=e.f;try{o.rslt=u.apply(t,n)}catch(e){throw o.err=e,lz(r,o,s,a,3),e}return lz(r,o,s,a,1),o.rslt}}var lU=Object.getPrototypeOf;function lj(e){if(e){if(lU)return lU(e);var t=e[lO]||e[aO]||e[lL];if(t)return t}return null}function lW(e,t,n){var r=null;return e&&(s_.hasOwnProperty(e,t)?r=e:n&&(r=lW(lj(e),t,!1))),r}function lq(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n){var o=lW(e,t,r);if(o){var a=o[t];if(typeof a===aL){var s=a[lM];if(!s){var l=lV(s={i:0,n:t,f:a,h:[]});l[lM]=s,o[t]=l}var c={id:s.i,cbks:n,rm:function(){var e=this.id;lH(s.h,function(t,n){if(t.id===e)return s.h.splice(n,1),1})}};return s.i++,s.h.push(c),c}}}return null}var lG=function(){function e(){}return e.requestContextHeader="Request-Context",e.requestContextTargetKey="appId",e.requestContextAppIdFormat="appId=cid-v1:",e.requestIdHeader="Request-Id",e.traceParentHeader="traceparent",e.sdkContextHeader="Sdk-Context",e.sdkContextHeaderAppIdRequest="appId",e.requestContextHeaderLowerCase="request-context",e}(),lK=function(){function e(){}return e.sanitizeKeyAndAddUniqueness=function(t,n,r){var o=n.length,a=e.sanitizeKey(t,n);if(a.length!==o){for(var s=0,l=a;void 0!==r[l];)s++,l=a.substring(0,e.MAX_NAME_LENGTH-3)+e.padNumber(s);a=l}return a},e.sanitizeKey=function(t,n){var r;return n&&(n=e.trim(n.toString())).length>e.MAX_NAME_LENGTH&&(r=n.substring(0,e.MAX_NAME_LENGTH),t.throwInternal(h.WARNING,sJ,"name is too long.  It has been truncated to "+e.MAX_NAME_LENGTH+" characters.",{name:n},!0)),r||n},e.sanitizeString=function(t,n,r){var o;return void 0===r&&(r=e.MAX_STRING_LENGTH),n&&(r=r||e.MAX_STRING_LENGTH,(n=e.trim(n)).toString().length>r&&(o=n.toString().substring(0,r),t.throwInternal(h.WARNING,sZ,"string value is too long. It has been truncated to "+r+" characters.",{value:n},!0))),o||n},e.sanitizeUrl=function(t,n){return e.sanitizeInput(t,n,e.MAX_URL_LENGTH,s5)},e.sanitizeMessage=function(t,n){var r;return n&&n.length>e.MAX_MESSAGE_LENGTH&&(r=n.substring(0,e.MAX_MESSAGE_LENGTH),t.throwInternal(h.WARNING,sQ,"message is too long, it has been truncated to "+e.MAX_MESSAGE_LENGTH+" characters.",{message:n},!0)),r||n},e.sanitizeException=function(t,n){var r;return n&&n.length>e.MAX_EXCEPTION_LENGTH&&(r=n.substring(0,e.MAX_EXCEPTION_LENGTH),t.throwInternal(h.WARNING,s$,"exception is too long, it has been truncated to "+e.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},!0)),r||n},e.sanitizeProperties=function(t,n){if(n){var r={};sS(n,function(n,o){if(s_.isObject(o)&&a9())try{o=a7().stringify(o)}catch(e){t.throwInternal(h.WARNING,sY,"custom property is not valid",{exception:e},!0)}o=e.sanitizeString(t,o,e.MAX_PROPERTY_LENGTH),n=e.sanitizeKeyAndAddUniqueness(t,n,r),r[n]=o}),n=r}return n},e.sanitizeMeasurements=function(t,n){if(n){var r={};sS(n,function(n,o){n=e.sanitizeKeyAndAddUniqueness(t,n,r),r[n]=o}),n=r}return n},e.sanitizeId=function(t,n){return n?e.sanitizeInput(t,n,e.MAX_ID_LENGTH,s3).toString():n},e.sanitizeInput=function(t,n,r,o){var a;return n&&(n=e.trim(n)).length>r&&(a=n.substring(0,r),t.throwInternal(h.WARNING,o,"input is too long, it has been truncated to "+r+" characters.",{data:n},!0)),a||n},e.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},e.trim=function(e){return s_.isString(e)?e.replace(/^\s+|\s+$/g,""):e},e.MAX_NAME_LENGTH=150,e.MAX_ID_LENGTH=128,e.MAX_PROPERTY_LENGTH=8192,e.MAX_STRING_LENGTH=1024,e.MAX_URL_LENGTH=2048,e.MAX_MESSAGE_LENGTH=32768,e.MAX_EXCEPTION_LENGTH=32768,e}(),lX=a2(),lY=s_.isString,l$=null;function lQ(e,t){var n=e.length,r=n-t.length;return e.substring(r>=0?r:0,n)===t}var lJ=function(){function e(){}return e.createDomEvent=function(e){var t=null;if(s_.isFunction(Event))t=new Event(e);else{var n=a0();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t},e.disableStorage=function(){e._canUseLocalStorage=!1,e._canUseSessionStorage=!1},e._getLocalStorageObject=function(){return e.canUseLocalStorage()?e._getVerifiedStorageObject(d.LocalStorage):null},e._getVerifiedStorageObject=function(e){var t,n,r=null;try{if(s_.isNullOrUndefined(aY()))return null;n=new Date,(r=e===d.LocalStorage?a$("localStorage"):a$("sessionStorage")).setItem(n.toString(),n.toString()),t=r.getItem(n.toString())!==n.toString(),r.removeItem(n.toString()),t&&(r=null)}catch(e){r=null}return r},e.isInternalApplicationInsightsEndpoint=function(t){return -1!==e._internalEndpoints.indexOf(t.toLowerCase())},e.canUseLocalStorage=function(){return void 0===e._canUseLocalStorage&&(e._canUseLocalStorage=!!e._getVerifiedStorageObject(d.LocalStorage)),e._canUseLocalStorage},e.getStorage=function(t,n){var r=e._getLocalStorageObject();if(null!==r)try{return r.getItem(n)}catch(n){e._canUseLocalStorage=!1,t.throwInternal(h.WARNING,sI,"Browser failed read of local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}return null},e.setStorage=function(t,n,r){var o=e._getLocalStorageObject();if(null!==o)try{return o.setItem(n,r),!0}catch(n){e._canUseLocalStorage=!1,t.throwInternal(h.WARNING,sD,"Browser failed write to local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}return!1},e.removeStorage=function(t,n){var r=e._getLocalStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(n){e._canUseLocalStorage=!1,t.throwInternal(h.WARNING,sR,"Browser failed removal of local storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}return!1},e._getSessionStorageObject=function(){return e.canUseSessionStorage()?e._getVerifiedStorageObject(d.SessionStorage):null},e.canUseSessionStorage=function(){return void 0===e._canUseSessionStorage&&(e._canUseSessionStorage=!!e._getVerifiedStorageObject(d.SessionStorage)),e._canUseSessionStorage},e.getSessionStorageKeys=function(){var t=[];return e.canUseSessionStorage()&&sS(a$("sessionStorage"),function(e){t.push(e)}),t},e.getSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(null!==r)try{return r.getItem(n)}catch(n){e._canUseSessionStorage=!1,t.throwInternal(h.WARNING,sT,"Browser failed read of session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}return null},e.setSessionStorage=function(t,n,r){var o=e._getSessionStorageObject();if(null!==o)try{return o.setItem(n,r),!0}catch(n){e._canUseSessionStorage=!1,t.throwInternal(h.WARNING,sA,"Browser failed write to session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}return!1},e.removeSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(n){e._canUseSessionStorage=!1,t.throwInternal(h.WARNING,sN,"Browser failed removal of session storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}return!1},e.disableCookies=function(){s_.disableCookies()},e.canUseCookies=function(t){if(void 0===s_._canUseCookies){s_._canUseCookies=!1;try{s_._canUseCookies=void 0!==e.document.cookie}catch(n){t.throwInternal(h.WARNING,s4,"Cannot access document.cookie - "+e.getExceptionName(n),{exception:e.dump(n)})}}return s_._canUseCookies},e.disallowsSameSiteNone=function(e){return!!lY(e)&&(!!(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&lQ(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11"))},e.setCookie=function(t,n,r,o){if(e.canUseCookies(t)){var a="",s="";o&&(a=";domain="+o);var l=a3();l&&"https:"===l.protocol&&(s=";secure",null===l$&&(l$=e.disallowsSameSiteNone((a2()||{}).userAgent)),l$||(r+=";SameSite=None")),e.document.cookie=n+"="+r+a+";path=/"+s}},e.stringToBoolOrDefault=function(e,t){return(void 0===t&&(t=!1),null==e)?t:"true"===e.toString().toLowerCase()},e.getCookie=function(t,n){if(e.canUseCookies(t)){var r="";if(n&&n.length)for(var o=n+"=",a=e.document.cookie.split(";"),s=0;s<a.length;s++){var l=a[s];if((l=e.trim(l))&&0===l.indexOf(o)){r=l.substring(o.length,a[s].length);break}}return r}},e.deleteCookie=function(t,n){e.canUseCookies(t)&&(e.document.cookie=n+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},e.random32=function(){return s_.random32(!0)},e.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():lX?(lX.userAgent||"").toLowerCase():"";if(-1!==t.indexOf("msie"))return parseInt(t.split("msie")[1]);if(t.indexOf("trident/")){var n=parseInt(t.split("trident/")[1]);if(n)return n+4}return null},e.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,o=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,r=r.length<2?"0"+r:r,(a>0?a+".":"")+(o=o.length<2?"0"+o:o)+":"+r+":"+n+"."+t},e.isCrossOriginError=function(e,t,n,r,o){return("Script error."===e||"Script error"===e)&&!o},e.dump=function(e){var t=Object[aO].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":a9()&&(n=a7().stringify(e)),t+n},e.getExceptionName=function(e){return"[object Error]"===Object[aO].toString.call(e)?e.name:""},e.addEventHandler=function(e,t){return sP.Attach(aJ(),e,t)},e.IsBeaconApiSupported=function(){return"sendBeacon"in lX&&lX.sendBeacon},e.getExtension=function(e,t){for(var n=null,r=0;!n&&r<e.length;)e[r]&&e[r].identifier===t&&(n=e[r]),r++;return n},e.document=a0()||{},e._canUseLocalStorage=void 0,e._canUseSessionStorage=void 0,e._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],e.NotSpecified="not_specified",e.trim=s_.strTrim,e.newId=s_.newId,e.generateW3CId=s_.generateW3CId,e.isArray=s_.isArray,e.isError=s_.isError,e.isDate=s_.isDate,e.toISOStringForIE8=s_.toISOString,e}(),lZ=function(){function e(){}return e.parseUrl=function(t){var n=e._htmlAnchorIdx,r=e._htmlAnchorElement,o=r[n];return e.document.createElement?r[n]||(o=r[n]=e.document.createElement("a")):o={host:e.parseHost(t,!0)},o.href=t,++n>=r.length&&(n=0),e._htmlAnchorIdx=n,o},e.getAbsoluteUrl=function(t){var n,r=e.parseUrl(t);return r&&(n=r.href),n},e.getPathName=function(t){var n,r=e.parseUrl(t);return r&&(n=r.pathname),n},e.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},e.parseHost=function(t,n){var r=e.parseFullHost(t,n);if(r){var o=r.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=o&&o.length>3&&lY(o[2])&&o[2].length>0)return o[2]+(o[3]||"")}return r},e.parseFullHost=function(e,t){var n=null;if(e){var r=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(null!=r&&r.length>2&&lY(r[2])&&r[2].length>0&&(n=r[2]||"",t&&r.length>2)){var o=(r[1]||"").toLowerCase(),a=r[3]||"";"http"===o&&":80"===a?a="":"https"===o&&":443"===a&&(a=""),n+=a}}return n},e.document=a0()||{},e._htmlAnchorIdx=0,e._htmlAnchorElement=[null,null,null,null,null],e}();!function(){function e(){}e.canIncludeCorrelationHeader=function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns){for(var r,o=0;o<e.correlationHeaderExcludePatterns.length;o++)if(e.correlationHeaderExcludePatterns[o].test(t))return!1}var a=lZ.parseUrl(t).host.toLowerCase();if(a&&(-1!==a.indexOf(":443")||-1!==a.indexOf(":80"))&&(a=(lZ.parseFullHost(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a!==n)return!1;var s=e&&e.correlationHeaderDomains;if(s&&(s_.arrForEach(s,function(e){var t=new RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));r=r||t.test(a)}),!r))return!1;var l=e&&e.correlationHeaderExcludedDomains;if(!l||0===l.length)return!0;for(var o=0;o<l.length;o++)if(new RegExp(l[o].toLowerCase().replace(/\./g,".").replace(/\*/g,".*")).test(a))return!1;return a&&a.length>0},e.getCorrelationContext=function(t){if(t){var n=e.getCorrelationContextValue(t,lG.requestContextTargetKey);if(n&&n!==e.correlationIdPrefix)return n}},e.getCorrelationContextValue=function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var o=n[r].split("=");if(2===o.length&&o[0]===t)return o[1]}},e.correlationIdPrefix="cid-v1:"}();var l0=function(){function e(){}return e.ParseDependencyPath=function(e,t,n,r){var o,a=r,s=r;if(t&&t.length>0){var l=lZ.parseUrl(t);if(o=l.host,!a)if(null!=l.pathname){var c=0===l.pathname.length?"/":l.pathname;"/"!==c.charAt(0)&&(c="/"+c),s=l.pathname,a=lK.sanitizeString(e,n?n+" "+c:c)}else a=lK.sanitizeString(e,t)}else o=r,a=r;return{target:o,name:a,data:s}},e}(),l1=function(){function e(){}return e.Now=function(){var e=a8();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return new Date().getTime()},e.GetDuration=function(e,t){var n=null;return 0===e||0===t||s_.isNullOrUndefined(e)||s_.isNullOrUndefined(t)||(n=t-e),n},e}(),l2="https://dc.services.visualstudio.com";!function(){function e(){}e.parse=function(t){if(!t)return{};var n=t.split(e._FIELDS_SEPARATOR),r=s_.arrReduce(n,function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(2===r.length){var o=r[0].toLowerCase(),a=r[1];t[o]=a}return t},{});if(s_.objKeys(r).length>0){if(r.endpointsuffix){var o=r.location?r.location+".":"";r.ingestionendpoint=r.ingestionendpoint||"https://"+o+"dc."+r.endpointsuffix}r.ingestionendpoint=r.ingestionendpoint||l2}return r},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="="}();var l5=function(e){function t(){return e.call(this)||this}return __extends(t,e),t}(function(){return function(){}}());!function(e){__extends(function t(t,n,r){var o=e.call(this)||this;return o.name=lK.sanitizeString(t,r)||lJ.NotSpecified,o.data=n,o.time=s_.toISOString(new Date),o.aiDataContract={time:p.Required,iKey:p.Required,name:p.Required,sampleRate:function(){return 100===o.sampleRate?p.Hidden:p.Required},tags:p.Required,data:p.Required},o},e)}(function(){return function(){this.ver=1,this.sampleRate=100,this.tags={}}}());var l4=function(){return function(){}}(),l3=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(l4),l6=function(e){function t(t,n,r,o){var a=e.call(this)||this;return a.aiDataContract={ver:p.Required,name:p.Required,properties:p.Default,measurements:p.Default},a.name=lK.sanitizeString(t,n)||lJ.NotSpecified,a.properties=lK.sanitizeProperties(t,r),a.measurements=lK.sanitizeMeasurements(t,o),a}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(l3),l8=function(){return function(){}}(),l9=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return __extends(t,e),t}(l4),l7=function(){return function(){this.hasFullStack=!0,this.parsedStack=[]}}(),ce="error";function ct(e){return"hasFullStack"in e&&"typeName"in e}function cn(e){return"ver"in e&&"exceptions"in e&&"properties"in e}function cr(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,})\(/.exec(e.constructor.toString());t=n&&n.length>1?n[1]:""}catch(e){}return t}var co=function(e){function t(t,n,r,o,a,s){var l=e.call(this)||this;return l.aiDataContract={ver:p.Required,exceptions:p.Required,severityLevel:p.Default,properties:p.Default,measurements:p.Default},cn(n)?(l.exceptions=n.exceptions,l.properties=n.properties,l.measurements=n.measurements,n.severityLevel&&(l.severityLevel=n.severityLevel),n.id&&(l.id=n.id),n.problemGroup&&(l.problemGroup=n.problemGroup),l.ver=2,s_.isNullOrUndefined(n.isManual)||(l.isManual=n.isManual)):(l.exceptions=[new ci(t,n)],l.properties=lK.sanitizeProperties(t,r)||{},l.measurements=lK.sanitizeMeasurements(t,o),a&&(l.severityLevel=a),s&&(l.id=s)),l}return __extends(t,e),t.CreateFromInterface=function(e,n,r,o){var a=n.exceptions&&s_.arrMap(n.exceptions,function(t){return ci.CreateFromInterface(e,t)});return new t(e,__assign({},n,{exceptions:a}),r,o)},t.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,r=e.measurements,o=e.severityLevel,a=(e.ver,e.problemGroup),s=e.id,l=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&s_.arrMap(t,function(e){return e.toInterface()})||void 0,severityLevel:o,properties:n,measurements:r,problemGroup:a,id:s,isManual:l}},t.CreateSimpleException=function(e,t,n,r,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t}(l9),ci=function(e){function t(n,r){var o=e.call(this)||this;if(o.aiDataContract={id:p.Default,outerId:p.Default,typeName:p.Required,message:p.Required,hasFullStack:p.Default,stack:p.Default,parsedStack:p.Array},ct(r))o.typeName=r.typeName,o.message=r.message,o.stack=r.stack,o.parsedStack=r.parsedStack,o.hasFullStack=r.hasFullStack;else{var a=r;lJ.isError(a)||(a=a[ce]||a.evt||a),o.typeName=lK.sanitizeString(n,cr(a))||lJ.NotSpecified,o.message=lK.sanitizeMessage(n,r.message)||lJ.NotSpecified;var s=r.stack;o.parsedStack=t.parseStack(s),o.stack=lK.sanitizeException(n,s),o.hasFullStack=lJ.isArray(o.parsedStack)&&o.parsedStack.length>0}return o}return __extends(t,e),t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&s_.arrMap(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||void 0}},t.CreateFromInterface=function(e,n){var r=n.parsedStack instanceof Array&&s_.arrMap(n.parsedStack,function(e){return ca.CreateFromInterface(e)})||n.parsedStack;return new t(e,__assign({},n,{parsedStack:r}))},t.parseStack=function(e){var t;if(s_.isString(e)){var n=e.split("\n");t=[];for(var r=0,o=0,a=0;a<=n.length;a++){var s=n[a];if(ca.regex.test(s)){var l=new ca(n[a],r++);o+=l.sizeInBytes,t.push(l)}}var c=32768;if(o>32768)for(var u=0,d=t.length-1,p=0,f=u,h=d;u<d;){if((p+=t[u].sizeInBytes+t[d].sizeInBytes)>c){var m=h-f+1;t.splice(f,m);break}f=u,h=d,u++,d--}}return t},t}(l7),ca=function(e){function t(n,r){var o=e.call(this)||this;if(o.sizeInBytes=0,o.aiDataContract={level:p.Required,method:p.Required,assembly:p.Default,fileName:p.Default,line:p.Default},"string"==typeof n){var a=n;o.level=r,o.method="<no_method>",o.assembly=lJ.trim(a),o.fileName="",o.line=0;var s=a.match(t.regex);s&&s.length>=5&&(o.method=lJ.trim(s[2])||o.method,o.fileName=lJ.trim(s[4]),o.line=parseInt(s[5])||0)}else o.level=n.level,o.method=n.method,o.assembly=n.assembly,o.fileName=n.fileName,o.line=n.line,o.sizeInBytes=0;return o.sizeInBytes+=o.method.length,o.sizeInBytes+=o.fileName.length,o.sizeInBytes+=o.assembly.length,o.sizeInBytes+=t.baseSize,o.sizeInBytes+=o.level.toString().length,o.sizeInBytes+=o.line.toString().length,o}return __extends(t,e),t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},t.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}(l8),cs=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t.measurements={},t}return __extends(t,e),t}(l4);!function(e){e[e.Measurement=0]="Measurement",e[e.Aggregation=1]="Aggregation"}(m||(m={}));var cl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.aiDataContract={name:p.Required,kind:p.Default,value:p.Required,count:p.Default,min:p.Default,max:p.Default,stdDev:p.Default},t}return __extends(t,e),t}(function(){return function(){this.kind=m.Measurement}}()),cc=function(e){function t(t,n,r,o,a,s,l,c){var u=e.call(this)||this;u.aiDataContract={ver:p.Required,metrics:p.Required,properties:p.Default};var d=new cl;return d.count=o>0?o:void 0,d.max=isNaN(s)||null===s?void 0:s,d.min=isNaN(a)||null===a?void 0:a,d.name=lK.sanitizeString(t,n)||lJ.NotSpecified,d.value=r,u.metrics=[d],u.properties=lK.sanitizeProperties(t,l),u.measurements=lK.sanitizeMeasurements(t,c),u}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(cs),cu=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(l3),cd=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this)||this;return c.aiDataContract={ver:p.Required,name:p.Default,url:p.Default,duration:p.Default,properties:p.Default,measurements:p.Default,id:p.Default},c.id=lK.sanitizeId(t,l),c.url=lK.sanitizeUrl(t,r),c.name=lK.sanitizeString(t,n)||lJ.NotSpecified,isNaN(o)||(c.duration=lJ.msToTimeSpan(o)),c.properties=lK.sanitizeProperties(t,a),c.measurements=lK.sanitizeMeasurements(t,s),c}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(cu),cp=function(e){function t(t,n,r,o,a,s,l,c,u,d,f,h){void 0===u&&(u="Ajax");var m=e.call(this)||this;m.aiDataContract={id:p.Required,ver:p.Required,name:p.Default,resultCode:p.Default,duration:p.Default,success:p.Default,data:p.Default,target:p.Default,type:p.Default,properties:p.Default,measurements:p.Default,kind:p.Default,value:p.Default,count:p.Default,min:p.Default,max:p.Default,stdDev:p.Default,dependencyKind:p.Default,dependencySource:p.Default,commandName:p.Default,dependencyTypeName:p.Default},m.id=n,m.duration=lJ.msToTimeSpan(a),m.success=s,m.resultCode=l+"",m.type=lK.sanitizeString(t,u);var g=l0.ParseDependencyPath(t,r,c,o);return m.data=lK.sanitizeUrl(t,o)||g.data,m.target=lK.sanitizeString(t,g.target),d&&(m.target=m.target+" | "+d),m.name=lK.sanitizeString(t,g.name),m.properties=lK.sanitizeProperties(t,f),m.measurements=lK.sanitizeMeasurements(t,h),m}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return __extends(t,e),t}(l4)),cf=function(e){function t(t,n,r,o,a){var s=e.call(this)||this;return s.aiDataContract={ver:p.Required,message:p.Required,severityLevel:p.Default,properties:p.Default},n=n||lJ.NotSpecified,s.message=lK.sanitizeMessage(t,n),s.properties=lK.sanitizeProperties(t,o),s.measurements=lK.sanitizeMeasurements(t,a),r&&(s.severityLevel=r),s}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(l4)),ch=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this)||this;return c.aiDataContract={ver:p.Required,name:p.Default,url:p.Default,duration:p.Default,perfTotal:p.Default,networkConnect:p.Default,sentRequest:p.Default,receivedResponse:p.Default,domProcessing:p.Default,properties:p.Default,measurements:p.Default},c.url=lK.sanitizeUrl(t,r),c.name=lK.sanitizeString(t,n)||lJ.NotSpecified,c.properties=lK.sanitizeProperties(t,a),c.measurements=lK.sanitizeMeasurements(t,s),l&&(c.domProcessing=l.domProcessing,c.duration=l.duration,c.networkConnect=l.networkConnect,c.perfTotal=l.perfTotal,c.receivedResponse=l.receivedResponse,c.sentRequest=l.sentRequest),c}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(cu));(function(e){__extends(function t(t,n){var r=e.call(this)||this;return r.aiDataContract={baseType:p.Required,baseData:p.Required},r.baseType=t,r.baseData=n,r},e)})(l5),function(e){e[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical"}(g||(g={})),function(){(function e(){}).getConfig=function(e,t,n,r){var o;return void 0===r&&(r=!1),o=n&&e.extensionConfig&&e.extensionConfig[n]&&!s_.isNullOrUndefined(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],s_.isNullOrUndefined(o)?r:o}}();var cm=function(){return function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalSnippet="ai.internal.snippet",this.internalSdkSrc="ai.internal.sdkSrc"}}(),cg=function(){function e(){}return e.create=function(e,t,n,r,o,a){if(n=lK.sanitizeString(r,n)||lJ.NotSpecified,s_.isNullOrUndefined(e)||s_.isNullOrUndefined(t)||s_.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var s={name:n,time:s_.toISOString(new Date),iKey:"",ext:a||{},tags:[],data:{},baseType:t,baseData:e};return s_.isNullOrUndefined(o)||sS(o,function(e,t){s.data[e]=t}),s},e}();(function(){function e(){}e.UserExt="user",e.DeviceExt="device",e.TraceExt="trace",e.WebExt="web",e.AppExt="app",e.OSExt="os",e.SessionExt="ses",e.SDKExt="sdk"})(),new cm;var cv="AppInsightsPropertiesPlugin",cy="ApplicationInsightsAnalytics",cb=function(){function e(t,n,r,o){nx(e,this,function(e){var a,s=s_.arrForEach,l=s_.isNullOrUndefined,c=null,u=[],d=!1;function p(){r&&s(r.getTransmissionControls(),function(e){s(e,function(e){return e.flush(!0)})})}function f(e){u.push(e),c||(c=setInterval(function(){var e=u.slice(0),t=!1;u=[],s(e,function(e){e()?t=!0:u.push(e)}),0===u.length&&(clearInterval(c),c=null),t&&p()},100))}r&&(a=r.logger),e.trackPageView=function(e,r){var s,c,u=e.name;if(l(u)||"string"!=typeof u){var m=a0();u=e.name=m&&m.title||""}var g=e.uri;if(l(g)||"string"!=typeof g){var v=a3();g=e.uri=v&&v.href||""}if(!o.isPerformanceTimingSupported()){t.sendPageViewInternal(e,r),p(),a.throwInternal(h.WARNING,sL,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var y=!1,b=o.getPerformanceTiming().navigationStart;b>0&&(s=l1.GetDuration(b,+new Date),o.shouldCollectDuration(s)||(s=void 0)),l(r)||l(r.duration)||(c=r.duration),(n||!isNaN(c))&&(isNaN(c)&&(r||(r={}),r.duration=s),t.sendPageViewInternal(e,r),p(),y=!0);var x=6e4;r||(r={}),f(function(){var n=!1;try{if(o.isPerformanceTimingDataReady()){n=!0;var l={name:u,uri:g};o.populatePageViewPerformanceEvent(l),l.isValid||y?(y||(r.duration=l.durationMs,t.sendPageViewInternal(e,r)),d||(t.sendPageViewPerformanceInternal(l,r),d=!0)):(r.duration=s,t.sendPageViewInternal(e,r))}else b>0&&l1.GetDuration(b,+new Date)>x&&(n=!0,y||(r.duration=x,t.sendPageViewInternal(e,r)))}catch(e){a.throwInternal(h.CRITICAL,sG,"trackPageView failed on page load calculation: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}return n})}})}return e}(),cx=function(){function e(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}return e.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(e){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+lJ.dump(e))}},e.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(e){return this._logger.warnToConsole("Call to restart failed: "+lJ.dump(e)),null}},e.prototype.startPageVisitTimer=function(e,t){try{if(lJ.canUseSessionStorage()){if(null!=lJ.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new cC(e,t),r=a7().stringify(n);lJ.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,r)}}catch(e){this._logger.warnToConsole("Call to start failed: "+lJ.dump(e))}},e.prototype.stopPageVisitTimer=function(){try{if(lJ.canUseSessionStorage()){var e=s_.dateNow(),t=lJ.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t&&a9()){var n=a7().parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,lJ.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}}return null}catch(e){return this._logger.warnToConsole("Stop page visit timer failed: "+lJ.dump(e)),null}},e}(),cC=function(){return function(e,t){this.pageVisitStartTime=s_.dateNow(),this.pageName=e,this.pageUrl=t}}(),ck=function(){function e(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}return e.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(t||n){if(t)var r=t.duration,o=l1.GetDuration(t.startTime,t.connectEnd),a=l1.GetDuration(t.requestStart,t.responseStart),s=l1.GetDuration(t.responseStart,t.responseEnd),l=l1.GetDuration(t.responseEnd,t.loadEventEnd);else var r=l1.GetDuration(n.navigationStart,n.loadEventEnd),o=l1.GetDuration(n.navigationStart,n.connectEnd),a=l1.GetDuration(n.requestStart,n.responseStart),s=l1.GetDuration(n.responseStart,n.responseEnd),l=l1.GetDuration(n.responseEnd,n.loadEventEnd);0===r?this._logger.throwInternal(h.WARNING,sM,"error calculating page view performance.",{total:r,network:o,request:a,response:s,dom:l}):this.shouldCollectDuration(r,o,a,s,l)?r<Math.floor(o)+Math.floor(a)+Math.floor(s)+Math.floor(l)?this._logger.throwInternal(h.WARNING,sB,"client performance math error.",{total:r,network:o,request:a,response:s,dom:l}):(e.durationMs=r,e.perfTotal=e.duration=lJ.msToTimeSpan(r),e.networkConnect=lJ.msToTimeSpan(o),e.sentRequest=lJ.msToTimeSpan(a),e.receivedResponse=lJ.msToTimeSpan(s),e.domProcessing=lJ.msToTimeSpan(l),e.isValid=!0):this._logger.throwInternal(h.WARNING,sX,"Invalid page load duration value. Browser perf data won't be sent.",{total:r,network:o,request:a,response:s,dom:l})}},e.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?a8().timing:null},e.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?a8().getEntriesByType("navigation")[0]:null},e.prototype.isPerformanceNavigationTimingSupported=function(){var e=a8();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0},e.prototype.isPerformanceTimingSupported=function(){var e=a8();return e&&e.timing},e.prototype.isPerformanceTimingDataReady=function(){var e=a8(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t.navigationStart>0&&t.responseStart>0&&t.requestStart>0&&t.loadEventEnd>0&&t.responseEnd>0&&t.connectEnd>0&&t.domLoading>0},e.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a2()||{},r=["googlebot","adsbot-google","apis-google","mediapartners-google"],o=n.userAgent,a=!1;if(o)for(var s=0;s<r.length;s++)a=a||-1!==o.toLowerCase().indexOf(r[s]);if(a)return!1;for(var s=0;s<e.length;s++)if(e[s]<0||e[s]>=this.MAX_DURATION_ALLOWED)return!1;return!0},e}(),cw="duration";function cS(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var c_=function(e){function t(){var t=e.call(this)||this;t.identifier=cy,t.priority=180,t.autoRoutePVDelay=500,t._trackAjaxAttempts=0;var n=a3();return t._prevUri=n&&n.href||"",t}return __extends(t,e),t.getDefaultConfig=function(e){return e||(e={}),e.sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=lJ.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=lJ.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=lJ.stringToBoolOrDefault(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=lJ.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isCookieUseDisabled=lJ.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=lJ.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=lJ.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=lJ.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},t.prototype.processTelemetry=function(e,t){var n=this;ls(this.core,function(){return n.identifier+":processTelemetry"},function(){var r=!1,o=n._telemetryInitializers.length;t=n._getTelCtx(t);for(var a=0;a<o;++a){var s=n._telemetryInitializers[a];if(s)try{if(!1===s.apply(null,[e])){r=!0;break}}catch(e){t.diagLog().throwInternal(h.CRITICAL,s2,"One of telemetry initializers failed, telemetry item will not be sent: "+lJ.getExceptionName(e),{exception:lJ.dump(e)},!0)}}r||n.processNext(e,t)},function(){return{item:e}},!e.sync)},t.prototype.trackEvent=function(e,t){try{var n=cg.create(e,l6.dataType,l6.envelopeType,this.diagLog(),t);this.core.track(n)}catch(e){this.diagLog().throwInternal(h.WARNING,sK,"trackTrace failed, trace will not be collected: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}},t.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(e){this.diagLog().throwInternal(h.CRITICAL,sH,"startTrackEvent failed, event will not be collected: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}},t.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,void 0,t)}catch(e){this.diagLog().throwInternal(h.CRITICAL,sz,"stopTrackEvent failed, event will not be collected: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}},t.prototype.trackTrace=function(e,t){try{var n=cg.create(e,cf.dataType,cf.envelopeType,this.diagLog(),t);this.core.track(n)}catch(e){this.diagLog().throwInternal(h.WARNING,sK,"trackTrace failed, trace will not be collected: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}},t.prototype.trackMetric=function(e,t){try{var n=cg.create(e,cc.dataType,cc.envelopeType,this.diagLog(),t);this.core.track(n)}catch(e){this.diagLog().throwInternal(h.CRITICAL,sW,"trackMetric failed, metric will not be collected: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}},t.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,__assign({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(e){this.diagLog().throwInternal(h.CRITICAL,sq,"trackPageView failed, page view will not be collected: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}},t.prototype.sendPageViewInternal=function(e,t,n){var r=a0();r&&(e.refUri=void 0===e.refUri?r.referrer:e.refUri);var o=cg.create(e,cd.dataType,cd.envelopeType,this.diagLog(),t,n);this.core.track(o),this._trackAjaxAttempts=0},t.prototype.sendPageViewPerformanceInternal=function(e,t,n){var r=cg.create(e,ch.dataType,ch.envelopeType,this.diagLog(),t,n);this.core.track(r)},t.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(e){this.diagLog().throwInternal(h.CRITICAL,sq,"trackPageViewPerformance failed, page view will not be collected: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}},t.prototype.startTrackPage=function(e){try{if("string"!=typeof e){var t=a0();e=t&&t.title||""}this._pageTracking.start(e)}catch(e){this.diagLog().throwInternal(h.CRITICAL,sV,"startTrackPage failed, page view may not be collected: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}},t.prototype.stopTrackPage=function(e,t,n,r){try{if("string"!=typeof e){var o=a0();e=o&&o.title||""}if("string"!=typeof t){var a=a3();t=a&&a.href||""}this._pageTracking.stop(e,t,n,r),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(e){this.diagLog().throwInternal(h.CRITICAL,sU,"stopTrackPage failed, page view will not be collected: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}},t.prototype.sendExceptionInternal=function(e,t,n){var r=new co(this.diagLog(),e.exception||Error(lJ.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),o=cg.create(r,co.dataType,co.envelopeType,this.diagLog(),t,n);this.core.track(o)},t.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(e){this.diagLog().throwInternal(h.CRITICAL,sj,"trackException failed, exception will not be collected: "+lJ.getExceptionName(e),{exception:lJ.dump(e)})}},t.prototype._onerror=function(e){try{var t={url:e&&e.url||(a0()||{}).URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};if(lJ.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error))this._sendCORSException(t.url);else{if(!lJ.isError(e.error)){var n="window.onerror@"+t.url+":"+e.lineNumber+":"+(e.columnNumber||0);e.error=Error(e.message),e.error.stack=n}this.trackException({exception:e.error,severityLevel:g.Error},t)}}catch(t){var r=e.error?e.error.name+", "+e.error.message:"null";this.diagLog().throwInternal(h.CRITICAL,sF,"_onError threw exception while logging error, error will not be collected: "+lJ.getExceptionName(t),{exception:lJ.dump(t),errorString:r})}},t.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},t.prototype.initialize=function(n,r,o,a){var s=this;if(!this.isInitialized()){if(s_.isNullOrUndefined(r))throw Error("Error initializing");e.prototype.initialize.call(this,n,r,o,a),this.setInitialized(!1);var l=this._getTelCtx(),c=this.identifier;this._globalconfig={instrumentationKey:n.instrumentationKey,endpointUrl:n.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=l.getExtCfg(c);var u=t.getDefaultConfig();void 0!==u&&(sS(u,function(e,t){s.config[e]=l.getConfig(c,e,t)}),this._globalconfig&&sS(u,function(e,t){void 0===s._globalconfig[e]&&(s._globalconfig[e]=t)})),this.config.isCookieUseDisabled&&lJ.disableCookies(),this.config.isStorageUseDisabled&&lJ.disableStorage();var d={instrumentationKey:function(){return n.instrumentationKey},accountId:function(){return s.config.accountId||n.accountId},sessionRenewalMs:function(){return s.config.sessionRenewalMs||n.sessionRenewalMs},sessionExpirationMs:function(){return s.config.sessionExpirationMs||n.sessionExpirationMs},sampleRate:function(){return s.config.samplingPercentage||n.samplingPercentage},cookieDomain:function(){return s.config.cookieDomain||n.cookieDomain},sdkExtension:function(){return s.config.sdkExtension||n.sdkExtension},isBrowserLinkTrackingEnabled:function(){return s.config.isBrowserLinkTrackingEnabled||n.isBrowserLinkTrackingEnabled},appId:function(){return s.config.appId||n.appId}};this._pageViewPerformanceManager=new ck(this.core),this._pageViewManager=new cb(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new cx(this.diagLog(),function(e,t,n){return s.trackPageVisitTime(e,t,n)}),this._telemetryInitializers=this._telemetryInitializers||[],this._addDefaultTelemetryInitializers(d),this._eventTracking=new cE(this.diagLog(),"trackEvent"),this._eventTracking.action=function(e,t,n,r){r||(r={}),r[cw]=n.toString(),s.trackEvent({name:e,properties:r})},this._pageTracking=new cE(this.diagLog(),"trackPageView"),this._pageTracking.action=function(e,t,n,r,o){s_.isNullOrUndefined(r)&&(r={}),r[cw]=n.toString();var a={name:e,uri:t,properties:r,measurements:o};s.sendPageViewInternal(a,r)};var p=aJ(),f=a4(),h=a3(),m=this;if(!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&p){var g=p.onerror;p.onerror=function(e,t,n,r,o){var a=g&&g(e,t,n,r,o);return!0!==a&&m._onerror({message:e,url:t,lineNumber:n,columnNumber:r,error:o}),a},this.config.autoExceptionInstrumented=!0}if(!1===this.config.disableExceptionTracking&&!0===this.config.enableUnhandledPromiseRejectionTracking&&!this.config.autoUnhandledPromiseInstrumented&&p){var v="onunhandledrejection",y=p[v];p[v]=function(e){var t=y&&y.call(p,e);return!0!==t&&m._onerror({message:e.reason.toString(),error:e.reason instanceof Error?e.reason:Error(e.reason.toString()),url:h?h.href:"",lineNumber:0,columnNumber:0}),t},this.config.autoUnhandledPromiseInstrumented=!0}if(!0===this.config.enableAutoRouteTracking&&f&&s_.isFunction(f.pushState)&&s_.isFunction(f.replaceState)&&p&&"u">typeof Event){var b=this;s_.arrForEach(o,function(e){e.identifier===cv&&(s._properties=e)}),f.pushState=function(e){return function(){var t=e.apply(this,arguments);return cS(p,lJ.createDomEvent(b.config.namePrefix+"pushState")),cS(p,lJ.createDomEvent(b.config.namePrefix+"locationchange")),t}}(f.pushState),f.replaceState=function(e){return function(){var t=e.apply(this,arguments);return cS(p,lJ.createDomEvent(b.config.namePrefix+"replaceState")),cS(p,lJ.createDomEvent(b.config.namePrefix+"locationchange")),t}}(f.replaceState),p.addEventListener&&(p.addEventListener(b.config.namePrefix+"popstate",function(){cS(p,lJ.createDomEvent(b.config.namePrefix+"locationchange"))}),p.addEventListener(b.config.namePrefix+"locationchange",function(){b._properties&&b._properties.context&&b._properties.context.telemetryTrace&&(b._properties.context.telemetryTrace.traceID=lJ.generateW3CId(),b._properties.context.telemetryTrace.name=h&&h.pathname||"_unknown_"),s._currUri&&(s._prevUri=s._currUri),s._currUri=h&&h.href||"",setTimeout((function(e){b.trackPageView({refUri:e,properties:{duration:0}})}).bind(s,s._prevUri),b.autoRoutePVDelay)}))}this.setInitialized(!0)}},t.prototype.trackPageVisitTime=function(e,t,n){var r={PageName:e,PageUrl:t};this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},r)},t.prototype._addDefaultTelemetryInitializers=function(e){if(!e.isBrowserLinkTrackingEnabled()){var t=["/browserLinkSignalR/","/__browserLink/"],n=function(e){if(e.baseType===cp.dataType){var n=e.baseData;if(n){for(var r=0;r<t.length;r++)if(n.target&&n.target.indexOf(t[r])>=0)return!1}}return!0};this._addTelemetryInitializer(n)}},t.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},t.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:void 0},n=cg.create(t,co.dataType,co.envelopeType,this.diagLog(),{url:e});this.core.track(n)},t.Version="2.5.11",t}(lv),cE=function(){function e(e,t){this._name=t,this._events={},this._logger=e}return e.prototype.start=function(e){void 0!==this._events[e]&&this._logger.throwInternal(h.WARNING,s0,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},e.prototype.stop=function(e,t,n,r){var o=this._events[e];if(isNaN(o))this._logger.throwInternal(h.WARNING,s1,"stop was called without a corresponding start.",{name:this._name,key:e},!0);else{var a=+new Date,s=l1.GetDuration(o,a);this.action(e,t,s,n,r)}delete this._events[e],this._events[e]=void 0},e}(),cP="1.0",cI="2.0",cT=200;function cD(e,t){cA(e),rI(t,function(t,n){tV.isObject(e[t])?cA(e[t]):delete e[t]})}function cA(e){tH(e,function(t,n){rz(n)&&("{}"!==JSON.stringify(n)||"callback"===t)||delete e[t]})}function cR(e,t){var n=e.left,r=e.top,o=e.right,a=e.bottom,s=t.left,l=t.top;return Math.max(0,Math.min(o,t.right)-Math.max(n,s))*Math.max(0,Math.min(a,t.bottom)-Math.max(r,l))}function cN(e){return cB(e,cM)}function cB(e,t,n){var r=e;if(r){for(r=cF(r);!t(r,n);)if(!(r=cF(r=r.parentNode))||!r.getAttribute)return null;return r}}function cM(e){return"A"===e.nodeName}function cF(e){return e}function cO(e,t){return cR((e=cF(e)).getBoundingClientRect(),t)>0}function cL(e,t){var n;return e&&e[t]&&(n=e[t],delete e[t]),n}function cH(e){return"which"in e?3===e.which:"button"in e?2===e.button:void 0}function cz(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}function cV(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}function cU(e){if("keyCode"in e)return 13===e.keyCode}function cj(e){if("keyCode"in e)return 32===e.keyCode}function cW(e,t){return!!rz(cq(e,t))}function cq(e,t){return cB(e,cG,t)}function cG(e,t){var n=e.getAttribute(t);return rz(n)||""===n}function cK(e){return"["+e+"]"}function cX(e,t,n,r){var o;return function(){var a=arguments,s=function(){o=0,t&&t.apply(r,a)},l=!o;clearTimeout(o),o=setTimeout(s,n),l&&e&&e.apply(r,a)}}function cY(){var e={h:0,v:0},t=to(),n=ta();return n&&t&&(e={h:parseInt(n.body.scrollLeft||n.documentElement.scrollLeft||t.pageXOffset,10),v:parseInt(n.body.scrollTop||n.documentElement.scrollTop||t.pageYOffset,10)}),e}function c$(){var e={h:0,w:0},t=to(),n=ta();if(t&&n&&t.screen){var r=n.body||{},o=n.documentElement||{};e.h=t.innerHeight||r.clientHeight||o.clientHeight,e.w=t.innerWidth||r.clientWidth||o.clientWidth}return e}function cQ(e){return{top:0,bottom:e.h,left:0,right:e.w}}var cJ="CL",cZ="CR",c0="CM",c1="S",c2="R",c5="KE",c4="KS";!function(e){e[e.PAGE_ACTION=0]="PAGE_ACTION",e[e.CONTENT_UPDATE=1]="CONTENT_UPDATE"}(v||(v={}));var c3={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function c6(e){var t=e;if(t){var n=cN(t);if(1===n.length){if(n[0].href)return n[0].href;else if(n[0].src)return n[0].src}}return""}function c8(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");if(!rz(t))return!1;if("pii"===t.toLowerCase())return!0;return!1}catch(e){return!1}}function c9(e,t){return e.coreData&&e.coreData.requestUri&&""!==e.coreData.requestUri?e.coreData.requestUri:c7(e,t)}function c7(e,t){if(!t)return null;var n=t.protocol+"//"+(t.hostname||t.host)+(rz(t.port)?":"+t.port:"")+t.pathname;if(e.urlCollectHash&&(n+=t.hash||""),e.urlCollectQuery){var r=t.search;if(!r){var o=t.hash||"",a=o.indexOf("?");-1!==a&&(r=o.slice(a))}return n+r}return n}function ue(e,t){if(t&&t.pageName)return t.pageName;if(e.callback&&"function"==typeof e.callback.pageName)return e.callback.pageName();if(e.coreData&&e.coreData.pageName)return e.coreData.pageName;var n=(tc()||{}).pathname||"",r=n.split("/");return r&&""!==r[r.length-1]?r[r.length-1]:"Undefined"}function ut(e){return e.callback&&"function"==typeof e.callback.signedinStatus?e.callback.signedinStatus():e.isLoggedIn}function un(e,t){var n,o="",a={},s=[],l=e.cookiesToCollect;!1===e.shareAuthStatus?s=l:rI(l,function(e){"ANON"!==e&&s.push(e)});try{try{rH&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(s=s.concat(window.varCustomerCookies))}catch(e){t.throwInternal(r.CRITICAL,rv.FailedToGetCookies,"Failed to get cookies ")}rI(s,function(e){!a.hasOwnProperty(e)&&(a[e]="",rL&&(n=decodeURIComponent(document.cookie.replace(RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1")),""!==n&&(o+=e+"="+n+";")))})}catch(e){t.throwInternal(r.CRITICAL,rv.FailedToGetCookies,"Failed to get cookies ")}return o}function ur(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=c6(e);break;case"INPUT":var n=e.type;if(n&&c3[n.toUpperCase()]){var r=tc()||{};t=e.form?e.form.action||r.pathname||"":r.pathname||""}}return t}function uo(e){ui(function(){if(rL&&"complete"===document.readyState)e();else{var t=to();t&&(t.addEventListener?t.addEventListener("load",function(){e()}):t.attachEvent&&t.attachEvent("onload",function(){e()}))}})}function ui(e){var t=ta()||{};/in/.test(t.readyState)?setTimeout(function(){ui(e)},100):e.call()}var ua="data-bi-dnt",us={isShortNames:!1,id:"data-bi-id",areaName:"data-bi-area",slotNumber:"data-bi-slot",contentName:"data-bi-name",contentSource:"data-bi-source",templateName:"data-bi-view",productId:"data-bi-product",contentType:"data-bi-type",parentId:"data-bi-parentid",parentName:"data-bi-parentname"},ul={isShortNames:!0,id:"data-bi-id",areaName:"data-bi-an",slotNumber:"data-bi-sn",contentName:"data-bi-cn",contentSource:"data-bi-cs",templateName:"data-bi-tn",productId:"data-bi-pid",contentType:"data-bi-ct",parentId:"data-bi-pi",parentName:"data-bi-pn"},uc="parentId",uu="parentName",ud="pI",up="pN",uf=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?ul:us}return e.prototype.getMetadata=function(){var e={},t={};return rL&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),rZ(!0,t,e)},e.prototype.getVisibleContent=function(){var e=cQ(c$()),t=null;rL&&(t=document.querySelectorAll(cK(this._contentBlobFieldNames.areaName)+","+cK(this._contentBlobFieldNames.slotNumber)+","+cK(this._config.biBlobAttributeTag)));var n=[];if(t)for(var r=0;r<t.length;r++){var o=t[r];if(!cW(o,ua)&&cO(o,e)){var a=this.getElementContent(o,v.CONTENT_UPDATE);a&&n.push(a)}}return n},e.prototype.getElementContent=function(e,t){if(!e)return{};var n,o,a,s={};if(this._isTracked(e))if(this._isTrackedWithDataM(e)){o=(n=e).getAttribute(this._config.biBlobAttributeTag);try{s=JSON.parse(o)}catch(e){this._traceLogger.throwInternal(r.CRITICAL,rv.CannotParseBiBlobValue,"Can not parse "+o)}}else this._isTrackedWithDataBi(e)&&(a=e,s=rZ(s,this._populateElementContentwithDataBi(a,e)));else if((n=cq(e,this._config.biBlobAttributeTag))&&(o=n.getAttribute(this._config.biBlobAttributeTag)),o)try{s=JSON.parse(o)}catch(e){this._traceLogger.throwInternal(r.CRITICAL,rv.CannotParseBiBlobValue,"Can not parse "+o)}else a=cB(e,this._isTrackedWithDataBi),s=rZ(s,this._populateElementContentwithDataBi(a,e));return cA(s),this._config.autoCapture.lineage&&t===v.PAGE_ACTION&&(s=rZ(s,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(s=rZ(s,this._getParentDetails(n||a,s))),s},e.prototype.getLineageDetails=function(e){for(var t,n,o,a=[],s=[],l=">",c=this._config.biBlobAttributeTag,u="data-module-id";e;){var d=e.getAttribute(c)||e[c],p=e.getAttribute(u)||e[u];if(d){try{var f=JSON.parse(d)}catch(e){this._traceLogger.throwInternal(r.CRITICAL,rv.CannotParseDataAttribute,"Can not parse "+d)}f&&(n=f.cN||f.cT,o=f.id||void 0,(n||o)&&(a.push(n),p&&(t=n),s.push(o)))}else n=e.getAttribute(this._contentBlobFieldNames.contentName)||e.getAttribute(this._contentBlobFieldNames.contentType),o=e.getAttribute(this._contentBlobFieldNames.id)||void 0,(n||o)&&(a.push(n),p&&(t=n),s.push(o));e=e.parentElement}return{lineage:a.join(l),lineageById:s.join(l),lineageContainerName:t}},e.prototype._populateElementContentwithDataBi=function(e,t){var n={};if(!e)if(!this._config.useDefaultContentName)return n;else e=t;var o=cq(e,this._contentBlobFieldNames.areaName),a=rZ({},this._getAreaContent(o)),s=this._config.callback.contentName?this._config.callback.contentName(e,this._config.useDefaultContentName):"",l=this._getDefaultContentName(e,this._config.useDefaultContentName);(n={id:e.getAttribute(this._contentBlobFieldNames.id)||e.id||"",aN:a.areaName,sN:e.getAttribute(this._contentBlobFieldNames.slotNumber),cN:s||e.getAttribute(this._contentBlobFieldNames.contentName)||l||e.getAttribute("alt")||"",cS:e.getAttribute(this._contentBlobFieldNames.contentSource)||a.contentSource,tN:a.templateName,pid:e.getAttribute(this._contentBlobFieldNames.productId),cT:e.getAttribute(this._contentBlobFieldNames.contentType)||a.type,pI:e.getAttribute(this._contentBlobFieldNames.parentId),pN:e.getAttribute(this._contentBlobFieldNames.parentName)}).id&&n.aN&&n.sN&&n.cN||this._traceLogger.throwInternal(r.WARNING,rv.InvalidContentBlob,"Invalid content blob.  Missing required attributes (id, aN/area, sN/slot), cN/contentName.  Content information will still be collected!"),this._contentBlobFieldNames.isShortNames||(n={contentId:n.id,areaName:n.aN,slotNumber:n.sN,contentName:n.cN,contentSource:n.cS,templateName:n.tN,productId:n.pid,contentType:n.cT,parentId:n.pI,parentName:n.pN});for(var c,u=0;u<e.attributes.length;u++)if((c=e.attributes[u]).name!==this._contentBlobFieldNames.id&&c.name!==this._contentBlobFieldNames.areaName&&c.name!==this._contentBlobFieldNames.slotNumber&&c.name!==this._contentBlobFieldNames.contentName&&c.name!==this._contentBlobFieldNames.contentSource&&c.name!==this._contentBlobFieldNames.templateName&&c.name!==this._contentBlobFieldNames.productId&&c.name!==this._contentBlobFieldNames.contentType&&c.name!==this._contentBlobFieldNames.parentId&&c.name!==this._contentBlobFieldNames.parentName&&-1!==c.name.indexOf("data-bi-")){var d=c.name.replace("data-bi-","");n[d]=c.value}return n},e.prototype._getMetaDataFromDOM=function(e,t){var n,r={};if(rL){n=document.querySelectorAll("meta");for(var o=0;o<n.length;o++){var a=n[o];a.name&&0===a.name.toLowerCase().indexOf(e)&&(r[t?a.name.replace(e,""):a.name]=a.content)}}return r},e.prototype._getAreaContent=function(e){if(e=cF(e))return{areaName:e.getAttribute(this._contentBlobFieldNames.areaName),templateName:e.getAttribute(this._contentBlobFieldNames.templateName),contentSource:e.getAttribute(this._contentBlobFieldNames.contentSource),product:e.getAttribute(this._contentBlobFieldNames.productId),type:e.getAttribute(this._contentBlobFieldNames.contentType)}},e.prototype._getDefaultContentName=function(e,t){if(!1===t||c8(e)||!e.tagName)return"";var n,r=ta()||{};switch(e.tagName){case"A":n=r.all?e.innerText||e.innerHTML:e.text||e.innerHTML;break;case"IMG":case"AREA":n=e.alt;break;default:n=e.value||e.name||e.alt||e.innerText||e.id}return n.substring(0,cT)},e.prototype._getParentDetails=function(e,t){var n=this._contentBlobFieldNames.isShortNames?ud:uc,r=this._contentBlobFieldNames.isShortNames?up:uu,o=t[n],a=t[r],s={};return o||a||!e?s:this._populateParentInfo(e,n,r)},e.prototype._isTrackedWithDataM=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-m")>=0)return!0;return!1},e.prototype._isTrackedWithDataBi=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._isTracked=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-m")>=0||t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._populateParentInfo=function(e,t,n){var o,a,s={},l=this._config.biBlobAttributeTag,c=cB(e.parentElement,this._isTracked);if(c){var u=c.getAttribute(l)||e[l];if(u){try{var d=JSON.parse(u)}catch(e){this._traceLogger.throwInternal(r.CRITICAL,rv.CannotParseDataAttribute,"Can not parse "+u)}d&&(o=d.id,a=d.cN)}else o=c.getAttribute(this._contentBlobFieldNames.id),a=c.getAttribute(this._contentBlobFieldNames.contentName);o&&(s[t]=o),a&&(s[n]=a)}return s},e}(),uh={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},um=function(){function e(e,t){this._analyticsPlugin=e,this._traceLogger=t}return e.prototype.pageView=function(){this._analyticsPlugin.capturePageView({isAuto:!0})},e.prototype.onLoad=function(){var e=this;uo(function(){e._analyticsPlugin.capturePageViewPerformance({isAuto:!0}),e._analyticsPlugin.captureContentUpdate({isAuto:!0,isDomComplete:!0})})},e.prototype.click=function(){var e=this,t=to(),n=ta();if(t&&t.addEventListener){var r=-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown";t.addEventListener(r,function(t){e._processClick(t)},!1),t.addEventListener("keyup",function(t){e._processClick(t)},!1)}else n&&n.attachEvent&&(n.attachEvent("onclick",function(t){e._processClick(t)}),n.attachEvent("keyup",function(t){e._processClick(t)}))},e.prototype.scroll=function(e){var t=this,n=cX(null,function(){t._analyticsPlugin.captureContentUpdate({isAuto:!0,actionType:c1})},e.scroll,this),r=to();r&&(r.addEventListener?r.addEventListener("scroll",n):window.attachEvent&&window.attachEvent("onscroll",n))},e.prototype.maxScroll=function(e){var t=function(){var t=cY();e.v=e.v>t.v?e.v:t.v},n=to();n&&(n.addEventListener?n.addEventListener("scroll",t):n.attachEvent&&n.attachEvent("onscroll",t))},e.prototype.resize=function(e){var t=this,n=cX(function(){t._analyticsPlugin.captureContentUpdate({isAuto:!0,actionType:c2})},null,e.resize,this),r=to();r&&(r.addEventListener?r.addEventListener("resize",n):r.attachEvent&&r.attachEvent("onresize",n))},e.prototype.onUnload=function(){var e=this;r3(function(){e._analyticsPlugin.capturePageUnload({isAuto:!0})})},e.prototype._processClick=function(e){var t={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},n=to(),r=(e=e||n.event).srcElement||e.target,o={isAuto:!0,clickCoordinateX:e.pageX,clickCoordinateY:e.pageY},a=cH(e);if(a)o.actionType=cZ;else if(cz(e))o.actionType=cJ;else if(cU(e))o.actionType=c5;else if(cj(e))o.actionType=c4;else{if(!cV(e))return;o.actionType=c0}for(;r&&r.tagName;){if(r.control&&t[r.control.tagName.toUpperCase()]&&(r=r.control),t[r.tagName.toUpperCase()]){("INPUT"!==r.tagName.toUpperCase()||uh[r.type.toUpperCase()])&&this._analyticsPlugin.capturePageAction(r,o,{},a);break}r=r.parentElement||r.parentNode}},e}();function ug(e,t,n){var r="";return t&&t[n]?r=t[n]:e&&(r=e[n]),r}!function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.NAVIGATIONBACK=1]="NAVIGATIONBACK",e[e.NAVIGATION=2]="NAVIGATION",e[e.NAVIGATIONFORWARD=3]="NAVIGATIONFORWARD",e[e.APPLY=4]="APPLY",e[e.REMOVE=5]="REMOVE",e[e.SORT=6]="SORT",e[e.EXPAND=7]="EXPAND",e[e.REDUCE=8]="REDUCE",e[e.CONTEXTMENU=9]="CONTEXTMENU",e[e.TAB=10]="TAB",e[e.COPY=11]="COPY",e[e.EXPERIMENTATION=12]="EXPERIMENTATION",e[e.PRINT=13]="PRINT",e[e.SHOW=14]="SHOW",e[e.HIDE=15]="HIDE",e[e.MAXIMIZE=16]="MAXIMIZE",e[e.MINIMIZE=17]="MINIMIZE",e[e.BACKBUTTON=18]="BACKBUTTON",e[e.STARTPROCESS=20]="STARTPROCESS",e[e.PROCESSCHECKPOINT=21]="PROCESSCHECKPOINT",e[e.COMPLETEPROCESS=22]="COMPLETEPROCESS",e[e.SCENARIOCANCEL=23]="SCENARIOCANCEL",e[e.DOWNLOADCOMMIT=40]="DOWNLOADCOMMIT",e[e.DOWNLOAD=41]="DOWNLOAD",e[e.SEARCHAUTOCOMPLETE=60]="SEARCHAUTOCOMPLETE",e[e.SEARCH=61]="SEARCH",e[e.SEARCHINITIATE=62]="SEARCHINITIATE",e[e.TEXTBOXINPUT=63]="TEXTBOXINPUT",e[e.PURCHASE=80]="PURCHASE",e[e.ADDTOCART=81]="ADDTOCART",e[e.VIEWCART=82]="VIEWCART",e[e.ADDWISHLIST=83]="ADDWISHLIST",e[e.FINDSTORE=84]="FINDSTORE",e[e.CHECKOUT=85]="CHECKOUT",e[e.REMOVEFROMCART=86]="REMOVEFROMCART",e[e.PURCHASECOMPLETE=87]="PURCHASECOMPLETE",e[e.VIEWCHECKOUTPAGE=88]="VIEWCHECKOUTPAGE",e[e.VIEWCARTPAGE=89]="VIEWCARTPAGE",e[e.VIEWPDP=90]="VIEWPDP",e[e.UPDATEITEMQUANTITY=91]="UPDATEITEMQUANTITY",e[e.INTENTTOBUY=92]="INTENTTOBUY",e[e.PUSHTOINSTALL=93]="PUSHTOINSTALL",e[e.SIGNIN=100]="SIGNIN",e[e.SIGNOUT=101]="SIGNOUT",e[e.SOCIALSHARE=120]="SOCIALSHARE",e[e.SOCIALLIKE=121]="SOCIALLIKE",e[e.SOCIALREPLY=122]="SOCIALREPLY",e[e.CALL=123]="CALL",e[e.EMAIL=124]="EMAIL",e[e.COMMUNITY=125]="COMMUNITY",e[e.SOCIALFOLLOW=126]="SOCIALFOLLOW",e[e.VOTE=140]="VOTE",e[e.SURVEYINITIATE=141]="SURVEYINITIATE",e[e.SURVEYCOMPLETE=142]="SURVEYCOMPLETE",e[e.REPORTAPPLICATION=143]="REPORTAPPLICATION",e[e.REPORTREVIEW=144]="REPORTREVIEW",e[e.SURVEYCHECKPOINT=145]="SURVEYCHECKPOINT",e[e.CONTACT=160]="CONTACT",e[e.REGISTRATIONINITIATE=161]="REGISTRATIONINITIATE",e[e.REGISTRATIONCOMPLETE=162]="REGISTRATIONCOMPLETE",e[e.CANCELSUBSCRIPTION=163]="CANCELSUBSCRIPTION",e[e.RENEWSUBSCRIPTION=164]="RENEWSUBSCRIPTION",e[e.CHANGESUBSCRIPTION=165]="CHANGESUBSCRIPTION",e[e.REGISTRATIONCHECKPOINT=166]="REGISTRATIONCHECKPOINT",e[e.CHATINITIATE=180]="CHATINITIATE",e[e.CHATEND=181]="CHATEND",e[e.TRIALSIGNUP=200]="TRIALSIGNUP",e[e.TRIALINITIATE=201]="TRIALINITIATE",e[e.SIGNUP=210]="SIGNUP",e[e.FREESIGNUP=211]="FREESIGNUP",e[e.PARTNERREFERRAL=220]="PARTNERREFERRAL",e[e.LEARNLOWFUNNEL=230]="LEARNLOWFUNNEL",e[e.LEARNHIGHFUNNEL=231]="LEARNHIGHFUNNEL",e[e.SHOPPINGINTENT=232]="SHOPPINGINTENT",e[e.VIDEOSTART=240]="VIDEOSTART",e[e.VIDEOPAUSE=241]="VIDEOPAUSE",e[e.VIDEOCONTINUE=242]="VIDEOCONTINUE",e[e.VIDEOCHECKPOINT=243]="VIDEOCHECKPOINT",e[e.VIDEOJUMP=244]="VIDEOJUMP",e[e.VIDEOCOMPLETE=245]="VIDEOCOMPLETE",e[e.VIDEOBUFFERING=246]="VIDEOBUFFERING",e[e.VIDEOERROR=247]="VIDEOERROR",e[e.VIDEOMUTE=248]="VIDEOMUTE",e[e.VIDEOUNMUTE=249]="VIDEOUNMUTE",e[e.VIDEOFULLSCREEN=250]="VIDEOFULLSCREEN",e[e.VIDEOUNFULLSCREEN=251]="VIDEOUNFULLSCREEN",e[e.VIDEOREPLAY=252]="VIDEOREPLAY",e[e.VIDEOPLAYERLOAD=253]="VIDEOPLAYERLOAD",e[e.VIDEOPLAYERCLICK=254]="VIDEOPLAYERCLICK",e[e.VIDEOVOLUMECONTROL=255]="VIDEOVOLUMECONTROL",e[e.VIDEOAUDIOTRACKCONTROL=256]="VIDEOAUDIOTRACKCONTROL",e[e.VIDEOCLOSEDCAPTIONCONTROL=257]="VIDEOCLOSEDCAPTIONCONTROL",e[e.VIDEOCLOSEDCAPTIONSTYLE=258]="VIDEOCLOSEDCAPTIONSTYLE",e[e.VIDEORESOLUTIONCONTROL=259]="VIDEORESOLUTIONCONTROL",e[e.VIRTUALEVENTJOIN=260]="VIRTUALEVENTJOIN",e[e.VIRTUALEVENTEND=261]="VIRTUALEVENTEND",e[e.IMPRESSION=280]="IMPRESSION",e[e.CLICK=281]="CLICK",e[e.RICHMEDIACOMPLETE=282]="RICHMEDIACOMPLETE",e[e.ADBUFFERING=283]="ADBUFFERING",e[e.ADERROR=284]="ADERROR",e[e.ADSTART=285]="ADSTART",e[e.ADCOMPLETE=286]="ADCOMPLETE",e[e.ADSKIP=287]="ADSKIP",e[e.ADTIMEOUT=288]="ADTIMEOUT",e[e.OTHER=300]="OTHER"}(y||(y={}));var uv=function(){function e(e,t,n,r,o,a,s){this._webAnalyticsPlugin=e,this._config=t,this._contentHandler=n,this._id=r,this._pageTagsCallback=o,this._metaTags=a,this._traceLogger=s,this._pageTags={}}return e.prototype._setBasicProperties=function(e,t){e.ver=cP,e.id=this._id.getLastPageViewId(),rz(e.name)||(e.name=ue(this._config,t)),!rz(e.uri)&&rH&&(e.uri=c9(this._config,tc()))},e.prototype._setCommonProperties=function(e,t,n){var r=this;r._setBasicProperties(e,n),r._setPageTags(e,n),r._pageTypeMetaTag=ug(r._metaTags,r._config.coreData,"pageType"),r._marketMetaTag=ug(r._metaTags,r._config.coreData,"market"),r._behaviorMetaTag=ug(r._metaTags,r._config.coreData,"behavior"),rz(n.pageType)&&(e.pageType=n.pageType),rz(r._pageTypeMetaTag)&&!rz(e.pageType)&&(e.pageType=r._pageTypeMetaTag),rz(r._marketMetaTag)&&(e.market=r._marketMetaTag),e.isLoggedIn=ut(r._config),t.cookieEnabled=rK()},e.prototype._setPageTags=function(e,t){var n=this;n._config.coreData&&n._config.coreData.pageTags&&(n._pageTags=rZ(!0,n._pageTags,n._config.coreData.pageTags)),n._pageTagsCallback&&(n._pageTags=rZ(!0,n._pageTags,n._pageTagsCallback())),rz(t.pageTags)&&(n._pageTags=rZ(!0,n._pageTags,t.pageTags)),n._metaTags&&(n._pageTags.metaTags={},tH(n._metaTags,function(e,t){"behavior"!==e&&"market"!==e&&"pageType"!==e&&(n._pageTags.metaTags[e]=t)})),e.properties=e.properties||{},e.properties.pageTags=n._pageTags},e.prototype._getBehavior=function(e){var t;return e&&rz(e.behavior)?t=e.behavior:rz(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if(rz(e)){var t=void 0,n=parseInt(e);if((t=isNaN(n)?y[e]:n)in y)return t}return 0},e}(),uy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.capturePageView=function(e,t){e=rz(e)?e:{};var n={},r=rz(t)?t:{};this._setCommonProperties(n,r,e),n.refUri=rz(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,n.isManual=!e.isAuto;var o=un(this._config,this._traceLogger);o&&(r.cookies=o),r.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(n,r)},t}(uv),ub=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.trackPageAction=function(e,t){var n={};n.web={},n.web.isManual=e.isManual;var r={name:"Ms.Web.PageAction",baseType:"PageActionData",ext:n,data:{},baseData:{},latency:ru};r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.actionType=e.actionType,r.baseData.behavior=e.behavior,r.baseData.clickCoordinates=e.clickCoordinates,r.baseData.content=e.content,r.baseData.contentVer=e.contentVer,r.baseData.targetUri=e.targetUri,tH(t,function(e,t){r.data[e]||(r.data[e]=t)}),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageAction=function(e,t,n,r){t=rz(t)?t:{};var o={},a=rz(n)?n:{};this._setCommonProperties(o,a,t),o.isManual=!t.isAuto,o.behavior=this._getBehavior(t);var s={};if(e=cF(e),r&&(o.behavior=9),e&&(o.targetUri=ur(e),(s=rZ(s=this._contentHandler.getElementContent(e,v.PAGE_ACTION),this._getCustomTags(e)))&&s.bhvr&&!rz(t.behavior))){var l=cL(s,"bhvr");o.behavior=this._getValidBehavior(l)}rz(t.actionType)&&(o.actionType=t.actionType),rz(t.clickCoordinateX)&&rz(t.clickCoordinateY)&&(o.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),o.contentVer=cI;var c=this._config.callback.pageActionContentTags;o.content=cK(JSON.stringify(rZ(t.content||s,"function"==typeof c?c(e):{},t&&t.contentTags?t.contentTags:{}))),a.timeToAction=this._getTimeToClick(),a.refUri=rz(t.refUri)?t.refUri:this._config.coreData.referrerUri;var u=un(this._config,this._traceLogger);u&&(a.cookies=u),this.trackPageAction(o,a)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!c8(e)){for(var n in e.attributes)if(n&&e.attributes[n]){var r=e.attributes[n].name;r&&0===r.toLowerCase().indexOf("ms.")&&(t[r]=e.attributes[n].value)}}e=e.parentElement||e.parentNode}return t},t.prototype._getTimeToClick=function(){var e=td();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return new Date().getTime()-t}return -1},t}(uv),ux=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.trackContentUpdate=function(e,t){var n={};n.web={},n.web.isManual=e.isManual;var r={name:"Ms.Web.ContentUpdate",baseType:"ContentUpdateData",ext:n,data:{},baseData:{},latency:3};rI(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],function(t){r.baseData[t]=e[t]}),tH(t,function(e,t){r.data[e]||(r.data[e]=t)}),this._webAnalyticsPlugin.core.track(r)},t.prototype.captureContentUpdate=function(e,t){e=rz(e)?e:{};var n={},r=rz(t)?t:{};this._setCommonProperties(n,r,e),n.behavior=this._getBehavior(e),rz(e.actionType)&&(n.actionType=e.actionType);var o=c$(),a=cY();n.pageHeight=rL?document.body.scrollHeight:null,n.vpHeight=o.h,n.vpWidth=o.w,n.vScrollOffset=a.v,n.hScrollOffset=a.h,n.contentVer=cI,n.isManual=!e.isAuto;var s=this._getContentFormatted(e.content)||JSON.stringify(this._contentHandler.getVisibleContent());s&&(n.content=s),rz(e.isDomComplete)?r.isDomComplete=e.isDomComplete:r.isDomComplete=!1,this.trackContentUpdate(n,r)},t.prototype._getContentFormatted=function(e){if(rz(e))if("[object Array]"===Object.prototype.toString.call(e))return JSON.stringify(e);else return cK(JSON.stringify(e))},t}(uv),uC=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,null,r,{},{},o)||this;return l._webAnalyticsPlugin=t,l._config=n,l._id=r,l._traceLogger=o,l._timestamp=a,l._maxScroll=s,l}return __extends(t,e),t.prototype.trackPageUnload=function(e,t){var n={};n.web={},n.web.isManual=e.isManual;var r={name:"Ms.Web.PageUnload",baseType:"PageUnloadData",ext:n,data:{},baseData:{},latency:rp};r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,tH(t,function(e,t){r.data[e]||(r.data[e]=t)}),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageUnload=function(e,t){e=rz(e)?e:{};var n={},r=rz(t)?t:{},o=rL?document.body.scrollHeight:0;if(this._setBasicProperties(n,e),n.isManual=!e.isAuto,r.dwellTime=this._timestamp._recordTimeSpan("dwellTime",!0),r.scrollDepth=e.scrollDepth||this._maxScroll.v.toString()+"/"+o.toString(),r.vpHeight=c$().h,r.vScrollOffset=e.vScrollOffset||this._maxScroll.v,rH){var a=td(),s=a?a.timing:null;s&&s.loadEventStart&&s.navigationStart&&s.loadEventStart>0&&(r.pageLoadTime=s.loadEventStart-s.navigationStart)}this.trackPageUnload(n,r)},t}(uv),uk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=rz(e)?e:{};var n={},r=rz(t)?t:{};this._setBasicProperties(n,e),this._setPageTags(n,e),n.isManual=!e.isAuto,r.behavior=this._getBehavior(e),r.vpHeight=e.vpHeight,r.vpWidth=e.vpWidth,r.framework=e.framework,r.systemTiming=e.systemTiming,r.customTiming=e.customTiming,this._webAnalyticsPlugin._populatePageViewPerformance(n),this._webAnalyticsPlugin.trackPageViewPerformance(n,r)},t}(uv),uw=function(){function e(){this.appUserId=null,this.firstPageView=!1,this.lastPageViewId=rJ(),this.traceId=this.createTraceId()}return e.visitorId=function(){return rQ("MUID")},e.prototype.createTraceId=function(){return rJ().replace(/-/g,"")},e.prototype.getTraceId=function(){return this.traceId},e.prototype.getLastPageViewId=function(){return this.lastPageViewId},e.prototype.initializeIds=function(){this.firstPageView?(this.traceId=this.createTraceId(),this.lastPageViewId=rJ()):this.firstPageView=!0},e.prototype.getMuidUserId=function(){var e=rQ("MUID");return e&&e.length?"t:"+e:e},e.prototype.setAppUserId=function(t){if(this.appUserId=null,t){for(var n=0;n<e.userIdPrefixes.length;n++)if(e.userIdPrefixes[n]===t.substring(0,2)){this.appUserId=t;break}this.appUserId}},e.prototype.setDeviceClass=function(e){e&&(this.deviceClass=e)},e.prototype.getDeviceClass=function(){return this.deviceClass},e.prototype.getAppUserId=function(){return this.appUserId},e.prototype.syncMuid=function(e){var t=tc();if(t){var n=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",r=ta();if(r){var o=r.createElement("IMG");o.style.display="none",o.src=n,o.hidden="",o["aria-hidden"]="true",o.role="presentation"}}},e.prototype.getMuidHost=function(e){return({"microsoft.com":"c1.microsoft.com","xbox.com":"c.xbox.com","live.com":"c.live.com","microsoftstore.com":"c.microsoftstore.com","msn.com":"c.msn.com","windows.com":"c.windows.com","office.com":"c.office.com"})[e]},e.userIdPrefixes=["c:","i:","w:"],e}(),uS=function(){function e(){this._timers=[]}return e.prototype._recordTimeSpan=function(e,t){var n=new Date().getTime();if(t)return n-this._timers[e];this._timers[e]=n},e}(),u_="data-bi-dnt",uE=function(e){function t(){var n,o,a,s,l,c,u,d,p,f,h=e.call(this)||this;h.identifier="WebAnalyticsPlugin",h.version="3.0.2";var m={h:0,v:0},g=!1;return nx(t,h,function(e,t){function v(e){var t={useDefaultContentName:!0,useShortNameForContentBlob:!0,debounceMs:{scroll:600,resize:3e3},biBlobAttributeTag:"data-m",isLoggedIn:!1,shareAuthStatus:!1,cookiesToCollect:["MSFPC","ANON"],autoCapture:{pageView:!0,onLoad:!0,onUnload:!0,click:!0,scroll:!1,resize:!1,lineage:!1,jsError:!0,msTags:!0},callback:{pageName:null,pageActionPageTags:null,pageViewPageTags:null,contentUpdatePageTags:null,pageActionContentTags:null,signedinStatus:null},coreData:{referrerUri:rL?document.referrer:"",requestUri:"",pageName:"",pageType:"",product:"",market:"",pageTags:{}},autoPopulateParentIdAndParentName:!1,syncMuid:!1,muidDomain:"microsoft.com"},n=[];if(tH(t,function(e,t){tV.isObject(t)&&n.push(e)}),e)return cD(e,n),rZ(!0,t,e)}function y(e){var t={};return void 0!==e.isManual&&(t.web={},t.web.isManual=void 0===e.isManual||e.isManual,delete e.isManual),t}function b(){d._recordTimeSpan("dwellTime",!1),m.v=0,g=!1}e._telemetryInitializers=e._telemetryInitializers||[],e.updateCoreDataConfig=function(e){u.coreData=rZ(!0,u.coreData,e)},e.initialize=function(g,y,b){var x=y;g.extensionConfig=g.extensionConfig||[],g.extensionConfig[e.identifier]=g.extensionConfig[e.identifier]||{},e._config=u=v(g.extensionConfig[e.identifier]);var C=u.autoCapture,k=x.getWParam;if(x.getWParam=function(){var e=0;return u.mscomCookies&&(e|=1),e|k()},g.extensionConfig[e.identifier].disableExceptionTracking=!C.jsError,t.initialize(g,y,b),p=p||new uf(u,e.diagLog()),f=f||new um(e,e.diagLog()),u.manageCv){for(var w=0;w<b.length;w++)if("CorrelationVectorPlugin"===b[w].identifier){u.manageCv=!0,c=b[w];break}c||(e.diagLog().throwInternal(r.WARNING,rv.CVPluginNotAvailable,'Automatic Cv management is set to "true" in config.  However, cv plugin is not available. Disabling automatic Cv management'),u.manageCv=!1)}e.id=new uw,d=new uS;var S=p.getMetadata();n=new uy(h,u,p,e.id,u.callback.pageViewPageTags,S,e.diagLog()),o=new ub(h,u,p,e.id,u.callback.pageActionPageTags,S,e.diagLog()),a=new ux(h,u,p,e.id,u.callback.contentUpdatePageTags,S,e.diagLog()),s=new uC(h,u,e.id,e.diagLog(),d,m),l=new uk(h,u,p,e.id,u.callback.pageViewPageTags,S,e.diagLog()),u.syncMuid&&uo(function(){var t=e.id.getMuidHost(u.muidDomain);e.id.syncMuid(t)}),C.pageView&&f.pageView(),C.onLoad&&f.onLoad(),C.click&&f.click(),C.scroll&&f.scroll(u.debounceMs),C.resize&&f.resize(u.debounceMs),(C.onUnload||u.manualPageUnload)&&f.maxScroll(m),C.onUnload&&f.onUnload()},e.processTelemetry=function(t,n){r6(t,e.identifier);var r=t;"PageviewData"===r.baseType?(r.name="Ms.Web.PageView",r.latency=rp):"ExceptionData"===r.baseType?(r.name="Ms.Web.ClientError",r.latency=ru,delete r.baseData.aiDataContract):"PageviewPerformanceData"===r.baseType&&(r.name="Ms.Web.PageViewPerformance",r.latency=ru,delete r.baseData.isValid,delete r.baseData.durationMs);var o=null;"PageviewData"!==r.baseType?u.manageCv&&(o=c.getCv())&&o.increment():u.manageCv&&((o=c.getCv())?o.seed():o=c.getCv());for(var a=!1,s=e._telemetryInitializers.length,l=0;l<s;++l){var d=e._telemetryInitializers[l];if(d&&!1===d.apply(null,[r])){a=!0;break}}a||e.processNext(r,n)},e.addTelemetryInitializer=function(t){e._telemetryInitializers.push(t)},e.trackEvent=function(t,n){t.latency=t.latency||ru,t.baseData=t.baseData||{},t.data=t.data||{},rz(n)&&tH(n,function(e,n){t.data[e]=n}),e.core.track(t)},e.trackPageView=function(n,r){b(),e.id.initializeIds(),n.id=e.id.getLastPageViewId(),t.sendPageViewInternal(n,r,y(n))},e.capturePageView=function(e,t){n.capturePageView(e,t)},e.trackPageViewPerformance=function(e,n){t.sendPageViewPerformanceInternal(e,n,y(e))},e.capturePageViewPerformance=function(e,t){l.capturePageViewPerformance(e,t)},e.trackException=function(e,n){e.id=e.id||rJ(),t.sendExceptionInternal(e,n,y(e))},e.trackPageAction=function(e,t){o.trackPageAction(e,t)},e.capturePageAction=function(e,t,n,r){cW(e,u_)||o.capturePageAction(e,t,n,r)},e.trackContentUpdate=function(e,t){a.trackContentUpdate(e,t)},e.captureContentUpdate=function(e,t){a.captureContentUpdate(e,t)},e.trackPageUnload=function(e,t){g||(g=!0,s.trackPageUnload(e,t))},e.capturePageUnload=function(e,t){g||(g=!0,s.capturePageUnload(e,t))},e._populatePageViewPerformance=function(t){e._pageViewPerformanceManager.populatePageViewPerformanceEvent(t)},e.setContentHandler=function(e){p=e},e.setAutoCaptureHandler=function(e){f=e}}),h}return __extends(t,e),t.prototype.updateCoreDataConfig=function(e){},t.prototype.initialize=function(e,t,n){},t.prototype.processTelemetry=function(e,t){},t.prototype.addTelemetryInitializer=function(e){},t.prototype.trackEvent=function(e,t){},t.prototype.trackPageView=function(e,t){},t.prototype.capturePageView=function(e,t){},t.prototype.trackPageViewPerformance=function(e,t){},t.prototype.capturePageViewPerformance=function(e,t){},t.prototype.trackException=function(e,t){},t.prototype.trackPageAction=function(e,t){},t.prototype.capturePageAction=function(e,t,n,r){},t.prototype.trackContentUpdate=function(e,t){},t.prototype.captureContentUpdate=function(e,t){},t.prototype.trackPageUnload=function(e,t){},t.prototype.capturePageUnload=function(e,t){},t.prototype._populatePageViewPerformance=function(e){},t.prototype.setContentHandler=function(e){},t.prototype.setAutoCaptureHandler=function(e){},t}(c_),uP=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],uI=function(e){function t(){var t=e.call(this)||this;return t._postChannel=new ak,t._propertyManager=new iT,t._webAnalytics=new uE,t}return __extends(t,e),t.prototype.initialize=function(t,n){var o=this,a=this;nA(a,function(){return"ApplicationInsights:initialize"},function(){var s=[a._propertyManager,a._webAnalytics];if(n&&(s=s.concat(n)),t.channels&&t.channels.length>0){for(var l=!1,c=0;c<t.channels[0].length;c++)if(t.channels[0][c].identifier===a._postChannel.identifier){l=!0;break}l||t.channels[0].push(a._postChannel)}else t.channels=[[a._postChannel]];var u=t.extensionConfig=t.extensionConfig||[];u[a._postChannel.identifier]=t?t.channelConfiguration:{},u[a._propertyManager.identifier]=t?t.propertyConfiguration:{},u[a._webAnalytics.identifier]=t?t.webAnalyticsConfiguration:{};try{e.prototype.initialize.call(o,t,s)}catch(e){a.logger.throwInternal(r.CRITICAL,rv.FailedToInitializeSDK,"Failed to initialize SDK."+e)}},function(){return{config:t,extensions:n}})},t.prototype.getPropertyManager=function(){return this._propertyManager},t.prototype.getPostChannel=function(){return this._postChannel},t.prototype.getWebAnalyticsExtension=function(){return this._webAnalytics},t.prototype.addTelemetryInitializer=function(e){this._webAnalytics.addTelemetryInitializer(e)},t.prototype.trackEvent=function(e,t){this._webAnalytics.trackEvent(e,t)},t.prototype.trackPageView=function(e,t){this._webAnalytics.trackPageView(e,t)},t.prototype.trackPageAction=function(e,t){this._webAnalytics.trackPageAction(e,t)},t.prototype.trackContentUpdate=function(e,t){this._webAnalytics.trackContentUpdate(e,t)},t.prototype.trackPageUnload=function(e,t){this._webAnalytics.trackPageUnload(e,t)},t.prototype.trackException=function(e,t){this._webAnalytics.trackException(e,t)},t.prototype.trackPageViewPerformance=function(e,t){this._webAnalytics.trackPageViewPerformance(e,t)},t.prototype.capturePageView=function(e,t){this._webAnalytics.capturePageView(e,t)},t.prototype.capturePageViewPerformance=function(e,t){this._webAnalytics.capturePageViewPerformance(e,t)},t.prototype.capturePageAction=function(e,t,n,r){this._webAnalytics.capturePageAction(e,t,n,r)},t.prototype.captureContentUpdate=function(e,t){this._webAnalytics.captureContentUpdate(e,t)},t.prototype.capturePageUnload=function(e,t){this._webAnalytics.capturePageUnload(e,t)},t.prototype._onerror=function(e){this._webAnalytics._onerror(e)},t.prototype.emptySnippetQueue=function(e){var t=this;function n(){if(e){var n="";tV.isNullOrUndefined(t._snippetVersion)||(n+=t._snippetVersion),tH(t,function(t,n){tV.isString(t)&&!tV.isFunction(n)&&t&&"_"!==t[0]&&-1===uP.indexOf(t)&&(e[t]=n)})}}try{if(n(),rM(e.queue)){for(var r=e.queue.length,o=0;o<r;o++)(0,e.queue[o])();e.queue=void 0,delete e.queue}}catch(e){var a={};e&&rB(e.toString)&&(a.exception=e.toString())}},t.prototype.updateSnippetDefinitions=function(e){var t=this;t.snippet=e,t._snippetVersion=""+(e.sv||e.version||""),tz(e,this,function(e){return e&&-1===uP.indexOf(e)})},t}(on);!function(){try{var e,t=tt();if(t&&"u">typeof JSON&&(e=t.onedsSDK||"oneDSWeb",void 0!==t[e])){var n=t[e],r=new uI;r.updateSnippetDefinitions(n),r.initialize(n.config,n.extensions),t[e]=r,r.emptySnippetQueue(n)}}catch(t){console&&console.warn("Failed to initialize AppInsights JS SDK for instance "+e+t.message)}}();var uT="function",uD="object",uA="undefined",uR="prototype",uN="hasOwnProperty";function uB(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if(n!==uD&&n!==uT)throw TypeError("Object prototype may only be an Object:"+e);function r(){}return r[uR]=e,new r}function uM(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object[uR][uN].call(t,o)&&(e[o]=t[o]);return e}var uF=function(e,t){return(uF=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[uN](n)&&(e[n]=t[n])})(e,t)};function uO(e,t){function n(){this.constructor=e}uF(e,t),e[uR]=null===t?uB(t):(n[uR]=t[uR],new n)}var uL=function(){return typeof globalThis!==uA&&globalThis?globalThis:typeof self!==uA&&self?self:typeof window!==uA&&window?window:typeof n.g!==uA&&n.g?n.g:null}()||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(uL,uM,uO),__assign||(__assign=uL.__assign),__extends||(__extends=uL.__extends);var uH=function(){return function(){}}(),uz=function(){function e(e,t){this._base="",this._currentElement=0,this._base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this._cv1Constants=new uH,this._cv2Constants=new uH,this._cvVersionAtLatestValidityCheck=2,this._traceLogger=t?t.logger:new nE,this._cv1Constants.maxCorrelationVectorLength=63,this._cv1Constants.baseLength=16,this._cv1Constants.validationPattern=RegExp("^["+this._base64CharSet+"]{"+this._cv1Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._cv2Constants.maxCorrelationVectorLength=127,this._cv2Constants.baseLength=22,this._cv2Constants.validationPattern=RegExp("^["+this._base64CharSet+"]{"+this._cv2Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._currentCvConstants=this._cv2Constants,this.init(e)}return e.prototype.isInit=function(){return this.isValid(this.storedCv())},e.prototype.storedCv=function(){return this._base.concat(".",this._currentElement.toString())},e.prototype.getValue=function(){var e=this.storedCv();if(this.isValid(e))return e},e.prototype.getRelatedCv=function(){return this._relatedCv},e.prototype.incrementExternal=function(e){if(this.isValid(e)){var t=e.split("."),n=t.length;t[n-1]=(parseInt(t[n-1],10)+1).toString();for(var r="",o=0;o<n;o++)r+=t[o],o<n-1&&(r+=".");var a=t[0].length===this._cv2Constants.baseLength?this._cv2Constants.maxCorrelationVectorLength:this._cv1Constants.maxCorrelationVectorLength;if(r.length<=a)return r}},e.prototype.canExtend=function(){var e=this.storedCv();return!!this.isValid(e)&&this._isLeqThanMaxCorrelationVectorLength(e.length+2)},e.prototype.canIncrement=function(){return!!this.isValid(this.storedCv())&&this._isLeqThanMaxCorrelationVectorLength(this._base.length+1+(this._currentElement+1+"").length)},e.prototype.setValue=function(e){if(!this.isValid(e))return this._traceLogger.throwInternal(r.WARNING,rv.InvalidCorrelationValue,"Cannot set invalid correlation vector value"),!1;var t=e.lastIndexOf(".");return t>1?(this._base=e.substr(0,t),this._currentElement=parseInt(e.substr(t+1),10)):(this._base=e,this._currentElement=0),!0},e.prototype.setValueLegacy=function(e){return this.setValue(e),this.getValue()},e.prototype.seed=function(){for(var e="",t=0;t<this._currentCvConstants.baseLength;t++)e+=this._base64CharSet.charAt(Math.floor(Math.random()*this._base64CharSet.length));return e},e.prototype.extend=function(){if(this.canExtend())return this._base=this._base.concat(".",this._currentElement.toString()),this._currentElement=0,this.storedCv()},e.prototype.increment=function(){if(this.canIncrement())return this._currentElement=this._currentElement+1,this.storedCv()},e.prototype.validateWithCv1=function(e){if(this._cv1Constants.validationPattern.test(e)&&e.length<=this._cv1Constants.maxCorrelationVectorLength)return!0},e.prototype.validateWithCv2=function(e){if(this._cv2Constants.validationPattern.test(e)&&e.length<=this._cv2Constants.maxCorrelationVectorLength)return!0},e.prototype.useCv1=function(){this._currentCvConstants=this._cv1Constants},e.prototype.useCv2=function(){this._currentCvConstants=this._cv2Constants},e.prototype.isValid=function(e){if(e){var t=e.split(".")[0];if(t){if(16===t.length)return this._cvVersionAtLatestValidityCheck=1,this.validateWithCv1(e);else if(22===t.length)return this._cvVersionAtLatestValidityCheck=2,this.validateWithCv2(e)}}},e.prototype.init=function(e){return e?this.setValue(e):(this._base=this.seed(),this._currentElement=0),this.getValue()},e.prototype.initLegacy=function(e){return this.init(e)},e.prototype._isLeqThanMaxCorrelationVectorLength=function(e){return 1===this._cvVersionAtLatestValidityCheck?e<=this._cv1Constants.maxCorrelationVectorLength:e<=this._cv2Constants.maxCorrelationVectorLength},e}(),uV=function(e){function t(t){var n=e.call(this)||this;return n.identifier="CorrelationVectorPlugin",n.priority=159,n.version="3.0.2",n._cvInitialValue=t,n._cv=n._cvInitialValue?new uz(n._cvInitialValue):new uz,n}return __extends(t,e),t.prototype.initialize=function(t,n,r){e.prototype.initialize.call(this,t,n,r)},t.prototype.processTelemetry=function(e,t){r6(e,this.identifier),e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},!e.ext.mscv.cV&&this._cv&&this._cv.isInit()&&(e.ext.mscv.cV=this._cv.getValue()),this.processNext(e,t)},t.prototype.getCv=function(){return this._cv||this.diagLog().throwInternal(r.WARNING,rv.FailedToInitializeCorrelationVector,"Correlation Vector has not been initialized."),this._cv},t}(nV),uU=function(){function e(){}return e.prototype.getApplicationInsights=function(){return new uI},e.prototype.getCorrelationVectorPlugin=function(e){return new uV(e)},e}(),uj={textFieldStyles:{"font-family":'"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif',"-webkit-font-smoothing":"antialiased","font-size":"14px","font-weight":"400","box-shadow":"none",margin:"0px",padding:"0px 8px","box-sizing":"border-box","border-radius":"0px",border:"none",background:"none transparent",color:"rgb(50, 49, 48)",width:"100%","min-width":"0px","text-overflow":"ellipsis",outline:"0px"},fieldGroupNormalStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"1px solid rgb(96, 94, 92)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},fieldGroupFocusStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"2px solid rgb(0, 120, 212)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},fieldGroupErrorStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"1px solid rgb(164, 38, 44)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},fieldGroupFocusErrorStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"2px solid rgb(164, 38, 44)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},secureIframeDimensions:{width:"100%",height:"32px"}},uW=function(){return function(){this.canCreate=function(e,t,n){return e===K.ElementType.dropdown?J(J({},n),{inlineError:!0,customDropdownOptions:!1,label:!0}):e===K.ElementType.textBox?J(J({},n),{inlineError:!0,customDropdownOptions:!1,label:!0,inlineHelpLink:!0}):e===K.ElementType.buttonGroup?{inlineError:!1,customDropdownOptions:!1,label:!1,inlineHelpLink:!1}:e===K.ElementType.secureProperty?{inlineError:!1,securePropertyHardCodedStyles:uj,inlineHelpLink:!1}:e===K.ElementType.button||e===K.ElementType.checkbox||e===K.ElementType.error||e===K.ElementType.group||e===K.ElementType.heading||e===K.ElementType.helpDialog||e===K.ElementType.hyperlink||e===K.ElementType.label||e===K.ElementType.securePropertyLabel||e===K.ElementType.radio||e===K.ElementType.subheading||e===K.ElementType.text||e===K.ElementType.image||e===K.ElementType.separator||e===K.ElementType.captcha||e===K.ElementType.filePicker?J(J({},n),{inlineError:!1}):null},this.create=function(e,t){switch((0,X.v)(),e){case K.ElementType.button:return x().createElement(ee,J({},t));case K.ElementType.buttonGroup:return x().createElement(et,J({},t));case K.ElementType.checkbox:return x().createElement(en,J({},t));case K.ElementType.dropdown:return x().createElement(ei,J({},t));case K.ElementType.error:return x().createElement(ea,J({},t));case K.ElementType.group:return x().createElement(ec,J({},t));case K.ElementType.heading:return x().createElement(ey,J({},t,{variant:"xLarge"}));case K.ElementType.helpDialog:return x().createElement(er,J({},t));case K.ElementType.hyperlink:return x().createElement(eu,J({},t));case K.ElementType.label:return x().createElement(ed,J({},t));case K.ElementType.securePropertyLabel:return x().createElement(eS,J({},t));case K.ElementType.radio:return x().createElement(em,J({},t));case K.ElementType.subheading:return x().createElement(ey,J({},t,{variant:"large"}));case K.ElementType.text:return x().createElement(ey,J({},t));case K.ElementType.textBox:return x().createElement(eb,J({},t));case K.ElementType.modal:return x().createElement(ep,J({},t));case K.ElementType.panel:return x().createElement(ef,J({},t));case K.ElementType.spinner:return x().createElement(eg,J({},t));case K.ElementType.overlay:return x().createElement(eh,J({},t));case K.ElementType.image:return x().createElement(ex,J({},t));case K.ElementType.separator:return x().createElement(eC,J({},t));case K.ElementType.captcha:return x().createElement(ek,J({},t));case K.ElementType.filePicker:return x().createElement(ew,J({},t));default:return null}},this.getOneDSService=function(){return new uU}}}()},12223(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C,k,w,S,_,E,P,I,T,D,A,R,N,B,M,F,O,L,H,z,V,U,j,W,q,G,K,X,Y,Q,J,Z,ee,et,en,er,eo,ei,ea,es,el,ec,eu,ed,ep,ef,eh,em,eg,ev,ey,eb,ex,eC,ek,ew,eS,e_,eE,eP,eI,eT,eD,eA,eR,eN,eB,eM,eF,eO,eL,eH,ez,eV,eU,ej,eW,eq,eG,eK,eX,eY,e$,eQ,eJ,eZ,e0,e1,e2,e5,e4,e3,e6,e8,e9,e7,te,tt=n(40887),tn=n(2029);n(57221);var tr=n(99870);function to(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function ti(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var ta=to(tt),ts=ti(tt),tl=ti(tn),tc=to(tn),tu=to(tr),td=function(e,t){return(td=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])})(e,t)};function tp(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}td(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var tf=function(){return(tf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function th(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function tm(e,t,n,r){var o,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(a<3?o(s):a>3?o(t,n,s):o(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}function tg(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var tv="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==n.g?n.g:"u">typeof self?self:{};function ty(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tb=function e(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e,t){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C,k,w,S,_,E,P,I,T,D,A,R,N,B,M,F,O,L,H,z,V,U,j,W,q,G,K,X,Y,Q,J,Z,ee,et,en,er,eo,ei,ea,es,el,ec,eu,ed,ep,ef,eh,em,eg,ev,ey,eb,ex,eC,ek,ew,eS,e_,eE,eP,eI,eT,eD,eA,eR,eN,eB,eM,eF,eO,eL,eH,ez,eV,eU,ej,eW,eq,eG,eK,eX,eY,e$,eQ,eJ,eZ,e0,e1,e2=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(ta.default),e5=n(ta.default),e4=n(tu.default),e3="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==tv?tv:"u">typeof self?self:{};function e6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function e8(e,t){return e(t={exports:{}},t.exports),t.exports}e6(e8(function(e){!function(e){!function(t){var n="u">typeof globalThis&&globalThis||void 0!==e&&e||void 0!==e3&&e3||{},r={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function o(e){return e&&DataView.prototype.isPrototypeOf(e)}if(r.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function p(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function h(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){var t=new FileReader,n=f(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}function g(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&o(e)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(r.blob)return this.blob().then(h);throw Error("could not read as ArrayBuffer")},this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return m(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(g(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},r.formData&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[l(e)]},d.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},d.prototype.set=function(e,t){this.map[l(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},d.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},d.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},r.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var b=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(e){var t=e.toUpperCase();return b.indexOf(t)>-1?t:e}function C(e,t){if(!(this instanceof C))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(t=t||{}).body;if(e instanceof C){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new d(t.headers)),this.method=x(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in n)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+new Date().getTime());else{var a=/\?/;this.url+=(a.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function w(e){var t=new d;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}}),t}function S(e,t){if(!(this instanceof S))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},y.call(C.prototype),y.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var _=[301,302,303,307,308];S.redirect=function(e,t){if(-1===_.indexOf(t))throw RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,o){return new Promise(function(a,s){var u=new C(e,o);if(u.signal&&u.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var p=new XMLHttpRequest;function f(){p.abort()}function h(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}if(p.onload=function(){var e={statusText:p.statusText,headers:w(p.getAllResponseHeaders()||"")};0===u.url.indexOf("file://")&&(p.status<200||p.status>599)?e.status=200:e.status=p.status,e.url="responseURL"in p?p.responseURL:e.headers.get("X-Request-URL");var t="response"in p?p.response:p.responseText;setTimeout(function(){a(new S(t,e))},0)},p.onerror=function(){setTimeout(function(){s(TypeError("Network request failed"))},0)},p.ontimeout=function(){setTimeout(function(){s(TypeError("Network request timed out"))},0)},p.onabort=function(){setTimeout(function(){s(new t.DOMException("Aborted","AbortError"))},0)},p.open(u.method,h(u.url),!0),"include"===u.credentials?p.withCredentials=!0:"omit"===u.credentials&&(p.withCredentials=!1),"responseType"in p&&(r.blob?p.responseType="blob":r.arrayBuffer&&(p.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof d||n.Headers&&o.headers instanceof n.Headers)){var m=[];Object.getOwnPropertyNames(o.headers).forEach(function(e){m.push(l(e)),p.setRequestHeader(e,c(o.headers[e]))}),u.headers.forEach(function(e,t){-1===m.indexOf(t)&&p.setRequestHeader(t,e)})}else u.headers.forEach(function(e,t){p.setRequestHeader(t,e)});u.signal&&(u.signal.addEventListener("abort",f),p.onreadystatechange=function(){4===p.readyState&&u.signal.removeEventListener("abort",f)}),p.send(void 0===u._bodyInit?null:u._bodyInit)})}E.polyfill=!0,n.fetch||(n.fetch=E,n.Headers=d,n.Request=C,n.Response=S),t.Headers=d,t.Request=C,t.Response=S,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}("u">typeof self?self:e3)}));var e9=function(e,t){return(e9=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])})(e,t)};function e7(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}e9(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var te=function(){return(te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function tt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function tn(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function tr(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=l(0),s.throw=l(1),s.return=l(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return c([e,t])}}function c(l){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var to=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function ti(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ts(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return s}function tl(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function tc(e){return this instanceof tc?(this.v=e,this):new tc(e)}var td=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},tp=function(e){return(tp=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},tf="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r},th=Object.prototype.hasOwnProperty,tm=Object.prototype.toString,tg=Object.defineProperty,ty=Object.getOwnPropertyDescriptor,tb=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===tm.call(e)},tx=function(e){if(!e||"[object Object]"!==tm.call(e))return!1;var t,n=th.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&th.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||th.call(e,t)},tC=function(e,t){tg&&"__proto__"===t.name?tg(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},tk=function(e,t){if("__proto__"===t){if(!th.call(e,t))return;else if(ty)return ty(e,t).value}return e[t]},tw=function e(){var t,n,r,o,a,s,l=arguments[0],c=1,u=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},c=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});c<u;++c)if(t=arguments[c],null!=t)for(n in t)r=tk(l,n),l!==(o=tk(t,n))&&(d&&o&&(tx(o)||(a=tb(o)))?(a?(a=!1,s=r&&tb(r)?r:[]):s=r&&tx(r)?r:{},tC(l,{name:n,newValue:e(d,s,o)})):void 0!==o&&tC(l,{name:n,newValue:o}));return l};!function(e){e.Unknown="Unknown",e.iFrameMessageHandler="iFrameMessageHandler"}(r||(r={})),function(e){e.forSubmit="forSubmit",e.forDisplay="forDisplay"}(o||(o={})),function(e){e.message="message"}(a||(a={})),function(e){e.forFormat="forFormat",e.forModel="forModel"}(s||(s={})),function(e){e.Error="error",e.Fail="failed",e.Passed="passed"}(l||(l={})),function(e){e.PaymentInstrument="PaymentInstrument",e.Challenge="Challenge",e.Address="Address",e.Profile="Profile",e.PaymentSession="PaymentSession",e.Checkout="Checkout",e.PayeeTaxProfile="PayeeTaxProfile",e.WalletToken="WalletToken"}(c||(c={})),function(e){e.div="pidlddc-div",e.errorDiv="pidlddc-errordiv",e.label="pidlddc-label",e.key="pidlddc-input-key",e.property="pidlddc-input-property",e.dropdown="pidlddc-input-dropdown",e.radio="pidlddc-input-radio",e.radioLabel="pidlddc-radio-label",e.buttonList="pidlddc-input-buttonlist",e.checkBox="pidlddc-input-checkbox",e.textBox="pidlddc-input-text",e.filePicker="pidlddc-input-file",e.staticText="pidlddc-static-text",e.heading="pidlddc-heading",e.subHeading="pidlddc-subheading",e.text="pidlddc-text",e.textGroup="pidlddc-text-group",e.hyperlink="pidlddc-hyperlink",e.image="pidlddc-image",e.error="pidlddc-error",e.separator="pidlddc-separator",e.pageBody="pidlddc-page-body",e.logo="pidlddc-logo-image",e.submitButton="pidlddc-submit-button",e.button="pidlddc-button",e.busyBlock="pidlddc-busy-block",e.errorBlock="pidlddc-error-block",e.errorInlineGroup="pidlddc-error-inlineGroup",e.submitBlock="pidlddc-submit-block",e.helpImage="pidlddc-help-image",e.helpDialogBlock="pidlddc-help-dialog-block",e.helpDialogContentBlock="pidlddc-help-dialog-content-block",e.modalDialogBlock="pidlddc-modal-dialog-block",e.modalDialogContentBlock="pidlddc-modal-dialog-content-block",e.helpDialogClose="pidlddc-help-dialog-close",e.helpImageLink="pidlddc-help-imageLink",e.helpTextLink="pidlddc-help-textLink",e.pageContentBlock="pidlddc-pagecontent-block",e.prefillControl="pidlddc-input-prefillcontrol",e.prefillCheckbox="pidlddc-input-prefillcheckbox",e.prefillDropdown="pidlddc-input-prefilldropdown",e.propertyDiv="pidlddc-div-property",e.dropdownDiv="pidlddc-div-dropdown",e.checkBoxDiv="pidlddc-div-checkbox",e.textBoxDiv="pidlddc-div-textbox",e.securePropertyDiv="pidlddc-div-secureproperty",e.filePickerDiv="pidlddc-div-filepicker",e.imageDiv="pidlddc-div-image",e.logoDiv="pidlddc-div-logo",e.buttonDiv="pidlddc-div-button",e.groupDiv="pidlddc-div-group",e.errorStroke="pidlddc-errorstroke",e.highlighted="pidlddc-highlighted",e.back="pidlddc-back",e.inlineGroup="pidlddc-group-inline",e.inputTextDisabled="pidlddc-input-text-disabled",e.inputSelectDisabled="pidlddc-input-select-disabled",e.displayLogo="pidlddc-input-logo",e.filled="pidlddc-filled",e.iFrame="pidlddc-iFrame",e.secureProperty="pidlddc-secure-property",e.iFrameDiv="pidlddc-div-iFrame",e.captchaDiv="pidlddc-div-captcha",e.audio="pidlddc-audio",e.challengeIFrame="pidlddc-challengeiFrame",e.challengeIFrameDiv="pidlddc-div-challengeiFrame"}(u||(u={})),function(e){e.index="pidlddc-inline-element-",e.taggedClass="pidlddc-"}(d||(d={})),function(e){e.div="pidlddc-div-",e.error="pidlddc-error-",e.label="pidlddc-label-",e.text="pidlddc-text-",e.hyperlink="pidlddc-hyperlink-",e.property="pidlddc-input-",e.button="pidlddc-button-",e.audio="pidlddc-audio-",e.buttongroup="pidlddc-button-group-",e.iFrame="pidlddc-iFrame-",e.challengeiFrame="pidlddc-challengeiFrame-",e.input="input_",e.iframe="iframe_",e.filePicker="filepicker_",e.secureProperty="pidlddc-secure-input-",e.image="pidlddc-image-",e.helpDialog="helpdialog-",e.helpDialogContent="helpdialog-content-",e.modalDialog="modaldialog-",e.modalDialogContent="modaldialog-content-",e.prefillControl="pidlddc-prefillcontrol-",e.maxLength="pidlddc-maxlength-",e.logo="pidlddc-logo-",e.separator="pidlddc-separator-",e.spinner="pidlddc-spinner-",e.pidlInstance="pidlddc-pidlinstance-"}(p||(p={})),function(e){e.pageBlock="pagebodycontents",e.pageLogoBlock="pagelogoblock",e.pageBusyBlock="pagebusyblock",e.pageErrorBlock="pageerrorblock",e.pageSubmitBlock="pagesubmitblock",e.helpDialogBlock="pagehelpdialog",e.modalDialogBlock="pagemodaldialog",e.displayImage="displayImage",e.closeButton="closeButton",e.prefillCheckbox="prefillCheckbox"}(f||(f={})),function(e){e[e.Unexpected=1e3]="Unexpected",e[e.InvalidInput=1001]="InvalidInput",e[e.ServerError=1002]="ServerError"}(h||(h={})),function(e){e.success="success",e.failure="failure",e.gohome="gohome"}(m||(m={})),function(e){e.unknown="modelElementType_unknown",e.page="modelElementType_page",e.group="modelElementType_group",e.captcha="modelElementType_captcha",e.audio="modelElementType_audio",e.textGroup="modelElementType_textGroup",e.heading="modelElementType_heading",e.subheading="modelElementType_subheading",e.text="modelElementType_text",e.hyperlink="modelElementType_hyperlink",e.image="modelElementType_image",e.logo="modelElementType_logo",e.dropdown="modelElementType_dropdown",e.checkBox="modelElementType_checkBox",e.textBox="modelElementType_textBox",e.button="modelElementType_button",e.expression="modelElementType_expression",e.radio="modelElementType_radio",e.buttonList="modelElementType_buttonlist",e.pidlContainer="modelElementType_pidlContainer",e.pidlInstance="modelElementType_pidlInstance",e.dataCollectionBindingGroup="modelElementType_dataCollectionBindingGroup",e.iFrame="modelElementType_iFrame",e.challengeIFrame="modelElementType_challengeiFrame",e.expressCheckoutButton="modelElementType_expressCheckoutButton",e.filePicker="modelElementType_filePicker",e.secureProperty="modelElementType_secureProperty",e.separator="modelElementType_separator",e.spinner="modelElementType_spinner"}(g||(g={})),function(e){e.modelElementType_heading="h1",e.modelElementType_subheading="h2",e.modelElementType_text="p",e.modelElementType_expression="p",e.modelElementType_textGroup="p"}(v||(v={})),function(e){e.button="button",e.iFrame="iframe",e.div="div",e.hyperlink="a",e.image="img",e.input="input",e.label="label",e.select="select",e.span="span",e.h1="h1",e.h2="h2",e.hr="hr",e.audio="audio"}(y||(y={})),function(e){e.image="image",e.button="button",e.password="password",e.radio="radio",e.checkbox="checkbox",e.file="file"}(b||(b={})),function(e){e.add="Add",e.replace="Replace",e.createPaymentSession="createPaymentSession",e.getSelectedResource="GetSelectedResource",e.handleAction="HandleAction",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.expressCheckout="expressCheckout",e.invokeResourceAction="InvokeResourceAction",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="RenderPidlPage",e.selectResource="SelectResource",e.selectResourceType="SelectResourceType",e.selectSingleResource="SelectSingleResource",e.show="Show",e.offer="Offer",e.search="Search",e.update="Update",e.validateResource="ValidateResource",e.verify="Verify",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.applyResource="applyResource",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.delete="Delete",e.getPayeeTaxProfile="getPayeeTaxProfile",e.redeemMSRewards="redeemMSRewards",e.searchTransactions="searchTransactions",e.selectMSRewards="selectMSRewards"}(x||(x={})),function(e){e.stringTrue="true",e.stringFalse="false",e.stringOptional="optional"}(C||(C={})),function(e){e.submit="submit",e.triggerSubmit="triggerSubmit",e.submitOriginalPidl="submitOriginalPidl",e.gohome="gohome",e.next="moveNext",e.prev="movePrevious",e.first="moveFirst",e.last="moveLast",e.success="success",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.redirect="redirect",e.restAction="restAction",e.restartFlow="restartFlow",e.successWithPidlPayload="successWithPidlPayload",e.navigateAndNext="navigateAndMoveNext",e.validate="validate",e.validateOnChange="validateOnChange",e.poll="poll",e.moveNextAndPoll="moveNextAndPoll",e.handleFailure="handleFailure",e.updatePoll="updatePoll",e.continueSuspendedAction="continueSuspendedAction",e.closeModalDialog="closeModalDialog",e.mergeData="mergeData",e.propertyBindingAction="propertyBindingAction",e.closePidlPage="closePidlPage",e.successWithSelectedPidlAction="successWithSelectedPidlAction",e.updatePollAndMoveLast="updatePollAndMoveLast",e.noAction="noAction",e.moveToPageIndex="moveToPageIndex",e.updatePropertyValue="updatePropertyValue"}(k||(k={})),function(e){e.selectSingleResource="selectSingleResource",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.addResource="addResource",e.updateResource="updateResource",e.deleteResource="deleteResource",e.handleChallenge="handleChallenge",e.collectResourceInfo="collectResourceInfo",e.addAddress="addAddress",e.selectPaymentInstrument="selectPaymentInstrument",e.addPaymentInstrument="addPaymentInstrument",e.updateProfile="updateProfile",e.searchTransactions="searchTransactions"}(w||(w={})),function(e){e.error="error",e.styleSheetError="styleSheetError",e.captchaRendered="captchaRendered",e.propertyCreating="propertyCreating",e.propertySelected="propertySelected",e.toggleClicked="toggleClicked",e.instanceDownloading="instanceDownloading",e.instanceDownloaded="instanceDownloaded",e.pidlDownloading="pidlDownloading",e.pidlDownloaded="pidlDownloaded",e.pageRendering="pageRendering",e.pageRendered="pageRendered",e.pageRefreshed="pageRefreshed",e.pageDisplayed="pageDisplayed",e.inputReading="inputReading",e.inputRead="inputRead",e.inputValidating="inputValidating",e.inputValidated="inputValidated",e.inputTokenizing="inputTokenizing",e.inputTokenized="inputTokenized",e.inputSubmitting="inputSubmitting",e.inputSubmitted="inputSubmitted",e.redirecting="redirecting",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.propertyValidated="propertyValidated",e.propertyTokenizing="propertyTokenizing",e.propertyTokenized="propertyTokenized",e.propertyTransforming="propertyTransforming",e.propertyTransformed="propertyTransformed",e.resourceSelected="resourceSelected",e.pageNavigated="pageNavigated",e.click="click",e.payloadCreated="payloadCreated",e.restMethodInvoking="restMethodInvoking",e.restMethodInvoked="restMethodInvoked",e.noSelectionOptionsFound="noSelectionOptionsFound",e.selectionChanged="selectionChanged",e.fetchCallCompleted="fetchCallCompleted",e.renderedPidlPage="renderedPidlPage",e.closePidlPage="closePidlPage",e.submitOriginalPidl="submitOriginalPidl",e.fileUploading="fileUploading",e.fileUploaded="fileUploaded",e.isDisabled="isDisabled",e.expressCheckoutReady="expressCheckoutReady",e.propertyConditionallyUpdated="propertyConditionallyUpdated",e.challengeMessageReceived="challengeMessageReceived",e.getLocalDataSourceInvoked="getLocalDataSourceInvoked",e.getLocalDataSourceResolved="getLocalDataSourceResolved",e.getLocalDataSourceError="getLocalDataSourceError",e.paymentSheetOpened="paymentSheetOpened",e.paymentSheetCancelled="paymentSheetCancelled"}(S||(S={})),function(e){e.apiCalled="apiCalled",e.apiReturned="apiReturned",e.modelUpdated="modelUpdated",e.dataUpdated="dataUpdated",e.failure="failure",e.success="success",e.gohome="gohome",e.stateChanged="stateChanged",e.propertyCreated="propertyCreated",e.propertyUnselected="propertyUnselected",e.conflictingInputValues="conflictingInputValues",e.pidlResolved="pidlResolved",e.secureFieldEventReceived="secureFieldEventReceived",e.secureFieldEventQueued="secureFieldEventQueued",e.secureFieldEventPosted="secureFieldEventPosted",e.secureFieldLoadWaitStarted="secureFieldWaitStarted",e.secureFieldsLoaded="secureFieldsLoaded",e.secureFieldLoadWaitEnded="secureFieldWaitEnded",e.challengeMessageReceived="challengeMessageReceived",e.paymentDataTokenizing="paymentDataTokenizing",e.paymentDataTokenized="paymentDataTokenized",e.postMessageReceived="postMessageReceived",e.postMessageHandleSuccess="postMessageHandleSuccess",e.postMessageHandleFailure="postMessageHandleFailure",e.postMessageTimeoutHandleSuccess="postMessageTimeoutHandleSuccess",e.postMessageTimeoutHandleFailure="postMessageTimeoutHandleFailure",e.postMessageBusyTimerStarted="postMessageBusyTimerStarted",e.postMessageBusyTimerEnded="postMessageBusyTimerEnded",e.pollingStarted="pollingStarted",e.pollingEnded="pollingEnded",e.paymentClientSubmissionSkipped="paymentClientSubmissionSkipped",e.resourceHelpersFunctionExecuted="resourceHelpersFunctionExecuted",e.submitting="submitting",e.submitted="submitted",e.pollClientActionSuccess="pollClientActionSuccess",e.pollClientActionFailure="pollClientActionFailure",e.hideModalDialog="hideModalDialog",e.updatePollAndMoveLast="updatePollAndMoveLast",e.pidlActionInvoked="pidlActionInvoked",e.clientActionInvoked="clientActionInvoked",e.propertyValueSelected="propertyValueSelected",e.eventExtenderRegistered="eventExtenderRegistered",e.metric="metric",e.addSecureFieldPreLoadIFrameStarted="addSecureFieldPreLoadIFrameStarted",e.addSecureFieldPreLoadIFrameCompleted="addSecureFieldPreLoadIFrameCompleted",e.addSecureFieldPreLoadIFrameFailed="addSecureFieldPreLoadIFrameFailed",e.implementationMissing="implementationMissing"}(_||(_={})),function(e){e.containerId="containerId",e.busyBlockId="busyBlockId",e.busyBlockShowHideHandler="busyBlockShowHideHandler",e.inputPropertyIdPrefix="inputPropertyIdPrefix",e.inputPropertyIdSuffix="inputPropertyIdSuffix",e.displayElementIdPrefix="displayElementIdPrefix",e.displayElementIdSuffix="displayElementIdSuffix",e.inputPropertyErrorIdPrefix="inputPropertyErrorIdPrefix",e.showPlaceholderInTextbox="showPlaceholderInTextbox",e.showSubmitBlock="showSubmitBlock",e.showErrorBlock="showErrorBlock",e.disableEnterKeyAction="disableEnterKeyAction",e.htmlExtender="htmlExtender",e.hidePropertyErrors="hidePropertyErrors",e.disableFocusOnLoad="disableFocusOnLoad",e.alwaysValidateOnChange="alwaysValidateOnChange",e.ieExtender="ieExtender",e.propagateCallbackException="propagateCallbackException",e.useWebView2="useWebView2",e.busyUntilInitialPageRendered="busyUntilInitialPageRendered",e.secureFieldPreLoadingEnabled="secureFieldPreLoadingEnabled",e.instanceName="instanceName",e.preventUnmountOnFinish="preventUnmountOnFinish"}(E||(E={})),function(e){e.formValidationFailed="formValidationFailed",e.editedPropertiesValidationFailed="editedPropertiesValidationFailed"}(P||(P={})),function(e){e.inputValidation="inputValidationError",e.userInputValidation="userInputValidationError",e.formValidation="formValidationFailed",e.unexpected="unexpected",e.serverError="serverError",e.missingImplementationError="missingImplementationError",e.invalidSetup="invalidSetup",e.paymentMethodFailure="paymentMethodFailure",e.failedToOpenWindow="failedToOpenWindow",e.unmatchedAmount="unmatchedAmount",e.walletProvider="walletProvider",e.secureFieldInitCompletedTimeout="secureFieldInitCompletedTimeout"}(I||(I={})),function(e){e.validationFailed="ValidationFailed",e.tokenizationFailed="TokenizationFailed",e.fileUploadFailed="FileUploadFailed"}(T||(T={})),function(e){e.property="property",e.group="group"}(D||(D={})),function(e){e.all="all",e.dirtyOnly="dirtyOnly"}(A||(A={})),function(e){e.empty="required_field_empty"}(R||(R={})),function(e){e.div="htmlElementType_div",e.label="htmlElementType_label",e.captcha="htmlElementType_captcha",e.audio="htmlElementType_audio",e.dropdown="htmlElementType_dropdown",e.checkBox="htmlElementType_checkBox",e.radio="htmlElementType_radio",e.buttonList="htmlElementType_buttonList",e.textBox="htmlElementType_textBox",e.filePicker="htmlElementType_filePicker",e.button="htmlElementType_button",e.iFrame="htmlElementType_iFrame",e.challengeIFrame="htmlElementType_challengeiFrame",e.secureProperty="htmlElementType_secureProperty",e.heading="htmlElementType_text_heading",e.subHeading="htmlElementType_text_subheading",e.text="htmlElementType_text",e.textGroup="htmlElementType_textGroup",e.hyperlink="htmlElementType_hyperlink",e.image="htmlElementType_image",e.logo="htmlElementType_logo",e.errorDiv="htmlElementType_errorDiv",e.error="htmlElementType_error",e.separator="htmlElementType_separator"}(N||(N={})),function(e){e.busyBlock="busyBlock",e.errorBlock="errorBlock",e.helpDialogBlock="helpDialogBlock",e.helpDialogContentBlock="helpDialogContentBlock",e.pageContentBlock="pageContentBlock",e.submitBlock="submitBlock",e.modalDialogBlock="modalDialogBlock",e.modalDialogContentBlock="modalDialogContentBlock"}(B||(B={})),function(e){e.authorization="authorization",e.contentType="content-type",e.msCV="ms-cv",e.msCorrelationId="x-ms-correlation-id",e.msFlight="x-ms-flight",e.msTrackingId="x-ms-tracking-id",e.msRetryOnServerErr="x-ms-px-retry-servererr",e.correlationContext="Correlation-Context",e.msPidlsdkVersion="x-ms-pidlsdk-version",e.msTest="x-ms-test",e.msClientContext="x-ms-pidlsdk-clientcontext"}(M||(M={})),function(e){e.enablePaymentAgentChallenge="pidl-enable-payment-agent-challenge"}(F||(F={})),function(e){e.operation="operation"}(O||(O={})),function(e){e.role="role",e.required="required",e.src="src",e.controls="controls"}(L||(L={})),function(e){e.pidlInfo="pidlInfo",e.paymentInstruments="paymentInstruments"}(H||(H={})),function(e){e.alt="alt",e.tabIndex="tabindex"}(z||(z={})),function(e){e[e.element=1]="element",e[e.attribute=2]="attribute",e[e.text=3]="text",e[e.comment=8]="comment"}(V||(V={})),function(e){e.alert="alert",e.dialog="dialog",e.combobox="combobox",e.radiogroup="radiogroup",e.radio="radio",e.presentation="presentation",e.group="group",e.image="img",e.separator="separator",e.audio="audio"}(U||(U={})),function(e){e.activedescendant="aria-activedescendant",e.describedBy="aria-describedby",e.disabled="aria-disabled",e.expanded="aria-expanded",e.hidden="aria-hidden",e.label="aria-label",e.labelledBy="aria-labelledby",e.live="aria-live",e.selected="aria-selected",e.checked="aria-checked",e.required="aria-required"}(j||(j={})),function(e){e.polite="polite",e.assertive="assertive",e.off="off"}(W||(W={})),function(e){e.errorBlockId="data-pidl-error-block-id"}(q||(q={})),function(e){e.market="country"}(G||(G={})),function(e){e.country="market"}(K||(K={})),function(e){e.windows="windows"}(X||(X={})),function(e){e.closeButtonHelpText="closeButtonAccessiblityName",e.prefillDropdownDefault="dropdown_default",e.prefillDropdownNew="dropdown_new"}(Y||(Y={})),function(e){e.notInitialized="notInitialized",e.initialized="initialized",e.executing="executing",e.submitting="submitting"}(Q||(Q={})),function(e){e.clean="clean",e.editing="editing",e.dirty="dirty"}(J||(J={})),function(e){e.ready="ready",e.selected="selected",e.editing="editing",e.finished="finished"}(Z||(Z={})),function(e){e.empty="[]"}(ee||(ee={})),function(e){e.pageNavigated="pageNavigated",e.modelCreated="modelCreated",e.modelUpdated="modelUpdated",e.prefillChanged="prefillChanged"}(et||(et={})),function(e){e.constructor="constructor",e.addResource="addResource",e.applyResource="applyResource",e.replaceResource="replaceResource",e.cancel="cancel",e.destroyInstance="destroyInstance",e.createPaymentSession="createPaymentSession",e.getPidlPayload="getPidlPayload",e.getSelectedResource="getSelectedResource",e.handleAction="handleAction",e.handleChallenge="handleChallenge",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.expressCheckout="expressCheckout",e.invokePageDefaultAction="invokePageDefaultAction",e.invokeResourceAction="invokeResourceAction",e.modelSubmitForm="modelSubmitForm",e.moveNextPage="moveNextPage",e.submitPage="submitPage",e.validateProperties="validateProperties",e.movePrevPage="movePrevPage",e.moveToLastPage="moveToLastPage",e.moveToFirstPage="moveToFirstPage",e.postMessageToChildIFrames="postMessageToChildiFrames",e.refreshData="refreshData",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="renderPidlPage",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.selectSingleResource="selectSingleResource",e.showResource="showResource",e.searchResource="searchResource",e.updateResource="updateResource",e.validateResource="validateResource",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.deleteResource="deleteResource",e.getPayeeTaxProfile="getPayeeTaxProfile",e.redeemMSRewards="redeemMSRewards",e.searchTransactions="searchTransactions",e.offerResource="offerResource",e.selectMSRewards="selectMSRewards"}(en||(en={})),function(e){e[e.arrowDown=40]="arrowDown",e[e.arrowUp=38]="arrowUp",e[e.enter=13]="enter",e[e.escape=27]="escape",e[e.xboxBackButton=196]="xboxBackButton",e[e.xboxEnterButton=207]="xboxEnterButton"}(er||(er={})),function(e){e.hidden="hidden",e.number="number",e.bool="bool",e.object="object",e.returnObject="returnObject"}(eo||(eo={})),function(e){e.sessionId="sessionId",e.riskData="riskData",e.greenId="greenId"}(ei||(ei={})),function(e){e.userData="userData"}(ea||(ea={})),function(e){e.captchaType="captchaType"}(es||(es={})),function(e){e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE"}(el||(el={})),function(e){e.accessibilityName="accessibilityName",e.theme="theme",e.tabIndex="tabIndex",e.maxLengthMessage="maxLengthMessage",e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.linkAccessibilityName="linkAccessibilityName",e.accessibilityHint="accessibilityHint",e.hideInlineError="hideInlineError",e.displayTagStyleHints="displayTagStyleHints",e.separator="separator"}(ec||(ec={})),function(e){e.noPidlddc="noPidlddc.",e.helpDialog="help.",e.pidlReact="pidlReact.",e.parent="parent."}(eu||(eu={})),function(e){e.allowedCountries="allowedCountries"}(ed||(ed={})),function(e){e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.accessibilityName="accessibilityName",e.linkAccessibilityName="linkAccessibilityName"}(ep||(ep={})),function(e){e.primary="primary",e.secondary="secondary"}(ef||(ef={})),function(e){e.ignore="ignore",e.throw="throw"}(eh||(eh={})),function(e){e.token="piAuthKey",e.algorithm="hmacsha256",e.userCredential="userCredential"}(em||(em={})),function(e){e.jarvisError=".",e.paymentMethodName="."}(eg||(eg={})),function(e){e.partnerData="partnerData",e.contextData="contextData"}(ev||(ev={})),function(e){e.paymentTransaction="PaymentTransaction",e.recurringTransaction="RecurringTransaction",e.addCard="AddCard"}(ey||(ey={})),function(e){e.noPreference="NoPreference",e.noChallengeRequested="NoChallengeRequested",e.challengeRequestedPreference="ChallengeRequestedPreference",e.challengeRequestedMandate="ChallengeRequestedMandate"}(eb||(eb={})),function(e){e.small="01",e.medium="02",e.large="03",e.extraLarge="04",e.fullScreen="05"}(ex||(ex={})),function(e){e.Succeeded="Succeeded",e.ByPassed="ByPassed",e.Failed="Failed",e.Cancelled="Cancelled",e.TimedOut="TimedOut",e.NotApplicable="NotApplicable",e.Unknown="Unknown"}(eC||(eC={})),function(e){e.ThreeDS="threeds",e.CVV="cvv",e.SMS="sms"}(ek||(ek={})),function(e){e[e.Default=3e3]="Default"}(ew||(ew={})),function(e){e.link="]("}(eS||(eS={})),function(e){e.floatRight="floatRight",e.floatLeft="floatLeft"}(e_||(e_={})),function(e){e.loaded="loaded",e.initCompleted="initCompleted",e.readyForSubmit="readyForSubmit",e.validationCompleted="validationCompleted",e.valueUpdated="valueUpdated",e.keyPropertyResolved="keyPropertyResolved",e.focused="focused",e.blurred="blurred",e.hmacSignatureCreated="hmacSignatureCreated"}(eE||(eE={})),function(e){e.init="init",e.hydrateState="hydrateState",e.clearState="clearState",e.applyPlaceholder="applyPlaceholder",e.applyCss="applyCss",e.applyFocus="applyFocus",e.validate="validate",e.prepareForSubmit="prepareForSubmit",e.updateWidth="updateWidth",e.createHmacSignature="createHmacSignature"}(eP||(eP={})),function(e){e[e.pidlSdkWaitTimeForSecureFieldsInit=2e3]="pidlSdkWaitTimeForSecureFieldsInit",e.pidlSdkMessageSource="PidlSdk",e.secureFieldMessageSource="PXSecureField",e.tokenizationValuePrefix="tokenized_"}(eI||(eI={})),function(e){e.loaded="expressCheckout.loaded",e.paymentSheetOpened="expressCheckout.paymentSheetOpened",e.isEligible="expressCheckout.isEligible",e.paymentData="expressCheckout.paymentData",e.setup="expressCheckout.setup",e.error="expressCheckout.error",e.cancel="expressCheckout.cancel",e.paymentDataTokenizing="expressCheckout.paymentDataTokenizing",e.paymentDataTokenized="expressCheckout.paymentDataTokenized"}(eT||(eT={})),function(e){e.failedToOpenWindow="failed to open window",e.tokenizationFailed="tokenizationFailed"}(eD||(eD={})),function(e){e.pidlSdkWaitTimeForSecureFieldsInit="pidlSdkWaitTimeForSecureFieldsInit"}(eA||(eA={})),function(e){e.challengeiFrameLoaded="challengeiFrameLoaded",e.challengeCompleted="challengeCompleted"}(eR||(eR={})),function(e){e.challengeiFrameMessageSource="ChallengeUI"}(eN||(eN={})),function(e){e.viewTermsTriggered="viewTermsTriggered"}(eB||(eB={})),function(e){e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute"}(eM||(eM={})),function(e){e.applePay="be4de87d-7e38-4b2d-8836-9237eb32848e"}(eF||(eF={})),function(e){e.styleHintDefs="styleHintDefs",e.baseStyleHintDefs="baseStyleHintDefs"}(eO||(eO={}));var tS=Object.freeze({__proto__:null,get requestOriginator(){return r},get pidlTransformationTargets(){return o},get eventTypes(){return a},get displayTransformationTargets(){return s},get pidlResultType(){return l},get pidlResourceTypes(){return c},get htmlClassNames(){return u},get htmlClassPrefixes(){return d},get htmlElementIdPrefixes(){return p},get htmlElementIdSuffixes(){return f},get errorCode(){return h},get returnCallbackNames(){return m},get modelElementType(){return g},get textBlockTypes(){return v},get htmlBlockTypes(){return y},get htmlInputTypes(){return b},get telemetryPidlOperationType(){return x},get showDisplayNameValues(){return C},get supportedPidlActions(){return k},get resourceActions(){return w},get eventNames(){return S},get privateEventNames(){return _},get displayOptionNames(){return E},get errorNames(){return P},get errorTypes(){return I},get serverErrorTypes(){return T},get validationErrorTypes(){return D},get validationOptions(){return A},get validationErrorCodes(){return R},get htmlElementTypes(){return N},get containerTypes(){return B},get httpHeaders(){return M},get flightHeaders(){return F},get httpUrlQueryParameters(){return O},get htmlAttributes(){return L},get pidlPayloadAttributes(){return H},get htmlTags(){return z},get htmlNodeTypes(){return V},get htmlRoles(){return U},get ariaTags(){return j},get ariaLiveInterruptLevels(){return W},get dataAttributes(){return q},get sdkParamUrlQueryParamMap(){return G},get pidlPropertyNameToPidlDocInfoProperty(){return K},get themes(){return X},get pidlStringKeys(){return Y},get controlStates(){return Q},get propertyEditState(){return J},get controlOperationTypes(){return Z},get errorValue(){return ee},get viewUpdateReasons(){return et},get pidlDdcApiNames(){return en},get keyCodes(){return er},get dataTypes(){return eo},get clientDataTypes(){return ei},get propertyTypes(){return ea},get captchaPropertyName(){return es},get httpActions(){return el},get knownTags(){return ec},get knownTagPrefixes(){return eu},get knownQueryParameters(){return ed},get helpDialogPrefixedTags(){return ep},get scenarioContextResourceType(){return ef},get scenarioContextTerminatingErrorHandling(){return eh},get hmac(){return em},get delimiters(){return eg},get dataStores(){return ev},get challengeScenario(){return ey},get riskChallengeIndicator(){return eb},get challengeWindowSize(){return ex},get challengeStatus(){return eC},get challengeType(){return ek},get pollingInterval(){return ew},get TextSymbols(){return eS},get displayHelpPosition(){return e_},get SecureFieldEvent(){return eE},get SecureFieldMessages(){return eP},get SecureFieldConstants(){return eI},get ExpressCheckoutButtonMessages(){return eT},get ExpressCheckoutButtonDebugMessages(){return eD},get ClientSettingNames(){return eA},get ChallengeiFrameEvent(){return eR},get ChallengeiFrameConstants(){return eN},get CustomTriggerEventConstants(){return eB},get FrequencyUnitConstants(){return eM},get PaymentMethodPIIDs(){return eF},get styleHintDefsCacheNames(){return eO}}),t_=new(function(){return function(){var e=this;this.skipQueryParameter=function(e){if(!e)return!1;var t=rp.find(rp.getKeys(ed),function(t){return t.toLowerCase()===e.toLowerCase()});return rp.boolify(t)},this.mapQueryParameter=function(e){return G[rp.toLowerCase(e)]||e},this.buildUrlInternal=function(t,n,r){var o;if(o=rp.startsWith(t,"https://")?t:rp.startsWith(t,"http://")?"https://"+t.substr(7):"https://"+t,n)for(var a=0;a<n.length;a++)o+=rp.startsWith(n[a],"/")?n[a]:"/"+n[a];return r&&Object.keys(r).sort().forEach(function(t){if(!e.skipQueryParameter(t)){var n=r[t];n&&(o=e.addQueryParameter(o,e.mapQueryParameter(t),n))}}),o},this.createFromTemplateInternal=function(t,n,r,o,a,s){if(t){var l=tX.replaceVirtualEndpointWithServiceAddress(t,n);return l=l.replace(/{id}/i,encodeURIComponent(o)).replace(/{resourcetype}/i,a),r&&(l=l.replace(/{userid}/i,r.getUserId(t))),e.buildUrlInternal(l,[],s)}},this.getUrlExpressionValue=function(t,n,r,o,a){var s=e.createFromTemplateInternal(t,n,r,o,null,null);return s&&a&&(s=rd.getFormatStringExpressionValue("("+s+")",a,function(e){return encodeURIComponent(e)})),s},this.getResourceUrl=function(t,n){t=t||{};var r=tX.getResourceEndpoint(t.resourceType);return{url:e.createFromTemplateInternal(r.template,t.resourceEndpoint,n,t.id,t.resourceType,t.parameters),template:r.template,recreateUrl:function(t){return e.getResourceUrl(t.resourceInfo,t.userContext)},originalParameters:{resourceInfo:t,userContext:n},virtualEndpoint:r}},this.getPidlDocUrl=function(t,n,r){r=r||{};var o=rp.deepCopy(r.parameters||{});n&&(o[O.operation]=n);var a=tX.getPidlDocEndpoint(r.resourceType);a.addResourceNameToQueryParam&&(o.resourceName=rp.toLowerCase(r.resourceType)),a.removeOperationParameter&&delete o[O.operation];var s=r.resourceType+(r.resourceSuffix||a.suffix),l=r.anonymousPidl&&a.anonymousTemplate?a.anonymousTemplate:a.template;return{url:e.createFromTemplateInternal(l,r.pidlEndpoint,t,null,s,o),template:l,recreateUrl:function(t){return e.getPidlDocUrl(t.userContext,t.operationType,t.pidlDocInfo)},originalParameters:{userContext:t,operationType:n,pidlDocInfo:r},virtualEndpoint:a}},this.getSubmitUrl=function(t,n,r,o,a){return{url:e.getUrlExpressionValue(r.href,null,n,o,a),template:r.href,recreateUrl:function(t){return e.getSubmitUrl(t.operationType,t.userContext,t.context,t.id,t.bindingDataContext)},originalParameters:{operationType:t,userContext:n,context:r,id:o,bindingDataContext:a},virtualEndpoint:tX.findVirtualEndpointInTemplate(r.href)}},this.getRestMethodUrl=function(t,n,r,o){return{url:e.getUrlExpressionValue(t,null,n,r,o),template:t,recreateUrl:function(t){return e.getRestMethodUrl(t.template,t.userContext,t.id,t.bindingDataContext)},originalParameters:{template:t,userContext:n,id:r,bindingDataContext:o},virtualEndpoint:tX.findVirtualEndpointInTemplate(t)}},this.addQueryParameter=function(e,t,n){rp.isString(n)||(n=JSON.stringify(n)),n=encodeURIComponent(n);var r=RegExp("([?&])"+t+"=.*?(&|$)","i");if(e.match(r))return e.replace(r,"$1"+t+"="+n+"$2");var o=RegExp("([?])");if(e.match(o))return e.replace(o,"$1"+t+"="+n+"&");var a=-1!==e.indexOf("?")?"&":"?";return e+a+t+"="+n},this.addQueryStringParameters=function(t,n){if(n)for(var r in n)n[r]&&(t=e.addQueryParameter(t,r,n[r]));return t},this.buildUrl=function(t,n,r){return e.buildUrlInternal(t,n,r)},this.createFromTemplate=function(t,n,r,o,a,s){return e.createFromTemplateInternal(t,n,r,o,a,s)}}}());function tE(e){return!rp.isNullOrUndefined(e)&&"propertyType"in e&&"type"in e&&"dataType"in e}function tP(e){return!rp.isNullOrUndefined(e)&&"displayType"in e}function tI(e){return tP(e)&&(e.displayType===eW.group||e.displayType===eW.dataCollectionBindingGroup||e.displayType===eW.page||e.displayType===eW.textGroup)}function tT(e){if(tP(e)){var t=e;return t&&t.propertyElementType&&t.propertyElementType===eW.file}return!1}function tD(e){return tP(e)&&(e.displayType===eW.group||e.displayType===eW.dataCollectionBindingGroup)}function tA(e){return tP(e)&&e.displayType===eW.captcha}function tR(e){return tP(e)&&e.displayType===eW.dataCollectionBindingGroup}function tN(e){return tP(e)&&e.displayType===eW.page}function tB(e){return tP(e)&&(e.displayType===eW.button||e.displayType===eW.expression||e.displayType===eW.heading||e.displayType===eW.hyperlink||e.displayType===eW.subheading||e.displayType===eW.text||e.displayType===eW.challengeIframe||e.displayType===eW.iFrame)}function tM(e){return tP(e)&&e.displayType===eW.logo}function tF(e){return tP(e)&&(e.displayType===eW.property||e.displayType===eW.prefillControl)}function tO(e){return rp.isObject(e)&&"href"in e&&"method"in e}function tL(e){return rp.isObject(e)&&"members"in e}function tH(e){return!rp.isNullOrUndefined(e)&&"identity"in e&&"data_description"in e}function tz(e){return!rp.isNullOrUndefined(e)&&rp.isArray(e)&&e.length&&tH(e[0])}function tV(e){return!rp.isNullOrUndefined(e)&&"pidlInfo"in e}function tU(e){return!rp.isNullOrUndefined(e)&&!rp.isString(e)&&"clientAction"in e}function tj(e){return tP(e)&&e.displayType===eW.pidlContainer}function tW(e){return tP(e)&&e.displayType===eW.pidlInstance}function tq(e){return!rp.isNullOrUndefined(e)&&rp.isString(e.type)&&(e.type===eV.Pidl||e.type===eV.Wait||e.type===eV.Redirect||e.type===eV.ReturnContext||e.type===eV.ExecuteScriptAndResume||e.type===eV.None||e.type===eV.GoHome||e.type===eV.Failure||e.type===eV.MergeData||e.type===eV.RestAction)}function tG(e){return!rp.isNullOrUndefined(e)&&!rp.isNullOrUndefined(e.resourceActionContext)}!function(e){e.add="Add",e.replace="Replace",e.getPidlPayload="GetPidlPayload",e.handlePurchasePendingState="HandlePurchasePendingState",e.renderPidlPage="RenderPidlPage",e.select="Select",e.selectInstance="SelectInstance",e.selectSingleInstance="SelectSingleInstance",e.show="Show",e.search="Search",e.delete="Delete",e.update="Update",e.validateInstance="ValidateInstance",e.fundStoredValue="FundStoredValue",e.apply="Apply",e.searchTransactions="searchTransactions",e.redeem="Redeem",e.provisionWalletToken="provisionWalletToken",e.offer="Offer",e.expressCheckout="ExpressCheckout"}(eL||(eL={})),function(e){e.function="function",e.regexMessage="regexMessage",e.regex="regex",e.service="service",e.size="size"}(eH||(eH={})),function(e){e.regex="regex",e.service="service"}(ez||(ez={})),function(e){e.Pidl="Pidl",e.PidlModal="PidlModal",e.PidlPage="PidlPage",e.Wait="Wait",e.Redirect="Redirect",e.ReturnContext="ReturnContext",e.ExecuteScriptAndResume="ExecuteScriptAndResume",e.None="None",e.GoHome="GoHome",e.Failure="Failure",e.MergeData="MergeData",e.RestAction="RestAction",e.UpdatePropertyValue="UpdatePropertyValue"}(eV||(eV={})),function(e){e.Active="Active",e.Banned="Banned",e.Deactivated="Deactivated",e.Declined="Declined",e.Pending="Pending",e.Removed="Removed",e.Unknown="Unknown"}(eU||(eU={})),function(e){e.regex="regex"}(ej||(ej={})),function(e){e.button="button",e.dataCollectionBindingGroup="datacollectionbindinggroup",e.expression="expression",e.group="group",e.captcha="captcha",e.audio="audio",e.heading="heading",e.hyperlink="hyperlink",e.iFrame="iframe",e.challengeIframe="challengeiframe",e.expressCheckoutButton="expresscheckoutbutton",e.secureProperty="secureproperty",e.image="image",e.logo="logo",e.page="page",e.pidlContainer="pidlcontainer",e.pidlInstance="pidlinstance",e.prefillControl="prefillcontrol",e.property="property",e.subheading="subheading",e.text="text",e.textGroup="textgroup",e.separator="separator",e.spinner="spinner",e.file="file"}(eW||(eW={})),function(e){e.inline="inline",e.vertical="vertical"}(eq||(eq={})),function(e){e.afterBase="afterBase",e.beforeBase="beforeBase",e.withBase="withBase"}(eG||(eG={})),function(e){e.buttonList="buttonList",e.checkBox="checkbox",e.dropDown="dropDown",e.radio="radio"}(eK||(eK={})),function(e){e.always="always",e.focusout="focusout"}(eX||(eX={})),function(e){e.limitedRetry="limitedRetry",e.noRetry="noRetry",e.unlimitedRetry="unlimitedRetry"}(eY||(eY={}));var tK=Object.freeze({__proto__:null,get pidlOperationTypeValues(){return eL},get validationModesValues(){return eH},get transformationModesValues(){return ez},isDataDescription:tE,get clientActionTypeValues(){return eV},get paymentInstrumentStatusValues(){return eU},get displayTransformationTypesValues(){return ej},get pidlDisplayTypesValues(){return eW},isDisplayDescription:tP,get groupLayoutOrientationTypesValues(){return eq},isContainerDisplayDescription:tI,isFilePickerDisplayDescription:tT,isGroupDisplayDescription:tD,isCaptchaDisplayDescription:tA,isDataCollectionBindingGroupDisplayDescription:tR,isPageDisplayDescription:tN,isContentDisplayDescription:tB,isLogoDisplayDescription:tM,get pidlSubmitOrdersValues(){return eG},get pidlSelectTypeValues(){return eK},get resolutionPolicyValues(){return eX},isPropertyDisplayDescription:tF,get serverErrorRetryPolicyValues(){return eY},isPidlLink:tO,isMembersInDataSources:tL,isPidlDocument:tH,isPidlDocumentArray:tz,isPidlPayload:tV,isPidlDocumentWithClientAction:tU,isPidlContainerDisplayDescription:tj,isPidlInstanceDisplayDescription:tW,isClientAction:tq,isInvokeResourceActionApiParams:tG}),tX=new(function(){return function(){var e=this;this.getContainingVirtualEndpoint=function(e){if(rp.isString(e)){var t=e.toLowerCase();for(var n in rf.virtualEndpoints){var r="{"+rf.virtualEndpoints[n].endpoint+"}";if(-1!==t.indexOf(r))return rf.virtualEndpoints[n]}}},this.getPidlDocInfoFromResource=function(e,t){var n=rp.toLowerCase(e.resourceType),r=rf.resourceTypeToPidlDoc[n]||rf.resourceTypeToPidlDoc.default;return{resourceType:n,parameters:r.getParams&&r.getParams(e,t),anonymousPidl:e.anonymousPidl}},this.updatePidlDocInfo=function(e){if(e&&e.parameters&&e.parameters.allowedPaymentMethods&&rp.isArray(e.parameters.allowedPaymentMethods)){for(var t=!0,n=0,r=e.parameters.allowedPaymentMethods.length;n<r;n++)t=t&&rp.isObject(e.parameters.allowedPaymentMethods[n]);if(t){var o=e.parameters.allowedPaymentMethods;e.parameters.allowedPaymentMethods={};for(var a=0,s=o.length;a<s;a++){var l=o[a],c=l.family;c+=l.type?eg.paymentMethodName+l.type:"",e.parameters.allowedPaymentMethods[c]=+!l.disabled}}}},this.additionalRedirectParams=function(e,t){var n={};for(var r in t&&(t.paymentMethod&&(n.family=t.paymentMethod.paymentMethodFamily,n.type=t.paymentMethod.paymentMethodType),rp.equalsIgnoreCase(t.status,eU.Pending)&&t.details&&(n.pendingOn=t.details.pendingOn,n.picvRequired=t.details.picvRequired)),n)n[r]&&(e=t_.addQueryParameter(e,r,n[r]));return e},this.getErrorSourceFromUrl=function(e){if(e=rp.toLowerCase(e)){if(-1!==e.indexOf(rf.getServiceEndpoint(rf.virtualEndpoints.pifd.endpoint))){if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/addresses"))return rf.virtualEndpoints.pifdAddress.endpoint;else if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/profiles"))return rf.virtualEndpoints.pifdProfile.endpoint}else if(-1!==e.indexOf(rf.getServiceEndpoint(rf.virtualEndpoints.jarvis.endpoint)))return rf.virtualEndpoints.jarvisAddress.endpoint}return rf.virtualEndpoints.pifd.endpoint},this.getResourceEndpoint=function(e){return rf.resourceTypeToResource[rp.toLowerCase(e)]||rf.resourceTypeToResource.default},this.getPidlDocEndpoint=function(e){return rf.resourceTypeToPidlDoc[rp.toLowerCase(e)]||rf.resourceTypeToPidlDoc.default},this.replaceVirtualEndpointWithServiceAddress=function(t,n){var r=e.getContainingVirtualEndpoint(t);if(!r)return t;var o=RegExp("{"+r.endpoint+"}","i");return t.replace(o,n||rf.getServiceEndpoint(r.endpoint))},this.findVirtualEndpointInTemplate=function(t){return e.getContainingVirtualEndpoint(t)||{description:null,endpoint:null,name:null,operation:null}},this.getTelemetryLoggerProperties=function(){return rf.defaultTelemetryLoggerProperties}}}());function tY(e,t){return e.debugMessage?rp.format(e.debugMessage,t):""}var t$=function(){return function(e,t,n,r){this.message=n||"",this.name=t.name,this.code=t.code,this.type=e}}(),tQ=function(e){function t(t,n,r){var o=e.call(this,I.inputValidation,t,null,r)||this;return o.parameterName=n,o.debugMessage=tY(t,r),o}return e7(t,e),t}(t$),tJ=function(e){function t(t,n,r){var o=e.call(this,I.inputValidation,t,null,r)||this;return o.apiName=n,o.debugMessage=tY(t,r),o}return e7(t,e),t}(t$),tZ=function(e){function t(t,n,r,o){var a=e.call(this,I.userInputValidation,t,n,o)||this;return a.propertyName=r,a.errorCode=n,a.validationErrorType=D.property,a.debugMessage=tY(t,o),a}return e7(t,e),t}(t$),t0=function(e){function t(t,n,r,o){var a=e.call(this,I.userInputValidation,t,n,o)||this;return a.groupDisplayId=r,a.errorCode=n,a.validationErrorType=D.group,a.debugMessage=tY(t,o),a}return e7(t,e),t}(t$),t1=function(e){function t(t,n,r,o){var a=e.call(this,I.formValidation,t,n,o)||this;return a.errors=r,a.debugMessage=tY(t,o),a}return e7(t,e),t}(t$),t2=function(e){function t(t,n,r){var o=e.call(this,I.unexpected,t,r,n)||this;return o.debugMessage=tY(t,n),o}return e7(t,e),t}(t$),t5=function(e){function t(t,n,r,o,a,s,l,c,u,d){var p=e.call(this,I.serverError,t,null,l)||this;return p.innererror=r,p.status=o,p.url=n,p.statusText=a,p.responseText=s,p.httpMethod=c,p.retryAttempt=u,p.retryable=d,p.debugMessage=tY(t,l),p}return e7(t,e),t}(t$),t4=function(e){function t(t,n,r){var o=e.call(this,I.invalidSetup,t,n,r)||this;return o.debugMessage=tY(t,r),o}return e7(t,e),t}(t$),t3=function(e){function t(t,n,r){var o=e.call(this,I.paymentMethodFailure,t,n,r)||this;return o.debugMessage=tY(t,r),o}return e7(t,e),t}(t$),t6=function(e){function t(t,n,r){var o=e.call(this,I.failedToOpenWindow,t,n,r)||this;return o.debugMessage=tY(t,r),o}return e7(t,e),t}(t$),t8=function(e){function t(t,n,r){var o=e.call(this,I.unmatchedAmount,t,n,r)||this;return o.debugMessage=tY(t,r),o}return e7(t,e),t}(t$),t9=function(e){function t(t,n,r){var o=e.call(this,I.walletProvider,t,n,r)||this;return o.debugMessage=tY(t,r),o}return e7(t,e),t}(t$),t7=function(e){function t(t,n,r){var o=e.call(this,I.secureFieldInitCompletedTimeout,t,n,r)||this;return o.debugMessage=tY(t,r),o}return e7(t,e),t}(t$),ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e7(t,e),t}(t$),nt=new(function(){function e(){this.inputParameterValidationFailedError=tQ,this.apiValidationError=tJ,this.propertyValidationFailedError=tZ,this.groupValidationFailedError=t0,this.formValidationFailedError=t1,this.unexpectedError=t2,this.serverError=t5,this.invalidSetupError=t4,this.paymentMethodFailureError=t3,this.failedToOpenWindowError=t6,this.unmatchedAmountError=t8,this.testHookErrorBase=ne,this.walletProviderError=t9,this.secureFieldInitCompletedTimeoutError=t7}return e.prototype.isUnexpectedError=function(e){return rp.isObject(e)&&e.type===I.unexpected},e.prototype.isServerError=function(e){return rp.isObject(e)&&e.type===I.serverError},e}()),nn={inputParameterMissing:{code:1e3,name:"mandatoryInputParameterMissingOrNull",debugMessage:"Mandatory parameter '{0}' is missing or null"},inputParameterTypeMismatch:{code:1001,name:"inputParameterTypeMismatch",debugMessage:"Parameter type is mismatched. Expected type was '{0}', but actual type passed is '{1}'"},inputParameterNotInRange:{code:1002,name:"inputParameterNotInRange",debugMessage:"Value of parameter '{0}' is '{1}' not in the range of expected values. Valid range for the parameter is '{2}'"},containerIdNotFound:{code:1003,name:"containerIdNotFound",debugMessage:"Value of 'containerId' parameter '{0}' is not a valid element in current HTML DOM"},apiCannotStartAsControlNotInitialized:{code:1004,name:"apiCannotStartAsControlNotInitialized",debugMessage:"API '{0}' cannot start as display control is not initialized."},apiCannotStartAsNotAllowedInCurrentState:{code:1005,name:"apiCannotStartAsNotAllowedInCurrentState",debugMessage:"API '{0}' cannot start as current control state is '{1}' and the API is allowed only in following states '{2}'"},busyBlockShowHideHandlerAndbusyBlockIdAreExclusive:{code:1006,name:"busyBlockShowHideHandlerAndbusyBlockIdAreExclusive",debugMessage:"Both busyBlockShowHideHandler and busyBlockId are passed in displayOptions. They are exclusive and only one can be passed."},inputParameterSmallerThanMinLength:{code:1007,name:"inputParameterSmallerThanMinLength",debugMessage:"Array element '{0}' is expected to have minimum length '{1}' but it has a length of '{2}'."},inputParameterLargerThanMaxLength:{code:1008,name:"inputParameterLargerThanMaxLength",debugMessage:"Array element '{0}' is expected to have maximum length '{1}' but it has a length of '{2}'."},mandatoryPropertyValueMissing:{code:1101,name:"mandatoryPropertyValueMissing",debugMessage:"Property '{0}' is mandatory, but its value is missing"},propertyValidationFailed:{code:1102,name:"propertyValidationFailed",debugMessage:"Validation for property '{0}' failed with the message '{1}'"},formValidationFailed:{code:1103,name:"formValidationFailed",debugMessage:"Validation for form failed with the message '{0}'"},readUserInputFailed:{code:1104,name:"readUserInputFailed",debugMessage:"Read user input failed with the message '{0}'"},formSubmissionFailedBadUserInput:{code:1105,name:"formSubmissionFailedBadUserInput",debugMessage:"Form submission failed with error '{0}' due to bad user input"},editedPropertiesValidationFailed:{code:1106,name:"editedPropertiesValidationFailed",debugMessage:"Validation for edited properties failed with the message '{0}'"},propertyTransformationFailed:{code:1107,name:"propertyTransformationFailed",debugMessage:"Property transformation failed with the message '{0}'"},tokenizationFailed:{code:1108,name:"tokenizationFailed",debugMessage:"Tokenization failed with the message '{0}'"},hmacError:{code:1109,name:"hmacError",debugMessage:"HMAC error happened with the message '{0}'"},tokenizationError:{code:1110,name:"tokenizationError",debugMessage:"Some error happened during tokenization. Here is the error message '{0}'"},connectivityError:{code:1200,name:"connectivityError",debugMessage:"There was a connectivity error when attempting to download PIDL document. Error message: '{0}'"},pidlDocDownloadFailed:{code:1201,name:"pidlDocDownloadFailed",debugMessage:"Failed to download PIDL document. Error message: '{0}'"},formSubmitFailed:{code:1202,name:"formSubmitFailed",debugMessage:"Failed to submit form. Error message: '{0}'"},resourceInstanceDownloadFailed:{code:1203,name:"resourceInstanceDownloadFailed",debugMessage:"Failed to download resource instance. Error message: '{0}'"},commerceJsDownloadFailed:{code:1204,name:"commerceJsDownloadFailed",debugMessage:"Failed to download Commerce JS"},restMethodInvocationFailed:{code:1205,name:"restMethodInvocationFailed",debugMessage:"Rest method invocation for url '{0}' failed with error '{1}'"},missingSubmitActionInPidlDoc:{code:1501,name:"missingSubmitActionInPidlDoc",debugMessage:"Cannot perform submit action as the current PIDL document does not have it."},submitActionMissing:{code:1502,name:"submitActionMissing",debugMessage:"Submit action is missing in the PIDL document"},unknownActionType:{code:1503,name:"unknownActionType",debugMessage:"Unknown action type '{0}'"},unknownClientActionType:{code:1504,name:"unknownClientActionType",debugMessage:"Unknown client action type '{0}'"},cannotMoveToNextPageAsOnLastPage:{code:1505,name:"cannotMoveToNextPageAsOnLastPage",debugMessage:"Cannot move to next page as already on the last page"},cannotMoveToPrevPage:{code:1506,name:"cannotMoveToPrevPage",debugMessage:"Cannot move to previous page"},noMappingToGetPidlDocForResource:{code:1507,name:"noMappingToGetPidlDocForResource",debugMessage:"There is no mapping for getting PIDL document for the input resource type '{0}'"},noMappingToGetHtmlClassNameForElement:{code:1508,name:"noMappingToGetHtmlClassNameForElement",debugMessage:"There is no mapping for getting HTML class name for element '{0}'"},missingMandatoryParameterForHtmlCreation:{code:1509,name:"missingMandatoryParameterForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. But the mandatory property '{2}' is missing or empty"},parameterTypeMismatchForHtmlCreation:{code:1510,name:"parameterTypeMismatchForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. Property '{2}' is expected to be of type '{3}' but actual type is '{4}'"},modelNotPpopulated:{code:1511,name:"modelNotPopulated",debugMessage:"Model is not populated"},cannotMoveToPageIndex:{code:1512,name:"cannotMoveToPageIndex",debugMessage:"Cannot move to the given page index because it is out of bounds"},apiStateMappingNotFound:{code:1513,name:"apiStateMappingNotFound",debugMessage:"Api '{0}' does not have a mapping in state manager"},contextMissingFromPidlAction:{code:1514,name:"contextMissingFromPidlAction",debugMessage:"PIDL action '{0}' does not have should have a context"},restActionPidlActionMissingParameters:{code:1515,name:"restActionPidlActionMissingParameters",debugMessage:"Rest action is missing parameter '{0}' "},noPidlDocumentInPopulateRequest:{code:1516,name:"noPidlDocumentInPopulateRequest",debugMessage:"No PIDL documents are sent in the request for populating model"},noDisplayDescriptionInPidlDocument:{code:1517,name:"noDisplayDescriptionInPidlDocument",debugMessage:"No display description are found in the PIDL document"},multiplePagesInLinkedPidlForSinglePagePidlContainer:{code:1518,name:"multiplePagesInLinkedPidlForSinglePagePidlContainer",debugMessage:"Multiple pages extracted from a linked PIDL for a single page PIDL container (being a member of a PIDL Page)"},expectedPayloadValueNotPresentInServerResponse:{code:1519,name:"expectedPayloadValueNotPresentInServerResponse",debugMessage:"The expected value for the next submit payload was not present in server response"},noRedirectUrlToNavigate:{code:1520,name:"noRedirecturlToNavigate",debugMessage:"There is no redirection service url to navigate"},invalidCacheEntry:{code:1521,name:"invalidCacheEntry",debugMessage:"Cache entry for the handle given is invalid"},unexpectedPrefillDataCount:{code:1522,name:"unexpectedPrefillDataCount",debugMessage:"The expected count of prefill data objects for '{0}' is '{1}' but actual count was '{2}'"},defaultActionNotFound:{code:1523,name:"defaultActionNotFound",debugMessage:"Default action is not found on the page"},isDefaultPidlActionNotFound:{code:1524,name:"isDefaultPidlActionNotFound",debugMessage:"Pidl action with isDefault === true not found in the pidl with element ids: {0}"},displayElementPointingToMissingDataProperty:{code:1525,name:"noPropertyFoundForDisplayElement",debugMessage:"Display element '{0}' is pointing to missing data property '{1}'"},invalidReturnContextPidl:{code:1526,name:"invalidReturnContextPidl",debugMessage:"Downloaded pidl had returnContext client action type but context was empty"},duplicateDisplayHintIdOnPage:{code:1527,name:"duplicateDisplayHintIdOnPage",debugMessage:"DisplayId '{0}' appears multiple times on page '{1}'"},invalidNotInPurchasePendingState:{code:1528,name:"instanceNotInPurchasePendingState",debugMessage:"The PI downloaded was not a valid type for purchase pending state"},submitPidlRequestMissingParameters:{code:1529,name:"submitPidlRequestMissingParameters",debugMessage:"Submit pidl request is missing parameter '{0}'"},IFrameTimedOut:{code:1530,name:"iframetimedout",debugMessage:"Took to long to notify as successful. Operation timed out'"},unhandledRejection:{code:1531,name:"unhandledrejection",debugMessage:"Unhandled Promise Rejection at {0}"},iFrameReturnedFailure:{code:1532,name:"iFrameReturnedFailure",debugMessage:"iFrame POST message returned failure with message {0}"},failureClientActionReturned:{code:1533,name:"failureClientActionReturned",debugMessage:"Client action type failure is returned with payload {0}"},validationFailedForNonUserInputProperty:{code:1534,name:"validationFailedForNonUserInputProperty",debugMessage:"Validation for property '{0}' failed with error code '{1}' and message '{2}' which has caused flow termination because correct value for this property is expected either to be passed by the partner or is there as default value in the PIDL, not input by the user."},pollingTimedOut:{code:1535,name:"pollingTimedOut",debugMessage:"Polling exceeded maximum time allowed"},unableToSetupPolling:{code:1536,name:"unableToSetupPolling",debugMessage:"Unable to setup polling"},msrEncryptionFailed:{code:1537,name:"msrEncryptionFailed",debugMessage:"MSR Encryption failed with the message '{0}'"},onlyOneBusyBlockPropAllowed:{code:1538,name:"onlyOneBusyBlockPropAllowed",debugMessage:"Please pass in only one prop option for busyBlocks (busyBlockId, busyBlockElement, or busyBlockShowHideHandler)"},failurePollingResponseReturned:{code:1539,name:"failurePollingResponseReturned",debugMessage:"The following response from polling is unexpected: {0}"},fileUploadFailure:{code:1540,name:"fileUploadFailure",debugMessage:"Unable to upload the file"},invalidSetup:{code:1541,name:"invalidSetup",debugMessage:"PaymentAgent needs to be fully initialized"},paymentMethodFailure:{code:1542,name:"paymentMethodFailure",debugMessage:"Error processing payment sheet"},unmatchedAmount:{code:1543,name:"unmatchedAmount",debugMessage:"Authorization group total amount does not match amount"},failedToOpenWindow:{code:1544,name:"failedToOpenWindow",debugMessage:"Failed to Open Window"},unexpectedChallengeiFrameMessage:{code:1545,name:"unexpectedChallengeIframeMessage",debugMessage:"Unexpected challenge iframe message."},challengeIframeMessagePostFailure:{code:1546,name:"challengeIframeMessagePostFailure",debugMessage:"Challenge iframe message post failure."},failedToFetchStyleHints:{code:1547,name:"failedToFetchStyleHints",debugMessage:"Failed to fetch style hints from static resources"},unmatchedSecureFieldEvent:{code:1601,name:"unmatchedSecureFieldEvent",debugMessage:"The following secure field event is unexpected: {0}"},unexpectedSecureFieldMessage:{code:1602,name:"unexpectedSecureFieldMessage",debugMessage:"Unexpected secure field message."},secureFieldPromiseNotFound:{code:1602,name:"secureFieldPromiseNotFound",debugMessage:"Unable to find promise after secure field posted back message."},secureFieldInitCompletedTimeout:{code:1603,name:"secureFieldInitCompletedTimeout",debugMessage:"Timeout while waiting for secure fields initCompleted events"},walletProviderError:{code:1700,name:"walletProviderError",debugMessage:"Unable to retrieve wallet cards."}},nr=new(function(){return function(){var e=this;this.getResolvedPidls=function(t,n){var r=[];return t.forEach(function(t){var o=!1;for(var a in n){var s=no.getPropertyFromDataDescription(t.data_description,a),l=n[a];if(l&&l.getValue&&!(o=e.resolveKeyProperty(s,l.getValue(s))))break}o&&r.push(t)}),r},this.getPidlContainersInSubmitOrder=function(t,n){t.forEach(function(t){if(tj(t)){var r=t.submitOrder;r===eG.beforeBase?n.beforeBase.push(t):r===eG.afterBase?n.afterBase.push(t):n.withBase.push(t)}else tI(t)&&t.members.length&&e.getPidlContainersInSubmitOrder(t.members,n)})},this.resolveInfoDescriptionId=function(t,n){return e.getResolvedPidls(t,n).map(function(e){return e.identity})},this.getFirstPidlWithValidDefaultKey=function(t,n){return e.getResolvedPidls(t,n)[0]},this.getPidlSubmitOrder=function(t){var n={beforeBase:[],withBase:[],afterBase:[]};return e.getPidlContainersInSubmitOrder(t.displayDescription,n),n},this.resolveKeyProperty=function(e,t){var n=(e||{validation:null}).validation;return!rp.isUndefined(t)&&!!n&&new RegExp(n.resolutionRegex||n.regex).test(t)}}}()),no=new(function(){return function(){var e=this;this.getPropertyDescriptorsHelper=function(t,n,r){var o=[];for(var a in t){var s=t[a];if(s instanceof Array)for(var l=0;l<s.length;l++)o=o.concat(e.getPropertyDescriptorsHelper(s[l].data_description,n,r));else s.hasOwnProperty(n)&&s[n]===r&&o.push({propertyName:a,propertyDescriptor:s})}return o},this.getPropertyValueFromInputDataHelper=function(t,n){var r;for(var o in t)if(o===n){r=t[o];break}else if(rp.isObject(t[o])&&void 0!==(r=e.getPropertyValueFromInputDataHelper(t[o],n)))break;return r},this.getPropertyFromDataDescriptionHelper=function(t,n,r){if(void 0===r&&(r=!1),n)for(var o in t){var a,s=t[o];if(s instanceof Array){if(r&&o===n&&s[0])return s[0].data_description;else if(s.some(function(t){return void 0!==(a=e.getPropertyFromDataDescriptionHelper(t.data_description,n,r))}),void 0!==a)break}else if(e.propertyMatchesDataDescriptionInternal(s,o,n)){a=s;break}}return a},this.getFirstResolvedPidlDocument=function(t,n){var r=null;return t.some(function(t){if(e.getKeyPropertyDescriptors(t.data_description).every(function(t){return nr.resolveKeyProperty(t.propertyDescriptor,e.getPropertyValueFromInputData(n,t.propertyName))}))return r=t,!0}),r},this.propertyMatchesDataDescriptionInternal=function(e,t,n){return n&&(t===n||e&&e.display_property===n)},this.getPropertyNamesFromDataDescription=function(t,n,r){return e.getPropertyDescriptorsHelper(t,n,r)},this.getKeyPropertyDescriptors=function(t){return e.getPropertyNamesFromDataDescription(t,"is_key",!0)},this.getPropertyValueFromInputData=function(t,n){return e.getPropertyValueFromInputDataHelper(t,n)},this.getPropertyFromDataDescription=function(t,n){var r=e.getPropertyFromDataDescriptionHelper(t,n);return tE(r)?r:void 0},this.getPropertiesFromDataDescription=function(t,n){return e.getPropertyFromDataDescriptionHelper(t,n,!0)},this.propertyMatchesDataDescription=function(t,n,r){return e.propertyMatchesDataDescriptionInternal(t,n,r)},this.getDisplayPropertyName=function(e,t){return e.display_property||t}}}()),ni=new(function(){return function(){var e=this;this.setService=function(t,n){e.services[t]=n},this.getService=function(t){return e.services[t]},this.getCommerceService=function(){return e.getService("commerce")},this.setCommerceService=function(t){e.setService("commerce",t)},this.getLoggingService=function(){return e.getService("logging")},this.setLoggingService=function(t){e.setService("logging",t)},this.getPidlService=function(){return e.getService("pidl")},this.setPidlService=function(t){e.setService("pidl",t)},this.getRedirectionService=function(){return e.getService("redirection")},this.setRedirectionService=function(t){e.setService("redirection",t)},this.getTelemetryInjectionService=function(){return e.getService("telemetry")},this.setTelemetryInjectionService=function(t){e.setService("telemetry",t)},this.getPidlStoreService=function(){return e.getService("pidlStore")},this.setPidlStoreService=function(t){return e.setService("pidlStore",t)},this.getOneDSService=function(){return e.getService("oneDS")},this.setOneDSService=function(t){return e.setService("oneDS",t)},this.testHookResetServices=function(){e.services={}},this.services={}}}()),na=new(function(){return function(){var e=this;this.getDisplayDescriptionPidlActions=function(t,n){if(t&&(t.pidlAction&&n.push(t.pidlAction),tI(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getDisplayDescriptionPidlActions(t.members[r],n)},this.getLogoDescriptions=function(t,n){if(t&&n&&(tM(t)&&n.push(t),tI(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getLogoDescriptions(t.members[r],n)},this.getPidlIdentityForProperty=function(t,n){if(n){if(t instanceof Array){for(var r,o=0;o<t.length;o++)if(r=e.getPidlIdentityForProperty(t[o],n))return r}else if(t.data_description)for(var a in t.data_description){var s=t.data_description[a];if(s instanceof Array){if(r=e.getPidlIdentityForProperty(s,n))return r}else if(no.propertyMatchesDataDescription(s,a,n))return t.identity}}},this.createIdentityHash=function(e){var t="";for(var n in e)rp.isString(e[n])&&(t+=n+"_"+e[n]);return t},this.resolvePidlDocs=function(e,t){if(!(e instanceof Array))return[e];var n=[];if(t){for(var r=ni.getCommerceService(),o=0;o<e.length;o++)for(var a=0;a<t.length;a++)if(r.areIdentitiesEqual(e[o].identity,t[a])){n.push(e[o]);break}}return n},this.getDisplayDescriptionsPidlActions=function(t){var n=[];if(e.getDisplayDescriptionPidlActions(t,n),tF(t)){var r=t.possibleOptions;if(r)for(var o in r){var a=r[o].pidlAction;a&&(n=tl(tl([],n,!0),[a],!1))}}return n},this.getSubmitPidlAction=function(t){if(t&&t.displayDescription){var n=[];return t.displayDescription.forEach(function(t){e.getDisplayDescriptionPidlActions(t,n)}),rp.find(n,function(e){return e.type===k.submit})}},this.isPrimaryResource=function(e){return(e&&e.scenarioContext&&e.scenarioContext.resourceType||ef.primary)===ef.primary},this.ignoreTerminatingError=function(e){return e&&e.length>0&&e[0]&&e[0].scenarioContext&&e[0].scenarioContext.terminatingErrorHandling&&e[0].scenarioContext.terminatingErrorHandling===eh.ignore},this.matchPidlIdsToPidls=function(e,t,n){for(var r=t&&n&&t.length===n.length,o=0;r&&o<t.length;o++){for(var a=!1,s=0;s<n.length;s++){var l=n[s]?n[s].identity:null;a=a||e.areIdentitiesEqual(t[o],l)}r=r&&a}return r},this.translateErrorTargetsToDisplayProperties=function(e,t){var n=[];return e.forEach(function(e){var r=no.getPropertyFromDataDescription(t.data_description,e);n.push(r&&r.display_property||e)}),n},this.doesKeyPropertyTriggerPidlDownload=function(e){return e&&rp.boolify(e.pidl_download_enabled||e.possible_values)},this.getKeyPropertyPidlDownloadUrlParam=function(e,t){return e&&(e.pidl_download_parameter||e.possible_values&&t)},this.createKeyPropertyMap=function(e,t){for(var n={},r=function(e){return function(n){return t(e,n)}},o=0,a=e.length;o<a;o++)for(var s=no.getKeyPropertyDescriptors(e[o].data_description),l=0,c=s.length;l<c;l++){var u=s[l].propertyName,d=s[l].propertyDescriptor;n[u]={propertyDescriptor:d,getValue:r(u)}}return n},this.getPropertyValueGetter=function(e,t,n){return function(r,o){var a=e===r?t:n(r);return rp.toString(a)}},this.getDefaultPropertyValueGetter=function(){return function(e,t){return t&&rp.toString(t.default_value)}},this.getDataSourceObjects=function(e){var t=[];if(e&&(rp.isNullOrEmptyObject(e.dataSources)||t.push(e.dataSources),e.linkedPidls&&e.linkedPidls.length>0))for(var n=0;n<e.linkedPidls.length;n++)rp.isNullOrEmptyObject(e.linkedPidls[n].dataSources)||t.push(e.linkedPidls[n].dataSources);return t}}}()),ns=new(function(){return function(){var e=this;this.createModelElement=function(t,n,r,o,a,s,l,c,u){switch(t){case g.button:return e.addHandleToDisplayDescriptions(r,l),new nT(n,r,o,a,s,c,u);case g.filePicker:return new nE(n,r,o,a,s);case g.checkBox:return new n_(n,r,o,a,s);case g.dropdown:return e.addHandleToDisplayDescriptions(r,l),new nC(n,r,o,a,s);case g.group:return new np(t,n,r,o,a,s,u);case g.captcha:return new ng(t,n,r,o,a,s,u);case g.page:return new nv(n,r,o,a,s);case g.textGroup:return new ny(n,r,o,a,s);case g.dataCollectionBindingGroup:return new nf(n,r,o,a,s);case g.textBox:return new nS(n,r,o,a,s,l);case g.radio:return e.addHandleToDisplayDescriptions(r,l),new nk(n,r,o,a,s);case g.buttonList:return e.addHandleToDisplayDescriptions(r,l),new nw(n,r,o,a,s);case g.secureProperty:return new nH(n,r,o,a,s,l);case g.expressCheckoutButton:return new nz(n,r,o,a,s);case g.iFrame:return new nV(n,r,o,a,s);case g.challengeIFrame:return new nU(n,r,o,a,s);case g.heading:case g.subheading:case g.text:case g.hyperlink:return new nI(t,n,r,o,a,s,c,u);case g.image:return new nR(t,n,r,o,a,s,c,u);case g.logo:return new nM(n,r,o,a,s,l,u);case g.audio:return new nD(n,r,o,a,s,c,u);case g.expression:return new nA(n,r,o,a,s,c,u);case g.pidlContainer:return new nF(n,r,o,a,s);case g.pidlInstance:return new nO(n,r,o,a,s);case g.separator:return new nN(t,n,r,o,a,s,u);case g.spinner:return new nB(t,n,r,o,a,s,u);default:return new nc(t,n,r,o,a,s)}},this.addHandleToDisplayDescriptions=function(e,t){if(t){var n=t.getOperationHandle();if(n)for(var r=na.getDisplayDescriptionsPidlActions(e),o=0;o<r.length;o++){var a=r[o];(a.type===k.success||a.type===k.successWithPidlPayload)&&rp.isObject(a.context)&&(a.context.handle=n,rp.isObject(a.context.resourceActionContext)&&(a.context.resourceActionContext.handle=n))}}},this.getPidlIdentityHash=function(e,t){if(t.propertyName){var n=na.getPidlIdentityForProperty(e,t.propertyName);if(n)return na.createIdentityHash(n)}},this.isErrorObject=function(e){return void 0!==e.error},this.addPage=function(t,n,r,o,a,s,l){var c=e.create(t,n,r,o,a,!1,{},null,s,l);if(e.isErrorObject(c))return c;var u=null,d=c.element,p=tl([],c.warnings,!0);if(d)if(n$(d)){var f=e.createLinkedPidlModelElements(a,o,d.linkedPidlId,!0,{});if(e.isErrorObject(f))return f;u=tl([],f.elements,!0),p=tl(tl([],p,!0),f.warnings,!0)}else u=[d];return{elements:u,warnings:p}},this.create=function(t,n,r,o,a,s,l,c,u,d){var p=rd.getModelElementType(n,r);if(p.error)return{error:p.error};var f=e.getPidlIdentityHash(t,r),h=e.createModelElement(p.type,n,r,o,f,s,a,u,d),m=[];if(l&&(h.displayType!==eW.page&&l[h.displayId]&&(m=tl(tl([],m,!0),[new nt.unexpectedError(nn.duplicateDisplayHintIdOnPage,[h.displayId,c])],!1)),c||(c=h.displayId),l[h.displayId]=!0),nq(h))for(var g=h.displayDescription,v=["audioMembers","imageMembers"],y=0;y<v.length;y++)for(var b=0;b<g[v[y]].length;b++){var x=e.create(t,t&&no.getPropertyFromDataDescription(t.data_description,g[v[y]][b].propertyName),g[v[y]][b],o,a,s,l,c,u,d);if(e.isErrorObject(x))return x;m=tl(tl([],m,!0),x.warnings,!0);var C=x.element;0===y?h.audioChildren.push(C):h.imageChildren.push(C)}else if(nW(h))for(var g=h.displayDescription,b=0;b<g.members.length;b++){var x=e.create(t,t&&no.getPropertyFromDataDescription(t.data_description,g.members[b].propertyName),g.members[b],o,a,s,l,c,u,d);if(e.isErrorObject(x))return x;m=tl(tl([],m,!0),x.warnings,!0);var C=x.element;if(n$(C)){var k=e.createLinkedPidlModelElements(a,o,C.linkedPidlId,!1,l,c);if(e.isErrorObject(k))return k;h.children=tl(tl([],h.children,!0),k.elements,!0),m=tl(tl([],m,!0),k.warnings,!0)}else h.children.push(C)}else n0(h)?e.createButtonWithDisplayContentGroup(h):e.createPossibleOptionMembers(h,u);return{element:h,warnings:m}},this.createPossibleOptionMembers=function(t,n){if(nK(t))for(var r in t.possibleOptions){var o=t.possibleOptions[r];if(o.displayContent){var a=e.createModelElementsFromDisplayDescriptions([o.displayContent],t.operationType,n),s=a.elements;s&&s.length>=1&&(o.displayContentContainer=s[0])}}},this.createButtonWithDisplayContentGroup=function(t){if(t.displayDescription.displayContentDisplayDescription){var n=t.displayDescription.displayContentDisplayDescription,r=e.createModelElementsFromDisplayDescriptions([n],t.operationType).elements;r&&r.length>=1&&(t.displayContentModelElement=r[0])}},this.createLinkedPidlModelElements=function(t,n,r,o,a,s){for(var l=na.createIdentityHash(r),c=t.getLinkedPidl(l),u={elements:[],warnings:[]},d=!1,p=0;p<c.displayDescription.length;p++){var f=c.displayDescription[p],h=e.create(c,no.getPropertyFromDataDescription(c.data_description,f.propertyName),f,n,t,!0,a,s);if(e.isErrorObject(h))return h;var m=h.element,g=h.warnings;if(u.warnings=tl(tl([],u.warnings,!0),g,!0),!o&&nG(m))if(d)return{error:new nt.unexpectedError(nn.multiplePagesInLinkedPidlForSinglePagePidlContainer)};else u.elements=tl(tl([],u.elements,!0),m.children,!0),d=!0;else u.elements=tl(tl([],u.elements,!0),[m],!1)}return u},this.createModelElements=function(t,n){var r=t.getResolvedOrFirstPidlDoc(),o=[],a=[];if(r&&r.displayDescription&&r.displayDescription.length)for(var s=0;s<r.displayDescription.length;s++){var l=r.displayDescription[s],c=e.addPage(r,no.getPropertyFromDataDescription(r.data_description,l.propertyName),l,n,t);if(e.isErrorObject(c))return c;o=tl(tl([],o,!0),c.elements,!0),a=tl(tl([],a,!0),c.warnings,!0)}return 0===o.length?{error:new nt.unexpectedError(nn.noDisplayDescriptionInPidlDocument)}:{elements:o,warnings:a}},this.createModelElementsFromDisplayDescriptions=function(t,n,r,o,a,s){for(var l=[],c=0;c<t.length;c++){var u=t[c];if(u){var d=a&&a.data_description&&no.getPropertyFromDataDescription(a.data_description,u.propertyName),p=e.addPage(a,d,u,n,s,r,o);e.isErrorObject(p)||(l=tl(tl([],l,!0),p.elements,!0))}}return{elements:l}}}}()),nl=new(function(){function e(){var e=this;this.normalizeValueToOptions=function(e,t){var n=rp.find(e,function(e){return rp.equalsIgnoreCase(e,t)});return n||(n=""),n},this.updateModelElements=function(t,n,r){e.propertiesVisitorProcessingAny(t,function(e,t){return!!e.update&&e.update(t,r)},n,r)},this.findFirstMatchingProperty=function(t,n){var r={properties:n};return e.propertiesVisitorProcessingDataProperty(t,function(e,t){if(!e.isPrefillControl()&&rp.contains(t.properties,e.getPropertyName()))return t.matchedProperty=e.getPropertyName(),!0},r),r.matchedProperty},this.getParentIfSame=function(t,n){for(var r=null,o=0;o<n.length;o++){var a={propertyName:n[o]};if(e.propertiesVisitorProcessingAny(t,function(e,t){if(e&&e.children){for(var n=0;n<e.children.length;n++)if(e.children[n].isProperty()){var r=e.children[n];if(r&&r.getPropertyName&&r.getPropertyName()===t.propertyName)return t.parent=e,!0}}},a),a.parent)if(r){if(a.parent!==r)return null}else r=a.parent}return r},this.findPropertyElement=function(t,n){var r={propertyName:n};return e.propertiesVisitorProcessingDataProperty(t,function(e,t){if(e.getPropertyName()===t.propertyName)return t.element=e,!0},r),r.element},this.findElement=function(t,n){var r={};return e.propertiesVisitorProcessingAny(t,function(e,t){if(n(e))return t.element=e,!0},r),r.element},this.findAllElements=function(t,n){var r={elements:[]};return e.propertiesVisitorProcessingAny(t,function(e,t){n(e)&&t.elements.push(e)},r),r.elements},this.findPrefillControlElement=function(t){return e.findElement(t,function(e){if(e&&e.displayType===eW.prefillControl)return!0})},this.findFirstVisibleEnabledPropertyElement=function(t){var n={};return e.propertiesVisitorProcessingAny(t,function(e,t){if(e&&(e.isProperty()||e.isSecureProperty()||e.isPrefillControl())&&!e.disabled()&&!e.hidden())return t.element=e,!0},n),n.element},this.isButtonWithDisplayDescription=function(e){return n0(e)&&!rp.isNullOrUndefined(e.displayDescription)},this.findFirstButtonElement=function(t){return e.findElement(t,function(e){return n0(e)})},this.findHighlightedButton=function(t){return e.findElement(t,function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.isHighlighted})},this.findDefaultPidlActionButton=function(t){return e.findElement(t,function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.pidlAction&&t.displayDescription.pidlAction.isDefault})},this.getDefaultPidlActionButton=function(t,n){var r=e.findDefaultPidlActionButton(t);return r||(r=e.findHighlightedButton(t)||e.findFirstButtonElement(t)),r},this.getDefaultPidlAction=function(t,n){var r=e.findDefaultPidlActionButton(t);return r||(r=e.findHighlightedButton(t)),r&&r.displayDescription&&r.displayDescription.pidlAction},this.getDefaultSuccessPidlPayload=function(t,n){var r=e.getDefaultPidlAction(t,n);if(r&&(r.type===k.success||r.type===k.successWithPidlPayload))return r.context},this.normalizeValueToPossibleValues=function(t,n){var r=e.normalizeValueToOptions(rp.getKeys(t.possibleOptions),n);return rp.isEmptyString(r)&&t.dataDescription.possible_values&&(r=e.normalizeValueToOptions(rp.getKeys(t.dataDescription.possible_values),n)),r},this.normalizeValueToDisplayDescriptionPossibleOptions=function(t,n){return e.normalizeValueToOptions(rp.getKeys(t.possibleOptions),n)},this.getPollingPidlActions=function(t){var n={};return t.forEach(function(t){t.pidlAction&&t.pidlAction.type===k.poll&&(n[t.displayId]=t.pidlAction),t.children&&(n=te(te({},n),e.getPollingPidlActions(t.children)))}),n},this.getPagePidlActions=function(e,t){var n={};return e.forEach(function(e){rp.isObject(e.pidlAction)&&(!rp.isString(t)||e.pidlAction.type===t)&&(n[e.displayId]=e.pidlAction)}),n},this.findRadioElements=function(t){return e.findAllElements(t,function(e){return n7(e)})},this.findExpressCheckoutButtonElements=function(t){return e.findAllElements(t,function(e){return ra(e)})}}return e.prototype.propertyVisitorProcessingDataProperty=function(e,t,n){if(e){if(e.isProperty()||e.isSecureProperty()||e.isCaptcha()){var r=t(e,n);if(r)return r}if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,t,n);n&&delete n.stopDescendantsProcessing}},e.prototype.propertyVisitorProcessingAny=function(e,t,n,r){if(e){var o,a=t(e,n);if(a)return a;if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingAny(e.children,t,n,r);if(nK(e)&&e.possibleOptions&&(!n||!n.stopDescendantsProcessing)){var s=!1;if(e.dataCollectionSource&&e.possibleOptionsTemplate&&(null==n?void 0:n.modelData)){var l=e.getBindingData(n);if(l&&l.length>0)for(var c=0;c<l.length;c++){var u=te(te({},n),{contextData:l[c]}),d=e.getPossibleOptionKey(u);d&&e.possibleOptions[d]&&(s=s||this.propertiesVisitorProcessingAny([null==(o=e.possibleOptions[d])?void 0:o.displayContentContainer],t,u,r))}}else for(var p=0,f=Object.values(e.possibleOptions);p<f.length;p++){var h=f[p];s=s||this.propertiesVisitorProcessingAny([null==h?void 0:h.displayContentContainer],t,n,r)}return s}n&&delete n.stopDescendantsProcessing}},e.prototype.propertiesVisitorProcessingDataProperty=function(e,t,n){if(e)if(!rp.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,n);else for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingDataProperty(e[r],t,n);if(o)return o}},e.prototype.propertiesVisitorProcessingAny=function(e,t,n,r){if(e)if(!rp.isArray(e))return this.propertyVisitorProcessingAny(e,t,n,r);else for(var o=0;o<e.length;o++){var a=this.propertyVisitorProcessingAny(e[o],t,n,r);if(a)return a}},e}()),nc=function(){function e(e,t,n,r,o,a){var s=this;this.isText=function(){return s.isStaticText()||s.type===g.hyperlink},this.isStaticText=function(){return s.type===g.heading||s.type===g.subheading||s.type===g.text||s.type===g.expression},this.isProperty=function(){return s.displayDescription.displayType===eW.property},this.isCaptcha=function(){return s.displayDescription.displayType===eW.captcha},this.isPrefillControl=function(){return s.displayDescription.displayType===eW.prefillControl},this.isButton=function(){return s.displayDescription.displayType===eW.button},this.isHighlighted=function(){return s.displayDescription.isHighlighted},this.isIframe=function(){return s.displayDescription.displayType===eW.iFrame},this.isChallengeIframe=function(){return s.displayDescription.displayType===eW.challengeIframe},this.isSecureProperty=function(){return s.displayDescription.displayType===eW.secureProperty},this.showKeyLogo=function(){return rp.boolify(s.dataDescription)&&!0===s.dataDescription.is_key},this.disabled=function(){return s.operationType===eL.update&&s.dataDescription&&!1===s.dataDescription.is_updatable||!0===s.isDisabled},this.hidden=function(){return s.isHidden||s.hasNoDataToShow},this.canBeRendered=function(){return s.displayConditionResult},this.isConditionalFieldProperty=function(){return rp.boolify(s.dataDescription&&s.dataDescription.isConditionalFieldValue)},this.getPrefixedTags=function(e,t,n){n=n||function(e,t){return!0};var r={};return Object.keys(s.tags?s.tags:{}).forEach(function(o){var a=s.tags[o];rp.startsWith(o,e)&&n(o,a)&&(r[t?o.replace(e,""):a]=a)}),r},this.getParentHtmlClassTags=function(){return s.getPrefixedTags(eu.parent,!1,function(e,t){return!ec[e.replace(eu.parent,"")]})},this.getHelpDialogTags=function(){return s.getPrefixedTags(eu.helpDialog,!0,function(e,t){return ec[e.replace(eu.helpDialog,"")]})},this.update=function(e,t){if(s.displayCondition&&(s.displayConditionResult=rd.getFunctionExecutionResult(s.displayCondition,e)),s.conditionalFields){for(var n in s.conditionalFields)if(s.hasOwnProperty(n)){var r=s.conditionalFields[n];s[n]=rd.getConditionalFieldValue(r,e,s)}}return s.updateModelElement(e,t)},this.operationType=r,this.dataDescription=t,this.displayDescription=n,this.type=e,this.pidlIdentity=o,this.isLinkedPidl=a,this.hasNoDataToShow=!1;var l=this.displayDescription,c=l.isHidden,u=l.displayCondition,d=l.displayId,p=l.displayType,f=l.tags,h=l.propertyName,m=l.pidlAction,v=l.displayHelpName,y=l.displayHelp,b=l.displayImage,x=l.isDisabled,C=l.styleHints,k=l.conditionalFields;this.isHidden=!0===c,this.displayCondition=u,this.displayConditionResult=!this.displayCondition,this.pidlAction=m,this.displayId=d,this.displayType=p,this.tags=f,this.styleHints=C,this.conditionalFields=k,this.displayHelpName=v,this.displayHelp=y,this.displayImage=b,this.accessibilityName=null,this.tabIndex=null,this.tags&&(this.accessibilityName=this.tags.accessibilityName,this.accessibilityHint=this.tags.accessibilityHint,this.disabledAccessibilityName=this.tags.disabledAccessibilityName,this.tags.tabIndex&&(this.tabIndex=String(this.tags.tabIndex)),this.maxLengthMessage=this.tags.maxLengthMessage);var w=h;this.id=w||d,this.isDisabled=x,this.children=[],this.audioChildren=[],this.imageChildren=[]}return e.prototype.updateModelElement=function(e,t){return!1},e}(),nu=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,r,o,a,s)||this,c=r.layoutOrientation,u=r.layoutAlignment,d=r.containerDescription,p=r.members,f=r.displayName,h=r.showDisplayName;return l.layoutOrientation=c||eq.vertical,l.layoutAlignment=u,l.containerDescription=d,l.members=p,l.displayName=f,l.showDisplayName=f&&rp.boolify(h),l}return e7(t,e),t}(nc),nd=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,t,n,r,o,a,s)||this,u=r.displayName,d=r.showDisplayName,p=r.isSubmitGroup,f=r.isModalGroup;return c.displayName=u,c.showDisplayName=u&&(!d||d===C.stringTrue),c.isSubmitGroup=p,c.isModalGroup=f,l&&(c.id+=l),c}return e7(t,e),t}(nu),np=function(e){function t(t,n,r,o,a,s,l){return e.call(this,t,n,r,o,a,s,l)||this}return e7(t,e),t.prototype.updateModelElement=function(e){if(this.pidlAction&&rp.isObject(this.pidlAction.context)){var t={};for(var n in this.pidlAction.context)"instance"===n&&rp.isString(this.pidlAction.context[n])?t[n]=rd.getFormatInstanceExpressionValue(this.pidlAction.context[n],e):t[n]=rd.getFormatStringExpressionValue(this.pidlAction.context[n],e);this.pidlAction.context=t}return!1},t}(nd),nf=function(e){function t(t,n,r,o,a){var s=e.call(this,g.dataCollectionBindingGroup,t,n,r,o,a)||this;return s.dataCollectionSource=n.dataCollectionSource,s.filterDescription=n.filterDescription,s.childrenTemplates=s.children,s}return e7(t,e),t.prototype.updateModelElement=function(e){if(this.dataCollectionSource){var t=rd.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(t=rd.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:t}));var n=null;if(t&&t.length&&rp.isArray(t)){n=[];for(var r=0;r<t.length;r++)for(var o={modelData:e.modelData,contextData:t[r]},a=0;a<this.childrenTemplates.length;a++){var s=String(r);e.depth?(this.id=this.id+e.depth,o.depth=(s=e.depth+"_"+s)+String.fromCharCode(e.depth.charCodeAt(e.depth.length-1)+1)):o.depth=s+"a";var l=rp.deepCopy(this.childrenTemplates[a]),c=ns.createModelElementsFromDisplayDescriptions([l.displayDescription],this.operationType,o,s).elements;c&&c.length>=1&&(e.stopDescendantsProcessing=!0,nl.updateModelElements(c,o),n=n.concat(c))}}this.children=n}return!1},t}(nd),nh=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,r,o,a,s)||this,c=r.layoutOrientation,u=r.layoutAlignment,d=r.containerDescription,p=r.audioMembers,f=r.imageMembers,h=r.displayName,m=r.showDisplayName;return l.layoutOrientation=c||eq.vertical,l.layoutAlignment=u,l.containerDescription=d,l.audioMembers=p,l.imageMembers=f,l.displayName=h,l.showDisplayName=h&&rp.boolify(m),l}return e7(t,e),t}(nc),nm=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,t,n,r,o,a,s)||this;c.getPropertyName=function(){return c.displayDescription.propertyName},c.required=function(){return!0!==c.dataDescription.is_optional};var u=r.displayName,d=r.showDisplayName;return c.displayName=u,c.showDisplayName=u&&(!d||d===C.stringTrue),c.defaultValue=n.default_value,l&&(c.id+=l),c}return e7(t,e),t}(nh),ng=function(e){function t(t,n,r,o,a,s,l){return e.call(this,t,n,r,o,a,s,l)||this}return e7(t,e),t}(nm),nv=function(e){function t(t,n,r,o,a){var s=e.call(this,g.page,t,n,r,o,a)||this;return s.displayName=n.displayName,s.keyPidlActions=n.keyPidlActions,s}return e7(t,e),t}(nu),ny=function(e){function t(t,n,r,o,a){var s=e.call(this,g.textGroup,t,n,r,o,a)||this;return s.displayContent=n.displayContent,s}return e7(t,e),t}(nu),nb=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,r,o,a,s)||this;l.getPropertyName=function(){return l.displayDescription.propertyName},l.getErrorMessage=function(e,t){var n,r=l.displayErrorMessages;if(r){if(t&&r.fromErrorCode)for(var o=0;o<r.fromErrorCode.length;o++){var a=r.fromErrorCode[o];if(a.errorCode===t){n=a.errorMessage;break}}else if(r.fromRegex)for(var o=0;o<r.fromRegex.length;o++){var s=r.fromRegex[o];if(new RegExp(s.regex).test(e)){n=s.errorMessage;break}}n||(n=r.defaultErrorMessage)}return n},l.required=function(){return!0!==l.dataDescription.is_optional&&l.displayDescription.displayType!==eW.prefillControl};var c=l.displayDescription,u=c.displayName,d=c.showDisplayName,p=c.displayErrorMessages,f=c.displayLogo,h=c.maskDisplay,m=c.resolutionPolicy,g=c.displayHelpPosition,v=c.onfocusout,y=n.is_key,b=n.transformation,x=n.displayOnly,k=n.default_value,w=n.broadcastTo,S=n.sideEffects,_=n.onValidationFailed,E=n.usePreExistingValue;return rp.isFormatStringExpressionPlaceholder(k)?l.defaultValueTemplate=k:l.defaultValue=k,l.displayName=u,l.showDisplayName=u&&(!d||d===C.stringTrue),l.isKeyProperty=!0===y,l.supportsDisplayTransformation=b&&!rp.isNullOrUndefined(b.forDisplay),l.displayErrorMessages=p,l.displayLogo=f,l.maskDisplay=h,l.triggerPidlDownloadOnChange=l.isKeyProperty&&na.doesKeyPropertyTriggerPidlDownload(l.dataDescription),l.resolutionPolicy=m||eX.always,l.displayOnly=x,l.displayHelpPosition=g,l.broadcastTo=w,l.sideEffects=S,l.onValidationFailed=_,l.usePreExistingValue=E,l.onfocusout=v,l}return e7(t,e),t.prototype.updateModelElement=function(e,t){if(this.defaultValueTemplate&&(this.defaultValue=rd.getFormatStringExpressionValue(this.defaultValueTemplate,e),e.modelData&&this.defaultValue)){var n=e.modelData.getModelDataProperty(this.getPropertyName());n&&!n.getValue()&&n.setValue(this.defaultValue)}if(this.conditionalFields&&!rp.isNullOrUndefined(this.conditionalFields.value)&&e&&e.resultData&&e.resultData.propertyUpdates){var r=rd.getConditionalFieldValue(this.conditionalFields.value,e,this);e.resultData.propertyUpdates.push({propertyName:this.getPropertyName(),propertyValue:r,propertyElement:this})}return this.updatePropertyElement(e,t)},t.prototype.updatePropertyElement=function(e,t){return!1},t}(nc),nx=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,r,o,a,s)||this;l.firstElementIdSuffix=function(){return l.getFirstElementIdSuffix(l.possibleOptions)},l.getBindingData=function(e,t){if(l.dataCollectionSource&&l.possibleOptionsTemplate){var n=[];if(rp.isArray(l.dataCollectionSource))for(var r=0,o=l.dataCollectionSource;r<o.length;r++){var a=o[r],s=rd.getPropertyExpressionValue(a,e);n.push.apply(n,s)}else n=rd.getPropertyExpressionValue(l.dataCollectionSource,e);if(l.filterDescription&&(n=rd.getFunctionExecutionResult(l.filterDescription,{modelData:e.modelData,contextData:n},t)),n&&rp.isArray(n)&&n.length>0)return n}return[]},l.getPossibleOptionKey=function(e){return rd.getFormatStringExpressionValue(l.possibleOptionsTemplate.key,e)};var c=r.possibleOptions,u=r.possibleValues,d=r.dataCollectionSource,p=r.filterDescription,f=r.displaySelectionText,h=r.displayPropertyDescription,m=r.isSelectFirstItem,g=r.alwaysUpdateModelValue;if(l.possibleValues=u,l.possibleOptions=c,!l.possibleOptions&&u&&(l.possibleOptions=l.getPossibleOptions(u)),l.dataCollectionSource=d,l.filterDescription=p,l.displaySelectionText=f,l.description=h,l.isSelectFirstItem=m,l.selectedIndex=l.displaySelectionText?0:-1,l.alwaysUpdateModelValue=g,l.dataCollectionSource){var v=Object.keys(l.possibleOptions);v&&v.length&&rp.isFormatStringExpressionPlaceholder(v[0])&&(l.possibleOptionsTemplate=l.possibleOptions[v[0]],l.possibleOptionsTemplate.key=v[0],l.possibleOptions={})}return l.isSelectFirstItem&&l.selectedIndex++,l}return e7(t,e),t.prototype.updatePropertyElement=function(e,t){if(this.dataCollectionSource&&this.possibleOptionsTemplate){var n=[];if(rp.isArray(this.dataCollectionSource))for(var r=0,o=this.dataCollectionSource;r<o.length;r++){var a=o[r],s=rd.getPropertyExpressionValue(a,e);n.push.apply(n,s)}else n=rd.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(n=rd.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:n},t));var l={},c=this.defaultValue;if(n&&n.length&&rp.isArray(n))for(var u=0;u<n.length;u++){var d={modelData:e.modelData,contextData:n[u]},p=rd.getFormatStringExpressionValue(this.possibleOptionsTemplate.key,d);if(this.isSelectFirstItem&&rp.isNullOrUndefinedOrWhiteSpaceString(c)&&(c=p,e.modelData)){var f=e.modelData.getModelDataProperty(this.getPropertyName());f&&f.setValue(p)}var h={};for(var m in this.possibleOptionsTemplate){var v=rd.getFormatStringExpressionValue(this.possibleOptionsTemplate[m],d);h[m]=rp.isObject(v)?rp.deepCopy(v):v}if(h.displayContent){var y=ns.createModelElementsFromDisplayDescriptions([h.displayContent],this.operationType,d,String(u));y.elements&&y.elements.length>=1&&(nl.updateModelElements(y.elements,d),h.displayContentContainer=y.elements[0])}h.pidlAction=h.pidlAction||{},h.pidlAction.context=n[u],l[p]=h}else t&&t.notifyNoSelectionOptionsFound(this.id,this.displayId,this.pidlIdentity,this.type);this.possibleOptions=l,this.hasNoDataToShow=0===rp.keyCount(this.possibleOptions)}if(!this.hasNoDataToShow){var b=rd.getFunctionExecutionResult({functionName:"filterOptions"},{modelData:e.modelData,contextData:{propertyName:this.getPropertyName(),possible_values:this.dataDescription.possible_values,possibleValues:this.possibleValues,possibleOptions:this.possibleOptions}});if(b){var x=b.possible_values,C=b.possibleValues,k=b.possibleOptions;x&&(this.dataDescription.possible_values=x),C&&(this.possibleValues=C),k&&(this.possibleOptions=k)}}return this.displayDescription.disableSingleItemDropdown&&this.type===g.dropdown&&this.possibleOptions&&1===rp.keyCount(this.possibleOptions)?(this.isDisabled=!0,this.defaultValue=this.defaultValue||rp.getFirstKey(this.possibleOptions)):this.isDisabled=this.displayDescription.isDisabled,!1},t.prototype.getFirstElementIdSuffix=function(e){for(var t in e)return"_"+t},t.prototype.getPossibleOptions=function(e){var t={};for(var n in e)t[n]={displayText:e[n],isDisabled:void 0};return t},t}(nb),nC=function(e){function t(t,n,r,o,a){var s=e.call(this,g.dropdown,t,n,r,o,a)||this;return s.defaultValue&&(s.defaultValue=nl.normalizeValueToPossibleValues(s,s.defaultValue)),s}return e7(t,e),t}(nx),nk=function(e){function t(t,n,r,o,a){var s=e.call(this,g.radio,t,n,r,o,a)||this;return s.defaultValue||(s.defaultValue=rp.getFirstKey(s.possibleValues)),s}return e7(t,e),t}(nx),nw=function(e){function t(t,n,r,o,a){var s=e.call(this,g.buttonList,t,n,r,o,a)||this;return s.findFirstValidPidlAction=function(e){for(var t,n=rp.copyArray(null==(t=null==e?void 0:e.displayContentContainer)?void 0:t.children),r={};n.length;){var o=n.shift();if(!r[o.id]){if(r[o.id]=!0,o.pidlAction&&o.canBeRendered()){e.pidlAction=o.pidlAction;break}if(nW(o))for(var a=null==o?void 0:o.children,s=0;s<(null==a?void 0:a.length);s++)n.push(a[s])}}},s}return e7(t,e),t.prototype.updateModelElement=function(t,n){for(var r in e.prototype.updateModelElement.call(this,t,n),this.possibleOptions)this.findFirstValidPidlAction(this.possibleOptions[r])},t}(nx),nS=function(e){function t(t,n,r,o,a,s){var l=e.call(this,g.textBox,t,n,r,o,a)||this;l.getResolvedLogo=function(){return(l.pidlDocManager&&l.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},l.placeHolderText=function(){var e=l.displayDescription,t=e.displayPropertyDescription,n=e.displayExample;if(t){if(!l.showDisplayName||t!==l.displayDescription.displayName)return t}else if(n&&n.length>0)return n[0];return null},l.getTextBoxType=function(){var e=l.displayDescription,t=e.inputScope,n=e.maskInput;return t||(!0===n||"password"===l.dataDescription.type?"password":"text")};var c=n.maxLength,u=n.direction,d=n.textAlignment;return l.displayTransformations=n.displayTransformations,l.maxLength=c,l.direction=u,l.textAlignment=d,l.pidlDocManager=s,l}return e7(t,e),t}(nb),n_=function(e){function t(t,n,r,o,a){var s=e.call(this,g.checkBox,t,n,r,o,a)||this;return s.description=n.displayPropertyDescription,s}return e7(t,e),t}(nb),nE=function(e){function t(t,n,r,o,a){var s=e.call(this,g.filePicker,t,n,r,o,a)||this;return s.displayContent=n.displayContent,s}return e7(t,e),t}(nb),nP=function(e){function t(t,n,r,o,a,s,l,c){var u=e.call(this,t,n,r,o,a,s)||this;return u.displayContentTemplate=r.displayContent,u.displayContent=rd.getFormatStringExpressionValue(u.displayContentTemplate,l),c&&(u.id+=c,u.displayId=u.id),u}return e7(t,e),t.prototype.updateModelElement=function(e){return this.displayContent=rd.getFormatStringExpressionValue(this.displayContentTemplate,e),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceInfo&&this.pidlAction.context.resourceActionContext.resourceInfo.id&&(this.pidlAction.context.resourceActionContext.resourceInfo.id=rd.getFormatStringExpressionValue(this.pidlAction.context.resourceActionContext.resourceInfo.id,e)),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceObjPath&&(this.pidlAction.context.resourceActionContext.resource=rd.getPropertyExpressionValue(this.pidlAction.context.resourceActionContext.resourceObjPath,e)),this.type===g.hyperlink&&this.pidlAction&&rp.isString(this.pidlAction.context)&&(this.pidlAction.context=rd.getFormatStringExpressionValue(this.pidlAction.context,e)),!1},t}(nc),nI=function(e){function t(t,n,r,o,a,s,l,c){return e.call(this,t,n,r,o,a,s,l,c)||this}return e7(t,e),t}(nP),nT=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,g.button,t,n,r,o,a,s,l)||this;return c.tooltipText=n.tooltipText,c}return e7(t,e),t}(nP),nD=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,g.audio,t,n,r,o,a,s,l)||this;return c.audioUrl=rd.convertBase64strIntoBlobUrl(n.audioUrl,"audio/mp3"),c}return e7(t,e),t}(nP),nA=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,g.expression,t,n,r,o,a,s,l)||this;return c.expression=n.displayContent,c}return e7(t,e),t.prototype.updateModelElement=function(e){var t;return this.displayContent=rd.getExpressionValue(this.expression,e),(null==(t=this.tags)?void 0:t.accessibilityNameExpression)&&(this.accessibilityName=rd.getExpressionValue(this.tags.accessibilityNameExpression,e)),!1},t}(nP),nR=function(e){function t(t,n,r,o,a,s,l,c){var u=e.call(this,t,n,r,o,a,s)||this;return u.sourceUrlTemplate=r.sourceUrl,u.sourceUrl=rd.getFormatStringExpressionValue(u.sourceUrlTemplate,l),r.codepoint&&(u.codepoint=Number(r.codepoint)),u.accessibilityName=rd.getFormatStringExpressionValue(u.accessibilityName,l),c&&(u.id+=c,u.displayId=u.id),u}return e7(t,e),t}(nc),nN=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,t,n,r,o,a,s)||this;return l&&(c.id+=l,c.displayId=c.id),c}return e7(t,e),t}(nc),nB=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,t,n,r,o,a,s)||this;return l&&(c.id+=l,c.displayId=c.id),c}return e7(t,e),t}(nc),nM=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,g.logo,t,n,r,o,a)||this;return c.getResolvedLogo=function(){return(c.pidlDocManager&&c.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},c.getAllLogos=function(){return c.pidlDocManager.getAllLogos()},c.sourceUrl=n.sourceUrl,c.pidlDocManager=s,l&&(c.id+=l,c.displayId=c.id),c}return e7(t,e),t}(nc),nF=function(e){function t(t,n,r,o,a){var s=e.call(this,g.pidlContainer,t,n,r,o,a)||this;return s.linkedPidlId=n.linkedPidlId,s.submitOrder=n.submitOrder,s}return e7(t,e),t}(nc),nO=function(e){function t(t,n,r,o,a){var s=e.call(this,g.pidlInstance,t,n,r,o,a)||this;return s.pidlInstance=n.pidlInstance,s}return e7(t,e),t}(nc),nL=function(){return function(){this.isOptional=!1,this.resolutionPolicy=eX.always}}(),nH=function(e){function t(t,n,r,o,a,s){var l=e.call(this,g.secureProperty,t,n,r,o,a)||this;l.placeHolderText=function(){var e=l.displayDescription,t=e.displayPropertyDescription,n=e.displayExample;if(t){if(!l.showDisplayName||t!==l.displayDescription.displayName)return t}else if(n&&n.length>0)return n[0];return null},l.getResolvedLogo=function(){return(l.pidlDocManager&&l.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl};var c=n.sourceUrl,u=n.width,d=n.height,p=n.messageTimeout,f=n.frameName,h=n.displayName,m=n.propertyName,v=n.displayLogo;return l.sourceUrl=t_.createFromTemplate(c),l.width=u,l.height=d,l.messageTimeout=p,l.frameName=f,l.displayName=h,l.propertyName=m,l.displayLogo=v,l.pidlDocManager=s,l}return e7(t,e),t.prototype.validate=function(){return this.validationPromise()},t.prototype.prepareForSubmit=function(e){return this.submitPromise(e)},t}(nb),nz=function(e){function t(t,n,r,o,a){var s=e.call(this,g.expressCheckoutButton,t,n,r,o,a)||this,l=n.sourceUrl,c=n.displayContent,u=n.width,d=n.height,p=n.frameName,f=n.payload,h=n.messageTimeout;return s.sourceUrl=l,s.displayContent=c,s.width=u,s.height=d,s.frameName=p,s.payload=f,s.messageTimeout=h,s}return e7(t,e),t}(nP),nV=function(e){function t(t,n,r,o,a){var s=e.call(this,g.iFrame,t,n,r,o,a)||this,l=n.sourceUrl,c=n.displayContent,u=n.width,d=n.height,p=n.expectedClientActionId,f=n.messageTimeout,h=n.messageTimeoutClientAction,m=n.useAuth,v=n.loadingMessage;return s.sourceUrl=l,s.displayContent=c,s.width=u,s.height=d,s.expectedClientActionId=p,s.messageTimeout=f,s.messageTimeoutClientAction=h,s.useAuth=m,s.loadingMessage=v,s}return e7(t,e),t}(nP),nU=function(e){function t(t,n,r,o,a){var s=e.call(this,g.challengeIFrame,t,n,r,o,a)||this,l=n.sourceUrl,c=n.displayContent,u=n.width,d=n.height,p=n.expectedClientActionId,f=n.messageTimeout,h=n.messageTimeoutClientAction,m=n.useAuth,v=n.loadingMessage;return s.sourceUrl=l,s.displayContent=c,s.width=u,s.height=d,s.expectedClientActionId=p,s.messageTimeout=f,s.messageTimeoutClientAction=h,s.useAuth=m,s.loadingMessage=v,s}return e7(t,e),t}(nP);function nj(e){return!rp.isNullOrUndefined(e)&&"type"in e}function nW(e){return nj(e)&&(e.type===g.page||e.type===g.group||e.type===g.textGroup||e.type===g.dataCollectionBindingGroup||e.type===g.captcha)}function nq(e){return nj(e)&&e.type===g.captcha}function nG(e){return nj(e)&&e.type===g.page}function nK(e){return nj(e)&&(e.type===g.dropdown||e.type===g.radio||e.type===g.buttonList)}function nX(e){return nj(e)&&e.type===g.dropdown}function nY(e){return nX(e)&&e.displayType===eW.prefillControl}function n$(e){return nj(e)&&e.type===g.pidlContainer}function nQ(e){return nj(e)&&e.type===g.pidlInstance}function nJ(e){return nj(e)&&e.type===g.image}function nZ(e){return nj(e)&&e.type===g.logo}function n0(e){return nj(e)&&e.type===g.button}function n1(e){return nj(e)&&e.type===g.filePicker}function n2(e){return nj(e)&&e.type===g.checkBox}function n5(e){return n2(e)&&e.displayType===eW.prefillControl}function n4(e){return nj(e)&&(e.type===g.page||e.type===g.group||e.type===g.dataCollectionBindingGroup)}function n3(e){return nj(e)&&e.type===g.group}function n6(e){return nj(e)&&e.type===g.textGroup}function n8(e){return nj(e)&&e.type===g.textBox}function n9(e){return nj(e)&&e.type===g.buttonList}function n7(e){return nj(e)&&e.type===g.radio}function re(e){var t=[g.heading,g.subheading,g.text,g.hyperlink];return nj(e)&&rp.contains(t,e.type)}function rt(e){return nj(e)&&e.type===g.dataCollectionBindingGroup}function rn(e){return nj(e)&&e.type===g.expression}function rr(e){return nj(e)&&e.type===g.iFrame}function ro(e){return nj(e)&&e.type===g.challengeIFrame}function ri(e){return nj(e)&&e.type===g.secureProperty}function ra(e){return nj(e)&&e.type===g.expressCheckoutButton}function rs(e){return nj(e)&&e.type===g.separator}function rl(e){return nj(e)&&e.type===g.audio}function rc(e){return nj(e)&&e.isProperty()}var ru=Object.freeze({__proto__:null,ModelElement:nc,ContainerElement:nu,GenericGroupElement:nd,GroupElement:np,DataCollectionBindingGroupElement:nf,CaptchaContainerElement:nh,GenericCaptchaElement:nm,CaptchaElement:ng,PageElement:nv,TextGroupElement:ny,PropertyElement:nb,SelectionElement:nx,DropdownElement:nC,RadioElement:nk,ButtonListElement:nw,TextBoxElement:nS,CheckBoxElement:n_,FilePickerElement:nE,GenericTextElement:nP,TextElement:nI,ButtonElement:nT,AudioElement:nD,ExpressionElement:nA,ImageElement:nR,SeparatorElement:nN,SpinnerElement:nB,LogoElement:nM,PidlContainer:nF,PidlInstance:nO,SecurePropertyInitializations:nL,SecurePropertyElement:nH,ExpressCheckoutButtonElement:nz,IFrameElement:nV,ChallengeIFrameElement:nU,isModelElement:nj,isContainerElement:nW,isCaptchaElement:nq,isPageElement:nG,isSelectionElement:nK,isDropdownElement:nX,isPrefillDropdownElement:nY,isPidlContainerElement:n$,isPidlInstanceElement:nQ,isImageElement:nJ,isLogoElement:nZ,isButtonElement:n0,isFilePickerElement:n1,isCheckBoxElement:n2,isPrefilledCheckBoxElement:n5,isPageOrGroupOrDataCollectionBindingGroup:n4,isGroupElement:n3,isTextGroupElement:n6,isTextBoxElement:n8,isButtonListElement:n9,isRadioElement:n7,isTextElement:re,isDataCollectionBindingGroup:rt,isExpressionElement:rn,isIFrameElement:rr,isChallengeIFrameElement:ro,isSecurePropertyElement:ri,isExpressCheckoutButtonElement:ra,isSeparatorElement:rs,isAudioElement:rl,isPropertyElement:rc}),rd=new(function(){function e(){var e=this;this.extend=tw,this.getSelectElementType=function(e){switch(e){case eK.radio:return g.radio;case eK.buttonList:return g.buttonList;default:return g.dropdown}},this.getErrorDetailsFromPidl=function(t,n){if(t&&n){var r=n[t];if(r&&r.Target)return e.extend(!0,r,{code:t,target:r.Target,message:r.ErrorMessage})}},this.processServerError=function(t,n,r){var o=[];if(t&&n&&n.length)for(var a=0;a<n.length;a++){var s=e.getFormatStringExpressionValue(n[a],{contextData:t}),l=e.getErrorDetailsFromPidl(s,r);if(l){o.push(l);break}}return o},this.processPimsPxError=function(t,n){var r=[];if(t)if(t.details&&t.details.length)for(var o=0;o<t.details.length;o++){var a=t.details[o];a&&r.push(a)}else{var s=e.getErrorDetailsFromPidl(t.code,n);s&&r.push(s)}return r},this.updatePidlDocUrlParamHelper=function(e,t,n){if(e&&e.parameters){if(e.parameters[t])return!rp.equalsIgnoreCase(e.parameters[t],n)&&(e.parameters[t]=n,!0);var r=K[t];return r&&e.parameters[r]?!rp.equalsIgnoreCase(e.parameters[r],n)&&(e.parameters[r]=n,!0):(e.parameters[t]=n,!0)}return!1},this.s4=function(){return Math.floor((Math.random()+1)*65536).toString(16).substring(1)},this.getAt=function(e,t){return e?e[t]:null},this.guid=function(){return e.s4()+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+e.s4()+e.s4()},this.parseJSON=function(e){var t={succeeded:!0,value:null};try{t.value=JSON.parse(e)}catch(e){t.value=e.message,t.succeeded=!1}return t},this.getHostName=function(e){if(e)return(e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0]).toLowerCase()},this.getBoolValue=function(e){var t=!1;return rp.isString(e)?"true"===e.toLowerCase():e},this.getStringValue=function(e){for(var t="",n=0;n<e.length;++n)t+=e[n],t+=" ";return t.trim()},this.getModelElementType=function(t,n){var r={};switch(n.displayType){case eW.page:r.type=g.page;break;case eW.group:r.type=g.group;break;case eW.captcha:r.type=g.captcha;break;case eW.audio:r.type=g.audio;break;case eW.textGroup:r.type=g.textGroup;break;case eW.heading:r.type=g.heading;break;case eW.subheading:r.type=g.subheading;break;case eW.text:r.type=g.text;break;case eW.hyperlink:r.type=g.hyperlink;break;case eW.image:r.type=g.image;break;case eW.logo:r.type=g.logo;break;case eW.prefillControl:n.selectType===eK.checkBox?r.type=g.checkBox:n.selectType===eK.dropDown?r.type=g.dropdown:r.type=g.unknown;break;case eW.property:t?tF(n)&&n.possibleOptions?r.type=e.getSelectElementType(n.selectType):"bool"===t.type?r.type=g.checkBox:tT(n)?r.type=g.filePicker:r.type=g.textBox:r.error=new nt.unexpectedError(nn.displayElementPointingToMissingDataProperty,[n.displayId,n.propertyName]);break;case eW.button:r.type=g.button;break;case eW.expression:r.type=g.expression;break;case eW.pidlContainer:r.type=g.pidlContainer;break;case eW.pidlInstance:r.type=g.pidlInstance;break;case eW.dataCollectionBindingGroup:r.type=g.dataCollectionBindingGroup;break;case eW.iFrame:r.type=g.iFrame;break;case eW.challengeIframe:r.type=g.challengeIFrame;break;case eW.expressCheckoutButton:r.type=g.expressCheckoutButton;break;case eW.secureProperty:r.type=g.secureProperty;break;case eW.separator:r.type=g.separator;break;case eW.spinner:r.type=g.spinner;break;default:r.type=g.unknown}return r},this.getPidlOperationType=function(e){switch(e){case w.addAddress:case w.addPaymentInstrument:case w.addResource:case w.handleChallenge:return eL.add;case w.collectResourceInfo:return eL.renderPidlPage;case w.selectPaymentInstrument:case w.selectResource:return eL.selectInstance;case w.selectResourceType:return eL.select;case w.selectSingleResource:return eL.selectSingleInstance;case w.updateProfile:case w.updateResource:return eL.update}},this.createObjectWithNonNullProperties=function(e){var t=null;for(var n in e)rp.isNullOrUndefined(e[n])||(t||(t={}),t[n]=e[n]);return t},this.updatePidlDocUrlParams=function(t,n){var r=!1;for(var o in n){var a=na.getKeyPropertyPidlDownloadUrlParam(n[o].propertyDescriptor,o),s=n[o].getValue(n[o].propertyDescriptor);if(a){var l=e.updatePidlDocUrlParamHelper(t,a,s);r=r||l}}return r},this.getRetryableTargettedErrors=function(e,t){if(e&&e.length)for(var n=0;n<e.length;n++){var r=e[n],o=!0;if(r.target||(o=!1),o&&t&&r.code){t[r.code]||(t[r.code]={retryCount:0});var a=r.retryPolicy;a&&a.type===eY.limitedRetry&&a.context&&!rp.isUndefined(a.context.maxRetryCount)&&r.retryPolicy.context.maxRetryCount<=t[r.code].retryCount&&(o=!1)}o?t&&r.code&&t[r.code].retryCount++:(rp.removeFromArray(e,n,1),n--)}return e},this.createParseErrorResponse=function(t,n,r,o,a){var s=[],c=void 0,u=void 0,d=void 0;if(o){var p=e.parseJSON(o.failureContent),f=p.succeeded?p.value:o.failureObject;if(d=o.failureContent,f){u=f;var h=f.innererror||f;switch(tX.getErrorSourceFromUrl(t)){case rf.virtualEndpoints.pifdProfile.endpoint:case rf.virtualEndpoints.pifdAddress.endpoint:n=n||["({contextData.innererror.code})","({contextData.InnerError.ErrorCode})"];break;case rf.virtualEndpoints.jarvisAddress.endpoint:n=n||["({contextData.error_code}.{contextData.parameters.property_name})","({contextData.error_code})"]}if(s=n?e.processServerError(f,n,r):e.processPimsPxError(h,r),s=e.getRetryableTargettedErrors(s,a),h&&h.clientAction&&(c=h.clientAction),!d)try{d=JSON.stringify(f)}catch(e){}}}else o=o||{status:l.Error};return{jsonResponse:u,clientAction:c,status:o.httpStatus,statusText:o.httpStatusText,responseText:d,errorMessage:o.errorMessage,targettedInnerErrors:s}},this.convertCustomErrorsInSdkErrors=function(t,n){for(var r=[],o=0;o<t.length;o++){var a=t[o],s=null;if(a.message?s={message:a.message,target:a.target,code:a.code}:a.code&&(s=e.getErrorDetailsFromPidl(a.code,n)),!s)return null;r.push(s)}return r},this.parseCustomSubmitError=function(t,n,r,o,a,s){return t||n&&0!==n.length?n&&0!==n.length?{jsonResponse:t,targettedInnerErrors:e.convertCustomErrorsInSdkErrors(n,a)}:e.createParseErrorResponse(r,o,a,{status:l.Error,failureContent:t},s):{clientAction:{type:eV.None}}},this.parseServerError=function(t,n,r,o,a){return e.createParseErrorResponse(t,n,r,o,a)},this.createServerError=function(t,n,r,o,a){var s=e.parseServerError(n,null,a,r);return new nt.serverError(t,n,s.jsonResponse,r.httpStatus,r.httpStatusText,r.failureContent,o)},this.createServerErrorFromIPxServiceError=function(e,t){var n=JSON.stringify(t);return new nt.serverError(e,null,t,null,null,n,[])},this.createPropertyErrors=function(e,t,n,r,o){if(t){var a=new nt.groupValidationFailedError(nn.propertyValidationFailed,r.code,t,[t,r.code]);a.message=r.message,o.push(a),n=null}for(var s=0;s<e.length;s++){var l=e[s],c=new nt.propertyValidationFailedError(nn.propertyValidationFailed,r.code,l,[l,r.code]);c.message=l===n?r.message:"",o.push(c)}},this.convertErrorToString=function(e){try{if(e instanceof Error)return e.message;if("object"!=typeof e||null===e)return String(e);try{return JSON.stringify(e,null,2)}catch(e){return"Error converting object to string"}}catch(e){return"Error converting error to string"}},this.createResponseHeadersDictionary=function(e){var t;return e&&(t=e.split("\r\n").reduce(function(e,t,n){var r=t.split(": ");return r[0]&&r[1]&&(e[rp.toLowerCase(r[0])]=rp.toLowerCase(r[1])),e},{})),t},this.isTagPrefixKnown=function(e){for(var t in eu)if(rp.startsWith(e,eu[t]))return!0;return!1},this.unregisterFromOrchestrator=function(e){var t;try{t=window.pidlOrchestrator}catch(e){return}t&&t.unregisterPidlHook&&t.unregisterPidlHook(e)},this.registerToOrchestrator=function(e){var t;try{t=window.pidlOrchestrator}catch(e){return -1}return t&&t.registerPidlHook?t.registerPidlHook(e):null},this.broadcastPropertyValueUpdate=function(e,t,n,r,o){var a;try{a=window.pidlOrchestrator}catch(e){}return a&&a.broadcastPropertyValueUpdate?a.broadcastPropertyValueUpdate(e,t,n,r,o):Promise.resolve()},this.getGlobalPropertyValue=function(e,t){var n;try{n=window.pidlOrchestrator}catch(e){}if(n&&n.getGlobalPropertyValue)return n.getGlobalPropertyValue(e,t)},this.getFormatStringExpressionValue=function(t,n,r){if(n&&rp.isFormatStringExpressionPlaceholder(t)){for(var o=t.substring(1,t.length-1),a=rp.getProperties(o,"<|","|>"),s=0;s<a.length;s++){var l=a[s],c=l.split("|"),u=c[0],d=c[1],p=void 0;if(d){var f=d.split(";");p=[];for(var h=0;h<f.length;h++)p[h]=e.getPropertyExpressionValue(f[h],n)}var m=e.getFunctionExecutionResult({functionName:u,arguments:p},n);m=rp.isNullOrUndefined(m)?"":m,o=o.replace("<|"+l+"|>",m)}for(var g=rp.getProperties(o,"{","}"),s=0;s<g.length;s++){var v="{"+g[s]+"}",y=e.getPropertyExpressionValue(v,n)||"";r&&(y=r(y)),o=o.replace(v,y)}return o}return t},this.getConditionalFieldValue=function(t,n,r){if(n){if(rp.isFormatStringExpressionPlaceholder(t))return e.getFormatStringExpressionValue(t,n);else if(rp.isDataBindingPlaceholder(t))return e.getPropertyExpressionValue(t,n,nK(r));else if(rp.isFunctionCallPlaceholder(t)){var o=t.substring(2,t.length-2),a=o.indexOf("|"),s=o.substring(0,a),l=o.substring(a+1),c=void 0;if(l){var u=/\<\|([^<]*?)\|\>/gm,d=l;do{for(var p=u.exec(l);null!==p;){var f=e.getConditionalFieldValue(p[0],n,r);d=d.replace(p[0],f),p=u.exec(l)}l=d}while(null!==l.match(u));var h=l.split(";");c=[];for(var m=0;m<h.length;m++)c[m]=e.getConditionalFieldValue(h[m],n,r)}return e.getFunctionExecutionResult({functionName:s,arguments:c},n)}}return t},this.getFormatInstanceExpressionValue=function(e,t){if(t&&rp.isFormatStringExpressionPlaceholder(e)){for(var n=e.substring(1,e.length-1),r=rp.getProperties(n,"{","}"),o=0;o<r.length;o++)if(0>r[o].indexOf(".")&&r[o]in t)return t[r[o]]}return null},this.getExpressionValue=function(t,n){for(var r=t,o=rp.getProperties(t,"(",")"),a=0;a<o.length;a++){var s=rp.getProperties(o[a],"{","}")[0],l=e.getPropertyExpressionValue("{"+s+"}",n),c=void 0,u=void 0;l?(c=(r=r.replace("{"+s+"}",l)).indexOf("("),u=(r=r.substring(0,c)+r.substring(c+1,r.length)).indexOf(")"),r=r.substring(0,u)+r.substring(u+1,r.length)):(c=r.indexOf("("),u=r.indexOf(")"),r=r.substring(0,c)+r.substring(u+1,r.length))}return r},this.applyRegexTransformation=function(e,t,n){if(!rp.isNullOrUndefined(e)&&t&&n)return e.replace(RegExp(t),n).trim()},this.applyDisplayTransformation=function(t,n){var r=n;return t.type===ej.regex?(rp.isString(n)||rp.isNumber(n))&&(r=e.applyRegexTransformation(n.toString(),t.inputRegex,t.replacementPattern)||r):r=void 0,r},this.getTextContent=function(t){if(-1===t.indexOf(eS.link))return t;var n="",r=e.parseDisplayContent(t);if(1===r.length)return t;for(var o=0;o<r.length;o++){var a=r[o];-1===a.indexOf(eS.link)?n+=a:n+=a.replace(a,a.match(/\[(.*?)\]/)[1])}return n},this.parseDisplayContent=function(e){for(var t=0,n=e.indexOf(eS.link,t),r=-1,o=-1,a=[];-1!==n;){r=-1;for(var s=n;s<=n&&s>=0;s--)if("["===e[s]){r=s;break}if(-1===r){(a=[]).push(e);break}a.push(e.substring(o,r)),o=-1;for(var l=n;l>=n&&l<e.length;l++)if(")"===e[l]){o=l+1;break}if(-1===o){(a=[]).push(e);break}if(a.push(e.substring(r,o)),t=n+2,-1===(n=e.indexOf(eS.link,t))){var c=e.substring(o,e.length);void 0!==c&&""!==c&&a.push(c)}}return a},this.convertBase64strIntoBlobUrl=function(e,t){e=e.replace("data:audio/mp3;base64,","");var n="";try{for(var r=window.atob(e),o=new ArrayBuffer(r.length),a=new Uint8Array(o),s=0;s<r.length;s++)a[s]=r.charCodeAt(s);var l=new Blob([a],{type:t});n=URL.createObjectURL(l)}catch(e){}return n},this.verifyClientSupported=function(e){var t,n=te({},e);n.parameters=te({},e.parameters);var r=n.parameters.allowedPaymentMethods;if((null==(t=null==window?void 0:window.paymentAgent)?void 0:t.clientSupported)&&(null==r?void 0:r.length)){var o=window.paymentAgent.clientSupported(r);n.parameters.allowedPaymentMethods=o}return n},this.getFlightHeaders=function(e){var t;return((null==(t=null==e?void 0:e.getHeaders)?void 0:t.call(e,{},""))||{})[M.msFlight]||""}}return e.prototype.getPropertyExpressionValue=function(e,t,n){if(void 0===n&&(n=!1),t&&rp.isString(e)&&rp.isDataBindingPlaceholder(e)){var r=e.substring(1,e.length-1);if(0>r.indexOf("."))return n?t.modelData&&t.modelData.getPropertyValue(r):t.modelData&&(t.modelData.getDisplayPropertyValue(r)||t.modelData.getPropertyValue(r));var o=rp.getDataSourceDetails(r),a=null;switch(o.dataSourceName){case ev.contextData:a=t.contextData;break;case ev.partnerData:a=t.modelData&&t.modelData.getPartnerData();break;default:a=t.modelData&&t.modelData.getAllDataSources()}return a&&o.jpath?rp.getPropertyValueByJPath(a,o.jpath):null}return e},e.prototype.getFunctionExecutionResult=function(e,t,n){if(e&&e.functionName){var r={contextData:t&&t.contextData,partnerData:t&&t.modelData&&t.modelData.getPartnerData(),dataSources:t&&t.modelData&&t.modelData.getAllDataSources(),model:t&&t.model};e.arguments&&(r.arguments=e.arguments);var o=void 0;try{o=window.pidlResourceHelpers}catch(e){}if(o&&o.executeExtensionFunc){var a=o.executeExtensionFunc(e.functionName,r);if(n&&"filterPaymentInstruments"===e.functionName&&rp.isArray(a)){var s={pidlDocInfo:r.partnerData&&r.partnerData.inputParameters&&r.partnerData.inputParameters.pidlDocInfo},l=a.map(function(e){return{id:e&&e.id,paymentMethodType:e&&e.paymentMethod&&e.paymentMethod.paymentMethodType,paymentMethodFamily:e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily}});n.resourceHelpersFunctionExecuted(e.functionName,s,l)}return a}}return null},e}()),rp=new(function(){function e(){var e=this;this.getType=function(e){return Object.prototype.toString.call(e)},this.isArray=function(t){return t&&"[object Array]"===e.getType(t)},this.isObject=function(t){return t&&"[object Object]"===e.getType(t)},this.isFunction=function(t){return t&&"[object Function]"===e.getType(t)},this.isString=function(e){return"string"==typeof e},this.isBool=function(e){return"boolean"==typeof e},this.isNumber=function(e){return"number"==typeof e},this.isNullOrEmptyObject=function(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!1}return!0},this.isEmptyString=function(t){return e.isString(t)&&0===t.length},this.isWhiteSpaceString=function(t){return e.isString(t)&&0===t.trim().length},this.isNull=function(e){return!e&&null===e},this.isUndefined=function(e){return void 0===e},this.isNullOrUndefined=function(t){return e.isNull(t)||e.isUndefined(t)},this.isNullOrUndefinedOrWhiteSpaceString=function(t){return e.isNullOrUndefined(t)||e.isEmptyString(t)||e.isWhiteSpaceString(t)},this.contains=function(t,n){return e.indexOf(t,n)>=0},this.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return -1},this.includes=function(t,n){return!e.isNullOrUndefined(t)&&t.indexOf(n)>=0},this.keyCount=function(t){if(e.isObject(t))return Object.keys(t).length},this.getFirstKey=function(t){return e.isObject(t)&&e.keyCount(t)>0&&Object.keys(t)[0]||void 0},this.serialize=function(t){if(e.isObject(t)||e.isArray(t))try{return JSON.stringify(t)}catch(e){return e&&e.message}return null==t?"":t},this.addSlashes=function(e){return e.replace(/[\\\'\"]/g,"\\$&")},this.format=function(t,n){return e.isString(t)?((n=n||[])["{"]="{",n["}"]="}",t.replace(/{({|}|-?[0-9]+)}/g,function(t){return e.addSlashes(e.serialize(n[t.substring(1,t.length-1)]))})):t},this.attachAffixes=function(t,n,r){var o=e.isNullOrUndefined(t)?n:t+n;return e.isNullOrUndefined(r)?o:o+r},this.removeAffixes=function(t,n,r){if(e.isNullOrUndefined(n))return n;var o=e.isNullOrUndefined(t)?0:t.length,a=e.isNullOrUndefined(r)?n.length:n.length-r.length;return n.substring(o,a)},this.startsWithIgnoreCase=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length).toLowerCase()===t.toLowerCase())},this.startsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length)===t)},this.endsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(e.length-t.length)===t)},this.isDataBindingPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"{")&&e.endsWith(t,"}")},this.isFormatStringExpressionPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"(")&&e.endsWith(t,")")},this.isFunctionCallPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"<|")&&e.endsWith(t,"|>")},this.getDataSourceDetails=function(e){var t=e,n=void 0,r=e.indexOf(".");return r>0&&(t=e.substr(0,r),n=e.substr(r+1)),{dataSourceName:t,jpath:n}},this.getPropertyValueByJPath=function(t,n){e.startsWith(n,"{$.")?n=n.substring(3,n.length-1):e.startsWith(n,"{")&&(n=n.substring(1,n.length-1));for(var r=(n=(n=n.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0;o<r.length;o++){var a=r[o];if(!t||!(a in t))return;t=t[a]}return t},this.getDataCollectionSource=function(e){return e.split(".")[0]},this.getDataCollectionName=function(e){return e.split(".")[1]||e},this.toString=function(t){return!e.isUndefined(t)&&t.toString&&(t=t.toString()),t},this.toLowerCase=function(t){return e.isString(t)&&t.toLowerCase?t.toLowerCase():t},this.toUpperCase=function(t){return e.isString(t)&&t.toUpperCase?t.toUpperCase():t},this.equalsIgnoreCase=function(t,n){return e.toLowerCase(t)===e.toLowerCase(n)},this.escapeCharactersForHtml=function(e){return e&&e.replace?e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"):e},this.replaceCharactersForHtml=function(e){return e&&e.replace?e.replace(/(^[^A-Za-z])/,"a").replace(/([^A-Za-z0-9-_])/g,"_"):e},this.getProperties=function(e,t,n){for(var r=[],o=-1,a=t.length,s=n.length;;){var l=e.indexOf(t,-1===o?0:o+s);if(-1===l||-1===(o=e.indexOf(n,l+a)))break;r.push(e.substr(l+a,o-l-a))}return r},this.boolify=function(t){if(e.isString(t))if(e.equalsIgnoreCase(t,"false")||e.isEmptyString(t))return!1;else return!0;return!!t},this.deepCopy=function(e,t){return t=t||{},e&&rd.extend(!0,t,e)||{}},this.mergeObjectArray=function(e){var t={};if(e&&e.length)for(var n=0;n<e.length;n++)rd.extend(t,e[n]);return t},this.removeFromArray=function(e,t,n){e&&e.splice(t,n)},this.getKeys=function(e){return e?Object.keys(e):[]},this.getValues=function(e){return e?Object.keys(e).map(function(t){return e[t]}):[]},this.filter=function(t,n){var r=function(e){return!(n||function(){return!0})(e)};e.invokeIf(t,r,function(e){t.splice(e,1)})},this.objectEquals=function(t,n){if(!t||!n||e.keyCount(t)!==e.keyCount(n))return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0},this.bothNull=function(e,t){return!(e||t)},this.onlyOneNull=function(e,t){return!(e&&t)}}return e.prototype.copyArray=function(e){return e&&e.slice()||[]},e.prototype.invokeIf=function(e,t,n){if(e&&t)for(var r=e.length;r--;)t(e[r])&&n(r)},e.prototype.find=function(e,t){if(e&&t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},e}()),rf=new(function(){return function(){var e=this;this.serviceEndpoints={},this.currentEnv="prod",this.virtualEndpoints={billingAuth:{description:"Billing Auth Service",endpoint:"billingauth-endpoint",name:"billingauth",operation:"POST Tax ID"},bsxCommerce:{description:"BSX Commerce Service",endpoint:"bsxcommerce-endpoint",name:"bsxcommerce",operation:"GET MC PI"},hapi:{description:"HAPI Service",endpoint:"hapi-endpoint",name:"hapi",operation:"POST Tax ID"},jarvis:{description:"Jarvis FD",endpoint:"jarvis-endpoint",name:"jarvis",operation:"POST Jarvis"},jarvisAddress:{description:"Jarvis FD",endpoint:"jarvis-address-endpoint",name:"jarvisaddress",operation:"POST Jarvis Address"},paypalEncryptJS:{description:"Static Resource Service",endpoint:"paypalencryptjs-endpoint",name:"paypalencrypt",operation:"Download Paypal Encrypt JS"},pidl:{description:"PIDL Service",endpoint:"pidl-endpoint",name:"pidl",operation:"GET PIDL"},pidlEdge:{description:"PIDL Service on Edge",endpoint:"pidledge-endpoint",name:"pidledge",operation:"GET PIDL on Edge"},pifdBackend:{description:"PIFD Backend",endpoint:"pifdbackend-endpoint",name:"pifdbackend",operation:"PIFD operation on PIFDBackEnd"},pifd:{description:"Payment Instrument FD",endpoint:"pifd-endpoint",name:"pifd",operation:"POST PIDL"},pifdEdge:{description:"Payment Instrument FD on Edge",endpoint:"pifdedge-endpoint",name:"pifdedge",operation:"PIFD operation on Edge"},pifdAddress:{description:"Payment Instrument FD",endpoint:"pifd-address-endpoint",name:"pifdaddress",operation:"POST Address PIDL"},pifdProfile:{description:"Payment Instrument FD",endpoint:"pifd-profile-endpoint",name:"pifdprofile",operation:"POST Profile PIDL"},pifdPx:{description:"Payment Instrument FD",endpoint:"pifd-px-endpoint",name:"pifdpx",operation:"PIFD PX"},redirection:{description:"Redirection Service",endpoint:"redirection-endpoint",name:"redirection",operation:"Redirect"},redirectionv2:{description:"Redirection Service",endpoint:"redirectionv2-endpoint",name:"redirection",operation:"Redirect"},resource:{description:"Resource Service",endpoint:"resource-endpoint",name:"resource",operation:"GET Resource"},tokenization:{description:"Tokenization Service",endpoint:"tokenization-endpoint",name:"tokenization",operation:"Tokenize User Input"},transformation:{description:"Transformation Service",endpoint:"transformation-endpoint",name:"transformation",operation:"Transform User Input"},validation:{description:"Validation Service",endpoint:"validation-endpoint",name:"validation",operation:"Validate User Input"},commercemgmt:{description:"Commerce Management Endpoint",endpoint:"commercemgmt-endpoint",name:"commercemgmt",operation:"Commerce Management"},encryptJS:{description:"Static Resource Service",endpoint:"encryptjs-endpoint",name:"encrypt",operation:"Download external service specific Encrypt JS"},msrCryptoJS:{description:"Static Resource Service",endpoint:"msrcryptojs-endpoint",name:"msrcrypto",operation:"Download MSR Crypto JS"},staticResources:{description:"Static Resource Service",endpoint:"staticResources-endpoint",name:"staticresources",operation:"Download static resources"},styleHintDefsJson:{description:"Static Resource Service",endpoint:"stylehintdefsjson-endpoint",name:"staticresources",operation:"Download styleHintDefs and baseStyleHintDefs"},tokenPolicy:{description:"Token Policy Service",endpoint:"tops-endpoint",name:"tokenpolicy",operation:"Verify CSV"},purchaseFrontDoor:{description:"Purchase FrontDoor Service",endpoint:"purchase-endpoint",name:"purchasefrontdoor",operation:"Apply CSV to user account"},payeeTaxProfile:{description:"Payee Tax Profile PIDL Service",endpoint:"payeetaxprofile-endpoint",name:"payeetaxprofile",operation:"Payee Tax Profile PIDL Service"},msRewards:{description:"MS Rewards PIDL Service",endpoint:"pidl-endpoint",name:"msrewards",operation:"GET MS Rewards PIDL"},securePx:{description:"Secure PX Service",endpoint:"securepx-endpoint",name:"securepx",operation:"Secure field value handler"},provisionWalletToken:{description:"Wallet Token",endpoint:"pifd-endpoint",name:"pifd",operation:"POST Wallet Token"},gpex:{description:"Generic PIDL Experience Service",endpoint:"gpex-endpoint",name:"gpex",operation:"Address Tax Profile PIDL Service"},challengeUI:{description:"Challenge UI PIDL Service",endpoint:"challengeui-endpoint",name:"challengeui",operation:"Challenge UI PIDL Service"}},this.updateEndpoints=function(t){var n,r={};e.currentEnv=(null==(n=null==t?void 0:t.toLowerCase)?void 0:n.call(t))||"prod","int"===t?(r.billingAuth="billingapi.cp.microsoft-int.com",r.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",r.hapi="commerceapi.officeppe.net/v1",r.jarvis="jcmsdf.account.microsoft-int.com",r.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",r.staticResources="pmservices.cp.microsoft-int.com",r.pifdBackend="pifd.cp.microsoft-int.com/v6.0",r.pifd="pifd.cp.microsoft-int.com/v6.0",r.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdint/v6.0",r.redirection="pmservices.cp.microsoft-int.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",r.tokenization="tokenization.cp.microsoft-int.com/tokens",r.transformation="pifd.cp.microsoft-int.com/v6.0",r.validation="pifd.cp.microsoft-int.com/v6.0",r.commercemgmt="ppe.commercemgmt.m365.microsoft.com",r.tokenPolicy="tops-int.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",r.securePx="securepxservice.cp.microsoft-int.com",r.payeeTaxProfile="taxProfileService-dev-gfahd6aad6a5asey.b02.azurefd.net",r.gpex="edge.gpex.cp.microsoft-int.com",r.challengeUI="payint.microsoft.com/challengeui"):"aircapi"===t?(r.billingAuth="billingapi.cp.microsoft-int.com",r.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",r.hapi="commerceapi.officeppe.net/v1",r.jarvis="jcmsdf.account.microsoft-int.com",r.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",r.staticResources="pmservices.cp.microsoft-int.com",r.pifdBackend="edge.gpex-aircapi.cp.microsoft.com",r.pifd="edge.gpex-aircapi.cp.microsoft.com",r.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdint/v6.0",r.redirection="pmservices.cp.microsoft-int.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",r.tokenization="tokenization.cp.microsoft-int.com/tokens",r.transformation="edge.gpex-aircapi.cp.microsoft.com",r.validation="edge.gpex-aircapi.cp.microsoft.com",r.commercemgmt="ppe.commercemgmt.m365.microsoft.com",r.tokenPolicy="tops-int.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",r.securePx="localhost:44326",r.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net",r.gpex="edge.gpex-aircapi.cp.microsoft.com",r.challengeUI="payint.microsoft.com/challengeui"):"ppe"===t?(r.billingAuth="billingapi.cp.microsoft.com",r.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",r.hapi="commerceapi.office.net/v1",r.jarvis="jcmsfd.account.microsoft.com",r.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",r.staticResources="pmservices.cp.microsoft.com",r.pifdBackend="paymentinstruments-int.mp.microsoft.com/v6.0",r.pifd="paymentinstruments-int.mp.microsoft.com/v6.0",r.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdppe/v6.0",r.redirection="pmservices.cp.microsoft.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft.com",r.tokenization="tokenization.cp.microsoft.com/tokens",r.transformation="paymentinstruments-int.mp.microsoft.com/v6.0",r.validation="paymentinstruments-int.mp.microsoft.com/v6.0",r.commercemgmt="ppe.commercemgmt.m365.microsoft.com",r.tokenPolicy="tops.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",r.securePx="securepxservice-ppe.cp.microsoft.com",r.payeeTaxProfile="taxservice-uat-htdmh4h7cxfjfecg.z01.azurefd.net",r.gpex="edge.gpex-ppe.cp.microsoft.com",r.challengeUI="payppe.microsoft.com/challengeui"):"prod"===t?(r.billingAuth="billingapi.cp.microsoft.com",r.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",r.hapi="commerceapi.office.net/v1",r.jarvis="jcmsfd.account.microsoft.com",r.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.styleHintDefsJson="pmservices.cp.microsoft.com/staticresourceservice/resources/pidlstylehints/prod",r.staticResources="pmservices.cp.microsoft.com",r.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",r.pifd="paymentinstruments.mp.microsoft.com/v6.0",r.pifdEdge="paymentsfd.cp.microsoft.com/pifd/v6.0",r.redirection="pmservices.cp.microsoft.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft.com",r.tokenization="tokenization.cp.microsoft.com/tokens",r.transformation="paymentinstruments.mp.microsoft.com/v6.0",r.validation="paymentinstruments.mp.microsoft.com/v6.0",r.commercemgmt="commercemgmt.m365.microsoft.com",r.tokenPolicy="tops.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",r.securePx="securepxservice.cp.microsoft.com",r.payeeTaxProfile="taxprofileservice-prod-hqgqe5g5f8fwfcdw.z01.azurefd.net",r.gpex="edge.gpex.cp.microsoft.com",r.challengeUI="pay.microsoft.com/challengeui"):"feature"===t&&(r.billingAuth="billingapi.cp.microsoft.com",r.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",r.hapi="commerceapi.office.net/v1",r.jarvis="jcmsfd.account.microsoft.com",r.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.styleHintDefsJson="pmservices.cp.microsoft.com/staticresourceservice/resources/pidlstylehints/prod",r.staticResources="pmservices.cp.microsoft.com",r.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",r.pifd="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.pifdEdge="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.redirection="pmservices.cp.microsoft.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft.com",r.tokenization="tokenization.cp.microsoft.com/tokens",r.transformation="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.validation="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.commercemgmt="commercemgmt.m365.microsoft.com",r.tokenPolicy="tops.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",r.securePx="securepxservice.cp.microsoft.com",r.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net",r.gpex="edge.gpex.cp.microsoft.com",r.challengeUI="payint.microsoft.com/challengeui"),e.serviceEndpoints={},e.serviceEndpoints[e.virtualEndpoints.billingAuth.endpoint]=r.billingAuth,e.serviceEndpoints[e.virtualEndpoints.bsxCommerce.endpoint]=r.bsxCommerce,e.serviceEndpoints[e.virtualEndpoints.hapi.endpoint]=r.hapi,e.serviceEndpoints[e.virtualEndpoints.jarvis.endpoint]=r.jarvis,e.serviceEndpoints[e.virtualEndpoints.jarvisAddress.endpoint]=r.jarvis,e.serviceEndpoints[e.virtualEndpoints.paypalEncryptJS.endpoint]=r.paypalencryptjs,e.serviceEndpoints[e.virtualEndpoints.encryptJS.endpoint]=r.encryptJS,e.serviceEndpoints[e.virtualEndpoints.msrCryptoJS.endpoint]=r.msrCryptojs,e.serviceEndpoints[e.virtualEndpoints.styleHintDefsJson.endpoint]=r.styleHintDefsJson,e.serviceEndpoints[e.virtualEndpoints.staticResources.endpoint]=r.staticResources,e.serviceEndpoints[e.virtualEndpoints.pidl.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pidlEdge.endpoint]=r.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdBackend.endpoint]=r.pifdBackend,e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint]=r.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdAddress.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdProfile.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdPx.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.redirection.endpoint]=r.redirection,e.serviceEndpoints[e.virtualEndpoints.redirectionv2.endpoint]=r.redirectionv2,e.serviceEndpoints[e.virtualEndpoints.resource.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.tokenization.endpoint]=r.tokenization,e.serviceEndpoints[e.virtualEndpoints.transformation.endpoint]=r.transformation,e.serviceEndpoints[e.virtualEndpoints.validation.endpoint]=r.validation,e.serviceEndpoints[e.virtualEndpoints.commercemgmt.endpoint]=r.commercemgmt,e.serviceEndpoints[e.virtualEndpoints.tokenPolicy.endpoint]=r.tokenPolicy,e.serviceEndpoints[e.virtualEndpoints.purchaseFrontDoor.endpoint]=r.purchaseFrontDoor,e.serviceEndpoints[e.virtualEndpoints.securePx.endpoint]=r.securePx,e.serviceEndpoints[e.virtualEndpoints.payeeTaxProfile.endpoint]=r.payeeTaxProfile,e.serviceEndpoints[e.virtualEndpoints.gpex.endpoint]=r.gpex,e.serviceEndpoints[e.virtualEndpoints.challengeUI.endpoint]=r.challengeUI},this.addGenericParameters=function(e,t,n){if(t&&t.parameters)for(var r in t.parameters){var o=G[r];t.parameters[r]&&!(e[r]||e[o])&&(e[r]=t.parameters[r])}return n&&(e.operationType=n),e},this.getGenericResourceParams=function(t,n,r){return e.addGenericParameters({},t,r)},this.getResourceEndpointParams=function(t,n,r,o){var a=e.addGenericParameters({},n,o);return a.resourceName=t,a},this.getOrderResourceEndpointParams=function(t,n,r){return e.getResourceEndpointParams("order",t,n,r)},this.getPaymentResourceParams=function(t,n,r){var o=(n=n||{}).paymentMethod||{};return e.addGenericParameters({family:o.paymentMethodFamily,type:o.paymentMethodType,country:((n.details||{}).address||{}).country},t,r)},this.resourceTypeToPidlDoc={addressex:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/addressDescriptions"},challenge:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/challengeDescriptions"},order:{addResourceNameToQueryParam:!0,description:"PIDL Service",getParams:this.getOrderResourceEndpointParams,operation:"GET Order resource PIDLs",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/resourceDescriptions"},paymentinstrument:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},paymentinstrumentlist:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentInstrumentsEx",anonymousTemplate:"{pidl-endpoint}/paymentInstrumentsEx"},paymentmethod:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Method PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},payeetaxprofile:{description:"Payee Tax Profile PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payee Tax Profile PIDL",suffix:"",template:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",anonymousTemplate:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",removeOperationParameter:!0},msrewards:{description:"Rewards PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Rewards PIDL",suffix:"",template:"{pidl-endpoint}/users/{userId}/rewardsDescriptions",anonymousTemplate:"{pidl-endpoint}/rewardsDescriptions"},addpiqrcode:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Anonymous Payment Instrument PIDL",suffix:"",template:"{pidl-endpoint}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},default:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/{resourceType}",anonymousTemplate:"{pidl-endpoint}/{resourceType}"}},this.resourceTypeToResource={paymentinstrument:{description:"Payment Instrument FD",operation:"GET Payment Instrument Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},paymentmethod:{description:"Payment Instrument FD",operation:"GET Payment Method Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},profile:{description:"Payment Instrument FD",operation:"GET Profile Resource",template:"{resource-endpoint}/users/{userId}/profiles/{id}"},address:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addresses/{id}"},addressex:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addressesEx/{id}"},legalentity:{description:"Jarvis FD",operation:"GET LegalEntity Profile Resource from Jarvis",template:"{jarvis-endpoint}/users/{userId}/profiles?type=legalentity"},billinggroup:{description:"HAPI Billing Groups",operation:"GET Billing Groups",template:"{hapi-endpoint}/{userId}/billinggroup"},wallettoken:{description:"PIDL Service",operation:"POST Provision Wallet Token",template:"{pifd-endpoint}/users/{userId}/provisionWalletToken"},default:{description:"Payment Instrument FD",operation:"GET Resource",template:"{resource-endpoint}/users/{userId}/{resourceType}/{id}"}},this.telemetryHeaders={names:["x-ms-operation-version","x-ms-flight"],prefixes:["x-ms-px"]},this.defaultTelemetryLoggerProperties={enableMultipleLoggers:!0},this.getServiceEndpoint=function(t){return e.serviceEndpoints[t]},this.getAlternateUrl=function(t){if(t){var n="https://",r="paymentsfd.cp.microsoft.com",o="paymentsfd.signup.azure.com",a=n+e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint],s=n+e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint],l=((window||{}).location||{}).hostname||"";l&&l.indexOf("signup.azure.com")>-1&&(s=s.replace(r,o)),rp.startsWithIgnoreCase(t,a)?t=t.replace(a,s):rp.startsWithIgnoreCase(t,s)&&(t=t.replace(s,a))}return t},this.setEnv=function(t){e.updateEndpoints(t)},this.getEnv=function(){return e.currentEnv},this.setPidlDocEndpointInfo=function(t){var n=te({},e.resourceTypeToPidlDoc);for(var r in t)n[r.toLowerCase()]=te(te({},n[r.toLowerCase()]),t[r]);e.resourceTypeToPidlDoc=n},this.updateEndpoints("prod")}}()),rh=function(){function e(e){this.alwaysValidateOnChange=!1,this.busyBlockShowHideHandler=null,this.containerId=null,this.disableEnterKeyAction=!1,this.disableFocusOnLoad=!1,this.errorPrefix=p.error,this.htmlExtender=null,this.hidePropertyErrors=!1,this.showLogoInKeyField=null,this.showMandatoryIdentifier={show:!1,identifier:"*"},this.showPlaceholderInTextbox=!1,this.ieExtender=null,this.propagateCallbackException=!1,this.busyUntilInitialPageRendered=!1,this.secureFieldPreLoadingEnabled=!1,this.instanceName="_currentInstance",this.preventUnmountOnFinish=!1,this.getAffixedPropertyElementId=null,this.getTrimmedPropertyElementId=null,this.getAffixedDisplayElementId=null,this.getTrimmedDisplayElementId=null,this.busyBlock={id:p.div+f.pageBusyBlock,preExists:!1,show:!0},this.errorBlock={id:f.pageErrorBlock,preExists:!1,show:!0},this.helpDialogBlock={id:f.helpDialogBlock,preExists:!1,show:!0},this.logoBlock={id:f.pageLogoBlock,preExists:!1,show:!0,displayConfiguration:function(e,t){var n=13,r=e&&e.length>0&&e[0],o=!t&&r&&e[0].displayHelpName&&e.length>n;return{totalToShow:o?n:e.length,dialogButtonText:o?e[0].displayHelpName:null}}},this.pageBodyBlock={id:f.pageBlock,preExists:!1,show:!0},this.submitButtonBlock={id:f.pageSubmitBlock,preExists:!1,show:!0},this.modalDialogBlock={id:f.modalDialogBlock,preExists:!1,show:!0},this.prefillCheckboxBlock={id:f.prefillCheckbox,preExists:!1,show:!0};var t="pidlInput_",n="",r="",o="";for(var a in e)switch(a){case E.containerId:this.containerId=e[a];break;case E.busyBlockId:this.setBlockId(this.busyBlock,e[a]);break;case E.busyBlockShowHideHandler:this.busyBlockShowHideHandler=e[a],this.busyBlock.preExists=!0;break;case E.inputPropertyIdPrefix:t=e[a]||t;break;case E.inputPropertyIdSuffix:n=e[a]||n;break;case E.displayElementIdPrefix:r=e[a]||r;break;case E.displayElementIdSuffix:o=e[a]||o;break;case E.inputPropertyErrorIdPrefix:this.errorPrefix=e[a];break;case E.showPlaceholderInTextbox:this.showPlaceholderInTextbox=rd.getBoolValue(e[a]);break;case E.disableEnterKeyAction:this.disableEnterKeyAction=rd.getBoolValue(e[a]);break;case E.showSubmitBlock:this.setShowBlock(this.submitButtonBlock,e[a]);break;case E.showErrorBlock:this.setShowBlock(this.errorBlock,e[a]);break;case E.hidePropertyErrors:this.hidePropertyErrors=rd.getBoolValue(e[a]);break;case E.htmlExtender:this.htmlExtender=e[a];break;case E.disableFocusOnLoad:this.disableFocusOnLoad=rd.getBoolValue(e[a]);break;case E.alwaysValidateOnChange:this.alwaysValidateOnChange=rd.getBoolValue(e[a]);break;case E.ieExtender:this.ieExtender=e[a];break;case E.propagateCallbackException:this.propagateCallbackException=rd.getBoolValue(e[a]);break;case E.busyUntilInitialPageRendered:this.busyUntilInitialPageRendered=rd.getBoolValue(e[a]);break;case E.secureFieldPreLoadingEnabled:this.secureFieldPreLoadingEnabled=rd.getBoolValue(e[a]);break;case E.instanceName:this.instanceName=e[a]||this.instanceName;break;case E.preventUnmountOnFinish:this.preventUnmountOnFinish=rd.getBoolValue(e[a])}this.getAffixedPropertyElementId=this.getAffixesAttacher(t,n),this.getTrimmedPropertyElementId=this.getAffixesRemover(t,n),this.getAffixedDisplayElementId=this.getAffixesAttacher(r,o),this.getTrimmedDisplayElementId=this.getAffixesRemover(r,o)}return e.prototype.setBlockId=function(e,t){e.id=t,e.preExists=!0},e.prototype.setShowBlock=function(e,t){e.show=rd.getBoolValue(t)},e.prototype.getAffixesAttacher=function(e,t){return function(n){return rp.attachAffixes(e,n,t)}},e.prototype.getAffixesRemover=function(e,t){return function(n){return rp.removeAffixes(e,n,t)}},e}(),rm=function(){},rg=function(e){throw e};function rv(e){return Promise.resolve(e)}function ry(e){return Promise.reject(e)}var rb=Object.freeze({__proto__:null,doNothing:rm,throwException:rg,createFakePromise:rv,createFakeRejectedPromise:ry}),rx=function(){return function(e,t){var n=this;this.returnUrls={},this.returnCallbacks={},this.publicEventHandlers=[],this.privateEventHandlers=[],this.eventParameterExtenders={},this.telemetryContext=null,this.telemetryLogger=null,this.invokeReturnCallback=function(e,t){e(t=n.extendEventParameters(t))},this.invokePublicEvent=function(e,t,r,o){return t&&n.logMessage(e,t),n.invokeEventHandlers(n.publicEventHandlers,e,r,o)},this.invokePrivateEvent=function(e,t,r,o){return t&&(n.telemetryContext&&n.telemetryContext.enablePrivateEventConsoleLogging||!n.telemetryContext)&&n.logMessage(e,t),n.invokeEventHandlers(n.privateEventHandlers,e,r,o)},this.isEventConsoleLoggingEnabled=function(e){var t=(n.telemetryContext||{}).telemetryOverrides,r=void 0===t?null:t;return(n.telemetryContext&&n.telemetryContext.enableConsoleLogging||!n.telemetryContext)&&!(r&&r[e]&&r[e].disableConsoleLogging)},this.logMessage=function(e,t){if(n.isEventConsoleLoggingEnabled(e)){var r=ni.getLoggingService();r&&r.logMessage(n.addExtendedParametersToLogMessage(t))}},this.logError=function(e,t,r){if(n.isEventConsoleLoggingEnabled(e)){var o=ni.getLoggingService();o&&o.logError(t,r)}},this.getExtendedEventParameter=function(e){return n.eventParameterExtenders[e]()},this.extendEventParameters=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);for(var o in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n.getExtendedEventParameter(o));return rd.createObjectWithNonNullProperties(t)},this.addExtendedParametersToUrl=function(e){for(var t in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(t)&&(e=t_.addQueryParameter(e,t,n.getExtendedEventParameter(t)));return e},this.addExtendedParametersToLogMessage=function(e){for(var t in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(t)&&(e+=", ".concat(t,"=").concat(n.getExtendedEventParameter(t)));return e},this.redirectUrl=function(e){e&&ni.getRedirectionService().redirect(e)},this.isEventTelemetryEnabled=function(e){var t=(n.telemetryContext||{}).telemetryOverrides,r=void 0===t?null:t;return!(r&&r[e]&&r[e].disableLogging)},this.logTelemetryEvent=function(e,t){n.telemetryLogger&&n.telemetryContext&&n.telemetryContext.enableLogging&&(e!==S.propertyValidated&&e!==S.error||!t||t.controlOperationType!==Z.editing)&&(n.isEventTelemetryEnabled(e)||e===_.metric)&&n.telemetryLogger.logEvent(e,t,n.telemetryContext)},this.getCorrelationId=function(){return n.telemetryLogger&&n.telemetryLogger.getCorrelationId&&n.telemetryLogger.getCorrelationId()},this.getHttpRequestCorrelationHeader=function(){if(n.telemetryLogger&&n.telemetryLogger.getHttpRequestCorrelationHeader)return n.telemetryLogger.getHttpRequestCorrelationHeader()},this.getCorrelationContextHeaderValue=function(){var e,t,r,o,a,s,l,c=null==(e=n.telemetryContext)?void 0:e.partnerContext,u=c.partnerName,d=c.scenarioId,p=c.sessionId;return!u&&(null==(r=null==(t=n.telemetryContext)?void 0:t.telemetryResource)?void 0:r.parameters.hasOwnProperty("partner"))&&(u=n.telemetryContext.telemetryResource.parameters.partner),p||(p=null==(o=n.telemetryContext)?void 0:o.sessionId),d||(d="commerce.payments.".concat(null==(s=null==(a=n.telemetryContext)?void 0:a.telemetryResource)?void 0:s.resourceType).concat(null==(l=n.telemetryContext)?void 0:l.operationType,".1")),"v=1,ms.b.tel.scenario=".concat(d,",ms.b.tel.partner=").concat(u,",ms.c.cfs.payments.partnerSessionId=").concat(p)},this.getSessionId=function(){var e;return null==(e=n.telemetryContext)?void 0:e.sessionId},this.getPidlSdkVersionHeaderValue=function(){var e,t;return"".concat(null==(e=n.telemetryContext)?void 0:e.sdkVersion,"_").concat(null==(t=n.telemetryContext)?void 0:t.sdkViewType)},this.updateTelemetryContext=function(e){n.telemetryContext&&e&&n.telemetryContext.updateResourceInfo({resourceType:void 0,parameters:e})},this.invokeEventHandlers=function(e,t,r,o){n.logTelemetryEvent(t,n.extendEventParameters(o));var a=n.extendEventParameters(r),s=!1;if(e)return e.forEach(function(e){s=e(t,a)||s}),s},this.addReturnOptions=function(e){n.returnUrls=e.urls?te({},e.urls):{},n.returnCallbacks=e.callbacks?te({},e.callbacks):{}},this.addPublicEventHandler=function(e){n.publicEventHandlers.push(e)},this.addPrivateEventHandler=function(e){n.privateEventHandlers.push(e)},this.registerEventExtender=function(e,t){n.eventParameterExtenders.hasOwnProperty(e)?n.logMessage(_.eventExtenderRegistered,"There is an existing event parameter extender for name ".concat(e)):n.eventParameterExtenders[e]=t},this.failure=function(e){e.cv=n.getCorrelationId(),n.invokePrivateEvent(_.failure,null,{error:e},{error:e}),n.invokePrivateEvent(_.metric,null,{succeeded:!1,error:e},{succeeded:!1,error:e}),n.logError(_.failure,"failure",e);var t=n.returnCallbacks[m.failure];if(t)return void n.invokeReturnCallback(t,{error:e,cv:n.getCorrelationId()});var r=n.returnUrls.failure;if(r){var o=r;e&&(o=t_.addQueryParameter(o,"errormessage",e.message)),n.redirectUrl(n.addExtendedParametersToUrl(o))}else throw e},this.success=function(e){(e=e||{}).cv=n.getCorrelationId(),n.logMessage(_.success,"Successfully completed operation: ".concat(e.operationType,". Id: ").concat(e.id)),n.invokePrivateEvent(_.success,null,{operationId:e.id,operationType:e.operationType},{operationId:e.id,operationType:e.operationType}),n.invokePrivateEvent(_.metric,null,{succeeded:!0},{succeeded:!0});var t=n.returnCallbacks[m.success];if(t)return void n.invokeReturnCallback(t,e);var r=n.returnUrls.success;if(r){var o=r;e.id&&(o=t_.addQueryParameter(o,"id",e.id)),n.redirectUrl(n.addExtendedParametersToUrl(o))}},this.gohome=function(){n.logMessage(_.gohome,"Going to call go-home"),n.invokePrivateEvent(_.gohome),n.invokePrivateEvent(_.metric,null,{succeeded:!0},{succeeded:!0});var e=n.returnCallbacks[m.gohome];e?n.invokeReturnCallback(e,{cv:n.getCorrelationId()}):n.returnUrls.gohome&&n.redirectUrl(n.addExtendedParametersToUrl(n.returnUrls.gohome))},this.notifyNoSelectionOptionsFound=function(e,t,r,o){n.invokePublicEvent(S.noSelectionOptionsFound,"No Data found in element id: ".concat(e," of type: ").concat(o," and of displayId: ").concat(t),{id:e,displayId:t,pidlIdentity:r,propertyType:o},{id:e,displayId:t,pidlIdentity:r,propertyType:o})},this.selectionChanged=function(e,t,r){n.invokePublicEvent(S.selectionChanged,"selection changed for ".concat(e," and display id ").concat(t),{propertyName:e,displayId:t,propertyValue:r},{propertyName:e,displayId:t})},this.error=function(e,t){n.logError(S.error,"error",e),e.cv=n.getCorrelationId(),n.invokePublicEvent(S.error,null,{error:e},{error:e,controlOperationType:t})},this.apiCalled=function(e,t,r){n.invokePrivateEvent(_.apiCalled,"API called. name: ".concat(e),{name:e},{name:e,parametersPassed:t,sanitizedParameters:r})},this.apiReturned=function(e,t,r){r||(r=rv()),n.invokePrivateEvent(_.apiReturned,"API returned. name: ".concat(e),{name:e,succeeded:t,promise:r},{name:e,succeeded:rp.boolify(t)})},this.secureFieldLoadWaitStarted=function(){n.invokePrivateEvent(_.secureFieldLoadWaitStarted)},this.secureFieldsLoaded=function(){n.invokePrivateEvent(_.secureFieldsLoaded)},this.secureFieldLoadWaitEnded=function(){n.invokePrivateEvent(_.secureFieldLoadWaitEnded)},this.secureFieldEventReceived=function(e,t,r){n.invokePrivateEvent(_.secureFieldEventReceived,"secureField event received",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.secureFieldEventQueued=function(e,t,r){n.invokePrivateEvent(_.secureFieldEventQueued,"secureField event queued",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.secureFieldEventPosted=function(e,t,r){n.invokePrivateEvent(_.secureFieldEventPosted,"secureField event posted",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.addSecureFieldPreLoadIFrameStarted=function(){n.invokePrivateEvent(_.addSecureFieldPreLoadIFrameStarted)},this.addSecureFieldPreLoadIFrameCompleted=function(){n.invokePrivateEvent(_.addSecureFieldPreLoadIFrameCompleted)},this.addSecureFieldPreLoadIFrameFailed=function(e){n.invokePrivateEvent(_.addSecureFieldPreLoadIFrameFailed,e)},this.challengeMessageReceived=function(e){n.invokePublicEvent(S.challengeMessageReceived,"challengeMessage received",{event:e},{event:e})},this.expressCheckoutReady=function(e){n.invokePublicEvent(S.expressCheckoutReady,"express checkout is ready",{availablePaymentMethods:e},{availablePaymentMethods:e})},this.postMessageReceived=function(e,t,r){n.invokePrivateEvent(_.postMessageReceived,"postMessage received",{origin:e,expectedOrigin:t,dataLength:r},{origin:e,expectedOrigin:t,dataLength:r})},this.postMessageHandleSuccess=function(e){n.invokePrivateEvent(_.postMessageHandleSuccess,"postMessage handle success",{actionType:e},{actionType:e})},this.postMessageHandleFailure=function(e){n.invokePrivateEvent(_.postMessageHandleFailure,"postMessage handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageTimeoutHandleSuccess=function(e){n.invokePrivateEvent(_.postMessageTimeoutHandleSuccess,"postMessageTimeout handle success",{actionType:e},{actionType:e})},this.postMessageTimeoutHandleFailure=function(e){n.invokePrivateEvent(_.postMessageTimeoutHandleFailure,"postMessageTimeout handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageBusyTimerStarted=function(e){n.invokePrivateEvent(_.postMessageBusyTimerStarted,"postMessage busy timer started",{details:e},{details:e})},this.postMessageBusyTimerEnded=function(e){n.invokePrivateEvent(_.postMessageBusyTimerEnded,"postMessage busy timer ended",{details:e},{details:e})},this.paymentSheetOpened=function(e){n.invokePublicEvent(S.paymentSheetOpened,"payment sheet opened",{details:e},{details:e})},this.paymentSheetCancelled=function(e){n.invokePublicEvent(S.paymentSheetCancelled,"payment sheet closed",{details:e},{details:e})},this.paymentDataTokenizing=function(e){n.invokePrivateEvent(_.paymentDataTokenizing,"payment data tokenizing",{details:e},{details:e})},this.paymentDataTokenized=function(e){n.invokePrivateEvent(_.paymentDataTokenized,"payment data tokenized successfully",{details:e},{details:e})},this.paymentClientSubmissionSkipped=function(e){n.invokePrivateEvent(_.paymentClientSubmissionSkipped,"Skipping submission for payment client component: "+e,{componentName:e},{componentName:e})},this.resourceHelpersFunctionExecuted=function(e,t,r){n.invokePrivateEvent(_.resourceHelpersFunctionExecuted,"Executed Resource Helper Function ".concat(e),{functionName:e,inputParams:t,outputValue:r},{functionName:e,inputParams:t,outputValue:r})},this.fetchCallCompleted=function(e){n.invokePublicEvent(S.fetchCallCompleted,"Fetch call completed",{httpRequestTelemetryData:e},{httpRequestTelemetryData:e})},this.toggleClicked=function(e,t){n.invokePublicEvent(S.toggleClicked,"Toggle clicked for property: ".concat(e,", current value: ").concat(t),{propertyName:e,currentValue:t},{propertyName:e,currentValue:t})},this.propertySelected=function(e,t,r){n.invokePublicEvent(S.propertySelected,"Input selected. id: ".concat(e),{id:e,propertyName:t,divId:r},{id:e,propertyName:t})},this.propertyValidated=function(e,t){n.invokePublicEvent(S.propertyValidated,"Property validation succeeded for property ".concat(e),{propertyName:e,controlOperationType:t},{propertyName:e,controlOperationType:t})},this.resourceSelected=function(e,t){var r;n.invokePublicEvent(S.resourceSelected,"Resource selected ".concat(e),{resourceName:e,value:t},{resourceName:e,id:t&&t.id,isWalletCard:!!(null==(r=null==t?void 0:t.details)?void 0:r.isNotSaved)})},this.instanceDownloading=function(e){n.invokePublicEvent(S.instanceDownloading,"Downloading instance from url: ".concat(e),{url:e},{url:e})},this.instanceDownloaded=function(){n.invokePublicEvent(S.instanceDownloaded,"Downloaded instance")},this.pidlDownloading=function(e){n.invokePublicEvent(S.pidlDownloading,"Downloading PIDL document from url: ".concat(e),{url:e},{url:e})},this.pidlDownloaded=function(){n.invokePublicEvent(S.pidlDownloaded,"PIDL document successfully downloaded")},this.pageRendering=function(e){n.invokePublicEvent(S.pageRendering,"PIDL document rendering begins",{successPayload:e},{})},this.pageRendered=function(e,t,r,o,a,s,l){n.invokePublicEvent(S.pageRendered,"PIDL document rendered",{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:a,currentPageName:s,currentPageDescription:l},{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:a,currentPageName:s})},this.pageRefreshed=function(){n.invokePublicEvent(S.pageRefreshed,"PIDL document refreshed")},this.pageDisplayed=function(){n.invokePublicEvent(S.pageDisplayed,"PIDL document displayed")},this.inputReading=function(){n.invokePublicEvent(S.inputReading,"Reading user input data")},this.inputRead=function(){n.invokePublicEvent(S.inputRead,"Read user input data")},this.inputValidating=function(){n.invokePublicEvent(S.inputValidating,"Validating user input data")},this.inputValidated=function(){n.invokePublicEvent(S.inputValidated,"Validated user input data")},this.inputTokenizing=function(){n.invokePublicEvent(S.inputTokenizing,"Tokenizing user input data")},this.inputTokenized=function(){n.invokePublicEvent(S.inputTokenized,"Tokenized user input data")},this.submitting=function(){n.invokePrivateEvent(_.submitting)},this.submitted=function(){n.invokePrivateEvent(_.submitted)},this.implementationMissing=function(e,t,r){n.invokePrivateEvent(_.implementationMissing,"Implentation of ".concat(null!=t?t:"undefined"," missing in ").concat(e),r)},this.inputSubmitting=function(e){n.invokePublicEvent(S.inputSubmitting,"Submitting PIDL document: ".concat(e),{url:e},{url:e})},this.inputSubmitted=function(e){n.invokePublicEvent(S.inputSubmitted,"PIDL document submitted. Next action: ".concat(e),{clientAction:e},{clientAction:e})},this.propertyTokenizing=function(e,t){n.invokePublicEvent(S.propertyTokenizing,"Tokenizing property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.propertyTokenized=function(e){n.invokePublicEvent(S.propertyTokenized,"Tokenized property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransforming=function(e){n.invokePublicEvent(S.propertyTransforming,"Transforming property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransformed=function(e){n.invokePublicEvent(S.propertyTransformed,"Transformed property: ".concat(e),{propertyName:e},{propertyName:e})},this.fileUploading=function(e,t){n.invokePublicEvent(S.fileUploading,"File uploading property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.fileUploaded=function(e){n.invokePublicEvent(S.fileUploaded,"File uploaded property: ".concat(e),{propertyName:e},{propertyName:e})},this.styleSheetError=function(e,t){n.invokePublicEvent(S.styleSheetError,"Failed to read the cssRules property from: ".concat(t),{error:e},{error:e})},this.redirecting=function(e){n.invokePublicEvent(S.redirecting,"Redirecting to url: ".concat(e),{url:e},{url:e})},this.navigate=function(e,t,r,o,a,s){var l=r?"Redirect":"Navigate";return n.invokePublicEvent(S.navigate,"".concat(l," to url: ").concat(t),{displayId:e,dest:a||e,url:t,piRedirection:r,context:o,destinationId:s},{displayId:e,dest:a||e,url:t,piRedirection:r,destinationId:s})},this.triggerEvent=function(e,t){return n.invokePublicEvent(S.triggerEvent,"Event triggered: ".concat(e),{eventName:e,params:t},{eventName:e,params:t})},this.partnerAction=function(e,t){return n.invokePublicEvent(S.partnerAction,"Invoke partner action on Id: ".concat(e),{displayId:e,context:t},{displayId:e})},this.pageNavigated=function(e,t,r,o,a,s,l){n.invokePublicEvent(S.pageNavigated,"Navigating from page: ".concat(e," to: ").concat(o),{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:a,currentPageName:s,currentPageDescription:l},{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:a,currentPageName:s})},this.click=function(e){n.invokePublicEvent(S.click,"Click display control for button with id ".concat(e),{id:e},{id:e})},this.captchaRendered=function(e){n.invokePublicEvent(S.captchaRendered,"Captcha is rendered with id ".concat(e),{id:e},{id:e})},this.propertyCreating=function(e,t,r){n.invokePublicEvent(S.propertyCreating,"Creating control with id ".concat(e),{id:e,displayDescription:t,htmlAttributes:r},{id:e})},this.payloadCreated=function(e){n.invokePublicEvent(S.payloadCreated,"Pidl payload created",{value:e},{})},this.restMethodInvoking=function(e,t){n.invokePublicEvent(S.restMethodInvoking,"invoking rest method with requestUrl: ".concat(e," operationType: ").concat(t),{requestUrl:e,operationType:t},{requestUrl:e,operationType:t})},this.restMethodInvoked=function(e){n.invokePublicEvent(S.restMethodInvoked,"rest method invoked, request url: ".concat(e),{requestUrl:e},{requestUrl:e})},this.propertyConditionallyUpdated=function(e,t){n.invokePublicEvent(S.propertyConditionallyUpdated,"Property ".concat(e," has been conditionally updated to ").concat(t),{propertyName:e,propertyValue:t},{propertyName:e,propertyValue:t})},this.pidlResolved=function(e,t){var r=[];t&&(r=t.map(function(e){return na.createIdentityHash(e.identity)}));var o=rp.serialize(r);n.invokePrivateEvent(_.pidlResolved,"PIDL document resolved successfully for context: ".concat(e,". Pidl Identities ").concat(o),{context:e,resolvedPidlIdentity:o},{})},this.propertyUnselected=function(e,t,r){n.invokePrivateEvent(_.propertyUnselected,null,{id:e,propertyName:t,divId:r},{id:e,propertyName:t})},this.propertyCreated=function(e,t,r){n.invokePrivateEvent(_.propertyCreated,null,{propertyName:e,controlId:t,divId:r},{propertyName:e,controlId:t})},this.pollingStarted=function(e){n.invokePrivateEvent(_.pollingStarted,null,{id:e},{id:e})},this.pollingEnded=function(e){n.invokePrivateEvent(_.pollingEnded,null,{id:e},{id:e})},this.updatePollAndMoveLast=function(e){n.invokePrivateEvent(_.updatePollAndMoveLast,null,{pollId:e})},this.modelUpdated=function(e,t){n.invokePrivateEvent(_.modelUpdated,null,{created:e,skipHideBusyBlock:t},{created:e,skipHideBusyBlock:t})},this.dataUpdated=function(){n.invokePrivateEvent(_.dataUpdated)},this.conflictingInputValues=function(e){n.invokePrivateEvent(_.conflictingInputValues,null,{propertyName:e},{propertyName:e})},this.stateChanged=function(e,t){n.invokePrivateEvent(_.stateChanged,null,{oldState:e,newState:t},{oldState:e,newState:t})},this.testHookGetInternalState=function(){return{returnUrls:n.returnUrls,returnCallbacks:n.returnCallbacks,publicEventHandlers:n.publicEventHandlers,privateEventHandlers:n.privateEventHandlers,eventParameterExtenders:n.eventParameterExtenders,telemetryContext:n.telemetryContext,telemetryLogger:n.telemetryLogger}},this.pollClientActionSuccess=function(e){n.invokePrivateEvent(_.pollClientActionSuccess,"handle client action succeeded during polling",{actionType:e},{actionType:e})},this.pollClientActionFailure=function(e){n.invokePrivateEvent(_.pollClientActionFailure,"handle client action failed during polling",{failureDetails:e},{failureDetails:e})},this.hideModalDialog=function(){n.invokePrivateEvent(_.hideModalDialog)},this.pidlActionInvoked=function(e,t){n.invokePrivateEvent(_.pidlActionInvoked,"PidlAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.clientActionInvoked=function(e,t){n.invokePrivateEvent(_.clientActionInvoked,"ClientAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.propertyValueSelected=function(e,t){n.invokePrivateEvent(_.propertyValueSelected,"Property ".concat(e," has the selected value ").concat(t),{propertyName:e,propertyValue:t},{propertyName:e,propertyValue:t})},this.renderedPidlPage=function(){n.invokePublicEvent(S.renderedPidlPage,"Rendered PidlPage")},this.closePidlPage=function(){n.invokePublicEvent(S.closePidlPage,"Closed PidlPage")},this.submitOriginalPidl=function(){n.invokePublicEvent(S.submitOriginalPidl,"Submit Original Pidl Action")},this.getLocalDataSourceInvoked=function(e){n.invokePublicEvent(S.getLocalDataSourceInvoked,"getDataSource of ".concat(e," invoked"),{dataSourceName:e},{dataSourceName:e})},this.getLocalDataSourceResolved=function(e,t){n.invokePublicEvent(S.getLocalDataSourceResolved,"getDataSource of ".concat(e," resolved"),{dataSourceName:e,count:t},{dataSourceName:e,count:t})},this.getLocalDataSourceError=function(e,t){n.logError(S.error,"error",t),t.cv=n.getCorrelationId(),n.invokePublicEvent(S.getLocalDataSourceError,"getDataSource of ".concat(e," error"),{dataSourceName:e,errorObject:t},{dataSourceName:e,errorObject:t})},this.telemetryContext=t,this.telemetryLogger=e}}(),rC=function(){return function(e,t,n,r,o,a,s,l,c){void 0===c&&(c=!1);var u=this;if(this.dataType="json",this.contentType="application/json",this.operationVersion="",this.getRequest=function(){var e={method:u.type,headers:new Headers(u.headers),mode:"cors",credentials:u.includeCredentials?"include":"omit"};return u.payload&&(e.body=u.payload),new Request(u.url,e)},this.updateFetchOptions=function(e,t){var n=rv({success:u.secondaryRetrieved,headers:u.secondaryHeaders,payload:u.secondaryPayload});return t&&e.useSecondaryPayload&&!u.secondaryRetrieved&&(n=t()),n.then(function(t){var n=t.success,r=t.headers,o=t.payload;return e&&e.endpoint?u.url=tX.replaceVirtualEndpointWithServiceAddress(e.endpoint):e&&e.useAlternateUrl||(u.url=u.originalUrl),n&&(u.secondaryRetrieved=n,u.secondaryHeaders=r,u.secondaryPayload=o),e.useSecondaryPayload?(u.secondaryHeaders?u.headers=te({},u.secondaryHeaders):null===u.secondaryHeaders&&(u.headers={}),u.secondaryPayload&&(u.payload=u.secondaryPayload)):(u.headers=te({},u.originalHeaders),u.payload=u.originalPayload),(void 0===u.payload||null===u.payload)&&delete u.payload,u})},this.url=e,this.originalUrl=e,this.type=t,this.headers=n,this.originalHeaders=te({},n),this.payload=r,this.originalPayload=r,this.retryCount=o?0:-1,this.retryOnServerError=o,this.currentOperationName=a||"pidlsdkOperation",this.operationName=s||"DependentOperationName",this.serviceName=l||"PidlSdkDependentService",this.includeCredentials=c,this.serverErrorCount=0,this.secondaryRetrieved=!1,n&&rp.isObject(n)){var d=n,p=M.msRetryOnServerErr,f=d[p],h=tt(d,["symbol"==typeof p?p:p+""]);this.retryOnServerError="false"!==f,this.headers=h}}}(),rk=function(e){function t(t,n,r,o,a){var s=e.call(this,"Failed to fetch")||this;return s.status=t,s.statusText=n,s.failureContent=r,s.hasResponseFromServer=o,s.canRetryOnServerError=a,s}return e7(t,e),t}(Error),rw=1e3,rS=1.5,r_=[500,502,503,504],rE=2,rP=12e3,rI=42e3,rT=function(){return[{retry:2},{retry:1,xhrConfig:{getRequestTimeout:rP,postRequestTimeout:rI}},{retry:2,useAlternateUrl:!0},{retry:1,useAlternateUrl:!0,xhrConfig:{getRequestTimeout:rP,postRequestTimeout:rI}}]},rD=function(){return function(e){this.initialRetryTimeout=rw,this.retryTimeoutMultiplier=rS,this.retryableErrorCodes=tl([],r_,!0),this.maxServerErrorRetryCount=rE,this.fetchOrder=rT(),this.initialRetryTimeout=(null==e?void 0:e.initialRetryTimeout)||this.initialRetryTimeout,this.retryTimeoutMultiplier=(null==e?void 0:e.retryTimeoutMultiplier)||this.retryTimeoutMultiplier,this.retryableErrorCodes=(null==e?void 0:e.retryableErrorCodes)||this.retryableErrorCodes,this.maxServerErrorRetryCount=(null==e?void 0:e.maxServerErrorRetryCount)||this.maxServerErrorRetryCount,this.fetchOrder=(null==e?void 0:e.fetchOrder)||this.fetchOrder;for(var t=[],n=0,r=this.fetchOrder;n<r.length;n++){for(var o=r[n],a=0;a<o.retry;a++)t.push(o);o.retry=1}this.fetchOrder=t}}(),rA=new(function(){function e(){var e=this;this.FetchOptions=rC,this.getHttpTelemetryData=function(t,n){var r=t.url,o=t.type,a=t.contentType,s=t.currentOperationName,l=t.operationName,c=t.operationVersion,u=t.serviceName,d=t.retryCount,p=n.isSuccess,f=n.statusCode,h=n.headers,m=n.failureResponseText,g=n.timeTaken,v=n.serviceErrorCode,y=n.statusText,b=f?f.toString():"0",x=p||"200"===b?"":m||y,C=0;try{C=parseInt(n.headers.get("Content-Length"),10)}catch(e){}return{targetUri:r,requestMethod:o,responseContentType:a,operationName:s,dependencyOperationName:l,dependencyOperationVersion:c,serviceName:u,retryCount:d,succeeded:p,protocolStatusCode:b,failureResponse:x,contentLength:isNaN(C)?0:C,latencyMs:g,serviceErrorCode:v,headers:e.getDesiredResponseHeaders(h)}},this.getDesiredResponseHeaders=function(e){var t={};if(e&&e.forEach){var n=rf.telemetryHeaders.names,r=rf.telemetryHeaders.prefixes;e.forEach(function(e,o){n.indexOf(o)>-1?t[o]=e:r.forEach(function(n){rp.startsWithIgnoreCase(o,n)&&(t[o]=e)})})}return t},this.isFetchFailureError=function(e){return"status"in e&&"statusText"in e&&"failureContent"in e},this.addCVHeader=function(e,t){var n=e.getHttpRequestCorrelationHeader()||{name:void 0,value:void 0},r=n.name,o=n.value;r&&o&&(t[r]=o)},this.handleFetchFailure=function(t,n,r,o){if(e.isFetchFailureError(t))a=t.status,s=t.statusText,c=t.failureContent,u=t.hasResponseFromServer,r=r&&t.canRetryOnServerError;else if(t){var a,s,c,u,d,p=t;a=p.status,s=p.statusText,c=p.failureContent||t.message||rp.serialize(p)}var f=!1,h=!1,m=!1;u?(o&&o.retryableErrorCodes&&o.retryableErrorCodes.indexOf(a)>-1&&(h=!0,f=r),d="HTTP Error |".concat(a,"|").concat(s,"|: |").concat(c,"|")):(d="|NetworkError|Status: ".concat(a,", StatusText: ").concat(s,", FailureContent: ").concat(c,"| Uncaught Error. |").concat(c,"|"),m=!0,f=!0);var g=rd.parseJSON(c);return{failureMessage:{status:l.Error,errorMessage:d,httpStatus:a,httpStatusText:s,failureContent:c,failureObject:g&&g.succeeded?g.value:void 0,connectivityError:m},retryable:f,serverError:h}},this.fetchWrapper=function(t){return e.fetchHandler?e.fetchHandler(t.getRequest()):fetch(t.getRequest())},this.xhrWrapper=function(t,n,r,o){return new Promise(function(a,s){var l=t.type,c=t.url,u=t.headers,d=t.payload,p=t.includeCredentials,f=(n||{xhrConfig:{getRequestTimeout:rP,postRequestTimeout:rI}}).xhrConfig,h=new XMLHttpRequest;h.open(l,c),l===el.Get?h.timeout=f.getRequestTimeout||rP:h.timeout=f.postRequestTimeout||rI,u&&rp.getKeys(u).forEach(function(e){return h.setRequestHeader(e,u[e])}),p&&(h.withCredentials=p);var m=function(){var e=h.getAllResponseHeaders(),t={};return rp.isEmptyString(e)||e.trim().split(/[\r\n]+/).forEach(function(e){var n=e.split(": "),r=n.shift(),o=n.join(": ");t[r]=o}),t},g=function(){var e=void 0;return(""===h.responseType||"text"===h.responseType)&&(e=h.responseText),e};h.onload=function(){a(new Response(g(),{status:h.status,headers:new Headers(m()),statusText:h.statusText}))},h.onerror=function(){var n={isSuccess:!1,timeTaken:Date.now()-o,statusCode:h.status,headers:new Headers(m())};r&&r.fetchCallCompleted(e.getHttpTelemetryData(t,n));var a=g();s(new rk(h.status,h.statusText,a,rp.boolify(a),!0))},h.ontimeout=function(){var n={isSuccess:!1,timeTaken:Date.now()-o,statusCode:h.status,headers:new Headers};r&&r.fetchCallCompleted(e.getHttpTelemetryData(t,n)),s(new rk(h.status,h.statusText,void 0,!1,!0))},l===el.Post&&d?(h.setRequestHeader("Content-Type","application/json"),h.send(d)):h.send()})},this.loadScript=function(e){return new Promise(function(t,n){try{if(document&&(document.head||document.body)){var r=document.createElement("script");r.onload=function(){t()},r.onerror=function(){n()},r.async=!0,r.src=e,(document.head||document.body).appendChild(r)}else n()}catch(e){n(e)}})},this.getHttpHeaders=function(t,n,r,o,a){var s=e.getDefaultHttpHeaders(t);for(var l in n&&(s=n.getHeaders(s,o)),r&&(rd.extend(!0,s,r),s.hasOwnProperty(M.msCorrelationId)&&rp.isNullOrUndefinedOrWhiteSpaceString(s[M.msCorrelationId])&&(s[M.msCorrelationId]=rd.guid()),s.hasOwnProperty(M.msTrackingId)&&rp.isNullOrUndefinedOrWhiteSpaceString(s[M.msTrackingId])&&(s[M.msTrackingId]=rd.guid())),o&&(o.indexOf("{pidl")>-1||o.indexOf("{pifd")>-1||o.indexOf("{resource-endpoint}")>-1)&&(s.hasOwnProperty(M.correlationContext)||(s[M.correlationContext]=null==t?void 0:t.getCorrelationContextHeaderValue()),s[M.msPidlsdkVersion]=null==t?void 0:t.getPidlSdkVersionHeaderValue()),s)s[l]=rd.getFormatStringExpressionValue(s[l],a);return s},this.getDefaultHttpHeaders=function(t){var n,r=((n={})[M.contentType]="application/json",n);return e.addCVHeader(t,r),r},this.getPayeeFileUploadHttpHeaders=function(e,t){var n={};return t&&(n[M.authorization]=t),n},this.setFetchHandler=function(t){e.fetchHandler=t},this.testHookSetRetryTimeout=function(e){rw=e},this.testHookHandleFetchFailure=function(t,n,r){return void 0===n&&(n=el.Post),void 0===r&&(r=!1),e.handleFetchFailure(t,n,r,new rD)}}return e.prototype.successHandler=function(e,t,n,r,o,a){var s=this;return function(l){var c={isSuccess:l.ok,timeTaken:Date.now()-n,statusCode:l.status,headers:l.headers};if(c.isSuccess)try{e.fetchCallCompleted(s.getHttpTelemetryData(t,c))}catch(e){}return l.text().then(function(n){var u=rd.parseJSON(n),d=!1;if(!c.isSuccess){c=te(te({},c),{statusText:l.statusText,serviceErrorCode:(u.value||{}).code,failureResponseText:n});try{e.fetchCallCompleted(s.getHttpTelemetryData(t,c))}catch(e){}d=t.serverErrorCount<a.maxServerErrorRetryCount;try{var p=c.headers.get(M.msRetryOnServerErr);d="true"===p||"false"!==p&&d}catch(e){}}if(l.ok&&(rp.isEmptyString(n)||u.succeeded))try{var f=u.succeeded?u.value:{};o&&o(f),r.resolve(f)}catch(e){throw new rk(l.status,l.statusText,e.message,!0,!1)}else throw new rk(l.status,l.statusText,n,!0,d)})}},e.prototype.exceptionHandler=function(e,t,n,r,o,a,s,l){var c=this;return function(u){var d=c.handleFetchFailure(u,t.type,t.retryOnServerError,s),p=d.failureMessage,f=d.retryable&&s.fetchOrder.length>0;if(e.error(new nt.serverError(nn.restMethodInvocationFailed,t.url,p.failureObject||p.failureContent,p.httpStatus,p.httpStatusText,p.errorMessage,[t.url,p.httpStatusText],t.type,t.retryCount,f)),d.serverError&&t.serverErrorCount++,f){t.retryCount+=1;var h=s.fetchOrder.shift();h.useAlternateUrl&&(t.url=rf.getAlternateUrl(t.originalUrl));var m=t.updateFetchOptions(h,l);setTimeout(function(){return(n=Date.now(),!h.xhrConfig||c.fetchHandler)?m.then(function(t){return c.addCVHeader(e,t.headers),c.fetchWrapper(t).then(c.successHandler(e,t,n,r,o,s)).catch(c.exceptionHandler(e,t,n,r,o,a,s,l))}):m.then(function(t){return c.addCVHeader(e,t.headers),c.xhrWrapper(t,h,e,n).then(c.successHandler(e,t,n,r,o,s)).catch(c.exceptionHandler(e,t,n,r,o,a,s,l))})},s.initialRetryTimeout*Math.pow(s.retryTimeoutMultiplier,t.retryCount-1))}else a&&a(p),r.reject(p)}},e.prototype.invokeFetch=function(e,t,n,r,o,a,s,l,c,u,d,p,f,h){var m=this;void 0===p&&(p=!1),void 0===f&&(f=null),void 0===h&&(h=null);var g=Date.now(),v=new this.FetchOptions(r,n,o,a,t,c,u,d,p),y=new rD(f),b=y.fetchOrder.shift(),x=v.updateFetchOptions(b,h);return new Promise(function(t,n){var r={resolve:t,reject:n};x.then(function(t){(b.xhrConfig&&!m.fetchHandler?m.xhrWrapper(t,b,e,g):m.fetchWrapper(t)).then(m.successHandler(e,t,g,r,s,y)).catch(m.exceptionHandler(e,t,g,r,s,l,y,h))}).catch(m.exceptionHandler(e,v,g,r,s,l,y,h))})},e.prototype.post=function(e,t,n,r,o,a,s,l,c,u,d,p,f){return void 0===d&&(d=!1),void 0===p&&(p=null),void 0===f&&(f=null),this.invokeFetch(e,t,el.Post,n,r,o,a,s,l,c,u,d,p,f)},e.prototype.put=function(e,t,n,r,o,a,s,l,c,u,d,p){return void 0===d&&(d=!1),void 0===p&&(p=null),this.invokeFetch(e,t,el.Put,n,r,o,a,s,l,c,u,d,p)},e.prototype.get=function(e,t,n,r,o,a,s){return void 0===s&&(s=null),this.invokeFetch(e,!0,el.Get,t,n,null,null,null,r,o,a,!1,s)},e.prototype.delete=function(e,t,n,r,o,a,s){return void 0===s&&(s=null),this.invokeFetch(e,!0,el.Delete,t,n,null,null,null,r,o,a,!1,s)},e}()),rR=new(function(){function e(){var e=this;this.returnOptionSchema={type:"object",children:{callbacks:{type:"object",optional:!0,children:{success:{type:"function",optional:!0},failure:{type:"function",optional:!0},gohome:{type:"function",optional:!0}}},urls:{type:"object",optional:!0,children:{success:{type:"string",optional:!0},failure:{type:"string",optional:!0},gohome:{type:"string",optional:!0}}}}},this.userContextSchema={type:"object",optional:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0},serviceOverrides:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0}}}}},this.pidlDocInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},resourceSuffix:{type:"string",optional:!0},pidlVersion:{type:"string",optional:!0},pidlEndpoint:{type:"string",optional:!0}}},this.resourceInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},id:{type:"string"},resourceEndpoint:{type:"string",optional:!0}}},this.pidlIdentitySchema={type:"object",ignoreUnspecifiedChild:!0,children:{country:{type:"string",optional:!0},description_type:{type:"string",optional:!0},operation:{type:"string",optional:!0},resource_id:{type:"string",optional:!0}}},this.displayOptionsSchema={type:"object",children:{containerId:{type:"string"},busyBlockId:{type:"string",optional:!0},busyBlockElement:{type:"any",optional:!0},helpDialogBlockId:{type:"string",optional:!0},showHelpDialogBlock:{type:"boolean",optional:!0},inputPropertyIdPrefix:{type:"string",optional:!0},inputPropertyIdSuffix:{type:"string",optional:!0},displayElementIdPrefix:{type:"string",optional:!0},displayElementIdSuffix:{type:"string",optional:!0},inputPropertyErrorIdPrefix:{type:"string",optional:!0},showPlaceholderInTextbox:{type:"boolean",optional:!0},disableEnterKeyAction:{type:"boolean",optional:!0},showSubmitBlock:{type:"boolean",optional:!0},showErrorBlock:{type:"boolean",optional:!0},htmlExtender:{type:"dictionary",optional:!0},busyBlockShowHideHandler:{type:"function",optional:!0},hidePropertyErrors:{type:"boolean",optional:!0},disableFocusOnLoad:{type:"boolean",optional:!0},alwaysValidateOnChange:{type:"boolean",optional:!0},ieExtender:{type:"dictionary",optional:!0},propagateCallbackException:{type:"boolean",optional:!0},useWebView2:{type:"boolean",optional:!0},busyUntilInitialPageRendered:{type:"boolean",optional:!0},secureFieldPreLoadingEnabled:{type:"boolean",optional:!0},instanceName:{type:"string",optional:!0},preventUnmountOnFinish:{type:"boolean",optional:!0}}},this.suppressedEventsSchema={type:"object",optional:!0,children:{disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0}}},this.telemetryOptionsSchema={type:"object",optional:!0,children:{contextData:{type:"dictionary",optional:!0},disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0},enablePrivateEventConsoleLogging:{type:"boolean",optional:!0},customTelemetryFrameworkWindowNamespace:{type:"string",optional:!0},overrides:{type:"object",minLength:0,optional:!0,childType:this.suppressedEventsSchema,allowedChildNames:te(te({},S),_)}}},this.callbacksSchema={type:"object",optional:!0,children:{view:{type:"any",optional:!0},submit:{type:"function",optional:!0},getPidlDocument:{type:"function",optional:!0},iFrameMessageHandler:{type:"function",optional:!0},telemetryLogger:{type:"any",optional:!0},prefetcher:{type:"any",optional:!0},encryptionHandler:{type:"any",optional:!0},fetchHandler:{type:"function",optional:!0}}},this.checkoutParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{anonymousUser:{type:"boolean",optional:!0},checkoutId:{type:"string"},language:{type:"string"},market:{type:"string"},partner:{type:"string",optional:!0},paymentProviderId:{type:"string"},redirectUrl:{type:"string"}}},this.payeeTaxProfileParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{section:{type:"string"},tenant:{type:"string"},sapidind:{type:"string",optional:!0},status:{type:"string",optional:!0},accounttype:{type:"string",optional:!0},payfromcc:{type:"array",minLength:1,optional:!0},residencecc:{type:"string",optional:!0},language:{type:"string",optional:!0}}},this.mockEventsSchema={type:"object",optional:!0,children:{name:{type:"string"},params:{type:"dictionary",optional:!0}}},this.mockFunctionSchema={type:"object",optional:!0,children:{name:{type:"string"},triggers:{type:"array",maxLength:1,childType:this.mockEventsSchema},returns:{type:"any",optional:!0}}},this.mockFunctionsSchema={type:"array",maxLength:1,optional:!0,childType:this.mockFunctionSchema},this.addUpdateOrDeleteOptionSchema={type:"object",optional:!0,children:{sessionId:{type:"string",optional:!0},riskData:{type:"object",optional:!0,children:{greenId:{type:"string"}}}}},this.selectOrRenderOptionSchema={type:"object",optional:!0},this.selectedResourceInfoSchema={type:"object",children:{id:{type:"string",optional:!0},backupId:{type:"string",optional:!0}}},this.handleSchema={type:"string"},this.prefillDataSchema={type:"object",ignoreUnspecifiedChild:!0},this.purchaseContextSchema={type:"object",children:{amount:{type:"number"},currency:{type:"string"},country:{type:"string"},threeDSScenario:{type:"string",possibleValues:rp.getValues(te({},ey))},riskChallengeIndicator:{type:"string",optional:!0,possibleValues:rp.getValues(te({},eb))}}},this.purchaseRiskChallengeSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},sessionId:{type:"string",optional:!0},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchaseRiskChallengeSchemaForThreeDS={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},challengeWindowSize:{type:"string",possibleValues:rp.getValues(te({},ex))},purchaseContext:{type:"schema",schema:this.purchaseContextSchema},sessionId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchasePendingStateSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},sessionId:{type:"string"},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.resourceOptionsSchema={type:"dictionary",optional:!0},this.showResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.offerResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.searchResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.fundStoredValueParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.resourceActionParamsSchema={type:"object",children:{resourceActionContext:{type:"object",ignoreUnspecifiedChild:!0,children:{action:{type:"string",possibleValues:rp.getValues(te({},w))},handle:{type:"string",optional:!0},pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema,optional:!0},pidlIdentity:{type:"schema",schema:this.pidlIdentitySchema,optional:!0},resourceInfo:{type:"schema",schema:this.resourceInfoSchema,optional:!0},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0}}},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"dictionary",optional:!0},selectedResourceInfo:{type:"schema",schema:this.selectedResourceInfoSchema,optional:!0}}},this.authorizationGroupSchema={type:"object",children:{id:{type:"string"},totalAmount:{type:"number"},itemTitles:{type:"array"}}},this.paymentSessionDataSchema={type:"object",ignoreUnspecifiedChild:!0,children:{amount:{type:"number"},billableAccountId:{type:"string",optional:!0},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:rp.getValues(te({},ey))},challengeWindowSize:{type:"string",possibleValues:rp.getValues(te({},ex))},classicProduct:{type:"string",optional:!0},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"},purchaseOrderId:{type:"string",optional:!0},redeemRewards:{type:"boolean",optional:!0},rewardsPoints:{type:"number",optional:!0},recurringPaymentDetails:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{label:{type:"string",optional:!0},frequencyUnit:{type:"string",possibleValues:rp.getValues(te({},eM))},frequency:{type:"number"},startTime:{type:"date",optional:!0},amount:{type:"number"}}},authorizationGroups:{type:"array",optional:!0,childType:this.authorizationGroupSchema},initiativeContext:{type:"string",optional:!0}}},this.paymentSessionSchema={type:"object",ignoreUnspecifiedChild:!0,children:{id:{type:"string"},isChallengeRequired:{type:"boolean"},challengeStatus:{type:"string",possibleValues:rp.getValues(te({},eC))},signature:{type:"string"},amount:{type:"number"},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:rp.getValues(te({},ey))},challengeWindowSize:{type:"string",possibleValues:rp.getValues(te({},ex))},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"}}},this.visitInputSchema=function(t,n,r){var o=e.validate(t,n,r);if(o)return o;if("dictionary"===n.type||!r)return null;if(e.isObjectSchema(n)){var a=n.allowedChildNames,s=n.ignoreUnspecifiedChild,l=n.children,c=n.childType;if(a)for(var u in r){if(!a[u])return new nt.inputParameterValidationFailedError(nn.inputParameterMissing,t,[n.type,rp.getType(r)]);if(c){var d=e.visitInputSchema(t+" element: ",c,r[u]);if(d)return d}}else{if(!s){for(var p in r)if(!l[p])return new nt.inputParameterValidationFailedError(nn.inputParameterNotInRange,p,[p])}for(var f in l){var h=e.visitInputSchema(f,l[f],r[f]);if(h)return h}}}if(e.isArraySchema(n)){if(!rp.isArray(r))return new nt.inputParameterValidationFailedError(nn.inputParameterTypeMismatch,t,[n.type,rp.getType(r)]);var m=n.minLength,g=n.maxLength,c=n.childType;if(m&&r.length<m)return new nt.inputParameterValidationFailedError(nn.inputParameterSmallerThanMinLength,t,[t,m,r.length]);if(g&&r.length>g)return new nt.inputParameterValidationFailedError(nn.inputParameterLargerThanMaxLength,t,[t,g,r.length]);if(c)for(var v=0;v<r.length;++v){var y=e.visitInputSchema(t+" element: "+v,c,r[v]);if(y)return y}}if(e.isSchemaSchema(n)){var b=e.visitInputSchema(t,n.schema,r);if(b)return b}return null},this.validate=function(e,t,n){if(!t.optional&&null==n)return new nt.inputParameterValidationFailedError(nn.inputParameterMissing,e,[e]);var r=t.type;if(!n||"any"===r)return null;var o=typeof n;return("dictionary"===r||"schema"===r?r="object":"array"===r&&rp.isArray(n)&&(o="array"),"boolean"===r&&"string"===o&&("true"===n||"false"===n)&&(o="boolean"),"date"===r&&"object"===o&&(o="date"),r&&o&&r!==o)?new nt.inputParameterValidationFailedError(nn.inputParameterTypeMismatch,e,[r,o]):t.possibleValues&&!rp.contains(t.possibleValues,n)?new nt.inputParameterValidationFailedError(nn.inputParameterNotInRange,e,[e,n,JSON.stringify(t.possibleValues)]):null},this.resultHandler=function(e,t){return t&&e.failure(t),!rp.boolify(t)},this.validateInputParameters=function(t,n,r,o,a){var s=e.resultHandler(t,e.visitInputSchema("userContext",e.userContextSchema,n));return(s=s&&e.resultHandler(t,e.visitInputSchema("displayOptions",e.displayOptionsSchema,r)))&&r.busyBlockShowHideHandler&&r.busyBlockId&&(s=e.resultHandler(t,new nt.inputParameterValidationFailedError(nn.busyBlockShowHideHandlerAndbusyBlockIdAreExclusive))),s=(s=s&&e.resultHandler(t,e.visitInputSchema("telemetryOptions",e.telemetryOptionsSchema,o)))&&e.resultHandler(t,e.visitInputSchema("callbacks",e.callbacksSchema,a))},this.validateCheckoutParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("checkoutParams",e.checkoutParamsSchema,n))},this.validatePayeeTaxProfileParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("payeeTaxProfileParams",e.payeeTaxProfileParamsSchema,n))},this.validateMockFunctions=function(t,n){return e.resultHandler(t,e.visitInputSchema("mockFunctions",e.mockFunctionsSchema,n))},this.validateReturnOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("returnOptions",e.returnOptionSchema,n))},this.validatePidlDocInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("pidlDocInfo",e.pidlDocInfoSchema,n))},this.validateResourceInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("resourceInfo",e.resourceInfoSchema,n))},this.validateAddUpdateOrDeleteOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.addUpdateOrDeleteOptionSchema,n))},this.validateSelectOrRenderOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.selectOrRenderOptionSchema,n))},this.validateShowResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("showResourceParams",e.showResourceParamsSchema,n))},this.validateOfferResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("offerResourceParams",e.offerResourceParamsSchema,n))},this.validateSearchResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("searchResourceParams",e.searchResourceParamsSchema,n))},this.validateFundStoredValueParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("fundStoredValueParams",e.fundStoredValueParamsSchema,n))},this.validateResourceOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.resourceOptionsSchema,n))},this.validateResourceActionParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("resourceActionParams",e.resourceActionParamsSchema,n))},this.validatePaymentSessionData=function(t,n){return e.resultHandler(t,e.visitInputSchema("paymentSessionData",e.paymentSessionDataSchema,n))},this.shouldValidateAuthorizationGroups=function(e,t){return"be4de87d-7e38-4b2d-8836-9237eb32848e"===t&&e.length>1},this.validatePaymentSessionOrData=function(t,n){if(e.isPaymentSession(n))o=e.paymentSessionSchema;else{if(o=e.paymentSessionDataSchema,null==(r=null==n?void 0:n.recurringPaymentDetails)?void 0:r.frequencyUnit){var r,o,a=n.recurringPaymentDetails.frequencyUnit;n.recurringPaymentDetails.frequencyUnit=a.toLowerCase()}if((null==n?void 0:n.authorizationGroups)&&e.shouldValidateAuthorizationGroups(n.authorizationGroups,null==n?void 0:n.piid)){for(var s=0,l=0,c=n.authorizationGroups;l<c.length;l++)s+=100*c[l].totalAmount;if(s!==(null==n?void 0:n.amount)*100){var u=new nt.unmatchedAmountError(nn.unmatchedAmount,JSON.stringify(n));t.error(u)}}}return e.resultHandler(t,e.visitInputSchema("paymentSessionOrData",o,n))},this.validatePurchaseRiskChallengeParams=function(t,n){var r="purchaseRiskChallengeSchema",o=e.purchaseRiskChallengeSchema;return n&&n.riskChallengeData&&n.riskChallengeData.length>0&&"threeds"===n.riskChallengeData[0].toLowerCase()&&(r="purchaseRiskChallengeSchemaForThreeDS",o=e.purchaseRiskChallengeSchemaForThreeDS),e.resultHandler(t,e.visitInputSchema(r,o,n))},this.validateHandlePurchasePendingStateParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("purchasePendingStateSchema",e.purchasePendingStateSchema,n))},this.validateSelectedResourceInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("selectedResourceInfo",e.selectedResourceInfoSchema,n))},this.validateHandle=function(t,n){return e.resultHandler(t,e.visitInputSchema("handle",e.handleSchema,n))}}return e.prototype.isObjectSchema=function(e){return e&&"object"===e.type},e.prototype.isArraySchema=function(e){return e&&"array"===e.type},e.prototype.isSchemaSchema=function(e){return e&&"schema"===e.type},e.prototype.isPaymentSession=function(e){return e&&rp.isString(e.id)&&e.id.length},e}()),rN=function(){return function(e){this.constants={},this.errors={};var t=e&&e.getResolvedOrFirstPidlDoc();if(t&&t.strings){var n=t.strings,r=n.constants,o=n.errorCodes;r&&(this.constants=te({},r)),o&&(this.errors=te({},o))}}}(),rB=function(){function e(e){var t=this;this.cache=null,this.keyComparer=null,this.put=function(e,n){var r=t.getCacheEntryIndex(e);-1===r?t.cache.push({key:e,value:n}):t.cache[r].value=n},this.get=function(e){var n=t.getCacheEntryIndex(e);return -1!==n&&t.cache[n].value},this.remove=function(e){var n=t.getCacheEntryIndex(e),r=null;return -1!==n&&(r=t.cache[n],t.cache.splice(n,1)),r&&r.value},this.clear=function(){t.cache=[]},this.removeIf=function(e){e&&rp.filter(t.cache,function(t){return!t||!t.value||!e(t.value)})},this.cache=[],this.keyComparer=rp.isFunction(e)?e:function(e,t){return e===t}}return e.prototype.getCacheEntryIndex=function(e){for(var t=0;t<this.cache.length;t++)if(this.keyComparer(this.cache[t].key,e))return t;return -1},e}(),rM=function(){function e(){var e=this;this.modelDataCache=null,this.dataSourceCache=null,this.partnerData=null,this.saveModelData=function(t,n){e.modelDataCache.put(t,e.getModelData(n))},this.readModelData=function(t){return e.modelDataCache.get(t)},this.saveDataSource=function(t,n){e.dataSourceCache[t]=n},this.readDataSource=function(t){return e.dataSourceCache[t]},this.readAllDataSources=function(){return e.dataSourceCache},this.savePartnerData=function(t){e.partnerData=t},this.readPartnerData=function(){return e.partnerData},this.clear=function(){e.modelDataCache.clear(),e.partnerData=null,e.clearDataSourceCache()},this.clearDataSourceCache=function(){e.dataSourceCache={}},this.modelDataCache=new rB,this.dataSourceCache={}}return e.prototype.getModelData=function(e){var t={};if(e)for(var n in e){var r=e[n];r&&(t[n]=r.getValue())}return t},e}(),rF=function(){return function(e,t){this.value=e,this.objectId=t}}(),rO=function(){return function(e,t,n,r,o){var a=this;if(this.possibleValues=[],this.index=-1,this.associatedModelDataProperties=null,this.pidlIdentity=null,this.getPossibleOptions=function(){for(var e={},t=0;t<a.possibleValues.length;t++)e[t]={displayText:a.possibleValues[t].value};return e},this.getIndex=function(){return a.index},this.setIndex=function(e){a.index=e;var t=a.possibleValues[a.index];if(t)for(var n=t.objectId,r=0;r<a.associatedModelDataProperties.length;r++)a.associatedModelDataProperties[r].setCurrentObjectId(n)},this.pidlIdentity=e,this.associatedModelDataProperties=r,this.possibleValues=[],o)for(var s=0;s<o.length;s++){var l=o[s];this.possibleValues.push(new rF(l,t))}for(var c=0;c<n.objectIds.length;c++){var u=n.objectIds[c];if(u!==t){for(var d=[],p=0;p<this.associatedModelDataProperties.length;p++){var f=this.associatedModelDataProperties[p];f.setCurrentObjectId(u);var h=f.getValue();h&&d.push(h),f.setCurrentObjectId(t)}this.possibleValues.push(new rF(rd.getStringValue(d),u))}}}}(),rL=function(){return function(e){this.modelDataProperties=[],this.pageIndex=e,this.allPropertyOnSamePage=!0,this.modelDataProperties=[]}}(),rH=function(){return function(){this.currentObjectId=null,this.objectIds=[],this.currentObjectId=null,this.objectIds=[]}}(),rz="pidlddc_object_id",rV=function(){return function(e){var t=this;this.prefillData=null,this.defaultInstanceId=null,this.multiPropertySelectors={},this.modelDataProperties={},this.pidlIdentityPrefillObjectMapping={},this.pidlDocInfos={},this.addId=function(e){if(rp.isArray(e))for(var n=0;n<e.length;n++)t.addId(e[n]);else if(rp.isObject(e))for(var r in e[rz]||(e[rz]=rd.guid()),e)r!==rz&&t.addId(e[r])},this.getPropertyInstancesInternal=function(e,n,r){if(rp.isArray(n))for(var o=0;o<n.length;o++)t.getPropertyInstancesInternal(e,n[o],r);else if(rp.isObject(n)){var a=e.getPropertyName();for(var s in n){if(s===a){var l=n[rz];l||(l=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]&&t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId?t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId:t.defaultInstanceId);var c=n[a];nX(e)&&(c=nl.normalizeValueToPossibleValues(e,n[a])),r[l]=c}t.getPropertyInstancesInternal(e,n[s],r)}}},this.getPropertyInstances=function(e,n){var r={};return n&&t.getPropertyInstancesInternal(e,n,r),r},this.parsePrefillData=function(e){var n=t.getPropertyInstances(e,t.prefillData);if(t.modelDataProperties[e.getPropertyName()].setInstances(n),rp.keyCount(n)>0){var r=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity];for(var o in r||(r=new rH,t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]=r),n)rp.contains(r.objectIds,o)||r.objectIds.push(o);r.currentObjectId=r.objectIds[0]}},this.createPidlInfos=function(e,n){var r=n.pidlInfos[e.pidlIdentity];r||(r=new rL(n.pageIndex),n.pidlInfos[e.pidlIdentity]=r),r.pageIndex!==n.pageIndex&&(r.allPropertyOnSamePage=!1);var o=t.modelDataProperties[e.getPropertyName()];o&&r.modelDataProperties.push(o)},this.getPidlInfos=function(e){for(var n={},r=0;r<e.length;r++)nl.propertiesVisitorProcessingDataProperty(e[r].children,t.createPidlInfos,{pageIndex:r,pidlInfos:n});t.pidlDocInfos=n},this.getDefaultSelectionStrings=function(e,t,n){if(e&&t){var r=t.getIdentityString(e),o=r+"_"+Y.prefillDropdownDefault,a=r+"_"+Y.prefillDropdownNew,s=(n||{})[o],l=(n||{})[a];if(s&&l){var c=[];return c.push(s),c.push(l),c}}},this.createMultiPropertySelectors=function(e,n,r,o){var a=nl.findPrefillControlElement(e),s=!1;for(var l in t.pidlDocInfos){var c,u=t.pidlDocInfos[l],d=t.pidlIdentityPrefillObjectMapping[l],p=a&&u.allPropertyOnSamePage&&l===a.pidlIdentity;if(d&&d.objectIds&&u.modelDataProperties)if(p&&a.type===g.checkBox)d.objectIds.length>1&&o.error(new nt.unexpectedError(nn.unexpectedPrefillDataCount,[l,"1",d.objectIds.length.toString()])),c=new rO(l,t.defaultInstanceId,d,u.modelDataProperties),t.multiPropertySelectors[l]=c,s=!0;else if(p&&a.type===g.dropdown&&d.objectIds.length>1){var f=t.getDefaultSelectionStrings(l,r,n);c=new rO(l,t.defaultInstanceId,d,u.modelDataProperties,f),t.multiPropertySelectors[l]=c}else for(var h=0;h<u.modelDataProperties.length;h++)u.modelDataProperties[h].setDefaultObjectAsCurrent()}return s},this.getPidlInfoMatch=function(e){for(var n in t.pidlDocInfos)for(var r=t.pidlDocInfos[n].modelDataProperties,o=0;o<r.length;o++)if(e[r[o].propertyName])return t.pidlDocInfos[n]},this.fillPrefillData=function(){for(var e=0;e<t.prefillData.length;e++){var n=t.prefillData[e],r=t.getPidlInfoMatch(n);if(r)for(var o=0;o<r.modelDataProperties.length;o++){var a=r.modelDataProperties[o].propertyName;n[a]=n[a]?n[a]:""}}},this.getPropertyValueInternal=function(e,n,r){if(n){if(void 0===r){if(rp.isArray(n))for(var o=0;o<n.length;o++)r=r||t.getPropertyValueInternal(e,n[o],r);else if(rp.isObject(n)||n.hasOwnProperty(e))for(var a in n)e===a?r=n[a]:void 0===r&&(r=t.getPropertyValueInternal(e,n[a],r))}return r}},this.reset=function(){t.prefillData=null,t.multiPropertySelectors={},t.modelDataProperties={},t.pidlIdentityPrefillObjectMapping={},t.pidlDocInfos={}},this.parse=function(e,n,r,o,a,s){var l=!1;return t.prefillData=e,t.addId(t.prefillData),t.multiPropertySelectors={},t.modelDataProperties=r,t.getPidlInfos(n),t.prefillData&&(t.fillPrefillData(),nl.propertiesVisitorProcessingDataProperty(n,t.parsePrefillData),l=t.createMultiPropertySelectors(n,o,a,s)),{multiPropertySelectors:t.multiPropertySelectors,editable:l}},this.getPropertyValue=function(e){if(t.prefillData)return t.getPropertyValueInternal(e,t.prefillData)},this.getPrefillData=function(){return t.prefillData||{}},this.testHookGetParsePrefillDataFunc=function(){return t.parsePrefillData},this.defaultInstanceId=e}}(),rU=function(){return function(e,t,n,r){var o=this;this.objectId=null,this.defaultObjectId=null,this.objectIdValuesMapping={},this.propertyName=null,this.modelElement=null,this.editState=null,this.setCurrentObjectId=function(e){o.objectId=e},this.setDefaultObjectAsCurrent=function(){var e=null;for(e in o.objectIdValuesMapping)if(e!==o.defaultObjectId)break;var t=null;e&&(t=o.objectIdValuesMapping[e]),o.objectIdValuesMapping[o.defaultObjectId]=t,o.objectId=o.defaultObjectId},this.setValue=function(e){var t=!1;return!e&&o.modelElement&&o.modelElement.hidden()&&o.modelElement.defaultValue&&(e=o.modelElement.defaultValue),o.objectId!==o.defaultObjectId&&e!==o.objectIdValuesMapping[o.objectId]&&(o.objectId=o.defaultObjectId,t=!0),o.objectIdValuesMapping[o.objectId]=e,t},this.getValue=function(e,t){var n=o.objectIdValuesMapping[o.objectId];if(nK(o.modelElement)&&rp.isObject(o.modelElement.possibleOptions)){if(!o.modelElement.possibleOptions[n])return nl.normalizeValueToPossibleValues(o.modelElement,n);else if(e&&t&&n&&o.modelElement.possibleOptions[n].pidlAction)return o.modelElement.possibleOptions[n].pidlAction.context}return n},this.isEditable=function(e){return(o.objectId===o.defaultObjectId||e)&&(!o.modelElement||!o.modelElement.disabled())},this.setInstances=function(e){o.objectIdValuesMapping=rd.extend(o.objectIdValuesMapping,e)},this.propertyName=e,this.modelElement=r,this.editState=J.clean,this.objectId=t,this.defaultObjectId=t,this.objectIdValuesMapping=n}}(),rj=function(){return function(e){var t=this;this.inputPrefillDataManager=null,this.multiPropertySelectors={},this.modelDataProperties={},this.inputInstance=null,this.pidlDocManager=null,this.dataStore=null,this.resourceResponse=null,this.getInstancePropertyValue=function(e,n,r){if(rp.isArray(n)){for(var o=0;o<n.length;o++)if(t.getInstancePropertyValue(e,n[o],r))return!0}else if(rp.isObject(n))for(var a in n){if(a===e)return r[e]=n[e],!0;if(t.getInstancePropertyValue(e,n[a],r))return!0}},this.getDisplayPropertyValueInternal=function(e){var n=t.displayData&&t.displayData.details&&t.displayData.details[e];if(n)return n;var r=t.modelDataProperties[e];if(r){var o=r.modelElement;if(o&&o.possibleOptions){var a=r.getValue(),s=o.possibleOptions[a];if(s)return s.displayText}}},this.maskPropertyValueFlagExists=function(e){var n=t.modelDataProperties[e];return n&&n.modelElement&&n.modelElement.maskDisplay},this.mergeUserDataInternal=function(e,n){var r=e.getPropertyName();if(n.userData.hasOwnProperty(r)){var o=n.userData[r],a=t.getMaskedPropertyValue(r);if(!a||o!==a){var s=t.modelDataProperties[r],l=s.getValue(!1);o!==l&&n.conflictingInputValueReporter&&n.conflictingInputValueReporter(r),s.setValue(o)}}},this.updateModelElement=function(e){var n=e.getPropertyName(),r=t.modelDataProperties[n];r||(t.populateInternal(e),r=t.modelDataProperties[n]);var o=r.modelElement;if(o&&e.pidlIdentity!==o.pidlIdentity){r.modelElement=e;var a=t.multiPropertySelectors[o.pidlIdentity];a&&(t.multiPropertySelectors[e.pidlIdentity]=a,a.pidlIdentity=e.pidlIdentity,delete t.multiPropertySelectors[o.pidlIdentity])}},this.populateInternal=function(e){var n={},r=e.getPropertyName();t.modelDataProperties[r]||(n[t.defaultInstanceId]=e.defaultValue,t.modelDataProperties[r]=new rU(r,t.defaultInstanceId,n,e))},this.getPropertyInternal=function(e,n,r){var o=!0,a=null,s=t.modelDataProperties[e];return s?(a=s.getValue(n,r),o=s.isEditable(t.editablePrefillData)):a=t.inputInstance&&t.inputInstance.hasOwnProperty(e)?t.inputInstance[e]:t.inputPrefillDataManager.getPropertyValue(e),{value:a,editable:o,propertyName:e}},this.setJumpbackData=function(e){if(e)for(var n in t.modelDataProperties)e.hasOwnProperty(n)&&t.modelDataProperties[n].setValue(e[n])},this.removeClientAction=function(e){if(!e)return e;var t=rp.deepCopy(e);return delete t.clientAction,t},this.setPrefillData=function(e,n,r,o){if(e.elements&&n){var a=t.inputPrefillDataManager.parse(n,e.elements,t.modelDataProperties,r,e.pidlDocManager,o);t.multiPropertySelectors=a.multiPropertySelectors,t.editablePrefillData=a.editable,t.setPrefillDataInPartnerDataSource(n)}},this.getPrefillData=function(){return t.inputPrefillDataManager.getPrefillData()},this.setPrefillDataInPartnerDataSource=function(e){var n=t.getPartnerData()||{};n.prefillData=e,t.setPartnerData(n)},this.setInputParametersInPartnerDataSource=function(e){var n=t.getPartnerData()||{};n.inputParameters=e,t.setPartnerData(n)},this.setDisplayData=function(e){t.displayData=e},this.updateUserData=function(e){t.setJumpbackData(e)},this.mergeUserData=function(e,n,r){n&&e&&e.elements&&nl.propertiesVisitorProcessingDataProperty(e.elements,t.mergeUserDataInternal,{userData:n,conflictingInputValueReporter:r})},this.updateModelElements=function(e){e&&nl.propertiesVisitorProcessingDataProperty(e,t.updateModelElement)},this.getPropertyValue=function(e,n,r){var o=t.getPropertyInternal(e,n,r);if(o)return o.value},this.getProperty=function(e){return t.getPropertyInternal(e)},this.getPropertyModelElement=function(e){return t.modelDataProperties[e]?t.modelDataProperties[e].modelElement:null},this.getDisplayPropertyValue=function(e){return t.getDisplayPropertyValueInternal(e)},this.getMaskedPropertyValue=function(e){return t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]},this.clearMaskedPropertyValue=function(e){t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]&&(t.displayData.details[e]=null)},this.getModelDataProperty=function(e){return t.modelDataProperties[e]},this.setMultiPropertySelectorIndex=function(e,n){var r=t.multiPropertySelectors[e];r&&r.setIndex(n)},this.getMultiPropertySelectorIndex=function(e){var n=t.multiPropertySelectors[e];if(n)return n.getIndex()},this.getMultiPropertySelectorPossibleOptions=function(e){var n=t.multiPropertySelectors[e];if(n)return n.getPossibleOptions()},this.getId=function(){return t.inputInstance?t.inputInstance.hasOwnProperty("id")?t.inputInstance.id:void 0:t.inputPrefillDataManager.getPropertyValue("id")},this.setDataSource=function(e,n){t.dataStore.saveDataSource(e,n)},this.getDataSource=function(e){return t.dataStore.readDataSource(e)},this.getAllDataSources=function(){return t.dataStore.readAllDataSources()},this.setPartnerData=function(e){t.dataStore.savePartnerData(e)},this.getPartnerData=function(){return t.dataStore.readPartnerData()},this.cacheFlow=function(){var e=t.pidlDocManager.getPidlIdentity();return e&&t.dataStore.saveModelData(na.createIdentityHash(e),t.modelDataProperties),e},this.clearFlow=function(){t.displayData=null,t.modelDataProperties={},t.multiPropertySelectors={},t.inputInstance=null,t.inputPrefillDataManager.reset()},this.clearAll=function(){t.dataStore.clear(),t.resourceResponse=null,t.clearFlow()},this.clearDataSourceCache=function(){t.dataStore.clearDataSourceCache()},this.populate=function(e){nl.propertiesVisitorProcessingDataProperty(e,t.populateInternal)},this.getModelDataProperties=function(e){var n={properties:{}};return nl.propertiesVisitorProcessingDataProperty(e,function(e,n){var r=e.getPropertyName(),o=t.modelDataProperties[r];o&&(n.properties[r]=o)},n),n.properties},this.setInputInstance=function(e,n){n&&(nl.propertiesVisitorProcessingDataProperty(e,function(e,n){var r={},o=e.getPropertyName();t.getInstancePropertyValue(o,n.inputInstanceDetails,r)&&t.modelDataProperties[o].setValue(r[o])},{inputInstanceDetails:n}),t.inputInstance=n)},this.setPrimaryResourceResponse=function(e,n){var r=[];n&&n.length&&n.forEach(function(e){return r.push(t.removeClientAction(e))}),t.resourceResponse={primary:t.removeClientAction(e),secondary:r}},this.retrieveFromCache=function(e,n){if(e=e||t.pidlDocManager.getPidlIdentity()){var r=t.dataStore.readModelData(na.createIdentityHash(e));if(n)for(var o=0;o<n.length;o++)r.hasOwnProperty(n[o])&&delete r[n[o]];if(r)return t.setJumpbackData(r),!0}},this.getPrimaryResourceResponseId=function(){return t.resourceResponse&&t.resourceResponse.primary&&t.resourceResponse.primary.id},this.getResourceResponse=function(){return t.resourceResponse},this.testHookSetMultiPropertySelectors=function(e){t.multiPropertySelectors=e},this.testHookGetMultiPropertySelectors=function(){return t.multiPropertySelectors},this.testHookSetModelDataProperties=function(e){t.modelDataProperties=e},this.testHookGetModelDataProperties=function(){return t.modelDataProperties},this.testHookGetDefaultInstanceId=function(){return t.defaultInstanceId},this.testHookGetDisplayData=function(){return t.displayData},this.testHookSetInputPrefillDataManager=function(e){t.inputPrefillDataManager=e},this.testHookSetEditablePrefillData=function(e){t.editablePrefillData=e},this.displayData=null,this.defaultInstanceId=rd.guid(),this.inputPrefillDataManager=new rV(this.defaultInstanceId),this.multiPropertySelectors={},this.pidlDocManager=e,this.dataStore=new rM}}(),rW=new(function(){return function(){this.luhn=function(e){for(var t=0,n=!1,r=e.length-1;r>=0;r--){var o=parseInt(e.charAt(r));n&&(o*=2)>9&&(o-=9),t+=o,n=!n}return t%10==0}}}()),rq=new(function(){return function(){this.aggregateCommerceResults=function(e,t){return e.length?new Promise(function(n,r){var o=[],a=0,s=function(){if(++a===e.length){var r=o.length?o[0].error:null;r=o.length&&t?t(r):r,n({innerErrors:o,error:r})}};e.forEach(function(e){e.then(function(e){e.error&&o.push(e),s()}).catch(function(e){o.push({error:new nt.unexpectedError(e)}),s()})})}):rv({innerErrors:[]})}}}()),rG=new(function(){return function(){var e=this;this.validateUserInputDataFromService=function(e,t,n,r,o,a,s){var c=t_.buildUrl(rf.getServiceEndpoint(rf.virtualEndpoints.validation.endpoint),[a]),u={value:r,propertyName:n};t&&(u.urlValidationType=t);var d=JSON.stringify(u),p=rA.getDefaultHttpHeaders(e);return p[M.msFlight]="pxpidl",new Promise(function(t,r){rA.post(e,!0,c,p,d,function(e){t({error:rp.equalsIgnoreCase(e.status,l.Passed)?null:new nt.propertyValidationFailedError(nn.propertyValidationFailed,e.errorCode,n,[n,e.errorCode])})},function(e){t({error:new nt.propertyValidationFailedError(nn.propertyValidationFailed,R.empty,n,[n,R.empty])})},o,rf.virtualEndpoints.validation.operation,rf.virtualEndpoints.validation.description,!0,s).catch(rm)})},this.validateUserInputDataInternal=function(t,n,r,o,a){var s=n.data_description,l=[];for(var c in s){var u=s[c];if(tz(u)){var d=u&&u.length&&u[0];d&&(l=l.concat(e.validateUserInputDataInternal(t,d,r[c],o,a)))}else{if(u.displayOnly||o===eL.update&&!u.is_updatable)continue;var p=null;if(a){var f=a.getModelDataProperty(c);f&&(p=f.modelElement)}l.push(e.validatePropertyFromPropertyDescription(t,p,no.getPropertyValueFromInputData(r,c),o,c,u))}}return l},this.validatePropertyFromPropertyDescription=function(t,n,r,o,a,s){var c,u=l.Passed,d=null,p=null;if((null==n?void 0:n.type)===g.secureProperty)p=n.validate().then(function(e){return e?{error:new nt.propertyValidationFailedError(nn.propertyValidationFailed,e,s.display_property||a,[s.display_property||a,e])}:{error:null}});else if(r){if(s.validation||s.validations)for(var f=null==s.validations?[s.validation]:s.validations,h=0;h<f.length&&u===l.Passed;h++)switch(f[h].validationType){case eH.regex:var m=new RegExp(f[h].regex);n&&n.type&&n.type===g.filePicker?r&&r.name&&!1===m.test(r.name)&&(u=l.Fail,d=f[h].error_code):!1===m.test(r)&&(u=l.Fail);break;case eH.function:rW[f[h].function]&&rW[f[h].function](r)||(u=l.Fail,d=f[h].error_code);break;case eH.service:p=e.validateUserInputDataFromService(t,f[h].urlValidationType,a,r,o,f[h].url,null==(c=null==s?void 0:s.dataProtection)?void 0:c.fetchConfig);break;case eH.size:var v=f[h].maxFileSize;n&&n.type&&n.type===g.filePicker&&r&&r.size&&r.size>v&&(u=l.Fail,d=f[h].error_code)}}else s.is_optional||(u=l.Fail,d=R.empty);return p||(p=rv({error:u===l.Passed?null:new nt.propertyValidationFailedError(nn.propertyValidationFailed,d,s.display_property||a,[s.display_property||a,d])})),p},this.validateUserInputData=function(t,n,r,o,a){var s=e.validateUserInputDataInternal(t,n,r,o,a);return rq.aggregateCommerceResults(s)},this.validateUserInputProperty=function(t,n,r,o){var a=e.validatePropertyFromPropertyDescription(t,n,r,o,n.getPropertyName(),n.dataDescription);return rq.aggregateCommerceResults([a])}}}()),rK=function(){return function(e,t){var n=this;this.shouldValidateProperty=function(e,t){if(n.alwaysValidateOnChange)return!0;var r=e.editState,o=e.modelElement;if(!o||o.type!==g.textBox&&o.type!==g.dropdown&&o.type!==g.checkBox&&o.type!==g.secureProperty)return r===J.clean?""!==e.getValue():t===Z.editing||t===Z.finished;switch(r){case J.clean:return!1;case J.editing:return t===Z.finished;case J.dirty:return!0}},this.shouldValidatePropertyInPageValidation=function(e,t){return t!==A.dirtyOnly||e===J.dirty},this.getUpdatedPropertyState=function(e,t){var n=e.editState,r=e.modelElement;if(r&&(r.type===g.textBox||r.type===g.dropdown||r.type===g.checkBox||r.type===g.secureProperty))switch(n){case J.clean:return t===Z.editing?J.editing:null;case J.editing:return t===Z.finished?J.dirty:null;case J.dirty:return null}else if(n===J.clean&&""!==e.getValue())return J.dirty;else return null},this.validatePropertyValue=function(e,t){return rG.validateUserInputProperty(n.eventHub,e.modelElement,e.getValue(),t)},this.validatePageElements=function(e,t,r,o){var a=[],s=function(s){var l=e[s];n.shouldValidatePropertyInPageValidation(l.editState,t)&&a.push(n.validatePropertyValue(l,r).then(function(t){var r=t.error;if(!r){l&&n.eventHub.propertyValidated(s,Z.finished);return}var a=e[r.propertyName];if(a){var c=a.modelElement;(rc(c)||ri(c))&&(r.message=c.getErrorMessage(a.getValue(),r.errorCode)),a.editState=J.dirty,o.push(r)}}).catch(function(){return rm}))};for(var l in e)s(l);return a},this.validateProperty=function(e,t,r){var o=n.shouldValidateProperty(e,t),a=n.getUpdatedPropertyState(e,t);return a&&(e.editState=a),new Promise(function(a,s){o?n.validatePropertyValue(e,r).then(function(r){var o=r.error;if(o){var s=e.modelElement;(rc(s)||ri(s))&&(o.message=s.getErrorMessage(e.getValue(),o.errorCode)),n.eventHub.error(o,t)}else n.eventHub.propertyValidated(e.propertyName,t);a()}).catch(function(){return rm}):a()})},this.clearElementEditState=function(e){e.editState=J.clean},this.validatePage=function(e,t,r){return(t===A.all&&n.eventHub.inputValidating(),e)?new Promise(function(o,a){var s=[],l="";Promise.all(n.validatePageElements(e,t,r,s)).then(function(){if(s.length){var e=new nt.formValidationFailedError(t===A.all?nn.formValidationFailed:nn.editedPropertiesValidationFailed,l,s,[l]);n.eventHub.error(e),a(e)}else o(),t===A.all&&n.eventHub.inputValidated()},function(){a()})}):(t===A.all&&n.eventHub.inputValidated(),rv())},this.eventHub=e,this.alwaysValidateOnChange=t}}(),rX=new(function(){return function(){var e=this;this.getCryptoSubtleInstance=function(){return window&&window.crypto&&window.crypto.subtle},this.isSupported=function(){return e.getCryptoSubtleInstance()}}}()),rY={name:"HMAC",hash:{name:"SHA-256"}},r$=function(){return function(){var e=this;this.init=function(){var t=rX.getCryptoSubtleInstance();return t?new Promise(function(n,r){t.generateKey(rY,!0,["sign"]).then(function(r){e.hmacKey=r,t.exportKey("raw",e.hmacKey).then(function(t){var r={};try{e.rawKey=btoa(String.fromCharCode.apply(null,new Uint8Array(t)))}catch(e){r.error=new nt.unexpectedError(nn.hmacError,[e&&e.message])}n(r)},function(e){n({error:new nt.unexpectedError(nn.hmacError,[e&&e.message])})})},function(e){n({error:new nt.unexpectedError(nn.hmacError,[e&&e.message])})})}):rv({error:new nt.unexpectedError(nn.hmacError,["Failed to Init hmac"])})},this.getRawKey=function(){return e.rawKey},this.sign=function(t){var n=rX.getCryptoSubtleInstance();return n&&e.hmacKey?new Promise(function(r,o){for(var a=new Uint8Array(t.length),s=0;s<t.length;s++)a[s]=t.charCodeAt(s);n.sign(rY,e.hmacKey,a).then(function(e){var t=null;try{var n=new Uint8Array(e);t=btoa(String.fromCharCode.apply(null,n))}catch(e){r({error:new nt.unexpectedError(nn.hmacError,[e&&e.message])})}r({data:t})},function(e){r({error:new nt.unexpectedError(nn.hmacError,[e&&e.message])})})}):rv({error:new nt.unexpectedError(nn.hmacError,["hmac not initialized"])})},this.testHookGetHmacAlgo=function(){return rY},this.testHookSetHmacKey=function(t){e.hmacKey=t},this.hmacKey=null,this.rawKey=null}}();function rQ(e){var t="1.6.6";return e=e||{},function(){var n,r,o={};o.register=function(e,t,n){o[e]||(o[e]={});var r=o[e];r[t]||(r[t]=n)},o.exists=function(e,t){return!!o[e]&&!!o[e][t]};var a=function(){if("u">typeof document)try{throw Error()}catch(t){if(t.stack){var e=/\w+:\/\/(.+?\/)*.+\.js/.exec(t.stack);return e&&e.length>0?e[0]:null}}else if("u">typeof self&&void 0!==self.location)return self.location.href;return null}(),s=!1,l="u">typeof Worker,c="function"==typeof importScripts&&self instanceof WorkerGlobalScope,u=!1,d="u">typeof ArrayBuffer,p=function(){try{return Object.defineProperty({},"oncomplete",{}),!0}catch(e){return!1}}(),f=!1,h=function(e,t,n,r,o){if(!p){e[t]=n;return}var a={};r&&(a.get=r),o&&(a.set=o),Object.defineProperty(e,t,a)},m={},g=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function t(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4!=0;)t+="=";var n,r,o,a,s,l,c,u,d=[];for(u=0,t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<t.length;u+=4)a=e.indexOf(t.charAt(u)),s=e.indexOf(t.charAt(u+1)),l=e.indexOf(t.charAt(u+2)),c=e.indexOf(t.charAt(u+3)),n=a<<2|s>>4,r=(15&s)<<4|l>>2,o=(3&l)<<6|c,d.push(n),64!==l&&d.push(r),64!==c&&d.push(o);return d}function n(e){return Object.prototype.toString.call(e).slice(8,-1)}function r(e,n,r){var o,a=t(e),s=[];if(isNaN(n))return a;for(o=0;o<a.length;o+=n)s.push(a.slice(o,o+n));if(r)for(o=0;o<s.length;o++)s[o]=(s[o][0]<<24)+(s[o][1]<<16)+(s[o][2]<<8)+s[o][3];return s}function o(e){return[e>>>24&255,e>>>16&255,e>>>8&255,255&e]}function a(e){for(var t=[],n=0;n<e.length;n++)t=t.concat(o(e[n]));return t}function s(e){if(!e)return[];if(e.pop)return e;if("ArrayBuffer"===n(e)?e=new Uint8Array(e):e.BYTES_PER_ELEMENT>1&&(e=new Uint8Array(e.buffer)),1===e.length)return[e[0]];if(e.length<65536)return Array.apply(null,e);for(var t=Array(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}function l(e){if("Array"!==n(e))return!1;for(var t,r=0;r<e.length;r++)if(isNaN(t=e[r])||t<0||t>255)return!1;return!0}function c(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}return{consoleLog:function(e){"console"in self&&"log"in console&&console.log(e)},toBase64:function(t,r){var o,a,l,c,u,d,p,f,h=n(t);if("Array"!==h&&"Uint8Array"!==h&&"ArrayBuffer"!==h)throw Error("invalid input");var m="",g=s(t);for(r||(r=!1),f=0;f<g.length;f+=3)o=g[f],a=g[f+1],l=g[f+2],c=o>>2,u=(3&o)<<4|a>>4,d=(15&a)<<2|l>>6,p=63&l,isNaN(a)?d=p=64:isNaN(l)&&(p=64),m=m+e.charAt(c)+e.charAt(u)+e.charAt(d)+e.charAt(p);return r?m.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,""):m},fromBase64:t,checkParam:function(e,t,r){if(!e||t&&n(e)!==t)throw Error(r);return!0},getObjectType:n,bytesToHexString:function(e,t){var n="";void 0===t&&(t=!1);for(var r=0;r<e.length;r++){t&&r%4==0&&0!==r&&(n+="-");var o=e[r].toString(16).toUpperCase();1===o.length&&(n+="0"),n+=o}return n},bytesToInt32:function(e,t){return e[t=t||0]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},stringToBytes:function(e){for(var t=[],n=0,r=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?t[r++]=o:(o<2048?t[r++]=o>>>6|192:(o<55296||o>57343?t[r++]=o>>>12|224:(o=(o-55296)*1024+(e.charCodeAt(++n)-56320)+65536,t[r++]=o>>>18|240,t[r++]=o>>>12&63|128),t[r++]=o>>>6&63|128),t[r++]=63&o|128)}return t},bytesToString:function(e){var t,n="";e=s(e);for(var r=0;r<e.length;){var o=e[r++];if((t=o<128?o:o<224?(o<<6)+e[r++]-12416:o<240?(o<<12)+(e[r++]<<6)+e[r++]-925824:(o<<18)+(e[r++]<<12)+(e[r++]<<6)+e[r++]-0x3c82080)>65535){n+=String.fromCharCode(Math.floor((t-65536)/1024)+55296,(t-65536)%1024+56320);continue}n+=String.fromCharCode(t)}return n},unpackData:r,hexToBytesArray:function(e){e=e.replace(/\-/g,"");for(var t=[];e.length>=2;)t.push(parseInt(e.substring(0,2),16)),e=e.substring(2,e.length);return t},int32ToBytes:o,int32ArrayToBytes:a,toArray:s,arraysEqual:function(e,t){var n=!0;e.length!==t.length&&(n=!1);for(var r=0;r<e.length;r++)e[r]!==t[r]&&(n=!1);return n},clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},xorVectors:function(e,t,n){for(var r=Math.min(e.length,t.length),n=n||Array(r),o=0;o<r;o+=1)n[o]=e[o]^t[o];return n},padEnd:function(e,t,n){for(;e.length<n;)e.push(t);return e},padFront:function(e,t,n){for(;e.length<n;)e.unshift(t);return e},getVector:function(e,t){isNaN(t)&&(t=0);for(var n=Array(e),r=0;r<e;r+=1)n[r]=t;return n},verifyByteArray:l,error:function(e,t){var n=Error(t);throw n.name=e,n},isBytes:function(e){if(!(e instanceof Array))return!1;for(var t=0;t<e.length;t++){var n=e[t];if(!c(n)||n>255||n<0)return!1}return!0},isInteger:c}}(),v=function(){var e={0:"CUSTOM",1:"BOOLEAN",2:"INTEGER",3:"BIT STRING",4:"OCTET STRING",5:"NULL",6:"OBJECT IDENTIFIER",16:"SEQUENCE",17:"SET",19:"PRINTABLE STRING",23:"UTCTime"};function t(n,r){r=!!r;var o,a,s,l=e[31&n[0]],c=n[1],u=0,d=!!(32&n[0]);if(128&c)for(u=0,c=0;u<(127&n[1]);u++)c=(c<<8)+n[2+u];if(s=2+u,void 0===l||c>n.length)return null;var p=d?[]:{};if(p.type=l,p.header=s,p.data=n.slice(0,c+s),d||r)for("BIT STRING"===p.type&&0===n[s]&&u++,o=n.slice(s,p.data.length);o.length>0&&null!==(a=t(o));)p.push(a),o=o.slice(a.data.length);return p}function n(e){var t=2,s=3,l=4,c=5,u=6,d=16,p=160,f=32;if(e.hasOwnProperty("INTEGER")){var h=e.INTEGER;g.isInteger(h)&&(h=o(h)),128&h[0]&&h.unshift(0);var m=[t].concat(r(h),h);return m}if(e.hasOwnProperty("OCTET STRING")){var h=e["OCTET STRING"];h instanceof Array||(h=n(h));var m=[l].concat(r(h),h);return m}if(e.hasOwnProperty("BIT STRING")){var h=e["BIT STRING"];h instanceof Array||(h=n(h)),h.unshift(0);var m=[s].concat(r(h),h);return m}if(e.hasOwnProperty("NULL"))return[c,0];if(e.hasOwnProperty("OBJECT IDENTIFIER")){var h=a(e["OBJECT IDENTIFIER"]),m=[u].concat(r(h),h);return m}if(e.hasOwnProperty("SEQUENCE")){for(var v=e.SEQUENCE,h=[],y=0;y<v.length;y++)h=h.concat(n(v[y]));var m=[d|f].concat(r(h),h);return m}if(e.hasOwnProperty("APPLICATION")){var v=e.APPLICATION,b=isNaN(parseInt(v[0]))?f:0,x=e.tag,h=b?[]:e.APPLICATION;if(b)for(var y=0;y<v.length;y++)h=h.concat(n(v[y]));var m=[p|b|x].concat(r(h),h);return m}throw Error("unsupported asn.1 type")}function r(e){var t=e.length;if(t<=127)return[t];var n=o(t);return n.unshift(128|n.length),n}function o(e){var t=[];if(0===e)return[0];for(;e>0;)t.unshift(255&e),e>>>=8;return t}function a(e){for(var t=e.split("."),n=[parseInt(40*t[0]+parseInt(t[1]))],r=2;r<t.length;r++){for(var o=parseInt(t[r]),a=[];o>0;)a.push(127&o|128),o>>>=7;a[0]=127&a[0],n=n.concat(a.reverse())}return n}function s(e,t){var n=Array(t+1).join(" ")+e.type+" ("+e.length+") "+bytesToHexString(e.data).substring(0,16)+"\n";if(!e.children)return n;for(var r=0;r<e.children.length;r++)n+=s(e.children[r],t+4)+"";return n}return{parse:t,encode:n,toString:function(e){return s(e,0)}}}(),y=function(){var e,t,n;function r(e){return u&&c&&self.postMessage(e),e}return{jsCryptoRunner:function(a){e=a.data.workerid,t=a.data.operationType,n=a.data.operationSubType;var s,l=a.data.operationType,c=o[l][a.data.algorithm.name],u=a.data;if(!o.exists(l,a.data.algorithm.name))throw Error("unregistered algorithm.");return u.operationSubType?r({type:u.operationSubType,result:c(u)}):r(c(u))},returnResult:r}}();c&&(self.onmessage=function(e){if(!u&&e.data.prngSeed){var t=e.data.prngSeed;return Y.init(t),u=!0,y.returnResult({initialized:!0})}!0===u&&y.jsCryptoRunner(e)});var b=function(){var e=g;function t(e){for(var t=[],n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return 0===t[t.length-1]&&t.pop(),t}function n(e){var t=e.algorithm.name.slice(0,3).toUpperCase();return"RSA"===t?"RSA":"ECD"===t?"EC":"oct"}function r(e){return e.hash.name.substring(e.hash.name.indexOf("-")+1)}var o={HMAC:function(e){return"HS"+r(e)},"AES-CBC":function(e){return"A"+e.length.toString()+"CBC"},"AES-GCM":function(e){return"A"+e.length.toString()+"GCM"},"AES-KW":function(e){return"A"+e.length.toString()+"KW"},"RSAES-PKCS1-V1_5":function(e){return"RSA1_5"},"RSASSA-PKCS1-V1_5":function(e){return"RS"+r(e)},"RSA-OAEP":function(e){return"SHA-1"===e.hash.name.toUpperCase()?"RSA-OAEP":"RSA-OAEP-"+r(e)},"RSA-PSS":function(e){return"PS"+r(e)},ECDSA:function(e){return"EC-"+e.namedCurve.substring(e.namedCurve.indexOf("-")+1)}};return{keyToJwkOld:function(r,o){var a={};if(a.kty=n(r),a.extractable=r.extractable,o.pop)a.k=e.toBase64(o,!0);else for(var s in o)o[s].pop&&(a[s]=e.toBase64(o[s],!0));return r.algorithm.namedCurve&&(a.crv=r.algorithm.namedCurve),t(JSON.stringify(a,null,"	"))},keyToJwk:function t(t,r){var a={};if(a.kty=n(t),a.ext=t.extractable,o[t.algorithm.name.toUpperCase()]&&(a.alg=o[t.algorithm.name.toUpperCase()](t.algorithm)),a.key_ops=t.usages,r.pop)a.k=e.toBase64(r,!0);else for(var s in r)r[s].pop&&"key_ops"!==s&&(a[s]=e.toBase64(r[s],!0));return t.algorithm.namedCurve&&(a.crv=t.algorithm.namedCurve),a},jwkToKey:function(t,n,r){for(var o=JSON.parse(JSON.stringify(t)),a=0;a<r.length;a+=1){var s=o[r[a]];s&&(o[r[a]]=e.fromBase64(s))}return o}}}();function x(){for(var e=24,t=Math.floor(3),n=0xffffff,r=0x1000000,o=0xffffff,a=5960464477539063e-23,s=[1,256],l=2;l<=t;l++)s[l]=256*s[l-1];var c=[0],u=[1];function d(e){var t,n=null;if(arguments.length&&"number"!=typeof arguments[0]){if("object"==typeof arguments[0])for(t=0,n=Array(e.length);t<e.length;t+=1)n[t]=e[t]}else for(t=0,n=Array(e);t<e;t+=1)n[t]=0;return n}function p(e,t){e=e.replace(/^\s+|\s+$/g,"");var n=[0],r=[0];t=t||10;for(var o=0;o<e.length;o+=1){var a=parseInt(e[o],t);if(isNaN(a))throw Error("Failed to convert string to integer in radix "+t.toString());T(n,t,r),P(r,[a],n),S(n)}return n}function f(e,t){if(r<=(t=t||10))throw Error("DIGIT_BASE is smaller than RADIX; cannot convert.");var n,o=e.length,a=[],s=[],l=[],c=[],u=[],d=[],p="",f="0";for(u[0]=t;Math.floor(r/u[0])>=t;)u[0]=u[0]*t,f=f.concat("0");for(n=0;n<o;n+=1)d[n]=e[n];for(;;){var h=!0;for(n=0;n<d.length;n+=1)if(0!==d[n]){h=!1;break}if(h)break;D(d,u,a,s,l,c),S(a,d.length,!0);var m=s[0].toString(t);p=f.substring(0,f.length-m.length)+m+p;var g=d;d=a,a=g}for(;0!==p.length&&"0"===p[0];)p=p.substring(1,p.length);return 0===p.length&&(p="0"),p}function h(t){for(var n=0,r=0;r<e;r++)n=Math.max(n,-(t>>>r&1)&r);return n}function m(t,n){var r,o=t.length,a=0,s=0,l=0,c=0,u=Array(Math.ceil(o*e/n));for(l=0,u[0]=0;a<o;a++)for(s=0,r=t[a];s<e;s++,r>>>=1)l===n&&(u[++c]=0,l=0),u[c]+=(1&r)<<l++;return u}function g(e,t,n,r,o){for(;o-- >0;)n[r+o]=e[t+o]}function v(e){var t,n=0;for(t=0;t<e.length;t+=1)n|=e[t];return!n}function y(e){var n=Math.floor((e.length+t-1)/t),o=Array(n);o[0]=0;for(var a=0,l=0,c=0,u=e.length-1;u>=0;u--)a+=s[c++]*(255&e[u]),s[c]===r&&(c=0,o[l++]=a,a=0);for(0!==a&&(o[l]=a);null==o[--n];)o[n]=0;return o}function b(e,n,r){var o,a,s,l=[0];for(void 0===n&&(n=!0),o=0;o<e.length;o+=1)for(a=0,s=e[o];a<t;a+=1)l[o*t+a]=255&s,s=Math.floor(s/256);if(l.reverse(),void 0===r&&(r=1),n)for(;l.length>r&&0===l[0];)l.shift();return l}function x(t,n){void 0===n&&(n=t<=1?1:Math.ceil(Math.log(t)/Math.LN2/e));for(var o=[];t>0;)o.push(t%r),t=Math.floor(t/r);for(;o.length<n;)o.push(0);return o}function k(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t]&&0!==e[t])return t;return 0===e[0]?-1:0}function w(e,t){var n,r,o=0;for(r=0;r<Math.max(e.length,t.length);r++)o=(n=~~e[r]-~~t[r])+(o&-!n);return o}function S(e,t,n){var r=k(e);if(e.length=t||r+1,n)for(;++r<e.length;)e[r]=0;return e.length<=0&&(e[0]=0,e.length=1),e}function _(t,r,o,a){if(void 0===o)o=1;else if(o>=e||o<0)throw Error("Invalid bit count for shiftRight");void 0===a&&(a=t.length);for(var s=a-1,l=e-o,c=0;c<s;c++)r[c]=(t[c+1]<<l|t[c]>>>o)&n;r[s]=t[s]>>>o}function E(t,r,o,a){if(void 0===o)o=1;else if(o>=e||o<0)throw Error("bit count must be smaller than DIGIT_BITS and positive in shiftLeft");void 0===a&&(a=t.length);var s=e-o;r[a]=t[a-1]>>>e-o||r[a];for(var l=a-1;l>0;l--)r[l]=(t[l]<<o|t[l-1]>>>s)&n;r[0]=t[0]<<o&n}function P(t,r,o){var a,s=t,l=r;r.length<t.length&&(s=r,l=t);var c=s.length,u=0;for(a=0;a<c;a+=1)u+=s[a]+l[a],o[a]=u&n,u>>=e;for(a=c;a<l.length;a+=1)u+=l[a],o[a]=u&n,u>>=e;return o.length=l.length,0!==u&&(o[a]=u&n),u}function I(t,r,o){var a=r.length;if(t.length<r.length&&(a=k(r)+1,t.length<a))throw Error("Subtrahend is longer than minuend, not supported.");var s,l=0;for(s=0;s<a;s+=1)l+=t[s]-r[s],o[s]=l&n,l>>=e;for(;s<t.length;)l+=t[s],o[s++]=l&n,l>>=e;return l}function T(e,t,r){t="number"==typeof t?[t]:t;var o,s,l,c,u,d,p,f,h=e.length,m=t.length;for(o=0;o<h+m;o+=1)r[o]=0;o=0,c=0;for(var g=31,v=0;o<m;){for(c=Math.min(c+g,m);o<c;o++)for(s=0,f=t[o];s<h;s++)r[o+s]+=e[s]*f;for(u=0,l=v;l<o+h;l++)p=(d=r[l]+u)&n,r[l]=p,u=(d-p)*a;r[l]=u,v+=g}return r.length=h+m,r}function D(t,o,a,s,l,c){var u,d,p,f,m,v,y,b=k(t)+1,x=k(o)+1;if(b<x){g(t,0,s,0,t.length),s.length=t.length,S(s),a[0]=0,a.length=1;return}if(0===x||1===x&&0===o[x-1])throw Error("Division by zero.");if(1===x){for(m=o[0],d=0,y=b-1;y>=0;y--)f=d*r+t[y],a[y]=f/m&n,d=f-a[y]*m&n;a.length=b,S(a),s[0]=d,s.length=1;return}var C=e-1-h(o[x-1]),w=l||[];w.length=x,E(o,w,C,x);var _=c||[];for(_.length=b,E(t,_,C,b),_[b]=_[b]||0,a.length=b-x+1,s.length=x,y=b-x;y>=0;y--){for(u=Math.floor((_[y+x]*r+_[y+x-1])/w[x-1]),d=_[y+x]*r+_[y+x-1]-u*w[x-1];(u>=r||u*w[x-2]>d*r+_[y+x-2])&&(u-=1,(d+=w[x-1])<r););for(v=0,p=0;v<x;v++)f=u*w[v],m=_[v+y]-p-(f&n),_[v+y]=m&n,p=Math.floor(f/r)-Math.floor(m/r);if(m=_[y+x]-p,_[y+x]=m&n,a[y]=u&n,m<0){for(v=0,a[y]=a[y]-1,p=0;v<x;v++)m=_[v+y]+w[v]+p,_[v+y]=m&n,p=m>>e;_[y+x]=_[y+x]+p&n}}for(v=0;v<x;v++)s[v]=(_[v]>>>C|_[v+1]<<e-C)&n;S(a),S(s)}function A(e,t,n,r,o){return D(e,t,[],n,r,o),n}function R(e,t,n,r,o,a){var s=[];return T(e,t,s),D(s,n,s,r,o,a),r}function N(e,t,n,r,o){if(v(e))return g(t,0,o,0,t.length),o.length=t.length,0;if(v(t))return g(e,0,o,0,e.length),o.length=e.length,0;0>w(e,t)?(a=e.slice(0),g(t,0,o,0,t.length),o.length=t.length):(a=t.slice(0),g(e,0,o,0,e.length),o.length=e.length),S(o),S(a);var a,s,l,c,u=Array(o.length),d=Array(o.length),p=Array(o.length),f=void 0!==r;f&&((s=Array(o.length))[0]=1,s.length=1,r[0]=0,r.length=1);var h=Array(o.length),m=void 0!==n;m&&((l=Array(o.length))[0]=0,l.length=1,n[0]=1,n.length=1);for(var y=-1,b=n,x=r,C=o;!v(a);)D(o,a,u,d,h,p),m&&(T(u,l,h),P(h,n,h),S(h),c=n,n=l,l=h,h=c),f&&(T(u,s,p),P(p,r,p),S(p),c=r,r=s,s=p,p=c),c=o,o=a,a=d,d=c,y++;return m&&(g(n,0,b,0,n.length),b.length=n.length),f&&(g(r,0,x,0,r.length),x.length=r.length),g(o,0,C,0,o.length),C.length=o.length,y}function B(e,t,n){var r=e,o=t;return w(e,t)>0&&(r=t,o=e),N(r,o,void 0,void 0,n),S(n)}function M(e,t,n,r){var o=Array(t.length),a=Array(t.length),s=Array(t.length),l=N(e,t,a,o,s);return n=n||[],0!==w(s,u)?(n[0]=NaN,n.length=1):((1&l)==1?I(t,o,n):(g(o,0,n,0,o.length),n.length=o.length),r?S(n,t.length,!0):S(n)),n}function F(e,t,n,r){var o=[];return n=n||[],I(t,[2],o),O(e,o,t,n),S(n),n}function O(e,t,n,r){if(r=r||[],0===w(t,c))r[0]=1;else if(0===w(t,u))g(e,0,r,0,e.length),r.length=e.length;else{var o=new L(n);S(e,o.s,!0),o.modExp(e,t,r),r.length=n.length}return r}function L(t,r){function o(t){for(var r=1,o=2,a=3,s=3&t,l=2;l<=e;l+=1)o<s&&(r+=o),o<<=1,s=t*r&(a=a<<1|1);return(~r&n)+1}function s(e,t,r,o){for(var s,l,c,u,p,f,m,g,v=(o=o||this).m,y=v.length,b=o.mPrime,x=o.m0,k=0,w=0,S=d(y+2);k<y;){for(w=Math.min(y,w+16);k<w;){for(s=~~t[k],c=((l=S[0]+e[0]*s)&n)*b&n,S[1]+=(x*c+l)*a|0,u=1,p=0;u<y;p=u,u+=1)S[p]=S[u]+v[u]*c+e[u]*s;S[p]=S[u],S[u]=0,k++}for(u=0,g=0;u<y;u++)m=(f=S[u]+g)&n,S[u]=m,g=(f-m)*a;S[u]=g}for(k=0;k<y;k+=1)r[k]=S[k];r.length=y;var _=+(C.compareDigits(S,v)>0);C.subtract(r,v,o.temp2),h(_,r,o.temp2)}function l(e){if(e.length<this.s){e.length=this.s;for(var t=0;t<this.s;t++)e[t]=isNaN(e[t])?0:e[t]}var n=d(e.length);for(this.montgomeryMultiply(e,this.rSquaredModm,n),t=0;t<this.s;t+=1)e[t]=n[t]}function c(e){this.montgomeryMultiply(e,this.one,this.temp1);for(var t=0;t<this.s;t+=1)e[t]=this.temp1[t]}function u(t){var n,r,o=2,a=t*e;r=4+3*Math.ceil(a/2)+1;do o++,n=r,r=Math.pow(2,o)+Math.ceil(a/o)*(o+1)+1;while(r<n);return o-1}function p(e,t,n,r){r=!!r;var o,a,s,l=u(t.length),c=m(t,l).reverse(),d=this.rModM.slice(0),p=Math.pow(2,l),h=M;for(a=1,h.length=p,h[0]=this.rModM;a<p;a++)h[a]=[],T(h[a-1],e,h[a]),this.reduce(h[a]);var g=[];for(a=0;a<c.length;a++){for(s=0;s<l;s++)this.montgomeryMultiply(d,d,d);o=c[a],r?g=h[o]:f(h,o,g),this.montgomeryMultiply(d,g,d)}return this.montgomeryMultiply(d,this.one,n),n}function f(e,t,n){var r,o,a,s,l;for(r=0;r<e[0].length;r++)n[r]=0;for(o=0;o<e.length;o++)for(l=0,s=e[o],a=-(t===o);l<s.length;l++)n[l]=n[l]|s[l]&a}function h(e,t,n){for(var r=-e,o=~r,a=0;a<t.length;a++)t[a]=t[a]&o|n[a]&r}function g(e,t){var n,r,o,a,s,l,c,u=this.m.length,d=[];for(t=t||e,n=e.slice(u-1),r=[],T(n,this.mu,r),o=r.slice(u+1),a=e.slice(0,u+1),T(o,y,s=[]),s=s.slice(0,u+1),a[u+1]=w(a,s)>>>31,l=0;l<t.length;l++)t[l]=0;I(a,s,t),c=+(w(t,y)>0),C.subtract(t,y,d),h(c,t,d),S(t)}function v(e){var t=e.length,n=e[0],r={m:e,mPrime:o(n),m0:n,temp1:d(2*t+1),temp2:d(2*t+1)},a=d(2*e.length);a[a.length]=1,r.mu=[],D(a,e,r.mu,[]);var l=d(2*t+1),c=d(t+1),u=d(2*t+1),p=d(2*t+1),f=c;f[t]=1,D(f,e,l,c,u,p),r.rModM=S(c,t,!0);var h=d(2*t+1),m=h;return m[2*t]=1,D(m,e,l,h,u,p),r.rSquaredModm=S(h,t,!0),r.rCubedModm=d(t),s(h,h,r.rCubedModm,r),r}var y=(r=r||v(t)).m,b=r.mu,x=r.m0,k=y.length,_=d(k+1).slice(0,k);_[0]=1;var E=r.mPrime,P=r.rModM,A=r.rSquaredModm,R=r.rCubedModm,N=d(2*k+1),B=d(2*k+1),M=[,,,,];return M[0]=P,M[1]=Array(k),M[2]=Array(k),M[3]=Array(k),{m:y,m0:x,mPrime:E,mu:b,rSquaredModm:A,s:k,rModM:P,rCubedModm:R,one:_,temp1:N,temp2:B,convertToMontgomeryForm:l,convertToStandardForm:c,montgomeryMultiply:s,modExp:p,reduce:g,ctx:r}}function H(t){var r=y(t),o=r.length,a=x(0,o),s=x(1,o),l=d(o),c=d(o),u=new L(r);function p(e,t){return{m_digits:e,m_group:t,equals:function(e){return 0===w(this.m_digits,e.m_digits)&&this.m_group.equals(this.m_group,e.m_group)}}}return{m_modulus:r,m_digitWidth:o,montmul:u,createElementFromInteger:function(e){return p(x(e,this.m_digitWidth),this)},createElementFromBytes:function(e){var t=y(e);if(C.compareDigits(t,this.m_modulus)>=0)throw Error("The number provided is not an element of this group");return S(t,this.m_digitWidth,!0),p(t,this)},createElementFromDigits:function(e){return C.normalizeDigitArray(e,this.m_digitWidth,!0),p(e,this)},equals:function(e){return 0===w(this.m_modulus,e.m_modulus)},add:function(t,r,o){var a,s=this.m_digitWidth,l=o.m_digits;C.add(t.m_digits,r.m_digits,l);var c=(w(l,this.m_modulus)>>>31)-1&n,u=0;for(a=0;a<s;a+=1)u=l[a]-(this.m_modulus[a]&c)+u,l[a]=u&n,u>>=e;l.length=s},subtract:function(t,r,o){var a,s=this.m_digitWidth,l=o.m_digits,c=C.subtract(t.m_digits,r.m_digits,o.m_digits);if(-1===c)for(a=0,c=0;a<s;a+=1)c+=l[a]+this.m_modulus[a],l[a]=c&n,c>>=e},multiply:function(e,t,n){return C.modMul(e.m_digits,t.m_digits,this.m_modulus,n.m_digits,l,c)},inverse:function(e,t){C.modInv(e.m_digits,this.m_modulus,t.m_digits)},modexp:function(e,t,n){if(n=n||p([],this),0===w(t,a))n.m_digits=x(1,this.m_digitWidth);else if(0===w(t,s)){for(var r=0;r<e.m_digits.length;r++)n.m_digits[r]=e.m_digits[r];n.m_digits.length=e.m_digits.length}else this.montmul.modExp(e.m_digits,t,n.m_digits),n.m_digits.length=this.montmul.s;return n}}}return{DIGIT_BITS:e,DIGIT_NUM_BYTES:t,DIGIT_MASK:n,DIGIT_BASE:r,DIGIT_MAX:o,Zero:c,One:u,normalizeDigitArray:S,bytesToDigits:y,stringToDigits:p,digitsToString:f,intToDigits:x,digitsToBytes:b,isZero:v,isEven:function(e){return(1&e[0])==0},shiftRight:_,shiftLeft:E,compareDigits:w,bitLength:function e(e){for(var t=0,n=0;t<e.length;){if(0===n)for(var r=7;r>=0&&0===n;){var o=1<<r;(e[t]&o)===o&&(n=r+1),r--}else n+=8;t+=1}return n},fixedWindowRecode:function e(e,t,n){e=e.slice();for(var r=[],o=Math.pow(2,t),a=Math.pow(2,t-1),s=0;s<n;s++)r[s]=e[0]%o-a,e[0]=e[0]-r[s],C.shiftRight(e,e,t-1);return r[s]=e[0],r},IntegerGroup:H,add:P,subtract:I,multiply:T,divRem:D,reduce:A,modInv:M,modInvCT:F,modExp:O,modMul:R,MontgomeryMultiplier:L,gcd:B,sequenceEqual:function(e,t){for(var n=e.length===t.length,r=0;r<Math.min(e.length,t.length);r+=1)e[r]!==t[r]&&(n=!1);return n},swapEndianness:function(e){return e.reverse()},computeBitArray:function e(e){for(var t=d(8*e.length),n=0,r=e.length-1;r>=0;){for(var o=0;o<8;){var a=1<<o,s=+((e[r]&a)===a),l=8*(e.length-r-1)+o;1===s&&(n=l+1),t[l]=s,o+=1}r--}return t.slice(0,n)}}}var C=C||x();function k(){var e=C.bytesToDigits;function t(e){var t,n=null;if(arguments.length&&"number"!=typeof arguments[0]){if("object"==typeof arguments[0])for(t=0,n=[];t<e.length;t+=1)n[t]=e[t]}else for(t=0,n=[];t<e;t+=1)n[t]=0;return n}var n=function(e,t,n,r,o,s){var l=e.length;return{p:e,a:t,b:n,order:r,generator:a(this,!1,o,s,null,!1),allocatePointStorage:function(){return a(this,!1,C.intToDigits(0,l),C.intToDigits(0,l))},createPointAtInfinity:function(){return a(this,!0,C.intToDigits(0,l),C.intToDigits(0,l))}}},r=function(t){var r=new n(e(t.p),e(t.a),e(t.b),e(t.order),e(t.gx),e(t.gy));return r.type=t.type,r.name=t.name,r.generator.curve=r,r},o=function(t){var r=new n(e(t.p),e(t.a),e(t.d),e(t.order),e(t.gx),e(t.gy));return r.type=t.type,1===r.type&&(r.d=r.b.slice(),delete r.b),r.rbits=t.info[2],r.name=t.name,r.generator.curve=r,r},a=function(e,n,r,o,s,l){var c;function u(e){return!!e&&(!!c.isInfinity&&!!e.isInfinity||(null!==c.z||null===e.z)&&(null===c.z||null!==e.z)&&(null===c.z?0===C.compareDigits(c.x,e.x)&&0===C.compareDigits(c.y,e.y)&&c.isInMontgomeryForm===e.isInMontgomeryForm:0===C.compareDigits(c.x,e.x)&&0===C.compareDigits(c.y,e.y)&&0===C.compareDigits(c.z,e.z)&&c.isInMontgomeryForm===e.isInMontgomeryForm))}function d(e,t){if(t.curve=e.curve,t.x=e.x.slice(),t.y=e.y.slice(),null!==e.z?t.z=e.z.slice():t.z=null,p||(t.isAffine=e.isAffine),t.isInMontgomeryForm=e.isInMontgomeryForm,t.isInfinity=e.isInfinity,!t.equals(e))throw Error("Instances should be equal.")}function f(){var e=a(c.curve,c.isInfinity,t(c.x),t(c.y),c.z?t(c.z):null,c.isInMontgomeryForm);return c.ta&&(e.ta=t(c.ta)),c.tb&&(e.tb=t(c.tb)),e}return void 0===s&&(s=null),void 0===l&&(l=!1),h(c={equals:function(e){return u(e)},copy:function(e){d(this,e)},clone:function(){return f()}},"curve",e,function(){return e},function(t){e=t}),h(c,"x",r,function(){return r},function(e){r=e}),h(c,"y",o,function(){return o},function(e){o=e}),h(c,"z",s,function(){return s},function(e){s=e}),h(c,"isInMontgomeryForm",l,function(){return l},function(e){l=e}),h(c,"isInfinity",n,function(){return n},function(e){n=e}),h(c,"isAffine",null===s,function(){return null===s}),c},s=function(e){var n=1===e.type,r=e.p.length,o=C.MontgomeryMultiplier(e.p),a=e.a.slice();o.convertToMontgomeryForm(a);var s=C.isZero(e.a),l=C.One,c=t(r);c[0]=1,o.convertToMontgomeryForm(c);var u=C.IntegerGroup(C.digitsToBytes(o.m),!0),d=t(r),f=t(r),h=t(r),m=t(r),g=t(r),v=t(r),y=t(r),b=t(r),x=t(r),k=t(r),w=t(r),S=t(r);function _(e,t,n){var r=u.createElementFromInteger(0);r.m_digits=n,u.subtract(u.createElementFromDigits(e),u.createElementFromDigits(t),r)}function E(e,t,n){var r=u.createElementFromInteger(0);r.m_digits=n,u.add(u.createElementFromDigits(e),u.createElementFromDigits(t),r)}function P(t,n){var r=t.length,o=e.p;if((1&t[0])==1){for(var a=0,s=0;s<r;s+=1)a+=t[s]+o[s],n[s]=a&C.DIGIT_MASK,a>>>=C.DIGIT_BITS;a<<=C.DIGIT_BITS-1,C.shiftRight(n,n),n[r-1]|=a}else C.shiftRight(t,n)}function I(e,t,n){o.montgomeryMultiply(e,t,n)}function T(e,t){o.montgomeryMultiply(e,e,t)}function D(e,t){if(e.isInfinity){t.isInfinity=!0;return}T(e.z,f),I(e.z,e.y,g),E(e.x,f,h),_(e.x,f,f),t.z=g.slice(),I(f,h,m),P(m,h),E(m,h,f),T(e.y,h),T(f,g),I(e.x,h,m),_(g,m,g),_(g,m,t.x),_(m,t.x,g),T(h,m),I(f,g,h),_(h,m,t.y),t.isInfinity=!1,t.isInMontgomeryForm=!0}function A(e,t){if(e.isInfinity){t.isInfinity=!0;return}T(e.y,m),T(e.x,g),E(g,g,d),E(d,g,g),I(e.x,m,v),T(m,d),P(g,f),T(f,m),I(e.y,e.z,x);for(var n=0;n<x.length;n+=1)t.z[n]=x[n];_(m,v,t.x),_(t.x,v,t.x),_(v,t.x,g),I(f,g,h),_(h,d,t.y),t.isInfinity=!1,t.isInMontgomeryForm=!0}function R(e,t){var n,r=t.clone();if(V(r),!W(r))throw Error("Invalid Parameter");var o=t.clone();j(o);var a=[t.clone()],s=o.clone(),l=o.clone();N(o,l),U(l);for(var c=1;c<Math.pow(2,e-2);c++)M(s,l,s),U(n=s.clone()),a[c]=n;return a}function N(e,t){if(void 0===e)throw Error("point undefined");if(void 0===t)throw Error("outputPoint undefined");if(e.isAffine)throw Error("Given point was in Affine form. Use convertToJacobian() first.");if(!e.isInMontgomeryForm)throw Error("Given point must be in Montgomery form. Use montgomeryize() first.");s?A(e,t):D(e,t)}function B(e,t,n){if(e.isInfinity){t.copy(n),this.convertToJacobianForm(n);return}if(t.isInfinity)return void e.copy(n);if(T(e.z,v),I(e.z,v,y),I(t.x,v,g),I(t.y,y,v),_(g,e.x,f),_(v,e.y,h),C.isZero(f))if(C.isZero(h)){N(e,n),M(n,t,n);return}else{n.x=e.x.slice(0),n.y=e.y.slice(0),n.z=e.z.slice(0);return}if(T(h,g),T(f,y),I(y,e.x,v),I(f,y,d),_(g,v,m),_(m,v,m),I(e.z,f,g),_(m,v,m),I(d,e.y,y),_(m,d,m),C.isZero(m)){for(i=0;i<n.x.length;i++)n.x[i]=0,n.y[i]=0,n.z[i]=0;n.y[0]=1;return}E(y,y,f),I(g,m,n.z),I(h,m,g),T(m,d),E(f,g,f),I(d,v,g),T(f,b),I(d,m,v),_(b,g,n.x),_(n.x,g,n.x),_(n.x,v,n.x),_(n.x,g,m),I(v,y,d),I(f,m,g),_(g,d,n.y),n.isInfinity=!1,n.isInMontgomeryForm=!0}function M(e,t,n){if(null===e)throw Error("jacobianPoint");if(null===t)throw Error("affinePoint");if(null===n)throw Error("outputPoint");if(e.curve!==t.curve||e.curve!==n.curve)throw Error("All points must be from the same curve object.");if(e.isAffine)throw Error("Given jacobianPoint was in Affine form. Use ConvertToJacobian()                     before calling DoubleJacobianAddAffinePoints().");if(!t.isAffine)throw Error("Given affinePoint was in Jacobian form. Use ConvertToAffine() before                      calling DoubleJacobianAddAffinePoints().");if(n.isAffine)throw Error("Given jacobianPoint was in Jacobian form. Use ConvertToJacobian() before                      calling DoubleJacobianAddAffinePoints().");if(!e.isInMontgomeryForm)throw Error("Jacobian point must be in Montgomery form");if(!t.isInMontgomeryForm)throw Error("Affine point must be in Montgomery form");if(e.isInfinity){t.copy(n),this.convertToJacobianForm(n);return}if(t.isInfinity)return void e.copy(n);for(T(e.z,f),I(f,e.z,h),I(f,t.x,m),I(h,t.y,g),_(m,e.x,f),_(g,e.y,h),o=0;o<f.length;o+=1)if(0!==f[o]){I(e.z,f,d);for(var o,a=0;a<r;a+=1)n.z[a]=d[a];T(f,m),I(m,f,g),I(m,e.x,v),E(v,v,f),T(h,n.x),_(n.x,f,n.x),_(n.x,g,n.x),_(v,n.x,m),I(h,m,v),I(e.y,g,y),_(v,y,n.y),n.isInfinity=!1,n.isInMontgomeryForm=!0;return}for(o=0;o<h.length;o+=1)if(0!==h[o]){n.isInfinity=!0,n.isInMontgomeryForm=!0;return}t.copy(n),this.convertToJacobianForm(n),this.double(n,n),n.isInMontgomeryForm=!0}function F(t,n,r,o){if(n.isInfinity||C.isZero(t)){r.isInfinity=!0;return}if(C.compareDigits(t,e.order)>=0)throw Error("The scalar k must be in the range 1 <= k < order.");if(t=t.slice(),1===n.curve.type){var a=void 0!==n.ta;a||K(n),X(t,n,r,o),a||Q(n)}else{var s=n.isInMontgomeryForm,l=r.isInMontgomeryForm,c=r.isAffine;s||z(n),l||z(r),O(t,n,r),c&&U(r),s||V(n),l||V(r)}}function O(e,t,n){var o=t.clone();if(V(o),!W(o))throw Error("Invalid Parameters.");var a=1&e[0],s=[];for(_(t.curve.order,e,s),h=0;h<e.length;h++)e[h]=a-1&(e[h]^s[h])^e[h];var l=r<=8?5:6,c=Math.ceil(t.curve.p.length*C.DIGIT_BITS/(l-1)),u=C.fixedWindowRecode(e,l,c),d=R(l,t),p=Math.floor(Math.abs(u[c])-1)/2,f=d[p].clone();j(f);for(var h=c-1;h>=0;h--){for(var m=0;m<l-2;m++)N(f,f);var g=L(d,p=Math.floor((Math.abs(u[h])-1)/2));_(g.curve.p,g.y,s);for(var v=-(u[h]>>>31),y=0;y<g.y.length;y++)g.y[y]=g.y[y]&~v|s[y]&v;B(f,g,f)}for(_(t.curve.p,f.y,s),h=0;h<f.y.length;h++)f.y[h]=a-1&(f.y[h]^s[h])^f.y[h];f.copy(n)}function L(e,t){for(var n,r,o=0;o<e.length;o++)n=+(o===t),r=[r,e[o].clone()][n];return r}function H(e,t){e!==t&&e.copy(t),_(e.curve.p,e.y,t.y)}function z(e){if(e.isInMontgomeryForm)throw Error("The given point is already in Montgomery form.");e.isInfinity||(o.convertToMontgomeryForm(e.x),o.convertToMontgomeryForm(e.y),null!==e.z&&o.convertToMontgomeryForm(e.z),void 0!==e.ta&&(o.convertToMontgomeryForm(e.ta),o.convertToMontgomeryForm(e.tb))),e.isInMontgomeryForm=!0}function V(e){if(!e.isInMontgomeryForm)throw Error("The given point is not in montgomery form.");e.isInfinity||(o.convertToStandardForm(e.x),o.convertToStandardForm(e.y),null!==e.z&&o.convertToStandardForm(e.z),void 0!==e.ta&&(o.convertToStandardForm(e.ta),o.convertToStandardForm(e.tb))),e.isInMontgomeryForm=!1}function U(t){if(t.isInfinity){t.z=null,p||(t.isAffine=!0);return}if(C.modInv(t.z,e.p,S,!0),t.isInMontgomeryForm){I(S,o.rCubedModm,w);var n=S;S=w,w=n}T(S,k),I(t.x,k,w);for(var a=0;a<r;a+=1)t.x[a]=w[a];I(t.y,k,w),I(w,S,t.y),t.z=null,delete t.ta,delete t.tb,p||(t.isAffine=!0)}function j(e){if(!e.isAffine)throw Error("The given point is not in Affine form.");p||(e.isAffine=!1);var n,r,o=e.isInMontgomeryForm?c:l;for(r=0,n=t(o.length);r<o.length;r+=1)n[r]=o[r];e.z=n}function W(e){return!e.isInfinity&&(C.modMul(e.y,e.y,e.curve.p,f),C.modMul(e.x,e.x,e.curve.p,h),C.modMul(e.x,h,e.curve.p,m),E(m,e.curve.b,h),C.modMul(e.x,e.curve.a,e.curve.p,m),E(h,m,h),_(f,h,f),!1!==C.isZero(f))}function q(e){return e.ta&&Q(e=e.clone()),C.modMul(e.y,e.y,e.curve.p,m),C.modMul(e.x,e.x,e.curve.p,h),C.add(h,m,f),C.reduce(g,e.curve.p,g),C.modMul(h,m,e.curve.p,g),C.modMul(e.curve.d,g,e.curve.p,m),C.add(m,[1],h),C.reduce(h,e.curve.p,h),C.subtract(f,h,f),(!1!==C.isZero(f)||(C.reduce(f,e.curve.p,f),!1!==C.isZero(f)))&&!0}function G(e,t){var n=t.clone(),r=n.clone(),o=[];o[0]=ee(t),J(n,n),r=ee(n),n=t.clone();for(var a=1;a<e;a++)et(r,n,n),o[a]=ee(n);return o}function K(e){e.ta=e.x.slice(),e.tb=e.y.slice(),e.z=[1]}function X(e,t,n,o){if(!q(t))throw Error("Invalid Parameter");var a=t.curve.rbits;o=void 0===o||o;var s=r<=8?5:6,l=Math.floor((a+(s-2))/(s-1));e=e.slice();var c=t.clone();K(c),o&&(J(c,c),J(c,c));var u,d,p=G(1<<s-2,c),f=1&e[0],h=[];for(_(t.curve.order,e,h),u=0;u<e.length;u++)e[u]=f-1&(e[u]^h[u])^e[u];var m=C.fixedWindowRecode(e,s,l),g=Math.floor(Math.abs(m[l])-1)/2,v=p[g];for(c.x=v.x.slice(),c.y=v.y.slice(),c.z=v.z.slice(),u=l-1;u>=0;u--){for(d=0;d<s-1;d++)J(c,c);var y=Y(p,g=Math.floor((Math.abs(m[u])-1)/2)),b=-(m[u]>>>31);_(t.curve.p,y.x,h);for(var x=0;x<y.x.length;x++)y.x[x]=y.x[x]&~b|h[x]&b;for(_(t.curve.p,y.td,h),x=0;x<y.td.length;x++)y.td[x]=y.td[x]&~b|h[x]&b;et(y,c,c)}for(_(t.curve.p,c.x,h),u=0;u<c.x.length;u++)c.x[u]=f-1&(c.x[u]^h[u])^c.x[u];Q(c),n.x=c.x.slice(),n.y=c.y.slice()}function Y(e,t){for(var n=(t+1)%e.length,r=0;r<e.length;r++){var o={x:e[n].x.slice(),y:e[n].y.slice(),z:e[n].z.slice(),td:e[n].td.slice()};n=(n+1)%e.length}return o}function Q(t){C.modInv(t.z,e.p,S,!0),C.modMul(t.x,S,e.p,t.x),C.modMul(t.y,S,e.p,t.y),delete t.ta,delete t.tb,t.z=null}function J(e,t){if(void 0===e.ta)throw Error("Point should be in Extended Projective form.");C.modMul(e.x,e.x,e.curve.p,d),C.modMul(e.y,e.y,e.curve.p,f),C.modMul(e.z,e.z,e.curve.p,e.ta),_(f,d,t.tb),E(d,f,d),E(e.ta,e.ta,e.ta),E(e.y,e.y,e.y),_(e.ta,d,f),C.modMul(e.x,e.y,e.curve.p,t.ta),C.modMul(d,t.tb,e.curve.p,t.y),C.modMul(f,t.ta,e.curve.p,t.x),C.modMul(d,f,e.curve.p,t.z)}function Z(e,t,n){if(void 0===e.ta)throw Error("Point1 should be in Extended Projective form.");if(void 0===t.ta)throw Error("Point2 should be in Extended Projective form.");et(ee(e),t,n)}function ee(e){var t=e.curve,n=t.p,r={x:e.x.slice(),y:e.y.slice(),z:e.z.slice(),td:[],curve:e.curve};return C.modMul(e.ta,e.tb,n,k),C.modMul(k,t.d,n,r.td),r}function et(e,t,n){var r=C,o=t.curve.p;f=[],h=[],m=[],r.modMul(t.z,e.z,o,m),r.modMul(t.ta,t.tb,o,f),E(t.x,t.y,t.ta),r.modMul(f,e.td,o,h),E(e.x,e.y,t.tb),_(m,h,f),E(m,h,m),r.modMul(t.ta,t.tb,o,h),r.modMul(t.x,e.x,o,t.z),r.modMul(t.y,e.y,o,t.x),_(h,t.z,h),_(t.x,t.z,n.ta),_(h,t.x,n.tb),r.modMul(n.ta,m,o,n.y),r.modMul(n.tb,f,o,n.x),r.modMul(m,f,o,n.z)}function en(e,t){var n=e.curve.a.slice(),r=e.curve.d.slice(),o=e.curve.p,a=C.modMul,s=C.modInv;a(n,f=[5],o,h),_(h,r,h),a(r,f,o,m),_(n,m,f),a(e.y,f,o,m),E(m,h,h),_(f=[1],e.y,m),a(f=[12],m,o,g),s(g,o,g,!0),a(e.x,m,o,f),E(f,f,m),E(m,m,m),s(m,o,m,!0),a(g,h,o,t.x),f=[1],E(e.y,f,f),_(n,r,h),a(f,h,o,g),a(g,m,o,t.y)}function er(e,t){var n=t.curve.a.slice(),r=t.curve.d.slice(),o=t.curve.p,a=C.modMul,s=C.modInv;E(e.x,e.x,f),E(e.x,f,f),E(f,f,f),_(f,n,h),_(h,r,h),E(e.y,e.y,m),E(e.y,m,m),E(m,m,m),s(m,o,m,!0),a(h,m,o,t.x),E(f,f,f),E(f,r,h),E(f,n,f),E(n,n,m),_(h,m,h),_(h,m,h),_(h,n,h),E(r,r,m),_(f,m,f),_(f,m,f),_(f,r,f),s(f,o,f,!0),a(f,h,o,t.y)}var eo={convertToMontgomeryForm:z,convertToStandardForm:V,convertToAffineForm:U,convertToJacobianForm:j,generatePrecomputationTable:function(e,t){return R(e,t)}};return n?(eo.double=J,eo.add=Z,eo.scalarMultiply=F,eo.normalize=Q,eo.convertToExtendedProjective=K,eo.convertTedToWeierstrass=en,eo.convertWeierstrassToTed=er,eo.validatePoint=q,eo.generatePrecomputationTable=function(e,t){return G(e,t)}):(eo.double=N,eo.mixedDoubleAdd=B,eo.mixedAdd=M,eo.scalarMultiply=F,eo.negate=H,eo.validatePoint=W),eo},l={},c=function(e){var t=l[e.toUpperCase()];if(!t)throw Error(e+" Unsupported curve.");if(0===t.type)return r(t);if(1===t.type)return o(t);throw Error(e+" Unsupported curve type.")},u=function(t,n,r,o){var l=c(t),u=new a(l,!1,e(n),e(r),o&&e(o),!1);return new s(l).validatePoint(u)};return{createCurve:c,curves:l,sec1EncodingFp:function(){return{encodePoint:function(e){if(!e)throw Error("point");if(!e.isAffine)throw Error("Point must be in affine form.");if(e.isInMontgomeryForm)throw Error("Point must not be in Montgomery form.");if(e.isInfinity)return t(1);var n=C.digitsToBytes(e.x),r=C.digitsToBytes(e.y),o=C.digitsToBytes(e.curve.p).length;if(o<n.length||o<r.length)throw Error("Point coordinate(s) are bigger than the field order.");var a=t(2*o+1);a[0]=4;for(var s=o-n.length,l=0;l<n.length;l++)a[l+1+s]=n[l];for(l=0,s=o-r.length;l<r.length;l++)a[o+l+1+s]=r[l];return a},decodePoint:function(e,n){if(e.length<1)throw Error("Byte array must have non-zero length");var r=C.digitsToBytes(n.p).length;if(0===e[0]&&1===e.length)return n.createPointAtInfinity();if(4===e[0]&&e.length===1+2*r){for(var o=t(r),s=t(r),l=0;l<r;l++)o[l]=e[l+1],s[l]=e[r+l+1];return a(n,!1,C.bytesToDigits(o),C.bytesToDigits(s))}throw Error("Unsupported encoding format")}}},validatePoint:u,EllipticCurvePointFp:a,EllipticCurveOperatorFp:s,ModularSquareRootSolver:function(e){var t=e,n=[];if(void 0===e)throw Error("modulus");if(C.isEven(e))throw Error("Only odd moduli are supported");var r=C.MontgomeryMultiplier(t);t[0]%4==3?(C.add(t,C.One,n),C.shiftRight(n,n,2)):n=null;var o=Array(t.length),a=Array(t.length);function s(e){var t=C.intToDigits(0,16);r.modExp(e,n,t);var o=[0];return(C.modMul(t,t,r.m,o),0!==C.compareDigits(e,o))?null:t}return{squareRoot:function(e){if(null!==n)return s(e);throw Error("GeneralCase not supported.")},jacobiSymbol:function(e){var n,r,s=7,l=3;n=e.slice(),r=t.slice(),C.reduce(n,r,n,o,a);for(var c=1;!C.isZero(n);){for(;C.isEven(n);){C.shiftRight(n,n);var u=r[0]&s;(3===u||5===u)&&(c=-c)}var d=n;n=r,r=d;var p=n[0]&l,f=r[0]&l;3===p&&3===f&&(c=-c),C.reduce(n,r,n,o,a)}return 0===C.compareDigits(r,C.One)?c:0}}}}}var w=w||k(),S={name:"P-256",type:0,p:[255,255,255,255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255],a:[255,255,255,255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,252],b:[90,198,53,216,170,58,147,231,179,235,189,85,118,152,134,188,101,29,6,176,204,83,176,246,59,206,60,62,39,210,96,75],order:[255,255,255,255,0,0,0,0,255,255,255,255,255,255,255,255,188,230,250,173,167,23,158,132,243,185,202,194,252,99,37,81],gx:[107,23,209,242,225,44,66,71,248,188,230,229,99,164,64,242,119,3,125,129,45,235,51,160,244,161,57,69,216,152,194,150],gy:[79,227,66,226,254,26,127,155,142,231,235,74,124,15,158,22,43,206,51,87,107,49,94,206,203,182,64,104,55,191,81,245],cf:1},_={name:"P-384",type:0,p:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255],a:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,252],b:[179,49,47,167,226,62,231,228,152,142,5,107,227,248,45,25,24,29,156,110,254,129,65,18,3,20,8,143,80,19,135,90,198,86,57,141,138,46,209,157,42,133,200,237,211,236,42,239],order:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,199,99,77,129,244,55,45,223,88,26,13,178,72,176,167,122,236,236,25,106,204,197,41,115],gx:[170,135,202,34,190,139,5,55,142,177,199,30,243,32,173,116,110,29,59,98,139,167,155,152,89,247,65,224,130,84,42,56,85,2,242,93,191,85,41,108,58,84,94,56,114,118,10,183],gy:[54,23,222,74,150,38,44,111,93,158,152,191,146,146,220,41,248,244,29,189,40,154,20,124,233,218,49,19,181,240,184,192,10,96,177,206,29,126,129,157,122,67,29,124,144,234,14,95],cf:1},E={name:"P-521",type:0,p:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255],a:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,252],b:[0,81,149,62,185,97,142,28,154,31,146,154,33,160,182,133,64,238,162,218,114,91,153,179,21,243,184,180,137,145,142,241,9,225,86,25,57,81,236,126,147,123,22,82,192,189,59,177,191,7,53,115,223,136,61,44,52,241,239,69,31,212,107,80,63,0],order:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,250,81,134,135,131,191,47,150,107,127,204,1,72,247,9,165,208,59,181,201,184,137,156,71,174,187,111,183,30,145,56,100,9],gx:[0,198,133,142,6,183,4,4,233,205,158,62,203,102,35,149,180,66,156,100,129,57,5,63,181,33,248,40,175,96,107,77,61,186,161,75,94,119,239,231,89,40,254,29,193,39,162,255,168,222,51,72,179,193,133,106,66,155,249,126,126,49,194,229,189,102],gy:[1,24,57,41,106,120,154,59,192,4,92,138,95,180,44,125,27,217,152,245,68,73,87,155,68,104,23,175,189,23,39,62,102,44,151,238,114,153,94,244,38,64,197,80,185,1,63,173,7,97,53,60,112,134,162,114,194,64,136,190,148,118,159,209,102,80],cf:1};void 0!==w&&(w.curves["P-256"]=S,w.curves["P-384"]=_,w.curves["P-521"]=E);var P={name:"BN-254",type:0,p:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,8,97,33,0,0,0,0,0,19,167,0,0,0,0,0,0,19],a:[0],b:[2],order:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,7,255,159,128,0,0,0,0,16,161,0,0,0,0,0,0,13],gx:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,8,97,33,0,0,0,0,0,19,167,0,0,0,0,0,0,18],gy:[1],cf:1};void 0!==w&&(w.curves["BN-254"]=P);var I={info:["numsp256d1",256,256,256],type:0,p:[67,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[64,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[129,85,2].reverse(),order:[37,168,81,71,41,32,171,32,96,92,38,234,117,130,60,228,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[177,172,26,178,30,238,82,188,58,199,212,3,9,155,87,131,9,203,66,79,160,149,122,41,97,219,170,90,182,214,158,188].reverse(),gy:[159,222,132,33,203,185,181,128,187,15,49,21,209,195,85,201,53,224,4,126,247,139,68,115,166,182,153,51,241,192,143,208].reverse(),cf:1},T={info:["numsp256t1",256,255,256],name:"numsp256t1",type:1,p:[67,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1],d:[85,195,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[245,74,221,238,144,177,71,26,155,67,89,47,165,90,149,65,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64].reverse(),gx:[218,19,237,46,144,192,222,160,134,53,8,227,14,138,57,12,214,155,32,105,95,61,30,205,125,35,234,106,251,20,117,138].reverse(),gy:[230,137,138,121,231,22,166,47,211,110,133,16,216,97,95,113,16,128,75,166,217,101,150,206,199,37,217,217,159,62,213,68].reverse(),cf:4},D={info:["numsp384d1",384,384,384],name:"numsp384d1",type:0,p:[195,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[192,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[187,119,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[185,97,14,123,246,129,77,96,122,226,55,76,61,157,218,190,129,104,93,235,30,175,30,214,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[42,21,152,32,4,186,156,235,123,196,97,15,16,237,46,82,66,199,108,42,27,41,189,243,244,249,129,251,205,193,37,2,166,241,5,65,34,202,128,72,28,24,111,177,240,86,121,117].reverse(),gy:[22,7,24,102,236,184,116,92,38,173,244,191,219,180,214,188,126,131,26,18,125,131,32,185,156,115,127,248,119,105,4,176,126,207,132,5,48,61,227,215,56,142,155,225,104,227,222,172].reverse(),cf:1},A={info:["numsp384t1",384,382,384],name:"numsp384t1",type:1,p:[195,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1],d:[159,209,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[125,137,163,230,196,220,185,32,121,200,53,171,90,85,228,97,207,225,107,180,28,26,71,226,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63].reverse(),gx:[222,107,32,108,228,64,213,80,19,148,69,101,177,146,242,111,64,99,49,243,168,255,99,87,0,76,190,229,70,244,11,179,181,93,229,154,18,162,182,192,108,38,169,69,251,17,177,97].reverse(),gy:[146,147,114,240,225,3,141,157,220,72,236,70,249,176,114,0,75,150,69,246,247,152,15,131,86,95,66,241,116,130,173,22,215,13,177,35,164,177,56,135,176,238,166,185,103,62,152,130].reverse(),cf:4},R={info:["numsp512d1",512,512,512],name:"numsp512d1",type:0,p:[199,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[196,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[155,217,1].reverse(),order:[93,85,51,4,57,63,21,206,67,210,124,96,54,139,86,59,198,189,208,151,237,88,194,79,27,131,231,148,251,164,60,91,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[87,174,171,140,149,135,130,220,226,93,111,125,19,96,93,29,131,21,86,37,134,66,121,147,158,53,107,7,81,161,33,80,249,217,6,83,194,224,6,69,133,246,1,181,59,216,202,152,82,59,61,160,2,112,43,218,147,10,29,20,71,52,192,58].reverse(),gy:[166,39,53,56,96,135,160,35,233,15,253,76,30,92,43,207,2,86,90,178,64,168,33,193,233,237,14,139,218,21,132,162,20,79,209,123,12,38,75,143,140,187,188,171,222,219,151,75,0,177,235,99,220,238,14,206,179,86,173,41,202,84,58,148].reverse(),cf:4},N={info:["numsp512t1",512,510,512],name:"numsp512t1",type:1,p:[199,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1].reverse(),d:[239,203,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[109,212,238,27,245,140,70,103,255,236,239,109,120,5,70,42,245,134,182,112,201,216,63,158,186,145,207,47,109,99,240,180,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63].reverse(),gx:[254,87,236,153,41,171,185,197,21,240,196,124,66,37,229,15,173,4,137,86,146,201,189,120,15,115,70,238,78,193,33,70,71,129,59,39,190,126,161,39,130,163,196,77,159,231,209,47,51,197,211,136,120,203,24,122,156,182,141,18,109,49,142,223].reverse(),gy:[225,245,226,193,192,222,109,50,31,208,241,155,138,211,102,2,253,193,236,42,134,6,26,96,98,53,150,233,242,83,202,32,65,131,158,144,149,107,43,169,34,157,37,216,38,247,118,228,110,37,42,168,119,245,176,152,113,202,73,157,243,191,9,109].reverse(),cf:4};void 0!==w&&(w.curves.NUMSP256D1=I,w.curves.NUMSP384D1=D,w.curves.NUMSP512D1=R,w.curves.NUMSP256T1=T,w.curves.NUMSP384T1=A,w.curves.NUMSP512T1=N);var B=function(e,t,n,r,o,a,s){var l=g,c=n.slice(),u=Array(o),d=[],p=0;function f(e){for(var t=Math.floor(e.length/o),n=0;n<t;n++)a(e,n,c,r,u);return p+=t,e.slice(t*o)}function h(){for(var e=[],t=0;t<c.length;t++)e=e.concat(l.int32ToBytes(c[t]));return e.length=s/8,e}function m(e){var t=o-e.length%o;t<=o/8&&(t+=o);var n=l.getVector(t);n[0]=128;for(var r=(e.length+p*o)*8,a=1;a<=8;a++)n[t-a]=r%256,r=Math.floor(r/256);return e.concat(n)}function v(){if(0!==f(m(d)).length)throw Error("buffer.length !== 0");var e=h();return d=[],c=n.slice(),p=0,e}return{name:e,computeHash:function(e){return d=f(e),v()},process:function(e){(d=d.concat(e)).length>=o&&(d=f(d))},finish:v,der:t,hashLen:s,maxMessageSize:0xffffffff}},M=function(){function e(e,n,r,o,a){var s,l,c,u,d=64,p=0xffffffff,f=r[0],h=r[1],m=r[2],g=r[3],v=r[4];for(l=0;l<16;l++)a[l]=t.bytesToInt32(e,n*d+4*l);for(s=16;s<80;s++)u=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=u<<1|u>>>31;for(l=0;l<80;l++)c=(f<<5|f>>>27)+(l>=60?h^m^g:l>=40?h&m^h&g^m&g:l>=20?h^m^g:h&m^~h&g)+(v+o[l]+a[l]),v=g,g=m,m=h<<30|h>>>2,h=f,f=c;return r[0]+=f&p,r[1]+=h&p,r[2]+=m&p,r[3]+=g&p,r[4]+=v&p,r}var t=g,n=t.unpackData,r=n("Z0UjAe/Nq4mYutz+EDJUdsPS4fA=",4,1),o=n("WoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroY8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdY",4,1),a=n("MCEwCQYFKw4DAhoFAAQU");return{sha1:function(){return B("SHA-1",a,r,o,64,e,160)}}}();void 0!==o&&(M.instances={},M.getInstance=function(e){return M.instances[e]||(M.instances[e]=M.sha1())},M.deleteInstance=function(e){M.instances[e]=null,delete M.instances[e]},M.hash=function(e){return"process"===e.operationSubType?void M.sha1.process(e.buffer):"finish"===e.operationSubType?M.sha1.finish():M.sha1().computeHash(e.buffer)},o.register("digest","SHA-1",M.hash)),m["SHA-1"]=M.sha1;var F=function(){var e=g;function t(t,n,r,o,a){var s,l,c,u,d,p=64,f=0xffffffff,h=r[0],m=r[1],g=r[2],v=r[3],y=r[4],b=r[5],x=r[6],C=r[7];for(l=0;l<16;l++)a[l]=e.bytesToInt32(t,n*p+4*l);for(s=16;s<64;s++)u=a[s-15],d=a[s-2],a[s]=((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+a[s-7]+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3)+a[s-16],a[s]=a[s]&f;for(l=0;l<64;l++)v+=c=C+((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&b^~y&x)+o[l]+a[l],c+=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&(m^g)^m&g),C=x,x=b,b=y,y=v,v=g,g=m,m=h,h=c;return r[0]=r[0]+h>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+v>>>0,r[4]=r[4]+y>>>0,r[5]=r[5]+b>>>0,r[6]=r[6]+x>>>0,r[7]=r[7]+C>>>0,r}var n,r,o,a,s,l=e.unpackData;return r=l("wQWe2DZ81QcwcN0X9w5ZOf/ACzFoWBURZPmPp776T6Q",4,1),o=l("agnmZ7tnroU8bvNypU/1OlEOUn+bBWiMH4PZq1vgzRk",4,1),n=l("QoovmHE3RJG1wPvP6bXbpTlWwltZ8RHxkj+CpKscXtXYB6qYEoNbASQxhb5VDH3Dcr5ddIDesf6b3AanwZvxdOSbacHvvkeGD8GdxiQMocwt6SxvSnSEqlywqdx2+YjamD5RUqgxxm2wAyfIv1l/x8bgC/PVp5FHBspjURQpKWcntwqFLhshOE0sbfxTOA0TZQpzVHZqCruBwskuknIshaK/6KGoGmZLwkuLcMdsUaPRkugZ1pkGJPQONYUQaqBwGaTBFh43bAgnSHdMNLC8tTkcDLNO2KpKW5zKT2gub/N0j4LueKVjb4TIeBSMxwIIkL7/+qRQbOu++aP3xnF48g",4,1),a=l("MC0wDQYJYIZIAWUDBAIEBQAEHA"),s=l("MDEwDQYJYIZIAWUDBAIBBQAEIA"),{sha224:function(){return B("SHA-224",a,r,n,64,t,224)},sha256:function(){return B("SHA-256",s,o,n,64,t,256)}}}();void 0!==o&&(F.instance224=F.instance224||F.sha224(),F.instance256=F.instance256||F.sha256(),F.instances={},F.getInstance224=function(e){return F.instances[e]||(F.instances[e]=F.sha224())},F.getInstance256=function(e){return F.instances[e]||(F.instances[e]=F.sha256())},F.deleteInstance=function(e){F.instances[e]=null,delete F.instances[e]},F.hash256=function(e){if("process"===e.operationSubType)return F.getInstance256(e.workerid).process(e.buffer),null;if("finish"===e.operationSubType){var t=F.getInstance256(e.workerid).finish();return F.deleteInstance(e.workerid),t}return"abort"===e.operationSubType?void F.deleteInstance(e.workerid):F.instance256.computeHash(e.buffer)},F.hash224=function(e){return"process"===e.operationSubType?void F.getInstance224(e.workerid).process(e.buffer):("finish"===e.operationSubType&&F.getInstance224(e.workerid).finish(),"abort"===e.operationSubType)?void msrcryptoSha224.deleteInstance(e.workerid):F.instance224.computeHash(e.buffer)},o.register("digest","SHA-224",F.hash224),o.register("digest","SHA-256",F.hash256)),m["SHA-224"]=F.sha224,m["SHA-256"]=F.sha256;var O=function(){function e(e,t,n,r,o){var a=t+r|0,s=a>>>0<r>>>0;o[0]=e+n+s|0,o[1]=a}function t(t,n,r,o,a){var s,l,c,u,d,p,f,h,m,g=128,v=[],y=[],b=[],x=r[0],C=r[1],k=r[2],w=r[3],S=r[4],_=r[5],E=r[6],P=r[7],I=r[8],T=r[9],D=r[10],A=r[11],R=r[12],N=r[13],B=r[14],M=r[15];for(s=0;s<32;s++)m=n*g+4*s,a[s]=t.slice(m,m+4),a[s]=a[s][0]<<24|a[s][1]<<16|a[s][2]<<8|a[s][3];for(s=32;s<160;s+=2)c=((f=a[s-30])>>>1|(h=a[s-29])<<31)^(f>>>8|h<<24)^f>>>7,u=(h>>>1|f<<31)^(h>>>8|f<<24)^(h>>>7|f<<25),e(d=((f=a[s-4])>>>19|(h=a[s-3])<<13)^(h>>>29|f<<3)^f>>>6,p=(h>>>19|f<<13)^(f>>>29|h<<3)^(h>>>6|f<<26),a[s-14],a[s-13],v),e(c,u,v[0],v[1],v),e(a[s-32],a[s-31],v[0],v[1],v),a[s]=v[0],a[s+1]=v[1];for(l=0;l<160;l+=2)c=(I>>>14|T<<18)^(I>>>18|T<<14)^(T>>>9|I<<23),u=(T>>>14|I<<18)^(T>>>18|I<<14)^(I>>>9|T<<23),d=I&D^R&~I,p=T&A^N&~T,e(B,M,c,u,v),e(d,p,o[l],o[l+1],y),e(v[0],v[1],a[l],a[l+1],b),e(y[0],y[1],b[0],b[1],b),e(b[0],b[1],E,P,v),E=v[0],P=v[1],u=(C>>>28|x<<4)^(x>>>2|C<<30)^(x>>>7|C<<25),c=(x>>>28|C<<4)^(C>>>2|x<<30)^(C>>>7|x<<25),p=C&(w^_)^w&_,d=x&(k^S)^k&S,e(b[0],b[1],c,u,v),e(d,p,c=v[0],u=v[1],v),c=v[0],u=v[1],B=R,M=N,R=D,N=A,D=I,A=T,I=E,T=P,E=S,P=_,S=k,_=w,k=x,w=C,x=c,C=u;return e(r[0],r[1],x,C,v),r[0]=v[0],r[1]=v[1],e(r[2],r[3],k,w,v),r[2]=v[0],r[3]=v[1],e(r[4],r[5],S,_,v),r[4]=v[0],r[5]=v[1],e(r[6],r[7],E,P,v),r[6]=v[0],r[7]=v[1],e(r[8],r[9],I,T,v),r[8]=v[0],r[9]=v[1],e(r[10],r[11],D,A,v),r[10]=v[0],r[11]=v[1],e(r[12],r[13],R,N,v),r[12]=v[0],r[13]=v[1],e(r[14],r[15],B,M,v),r[14]=v[0],r[15]=v[1],r}var n,r,o,a,s,l,c,u=g.unpackData;return n=u("y7udXcEFnthimikqNnzVB5FZAVowcN0XFS/s2PcOWTlnMyZn/8ALMY60SodoWBUR2wwuDWT5j6dHtUgdvvpPpA==",4,1),r=u("agnmZ/O8yQi7Z66FhMqnOzxu83L+lPgrpU/1Ol8dNvFRDlJ/reaC0ZsFaIwrPmwfH4PZq/tBvWtb4M0ZE34heQ",4,1),o=u("QoovmNcoriJxN0SRI+9lzbXA+8/sTTsv6bXbpYGJ27w5VsJb80i1OFnxEfG2BdAZkj+CpK8ZT5urHF7V2m2BGNgHqpijAwJCEoNbAUVwb74kMYW+TuSyjFUMfcPV/7Ticr5ddPJ7iW+A3rH+OxaWsZvcBqclxxI1wZvxdM9pJpTkm2nBnvFK0u++R4Y4TyXjD8GdxouM1bUkDKHMd6ycZS3pLG9ZKwJ1SnSEqm6m5INcsKncvUH71Hb5iNqDEVO1mD5RUu5m36uoMcZtLbQyELADJ8iY+yE/v1l/x77vDuTG4AvzPaiPwtWnkUeTCqclBspjUeADgm8UKSlnCg5ucCe3CoVG0i/8LhshOFwmySZNLG38WsQq7VM4DROdlbPfZQpzVIuvY952agq7PHeyqIHCyS5H7a7mknIshRSCNTuiv+ihTPEDZKgaZku8QjABwkuLcND4l5HHbFGjBlS+MNGS6BnW71IY1pkGJFVlqRD0DjWFV3EgKhBqoHAyu9G4GaTBFrjS0MgeN2wIUUGrUydId0zfjuuZNLC8teGbSKg5HAyzxclaY07YqkrjQYrLW5zKT3dj43NoLm/z1rK4o3SPgu5d77L8eKVjb0MXL2CEyHgUofCrcozHAggaZDnskL7/+iNjHiikUGzr3oK96b75o/eyxnkVxnF48uNyUyvKJz7O6iZhnNGGuMchwMIH6tp91s3g6x71fU9/7m7ReAbwZ6pyF2+6CmN9xaLImKYRP5gEvvkNrhtxCzUTHEcbKNt39SMEfYQyyqt7QMckkzyevgoVyb68Qx1nxJwQDUxMxdS+yz5Ctll/KZz8ZX4qX8tvqzrW+uxsRBmMSkdYFw==",4,1),a=u("MEEwDQYJYIZIAWUDBAICBQAEMA"),s=u("MFEwDQYJYIZIAWUDBAIDBQAEQA"),l=u("MC0wDQYJYIZIAWUDBAIFBQAEHA"),c=u("MDEwDQYJYIZIAWUDBAIGBQAEIA"),{sha384:function(){return B("SHA-384",a,n,o,128,t,384)},sha512:function(){return B("SHA-512",s,r,o,128,t,512)},sha512_224:function(){return B("SHA-512.224",l,r,o,128,t,224)},sha512_256:function(){return B("SHA-512.256",c,r,o,128,t,256)}}}();void 0!==o&&(O.instances={},O.getInstance384=function(e){return O.instances[e]||(O.instances[e]=O.sha384())},O.getInstance512=function(e){return O.instances[e]||(O.instances[e]=O.sha512())},O.deleteInstance=function(e){O.instances[e]=null,delete O.instances[e]},O.hash384=function(e){return"process"===e.operationSubType?void O.sha384.process(e.buffer):"finish"===e.operationSubType?O.sha384.finish():O.sha384().computeHash(e.buffer)},O.hash512=function(e){return"process"===e.operationSubType?void O.sha512.process(e.buffer):"finish"===e.operationSubType?O.sha512.finish():O.sha512().computeHash(e.buffer)},o.register("digest","SHA-384",O.hash384),o.register("digest","SHA-512",O.hash512)),m["SHA-384"]=O.sha384,m["SHA-512"]=O.sha512;var L=function(e,t){var n,r,o,a,s,l={384:128,512:128}[t.name.replace(/SHA-/,"")]||64,c=p();function u(e,t){for(var n=Array(e),r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function d(e,t){for(var n=e.slice(),r=e.length;r<t;r++)n.push(0);return n}function p(){return e.length===l?e:e.length>l?d(t.computeHash(e),l):d(e,l)}function f(e){s?t.process(e):(s=a.concat(e),t.process(s))}function h(){var e=t.finish(),n=o.concat(e);return t.computeHash(n)}function m(){e=null,t=null,c=null}n=Array(l),r=Array(l);for(var g=0;g<l;g++)n[g]=54,r[g]=92;return a=u(c,n),o=u(c,r),{computeHmac:function(e,t,n){f(e);var r=h();return m(),r},process:function(e,t,n){return f(e),null},finish:function(e,t){var n=h();return m(),n}}};if(void 0!==o){var H={};L.signHmac=function(e){var t,n=m[e.keyHandle.algorithm.hash.name.toUpperCase()](),r=e.workerid;return(H[r]||(H[r]=L(e.keyData,n)),"process"===e.operationSubType)?(H[r].process(e.buffer),null):("finish"===e.operationSubType?t=H[r].finish():t=H[r].computeHmac(e.buffer),H[r]=null,t)},L.verifyHmac=function(e){var t,n=m[e.keyHandle.algorithm.hash.name.toUpperCase()](),r=e.workerid;return(H[r]||(H[r]=L(e.keyData,n)),"process"===e.operationSubType)?(H[r].process(e.buffer),null):("finish"===e.operationSubType?t=H[r].finish():t=H[r].computeHmac(e.buffer),t=g.arraysEqual(t,e.signature),H[r]=null,t)},L.generateKey=function(e){var t={"SHA-1":64,"SHA-224":64,"SHA-256":64,"SHA-384":128,"SHA-512":128},n=e.algorithm.length;return n||(n=t[e.algorithm.hash.name.toUpperCase()]),{type:"keyGeneration",keyData:Y.getBytes(n),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},L.importKey=function(e){var t;if(e.keyData.length,"jwk"===e.format)(t=b.jwkToKey(e.keyData,e.algorithm,["k"])).alg=t.alg.replace("HS","SHA-");else if("raw"===e.format)t={k:g.toArray(e.keyData)};else throw Error("unsupported import format");return{type:"keyImport",keyData:t.k,keyHandle:{algorithm:{name:"HMAC",hash:{name:e.algorithm.hash.name}},extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"}}},L.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw Error("unsupported export format")},o.register("importKey","HMAC",L.importKey),o.register("exportKey","HMAC",L.exportKey),o.register("generateKey","HMAC",L.generateKey),o.register("sign","HMAC",L.signHmac),o.register("verify","HMAC",L.verifyHmac)}var z=function(){var e,t,n,r,o,a,s,l,c,u;return{aes:function(d){e||(t=(e=g.unpackData("AAIEBggKDA4QEhQWGBocHiAiJCYoKiwuMDI0Njg6PD5AQkRGSEpMTlBSVFZYWlxeYGJkZmhqbG5wcnR2eHp8foCChIaIioyOkJKUlpianJ6goqSmqKqsrrCytLa4ury+wMLExsjKzM7Q0tTW2Nrc3uDi5Obo6uzu8PL09vj6/P4bGR8dExEXFQsJDw0DAQcFOzk/PTMxNzUrKS8tIyEnJVtZX11TUVdVS0lPTUNBR0V7eX99c3F3dWtpb21jYWdlm5mfnZORl5WLiY+Ng4GHhbu5v72zsbe1q6mvraOhp6Xb2d/d09HX1cvJz83DwcfF+/n//fPx9/Xr6e/t4+Hn5QADBgUMDwoJGBseHRQXEhEwMzY1PD86OSgrLi0kJyIhYGNmZWxvaml4e359dHdycVBTVlVcX1pZSEtOTURHQkHAw8bFzM/Kydjb3t3U19LR8PP29fz/+vno6+7t5Ofi4aCjpqWsr6qpuLu+vbS3srGQk5aVnJ+amYiLjo2Eh4KBm5idnpeUkZKDgIWGj4yJiquora6npKGis7C1tr+8ubr7+P3+9/Tx8uPg5ebv7Onqy8jNzsfEwcLT0NXW39zZ2ltYXV5XVFFSQ0BFRk9MSUpraG1uZ2RhYnNwdXZ/fHl6Ozg9Pjc0MTIjICUmLywpKgsIDQ4HBAECExAVFh8cGRoADhwSODYkKnB+bGJIRlRa4O788tjWxMqQnoyCqKa0utvVx8nj7f/xq6W3uZOdj4E7NScpAw0fEUtFV1lzfW9hraOxv5WbiYfd08HP5ev5901DUV91e2lnPTMhLwULGRd2eGpkTkBSXAYIGhQ+MCIslpiKhK6gsrzm6Pr03tDCzEFPXVN5d2VrMT8tIwkHFRuhr72zmZeFi9HfzcPp5/X7mpSGiKKsvrDq5Pb40tzOwHp0ZmhCTF5QCgQWGDI8LiDs4vD+1NrIxpySgI6kqri2DAIQHjQ6KCZ8cmBuREpYVjc5KyUPARMdR0lbVX9xY23X2cvF7+Hz/aepu7WfkYONAA0aFzQ5LiNoZXJ/XFFGS9Ddysfk6f7zuLWir4yBlpu7tqGsj4KVmNPeycTn6v3wa2ZxfF9SRUgDDhkUNzotIG1gd3pZVENOBQgfEjE8Kya9sKeqiYSTntXYz8Lh7Pv21tvMweLv+PW+s6SpioeQnQYLHBEyPyglbmN0eVpXQE3a18DN7uP0+bK/qKWGi5yRCgcQHT4zJClib3h1VltMQWFse3ZVWE9CCQQTHj0wJyqxvKumhYifktnUw87t4Pf6t7qtoIOOmZTf0sXI6+bx/GdqfXBTXklEDwIVGDs2ISwMARYbODUiL2RpfnNQXUpH3NHGy+jl8v+0ua6jgI2alwALFh0sJzoxWFNORXR/Ymmwu6atnJeKgejj/vXEz9LZe3BtZldcQUojKDU+DwQZEsvA3dbn7PH6k5iFjr+0qaL2/eDr2tHMx66luLOCiZSfRk1QW2phfHceFQgDMjkkL42Gm5Chqre81d7DyPny7+Q9NisgERoHDGVuc3hJQl9U9/zh6tvQzcavpLmyg4iVnkdMUVprYH12HxQJAjM4JS6Mh5qRoKu2vdTfwsn48+7lPDcqIRAbBg1kb3J5SENeVQEKFxwtJjswWVJPRHV+Y2ixuqesnZaLgOni//TFztPYenFsZ1ZdQEsiKTQ/DgUYE8rB3Nfm7fD7kpmEj761qKMACRIbJC02P0hBWlNsZX53kJmCi7S9pq/Y0crD/PXu5zsyKSAfFg0Ec3phaFdeRUyrormwj4adlOPq8fjHztXcdn9kbVJbQEk+NywlGhMIAebv9P3Cy9DZrqe8tYqDmJFNRF9WaWB7cgUMFx4hKDM63dTPxvnw6+KVnIeOsbijquzl/vfIwdrTpK22v4CJkpt8dW5nWFFKQzQ9Ji8QGQIL197FzPP64eiflo2Eu7KpoEdOVVxjanF4DwYdFCsiOTCak4iBvrespdLbwMn2/+TtCgMYES4nPDVCS1BZZm90faGos7qFjJee6eD78s3E39YxOCMqFRwHDnlwa2JdVE9GY3x3e/Jrb8UwAWcr/terdsqCyX36WUfwrdSir5ykcsC3/ZMmNj/3zDSl5fFx2DEVBMcjwxiWBZoHEoDi6yeydQmDLBobblqgUjvWsynjL4RT0QDtIPyxW2rLvjlKTFjP0O+q+0NNM4VF+QJ/UDyfqFGjQI+SnTj1vLbaIRD/89LNDBPsX5dEF8Snfj1kXRlzYIFP3CIqkIhG7rgU3l4L2+AyOgpJBiRcwtOsYpGV5HnnyDdtjdVOqWxW9Opleq4IunglLhymtMbo3XQfS72LinA+tWZIA/YOYTVXuYbBHZ7h+JgRadmOlJseh+nOVSjfjKGJDb/mQmhBmS0PsFS7FlIJatUwNqU4v0CjnoHz1/t84zmCmy//hzSOQ0TE3unLVHuUMqbCIz3uTJULQvrDTgguoWYo2SSydluiSW2L0SVy+PZkhmiYFtSkXMxdZbaSbHBIUP3tudpeFUZXp42dhJDYqwCMvNMK9+RYBbizRQbQLB6Pyj8PAsGvvQMBE4prOpERQU9n3OqX8s/O8LTmc5asdCLnrTWF4vk36Bx1325H8RpxHSnFiW+3Yg6qGL4b/FY+S8bSeSCa28D+eM1a9B/dqDOIB8cxsRIQWSeA7F9gUX+pGbVKDS3lep+TyZzvoOA7Ta4q9bDI67s8g1OZYRcrBH66d9Ym4WkUY1UhDH2NAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuN",256,!1))[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8]);var p,f,h,m,v=128,y=4;switch(p=8*d.length){case 128:case 192:case 256:break;default:throw Error("Unsupported keyLength")}h=(f=p/32)+6;var b=function(e){var t=e[1];e[1]=e[5],e[5]=e[9],e[9]=e[13],e[13]=t,t=e[2],e[2]=e[10],e[10]=t,t=e[6],e[6]=e[14],e[14]=t,t=e[15],e[15]=e[11],e[11]=e[7],e[7]=e[3],e[3]=t},x=function(e){var t=e[13];e[13]=e[9],e[9]=e[5],e[5]=e[1],e[1]=t,t=e[10],e[10]=e[2],e[2]=t,t=e[14],e[14]=e[6],e[6]=t,t=e[3],e[3]=e[7],e[7]=e[11],e[11]=e[15],e[15]=t},C=function(e){var r=e[0],o=e[1],a=e[2],s=e[3],l=e[4],c=e[5],u=e[6],d=e[7],p=e[8],f=e[9],h=e[10],m=e[11],g=e[12],v=e[13],y=e[14],b=e[15];e[0]=t[r]^n[o]^a^s,e[1]=r^t[o]^n[a]^s,e[2]=r^o^t[a]^n[s],e[3]=n[r]^o^a^t[s],e[4]=t[l]^n[c]^u^d,e[5]=l^t[c]^n[u]^d,e[6]=l^c^t[u]^n[d],e[7]=n[l]^c^u^t[d],e[8]=t[p]^n[f]^h^m,e[9]=p^t[f]^n[h]^m,e[10]=p^f^t[h]^n[m],e[11]=n[p]^f^h^t[m],e[12]=t[g]^n[v]^y^b,e[13]=g^t[v]^n[y]^b,e[14]=g^v^t[y]^n[b],e[15]=n[g]^v^y^t[b]},k=function(e){var t=e[0],n=e[1],l=e[2],c=e[3],u=e[4],d=e[5],p=e[6],f=e[7],h=e[8],m=e[9],g=e[10],v=e[11],y=e[12],b=e[13],x=e[14],C=e[15];e[0]=r[t]^a[n]^o[l]^s[c],e[1]=s[t]^r[n]^a[l]^o[c],e[2]=o[t]^s[n]^r[l]^a[c],e[3]=a[t]^o[n]^s[l]^r[c],e[4]=r[u]^a[d]^o[p]^s[f],e[5]=s[u]^r[d]^a[p]^o[f],e[6]=o[u]^s[d]^r[p]^a[f],e[7]=a[u]^o[d]^s[p]^r[f],e[8]=r[h]^a[m]^o[g]^s[v],e[9]=s[h]^r[m]^a[g]^o[v],e[10]=o[h]^s[m]^r[g]^a[v],e[11]=a[h]^o[m]^s[g]^r[v],e[12]=r[y]^a[b]^o[x]^s[C],e[13]=s[y]^r[b]^a[x]^o[C],e[14]=o[y]^s[b]^r[x]^a[C],e[15]=a[y]^o[b]^s[x]^r[C]},w=function(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]},S=function(e,t,n){for(var r=0;r<e.length;r+=1)e[r]^=t[r+n]},_=function(e){var t=e[0];e[0]=e[1],e[1]=e[2],e[2]=e[3],e[3]=t},E=function(e){for(var t=0;t<e.length;t+=1)e[t]=l[e[t]]},P=function(e){for(var t=0;t<e.length;t+=1)e[t]=c[e[t]]},I=function(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]},T=function(e,t,n,r){e[4*n]=t[4*r],e[4*n+1]=t[4*r+1],e[4*n+2]=t[4*r+2],e[4*n+3]=t[4*r+3]};return m=function(e){for(var t,n=[],r=0;r<4*f;)n.push(e[r++]);for(r=f;r<y*(h+1);){if(t=I(n,r-1),r%f==0){var o=[u[r/f],0,0,0];_(t),E(t),t=w(t,o)}else f>6&&r%f==4&&E(t);var a=w(I(n,r-f),t);T(n,a,r,0),r+=1}return n}(d),{encrypt:function(e){var t,n=e;for(S(n,m,0),t=1;t<=h-1;t+=1)E(n),b(n),C(n),S(n,m,4*t*y);return E(n),b(n),S(n,m,4*h*y),n},decrypt:function(e){var t,n=e;for(S(n,m,4*h*y),t=h-1;t>=1;t-=1)x(n),P(n),S(n,m,4*t*y),k(n);return x(n),P(n),S(n,m,0),n},clear:function(){},keyLength:p,blockSize:v}}}}(),V=V||{};V.pkcsv7=function(e){return{pad:function(t){var n=t.length-1>=0?t.length-1:0,r=t[n],o=r.length;if(o===e){var a,s=[];for(a=0;a<e;a+=1)s.push(e);t.push(s)}else for(var l=e-o&255;r.length!==e;)r.push(l)},unpad:function(t){var n=!0;t.length%e!=0&&(n=!1);for(var r=t.slice(-e),o=r[r.length-1],a=0;a<e;a++){var s=e-a<=o,l=r[a]===o;n=(!s||l)&&n}var c=n?o:0;return t.length-=c,n}}};var U=function(e){var t=e.blockSize/8,n=V.pkcsv7(t),r=function(e){var t,n,r=[];for(t=0;t<e.length;t+=1){var o=e[t];for(n=0;n<o.length;n+=1)r.push(o[n])}return r};function o(e){for(var n=[],r=Math.floor((u=u.concat(e)).length/t),o=0;o<r;o++)n.push(u.slice(o*t,(o+1)*t));return u=u.slice(r*t),n}function a(t){for(var n,r=[],o=0;o<t.length;o++)n=g.xorVectors(c,t[o]),r.push(e.encrypt(n)),c=r[o];return r}function s(t){for(var n,r,o=[],a=0;a<t.length;a+=1)n=t[a].slice(0,t[a].length),r=e.decrypt(n),o.push(g.xorVectors(c,r)),c=t[a];return o}function l(){u=[],d=[],c=null}var c,u=[],d=[];return{init:function(e){if(e.length!==t)throw Error("Invalid iv size");c=e.slice()},encrypt:function(e){var t=a(o(e));return d=d.concat(r(t)),this.finishEncrypt()},processEncrypt:function(e){return r(a(o(e)))},finishEncrypt:function(){var e=1===u.length?[[u[0]]]:[u];n.pad(e);var t=d.concat(r(a(e)));return l(),t},decrypt:function(e){return this.processDecrypt(e),this.finishDecrypt()},processDecrypt:function(e){var t=s(o(e));d=d.concat(r(t))},finishDecrypt:function(){var e=d;return n.unpad(e),l(),e}}};if(void 0!==o){var j={};U.workerEncrypt=function(e){var t,n=e.workerid;return(j[n]||(j[n]=U(z.aes(e.keyData)),j[n].init(e.algorithm.iv)),"process"===e.operationSubType)?j[n].processEncrypt(e.buffer):("finish"===e.operationSubType?t=j[n].finishEncrypt():t=j[n].encrypt(e.buffer),j[n]=null,t)},U.workerDecrypt=function(e){var t,n=e.workerid;return(j[n]||(j[n]=U(z.aes(e.keyData)),j[n].init(e.algorithm.iv)),"process"===e.operationSubType)?void j[n].processDecrypt(e.buffer):("finish"===e.operationSubType?t=j[n].finishDecrypt():t=j[n].decrypt(e.buffer),j[n]=null,t)},U.generateKey=function(e){if(e.algorithm.length%8!=0)throw Error();return{type:"keyGeneration",keyData:Y.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},U.importKey=function(e){var t,n=8*e.keyData.length;if("jwk"===e.format)t=b.jwkToKey(e.keyData,e.algorithm,["k"]);else if("raw"===e.format){if(128!==n&&192!==n&&256!==n)throw Error("invalid key length (should be 128, 192, or 256 bits)");t={k:g.toArray(e.keyData)}}else throw Error("unsupported import format");return e.algorithm.length=8*t.k.length,{keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"},type:"keyImport"}},U.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw Error("unsupported export format")},o.register("importKey","AES-CBC",U.importKey),o.register("exportKey","AES-CBC",U.exportKey),o.register("generateKey","AES-CBC",U.generateKey),o.register("encrypt","AES-CBC",U.workerEncrypt),o.register("decrypt","AES-CBC",U.workerDecrypt)}var W=function(e){var t,n,r,o,a,s,l=g,c=[],u=e.encrypt(l.getVector(16)),d=l.getVector(16),p=[],f=[],h=0;function m(e,t){for(var n,r=Math.floor(t.length/16),o=0;o<r;o++)n=t.slice(16*o,16*o+16),d=y(l.xorVectors(d,n),e);return p=t.slice(16*r),d}function v(){var e=16*Math.ceil(h/16)-h,t=w(8*n.length),r=w(8*h);return m(u,p.concat(l.getVector(e)).concat(t).concat(r))}function y(e,t){var n,r,o,a=l.getVector(16),s=t.slice(0);for(o=0;o<128;o++){for(r=0,n=255&-x(e,o);r<16;r++)a[r]=a[r]^s[r]&n;n=255&-(1&s[15]),b(s),s[0]^=225&n}return a}function b(e){for(var t=e.length-1;t>0;t--)e[t]=(1&e[t-1])<<7|e[t]>>>1;return e[0]=e[0]>>>1,e}function x(e,t){return e[Math.floor(t/8)]>>7-t%8&1}function C(e){for(var t=256,n=1;n<=4;n++)t=(t>>>8)+e[e.length-n],e[e.length-n]=255&t;return e}function k(t,n){var r,o=Math.ceil(n.length/16),a=[];s!==t&&(s=t.slice());for(var c=0;c<o;c++){r=n.slice(16*c,16*c+16);var u=e.encrypt(s.slice());a=a.concat(l.xorVectors(r,u)),s=C(s)}return a}function w(e){return[0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e]}function S(e){var t=16*Math.ceil(n.length/16)-n.length;return e.concat(l.getVector(t))}function _(){h=0,c=[],f=[],d=l.getVector(16),p=[],s=t=n=null}return{init:function(e,s,c){if(n=s||[],(r=isNaN(c)?128:c)%8!=0)throw Error("DataError");if(12===(t=e).length)o=t.concat([0,0,0,1]);else{var p=16*Math.ceil(t.length/16)-t.length;o=m(u,t.concat(l.getVector(p+8)).concat(w(8*t.length))),d=l.getVector(16)}a=C(o.slice()),m(u,S(n))},encrypt:function(e){h=e.length;var t=k(a,e);m(u,t);var n=v(),s=k(o,n).slice(0,r/8);return _(),t.slice().concat(s)},decrypt:function(e,t){h=e.length;var n=k(a,e);m(u,e);var s=v(),c=k(o,s).slice(0,r/8);return(_(),l.arraysEqual(c,t))?n:null},processEncrypt:function(e){var t=(c=c.concat(e)).slice(0,16*Math.floor(c.length/16));h+=t.length,c=c.slice(t.length);var n=k(s||a,t);f=f.concat(n),m(u,n)},processDecrypt:function(e){var t=(c=c.concat(e)).slice(0,16*Math.floor((c.length-r/8)/16));h+=t.length,c=c.slice(t.length);var n=k(s||a,t);f=f.concat(n),m(u,t)},finishEncrypt:function(){var e=k(s,c);f=f.concat(e),h+=c.length;var t=v(),n=k(o,t).slice(0,r/8),a=f.slice().concat(n);return _(),a},finishDecrypt:function(){var e=Math.floor(r/8),t=c.slice(-e);c=c.slice(0,c.length-e);var n=k(s,c);f=f.concat(n),h+=c.length;var a=v(),u=k(o,a).slice(0,r/8),d=f.slice();return(_(),l.arraysEqual(u,t))?d:null}}};if(void 0!==o){var q={};W.encrypt=function(e){var t,n=e.workerid;return(q[n]||(q[n]=W(z.aes(e.keyData)),q[n].init(e.algorithm.iv,e.algorithm.additionalData,e.algorithm.tagLength)),"process"===e.operationSubType)?void q[n].processEncrypt(e.buffer):("finish"===e.operationSubType?t=q[n].finishEncrypt():t=q[n].encrypt(e.buffer),q[n]=null,t)},W.decrypt=function(e){var t,n=e.workerid;if(q[n]||(q[n]=W(z.aes(e.keyData)),q[n].init(e.algorithm.iv,e.algorithm.additionalData,e.algorithm.tagLength)),"process"===e.operationSubType)return void q[n].processDecrypt(e.buffer);if("finish"===e.operationSubType){if(t=q[n].finishDecrypt(),q[n]=null,null===t)throw Error("OperationError");return t}var r=e.algorithm.tagLength?Math.floor(e.algorithm.tagLength/8):16,o=e.buffer.slice(0,e.buffer.length-r),a=e.buffer.slice(-r);if(t=q[n].decrypt(o,a),q[n]=null,null===t)throw Error("OperationError");return t},W.generateKey=function(e){if(e.algorithm.length%8!=0)throw Error();return{type:"keyGeneration",keyData:Y.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},W.importKey=function(e){var t,n=8*e.keyData.length;if("jwk"===e.format)t=b.jwkToKey(e.keyData,e.algorithm,["k"]);else if("raw"===e.format){if(128!==n&&192!==n&&256!==n)throw Error("invalid key length (should be 128, 192, or 256 bits)");t={k:g.toArray(e.keyData)}}else throw Error("unsupported import format");return{type:"keyImport",keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"}}},W.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw Error("unsupported export format")},o.register("importKey","AES-GCM",W.importKey),o.register("exportKey","AES-GCM",W.exportKey),o.register("generateKey","AES-GCM",W.generateKey),o.register("encrypt","AES-GCM",W.encrypt),o.register("decrypt","AES-GCM",W.decrypt)}var G=function(e){return{encrypt:function(t){for(var n=[[0]],r=0;r<t.length;r+=8)n.push(t.slice(r,r+8));for(var o=[166,166,166,166,166,166,166,166],a=n.length-1,s=[],r=1;r<=a;r++)s[r]=n[r];for(var l=0;l<=5;l++)for(var r=1;r<=a;r++){var c=a*l+r,u=e.encrypt(o.concat(s[r]));s[r]=u.slice(8),o=u.slice(0,8);for(var d=7;c>0;d--,c>>>=8)o[d]^=255&c}for(var p=o,r=1;r<=a;r++)p=p.concat(s[r]);return p},decrypt:function(t){for(var n=[],r=0;r<t.length;r+=8)n.push(t.slice(r,r+8));for(var o=n.length-1,a=[],s=[],l=n[0],r=1;r<=o;r++)a[r]=n[r];for(var c=5;c>=0;c--)for(var r=o;r>=1;r--){for(var u=o*c+r,d=7;u>0;d--,u>>>=8)l[d]^=255&u;var p=e.decrypt(l.concat(a[r]));l=p.slice(0,8),a[r]=p.slice(8)}if("166,166,166,166,166,166,166,166"!==l.join(","))throw g.error("OperationError","");for(var r=1;r<=o;r++)s=s.concat(a[r]);return s}}};if(void 0!==o){var K={};G.workerEncrypt=function(e){var t,n=e.workerid;if(e.buffer.length%8!=0)throw g.error("DataError","The AES-KW input data length is invalid: not a multiple of 8 bytes");return K[n]||(K[n]=G(z.aes(e.keyData))),t=K[n].encrypt(e.buffer),K[n]=null,t},G.workerDecrypt=function(e){var t,n=e.workerid;if(e.buffer.length%8!=0)throw g.error("DataError","The AES-KW input data length is invalid: not a multiple of 8 bytes");return K[n]||(K[n]=G(z.aes(e.keyData))),t=K[n].decrypt(e.buffer),K[n]=null,t},G.generateKey=function(e){if(e.algorithm.length%8!=0)throw g.error("OperationError","AES key length must be 128, 192, or 256 bits");return{type:"keyGeneration",keyData:Y.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},G.importKey=function(e){var t,n=8*e.keyData.length;if("jwk"===e.format)t=b.jwkToKey(e.keyData,e.algorithm,["k"]);else if("raw"===e.format){if(128!==n&&192!==n&&256!==n)throw g.error("OperationError","AES key length must be 128, 192, or 256 bits");t={k:g.toArray(e.keyData)}}else throw TypeError("Invalid keyFormat argument");return e.algorithm.length=8*t.k.length,{keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"},type:"keyImport"}},G.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw TypeError("Invalid keyFormat argument")},o.register("importKey","AES-KW",G.importKey),o.register("exportKey","AES-KW",G.exportKey),o.register("generateKey","AES-KW",G.generateKey),o.register("encrypt","AES-KW",G.workerEncrypt),o.register("decrypt","AES-KW",G.workerDecrypt)}function X(){if(!(this instanceof X))throw Error("create MsrcryptoPrng object with new keyword");var e,t,n,r,o=!1,a=1,s=0x1000000000000;function l(e){var t;for(t=e.length-1;t>=0&&(e[t]+=1,e[t]>=256&&(e[t]=0),!e[t]);t-=1);}function c(){e=g.getVector(32),t=g.getVector(16),n=32,r=48,a=1}function u(e,t){if((t=t||[0]).length>r)throw Error("Incorrect entropy or additionalEntropy length");t=t.concat(g.getVector(r-t.length)),e=e.concat(g.getVector((r-e.length%r)%r));for(var n=0;n<e.length;n+=r)d(g.xorVectors(e.slice(n,n+r),t));a=1}function d(o){for(var a=[],s=new z.aes(e);a.length<r;){l(t);var c=t.slice(0,16),u=s.encrypt(c);a=a.concat(u)}e=(a=g.xorVectors(a,o)).slice(0,n),t=a.slice(n)}function p(n,o){if(n>=65536)throw Error("too much random requested");if(a>s)throw Error("Reseeding is required");if(o&&o.length>0){for(;o.length<r;)o=o.concat(g.getVector(r-o.length));d(o)}else o=g.getVector(r);for(var c=[],u=new z.aes(e);c.length<n;){l(t);var p=t.slice(0,t.length),f=u.encrypt(p);c=c.concat(f)}return c=c.slice(0,n),d(o),a+=1,c}return c(),{reseed:u,getBytes:function(e,t){if(!o)throw Error("can't get randomness before initialization");return p(e,t)},getNonZeroBytes:function(e,t){if(!o)throw Error("can't get randomness before initialization");for(var n,r=[];r.length<e;){n=p(e,t);for(var a=0;a<n.length;a+=1)0!==n[a]&&r.push(n[a])}return r.slice(0,e)},init:function(e,t){if(e.length<r)throw Error("Initial entropy length too short");c(),u(e,t),o=!0}}}var Y=new X;function Q(e){var t=48,n=[],r=128,o=0,a=new X,s=!1,l=!1,c=e;function u(){var r,o=["Cookie","RedirectUri","ETag","x-ms-client-antiforgery-id","x-ms-client-request-id","x-ms-client-session-id","SubscriptionPool"],u=[];for(r=0;r<t;r+=1)u[r]=Math.floor(256*Math.random());var d=c.crypto||c.msCrypto;if(d&&"function"==typeof d.getRandomValues&&e.Uint8Array){var h=new e.Uint8Array(t);d.getRandomValues(h),u=u.concat(Array.apply(null,h)),l=!0}if("u">typeof XMLHttpRequest){var m=new XMLHttpRequest;for(r=0;r<o.length;r+=1)try{var v=m.getResponseHeader(o[r]);if(v){var y=g.stringToBytes(v);u=u.concat(y)}}catch(e){}}!l&&p&&(u=u.concat(n.splice(0,n.length)),f.startCollectors()),s?a.reseed(u):a.init(u),s=!0}function d(e){for(var t=0;t<e.length;++t)n.push(e[t]);n.length>=r&&f.stopCollectors()}var p=e&&e.addEventListener||"u">typeof document&&document.attachEvent,f=function(){return{startCollectors:function(){if(!this.collectorsRegistered){if(e.addEventListener)e.addEventListener("mousemove",this.MouseEventCallBack,!0),e.addEventListener("load",this.LoadTimeCallBack,!0);else if(document.attachEvent)document.attachEvent("onmousemove",this.MouseEventCallBack),document.attachEvent("onload",this.LoadTimeCallBack);else throw Error("Can't attach events for entropy collection");this.collectorsRegistered=1}},stopCollectors:function(){this.collectorsRegistered&&(e.removeEventListener?(e.removeEventListener("mousemove",this.MouseEventCallBack,1),e.removeEventListener("load",this.LoadTimeCallBack,1)):e.detachEvent&&(e.detachEvent("onmousemove",this.MouseEventCallBack),e.detachEvent("onload",this.LoadTimeCallBack)),this.collectorsRegistered=0)},MouseEventCallBack:function(e){var t=new Date().valueOf(),n=e.x||e.clientX||e.offsetX||0,r=e.y||e.clientY||e.offsetY||0;d([255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,255&r,r>>8&255])},LoadTimeCallBack:function(){var e=new Date().valueOf();d([255&e,e>>8&255,e>>16&255,e>>24&255])}}}();return{init:function(){if(u(),!l&&!o&&p)try{f.startCollectors()}catch(e){}},reseed:function(e){a.reseed(e)},read:function(e){if(!s)throw Error("Entropy pool is not initialized.");var t=a.getBytes(e);return u(),t}}}var J=function(){var e=[],t=[],n=16384;function r(e){var t,n,r=Array(e+1),o=[],a=0|Math.sqrt(e);for(t=3;t<=a;t+=2)for(n=t*t;n<=e;n+=2*t)r[n]=0;for(t=3;t<=e;t+=2)0!==r[t]&&o.push(t);return o}function o(n){var r,o=t.length;for(r=0;r<o;r++)if((t[r]+n)%e[r]==0)return!1;return!0}function a(o){var a,s,l,c,u,d,p=o.length-1,f=C.DIGIT_BASE,h=o[p];for(0===e.length&&(e=r(n)),t=Array(d=e.length),a=0;a<d;a++){for(s=p,h<(u=e[a])?(l=h,s--):l=0;s>=0;)l=(c=l*f+o[s--])-(c/u|0)*u;t[a]=l}}function s(e){var t,n=0,r=0;if(C.isZero(e))return 0;for(n=0;0===e[n];n++);for(r=0,t=2;e[n]%t==0;t*=2,r++);return n*C.DIGIT_BITS+r}function l(e){var t=0,n=0,r=0;if(C.isZero(e))return 0;for(t=e.length-1;0===e[t];t--);for(r=1<<(n=C.DIGIT_BITS-1);n>0&&(e[t]&r)==0;r>>>=1,n--);return t*C.DIGIT_BITS+n}function c(e,t){var n,r=e,o=[];C.subtract(r,[1],o);var a=s(o),c=[];C.shiftRight(o,c,a);for(var d=l(r),p=C.MontgomeryMultiplier(r),f=1;f<=t;f++){var h=!1;do n=u(d);while(C.compareDigits(n,o)>=0);var m=[];if(p.modExp(n,c,m,!0),0!==C.compareDigits(m,[1])&&0!==C.compareDigits(m,o)){for(var g=1;g<a;g++){if(p.montgomeryMultiply(m,m,m),0===C.compareDigits(m,o)){h=!0;break}if(0===C.compareDigits(m,[1]))return!1}if(!1===h)return!1}}return!0}function u(e){var t=Math.ceil(e/8),n=Y.getBytes(t);return n[0]|=128,n[n.length-1]|=1,C.bytesToDigits(n)}return{generatePrime:function(e){var t=u(e),n=0,r=[];for(a(t);;){if(o(n)&&(C.add(t,[n],r),!0===c(r,6)))return r;n+=2}}}}(),Z=function(e){var t=g,n=e.hasOwnProperty("n")&&e.hasOwnProperty("d"),r=e.hasOwnProperty("p")&&e.hasOwnProperty("q"),o=e.n.length;function a(e){var n=C.digitsToBytes(e);return t.padFront(n,0,o),n}function s(e,t,n){var r=C.bytesToDigits(t),o=C.IntegerGroup(n),a=o.createElementFromBytes(e);return o.modexp(a,r).m_digits}function l(t){return a(s(t,e.d,e.n))}function c(t){var n=C.bytesToDigits,r=e.p,o=e.q,s=e.dp,l=e.dq,c=e.qi,u=n(r),d=n(o),p=Array(u.length+d.length),f=Array(u.length+1),h=Array(d.length+1),m=n(t),g=C.MontgomeryMultiplier,v=new g(e.ctxp?void 0:u,e.ctxp),y=new g(e.ctxq?void 0:d,e.ctxq);v.reduce(m,p),v.modExp(p,n(s),f),y.reduce(m,p),y.modExp(p,n(l),h);var b=C.subtract(f,h,p);return 0!==b&&C.subtract(h,f,p),C.modMul(p,n(c),u,m),0!==b&&C.subtract(u,m,m),C.multiply(m,d,p),C.add(h,p,f),a(f)}return{encrypt:function(t){return a(s(t,e.e,e.n,!0))},decrypt:function(e){if(r)return c(e);if(n)return l(e);throw Error("missing private key")}}},ee=function(e,t,n){var r,o,a,s=[],l=n.hashLen/8;for(a=0;a<=Math.floor(t/l);a+=1)r=[a>>>24&255,a>>>16&255,a>>>8&255,255&a],o=n.computeHash(e.concat(r)),s=s.concat(o);return s.slice(0,t)},et=et||{};et.oaep=function(e,t){var n=g,r=Y,o=e.n.length;if(null===t)throw Error("must supply hashFunction");function a(e,a){var s,l,c,u,d,p,f,h;if(e.length>o-2*(t.hashLen/8)-2)throw Error("Message too long.");return null==a&&(a=[]),s=t.computeHash(a),l=o-e.length-2*s.length-2,c=n.getVector(l),u=s.concat(c,[1],e),p=ee(d=r.getBytes(s.length),o-s.length-1,t),h=ee(f=n.xorVectors(u,p),s.length,t),e=[0].concat(n.xorVectors(d,h)).concat(f).slice()}function s(e,r){var a,s,l,c,u,d,p,f=0,h=0===e[0];for(r||(r=[]),a=t.computeHash(r),s=e.slice(1,a.length+1),c=ee(l=e.slice(a.length+1),a.length,t),u=ee(n.xorVectors(s,c),o-a.length-1,t),p=(d=n.xorVectors(l,u)).slice(0,a.length),h=h&&n.arraysEqual(a,p),d=d.slice(a.length);!d[f++];);return{valid:h,data:d.slice(f)}}return{pad:function(e,t){return a(e,t)},unpad:function(e,t){return s(e,t)}}};var et=et||{};et.pkcs1Encrypt=function(e){var t=Y,n=e.n.length;function r(e){if(e.length>n-11)throw Error("message too long");return[0,2].concat(t.getNonZeroBytes(n-e.length-3),[0],e)}function o(e){for(var t=0===e[0]&&2===e[1],n=2;n<10;n++)t=t&&!!e[n];return t}function a(e){var t,n=o(e),r=0;for(t=1;t<e.length;t+=1)r=r||+!e[t]&&t+1;return r=-n&&r,{data:e.slice(r),valid:n}}return{pad:function(e){return r(e)},unpad:function(e){return a(e)}}},et.pkcs1Sign=function(e,t){var n=g,r=e.n.length;function o(e){var o,a,s;if(a=t.computeHash(e.slice()),r<(s=(o=t.der.concat(a)).length)+11)throw Error("intended encoded message length too short");return[0,1].concat(n.getVector(r-s-3,255),[0],o)}return{sign:function(e){return o(e)},verify:function(e,t){var r=o(t);return n.arraysEqual(e,r)}}};var et=et||{};et.pss=function(e,t){var n=g,r=Y;function o(o,a,s){var l=C.bitLength(e.n)-1,c=Math.ceil(l/8),u=t.computeHash(o);if(a=s?s.length:null==a?u.length:a,c<u.length+a+2)throw Error("encoding error");for(var d=[0,0,0,0,0,0,0,0].concat(u,s=s||r.getBytes(a)),p=t.computeHash(d),f=n.getVector(c-s.length-p.length-2).concat([1],s),h=ee(p,c-p.length-1,t),m=n.xorVectors(f,h),g=0,v=0;v<8-(8*c-l);v++)g+=1<<v;return m[0]&=g,m.concat(p,[188])}function a(r,o,a){var s=C.bitLength(e.n)-1,l=Math.ceil(s/8),c=t.computeHash(o),u=c.length;if(a=null==a?u:a,l<u+a+2)return!1;var d=r.slice(0,l-u-1),p=r.slice(d.length,d.length+u),f=ee(p,l-u-1,t),h=n.xorVectors(d,f);h[0]&=255>>>8-(8*l-s);for(var m=0;m<l-u-a-2;m++)if(0!==h[m])return!1;if(1!==h[l-u-a-2])return!1;var g=[0,0,0,0,0,0,0,0].concat(c,h.slice(h.length-a)),v=t.computeHash(g);return n.arraysEqual(v,p)}return{sign:function(e,t,n){return o(e,t,n)},verify:function(e,t,n){return a(e,t,n)}}};var en=function(e,t,n){var r,o=Z(e);if(!t)throw Error("padding mode");function a(){if(!n||!n.computeHash)throw Error("missing hash function")}var s=null,l=null;switch(t){case"RSAES-PKCS1-V1_5":r=et.pkcs1Encrypt(e);break;case"RSASSA-PKCS1-V1_5":a(),r=et.pkcs1Sign(e,n);break;case"RSA-OAEP":a(),r=et.oaep(e,n);break;case"RSA-PSS":a(),r=et.pss(e,n);break;case"raw":r={pad:function(e){return e},unpad:function(e){return e}};break;default:throw Error("invalid mode")}return r&&(s=r.pad||r.sign,l=r.unpad||r.verify),{encrypt:function(e,t){var n;return n=null!==s?s(e,t):e.slice(),o.encrypt(n)},decrypt:function(e,t){var n=o.decrypt(e);if(null!==l){if(!1===(n=l(n,t)).valid)throw Error("OperationError");n=n.data}else n=n.slice(0);return n},signData:function(e,t,n){return o.decrypt(s(e,t,n))},verifySignature:function(e,t,n){var r=o.encrypt(e);return l(r,t,n)},generateKeyPair:function(e){genRsaKeyFromRandom(e)},mode:t}};void 0!==o&&(en.sign=function(e){var t=m[e.keyHandle.algorithm.hash.name.toUpperCase()](),n=e.algorithm.saltLength,r=e.algorithm.salt;return en(e.keyData,e.algorithm.name,t).signData(e.buffer,n,r)},en.verify=function(e){var t=m[e.keyHandle.algorithm.hash.name.toUpperCase()](),n=e.algorithm.saltLength;return en(e.keyData,e.algorithm.name,t).verifySignature(e.signature,e.buffer,n)},en.workerEncrypt=function(e){var t,n,r,o;switch(e.algorithm.name){case"RSAES-PKCS1-V1_5":t=(n=en(e.keyData,e.algorithm.name)).encrypt(e.buffer);break;case"RSA-OAEP":if(!(o=e.keyHandle.algorithm.hash.name))throw Error("unsupported hash algorithm");r=m[o.toUpperCase()](),t=(n=en(e.keyData,e.algorithm.name,r)).encrypt(e.buffer);break;default:throw Error("unsupported algorithm")}return t},en.workerDecrypt=function(e){var t,n,r;switch(e.algorithm.name){case"RSAES-PKCS1-V1_5":t=(n=en(e.keyData,e.algorithm.name)).decrypt(e.buffer);break;case"RSA-OAEP":var o=e.keyHandle.algorithm.hash.name;if(!o)throw Error("unsupported hash algorithm");r=m[o.toUpperCase()](),t=(n=en(e.keyData,e.algorithm.name,r)).decrypt(e.buffer);break;default:throw Error("unsupported algorithm")}return t},en.importKey=function(e){var t;if("jwk"===e.format)(t=b.jwkToKey(e.keyData,e.algorithm,["n","e","d","p","q","dp","dq","qi"])).d&&(t.ctxp=new C.MontgomeryMultiplier(C.bytesToDigits(t.p)).ctx,t.ctxq=new C.MontgomeryMultiplier(C.bytesToDigits(t.q)).ctx);else if("spki"===e.format){var n=v.parse(e.keyData);if(null==n)throw Error("invalid key data.");var r=n[1],o=v.parse(r.data.slice(r.header+1),!0);if(null==o)throw Error("invalid key data.");var a=o[0],s=o[1];if("INTEGER"!==a.type||"INTEGER"!==s.type)throw Error("invalid key data.");a=a.data.slice(a.header),s=s.data.slice(s.header),0===a[0]&&128&a[1]&&(a=a.slice(1)),0===s[0]&&128&s[1]&&(s=s.slice(1)),t={n:a,e:s}}else if("pkcs8"===e.format){var n=v.parse(e.keyData);if(null==n)throw Error("invalid key data.");var r=n[2],o=v.parse(r.data.slice(r.header),!0);if(null==o)throw Error("invalid key data.");var l=["n","e","d","p","q","dp","dq","qi"];t={};for(var c=1;c<o.length;c++){var u=o[c];0===(u=u.data.slice(u.header))[0]&&128&u[1]&&(u=u.slice(1)),t[l[c-1]]=u}}else throw Error("unsupported key import format.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:t.d||t.dq?"private":"public"}}},en.exportKey=function(e){var t="1.2.840.113549.1.1.1";if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format){var n=v.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{NULL:1}]},{"BIT STRING":{SEQUENCE:[{INTEGER:e.keyData.n},{INTEGER:e.keyData.e}]}}]});return{type:"keyExport",keyHandle:n}}if("pkcs8"===e.format){var n=v.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{NULL:1}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:0},{INTEGER:e.keyData.n},{INTEGER:e.keyData.e},{INTEGER:e.keyData.d},{INTEGER:e.keyData.p},{INTEGER:e.keyData.q},{INTEGER:e.keyData.dp},{INTEGER:e.keyData.dq},{INTEGER:e.keyData.qi}]}}]});return{type:"keyExport",keyHandle:n}}throw Error(e.format+" not implemented")},en.genRsaKeyFromRandom=function(e,t){var n=t?C.bytesToDigits(t):[65537];do{var r=J.generatePrime(e/2),o=J.generatePrime(e/2);if(C.compareDigits(o,r)>0){var a=r;r=o,o=a}var s=[];C.multiply(r,o,s);var l=[];C.subtract(r,[1],l);var c=[];C.subtract(o,[1],c);var u=[];C.multiply(l,c,u);var d=[];C.gcd(n,u,d);var p=0===C.compareDigits(d,C.One)}while(!p);var f=[];C.modInv(n,u,f);var h=[];C.reduce(f,l,h);var m=[];C.reduce(f,c,m);var g=[];C.modInv(o,r,g);var v=C.digitsToBytes;return{privateKey:{n:v(s),e:v(n),d:v(f),p:v(r),q:v(o),dp:v(h),dq:v(m),qi:v(g)},publicKey:{n:v(s),e:v(n)}}},en.generateKeyPair=function(e){if(void 0===e.algorithm.modulusLength)throw Error("missing modulusLength");var t,n,r,o=C.bytesToDigits;switch(e.algorithm.modulusLength){case 1024:case 2048:case 4096:t=en.genRsaKeyFromRandom(e.algorithm.modulusLength,e.algorithm.publicExponent);break;default:throw Error("invalid modulusLength")}var a=t.privateKey;a.ctxp=new C.MontgomeryMultiplier(o(a.p)).ctx,a.ctxq=new C.MontgomeryMultiplier(o(a.q)).ctx;var s=e.algorithm.name;return s.slice(s.indexOf("-")+1).toUpperCase(),"RSASSA-PKCS1-V1_5"===s||"RSA-PSS"===s?(n=["verify"],r=["sign"]):(n=["encrypt"],r=["decrypt"]),{type:"keyGeneration",keyPair:{publicKey:{keyData:t.publicKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:n,type:"public"}},privateKey:{keyData:t.privateKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:r,type:"private"}}}}},o.register("sign","RSASSA-PKCS1-V1_5",en.sign),o.register("sign","RSA-PSS",en.sign),o.register("verify","RSASSA-PKCS1-V1_5",en.verify),o.register("verify","RSA-PSS",en.verify),o.register("encrypt","RSAES-PKCS1-V1_5",en.workerEncrypt),o.register("decrypt","RSAES-PKCS1-V1_5",en.workerDecrypt),o.register("encrypt","RSA-OAEP",en.workerEncrypt),o.register("decrypt","RSA-OAEP",en.workerDecrypt),o.register("importKey","RSA-OAEP",en.importKey),o.register("importKey","RSAES-PKCS1-V1_5",en.importKey),o.register("importKey","RSASSA-PKCS1-V1_5",en.importKey),o.register("importKey","RSA-PSS",en.importKey),o.register("exportKey","RSA-OAEP",en.exportKey),o.register("exportKey","RSAES-PKCS1-V1_5",en.exportKey),o.register("exportKey","RSASSA-PKCS1-V1_5",en.exportKey),o.register("exportKey","RSA-PSS",en.exportKey),o.register("generateKey","RSA-OAEP",en.generateKeyPair),o.register("generateKey","RSAES-PKCS1-V1_5",en.generateKeyPair),o.register("generateKey","RSASSA-PKCS1-V1_5",en.generateKeyPair),o.register("generateKey","RSA-PSS",en.generateKeyPair));var er=function(){return{deriveBits:function(e){for(var t=m[e.algorithm.hash.name.toUpperCase()](),n=e.algorithm,r=eu.toArray(n.algorithmId).concat(eu.toArray(n.partyUInfo),eu.toArray(n.partyVInfo),eu.toArray(n.publicInfo)||[],eu.toArray(n.privateInfo)||[]),o=Math.ceil(e.length/t.hashLen),a=1,s=e.keyData.concat(r),l=[],c=0;c<o;c++){var u=eu.int32ToBytes(a++).concat(s),d=t.computeHash(u);l=l.concat(d)}return l.slice(0,e.length/8)}}}();void 0!==o&&(er.importKey=function(e){var t;if("raw"===e.format)t=g.toArray(e.keyData);else throw Error("unsupported import format");if(!1!==e.extractable)throw Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"CONCAT"},extractable:!1,usages:e.usages,type:"secret"}}},o.register("deriveBits","CONCAT",er.deriveBits),o.register("importKey","CONCAT",er.importKey));var eo=function(){return{deriveBits:function(e){var t,n,r=e.algorithm,o=e.keyData,a=e.length,s=r.iterations,l=Array.apply(null,r.salt),c=Math.ceil(a/8),u=[];switch(r.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw Error("Unsupported hash algorithm")}n=Math.ceil(c/t);var d=L.importKey({format:"raw",keyData:o,algorithm:{name:"HMAC",hash:r.hash}}),p={algorithm:r,keyHandle:d.keyHandle,keyData:d.keyData,workerid:0,buffer:null};function f(e,n,r){for(var o=[],a=e.concat([r>>>24&255,r>>>16&255,r>>>8&255,255&r]),s=0;s<n;s++){p.buffer=a,a=L.signHmac(p);for(var l=0;l<t;l++)o[l]=~~o[l]^a[l]}return o}for(var h=1;h<=n;h++)u=u.concat(f(l,s,h));return u.length=c,u}}}();void 0!==o&&(eo.importKey=function(e){var t;if("raw"===e.format)t=g.toArray(e.keyData);else throw Error("unsupported import format");if(!1!==e.extractable)throw Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"PBKDF2"},extractable:!1,usages:e.usages,type:"secret"}}},o.register("deriveBits","PBKDF2",eo.deriveBits),o.register("importKey","PBKDF2",eo.importKey));var ei=function(){return{deriveBits:function(e){var t,n,r,o=e.algorithm,a=e.keyData,s=e.length,l=o.salt,c=Math.ceil(s/8),u=[],d=g.toArray(o.info),p=[];switch(o.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw Error("Unsupported hash algorithm.")}if(null==o.salt)throw Error("HkdfParams: salt: Missing required property.");if(null==o.info)throw Error("HkdfParams: info: Missing required property.");if(s%8!=0)throw Error("The length provided for HKDF is not a multiple of 8 bits.");if(c>255*t)throw Error("The length provided for HKDF is too large.");for(0===l.length&&(l=g.getVector(t)),(r={workerid:0,keyHandle:{algorithm:o},keyData:l,buffer:a}).keyData=L.signHmac(r),n=0;n<Math.ceil(c/t);n++)r.buffer=p.concat(d).concat([1+n]),p=L.signHmac(r),u=u.concat(p);return u.slice(0,c)}}}();void 0!==o&&(ei.importKey=function(e){var t;if("raw"===e.format)t=g.toArray(e.keyData);else throw Error("unsupported import format");if(!1!==e.extractable)throw Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"HKDF"},extractable:!1,usages:e.usages,type:"secret"}}},o.register("deriveBits","HKDF",ei.deriveBits),o.register("importKey","HKDF",ei.importKey));var ea=function(){return{deriveBits:function(e){var t,n,r,o=e.algorithm,a=e.keyData,s=e.length,l=o.label,c=o.context,u=Math.ceil(s/8),d=[];switch(o.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw Error("Unsupported hash algorithm.")}if(null==o.label)throw Error("HkdfCtrParams: label: Missing required property.");if(null==o.context)throw Error("HkdfCtrParams: context: Missing required property.");if(s%8!=0)throw Error("The length provided for HKDF-CTR is not a multiple of 8 bits.");if(u>255*t)throw Error("The length provided for HKDF-CTR is too large.");r={workerid:0,keyHandle:{algorithm:o},keyData:a,buffer:a};var p=l.concat([0],c,eu.int32ToBytes(s));for(n=1;n<=Math.ceil(u/t);n++)r.buffer=eu.int32ToBytes(n).concat(p),d=d.concat(L.signHmac(r));return d.slice(0,u)}}}();void 0!==o&&(ea.importKey=function(e){var t;if("raw"===e.format)t=g.toArray(e.keyData);else throw Error("unsupported import format");if(!1!==e.extractable)throw Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"HKDF-CTR"},extractable:!1,usages:e.usages,type:"secret"}}},o.register("deriveBits","HKDF-CTR",ea.deriveBits),o.register("importKey","HKDF-CTR",ea.importKey));var es=function(e){var t=C.bytesToDigits,n=C.digitsToBytes,r=e,o=new w.EllipticCurveOperatorFp(e);return{generateKey:function(t){var a=[],s=Y.getBytes(e.order.length*C.DIGIT_NUM_BYTES);C.reduce(C.bytesToDigits(s),r.order,a);var l=r.allocatePointStorage();return o.scalarMultiply(a,r.generator,l),{privateKey:{x:n(l.x),y:n(l.y),d:n(a)},publicKey:{x:n(l.x),y:n(l.y)}}},deriveBits:function(e,n,a){var s=new w.EllipticCurvePointFp(r,!1,t(n.x),t(n.y),null,!1),l=r.allocatePointStorage();o.convertToJacobianForm(l),o.convertToMontgomeryForm(l),o.scalarMultiply(t(e.d),s,l),o.convertToAffineForm(l),o.convertToStandardForm(l);var c=C.digitsToBytes(l.x,!0,n.x.length);if(a&&8*c.length<a)throw Error("DataError");c=a?c.slice(0,Math.ceil(a/8)):c;var u=a%8,d=0===u?255:65280>>>u;return c[c.length-1]=c[c.length-1]&d,c},computePublicKey:function(e){r.generator.isInMontgomeryForm||o.convertToMontgomeryForm(r.generator);var a=r.allocatePointStorage();return o.convertToJacobianForm(a),o.convertToMontgomeryForm(a),o.scalarMultiply(t(e),r.generator,a),{x:n(a.x),y:n(a.y)}}}},el=null;void 0!==o&&(es.deriveBits=function(e){var t=w.createCurve(e.algorithm.namedCurve.toUpperCase()),n=e.keyData,r=e.additionalKeyData;return(el=es(t)).deriveBits(n,r,e.length)},es.deriveKey=function(e){throw Error("not supported")},es.generateKey=function(e){var t=(el=es(w.createCurve(e.algorithm.namedCurve.toUpperCase()))).generateKey();return{type:"keyPairGeneration",keyPair:{publicKey:{keyData:t.publicKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:[],type:"public"}},privateKey:{keyData:t.privateKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}}},es.importKey=function(e){try{if("raw"===e.format){var t=e.keyData;if(4!==t[0])throw Error("DataError");var n=~~((t.length-1)/2),r=e.algorithm.namedCurve.toUpperCase(),o=t.slice(1,n+1),a=t.slice(n+1);if(!1===w.validatePoint(r,o,a))throw Error("DataError");return{type:"keyImport",keyData:{x:o,y:a},keyHandle:{algorithm:e.algorithm,extractable:e.extractable||!1,usages:e.usages,type:"public"}}}if("jwk"===e.format){var s=b.jwkToKey(e.keyData,e.algorithm,["x","y","d","crv"]);if(s.d&&(!s.x||!s.y)){var l=w.createCurve(e.algorithm.namedCurve.toUpperCase()),c=(el=es(l)).computePublicKey(s.d);s.x=c.x,s.y=c.y}if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||s.extractable,usages:e.usages,type:s.d?"private":"public"}}}if("spki"===e.format){var u={"P-256":32,"P-384":48,"P-521":66},d=u[e.algorithm.namedCurve],p=v.parse(e.keyData);if(null==p)throw Error("invalid key data.");var f=p[1],h=f.data.slice(f.header+1);if(null==h||4!==h.shift()||h.length!==2*d)throw Error("invalid key data.");var o=h.slice(0,d),a=h.slice(d);if(!g.isBytes(o)||!g.isBytes(a))throw Error("invalid key data.");var s={x:o,y:a};if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("pkcs8"===e.format){var u={"P-256":32,"P-384":48,"P-521":66},d=u[e.algorithm.namedCurve],p=v.parse(e.keyData);if(null==p)throw Error("invalid key data.");var m=p[2],h=v.parse(m.data.slice(m.header));if(null==h)throw Error("invalid key data.");var y=h[1].data.slice(h[1].header),f=v.parse(h[2][0].data),h=f.data.slice(f.header+1);if(null==h||4!==h.shift()||h.length!==2*d)throw Error("invalid key data.");var o=h.slice(0,d),a=h.slice(d);if(!g.isBytes(o)||!g.isBytes(a))throw Error("invalid key data.");var s={x:o,y:a,d:y};if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}}catch(e){throw new g.error("DataError","")}},es.exportKey=function(e){var t="1.2.840.10045.2.1",n={"P-256":"1.2.840.10045.3.1.7 ","P-384":"1.3.132.0.34","P-521":"1.3.132.0.35"};if("raw"===e.format&&"public"===e.keyHandle.type)return{type:"keyExport",keyHandle:[4].concat(e.keyData.x,e.keyData.y)};if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format){var r=v.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}]});return{type:"keyExport",keyHandle:r}}if("pkcs8"===e.format){var r=v.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:1},{"OCTET STRING":e.keyData.d},{APPLICATION:[{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}],tag:1}]}}]});return{type:"keyExport",keyHandle:r}}throw Error("unsupported export format.")},o.register("importKey","ECDH",es.importKey),o.register("exportKey","ECDH",es.exportKey),o.register("generateKey","ECDH",es.generateKey),o.register("deriveBits","ECDH",es.deriveBits),o.register("deriveKey","ECDH",es.deriveKey));var ec=function(e){var t=C.bytesToDigits,n=C.digitsToBytes,r=new w.EllipticCurveOperatorFp(e),o=n(e.order).length,a=1===e.type;function s(t){var n=e.allocatePointStorage();return r.scalarMultiply(t,e.generator,n),{publicKey:n,privateKey:t}}function l(t){var n=[];return t||(t=Y.getBytes(e.order.length*C.DIGIT_NUM_BYTES)),C.reduce(C.bytesToDigits(t),e.order,n),s(n)}function c(n){n.length>o&&(n.length=o);var r=t(n);if(a){var s=8-e.rbits%8;C.shiftRight(r,r,s)}return C.reduce(r,e.order,r),r}function u(r,a,s){s||(s=l());var u=s.publicKey.x,d=s.privateKey,p=t(r.d),f=c(a.slice()),h=[],m=[],v=null;C.reduce(u,e.order,u),C.modMul(u,p,e.order,h),C.add(h,f,h),C.reduce(h,e.order,h),C.modInvCT(d,e.order,m),C.modMul(h,m,e.order,h);var y=g.padFront(n(u,!0,o),0,o),b=g.padFront(n(h,!0,o),0,o);return y.concat(b)}return{createKey:function(e){return s(t(e))},generateKey:l,sign:u,verify:function(n,o,s){var l=Math.floor(o.length/2),u=t(o.slice(0,l)),d=t(o.slice(l)),p=c(s.slice()),f=[],h=[],m=new w.EllipticCurvePointFp(e,!1,t(n.x),t(n.y),null,!1);C.modInv(d,e.order,d),C.modMul(p,d,e.order,f),C.modMul(u,d,e.order,h);var g=e.allocatePointStorage(),v=e.allocatePointStorage();return a?(C.add(f,f,f),C.add(f,f,f),C.reduce(f,e.order,f),r.scalarMultiply(f,e.generator,g,!1),r.scalarMultiply(h,m,v,!1),r.convertToExtendedProjective(g),r.convertToExtendedProjective(v),r.add(v,g,g),r.normalize(g)):(r.scalarMultiply(f,e.generator,g),r.scalarMultiply(h,m,v),r.convertToJacobianForm(g),r.convertToMontgomeryForm(g),r.convertToMontgomeryForm(v),r.mixedAdd(g,v,g),r.convertToAffineForm(g),r.convertToStandardForm(g)),!g.isInfinity&&(C.reduce(g.x,e.order,g.x),0===C.compareDigits(g.x,u))}}};void 0!==o&&(ec.sign=function(e){g.checkParam(e.algorithm.hash,"Object","algorithm.hash"),g.checkParam(e.algorithm.hash.name,"String","algorithm.hash.name"),g.checkParam(e.keyHandle.algorithm.namedCurve,"String","p.keyHandle.algorithm.namedCurve");var t=e.algorithm.hash.name,n=w.createCurve(e.keyHandle.algorithm.namedCurve.toUpperCase()),r=m[t.toUpperCase()]().computeHash(e.buffer);return ec(n).sign(e.keyData,r)},ec.verify=function(e){var t=e.algorithm.hash.name,n=w.createCurve(e.keyHandle.algorithm.namedCurve.toUpperCase()),r=m[t.toUpperCase()]().computeHash(e.buffer);return ec(n).verify(e.keyData,e.signature,r)},ec.generateKey=function(e){var t=ec(w.createCurve(e.algorithm.namedCurve.toUpperCase())).generateKey(),n=C.digitsToBytes;function r(e){return e}var o=r(n(t.publicKey.x)),a=r(n(t.publicKey.y)),s=r(n(t.privateKey));return{type:"keyPairGeneration",keyPair:{publicKey:{keyData:{x:o,y:a},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:["verify"],type:"public"}},privateKey:{keyData:{x:o,y:a,d:s},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:["sign"],type:"private"}}}}},ec.importKey=function(e){if("raw"===e.format){var t=e.keyData;if(4!==t[0])throw Error("DataError");var n=~~((t.length-1)/2),r=e.algorithm.namedCurve.toUpperCase(),o=t.slice(1,n+1),a=t.slice(n+1);if(!1===w.validatePoint(r,o,a))throw Error("DataError");return{type:"keyImport",keyData:{x:o,y:a},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("jwk"===e.format){var s=b.jwkToKey(e.keyData,e.algorithm,["x","y","d","crv"]);if(s.d&&(!s.x||!s.y)){var l=ec.curves[e.algorithm.namedCurve](),c=ec(l).computePublicKey(s.d);s.x=c.x,s.y=c.y}if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||s.extractable,usages:e.usages,type:s.d?"private":"public"}}}if("spki"===e.format){var u={"P-256":32,"P-384":48,"P-521":66},d=u[e.algorithm.namedCurve],p=v.parse(e.keyData);if(null==p)throw Error("invalid key data.");var f=p[1],h=f.data.slice(f.header+1);if(null==h||4!==h.shift()||h.length!==2*d)throw Error("invalid key data.");var o=h.slice(0,d),a=h.slice(d);if(!g.isBytes(o)||!g.isBytes(a))throw Error("invalid key data.");var s={x:o,y:a};if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("pkcs8"===e.format){var u={"P-256":32,"P-384":48,"P-521":66},d=u[e.algorithm.namedCurve],p=v.parse(e.keyData);if(null==p)throw Error("invalid key data.");var m=p[2],h=v.parse(m.data.slice(m.header));if(null==h)throw Error("invalid key data.");var y=h[1].data.slice(h[1].header),f=v.parse(h[2][0].data),h=f.data.slice(f.header+1);if(null==h||4!==h.shift()||h.length!==2*d)throw Error("invalid key data.");var o=h.slice(0,d),a=h.slice(d);if(!g.isBytes(o)||!g.isBytes(a))throw Error("invalid key data.");var s={x:o,y:a,d:y};if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}},ec.exportKey=function(e){var t="1.2.840.10045.2.1",n={"P-256":"1.2.840.10045.3.1.7 ","P-384":"1.3.132.0.34","P-521":"1.3.132.0.35"};if("raw"===e.format&&"public"===e.keyHandle.type)return{type:"keyExport",keyHandle:[4].concat(e.keyData.x,e.keyData.y)};if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format){var r=v.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}]});return{type:"keyExport",keyHandle:r}}if("pkcs8"===e.format){var r=v.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:1},{"OCTET STRING":e.keyData.d},{APPLICATION:[{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}],tag:1}]}}]});return{type:"keyExport",keyHandle:r}}throw Error("unsupported export format.")},o.register("sign","ECDSA",ec.sign),o.register("verify","ECDSA",ec.verify),o.register("generateKey","ECDSA",ec.generateKey),o.register("importKey","ECDSA",ec.importKey),o.register("exportKey","ECDSA",ec.exportKey));var eu=g;n=function(){function e(){var e;return{postMessage:function(t){try{t.workerid=this.id,e=y.jsCryptoRunner({data:t})}catch(e){this.onerror({data:e,type:"error"});return}this.onmessage({data:e})},onmessage:null,onerror:null,terminate:function(){}}}var t=function(e){return{process:function(t){return e.process(t)},finish:function(){return e.finish()},abort:function(){return e.abort()}}};function n(e){var t,n,r;return{dispatchEvent:function(o){if("error"===o.type){r&&(o.data&&(o.data.stack="Error")&&(o.data.code=0),r.apply(t,[o.data||o]));return}"process"===o.data.type||"finish"===o.data.type?e(o.data.result,!0):(this.result=e(o.data),n.apply(t,[this.result]))},promise:t=new Promise(function(e,t){n=e,r=t}),result:null}}function r(){return n(function(e){var t,n;switch(e.type){case"keyGeneration":case"keyImport":case"keyDerive":if(e.keyPair)return u.add(e.keyPair.publicKey.keyHandle,e.keyPair.publicKey.keyData),u.add(e.keyPair.privateKey.keyHandle,e.keyPair.privateKey.keyData),{publicKey:e.keyPair.publicKey.keyHandle,privateKey:e.keyPair.privateKey.keyHandle};return u.add(e.keyHandle,e.keyData),e.keyHandle;case"keyExport":return e.keyHandle;case"keyPairGeneration":return n=e.keyPair.privateKey,t=e.keyPair.publicKey,u.add(t.keyHandle,t.keyData),u.add(n.keyHandle,n.keyData),{publicKey:t.keyHandle,privateKey:n.keyHandle};default:throw Error("Unknown key operation")}})}function s(e){return d&&e.pop?new Uint8Array(e).buffer:e}function c(e){var t=[],r=n(function(e,n){return(e=e&&s(e),n)?void t.resolve(e):e});return r.stream=e.algorithm.stream,t.add=function(e){var n,r,o=new Promise(function(e,t){n=e,r=t});return o.label=e,t.push({resolve:n,reject:r,promise:o}),o},t.resolve=function(e){var n=t.shift();n.resolve.apply(n.promise,[e])},r.process=function(n){return e.operationSubType="process",e.buffer=eu.toArray(n),p.continueJob(this,eu.clone(e)),t.add("process")},r.finish=function(){return e.operationSubType="finish",e.buffer=[],p.continueJob(this,eu.clone(e)),t.add("finish")},r.abort=function(){p.abortJob(this)},r.algorithm=e.algorithm||null,r.key=e.keyHandle||null,r}var u=[];u.add=function(e,t){u.push({keyHandle:e,keyData:t})},u.remove=function(e){for(var t=0;t<u.length;t+=1)if(u[t].keyHandle===e){u=u.splice(t,1);return}},u.lookup=function(e){for(var t=0;t<u.length;t+=1)if(u[t].keyHandle===e)return u[t].keyData;return null};var p=function(){var t=12,n=2,r=[],o=[],s=0,c=0,u=[],d="u"<typeof setImmediate?setTimeout:setImmediate;function p(){u.shift()()}function h(e){u.push(e),d(p,0)}var m=l?"available":"unavailable";function g(){v(!f);for(var e=0;e<r.length;e++)if(!r[e].busy)return r[e];return null}function v(e){for(var t=r.length-1;t>=0;t-=1)r[t].isWebWorker===e&&(r[t].terminate(),r.splice(t,1))}function y(){for(var e=0,t=0;t<r.length;t++)r[t].busy||(e+=1);return e}function b(e){r.push(e)}function x(e){for(var t=0;t<r.length;t++)if(r[t]===e){e.terminate(),r.splice(t,1);return}}function C(e){for(var t=0;t<r.length;t++)if(r[t].operation===e)return r[t];return null}function k(e,t){o.push({operation:e,data:t,id:s++})}function w(e){if(e.busy=!1,f)if(o.length>0){var t,r=o.shift();if(P(r.operation,r.data),"process"===r.data.operationSubType){for(t=0;t<o.length;t++)r.operation===o[t].operation&&P(o[t].operation,o[t].data);for(t=o.length-1;t>=0;t--)r.operation===o[t].operation&&o.splice(t,1)}}else y()>n&&x(e)}function S(t){var n;if("pending"===m)throw Error("Creating new worker while workerstatus=pending");if("ready"===m)try{(n=new Worker(a)).postMessage({prngSeed:Y.getBytes(48)}),n.isWebWorker=!0}catch(t){f=!1,m="failed",n.terminate(),(n=e()).isWebWorker=!1}else(n=e()).isWebWorker=!1;return n.operation=t,n.id=c++,n.busy=!1,n.onmessage=function(e){if(!0!==e.data.initialized){var t=n.operation;e.target||(e.target={data:n.data});for(var r=0;r<o.length;r++)if(o[r].operation===n.operation){var a=o[r];o.splice(r,1),I(n,a.data);return}e.data.hasOwnProperty("type")&&"process"===e.data.type||w(n),t.dispatchEvent(e)}},n.onerror=function(e){var t=n.operation;w(n),t.dispatchEvent(e)},b(n),n}function _(e){if("unavailable"===m)return void eu.consoleLog("web workers not available in this browser.");if((!0!==e||"ready"!==m)&&(!1!==e||"available"!==m)){if(!1===e&&"ready"===m){f=!1,m="available",eu.consoleLog("web workers disabled.");return}if("pending"!==m){m="pending";var t=new Worker(a);t.addEventListener("message",n,!1),t.addEventListener("error",n,!1),t.postMessage({prngSeed:Y.getBytes(48)})}}function n(e){var r=!!(e.data&&!0===e.data.initialized);if(t.removeEventListener("message",n,!1),t.removeEventListener("error",n,!1),t.terminate(),m=r?"ready":"failed",f=r,eu.consoleLog("web worker initialization "+(r?"succeeded. Now using web workers.":"failed. running synchronously."+(e.message||""))),o.length>0){var a=o.shift();E(a.operation,a.data)}}}function E(e,n){var o=null;if("pending"===m||(o=g(),f&&null===o&&r.length>=t))return void k(e,n);if(null===o&&(o=S(e)),null===o)throw k(e,n),Error("could not create new worker");o.operation=e,o.busy=!0,n.workerid=o.id,I(o,n)}function P(e,t){var n=C(e);n?I(n,t):E(e,t)}function I(e,t){t.workerid=e.id,f?e.postMessage(t):h(function(t){return function(){return e.postMessage(t)}}(t))}return{runJob:E,continueJob:P,abortJob:function(e){var t=C(e);t&&x(t)},useWebWorkers:_}}();function h(e,t){if(!o.exists(e,t))throw Error("unsupported algorithm")}var m=[{name:"algorithm",type:"Object",required:!0},{name:"keyHandle",type:"Object",required:!0},{name:"buffer",type:"Array",required:!1},{name:"signature",type:"Array",required:!0},{name:"format",type:"String",required:!0},{name:"keyData",type:"Object",required:!0},{name:"extractable",type:"Boolean",required:!1},{name:"usages",type:"Array",required:!1},{name:"derivedKeyType",type:"Object",required:!0},{name:"length",type:"Number",required:!1},{name:"extractable",type:"Boolean",required:!0},{name:"usages",type:"Array",required:!0},{name:"keyData",type:"Array",required:!0}],v={encrypt:[0,1,2],decrypt:[0,1,2],sign:[0,1,2],verify:[0,1,3,2],digest:[0,2],generateKey:[0,6,7],importKeyRaw:[4,12,0,10,11],importKeyJwk:[4,5,0,10,11],exportKey:[0,4,1,6,7],deriveKey:[0,1,8,6,7],deriveBits:[0,1,9],wrapKey:[1,1,0],unwrapKey:[2,0,1,6,7]};function b(e){var t=u.lookup(e);if(!t)throw Error("key not found");return t}function x(e,t){var n,r,o,a,s={operationType:e};for("importKey"===e&&("raw"===t[0]||"spki"===t[0]||"pkcs8"===t[0])&&(e="importKeyRaw"),"importKey"===e&&"jwk"===t[0]&&(e="importKeyJwk"),n=v[e],a=0;a<n.length;a+=1){if(r=m[n[a]],null==(o=t[a]))if(!r.required)continue;else throw Error(r.name);if(o.subarray&&(o=eu.toArray(o)),"ArrayBuffer"===eu.getObjectType(o)&&(o=eu.toArray(o)),g.getObjectType(o)!==r.type)throw Error(r.name);"algorithm"===r.name&&(o.name=o.name.toUpperCase(),o.iv&&(o.iv=eu.toArray(o.iv)),o.publicExponent&&(o.publicExponent=eu.toArray(o.publicExponent)),o.salt&&(o.salt=eu.toArray(o.salt)),o.additionalData&&(o.additionalData=eu.toArray(o.additionalData)),o.hash&&!o.hash.name&&"String"===eu.getObjectType(o.hash)&&(o.hash={name:o.hash})),s.hasOwnProperty(r.name)?s[r.name+"1"]=o:s[r.name]=o}return s}function C(e,n,o){var a=x(e,n);h(e,a.algorithm.name),a.keyHandle&&(a.keyData=b(a.keyHandle)),a.keyHandle1&&(a.keyData1=b(a.keyHandle1)),a.algorithm&&a.algorithm.public&&(a.additionalKeyData=b(a.algorithm.public));var s=o?r(a):c(a);return((o||a.buffer||"deriveBits"===e||"wrapKey"===e)&&p.runJob(s,a),s.stream)?Promise.resolve(t(s)):s.promise}return{publicMethods:{encrypt:function(e,t,n){return C("encrypt",arguments,0)},decrypt:function(e,t,n){return C("decrypt",arguments,0)},sign:function(e,t,n){return C("sign",arguments,0)},verify:function(e,t,n,r){return C("verify",arguments,0)},digest:function(e,t){return C("digest",arguments,0)},generateKey:function(e,t,n){return C("generateKey",arguments,1)},deriveKey:function(e,t,n,r,o){var a=this.deriveBits,s=this.importKey;return new Promise(function(l,c){var u;switch(n.name.toUpperCase()){case"AES-CBC":case"AES-GCM":u=n.length;break;case"HMAC":u=n.length||({"SHA-1":512,"SHA-224":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024})[n.hash.name.toUpperCase()];break;default:c(Error("No Supported"));return}a(e,t,u).then(function(e){return s("raw",e,n,r,o)}).then(function(e){l(e)}).catch(function(e){c(e)})})},deriveBits:function(e,t,n){return C("deriveBits",arguments,0)},importKey:function(e,t,n,r,o){return C("importKey",arguments,1)},exportKey:function(e,t){return C("exportKey",[t.algorithm,e,t],1)},wrapKey:function(e,t,n,r){var o=this.encrypt,a=this.exportKey;return new Promise(function(s,l){!1===t.extractable||0>n.usages.indexOf("wrapKey")||n.algorithm.name.toUpperCase()!==r.name?l(Error("InvalidAccessError")):a(e,t).then(function(t){return console.log(eu.toBase64(t)),o(r,n,"jwk"===e?eu.stringToBytes(JSON.stringify(t,null,0)):t)}).then(function(e){s(e)}).catch(function(e){l(e)})})},unwrapKey:function(e,t,n,r,o,a,s){var l=this.decrypt,c=this.importKey;return new Promise(function(u,d){0>n.usages.indexOf("unwrapKey")||n.algorithm.name.toUpperCase()!==r.name?d(Error("InvalidAccessError")):l(r,n,t).then(function(t){return c(e,"jwk"===e?JSON.parse(eu.bytesToString(t)):t,o,a,s)}).then(function(e){u(e)}).catch(function(e){d(e)})})}},internalMethods:{useWebWorkers:p.useWebWorkers}}}();var ed=function(){var e=g;return{wrapKey:function(t){var n=en(t.keyData1,t.keyHandle1.algorithm.name,m["SHA-1"])(),r=128,o=b.keyToJwkOld(t.keyHandle,t.keyData),a={alg:t.keyHandle1.algorithm.name.toUpperCase(),enc:"A128GCM"},s=e.toBase64(JSON.stringify(a),!0),l=Y.getBytes(32),c=n.encrypt(l),u=e.toBase64(c,!0),d=Y.getBytes(12),p=e.toBase64(d,!0),f=s.concat(".",u,".",p),h=W(z.aes(l));h.init(d,e.stringToBytes(f),r);var g=h.encrypt(o),v=g.slice(-(r/8)),y={recipients:[{header:s,encrypted_key:u,integrity_value:e.toBase64(v,!0)}],initialization_vector:p,ciphertext:e.toBase64(g.slice(0,g.length-v.length),!0)};return e.stringToBytes(JSON.stringify(y))},unwrapKey:function(t){var n=e.fromBase64,r=JSON.parse(String.fromCharCode.apply(null,t.buffer));e.fromBase64(r.recipients[0].header);var o=n(r.recipients[0].encrypted_key),a=n(r.recipients[0].integrity_value),s=n(r.initialization_vector),l=n(r.ciphertext),c=m["SHA-1"](),u=en(t.keyData,t.keyHandle.algorithm.name,c).decrypt(o),d=r.recipients[0].header.concat(".",r.recipients[0].encrypted_key,".",r.initialization_vector),p=W(z.aes(u));p.init(s,e.stringToBytes(d),128);var f=p.decrypt(l,a),h=b.jwkToKey(f,t.algorithm,["k"]);return{type:"keyImport",keyData:h.k,keyHandle:{algorithm:{name:t.algorithm.name},extractable:t.extractable||h.extractable,usages:t.usages,type:"secret"}}}}}();void 0!==o&&(o.register("wrapKey","AES-GCM",ed.wrapKey),o.register("unwrapKey","AES-CBC",ed.unwrapKey));var ep={subtle:n?n.publicMethods:null,getRandomValues:function(e){var t,n=Y.getBytes(e.length);for(t=0;t<e.length;t+=1)e[t]=n[t];return e},initPrng:function(e){var t=Object.prototype.toString.call(e);if("[object Array]"!==t&&"[object Uint8Array]"!==t)throw Error("entropyData must be a Array or Uint8Array");r&&r.reseed(e),Y.reseed(r.read(48)),s=!0},toBase64:function(e,t){return g.toBase64(e,t)},fromBase64:function(e){return g.fromBase64(e)},textToBytes:function(e){return g.stringToBytes(e)},bytesToText:function(e){return g.bytesToString(e)},asn1:v,url:a,version:t,useWebWorkers:function(e){return n?n.internalMethods.useWebWorkers(e):null}};(r=r||new Q(e)).init();var ef=r.read(48);return Y.init(ef),ep}()}!function(e){e.default="default",e.black="black",e.white="white"}(e$||(e$={})),function(e){e.black="black",e.white="white",e.whiteOutline="white-outline"}(eQ||(eQ={})),function(e){e.book="book",e.buy="buy",e.checkout="checkout",e.donate="donate",e.order="order",e.pay="pay",e.plain="plain",e.subscribe="subscribe"}(eJ||(eJ={})),function(e){e.book="book",e.buy="buy",e.checkOut="check-out",e.donate="donate",e.order="order",e.pay="pay",e.plain="plain",e.subscribe="subscribe"}(eZ||(eZ={})),function(e){e[e.PayPal=0]="PayPal",e[e.Tokenization=1]="Tokenization"}(e0||(e0={}));var rJ=Object.freeze({__proto__:null,msrCrypto:rQ});function rZ(e){var t=window.crypto||window.msrCrypto||e;v()&&(t=window.msCrypto);var n=t.subtle,r=function(e){return t.getRandomValues(e)},o={name:"RSA-OAEP",hash:{name:"SHA-256"}},a=void 0;function s(e,t,r,s){f(e.dataProtection.parameters.publicKey);var c=e.token_set||void 0,u=void 0,d="jwk",p="Public Jwk key import failure",h=v(),m="encrypt";if(h){var g=y(JSON.stringify(a)),b=n.importKey(d,g,o,!0,[m]);b.onerror=function(e){s(p+" in IE11: "+e.target.result)},b.oncomplete=function(e){l(u=e.target.result,t,c,r,s,h)}}else n.importKey(d,a,o,!0,[m]).then(function(e){l(u=e,t,c,r,s,h)}).catch(function(e){s(p+": "+e)})}function l(e,t,n,o,s,l){var u=r(new Uint8Array(32)),d=r(new Uint8Array(12)),p=y(JSON.stringify({alg:"RSA-OAEP-256",enc:"A256GCM",typ:"JOSE",kid:a.kid,uuid:m(),iat:Math.floor(Date.now()/1e3).toString()})),f=y(C(p,!0));c(e,t,{aesGcmParams:{name:"AES-GCM",iv:d,additionalData:f,tagLength:128},rsaParams:{name:"RSA-OAEP"},serializedHeader:p,aesKeyData:u,nonce:d,aad:f},n,o,s,l)}function c(e,t,n,r,o,a,s){var l=y(t,a);s?d(e,l,n,r,o,a):p(e,l,n,r,o,a)}function u(e,t,n,r,o){var s=e.slice(0,e.byteLength-16),l=e.slice(e.byteLength-16);r({header:g(n.serializedHeader,o),key_version:a.kid,session_key:g(t,o),iv:g(n.nonce,o),payload:g(s,o),tag:g(l,o),authenticated_data:g(n.aad,o)})}function d(e,t,r,o,a,s){var l=n.importKey("raw",r.aesKeyData,{name:"AES-GCM"},!0,["encrypt"]);l.onerror=function(e){s(keyImportFailureMessage+" in IE11: "+e.target.result)},l.oncomplete=function(l){var c=l.target.result,d=n.encrypt(r.aesGcmParams,c,t);d.onerror=function(e){s(o+" Encrypt data failure in IE11: "+e.target.result)},d.oncomplete=function(t){var l=n.encrypt(r.rsaParams,e,r.aesKeyData);l.onerror=function(e){s(o+" Encrypt key failure in IE11: "+e.target.result)},l.oncomplete=function(e){u(t,e,r,a,s)}}}}function p(e,t,r,o,a,s){n.importKey("raw",r.aesKeyData,{name:"AES-GCM"},!0,["encrypt"]).then(function(l){n.encrypt(r.aesGcmParams,l,t).then(function(t){t.slice(0,t.byteLength-16),t.slice(t.byteLength-16),n.encrypt(r.rsaParams,e,r.aesKeyData).then(function(e){u(t,e,r,a,s)}).catch(function(e){s(o+" Encrypt key failure: "+e)})}).catch(function(e){s(o+"Encrypt data failure: "+e)})}).catch(function(e){s(o+"Encrypt data failure: "+e)})}function f(e){a=JSON.parse(e)}function h(){return r(new Uint16Array(1))[0].toString(16)}function m(){return h()+h()+"-"+h()+"-"+h()+"-"+h()+"-"+h()+h()+h()}function g(e,t){return C(y(e,t))}function v(){var e;return(null==(e=null==navigator?void 0:navigator.userAgent)?void 0:e.indexOf("rv:11.0"))>-1&&void 0!=window.msCrypto}function y(e,t){var n="u">typeof Uint8Array,r=Object.prototype.toString.call(e);switch(r=r.substring(8,r.length-1)){case"Array":return n?new Uint8Array(e):e;case"ArrayBuffer":case"Uint16Array":case"Uint32Array":return new Uint8Array(e);case"Uint8Array":return e;case"String":for(var o=n?new Uint8Array(e.length):Array(e.length),a=0;a<e.length;a+=1)o[a]=e.charCodeAt(a);return o;default:t("toSupportedArray : unsupported data type "+r)}}var b="u">typeof btoa,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function C(e,t){var n,r,o,a,s,l,c,u,d="";if(t||(t=!1),(e.pop||e.subarray)&&(e=String.fromCharCode.apply(null,e)),b)d=btoa(e);else for(u=0;u<e.length;u+=3)n=e.charCodeAt(u),r=e.charCodeAt(u+1),o=e.charCodeAt(u+2),a=n>>2,s=(3&n)<<4|r>>4,l=(15&r)<<2|o>>6,c=63&o,isNaN(r)?l=c=64:isNaN(o)&&(c=64),d=d+x.charAt(a)+x.charAt(s)+x.charAt(l)+x.charAt(c);return t?d.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,""):d}return{Encrypt:function(e,t,n,r){s(e,t,function(e){n(e)},function(e){r(e)})},SetPublicKey:f,EncryptedOutput:void 0}}var r0=Object.freeze({__proto__:null,TokenEncrypt:rZ}),r1=new(function(){return function(){var e=this;this.doServerTokenization=function(e,t,n,r,o){return new Promise(function(a,s){var c=rf.virtualEndpoints.tokenization,u=t_.buildUrl(rf.getServiceEndpoint(c.endpoint),[t,"getToken"]);return rA.post(e,!0,u,rA.getDefaultHttpHeaders(e),'{ "data": "'+n+'" }',function(e){a({data:e.data})},function(e){(e=e||{status:l.Fail}).failureObject=e.failureObject||{},e.failureObject.code=T.tokenizationFailed;var t=" ";if(rp.isString(n))for(var r=0;r<n.length;r++){var o=n.charCodeAt(r);o>=48&&o<=57?t+="d":t+="c"}else t=" n_s";e.failureObject.message=e.failureObject.message?e.failureObject.message+t:t,a({error:new nt.serverError(nn.tokenizationFailed,u,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage+t])})},r,c.operation,c.description,!1,o).catch(function(e){a({error:new nt.unexpectedError(nn.tokenizationFailed,[e.message])})})})},this.serverTokenization=function(t,n,r,o,a){var s;return r.propertyTokenizing(n,t_.buildUrl(rf.getServiceEndpoint(rf.virtualEndpoints.tokenization.endpoint),[t.token_set,"getToken"])),e.doServerTokenization(r,t.token_set,o[n],a,null==(s=null==t?void 0:t.dataProtection)?void 0:s.fetchConfig).then(function(e){return e.error||(o[n]=e.data,r.propertyTokenized(n)),{error:e.error}})},this.doFileUpload=function(e,t,n,r,o,a){var s=n.hmacContext;return new Promise(function(n,c){var u=rf.virtualEndpoints.payeeTaxProfile;return rA.post(e,!0,o,rA.getPayeeFileUploadHttpHeaders(e,s.userCredential),t,function(e){n({data:e.filename})},function(e){(e=e||{status:l.Fail}).failureObject=e.failureObject||{},e.failureObject.code=T.fileUploadFailed,n({error:new nt.serverError(nn.fileUploadFailure,o,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage])})},r,u.operation,u.description,!1,a).catch(function(e){n({error:new nt.unexpectedError(nn.fileUploadFailure,[e.message])})})})},this.composePayeeFileUploadPayload=function(e,t){var n=new FormData;return n.append("file",e[t]),n.append("payeeid",e.payee_id),n.append("taxprofileid",e.tax_profile_id),n},this.fileUpload=function(t,n,r,o,a,s,l){var c,u=e.composePayeeFileUploadPayload(o,n),d=t_.createFromTemplate(l);return r.fileUploading(n,d),e.doFileUpload(r,u,a,s,d,null==(c=null==t?void 0:t.dataProtection)?void 0:c.fetchConfig).then(function(e){return e.error||(o[n]=e.data,r.fileUploaded(n)),{error:e.error}})},this.msrCryptoEncryption=function(e,t,n,r){n.propertyTokenizing(t,"");var o,a,s,l,c=e&&e.dataProtection&&e.dataProtection.parameters;if("u">typeof msrCrypto||c&&!c.encryptionLibrary)a=rv();else{s=c&&c.encryptionLibrary||void 0;var u=c&&c.encryptionLibraryUrl||t_.buildUrl(rf.getServiceEndpoint(rf.virtualEndpoints.msrCryptoJS.endpoint),[s]);a=rA.loadScript(u)}if("u">typeof encryption)o=rv();else{l=c&&c.encryptionScript||void 0;var d=c&&c.encryptionScriptUrl||t_.buildUrl(rf.getServiceEndpoint(rf.virtualEndpoints.encryptJS.endpoint),[l]);o=rA.loadScript(d)}return a.then(function(){return o.then(function(){return"u"<typeof encryption?{error:new nt.unexpectedError(nn.msrEncryptionFailed,["Fail to initialize "+l+" instance"])}:new Promise(function(o,a){encryption.Encrypt(e,r[t],function(e){r[t]=e,n.propertyTokenized(t),o({})},function(e){a(e)})}).catch(function(e){var t="Encryption failure: "+JSON.stringify(e);return{error:new nt.serverError(nn.msrEncryptionFailed,null,null,null,t,null,[t])}})}).catch(function(e){var t="Fail to download "+l+" script file: "+JSON.stringify(e);return{error:new nt.serverError(nn.msrEncryptionFailed,null,null,null,t,null,[t])}})}).catch(function(e){var t="Fail to download "+s+" script file: "+JSON.stringify(e);return{error:new nt.serverError(nn.msrEncryptionFailed,null,null,null,t,null,[t])}})},this.doTokenizeMsrCryptoEncryption=function(t,n,r,o,a,s){var c,u,d,p=rv(),f=rv(),h=t&&t.dataProtection&&t.dataProtection.parameters;if(!s)if(h&&h.encryptionFunction)e.localMsrCryptoInstance||(e.localMsrCryptoInstance=rQ(window)),e.localEncryptionInstance||(e.localEncryptionInstance=rZ(e.localMsrCryptoInstance)),d=e.localEncryptionInstance;else{if("u">typeof msrCrypto||h&&!h.encryptionLibrary)f=rv();else{c=h&&h.encryptionLibrary||void 0;var m=h&&h.encryptionLibraryUrl||t_.buildUrl(rf.getServiceEndpoint(rf.virtualEndpoints.msrCryptoJS.endpoint),[c]);f=rA.loadScript(m)}if("u">typeof encryption)p=rv();else{u=h&&h.encryptionScript||void 0;var g=h&&h.encryptionScriptUrl||t_.buildUrl(rf.getServiceEndpoint(rf.virtualEndpoints.encryptJS.endpoint),[u]);p=rA.loadScript(g).then(function(){if("u"<typeof encryption)return{error:new nt.unexpectedError(nn.msrEncryptionFailed,["Fail to initialize "+u+" instance"])};d=encryption})}}return f.then(function(){return p.then(function(){return new Promise(function(e,c){var u,p=rf.virtualEndpoints.tokenization,f=t_.buildUrl(rf.getServiceEndpoint(p.endpoint),[r,"getToken"]);return rA.post(n,!0,f,rA.getDefaultHttpHeaders(n),'{ "data": "'+o+'" }',function(t){e({data:t.data})},function(t){(t=t||{status:l.Fail}).failureObject=t.failureObject||{},t.failureObject.code=T.tokenizationFailed;var n=" ";if(rp.isString(o))for(var r=0;r<o.length;r++){var a=o.charCodeAt(r);a>=48&&a<=57?n+="d":n+="c"}else n=" n_s";t.failureObject.message=t.failureObject.message?t.failureObject.message+n:n,e({error:new nt.serverError(nn.tokenizationFailed,f,t.failureObject,t.httpStatus,t.httpStatusText,void 0,[t.errorMessage+n])})},a,p.operation,p.description,!1,null==(u=t.dataProtection)?void 0:u.fetchConfig,function(){return new Promise(function(e,n){s?s.encrypt(t,t.token_set,o).then(function(t){e({success:!0,headers:{"content-type":"application/json","x-ms-requestor":"Microsoft",traceparent:rd.guid()},payload:"string"!=typeof t?JSON.stringify(t):t})}).catch(function(e){n(e)}):d.Encrypt(t,o,function(t){e({success:!0,headers:{"content-type":"application/json","x-ms-requestor":"Microsoft",traceparent:rd.guid()},payload:JSON.stringify(t)})},function(e){n(e)})})}).catch(function(t){e({error:new nt.unexpectedError(nn.tokenizationFailed,[t.message])})})}).catch(function(e){var t="Encryption and tokenize failure: "+JSON.stringify(e);return{error:new nt.serverError(nn.msrEncryptionFailed,null,null,null,t,null,[t])}})}).catch(function(e){var t="Fail to download "+u+" script file: "+JSON.stringify(e);return{error:new nt.serverError(nn.msrEncryptionFailed,null,null,null,t,null,[t])}})}).catch(function(e){var t="Fail to download "+c+" script file: "+JSON.stringify(e);return{error:new nt.serverError(nn.msrEncryptionFailed,null,null,null,t,null,[t])}})},this.tokenizeMsrCryptoEncryption=function(t,n,r,o,a,s){r.propertyTokenizing(n,"");var l=o[n];return e.doTokenizeMsrCryptoEncryption(t,r,t.token_set,l,a,s).then(function(e){return e.error||(o[n]=e.data,r.propertyTokenized(n)),{error:e.error}})},this.payPalHECEncryption=function(e,t,n,r,o){if(n.propertyTokenizing(t,""),"u">typeof PayPalCrypto)a=rv();else{var a,s=e&&e.dataProtection&&e.dataProtection.parameters,l=s&&s.encryptionScriptUrl;if(!l){var c=s&&s.encryptionScript||"paypalEncrypt.js";l=t_.buildUrl(rf.getServiceEndpoint(rf.virtualEndpoints.paypalEncryptJS.endpoint),[c])}a=rA.loadScript(l)}var u=e;return a.then(function(){return"u"<typeof PayPalCrypto?{error:new nt.unexpectedError(nn.hmacError,["Fail to initialize PayPal encryption instance"])}:new Promise(function(e,a){PayPalCrypto.Encrypt(u,o,r[t],function(o){r[t]=btoa(String.fromCharCode.apply(null,o)),n.propertyTokenized(t),e({})})})}).catch(function(e){var t="Fail to download paypal encryption script file\n "+JSON.stringify(e);return{error:new nt.serverError(nn.tokenizationFailed,null,null,null,t,null,[t])}})},this.customEncryption=function(t,n,r,o,a,s,l){r.propertyTokenizing(n,"");var c=t;return new Promise(function(t,l){return tn(e,void 0,void 0,function(){var e;return tr(this,function(l){switch(l.label){case 0:return[4,s.encrypt(c,a,o[n])];case 1:return e=l.sent(),o[n]=e,r.propertyTokenized(n),t({}),[2]}})})}).catch(function(e){var t="".concat(l,"\n").concat(JSON.stringify(e));return{error:new nt.serverError(nn.tokenizationFailed,null,null,null,t,null,[t])}})},this.createHmacSignatureInternal=function(t,n,r,o,a,s,l,c){return t.init().then(function(u){if(u.error)return{error:u.error};var d,p=t.getRawKey(),f="Pan:"+a.pan+"|HMACKey:"+p+"|UserCredential:"+a.userCredential,h={keyToken:null,data:null},m=l&&l.dataProtection||{},g=m.protection_type,v=m.fetchConfig;return(d=g&&"HMACSIGNATUREMSRENCRYPT"===g.toUpperCase()?e.doTokenizeMsrCryptoEncryption(l,n,em.token,p,s,c):e.doServerTokenization(n,em.token,p,s,v)).then(function(e){return e.error?e:(h.keyToken=e.data,t.sign(f))}).then(function(e){return e.error||(h.data=e.data,o[em.userCredential]=a.userCredential,o[r]={algorithm:em.algorithm,keyToken:h.keyToken,data:h.data}),{error:e.error}})})},this.getHmacSignatureFromSecurePX=function(e,t,n,r){var o=n;return new Promise(function(n,a){o.createHmacSignature("Pan",r).then(function(o){t[em.userCredential]=r,t[e]=o.value,n({})}).catch(function(e){n({error:new nt.serverError(nn.hmacError,null,null,null,e.message,null,[e.message])})})})},this.createHmacSignature=function(t,n,r,o,a,s,l){var c=o.hmacContext;return rX.isSupported()&&c&&c.userCredential?c.panElement&&c.panElement.isSecureProperty()?e.getHmacSignatureFromSecurePX(n,r,c.panElement,c.userCredential):c.pan?e.createHmacSignatureInternal(new r$,t,n,r,c,a,s,l):(r[n]=null,rv({})):(r[n]=null,rv({}))},this.tokenizeUserInputDataInternal=function(t,n,r,o,a,s,l){var c=n.data_description,u=a||n.clientContext,d=[];for(var p in c){var f=c[p];if(tz(f)){var h=f&&f.length&&f[0];if(h){var m=e.tokenizeUserInputDataInternal(t,h,r[p],o,u,s,l);d=tl(tl([],d,!0),m,!0)}}else{if(f.displayOnly||o===eL.update&&!f.is_updatable)continue;if(f.token_set&&!f.token_set.startsWith(eI.tokenizationValuePrefix)||f.dataProtection)if(r.hasOwnProperty(p)){var g=f.dataProtection&&f.dataProtection.protection_type&&rp.isString(f.dataProtection.protection_type)&&f.dataProtection.protection_type.toUpperCase(),v=f.token_set&&rp.isString(f.token_set)&&f.token_set.toUpperCase();if("TOKENIZEMSRENCRYPT"===g)d.push(e.tokenizeMsrCryptoEncryption(f,p,t,r,o,null==l?void 0:l[e0.Tokenization]));else if("HMACSIGNATURE"===g)d.push(e.createHmacSignature(t,p,r,s,o,f));else if("HMACSIGNATUREMSRENCRYPT"===g)d.push(e.createHmacSignature(t,p,r,s,o,f,null==l?void 0:l[e0.Tokenization]));else if("MSRENCRYPT"===g)d.push(e.msrCryptoEncryption(f,p,t,r));else if("PAYPALENCRYPTION"===v)l&&l[e0.PayPal]?d.push(e.customEncryption(f,p,t,r,u,l[e0.PayPal],"HEC Encryption failed.")):d.push(e.payPalHECEncryption(f,p,t,r,u));else if("FILEUPLOAD"===v){var y=s.fileUploadUrls[p];d.push(e.fileUpload(f,p,t,r,s,o,y))}else d.push(e.serverTokenization(f,p,t,r,o))}else f.is_optional||d.push(rv({error:new nt.unexpectedError(nn.tokenizationError,["DataDescription contains a required field '"+p+"' which is missing in the userInputData passed in."])}))}}return d},this.getFileUploadUrlsInDisplayDescription=function(t,n){if(t&&(tT(t)&&(n[t.propertyName]=null==t?void 0:t.uploadUrl),tI(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getFileUploadUrlsInDisplayDescription(t.members[r],n)},this.getFileUploadUrlsInPidlDoc=function(t){var n={};if(t&&t.displayDescription&&t.displayDescription.length)for(var r=0;r<t.displayDescription.length;r++){var o=t.displayDescription[r];e.getFileUploadUrlsInDisplayDescription(o,n)}return n},this.tokenizeUserInputData=function(t,n,r,o,a,s,l){void 0===l&&(l=null);var c={hmacContext:{userCredential:a,pan:r&&r.details&&r.details.accountToken,panElement:l&&l.getPropertyModelElement("accountToken")}};c.fileUploadUrls=e.getFileUploadUrlsInPidlDoc(n);var u=e.tokenizeUserInputDataInternal(t,n,r,o,null,c,s);return rq.aggregateCommerceResults(u,function(e){return e.code===nn.tokenizationFailed.code?e:new nt.unexpectedError(nn.tokenizationFailed,[e.message])})}}}()),r2=function(){function e(e){var t=this;this.operationType=null,this.pidlDocManager=null,this.operationOptions=null,this.modelData=null,this.showMaskedValues=!1,this.secureFieldOriginOverride=null,this.computedStyles={style:{}},this.secureFieldResolved=!1,this.urls=null,this.userContext=null,this.displaySettings=null,this.stateManager=null,this.view=null,this.eventHub=null,this.hasPidlResolved=!1,this.postMessageTimeoutInMs=200,this.maxRetryPostMessage=5,this.pageIndex=0,this.validator=null,this.currentlyRenderedPidl=null,this.callbacks=null,this.transformers=null,this.localDataSourceProviders=null,this.serverErrorRetries={},this.suspendedNextAction=null,this.orchestratorId=-1,this.inputDataCache="",this.elements=[],this.resources=null,this.clientSettings=null,this.pidlInstanceContexts={},this.getClientSetting=function(e){if(t.clientSettings&&t.clientSettings[e])return t.clientSettings[e]},this.setOrchestratorId=function(e){t.orchestratorId=e},this.getSubmitButton=function(){var e=t.getCurrentPage().children,n=nl.findElement(e,function(e){if(n3(e)&&e.isSubmitGroup)return!0});if(!n&&!t.callbacks.submit)return t.eventHub.failure(new nt.unexpectedError(nn.missingSubmitActionInPidlDoc)),null;if(n){var r=nl.findElement([n],function(e){for(var t=!1,n=n0(e)&&e.pidlAction;!t&&n;)t=t||"submit"===n.type||n.type===k.successWithSelectedPidlAction||n.type===k.successWithPidlPayload||n.type===k.success||n.type===k.propertyBindingAction||n.type===k.mergeData,n=n.nextAction;return t});return n0(r)&&r}},this.setClientSettings=function(e){var n=e&&e.getResolvedOrFirstPidlDoc();n&&n.clientSettings&&(t.clientSettings=n.clientSettings)},this.getDataSources=function(e,n,r){var o=[];return(r=r||na.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc()))&&r.length&&r.forEach(function(r){for(var a in r)t.modelData.getDataSource(a)||o.push(t.getResourceData(a,r[a],e,n))}),Promise.all(o)},this.populateModelInternal=function(e){t.resources=new rN(t.pidlDocManager),t.setClientSettings(t.pidlDocManager);var n=ns.createModelElements(t.pidlDocManager,e);return ns.isErrorObject(n)?n.error:(n.warnings&&n.warnings.forEach(function(e){t.eventHub.error(e)}),t.elements=n.elements,t.pidlInstanceContexts=t.pidlDocManager.getPidlInstanceContexts(),t.updateSubmitGroupVisibility(t.elements,t.displaySettings.submitButtonBlock.show),t.setupSecureFields(),null)},this.getGlobalPreexistingData=function(){if(t.elements&&t.orchestratorId>=0){var e={};return nl.propertiesVisitorProcessingDataProperty(t.elements,function(e,n){if(e.usePreExistingValue){var r=e.getPropertyName(),o=rd.getGlobalPropertyValue(t.orchestratorId,r);void 0!==o&&(n[r]=o)}},e),e}},this.populateModel=function(e,n,r,o,a){var s=t.populateModelInternal(e);if(s)return t.eventHub.pageRendering(void 0),t.eventHub.failure(s),ry(s);t.eventHub.pageRendering(nl.getDefaultSuccessPidlPayload(t.elements,t.eventHub)),t.modelData.populate(t.elements),o&&t.modelData.retrieveFromCache(o,a);var l=[];(n=n?te(te({},n),t.getGlobalPreexistingData()):t.getGlobalPreexistingData())&&(r?l.push(t.transformResourceInstance(t.elements,n).then(function(){t.modelData.setInputInstance(t.elements,n),nl.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)})):t.modelData.setPrefillData(t,n,t.resources.constants,t.eventHub)),t.modelData.setPrefillDataInPartnerDataSource(n);var c=t.pidlDocManager.getPidlPayload();if(c){for(var u in c)u!==H.pidlInfo&&t.modelData.setDataSource(u,c[u]);nl.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}else l.push(t.getDataSources(e,{modelData:t.modelData,model:t}).then(function(){nl.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}));return Promise.all(l).then(function(){t.eventHub.modelUpdated(!0,!1)})},this.populateModelOnInternalCallback=function(e){var n=t.populateModelInternal(e);if(n)return t.eventHub.failure(n),n;t.modelData.updateModelElements(t.elements),nl.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub),t.setupSecureFields(),t.eventHub.modelUpdated(!1)},this.updateModelElementsOnInternalCallback=function(e,n){t.modelData.updateModelElements(t.elements);var r={modelData:t.modelData,resultData:{propertyUpdates:[]}};nl.updateModelElements(t.elements,r,t.eventHub);var o=[];if(r.resultData.propertyUpdates.length>0)for(var a=function(r,a){o.push(t.updatePropertyValue(r,a,e,n).then(function(){t.eventHub.propertyConditionallyUpdated(r.getPropertyName(),a)}))},s=0,l=r.resultData.propertyUpdates;s<l.length;s++){var c=l[s];a(c.propertyElement,c.propertyValue)}return Promise.all(o).then(function(){if(r.resultData.propertyUpdates.length>0){var e={modelData:t.modelData,resultData:{propertyUpdates:[]}};nl.updateModelElements(t.elements,e,t.eventHub)}t.eventHub.modelUpdated(!1)})},this.setupSecureFields=function(){var e=t.getCurrentPage();t.setupSecureFieldsRecursive(e)},this.setupSecureFieldsRecursive=function(e){if(e){var n=e.children;n&&n.forEach(function(e){if(null==e?void 0:e.isSecureProperty()){var n=e;n&&(n.validationPromise=function(){return t.postSecureFieldMessage(n.frameName,eP.validate,"")},n.submitPromise=function(e){return t.postSecureFieldMessage(n.frameName,eP.prepareForSubmit,{tokenSet:e})},n.createHmacSignature=function(e,r){return t.postSecureFieldMessage(n.frameName,eP.createHmacSignature,{tokenSet:e,userCredentials:r})},n.setFocus=function(){return t.postGuaranteedSecureFieldMessage(n.frameName,eP.applyFocus,"")})}else(null==e?void 0:e.type)===g.group&&t.setupSecureFieldsRecursive(e)})}},this.privateEventHandler=function(e,n){switch(e){case _.success:n&&n.operationType&&(n.operationType===eL.add||n.operationType===eL.update)&&t.pidlDocManager.clearCurrentPIDLResource();break;case _.failure:case _.gohome:t.clearAll()}},this.handleSuccess=function(e,n){t.pidlDocManager.clearCache(),e&&na.isPrimaryResource(t.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.modelData.setPrimaryResourceResponse(e,n);var r=e&&e.clientAction;if(r)return t.handleClientAction(r,e);var o=t.pidlDocManager.getNextPidlRef()||{href:null},a=o.href,s=o.fetchConfig;if(!a)return t.eventHub.success(t.createSuccessEventPayload()),rv();var l=t_.getRestMethodUrl(a,t.userContext,null,{modelData:t.modelData});t.pidlDocManager.downloadPidlDoc(t.eventHub,l,rA.getHttpHeaders(t.eventHub,t.userContext,null,a,{modelData:t.modelData}),void 0,void 0,s).then(function(e){return e&&e.type?t.handleClientAction(e):t.populate()},function(e){return t.eventHub.failure(rd.createServerError(nn.pidlDocDownloadFailed,l.url,e,[e.errorMessage])),ry(e)})},this.createSuccessEventPayload=function(){var e=t.modelData.getResourceResponse(),n={id:t.modelData.getPrimaryResourceResponseId(),operationType:t.operationType,response:e&&e.primary};return e&&e.secondary&&e.secondary.length&&(n.secondaryResponses=e.secondary),n},this.handleServerError=function(e,n,r){var o=e.targettedInnerErrors,a=void 0===o?[]:o,s=e.clientAction,l=rv();return(s&&(l=t.doErrorNextClientAction(new nt.serverError(nn.formSubmitFailed,n,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]),e.clientAction)),a.length)?l.then(function(){var n=[],o="";a.forEach(function(e){e.message===ee.empty&&(e.message="");var a=rp.isString(e.target)?e.target.split(","):[];a=na.translateErrorTargetsToDisplayProperties(a,r);var s=nl.getParentIfSame(t.elements,a),l=s&&s.children&&s.children.length===a.length&&s.layoutOrientation===eq.inline?s.displayId:null;rd.createPropertyErrors(a,l,nl.findFirstMatchingProperty(t.elements,a),e,n),o||a.length||(o=e.message)});var s=e.innerError,l=s&&s.message!==ee.empty?e.innerError.message:o;return t.clearElementEditStates(),t.handleRetryableError(new nt.formValidationFailedError(nn.formSubmissionFailedBadUserInput,l,n,[l]),!0)}):l.then(function(){return ry(new nt.serverError(nn.formSubmitFailed,n,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]))})},this.handleRetryableError=function(e,n){var r=rv(),o=e.errors;if(o&&o.length){var a=n?-1:t.pageIndex;e.errors.forEach(function(e){var n=e,o=t.getPropertyPageIndex(n.propertyName);a=-1===a||o>=0&&o<a?o:a;var s=t.getPropertyModelElement(n.propertyName);if(s&&s.onValidationFailed){var l=[];for(var c in s.onValidationFailed){var u=t.getPropertyModelElement(c);if(u){var d=s.onValidationFailed[c],p=d;rp.isString(d)&&(p=rd.getConditionalFieldValue(d,{modelData:t.modelData},s)),l.push(t.updatePropertyValue(u,p,Z.editing,!1))}}r=Promise.all(l).then(function(){return rv()})}}),a>=0&&(a<t.pageIndex||n)&&(r=r.then(function(){return t.moveToPageIndex(a)}))}return r.then(function(){return t.eventHub.error(e),{error:e}})},this.clearFlow=function(){var e=t.modelData.cacheFlow();return t.modelData.clearFlow(),t.elements=[],t.resources={},t.clientSettings=null,t.pageIndex=0,t.pidlDocManager.reset(),t.showMaskedValues=!1,t.currentlyRenderedPidl=null,t.serverErrorRetries={},e},this.clearElementEditStates=function(){t.elements.forEach(function(e){var n=t.modelData.getModelDataProperties([e]);for(var r in n)t.validator.clearElementEditState(n[r])})},this.handleRestartFlow=function(){var e=t.pageIndex,n=t.getCurrentPage()||{};return t.clearFlow(),t.pidlDocManager.setToLastDownloadedPidlDoc(t.eventHub),t.populate(null,!0,e,n)},this.handleRenderPidlClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"==typeof n[o]&&"details"!==o&&delete n[o];var a=t.pageIndex,s=t.getCurrentPage(),c=t.clearFlow(),u=rv();if(tz(e.context))t.pidlDocManager.setPidlDoc(t.eventHub,e.context);else if(tG(e.context)){var d=e.context.resourceActionContext,p=rd.getPidlOperationType(d.action);t.pidlDocManager.setOperationInfo({operationType:p}),u=t.downloadPidlDocument(t_.getPidlDocUrl(t.userContext,p,d.pidlDocInfo),d.pidlDocInfo)}return u.then(function(){return t.populate(n,r,a,s,e.pidlRetainUserInput?c:void 0,rp.isString(e.pidlUserInputToClear)?e.pidlUserInputToClear.split(","):e.pidlUserInputToClear).then(function(){if(e.pidlError){var n=t.pidlDocManager.getResolvedOrFirstPidlDoc(),r=rd.parseServerError(void 0,void 0,n&&n.strings&&n.strings.serverErrorCodes,{status:l.Error,failureObject:e.pidlError},t.serverErrorRetries);return t.handleServerError(r,void 0,n).then(function(){return rv()})}})})},this.handleRenderPidlPageClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"==typeof n[o]&&"details"!==o&&delete n[o];if(e.context&&tz(e.context)&&e.context.length>0){var a=e.context[0],s=ns.createModelElementsFromDisplayDescriptions(a.displayDescription,t.operationType,null,null,a,t.pidlDocManager).elements;if(t.updateSubmitGroupVisibility(s,t.displaySettings.submitButtonBlock.show),s&&s.length>0)return t.modelData.updateModelElements(s),t.elements.splice(t.pageIndex+1,0,s[0]),t.moveNextPage().then(function(){return t.eventHub.renderedPidlPage(),rv()})}},this.updateSubmitGroupVisibility=function(e,t){for(var n=nl.findAllElements(e,function(e){return n3(e)&&e.isSubmitGroup}),r=0,o=n;r<o.length;r++)o[r].isHidden=!t},this.handleRenderModalClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"==typeof n[o]&&"details"!==o&&delete n[o];if(e.context&&tz(e.context)&&e.context.length>0){var a=e.context[0],s=ns.createModelElementsFromDisplayDescriptions(a.displayDescription,t.operationType,null,null,a,t.pidlDocManager).elements;if(t.updateSubmitGroupVisibility(s,t.displaySettings.submitButtonBlock.show),s&&s.length>0){t.modelData.updateModelElements(s);var l=t.getCurrentPage();if(l&&l.children&&l.children.length>0){var c=l.children[l.children.length-1];n3(c)&&c.isModalGroup&&l.children.pop()}l.children=tl(tl([],l.children,!0),s[0].children,!0),t.eventHub.modelUpdated(!1)}}},this.setViewHandler=function(e){t.view=e},this.getLinkActionUrl=function(e,n,r){void 0===r&&(r=null);var o,a=e,s=t.urls,l=s.success,c=s.failure;if(a&&a.noCallbackParams){if(a&&a.baseUrl&&(o=t_.createFromTemplate(a.baseUrl)),o)return o;n&&t.eventHub.failure(new nt.unexpectedError(nn.noRedirectUrlToNavigate))}else if(l&&c){var u=l,d=c;if(a&&a.baseUrl)o=t_.createFromTemplate(a.baseUrl),u=t_.addQueryStringParameters(u,a.successParams),d=t_.addQueryStringParameters(d,a.failureParams);else if(rp.isString(e)){o=t_.createFromTemplate(e);var p=t.modelData.getPrimaryResourceResponseId();p&&(u=t_.addQueryParameter(u,"id",p),u=tX.additionalRedirectParams(u,r))}if(o)return o+("?ru="+(u=encodeURIComponent(u))+"&rx="+(d=encodeURIComponent(d)));n&&t.eventHub.failure(new nt.unexpectedError(nn.noRedirectUrlToNavigate))}else if(n){var f=l?"urls.failure":"urls.success";t.eventHub.failure(new nt.inputParameterValidationFailedError(nn.inputParameterMissing,f,[f]))}},this.handleExpressCheckoutButtonIframeLoaded=function(e,n,r){var o,a,s,l=na.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc()),c=tL(null==l?void 0:l[0].walletConfig)?null==(a=null==(o=l[0].walletConfig)?void 0:o.members)?void 0:a[0]:{},u=rf.getEnv();n&&c&&(null==(s=null==window?void 0:window.frames)?void 0:s[e])&&window.frames[e].postMessage({messageType:eT.setup,config:c,expressCheckoutData:n,useTestEnv:"int"===u,env:u},r)},this.handleSecureFieldMessage=function(e,n){if(!e||!e.data||!e.data.source||e.data.source!==eI.secureFieldMessageSource||!e.data.event){var r,o,a,s=new nt.unexpectedError(nn.unexpectedSecureFieldMessage);t.eventHub.failure(s);return}switch(t.eventHub.secureFieldEventReceived(e.data.field,e.data.event,e.data.correlationId),e.data.event){case eE.loaded:t.loadedSecureFields.includes(e.data.field)||t.loadedSecureFields.push(e.data.field),r=t.modelData.getModelDataProperty(e.data.field);var l=t.getSecurePropertyInitializationPayload(r);t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.init,l),0),t.hasPidlResolved?t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.hydrateState,""),0):t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.clearState,""),0);var c=r.modelElement.getResolvedLogo(),u="";c&&"accountToken"===e.data.field&&t.hasPidlResolved&&(u="background-image: url(".concat(c,"); background-repeat: no-repeat; background-position: right center; ")),u&&t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.applyCss,u),0);var d=r.modelElement.placeHolderText();d&&t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.applyPlaceholder,d),0);break;case eE.initCompleted:t.resolveSecureFieldInitCompletedPromise(e.data.field);break;case eE.keyPropertyResolved:if(t.hasPidlResolved=!0,t.secureFieldResolved=!0,r=t.modelData.getModelDataProperty(e.data.field),o=t.updatePropertyValue(r.modelElement,e.data.payload,Z.finished,!1).then(function(){var n=t.getSecurePropertyInitializationPayload(r);t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.init,n),0);var o=r.modelElement.getResolvedLogo(),a="";o&&(a="background-image: url(".concat(o,"); background-repeat: no-repeat; background-position: right center; ")),a&&t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.applyCss,a),0),t.updatePropertyValue(r.modelElement,e.data.payload,Z.finished,!1).catch(function(e){});var s=r.modelElement.placeHolderText();s&&t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.applyPlaceholder,s),0);var l=t.modelData.getModelDataProperty("cvvToken");return n=t.getSecurePropertyInitializationPayload(l),t.guaranteedPostMessage("cvvToken",t.buildMessage(eP.init,n),0),t.updatePropertyValue(l.modelElement,"",Z.finished,!1)}).catch(function(e){t.secureFieldResolved=!1}),n)return o;break;case eE.valueUpdated:var p=e.data.payload.editState,f=e.data.payload.operationType;if((r=t.modelData.getModelDataProperty(e.data.field)).editState=p,o=t.updatePropertyValue(r.modelElement,"",f,!1),n)return o;break;case eE.readyForSubmit:if(a=t.queuedSecureFieldPromises.find(function(t){return t.id===e.data.correlationId})){if(e.data.payload.error)return void t.eventHub.failure(new nt.unexpectedError(nn.tokenizationFailed,[e.data.payload.error]));var h={value:e.data.payload.value,propertyName:e.data.field};a.resolve(h)}else t.eventHub.failure(new nt.unexpectedError(nn.secureFieldPromiseNotFound));break;case eE.validationCompleted:(a=t.queuedSecureFieldPromises.find(function(t){return t.id===e.data.correlationId}))?a.resolve(e.data.payload):t.eventHub.failure(new nt.unexpectedError(nn.secureFieldPromiseNotFound));break;case eE.hmacSignatureCreated:if(a=t.queuedSecureFieldPromises.find(function(t){return t.id===e.data.correlationId})){if(e.data.payload.error)return void t.eventHub.failure(new nt.unexpectedError(nn.hmacError,[e.data.payload.error]));var h={value:e.data.payload.value,propertyName:e.data.field};a.resolve(h)}else t.eventHub.failure(new nt.unexpectedError(nn.secureFieldPromiseNotFound));break;default:var m=new nt.unexpectedError(nn.unmatchedSecureFieldEvent,[e.data.event]);t.eventHub.failure(m)}},this.handleChallengeiFrameMessage=function(e,n){switch(e.data){case eR.challengeiFrameLoaded:case eR.challengeCompleted:t.eventHub.challengeMessageReceived(e.data);break;default:var r=new nt.unexpectedError(nn.unexpectedChallengeiFrameMessage);t.eventHub.failure(r)}},this.handleClientAction=function(e,n,o){var a,s=e.type,l=e.nextAction;return t.eventHub.clientActionInvoked(null==e?void 0:e.type,{originator:o}),new Promise(function(l,c){switch(s){case eV.None:t.eventHub.success(t.createSuccessEventPayload()),l();break;case eV.UpdatePropertyValue:if(e.context){var u=e.context,d=u.propertyName,p=u.propertyValue,f=t.getPropertyModelElement(d);f&&t.updatePropertyValue(f,p,Z.editing,!1).then(function(){l()}).catch(function(){return c()})}else l();break;case eV.Redirect:var h=t.getLinkActionUrl(e.context,!0,n);if(h){var m=t.pageIndex,g=t.getCurrentPage()||{};e.redirectPidl?(t.eventHub.navigate("",h,!0,e.context,null),t.clearFlow(),t.pidlDocManager.setPidlDoc(t.eventHub,e.redirectPidl),t.populate(n,!0,m,g).then(function(){l()}).catch(function(){return c()})):(t.eventHub.navigate("",h,!0,e.context,null)||(t.eventHub.redirecting(h),ni.getRedirectionService().redirect(h)),t.clearFlow(),l())}break;case eV.Pidl:t.handleRenderPidlClientAction(e,n,!0).then(function(){l()},function(){return c()});break;case eV.ReturnContext:e.context?(t.eventHub.success(e.context),l()):(a=new nt.unexpectedError(nn.invalidReturnContextPidl),t.eventHub.failure(a),c(a));break;case eV.GoHome:t.eventHub.gohome(),l();break;case eV.Failure:var v=rd.createServerErrorFromIPxServiceError(o===r.iFrameMessageHandler?nn.iFrameReturnedFailure:nn.failureClientActionReturned,e.context);t.eventHub.failure(v),l();break;case eV.PidlModal:t.handleRenderModalClientAction(e,n,!0),l();break;case eV.PidlPage:t.handleRenderPidlPageClientAction(e,n,!0).then(function(){l()},function(){return c()});break;case eV.MergeData:if(e.context&&e.context.payload){var y=e.context,b=y.payload;if(y.explicit){var x=[];for(var C in b){var f=t.getPropertyModelElement(C);f&&x.push(t.updatePropertyValue(f,b[C],Z.editing,!1))}Promise.all(x).then(function(){l()}).catch(function(){return c()})}else t.modelData.updateUserData(b),t.eventHub.modelUpdated(!1,!0),l();t.updateInputDataCache(b)}break;case eV.RestAction:e.context&&t.invokeRestMethod(e.context).then(function(){l()},function(){return c()});break;default:a=new nt.unexpectedError(nn.unknownClientActionType,[e.type]),t.eventHub.failure(a),c(a)}}).then(function(){l&&t.handleClientAction(l).catch(function(){})})},this.doErrorNextClientAction=function(e,n){switch(n.type){case eV.None:return rv();case eV.UpdatePropertyValue:if(n.context){var r=n.context,o=r.propertyName,a=r.propertyValue,s=r.terminalError,l=t.getPropertyModelElement(o);if(l)return t.updatePropertyValue(l,a,Z.editing,!1).then(function(){return s?ry(e):rv()})}return rv();case eV.Pidl:return t.handleRenderPidlClientAction(n,null,!1).then(function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated()});default:return ry(e)}},this.readUserInputData=function(e){void 0===e&&(e=!1);var n=t.view.getPageElementValues();for(var r in n){var o=t.getPropertyModelElement(r),a=n[r];n8(o)&&!(t.showMaskedValues&&o.maskDisplay)&&o.displayTransformations&&o.displayTransformations.forModel&&rp.isString(a)&&(n[r]=rd.applyDisplayTransformation(o.displayTransformations.forModel,a)||n[r])}var s=e?null:function(e){t.eventHub.conflictingInputValues(e)};t.modelData.mergeUserData(t,n,s)},this.resolveKeyProperty=function(e){for(var n in e){var r=e[n];if(r&&rc(r.modelElement)){var o=r.modelElement,a=o.isKeyProperty&&!o.hidden()&&r.getValue();if(a)return t.updateResolvedPidlDoc(a,o,Z.finished)}}return rv(!0)},this.validatePage=function(e){var n=t.modelData.getModelDataProperties([t.getCurrentPage()]);return(e===A.all&&t.resolveKeyProperty(n)||rv()).then(function(){return n=t.modelData.getModelDataProperties([t.getCurrentPage()]),t.validator.validatePage(n,e,t.operationType)})},this.getClientDataProperties=function(){var e={sessionId:rd.guid()};if(t.operationOptions){var n=t.operationOptions,r=n.sessionId,o=n.riskData;r&&(e.sessionId=r),o&&o.greenId&&(e.greenId=o.greenId)}return e},this.getInputDataFromResponse=function(e,t,n){for(var r in t){var o=t[r];if(o.match&&o.match(RegExp("^{(.)*}$"))){var a=o.substring(1,o.length-1);if(!n||!n[a])return new nt.unexpectedError(nn.expectedPayloadValueNotPresentInServerResponse);e[r]=n[a]}else e[r]=o}return null},this.invokeSubmitRequest=function(e,n,r,o){void 0===r&&(r=!0);var a=t.callbacks.submit,s=t.transformers.submissionSuccessTransformer;if(r&&a&&(na.isPrimaryResource(e)||!n.url))return new Promise(function(r,s){o&&o.currentSubmitCount++,a(n,{pidlDoc:e},function(e){r(e)},function(r,o){s(rd.parseCustomSubmitError(r,o,n.url,n.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,t.serverErrorRetries))},o)});if(!n.url||!n.virtualEndpoint){var l=new nt.unexpectedError(nn.submitPidlRequestMissingParameters,[!n.url?"url":"virtualEndpoint"]);return t.eventHub.failure(l),ry(l)}return new Promise(function(r,o){ni.getPidlService().submitPidlDocument(t.eventHub,n,t.operationType,s).then(function(e){r(e)},function(r){o(rd.parseServerError(n.url,n.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,r,t.serverErrorRetries))})})},this.submitValidatedData=function(e,n,r,o,a,s,c){var u,d=t.modelData.getId();o=o||na.getSubmitPidlAction(n)||{},s=s||1;var p=o.type!==k.validate,f=1===s?o.context:o["context"+s],h={modelData:t.modelData},m=f&&t_.getSubmitUrl(t.operationType,t.userContext,f,d,h),g={method:f&&f.method?f.method:el.Post,url:m&&m.url,headers:f&&rA.getHttpHeaders(t.eventHub,t.userContext,f&&f.headers,m&&m.template,h),errorCodeExpressions:f&&f.errorCodeExpressions,virtualEndpoint:m&&m.virtualEndpoint},v=rv();if(f&&f.payload){var y={},b=t.getInputDataFromResponse(y,f.payload,c);if(b)return void e.reject(b);g.data=y}else{g.data=r;var x=r1.tokenizeUserInputData(t.eventHub,n,g.data,t.operationType,t.userContext.getUserCredential(),null==(u=t.callbacks)?void 0:u.encryptionHandler,t.modelData);v=new Promise(function(r,o){x.then(function(a){var s=a.error;if(s)if(nt.isServerError(s)&&s.code===nn.tokenizationFailed.code&&400===s.status){var c=rd.parseServerError(s.url,void 0,n&&n.strings&&n.strings.serverErrorCodes,{status:l.Error,errorMessage:s.debugMessage,httpStatus:s.status,httpStatusText:s.statusText,failureObject:s.innererror},t.serverErrorRetries);return t.handleServerError(c,s.url,n).then(function(t){e.resolve(t)}).catch(e.reject)}else o(s);else r()}).catch(function(e){return o(e)})})}v.then(function(){t.invokeSubmitRequest(n,g,p,a).then(function(l){o["context"+ ++s]?t.submitValidatedData(e,n,r,o,a,s,l):e.resolve({data:l})},function(r){return t.handleServerError(r,g.url,n).then(function(t){e.resolve(t)}).catch(e.reject)})},function(t){e.reject(new nt.serverError(nn.tokenizationFailed,null,t,null,null,null,[(t||{}).message]))})},this.scopeDownPidlDocAndUserInput=function(e,t,n){if(e&&e.type===k.validate&&e.context&&e.context.propertyName){var r=e.context.propertyName;n=no.getPropertyValueFromInputData(n,r);var o=te(te({},t),{data_description:{}}),a=no.getPropertiesFromDataDescription(t.data_description,r);tE(a)?o.data_description[r]=a:o.data_description=a,t=o}return{pidlDocument:t,userInputData:n}},this.validatePidlArray=function(e,n,r,o,a){var s=tl([n],r.map(function(e){return t.pidlDocManager.getLinkedPidl(na.createIdentityHash(e.linkedPidlId))}),!0),l=[],c=null,u=s.map(function(n){var r=e.createUserInputData(n,t.modelData,o,t.operationType,!0);return rG.validateUserInputData(t.eventHub,n,r,t.operationType,t.modelData).then(function(e){var n=e.innerErrors;n&&n.length&&(t.updateInputDataCache(r),n.forEach(function(e){var n=t.createFormValidationError(e.error);nt.isUnexpectedError(n)?c=n:l.push(n)}))})});return new Promise(function(e,t){Promise.all(u).then(function(){c?t(c):l.length>0?t(l):e()},function(e){var n=(e||{}).message;t(new nt.formValidationFailedError(nn.formValidationFailed,n,[e],[n]))})})},this.getResolvedOrFirstPidlDoc=function(e,t){return 1!==e.length&&t&&no.getFirstResolvedPidlDocument(e,t)||e[0]},this.createFormValidationError=function(e){var n=e.propertyName,r=e.errorCode,o=e.debugMessage;if(n){var a=t.modelData.getModelDataProperty(n);if(!a)return new nt.unexpectedError(nn.validationFailedForNonUserInputProperty,[n,r,o]);a.editState=J.dirty;var s=nl.findPropertyElement(t.elements,n);return s&&(e.message=s.getErrorMessage(t.getPropertyValue(n),r)),e}},this.validateAndTransformUserInputPidlData=function(e,n,r,o,a,s,l,c){return e.createUserSecureInputData(n[0],t.modelData,r,t.operationType,!0).then(function(u){var d=e.createUserInputData(n[0],t.modelData,r,t.operationType,!0);d.details&&u?d.details=rd.extend({},d.details,u):d&&u&&(d=rd.extend({},d,u));var p=t.getResolvedOrFirstPidlDoc(n,d);if(a&&!e.canSubmitUserInputData(p,d))return rv({});var f=t.scopeDownPidlDocAndUserInput(o,p,d),h=f.pidlDocument,m=f.userInputData;return p=h,d=m,new Promise(function(n,r){var a="",u=[];return rG.validateUserInputData(t.eventHub,p,d,t.operationType,t.modelData).then(function(e){var n=e.innerErrors;n&&n.length&&n.forEach(function(e){var n=t.createFormValidationError(e);n&&(nt.isUnexpectedError(n)?r(n):u.push(n))})}).then(function(){if(u.length)s(a,u).then(function(e){n(e)}).catch(r);else{if(o.type===k.validateOnChange){if(JSON.stringify(d)===t.inputDataCache)return;t.inputDataCache=JSON.stringify(d)}return e.transformUserInputData(p,t.eventHub,d,t.operationType).then(function(){return l({resolve:n,reject:r},p,d,o,c)},function(e){var t=e&&e.message;r(new nt.formValidationFailedError(nn.propertyTransformationFailed,t,[e],[t]))})}},function(e){var t=e||{},n=t.message;r(new nt.formValidationFailedError(nn.formValidationFailed,n,[t],[n]))})})})},this.handleRetryableValidationErrorsOnSubmit=function(e,n){return t.handleRetryableError(new nt.formValidationFailedError(nn.formValidationFailed,e,n,[e]))},this.tokenizeUserInputData=function(e,n,r){var o;return r1.tokenizeUserInputData(t.eventHub,n,r,t.operationType,t.userContext.getUserCredential(),null==(o=t.callbacks)?void 0:o.encryptionHandler,t.modelData).then(function(t){var n=t.error;n?e.reject(n):e.resolve({data:r})}).catch(function(t){return e.reject(t)})},this.submitLinkedPidlArray=function(e,n,r,o,a,s){return new Promise(function(l,c){if(!o&&(!e||0===e.length))return void l();n.pending=e.length+ +!!o;var u=function(){n.pending--,0===n.pending&&l()},d=ni.getCommerceService();o&&t.validateAndTransformUserInputPidlData(d,o,r,a,!1,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData,s).then(function(e){e&&e.error?n.validationError=e.error:n.baseSuccessResponse=e&&e.data?e.data:e,u()},function(e){na.ignoreTerminatingError(o)||(n.baseFailure=e),u()}),e.forEach(function(e){var o=t.pidlDocManager.getLinkedPidl(na.createIdentityHash(e.linkedPidlId));t.validateAndTransformUserInputPidlData(d,[o],r,na.getSubmitPidlAction(o),!0,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData,s).then(function(e){n.linkedResponses.push(e),u()},function(e){na.ignoreTerminatingError([o])||n.failures.push(e),u()})})})},this.validateAndSubmitUserInputData=function(e){t.readUserInputData();var n=t.getClientDataProperties(),r=ni.getCommerceService(),o={failures:[],pending:0,baseFailure:null,baseSuccessResponse:null,linkedResponses:[]};if(!t.stateManager.canApiStart(en.modelSubmitForm).result)return rv({result:o});t.eventHub.submitting(),t.stateManager.setState(Q.submitting);var a=t.pidlDocManager.getResolvedOrAllPidlDocs(),s=r.getPidlSubmitOrder(a[0]);return new Promise(function(l,c){e.type===k.validate&&(s.beforeBase=[],s.withBase=[],s.afterBase=[]);var u={totalSubmitCount:0,currentSubmitCount:0};u.totalSubmitCount=s.beforeBase.length+s.withBase.length+s.afterBase.length+1,t.validatePidlArray(r,a[0],s.beforeBase.concat(s.withBase,s.afterBase),n,e).then(function(){return t.submitLinkedPidlArray(s.beforeBase,o,n,void 0,void 0,u).then(function(){if(!(0!==o.failures.length||o.linkedResponses&&o.linkedResponses.length&&o.linkedResponses.some(function(e){return e.error})))return t.submitLinkedPidlArray(s.withBase,o,n,a,e,u).then(function(){if(0===o.failures.length&&!o.baseFailure)return t.submitLinkedPidlArray(s.afterBase,o,n,void 0,void 0,u).then(function(){l()});l()});l()})},function(n){if(nt.isUnexpectedError(n))o.failures.push(n),l();else if(!(e&&e.context&&e.context.silent))return t.handleRetryableValidationErrorsOnSubmit("",Array.isArray(n)?tl([],n,!0):[n]).then(function(e){o.validationError=e.error,l()})}).catch(function(e){l()})}).then(function(){return t.stateManager.setState(Q.executing),t.eventHub.submitted(),{result:o,basePidls:a}})},this.transformResourceInstance=function(e,n){return Promise.all(t.transformResourceInstanceInternal(e,ni.getCommerceService(),n)).then(rm,rm)},this.transformResourceInstanceInternal=function(e,n,r){var o=[];return e.forEach(function(e){if(rc(e)&&e.supportsDisplayTransformation){var a=e&&e.isLinkedPidl&&e.pidlIdentity?[t.pidlDocManager.getLinkedPidl(e.pidlIdentity)]:t.pidlDocManager.getResolvedOrAllPidlDocs();o=tl(tl([],o,!0),[n.transformUserInputPropertyForDisplay(a,t.eventHub,e.getPropertyName(),r,t.operationType)],!1)}e.children&&e.children.length&&(o=tl(tl([],o,!0),t.transformResourceInstanceInternal(e.children,n,r),!0))}),o},this.updateResolvedPidlDoc=function(e,n,r){return new Promise(function(o,a){t.pidlDocManager.resolvePidlDoc(t.eventHub,t.getPropertyValue,e,n,r).then(function(e){if(e){var n=t.pidlDocManager.getResolvedOrFirstPidlDoc();t.currentlyRenderedPidl&&t.currentlyRenderedPidl.identity&&n&&n.identity&&rp.objectEquals(t.currentlyRenderedPidl.identity,n.identity)&&o(!1),n&&na.isPrimaryResource(n)&&t.eventHub.updateTelemetryContext(n.identity),t.readUserInputData(!0),t.populateModelOnInternalCallback(t.operationType),t.currentlyRenderedPidl=n}o(e)}).catch(function(e){o(!1)})})},this.updatePropertyValueInternal=function(e,n,r){if(e&&e.getPropertyName){var o=t.modelData.getModelDataProperty(e.getPropertyName());if(o)return o.setValue(n)&&t.setCurrentDataIndex(e.pidlIdentity,-1),t.sendResourceSelectedEventInternal(o,r),t.validator.validateProperty(o,r,t.operationType)}return rv()},this.sendResourceSelectedEventInternal=function(e,n){var r=e.propertyName,o=t.getPropertyValue(r),a=t.getPropertyModelElement(r);t.operationType===eL.selectInstance&&n!==Z.finished&&t.eventHub.resourceSelected(r,e.getValue(!0,!0)),nK(a)&&a.possibleOptions&&a.possibleOptions[o]&&a.possibleOptions[o].onresourceselected&&t.invokePidlAction(a.possibleOptions[o].onresourceselected).catch(function(e){})},this.getPropertyPageIndex=function(e){var n=-1;return t.elements.some(function(t,r){if(t.children&&nl.findPropertyElement(t.children,e))return n=r,!0}),n},this.navigateToPageIndex=function(e){nl.updateModelElements(t.elements,{modelData:t.modelData});var n=t.pageIndex,r=t.getCurrentPage()||{};t.pageIndex=e;var o=t.getCurrentPage()||{};t.eventHub.pageNavigated(n,r.displayId,r.displayName,t.pageIndex,o.displayId,o.displayName,o.containerDescription)},this.isMaskedValue=function(e,n,r,o){return e&&e.maskDisplay&&o&&r===Z.finished&&n===t.modelData.getMaskedPropertyValue(e.getPropertyName())},this.updateInputDataCache=function(e){if(e)try{var n=t.inputDataCache?JSON.parse(t.inputDataCache):{};for(var r in e)r&&t.getPropertyModelElement(r)&&(n[r]=e[r]);var o=JSON.stringify(n);o&&o!==t.inputDataCache&&(t.inputDataCache=o)}catch(e){}},this.downloadPidlDocument=function(e,n,r,o){var a=rA.getHttpHeaders(t.eventHub,t.userContext,null,e.template,null);if(n.anonymousPidl){var s=a[M.msFlight];(!s||0>s.indexOf("pxpidl"))&&(a[M.msFlight]=s?s+",pxpidl":"pxpidl")}if(o){var l=a[M.msClientContext];l?a[M.msClientContext]=l+",hasPrefillData":a[M.msClientContext]="hasPrefillData"}return t.pidlDocManager.downloadPidlDoc(t.eventHub,e,a,n,r).then(function(e){return t.eventHub.pidlDownloaded(),e},function(n){var r=n.connectivityError?nn.connectivityError:nn.pidlDocDownloadFailed,o=rd.createServerError(r,e.url,n,[n.errorMessage]);return t.eventHub.failure(o),ry(o)})},this.populate=function(e,n,r,o,a,s){if(t.pageIndex=0,t.pidlDocManager.isEmpty()){t.eventHub.pageRendering(void 0);var l=new nt.unexpectedError(nn.noPidlDocumentInPopulateRequest);return t.eventHub.failure(l),ry(l)}return t.populateModel(t.operationType,e,n,a,s).then(function(){o=o||{};var e=t.getCurrentPage()||{};t.stateManager&&t.stateManager.setState(Q.executing),t.eventHub.pageRendered(r,o.displayId,o.displayName,t.pageIndex,e.displayId,e.displayName,e.containerDescription);var n=t.modelData.getModelDataProperties([t.getCurrentPage()]);return t.resolveKeyProperty(n).then(function(){return rv()})})},this.updatePropertyValue=function(e,n,r,o,a,s){if(void 0===a&&(a=!0),void 0===s&&(s=!0),o)if(t.isMaskedValue(e,n,r,o))return rv();else t.modelData.clearMaskedPropertyValue(e.getPropertyName());var l=e&&e.isKeyProperty&&(e.resolutionPolicy!==eX.focusout||r===Z.finished)?t.updateResolvedPidlDoc(n,e,r):rv(!0),c=!1,u=function(){var o=t.modelData.getPropertyValue(e.getPropertyName()),a=e&&nK(e)&&e.alwaysUpdateModelValue;if(o!==n||a||r===Z.finished)return c=!0,t.updatePropertyValueInternal(e,n,r)};return l.then(u,u).then(function(){var s=rv();if(c&&a&&e&&e.broadcastTo){var l=t.getPropertyModelElement(e.broadcastTo);l&&l.getPropertyName()!==e.broadcastTo&&(s=t.updatePropertyValue(l,n,r,o,a)),s=s.then(function(){return rd.broadcastPropertyValueUpdate(t.orchestratorId,e,n,r,o)})}return s}).then(function(){t.sendSelectionChangeEvent(e,n)}).then(function(){if(c&&e&&e.sideEffects){var l=[];for(var u in e.sideEffects){var d=t.getPropertyModelElement(u),p=e.sideEffects[u],f=rd.getConditionalFieldValue(p,{modelData:t.modelData},e);s&&d?l.push(t.updatePropertyValue(d,f,r,o,a,!1)):a&&l.push(rd.broadcastPropertyValueUpdate(t.orchestratorId,e,n,r,o))}return Promise.all(l).then(function(){return rv()})}return rv()}).then(function(){return c&&e&&(e.isConditionalFieldProperty()||!a)?t.updateModelElementsOnInternalCallback(r,o):rv()}).then(function(){return n2(e)&&c&&rp.isBool(n)&&t.eventHub.toggleClicked(e.getPropertyName(),n),rv()})},this.sendSelectionChangeEvent=function(e,n){if(nK(e)&&(t.eventHub.selectionChanged(e.getPropertyName(),e.displayId,n),e.possibleOptions&&e.possibleOptions[n])){var r=e.possibleOptions[n];if(r.pidlAction&&r.pidlAction.type===k.partnerAction){var o=rp.deepCopy(e.possibleOptions[n].pidlAction.context);t.eventHub.partnerAction(e.id,o)}}},this.sendResourceSelectedEvent=function(e,n){var r=t.modelData.getModelDataProperty(e);r&&t.sendResourceSelectedEventInternal(r,n)},this.getPropertyValue=function(e){return t.modelData.getPropertyValue(e)},this.getPropertyModelElement=function(e){return t.modelData.getPropertyModelElement(e)},this.setCurrentDataIndex=function(e,n){t.readUserInputData(),t.modelData.setMultiPropertySelectorIndex(e,n)},this.getCurrentDataIndex=function(e){return t.modelData.getMultiPropertySelectorIndex(e)},this.getCurrentPage=function(){return t.elements[t.pageIndex]},this.getCurrentPageId=function(){return t.elements.length>t.pageIndex?t.elements[t.pageIndex].displayId:null},this.getCaptchaType=function(){return t.modelData.getPropertyValue(es.captchaType)||null},this.validateEditedProperties=function(){return t.validatePage(A.dirtyOnly)},this.validateProperties=function(){return t.validatePage(A.all).then(function(e){return!0}).catch(function(){return!1})},this.moveToLastPage=function(){var e=t.elements.length-1;return t.readUserInputData(),t.navigateToPageIndex(e),rv()},this.moveNextPage=function(){var e=t.pageIndex+1;return e>=t.elements.length?(t.eventHub.failure(new nt.unexpectedError(nn.cannotMoveToNextPageAsOnLastPage)),rv()):(t.readUserInputData(),t.validatePage(A.all).then(function(){var n=ni.getCommerceService(),r=n.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return n.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,r,t.operationType).then(function(n){t.modelData.setDisplayData(n),t.navigateToPageIndex(e)})}))},this.submitPage=function(){return t.readUserInputData(),t.validatePage(A.all).then(function(){var e=ni.getCommerceService(),n=e.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return e.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,n,t.operationType).then(function(e){t.modelData.setDisplayData(e)})})},this.movePrevPage=function(){return t.moveToPageIndex(t.pageIndex-1)},this.moveToFirstPage=function(){return t.moveToPageIndex(0)},this.moveToPageIndex=function(e){return t.pageIndex===e||e<0||e>=t.elements.length?(e<0?t.eventHub.failure(new nt.unexpectedError(nn.cannotMoveToPrevPage)):e>=t.elements.length&&t.eventHub.failure(new nt.unexpectedError(nn.cannotMoveToPageIndex)),rv()):t.pageIndex>e?(t.readUserInputData(),t.navigateToPageIndex(e),rv()):t.moveNextPage().then(function(){return t.moveToPageIndex(e)})},this.submitForm=function(e){return t.validateAndSubmitUserInputData(e).then(function(e){var n=e.result,r=e.basePidls;return n.baseFailure?(t.eventHub.failure(n.baseFailure),ry(n.baseFailure)):n.failures.length>=1?(t.eventHub.failure(n.failures[0]),ry(n.baseFailure)):n.baseSuccessResponse||na.ignoreTerminatingError(r)?t.handleSuccess(n.baseSuccessResponse,n.linkedResponses):void 0})},this.validateForm=function(e){return t.validateAndSubmitUserInputData(e).then(function(n){var r=n.result;if(!(e&&e.context&&e.context.silent)&&(r.baseFailure||r.failures.length>=1||r.validationError))if(r.baseFailure)return t.eventHub.failure(r.baseFailure),ry(r.baseFailure);else if(r.failures&&r.failures.length>=1)return t.eventHub.failure(r.failures[0]),ry(r.baseFailure);else return ry();if(r.baseSuccessResponse){var o=r.baseSuccessResponse&&r.baseSuccessResponse.clientAction;if(o)if(o.type===eV.MergeData)return t.handleClientAction(o,r.baseSuccessResponse).then(function(){return rv()},function(e){return ry(e)});else return e.nextAction&&(t.suspendedNextAction=e.nextAction),t.handleClientAction(o,r.baseSuccessResponse).then(function(){return ry()},function(e){return ry(e)})}})},this.createUserInputData=function(e,n){return t.readUserInputData(),ni.getCommerceService().createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,t.getClientDataProperties(),t.operationType,e,n)},this.returnUserInputData=function(){return t.readUserInputData(),t.validateAndTransformUserInputPidlData(ni.getCommerceService(),[t.pidlDocManager.getResolvedOrFirstPidlDoc()],t.getClientDataProperties(),null,!1,function(e,t){return ry(new nt.formValidationFailedError(nn.formValidationFailed,e,t,[e]))},t.tokenizeUserInputData)},this.gohome=function(){t.eventHub.gohome()},this.clearAll=function(){t.modelData.clearAll(),t.clearFlow(),rd.unregisterFromOrchestrator(t.orchestratorId)},this.moveNextOrSubmit=function(){if(t.pageIndex<t.elements.length-1)return t.moveNextPage();var e=t.getSubmitButton();return e&&e.pidlAction?t.invokePidlAction(e.pidlAction).then(function(){return rv()}):(t.eventHub.failure(new nt.unexpectedError(nn.missingSubmitActionInPidlDoc)),ry())},this.submitAction=function(){var e=t.getSubmitButton();return e&&e.pidlAction?(e.pidlAction.context||t.eventHub.implementationMissing("context","pidlAction"),t.invokePidlAction(e.pidlAction).then(function(){return rv()})):(t.eventHub.failure(new nt.unexpectedError(nn.missingSubmitActionInPidlDoc)),ry())},this.movePrevOrCancel=function(){return t.pageIndex>0?t.movePrevPage():(t.gohome(),rv())},this.invokePidlAction=function(e,n){var r=e.type,o=e.nextAction,a=e.context,s=null;return t.eventHub.pidlActionInvoked(r,{nextAction:null==o?void 0:o.type}),new Promise(function(o,l){var c;switch(r){case k.closePidlPage:t.movePrevPage().then(function(){t.elements.splice(t.pageIndex+1,1),o()},function(){return l()}),t.eventHub.closePidlPage();break;case k.closeModalDialog:t.eventHub.hideModalDialog();var u=t.getCurrentPage();if(u&&u.children&&u.children.length>0){var d=u.children[u.children.length-1];n3(d)&&d.isModalGroup&&u.children.pop()}o();break;case k.continueSuspendedAction:t.suspendedNextAction?t.invokePidlAction(t.suspendedNextAction,n).then(function(){return o()},function(e){return l(e)}):o();break;case k.propertyBindingAction:var p=a.bindingPropertyName,f=a.actionMap,h=t.getPropertyValue(p);rp.isBool(h)&&(h=rp.toString(h)),t.eventHub.propertyValueSelected(p,h);var m=f[h];m?t.invokePidlAction(m,n).then(function(){return o()},function(e){return l(e)}):o();break;case k.mergeData:var g=a.payload;if(a.explicit){var v=[];for(var y in g){var b=t.getPropertyModelElement(y);b&&v.push(t.updatePropertyValue(b,g[y],Z.editing,!1))}return Promise.all(v).then(function(){return o()},function(){return l()})}t.modelData.updateUserData(g),t.eventHub.modelUpdated(!1),o();break;case k.updatePropertyValue:var x=a.propertyName,C=a.propertyValue;if(rp.isString(x)){var b=t.getPropertyModelElement(x);if(b)return t.updatePropertyValue(b,C,Z.editing,!1)}break;case k.submit:t.submitForm(e).then(function(){return o()},function(e){l(e)});break;case k.triggerSubmit:t.submitAction().catch(function(e){return l(e)});break;case k.submitOriginalPidl:t.movePrevPage().then(function(){t.elements.splice(t.pageIndex+1,1),t.invokeDefaultPidlAction().then(function(){return o()},function(){l()})},function(){return l()}),t.eventHub.submitOriginalPidl();break;case k.validate:t.validateForm(e).then(function(){return o()},function(){return l()});break;case k.validateOnChange:t.validateForm(e).then(function(){return o()},function(){return l()});break;case k.gohome:t.gohome(),o();break;case k.first:t.moveToPageIndex(0).then(function(){return o()},function(){return l()});break;case k.last:t.moveToLastPage().then(function(){return o()},function(){return l()});break;case k.next:t.moveNextPage().then(function(){return o()},function(){return l()});break;case k.prev:t.movePrevPage().then(function(){return o()},function(){return l()});break;case k.moveToPageIndex:var w=a.pageIndex;t.moveToPageIndex(w).then(function(){return o()},function(){return l()});break;case k.restartFlow:t.restartFlow().then(function(){return o()},function(){return l()});break;case k.restAction:a?t.invokeRestMethod(a).then(function(){return o()},function(){return l()}):(t.eventHub.error(new nt.unexpectedError(nn.contextMissingFromPidlAction,[e.type])),l());break;case k.success:n&&n.value?((s=rp.deepCopy(n.value)).operationType=t.operationType,t.eventHub.success(s)):t.eventHub.success(t.createSuccessEventPayload()),o();break;case k.partnerAction:n&&n.value&&(s=rp.deepCopy(n.value),t.eventHub.partnerAction(n.id,s)),o();break;case k.successWithPidlPayload:(s=rp.deepCopy(t.createUserInputData(!0))).operationType=t.operationType,n&&n.value&&(s.additionalData=rp.deepCopy(n.value)),t.eventHub.success(s),o();break;case k.successWithSelectedPidlAction:(s=rp.deepCopy(t.createUserInputData(!0,!0))).operationType=t.operationType,n&&n.value&&(s.additionalData=rp.deepCopy(n.value)),t.eventHub.success(s),o();break;case k.navigateAndNext:var S=t.getLinkActionUrl(a,!0);if(S){var _=ni.getRedirectionService();!t.eventHub.navigate(n.id,S,!1,null,n.dest)&&_&&_.openInNewTab(S),t.moveNextPage().then(function(){return o()},function(){return l()})}else l();break;case k.navigate:t.eventHub.navigate(n.id,a,!1,null,n.dest,e.dest),o();break;case k.triggerEvent:t.eventHub.triggerEvent(null!=(c=e.context.name)?c:"",e.context.params),o();break;case k.redirect:t.eventHub.navigate(n.id,t.getLinkActionUrl(a,!0),!0,a,null),o();break;case k.poll:o();break;case k.updatePollAndMoveLast:t.eventHub.updatePollAndMoveLast(a);break;case k.noAction:o();break;default:t.eventHub.error(new nt.unexpectedError(nn.unknownActionType,[r])),l()}}).then(function(){return!o||t.invokePidlAction(o,n)},function(e){if(e)throw e;return!1})},this.invokeDefaultPidlAction=function(){var e=nl.getDefaultPidlAction([t.getCurrentPage()],t.eventHub);return e?t.invokePidlAction(e):(t.eventHub.error(new nt.unexpectedError(nn.defaultActionNotFound)),ry(!1))},this.invokeRestMethod=function(e){if(!e.href||!e.method){var n=e.href?"method":"href";return t.eventHub.error(new nt.unexpectedError(nn.restActionPidlActionMissingParameters,[n])),rv()}var r={modelData:t.modelData},o=e&&e.shouldHandleSuccess,a=t_.getRestMethodUrl(e.href,t.userContext,t.modelData.getId(),r),s={url:a.url,method:e.method,headers:rA.getHttpHeaders(t.eventHub,t.userContext,e.headers,a.template,r),virtualEndpoint:a.virtualEndpoint,errorCodeExpressions:e.errorCodeExpressions,data:rp.serialize(e.payload)};return t.eventHub.restMethodInvoking(a.url,t.operationType),new Promise(function(e,n){ni.getPidlService().invokeRestMethod(t.eventHub,s,t.operationType).then(function(n){t.eventHub.restMethodInvoked(s.url);var r=n&&n.clientAction;if(r)return t.handleClientAction(r,n);n&&o&&(t.modelData.setPrimaryResourceResponse(n),t.eventHub.success(t.createSuccessEventPayload())),e()},function(r){var o=t.pidlDocManager.getResolvedOrFirstPidlDoc();return t.handleServerError(rd.parseServerError(s.url,s.errorCodeExpressions,o&&o.strings&&o.strings.serverErrorCodes,r),s.url,t.pidlDocManager.getResolvedOrFirstPidlDoc()).then(function(){return e()},function(e){return n(e)})})}).then(rm,function(e){return t.eventHub.failure(e),ry(e)})},this.updateDisplayContainerId=function(e){e&&(t.displaySettings.containerId=e)},this.getMultiPropertySelectorPossibleOptions=function(e){return t.modelData.getMultiPropertySelectorPossibleOptions(e)},this.restartFlow=function(){return new Promise(function(e,n){t.handleRestartFlow().then(function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated(),e()},function(e){return n(e)})})},this.refreshData=function(e){var n=!1,r=rv(),o=na.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc());return o&&o.length>0&&(t.modelData.clearDataSourceCache(),t.modelData.setPrefillDataInPartnerDataSource(e),r=t.getDataSources(t.operationType,{modelData:t.modelData,model:t},o),n=!0),r.then(function(){n&&(t.modelData.clearFlow(),t.modelData.populate(t.elements)),t.modelData.setPrefillData(t,e,t.resources.constants,t.eventHub),nl.updateModelElements(t.elements,{modelData:t.modelData}),n?t.eventHub.modelUpdated(!1):t.eventHub.dataUpdated()})},this.getPidlInstanceContexts=function(){return t.pidlInstanceContexts},this.loadedSecureFields=[],this.queuedSecureFieldPromises=[],this.queuedIFrameLoadedPromises=[],this.queuedIFrameInitCompletedPromises=[],this.userContext=e.userContext,this.eventHub=e.eventHub,this.pidlDocManager=e.pidlDocManager,this.stateManager=e.stateManager,this.displaySettings=e.displaySettings||new rh({containerId:""}),this.urls=e.urls||{},this.callbacks=e.callbacks||{},this.transformers=e.transformers||{},this.localDataSourceProviders=e.localDataSourceProviders,this.modelData=new rj(this.pidlDocManager),this.eventHub.addPrivateEventHandler(this.privateEventHandler),this.eventHub.registerEventExtender("pageId",this.getCurrentPageId),this.validator=new rK(this.eventHub,this.displaySettings.alwaysValidateOnChange),this.resources=new rN(this.pidlDocManager),this.setClientSettings(this.pidlDocManager)}return e.prototype.getResourceData=function(e,t,n,r){var o,a=this,s=null;if(t.dataSourceConfig&&(o=t.dataSourceConfig,delete t.dataSourceConfig),tO(t)){var l=t.href,c=t.method,u=t.headers,d=t.fetchConfig,p=t_.getRestMethodUrl(l,this.userContext,this.modelData.getId(),r),f=p.url,h=p.template,m={url:f,method:c,virtualEndpoint:p.virtualEndpoint,pidlOperation:n,headers:rA.getHttpHeaders(this.eventHub,this.userContext,u,h,r),fetchConfig:d};s=new Promise(function(e,t){return ni.getPidlService().getInstance(a.eventHub,m).then(function(t){a.eventHub.instanceDownloaded(),e(t)},function(e){var n=rd.createServerError(nn.resourceInstanceDownloadFailed,m.url,e,[e.errorMessage]);a.eventHub.failure(n),t(n)})})}else s=tL(t)?rv(t.members):rv(t);return new Promise(function(t,n){s.then(function(n){return tn(a,void 0,void 0,function(){var a,s,l,c=this;return tr(this,function(u){return s=rv(a=n),o&&o.useLocalDataSource&&this.localDataSourceProviders&&this.localDataSourceProviders[e]&&(l=this.localDataSourceProviders[e].mergingFunction||"mergeLocalData",this.eventHub.getLocalDataSourceInvoked(e),s=this.localDataSourceProviders[e].getDataSource().then(function(t){a=rd.getFunctionExecutionResult({functionName:l,arguments:[n,t]},r);var o=rd.getFunctionExecutionResult({functionName:"getDataSourceCount",arguments:[e,a]},r);return c.eventHub.getLocalDataSourceResolved(e,o),a},function(t){c.eventHub.getLocalDataSourceError(e,t)})),[2,s.then(function(n){var a=n;o&&o.filter&&o.filter.functionName&&(a=rd.getFunctionExecutionResult({functionName:o.filter.functionName,arguments:[n,o.filter.functionContext]},r)),c.modelData.setDataSource(e,a),t()})]})})},function(e){n(e)})})},e.prototype.postChallengeiFrameMessage=function(e){var t=this;return new Promise(function(n,r){var o,a,s=null==(a=null==(o=window.frames.iframe_ChallengeFrame)?void 0:o.contentWindow)?void 0:a.frames.challenge_iframe;if(s){var l="https://"+rf.getServiceEndpoint(rf.virtualEndpoints.challengeUI.endpoint);s.contentWindow.postMessage(e,l)}else setTimeout(function(){t.postChallengeiFrameMessage(e).then().catch(function(){var e=new nt.unexpectedError(nn.challengeIframeMessagePostFailure);t.eventHub.failure(e)})},t.postMessageTimeoutInMs)})},e.prototype.postSecureFieldMessage=function(e,t,n,r){var o=this;return new Promise(function(a,s){var l=o.buildMessage(t,n);r&&(l.correlationId=r),o.queuedSecureFieldPromises.push({id:l.correlationId,resolve:a,reject:s}),o.guaranteedPostMessage(e,l,0)})},e.prototype.postGuaranteedSecureFieldMessage=function(e,t,n,r){var o=this.buildMessage(t,n);r&&(o.correlationId=r),this.guaranteedPostMessage(e,o,0)},e.prototype.queueSecureFieldLoadedPromise=function(e){var t=this;return new Promise(function(n,r){t.queuedIFrameLoadedPromises.push({id:e,resolve:n,reject:r})})},e.prototype.resolveSecureFieldLoadedPromise=function(e){this.queuedIFrameLoadedPromises.forEach(function(t){t.id===e&&t.resolve()}),this.queuedIFrameLoadedPromises=this.queuedIFrameLoadedPromises.filter(function(t){return t.id!==e})},e.prototype.queueSecureFieldInitCompletedPromise=function(e){var t=this;return new Promise(function(n,r){t.queuedIFrameInitCompletedPromises.push({id:e,resolve:n,reject:r})})},e.prototype.resolveSecureFieldInitCompletedPromise=function(e){this.queuedIFrameInitCompletedPromises.forEach(function(t){t.id===e&&t.resolve()}),this.queuedIFrameInitCompletedPromises=this.queuedIFrameInitCompletedPromises.filter(function(t){return t.id!==e})},e.prototype.buildMessage=function(e,t){return{source:eI.pidlSdkMessageSource,event:e,payload:t,correlationId:rd.guid()}},e.prototype.guaranteedPostMessage=function(e,t,n){var r=this;if(!(n>this.maxRetryPostMessage))if(n++,this.loadedSecureFields.includes(e)&&window.frames[e]){var o="https://"+rf.getServiceEndpoint(rf.virtualEndpoints.securePx.endpoint);this.secureFieldOriginOverride&&(o=this.secureFieldOriginOverride),window.frames[e].postMessage(t,o),this.eventHub.secureFieldEventPosted(e,t.event,t.correlationId)}else this.eventHub.secureFieldEventQueued(e,t.event,t.correlationId),setTimeout(function(){r.guaranteedPostMessage(e,t,n)},this.postMessageTimeoutInMs)},e.prototype.getSecurePropertyInitializationPayload=function(e){var t,n,r,o=null==(t=null==e?void 0:e.modelElement)?void 0:t.dataDescription,a=null==(n=null==e?void 0:e.modelElement)?void 0:n.displayDescription,s=null==a?void 0:a.propertyName,l=null==o.validations?[o.validation]:o.validations;return{maxLength:null==a?void 0:a.maxLength,isOptional:o.is_optional,resolutionPolicy:null==(r=null==e?void 0:e.modelElement)?void 0:r.resolutionPolicy,keyPropertyResolutionMappings:o.keyPropertyResolutionMappings,propertyDataValidations:l,cssStyles:this.computedStyles.style[s],msCv:this.eventHub.getCorrelationId(),sessionId:this.eventHub.getSessionId()}},e.prototype.handleExpressCheckoutButtonMessage=function(e,t){var n,r,o,a,s,l,c,u=this;switch(null==(n=e.data)?void 0:n.messageType){case eT.paymentSheetOpened:this.eventHub.paymentSheetOpened(null==(r=e.data)?void 0:r.source);break;case eT.paymentData:var d=e.data.pidlAction||null;d?this.invokePidlAction(d).then(function(){u.eventHub.postMessageHandleSuccess(d.type)},function(){u.eventHub.postMessageHandleFailure("specified pidlAction from expressCheckout is not successful. pidlAction type: "+d.type)}):this.eventHub.postMessageHandleFailure("pidlAction from expressCheckout is not specified");break;case eT.paymentDataTokenizing:this.eventHub.paymentDataTokenizing(null==(o=e.data)?void 0:o.source);break;case eT.paymentDataTokenized:this.eventHub.paymentDataTokenized({source:null==(a=e.data)?void 0:a.source,tokenReference:null==(s=e.data)?void 0:s.tokenReference});break;case eT.cancel:this.eventHub.paymentSheetCancelled(null==(l=e.data)?void 0:l.source);break;case eT.error:var p=null==(c=e.data)?void 0:c.error,f=p;try{f=JSON.parse(p)}catch(e){f=p}var h={error:f,stack:null==f?void 0:f.stack,message:null==f?void 0:f.message},m=void 0;p===eD.failedToOpenWindow?m=new nt.failedToOpenWindowError(nn.failedToOpenWindow,JSON.stringify(h)):(null==f?void 0:f.message)===eD.tokenizationFailed?(h.message=null==f?void 0:f.originalError,m=new nt.unexpectedError(nn.tokenizationFailed,[JSON.stringify(h)])):m=new nt.paymentMethodFailureError(nn.paymentMethodFailure,JSON.stringify(h)),this.eventHub.failure(m)}},e.prototype.testHookSetCurrentPage=function(e){this.pageIndex=e},e.prototype.testHookGetCurrentPage=function(){return this.pageIndex},e.prototype.testHookGetValidator=function(){return this.validator},e.prototype.testHookGetModelData=function(){return this.modelData},e.prototype.testHookClearElementEditStates=function(){return this.clearElementEditStates()},e.prototype.testHookSetCallbacks=function(e){this.callbacks=e},e.prototype.testHookSetSuspendedNextAction=function(e){this.suspendedNextAction=e},e.prototype.testHookGetInputDataCache=function(){return this.inputDataCache},e}(),r5=function(){return function(e,t){var n=this;this.getPidlDocumentHook=null,this.originalPidlDocs=[],this.resolvedPidlDocs=[],this.pidlIdentityHashMapping={},this.downloadedPidlDocsByUrl={},this.lastDownloadedPidlDoc=null,this.operationInfo=null,this.currentUrl=null,this.currentHeaders=null,this.pidlPayload=null,this.logos=[],this.updatePidlDocStore=function(e,t,r){if(n.operationInfo&&n.operationInfo.handle){var o=ni.getPidlStoreService();if(o){var a=o.get(n.operationInfo.handle);e=e||a&&a.pidls;var s=t[0]&&t[0].identity||a&&a.resolvedPidlIdentity;o.put(n.operationInfo.handle,r||a.pidlDocInfo,e,s)}}},this.getResolvedLogoDescription=function(e){for(var t=0;t<e.length;t++){var r=e[t];if(tM(r))return r;if(tI(r)&&r.members){var o=n.getResolvedLogoDescription(r.members);if(o)return o}}},this.getIdentityLessCountry=function(e){return e.description_type+"_"+e.type},this.addIdentity=function(e){if(e&&e.identity){var t=na.createIdentityHash(e.identity),r=n.getIdentityLessCountry(e.identity);n.pidlIdentityHashMapping[t]=r}},this.addLogo=function(e){var t=e.displayDescription;if(t&&rp.isArray(t))for(var r=0;r<t.length;r++){var o=[];na.getLogoDescriptions(t[r],o);for(var a=0;a<o.length;a++){for(var s=!1,l=0;l<n.logos.length;l++)if(n.logos[l].displayId===o[a].displayId){s=!0;break}s||n.logos.push(o[a])}}},this.checkPidlDoc=function(e){if(e){n.addIdentity(e);var t=e.data_description;for(var r in t){var o=t[r];if(o instanceof Array)for(var a=0;a<o.length;a++)n.checkPidlDoc(o[a])}}},this.isPidlForCurrentOperation=function(e){return!n.operationInfo||!n.operationInfo.operationType||!e||!e.identity||!e.identity.operation||rp.equalsIgnoreCase(n.operationInfo.operationType,e.identity.operation)||rp.equalsIgnoreCase(eL.update,e.identity.operation)},this.swapPidlDoc=function(e,t,r){if(n.resetPidlDocs(),t){if(t instanceof Array)for(var o=0;o<t.length;o++)n.checkPidlDoc(t[o]),n.isPidlForCurrentOperation(t[o])&&(n.originalPidlDocs.push(t[o]),n.addLogo(t[o]));else n.checkPidlDoc(t),n.isPidlForCurrentOperation(t)&&(n.originalPidlDocs.push(t),n.addLogo(t));if(1===n.originalPidlDocs.length?n.resolvedPidlDocs=rp.copyArray(n.originalPidlDocs):r&&rp.invokeIf(n.originalPidlDocs,function(e){var t=e.identity;return rp.objectEquals(r,t)},function(e){n.resolvedPidlDocs.push(n.originalPidlDocs[e])}),0===n.resolvedPidlDocs.length){var a=ni.getCommerceService(),s=na.createKeyPropertyMap(n.originalPidlDocs,na.getDefaultPropertyValueGetter()),l=a.getFirstPidlWithValidDefaultKey(n.originalPidlDocs,s);l&&n.resolvedPidlDocs.push(l)}e&&e.pidlResolved("swapPidlDocs",n.resolvedPidlDocs)}},this.resetPidlDocs=function(){n.originalPidlDocs=[],n.resolvedPidlDocs=[],n.pidlIdentityHashMapping={},n.logos=[]},this.getPidlDocument=function(e,t){return e.pidlDownloading(t.url),new Promise(function(r,o){var a=rp.toLowerCase(t.url);if(n.pidlPayload)r(n.pidlPayload);else{if(!n.downloadedPidlDocsByUrl[a])return ni.getPidlService().getPidlDocument(e,t,n.getPidlDocumentHook).then(function(e){n.downloadedPidlDocsByUrl[a]=e,r(e)},function(e){o(e)});r(n.downloadedPidlDocsByUrl[a])}})},this.setPidlDoc=function(e,t,r){n.clearCache(),t instanceof Array||(t=t?[t]:null),n.swapPidlDoc(e,t,r),n.updatePidlDocStore(t,n.resolvedPidlDocs,n.currentPidlDocInfo)},this.getPidlPayload=function(){return n.pidlPayload},this.setToLastDownloadedPidlDoc=function(e){n.setPidlDoc(e,n.lastDownloadedPidlDoc)},this.downloadPidlDoc=function(e,t,r,o,a,s){return new Promise(function(l,c){n.getPidlDocument(e,{url:t.url,headers:r,virtualEndpoint:t.virtualEndpoint,pidlOperation:n.operationInfo.operationType,fetchConfig:s}).then(function(s){var c,u,d;if(s&&s[0]&&s[0].clientAction)return void l(s[0].clientAction);if(tV(s)){for(var p in null==(c=null==s?void 0:s.pidlInfo)?void 0:c.pidls)if(n.operationInfo.operationType.toLowerCase()===p.toLowerCase()){d=null==(u=null==s?void 0:s.pidlInfo)?void 0:u.pidls[p];break}n.pidlPayload=s}else d=s;n.currentUrl=t,n.currentHeaders=r,n.currentPidlDocInfo=o||n.currentPidlDocInfo,n.lastDownloadedPidlDoc=d,n.swapPidlDoc(e,d,a),n.updatePidlDocStore(d,n.resolvedPidlDocs,o),l()},function(e){c(e)})})},this.retrievePidlDocFromCache=function(e,t,r){return new Promise(function(o,a){var s=ni.getPidlStoreService().get(t);s&&s.pidls?(n.lastDownloadedPidlDoc=s.pidls,n.swapPidlDoc(e,s.pidls,r),o()):a(nn.invalidCacheEntry)})},this.shouldDownloadNewPidl=function(e,t,r,o){return!(e instanceof Array&&e.length>=1||!n.currentUrl||nX(t)&&t.possibleOptions&&!r)&&t.triggerPidlDownloadOnChange&&(o===Z.finished||nX(t)&&o===Z.editing)},this.resolvePidlDoc=function(e,t,r,o,a){var s=ni.getCommerceService(),l=n.getAllPidlDocs(),c=na.createKeyPropertyMap(l,na.getPropertyValueGetter(o.getPropertyName(),r,t));return s.resolveInfoDescriptionId(l,c).then(function(l){if(n.shouldDownloadNewPidl(l,o,r,a)){var u=rp.deepCopy(n.currentUrl.originalParameters);if(rd.updatePidlDocUrlParams(u.pidlDocInfo,c)){var d=n.currentUrl.recreateUrl(u);return n.downloadPidlDoc(e,d,n.currentHeaders,u.pidlDocInfo).then(function(){return e.pidlDownloaded(),n.resolvePidlDoc(e,t,r,o,a).then(function(){return!0})},function(t){return e.failure(rd.createServerError(nn.pidlDocDownloadFailed,d.url,t,[t.errorMessage])),!1})}}else if(!na.matchPidlIdsToPidls(s,l,n.resolvedPidlDocs)&&(n.resolvedPidlDocs=na.resolvePidlDocs(n.originalPidlDocs,l),e.pidlResolved("resolvedPidlDocs",n.resolvedPidlDocs),0!==n.resolvedPidlDocs.length))return!0;return!1})},this.isEmpty=function(){return 0===n.originalPidlDocs.length},this.getResolvedOrAllPidlDocs=function(){return 0!==n.resolvedPidlDocs.length?n.resolvedPidlDocs:n.originalPidlDocs},this.getResolvedOrFirstPidlDoc=function(){return n.resolvedPidlDocs.length>0?n.resolvedPidlDocs[0]:n.originalPidlDocs.length>0?n.originalPidlDocs[0]:null},this.getAllPidlDocs=function(){return n.originalPidlDocs},this.clearCurrentPIDLResource=function(){n.currentPidlDocInfo&&ni.getPidlStoreService().removeResourceEntries(n.currentPidlDocInfo.resourceType)},this.getPidlIdentity=function(){var e=n.getResolvedOrFirstPidlDoc();return e?e.identity:null},this.getAllLogos=function(){return n.logos},this.getResolvedLogo=function(){if(1===n.resolvedPidlDocs.length)return n.getResolvedLogoDescription(n.resolvedPidlDocs[0].displayDescription)},this.getLogoUrl=function(e,t){var n=e.toLowerCase();switch(n){case"mastercard":return t.mc;case"americanexpress":case"american express":return t.amex;default:return t[n]||""}},this.getLogosFromDataDescription=function(){var e,t=n.getResolvedOrFirstPidlDoc();if(null==(e=null==t?void 0:t.data_description)?void 0:e.cardLogos){var r=t.data_description.cardLogos;return(null==r?void 0:r.possible_values)||{}}return{}},this.getIdentityString=function(e){return e&&e in n.pidlIdentityHashMapping?n.pidlIdentityHashMapping[e]:null},this.reset=function(){n.resetPidlDocs(),n.operationInfo=null,n.clearCache()},this.clearCache=function(){n.downloadedPidlDocsByUrl={}},this.getNextPidlRef=function(){if(n.resolvedPidlDocs[0]&&n.resolvedPidlDocs[0].links)return n.resolvedPidlDocs[0].links.nextPidl},this.getLinkedPidls=function(){var e=n.getResolvedOrFirstPidlDoc();if(e)return e.linkedPidls},this.getLinkedPidl=function(e){var t=n.getLinkedPidls();if(t){for(var r=0;r<t.length;r++)if(na.createIdentityHash(t[r].identity)===e)return t[r]}},this.getPidlInstanceContexts=function(){var e=n.getResolvedOrFirstPidlDoc();if(e)return e.pidlInstanceContexts},this.setOperationInfo=function(e){n.operationInfo=e},this.getOperationHandle=function(){if(n.operationInfo)return n.operationInfo.handle},this.testHookGetGetPidlDocumentHook=function(){return n.getPidlDocumentHook},this.testHookGetResolvedPidlDoc=function(){return n.resolvedPidlDocs},this.testHookSetResolvedPidlDocument=function(e){n.resolvedPidlDocs=e instanceof Array?e:[e]},this.testHookSetCurrentUrl=function(e){n.currentUrl=e},this.getPidlDocumentHook=e||null,this.pidlPayload=t||null}}(),r4={addAddress:[Q.initialized],selectPaymentInstrument:[Q.initialized],addPaymentInstrument:[Q.initialized],listAddress:[Q.initialized],addResource:[Q.initialized],applyResource:[Q.initialized],replaceResource:[Q.initialized],updateResource:[Q.initialized],updateProfile:[Q.initialized],selectResource:[Q.initialized],selectSingleResource:[Q.initialized],selectResourceType:[Q.initialized],validateResource:[Q.initialized],showResource:[Q.initialized],offerResource:[Q.initialized],searchResource:[Q.initialized],deleteResource:[Q.initialized],fundStoredValue:[Q.initialized],createPaymentSession:[Q.initialized],handleChallenge:[Q.initialized],handlePaymentChallenge:[Q.initialized],expressCheckout:[Q.initialized],handlePurchaseRiskChallenge:[Q.initialized],handlePurchasePendingState:[Q.initialized],renderPidlPage:[Q.initialized],getPidlPayload:[Q.executing],invokePageDefaultAction:[Q.executing],invokeResourceAction:[Q.initialized,Q.executing],moveNextPage:[Q.executing],validateProperties:[Q.executing],submitPage:[Q.submitting,Q.executing,Q.initialized],movePrevPage:[Q.executing],moveToLastPage:[Q.executing],moveToFirstPage:[Q.executing],refreshData:[Q.executing],cancel:[Q.initialized,Q.executing,Q.submitting],destroyInstance:[Q.submitting,Q.executing,Q.initialized,Q.notInitialized],modelSubmitForm:[Q.executing,Q.submitting],handleAction:[Q.initialized],getSelectedResource:[Q.initialized,Q.executing,Q.submitting],renderPidlDocument:[Q.initialized],postMessageToChildIFrames:[Q.executing,Q.submitting],profilePrerequisite:[Q.initialized],handleCheckout:[Q.initialized],getPayeeTaxProfile:[Q.initialized],redeemMSRewards:[Q.initialized],searchTransactions:[Q.initialized],selectMSRewards:[Q.initialized]},r3=function(){function e(e){this.state=Q.notInitialized,this.eventHub=e;var t=this;this.eventHub.addPrivateEventHandler(function(e,n){t.privateEventHandler(e,n)})}return e.prototype.privateEventHandler=function(e,t){if(this.state!==Q.notInitialized)switch(e){case _.success:case _.failure:case _.gohome:t[E.preventUnmountOnFinish]||this.setState(Q.initialized)}},e.prototype.getState=function(){return this.state},e.prototype.setState=function(e){this.eventHub.stateChanged(this.state,e),this.state=e},e.prototype.canApiStart=function(e){if(this.state===Q.notInitialized)return{error:new nt.apiValidationError(nn.apiCannotStartAsControlNotInitialized,e,[e]),result:!1};var t=r4[e];return t?rp.contains(t,this.state)?{result:!0}:{error:new nt.apiValidationError(nn.apiCannotStartAsNotAllowedInCurrentState,e,[e,this.state,t.toString()]),result:!1}:{error:new nt.unexpectedError(nn.apiStateMappingNotFound,[e]),result:!1}},e}(),r6=function(){function e(e){this.userContext=e}return e.prototype.getServiceParam=function(e,t){if(!this.userContext)return null;var n=tX.findVirtualEndpointInTemplate(e);if(n&&n.name&&this.userContext.serviceOverrides){for(var r in this.userContext.serviceOverrides)if(rp.toLowerCase(r)===n.name)return this.userContext.serviceOverrides[r][t]||this.userContext[t]}return this.userContext[t]},e.prototype.getAdditionalHeaders=function(e){return this.getServiceParam(e,"additionalHeaders")},e.prototype.getAuthToken=function(e){return this.getServiceParam(e,"authToken")},e.prototype.getUserId=function(e){return this.getServiceParam(e,"userId")},e.prototype.getHeaders=function(e,t){e=e||{};var n=this.getAuthToken(t);n&&(e[M.authorization]=n);var r=this.getAdditionalHeaders(t);if(r)for(var o in r)e[o]=r[o];return e},e.prototype.getUserCredential=function(e){var t=this.getAuthToken(e);if(!t){var n=this.getAdditionalHeaders(e);for(var r in n)if(rp.equalsIgnoreCase(r,M.authorization)){t=n[r];break}}return t},e}(),r8=function(){function e(e){var t=this;this.waitForSecureFields=!1,this.displaySettings=null,this.model=null,this.userContext=null,this.eventHub=null,this.focusTarget=null,this.unseenErrors=[],this.totalExpressCheckoutButtonElements=0,this.expressCheckoutButtonEligibilityStatus={},this.securePropertyPromises=[],this.securePropertyInitCompletedPromises=[],this.errorPropertyGroups={},this.pollingActions={},this.pageRestActions={},this.valueSetters=[],this.view=null,this.pollingTimersAndCounters={},this.showHideBusy=function(e){(e||!t.displaySettings.busyUntilInitialPageRendered)&&(t.displaySettings.busyBlockShowHideHandler?t.displaySettings.busyBlockShowHideHandler(e):t.view.showHideBusy(e))},this.applyForModelDisplayTransformation=function(e,t,n){if(n8(e)&&!(n&&e.maskDisplay)&&e.displayTransformations&&e.displayTransformations.forModel)return rd.applyDisplayTransformation(e.displayTransformations.forModel,t)},this.hideError=function(e){e?t.view.hidePropertyError(e):t.view.hidePageError()},this.showGroupError=function(e){return!!e.groupDisplayId&&(t.view.showGroupError(e)||t.unseenErrors.push(e),!0)},this.showPropertyError=function(e){return!!e.propertyName&&(t.view.showPropertyError(e)||t.unseenErrors.push(e),!0)},this.showPageError=function(e){return t.view.showPageError(e)},this.hideModalDialog=function(){return t.view.hideModalDialog()},this.showError=function(e){var n=!1;switch(e.type){case I.formValidation:var r=e;if(r.errors&&r.errors.length>0){for(var o=0;o<r.errors.length;o++)if(r.errors[o].message===ee.empty&&(r.errors[o].message=""),!t.showError(r.errors[o]))return;e.name===nn.formSubmissionFailedBadUserInput.name&&r.message!==ee.empty&&(n=!0)}else n=!0;break;case I.userInputValidation:n=e.validationErrorType===D.group?!t.showGroupError(e):!t.showPropertyError(e);break;default:n=!0}return n&&t.showPageError(e),!0},this.fillForm=function(e){var n=t.view.getVisibleProperties();t.model.showMaskedValues=e===et.pageNavigated;var r={isRadioProperty:!1,firstRadioChecked:!1,updateReason:e};if(n.forEach(function(e){var n=t.model.modelData.getProperty(e),o=t.model.getPropertyModelElement(e);r.isRadioProperty=n7(o);var a=t.model.modelData.getPrefillData(),s=t.model.showMaskedValues&&t.model.modelData.getMaskedPropertyValue(e)||n8(o)&&o.displayTransformations&&o.displayTransformations.forFormat&&rd.applyDisplayTransformation(o.displayTransformations.forFormat,n.value)||n.value;t.model.showMaskedValues&&s!==n.value&&t.view.setAccessibilityText(o,o.tags&&o.tags.maskedAccessibilityName||o.accessibilityName||o.displayName),nX(o)&&(r.dropdownElement=o),s&&t.model.sendResourceSelectedEvent(e,Z.ready),n9(o)&&a&&a.id&&t.view.updateButtonList(o,a.id,a.invalid),t.view.updatePropertyValue(e,n.editable,s,r)}),t.valueSetters&&t.valueSetters.length)for(var o=0;o<t.valueSetters.length;o++)t.valueSetters[o].set();t.view.updatePrefillControls()},this.reset=function(){t.unseenErrors=[],t.errorPropertyGroups={},t.model.showMaskedValues=!1,t.view.reset(),t.valueSetters=[],t.stopAllPolling()},this.stopAllPolling=function(){for(var e in t.pollingTimersAndCounters)t.stopPoll(e);t.pollingTimersAndCounters={},t.pollingActions={}},this.stopPoll=function(e){t.pollingTimersAndCounters[e]&&(t.pollingTimersAndCounters[e].pollingCounter=0,clearInterval(t.pollingTimersAndCounters[e].pollingTimer))},this.startPollingWithNextAction=function(e){t.pollingActions[e]&&t.pollingActions[e].nextAction&&(t.pollingActions[e]=t.pollingActions[e].nextAction,t.pollingHandler(e,t.pollingActions[e]))},this.registerGroupedErrors=function(e){if(e&&e.errors&&e.errors.length)for(var n=[],r=0;r<e.errors.length;++r){var o=e.errors[r],a=e.errors[r];o.propertyName&&(n.push(o.propertyName),t.errorPropertyGroups[o.propertyName]=n),a.groupDisplayId&&(n.push(a.groupDisplayId),t.errorPropertyGroups[a.groupDisplayId]=n)}},this.deregisterGroupedErrors=function(e,n){if(n||(n=t.hideError),e&&t.errorPropertyGroups[e])for(var r=t.errorPropertyGroups[e],o=0;o<r.length;++o){var a=r[o];t.unseenErrors.length>0&&rp.filter(t.unseenErrors,function(e){return!e.propertyName||e.propertyName!==a}),n(a),delete t.errorPropertyGroups[a]}},this.handleErrorEvent=function(e){if(!t.displaySettings.hidePropertyErrors){var n=e.error;if(n){(!nt.isServerError(n)||n.retryable)&&nt.isServerError(n)||t.showHideBusy(!1);var r=n.propertyName;r&&n.type===I.userInputValidation&&t.deregisterGroupedErrors(r),t.sortError(n),t.showError(n),n.name===nn.formSubmissionFailedBadUserInput.name?(t.registerGroupedErrors(n),t.view.setFocusOnFirstError()):n.name===nn.formValidationFailed.name&&t.view.setFocusOnFirstError()}}},this.sortError=function(e){if(e.type===I.formValidation){var n=e;if(null!==n.errors&&!(n.errors.length<=1)){var r=t.model.getCurrentPage(),o=[];t.addError(r,n,o),n.errors=o}}},this.addError=function(e,n,r){if(null!=e)for(var o=0;o<e.children.length;o++){var a=e.children[o];if(rc(a)||ri(a)){var s=a.getPropertyName(),l=t.getErrorByPropertyName(n.errors,s);null!==l&&r.push(l)}else if(nW(a)){t.addError(a,n,r);var c=t.getErrorByDisplayId(n.errors,a.displayId);null!==c&&r.push(c)}}},this.getErrorByPropertyName=function(e,t){if(null==t)return null;for(var n=0;n<e.length;n++){var r=e[n];if(t===r.propertyName)return r}return null},this.getErrorByDisplayId=function(e,t){if(null==t)return null;for(var n=0;n<e.length;n++){var r=e[n];if(t===r.groupDisplayId)return r}return null},this.handlePropertyValidated=function(e){e&&(t.hideError(e.propertyName),t.deregisterGroupedErrors(e.propertyName))},this.setSubmitButtonState=function(e){var n=t.model.getSubmitButton()||{},r=n.accessibilityName,o=void 0===r?null:r,a=n.disabledAccessibilityName,s=void 0===a?null:a,l=n.displayId,c=void 0===l?null:l;t.view.setDisabledByDisplayId(c,e,{accessibilityName:o,disabledAccessibilityName:s})},this.publicEventHandler=function(e,n){switch(e){case S.error:t.handleErrorEvent(n);break;case S.propertyValidated:t.handlePropertyValidated(n);break;case S.pidlDownloading:case S.pageRendering:case S.inputSubmitting:case S.redirecting:case S.instanceDownloading:case S.restMethodInvoking:case S.propertyTokenizing:t.showHideBusy(!0);break;case S.pageRendered:for(var r in t.displaySettings.busyUntilInitialPageRendered=!1,t.pollingActions=nl.getPollingPidlActions(t.model.elements),t.pollingActions)t.pollingHandler(r,t.pollingActions[r]);nl.findRadioElements(t.model.elements).forEach(function(e){rc(e)&&t.model.sendSelectionChangeEvent(e,e.defaultValue)}),t.pageRestActions=nl.getPagePidlActions(t.model.elements,k.restAction);var o=[];for(var r in t.pageRestActions)o.push(t.invokePidlAction(t.pageRestActions[r]));if(o.length>0){Promise.all(o).finally(function(){t.showHideBusy(!1)}).catch(t.displaySettings.propagateCallbackException?rg:rm);break}if(t.waitForSecureFields)break;case S.pageDisplayed:case S.pidlDownloaded:case S.instanceDownloaded:case S.restMethodInvoked:case S.inputSubmitted:t.showHideBusy(!1);break;case S.pageNavigated:t.updateView(et.pageNavigated);break;case S.propertySelected:t.view.markAsFilled(n.divId)}},this.privateEventHandler=function(e,n){switch(e){case _.modelUpdated:var r=n&&n.created?et.modelCreated:et.modelUpdated;t.updateView(r,null==n?void 0:n.skipHideBusyBlock);break;case _.dataUpdated:t.fillForm();break;case _.secureFieldLoadWaitStarted:t.showHideBusy(!0),t.waitForSecureFields=!0;break;case _.secureFieldLoadWaitEnded:t.showHideBusy(!1),t.waitForSecureFields=!1;break;case _.success:case _.failure:case _.gohome:t.showHideBusy(!1),t.reset();break;case _.propertyCreated:var o=n;t.view.checkAndMarkAsFilled(o.divId,o.controlId);break;case _.propertyUnselected:var a=n;t.view.checkAndMarkAsUnfilled(a.divId,a.id);break;case _.postMessageBusyTimerStarted:t.showHideBusy(!0);break;case _.postMessageBusyTimerEnded:t.showHideBusy(!1);break;case _.hideModalDialog:t.hideModalDialog();break;case _.submitting:t.setSubmitButtonState(!0);break;case _.submitted:t.setSubmitButtonState(!1);break;case _.updatePollAndMoveLast:var s=n.pollId||"";t.stopPoll(s),t.startPollingWithNextAction(s),t.model.moveToLastPage().catch(rm)}},this.getPollingPidlActionContext=function(e){var t=e.context,n=t.href,r=t.responseResultExpression,o=t.responseActions,a=t.method;if(n&&r&&o&&a)return e.context},this.getPidlActionFromPollingResponse=function(e,t,n){if(!e||!t||!n)return null;var r=rp.getPropertyValueByJPath(e,t);return rp.getPropertyValueByJPath(n,r)},this.getModelPropertyValue=function(e){return t.model.getPropertyValue(e)},this.updateModelPropertyValue=function(e,n,r){return t.model.updatePropertyValue(t.model.getPropertyModelElement(e),n,r,!1)},this.updateView=function(e,n){t.view.initialize(t.eventHub,t.model,t.displaySettings,t);var r=t.model.getCurrentPage(),o=t.model.getCaptchaType(),a=t.model.getPidlInstanceContexts();t.model.secureFieldResolved||t.view.reset(),t.totalExpressCheckoutButtonElements=nl.findExpressCheckoutButtonElements(t.model.elements).length;var s=t.view.render({updateReason:e,focusTarget:t.focusTarget,captchaType:o,pageElement:r,viewEventHandler:t,displaySettings:t.displaySettings,eventHandler:t.eventHandler,eventHub:t.eventHub,pidlInstanceContexts:a,displayOptions:t.displayOptions,callbacks:t.callbacks,telemetryOptions:t.telemetryOptions,userContext:t.userContextIn,returnOptions:t.returnOptions,externalPrivateEventHandler:t.externalPrivateEventHandler,oneDSService:t.oneDSService,transformers:t.transformers,pidlPayload:t.pidlPayload,localDataSourceProviders:t.localDataSourceProviders,controlApiMap:t.controlApiMap});if(t.valueSetters=s.valueSetters,t.eventHub.pageRefreshed(),t.fillForm(e),t.view.restoreCaretPosition&&e!==et.pageNavigated&&t.view.restoreCaretPosition(),t.model.validateEditedProperties().catch(rm),e===et.modelCreated)t.unseenErrors=[],t.errorPropertyGroups={};else{var l=t.unseenErrors;t.unseenErrors=[],n||t.showHideBusy(!1);for(var c=0;c<l.length;c++)t.showError(l[c]);e!==et.modelUpdated&&t.view.setFocusOnFirstError()}},this.hasSecureFields=function(e){var n,r=e.children;if(!r)return!1;for(var o=0,a=r;o<a.length;o++){var s=a[o];if((null==(n=null==s?void 0:s.isSecureProperty)?void 0:n.call(s))||n3(s)&&t.hasSecureFields(s))return!0}return!1},this.getTimeoutPromise=function(e){return new Promise(function(n,r){var o=setTimeout(function(){r(Error("Timeout"))},e);t.getTimeoutPromise.id=o})},this.clearTimeoutPromise=function(){var e;try{var n=null==(e=t.getTimeoutPromise)?void 0:e.id;n&&clearTimeout(n)}catch(e){}},this.createSecurePropertyLoadedPromise=function(e){t.securePropertyPromises.push(t.model.queueSecureFieldLoadedPromise(e))},this.resolveSecurePropertyLoadedPromise=function(e){t.model.resolveSecureFieldLoadedPromise(e)},this.createSecurePropertyInitCompletedPromise=function(e){t.securePropertyInitCompletedPromises.push(t.model.queueSecureFieldInitCompletedPromise(e))},this.getSecurePropertyLoadedPromises=function(){return t.securePropertyPromises},this.getSecurePropertyInitCompletedPromises=function(){return t.securePropertyInitCompletedPromises},this.extractStylesFromStylesheet=function(e){for(var n=document.styleSheets,r=".errorStroke",o=".".concat(u.errorStroke),a=".".concat(u.secureProperty),s=0;s<n.length;s++){var l=n[s];try{for(var c=l.cssRules||l.rules,d=0;d<c.length;d++){var p=c[d];if(p instanceof CSSStyleRule)for(var f=p.selectorText.split(","),h=0;h<f.length;h++){var m=f[h].trim();m.includes(r)||m.includes(o)?e.push(m+"{ "+p.style.cssText+" }"):m.includes(a)&&(m=m.replace(a,""),e.push(m+"{ "+p.style.cssText+" }"))}}}catch(e){t.eventHub.styleSheetError(e,null==l?void 0:l.href)}}},this.computeSecurePropertyStyles=function(e,n){var r=[];n&&0===Object.keys(n).length?t.extractStylesFromStylesheet(r):n&&t.computeStylesFromHardCodedStyles(n,r),t.model.computedStyles.style[e]=r},this.computeStylesFromHardCodedStyles=function(e,t){var n='input[type="text"]',r=Object.keys(e.textFieldStyles).map(function(t){return"".concat(t,":").concat(e.textFieldStyles[t])}).join(";");t.push(n+"{"+r+"}");var o=".normalClass",a=Object.keys(e.fieldGroupNormalStyles).map(function(t){return"".concat(t,":").concat(e.fieldGroupNormalStyles[t])}).join(";");t.push(o+"{"+a+"}");var s=".focusClass",l=Object.keys(e.fieldGroupFocusStyles).map(function(t){return"".concat(t,":").concat(e.fieldGroupFocusStyles[t])}).join(";");t.push(s+"{"+l+"}");var c=".errorClass",u=Object.keys(e.fieldGroupErrorStyles).map(function(t){return"".concat(t,":").concat(e.fieldGroupErrorStyles[t])}).join(";");t.push(c+"{"+u+"}");var d=".focusErrorClass",p=Object.keys(e.fieldGroupFocusErrorStyles).map(function(t){return"".concat(t,":").concat(e.fieldGroupFocusErrorStyles[t])}).join(";");t.push(d+"{"+p+"}")},this.getMultiPropertySelectorPossibleOptions=function(e){return t.model.getMultiPropertySelectorPossibleOptions(e)},this.inputHandler=function(e){t.model.showMaskedValues=!1;var n=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.caretPosition&&e.caretPosition.id;var r=n2(e.propertyElement)||nX(e.propertyElement)?Z.finished:Z.editing;t.model.updatePropertyValue(e.propertyElement,n,r,t.model.showMaskedValues).catch(rm),t.view.updateDisplayValue&&t.view.updateDisplayValue(e.id,e.propertyElement,n,e.caretPosition),t.view.updatePrefillControls()},this.focusoutHandler=function(e){var n=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,n,Z.finished,t.model.showMaskedValues).catch(rm),t.view.updatePrefillControls(),t.eventHub.propertyUnselected(e.id,e.propertyElement.getPropertyName(),e.divId)},this.dropdownSelectHandler=function(e){var n=e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,n,Z.editing,t.model.showMaskedValues).catch(rm),t.view.updatePrefillControls()},this.buttonClickHandler=function(e){t.eventHub.click(e.id),t.model.invokePidlAction(e.pidlAction,e).catch(t.displaySettings.propagateCallbackException?rg:rm)},this.invokePidlAction=function(e){return t.model.invokePidlAction(e).catch(t.displaySettings.propagateCallbackException?rg:rm)},this.iFrameMessageTimeoutHandler=function(e){t.model.handleClientAction(e).then(function(){t.eventHub.postMessageTimeoutHandleSuccess(e.type)}).catch(function(){t.eventHub.postMessageTimeoutHandleFailure("specified client action is not successful. clientAction type: "+e.type)})},this.challengeiFrameMessageTimeoutHandler=function(e){t.model.handleClientAction(e).then(function(){}).catch(function(){})},this.postSecureFieldMessage=function(e,n,r){return t.model.postSecureFieldMessage(e,n,r)},this.secureIFrameOnLoadHandler=function(e){t.resolveSecurePropertyLoadedPromise(e.id)},this.getClientSetting=function(e){return t.model.getClientSetting(e)},this.postChallengeIframeMessage=function(e){return t.model.postChallengeiFrameMessage(e)},this.secureFieldMessageHandler=function(e){var n=rd.getHostName(rf.getServiceEndpoint(rf.virtualEndpoints.securePx.endpoint));rd.getHostName(e.origin)===n&&e&&e.data&&e.data.source===eI.secureFieldMessageSource&&t.model.handleSecureFieldMessage(e)},this.expressCheckoutButtonLoadHandler=function(e,n,r){t.model.handleExpressCheckoutButtonIframeLoaded(e,n,r)},this.expressCheckoutButtonIsEligible=function(e,n){if(t.expressCheckoutButtonEligibilityStatus[e]=n,Object.keys(t.expressCheckoutButtonEligibilityStatus).length===t.totalExpressCheckoutButtonElements){var r=[];for(var o in t.expressCheckoutButtonEligibilityStatus)t.expressCheckoutButtonEligibilityStatus[o]&&r.push(o);t.eventHub.expressCheckoutReady(r)}},this.expressCheckoutButtonMessageHandler=function(e){var n=rd.getHostName(rf.getServiceEndpoint(rf.virtualEndpoints.staticResources.endpoint));rd.getHostName(e.origin)===n&&e&&e.data&&t.model.handleExpressCheckoutButtonMessage(e)},this.iFrameMessageHandler=function(e){var n=rd.getHostName(rf.getServiceEndpoint(rf.virtualEndpoints.pifd.endpoint)),o=rd.getHostName(rf.getServiceEndpoint(rf.virtualEndpoints.pifdBackend.endpoint)),a=rd.getHostName(e.origin);if(t.eventHub.postMessageReceived(a,n,e.data&&e.data.length),a===n||a===o){var s=rd.parseJSON(e.data),l=s.succeeded?s.value:null;l?t.model.handleClientAction(l,null,r.iFrameMessageHandler).then(function(){t.eventHub.postMessageHandleSuccess(l.type)},function(){t.eventHub.postMessageHandleFailure("specified client action is not successful. clientAction type: "+l.type)}):t.eventHub.postMessageHandleFailure("clientAction is not specified")}},this.challengeiFrameMessageHandler=function(e){var n=rd.getHostName(rf.getServiceEndpoint(rf.virtualEndpoints.challengeUI.endpoint));if(rd.getHostName(e.origin)===n){var o=rd.parseJSON(e.data),a=o.succeeded&&e.type in eV?o.value:null;a?t.model.handleClientAction(a,null,r.iFrameMessageHandler).then(function(){t.eventHub.postMessageHandleSuccess(a.type)},function(){t.eventHub.postMessageHandleFailure("specified client action is not successful. clientAction type: "+a.type)}):t.eventHub.postMessageHandleFailure("clientAction is not specified"),"message"===e.type&&e.data in eR&&t.model.handleChallengeiFrameMessage(e)}},this.iFrameBusyTimerStartedHandler=function(e){t.eventHub.postMessageBusyTimerStarted("Busy started for timer ".concat(e))},this.iFrameBusyTimerEndedHandler=function(e){t.eventHub.postMessageBusyTimerEnded("Busy ended for timer ".concat(e))},this.hyperlinkClickHandler=function(e){var n=ni.getRedirectionService(),r=e.pidlAction,o=!1;switch(r.type){case k.redirect:var a=t.model.getLinkActionUrl(r.context,!1);if(!(o=t.eventHub.navigate(e.id,a,!0,r.context,null))&&n)return n.redirect(a),!0;break;case k.navigate:default:if(!(o=t.eventHub.navigate(e.id,r.context,!1,null,r.dest))&&n)return!n.openInNewTab(r.context)}return!o},this.captchaHyperlinkClickHandler=function(e,n,r){t.updateModelPropertyValue(e,n,r).catch(rm)},this.updatePrefillValue=function(e,n){return!0===n?t.model.setCurrentDataIndex(e,0):!1===n?t.model.setCurrentDataIndex(e,-1):t.model.setCurrentDataIndex(e,n),t.model.validateEditedProperties()},this.prefillChangeHandler=function(e){var n=e.type&&e.type===g.checkBox;n?e.val?t.model.setCurrentDataIndex(e.pidlIdentity,0):t.model.setCurrentDataIndex(e.pidlIdentity,-1):t.model.setCurrentDataIndex(e.pidlIdentity,e.val),t.fillForm(et.prefillChanged),n||t.model.validateEditedProperties().catch(rm)},this.propertySelectedHandler=function(e){t.eventHub.propertySelected(e.id,e.propertyName,e.divId)},this.propertyUnselectedHandler=function(e){t.eventHub.propertyUnselected(e.id,e.propertyName,e.divId)},this.postMessageToChildIFrames=function(e){return t.view.postMessageToChildIFrames(e)},this.pollingHandler=function(e,n){if(!n)return!1;var r={pollingTimer:null,pollingCounter:0};t.pollingTimersAndCounters[e]=r;var o=t.getPollingPidlActionContext(n);if(!o)return!1;var a=o.method,s=o.payload,l=o.headers,c=o.interval,u=void 0===c?ew.Default:c,d=o.responseResultExpression,p=o.responseActions,f=o.maxPollingAttempts,h=o.checkPollingTimeOut,m=o.fetchConfig,g=rA.getHttpHeaders(t.eventHub,t.userContext,l),v=t_.getSubmitUrl(t.model.operationType,t.userContext,o,t.model.modelData.getId()),y=v.virtualEndpoint,b=y.operation,x=y.description,C=function(e,n){clearInterval(t.pollingTimersAndCounters[n].pollingTimer),t.pollingTimersAndCounters[n].pollingCounter=0,delete t.pollingTimersAndCounters[n],t.eventHub.pollingEnded(n),t.eventHub.failure(e)};return t.pollingTimersAndCounters[e].pollingTimer=setInterval(function(){var r=null;if(a===el.Get)t.eventHub.pollingStarted(e),r=rA.get(t.eventHub,v.url,g,t.model.operationType,b,x,m);else if(a===el.Post)t.eventHub.pollingStarted(e),r=rA.post(t.eventHub,!0,v.url,g,JSON.stringify(s),null,null,t.model.operationType,b,x,!1,m);else if(a===el.Put)t.eventHub.pollingStarted(e),r=rA.put(t.eventHub,!0,v.url,g,JSON.stringify(s),null,null,t.model.operationType,b,x,!1,m);else{var o=new nt.unexpectedError(nn.unableToSetupPolling);return C(o,e),!1}if(null!==r)r.then(function(r){if(h&&t.pollingTimersAndCounters[e].pollingCounter++>f)return C(new nt.unexpectedError(nn.pollingTimedOut),e),!1;var o=t.getPidlActionFromPollingResponse(r,d,p)||n;if(o.type!==k.poll){if(clearInterval(t.pollingTimersAndCounters[e].pollingTimer),t.pollingTimersAndCounters[e].pollingCounter=0,delete t.pollingTimersAndCounters[e],t.eventHub.pollingEnded(e),o.type===k.moveNextAndPoll)return t.model.moveNextPage().catch(rm),t.pollingActions[e]=n.nextAction,t.pollingHandler(e,n.nextAction);if(o.type===k.updatePoll)return t.pollingActions[e]=n.nextAction,t.pollingHandler(e,n.nextAction);if(o.type===k.handleFailure)return t.eventHub.failure(new nt.unexpectedError(nn.failurePollingResponseReturned,[JSON.stringify(r)])),!1;r&&na.isPrimaryResource(t.model.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.model.modelData.setPrimaryResourceResponse(r)}if(!r||!r.clientAction||!o||o.type!==k.success)return t.model.invokePidlAction(o);t.model.handleClientAction(r.clientAction).then(function(){t.eventHub.pollClientActionSuccess(r.clientAction.type)}).catch(function(){t.eventHub.pollClientActionFailure("specified client action is not successful. clientAction type: "+r.clientAction.type)})},function(t){return C(t,e),!1});else{var o=new nt.unexpectedError(nn.unableToSetupPolling);return C(o,e),!1}},u),!0},this.testHookPublicEventHandler=function(e,n){t.publicEventHandler(e,n)},this.testHookPrivateEventHandler=function(e,n){t.privateEventHandler(e,n)},this.testHookGetUnseenErrors=function(){return t.unseenErrors},this.testHookSetUnseenErrors=function(e){t.unseenErrors=e},this.testHookFillForm=function(e,n){t.displaySettings=e,t.fillForm(n)},this.testHookGetErrorPropertyGroups=function(){return t.errorPropertyGroups},this.testHookRegisterGroupedErrors=function(e){t.registerGroupedErrors(e)},this.testHookDeregisterGroupedErrors=function(e,n){t.deregisterGroupedErrors(e,n)},this.testHookSetShowMaskedFlag=function(e){t.model.showMaskedValues=e},this.testHookGetRenderer=function(){return t.view},this.testHookUpdateView=function(e){t.updateView(e)},this.testHookSetFocusTarget=function(e){t.focusTarget=e},this.eventHub=e.eventHub,this.displaySettings=e.displaySettings,this.model=e.model,this.view=e.view,this.userContext=e.userContext,this.userContextIn=e.userContextIn,this.returnOptions=e.returnOptions,this.eventHandler=e.eventHandler,this.displayOptions=e.displayOptions,this.callbacks=e.callbacks,this.telemetryOptions=e.telemetryOptions,this.externalPrivateEventHandler=e.externalPrivateEventHandler,this.oneDSService=e.oneDSService,this.transformers=e.transformers,this.pidlPayload=e.pidlPayload,this.localDataSourceProviders=e.localDataSourceProviders,this.controlApiMap=e.controlApiMap,e.iFrameMessageHandler&&(this.iFrameMessageHandler=e.iFrameMessageHandler),this.eventHub.addPublicEventHandler(function(e,n){t.publicEventHandler(e,n)}),this.eventHub.addPrivateEventHandler(function(e,n){t.privateEventHandler(e,n)}),this.view.initialize(this.eventHub,this.model,this.displaySettings,this),this.model.setViewHandler(this.view)}return e.prototype.getPidlInstanceControls=function(){return this.view.getPidlInstanceControls()},e}(),r9=new(function(){return function(){var e=this;this.env="prod",this.envs=["int","ppe","prod","feature","aircapi"],this.get=function(){return e.env},this.set=function(t){var n=rp.toLowerCase(t);rp.contains(e.envs,n)&&(e.env=n,rf.setEnv(e.env))},this.getAll=function(){return e.envs}}}()),r7="2.9.0",oe=new(function(){return function(){this.get=function(){return r7}}}()),ot=new(function(){return function(){var e=this;this.applicationInsightsInstance=null,this.cvPlugin=null,this.cvInstance=null,this.cvInitialValue=null,this.userConsentDetailsCallback=function(){return{Advertising:!1,Analytics:!1,Required:!0,SocialMedia:!1}},this.initOneDsObjects=function(){if(!e.applicationInsightsInstance)try{var t="4127950a47f84a01a75e9a7d49d79f14-b56cc96f-0faa-4455-912a-6b8df93eeac5-6769";e.cvPlugin||e.initCVPlugin(),ni.getOneDSService()&&(e.applicationInsightsInstance=ni.getOneDSService().getApplicationInsights());var n={instrumentationKey:t,extensions:[e.cvPlugin],extensionConfig:[],propertyConfiguration:{gpcDataSharingOptIn:!1,callback:{userConsentDetails:e.userConsentDetailsCallback}}};e.applicationInsightsInstance&&rp.isFunction(e.applicationInsightsInstance.initialize)&&e.applicationInsightsInstance.initialize(n,[])}catch(e){ni.getLoggingService()&&ni.getLoggingService().logError("1DS Error : Error when attempting to initialize 1DS.",e)}},this.initCVPlugin=function(){if(!e.cvPlugin){ni.getOneDSService()&&(e.cvPlugin=ni.getOneDSService().getCorrelationVectorPlugin(e.cvInitialValue));var t=void 0;e.cvPlugin&&rp.isFunction(e.cvPlugin.getCv)&&(t=e.cvPlugin.getCv()),t&&rp.isFunction(t.isInit)&&t.isInit()?e.cvInstance=t:(ni.getOneDSService()&&(e.cvPlugin=ni.getOneDSService().getCorrelationVectorPlugin()),e.cvPlugin&&rp.isFunction(e.cvPlugin.getCv)&&(e.cvInstance=e.cvPlugin&&e.cvPlugin.getCv()))}},this.getCVInstance=function(){return e.cvInstance||e.initCVPlugin(),e.cvInstance},this.reset=function(){e.cvPlugin=null,e.cvInstance=null,e.applicationInsightsInstance=null},this.setUserConsentDetailsCallback=function(t){t&&(e.userConsentDetailsCallback=t)},this.getApplicationInsights=function(){return e.applicationInsightsInstance||e.initOneDsObjects(),e.applicationInsightsInstance},this.writeEvent=function(t,n,r){try{var o=e.getApplicationInsights();o&&rp.isFunction(o.trackEvent)?o.trackEvent({name:t,baseData:n},r):ni.getLoggingService()&&ni.getLoggingService().logError("1DS Error : ApplicationInsights is not correctly initialized")}catch(e){ni.getLoggingService()&&ni.getLoggingService().logError("1DS Error : Error when attempting to track event with 1DS.",e)}},this.getIncrementedCV=function(){try{var t=e.getCVInstance();return t&&rp.isFunction(t.increment)&&t.increment()}catch(e){ni.getLoggingService()&&ni.getLoggingService().logError("1DS Error : There was an issue with incrementing the correlation vector",e)}},this.getCVValue=function(){try{var t=e.getCVInstance();return t&&rp.isFunction(t.getValue)&&t.getValue()}catch(e){ni.getLoggingService()&&ni.getLoggingService().logError("1DS Error : There is an issue with correlation vector getValue function",e)}},this.initCV=function(t){try{t&&(e.cvInitialValue=t,e.reset())}catch(e){ni.getLoggingService()&&ni.getLoggingService().logError("1DS Error : There is an issue with Initializing CV",e)}},this.testHookReset=function(){e.applicationInsightsInstance=null,e.cvInstance=null}}}()),on=function(){return function(e,t){var n=this;this.partnerContext={},this.enableLogging=!0,this.enableConsoleLogging=!0,this.enablePrivateEventConsoleLogging=!1,this.enableUnhandledRejectionLogging=!0,this.sdkVersion=oe.get(),this.env=r9.get(),this.sessionId=rd.guid(),this.telemetryResource={resourceType:"",parameters:{id:null}},this.userConsentDetailsCallback=null,this.updateResourceInfo=function(e){var t;if(e){if(e.parameters)for(var r in e.parameters)try{e.parameters.hasOwnProperty(r)&&(n.telemetryResource.parameters=te(te({},n.telemetryResource.parameters),((t={})[r]=e.parameters[r],t)))}catch(e){}e.id&&(n.telemetryResource.parameters.id=e.id),e.resourceType&&(n.telemetryResource.resourceType=e.resourceType)}},this.update=function(e,t){n.operationType=e,t&&n.updateResourceInfo(t)},this.trackNewOperation=function(e,t){n.operationId=rd.guid(),n.update(e,t)},e&&(this.partnerContext=e.contextData||{},this.enableLogging=!e.disableLogging,this.enableConsoleLogging=!e.disableConsoleLogging,this.enablePrivateEventConsoleLogging=!!e.enablePrivateEventConsoleLogging,this.enableUnhandledRejectionLogging=!e.disableUnhandledRejectionLogging,this.telemetryOverrides=e.overrides,this.customTelemetryFrameworkWindowNamespace=e.customTelemetryFrameworkWindowNamespace,this.partnerContext&&this.partnerContext.cvInitValue&&ot&&ot.initCV(this.partnerContext.cvInitValue),e.userConsentDetailsCallback&&(this.userConsentDetailsCallback=e.userConsentDetailsCallback),ot.setUserConsentDetailsCallback(this.userConsentDetailsCallback));var r=this.partnerContext,o=r.sessionId,a=r.cvInitValue;!o&&a&&(o=a.substr(0,a.indexOf(".")),this.partnerContext.sessionId=o),!o&&this.sessionId&&(this.partnerContext.sessionId=this.sessionId),this.sdkViewType=t}}(),or=function(){function e(){}return e.prototype.logError=function(e,t){var n="";if(t)try{n=JSON.stringify(t)}catch(e){n=""}console.error(e+"= "+n)},e.prototype.logWarning=function(e){console.warn(e)},e.prototype.logMessage=function(e){console.log(e)},e}(),oo=new(function(){return function(){var e=this;this.createUserDataPropertyValue=function(e,t,n,r,o){if(t.indexedOn&&t.possible_values){var a=n.getPropertyValue(t.indexedOn,!1);if(a&&t.possible_values[a])return t.possible_values[a]}var s=n.getPropertyValue(no.getDisplayPropertyName(t,e),r,o);return s=void 0===s?rd.getFormatStringExpressionValue(t.default_value,{modelData:n}):s,t.type===eo.bool&&(s=rp.boolify(s)),s},this.createUserSecureInputDataInternal=function(t,n,r,o,a,s,l){var c=t.data_description,u=[];for(var d in c){var p=c[d];if(tz(p)){var f=p&&p.length&&p[0];if(f){var h=e.createUserSecureInputDataInternal(f,n,r,o,a,s,l);u.push(h)}}else{var m=n.getModelDataProperty(d);if(m&&m.modelElement&&m.modelElement.isSecureProperty()){p.token_set&&p.token_set.startsWith(eI.tokenizationValuePrefix)&&(p.token_set=p.token_set.replace(eI.tokenizationValuePrefix,""));var g=m.modelElement.prepareForSubmit(p.token_set).then(function(e){var t=c[e.propertyName];t.token_set=eI.tokenizationValuePrefix+t.token_set,a[e.propertyName]=e.value});u.push(g)}}}return Promise.all(u).then(function(){})},this.createUserInputDataInternal=function(t,n,r,o,a,s){var l,c={},u=t.data_description;for(var d in u){var p=u[d];if(tz(p)){var f=p&&p.length&&p[0];f&&(c[d]=e.createUserInputDataInternal(f,n,r,o,a,s))}else{if(p.displayOnly&&!s||o===eL.update&&!p.is_updatable)continue;if(p.type===eo.hidden){c[d]||(r[d]?c[d]=r[d]:c[d]=rd.getFormatStringExpressionValue(p.default_value,{modelData:n}));continue}var h=e.createUserDataPropertyValue(d,p,n,a,s);h&&(a&&p.type===eo.returnObject?(rp.isObject(h)||((l={})[d]=h,h=l),c=rd.extend({},c,h)):c[d]=e.getValueInDataType(h,a,p))}}return c},this.getValueInDataType=function(e,t,n){if(t){if(n.type===eo.number){var r=Number(e);return isNaN(r)?e:r}else if(n.type===eo.bool){if(!rp.isBool(e))return rp.equalsIgnoreCase(e,"true")}else if(n.type===eo.object&&!rp.isObject(e))try{return JSON.parse(e)}catch(e){}}return e},this.canSubmitUserInputDataInternal=function(t,n,r){var o=t.data_description;for(var a in o){var s=o[a];if(tz(s)){var l=s&&s.length&&s[0];if(l&&(e.canSubmitUserInputDataInternal(l,n?n[a]:n,r),r.canSubmit))return}else if(s.propertyType===ea.userData&&(r.noUserInputData=!1,!s.is_optional||n&&n[a])){r.canSubmit=!0;return}}},this.createUserInputData=function(t,n,r,o,a,s){return e.createUserInputDataInternal(t,n,r,o,a,s)},this.createUserSecureInputData=function(t,n,r,o,a,s){var l={};return e.createUserSecureInputDataInternal(t,n,r,o,l,a,s).then(function(){return l})},this.canSubmitUserInputData=function(t,n){var r={canSubmit:!1,noUserInputData:!0};return e.canSubmitUserInputDataInternal(t,n,r),r.canSubmit||r.noUserInputData}}}()),oi=new(function(){return function(){var e=this;this.setPropertyValueOfInputData=function(t,n,r){for(var o in t)if(o===n){t[o]=r;break}else rp.isObject(t[o])&&e.setPropertyValueOfInputData(t[o],n,r)},this.checkForValidTransformationTarget=function(e,t){var n=e.transformation,r=void 0===n?{}:n;return t===o.forSubmit&&rp.boolify(r.forSubmit)||t===o.forDisplay&&rp.boolify(r.forDisplay)},this.transformUserInputDataFromService=function(e,t,n,r,o,a,s,c,u){var d={value:o,pidlIdentity:t.identity,propertyName:n,transformationTarget:r},p=rA.getDefaultHttpHeaders(e);p[M.msFlight]="pxpidl",rA.post(e,!0,t_.buildUrl(rf.getServiceEndpoint(rf.virtualEndpoints.transformation.endpoint),[a]),p,JSON.stringify(d),function(e){var t;c(t=rp.equalsIgnoreCase(e.status,l.Passed)?{status:l.Passed,transformedValue:e.transformedValue}:{status:l.Fail,errorCode:e.errorCode,errorMessage:e.errorMessage})},function(e){c({status:l.Error,mode:ez.service,errorMessage:e.errorMessage})},s,rf.virtualEndpoints.transformation.operation,rf.virtualEndpoints.transformation.description,!0,u).catch(rm)},this.transformPropertyInternal=function(t,n,r,o,a,s,c,u){var d=!1,p=n.data_description,f=function(f){var h=p[f];if(tz(h)){var m=h.length&&h[0];m&&(d=e.transformPropertyInternal(t,m,r,o,a,s,function(e){c(e)},u)||d)}else if(f===r){var g=no.getPropertyValueFromInputData(o,f);if(e.transformPropertyFromPropertyDescription(t,n,f,h,a,g,s,function(t){t.status===l.Passed&&(e.setPropertyValueOfInputData(o,f,t.transformedValue),u()),(t.status===l.Error||t.status===l.Fail)&&c(Error(t.errorMessage))}),e.checkForValidTransformationTarget(h,a))return{value:!0}}};for(var h in p){var m=f(h);if("object"==typeof m)return m.value}return d},this.transformUserInputDataInternal=function(t,n,r,o,a,s,c,u){var d=n.data_description,p=0,f=!1,h=u?r:d,m=function(h){var m=d[h];if(tz(m)){var g=m&&m.length&&m[0];g&&(p++,f=e.transformUserInputDataInternal(t,g,r[h],o,function(e){a(e)},function(){0==--p&&f&&s&&s()},c,u)||f)}else{if(c===eL.update&&!m.is_updatable)return"continue";var v=no.getPropertyValueFromInputData(r,h);if(!v){if(m.displayOnly||u)return"continue";m.is_optional||a(Error(h+" is a required property per the pidlDocument but is missing in the userInputData object passed in."))}(f=e.transformPropertyFromPropertyDescription(t,n,h,m,o,v,c,function(t){t.status===l.Passed&&e.setPropertyValueOfInputData(r,h,t.transformedValue),(t.status===l.Error||t.status===l.Fail)&&a(Error(t.errorMessage)),t.mode===ez.service&&0==--p&&s&&s()}))&&p++}};for(var g in h)m(g);return 0===p&&s&&s(),p>0},this.transformPropertyFromPropertyDescription=function(t,n,r,a,s,c,u,d){var p,f={},h=!1;if(!c)return!1;if(a.transformation){var m=null;if(s===o.forSubmit)if(!a.transformation.forSubmit)return d(f),h;else m=a.transformation.forSubmit;else if(s===o.forDisplay)if(!a.transformation.forDisplay)return d(f),h;else m=a.transformation.forDisplay;else throw Error(r+"has invalid transformation type.");var g=m.inputregex,v=m.transformregex;if(g){if(v){var y=new RegExp(g),b=c.replace(y,v);f={status:l.Passed,transformedValue:JSON.parse('"'+b+'"')}}f.mode=ez.regex}else m.url&&(h=!0,e.transformUserInputDataFromService(t,n,r,s,c,m.url,u,function(e){(f=e).mode=ez.service,d(f)},null==(p=null==a?void 0:a.dataProtection)?void 0:p.fetchConfig))}return h||d(f),h},this.getUserDisplayDataPartial=function(t,n,r,a,s,l){var c=rp.deepCopy(r);e.transformUserInputDataInternal(t,n,c,o.forDisplay,a,function(){s(c)},l,!0)},this.transformUserInputData=function(t,n,r,a,s,l){e.transformUserInputDataInternal(t,n,r,o.forSubmit,a,s,l)},this.transformUserInputPropertyForDisplay=function(t,n,r,a,s,l,c){e.transformPropertyInternal(t,n,r,a,o.forDisplay,s,l,c)||l(Error("The property with property Name:"+r+" does not have valid display transform in data description"))}}}()),oa=function(){function e(){var e=this;this.getParentOfProperty=function(t,n){for(var r in n)if(r===t)return n;else if(rp.isObject(n[r])){var o=e.getParentOfProperty(t,n[r]);if(o)return o}},this.areIdentitiesEqual=function(e,t){if(!e||!t||rp.keyCount(e)!==rp.keyCount(t))return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0},this.resolveInfoDescriptionId=function(t,n){return e.invoke(function(e){try{var r=nr.resolveInfoDescriptionId(t,n);e.resolve(r)}catch(t){e.reject(t)}})},this.getFirstPidlWithValidDefaultKey=function(e,t){return nr.getFirstPidlWithValidDefaultKey(e,t)},this.createUserInputData=function(e,t,n,r,o,a){return oo.createUserInputData(e,t,n,r,o,a)},this.createUserSecureInputData=function(e,t,n,r,o,a){return oo.createUserSecureInputData(e,t,n,r,o,a)}}return e.prototype.invoke=function(e){return new Promise(function(t,n){e({resolve:t,reject:n})})},e.prototype.getUserDisplayDataPartial=function(e,t,n,r){return this.invoke(function(o){try{var a=t.getResolvedOrAllPidlDocs(),s=no.getFirstResolvedPidlDocument(a,n);null==s&&(s=a[0]),oi.getUserDisplayDataPartial(e,s,n,function(e){o.reject(e)},function(e){o.resolve(e)},r)}catch(e){o.reject(e)}})},e.prototype.transformUserInputData=function(e,t,n,r){return this.invoke(function(o){try{oi.transformUserInputData(t,e,n,function(e){o.reject(e)},function(){o.resolve()},r)}catch(e){o.reject(e)}})},e.prototype.transformUserInputPropertyForDisplay=function(e,t,n,r,o){var a=this;return this.invoke(function(s){var l=!1;t.propertyTransforming(n);try{var c=a.getParentOfProperty(n,r),u={};u[n]=c[n];var d=no.getFirstResolvedPidlDocument(e,r);null==d&&(d=e[0]),oi.transformUserInputPropertyForDisplay(t,d,n,u,o,function(e){l=!0,s.reject(e)},function(){t.propertyTransformed(n),c[n]=u[n],s.resolve()}),l||(t.propertyTransformed(n),c[n]=u[n],s.resolve())}catch(e){s.reject(e)}})},e.prototype.canSubmitUserInputData=function(e,t){return oo.canSubmitUserInputData(e,t)},e.prototype.getPidlSubmitOrder=function(e){return nr.getPidlSubmitOrder(e)},e}();function os(e,t){return rA.get(e,t.url,t.headers,t.pidlOperation,t.virtualEndpoint.operation,t.virtualEndpoint.description,t.fetchConfig)}var ol=function(){function e(){}return e.prototype.getPidlDocument=function(e,t,n){return n?new Promise(function(e,r){n(t,function(t){e(t)},function(e){r(e)})}):os(e,t)},e.prototype.getInstance=function(e,t){return e.instanceDownloading(t.url),os(e,t)},e.prototype.submitPidlDocument=function(e,t,n,r){return e.inputSubmitting(t.url),new Promise(function(o,a){rA.invokeFetch(e,!0,t.method,t.url,t.headers,t.method.toUpperCase()===el.Get||t.method.toUpperCase()===el.Delete?null:JSON.stringify(t.data),function(n){r&&(n=r(t,n));var a="None";!rp.isString(n)&&tU(n)&&n.clientAction&&(a=n.clientAction.type),e.inputSubmitted(a),o(n)},function(e){a(e)},n,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(o)})},e.prototype.invokeRestMethod=function(e,t,n){return new Promise(function(r,o){rA.invokeFetch(e,!0,t.method,t.url,t.headers,t.data,function(e){r(e)},function(e){o(e)},n,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(r)})},e.prototype.getRequestInstance=function(e,t,n,r,o){var a=t_.getResourceUrl(t,n);return{url:a.url,headers:rA.getHttpHeaders(e,n,null,a.template,null),virtualEndpoint:a.virtualEndpoint,pidlOperation:r,fetchConfig:o}},e}(),oc=function(){function e(){this.cache=null,this.cache=new rB}return e.prototype.put=function(e,t,n,r){var o={pidlDocInfo:t,pidls:n,resolvedPidlIdentity:r};this.cache.put(e,o)},e.prototype.get=function(e){return this.cache.get(e)},e.prototype.remove=function(e){this.cache.remove(e)},e.prototype.removeResourceEntries=function(e){this.cache.removeIf(function(t){return t&&t.pidlDocInfo&&rp.equalsIgnoreCase(t.pidlDocInfo.resourceType,e)})},e}(),ou=function(){function e(){}return e.prototype.redirect=function(e){window.location.replace(e),window.location.href=e},e.prototype.openInNewTab=function(e){return!!window&&!!window.open&&(window.open(e),!0)},e}(),od=function(){function e(e,t,n,r,o,a,s,l,u,d,p){var f=this;this.controlApiMap={},this.getInstanceControls=function(){var e=te({},f.viewEventHandler.getPidlInstanceControls());return e[f.displaySettings.instanceName]={moveNextPage:function(){return!!f.moveNextPage&&f.moveNextPage().result},submitPage:function(){return!!f.submitPage&&f.submitPage().result},validateProperties:function(){return f.validateProperties?f.validateProperties().result:rv(!1)},movePrevPage:function(){return!!f.movePrevPage&&f.movePrevPage().result},moveToFirstPage:function(){return!!f.moveToFirstPage&&f.moveToFirstPage().result},cancel:function(){return!!f.cancel&&f.cancel().result},getSelectedResource:function(){return f.getSelectedResource?f.getSelectedResource().result:{}},getPidlPayload:function(){return f.getPidlPayload?f.returnUserInputData():rv()},postMessageToChildIFrames:function(e){return!!f.postMessageToChildIFrames&&f.postMessageToChildIFrames(e).result}},f.apiSuccess(e,rv())},this.addSecureFieldPreLoadIFrame=function(){try{if(!("u">typeof document))return;f.eventHub.addSecureFieldPreLoadIFrameStarted();var e="secureFieldIFrame",t=t_.buildUrl(rf.getServiceEndpoint(rf.virtualEndpoints.securePx.endpoint),["resources","securefield.html"]),n=document.createElement("iframe");n.id=e,n.name="preloadSecureFieldIFrame",n.style.display="none",n.setAttribute("sandbox",""),n.src=t;var r=document.getElementById(e);r?r.src=t:document.body&&document.body.appendChild(n),f.eventHub.addSecureFieldPreLoadIFrameCompleted()}catch(e){f.eventHub.addSecureFieldPreLoadIFrameFailed(rd.convertErrorToString(e))}},this.logConstructorCall=function(e,t,n,r,o){var a={userContext:rp.boolify(e),returnOptions:rp.boolify(t),eventHandler:rp.boolify(n),displayOptions:rp.boolify(r),telemetryOptions:rp.boolify(o)},s={returnOptions:t,displayOptions:r,telemetryOptions:o};f.eventHub.apiCalled(en.constructor,a,s)},this.unhandledRejectionHandler=function(e){var t=e.reason&&e.reason.stack;t&&f.eventHub.error(new nt.unexpectedError(nn.unhandledRejection,[t]))},this.handlePrivateEvent=function(e,t){try{switch(e){case _.stateChanged:t&&t.newState===Q.initialized&&f.telemetryContext.enableUnhandledRejectionLogging&&window.addEventListener("unhandledrejection",f.unhandledRejectionHandler);break;case _.failure:case _.success:case _.gohome:f.telemetryContext.enableUnhandledRejectionLogging&&window.removeEventListener("unhandledrejection",f.unhandledRejectionHandler)}}catch(e){}},this.canApiStart=function(e){var t=f.stateManager.canApiStart(e);return!!t.result||(f.eventHub.error(t.error),!1)},this.getChallengePidlInfo=function(e){var t={resourceType:"Challenge",parameters:rp.deepCopy(e.piResourceInfo.parameters)};return t.parameters.piid=e.piResourceInfo.id,t.parameters.sessionId=e.sessionId,t.parameters.orderId=e.orderId,t},this.provisionWalletToken=function(e,t){var n={piFamily:null==t?void 0:t.family,piType:null==t?void 0:t.type,tokenReference:null==t?void 0:t.tokenReference,sessionData:e,paymentData:null==t?void 0:t.paymentData};return new Promise(function(e,t){var r,o={resourceType:c.WalletToken,parameters:{}},a=tX.getResourceEndpoint(o.resourceType),s=null==(r=t_.getResourceUrl(o,f.userContext))?void 0:r.url;try{return rA.post(f.eventHub,!0,s,rA.getHttpHeaders(f.eventHub,f.userContext,void 0,a.template),JSON.stringify(n),function(t){return e(t)},function(e){return t(e)},eL.provisionWalletToken,a.operation,a.description,!0)}catch(e){t(e)}})},this.handlePaymentAgentChallenge=function(e,t,n,r){if(!(null==(a=null==(o=null==window?void 0:window.paymentAgent)?void 0:o.isReadyToPay)?void 0:a.call(o))){var o,a,s=new nt.invalidSetupError(nn.invalidSetup);return f.eventHub.failure(s),f.apiFailure(!1)}var l=window.paymentAgent.handleChallenge(e,r).then(function(r){return r.tokenReference?f.provisionWalletToken(e,r).then(function(r){return n&&(n.current.style.display="flex",n.current.attributes["aria-hidden"]="false"),t.parameters.paymentSessionOrData=te(te({},e),r),f.renderPidlPageInternal(t)}):f.renderPidlPageInternal(t)}).catch(function(e){if((null==e?void 0:e.type)==="cancel"||(null==e?void 0:e.name)==="AbortError"||(null==e?void 0:e.statusCode)==="CANCELED")return f.model.gohome(),rv();var t={error:e,stack:null==e?void 0:e.stack,message:null==e?void 0:e.message},n=void 0;return n="failed to open window"===e?new nt.failedToOpenWindowError(nn.failedToOpenWindow,JSON.stringify(t)):new nt.paymentMethodFailureError(nn.paymentMethodFailure,JSON.stringify(t)),f.eventHub.failure(n),f.apiFailure(n)});return f.apiSuccess(!0,l)},this.invokeResourceAction=function(e){if(f.telemetryContext.trackNewOperation(x.invokeResourceAction),f.eventHub.apiCalled(en.invokeResourceAction),!f.canApiStart(en.invokeResourceAction)||!e||!rR.validateResourceActionParams(f.eventHub,e))return f.eventHub.apiReturned(en.invokeResourceAction,!1),f.apiFailure(!1);var t=e.resourceActionContext,n={result:null,promise:rv(null)};switch(t.action){case w.addResource:case w.addAddress:f.telemetryContext.update(x.add,t.pidlDocInfo),n=f.addResourceInternal(eL.add,t.pidlDocInfo,e.prefillData,e.options);break;case w.collectResourceInfo:f.telemetryContext.update(x.renderPidlPage,t.pidlDocInfo),n=f.renderPidlPageInternal(t.pidlDocInfo,e.options);break;case w.handleChallenge:f.telemetryContext.update(x.verify,t.resourceInfo),n=f.handleChallengeInternal(t.resourceInfo,e.options);break;case w.selectPaymentInstrument:case w.selectResource:f.telemetryContext.update(x.selectResource,t.pidlDocInfo),n=f.selectInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case w.selectResourceType:f.telemetryContext.update(x.selectResourceType,t.pidlDocInfo),n=f.selectResourceTypeInternal(t.pidlDocInfo,e.options);break;case w.selectSingleResource:f.telemetryContext.update(x.selectSingleResource,t.pidlDocInfo),n=f.selectSingleInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case w.updateProfile:case w.updateResource:f.telemetryContext.update(x.update,t.pidlDocInfo||t.resourceInfo),n=f.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options);break;case w.deleteResource:f.telemetryContext.update(x.delete,t.pidlDocInfo||t.resourceInfo),n=f.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options,eL.delete);break;case w.searchTransactions:f.telemetryContext.update(x.searchTransactions,t.pidlDocInfo),n=f.addResourceInternal(eL.searchTransactions,t.pidlDocInfo,void 0,e.options)}return f.eventHub.apiReturned(en.invokeResourceAction,rp.boolify(n.result),n.promise),n},this.addResourceInternal=function(e,t,n,r){if(!rR.validatePidlDocInfo(f.eventHub,t)||!rR.validateAddUpdateOrDeleteOptions(f.eventHub,r))return f.apiFailure(!1);f.displaySettings.secureFieldPreLoadingEnabled&&f.addSecureFieldPreLoadIFrame();var o=t_.getPidlDocUrl(f.userContext,e,t);return f.apiSuccess(!0,f.getPidl(o,n,e,r,t))},this.addResource=function(e,t,n){if(f.telemetryContext.trackNewOperation(x.add,e),f.eventHub.apiCalled(en.addResource,{pidlDocInfo:rp.boolify(e),prefillData:rp.boolify(t),options:rp.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.addResource))return f.eventHub.apiReturned(en.addResource,!1),f.apiFailure(!1);var r=f.addResourceInternal(eL.add,e,t,n);return f.eventHub.apiReturned(en.addResource,r.result,r.promise),r},this.msRewardsInternal=function(e,t){if(!rR.validatePidlDocInfo(f.eventHub,t))return f.apiFailure(!1);var n=t_.getPidlDocUrl(f.userContext,e,t);return f.apiSuccess(!0,f.getPidl(n,{},e,{},t))},this.redeemMSRewards=function(e){if(f.telemetryContext.trackNewOperation(x.redeemMSRewards,e),f.eventHub.apiCalled(en.redeemMSRewards,{pidlDocInfo:rp.boolify(e)},{pidlDocInfo:e}),!f.canApiStart(en.redeemMSRewards))return f.eventHub.apiReturned(en.redeemMSRewards,!1),f.apiFailure(!1);var t=f.msRewardsInternal(eL.redeem,e);return f.eventHub.apiReturned(en.redeemMSRewards,t.result,t.promise),t},this.selectMSRewards=function(e){if(f.telemetryContext.trackNewOperation(x.selectMSRewards,e),f.eventHub.apiCalled(en.selectMSRewards,{pidlDocInfo:rp.boolify(e)},{pidlDocInfo:e}),!f.canApiStart(en.selectMSRewards))return f.eventHub.apiReturned(en.selectMSRewards,!1),f.apiFailure(!1);var t=f.msRewardsInternal(eL.select,e);return f.eventHub.apiReturned(en.selectMSRewards,t.result,t.promise),t},this.searchTransactions=function(e){var t=e.pidlDocInfo,n=e.options;if(f.telemetryContext.trackNewOperation(x.searchTransactions,t),f.eventHub.apiCalled(en.searchTransactions,{pidlDocInfo:rp.boolify(t),options:rp.boolify(n)},{pidlDocInfo:t}),!f.canApiStart(en.searchTransactions))return f.eventHub.apiReturned(en.searchTransactions,!1),f.apiFailure(!1);var r=f.addResourceInternal(eL.searchTransactions,t,void 0,n);return f.eventHub.apiReturned(en.searchTransactions,r.result,r.promise),r},this.addPaymentInstrument=function(e,t,n){var r,o=te(te({},e),{resourceType:(null==e?void 0:e.resourceType)?null==(r=null==e?void 0:e.resourceType)?void 0:r.toString():"PaymentInstrument"});if(f.telemetryContext.trackNewOperation(x.addPaymentInstrument,o),f.eventHub.apiCalled(en.addPaymentInstrument,{pidlDocInfo:rp.boolify(o),prefillData:rp.boolify(t),options:rp.boolify(n)},{pidlDocInfo:o}),!f.canApiStart(en.addPaymentInstrument))return f.eventHub.apiReturned(en.addPaymentInstrument,!1),f.apiFailure(!1);var a=f.addResourceInternal(eL.add,o,t,n);return f.eventHub.apiReturned(en.addPaymentInstrument,a.result,a.promise),a},this.applyResource=function(e,t,n){if(f.telemetryContext.trackNewOperation(x.applyResource,e),f.eventHub.apiCalled(en.applyResource,{pidlDocInfo:rp.boolify(e),prefillData:rp.boolify(t),options:rp.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.applyResource))return f.eventHub.apiReturned(en.applyResource,!1),f.apiFailure(!1);var r=f.addResourceInternal(eL.apply,e,t,n);return f.eventHub.apiReturned(en.applyResource,r.result,r.promise),r},this.replaceResource=function(e,t,n){if(f.telemetryContext.trackNewOperation(x.replace,e),f.eventHub.apiCalled(en.replaceResource,{pidlDocInfo:rp.boolify(e),prefillData:rp.boolify(t),options:rp.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.replaceResource))return f.eventHub.apiReturned(en.replaceResource,!1),f.apiFailure(!1);var r=f.addResourceInternal(eL.replace,e,t,n);return f.eventHub.apiReturned(en.replaceResource,r.result,r.promise),r},this.addAddress=function(e,t,n){var r=te(te({},e),{resourceType:"Address"});if(f.telemetryContext.trackNewOperation(x.addAddress,r),f.eventHub.apiCalled(en.addAddress,{pidlDocInfo:rp.boolify(r),prefillData:rp.boolify(t),options:rp.boolify(n)},{pidlDocInfo:r}),!f.canApiStart(en.addAddress))return f.eventHub.apiReturned(en.addAddress,!1),f.apiFailure(!1);var o=f.addResourceInternal(eL.add,r,t,n);return f.eventHub.apiReturned(en.addAddress,o.result,o.promise),o},this.validateAddress=function(e){var t=te(te({},e),{resourceType:"Address"});return f.validateResource(t)},this.handleCheckout=function(e){var t=e||{},n=t.checkoutId,r=t.partner,o=t.redirectUrl,a=t.paymentProviderId,s=t.language,l=t.market,u={resourceType:c.Checkout,parameters:{partner:r,checkoutId:n,redirectUrl:o,paymentProviderId:a,language:s,market:l},anonymousPidl:e.anonymousUser};if(f.telemetryContext.trackNewOperation(x.handleCheckout,u),f.eventHub.apiCalled(en.handleCheckout,{checkoutParams:rp.boolify(e)},{}),!f.canApiStart(en.handleCheckout)||!rR.validateCheckoutParams(f.eventHub,e))return f.eventHub.apiReturned(en.handlePaymentChallenge,!1),f.apiFailure(!1);var d={resourceType:c.Checkout,parameters:{partner:r,checkoutId:n,redirectUrl:o,paymentProviderId:a,language:s,market:l},anonymousPidl:e.anonymousUser},p=f.renderPidlPageInternal(d);return f.eventHub.apiReturned(en.handleCheckout,p.result,p.promise),p},this.getPayeeTaxProfile=function(e){var t=e||{},n=t.section,r=t.tenant,o=t.sapidind,a=t.status,s=t.accounttype,l=t.payfromcc,u=t.residencecc,d=t.language,p={resourceType:c.PayeeTaxProfile,parameters:{section:n,tenant:r,sapidind:o,status:a,accounttype:s,payfromcc:l,residencecc:u,language:d}};if(f.telemetryContext.trackNewOperation(x.getPayeeTaxProfile,p),f.eventHub.apiCalled(en.getPayeeTaxProfile,{payeeTaxProfileParams:rp.boolify(e)},{}),!f.canApiStart(en.getPayeeTaxProfile)||!rR.validatePayeeTaxProfileParams(f.eventHub,e))return f.eventHub.apiReturned(en.getPayeeTaxProfile,!1),f.apiFailure(!1);var h={resourceType:c.PayeeTaxProfile,parameters:{section:n,tenant:r,sapidind:o,status:a,accounttype:s,payfromcc:l,residencecc:u,language:d}},m=f.renderPidlPageInternal(h);return f.eventHub.apiReturned(en.getPayeeTaxProfile,m.result,m.promise),m},this.createPaymentSession=function(e){var t=e||{},n=t.partner,r=void 0===n?null:n,o=t.country,a=void 0===o?null:o,s=t.language,l=void 0===s?null:s,u={resourceType:c.PaymentSession,parameters:{partner:r,market:a,language:l,paymentSessionData:e}};if(f.telemetryContext.trackNewOperation(x.createPaymentSession,u),f.eventHub.apiCalled(en.createPaymentSession,{paymentSessionData:rp.boolify(e)},{}),!f.canApiStart(en.createPaymentSession)||!rR.validatePaymentSessionData(f.eventHub,e))return f.eventHub.apiReturned(en.createPaymentSession,!1),f.apiFailure(!1);var d={resourceType:c.PaymentSession,parameters:{paymentSessionData:e}};e.billableAccountId&&(d.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(d.parameters.classicProduct=e.classicProduct);var p=f.addResourceInternal(eL.add,d);return f.eventHub.apiReturned(en.createPaymentSession,p.result,p.promise),p},this.renderPidlPageInternal=function(e,t){if(!rR.validatePidlDocInfo(f.eventHub,e)||!rR.validateSelectOrRenderOptions(f.eventHub,t))return f.apiFailure(!1);var n=eL.renderPidlPage,r=t_.getPidlDocUrl(f.userContext,n,e);return f.apiSuccess(!0,f.getPidl(r,null,n,t,e))},this.renderPidlPage=function(e,t){if(f.telemetryContext.trackNewOperation(x.renderPidlPage,e),f.eventHub.apiCalled(en.renderPidlPage,{pidlDocInfo:rp.boolify(e),options:rp.boolify(t)},{pidlDocInfo:e}),!f.canApiStart(en.renderPidlPage))return f.eventHub.apiReturned(en.renderPidlPage,!1),f.apiFailure(!1);var n=f.renderPidlPageInternal(e,t);return f.eventHub.apiReturned(en.renderPidlPage,n.result,n.promise),n},this.handlePaymentChallenge=function(e,t){var n,r,o,a=e||{},s=a.partner,l=void 0===s?null:s,u=a.country,d=void 0===u?null:u,p=a.language,h=void 0===p?null:p,m={resourceType:c.Challenge,parameters:{partner:l,market:d,language:h,paymentSessionOrData:e,timezoneOffset:new Date().getTimezoneOffset()}};if(f.telemetryContext.trackNewOperation(x.handlePaymentChallenge,m),f.eventHub.apiCalled(en.handlePaymentChallenge,{paymentSessionData:rp.boolify(e)},{}),!f.canApiStart(en.handlePaymentChallenge)||!rR.validatePaymentSessionOrData(f.eventHub,e))return f.eventHub.apiReturned(en.handlePaymentChallenge,!1),f.apiFailure(!1);var g={resourceType:c.Challenge,parameters:{paymentSessionOrData:e,timezoneOffset:new Date().getTimezoneOffset()}};e.billableAccountId&&(g.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(g.parameters.classicProduct=e.classicProduct);var v=f.userContext.getHeaders({},"")[M.msTest]||"",y=rd.getFlightHeaders(f.userContext);if((null==y?void 0:y.includes(F.enablePaymentAgentChallenge))&&!f.hasCollectedToken(e)&&(null==(r=null==(n=window.paymentAgent)?void 0:n.isPaymentAgentSupportedPI)?void 0:r.call(n,e)))o=f.handlePaymentAgentChallenge(e,g,t,v);else if("cdc85313-9b57-4052-81fb-dea336132cbf"===e.piid||"be4de87d-7e38-4b2d-8836-9237eb32848e"===e.piid){var b=new nt.invalidSetupError(nn.invalidSetup);f.eventHub.failure(b),o=f.apiFailure(!1)}else o=f.renderPidlPageInternal(g);return f.eventHub.apiReturned(en.handlePaymentChallenge,o.result,o.promise),o},this.hasCollectedToken=function(e){return e.id&&e.isTokenCollected},this.expressCheckoutInternal=function(e){return f.selectResource(e,null,eL.expressCheckout,f.onDownloadValidateOrSelectResourceType.bind(f))},this.expressCheckout=function(e){if(f.telemetryContext.trackNewOperation(x.expressCheckout,e),f.eventHub.apiCalled(en.expressCheckout,{pidlDocInfo:rp.boolify(e)},{pidlDocInfo:e}),!f.canApiStart(en.expressCheckout))return f.eventHub.apiReturned(en.expressCheckout,!1),f.apiFailure(null);var t=f.expressCheckoutInternal(e);return f.eventHub.apiReturned(en.expressCheckout,rp.boolify(t.result),t.promise),t},this.handlePurchasePendingState=function(e){if(f.telemetryContext.trackNewOperation(x.handlePurchasePendingState),f.eventHub.apiCalled(en.handlePurchasePendingState),!f.canApiStart(en.handlePurchasePendingState)||!e||!rR.validateHandlePurchasePendingStateParams(f.eventHub,e))return f.eventHub.apiReturned(en.handlePurchasePendingState,!1),f.apiFailure(!1);var t=f.getChallengePidlInfo(e),n=f.renderPidlPageInternal(t,e.options);return f.eventHub.apiReturned(en.handlePurchasePendingState,!0,n.promise),f.apiSuccess(!0,n.promise)},this.handlePurchaseRiskChallenge=function(e){if(f.telemetryContext.trackNewOperation(x.handlePurchaseRiskChallenge),f.eventHub.apiCalled(en.handlePurchaseRiskChallenge),!f.canApiStart(en.handlePurchaseRiskChallenge)||!e||!rR.validatePurchaseRiskChallengeParams(f.eventHub,e))return f.eventHub.apiReturned(en.handlePurchaseRiskChallenge,!1),f.apiFailure(!1);var t=f.getChallengePidlInfo(e);t.parameters.type=e.riskChallengeData[0];var n=f.renderPidlPageInternal(t,e.options);return f.eventHub.apiReturned(en.handlePurchaseRiskChallenge,n.result,n.promise),n},this.handleChallengeInternal=function(e,t){if(!rR.validateResourceInfo(f.eventHub,e)||!rR.validateAddUpdateOrDeleteOptions(f.eventHub,t))return f.apiFailure(!1);var n=eL.add;f.model.operationType=n,f.model.operationOptions=t,f.model.pidlDocManager.setOperationInfo({operationType:n});var r=ni.getPidlService(),o=r.getRequestInstance(f.eventHub,e,f.userContext,n),a=r.getInstance(f.eventHub,o);return f.apiSuccess(!0,a.then(function(t){f.stateManager.setState(Q.executing),f.eventHub.instanceDownloaded();var r=tX.getPidlDocInfoFromResource(e,t);if(f.telemetryContext.updateResourceInfo(r),t.clientAction)return f.model.handleClientAction(t.clientAction,t);f.eventHub.success({id:t.id,operationType:n,response:t})},function(e){var t=rd.createServerError(nn.resourceInstanceDownloadFailed,o.url,e,[e.errorMessage]);return f.eventHub.failure(t),ry(t)}))},this.handleChallenge=function(e,t){if(f.telemetryContext.trackNewOperation(x.verify,e),f.eventHub.apiCalled(en.handleChallenge,{resourceInfo:rp.boolify(e),options:rp.boolify(t)},{resourceInfo:e}),!f.canApiStart(en.handleChallenge))return f.eventHub.apiReturned(en.handleChallenge,!1),f.apiFailure(!1);var n=f.handleChallengeInternal(e,t);return f.eventHub.apiReturned(en.handleChallenge,n.result,n.promise),n},this.updateOrDeleteResourceInternal=function(e,t,n,r,o){if(n&&!rR.validatePidlDocInfo(f.eventHub,n)||!rR.validateAddUpdateOrDeleteOptions(f.eventHub,r))return f.apiFailure(!1);var a=o||eL.update;f.model.operationType=a,f.model.operationOptions=r,f.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:n}),f.model.pidlDocManager.setOperationInfo({operationType:a});var s=null;if(t)s=f.downloadPidlDocument(t_.getPidlDocUrl(f.userContext,a,n),r,function(){return f.model.populate(t,!0)},n);else{if(!rR.validateResourceInfo(f.eventHub,e))return f.apiFailure(!1);s=f.downloadInstance(e,n,a,r)}return f.apiSuccess(!0,s.then(function(){return f.stateManager.setState(Q.executing)}))},this.updateResource=function(e,t,n,r){if(f.telemetryContext.trackNewOperation(x.update,n||e),f.eventHub.apiCalled(en.updateResource,{resourceInfo:rp.boolify(e),resource:rp.boolify(t),pidlDocInfo:rp.boolify(n),options:rp.boolify(r)},{resourceInfo:e,pidlDocInfo:n}),!f.canApiStart(en.updateResource))return f.eventHub.apiReturned(en.updateResource,!1),f.apiFailure(!1);var o=f.updateOrDeleteResourceInternal(e,t,n,r);return f.eventHub.apiReturned(en.updateResource,o.result,o.promise),o},this.selectResource=function(e,t,n,r,o,a,s){if(!a&&!e||e&&(!(rR.validatePidlDocInfo(f.eventHub,e)||rR.validateResourceInfo(f.eventHub,e))||!rR.validateSelectOrRenderOptions(f.eventHub,t))||a&&!rR.validateHandle(f.eventHub,a)||s&&!rR.validateSelectedResourceInfo(f.eventHub,s))return f.apiFailure(null);s&&(s.id||s.backupId)&&((e=e||{}).parameters=e.parameters||{},e.parameters.filters=e.parameters.filters||{},s.id&&(e.parameters.filters.id=s.id),s.backupId&&(e.parameters.filters.backupId=s.backupId));var l=a||rd.guid();f.model.pidlDocManager.setOperationInfo({handle:l,operationType:n}),f.model.operationType=n,f.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:e});var c=null;return a?c=new Promise(function(e,t){f.model.pidlDocManager.retrievePidlDocFromCache(f.eventHub,l,o).then(function(){r().then(e,function(e){t(e)})},function(e){f.eventHub.failure(new nt.unexpectedError(e,[])),t()})}):(f.model.operationOptions=t,tX.updatePidlDocInfo(e),c=f.downloadPidlDocument(t_.getPidlDocUrl(f.userContext,n,e),t,r,e,o)),f.apiSuccess(l,c.then(function(){return f.stateManager.setState(Q.executing)}))},this.selectResourceTypeInternal=function(e,t){return f.selectResource(e,t,eL.select,f.onDownloadValidateOrSelectResourceType.bind(f))},this.selectResourceType=function(e,t){f.telemetryContext.trackNewOperation(x.selectResourceType,e);var n,r,o=e,a=f.userContext.getHeaders({},"")[M.msFlight]||"",s=rv();(null==a?void 0:a.includes(F.enablePaymentAgentChallenge))&&(null==(n=window.paymentAgent)?void 0:n.getInitPromise)&&(s=null!=(r=window.paymentAgent.getInitPromise())?r:s);var l=s.then(function(){if((null==a?void 0:a.includes(F.enablePaymentAgentChallenge))&&(o=rd.verifyClientSupported(e)),f.eventHub.apiCalled(en.selectResourceType,{pidlDocInfo:rp.boolify(o),options:rp.boolify(t)},{pidlDocInfo:o}),!f.canApiStart(en.selectResourceType))return f.eventHub.apiReturned(en.selectResourceType,!1),f.apiFailure(null);var n=f.selectResourceTypeInternal(o,t);return f.eventHub.apiReturned(en.selectResourceType,rp.boolify(n.result),n.promise),n});return f.apiSuccess(null,l)},this.updateProfile=function(e,t,n,r){var o=te(te({},n),{resourceType:"Profile"});if(f.telemetryContext.trackNewOperation(x.updateProfile,o||e),f.eventHub.apiCalled(en.updateProfile,{resourceInfo:rp.boolify(e),resource:rp.boolify(t),pidlDocInfo:rp.boolify(o),options:rp.boolify(r)},{resourceInfo:e,pidlDocInfo:o}),!f.canApiStart(en.updateProfile))return f.eventHub.apiReturned(en.updateProfile,!1),f.apiFailure(!1);var a=f.updateOrDeleteResourceInternal(e,t,o,r);return f.eventHub.apiReturned(en.updateProfile,a.result,a.promise),a},this.selectInstanceInternal=function(e,t,n,r){return f.selectResource(e,t,eL.selectInstance,function(){return f.onDownloadSelectResource(n&&n.prefillData)},n&&n.targetIdentity,n&&n.handle,r)},this.selectInstance=function(e,t,n,r){f.telemetryContext.trackNewOperation(x.selectResource,e);var o,a,s=e,l=f.userContext.getHeaders({},"")[M.msFlight]||"",c=rv();(null==l?void 0:l.includes(F.enablePaymentAgentChallenge))&&(null==(o=window.paymentAgent)?void 0:o.getInitPromise)&&(c=null!=(a=window.paymentAgent.getInitPromise())?a:c);var u=c.then(function(){if((null==l?void 0:l.includes(F.enablePaymentAgentChallenge))&&(s=rd.verifyClientSupported(e)),f.eventHub.apiCalled(en.selectResource,{pidlDocInfo:rp.boolify(s),options:rp.boolify(t),actionContext:rp.boolify(n)},{pidlDocInfo:s}),!f.canApiStart(en.selectResource))return f.eventHub.apiReturned(en.selectResource,!1),f.apiFailure(null);var o=f.selectInstanceInternal(s,t,n,r);return f.eventHub.apiReturned(en.selectResource,rp.boolify(o.result),o.promise),o});return f.apiSuccess(null,u)},this.listAddress=function(e,t,n,r){var o=te(te({},e),{resourceType:"Address"});if(f.telemetryContext.trackNewOperation(x.listAddress,o),f.eventHub.apiCalled(en.listAddress,{pidlDocInfo:rp.boolify(e),options:rp.boolify(t),actionContext:rp.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.listAddress))return f.eventHub.apiReturned(en.listAddress,!1),f.apiFailure(null);var a=f.selectInstanceInternal(e,t,n,r);return f.eventHub.apiReturned(en.listAddress,rp.boolify(a.result),a.promise),a},this.selectPaymentInstrument=function(e,t,n,r,o){if(a=o?te(te({},e),{resourceType:e.resourceType}):te(te({},e),{resourceType:"PaymentInstrument"}),f.telemetryContext.trackNewOperation(x.selectPaymentInstrument,a),f.eventHub.apiCalled(en.selectPaymentInstrument,{pidlDocInfo:rp.boolify(a),options:rp.boolify(t),actionContext:rp.boolify(n)},{pidlDocWithResource:a}),!f.canApiStart(en.selectPaymentInstrument))return f.eventHub.apiReturned(en.selectPaymentInstrument,!1),f.apiFailure(null);var a,s=f.selectInstanceInternal(a,t,n,r);return f.eventHub.apiReturned(en.selectPaymentInstrument,rp.boolify(s.result),s.promise),s},this.selectSingleInstanceInternal=function(e,t,n,r){return f.selectResource(e,t,eL.selectSingleInstance,function(){return f.onDownloadSelectSingleResource(n&&n.handle)},n&&n.targetIdentity,n&&n.handle,r)},this.selectSingleInstance=function(e,t,n,r){if(f.telemetryContext.trackNewOperation(x.selectSingleResource,e),f.eventHub.apiCalled(en.selectSingleResource,{pidlDocInfo:rp.boolify(e),options:rp.boolify(t),actionContext:rp.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.selectSingleResource))return f.eventHub.apiReturned(en.selectSingleResource,!1),f.apiFailure(null);var o=f.selectSingleInstanceInternal(e,t,n,r);return f.eventHub.apiReturned(en.selectSingleResource,rp.boolify(o.result),o.promise),o},this.runApi=function(e,t,n,r,o){if(void 0===n&&(n=function(){return!1}),void 0===r&&(r=function(){return!0}),void 0===o&&(o=function(){}),f.eventHub.apiCalled(e),!f.canApiStart(e)||n())return f.eventHub.apiReturned(e,!1),f.apiFailure(!1);var a=t(),s=r();return f.eventHub.apiReturned(e,rp.boolify(s),a),f.apiSuccess(s,o()||a)},this.showResource=function(e){f.telemetryContext.trackNewOperation(x.show);var t=e.pidlDocInfo,n=e.prefillData,r=e.options,o=function(){return!e||!rR.validateShowResourceParams(f.eventHub,e)||!rR.validatePidlDocInfo(f.eventHub,t)||!rR.validateResourceOptions(f.eventHub,r)},a=function(){var e=eL.show,o=t_.getPidlDocUrl(f.userContext,e,t);return f.getPidl(o,n,e,r,t)};return f.runApi(en.showResource,a,o)},this.offerResource=function(e){f.telemetryContext.trackNewOperation(x.offer);var t=e.pidlDocInfo,n=function(){return!e||!rR.validateOfferResourceParams(f.eventHub,e)||!rR.validatePidlDocInfo(f.eventHub,t)},r=function(){var e=eL.offer,n=t_.getPidlDocUrl(f.userContext,e,t);return f.getPidl(n,null,e,null,t)};return f.runApi(en.offerResource,r,n)},this.searchResource=function(e){f.telemetryContext.trackNewOperation(x.search);var t=e.pidlDocInfo,n=e.options,r=function(){return!e||!rR.validateSearchResourceParams(f.eventHub,e)},o=function(){var e=eL.search,r=t_.getPidlDocUrl(f.userContext,e,t);return f.getPidl(r,null,e,n,t)};return f.runApi(en.searchResource,o,r)},this.deleteResource=function(e){var t=e.resourceInfo,n=e.resource,r=e.pidlDocInfo,o=e.options;if(f.telemetryContext.trackNewOperation(x.delete,t||r),f.eventHub.apiCalled(en.deleteResource,{resourceInfo:rp.boolify(t),resource:rp.boolify(n),pidlDocInfo:rp.boolify(r),options:rp.boolify(o)},{resourceInfo:t,pidlDocInfo:r}),!f.canApiStart(en.deleteResource)||!e)return f.eventHub.apiReturned(en.deleteResource,!1),f.apiFailure(!1);var a=f.updateOrDeleteResourceInternal(t,n,r,o,eL.delete);return f.eventHub.apiReturned(en.deleteResource,a.result,a.promise),a},this.fundStoredValue=function(e){f.telemetryContext.trackNewOperation(x.fundStoredValue);var t=e.pidlDocInfo,n=e.options,r=function(){return!e||!rR.validateFundStoredValueParams(f.eventHub,e)},o=function(){var e=eL.fundStoredValue,r=t_.getPidlDocUrl(f.userContext,e,t);return f.getPidl(r,null,e,n,t)};return f.runApi(en.fundStoredValue,o,r)},this.validateResource=function(e,t,n,r){if(f.telemetryContext.trackNewOperation(x.validateResource,e),f.eventHub.apiCalled(en.validateResource,{pidlDocInfo:rp.boolify(e),options:rp.boolify(t),actionContext:rp.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.validateResource))return f.eventHub.apiReturned(en.validateResource,!1),f.apiFailure(null);var o=f.selectResource(e,t,eL.validateInstance,f.onDownloadValidateOrSelectResourceType.bind(f),n&&n.targetIdentity,n&&n.handle,r);return f.eventHub.apiReturned(en.validateResource,rp.boolify(o.result),o.promise),o},this.validateProperties=function(){return f.apiSuccess(f.model.validateProperties(),rv())},this.moveNextPage=function(){return f.runApi(en.moveNextPage,function(){return f.model.moveNextOrSubmit().catch(f.displaySettings.propagateCallbackException?rg:rm)})},this.submitPage=function(){return f.runApi(en.submitPage,function(){return f.model.submitAction().catch(f.displaySettings.propagateCallbackException?rg:rm)})},this.moveToLastPage=function(){return f.runApi(en.moveToLastPage,function(){return f.model.moveToLastPage().catch(rm)})},this.movePrevPage=function(){return f.runApi(en.movePrevPage,function(){return f.model.movePrevOrCancel().catch(rm)})},this.moveToFirstPage=function(){return f.runApi(en.moveToFirstPage,function(){return f.model.moveToFirstPage().catch(rm)})},this.refreshData=function(e){return f.runApi(en.refreshData,function(){return f.model.refreshData(e).catch(rm)})},this.cancel=function(){return f.runApi(en.cancel,function(){return f.model.gohome(),rv()})},this.destroyInstance=function(){return f.runApi(en.destroyInstance,function(){return f.model.clearAll(),rv()})},this.getSelectedResource=function(){var e=function(){var e={},t=f.model.getCurrentPage();if(t){var n=t.operationType;n===eL.selectSingleInstance?e=nl.getDefaultSuccessPidlPayload([t],f.eventHub):(n===eL.selectInstance||n===eL.select)&&(e=rp.deepCopy(f.model.createUserInputData(!0,!0)))}return e.operationType=f.model.operationType,e||(e=void 0),e};return f.runApi(en.getSelectedResource,function(){return rv()},function(){return!1},e)},this.invokePageDefaultAction=function(){return f.runApi(en.invokePageDefaultAction,function(){return f.model.invokeDefaultPidlAction().catch(rm)},function(){return!1},function(){return!0},function(){return rv()})},this.returnUserInputData=function(){return new Promise(function(e,t){f.model.returnUserInputData().then(function(t){var n={};n.payload=rp.deepCopy(t),n.operationType=eL.getPidlPayload,e(n)},function(e){f.eventHub.error(e),t()})})},this.getPidlPayload=function(){return f.runApi(en.getPidlPayload,function(){return f.returnUserInputData().then(function(e){return f.eventHub.payloadCreated(e)},rm)},function(){return f.model.operationType!==eL.renderPidlPage},function(){return!0},function(){return rv()})},this.postMessageToChildIFrames=function(e){return f.runApi(en.postMessageToChildIFrames,function(){},function(){return!1},function(){return f.viewEventHandler.postMessageToChildIFrames(e)},function(){return rv()})},this.testHookRenderPidl=function(e,t,n){return f.model.pidlDocManager.setPidlDoc(f.eventHub,e),f.model.operationType=t,f.model.populate(n).catch(rm)},this.testHookRenderPidlPage=function(e,t,n,r){void 0===n&&(n=0),f.telemetryContext.trackNewOperation(x.renderPidlDocument),f.eventHub.apiCalled(en.renderPidlDocument);var o=f.testHookRenderPidl(e,t,r).then(function(){f.model.moveToPageIndex(n).catch(rm),f.stateManager.setState(Q.executing)});return f.eventHub.apiReturned(en.renderPidlDocument,!0,o),!0};var h=o||{},m=h.telemetryLogger,g=h.getPidlDocument,v=h.view,y=h.fetchHandler,b=v&&rp.isFunction(v.getViewType)&&v.getViewType();if(this.telemetryContext=new on(a,b),this.eventHub=new rx(m,this.telemetryContext),this.stateManager=new r3(this.eventHub),ni.getLoggingService()||ni.setLoggingService(new or),!ni.getOneDSService())if(l)ni.setOneDSService(l);else{var C={getApplicationInsights:function(){return{initialize:function(){},trackEvent:function(){}}},getCorrelationVectorPlugin:function(){return{getCv:function(){return{count:0,increment:function(){return this.count=this.count+1,this.getValue()},getValue:function(){return"cv__"+this.count},isInit:function(){return!0}}}}}};ni.setOneDSService(C)}if(this.logConstructorCall(e,t,n,r,a),!rR.validateReturnOptions(this.eventHub,t)||(this.eventHub.addReturnOptions(t),ni.getCommerceService()||ni.setCommerceService(new oa),ni.getRedirectionService()||ni.setRedirectionService(new ou),ni.getPidlService()||ni.setPidlService(new ol),ni.getPidlStoreService()||ni.setPidlStoreService(new oc),n&&this.eventHub.addPublicEventHandler(n),this.eventHub.addPrivateEventHandler(this.handlePrivateEvent),s&&this.eventHub.addPrivateEventHandler(s),!rR.validateInputParameters(this.eventHub,e,r,a,o)))return void this.eventHub.apiReturned(en.constructor,!1);if(this.callbacks=o,this.transformers=u,this.localDataSourceProviders=p,this.userContext=new r6(e),this.displaySettings=new rh(r),this.displaySettings.preventUnmountOnFinish&&this.eventHub.registerEventExtender(E.preventUnmountOnFinish,function(){return!0}),!this.displaySettings.containerId){this.eventHub.failure(new nt.inputParameterValidationFailedError(nn.containerIdNotFound,"containerId",[this.displaySettings.containerId])),this.eventHub.apiReturned(en.constructor,!1);return}this.model=new r2({urls:t.urls,userContext:this.userContext,displaySettings:this.displaySettings,eventHub:this.eventHub,pidlDocManager:new r5(g,d),stateManager:this.stateManager,callbacks:this.callbacks,transformers:this.transformers,localDataSourceProviders:this.localDataSourceProviders}),this.model.setOrchestratorId(rd.registerToOrchestrator({model:this.model,addPublicEventHandler:this.eventHub.addPublicEventHandler}));var k=this.callbacks,S=k.iFrameMessageHandler,P=k.view;this.viewEventHandler=new r8({eventHub:this.eventHub,model:this.model,displaySettings:this.displaySettings,view:P,iFrameMessageHandler:S,userContext:this.userContext,userContextIn:e,returnOptions:t,eventHandler:n,displayOptions:r,callbacks:o,telemetryOptions:a,externalPrivateEventHandler:s,oneDSService:l,transformers:u,pidlPayload:d,localDataSourceProviders:p,controlApiMap:this.controlApiMap}),y&&rA.setFetchHandler(y),this.stateManager.setState(Q.initialized)}return e.prototype.apiSuccess=function(e,t){return{result:e,promise:t.catch(this.displaySettings.propagateCallbackException?rg:rm)||rv()}},e.prototype.apiFailure=function(e){return{result:e,promise:rv()}},e.prototype.onDownloadSelectResource=function(e){return this.model.populate(e)},e.prototype.onDownloadValidateOrSelectResourceType=function(){return this.model.populate()},e.prototype.onDownloadSelectSingleResource=function(e){if(!this.model.pidlDocManager.isEmpty())return this.model.populate();var t={handle:e,action:"selectResource"};return this.eventHub.success(t),rv()},e.prototype.getPidl=function(e,t,n,r,o){var a=this;return this.model.operationType=n,this.model.operationOptions=r,this.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:o}),this.model.pidlDocManager.setOperationInfo({operationType:n}),this.downloadPidlDocument(e,r,function(){return a.model.populate(t,!1)},o,void 0,!!t).then(function(){return a.stateManager.setState(Q.executing)},rm)},e.prototype.downloadInstance=function(e,t,n,r){var o=this;return new Promise(function(a,s){var l=ni.getPidlService(),c=l.getRequestInstance(o.eventHub,e,o.userContext,n);l.getInstance(o.eventHub,c).then(function(l){o.eventHub.instanceDownloaded(),t||(t=tX.getPidlDocInfoFromResource(e,l),o.telemetryContext.updateResourceInfo(t));var c=t_.getPidlDocUrl(o.userContext,n,t);if(c&&c.url)return o.downloadPidlDocument(c,r,function(){return o.model.populate(l,!0)},t).then(function(e){return a(e)},s);s()},function(e){var t=rd.createServerError(nn.resourceInstanceDownloadFailed,c.url,e,[e.errorMessage]);o.eventHub.failure(t),s(t)})})},e.prototype.downloadPidlDocument=function(e,t,n,r,o,a){var s=this;return this.model.downloadPidlDocument(e,r,o,a).then(function(e){return tq(e)?s.model.handleClientAction(e):n()})},e}(),op=function(){function e(e,t){this.defaultWaitTime=500,this.eventHub=e,this.mockFunctions=t||[],this.mockFunctionsMap={},this.mockFunctions.forEach(function(e){this.mockFunctionsMap[e.name]=e},this)}return e.prototype.getMockedFunctionNames=function(){var e=[];return this.mockFunctions.forEach(function(t){e=e.concat(t.name)}),e},e.prototype.createMockedFunction=function(t,n){return e.setArity((function(){var e=this.mockFunctionsMap[t];return e.triggers.forEach(function(e){setTimeout(this.eventHub[e.name].bind(this.eventHub),this.defaultWaitTime,e.params)},this),e.returns}).bind(this),n)},e.createArguments=function(e){if(e<1)return"arg";for(var t="arg0",n=1;n<e;n++)t=t+",arg"+n;return t},e.setArity=function(t,n){return Function(e.createArguments(n),"return this.apply(this, arguments);").bind(t)},e}(),of=function(){function e(){ni.getTelemetryInjectionService()||ni.setTelemetryInjectionService(new oh)}return e.prototype.logEvent=function(e,t,n){ni.getTelemetryInjectionService().logEvent(n,e,t)},e.prototype.getCorrelationId=function(){return ot.getCVValue()},e.prototype.getHttpRequestCorrelationHeader=function(){var e=ot.getIncrementedCV();if(e)return{name:M.msCV,value:e}},e}(),oh=function(){function e(){}return e.prototype.logEvent=function(e,t,n){ot.setUserConsentDetailsCallback(null==e?void 0:e.userConsentDetailsCallback),t===S.fetchCallCompleted?this.logOSREvent(e,n&&n.httpRequestTelemetryData):this.logGenericEvent(e,t,n)},e.prototype.logGenericEvent=function(e,t,n){var r,o,a,s,l;try{if(rp.isObject(e)){var c=((window||{}).location||{}).href||"",u={name:"Microsoft.Commerce.Payments.PidlSdk.PageEvent",partB:{pageName:(document||{}).title||"",uri:c,destUri:c,customSessionGuid:e.sessionId,impressionGuid:e.operationId,contentJsonVer:1,content:JSON.stringify({eventName:t})},partC:{sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null==(r=e.partnerContext)?void 0:r.partnerName,partnerContext:JSON.stringify(e.partnerContext),partnerContextMap:e.partnerContext,parentOperationId:(null==(o=e.partnerContext)?void 0:o.parentOperationId)||e.operationId,partnerFlowId:null==(a=e.partnerContext)?void 0:a.flowId,partnerSessionId:null==(s=e.partnerContext)?void 0:s.sessionId,partnerScenarioId:null==(l=e.partnerContext)?void 0:l.scenarioId,operationId:e.operationId,operationType:e.operationType,eventName:t,eventParameters:JSON.stringify(n),eventParametersMap:n,baseType:"Ms.Content.PageAction"}};rp.isObject(e.telemetryResource)&&(u.partC.resourceType=e.telemetryResource.resourceType,u.partC.resourceParameters=JSON.stringify(e.telemetryResource.parameters),u.partC.resourceParametersMap=e.telemetryResource.parameters),ot.writeEvent(u.name,u.partB,u.partC)}}catch(e){ni.getLoggingService().logError("TelemetryError",e)}},e.prototype.logOSREvent=function(e,t){var n,r,o,a,s;try{if(rp.isObject(e)){var l={partner:((e.telemetryResource||{}).parameters||{}).partner,telemetryContext:e,responseHeaders:t.headers},c={name:"Ms.Webi.OutgoingRequest",partB:{operationName:t.operationName,targetUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.succeeded||!t.serviceErrorCode||isNaN(t.serviceErrorCode)?-1:t.serviceErrorCode,succeeded:t.succeeded,requestMethod:t.requestMethod,responseContentType:t.responseContentType,protocolStatusCode:t.protocolStatusCode,dependencyOperationName:t.dependencyOperationName,dependencyOperationVersion:t.dependencyOperationVersion&&t.dependencyOperationVersion.toString(),dependencyName:t.serviceName,dependencyType:"webservice",responseSizeBytes:t.contentLength},partC:{customSessionGuid:e.sessionId,impressionGuid:e.operationId,message:t.failureResponse,retryCount:t.retryCount,customData:JSON.stringify(l),sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null==(n=e.partnerContext)?void 0:n.partnerName,partnerContext:JSON.stringify(e.partnerContext),operationId:e.operationId,parentOperationId:(null==(r=e.partnerContext)?void 0:r.parentOperationId)||e.operationId,partnerFlowId:null==(o=e.partnerContext)?void 0:o.flowId,partnerSessionId:null==(a=e.partnerContext)?void 0:a.sessionId,partnerScenarioId:null==(s=e.partnerContext)?void 0:s.scenarioId,partnerContextMap:e.partnerContext,operationType:e.operationType,baseType:"Ms.Qos.OutgoingServiceRequest"}};ot.writeEvent(c.name,c.partB,c.partC)}}catch(e){ni.getLoggingService().logError("TelemetryError",e)}},e}(),om=function(){function e(e,t){tX.getTelemetryLoggerProperties().enableMultipleLoggers&&t?this.loggers=[e,t]:t?this.loggers=[t]:this.loggers=[e]}return e.prototype.logEvent=function(e,t,n){for(var r=0,o=this.loggers;r<o.length;r++)o[r].logEvent(e,t,n)},e.prototype.getCorrelationId=function(){for(var e,t,n=0,r=this.loggers;n<r.length;n++){var o=r[n],a=null==(e=o.getCorrelationId)?void 0:e.call(o);a&&(t=a)}return t},e.prototype.getHttpRequestCorrelationHeader=function(){for(var e,t,n=0,r=this.loggers;n<r.length;n++){var o=r[n],a=null==(e=o.getHttpRequestCorrelationHeader)?void 0:e.call(o);a&&(t=a)}return t},e.prototype.getLoggers=function(){return this.loggers},e}(),og=new(function(){function e(){var e=this;this.getContainerClassName=function(e){if(e)switch(e){case B.busyBlock:return u.busyBlock;case B.errorBlock:return u.errorBlock;case B.helpDialogBlock:return u.helpDialogBlock;case B.helpDialogContentBlock:return u.helpDialogContentBlock;case B.modalDialogBlock:return u.modalDialogBlock;case B.modalDialogContentBlock:return u.modalDialogContentBlock;case B.pageContentBlock:return u.pageContentBlock;case B.submitBlock:return u.submitBlock}},this.getDivClassName=function(t,n,r){switch(n){case g.dropdown:return[u.dropdownDiv,u.propertyDiv];case g.checkBox:return[u.checkBoxDiv,u.propertyDiv];case g.textBox:return[u.textBoxDiv,u.propertyDiv];case g.secureProperty:return[u.propertyDiv];case g.image:return[u.imageDiv];case g.logo:return[u.logoDiv];case g.button:return[u.buttonDiv];case g.iFrame:return[u.iFrameDiv];case g.group:var o=[u.groupDiv],a=e.getContainerClassName(r);return a&&o.push(a),o}},this.generateClassName=function(t,n,r,o,a){var s=e.getClassName(t,n,r);if(o){var l=e.getDivClassName(t,o,a);l&&(s=s.concat(l))}if(s)return s.join(" ")},this.getClassName=function(t,n,r){switch(n){case N.div:return[u.div];case N.label:return[u.label];case N.dropdown:return[u.property,u.dropdown,e.getPropertyClassName(r)];case N.radio:return[u.property,u.radio,e.getPropertyClassName(r)];case N.buttonList:return[u.property,u.buttonList,e.getPropertyClassName(r)];case N.checkBox:return[u.property,u.checkBox,e.getPropertyClassName(r)];case N.textBox:return[u.property,u.textBox,e.getPropertyClassName(r)];case N.secureProperty:return[u.secureProperty];case N.button:return[u.button];case N.iFrame:return[u.iFrame];case N.heading:return[u.staticText,u.heading];case N.subHeading:return[u.staticText,u.subHeading];case N.text:return[u.staticText,u.text];case N.textGroup:return[u.staticText,u.text,u.textGroup];case N.hyperlink:return[u.hyperlink];case N.image:return[u.image];case N.logo:return[u.logo];case N.errorDiv:return[u.errorDiv];case N.error:return[u.error];case N.audio:return[u.audio];default:t.failure(new nt.unexpectedError(nn.noMappingToGetHtmlClassNameForElement,[n]));return}},this.getDivId=function(t){return e.getId(p.div,t)},this.getId=function(e,t){return rp.replaceCharactersForHtml(rp.startsWith(t,e)?t:e+t)},this.getPropertyClassName=function(t){return e.getId(p.property,t)},this.concatIdElement=function(e,t){return rp.replaceCharactersForHtml(e+"_"+t)}}return e.prototype.concatClassName=function(e,t){return e&&t&&e.trim()+" "+t||e||t},e}()),ov=Object.freeze({__proto__:null,constants:tS,modelElementTypes:ru,promise:rb,eventArgs:Object.freeze({__proto__:null}),msrCrypto:rJ,tokenEncrypt:r0,oneDSAdapter:ot,commerce2:nr,commerceHelper:no,config:rf,configManager:tX,error:nt,fetchHelper:rA,inputValidationHelper:rR,iocContainer:ni,modelElementFactory:ns,modelElementsHelper:nl,pidlDocHelper:na,tokenizer:r1,typeHelper:rp,urlBuilder:t_,userInputDataHelper:oo,userInputDataTransformer:oi,userInputDataValidator:rG,utils:rd,validationFunctions:rW,version:oe,webCrypto:rX,htmlAttributeHelper:og,hmac:r$,DisplaySettings:rh,errorMessages:nn,EventHub:rx,FetchConfig:rD,mockFactory:op,Resources:rN,stateManager:r3,telemetryContext:on,userContextWrapper:r6,ViewEventHandler:r8,DataCache:rB,DataStore:rM,InputPrefillDataManager:rV,Model:r2,ModelData:rj,ModelDataProperty:rU,MultiPropertySelector:rO,pidlDocumentManager:r5,Validator:rK,commerceService:oa,loggingService:or,pidlService:ol,pidlStoreService:oc,redirectionService:ou,oneDSLogger:of,telemetryInjectionService:oh,LoggerWrapper:om}),oy=Object.freeze({__proto__:null,controlApi:od,get GpayButtonColor(){return e$},get ApayButtonColor(){return eQ},get GpayButtonType(){return eJ},get ApayButtonType(){return eZ},get EncryptionTypes(){return e0},doNothing:rm,throwException:rg,createFakePromise:rv,createFakeRejectedPromise:ry,errorMessages:nn,ModelElement:nc,ContainerElement:nu,GenericGroupElement:nd,GroupElement:np,DataCollectionBindingGroupElement:nf,CaptchaContainerElement:nh,GenericCaptchaElement:nm,CaptchaElement:ng,PageElement:nv,TextGroupElement:ny,PropertyElement:nb,SelectionElement:nx,DropdownElement:nC,RadioElement:nk,ButtonListElement:nw,TextBoxElement:nS,CheckBoxElement:n_,FilePickerElement:nE,GenericTextElement:nP,TextElement:nI,ButtonElement:nT,AudioElement:nD,ExpressionElement:nA,ImageElement:nR,SeparatorElement:nN,SpinnerElement:nB,LogoElement:nM,PidlContainer:nF,PidlInstance:nO,SecurePropertyInitializations:nL,SecurePropertyElement:nH,ExpressCheckoutButtonElement:nz,IFrameElement:nV,ChallengeIFrameElement:nU,isModelElement:nj,isContainerElement:nW,isCaptchaElement:nq,isPageElement:nG,isSelectionElement:nK,isDropdownElement:nX,isPrefillDropdownElement:nY,isPidlContainerElement:n$,isPidlInstanceElement:nQ,isImageElement:nJ,isLogoElement:nZ,isButtonElement:n0,isFilePickerElement:n1,isCheckBoxElement:n2,isPrefilledCheckBoxElement:n5,isPageOrGroupOrDataCollectionBindingGroup:n4,isGroupElement:n3,isTextGroupElement:n6,isTextBoxElement:n8,isButtonListElement:n9,isRadioElement:n7,isTextElement:re,isDataCollectionBindingGroup:rt,isExpressionElement:rn,isIFrameElement:rr,isChallengeIFrameElement:ro,isSecurePropertyElement:ri,isExpressCheckoutButtonElement:ra,isSeparatorElement:rs,isAudioElement:rl,isPropertyElement:rc,env:r9,internal:ov,pidlDocumentTypes:tK,fetchHelper:rA,urlBuilder:t_,typehelper:rp,pidlErrors:nt}),ob=function(e,t){return(ob=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])})(e,t)};function ox(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ob(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oC=function(){return(oC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ok(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function ow(e,t){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return c([e,t])}}function c(l){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){s.label=l[1];break}if(6===l[0]&&s.label<o[1]){s.label=o[1],o=l;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(l);break}o[2]&&s.ops.pop(),s.trys.pop();continue}l=t.call(e,s)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var oS=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function o_(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oE(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return s}function oP(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function oI(e){return this instanceof oI?(this.v=e,this):new oI(e)}var oT=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},oD="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r},oA=eu.pidlReact,oR=rp.startsWith;t.AppScenario=void 0,function(e){e.None="none",e.AddAddress="addAddress",e.AddPaymentInstrument="addPaymentInstrument",e.EditPaymentInstrument="editPaymentInstrument",e.DeletePaymentInstrument="deletePaymentInstrument",e.ApplyPaymentInstrument="applyPaymentInstrument",e.SelectPaymentMethod="selectPaymentMethod",e.ConfirmPayment="confirmPayment",e.SelectPaymentInstrument="selectPaymentInstrument",e.ListAddress="listAddress",e.RiskChallenge="riskChallenge",e.ProfilePrerequisite="profilePrerequisite",e.PaymentInstrumentDetails="paymentInstrumentDetails",e.HandlePaymentChallenge="handlePaymentChallenge",e.VerifyAddress="verifyAddress",e.RedeemMSRewards="redeemMSRewards",e.SelectMSRewards="selectMSRewards",e.OfferPaymentInstrument="offerPaymentInstrument"}(t.AppScenario||(t.AppScenario={})),t.ElementType=void 0,function(e){e.alert="alert",e.button="button",e.buttonGroup="buttonGroup",e.checkbox="checkbox",e.dialog="dialog",e.dropdown="dropdown",e.error="error",e.group="group",e.captcha="captcha",e.audio="audio",e.heading="heading",e.helpDialog="helpDialog",e.hyperlink="hyperlink",e.iframe="iframe",e.challengeIframe="challengeIframe",e.expressCheckoutButton="expressCheckoutButton",e.secureProperty="secureProperty",e.securePropertyLabel="securePropertyLabel",e.image="image",e.label="label",e.logo="logo",e.subheading="subheading",e.text="text",e.textBox="textBox",e.radio="radio",e.radioCircle="radioCircle",e.checkedRadioCircle="checkedRadioCircle",e.modal="modal",e.overlay="overlay",e.spinner="spinner",e.pidlInstance="pidlInstance",e.panel="panel",e.textgroup="textgroup",e.filePicker="filePicker",e.separator="separator",e.tooltip="tooltip"}(t.ElementType||(t.ElementType={}));var oN="prod",oB={DefaultAddressType:"jarvis_v3",Operation:"add",ContainerId:"addResource",ResourceType:"Address",UserId:"me",ViewTermsId:"viewTermsButton"},oM={AllowedPaymentMethods:["credit_card","ewallet.paypal","ewallet.kakaopay","ewallet.stored_value","mobile_billing_non_sim","online_bank_transfer.paysafecard","ewallet.venmo"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me"},oF={AddressType:"jarvis_v3",Operation:"update",ContainerId:"updateResource",ResourceType:"AddressEx",UserId:"me"},oO={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me"},oL={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",RiskChallengeData:"globalPIQrCode",ViewTermsId:"globalPIQrCodePrivacyStatement",RedirectButton:"globalPIQrCodeRedirectButton",RedirectButtonPage2:"globalPIQrCodeRedirectButtonPage2"},oH={Operation:"validateInstance",ContainerId:"validateResource",ResourceType:"Address",UserId:"me"},oz={isCreditCard:"isUserPICreditCard",isCreditCardExpired:"isCreditCardExpired",isEwalletStoredValue:"IsEwalletStoredValue"},oV={Operation:"select",ContainerId:"selectMSRewards",ResourceType:"MSRewards",UserId:"me",useCsvTogglePropertyName:"useCsv",redeemPointsTogglePropertyName:"redeemPoints",csvTotalPropertyName:"csvTotal",formattedCsvTotalPropertyName:"formattedCsvTotal",pointsValueTotalPropertyName:"pointsValueTotal",formattedPointsValueTotalPropertyName:"formattedPointsValueTotal"},oU={AllowedPaymentMethods:["credit_card","direct_debit","online_bank_transfer.paysafecard","ewallet","finance_leasing","mobile_billing_non_sim","virtual"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me",SecondaryPIFilter:{SplitPaymentSupported:!0},SelectPaymentInstrument:"SelectPaymentInstrument",paymentInstrumentList:"paymentInstrumentList",addNewPaymentMethodFamily:"add_new_payment_method",preventDefaultSelection:"addnewpm_no_default_selection"},oj={NewPaymentMethodLink:"newPaymentMethodLink",RedeemGiftCardLink:"redeemGiftCardLink",ManagePaymentInstrument:"ManagePaymentInstrument",redeemGiftCardHandlerName:"redeemGiftCardHandler"},oW={Operation:"selectInstance",ContainerId:"listAddress",ResourceType:"Address",UserId:"me",DefaultAddressType:"jarvis_v3"},oq={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",LogoRowElement:"acceptedCardsLogos"},oG={ContainerId:"deletePaymentInstrument",Operation:"delete",ResourceType:"PaymentInstrument",UserId:"me"},oK={ContainerId:"editPaymentInstrument",ViewTermsId:"viewTermsButton",Operation:"update",ResourceType:"PaymentInstrument",UserId:"me"},oX={ContainerId:"MSRewards",ResourceType:"MSRewards",UserId:"me"},oY={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",PaymentType:"mc",PaymentFamily:"credit_card",DefaultScenario:"xboxCreditCardInit"},o$={Operation:"offer",ContainerId:"offerPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me"},oQ={Operation:"update",ContainerId:"profilePrerequisite",ResourceType:"Profile",UserId:"me",type:"consumer"},oJ={Operation:"selectSingleInstance",ContainerId:"paymentInstrumentDetails",ResourceType:"PaymentInstrument",UserId:"me",type:"consumer",Scenario:"details",ChangeButtonId:"changeSinglePIButton"},oZ={ContainerId:"handlePaymentChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",ViewTermsId:"viewTermsButton"},o0={ResourceType:"PaymentInstrument",UserId:"me",ActionType:"triggerSubmit"},o1={ViewTermsId:"viewTermsButton"};t.AddressScenario=void 0,function(e){e.billing="billing",e.shipping="shipping",e.profile="profile"}(t.AddressScenario||(t.AddressScenario={})),t.ApplyPaymentInstrumentScenario=void 0,function(e){e.xboxCoBrandedCard="xboxCoBrandedCard",e.xboxApplyFullPageRender="xboxApplyFullPageRender"}(t.ApplyPaymentInstrumentScenario||(t.ApplyPaymentInstrumentScenario={})),t.OfferPaymentInstrumentScenario=void 0,function(e){e.xboxCoBrandedCardBuyNow="xboxCoBrandedCardBuyNow"}(t.OfferPaymentInstrumentScenario||(t.OfferPaymentInstrumentScenario={}));var o2={propertyName:function(e,t){return t.propertyName=e.getPropertyName()},elementId:function(e,t){return t.elementId=e.id},resolvedLogo:function(e,t){return t.resolvedLogo=e.getResolvedLogo()},pidlKey:function(e,t){return t.pidlKey=e.key}};function o5(){return function(e,t){function n(n,r){var o=n.element;if(!o)return null;for(var a={},s=0,l=t;s<l.length;s++){var c=l[s],u=o2[c];if(u)u(o,a);else{var d=o[c];a[c]=d instanceof Function?d():o[c]}}return e2.createElement(e,oC({ref:r},a,n))}return n.displayName="ElementWrapper(".concat(t.join("|")," => ").concat(e.displayName||"UnknownComponent",")"),e2.forwardRef(n)}}var o4=o5();o5(),o5();var o3=o5(),o6=o5(),o8=o5(),o9=o5(),o7=o5(),ie=o5(),it=o5(),ir=o5(),io=o5(),ii=o5(),ia=o5(),is=o5(),il=o5(),ic=o5(),iu=o5(),id=o5(),ip=o5(),ih=o5(),im=o5(),ig=o5();o5(),e2.createContext({pidlDocs:[]});var iv=e2.createContext(!1),iy=e2.createContext({values:{},accessibilityText:{},errors:{}}),ib=e2.createContext({}),ix=e2.createContext({elementFactory:null,displayOptions:null,displaySettings:null,theme:null,userContext:null,pidlInstanceContexts:void 0,env:null,returnOptions:null}),iC=e2.createContext(null),ik=e2.createContext(null);function iw(e){void 0===e&&(e={});var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];rp.startsWith(o,eu.noPidlddc)||rp.startsWith(o,eu.pidlReact)?t.push(e[o]):ec[o]||rd.isTagPrefixKnown(o)||t.push(d.taggedClass+e[o])}return t}function iS(e){var t=[];if(e)for(var n=0,r=e;n<r.length;n++){var o=r[n];t.push(d.taggedClass+o)}return t}function i_(e){void 0===e&&(e={});var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];rp.startsWith(o,eu.pidlReact)&&t.push(e[o].substring(eu.pidlReact.length))}return t}function iE(e){if(void 0===e&&(e={}),e){for(var t=0,n=Object.keys(e);t<n.length;t++)if(n[t]===ec.hideInlineError)return!0}return!1}function iP(e){void 0===e&&(e={});var t,n={};if(e)for(var r=0,o=Object.keys(e);r<o.length;r++){var a=o[r];if(a&&L.hasOwnProperty(a)){var s=L[a],l=e[a];n=oC(oC({},n),((t={})[s]=l,t))}}return n}var iI=function(e){var n=e.propertyName,r=(0,og.getId)(tS.htmlElementIdPrefixes.error,n);return e2.createElement(ix.Consumer,null,function(e){return e2.createElement(iy.Consumer,null,function(o){var a=e.elementFactory;e.displayOptions,e.displaySettings;var s=o.errors[n]?o.errors[n].message:null;if(!s)return null;var l={errorMessage:s};return a&&a.canCreate(t.ElementType.error,l,{})?a.create(t.ElementType.error,l):e2.createElement("span",{className:e4.default("pidlddc-error",{"d-none":!s},"text-danger"),id:r,tabIndex:-1,role:"alert"},s)})})};iI.displayName="Error";var iT=function(e){var n=e.message;return e2.createElement(ix.Consumer,null,function(e){var r=e.elementFactory;e.displayOptions,e.displaySettings;var o={elementId:"pidlddc-page-alert-id",message:n};return r&&r.canCreate(t.ElementType.alert,o,{})?r.create(t.ElementType.alert,o):e2.createElement("div",{id:o.elementId,className:"pidlddc-error-alert",role:"alert"},o.message)})};iT.displayName="PageAlert";var iD=function(e){function t(t){var n=e.call(this,t)||this;return n.onEvent=function(e){var t=n.props,r=t.sourceUrl,o=t.expectedClientActionId,a=t.onIFrameMessage,s=t.onIFrameBusyTimerEnded,l=n.state.messageTimer;if(!r||!e.origin||0===r.indexOf(e.origin)){var c=rd.parseJSON(e.data),u=c.succeeded?c.value:null;u&&o&&u.actionId!==o||(l&&(s(l),clearTimeout(l),n.setState({messageTimer:null})),a(e))}},n.iframe=e2.createRef(),n.state={executing:!0,width:t.element.width,height:t.element.height},n}return ox(t,e),t.prototype.postMessage=function(e){return!!this.iframe&&!!this.iframe.current&&!!this.iframe.current.contentWindow&&!!this.iframe.current.contentWindow.postMessage&&(this.iframe.current.contentWindow.postMessage(e.message,e.targetOrigin),!0)},t.prototype.updateHeight=function(e){this.setState({height:e})},t.prototype.componentDidMount=function(){var e=this.props,t=e.displayContent,n=e.sourceUrl,r=e.onIFrameMessageTimeout,o=e.messageTimeout,s=e.messageTimeoutClientAction,l=e.onIFrameBusyTimerStarted,c=e.onIFrameBusyTimerEnded,u=this.iframe.current,d=this.state.messageTimer;if(window.addEventListener(a.message,this.onEvent),!n&&t&&u){var p=u.contentDocument;p&&(p.open(),p.write(t),p.close())}if(!d&&o&&s){var f=window.setTimeout(function(){r(s),c(f)},o);l(f),this.setState({messageTimer:f})}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.displayContent,a=r.sourceUrl,s=this.iframe.current;if(!a&&o&&e&&e.displayContent!==o&&s){var l=s.contentDocument;l&&(l.open(),l.write(o),l.close())}},t.prototype.componentWillUnmount=function(){window.removeEventListener(a.message,this.onEvent)},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,o=e.tags,a=e.sourceUrl;e.containerLayoutOrientation;var s=this.state,l=s.width,c=s.height,u={width:l,height:c},d=(0,og.getId)(tS.htmlElementIdPrefixes.iframe,t),p=(l||c)&&0===Number((l+c).replace(/\D/g,""))?0:void 0;return this.state.executing?e2.createElement("iframe",{key:d,className:e4.default(iw(o)),id:d,src:a,hidden:r,"aria-label":n,ref:this.iframe,style:u,frameBorder:p}):null},t}(e2.Component),iA=function(e){var n=function(e,t){var n,r;if("xboxCoBrandedCardIframe"!==e)return{authorization:t};try{return{xuh:null==(n=t.split("=")[1])?void 0:n.split(";")[0],xt:null==(r=t.split("=")[1])?void 0:r.split(";")[1]}}catch(e){return{authorization:t}}};return e2.createElement(ix.Consumer,null,function(r){var o=r.elementFactory,a=r.userContext,s=r.displayOptions,l=e.displayId,c=e.useAuth,u=e.containerLayoutOrientation,d=e.styleHints,p={};c&&(null==a?void 0:a.authToken)!=null&&(p=n(l,a.authToken));var f=oC(oC({},e),{headers:p,useWebView2:s.useWebView2||!1,containerLayoutOrientation:u,styleHints:d});return o&&o.canCreate(t.ElementType.iframe,f,{})?o.create(t.ElementType.iframe,f):e2.createElement(iD,oC({},f,{ref:f.iFrameElementRef}))})},iR=ie(iA,["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","expectedClientActionId","messageTimeout","messageTimeoutClientAction","useAuth","loadingMessage","containerLayoutOrientation","styleHints"]),iN=function(e){var t=e.elementId,n=e.hidden,r=e.showDisplayName,o=e.displayName,a=e.accessibilityName,s=e.element,l=(0,og.getId)(tS.htmlElementIdPrefixes.label,t);return e2.createElement(iy.Consumer,null,function(e){return e2.createElement("label",{className:e4.default("pidlddc-label",{"d-none":n||!r}),id:l,"aria-label":e.accessibilityText[s.getPropertyName()]||a},o,e2.createElement("span",{className:"".concat(l,"-asterisk")},s.dataDescription.is_optional?"":"*"))})},iB=o4(iN,["elementId","propertyName","hidden","displayName","showDisplayName","accessibilityName"]);iB.displayName="PropertyLabel";var iM=function(e){function n(t){var n=e.call(this,t)||this;return n.linkRef=e2.createRef(),n.toggle=function(e){!e&&n.linkRef&&n.linkRef.current&&n.linkRef.current.focus&&n.linkRef.current.focus(),n.setState({open:e})},n.escapeHandler=function(e){27===e.keyCode&&n.toggle(!1)},n.state={open:!1},n}return ox(n,e),n.prototype.componentDidUpdate=function(){var e,t=this.props,n=t.elementId,r=t.elementFactory,o=this.state.open;if(!(null==(e=null==r?void 0:r.isReactNative)?void 0:e.call(r))){var a=document.getElementById("".concat(n,"-dialog-body"));o?(document.addEventListener("keydown",this.escapeHandler,!1),a&&a.focus&&a.focus()):document.removeEventListener("keydown",this.escapeHandler,!1)}},n.prototype.render=function(){var e=this,r=this.props,o=r.elementId,a=r.displayHelpName,s=r.displayImage,l=r.children,c=r.element,d=this.state.open;if((!a||0===a.length)&&!s)return null;var f=c.getHelpDialogTags(),h=f&&f[ep.linkAccessibilityName]||c.accessibilityName,m=f&&f[ep.closeButtonAccessibilityName]||"",g="".concat(s?p.image:p.button).concat(o),v=s?u.helpImageLink:u.helpTextLink;return e2.createElement(ix.Consumer,null,function(r){var c=r.elementFactory,u=(r.displayOptions,r.displaySettings);!n.elementIdHelpDialogIndex[o]&&(n.elementIdHelpDialogIndex[o]=n.latestHelpDialogIndex,n.latestHelpDialogIndex++);var f=0===n.elementIdHelpDialogIndex[o]?"":n.elementIdHelpDialogIndex[o],y={id:g,children:l,linkAdditionalClassName:v,linkText:a,linkImageSource:s,linkAriaLabel:h,contentId:u?u.getAffixedDisplayElementId(p.helpDialogContent+u.helpDialogBlock.id+f):o,closeButtonAccessibilityName:m};return c&&c.canCreate(t.ElementType.helpDialog,y,{})?c.create(t.ElementType.helpDialog,y):[e2.createElement("a",{key:"".concat(g,"-toggle"),id:g,className:v,"aria-label":h,"aria-haspopup":"dialog",onClick:function(){return e.toggle(!0)},href:"javascript:void(null);",ref:e.linkRef},s?e2.createElement("img",{src:s,alt:h}):a),e2.createElement("dialog",{key:"".concat(o,"-dialog-body"),id:"".concat(o,"-dialog-body"),tabIndex:-1,onBlur:function(){return e.toggle(!1)},open:d},e2.createElement("div",{key:"".concat(o,"-dialog-close-button"),id:"".concat(o,"-dialog-close-button"),style:{textAlign:"right",width:"100%",paddingBottom:"6px"}},e2.createElement("button",{"aria-label":m,onClick:function(){return e.toggle(!1)}},e2.createElement("span",{"aria-hidden":"true"},"x"))),l)]})},n.elementIdHelpDialogIndex={},n.latestHelpDialogIndex=0,n}(e2.Component),iF=o4(iM,["elementId","displayHelp","displayHelpName","displayImage"]);iF.displayName="HelpDialog";var iO=ip(function(e){function n(t){var n=e.call(this,t)||this;return n.inputFileRef=e2.createRef(),n.onChange=function(e){var t=n.props,r=t.onUpdateValue,o=t.propertyName,a=n.inputFileRef.current.value;a?n.setState({selectedFile:a.split(/(\\|\/)/g).pop()}):n.setState({selectedFile:""}),r(o,e.target.files[0],Z.finished)},n.state={selectedFile:""},n.onButtonClick=n.onButtonClick.bind(n),n}return ox(n,e),n.prototype.onButtonClick=function(){this.inputFileRef&&this.inputFileRef.current&&this.inputFileRef.current.click&&this.inputFileRef.current.click()},n.prototype.render=function(){var e=this;return e2.createElement(ix.Consumer,null,function(n){return e2.createElement(iy.Consumer,null,function(r){var o=n.elementFactory,a=e.state.selectedFile,s=e.props,l=s.className,c=s.element,u=s.propertyName,d=s.elementId,p=s.disabled,f=s.accessibilityName,h=s.tags,m=s.required,g=s.displayHelpName,v=s.displayHelpChildren,y=s.displayImage,b=c.displayName,x=c.showDisplayName,C=c.displayContent,k=(0,og.getId)(tS.htmlElementIdPrefixes.filePicker,d),w=e4.default(l,iw(h)),S={inlineError:!0},_=x?e2.createElement(iB,{element:c}):null,E=e2.createElement(iI,{propertyName:u}),P={id:d},I=g||y?e2.createElement(iF,oC({},P,{element:c,children:v,elementFactory:o})):null,T={id:k,additionalClassName:w,disabled:p,inlineHelpLink:I,onChange:e.onChange,onButtonClick:e.onButtonClick,ariaLabel:f,displayName:b,displayContent:C,showDisplayName:x,required:m,errorNode:E,selectedFile:a,inputFileRef:e.inputFileRef};return(S=o&&o.canCreate(t.ElementType.filePicker,T,S))?o.create(t.ElementType.filePicker,T):e2.createElement("div",{id:k,className:e4.default(w)},_&&I&&c.displayHelpPosition!==e_.floatRight?e2.createElement("span",null,_," ",I):_,_&&I?null:I,e2.createElement("input",{type:"file",name:"file",ref:e.inputFileRef,onChange:function(t){return e.onChange(t)},style:{display:"none"}}),e2.createElement("button",{id:k+"_button","aria-label":f,disabled:p,onClick:e.onButtonClick},C)," ",e2.createElement("label",{id:k+"_label"}," ",a," "),S&&S.inlineError?null:e2.createElement(iI,{propertyName:u}))})})},n}(e2.Component),["elementId","disabled","displayHelpName","displayImage","accessibilityName","tags","required"]);iO.displayName="FilePicker";var iL=function(e){var n=e.className,r=e.element,o=e.elementId,a=e.displayContent,s=e.pidlAction,l=e.disabled,c=e.accessibilityName,u=e.onClick,d=e.tags,p=e.styleHints,f=e.tooltipText,h=e.gridColumn,m=e.gridRow,g=e.accessibilityHint,v=e.containerLayoutOrientation,y=s.type,b=s.isDefault,x="submit"===y||b,C=(0,og.getId)(tS.htmlElementIdPrefixes.button,o),k=e4.default(n,iw(d)),w=r.propertyElementRef;return e2.createElement(ix.Consumer,null,function(e){var n=e.elementFactory,r={id:C,displayContent:a,onClick:u,additionalClassName:k,disabled:l,ariaLabel:c,accessibilityHint:g,primary:x,type:x?"primary":"secondary",propertyElementRef:w,theme:e.theme,styleHints:p,tooltipText:f,gridColumn:h,gridRow:m,containerLayoutOrientation:v,tags:d};return n&&n.canCreate(t.ElementType.button,r,{})?n.create(t.ElementType.button,r):e2.createElement("button",{id:C,className:e4.default(x?"pidlddc-highlighted":"pidlddc-back",k),disabled:l,"aria-label":c,onClick:u},a)})},iH=id(iL,["elementId","pidlAction","disabled","displayContent","accessibilityName","accessibilityHint","tags","styleHints","tooltipText","containerLayoutOrientation"]);iH.displayName="Button";var iz=function(e){var n=e.elementId,r=e.displayText,o=e.displayImageUrl,a=e.createElement,s=e.displayContentContainer,l=e.isDisabled,c=e.pidlKey,u=e.onClick,d=e.buttonAction,p=e.containerDisplayId,f=e.ariaLabel,h=e.propertyElementRef,m=e.styleHints,g=e.containerLayoutOrientation,v=e.tags,y=s?a(s):[o?e2.createElement("img",{src:o,key:"".concat(n,"-img"),id:"pidlddc-buttonlist-".concat(n,"-").concat(c)}):null,r];return e2.createElement(ix.Consumer,null,function(e){var r=e.elementFactory,o=e.displayOptions,a=og,s=(0,a.concatIdElement)((0,a.getId)(o.inputPropertyIdPrefix,n),c),b=function(){return u({id:s,pidlAction:d,value:d.context,dest:""})},x={id:s,key:c,onClick:b,additionalClassName:"",displayContent:y,disabled:l,primary:!1,type:"list",containerDisplayId:p,ariaLabel:f,propertyElementRef:h,styleHints:m,containerLayoutOrientation:g,tags:v};return r&&r.canCreate(t.ElementType.button,x,{})?r.create(t.ElementType.button,x):e2.createElement("button",{id:s,disabled:l,onClick:b,"aria-label":f},x.displayContent)})},iV=ig(iz,["displayImageUrl","displayContentContainer","displayText","isDisabled","displayContent","displayType","pidlKey","styleHints","containerLayoutOrientation","tags"]);iV.displayName="ButtonListElement";var iU=function(e){var n=e.createElement,r=e.elementId,o=e.possibleOptions,a=e.onClick,s=e.tags,l=e.displayId,c=e.element,u=e.styleHints,d=e.containerLayoutOrientation,p=[],f=(0,og.getId)(tS.htmlElementIdPrefixes.buttongroup,r),h=c.propertyElementRef,m=!1;for(var g in o)if(o.hasOwnProperty(g)&&o[g]){var v=o[g],y=o[g].pidlAction||{context:{id:g},type:""},b=null;m||v.isDisabled||(b=h,m=!0),p.push(e2.createElement(iV,{element:v,elementId:r,createElement:n,onClick:a,buttonAction:y,pidlKey:g,containerDisplayId:l,propertyElementRef:b,ariaLabel:null==v?void 0:v.accessibilityName}))}return e2.createElement(ix.Consumer,null,function(e){var n=e.elementFactory,r={id:f,additionalClassName:e4.default(iw(s)),options:p,optionsDirection:"vertical",displayId:l,propertyElementRef:h,styleHints:u,containerLayoutOrientation:d};return n&&n.canCreate(t.ElementType.buttonGroup,r,{})?n.create(t.ElementType.buttonGroup,r):e2.createElement("div",{className:e4.default(iw(s)),id:r.id},p)})},ij=is(iU,["elementId","possibleOptions","disabled","hidden","tags","displayId","styleHints","containerLayoutOrientation"]);ij.displayName="ButtonList";var iW=function(e){var n=e.elementId,r=e.required,o=e.disabled,a=e.hidden,s=e.propertyName,l=e.displayName,c=e.accessibilityName,u=e.onChange,d=e.tags,p=e.displayId,f=e.useDisplayIdAsKeyForCheckState,h=e.element,m=e.styleHints,g=e.containerLayoutOrientation,v=h.propertyElementRef,y=og,b=y.getDivId,x=y.getId,C=b(n),k=iE(d),w=function(e,t){return(null==e?void 0:e.isReactNative)&&e.isReactNative()?t:e2.createElement("div",{id:C},t)};return e2.createElement(ix.Consumer,null,function(e){return e2.createElement(iy.Consumer,null,function(n){var y=e.elementFactory,b=e.displayOptions,S=e.displaySettings,_=x(b.inputPropertyIdPrefix,h.displayType===eW.prefillControl?S.prefillCheckboxBlock.id:s),E={elementId:_,displayContent:l,onChange:u,displayId:p,disabled:o,ariaLabel:n.accessibilityText[s]||c,additionalClassName:e4.default(iw(d)),inlineError:n.errors[s]&&!k?n.errors[s].message:void 0,checked:f?!!n.values[p]:!0===n.values[s]||"true"===n.values[s],hidden:a,required:r,id:_,propertyName:s,propertyElementRef:v,styleHints:m,containerLayoutOrientation:g},P=y&&y.canCreate(t.ElementType.checkbox,E,{});if(P)return w(y,e2.createElement(e2.Fragment,null,y.create(t.ElementType.checkbox,E),P&&P.inlineError||k?null:e2.createElement(iI,{propertyName:s})));var I="".concat(E.elementId,"_label");return e2.createElement("div",{id:C},e2.createElement("label",{id:I,htmlFor:_,"aria-label":E.ariaLabel,hidden:E.hidden},e2.createElement("input",{type:"checkbox",id:_,required:E.required,hidden:E.hidden,disabled:E.disabled,checked:E.checked,"aria-labelledby":I,onChange:function(e){return E.onChange(e.currentTarget.checked)}}),E.displayContent),k?null:e2.createElement(iI,{propertyName:s}))})})},iq=ic(iW,["elementId","propertyName","accessibilityName","displayName","required","hidden","disabled","tags","displayId","styleHints","containerLayoutOrientation"]);iq.displayName="CheckBox";var iG=function(e){var n=e.element,r=e.elementId,o=e.hidden,a=e.required,s=e.disabled,l=e.showDisplayName,c=e.displayName,u=e.accessibilityName;return l?e2.createElement(ix.Consumer,null,function(e){var d=e.elementFactory;e.displayOptions,e.displaySettings;var p={disabled:s,required:a,elementId:(0,og.getId)(tS.htmlElementIdPrefixes.label,r),displayContent:c};if(d&&d.canCreate(t.ElementType.label,p,{}))return d.create(t.ElementType.label,p);for(var f=0;f<n.children.length;f++)if(null!=n.children[f].dataDescription&&!n.children[f].dataDescription.is_optional){p.required=!0;break}return e2.createElement("label",{className:e4.default("pidlddc-label",o||!l?"d-none":"d-block"),id:p.elementId,"aria-label":u},c,e2.createElement("span",{className:"".concat(p.elementId,"-asterisk")},p.required?"*":""))}):null};iG.displayName="GroupLabelInner";var iK=o3(iG,["elementId","hidden","displayName","showDisplayName","accessibilityName"]);iK.displayName="GroupLabel";var iX=function(e){function n(t){var n=e.call(this,t)||this;return n.toggleDisplay=function(e){n.setState({open:e})},n.state={open:!0},n}return ox(n,e),n.prototype.render=function(){var e=this.props,n=e.layoutOrientation,r=e.elementId,o=e.childNodes,a=e.tags,s=e.element,l=s.displayId,c=s.type,u=this.state.open,d=(0,og.getDivId)(r);return e2.createElement(ix.Consumer,null,function(e){var s=e.elementFactory,p=e.displaySettings,f={childNodes:o,layoutOrientation:n,elementId:d,groupClassName:iw(a),displayId:l,type:c,displaySettings:p,open:u};if(s&&s.canCreate(t.ElementType.modal,f,{}))return s.create(t.ElementType.modal,f);var h={position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(128,128,128,0.5)",display:u?"initial":"none"},m={position:"fixed",top:"50vh",left:"50vw",transform:"translate(-50%,-50%)",height:"75%",width:"50%",backgroundColor:"white",padding:"50px",overflow:"scroll"};return f.groupClassName=f.groupClassName.filter(function(e){return!rp.startsWith(e,eu.pidlReact)}),e2.createElement("div",{key:"".concat(r,"-modal"),id:"".concat(r,"-modal"),style:h,className:e4.default(f.groupClassName)},e2.createElement("dialog",{key:"".concat(r,"-modal-content"),id:"".concat(r,"-modal-content"),tabIndex:-1,open:!0,style:m},e2.createElement(iv.Provider,{value:"inline"===n},o)))})},n}(e2.Component),iY=o3(iX,["elementId","layoutOrientation","tags"]);iY.displayName="Modal";var i$=ia(function(e){function n(t){var n=e.call(this,t)||this;if(t.eventHub){var r=t.elementId,o=t.possibleOptions,a=t.displayId,s=t.maxLength,l=(0,og.getDivId)(r);t.eventHub.propertyCreating(l,{displayId:a,possibleOptions:o,maxLength:s},{})}return n}return ox(n,e),n.prototype.render=function(){for(var e,n=this,r=this.props,o=r.elementId,a=r.possibleOptions,s=r.accessibilityName,l=r.displayName,c=r.showDisplayName,u=r.propertyName,d=r.hidden,p=r.isPrefill,f=r.onSelect,h=r.disabled,m=r.required,g=r.displaySelectionText,v=r.onFocus,y=(r.onBlur,r.optionsElements),b=r.isSelectFirstItem,x=r.displayId,C=r.element,k=r.eventHub,w=r.styleHints,S=r.containerLayoutOrientation,_=r.setOpenDropdownId,E=r.openDropdownId,P=r.alwaysUpdateModelValue,I=r.tags,T=tS,D=og,A=D.getDivId,R=D.generateClassName,N=og.getId,B=N(T.htmlElementIdPrefixes.error,o),M=N(T.htmlElementIdPrefixes.input,o),F="input_".concat(o,"dummyLabel"),O=A(o),L=C.propertyElementRef,H="".concat(F," ").concat(B),z=[],V=0,U=Object.keys(a||{});V<U.length;V++){var j=U[V];if(a[j]){e=(p||b)&&!e?j:e;var W=a[j],q=W.displayText,G=W.isDisabled,K=W.displayImageUrl,X=W.styleHints;z.push({key:j,text:q,disabled:G,data:{imageUrl:K},styleHints:X})}}d||Object.keys(a).length;var Y=function(e){k.propertySelected(M,u,O),v&&v(e)},Q=function(e){var t=n.props,r=t.onBlur,o=t.element,a=t.eventHandler;a.propertyUnselectedHandler({id:J,propertyName:u,divId:O}),r&&r(e),o.onfocusout&&a.invokePidlAction(o.onfocusout)},J=A(o),Z=R(null,T.htmlElementTypes.div,u,T.modelElementType.dropdown),ee=function(e,t,r,o){return(null==e?void 0:e.isReactNative)&&e.isReactNative()?e2.createElement(e2.Fragment,null):e2.createElement("label",{id:F,"aria-label":r,style:{display:o?"none":void 0},"aria-hidden":o},t,e2.createElement("span",{className:"".concat(J,"-asterisk")},n.props.required?"*":""))},et=function(e,t,n,r){return(null==e?void 0:e.isReactNative)&&e.isReactNative()?e2.createElement(e2.Fragment,null,r):e2.createElement("div",{id:t,className:n},r)};return e2.createElement(ix.Consumer,null,function(r){var o=r.elementFactory,a=r.theme;return et(o,J,Z,e2.createElement(iy.Consumer,null,function(r){var v={},b=v?v.style:void 0,C={disabled:h,inlineError:r.errors[u]?r.errors[u].message:void 0,isInValidationErrorGroup:!!r.errors[u],onBlur:Q,onFocus:Y,optionsElements:y,required:m,showDisplayName:c,displayName:l,displayId:x,id:M,ariaLabelId:H,dropdownOptions:z,hidden:d||0===z.length,onChange:f,placeholder:p?void 0:g,value:r.values[u]&&r.values[u].toString()||e,style:b,propertyElementRef:L,theme:a,tags:I,styleHints:w,containerLayoutOrientation:S,setOpenDropdownId:_,openDropdownId:E,alwaysUpdateModelValue:P},k=o&&o.canCreate(t.ElementType.dropdown,C,{inlineError:!0,label:c}),T=null;T=k?o.create(t.ElementType.dropdown,C):n.renderDropdownElement(C);var D=!c||k&&k.label;return e2.createElement(e2.Fragment,null,ee(o,l,r.accessibilityText[u]||s,D),T,k&&k.inlineError?null:e2.createElement(iI,{propertyName:u}))}))})},n.prototype.renderDropdownElement=function(e){var t=this,n=e.id,r=e.dropdownOptions,o=e.onChange,a=e.value,s=e.additionalClassName,l=e.hidden,c=e.disabled,u=e.required,d=e.placeholder,p=e.ariaLabelId,f=e.inlineError,h=e.onFocus,m=e.onBlur,g=e.isInValidationErrorGroup,v=d?e2.createElement("option",{value:""},d):null,y=f||g&&!c,b=[];r.forEach(function(e){var t=e.key,n=e.text,r=e.disabled;b.push(e2.createElement("option",{value:t,key:t,disabled:r},n))});var x=function(e){var n=t.props,r=n.onBlur,o=n.element,a=n.eventHandler;r&&r(e),o.onfocusout&&a.invokePidlAction(o.onfocusout)};return e2.createElement("select",{id:n,className:y?e4.default(s,"pidlddc-errorstroke"):s,hidden:l,disabled:c,required:u,"aria-labelledby":p,onFocus:function(e){h&&e&&e.currentTarget&&h(e.currentTarget.value)},onBlur:function(e){m&&e&&e.currentTarget&&x(e.currentTarget.value)},onChange:function(e){o&&e&&e.target&&o(e.target.value)},value:a},v,b)},n}(e2.Component),["elementId","propertyName","possibleOptions","required","hidden","disabled","displayName","showDisplayName","displaySelectionText","accessibilityName","tags","isSelectFirstItem","displayId","styleHints","containerLayoutOrientation","alwaysUpdateModelValue"]);i$.displayName="Dropdown";var iQ=function(e){var n=e.elementId,r=e.isInline;return e2.createElement(ix.Consumer,null,function(e){return e2.createElement(ib.Consumer,null,function(o){var a=e.elementFactory;e.displayOptions,e.displaySettings;var s=o[n]?o[n].message:"",l={errorMessage:s};if(a&&a.canCreate(t.ElementType.error,l,{}))return a.create(t.ElementType.error,l);var c={className:e4.default("pidlddc-group-error",{"d-none":!s},"text-danger"),id:"pidlddc-error-".concat(n),tabIndex:-1,role:"alert"};return r?e2.createElement("span",oC({},c,{"aria-hidden":!s}),s):e2.createElement("div",oC({},c,{"aria-hidden":!s}),s)})})};iQ.displayName="GroupError";var iJ=o3(function(e){var n=e.layoutOrientation,r=e.elementId,o=e.childNodes,a=e.tags,s=e.labelNode,l=e.element,c=l.displayId,u=l.type,d=l.isSubmitGroup,p=l.isHidden,f=e.styleHints,h=e.accessibilityName,m=e.gridColumn,g=e.gridRow,v=e.containerLayoutOrientation;return e2.createElement(ix.Consumer,null,function(e){var l=e.elementFactory,y=e.displaySettings,b=og.getDivId;return e2.createElement(iv.Consumer,null,function(e){if(p||d&&(null==(x=null==y?void 0:y.submitButtonBlock)?void 0:x.show)===!1)return null;var x,C=b(r),k=e2.createElement(iQ,{elementId:r,isInline:e}),w={childNodes:o,errorNode:k,labelNode:s,layoutOrientation:n,elementId:C,groupClassName:iw(a),displayId:c,type:u,displaySettings:y,styleHints:f,isSubmitGroup:d,ariaLabel:h,gridColumn:m,gridRow:g,containerLayoutOrientation:v};return l&&l.canCreate(t.ElementType.group,w,{})?l.create(t.ElementType.group,w):(w.groupClassName=w.groupClassName.filter(function(e){return!rp.startsWith(e,eu.pidlReact)}),e2.createElement("div",{id:w.elementId,className:e4.default(w.groupClassName)},s,e2.createElement(iv.Provider,{value:"inline"===n},o),k))})})},["elementId","layoutOrientation","tags","accessibilityName","styleHints","containerLayoutOrientation"]);iJ.displayName="Group";var iZ=o8(function(e){var n=e.layoutOrientation,r=e.elementId,o=e.children,a=e.tags,s=e.ariaLabelledBy,l=e.styleHints,c=e.containerLayoutOrientation,u="inline"===n,d=(0,og.getId)(tS.htmlElementIdPrefixes.div,r),p=function(e,n){var p={children:o,additionalClassName:e4.default(iw(a)),elementId:r,ariaLabelledBy:s,styleHints:l,containerLayoutOrientation:c};return e&&e.canCreate(t.ElementType.textgroup,p,{})?e.create(t.ElementType.textgroup,p):(null==e?void 0:e.isReactNative)&&e.isReactNative()?e2.createElement(e2.Fragment,null,n):e2.createElement("div",{id:d,className:e4.default({"d-inline-block":u},iw(a))},n)};return e2.createElement(ix.Consumer,null,function(e){return p(e.elementFactory,e2.createElement(e2.Fragment,null,o,e2.createElement(iQ,{elementId:r,isInline:!0})))})},["elementId","layoutOrientation","tags","styleHints","containerLayoutOrientation"]);iZ.displayName="TextGroup";var i0=function(e){function n(t){var n=e.call(this,t)||this;if(t.eventHub){var r=t.elementId,o=(0,og.getDivId)(r);t.eventHub.captchaRendered(o)}return n}return ox(n,e),n.prototype.render=function(){var e=this.props,n=e.elementId,r=e.audioChildNodes,o=e.imageChildNodes,a=e.tags,s=e.element,l=e.required,c=s.displayId,u=s.type,d=s.id,p=s.displayName,f=s.showDisplayName,h=s.accessibilityName;return e2.createElement(ix.Consumer,null,function(e){return e2.createElement(iy.Consumer,null,function(s){var m=e.elementFactory,g=og.getDivId,v="image"==s.values[d],y={audioChildNodes:r,imageChildNodes:o,elementId:g(n),captchaClassName:iw(a),displayId:c,type:u,showImageCaptcha:v,displayName:p,showDisplayName:f,required:l};if(m&&m.canCreate(t.ElementType.captcha,y,{}))return m.create(t.ElementType.captcha,y);var b=e2.createElement("label",{className:e4.default("pidlddc-label",f?"d-block":"d-none"),id:n,"aria-label":h},p);return y.captchaClassName=y.captchaClassName.filter(function(e){return!rp.startsWith(e,eu.pidlReact)}),e2.createElement("div",{id:y.elementId,className:e4.default(y.captchaClassName)},b,v&&o,!v&&r)})})},n}(e2.Component),i1=o6(i0,["elementId","tags","required"]);i1.displayName="Captcha";var i2=function(e){var n=e.className,r=e.element,o=e.elementId,a=e.accessibilityName,s=e.tags,l=e.audioUrl,c=(0,og.getId)(tS.htmlElementIdPrefixes.audio,o),u=e4.default(n,iw(s)),d=r.propertyElementRef;return e5.default.createElement(ix.Consumer,null,function(e){var n=e.elementFactory,r={id:c,additionalClassName:u,ariaLabel:a,propertyElementRef:d,theme:e.theme,audioUrl:l};return n&&n.canCreate(t.ElementType.audio,r,{})?n.create(t.ElementType.audio,r):e5.default.createElement("div",{id:c,className:u},e5.default.createElement("audio",{"aria-label":a,src:l,controls:!0}))})},i5=ih(i2,["elementId","accessibilityName","tags","audioUrl"]);i5.displayName="Audio";var i4=o9(function(e){var n,r=e.elementId,o=e.pidlAction,a=e.displayContent,s=e.accessibilityName,l=e.tags,c=e.onClick,u=e.styleHints,d=e.gridColumn,p=e.gridRow,f=e.containerLayoutOrientation,h="javascript:void(null);",m=(0,og.getId)(tS.htmlElementIdPrefixes.hyperlink,r),g=e4.default(iw(l)),v=null==(n=i_(l))?void 0:n.includes("noUrl"),y=function(){c&&c({pidlAction:o,id:r})},b=function(e){e&&e.preventDefault&&e.preventDefault(),c&&c({pidlAction:o,id:r})};return e2.createElement(ix.Consumer,null,function(e){var n=e.elementFactory,r=(e.displayOptions,e.displaySettings,e.theme),l={id:m,displayContent:a,additionalClassName:g,href:o&&o.context&&!v?o.context:h,ariaLabel:s,onClick:y,theme:r,styleHints:u,gridColumn:d,gridRow:p,containerLayoutOrientation:f};return n&&n.canCreate(t.ElementType.hyperlink,l,{})?n.create(t.ElementType.hyperlink,l):e2.createElement("a",{id:m,href:o&&o.context&&rp.isString(o.context)?o.context:h,"aria-label":s,className:g,onClick:b},a)})},["elementId","pidlAction","displayContent","accessibilityName","tags","styleHints","containerLayoutOrientation"]);i4.displayName="Hyperlink";var i3=o7(function(e){var n=e.accessibilityName,r=e.element,o=e.elementId,a=e.sourceUrl,s=e.codepoint,l=e.tags,c=e.styleHints,u=e.gridColumn,d=e.gridRow,p=e.containerLayoutOrientation,f=og.getId,h=tS;return e2.createElement(ix.Consumer,null,function(e){var m,g=e.elementFactory,v={additionalClassName:e4.default(iw(l)),ariaLabel:n||(null==(m=null==r?void 0:r.displayDescription)?void 0:m.accessibilityName),elementId:f(h.htmlElementIdPrefixes.image,o),sourceUrl:a,codepoint:s,styleHints:c,gridColumn:u,gridRow:d,containerLayoutOrientation:p};return g&&g.canCreate(t.ElementType.image,v,{})?g.create(t.ElementType.image,v):e2.createElement("img",{id:v.elementId,src:a,alt:n,"aria-label":n,className:v.additionalClassName})})},["elementId","accessibilityName","sourceUrl","codepoint","tags","styleHints","containerLayoutOrientation"]);i3.displayName="Image";var i6=im(function(e){var n=e.displayId,r=e.sourceUrl,o=e.tags,a=e.styleHints,s=e.gridColumn,l=e.gridRow,c=e.containerLayoutOrientation,u=o&&o.accessibilityName?o.accessibilityName:void 0,d=og.getId,p=tS;return e2.createElement(ix.Consumer,null,function(e){var f=e.elementFactory,h={additionalClassName:e4.default(iw(o)),ariaLabel:u,elementId:d(p.htmlElementIdPrefixes.image,n),sourceUrl:r,styleHints:a,gridColumn:s,gridRow:l,containerLayoutOrientation:c};return f&&f.canCreate(t.ElementType.logo,h,{})?f.create(t.ElementType.logo,h):e2.createElement("img",{className:e4.default("pidlddc-logo-image","pidlddc-logoBlock",h.additionalClassName),id:h.elementId,src:r,alt:u,"aria-label":u,style:{width:"48px",height:"48px"}})})},["displayId","sourceUrl","tags","styleHints","containerLayoutOrientation"]);i6.displayName="LogoElement";var i8=function(e){function t(t){var n=e.call(this,t)||this;return n.onEvent=function(e){var t=n.props,r=t.sourceUrl,o=(t.expectedClientActionId,t.onChallengeIFrameMessage),a=t.onChallengeIFrameBusyTimerEnded,s=n.state.messageTimer;r&&e.origin&&0!==r.indexOf(e.origin)||(s&&(a(s),clearTimeout(s),n.setState({messageTimer:null})),o(e))},n.iframe=e2.createRef(),n.state={executing:!0,width:t.element.width,height:t.element.height},n}return ox(t,e),t.prototype.updateHeight=function(e){this.setState({height:e})},t.prototype.componentDidMount=function(){var e=this.props,t=e.displayContent,n=e.sourceUrl,r=e.onChallengeIFrameMessageTimeout,o=e.messageTimeout,s=e.messageTimeoutClientAction,l=e.onChallengeIFrameBusyTimerStarted,c=e.onChallengeIFrameBusyTimerEnded,u=this.iframe.current,d=this.state.messageTimer;if(window.addEventListener(a.message,this.onEvent),!n&&t&&u){var p=u.contentDocument;p&&(p.open(),p.write(t),p.close())}if(!d&&o&&s){var f=window.setTimeout(function(){r(s),c(f)},o);l(f),this.setState({messageTimer:f})}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.displayContent,a=r.sourceUrl,s=this.iframe.current;if(!a&&o&&e&&e.displayContent!==o&&s){var l=s.contentDocument;l&&(l.open(),l.write(o),l.close())}},t.prototype.componentWillUnmount=function(){window.removeEventListener(a.message,this.onEvent)},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,o=e.tags,a=e.sourceUrl;e.containerLayoutOrientation;var s=this.state,l=s.width,c=s.height,u={width:l,height:c},d=(0,og.getId)(tS.htmlElementIdPrefixes.iframe,t),p=(l||c)&&0===Number((l+c).replace(/\D/g,""))?0:void 0;return this.state.executing?e2.createElement("iframe",{key:d,className:e4.default(iw(o)),id:d,src:a,hidden:r,"aria-label":n,ref:this.iframe,style:u,frameBorder:p}):null},t}(e2.Component),i9=it(function(e){var n=function(e,t){var n,r;if("xboxCoBrandedCardIframe"!==e)return{authorization:t};try{return{xuh:null==(n=t.split("=")[1])?void 0:n.split(";")[0],xt:null==(r=t.split("=")[1])?void 0:r.split(";")[1]}}catch(e){return{authorization:t}}};return e2.createElement(ix.Consumer,null,function(r){var o=r.elementFactory,a=r.userContext,s=r.displayOptions,l=e.displayId,c=e.useAuth,u=e.containerLayoutOrientation,d={};c&&(null==a?void 0:a.authToken)!=null&&(d=n(l,a.authToken));var p=oC(oC({},e),{headers:d,useWebView2:s.useWebView2||!1,containerLayoutOrientation:u});return o&&o.canCreate(t.ElementType.challengeIframe,p,{})?o.create(t.ElementType.challengeIframe,p):e2.createElement(i8,oC({},p,{ref:p.challengeIFrameElementRef}))})},["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","expectedClientActionId","messageTimeout","messageTimeoutClientAction","useAuth","loadingMessage","containerLayoutOrientation"]),i7=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultMessageTimeout=3e3,n.resetTimer=function(e){var t=n.props.messageTimeout;n.state.messageTimer&&clearTimeout(n.state.messageTimer),n.setState({messageTimer:setTimeout(e,t||n.defaultMessageTimeout)})},n.clearTimer=function(){n.state.messageTimer&&(clearTimeout(n.state.messageTimer),n.setState({messageTimer:void 0}))},n.onEvent=function(e){var t,r,o=n.props,a=o.sourceUrl,s=o.frameName,l=o.onIFrameMessage,c=o.isIFrameEligible,u=o.onIFrameBusyTimerEnded,d=n.state.messageTimer;if((null==(t=e.data)?void 0:t.source)===s&&(!a||!e.origin||0===a.indexOf(e.origin))){if((null==(r=e.data)?void 0:r.messageType)===eT.isEligible&&void 0!==d){var p=e.data.isEligible||!1,f=e.data.pmType;n.clearTimer(),c(f||s,p),u(0),n.setState({isEligible:p});return}l(e)}},n.onExpressCheckoutLoad=function(){var e=n.props;(0,e.onIFrameLoadHandler)(e.frameName,e.payload,new URL(e.sourceUrl).origin)},n.expressCheckoutButtonIFrameRef=e2.createRef(),n.state={isEligible:!1,width:t.element.width,height:t.element.height},n}return ox(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.frameName,n=e.isIFrameEligible,r=e.onIFrameBusyTimerStarted;window.addEventListener(a.message,this.onEvent),r(0),this.resetTimer(function(){return n(t,!1)})},t.prototype.componentWillUnmount=function(){window.removeEventListener(a.message,this.onEvent),this.clearTimer()},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,o=e.tags,a=e.sourceUrl,s=e.frameName,l=this.state,c=l.isEligible,u=l.width,d=l.height,p=(0,og.getId)(tS.htmlElementIdPrefixes.iframe,t),f=new URL(a).origin,h=(u||d)&&0===Number((u+d).replace(/\D/g,""))?0:void 0,m={width:u,height:d};return c?m.display="inline":m.display="none",e2.createElement("iframe",{key:p,className:e4.default(iw(o)),id:p,src:a,name:s,hidden:r,"aria-label":n,ref:this.expressCheckoutButtonIFrameRef,style:m,onLoad:this.onExpressCheckoutLoad,frameBorder:h,allow:"payment ".concat(f)})},t}(e2.Component),ae=function(e){return e2.createElement(ix.Consumer,null,function(t){var n=t.displayOptions,r={},o=oC(oC({},e),{headers:r,useWebView2:n.useWebView2||!1});return e2.createElement(i7,oC({},o,{ref:o.expressCheckoutButtonElementRef}))})},at=ir(ae,["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","frameName","payload","messageTimeout"]),an=function(e){var t=e.children;return e2.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-error-block",id:"pidlddc-div-pageerrorblock","aria-live":"polite"},t)},ar=function(e){var t=e.children;return e2.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-pagecontent-block",id:"pidlddc-div-pagebodycontents"},t)},ao=iu(function(e){function n(t){return e.call(this,t)||this}return ox(n,e),n.prototype.render=function(){var e=this.props,n=e.element,r=e.elementId,o=e.possibleOptions,a=e.accessibilityName,s=e.displayName,l=e.showDisplayName,c=e.propertyName,u=e.disabled,d=e.required,p=e.hidden,f=e.onSelect,h=e.tags,m=e.optionsElements,g=e.styleHints,v=[];for(var y in o)o.hasOwnProperty(y)&&v.push({key:y,value:o[y].key||y,isDisabled:o[y].isDisabled,displayText:o[y].displayText,displayImageUrl:o[y].displayImageUrl});return e2.createElement(ix.Consumer,null,function(e){return e2.createElement(iv.Consumer,null,function(o){return e2.createElement(iy.Consumer,null,function(y){var b,x=e.elementFactory,C=(e.displayOptions,e.displaySettings,e.theme),k=og.getId,w=tS,S=k(w.htmlElementIdPrefixes.div,r),_={elementId:r,isInline:o,hidden:p,options:v,optionsElements:m,ariaLabel:y.accessibilityText[c]||a,showDisplayName:l,displayName:s||n.displayName,additionalClassName:e4.default(iw(h)),onSelect:f,disabled:u,propertyName:c,required:d,invalid:!1,selectedValue:y.values[c]&&y.values[c].toString(),propertyElementRef:n.propertyElementRef,theme:C,styleHints:g},E=x&&x.canCreate(t.ElementType.radio,_,{});return E?(null==(b=null==x?void 0:x.isReactNative)?void 0:b.call(x))?x.create(t.ElementType.radio,_):e2.createElement("div",{id:S,className:e4.default(S,k(w.htmlElementIdPrefixes.div,n.displayId))},x.create(t.ElementType.radio,_),E&&E.inlineError?null:e2.createElement(iI,{propertyName:c})):e2.createElement("div",{className:e4.default("pidlddc-input-".concat(r))},v.map(function(e){var t="input_".concat(r,"_").concat(e.value),n="".concat(t,"_displayTextLabel");return e2.createElement("div",{key:t},e2.createElement("label",{id:"".concat(t,"_displayNameLabel"),"aria-label":_.ariaLabel,className:e4.default({"pidlddc-hidden":!l}),"aria-hidden":!l},s),e2.createElement("div",{className:e4.default(iw(h))},e2.createElement("label",{id:n,htmlFor:t,"aria-label":e.displayText,onClick:function(){return e.isDisabled||u?null:f(e.value)}},e2.createElement("input",{id:t,type:"radio",name:"radio-input-".concat(c),disabled:e.isDisabled||u,required:d,"aria-labelledby":n,value:e.value,onChange:function(){return f(e.value)},checked:_.selectedValue===e.value}),m&&m[e.value]?m[e.value]:e.displayText)))}),e2.createElement(iI,{propertyName:c}))})})})},n}(e2.Component),["elementId","propertyName","possibleOptions","required","hidden","disabled","showDisplayName","accessibilityName","tags","styleHints"]);ao.displayName="Radio";var ai=function(e){var n=e.elementId,r=e.displayContent,o=e.tags,a=e.styleHints,s=e.containerLayoutOrientation,l=e4.default(iw(o)),c=(0,og.getId)(tS.htmlElementIdPrefixes.text,n),u=e.element.isHidden;return e2.createElement(ix.Consumer,null,function(e){var n=e.elementFactory,d={id:c,elementId:c,displayContent:r,additionalClassName:l,theme:(e.displayOptions,e.displaySettings,e.theme),styleHints:a,containerLayoutOrientation:s,elementHtmlAttributes:iP(o)};return u?null:n&&n.canCreate(t.ElementType.heading,d,{})?n.create(t.ElementType.heading,d):e2.createElement("h2",{id:c,className:l},r)})},aa=o9(ai,["elementId","displayContent","tags","styleHints","containerLayoutOrientation"]);aa.displayName="Heading";var as=function(e){var n=e.elementId,r=e.displayContent,o=e.tags,a=e.styleHints,s=e.containerLayoutOrientation,l=e4.default(iw(o)),c=(0,og.getId)(tS.htmlElementIdPrefixes.text,n);return e2.createElement(ix.Consumer,null,function(e){var n=e.elementFactory,u={id:c,elementId:c,displayContent:r,additionalClassName:l,theme:(e.displayOptions,e.displaySettings,e.theme),styleHints:a,containerLayoutOrientation:s,elementHtmlAttributes:iP(o)};return n&&n.canCreate(t.ElementType.subheading,u,{})?n.create(t.ElementType.subheading,u):e2.createElement("h3",{id:c,className:l},r)})},al=o9(as,["elementId","displayContent","tags","styleHints","containerLayoutOrientation"]);al.displayName="SubHeading";var ac=function(e){var n=e.elementId,r=e.displayContent,o=e.tags,a=e.styleHints,s=e.gridColumn,l=e.gridRow,c=e.hidden,u=e.containerLayoutOrientation,d=e.accessibilityName,p=(0,og.getId)(tS.htmlElementIdPrefixes.text,n),f=i_(o),h=e4.default(iw(o)),m=c?{display:"none"}:void 0;return e2.createElement(iv.Consumer,null,function(e){return e2.createElement(ix.Consumer,null,function(n){var g=n.elementFactory,v=(n.displayOptions,n.displaySettings,n.theme),y={id:p,displayContent:r,additionalClassName:h,inline:e,theme:v,hidden:c,styleHints:a,gridColumn:s,gridRow:l,containerLayoutOrientation:u,accessibilityName:d,tags:o,elementHtmlAttributes:iP(o)};if(g){if(c&&(null==g?void 0:g.isReactNative)&&g.isReactNative())return;var b={displayContent:r,elementId:p,theme:v};if(f.indexOf("labelText")>=0&&g.canCreate(t.ElementType.label,y,{}))return g.create(t.ElementType.label,b);if(g.canCreate(t.ElementType.text,y,{}))return g.create(t.ElementType.text,y)}return e?e2.createElement("span",{id:p,className:h,style:m},r):e2.createElement("p",{id:p,className:h,style:m},r)})})},au=o9(ac,["elementId","displayContent","tags","styleHints","hidden","containerLayoutOrientation","accessibilityName"]);au.displayName="Text";var ad=function(e){function t(n){var r=e.call(this,n)||this;return r.getTransformedLength=function(e,t,n){var r=t.substr(0,n),o=rd.applyDisplayTransformation(e.forModel,r);return(o=rd.applyDisplayTransformation(e.forFormat,o)).length},r.onFocus=function(e){var t=r.props.onFocus;t&&e&&e.currentTarget&&t(e.currentTarget.value)},r.onBlur=function(e){var t=r.props.onBlur;t&&e&&e.currentTarget&&t(e.currentTarget.value)},r.onChange=function(e){var n=r.props,o=n.element,a=n.onChange,s=n.id,l=o.displayTransformations;t.caretPosition={id:s,start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd,direction:"forward"===e.currentTarget.selectionDirection?"forward":"backward"===e.currentTarget.selectionDirection?"backward":"none"};var c=e.currentTarget.value;if(l&&l.forModel&&l.forFormat&&(t.caretPosition.start=r.getTransformedLength(l,c,t.caretPosition.start),t.caretPosition.end=r.getTransformedLength(l,c,t.caretPosition.end)),a){var u=e.currentTarget.value;l&&l.forModel&&(u=rd.applyDisplayTransformation(l.forModel,u)),a(u)}},r.onCompositionStart=function(e){r.inComposition=!0},r.onCompositionEnd=function(e){r.inComposition=!1},r.htmlInput=e2.createRef(),r.inComposition=!1,r}return ox(t,e),t.prototype.componentDidUpdate=function(){this.props.id===t.caretPosition.id&&this.htmlInput.current.setSelectionRange(t.caretPosition.start,t.caretPosition.end,t.caretPosition.direction)},t.prototype.render=function(){var e=this.props,t=e.element,n=e.additionalClassName,r=e.id,o=e.maskInput,a=e.maxLength,s=e.required,l=e.hidden,c=e.disabled,u=e.placeholder,d=e.ariaLabelId,p=e.inlineError,f=(e.onFocus,e.onBlur,e.onChange,e.isInValidationErrorGroup);e.styleHints;var h=this.props.value,m=t.displayTransformations,g=p||f&&!c;return!this.inComposition&&m&&m.forFormat&&(h=rd.applyDisplayTransformation(m.forFormat,h)),e2.createElement("input",{type:o?"password":"text",className:g?e4.default(n,"pidlddc-errorstroke"):n,id:r,ref:this.htmlInput,maxLength:a,required:s,hidden:l,disabled:c,value:h,placeholder:u,"aria-labelledby":d,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd})},t.caretPosition={id:null,start:0,end:0,direction:"none"},t}(e2.Component),ap=il(function(e){function n(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=n.props;(0,t.onUpdateValue)(t.propertyName,e,Z.editing)},n.onBlur=function(e){var t=n.props;(0,t.onUpdateValue)(t.propertyName,e,Z.finished)},n.onSelected=function(e,t,r){n.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:r})},n.onUnselected=function(e,t,r){n.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:r})},n.onFocusInternal=function(e){var t=n.props,r=t.elementId,o=t.propertyName,a=t.displayOptions,s=t.onFocus,l=og,c=l.getDivId,u=l.getId,d=c(r),p=u(a.inputPropertyIdPrefix,o);n.onSelected&&n.onSelected(p,o,d),s&&s(e)},n.onBlurInternal=function(e){var t=n.props,r=t.elementId,o=t.propertyName,a=t.displayOptions,s=t.element,l=t.eventHandler,c=og,u=c.getDivId,d=c.getId,p=u(r),f=d(a.inputPropertyIdPrefix,o);n.onUnselected&&n.onUnselected(f,o,p),n.onBlur&&n.onBlur(e),s.onfocusout&&l.invokePidlAction(s.onfocusout)},n}return ox(n,e),n.prototype.render=function(){var e=this;return e2.createElement(ix.Consumer,null,function(n){return e2.createElement(iy.Consumer,null,function(r){var o=n.elementFactory,a=n.displayOptions,s=n.theme,l=e.props,c=l.elementId,u=l.element,d=l.required,p=l.disabled,f=l.hidden,h=l.propertyName,m=l.maxLength,g=l.displayHelpName,v=l.displayImage,y=l.tags,b=void 0===y?{}:y,x=l.placeHolderText,C=l.showKeyLogo,k=l.resolvedLogo,w=l.displayHelpChildren,S=(l.onFocus,l.displayId),_=l.accessibilityName,E=l.accessibilityHint,P=l.styleHints,I=l.containerLayoutOrientation,T=u.displayName,D=u.showDisplayName,A=u.displayDescription,R=u.propertyElementRef,N=tS,B=og,M=B.getDivId,F=B.getId,O=B.generateClassName,L=B.concatClassName,H=M(c),z=F(a.inputPropertyIdPrefix,h),V={inlineError:!0},U=r.errors[h]?r.errors[h].message:void 0,j=!!r.errors[h],W=D?e2.createElement(iB,{element:u}):null,q={id:c},G=g||v?e2.createElement(iF,oC({},q,{element:u,children:w,elementFactory:o})):null,K={disabled:p,displayName:T,hidden:f,inlineError:U,isInValidationErrorGroup:j,maskInput:A&&A.maskInput,maxLength:m,onBlur:e.onBlurInternal,onChange:e.onChange,onFocus:e.onFocusInternal,required:d,showDisplayName:D,inlineHelpLink:G,additionalClassName:e4.default(iw(b)),ariaLabelId:"pidlddc-label-".concat(h," pidlddc-error-").concat(h),id:z,inlineLogo:C&&k,placeholder:x,value:r.values[h]&&r.values[h].toString()||"",propertyName:h,displayId:S,propertyElementRef:R,ariaLabel:_,accessibilityHint:E,theme:s,styleHints:P,containerLayoutOrientation:I,tags:b};V=o&&o.canCreate(t.ElementType.textBox,K,V);var X=null;V?(X=o.create(t.ElementType.textBox,K),V.label&&(W=null),V.inlineHelpLink&&(G=null)):X=e2.createElement(ad,oC({},K,{element:u}));var Y=O(null,N.htmlElementTypes.div,h,N.modelElementType.textBox);return S&&(Y=L(Y,M(S))),function(e){return(null==o?void 0:o.isReactNative)&&o.isReactNative()?e2.createElement(e2.Fragment,null,e):e2.createElement("div",{id:H,className:Y},e)}(e2.createElement(e2.Fragment,null,W&&G&&u.displayHelpPosition!==e_.floatRight?e2.createElement("span",null,W," ",G):W,G&&u.displayHelpPosition===e_.floatRight?e2.createElement("span",null,X," ",G):X,W&&G?null:G,V&&V.inlineError?null:e2.createElement(iI,{propertyName:h})))})})},n}(e2.Component),["elementId","tags","propertyName","displayHelpName","maxLength","required","hidden","disabled","showKeyLogo","resolvedLogo","placeHolderText","displayImage","displayId","accessibilityName","accessibilityHint","styleHints","containerLayoutOrientation","tags"]);ap.displayName="TextBox";var af=ii(function(e){function n(t){var n=e.call(this,t)||this;return n.pidlInstanceRef=e2.createRef(),t.pidlInstanceRefs[t.pidlInstance]=n.pidlInstanceRef,n}return ox(n,e),n.prototype.render=function(){var e=this,n=this.props,r=n.elementId,o=n.tags,a=n.pidlInstance,s=n.disabled,l=n.hidden;if(s)return null;var c=(0,og.getId)(tS.htmlElementIdPrefixes.pidlInstance,r),u=e4.default(iw(o));return e2.createElement(ix.Consumer,null,function(n){var r=n.elementFactory,o=n.pidlInstanceContexts,d=n.userContext,p=n.displayOptions,f=n.env,h=n.returnOptions,m=null;o&&o[a]&&(m=o[a]);var g=a,v={id:c,additionalClassName:u,pidlInstance:a,disabled:s,pidlInstanceKey:g};return r&&r.canCreate(t.ElementType.pidlInstance,v,{})?r.create(t.ElementType.pidlInstance,v):m?function(){if(l)return e2.createElement(e2.Fragment,null);switch(m.action){case"addResource":return e2.createElement(aq,{key:a,userContext:d,pidlDocInfo:m.pidlDocInfo,displayOptions:p,env:f,returnOptions:h,pidlInstanceKey:g,ref:e.pidlInstanceRef,elementFactory:r});case"selectResource":return e2.createElement(sd,{key:a,userContext:d,pidlDocInfo:m.pidlDocInfo,displayOptions:p,env:f,pidlInstanceKey:g,returnOptions:h,ref:e.pidlInstanceRef,elementFactory:r})}}():null})},n}(e2.Component),["elementId","tags","pidlInstance","disabled","hidden"]);af.displayName="PidlInstance";var ah=function(){function e(e){this.group=e}return e.prototype.addChild=function(e){return this.group.members||(this.group.members=[]),this.group.members.push(e),this},e.prototype.addHeading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:eW.heading})},e.prototype.addSubheading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:eW.subheading})},e.prototype.addText=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:eW.text})},e.prototype.addGroup=function(t,n,r){void 0===r&&(r=!1),this.group.members||(this.group.members=[]);var o={displayId:t,isSubmitGroup:r,displayType:eW.group,layoutOrientation:eq.vertical,displayName:n||"",members:[]};return this.group.members.push(o),new e(o)},e.prototype.addInlineGroup=function(t,n,r){void 0===r&&(r=!1),this.group.members||(this.group.members=[]);var o={displayId:t,isSubmitGroup:r,displayType:eW.group,layoutOrientation:eq.inline,displayName:n||"",members:[]};return this.group.members.push(o),new e(o)},e.prototype.addExpression=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:eW.expression})},e.prototype.addTextGroup=function(t,n){this.group.members||(this.group.members=[]);var r={displayId:t,isSubmitGroup:!1,displayType:eW.textGroup,layoutOrientation:eq.inline,displayName:n||"",members:[]};return this.group.members.push(r),new e(r)},e.prototype.addSubmitGroup=function(e,t){return this.addInlineGroup(e,t,!0)},e.prototype.addButton=function(e,t,n,r){return void 0===r&&(r={}),this.addChild(oC({displayId:e,pidlAction:n,displayContent:t,displayType:"button",tags:{accessibilityName:t}},r))},e.prototype.addSubmitButton=function(e,t,n){return n=oC({type:"submit",isDefault:!0},n),this.addButton(e,t,n,{isHighlighted:!0})},e.prototype.addCancelButton=function(e,t,n){return n=oC({type:"gohome"},n),this.addButton(e,t,n,{isBack:!0})},e}(),am=function(){return function(e){var t=this;this.addDataDescription=function(e,n){return t.dataDescription[e]=n,t},this.addPage=function(e,n){var r={displayId:e,displayName:n,members:[],displayType:eW.page};return t.pages.push(r),new ah(r)},this.build=function(){return{identity:t.identity,data_description:t.dataDescription,displayDescription:t.pages}},this.identity=e,this.dataDescription={},this.pages=[]}}(),ag=function(){return function(e){var t=this;this.required=function(e,n){return t.validations.push({error_code:e,error_message:n,validationType:eH.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{1,128}$"}),t},this.hasLetters=function(e,n,r){var o="number"==typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:eH.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{".concat(o,"}$")}),t},this.alphanumeric=function(e,n,r){var o="number"==typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:eH.regex,regex:"^[A-Za-z0-9]{".concat(o,"}$")}),t},this.numeric=function(e,n,r){var o="number"==typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:eH.regex,regex:"^\\d{".concat(o,"}$")}),t},this.exactly=function(e,n,r){return r=Array.isArray(r)?r.join("|"):r,t.validations.push({error_code:e,error_message:n,validationType:eH.regex,regex:"^".concat(r,"$")}),t},this.validations=e}}(),av=function(){return function(e,t){var n=this;this.validations=[],this.possibleValues=null,this.possibleOptions=null,this.dataCollectionSource=null,this.defaultValue=null,this.isDisabled=null,this.setDataCollectionSource=function(e,t,r){return n.dataCollectionSource=e,n.possibleOptions={},n.possibleOptions[t]={displayText:r,isDisabled:!1},n},this.validate=function(){return new ag(n.validations)},this.setPossibleValues=function(e){n.possibleOptions={};for(var t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];n.possibleOptions[o]={displayText:e[o],isDisabled:!1}}return n.possibleValues=e,n},this.setDisabled=function(){return n.isDisabled=!0,n},this.setDefaultValue=function(e){return n.defaultValue=e,n},this.buildData=function(){var e={validations:n.validations};return n.validations.length>0&&(e.validation=n.validations[0]),n.dataCollectionSource&&(e.possible_values={}),n.defaultValue&&(e.default_value=n.defaultValue),oC(oC({},n.base),e)},this.buildDisplay=function(e){var t=n.propertyName,r={};n.dataCollectionSource?(r.dataCollectionSource=n.dataCollectionSource,r.possibleOptions=n.possibleOptions):n.possibleValues&&(r.possibleValues={},r.possibleOptions={},Object.keys(n.possibleValues).forEach(function(e){var t=n.possibleValues&&n.possibleValues[e];t&&(r.possibleValues[e]=t,r.possibleOptions[e]={displayText:t,isDisabled:!1})}),r.displaySelectionText="--- ".concat(t," ---"));var o=n.validations[0],a=o?{defaultErrorMessage:o.error_message,fromErrorCode:[{errorCode:o.error_code,errorMessage:o.error_message}]}:{},s=!!n.isDisabled;return oC(oC({displayName:t,showDisplayName:"true",displayId:"display_".concat(t),displayType:"property",propertyName:t,tags:{accessibilityName:t},displayErrorMessages:a,isDisabled:s},r),e)},this.propertyName=e,this.base=t||{propertyType:"userData",type:"string",dataType:"string",is_updatable:!0}}}(),ay=function(e){var t=e.displayId,n=e.required,r=e.disabled,o=e.hidden,a=e.elementId,s=e.propertyName,l=e.displayName,c=e.accessibilityName,u=e.onChange,d=e.tags,p=e.element,f=(0,e.getMultiPropertySelectorPossibleOptions)(p.pidlIdentity),h=o||!f;return e2.createElement(iq,{element:p,elementId:a,required:n,hidden:h,disabled:r,propertyName:s,displayName:l,accessibilityName:c,onChange:function(e){return u(e)},displayId:t,useDisplayIdAsKeyForCheckState:!0,tags:d})},ab=ic(ay,["elementId","propertyName","accessibilityName","displayName","displayId","required","hidden","disabled","tags"]);ab.displayName="PrefillCheckBox";var ax=o9(function(e){var n=e.elementId,r=e.tags,o=(0,og.getId)(tS.htmlElementIdPrefixes.separator,n),a=e4.default(iw(r));return e2.createElement(ix.Consumer,null,function(e){var n=e.elementFactory,r={id:o,additionalClassName:a};return n&&n.canCreate(t.ElementType.separator,r,{})?n.create(t.ElementType.separator,r):e2.createElement("hr",{id:o,className:a})})},["elementId","tags"]);ax.displayName="Separator";var aC=o9(function(e){var n=e.elementId,r=e.tags,o=e.containerLayoutOrientation,a=(0,og.getId)(tS.htmlElementIdPrefixes.spinner,n),s=e4.default(iw(r));return e2.createElement(ix.Consumer,null,function(e){var r=e.elementFactory,l={elementId:n,additionalClassName:s,containerLayoutOrientation:o};return r&&r.canCreate(t.ElementType.spinner,l,{})?r.create(t.ElementType.spinner,l):e2.createElement("hr",{id:a,className:s})})},["elementId","tags","containerLayoutOrientation"]);aC.displayName="Spinner";var ak=io(function(e){function n(t){var n,r,o=this;(o=e.call(this,t)||this).onLoadEventHandler=function(){var e=o.props,t=e.element;e.eventHandler.resolveSecurePropertyLoadedPromise(t.id)},o.onMessageEvent=function(e){var t,n,r,a,s,l,c=o.props,u=c.sourceUrl,d=c.propertyName,p=c.displayId,f=c.eventHandler,h=og,m=h.getDivId,g=h.getId,v=tS,y=m(p),b=g(v.htmlElementIdPrefixes.secureProperty,d);if(null==e||!e.origin||(null==u?void 0:u.indexOf(e.origin))===0){if((null==(t=null==e?void 0:e.data)?void 0:t.event)===v.SecureFieldEvent.focused&&(null==(n=null==e?void 0:e.data)?void 0:n.field)===d)return void o.onFocusInternal(b,e.data.field,y);if((null==(r=null==e?void 0:e.data)?void 0:r.event)===v.SecureFieldEvent.blurred&&(null==(a=null==e?void 0:e.data)?void 0:a.field)===d)return void o.onBlurInternal(b,e.data.field,y);(null==(s=null==e?void 0:e.data)?void 0:s.source)===v.SecureFieldConstants.secureFieldMessageSource&&(null==(l=null==e?void 0:e.data)?void 0:l.field)===d&&f.secureFieldMessageHandler(e)}},o.onFocusInternal=function(e,t,n){o.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:n})},o.onBlurInternal=function(e,t,n){o.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:n})},o.computeStyles=function(){var e=og,t=e.generateClassName,n=e.getPropertyClassName,r=e.concatClassName,a=tS,s=o.props,l=s.propertyName,c=s.tags,u=s.eventHandler,d=t(null,a.htmlElementTypes.textBox,l);d=r(d,n(l)),d=r(d,e4.default(iw(c))),u.computeSecurePropertyStyles(l,o.securePropertyHardCodedStyles)},o.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"width-fill":t=oC(oC({},t),{width:"100%"});break;case"width-half":t=oC(oC({},t),{width:"50%"});break;case"width-quarter":t=oC(oC({},t),{width:"25%"})}return t}},o.iframe=e2.createRef(),o.state={executing:!0,width:null==(n=t.element)?void 0:n.width,height:null==(r=t.element)?void 0:r.height};var a=t.eventHub,s=t.element,l=t.displayId,c=t.frameName,u=t.propertyName,d=t.sourceUrl;return null==a||a.propertyCreating(null==s?void 0:s.id,{displayId:l,frameName:c,propertyName:u,sourceUrl:d},{}),o}return ox(n,e),n.prototype.componentDidMount=function(){var e=this.props,t=e.element,n=e.eventHandler;t.propertyElementRef&&t.setFocus(),this.computeStyles(),window.addEventListener(a.message,this.onMessageEvent),n.createSecurePropertyLoadedPromise(t.id),n.createSecurePropertyInitCompletedPromise(t.id)},n.prototype.componentWillUnmount=function(){window.removeEventListener(a.message,this.onMessageEvent)},n.prototype.render=function(){var e=this;return e2.createElement(ix.Consumer,null,function(n){return e2.createElement(iy.Consumer,null,function(r){var o,a=n.elementFactory,s={},l=e.props,c=l.displayId,u=l.propertyName,d=l.accessibilityName,p=l.hidden,f=l.tags,h=l.sourceUrl,m=l.frameName,g=l.element,v=l.labelNode,y=l.displayHelpName,b=l.displayImage,x=l.displayHelpChildren,C=l.styleHints,k=e.state,w={width:k.width,height:k.height},S=og,_=S.getId,E=S.getDivId,P=S.generateClassName,I=S.concatClassName,T=tS,D=_(T.htmlElementIdPrefixes.secureProperty,u),A=E(c),R=P(null,T.htmlElementTypes.div,null,T.modelElementType.secureProperty);u&&(R=I(R,E(u)));var N=P(null,T.htmlElementTypes.secureProperty);f&&(N=I(N,e4.default(iw(f))));var B={id:c},M=y||b?e2.createElement(iF,oC({},B,{element:g,children:x,elementFactory:a})):null;(s=a&&a.canCreate(t.ElementType.secureProperty,null,s))&&(e.securePropertyHardCodedStyles=s.securePropertyHardCodedStyles,(null==(o=s.securePropertyHardCodedStyles)?void 0:o.secureIframeDimensions)&&(w=oC({},s.securePropertyHardCodedStyles.secureIframeDimensions)),s.inlineHelpLink||(M=null)),C&&(w=oC(oC({},w),e.getStylesFromHints(C)));var F=e2.createElement("iframe",{className:N,id:D,src:h,hidden:p,"aria-label":d,ref:e.iframe,style:oC(oC({},w),{verticalAlign:"middle"}),sandbox:"allow-same-origin allow-scripts",name:m,frameBorder:"0",onLoad:e.onLoadEventHandler});return e.state.executing?e2.createElement("div",{id:A,className:R},v&&M&&g.displayHelpPosition===e_.floatRight?e2.createElement("span",null,v," ",M):v,M?e2.createElement("span",null,M," ",F):F,e2.createElement(iI,{propertyName:u})):null})})},n}(e2.Component),["displayId","propertyName","displayHelpName","displayImage","accessibilityName","hidden","frameName","tags","sourceUrl","styleHints"]),aw=function(e){var n=e.element,r=e.elementId,o=e.hidden,a=e.required,s=e.disabled,l=e.displayId,c=e.displayHelpName,u=e.displayImage,d=e.showDisplayName,p=e.displayName,f=e.accessibilityName,h=e.displayHelpChildren;return d?e2.createElement(ix.Consumer,null,function(e){var m=e.elementFactory,g=(0,og.getId)(tS.htmlElementIdPrefixes.label,r),v={id:l},y={disabled:s,required:a,elementId:g,displayContent:p,inlineHelpLink:c||u?e2.createElement(iF,oC({},v,{element:n,children:h,elementFactory:m})):null};return(null==m?void 0:m.canCreate(t.ElementType.securePropertyLabel,y,{}))?m.create(t.ElementType.securePropertyLabel,y):e2.createElement("label",{className:e4.default("pidlddc-label",o||!d?"d-none":"d-block"),id:y.elementId,"aria-label":f},p,e2.createElement("span",{className:"".concat(y.elementId,"-asterisk")},a?"*":""))}):null};aw.displayName="SecurePropertyLabelInner";var aS=io(aw,["elementId","hidden","displayName","displayId","displayHelpName","displayImage","showDisplayName","accessibilityName","required"]);function a_(e,t,n,r,o,a,s,l){if(!e.canBeRendered())return null;var c,u,d,f,h=e,m=h.getPropertyName&&h.getPropertyName()||"";if(!e.isText()&&e.hidden())return null;var v=function(e,t,n){return n&&(null==e?void 0:e.createLogoWrapper)?e.createLogoWrapper(t):(null==e?void 0:e.isReactNative)&&e.isReactNative()?e2.createElement(e2.Fragment,null,t):e2.createElement("div",{className:"pidlddc-div pidlddc-div-logo pidlddc-logoBlock",id:"pidlddc-div-pagelogoblock0"},t)},y=function(e){return e&&(e.type===k.navigate||e.type===k.redirect)},b={element:e},x=e.displayHelp,C=e.operationType,w=g;switch(e.type){case w.page:return e.children&&e.children.map?e.children.map(aE(t,n,r,o,a,s,l)):null;case w.dataCollectionBindingGroup:case w.group:var _=oC(oC({},b),{childNodes:e.children&&e.children.map?e.children.map(aE(t,n,r,o,a,s,l)):null,labelNode:e2.createElement(iK,oC({},b))});if(n3(e)&&e.isModalGroup)return e2.createElement(iY,oC({},_,{ref:e.groupElementRef}));return e2.createElement(iJ,oC({},_));case w.captcha:return e2.createElement(iC.Consumer,null,function(s){var l=oC({},t),c=oC({},t);l.buttonClickHandler=function(){var t=e.id;l.captchaHyperlinkClickHandler(t,"image",Z.finished)},c.buttonClickHandler=function(){var t=e.id;c.captchaHyperlinkClickHandler(t,"audio",Z.finished)};var u=oC(oC({},b),{audioChildNodes:e.audioChildren&&e.audioChildren.map?e.audioChildren.map(aE(l,n,r,o,a)):null,imageChildNodes:e.imageChildren&&e.imageChildren.map?e.imageChildren.map(aE(c,n,r,o,a)):null});return e2.createElement(i1,oC({},u,{eventHub:s}))});case w.textGroup:var E=void 0;return e.children&&e.children[0]&&e.children[0].id&&(E=og.getId(p.text,e.children[0].id)),e2.createElement(iZ,oC({},b,{ariaLabelledBy:E}),e2.createElement(iv.Provider,{value:!0},e.children&&e.children.map?e.children.map(aE(t,n,r,o,a)):null));case w.heading:return e2.createElement(aa,oC({},b));case w.subheading:return e2.createElement(al,oC({},b));case w.text:return e2.createElement(au,oC({},b));case w.hyperlink:var P=function(){var n;return t.buttonClickHandler({id:e.id,pidlAction:e.pidlAction,value:null==(n=e.pidlAction)?void 0:n.context,dest:""})};return e2.createElement(i4,oC({onClick:y(e.pidlAction)?t.hyperlinkClickHandler:e.pidlAction?P:t.buttonClickHandler},b));case w.image:return e2.createElement(i3,oC({},b));case w.logo:var I=e.getAllLogos(),T=oC({},b),D=I&&I.map?I.map(function(e){return e2.createElement(i6,{element:e,containerLayoutOrientation:T.element.containerLayoutOrientation})}):null;return e2.createElement(ix.Consumer,null,function(e){return v(e.elementFactory,D,!0)});case w.dropdown:return e2.createElement(iC.Consumer,null,function(c){if(e.displayType===eW.prefillControl){var p=function(t){var n=parseInt(t);isNaN(n)||r(e,n)},f=t.getMultiPropertySelectorPossibleOptions(e.pidlIdentity)||[];return e2.createElement(i$,{element:oC(oC({},e),{getPropertyName:function(){return e.displayId},possibleOptions:f}),isPrefill:!0,onSelect:p,eventHub:c,setOpenDropdownId:s,openDropdownId:l,eventHandler:t})}var h=function(e){n(m,e.toString(),Z.editing),n(m,e.toString(),Z.finished)};if(u=e.possibleOptions){d={};for(var g=0,v=Object.keys(u||{});g<v.length;g++){var y=v[g];if(u[y]){var x=u[y].displayContentContainer;x&&(d||(d={}),d[y]=a_(x,t,n,r,o,a))}}}return e2.createElement(i$,oC({},b,{onSelect:h,optionsElements:d,eventHub:c,setOpenDropdownId:s,openDropdownId:l,eventHandler:t}))});case w.checkBox:if(e.displayType===eW.prefillControl){var A=function(t){r(e,t)};return e2.createElement(ab,oC({},b,{onChange:A,getMultiPropertySelectorPossibleOptions:t.getMultiPropertySelectorPossibleOptions}))}var R=function(e){n(m,e,Z.editing)};return e2.createElement(iq,oC({},b,{onChange:R}));case w.textBox:if(x){var N=ns.createModelElementsFromDisplayDescriptions(x,C);f=N.elements&&N.elements.map?N.elements.map(aE(t,n,r,o,a)):void 0}return e2.createElement(ix.Consumer,null,function(e){return e2.createElement(ap,oC({},b,{displayHelpChildren:f,onUpdateValue:n,propertyName:m,eventHandler:t,displayOptions:e.displayOptions}))});case w.button:var B=e.pidlAction,M=e.displayContentModelElement,F=e.displayContent,O=function(){return t.buttonClickHandler({id:e.id,pidlAction:B,value:B.context,dest:""})},L=void 0;return M&&(L=a_(M,t,n,r,o,a)),e2.createElement(iH,oC({},b,{onClick:O,displayContent:null!=L?L:F}));case w.audio:return e2.createElement(i5,oC({},b));case w.radio:var H=function(e){n(m,e,Z.editing)};if(u=e.possibleOptions){d={};for(var z=0,V=Object.keys(u||{});z<V.length;z++){var U=V[z];if(u[U]){var j=u[U].displayContentContainer;j&&j[S.isDisabled]&&(j[S.isDisabled]=u[U].isDisabled),j&&(d||(d={}),d[u[U].key||U]=a_(j,t,n,r,o,a))}}}return e2.createElement(ao,oC({},b,{onSelect:H,optionsElements:d}));case w.expression:return e2.createElement(au,oC({},b));case w.buttonList:return e2.createElement(ij,oC({},b,{onClick:t.buttonClickHandler,createElement:function(e){return a_(e,t,n,r,o,a)}}));case w.iFrame:var W=e2.createRef(),q=e2.createElement(iR,oC({},b,{key:e.id,onIFrameMessageTimeout:t.iFrameMessageTimeoutHandler,onIFrameMessage:function(e){return t.iFrameMessageHandler(e)},onIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler,iFrameElementRef:W}));return o.push(W),q;case w.challengeIFrame:var G=e2.createRef(),K=e2.createElement(i9,oC({},b,{key:e.id,onChallengeIFrameMessageTimeout:t.iFrameMessageTimeoutHandler,onChallengeIFrameMessage:function(e){return t.challengeiFrameMessageHandler(e)},onChallengeIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onChallengeIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler,challengeIFrameElementRef:G}));return o.push(G),K;case w.expressCheckoutButton:var X=e2.createRef(),Y=e2.createElement(at,oC({},b,{key:e.id,onIFrameLoadHandler:function(e,n,r){return t.expressCheckoutButtonLoadHandler(e,n,r)},isIFrameEligible:function(e,n){return t.expressCheckoutButtonIsEligible(e,n)},onIFrameMessage:function(e){return t.expressCheckoutButtonMessageHandler(e)},expressCheckoutButtonElementRef:X,onIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler}));return o.push(X),Y;case w.filePicker:var Q=void 0;if(x){var N=ns.createModelElementsFromDisplayDescriptions(x,C);Q=(null==N?void 0:N.elements)&&(null==(c=null==N?void 0:N.elements)?void 0:c.map)?N.elements.map(aE(t,n,r,o,a)):void 0}return e2.createElement(iO,oC({},b,{displayHelpChildren:Q,propertyName:m,onUpdateValue:n}));case w.separator:return e2.createElement(ax,oC({},b));case w.spinner:return e2.createElement(aC,oC({},b));case w.secureProperty:return e2.createElement(iC.Consumer,null,function(e){if(x){var c,u,d=ns.createModelElementsFromDisplayDescriptions(x,C);u=(null==d?void 0:d.elements)&&(null==(c=null==d?void 0:d.elements)?void 0:c.map)?d.elements.map(aE(t,n,r,o,a,s,l)):void 0}var p=oC(oC({},b),{labelNode:e2.createElement(aS,oC({},b,{displayHelpChildren:u}))});return e2.createElement(ak,oC({},p,{eventHub:e,displayHelpChildren:u,eventHandler:t}))});case w.pidlInstance:return e2.createElement(af,oC({},b,{pidlInstanceRefs:a}));default:return}}function aE(e,t,n,r,o,a,s){return function(l,c,u){return a_(l,e,t,n,r,o,a,s)}}aS.displayName="SecurePropertyLabel";var aP=function(e){function t(t){var n=e.call(this,t)||this;return n.update=function(e,t){e.run.apply(e,oP([n,t||function(){}],e.args,!1))},n.displayValues={},n.propertyNames=[],n.getPropertyNames(n.props.pageElement.children,n.propertyNames),n.state={propertyErrors:{},groupErrors:{},pendingValues:{},accessibilityText:{}},n}return ox(t,e),t.prototype.updatePropertyValues=function(e){var t=this.props,n=t.getModelPropertyValue,r=t.onPropertyChange;for(var o in this.state.pendingValues){var a=n(o);void 0!==a&&r&&r(o,a)}this.setState({pendingValues:{}},e)},t.prototype.getPropertyNames=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.isProperty()){var a=o;a.displayType!==eW.prefillControl&&t.push(a.getPropertyName())}else if(o.isCaptcha()){var s=o;t.push(s.getPropertyName())}o.children&&o.children.length&&this.getPropertyNames(o.children,t)}},t.prototype.getPropertyState=function(){var e=this.props,t=e.getModelPropertyValue,n=e.pageElement,r={};this.propertyNames=[],n&&n.children&&this.getPropertyNames(n.children,this.propertyNames);for(var o=0,a=this.propertyNames;o<a.length;o++){var s=a[o];r[s]=t(s)}var l=oC(oC(oC({},this.displayValues),r),this.state.pendingValues);return{errors:this.state.propertyErrors,values:l,accessibilityText:this.state.accessibilityText}},t.prototype.render=function(){var e=this.props,t=e.children,n=e.elementFactory,r=e.displayOptions,o=e.displaySettings,a=e.eventHub,s=e.theme,l=e.userContext,c=e.pidlInstanceContexts,u=e.env,d=e.returnOptions;return e2.createElement(iC.Provider,{value:a},e2.createElement(ib.Provider,{value:this.state.groupErrors},e2.createElement(iy.Provider,{value:this.getPropertyState()},e2.createElement(ix.Provider,{value:{elementFactory:n,displayOptions:r,displaySettings:o,theme:s,userContext:l,pidlInstanceContexts:c,env:u,returnOptions:d}},t))))},t}(e2.Component),aI=function(e,t,n){var r;e.setState({propertyErrors:oC(oC({},e.state.propertyErrors),((r={})[n.propertyName]=n,r))},t)},aT=function(e,t,n){var r;e.setState({groupErrors:oC(oC({},e.state.groupErrors),((r={})[n.groupDisplayId]=n,r))},t)},aD=function(e,t,n){var r=oC({},e.state.propertyErrors);if(r[n])delete r[n],e.setState({propertyErrors:r},t);else{var o=oC({},e.state.groupErrors);o&&o[n]&&(delete o[n],e.setState({groupErrors:o},t))}},aA=function(e,t){e.updatePropertyValues(t)},aR=function(e,t,n,r){var o;e.setState({accessibilityText:oC(oC({},e.state.accessibilityText),((o={})[n]=r,o))},t)},aN=function(e,t,n,r){var o;e.setState({pendingValues:oC(oC({},e.state.pendingValues),((o={})[n]=r,o))})},aB=function(e,t,n,r){var o;e.displayValues=oC(oC({},e.displayValues),((o={})[n]=r,o)),e.forceUpdate(t)},aM=function(e,t){e.setState({propertyErrors:{},groupErrors:{}},t)},aF=function(e,t,n){e.map(function(e){if(e.isProperty()){var r=e;n[r.getPropertyName()]=r}t[e.id]=e,aF(e.children||[],t,n)})},aO=function(e){function t(n){var r=e.call(this,n)||this;if(r._modalRef=e2.createRef(),r._navigationWrapperRef=e2.createRef(),r.pageHasSecureFields=!1,r.alreadyWaiting=!1,r.isFirstLoad=!1,r.moreThanOneBusyBlockPropExists=function(){var e=r.props,t=e.busyBlockElement,n=e.displayOptions;return[n.busyBlockId,t,n.busyBlockShowHideHandler].filter(function(e){return e}).length>1},r.moveNextPage=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.moveNextPage&&r.pidlControlApi.moveNextPage().result},r.submitPage=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.submitPage&&r.pidlControlApi.submitPage().result},r.validateProperties=function(){var e;return(null==(e=r.pidlControlApi)?void 0:e.submitPage)?r.pidlControlApi.validateProperties().result:rv(!1)},r.moveToLastPage=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.moveToLastPage&&r.pidlControlApi.moveToLastPage().result},r.movePrevPage=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.movePrevPage&&r.pidlControlApi.movePrevPage().result},r.moveToFirstPage=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.moveToFirstPage&&r.pidlControlApi.moveToFirstPage().result},r.cancel=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.cancel&&r.pidlControlApi.cancel().result},r.getPidlExternalControlPropsMap=function(){return r.pidlExternalControlProps},r.getSelectedResource=function(){return r.pidlControlApi?r.pidlControlApi.getSelectedResource().result:null},r.getPidlPayload=function(){return r.pidlControlApi?r.pidlControlApi.returnUserInputData():null},r.postMessageToChildIFrames=function(e){return!!r.pidlControlApi&&!!r.pidlControlApi.postMessageToChildIFrames&&r.pidlControlApi.postMessageToChildIFrames(e).result},r.getInstanceControls=function(){return r.pidlControlApi&&r.pidlControlApi.getInstanceControls?r.pidlControlApi.getInstanceControls().result:{}},r.updateChildIFramesHeight=function(e){r.iFrameInnerRefs&&r.iFrameInnerRefs.forEach(function(t,n,r){t&&t.current&&t.current.updateHeight&&t.current.updateHeight(e)})},r.setInstanceDisplayPage=function(){var e=r.getInstanceKey();e&&t.displayPagesByInstance.set(e,r.state.pageElement)},r.deleteInstanceDisplayPage=function(){var e=r.getInstanceKey();e&&t.displayPagesByInstance.delete(e)},r.getInstanceKey=function(){var e,t=r.props.pidlInstanceKey||(null==(e=r.props.displayOptions)?void 0:e.instanceName);return t&&(t=t.toLowerCase()),t},r.getDisplayPagesByInstance=function(){var e=new Map;if(t.displayPagesByInstance.size>0){for(var n=0,r=Array.from(t.displayPagesByInstance.entries());n<r.length;n++){var o=r[n],a=o[0],s=o[1];!(null==a?void 0:a.includes("_"))&&(null==s?void 0:s.children)&&e.set(a,s)}return Array.from(e.entries())}return[]},r.destroyInstance=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.destroyInstance&&r.pidlControlApi.destroyInstance().result},r.focusOnPageRefresh=function(e){r.state.disableFocusOnLoad||(e===S.pageRendered||e===S.pageRefreshed||e===_.secureFieldLoadWaitEnded?setTimeout(function(){var e,n,o,a,s;if(!t.firstErrorPropertyName){r.props.onPageRendered&&r.props.onPageRendered();var l=r.findFirstVisibleEnabledPropertyElement(null==(e=r.state.pageElement)?void 0:e.children);l&&l.isSecureProperty()?l.setFocus():!r.props.propertyElementRef&&(t.lastFocusedPropertyName||0===t.displayPagesByInstance.size)&&(null==(o=null==(n=t._propertyElementRef)?void 0:n.current)?void 0:o.focus)&&(null==(s=null==(a=t._propertyElementRef)?void 0:a.current)||s.focus())}},100):e===S.pageNavigated&&setTimeout(function(){var e,n,o;if(!t.firstErrorPropertyName){var a=null!=(e=r.props.propertyElementRef)?e:t._propertyElementRef;(null==(n=null==a?void 0:a.current)?void 0:n.focus)&&(null==(o=null==a?void 0:a.current)||o.focus())}},100))},r.busyBlockShowHide=function(e){r.setState({showBusyBlock:e})},r.toggleVisualCaptcha=function(e,t,n){r.onUpdateValue(e,t,n)},r.shouldRenderBusyBlock=function(){var e=r.state.showBusyBlock,t=r.props.busyBlockElement;return t&&e2.isValidElement(t)&&e},r.displayPidl=function(e,t){var n=r.state,o=n.eventHub,a=n.waitForSecureFields,s=n.showBusyBlock;r.alreadyWaiting=!1,a&&r.setState(oC(oC({},r.state),{waitForSecureFields:!1})),s&&r.busyBlockShowHide(!1),e.length=0,t.length=0,o.secureFieldLoadWaitEnded()},r.waitForSecureFieldsLoadCompletion=function(){var e=r.state,t=e.eventHub,n=e.viewEventHandler,o=(null==n?void 0:n.getSecurePropertyLoadedPromises())||[],a=(null==n?void 0:n.getSecurePropertyInitCompletedPromises())||[];r.alreadyWaiting=!0,Promise.all(o).then(function(){t.secureFieldsLoaded();var e=n.getClientSetting(eA.pidlSdkWaitTimeForSecureFieldsInit)||eI.pidlSdkWaitTimeForSecureFieldsInit;Promise.race([Promise.all(a),n.getTimeoutPromise(e)]).then(function(){n.clearTimeoutPromise(),r.displayPidl(o,a)}).catch(function(e){if(r.displayPidl(o,a),e instanceof Error&&"Timeout"===e.message){e.message="Timeout waiting for secure fields to resolve";var n=new nt.secureFieldInitCompletedTimeoutError(nn.secureFieldInitCompletedTimeout,e.toString());t.failure(n)}})}).catch(function(e){r.displayPidl(o,a)})},r.reset=function(){r.setState({properties:{},pageError:void 0,viewEventHandler:void 0,pageElement:void 0,pidlInstanceContexts:void 0},function(){return r.updateState({run:aM,args:[]})})},r.findFirstVisibleErroredProperty=function(e,t){for(var n=[],o=0;o<t.length;o++)n.push(t[o].propertyName);var a={};return r.propertiesVisitorProcessingAny(e,function(e,t){if(e&&(e.isProperty()||e.isSecureProperty())&&!e.disabled()&&!e.hidden()&&n.includes(e.getPropertyName()))return t.element=e,!0},a),a.element},r.findFirstVisibleEnabledPropertyElement=function(e){var t={};return r.propertiesVisitorProcessingAny(e,function(e,t){if(e&&(e.isIframe()||e.isSecureProperty()||e.isButton()||e.isPrefillControl()||e.isProperty())&&!e.disabled()&&!e.hidden())return!(n7(e)&&r.isRadioPossibleOptionsAllDisabled(e))&&(t.element=e,!0)},t),t.element},r.findHighlightedButton=function(e){var t={};return r.propertiesVisitorProcessingAny(e,function(e,t){if(e&&e.isButton()&&e.isHighlighted()&&!e.disabled()&&!e.hidden())return t.element=e,!0},t),t.element},r.isRadioPossibleOptionsAllDisabled=function(e){for(var t=rp.getKeys(e.possibleOptions),n=!0,r=0;r<t.length;r++)n=n&&e.possibleOptions[t[r]].isDisabled;return n},r.findPropertyElementByPropertyName=function(e,t,n){var o={};return r.propertiesVisitorProcessingDataProperty(e,function(e,o){if(e&&e.disabled&&!e.disabled()&&e.hidden&&!e.hidden()&&e.getPropertyName&&e.getPropertyName()===t&&(!n7(e)||n&&!rp.isEmptyString(nl.normalizeValueToDisplayDescriptionPossibleOptions(e,n))))return!(n7(e)&&r.isRadioPossibleOptionsAllDisabled(e))&&(o.element=e,!0)},o),o.element},r.setOpenDropdownId=function(e){r.setState({openDropdownId:e})},r.onUpdateValue=function(e,t,n){if(r.state.viewEventHandler){r.pendingPropertyValue(e,t);var o=function(){r.state.viewEventHandler.updateModelPropertyValue(e,t,n).then(function(){r.updatePropertyValues()})};n===Z.finished?setTimeout(o,1):o()}},r.updateButtonList=function(e,t,n){var r=e.possibleOptions;for(var o in r)o===t&&(n&&(r[o].isDisabled=n),r[o].displayContentContainer&&(r[o].displayContentContainer.tags={selected:"selected"}))},r.onUpdatePrefill=function(e,t){if(r.state.viewEventHandler){var n=function(){r.updateDisplayValue(e.displayId,t)};r.state.viewEventHandler.updatePrefillValue(e.pidlIdentity,t).then(n,n)}},r.updateState=function(e){if(e&&r.pendingUpdates.push(e),r.wrapper.current&&r.pendingUpdates.length>0){var t=r.pendingUpdates[0];r.pendingUpdates.splice(0,1),r.wrapper.current.update(t,function(){return r.updateState()})}},r.getTelemetryLogger=function(){var e,t=r.props,n=t.callbacksIn,o=t.elementFactory,a=t.telemetryOptions,s=null==(e=null==o?void 0:o.isReactNative)?void 0:e.call(o),l=null==n?void 0:n.telemetryLogger,c=!!(null==o?void 0:o.telemetryLogger);return s&&c?r.props.elementFactory.telemetryLogger(l,a):new om(new of,l)},r.initPidl=function(){var e,n=r.props,o=n.userContext,a=n.returnOptions,s=n.displayOptions,l=n.telemetryOptions,c=n.callbacksIn,u=n.transformersIn,d=n.onShowHideBusy,p=n.pidlsdkMock,f=n.pidlPayload,h=n.localDataSourceProviders,m=oC({},u),g={initialize:function(){},render:function(e){if(!e.pageElement||!e.pageElement.children||0===e.pageElement.children.length)return{succeeded:!1};var t={},n={},o={},a=r.transformPage(e.pageElement,e.displaySettings);for(var s in aF(a.children,t,n),n)n.hasOwnProperty(s)&&(o[s]=e.viewEventHandler.getModelPropertyValue(s)||"");return e.viewEventHandler.captchaHyperlinkClickHandler=r.toggleVisualCaptcha,e.updateReason===et.modelCreated&&(r.pageHasSecureFields=e.viewEventHandler.hasSecureFields(e.pageElement),r.pageHasSecureFields&&r.isFirstLoad&&(r.setState({waitForSecureFields:!0}),r.isFirstLoad=!1)),r.setState({elements:t,properties:n,pageElement:a,viewEventHandler:e.viewEventHandler,displaySettings:e.displaySettings,eventHub:e.eventHub,pidlInstanceContexts:e.pidlInstanceContexts}),{succeeded:!0}},reset:function(){},showHideBusy:function(e){return d&&d(e)},markAsFilled:function(e){},markAsUnfilled:function(e){},checkAndMarkAsFilled:function(e,t){},checkAndMarkAsUnfilled:function(e,t){},setFocusOnFirstError:function(){setTimeout(function(){var e,n,o,a;t.firstErrorPropertyName&&r.state.isFirstErrorInstance&&(t.firstVisibleErrorProperty&&t.firstVisibleErrorProperty.isSecureProperty()&&t.firstVisibleErrorProperty.getPropertyName()===t.firstErrorPropertyName?t.firstVisibleErrorProperty.setFocus():(null==(n=null==(e=t._propertyElementErrorRef)?void 0:e.current)?void 0:n.focus)&&(null==(a=null==(o=t._propertyElementErrorRef)?void 0:o.current)||a.focus()))},100)},showPropertyError:function(e){return r.showPropertyError(e),!0},showGroupError:function(e){return r.showGroupError(e),!0},showPageError:function(e){return r.setState({pageError:e}),!1},hidePropertyError:function(e){r.hidePropertyError(e)},hidePageError:function(){r.setState({pageError:void 0})},postMessageToChildIFrames:function(e){var t=!0;return r.iFrameInnerRefs&&r.iFrameInnerRefs.forEach(function(n,r,o){if(n&&n.current&&n.current.postMessage){var a=n.current.postMessage(e);t=t&&a}else t=!1}),t},getPageElementValues:function(){return r.wrapper.current?r.wrapper.current.getPropertyState().values:{}},setDisabledByDisplayId:function(e,t,n){},getVisibleProperties:function(){if(r.wrapper.current&&r.state.pageElement){var e=[];return r.wrapper.current.getPropertyNames([r.state.pageElement],e),e}return[]},updatePrefillControls:function(){r.updatePropertyValues()},updatePropertyValue:function(e,t,n,o){var a=r.state.properties[e];a&&r.updateDisplayValue(a.displayName,n)},updateButtonList:function(e,t,n){r.updateButtonList(e,t,n)},setAccessibilityText:function(e,t){r.updateAccessibilityText(e.getPropertyName(),t)},hideModalDialog:function(){var e,t;null==(t=null==(e=r._modalRef)?void 0:e.current)||t.toggleDisplay(!1)},getViewType:function(){return"reactview"},restoreCaretPosition:function(){},updateDisplayValue:function(e,t,n,r){},getPidlInstanceControls:function(){var e={};return Object.keys(r.pidlInstanceRefs).forEach(function(t){var n=r.pidlInstanceRefs[t];if(n&&n.current){var o={moveNextPage:function(){if(n.current&&n.current.moveNextPage)return n.current.moveNextPage()},submitPage:function(){if(n.current&&n.current.submitPage)return n.current.submitPage()},validateProperties:function(){if(n.current&&n.current.validateProperties)return n.current.validateProperties()},movePrevPage:function(){if(n.current&&n.current.movePrevPage)return n.current.movePrevPage()},moveToFirstPage:function(){if(n.current&&n.current.moveToFirstPage)return n.current.moveToFirstPage()},cancel:function(){if(n.current&&n.current.cancel)return n.current.cancel()},getSelectedResource:function(){if(n.current&&n.current.getSelectedResource)return n.current.getSelectedResource()},getPidlPayload:function(){if(n.current&&n.current.getPidlPayload)return n.current.getPidlPayload()},postMessageToChildIFrames:function(e){if(n.current&&n.current.postMessageToChildIFrames)return n.current.postMessageToChildIFrames(e)}};e[t]=o}}),e}},v=oC(oC({},c),{telemetryLogger:r.getTelemetryLogger(),view:c&&c.view?c.view:g});return e=p?p.initMock(o,a,r.eventHandler,s,l,v,m):new od(o,a,r.eventHandler,oC(oC({},s),{containerId:s.containerId||""}),v,l,r.privateEventHandler,r.oneDSService,m,f,h),r.props.operation(e),e},r.moreThanOneBusyBlockPropExists())throw Error(nn.onlyOneBusyBlockPropAllowed.debugMessage);return r.eventHandler=function(e,n){var o,a,s,l,c,u,d,p,f,h,m,g,v,y;if(((null==(o=r.props.elementFactory)?void 0:o.createNavigationWrapper)&&(null==n?void 0:n.currentPageIndex)||(null==n?void 0:n.pageId))&&(n.currentPageIndex!==r.state.currentPageIndex||n.pageId!==r.state.currentPageId)&&r.setState({currentPageIndex:null==n?void 0:n.currentPageIndex,currentPageId:null==n?void 0:n.pageId}),(null==(a=r.props.elementFactory)?void 0:a.createNavigationWrapper)&&e===S.pageRefreshed&&(null==(l=null==(s=r._navigationWrapperRef.current)?void 0:s.forceFocusRefRefresh)||l.call(s)),e===S.error&&r.state.pageElement&&((null==(c=null==n?void 0:n.error)?void 0:c.code)===nn.formSubmissionFailedBadUserInput.code||(null==(u=null==n?void 0:n.error)?void 0:u.code)===nn.formValidationFailed.code)&&(null==(d=null==n?void 0:n.error)?void 0:d.errors)&&(null==(p=null==n?void 0:n.error)?void 0:p.errors.length)>0&&((null==(f=null==n?void 0:n.error)?void 0:f.errors[0].propertyName)||(null==(h=null==n?void 0:n.error)?void 0:h.errors[0].groupDisplayId))){for(var b=void 0,x=void 0,C=r.getDisplayPagesByInstance(),k=null==(v=null==(g=null==(m=r.props.displayOptions)?void 0:m.instanceName)?void 0:g.toLowerCase)?void 0:v.call(g),w=0,_=C;w<_.length;w++){var E=_[w],P=E[0],I=E[1];if((b=r.findPropertyElementByPropertyName(null==I?void 0:I.children,t.firstErrorPropertyName))||(b=r.findFirstVisibleErroredProperty(null==I?void 0:I.children,n.error.errors))){x=P;break}}b||(x=(b=r.findFirstVisibleErroredProperty(r.state.pageElement.children,n.error.errors))?k:-1),t.firstErrorPropertyName=(null==(y=null==b?void 0:b.getPropertyName)?void 0:y.call(b))||n.error.errors[0].propertyName,t.firstVisibleErrorProperty=b,r.setState({isFirstErrorInstance:x===k})}return e===S.propertySelected&&(t.lastFocusedPropertyName=null==n?void 0:n.propertyName,r.setState({disableFocusOnLoad:!1})),e===S.selectionChanged&&(t.lastFocusedPropertyName=null==n?void 0:n.propertyName,t.lastFocusedPropertyValue=null==n?void 0:n.propertyValue,r.setState({disableFocusOnLoad:!1})),r.focusOnPageRefresh(e),r.props.onEvent&&r.props.onEvent(e,n)},r.privateEventHandler=function(e,n){e===_.propertyUnselected&&(t.lastFocusedPropertyName=void 0,t.firstErrorPropertyName=void 0,t.firstVisibleErrorProperty=void 0,r.setState({isFirstErrorInstance:!1})),e!==_.success||n[E.preventUnmountOnFinish]||r.reset(),r.focusOnPageRefresh(e)},r.props&&r.props.elementFactory&&r.props.elementFactory.getOneDSService&&(r.oneDSService=r.props.elementFactory.getOneDSService()),r.wrapper=e2.createRef(),r.pendingUpdates=[],r.iFrameInnerRefs=[],r.pidlInstanceRefs={},r.state={elements:{},properties:{},pageError:void 0,viewEventHandler:void 0,displaySettings:void 0,eventHub:void 0,showBusyBlock:!1,currentPageIndex:null,currentPageId:null,disableFocusOnLoad:r.props.displayOptions.disableFocusOnLoad,waitForSecureFields:!1,openDropdownId:"",isFirstErrorInstance:!1},r.setInstanceDisplayPage(),r}return ox(t,e),t.prototype.componentDidMount=function(){var e=this.props.env;this.isFirstLoad=!0,r9.set(e||oN),this.pidlControlApi=this.pidlControlApi||this.initPidl()},t.prototype.isAddResourceProps=function(e){return e&&e.pidlDocInfo},t.prototype.componentDidUpdate=function(e,t){this.pidlControlApi=this.pidlControlApi||this.initPidl(),this.isAddResourceProps(this.props)&&e&&e.pidlDocInfo&&this.props.pidlDocInfo&&JSON.stringify(e.pidlDocInfo)!==JSON.stringify(this.props.pidlDocInfo)&&(this.pidlControlApi=this.initPidl()),this.state.pageElement!==(null==t?void 0:t.pageElement)&&this.setInstanceDisplayPage()},t.prototype.componentWillUnmount=function(){try{this.state.viewEventHandler.clearTimeoutPromise(),this.destroyInstance(),this.deleteInstanceDisplayPage()}catch(e){}},t.prototype.wrapGroupedElements=function(e,t){var n=this.state.pageError;return(null==e?void 0:e.isReactNative)&&e.isReactNative()?e2.createElement(e2.Fragment,null,t):e2.createElement("div",{className:e4.default("pidl-react-page-error",{"d-none":!n||!n.message})},t)},t.prototype.render=function(){var e,n,r,o=this.props,a=o.displayOptions,s=o.children,l=o.onPropertyChange,c=o.elementFactory,u=o.busyBlockElement,d=o.propertyElementRef,p=o.theme,f=o.env,h=o.returnOptions,m=this.state,g=m.pageElement,v=m.viewEventHandler,y=m.pageError,b=m.displaySettings,x=m.eventHub,C=m.pidlInstanceContexts,k=a;u&&e2.isValidElement(u)&&(k.busyBlockShowHideHandler=this.busyBlockShowHide);var w=s;if(this.pidlControlApi&&g&&v){t.previousFocusTarget&&(null==(n=(e=t.previousFocusTarget).getPropertyName)?void 0:n.call(e))!==t.firstErrorPropertyName&&(t.previousFocusTarget.propertyElementRef=void 0),this.attachFocusRef(g,d,t.firstErrorPropertyName,t.lastFocusedPropertyName,t.lastFocusedPropertyValue),this.attachModalRef(g);var S=g.children.map(aE(v,this.onUpdateValue,this.onUpdatePrefill,this.iFrameInnerRefs,this.pidlInstanceRefs,this.setOpenDropdownId,this.state.openDropdownId)),_=new Map,E=g.keyPidlActions;Object.keys(E||{}).forEach(function(e){var t=E[e];_.set(e,function(){v.invokePidlAction(t)})});var P=this.state,I=P.eventHub,T=P.waitForSecureFields,D=(null==c?void 0:c.createNavigationWrapper)?c.createNavigationWrapper(S,this.state.currentPageIndex,this.state.currentPageId,this.cancel,this.movePrevPage,this.moveToLastPage,this.moveToFirstPage,this.moveNextPage,this._navigationWrapperRef,_):this.pageHasSecureFields?e2.createElement("div",{style:{display:T?"none":"block"}},S):e2.createElement(e2.Fragment,null,S);w=e2.createElement(aP,{ref:this.wrapper,getModelPropertyValue:v.getModelPropertyValue,onPropertyChange:l,pageElement:g,elementFactory:c,displayOptions:k,displaySettings:b,eventHub:I,theme:p,userContext:this.props.userContext,pidlInstanceContexts:C,env:f,returnOptions:h},D)}var A=function(){return(null==c?void 0:c.createBusyBlockWrapper)?c.createBusyBlockWrapper(e2.cloneElement(u)):e2.cloneElement(u)},R=y?e2.createElement(iT,{message:y.message}):null,N=this.state,B=N.waitForSecureFields,M=N.showBusyBlock,F=(null==(r=null==v?void 0:v.getSecurePropertyLoadedPromises())?void 0:r.length)>0;return this.pageHasSecureFields&&B&&F&&(M||this.busyBlockShowHide(!0),this.alreadyWaiting||(x.secureFieldLoadWaitStarted(),this.waitForSecureFieldsLoadCompletion())),e2.createElement(e2.Fragment,null,e2.createElement(ix.Provider,{value:{elementFactory:c,displayOptions:k,displaySettings:b,theme:p,userContext:this.props.userContext,pidlInstanceContexts:C,env:f,returnOptions:h}},e2.createElement(e2.Fragment,null,this.wrapGroupedElements(c,R))),this.shouldRenderBusyBlock()&&A(),w)},t.prototype.attachFocusRef=function(e,n,r,o,a){var s,l,c,u=e.children;if(r){if(!this.state.isFirstErrorInstance)return;if(c=this.findPropertyElementByPropertyName(u,r))if(null==(s=c.propertyElementRef)?void 0:s.current)t._propertyElementErrorRef=c.propertyElementRef;else{var d=e2.createRef();c.propertyElementRef=d,t._propertyElementErrorRef=d}}else{if(o){for(var p=void 0,f=this.getDisplayPagesByInstance(),h=0,m=f;h<m.length;h++){var g=m[h],v=g[0],y=g[1];if(c=this.findPropertyElementByPropertyName(null==y?void 0:y.children,o,a))break;p||(p=this.findFirstVisibleEnabledPropertyElement(null==y?void 0:y.children))}(c=null!=c?c:p)||(c=this.findPropertyElementByPropertyName(u,o,a)),c||(c=this.findFirstVisibleEnabledPropertyElement(u))}else{for(var f=this.getDisplayPagesByInstance(),b=0,x=f;b<x.length;b++){var C=x[b],v=C[0],k=C[1];if(c=this.findFirstVisibleEnabledPropertyElement(null==k?void 0:k.children))break}c||(c=this.findFirstVisibleEnabledPropertyElement(u))}var w=this.findHighlightedButton(u);if(c&&(c.isButton()&&w&&(c=w),!c.propertyElementRef))if(n)c.propertyElementRef=n;else if((null==(l=t._propertyElementRef)?void 0:l.current)&&t.previousFocusTarget)c.propertyElementRef=t._propertyElementRef;else{var d=e2.createRef();c.propertyElementRef=d,t._propertyElementRef=d}}t.previousFocusTarget=null!=c?c:t.previousFocusTarget},t.prototype.attachModalRef=function(e){var t;e.children.forEach(function(e){n3(e)&&(t=e)}),t&&(t.groupElementRef=this._modalRef)},t.prototype.propertiesVisitorProcessingDataProperty=function(e,t,n){if(e)if(!Array.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,n);else for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingDataProperty(e[r],t,n);if(o)return o}},t.prototype.propertyVisitorProcessingDataProperty=function(e,n,r){if(e){if(e.isProperty()||e.isSecureProperty()||e.isButton()){var o=n(e,r);if(o)return o}if(n7(e)){var a=e;if(a&&a.possibleOptions)for(var s=rp.getKeys(a.possibleOptions),l=0,c=s;l<c.length;l++){var u=c[l],d=a.possibleOptions[u];if(d&&!d.isDisabled&&d.displayContentContainer){var o=this.propertyVisitorProcessingDataProperty(d.displayContentContainer,n,r);if(o)return o}}}if(nQ(e)&&e.pidlInstance){if(t.displayPagesByInstance.has(e.pidlInstance)){var p=t.displayPagesByInstance.get(e.pidlInstance);if(p&&p.children){var o=this.propertiesVisitorProcessingDataProperty(p.children,n,r);if(o)return o}}return!1}if(e.children&&e.children.length>0&&(!r||!r.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,n,r);r&&delete r.stopDescendantsProcessing}},t.prototype.propertiesVisitorProcessingAny=function(e,t,n){if(e)if(!Array.isArray(e))return this.propertyVisitorProcessingAny(e,t,n);else for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingAny(e[r],t,n);if(o)return o}},t.prototype.propertyVisitorProcessingAny=function(e,n,r){if(e){var o=n(e,r);if(o)return o;if(n7(e)){var a=e;if(a&&a.possibleOptions)for(var s=rp.getKeys(a.possibleOptions),l=0,c=s;l<c.length;l++){var u=c[l],d=a.possibleOptions[u];if(d&&!d.isDisabled&&d.displayContentContainer){var p=this.propertyVisitorProcessingAny(d.displayContentContainer,n,r);if(p)return p}}}if(nQ(e)&&e.pidlInstance){if(t.displayPagesByInstance.has(e.pidlInstance)){var f=t.displayPagesByInstance.get(e.pidlInstance);if(f&&f.children){var h=this.propertiesVisitorProcessingAny(f.children,n,r);if(h)return h}}return!1}if(e.children&&e.children.length>0&&(!r||!r.stopDescendantsProcessing))return this.propertiesVisitorProcessingAny(e.children,n,r);r&&delete r.stopDescendantsProcessing}},t.prototype.pendingPropertyValue=function(e,t){this.updateState({run:aN,args:[e,t]})},t.prototype.updatePropertyValues=function(){this.updateState({run:aA,args:[]})},t.prototype.updateDisplayValue=function(e,t){this.updateState({run:aB,args:[e,t]})},t.prototype.updateAccessibilityText=function(e,t){this.updateState({run:aR,args:[e,t]})},t.prototype.showGroupError=function(e){this.updateState({run:aT,args:[e]})},t.prototype.showPropertyError=function(e){this.updateState({run:aI,args:[e]})},t.prototype.hidePropertyError=function(e){this.updateState({run:aD,args:[e]})},t.prototype.splitChildren=function(e,t){var n=oP([],e.children,!0);if(!n||!n.length)return n;var r=n[n.length-1];if(!n3(r)||!r.isSubmitGroup)return n;(null==r?void 0:r.isSubmitGroup)&&(this.setExternalControlNames(r),r.isHidden=!t.submitButtonBlock.show);var o=r.operationType,a=r.pidlIdentity,s=r.isLinkedPidl;n.pop();var l={displayId:f.pageBlock,displayType:eW.group,displayName:null,styleHints:e.displayDescription.styleHints},c=new np(g.group,null,l,o,a,s);return c.children=n,r.id=t.submitButtonBlock.id,[c,r]},t.prototype.transformPage=function(e,t){return oC(oC({},e),{children:this.splitChildren(e,t)})},t.prototype.setExternalControlNames=function(e){var t=new Map,n=k.gohome,r=k.submit,o=k.next,a=k.prev,s=e.members;s&&s.forEach(function(e){var s;e.displayContent&&(null==(s=e.pidlAction)?void 0:s.type)&&(e.pidlAction.type==n||e.pidlAction.type==r||e.pidlAction.type==o||e.pidlAction.type==a)&&(t[e.pidlAction.type]={type:e.pidlAction.type,displayContent:e.displayContent})}),this.pidlExternalControlProps=t},t.defaultProps={env:oN},t._propertyElementRef=e2.createRef(),t._propertyElementErrorRef=e2.createRef(),t.displayPagesByInstance=new Map,t}(e2.Component),aL=function(e){function t(t,n){var r=e.call(this,t)||this;r.moveNextPage=function(){return!!r.pidlRef.current&&!!r.pidlRef.current.moveNextPage&&r.pidlRef.current.moveNextPage()},r.submitPage=function(){return!!r.pidlRef.current&&!!r.pidlRef.current.submitPage&&r.pidlRef.current.submitPage()},r.validateProperties=function(){return r.pidlRef.current&&r.pidlRef.current.validateProperties?r.pidlRef.current.validateProperties():rv(!1)},r.movePrevPage=function(){return!!r.pidlRef.current&&!!r.pidlRef.current.movePrevPage&&r.pidlRef.current.movePrevPage()},r.moveToFirstPage=function(){return!!r.pidlRef.current&&!!r.pidlRef.current.moveToFirstPage&&r.pidlRef.current.moveToFirstPage()},r.cancel=function(){return!!r.pidlRef.current&&!!r.pidlRef.current.cancel&&r.pidlRef.current.cancel()},r.getPidlExternalControlPropsMap=function(){return r.pidlRef.current&&r.pidlRef.current.getPidlExternalControlPropsMap?r.pidlRef.current.getPidlExternalControlPropsMap():null},r.getSelectedResource=function(){if(r.pidlRef.current&&r.pidlRef.current.getSelectedResource)return r.pidlRef.current.getSelectedResource()},r.getPidlPayload=function(){return r.pidlRef.current&&r.pidlRef.current.getPidlPayload?r.pidlRef.current.getPidlPayload():rv({payload:null,operationType:null})},r.postMessageToChildIFrames=function(e){return!!r.pidlRef.current&&!!r.pidlRef.current.postMessageToChildIFrames&&r.pidlRef.current.postMessageToChildIFrames(e)},r.getInstanceControls=function(){return r.pidlRef.current&&r.pidlRef.current.getInstanceControls?r.pidlRef.current.getInstanceControls():{}},r.implementationMissing=function(e,t,n){if(!r.pidlRef.current)return null;var o,a,s,l=null==(s=null==(a=null==(o=r.pidlRef)?void 0:o.current)?void 0:a.state)?void 0:s.eventHub;null==l||l.implementationMissing(e,t,n)},r.updateChildIFramesHeight=function(e){r.pidlRef.current&&r.pidlRef.current.updateChildIFramesHeight&&r.pidlRef.current.updateChildIFramesHeight(e)},r.pidlRef=e2.createRef(),r.pidlOperation=n;try{t.telemetryOptions?r.telemetryOptions=Object.assign({},t.telemetryOptions):r.telemetryOptions={},r.telemetryOptions.contextData||(r.telemetryOptions.contextData={}),r.telemetryOptions.contextData.partnerName||(r.telemetryOptions.contextData.partnerName=t.partner)}catch(e){r.telemetryOptions=t.telemetryOptions}return r}return ox(t,e),t.prototype.render=function(){return e2.createElement(aO,oC({},this.props,{ref:this.pidlRef,operation:this.pidlOperation,telemetryOptions:this.telemetryOptions}),this.props.children)},t}(e2.Component),aH=function(e){function t(t){var n=e.call(this,t,function(e){return e.addAddress(n.props.pidlDocInfo,n.props.prefillData,n.props.options)})||this;return n}return ox(t,e),t}(aL),az=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(e,n,r,o,a,s,l){var c={operation:oB.Operation,type:s||oB.DefaultAddressType,scenario:e,country:n,language:r,partner:o,setAsDefaultBilling:e===t.AddressScenario.profile||l};return a&&(c=oC(oC({},c),a)),c},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tS,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oB.ViewTermsId)&&a(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.AddAddress,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.scenario,c=e.addressType,u=e.partner,d=e.elementFactory,p=e.onSuccess,f=e.onFailure,h=e.onCancel,m=e.showSubmitBlock,g=void 0===m||m,v=e.busyBlockShowHideHandler,y=e.prefillData,b=e.pidlsdkMock,x=e.telemetryLogger,C=e.telemetryOptions,k=e.propertyElementRef,w=e.onPageRendered,S=e.setAsDefaultBilling,_=e.headers,E=e.callbacksIn,P=e.displayOptions,I=this.state.styleProvider,T=this.compileParameters(l,a,s,u,r,c,S),D=this.compileReturnOptions(p,f,h);return e5.default.createElement(ik.Provider,{value:{styleProvider:I}},e5.default.createElement(aH,{busyBlockElement:o,displayOptions:oC(oC({},P),{containerId:oB.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g}),pidlDocInfo:{resourceType:oB.ResourceType,parameters:T},env:n,partner:u,returnOptions:D,onEvent:this.onEvent,userContext:{authToken:t,userId:oB.UserId,additionalHeaders:_},elementFactory:d,prefillData:y,pidlsdkMock:b,callbacksIn:oC(oC({},E),{telemetryLogger:x}),telemetryOptions:C,propertyElementRef:k,onPageRendered:w,ref:this.baseComponentRef}))},n}(e5.default.Component),aV=function(e){function t(t){var n=e.call(this,t,function(e){return e.addPaymentInstrument(n.props.pidlDocInfo,n.props.prefillData,n.props.options)})||this;return n}return ox(t,e),t}(aL),aU=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(e,t,n,r,o,a,s,l,c){var u={operation:oq.Operation,country:e,language:t,partner:n,completePrerequisites:s,type:a,family:o,sessionId:l,scenario:c};return r&&(u=oC(oC({},u),r)),u},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n,o,a){return{urls:{success:e,failure:t},callbacks:{success:n,failure:r.FailureHandler,gohome:a}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,a=oC({},o);return t&&(a.telemetryLogger=t),(null==n?void 0:n.encryptionHandler)&&(a.encryptionHandler=n.encryptionHandler()),a},r.compileOptions=function(e){return e?{riskData:{greenId:e}}:null},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tS,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oq.ViewTermsId)&&a(t),o&&o(e,t)},r.getResourceType=function(){return null!=r.props.sessionId?"AddPiQrCode":oq.ResourceType},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.AddPaymentInstrument,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.completePrerequisites,s=e.scenario,l=e.sessionId,c=e.country,u=e.language,d=e.partner,p=e.paymentFamily,f=e.paymentType,h=e.elementFactory,m=e.onSuccess,g=e.onFailure,v=e.onCancel,y=e.showSubmitBlock,b=void 0===y||y,x=e.busyBlockShowHideHandler,C=e.prefillData,k=e.pidlsdkMock,w=(e.telemetryLogger,e.telemetryOptions),S=e.propertyElementRef,_=e.onPageRendered,E=e.headers,P=e.greenId,I=e.redirectionSuccessUrl,T=e.redirectionFailureUrl,D=e.serviceOverrides,A=e.useWebView2,R=e.displayOptions,N=this.state.styleProvider,B=this.compileParameters(c,u,d,r,p,f,a,l,s),M=this.compileReturnOptions(I,T,m,g,v),F=this.compileCallbacks(),O=this.compileOptions(P);return e5.default.createElement(ik.Provider,{value:{styleProvider:N}},e5.default.createElement(aV,{busyBlockElement:o,displayOptions:oC(oC({},R),{containerId:oq.ContainerId,busyBlockShowHideHandler:x,showSubmitBlock:b,useWebView2:A}),pidlDocInfo:{resourceType:this.getResourceType(),parameters:B},env:n,returnOptions:M,onEvent:this.onEvent,userContext:{authToken:t,userId:oq.UserId,additionalHeaders:E,serviceOverrides:D},elementFactory:h,prefillData:C,pidlsdkMock:k,callbacksIn:F,partner:d,telemetryOptions:w,propertyElementRef:S,onPageRendered:_,ref:this.baseComponentRef,options:O}))},n}(e5.default.Component),aj=function(e){function t(t){var n=this,r=oC(oC({},t.pidlDocInfo),{resourceType:"PaymentInstrument"});return n=e.call(this,t,function(e){return e.applyResource(r,n.props.prefillData,n.props.options)})||this}return ox(t,e),t}(aL),aW=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.parameters,s=e.paymentFamily,l=e.paymentType,c=e.scenario,u=e.prefillData,d=e.provider,p=e.channel,f=e.referrerId,h=e.sessionId,m=e.ocid,g={operation:oY.Operation,country:t,language:n,partner:o,scenario:c,type:l,family:s,prefillData:u,provider:d,channel:p,referrerId:f,sessionId:h,ocid:m};return a&&(g=oC(oC({},g),a)),g},r.FailureHandler=function(e){var t,n,o,a=null==(o=null==(n=null==(t=null==oy?void 0:ov)?void 0:t.errorMessages)?void 0:n.pollingTimedOut)?void 0:o.code;a&&e.code===a.toString()?r.props.onTimeOut(e):r.props.onFailure(e)},r.compileReturnOptions=function(e,t,n,o){return{urls:o,callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,a=oC({},o);return t&&(a.telemetryLogger=t),(null==n?void 0:n.encryptionHandler)&&(a.encryptionHandler=n.encryptionHandler()),a},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.onNavigate;a&&e===S.navigate&&a(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.ApplyPaymentInstrument,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,u=e.showSubmitBlock,d=void 0===u||u,p=e.busyBlockShowHideHandler,f=e.pidlsdkMock,h=e.prefillData,m=e.telemetryOptions,g=e.propertyElementRef,v=(e.onEvent,e.onPageRendered),y=e.headers,b=e.useWebView2,x=e.displayOptions,C=e.partner,k=this.state.styleProvider,w=this.compileParameters(),S=this.compileReturnOptions(a,s,l,c),_=this.compileCallbacks();return e5.default.createElement(ik.Provider,{value:{styleProvider:k}},e5.default.createElement(aj,{busyBlockElement:r,displayOptions:oC(oC({},x),{containerId:oY.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:d,useWebView2:b}),pidlDocInfo:{resourceType:oY.ResourceType,parameters:w},env:n,returnOptions:S,onEvent:this.onEvent,userContext:{authToken:t,userId:oY.UserId,additionalHeaders:y},elementFactory:o,prefillData:h,pidlsdkMock:f,callbacksIn:_,partner:C,telemetryOptions:m,propertyElementRef:g,onPageRendered:v,ref:this.baseComponentRef}))},n}(e5.default.Component),aq=function(e){function t(t){var n=e.call(this,t,function(e){return e.addResource(n.props.pidlDocInfo,n.props.prefillData,n.props.options)})||this;return n}return ox(t,e),t}(aL),aG=function(e){function t(t){var n=e.call(this,t,function(e){return e.applyResource(n.props.pidlDocInfo,n.props.prefillData,n.props.options)})||this;return n}return ox(t,e),t}(aL),aK=function(e){function t(t){var n=e.call(this,t,function(e){return e.handlePurchasePendingState(n.props.parameters)})||this;return n}return ox(t,e),t}(aL),aX=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock,o=void 0===n||n,a=e.useWebView2,s=e.displayOptions;return oC(oC({},s),{containerId:oL.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:o,useWebView2:a})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.piid,s=e.orderId,l=e.sessionId;return{piResourceInfo:{resourceType:oL.ResourceType,parameters:{market:t,language:n,partner:o,sessionId:l,orderId:s},id:a},sessionId:l,orderId:s,options:{}}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=e.onSuccess,n=e.onCancel,o=e.redirectReturnUrls,a=oC({},o),s=a.success,l=a.failure,c=a.gohome;return{callbacks:{success:t,failure:r.FailureHandler,gohome:n},urls:{success:s,failure:l,gohome:c}}},r.compileCallbacksIn=function(){return oC(oC({},r.props.callbacksIn),{telemetryLogger:r.props.telemetryLogger})},r.compileUserContext=function(){return{authToken:r.props.authToken,userId:oL.UserId,additionalHeaders:r.props.headers}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.ConfirmPayment,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.env,n=e.pidlsdkMock,r=e.propertyElementRef,o=e.telemetryOptions,a=e.onEvent,s=e.onPageRendered,l=e.elementFactory,c=e.busyBlockElement,u=e.partner,d=this.state.styleProvider,p=this.compileDisplayOptions(),f=this.compileParameters(),h=this.compileReturnOptions(),m=this.compileCallbacksIn(),g=this.compileUserContext();return e5.default.createElement(ik.Provider,{value:{styleProvider:d}},e5.default.createElement(aK,{busyBlockElement:c,displayOptions:p,parameters:f,env:t,returnOptions:h,userContext:g,onEvent:a,elementFactory:l,pidlsdkMock:n,callbacksIn:m,telemetryOptions:o,propertyElementRef:r,onPageRendered:s,partner:u,ref:this.baseComponentRef}))},n}(e5.default.Component),aY=function(e){function t(t){var n=e.call(this,t,function(e){return e.createPaymentSession(n.props.paymentSessionOrData)})||this;return n}return ox(t,e),t}(aL),a$=function(e){function t(t){var n=e.call(this,t,function(e){return e.updateResource(n.props.resourceInfo,null,n.props.pidlDocInfo)})||this;return n}return ox(t,e),t}(aL),aQ=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(e,t,n,r,o,a){var s=oC({operation:oF.Operation,type:oF.AddressType,scenario:e},{country:t,language:n,partner:r,addressId:a});return o&&(s=oC(oC({},s),o)),s},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tS,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oB.ViewTermsId)&&a(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.AddAddress,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.addressId,r=e.env,o=e.parameters,a=e.busyBlockElement,s=e.scenario,l=e.country,c=e.language,u=e.partner,d=e.elementFactory,p=e.onSuccess,f=e.onFailure,h=e.onCancel,m=e.showSubmitBlock,g=void 0===m||m,v=e.busyBlockShowHideHandler,y=e.pidlsdkMock,b=e.telemetryLogger,x=e.propertyElementRef,C=e.onPageRendered,k=e.headers,w=e.displayOptions,S=this.state.styleProvider,_=this.compileParameters(s,l,c,u,o,n),E=this.compileReturnOptions(p,f,h);return e5.default.createElement(ik.Provider,{value:{styleProvider:S}},e5.default.createElement(a$,{busyBlockElement:a,displayOptions:oC(oC({},w),{containerId:oF.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g}),resourceInfo:{id:n,resourceType:oF.ResourceType,parameters:{}},pidlDocInfo:{resourceType:oF.ResourceType,parameters:_},env:r,partner:u,returnOptions:E,onEvent:this.onEvent,userContext:{authToken:t,userId:oF.UserId,additionalHeaders:k},elementFactory:d,pidlsdkMock:y,callbacksIn:{telemetryLogger:b},propertyElementRef:x,onPageRendered:C,ref:this.baseComponentRef}))},n}(e5.default.Component),aJ=function(e){function t(t){var n=e.call(this,t,function(e){return e.updateResource(n.props.resourceInfo,null,n.props.pidlDocInfo)})||this;return n}return ox(t,e),t}(aL),aZ=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tS,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oK.ViewTermsId)&&a(t),o&&o(e,t)},r.compileParameters=function(e,t,n,r,o,a){var s={country:e,language:t,partner:o,type:n,family:r};return a&&(s=oC(oC({},s),a)),s},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:r.FailureHandler,gohome:t}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.EditPaymentInstrument,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.paymentInstrumentId,r=e.paymentType,o=e.paymentFamily,a=e.env,s=e.parameters,l=e.busyBlockElement,c=e.country,u=e.language,d=e.partner,p=e.elementFactory,f=e.onSuccess,h=e.onCancel,m=e.showSubmitBlock,g=void 0===m||m,v=e.busyBlockShowHideHandler,y=e.pidlsdkMock,b=e.telemetryLogger,x=e.propertyElementRef,C=e.onPageRendered,k=e.headers,w=e.callbacksIn,S=e.displayOptions,_=this.state.styleProvider,E=this.compileParameters(c,u,r,o,d,s),P=this.compileReturnOptions(f,h);return e5.default.createElement(ik.Provider,{value:{styleProvider:_}},e5.default.createElement(aJ,{busyBlockElement:l,env:a,returnOptions:P,onEvent:this.onEvent,userContext:{authToken:t,userId:oK.UserId,additionalHeaders:k},elementFactory:p,pidlsdkMock:y,callbacksIn:oC(oC({},w),{telemetryLogger:b}),propertyElementRef:x,onPageRendered:C,displayOptions:oC(oC({},S),{containerId:oK.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g}),partner:d,resourceInfo:{id:n,resourceType:oK.ResourceType,parameters:{partner:d}},pidlDocInfo:{resourceType:oK.ResourceType,parameters:E},ref:this.baseComponentRef}))},n}(e5.default.Component),a0=function(e){function t(t){var n=e.call(this,t,function(e){return e.fundStoredValue(n.props.fundStoredValueParams)})||this;return n}return ox(t,e),t}(aL),a1=function(e){function t(t){var n=e.call(this,t,function(e){return e.handlePaymentChallenge(n.props.paymentSessionOrData,n.props.containerRef)})||this;return n}return ox(t,e),t}(aL),a2=function(e){function t(t){var n=e.call(this,t,function(e){return e.expressCheckout(n.props.pidlDocInfo)})||this;return n}return ox(t,e),t}(aL),a5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onEventInternal=function(e,n){var r=t.props,o=r.onReady,a=r.onEvent;if(e==S.expressCheckoutReady)return o(n);null==a||a(e,n)},t.compileParameters=function(){var e=t.props,n=e.expressCheckoutData,r=e.filters,o=e.allowedPaymentMethods,a=e.partner,s=e.parameters;return oC(oC({},s),{allowedPaymentMethods:o,filters:r,expressCheckoutData:n,partner:a,country:n.country})},t.getPidlDocInfo=function(e){return{resourceType:o0.ResourceType,parameters:e}},t.onFailureHandler=function(e){(0,t.props.onFailure)(e.error)},t.compileReturnOptions=function(){var e=t.props,n=e.onSuccess,r=e.onCancel;return{callbacks:{failure:t.onFailureHandler,success:n,gohome:r}}},t}return ox(t,e),t.prototype.render=function(){var e=this.props,t=e.authToken,n=e.headers,r=e.displayOptions,o=e.env,a=e.busyBlockShowHideHandler,s=e.busyBlockElement,l=e.telemetryOptions,c=e.pidlsdkMock,u=e.callbacksIn,d=e.telemetryLogger,p=e.propertyElementRef,f=e.onPageRendered,h=this.compileParameters(),m=this.getPidlDocInfo(h),g=this.compileReturnOptions();return e5.default.createElement(e5.default.Fragment,null,e5.default.createElement(a2,{busyBlockElement:s,pidlDocInfo:m,onEvent:this.onEventInternal,env:o,userContext:{authToken:t,userId:o0.UserId,additionalHeaders:n},returnOptions:g,displayOptions:oC(oC({},r),{busyBlockShowHideHandler:a}),telemetryOptions:l,pidlsdkMock:c,callbacksIn:oC(oC({},u),{telemetryLogger:d}),propertyElementRef:p,onPageRendered:f}))},t}(e5.default.Component),a4=function(e){function t(t){var n=e.call(this,t,function(e){return e.handlePurchaseRiskChallenge(n.props.parameters)})||this;return n}return ox(t,e),t}(aL);t.RiskPurchaseType=void 0,function(e){e.CVV="cvv",e.SMS="sms"}(t.RiskPurchaseType||(t.RiskPurchaseType={}));var a3=function(e){function t(t){var n=e.call(this,t,function(e){return e.handlePurchaseRiskChallenge(n.props.parameters)})||this;return n}return ox(t,e),t}(aL),a6=function(e){function n(n){var r=e.call(this,n)||this;r.HandleRiskChallengeInternalRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tS,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===o1.ViewTermsId)&&a(t),o&&o(e,t)},r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock,o=void 0===n||n,a=e.displayOptions;return oC(oC({},a),{containerId:oO.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:o})},r.compileParameters=function(){var e=r.props,t=e.piid,n=e.language,o=e.country,a=e.partner,s=e.type,l=e.sessionId;return{options:{},piResourceInfo:{id:t,parameters:{language:n,market:o,partner:a},resourceType:oO.ResourceType},riskChallengeData:[s],sessionId:l}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=(e.onSuccess,e.onCancel);return{callbacks:{success:r.onSuccess,failure:r.FailureHandler,gohome:t}}},r.onSuccess=function(e){var n=r.props;(0,n.onSuccess)(n.type===t.RiskPurchaseType.SMS?{challengeType:t.RiskPurchaseType.SMS}:e)},r.compileCallbacksIn=function(){var e=r.props,n=e.onSuccess,o=e.telemetryLogger,a=e.callbacksIn,s=e.type,l=e.elementFactory,c=oC(oC({},a),{telemetryLogger:o});return(null==l?void 0:l.encryptionHandler)&&(c.encryptionHandler=l.encryptionHandler()),s===t.RiskPurchaseType.CVV&&(c=oC(oC({},c),{submit:function(e){n(null==e?void 0:e.data)}})),c},r.transformPidlString=function(e){return function(t,n){var r=n;return t?t.url?t.url.toLowerCase().includes("challenge/sms/validate")&&"string"==typeof n&&(r={value:n}):e.error(new nt.unexpectedError(nn.inputParameterMissing,["request url"])):e.error(new nt.unexpectedError(nn.inputParameterMissing,["request"])),r}},r.moveNextPage=function(){var e,t;null==(t=null==(e=r.HandleRiskChallengeInternalRef)?void 0:e.current)||t.moveNextPage()},r.movePrevPage=function(){var e,t;null==(t=null==(e=r.HandleRiskChallengeInternalRef)?void 0:e.current)||t.movePrevPage()},r.cancel=function(){var e,t;null==(t=null==(e=r.HandleRiskChallengeInternalRef)?void 0:e.current)||t.cancel()},r.getRef=function(){return r.HandleRiskChallengeInternalRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.RiskChallenge,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this,t=this.state.styleProvider,n=this.props,r=n.authToken,o=n.busyBlockElement,a=n.env,s=n.elementFactory,l=n.pidlsdkMock,c=n.propertyElementRef,u=n.onPageRendered,d=n.telemetryOptions,p=n.headers,f=n.partner,h=this.compileDisplayOptions(),m=this.compileParameters(),g=this.compileReturnOptions(),v=this.compileCallbacksIn();return e5.default.createElement(ik.Provider,{value:{styleProvider:t}},e5.default.createElement(iC.Consumer,null,function(t){return e5.default.createElement(a3,{busyBlockElement:o,displayOptions:h,parameters:m,env:a,returnOptions:g,userContext:{authToken:r,userId:oO.UserId,additionalHeaders:p},onEvent:e.onEvent,elementFactory:s,pidlsdkMock:l,partner:f,callbacksIn:v,telemetryOptions:d,propertyElementRef:c,onPageRendered:u,transformersIn:{submissionSuccessTransformer:e.transformPidlString(t)},ref:e.HandleRiskChallengeInternalRef})}))},n}(e5.default.Component),a8=function(e){function t(t){var n=e.call(this,t,function(e){return e.listAddress(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)})||this;return n}return ox(t,e),t}(aL),a9=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(e,t,n,r,o,a,s){var l={operation:a,scenario:e,type:s||oW.DefaultAddressType,country:t,language:n,partner:r};return o&&(l=oC(oC({},l),o)),l},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.ListAddress,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.partner,c=e.scenario,u=e.elementFactory,d=e.onSuccess,p=e.onFailure,f=e.onCancel,h=e.showSubmitBlock,m=void 0===h||h,g=e.busyBlockShowHideHandler,v=e.pidlsdkMock,y=e.telemetryLogger,b=e.telemetryOptions,x=e.addressType,C=e.propertyElementRef,k=e.onPageRendered,w=e.onEvent,S=e.callbacksIn,_=e.headers,E=e.displayOptions,P=this.state.styleProvider,I=this.compileParameters(c,a,s,l,r,oW.Operation,x),T=this.compileReturnOptions(d,p,f);return e5.default.createElement(ik.Provider,{value:{styleProvider:P}},e5.default.createElement(a8,{busyBlockElement:o,displayOptions:oC(oC({},E),{containerId:oW.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:m}),pidlDocInfo:{resourceType:oW.ResourceType,parameters:I},env:n,returnOptions:T,onEvent:w,userContext:{authToken:t,userId:oW.UserId,additionalHeaders:_},elementFactory:u,partner:l,pidlsdkMock:v,callbacksIn:oC(oC({},S),{telemetryLogger:y}),telemetryOptions:b,propertyElementRef:C,onPageRendered:k,ref:this.baseComponentRef}))},n}(e5.default.Component),a7=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectSingleInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)})||this;return n}return ox(t,e),t}(aL),se=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.parameters,s={operation:oJ.Operation,country:t,language:n,partner:o,filters:{id:r.props.paymentInstrument.id}};return a&&(s=oC(oC({},s),a)),s},r.compileReturnOptions=function(){var e=r.props,t=e.onCancel;return{callbacks:{failure:e.onFailure,gohome:t}}},r.eventHandler=function(e,t){var n=r.props,o=n.onChange,a=n.onEvent,s=n.paymentInstrument;e===S.click&&(null==t?void 0:t.id)===oJ.ChangeButtonId&&o&&o(s.id),a&&a(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.baseDisabledStyleOverrides,f=o.scenarioDisabledStyleOverrides,h=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.PaymentInstrumentDetails,s,l,c,u,d,null,p,f,h)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.showSubmitBlock,s=void 0===a||a,l=e.busyBlockShowHideHandler,c=e.pidlsdkMock,u=e.telemetryLogger,d=e.telemetryOptions,p=e.propertyElementRef,f=e.onPageRendered,h=e.callbacksIn,m=e.headers,g=e.displayOptions,v=this.state.styleProvider,y=this.compileParameters(),b=this.compileReturnOptions();return e5.default.createElement(ik.Provider,{value:{styleProvider:v}},e5.default.createElement(a7,{busyBlockElement:r,displayOptions:oC(oC({},g),{containerId:oJ.ContainerId,busyBlockShowHideHandler:l,showSubmitBlock:s}),pidlDocInfo:{resourceType:oJ.ResourceType,parameters:y},env:n,returnOptions:b,onEvent:this.eventHandler,userContext:{authToken:t,userId:oJ.UserId,additionalHeaders:m},elementFactory:o,pidlsdkMock:c,callbacksIn:oC(oC({},h),{telemetryLogger:u}),telemetryOptions:d,propertyElementRef:p,onPageRendered:f,ref:this.baseComponentRef}))},n}(e5.default.Component),st=function(e){function t(t){var n=e.call(this,t,function(e){return e.updateProfile(n.props.resourceInfo,n.props.resource,n.props.pidlDocInfo,n.props.options||{})})||this;return n}return ox(t,e),t}(aL),sn=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compilePidlDocParameters=function(e,t,n,r){var o={operation:oQ.Operation,country:e,language:t,partner:n,type:"consumer"};return r&&(o=oC(oC({},o),r)),o},r.compileResourceParameters=function(e,t,n,r){return{country:e,language:t,partner:n,type:"consumer"}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{failure:r.FailureHandler,success:e,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tS,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oq.ViewTermsId)&&a(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.ProfilePrerequisite,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.partner,c=e.elementFactory,u=e.onSuccess,d=e.onFailure,p=e.onCancel,f=e.showSubmitBlock,h=void 0===f||f,m=e.busyBlockShowHideHandler,g=e.pidlsdkMock,v=e.telemetryLogger,y=e.propertyElementRef,b=e.profileId,x=e.onPageRendered,C=e.callbacksIn,k=e.headers,w=e.displayOptions,S=this.state.styleProvider,_=this.compilePidlDocParameters(a,s,l,r),E=this.compileResourceParameters(a,s,l,r),P=this.compileReturnOptions(u,d,p);return e5.default.createElement(ik.Provider,{value:{styleProvider:S}},e5.default.createElement(st,{busyBlockElement:o,displayOptions:oC(oC({},w),{containerId:oQ.ContainerId,busyBlockShowHideHandler:m,showSubmitBlock:h}),pidlDocInfo:{resourceType:oQ.ResourceType,parameters:_},resourceInfo:{resourceType:oQ.ResourceType,parameters:E,id:b},env:n,returnOptions:P,onEvent:this.onEvent,userContext:{authToken:t,userId:oQ.UserId,additionalHeaders:k},elementFactory:c,partner:l,pidlsdkMock:g,callbacksIn:oC(oC({},C),{telemetryLogger:v}),propertyElementRef:y,onPageRendered:x,ref:this.baseComponentRef}))},n}(e5.default.Component),sr=function(e){function t(t){var n=e.call(this,t,function(e){return e.replaceResource(n.props.pidlDocInfo,n.props.intersectingData,n.props.options)})||this;return n}return ox(t,e),t}(aL),so=function(e){function t(t){var n=e.call(this,t,function(e){return e.searchResource({pidlDocInfo:n.props.pidlDocInfo,options:n.props.options})})||this;return n}return ox(t,e),t}(aL),si=e8(function(e,t){var n=e3&&e3.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};function r(){return n(this,void 0,void 0,function*(){return new Promise(e=>{let t;if(-1===navigator.userAgent.indexOf("Edg"))return void e([]);let n=()=>{window.dispatchEvent(new CustomEvent("LoadLocalCards",{}))},r=o=>{let{localCards:a}=JSON.parse(o.detail);e(a.map(({cardNumber:e,expMonth:t,expYear:n,cardType:r,name:o,billingAddress:a})=>{var s,l,c,u,d,p,f;return{details:{accountHolderName:o,accountToken:e,paymentMethodType:r,expiryYear:n,expiryMonth:t,cardType:"Credit",address:{first_name:"",last_name:"",address_line1:null!=(s=null==a?void 0:a.addressLine1)?s:"",address_line2:null!=(l=null==a?void 0:a.addressLine2)?l:"",city:null!=(c=null==a?void 0:a.city)?c:"",district:null!=(u=null==a?void 0:a.state)?u:"",region:"",postal_code:null!=(d=null==a?void 0:a.postalCode)?d:"",country:null!=(p=null==a?void 0:a.country)?p:"",phone_number:"",unit_number:null!=(f=null==a?void 0:a.aptNum)?f:""}}}})),clearTimeout(t),window.removeEventListener("BuyNowIsReady",n),window.removeEventListener("LoadLocalCardsFinished",r)};t=setTimeout(()=>{e([]),window.removeEventListener("BuyNowIsReady",n),window.removeEventListener("LoadLocalCardsFinished",r)},500),window.addEventListener("BuyNowIsReady",n),window.addEventListener("LoadLocalCardsFinished",r),window.dispatchEvent(new CustomEvent("IsBuyNowReady",{}))})})}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalCards=void 0,t.getLocalCards=r,t.default={getLocalCards:r}}),sa=e6(si);si.getLocalCards;var ss=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectPaymentInstrument(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo,n.props.includePidl)})||this;return n}return ox(t,e),t}(aL),sl=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.allowAddNewPaymentMethod=!1,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.getResourceType=function(){return r.props.includePidl?oU.paymentInstrumentList:oU.ResourceType},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.allowedPaymentMethods,s=e.defaultPaymentMethod,l=e.parameters,c=e.sessionId,u=e.orderId,d=e.merchantId,p=e.currency,f=e.filters,h=e.classicProduct,m=e.billableAccountId,g=e.includePidl,v=e.paymentInstrumentSelectedHandler,y=e.onAddNewPaymentMethod,b={allowedPaymentMethods:(null==a?void 0:a.length)?a:oU.AllowedPaymentMethods,operation:oU.Operation,country:t,language:n,partner:o};return b.allowedPaymentMethods.length&&0>b.allowedPaymentMethods.indexOf(oU.addNewPaymentMethodFamily)&&v&&y&&(b.allowedPaymentMethods=oP(oP([],b.allowedPaymentMethods,!0),[oU.addNewPaymentMethodFamily],!1)),c&&(b.sessionId=c),g&&(b.includePidl=g),u&&(b.orderId=u),d&&(b.merchantId=d),p&&(b.currency=p),f&&(b.filters=f),h&&(b.classicProduct=h),m&&(b.billableAccountId=m),s&&(b.defaultPaymentMethod=s),l&&(b=oC(oC({},b),l)),b},r.failureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=e.onCancel,n=e.onSuccess;return{callbacks:{failure:r.failureHandler,success:n,gohome:t}}},r.isCreditCard=function(e){if(null==window?void 0:window.pidlResourceHelpers)return rd.getFunctionExecutionResult({functionName:oz.isCreditCard},{contextData:e})},r.isCreditCardExpired=function(e){if(null==window?void 0:window.pidlResourceHelpers)return rd.getFunctionExecutionResult({functionName:oz.isCreditCardExpired},{contextData:e})},r.onEventInternal=function(e,t){var n=r.props,o=n.onEvent,a=n.paymentInstrumentSelectedHandler,s=n.userPiAvailableCheckHandler;if(e==S.pageRefreshed&&t&&(null==t?void 0:t.pageId)=="noPaymentInstrumentSelectPage"&&(r.setState({userPiExists:!1}),s&&s(r.state.userPiExists)),a&&e===S.resourceSelected){var l=r.getSelectedResource(),c=r.props.onAddNewPaymentMethod;return(r.allowAddNewPaymentMethod||l&&(null==l?void 0:l.paymentMethodType)===oU.preventDefaultSelection||(r.allowAddNewPaymentMethod=!0),l.paymentMethodFamily===oU.addNewPaymentMethodFamily&&r.allowAddNewPaymentMethod&&c)?c():(r.allowAddNewPaymentMethod=!0,a(l))}if(o)return o(e,t)},r.getWalletCards=function(e){return ok(r,void 0,void 0,function(){var t,n,r;return ow(this,function(o){switch(o.label){case 0:if(!(null==e?void 0:e.getLocalCards))return[3,2];return(n=e.timeout||0)>0&&(t=setTimeout(function(){try{throw Error("Timeout getting wallet cards")}catch(e){clearTimeout(t)}},n)),[4,e.getLocalCards().then(function(e){return e}).catch(function(){return[]})];case 1:return r=o.sent()||[],t&&clearTimeout(t),[2,r];case 2:return[2,[]]}})})},r.getLocalWalletProvider=function(e){return{paymentInstruments:{mergingFunction:"mergeAndFillLocalCards",getDataSource:function(){return r.getWalletCards(e)}}}},r.getRef=function(){return r.baseComponentRef},r.populatePrefillData=function(e){var t,n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C,k,w=null==(t=e.details)?void 0:t.expiryMonth,S=w.startsWith&&w.startsWith("0")?w.substring(1):w;return{accountToken:null==(n=e.details)?void 0:n.accountToken,accountHolderName:null==(r=e.details)?void 0:r.accountHolderName,expiryYear:null==(a=null==(o=e.details)?void 0:o.expiryYear)?void 0:a.toString(),expiryMonth:null==S?void 0:S.toString(),address:{address_line1:null==(l=null==(s=e.details)?void 0:s.address)?void 0:l.address_line1,address_line2:(null==(u=null==(c=e.details)?void 0:c.address)?void 0:u.address_line2)||"",address_line3:(null==(p=null==(d=e.details)?void 0:d.address)?void 0:p.address_line3)||"",city:null==(h=null==(f=e.details)?void 0:f.address)?void 0:h.city,region:(null==(g=null==(m=e.details)?void 0:m.address)?void 0:g.region)||(null==(y=null==(v=e.details)?void 0:v.address)?void 0:y.district),postal_code:null==(x=null==(b=e.details)?void 0:b.address)?void 0:x.postal_code,country:null==(k=null==(C=null==e?void 0:e.details)?void 0:C.address)?void 0:k.country}}},r.getSelectedResource=function(){var e,t,n,o,a,s,l,c,u,d,p,f,h=null==(t=null==(e=r.baseComponentRef)?void 0:e.current)?void 0:t.getSelectedResource(),m=(null==h?void 0:h.instance)||(null==h?void 0:h.paymentInstrumentId)||{},g={id:m.id,paymentMethodFamily:null==(n=m.paymentMethod)?void 0:n.paymentMethodFamily,paymentMethodType:null==(o=m.paymentMethod)?void 0:o.paymentMethodType,displayName:null==(s=null==(a=m.paymentMethod)?void 0:a.display)?void 0:s.name,email:null==(l=m.details)?void 0:l.email,lastFourDigits:null==(c=m.details)?void 0:c.lastFourDigits,isExpired:!!r.isCreditCard(m)&&r.isCreditCardExpired(m),soldToAddressRequired:null==(d=null==(u=m.paymentMethod)?void 0:u.properties)?void 0:d.soldToAddressRequired,properties:null==(p=m.paymentMethod)?void 0:p.properties};return(null==(f=m.details)?void 0:f.isNotSaved)&&(g.isNotSaved=m.details.isNotSaved,g.prefillData=r.populatePrefillData(m)),g};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.baseDisabledStyleOverrides,f=o.scenarioDisabledStyleOverrides,h=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.SelectPaymentInstrument,s,l,c,u,d,null,p,f,h),userPiExists:!0},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.showSubmitBlock,s=void 0===a||a,l=e.busyBlockShowHideHandler,c=e.pidlsdkMock,u=e.telemetryLogger,d=e.actionContext,p=e.telemetryOptions,f=e.pidlPayload,h=e.includePidl,m=e.propertyElementRef,g=(e.onEvent,e.onPageRendered),v=e.headers,y=e.callbacksIn,b=e.walletProvider,x=e.displayOptions,C=e.partner,k=this.state.styleProvider,w=this.compileParameters(),S=this.compileReturnOptions(),_=this.getLocalWalletProvider(null!=b?b:sa),E=this.getResourceType();return e5.default.createElement(ik.Provider,{value:{styleProvider:k}},e5.default.createElement(ss,{busyBlockElement:r,displayOptions:oC(oC({},x),{containerId:oU.ContainerId,busyBlockShowHideHandler:l,showSubmitBlock:s}),pidlDocInfo:{resourceType:E,parameters:w},env:n,returnOptions:S,onEvent:this.onEventInternal,userContext:{authToken:t,userId:oU.UserId,additionalHeaders:v},actionContext:d,elementFactory:o,partner:C,pidlsdkMock:c,callbacksIn:oC(oC({},y),{telemetryLogger:u}),telemetryOptions:p,propertyElementRef:m,onPageRendered:g,ref:this.baseComponentRef,includePidl:h,pidlPayload:f,localDataSourceProviders:_}))},n}(e5.default.Component),sc=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectResourceType(n.props.pidlDocInfo,n.props.options)})||this;return n}return ox(t,e),t}(aL),su=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.parameters,s=e.defaultPaymentMethod,l=e.allowedPaymentMethods,c=e.filters,u=e.sessionId,d=e.orderId,p=e.merchantId,f=e.currency,h=e.pmGroupPageId,m={allowedPaymentMethods:(null==l?void 0:l.length)?l:oM.AllowedPaymentMethods,operation:oM.Operation,country:t,language:n,partner:o};return s&&(m.defaultPaymentMethod=s),u&&(m.sessionId=u),d&&(m.orderId=d),p&&(m.merchantId=p),f&&(m.currency=f),c&&(m.filters=c),h&&(m.pmGroupPageId=h),a&&(m=oC(oC({},m),a)),m},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{failure:r.FailureHandler,success:e,gohome:n}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.SelectPaymentMethod,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.showSubmitBlock,u=void 0===c||c,d=e.busyBlockShowHideHandler,p=e.pidlsdkMock,f=e.callbacksIn,h=e.propertyElementRef,m=e.onEvent,g=e.onPageRendered,v=e.telemetryLogger,y=e.headers,b=e.displayOptions,x=e.telemetryOptions,C=e.partner,k=this.state.styleProvider,w=this.compileParameters(),S=this.compileReturnOptions(a,s,l);return e5.default.createElement(ik.Provider,{value:{styleProvider:k}},e5.default.createElement(sc,{busyBlockElement:r,displayOptions:oC(oC({},b),{containerId:oM.ContainerId,busyBlockShowHideHandler:d,showSubmitBlock:u,disableFocusOnLoad:this.props.disableFocusOnLoad}),pidlDocInfo:{resourceType:oM.ResourceType,parameters:w},env:n,returnOptions:S,onEvent:m,userContext:{authToken:t,userId:oM.UserId,additionalHeaders:y},elementFactory:o,partner:C,pidlsdkMock:p,callbacksIn:oC(oC({},f),{telemetryLogger:v}),propertyElementRef:h,onPageRendered:g,telemetryOptions:x,ref:this.baseComponentRef}))},n}(e5.default.Component),sd=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)})||this;return n}return ox(t,e),t}(aL),sp=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectResourceType(n.props.pidlDocInfo,n.props.options)})||this;return n}return ox(t,e),t}(aL),sf=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectSingleInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)})||this;return n}return ox(t,e),t}(aL),sh=function(e){function t(t){var n=e.call(this,t,function(e){return e.showResource({pidlDocInfo:n.props.pidlDocInfo,prefillData:n.props.prefillData,options:n.props.options})})||this;return n}return ox(t,e),t}(aL),sm=function(e){function t(t){var n=e.call(this,t,function(e){return e.testHookRenderPidlPage(n.props.pidlDocument,n.props.operation,n.props.pageIndex||0,n.props.prefillData)})||this;return n}return ox(t,e),t}(aL),sg=function(e){function t(t){var n=e.call(this,t,function(e){return e.updateResource(n.props.resourceInfo,n.props.resource,n.props.pidlDocInfo,n.props.options||{})})||this;return n}return ox(t,e),t}(aL),sv=function(e){function t(t){var n=e.call(this,t,function(e){return e.validateAddress(n.props.pidlDocInfo)})||this;return n}return ox(t,e),t}(aL);t.ValidateAddressPages=void 0,function(e){e[e.validateAddressPage=0]="validateAddressPage",e[e.editAddressPage=1]="editAddressPage"}(t.ValidateAddressPages||(t.ValidateAddressPages={}));var sy=function(e){function n(n){var r=e.call(this,n)||this;return r.baseComponentRef=e5.default.createRef(),r.onValidateAddressEvent=function(e,n){var o=r.props,a=o.onEvent,s=o.currentPageChangeHandler;if(e==S.pageRefreshed){switch(n.pageId){case"addressSuggestionPage1":r.setState({currentPage:t.ValidateAddressPages.validateAddressPage});break;case"addressSuggestionPage2":r.setState({currentPage:t.ValidateAddressPages.editAddressPage})}s&&s(r.state.currentPage)}if(a)return a(e,n)},r.getCurrentPage=function(){return r.state.currentPage},r.getRef=function(){return r.props.pidlSdkRef||r.baseComponentRef},r.state={currentPage:t.ValidateAddressPages.validateAddressPage},r}return ox(n,e),n.prototype.compileParameters=function(e,t,n,r,o,a){var s=oC({operation:oH.Operation,type:o},{country:e,language:t,partner:n,addressId:r});return a&&(s=oC(oC({},s),a)),s},n.prototype.render=function(){var e=this.props,t=e.userContext,n=e.env,r=e.parameters,o=e.country,a=e.language,s=e.partner,l=e.addressId,c=e.addressType,u=e.elementFactory,d=e.returnOptions,p=e.pidlSdkRef,f=e.showSubmitBlock,h=void 0===f||f,m=e.busyBlockShowHideHandler,g=(e.onEvent,e.callbacksIn),v=this.compileParameters(o,a,s,l,c,r);return e5.default.createElement(sv,{displayOptions:{containerId:oH.ContainerId,busyBlockShowHideHandler:m,showSubmitBlock:h},pidlDocInfo:{resourceType:oH.ResourceType,parameters:v},env:n,returnOptions:d,userContext:t,elementFactory:u,partner:s,ref:p||this.baseComponentRef,onEvent:this.onValidateAddressEvent,callbacksIn:g})},n}(e5.default.Component),sb=function(e){function t(t){var n=e.call(this,t,function(e){return e.validateResource(n.props.pidlDocInfo)})||this;return n}return ox(t,e),t}(aL),sx=function(e){function t(t){var n=e.call(this,t,function(e){return e.handleCheckout(n.props.checkoutParams)})||this;return n}return ox(t,e),t}(aL),sC=function(e){function t(t){var n=e.call(this,t,function(e){return e.deleteResource({resourceInfo:n.props.resourceInfo,resource:n.props.resource,pidlDocInfo:n.props.pidlDocInfo,options:n.props.options||{}})})||this;return n}return ox(t,e),t}(aL),sk=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(e,t,n,r,o,a){return{id:a,resourceType:oG.ResourceType,resourceEndpoint:void 0,parameters:{market:e,language:t,partner:n,family:r,type:o}}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:r.FailureHandler,gohome:t}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.DeletePaymentInstrument,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.paymentInstrumentId,r=e.paymentType,o=e.paymentFamily,a=e.env,s=e.busyBlockElement,l=e.country,c=e.language,u=e.partner,d=e.elementFactory,p=e.onSuccess,f=e.onCancel,h=e.showSubmitBlock,m=void 0===h||h,g=e.busyBlockShowHideHandler,v=e.telemetryLogger,y=e.headers,b=e.callbacksIn,x=e.displayOptions,C=this.state.styleProvider,k=this.compileParameters(l,c,u,o,r,n),w=this.compileReturnOptions(p,f);return e5.default.createElement(ik.Provider,{value:{styleProvider:C}},e5.default.createElement(sC,{returnOptions:w,busyBlockElement:s,env:a,options:void 0,resourceInfo:k,partner:u,elementFactory:d,callbacksIn:oC(oC({},b),{telemetryLogger:v}),userContext:{authToken:t,userId:oG.UserId,additionalHeaders:y},displayOptions:oC(oC({},x),{containerId:oG.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:m}),ref:this.baseComponentRef}))},n}(e5.default.Component),sw=function(e){function t(t){var n=e.call(this,t,function(e){return e.handlePaymentChallenge(n.props.paymentSessionOrData)})||this;return n}return ox(t,e),t}(aL),sS=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock,o=void 0===n||n,a=e.displayOptions;return oC(oC({},a),{containerId:oZ.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:o})},r.successHandler=function(e){"Cancelled"===e.challengeStatus||"Unknown"===e.challengeStatus?r.props.onCancel(e):"TimedOut"===e.challengeStatus?r.props.onFailure(e):r.props.onSuccess(e)},r.failureHandler=function(e){var t=null==e?void 0:e.error;r.props.onFailure(null==t?void 0:t.innererror)},r.compileReturnOptions=function(){var e=r.props.onCancel;return{callbacks:{success:r.successHandler,failure:r.failureHandler,gohome:e}}},r.compileCallbacksIn=function(){return{telemetryLogger:r.props.telemetryLogger}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.HandlePaymentChallenge,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.state.styleProvider,t=this.props,n=t.authToken,r=t.busyBlockElement,o=t.env,a=t.elementFactory,s=t.headers,l=t.paymentSessionOrData,c=t.pidlsdkMock,u=t.propertyElementRef,d=t.onEvent,p=t.onPageRendered,f=t.telemetryOptions,h=t.partner,m=this.compileDisplayOptions(),g=this.compileReturnOptions(),v=this.compileCallbacksIn();return e5.default.createElement(ik.Provider,{value:{styleProvider:e}},e5.default.createElement(sw,{busyBlockElement:r,displayOptions:m,env:o,returnOptions:g,userContext:{authToken:n,userId:oZ.UserId,additionalHeaders:s},paymentSessionOrData:l,onEvent:d,partner:h,elementFactory:a,pidlsdkMock:c,callbacksIn:v,telemetryOptions:f,propertyElementRef:u,onPageRendered:p,ref:this.baseComponentRef}))},n}(e5.default.Component);t.AllowedViews=void 0,function(e){e[e.SelectPaymentInstrument=0]="SelectPaymentInstrument",e[e.SelectPaymentMethod=1]="SelectPaymentMethod",e[e.AddPaymentInstrument=2]="AddPaymentInstrument",e[e.EditPaymentInstrument=3]="EditPaymentInstrument"}(t.AllowedViews||(t.AllowedViews={})),t.ManagePaymentInstrumentMode=void 0,function(e){e[e.Select=0]="Select"}(t.ManagePaymentInstrumentMode||(t.ManagePaymentInstrumentMode={}));var s_=function(e){function n(n){var r,o=this;return(o=e.call(this,n)||this).SelectPaymentInstrumentRef=e5.default.createRef(),o.SelectPaymentMethodRef=e5.default.createRef(),o.AddPaymentInstrumentRef=e5.default.createRef(),o.EditPaymentInstrumentRef=e5.default.createRef(),o.setCurrentView=function(){var e=o.props,n=e.pidlPayload,r=e.allowedPaymentMethods;return n&&rp.isArray(r)&&0===r.length?t.AllowedViews.SelectPaymentMethod:t.AllowedViews.SelectPaymentInstrument},o.isCreditCardExpired=function(e){if(null==window?void 0:window.pidlResourceHelpers)return rd.getFunctionExecutionResult({functionName:oz.isCreditCardExpired},{contextData:e})},o.isGiftCard=function(e){if(null==window?void 0:window.pidlResourceHelpers)return rd.getFunctionExecutionResult({functionName:oz.isEwalletStoredValue},{contextData:e})},o.onSelectPIEvent=function(e,n){var r,a,s=o.props,l=s.onEvent,c=s.paymentInstrumentSelectedHandler,u=s.includePidl,d=s.pidlPayload;return c&&e===S.resourceSelected&&o.state.currentView===t.AllowedViews.SelectPaymentInstrument?c(null==(a=null==(r=o.SelectPaymentInstrumentRef)?void 0:r.current)?void 0:a.getSelectedResource()):((u||d)&&e===S.noSelectionOptionsFound&&o.state.currentView===t.AllowedViews.SelectPaymentInstrument&&o.setState({currentView:t.AllowedViews.SelectPaymentMethod}),l)?l(e,n):void 0},o.onSelectPISuccess=function(e){var n,r,a,s=e.instance,l=o.props,c=l.onSuccess,u=l.onFailure,d=l.redeemGiftCardHandler;if(e.resourceActionContext){switch(e.resourceActionContext.action){case"selectResourceType":o.setState({currentView:t.AllowedViews.SelectPaymentMethod});break;case"addResource":o.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument});break;case"editPaymentInstrument":o.setState({paymentFamily:e.resourceActionContext.resource.paymentMethod.paymentMethodFamily,paymentType:e.resourceActionContext.resource.paymentMethod.paymentMethodType,paymentInstrumentId:e.resourceActionContext.resource.id,currentView:t.AllowedViews.EditPaymentInstrument});break;case"updateResource":rp.isString(s)||o.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:s.paymentMethod.paymentMethodFamily,paymentType:s.paymentMethod.paymentMethodType,paymentInstrumentId:s.id});break;default:c(s)}return}if(e.action&&"success"!==rp.toLowerCase(e.action)){switch(e.action){case"selectResourceType":o.setState({currentView:t.AllowedViews.SelectPaymentMethod});break;case"updateResource":rp.isString(s)||o.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:s.paymentMethod.paymentMethodFamily,paymentType:s.paymentMethod.paymentMethodType,paymentInstrumentId:s.id})}return}var p=oj.NewPaymentMethodLink,f=oj.RedeemGiftCardLink,h=oj.ManagePaymentInstrument,m=oj.redeemGiftCardHandlerName;if("string"==typeof s){if(s===p&&o.setState({currentView:t.AllowedViews.SelectPaymentMethod}),s===f)if(d)d();else{var g=null==(r=null==(n=o.SelectPaymentInstrumentRef)?void 0:n.current)?void 0:r.getRef();null==(a=null==g?void 0:g.current)||a.implementationMissing(h,m),u({name:I.missingImplementationError,message:"Implentation of ".concat(null!=m?m:"undefined"," missing in ").concat(h),code:"",type:I.missingImplementationError,debugMessage:""})}}else o.isCreditCardExpired(s)?o.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:s.paymentMethod.paymentMethodFamily,paymentType:s.paymentMethod.paymentMethodType,paymentInstrumentId:s.id}):c(s)},o.onSelectPaymentMethodSuccess=function(e){o.isGiftCard({paymentMethod:{paymentMethodFamily:e.paymentMethodFamily,paymentMethodType:e.paymentMethodType}})?o.onSelectPISuccess({operationType:eL.select,instance:oj.RedeemGiftCardLink}):"windowssettings"===rp.toLowerCase(o.props.partner)&&"credit_card"!==rp.toLowerCase(e.paymentMethodFamily)?(0,o.props.onSuccess)(e):o.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument})},o.onAddPISuccess=function(e){try{var n=e.response;n.piModified=!0,(0,o.props.onSuccess)(n)}catch(e){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument})}},o.onEditPISuccess=function(e){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument});var n=o.props.onUpdateSuccess;if(n)try{var r=e.response;r.piModified=!0,n(r)}catch(e){}},o.cancelSelectPM=function(){o.pmGroupPageId=void 0,o.setState({currentView:t.AllowedViews.SelectPaymentInstrument,pmGroupPageId:o.pmGroupPageId})},o.cancelAddPI=function(){var e=o.props.goToSelectPIOnAddCancel;o.pmGroupPageId=o.state.paymentFamily;var n=e?t.AllowedViews.SelectPaymentInstrument:t.AllowedViews.SelectPaymentMethod;o.setState({currentView:n,pmGroupPageId:o.pmGroupPageId})},o.cancelEditPI=function(){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument})},o.moveNextPage=function(){var e,n,r,a,s,l,c,u,d,p,f,h;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null==(r=null==(n=null==(e=o.SelectPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.moveNextPage();break;case t.AllowedViews.SelectPaymentMethod:null==(l=null==(s=null==(a=o.SelectPaymentMethodRef)?void 0:a.current)?void 0:s.getRef().current)||l.moveNextPage();break;case t.AllowedViews.AddPaymentInstrument:null==(d=null==(u=null==(c=o.AddPaymentInstrumentRef)?void 0:c.current)?void 0:u.getRef().current)||d.moveNextPage();break;case t.AllowedViews.EditPaymentInstrument:null==(h=null==(f=null==(p=o.EditPaymentInstrumentRef)?void 0:p.current)?void 0:f.getRef().current)||h.moveNextPage()}},o.movePrevPage=function(){var e,n,r,a,s,l,c,u,d,p,f,h;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null==(r=null==(n=null==(e=o.SelectPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.movePrevPage();break;case t.AllowedViews.SelectPaymentMethod:null==(l=null==(s=null==(a=o.SelectPaymentMethodRef)?void 0:a.current)?void 0:s.getRef().current)||l.movePrevPage();break;case t.AllowedViews.AddPaymentInstrument:null==(d=null==(u=null==(c=o.AddPaymentInstrumentRef)?void 0:c.current)?void 0:u.getRef().current)||d.movePrevPage();break;case t.AllowedViews.EditPaymentInstrument:null==(h=null==(f=null==(p=o.EditPaymentInstrumentRef)?void 0:p.current)?void 0:f.getRef().current)||h.movePrevPage()}},o.cancel=function(){var e,n,r,a,s,l,c,u,d,p,f,h;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null==(r=null==(n=null==(e=o.SelectPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.cancel();break;case t.AllowedViews.SelectPaymentMethod:null==(l=null==(s=null==(a=o.SelectPaymentMethodRef)?void 0:a.current)?void 0:s.getRef().current)||l.cancel();break;case t.AllowedViews.AddPaymentInstrument:null==(d=null==(u=null==(c=o.AddPaymentInstrumentRef)?void 0:c.current)?void 0:u.getRef().current)||d.cancel();break;case t.AllowedViews.EditPaymentInstrument:null==(h=null==(f=null==(p=o.EditPaymentInstrumentRef)?void 0:p.current)?void 0:f.getRef().current)||h.cancel()}},o.cancelSelectPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.SelectPaymentInstrument&&(null==(r=null==(n=null==(e=o.SelectPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.cancel())},o.cancelOrMovePrevSelectPaymentMethod=function(){var e,n,r;o.state.currentView===t.AllowedViews.SelectPaymentMethod&&(null==(r=null==(n=null==(e=o.SelectPaymentMethodRef)?void 0:e.current)?void 0:n.getRef().current)||r.movePrevPage())},o.cancelAddPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null==(r=null==(n=null==(e=o.AddPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.cancel())},o.cancelEditPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null==(r=null==(n=null==(e=o.EditPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.cancel())},o.submitAddPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null==(r=null==(n=null==(e=o.AddPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.moveNextPage())},o.submitEditPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null==(r=null==(n=null==(e=o.EditPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.moveNextPage())},o.getCurrentView=function(){return o.state.currentView},o.getSelectedResource=function(){var e,n;if(o.state.currentView===t.AllowedViews.SelectPaymentInstrument)return null==(n=null==(e=o.SelectPaymentInstrumentRef)?void 0:e.current)?void 0:n.getSelectedResource()},o.state={currentView:o.setCurrentView(),paymentFamily:"",paymentType:"",paymentInstrumentId:"",allowedPaymentMethods:o.props.allowedPaymentMethods,selectPMAllowedPaymentMethods:(null==(r=o.props.selectPMAllowedPaymentMethods)?void 0:r.length)>0?o.props.selectPMAllowedPaymentMethods:o.props.allowedPaymentMethods},o.pmGroupPageId=void 0,o}return ox(n,e),n.prototype.componentDidMount=function(){this.props.currentViewChangeHandler&&this.props.currentViewChangeHandler(t.AllowedViews.SelectPaymentInstrument)},n.prototype.componentDidUpdate=function(e,t,n){this.props.currentViewChangeHandler&&this.state.currentView!==t.currentView&&this.props.currentViewChangeHandler(this.state.currentView)},n.prototype.render=function(){var e=this.props,n=e.authToken,r=e.env,o=e.parameters,a=e.busyBlockElement,s=e.baseStyleOverrides,l=e.scenarioStyleOverrides,c=e.baseFocusStyleOverrides,u=e.scenarioFocusStyleOverrides,d=e.telemetryLogger,p=e.telemetryOptions,f=e.language,h=e.partner,m=e.elementFactory,g=e.onFailure,v=e.onCancel,y=e.busyBlockShowHideHandler,b=e.redirectionSuccessUrl,x=e.redirectionFailureUrl,C=e.includePidl,k=e.pidlPayload,w=e.actionContext,S=e.pidlsdkMock,_=e.propertyElementRef,E=e.onPageRendered,P=e.onEvent,I=e.completePrerequisites,T=e.viewTermsHandler,D=e.defaultPaymentMethod,A=e.sessionId,R=e.orderId,N=e.merchantId,B=e.currency,M=e.filters,F=e.headers,O=e.walletProvider,L=e.showSubmitBlock,H=void 0===L||L,z=e.displayOptions,V=this.state,U=V.currentView,j=V.paymentFamily,W=V.paymentType,q=V.paymentInstrumentId,G=V.allowedPaymentMethods,K=V.selectPMAllowedPaymentMethods,X=this.props,Y=X.country,Q=X.market;return Y=Y||Q,e5.default.createElement(e5.default.Fragment,null,U===t.AllowedViews.SelectPaymentInstrument&&e5.default.createElement(sl,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:m,authToken:n,env:r,onSuccess:this.onSelectPISuccess,onFailure:g,onCancel:v,busyBlockShowHideHandler:y,busyBlockElement:a,country:Y,language:f,partner:h,parameters:o,pidlsdkMock:S,telemetryLogger:d,telemetryOptions:p,propertyElementRef:_,onPageRendered:E,onEvent:this.onSelectPIEvent,allowedPaymentMethods:G,filters:M,sessionId:A,orderId:R,merchantId:N,currency:B,headers:F,includePidl:C,pidlPayload:k,actionContext:w,showSubmitBlock:H,ref:this.SelectPaymentInstrumentRef,walletProvider:O,displayOptions:z}),U===t.AllowedViews.SelectPaymentMethod&&e5.default.createElement(su,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:m,authToken:n,env:r,onSuccess:this.onSelectPaymentMethodSuccess,onFailure:g,onCancel:this.cancelSelectPM,busyBlockShowHideHandler:y,busyBlockElement:a,country:Y,language:f,partner:h,parameters:o,pidlsdkMock:S,telemetryLogger:d,telemetryOptions:p,propertyElementRef:_,onPageRendered:E,onEvent:P,defaultPaymentMethod:D,allowedPaymentMethods:K,filters:M,sessionId:A,orderId:R,merchantId:N,currency:B,headers:F,pmGroupPageId:this.pmGroupPageId,showSubmitBlock:H,ref:this.SelectPaymentMethodRef,displayOptions:z}),U===t.AllowedViews.AddPaymentInstrument&&e5.default.createElement(aU,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:m,authToken:n,env:r,onSuccess:this.onAddPISuccess,onFailure:g,onCancel:this.cancelAddPI,busyBlockShowHideHandler:y,busyBlockElement:a,country:Y,language:f,partner:h,paymentFamily:j,paymentType:W,completePrerequisites:I,parameters:o,redirectionSuccessUrl:b,redirectionFailureUrl:x,pidlsdkMock:S,telemetryLogger:d,telemetryOptions:p,propertyElementRef:_,onPageRendered:E,onEvent:P,viewTermsHandler:T,showSubmitBlock:H,headers:"windowssettings"===rp.toLowerCase(this.props.partner)?oC(oC({},F),{"x-ms-flight":"PXUsePartnerSettingsService"}):F,ref:this.AddPaymentInstrumentRef,displayOptions:z}),U===t.AllowedViews.EditPaymentInstrument&&e5.default.createElement(aZ,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:m,authToken:n,env:r,onSuccess:this.onEditPISuccess,onFailure:g,onCancel:this.cancelEditPI,busyBlockShowHideHandler:y,busyBlockElement:a,country:Y,language:f,partner:h,paymentInstrumentId:q,paymentFamily:j,paymentType:W,parameters:o,pidlsdkMock:S,telemetryLogger:d,telemetryOptions:p,propertyElementRef:_,onPageRendered:E,onEvent:P,viewTermsHandler:T,showSubmitBlock:H,headers:"windowssettings"===rp.toLowerCase(this.props.partner)?oC(oC({},F),{"x-ms-flight":"PXUsePartnerSettingsService"}):F,ref:this.EditPaymentInstrumentRef,displayOptions:z}))},n}(e5.default.Component);!function(e){e[e.ListAddress=0]="ListAddress",e[e.AddNewAddress=1]="AddNewAddress",e[e.EditAddress=2]="EditAddress"}(e1||(e1={})),t.ManageAddressMode=void 0,function(e){e[e.Select=0]="Select",e[e.Edit=1]="Edit"}(t.ManageAddressMode||(t.ManageAddressMode={}));var sE=function(e){function n(n){var r=e.call(this,n)||this;return r.onSuccessWrapper=function(e){"newAddressLink"===e.id&&r.props.onAddNewAddress?r.props.onAddNewAddress(e):"newAddressLink"===e.id?r.setState({currentView:e1.AddNewAddress}):r.shouldOpenEditView(e)?r.setState({currentView:e1.EditAddress,addressId:e.instance.id}):r.props.onSuccess(e)},r.shouldOpenEditView=function(e){var n,o,a=r.props,s=a.mode,l=a.scenario;return s===t.ManageAddressMode.Edit||s===t.ManageAddressMode.Select&&!((null==(n=null==e?void 0:e.instance)?void 0:n.first_name)&&(null==(o=null==e?void 0:e.instance)?void 0:o.last_name))&&l===t.AddressScenario.shipping},r.returnToListView=function(){r.setState({currentView:e1.ListAddress})},r.state={currentView:e1.ListAddress},r}return ox(n,e),n.prototype.componentDidUpdate=function(e){var t=this.props,n=t.mode,r=t.scenario,o=t.country,a=t.language,s=t.partner,l=t.addressType;(e.mode!==n||e.scenario!==r||e.country!==o||e.language!==a||e.partner!==s||e.addressType!==l)&&this.setState({currentView:e1.ListAddress})},n.prototype.render=function(){var e=this.props,t=e.baseStyleOverrides,n=e.scenarioStyleOverrides,r=e.baseFocusStyleOverrides,o=e.scenarioFocusStyleOverrides,a=e.telemetryLogger,s=e.telemetryOptions,l=e.authToken,c=e.env,u=e.addressType,d=e.showSubmitBlock,p=void 0===d||d,f=e.busyBlockElement,h=e.country,m=e.language,g=e.partner,v=e.scenario,y=e.elementFactory,b=e.onFailure,x=e.onCancel,C=e.busyBlockShowHideHandler,k=e.pidlsdkMock,w=e.propertyElementRef,S=e.onPageRendered,_=e.onEvent,E=e.viewTermsHandler,P=e.headers,I=e.displayOptions,T=this.state,D=T.addressId,A=T.currentView;return e5.default.createElement(e5.default.Fragment,null,A===e1.ListAddress&&e5.default.createElement(a9,{authToken:l,elementFactory:y,env:c,scenario:v,addressType:u,country:h,language:m,partner:g,onSuccess:this.onSuccessWrapper,onFailure:b,onCancel:x,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockElement:f,busyBlockShowHideHandler:C,pidlsdkMock:k,telemetryLogger:a,telemetryOptions:s,propertyElementRef:w,onPageRendered:S,onEvent:_,headers:P,showSubmitBlock:p,displayOptions:I}),A===e1.AddNewAddress&&e5.default.createElement(az,{authToken:l,elementFactory:y,env:c,country:h,language:m,partner:g,scenario:v,addressType:u,onSuccess:this.returnToListView,onFailure:b,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockElement:f,busyBlockShowHideHandler:C,pidlsdkMock:k,telemetryLogger:a,telemetryOptions:s,propertyElementRef:w,onPageRendered:S,onEvent:_,viewTermsHandler:E,headers:P,showSubmitBlock:p,displayOptions:I}),A===e1.EditAddress&&e5.default.createElement(aQ,{authToken:l,addressId:D,elementFactory:y,env:c,country:h,scenario:v,language:m,partner:g,onSuccess:this.returnToListView,onFailure:b,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockShowHideHandler:C,onPageRendered:S,onEvent:_,viewTermsHandler:E,telemetryLogger:a,telemetryOptions:s,headers:P,showSubmitBlock:p,displayOptions:I}))},n}(e5.default.Component),sP=function(e){function t(t){var n=e.call(this,t,function(e){return e.validateAddress(n.props.pidlDocInfo)})||this;return n}return ox(t,e),t}(aL);t.VerifyAddressPages=void 0,function(e){e[e.verifyAddressPage=0]="verifyAddressPage",e[e.editAddressPage=1]="editAddressPage",e[e.noAddressSuggestionsPage=2]="noAddressSuggestionsPage"}(t.VerifyAddressPages||(t.VerifyAddressPages={}));var sI=function(e){function n(n){var r=e.call(this,n)||this;r.VerifyAddressRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.onVerifyAddressEvent=function(e,n){var o=r.props,a=o.onEvent,s=o.currentPageChangeHandler;if(e==S.pageRefreshed)switch(n.pageId){case"addressSuggestionPage1":s&&s(t.VerifyAddressPages.verifyAddressPage);break;case"addressSuggestionPage2":s&&s(t.VerifyAddressPages.editAddressPage);break;case"noAddressSuggestionsPage":s&&s(t.VerifyAddressPages.noAddressSuggestionsPage)}if(a)return a(e,n)},r.moveNextPage=function(){var e,t;null==(t=null==(e=r.VerifyAddressRef)?void 0:e.current)||t.moveNextPage()},r.movePrevPage=function(){var e,t;null==(t=null==(e=r.VerifyAddressRef)?void 0:e.current)||t.movePrevPage()},r.cancel=function(){var e,t;null==(t=null==(e=r.VerifyAddressRef)?void 0:e.current)||t.cancel()},r.submitPage=function(){var e,t;null==(t=null==(e=r.VerifyAddressRef)?void 0:e.current)||t.submitPage()},r.getRef=function(){return r.VerifyAddressRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.VerifyAddress,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.compileParameters=function(e,t,n,r,o,a){var s=oC({operation:oH.Operation,type:o},{country:e,language:t,partner:n,addressId:r});return a&&(s=oC(oC({},s),a)),s},n.prototype.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:t,gohome:n}}},n.prototype.render=function(){var e=this.props,t=e.env,n=e.parameters,r=e.country,o=e.language,a=e.partner,s=e.addressId,l=e.addressType,c=e.elementFactory,u=e.busyBlockElement,d=e.showSubmitBlock,p=void 0===d||d,f=e.busyBlockShowHideHandler,h=(e.onEvent,e.callbacksIn,e.onSuccess),m=e.onFailure,g=e.onCancel,v=e.headers,y=e.telemetryLogger,b=e.propertyElementRef,x=e.onPageRendered,C=e.pidlsdkMock,k=e.authToken,w=e.displayOptions,S=this.state.styleProvider,_=this.compileParameters(r,o,a,s,l,n),E=this.compileReturnOptions(h,m,g);return e5.default.createElement(ik.Provider,{value:{styleProvider:S}},e5.default.createElement(sP,{busyBlockElement:u,displayOptions:oC(oC({},w),{containerId:oH.ContainerId,busyBlockShowHideHandler:f,showSubmitBlock:p}),pidlDocInfo:{resourceType:oH.ResourceType,parameters:_},env:t,returnOptions:E,onEvent:this.onVerifyAddressEvent,userContext:{authToken:k,userId:oH.UserId,additionalHeaders:v},elementFactory:c,pidlsdkMock:C,callbacksIn:{telemetryLogger:y},propertyElementRef:b,onPageRendered:x,ref:this.VerifyAddressRef}))},n}(e5.default.Component),sT=function(e){function t(t){var n=e.call(this,t,function(e){return e.redeemMSRewards(n.props.pidlDocInfo)})||this;return n}return ox(t,e),t}(aL),sD=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileRewardsContextData=function(e,t){return{orderAmount:e,currency:t}},r.compileParameters=function(e,t,n,o,a,s){var l=r.compileRewardsContextData(a,s),c={country:e,language:t,partner:n,type:r.getResourceType(),rewardsContextData:l};return o&&(c=oC(oC({},c),o)),c},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,a=oC({},o);return t&&(a.telemetryLogger=t),(null==n?void 0:n.encryptionHandler)&&(a.encryptionHandler=n.encryptionHandler()),a},r.getResourceType=function(){return oX.ResourceType},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.RedeemMSRewards,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.partner,c=e.elementFactory,u=e.onSuccess,d=e.onFailure,p=e.onCancel,f=e.onEvent,h=e.showSubmitBlock,m=void 0===h||h,g=e.busyBlockShowHideHandler,v=e.pidlsdkMock,y=(e.telemetryLogger,e.telemetryOptions),b=e.propertyElementRef,x=e.onPageRendered,C=e.headers,k=e.orderAmount,w=e.currency,S=e.displayOptions,_=this.state.styleProvider,E=this.compileParameters(a,s,l,r,k,w),P=this.compileReturnOptions(u,d,p),I=this.compileCallbacks();return e5.default.createElement(ik.Provider,{value:{styleProvider:_}},e5.default.createElement(sT,{busyBlockElement:o,displayOptions:oC(oC({},S),{containerId:oX.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:m}),pidlDocInfo:{resourceType:this.getResourceType(),parameters:E},env:n,returnOptions:P,userContext:{authToken:t,userId:oX.UserId,additionalHeaders:C},onEvent:f,elementFactory:c,pidlsdkMock:v,callbacksIn:I,telemetryOptions:y,propertyElementRef:b,onPageRendered:x,ref:this.baseComponentRef}))},n}(e5.default.Component),sA=function(e){function t(t){var n=e.call(this,t,function(e){return e.searchTransactions({pidlDocInfo:n.props.pidlDocInfo,options:n.props.options})})||this;return n}return ox(t,e),t}(aL),sR=function(e){function t(t){return e.call(this,t,function(e){return e.offerResource({pidlDocInfo:t.pidlDocInfo})})||this}return ox(t,e),t}(aL),sN=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.parameters,s=e.scenario,l={operation:o$.Operation,country:t,language:n,partner:o,scenario:s};return a&&(l=oC(oC({},l),a)),l},r.compileReturnOptions=function(e,t,n,r){return{urls:r,callbacks:{success:e,failure:t,gohome:n}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.OfferPaymentInstrument,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,u=e.showSubmitBlock,d=void 0===u||u,p=e.busyBlockShowHideHandler,f=e.pidlsdkMock,h=e.telemetryOptions,m=e.propertyElementRef,g=e.onEvent,v=e.onPageRendered,y=e.headers,b=e.useWebView2,x=e.displayOptions,C=e.partner,k=this.state.styleProvider,w=this.compileParameters(),S=this.compileReturnOptions(a,s,l,c);return e5.default.createElement(ik.Provider,{value:{styleProvider:k}},e5.default.createElement(sR,{busyBlockElement:r,displayOptions:oC(oC({},x),{containerId:o$.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:d,useWebView2:b}),pidlDocInfo:{resourceType:o$.ResourceType,parameters:w},env:n,returnOptions:S,onEvent:g,userContext:{authToken:t,userId:o$.UserId,additionalHeaders:y},elementFactory:o,partner:C,pidlsdkMock:f,telemetryOptions:h,propertyElementRef:m,onPageRendered:v,ref:this.baseComponentRef}))},n}(e5.default.Component),sB=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectMSRewards(n.props.pidlDocInfo)})||this;return n}return ox(t,e),t}(aL),sM=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e5.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileRewardsContextData=function(e,t){return{orderAmount:e,currency:t}},r.getResourceType=function(){return oV.ResourceType},r.compileParameters=function(){var e=r.props,t=e.country,n=e.currency,o=e.language,a=e.orderAmount,s=e.partner,l=e.parameters,c=e.scenario,u=r.compileRewardsContextData(a,n),d={operation:o$.Operation,country:t,language:o,partner:s,rewardsContextData:u,scenario:c,type:r.getResourceType()};return l&&(d=oC(oC({},d),l)),d},r.compileReturnOptions=function(e,t,n,r){return{urls:r,callbacks:{success:e,failure:t,gohome:n}}},r.onEventInternal=function(e,t){var n=r.props,o=n.onEvent,a=n.onMSRewardsSelectionChange;if(a&&(e===S.pageRendered||e===S.pageRefreshed)&&r.baseComponentRef&&r.baseComponentRef.current&&r.baseComponentRef.current.getPidlPayload&&r.baseComponentRef.current.getPidlPayload().then(function(e){e&&e.payload&&e.payload.data&&a(e.payload.data)}),o)return o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.SelectMSRewards,s,l,c,u,d,null,null,null,p)},r}return ox(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,u=e.showSubmitBlock,d=void 0===u||u,p=e.busyBlockShowHideHandler,f=e.pidlsdkMock,h=e.telemetryOptions,m=e.propertyElementRef,g=(e.onEvent,e.onPageRendered),v=e.headers,y=e.useWebView2,b=e.displayOptions,x=this.state.styleProvider,C=this.compileParameters(),k=this.compileReturnOptions(a,s,l,c);return e5.default.createElement(ik.Provider,{value:{styleProvider:x}},e5.default.createElement(sB,{busyBlockElement:r,displayOptions:oC(oC({},b),{containerId:oV.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:d,useWebView2:y}),pidlDocInfo:{resourceType:oV.ResourceType,parameters:C},env:n,returnOptions:k,onEvent:this.onEventInternal,userContext:{authToken:t,userId:oV.UserId,additionalHeaders:v},elementFactory:o,pidlsdkMock:f,telemetryOptions:h,propertyElementRef:m,onPageRendered:g,ref:this.baseComponentRef}))},n}(e5.default.Component),sF=function(e){function t(t){var n=e.call(this,t,function(e){return e.expressCheckout(n.props.pidlDocInfo)})||this;return n}return ox(t,e),t}(aL);t.AddAddress=az,t.AddAddressConstants=oB,t.AddPaymentInstrument=aU,t.AddPaymentInstrumentConstants=oq,t.AddPaymentInstrumentInternal=aV,t.AddResource=aq,t.ApplyPaymentInstrument=aW,t.ApplyPaymentInstrumentConstants=oY,t.ApplyPaymentInstrumentInternal=aj,t.ApplyResource=aG,t.Audio=i5,t.AudioInner=i2,t.BodyBlock=ar,t.Button=iH,t.ButtonInner=iL,t.ButtonList=ij,t.ButtonListElement=iV,t.ButtonListElementInner=iz,t.ButtonListInner=iU,t.Captcha=i1,t.CaptchaInner=i0,t.CheckBox=iq,t.CheckBoxInner=iW,t.ConfirmPayment=aX,t.ConfirmPaymentConstants=oL,t.ConfirmPaymentInternal=aK,t.CreatePaymentSession=aY,t.DefaultExpressCheckoutButtonElement=i7,t.DefaultIFrameElement=iD,t.DeletePaymentInstrument=sk,t.DeletePaymentInstrumentConstants=oG,t.DeleteResource=sC,t.Dropdown=i$,t.EditAddress=aQ,t.EditAddressConstants=oF,t.EditPaymentInstrument=aZ,t.EditPaymentInstrumentConstants=oK,t.Error=iI,t.ExpressCheckout=a5,t.ExpressCheckoutButtonElement=at,t.ExpressCheckoutButtonElementInner=ae,t.ExpressCheckoutConstants=o0,t.ExpressCheckoutInternal=a2,t.FilePicker=iO,t.FundStoredValue=a0,t.Group=iJ,t.GroupError=iQ,t.GroupLabel=iK,t.GroupLabelInner=iG,t.HandleCheckout=sx,t.HandleIndia3DSChallenge=sS,t.HandleIndia3DSChallengeConstants=oZ,t.HandleIndia3DSChallengeInternal=sw,t.HandlePaymentChallenge=a1,t.HandlePurchaseRiskChallenge=a4,t.HandleRiskChallenge=a6,t.HandleRiskChallengeConstants=oO,t.HandleRiskChallengeInternal=a3,t.Heading=aa,t.HeadingInner=ai,t.HelpDialog=iF,t.HelpDialogInner=iM,t.Hyperlink=i4,t.IFrameElement=iR,t.IFrameElementInner=iA,t.Image=i3,t.ListAddress=a9,t.ListAddressConstants=oW,t.LogoElement=i6,t.ManageAddress=sE,t.ManagePaymentInstrument=s_,t.ManagePaymentInstrumentConstants=oj,t.Modal=iY,t.ModalInner=iX,t.OfferPaymentInstrument=sN,t.OfferPaymentInstrumentConstants=o$,t.OfferPaymentInstrumentInternal=sR,t.PageAlert=iT,t.PageErrorBlock=an,t.PaymentInstrumentDetails=se,t.PaymentInstrumentDetailsConstants=oJ,t.PaymentInstrumentDetailsInternal=a7,t.PidlComponent=aO,t.PidlDocBuilder=am,t.PidlInstance=af,t.PidlPropertyBuilder=av,t.PrefillCheckBox=ab,t.PrefillCheckBoxInner=ay,t.ProfilePrerequisite=sn,t.ProfilePrerequisiteConstants=oQ,t.PropertyLabel=iB,t.PropertyLabelInner=iN,t.QuickPayment=sF,t.Radio=ao,t.RedeemMSRewards=sD,t.RedeemMSRewardsConstants=oX,t.RedeemMSRewardsInternal=sT,t.ReplaceResource=sr,t.ResourceHelpersConstants=oz,t.RiskChallengeConstants=o1,t.SearchResource=so,t.SearchTransactions=sA,t.SelectMSRewards=sM,t.SelectMSRewardsConstants=oV,t.SelectPaymentInstrument=sl,t.SelectPaymentInstrumentConstants=oU,t.SelectPaymentMethod=su,t.SelectPaymentMethodConstants=oM,t.SelectPaymentMethodInternal=sc,t.SelectResource=sd,t.SelectResourceType=sp,t.SelectSingleResource=sf,t.ShowResource=sh,t.StyleProviderContext=ik,t.SubHeading=al,t.SubHeadingInner=as,t.TestHookRenderPidl=sm,t.Text=au,t.TextBox=ap,t.TextGroup=iZ,t.TextInner=ac,t.UpdateResource=sg,t.ValidateAddress=sy,t.ValidateAddressConstants=oH,t.ValidateResource=sb,t.VerifyAddress=sI,t.defaultEnvironment=oN,t.getClassNamesFromStyleHints=iS,t.getHtmlAttributesFromTags=iP,t.getPidlReactCustomProps=i_,t.getTagClassNames=iw,t.pidl=oy,t.pidlReactClassPrefix=oA,t.shouldHideInlineError=iE,t.startsWith=oR});ty(tb),tb.AppScenario,tb.ElementType,tb.AddressScenario,tb.ApplyPaymentInstrumentScenario,tb.OfferPaymentInstrumentScenario,tb.RiskPurchaseType,tb.ValidateAddressPages,tb.AllowedViews,tb.ManagePaymentInstrumentMode,tb.ManageAddressMode,tb.VerifyAddressPages,tb.AddAddress,tb.AddAddressConstants,tb.AddPaymentInstrument,tb.AddPaymentInstrumentConstants,tb.AddPaymentInstrumentInternal;var tx=tb.AddResource;tb.ApplyPaymentInstrument,tb.ApplyPaymentInstrumentConstants,tb.ApplyPaymentInstrumentInternal,tb.ApplyResource,tb.Audio,tb.AudioInner,tb.BodyBlock,tb.Button,tb.ButtonInner,tb.ButtonList,tb.ButtonListElement,tb.ButtonListElementInner,tb.ButtonListInner,tb.Captcha,tb.CaptchaInner,tb.CheckBox,tb.CheckBoxInner,tb.ConfirmPayment,tb.ConfirmPaymentConstants,tb.ConfirmPaymentInternal,tb.CreatePaymentSession,tb.DefaultExpressCheckoutButtonElement,tb.DefaultIFrameElement,tb.DeletePaymentInstrument,tb.DeletePaymentInstrumentConstants,tb.DeleteResource,tb.Dropdown,tb.EditAddress,tb.EditAddressConstants,tb.EditPaymentInstrument,tb.EditPaymentInstrumentConstants,tb.Error,tb.ExpressCheckout,tb.ExpressCheckoutButtonElement,tb.ExpressCheckoutButtonElementInner,tb.ExpressCheckoutConstants,tb.ExpressCheckoutInternal,tb.FilePicker,tb.FundStoredValue,tb.Group,tb.GroupError,tb.GroupLabel,tb.GroupLabelInner,tb.HandleCheckout,tb.HandleIndia3DSChallenge,tb.HandleIndia3DSChallengeConstants,tb.HandleIndia3DSChallengeInternal,tb.HandlePaymentChallenge,tb.HandlePurchaseRiskChallenge,tb.HandleRiskChallenge,tb.HandleRiskChallengeConstants,tb.HandleRiskChallengeInternal,tb.Heading,tb.HeadingInner,tb.HelpDialog,tb.HelpDialogInner,tb.Hyperlink,tb.IFrameElement,tb.IFrameElementInner,tb.Image,tb.ListAddress,tb.ListAddressConstants,tb.LogoElement,tb.ManageAddress,tb.ManagePaymentInstrument,tb.ManagePaymentInstrumentConstants,tb.Modal,tb.ModalInner,tb.OfferPaymentInstrument,tb.OfferPaymentInstrumentConstants,tb.OfferPaymentInstrumentInternal,tb.PageAlert,tb.PageErrorBlock,tb.PaymentInstrumentDetails,tb.PaymentInstrumentDetailsConstants,tb.PaymentInstrumentDetailsInternal,tb.PidlComponent,tb.PidlDocBuilder,tb.PidlInstance,tb.PidlPropertyBuilder,tb.PrefillCheckBox,tb.PrefillCheckBoxInner,tb.ProfilePrerequisite,tb.ProfilePrerequisiteConstants,tb.PropertyLabel,tb.PropertyLabelInner,tb.QuickPayment,tb.Radio,tb.RedeemMSRewards,tb.RedeemMSRewardsConstants,tb.RedeemMSRewardsInternal,tb.ReplaceResource,tb.ResourceHelpersConstants,tb.RiskChallengeConstants,tb.SearchResource,tb.SearchTransactions,tb.SelectMSRewards,tb.SelectMSRewardsConstants,tb.SelectPaymentInstrument,tb.SelectPaymentInstrumentConstants,tb.SelectPaymentMethod,tb.SelectPaymentMethodConstants,tb.SelectPaymentMethodInternal;var tC=tb.SelectResource,tk=tb.SelectResourceType;tb.SelectSingleResource,tb.ShowResource,tb.StyleProviderContext,tb.SubHeading,tb.SubHeadingInner,tb.TestHookRenderPidl,tb.Text,tb.TextBox,tb.TextGroup,tb.TextInner;var tw=tb.UpdateResource,tS=tb.ValidateAddress;tb.ValidateAddressConstants,tb.ValidateResource,tb.VerifyAddress,tb.defaultEnvironment,tb.getClassNamesFromStyleHints,tb.getHtmlAttributesFromTags,tb.getPidlReactCustomProps,tb.getTagClassNames;var t_=tb.pidl;function tE(e){var t=e&&document.querySelector(e)||document,n=t.querySelector("#pidlddc-text-editAddressText")||t.querySelector("#pidlddc-button-editAddressText"),r=t.querySelector("#pidlddc-div-billingAddressShowGroup"),o=t.querySelector("#pidlddc-div-billingAddressEditGroup"),a=t.querySelector("#pidlddc-div-pagebodycontents");if(n&&o&&r)""===r.innerText.trim()?(n.style.display="none",r.style.display="none",o.style.display="block"):(o.style.display="none",n.setAttribute("tabindex","0"),n.setAttribute("role","button"),n.addEventListener("click",function(){return tP(n,r,o)}),n.addEventListener("keydown",function(e){("Space"===e.code||"Enter"===e.code)&&tP(n,r,o)}));else if(a){var s=a.firstElementChild;s&&(s.style.display="none")}}function tP(e,t,n){e.style.display="none",t.style.display="none",n.style.display="block"}function tI(){return ta.default.createElement("style",null," ",'\n            #pidlddc-div-pagebodycontents #pidlddc-text-billingAddressTitle {\n                font-weight: 600;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText {\n                color: rgb(0, 103, 184);\n                cursor: pointer;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText:hover {\n              text-decoration: underline;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText:focus {\n              outline: 1px solid black;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText::before {\n                content: "";\n                font-family: FabricMDL2Icons-11;\n                margin-right: 4px;\n            }\n\n            #pidlddc-div-pagebodycontents #pidlddc-button-editAddressText {\n                height: 18px;\n            }\n\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressTextGroup {\n                display: flex;\n                justify-content: space-between;\n                margin-top: 10px;\n            }\n\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressShowGroup .ms-StackItem  {\n                margin-top: 7px;\n            }\n            \n            /* Spacing for text fields when we edit addresses in Add/Edit PI */\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressEditGroup > .ms-StackItem {\n                padding-top: 7px;\n            }\n    \n            /* pidlddc-div-billingAddressShowGroup is hidden with display: none,\n             * but they are still under a .ms-StackItem, so we need to remove the spacing \n             * that it has along with the extra padding billingAddressEditGroup has by going back -7px twice.\n             */\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressEditGroup {\n                margin-top: -14px;\n            }\n        ')}function tT(e,t){return t&&e?tf(tf({},e),{callbacks:{failure:function(n){var r;t(!1),(null==(r=e.callbacks)?void 0:r.failure)&&e.callbacks.failure(n)},success:function(n){var r;t(!1),(null==(r=e.callbacks)?void 0:r.success)&&e.callbacks.success(n)},gohome:function(n){var r;t(!1),(null==(r=e.callbacks)?void 0:r.gohome)&&e.callbacks.gohome(n)}}}):e}tb.pidlReactClassPrefix,tb.shouldHideInlineError,tb.startsWith;var tD={"af-za":{Next:"Volgende"},"am-et":{Next:"ቀጣይ"},"ar-sa":{Next:"التالي"},"as-in":{Next:"পৰৱৰ্তী"},"az-latn-az":{Next:"N\xf6vbəti"},"be-by":{Next:"Далей"},"bg-bg":{Next:"Напред"},"bn-bd":{Next:"পরবর্তী"},"bn-in":{Next:"পরবর্তী"},"bs-latn-ba":{Next:"Sljedeće"},"ca-es":{Next:"Seg\xfcent"},"ca-es-valencia":{Next:"Seg\xfcent"},"cs-cz":{Next:"Dalš\xed"},"cy-gb":{Next:"Nesaf"},"da-dk":{Next:"N\xe6ste"},"de-de":{Next:"Weiter"},"el-gr":{Next:"Επόμενο"},"en-gb":{Next:"Next"},"en-us":{Next:"Next"},"es-es":{Next:"Siguiente"},"es-mx":{Next:"Siguiente"},"et-ee":{Next:"Edasi"},"eu-es":{Next:"Hurrengoa"},"fa-ir":{Next:"بعدی"},"fi-fi":{Next:"Seuraava"},"fil-ph":{Next:"Susunod"},"fr-ca":{Next:"Suivant"},"fr-fr":{Next:"Suivant"},"ga-ie":{Next:"Ar aghaidh"},"gd-gb":{Next:"Air adhart"},"gl-es":{Next:"Seguinte"},"gu-in":{Next:"આગલું"},"ha-latn-ng":{Next:"Na gaba"},"he-il":{Next:"הבא"},"hi-in":{Next:"अगला"},"hr-hr":{Next:"Dalje"},"hu-hu":{Next:"Tov\xe1bb"},"hy-am":{Next:"Հաջորդը"},"id-id":{Next:"Berikutnya"},"ig-ng":{Next:"Osote"},"is-is":{Next:"\xc1fram"},"it-it":{Next:"Avanti"},"ja-jp":{Next:"次へ"},"ka-ge":{Next:"შემდეგ"},"kk-kz":{Next:"Келесі"},"km-kh":{Next:"បន្ទាប់"},"kn-in":{Next:"ಮುಂದೆ"},"ko-kr":{Next:"다음"},"kok-in":{Next:"फुडलें"},"ku-arab-iq":{Next:"دواتر"},"ky-kg":{Next:"Кийинки"},"lb-lu":{Next:"Weider"},"lo-la":{Next:"ຕໍ່ໄປ"},"lt-lt":{Next:"Pirmyn"},"lv-lv":{Next:"Tālāk"},"mi-nz":{Next:"Panuku"},"mk-mk":{Next:"Следно"},"ml-in":{Next:"അടുത്തത്"},"mn-mn":{Next:"Дараах"},"mr-in":{Next:"पुढील"},"ms-my":{Next:"Seterusnya"},"mt-mt":{Next:"Li Jmiss"},"nb-no":{Next:"Neste"},"ne-np":{Next:"अर्को"},"nl-nl":{Next:"Volgende"},"nn-no":{Next:"Neste"},"nso-za":{Next:"Latela"},"or-in":{Next:"ପରବର୍ତ୍ତି"},"pa-arab-pk":{Next:"‏‏اگلا"},"pa-in":{Next:"ਅੱਗੇ"},"pl-pl":{Next:"Dalej"},"prs-af":{Next:"بعد"},"pt-br":{Next:"Pr\xf3ximo"},"pt-pt":{Next:"Seguinte"},"quc-latn-gt":{Next:"Teren chi uloq"},"quz-pe":{Next:"Qatipay"},"ro-ro":{Next:"Următorul"},"ru-ru":{Next:"Далее"},"rw-rw":{Next:"Gukomeza"},"sd-arab-pk":{Next:"اڳيون"},"si-lk":{Next:"ඊළඟ"},"sk-sk":{Next:"Ďalej"},"sl-si":{Next:"Naprej"},"sq-al":{Next:"Tjet\xebr"},"sr-cyrl-ba":{Next:"Сљедеће"},"sr-cyrl-rs":{Next:"Даље"},"sr-latn-rs":{Next:"Dalje"},"sv-se":{Next:"N\xe4sta"},"sw-ke":{Next:"Ifuatayo"},"ta-in":{Next:"அடுத்து"},"te-in":{Next:"తదుపరి"},"tg-cyrl-tj":{Next:"Навбатӣ"},"th-th":{Next:"ถัดไป"},"ti-et":{Next:"ዝቅጽል"},"tk-tm":{Next:"Indiki"},"tn-za":{Next:"Latelang"},"tr-tr":{Next:"İleri"},"tt-ru":{Next:"Киләсе"},"ug-cn":{Next:"كېيىنكى"},"uk-ua":{Next:"Далі"},"ur-pk":{Next:"اگلا"},"uz-latn-uz":{Next:"Keyingisiga o‘tish"},"vi-vn":{Next:"Ti\xeáp theo"},"wo-sn":{Next:"Li ci Topp"},"xh-za":{Next:"Okulandelayo"},"yo-ng":{Next:"Tókàn"},"zh-cn":{Next:"下一页"},"zh-tw":{Next:"下一步"},"zu-za":{Next:"Okulandelayo"}},tA={},tR=void 0;try{tR=window}catch(e){}function tN(e,t){if(void 0!==tR){var n=tR.__packages__=tR.__packages__||{};n[e]&&tA[e]||(tA[e]=t,(n[e]=n[e]||[]).push(t))}}tN("@fluentui/set-version","6.0.0"),tN("@fluentui/react","8.121.13");var tB="__global__",tM="__shadow_dom_stylesheet__",tF={stylesheetKey:tB,inShadow:!1,window:void 0,__isShadowConfig__:!0},tO=function(e,t,n){return{stylesheetKey:e,inShadow:t,window:n,__isShadowConfig__:!0}},tL=function(e){return!!(e&&tH(e))&&!0===e.__isShadowConfig__};function tH(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function tz(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=[],o=[],a=e;function s(e){for(var t=0,n=e;t<n.length;t++){var l=n[t];if(l&&!tL(l))if("string"==typeof l)if(l.indexOf(" ")>=0)s(l.split(" "));else{var c=a.argsFromClassName(l);c?s(c):-1===r.indexOf(l)&&r.push(l)}else Array.isArray(l)?s(l):"object"==typeof l&&o.push(l)}}return s(t),{classes:r,objects:o}}function tV(e){r!==e&&(r=e)}function tU(){return void 0===r&&(r="u">typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),r}function tj(){return{rtl:tU(),shadowConfig:tF}}r=tU();var tW=0,tq=1,tG=2,tK="__stylesheet__",tX="u">typeof navigator&&/rv:11.0/.test(navigator.userAgent),tY={};try{tY=window||{}}catch(e){}var t$=function(){function e(e,t){var n,r,o,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=tf({injectionMode:"u"<typeof document?tW:tq,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!=(n=null==t?void 0:t.classNameToArgs)?n:this._classNameToArgs,this._counter=null!=(r=null==t?void 0:t.counter)?r:this._counter,this._keyToClassName=null!=(a=null!=(o=this._config.classNameCache)?o:null==t?void 0:t.keyToClassName)?a:this._keyToClassName,this._preservedRules=null!=(s=null==t?void 0:t.preservedRules)?s:this._preservedRules,this._rules=null!=(l=null==t?void 0:t.rules)?l:this._rules}return e.getInstance=function(t){if(o=tY[tK],tY[tM])return tY[tM].getInstance(t);if(!o||o._lastStyleElement&&o._lastStyleElement.ownerDocument!==document){var n=(null==tY?void 0:tY.FabricConfig)||{},r=new e(n.mergeStyles,n.serializedStylesheet);o=r,tY[tK]=r}return o},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=tf(tf({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter(function(t){return t!==e})}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter(function(t){return t!==e})}},e.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[this._getCacheKey(t)]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[this._getCacheKey(e)]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t,n){void 0===n&&(n=tB);var r=this._config.injectionMode,o=r!==tW?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),o)switch(r){case tq:this._insertRuleIntoSheet(o.sheet,e);break;case tG:o.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach(function(t){return t({key:n,sheet:o?o.sheet:void 0,rule:e})})},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(e){return e()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._createStyleElement=function(){var e,t=(null==(e=this._config.window)?void 0:e.document)||document,n=t.head,r=t.createElement("style"),o=null;r.setAttribute("data-merge-styles","true");var a=this._config.cspSettings;if(a&&a.nonce&&r.setAttribute("nonce",a.nonce),this._lastStyleElement)o=this._lastStyleElement.nextElementSibling;else{var s=this._findPlaceholderStyleTag();o=s?s.nextElementSibling:n.childNodes[0]}return n.insertBefore(r,n.contains(o)?o:null),this._lastStyleElement=r,r},e.prototype._insertRuleIntoSheet=function(e,t){if(!e)return!1;try{return e.insertRule(t,e.cssRules.length),!0}catch(e){}return!1},e.prototype._getCacheKey=function(e){return e},e.prototype._getStyleElement=function(){var e=this;return!this._styleElement&&(this._styleElement=this._createStyleElement(),tX||(this._config.window||window).requestAnimationFrame(function(){e._styleElement=void 0})),this._styleElement},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}(),tQ={};function tJ(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=tQ[n]=tQ[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}function tZ(){var e;if(!a){var t="u">typeof document?document:void 0,n="u">typeof navigator?navigator:void 0,r=null==(e=null==n?void 0:n.userAgent)?void 0:e.toLowerCase();a=t?{isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!!(n&&(/rv:11.0/i.test(n.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return a}var t0={"user-select":1};function t1(e,t){var n=tZ(),r=e[t];if(t0[r]){var o=e[t+1];t0[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var t2=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function t5(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=t2.indexOf(n)>-1,a=n.indexOf("--")>-1,s=o||a?"":"px";e[t+1]="".concat(r).concat(s)}}var t4="left",t3="right",t6="@noflip",t8=((s={})[t4]=t3,s[t3]=t4,s),t9={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function t7(e,t,n){if(e.rtl){var r=t[n];if(r){var o=t[n+1];if("string"==typeof o&&o.indexOf(t6)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(t4)>=0)t[n]=r.replace(t4,t3);else if(r.indexOf(t3)>=0)t[n]=r.replace(t3,t4);else if(String(o).indexOf(t4)>=0)t[n+1]=o.replace(t4,t3);else if(String(o).indexOf(t3)>=0)t[n+1]=o.replace(t3,t4);else if(t8[r])t[n]=t8[r];else if(t9[o])t[n+1]=t9[o];else switch(r){case"margin":case"padding":t[n+1]=nt(o);break;case"box-shadow":t[n+1]=ne(o,0)}}}}function ne(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}function nt(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}function nn(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"	":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}var nr="displayName";function no(e){var t=e&&e["&"];return t?t.displayName:void 0}var ni=/\:global\((.+?)\)/g;function na(e){if(!ni.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map(function(e){return":global(".concat(e.trim(),")")}).join(", ")]);return t.reverse().reduce(function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)},e)}function ns(e){return e.indexOf(":global(")>=0||0===e.indexOf(":")}function nl(e,t){if(e.indexOf(":global(")>=0)return e.replace(ni,"$1");if(0===e.indexOf(":host("));else if(0===e.indexOf(":"))return t+e;else if(0>e.indexOf("&"))return t+" "+e;return e}function nc(e,t,n,r,o){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?nu([r],t,n=n+"{"+e,o):n.indexOf(",")>-1?na(n).split(",").map(function(e){return e.trim()}).forEach(function(n){return nu([r],t,nl(n,e),o)}):nu([r],t,nl(n,e),o)}function nu(e,t,n,r){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,s=e;a<s.length;a++){var l=s[a];if("string"==typeof l){var c=r.argsFromClassName(l);c&&nu(c,t,n,r)}else if(Array.isArray(l))nu(l,t,n,r);else for(var u in l)if(l.hasOwnProperty(u)){var d=l[u];if("selectors"===u){var p=l.selectors;for(var f in p)p.hasOwnProperty(f)&&nc(n,t,f,p[f],r)}else"object"==typeof d||ns(u)?null!=d&&nc(n,t,u,d,r):void 0!==d&&("margin"===u||"padding"===u?nd(o,u,d):o[u]=d)}}return t}function nd(e,t,n){var r="string"==typeof n?nn(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map(function(e){return e+" !important"})),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function np(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,a=t.__order;o<a.length;o++){var s=a[o];n.push(s);var l=t[s];for(var c in l)l.hasOwnProperty(c)&&void 0!==l[c]&&(r=!0,n.push(c,l[c]))}return r?n.join(""):void 0}function nf(e,t){return t<=0?"":1===t?e:e+nf(e,t-1)}function nh(e,t){if(!t)return"";var n=[];for(var r in t)t.hasOwnProperty(r)&&r!==nr&&void 0!==t[r]&&n.push(r,t[r]);for(var o=0;o<n.length;o+=2)tJ(n,o),t5(n,o),t7(e,n,o),t1(n,o);for(var o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function nm(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=null!=(t=e.stylesheet)?t:t$.getInstance(e.shadowConfig),a=nu(n,void 0,void 0,o),s=np(e,a);if(s){var l={className:o.classNameFromKey(s),key:s,args:n};if(!l.className){l.className=o.getClassName(no(a));for(var c=[],u=0,d=a.__order;u<d.length;u++){var p=d[u];c.push(p,nh(e,a[p]))}l.rulesToInsert=c}return l}}function ng(e,t,n,r){void 0===t&&(t=1);var o=null!=r?r:t$.getInstance(n),a=e.className,s=e.key,l=e.args,c=e.rulesToInsert;if(c){for(var u=0;u<c.length;u+=2){var d=c[u+1];if(d){var p=c[u];p=p.replace(/&/g,nf(".".concat(e.className),t));var f="".concat(p,"{").concat(d,"}").concat(0===p.indexOf("@")?"}":"");o.insertRule(f)}}o.cacheClassName(a,s,l,c)}}function nv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=nm.apply(void 0,tg([e],t,!1));return r?(ng(r,e.specificityMultiplier,e.shadowConfig,e.stylesheet),r.className):""}function ny(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return nb(e,tj())}function nb(e,t){var n=e instanceof Array?e:[e],r=t||{};tL(n[0])&&(r.shadowConfig=n[0]),r.stylesheet=t$.getInstance(r.shadowConfig);var o=tz(r.stylesheet,n),a=o.classes,s=o.objects;return s.length&&a.push(nv(r,s)),a.join(" ")}function nx(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles&&!tL(e[0]))return e[0];for(var n={},r={},o=0,a=e;o<a.length;o++){var s=a[o];if(s&&!tL(s)){for(var l in s)if(s.hasOwnProperty(l)){if("subComponentStyles"===l&&void 0!==s.subComponentStyles){var c=s.subComponentStyles;for(var u in c)c.hasOwnProperty(u)&&(r.hasOwnProperty(u)?r[u].push(c[u]):r[u]=[c[u]]);continue}var d=n[l],p=s[l];void 0===d?n[l]=p:n[l]=tg(tg([],Array.isArray(d)?d:[d],!0),Array.isArray(p)?p:[p],!0)}}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,h=function(e){if(r.hasOwnProperty(e)){var t=r[e];f[e]=function(e){return nx.apply(void 0,t.map(function(t){return"function"==typeof t?t(e):t}))}}};for(var u in r)h(u)}return n}function nC(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return nk(e,tj())}function nk(e,t){var n,r={subComponentStyles:{}},o=void 0;tL(e[0])?(o=e[0],n=e[1]):n=e[0],null!=o||(o=null==t?void 0:t.shadowConfig);var a=tf(tf({},t),{shadowConfig:o});if(!n&&e.length<=1)return{subComponentStyles:{}};var s=t$.getInstance(o);a.stylesheet=s;var l=nx.apply(void 0,e),c=[];for(var u in l)if(l.hasOwnProperty(u)){if("subComponentStyles"===u){r.subComponentStyles=l.subComponentStyles||{};continue}if("__shadowConfig__"===u)continue;var d=tz(s,l[u]),p=d.classes,f=d.objects;if(null==f?void 0:f.length){var h=nm(a||{},{displayName:u},f);h&&(c.push(h),r[u]=p.concat([h.className]).join(" "))}else r[u]=p.join(" ")}for(var m=0,g=c;m<g.length;m++){var h=g[m];h&&ng(h,null==t?void 0:t.specificityMultiplier,o)}return r}function nw(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,a=t;o<a.length;o++){var s=a[o];s&&r.push("function"==typeof s?s(e):s)}return 1===r.length?r[0]:r.length?nx.apply(void 0,r):{}}function nS(e){var t=t$.getInstance(),n=nh(tj(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}function n_(e){var t=t$.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",nh(tj(),e[r]),"}");var o=n.join(""),a=t.classNameFromKey(o);if(a)return a;var s=t.getClassName();return t.insertRule("@keyframes ".concat(s,"{").concat(o,"}"),!0),t.cacheClassName(s,o,[],["keyframes",o]),s}var nE="u">typeof document&&Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,nP=!1;if(nE)try{document.adoptedStyleSheets.push(),nP=!0}catch(e){nP=!1}var nI=null,nT={};try{nT=window||{}}catch(e){}var nD=function(e,t,n,r){if(void 0===t&&(t=!1),r){var o,a=r.querySelectorAll("[data-merge-styles]");if(a){e.setConfig({window:n,inShadow:t,stylesheetKey:tB});for(var s=0;s<a.length;s++){var l=a[s];l.setAttribute("data-merge-styles-global","true");for(var c=(null==(o=l.sheet)?void 0:o.cssRules)||[],u=0;u<c.length;u++){var d=c[u];e.insertRule(d.cssText)}}}}},nA=(function(e){function t(n,r){var o=e.call(this,n,r)||this;return o._onAddSheetCallbacks=[],o._sheetCounter=0,o._adoptableSheets=new Map,nT[tM]=t,o}tp(t,e),t.getInstance=function(e){var n=e||tF,r=n.stylesheetKey||tB,o=n.inShadow,a=n.window||("u">typeof window?window:void 0),s=a||nT,c=a?a.document:"u">typeof document?document:void 0,u=(l=s[tK])&&!l.getAdoptedSheets;if(!l||u||l._lastStyleElement&&l._lastStyleElement.ownerDocument!==c){var d=(null==s?void 0:s.FabricConfig)||{},p={window:a,inShadow:o,stylesheetKey:r};d.mergeStyles=d.mergeStyles||{},d.mergeStyles=tf(tf({},p),d.mergeStyles);var f=void 0;u?nD(f=new t(d.mergeStyles,JSON.parse(l.serialize())),o,a,c):f=new t(d.mergeStyles,d.serializedStylesheet),l=f,s[tK]=l}else l.setConfig({window:a,inShadow:o,stylesheetKey:r});return a&&l._getAdoptableStyleSheet(r),l},t.prototype.getAdoptedSheets=function(){return this._adoptableSheets},t.prototype.onAddSheet=function(e){var t=this;return this._onAddSheetCallbacks.push(e),function(){t._onAddSheetCallbacks=t._onAddSheetCallbacks.filter(function(t){return t!==e})}},t.prototype.insertRule=function(t,n){var r=this._config,o=r.injectionMode,a=r.stylesheetKey,s=void 0===a?tB:a,l=o!==tW,c=s===tB||!!this._adoptableSheets.has(s),u=void 0;l&&c&&(u=this._getAdoptableStyleSheet(s)),u&&this._insertRuleIntoSheet(u,t),e.prototype.insertRule.call(this,t,n,s)},t.prototype._getCacheKey=function(t){var n=this._config,r=n.inShadow,o=void 0!==r&&r,a=n.stylesheetKey,s=void 0===a?tB:a;return o?"__".concat(s,"__").concat(t):e.prototype._getCacheKey.call(this,t)},t.prototype._createStyleElement=function(){var t=e.prototype._createStyleElement.call(this);return this._config.stylesheetKey===tB&&t.setAttribute("data-merge-styles-global","true"),t},t.prototype._makeCSSStyleSheet=function(){var e=this._config.window||window,t=void 0;return(t=nE?new e.CSSStyleSheet:this._createStyleElement().sheet)&&(t.bucketName="merge-styles",t.metadata={stylesheetKey:this._config.stylesheetKey||tB,sortOrder:this._sheetCounter++}),t},t.prototype._addAdoptableStyleSheet=function(e,t,n){var r=this;if(void 0===n&&(n=!0),!this._adoptableSheets.has(e)){this._adoptableSheets.set(e,t);var o=this._config.window;n&&o&&o.queueMicrotask(function(){r._onAddSheetCallbacks.forEach(function(n){return n({key:e,sheet:t})})})}},t.prototype._getAdoptableStyleSheet=function(e){var t=this._adoptableSheets.get(e);return t||(t=this._makeCSSStyleSheet(),this._addAdoptableStyleSheet(e,t)),t}}(t$),function(e,t){for(var n=0;n<e.cssRules.length;n++)t.insertRule(e.cssRules[n].cssText,n);return t});function nR(e){var t={},n=function(n){if(e.hasOwnProperty(n)){var r;Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=ny(e[n]).toString()),r},enumerable:!0,configurable:!0})}};for(var r in e)n(r);return t}function nN(){return"u">typeof window&&!!(window.document&&window.document.createElement)}tN("@fluentui/merge-styles","8.6.13");var nB=void 0;try{nB=window}catch(e){}function nM(e){if(nN()&&void 0!==nB){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:nB}}var nF=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout(function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._logError(e)}},t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,o=nM(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var a=function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=o.setTimeout(a,0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=nM(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval(function(){try{e.apply(n._parent)}catch(e){n._logError(e)}},t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r,o,a=this;if(this._isDisposed)return this._noop;var s=t||0,l=!0,c=!0,u=0,d=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing);var p=function(t){var n=Date.now(),f=n-u,h=l?s-f:s;return f>=s&&(!t||l)?(u=n,d&&(a.clearTimeout(d),d=null),r=e.apply(a._parent,o)):null===d&&c&&(d=a.setTimeout(p,h)),r};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,p(!0)}},e.prototype.debounce=function(e,t,n){var r,o,a=this;if(this._isDisposed){var s=function(){};return s.cancel=function(){},s.flush=function(){return null},s.pending=function(){return!1},s}var l=t||0,c=!1,u=!0,d=null,p=0,f=Date.now(),h=null;n&&"boolean"==typeof n.leading&&(c=n.leading),n&&"boolean"==typeof n.trailing&&(u=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(d=n.maxWait);var m=function(e){h&&(a.clearTimeout(h),h=null),f=e},g=function(t){m(t),r=e.apply(a._parent,o)},v=function(e){var t=Date.now(),n=!1;e&&(c&&t-p>=l&&(n=!0),p=t);var o=t-p,s=l-o,m=t-f,y=!1;return null!==d&&(m>=d&&h?y=!0:s=Math.min(s,d-m)),o>=l||y||n?g(t):(null===h||!e)&&u&&(h=a.setTimeout(v,s)),r},y=function(){return!!h},b=function(){return y()&&g(Date.now()),r},x=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,v(!0)};return x.cancel=function(){y()&&m(Date.now())},x.flush=b,x.pending=y,x},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=nM(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var a=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=o.requestAnimationFrame?o.requestAnimationFrame(a):o.setTimeout(a,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=nM(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function nO(e){return e&&!!e._virtual}function nL(e){var t;return e&&nO(e)&&(t=e._virtual.parent),t}function nH(e,t){if(void 0===t&&(t=!0),!e)return null;var n,r,o=t&&nL(e);return o||("function"!=typeof e.assignedElements&&(null==(n=e.assignedSlot)?void 0:n.parentNode)?e.assignedSlot:(null==(r=e.parentNode)?void 0:r.nodeType)===11?e.parentNode.host:e.parentNode)}function nz(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var o=nH(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}function nV(e,t,n){return(null!=n||(n=document),!e||e===n.body||e instanceof Document)?null:t(e)?e:nV(nH(e),t)}function nU(e,t,n){var r=nV(e,function(e){return e.hasAttribute(t)},n);return r&&r.getAttribute(t)}var nj=function(e){for(var t=e.activeElement;null==t?void 0:t.shadowRoot;)t=t.shadowRoot.activeElement;return t};function nW(e,t){void 0===t&&(t=!0);var n=[];if(e){for(var r=0;r<e.children.length;r++)n.push(e.children.item(r));t&&nO(e)&&n.push.apply(n,e._virtual.children)}return n}var nq=function(e){var t=e.target;return t&&t.shadowRoot&&(t=e.composedPath()[0]),t},nG="data-portal-element";function nK(e){e.setAttribute(nG,"true")}function nX(e,t,n){var r,o=nV(e,function(e){var n;return t===e||!!(null==(n=e.hasAttribute)?void 0:n.call(e,nG))},n);return null!==o&&!!(null==(r=o.hasAttribute)?void 0:r.call(o,nG))}function nY(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var a=o._virtual.children.indexOf(n);a>-1&&o._virtual.children.splice(a,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}function n$(e){if(nN()&&!("u"<typeof document)){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}tN("@fluentui/dom-utilities","2.3.9");var nQ="data-is-focusable",nJ="data-is-visible",nZ="data-focuszone-id",n0="data-is-sub-focuszone";function n1(e,t,n,r){return n8(e,t,!0,!1,!1,n,void 0,void 0,void 0,r)}function n2(e,t,n,r){return n6(e,t,!0,!1,!0,n,void 0,void 0,r)}function n5(e,t,n,r,o){return void 0===r&&(r=!0),n8(e,t,r,!1,!1,n,!1,!0,void 0,o)}function n4(e,t,n,r,o){return void 0===r&&(r=!0),n6(e,t,r,!1,!0,n,!1,!0,o)}function n3(e,t,n){var r=n8(e,e,!0,!1,!1,!0,void 0,void 0,t,n);return!!r&&(ra(r),!0)}function n6(e,t,n,r,o,a,s,l,c){if(!t||!s&&t===e)return null;var u,d=n9(t);if(o&&d&&(a||!(rt(t)||rn(t)))){var p=n6(e,t.lastElementChild||c&&(null==(u=t.shadowRoot)?void 0:u.lastElementChild),!0,!0,!0,a,s,l,c);if(p){if(l&&re(p,!0,c)||!l)return p;var f=n6(e,p.previousElementSibling,!0,!0,!0,a,s,l,c);if(f)return f;for(var h=p.parentElement;h&&h!==t;){var m=n6(e,h.previousElementSibling,!0,!0,!0,a,s,l,c);if(m)return m;h=h.parentElement}}}if(n&&d&&re(t,l,c))return t;var g=n6(e,t.previousElementSibling,!0,!0,!0,a,s,l,c);return g||(r?null:n6(e,t.parentElement,!0,!1,!1,a,s,l,c))}function n8(e,t,n,r,o,a,s,l,c,u){if(!t||t===e&&o&&!s)return null;var d,p=(c?n7:n9)(t);if(n&&p&&re(t,l,u))return t;if(!o&&p&&(a||!(rt(t)||rn(t)))){var f=n8(e,t.firstElementChild||u&&(null==(d=t.shadowRoot)?void 0:d.firstElementChild),!0,!0,!1,a,s,l,c,u);if(f)return f}if(t===e)return null;var h=n8(e,t.nextElementSibling,!0,!0,!1,a,s,l,c,u);return h||(r?null:n8(e,t.parentElement,!1,!1,!0,a,s,l,c,u))}function n9(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(nJ);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function n7(e,t){var n=null!=t?t:nM();return!!e&&n9(e)&&!e.hidden&&"hidden"!==n.getComputedStyle(e).visibility}function re(e,t,n){if(void 0===n&&(n=!0),!e||e.disabled)return!1;var r=0,o=null;e&&e.getAttribute&&(o=e.getAttribute("tabIndex"))&&(r=parseInt(o,10));var a=e.getAttribute?e.getAttribute(nQ):null,s=null!==o&&r>=0,l=!!n&&!!e.shadowRoot&&!!e.shadowRoot.delegatesFocus,c=!!e&&"false"!==a&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===a||s||l);return t?-1!==r&&c:c}function rt(e){return!!(e&&e.getAttribute&&e.getAttribute(nZ))}function rn(e){return!!(e&&e.getAttribute&&"true"===e.getAttribute(n0))}function rr(e){var t=n$(e),n=t&&t.activeElement;return!!(n&&nz(e,n))}function ro(e,t,n){return"true"!==nU(e,t,null!=n?n:n$())}var ri=void 0;function ra(e){if(e){var t=nM(e);t&&(void 0!==ri&&t.cancelAnimationFrame(ri),ri=t.requestAnimationFrame(function(){e&&e.focus(),ri=void 0}))}}function rs(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var a=o[r],s=n.children[Math.min(a,n.children.length-1)];if(!s)break;n=s}return re(n)&&n9(n)?n:n8(e,n,!0)||n6(e,n)}function rl(e,t){for(var n=[];t&&e&&t!==e;){var r=nH(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}function rc(e){var t=n$();return Array.from(t.querySelectorAll(e)).find(function(e){var n;return n7(e,null!=(n=t.defaultView)?n:void 0)})}function ru(e,t){var n,r=(null!=t?t:!e||e&&e.hasOwnProperty("devicePixelRatio"))?nM():nM(e);return e&&(e===r?n={left:0,top:0,width:r.innerWidth,height:r.innerHeight,right:r.innerWidth,bottom:r.innerHeight}:e.getBoundingClientRect&&(n=e.getBoundingClientRect())),n}function rd(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function rp(e,t){if(!e||!t)return!e&&!t;for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function rf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return rh.apply(this,[null,e].concat(t))}function rh(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,a=n;o<a.length;o++){var s=a[o];if(s)for(var l in s)s.hasOwnProperty(l)&&(!e||e(l))&&(t[l]=s[l])}return t}function rm(e){return Object.keys(e).reduce(function(t,n){return t.push(e[n]),t},[])}function rg(e,t){var n={};for(var r in e)-1===t.indexOf(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var rv=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o,a){var s,l=null!=a?a:n$();if(e._isElement(t)){if(void 0!==l&&l.createEvent){var c=l.createEvent("HTMLEvents");c.initEvent(n,o||!1,!0),rf(c,r),s=t.dispatchEvent(c)}else if(void 0!==l&&l.createEventObject){var u=l.createEventObject(r);t.fireEvent("on"+n,u)}}else for(;t&&!1!==s;){var d=t.__events__,p=d?d[n]:null;if(p){for(var f in p)if(p.hasOwnProperty(f))for(var h=p[f],m=0;!1!==s&&m<h.length;m++){var g=h[m];g.objectCallback&&(s=g.objectCallback.call(g.parent,r))}}t=o?t.parent:null}return s},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"u">typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var a=this;if(n.indexOf(",")>-1)for(var s=n.split(/[ ,]+/),l=0;l<s.length;l++)this.on(t,s[l],r,o);else{var c=this._parent,u={target:t,eventName:n,parent:c,callback:r,options:o},s=t.__events__=t.__events__||{};if(s[n]=s[n]||{count:0},s[n][this._id]=s[n][this._id]||[],s[n][this._id].push(u),s[n].count++,e._isElement(t)){var d=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!a._isDisposed){try{if(e=r.apply(c,t),!1===e&&t[0]){var o=t[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(e){}return e}};u.elementCallback=d,t.addEventListener?t.addEventListener(n,d,o):t.attachEvent&&t.attachEvent("on"+n,d)}else u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!a._isDisposed)return r.apply(c,e)};this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var a=this._eventRecords[o];if((!e||e===a.target)&&(!t||t===a.eventName)&&(!n||n===a.callback)&&("boolean"!=typeof r||r===a.options)){var s=a.target.__events__,l=s[a.eventName],c=l?l[this._id]:null;c&&(1!==c.length&&n?(l.count--,c.splice(c.indexOf(a),1)):(l.count-=c.length,delete s[a.eventName][this._id]),l.count||delete s[a.eventName]),a.elementCallback&&(a.target.removeEventListener?a.target.removeEventListener(a.eventName,a.elementCallback,a.options):a.target.detachEvent&&a.target.detachEvent("on"+a.eventName,a.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}(),ry=0,rb=ny({overflow:"hidden !important"}),rx="data-is-scrollable",rC=function(e,t){var n=nM(e);if(e&&n){var r=0,o=null,a=n.getComputedStyle(e),s=function(e){1===e.targetTouches.length&&(r=e.targetTouches[0].clientY)},l=function(e){if(1===e.targetTouches.length&&(e.stopPropagation(),o)){var t=e.targetTouches[0].clientY-r,s=rP(e.target);s&&o!==s&&(o=s,a=n.getComputedStyle(o));var l=o.scrollTop,c=(null==a?void 0:a.flexDirection)==="column-reverse";0===l&&(c?t<0:t>0)&&e.preventDefault(),o.scrollHeight-Math.abs(Math.ceil(l))<=o.clientHeight&&(c?t>0:t<0)&&e.preventDefault()}};t.on(e,"touchstart",s,{passive:!1}),t.on(e,"touchmove",l,{passive:!1}),o=e}},rk=function(e,t){if(e){var n=function(e){e.stopPropagation()};t.on(e,"touchmove",n,{passive:!1})}},rw=function(e){e.preventDefault()};function rS(){var e=n$();e&&e.body&&!ry&&(e.body.classList.add(rb),e.body.addEventListener("touchmove",rw,{passive:!1,capture:!1})),ry++}function r_(){if(ry>0){var e=n$();e&&e.body&&1===ry&&(e.body.classList.remove(rb),e.body.removeEventListener("touchmove",rw)),ry--}}function rE(e){if(void 0===c){var t=null!=e?e:n$(),n=t.createElement("div");n.style.setProperty("width","100px"),n.style.setProperty("height","100px"),n.style.setProperty("overflow","scroll"),n.style.setProperty("position","absolute"),n.style.setProperty("top","-9999px"),t.body.appendChild(n),c=n.offsetWidth-n.clientWidth,t.body.removeChild(n)}return c}function rP(e){for(var t=e,n=n$(e);t&&t!==n.body;){if("true"===t.getAttribute(rx))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(rx)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=nM(e)),t}var rI=16,rT=100,rD=15,rA=function(){function e(e,t){var n=null!=t?t:nM(e);this._events=new rv(this),this._scrollableParent=rP(e),this._incrementScroll=this._incrementScroll.bind(this),this._scrollRect=ru(this._scrollableParent,n),this._scrollableParent===n&&(this._scrollableParent=n.document.body),this._scrollableParent&&(this._events.on(n,"mousemove",this._onMouseMove,!0),this._events.on(n,"touchmove",this._onTouchMove,!0))}return e.prototype.dispose=function(){this._events.dispose(),this._stopScroll()},e.prototype._onMouseMove=function(e){this._computeScrollVelocity(e)},e.prototype._onTouchMove=function(e){e.touches.length>0&&this._computeScrollVelocity(e)},e.prototype._computeScrollVelocity=function(e){if(this._scrollRect){"clientX"in e?(t=e.clientX,n=e.clientY):(t=e.touches[0].clientX,n=e.touches[0].clientY);var t,n,r,o,a,s=this._scrollRect.top,l=this._scrollRect.left,c=s+this._scrollRect.height-rT,u=l+this._scrollRect.width-rT;n<s+rT||n>c?(o=n,r=s,a=c,this._isVerticalScroll=!0):(o=t,r=l,a=u,this._isVerticalScroll=!1),o<r+rT?this._scrollVelocity=Math.max(-rD,-((rT-(o-r))/rT*rD)):o>a?this._scrollVelocity=Math.min(rD,(o-a)/rT*rD):this._scrollVelocity=0,this._scrollVelocity?this._startScroll():this._stopScroll()}},e.prototype._startScroll=function(){this._timeoutId||this._incrementScroll()},e.prototype._incrementScroll=function(){this._scrollableParent&&(this._isVerticalScroll?this._scrollableParent.scrollTop+=Math.round(this._scrollVelocity):this._scrollableParent.scrollLeft+=Math.round(this._scrollVelocity)),this._timeoutId=setTimeout(this._incrementScroll,rI)},e.prototype._stopScroll=function(){this._timeoutId&&(clearTimeout(this._timeoutId),delete this._timeoutId)},e}(),rR=void 0;function rN(e){rR&&1?rR(e):console&&console.warn&&console.warn(e)}function rB(e,t,n,r,o){if(!0===o)for(var a=0,s=n;a<s.length;a++){var l=s[a];l in t||rN("".concat(e," property '").concat(l,"' is required when '").concat(r,"' is used.'"))}}function rM(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var o=n[r];o&&void 0!==t[o]&&rN("".concat(e," property '").concat(r,"' is mutually exclusive with '").concat(n[r],"'. ")+"Use one or the other.")}}function rF(e,t,n){for(var r in n)if(t&&r in t){var o="".concat(e," property '").concat(r,"' was used but has been deprecated."),a=n[r];a&&(o+=" Use '".concat(a,"' instead.")),rN(o)}}function rO(e,t,n){for(var r=0,o=n.length;r<o;r++)rL(e,t,n[r])}function rL(e,t,n){var r=e[n],o=t[n];(r||o)&&(e[n]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o&&(e=o.apply(this,t)),r!==o&&(e=r.apply(this,t)),e})}function rH(){return null}!function(e){function t(n,r){var o=e.call(this,n,r)||this;return rO(o,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),o}tp(t,e),t.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new nF(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new rv(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){rF(this.className,this.props,e)},t.prototype._warnMutuallyExclusive=function(e){rM(this.className,this.props,e)},t.prototype._warnConditionallyRequiredProps=function(e,t,n){rB(this.className,this.props,e,t,n)},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))}}(ts.Component);var rz=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:void 0===nM()},n}return tp(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout(function(){e.setState({isRendered:!0})},t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?ts.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(ts.Component),rV=function(){return"u">typeof performance&&performance.now?performance.now():Date.now()},rU=18e4;!function(){function e(){}e.measure=function(t,n){e._timeoutId&&e.setPeriodicReset();var r=rV();n();var o=rV(),a=e.summary[t]||{totalDuration:0,count:0,all:[]},s=o-r;a.totalDuration+=s,a.count++,a.all.push({duration:s,timeStamp:o}),e.summary[t]=a},e.reset=function(){e.summary={},clearTimeout(e._timeoutId),e._timeoutId=NaN},e.setPeriodicReset=function(){e._timeoutId=setTimeout(function(){return e.reset()},rU)},e.summary={}}();var rj="__globalSettings__",rW="__callbacks__",rq=0,rG=function(){function e(){}return e.getValue=function(e,t){var n=rK();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=rK(),r=n[rW],o=n[e];if(t!==o){n[e]=t;var a={oldValue:o,value:t,key:e};for(var s in r)r.hasOwnProperty(s)&&r[s](a)}return t},e.addChangeListener=function(e){var t=e.__id__,n=rX();t||(t=e.__id__=String(rq++)),n[t]=e},e.removeChangeListener=function(e){var t=rX();delete t[e.__id__]},e}();function rK(){var e,t=nM()||{};return t[rj]||(t[rj]=((e={})[rW]={},e)),t[rj]}function rX(){return rK()[rW]}var rY=8,r$=9,rQ=13,rJ=16,rZ=17,r0=18,r1=27,r2=32,r5=33,r4=34,r3=35,r6=36,r8=37,r9=38,r7=39,oe=40,ot=46,on=48,or=58,oo=65,oi=67,oa=77,os=80,ol=91,oc=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function ou(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach(function(t){return t&&t.apply(e,n)})}}function od(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(function(e){return e}).join(" ").trim();return""===n?void 0:n}function op(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function of(e,t){var n=op(e,t);if(!(n<0))return e[n]}function oh(e,t){return e.reduce(function(e,n,r){return r%t==0?e.push([n]):e[e.length-1].push(n),e},[])}function om(e,t,n){var r=e.slice();return r.splice(t,0,n),r}function og(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ov(e){var t=null;try{var n=nM();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function oy(e,t){var n;try{null==(n=nM())||n.sessionStorage.setItem(e,t)}catch(e){}}"u">typeof WeakMap&&new WeakMap;var ob="isRTL";function ox(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===u){var t=ov(ob);null!==t&&oC(u="1"===t);var n=n$();void 0===u&&n&&tV(u="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!u}function oC(e,t){void 0===t&&(t=!1);var n=n$();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&oy(ob,e?"1":"0"),tV(u=e)}function ok(e,t){return void 0===t&&(t={}),ox(t)&&(e===r8?e=r7:e===r7&&(e=r8)),e}var ow=50,oS=5,o_=0,oE=t$.getInstance();oE&&oE.onReset&&oE.onReset(function(){return o_++});var oP="__retval__";function oI(e){void 0===e&&(e={});var t=new Map,n=0,r=0,o=o_;return function(a,s){if(void 0===s&&(s={}),e.useStaticStyles&&"function"==typeof a&&a.__noStyleOverride__)return a(s);r++;var l,c=a?a.__shadowConfig__:void 0,u=c&&c.window?c.window:"__default__";t.has(u)||t.set(u,new Map);var d=t.get(u),p=s.theme,f=p&&void 0!==p.rtl?p.rtl:ox(),h=e.disableCaching;if(o!==o_&&(o=o_,t.set(u,new Map),d=t.get(u),n=0),e.disableCaching||(d=oD(t.get(u),a),d=oD(d,s)),(h||!d[oP])&&(void 0===a?d[oP]={}:d[oP]=nk(["function"==typeof a?a(s):a],{shadowConfig:a.__shadowConfig__,rtl:!!f,specificityMultiplier:e.useStaticStyles?oS:void 0}),!h&&n++),n>(e.cacheSize||ow)){var m=nM();(null==(l=null==m?void 0:m.FabricConfig)?void 0:l.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),t.get(u).clear(),n=0,e.disableCaching=!0}return d[oP]}}function oT(e,t){return t=oA(t),e.has(t)||e.set(t,new Map),e.get(t)}function oD(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=oT(e,r[n]);else e=oT(e,t);else if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=oT(e,t[o]));return e}function oA(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}var oR=!1,oN=0,oB={empty:!0},oM={},oF="u"<typeof WeakMap?null:WeakMap;function oO(){oN++}function oL(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!oF)return e;if(!oR){var r,o=t$.getInstance();o&&o.onReset&&t$.getInstance().onReset(oO),oR=!0}var a=0,s=oN;return function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];var c=r;(void 0===r||s!==oN||t>0&&a>t)&&(r=oV(),a=0,s=oN),c=r;for(var u=0;u<o.length;u++){var d=oz(o[u]);c.map.has(d)||c.map.set(d,oV()),c=c.map.get(d)}return!c.hasOwnProperty("value")&&(c.value=e.apply(void 0,o),a++),n&&(null===c.value||void 0===c.value)&&(c.value=e.apply(void 0,o)),c.value}}function oH(e){if(!oF)return e;var t=new oF;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function oz(e){return e?"object"==typeof e||"function"==typeof e?e:(oM[e]||(oM[e]={val:e}),oM[e]):oB}function oV(){return{map:oF?new oF:null}}function oU(e){var t=e;return oH(function(n){if(e===n)throw Error("Attempted to compose a component with itself.");var r=n,o=oH(function(e){return function(t){return ts.createElement(r,tf({},t,{defaultRender:e}))}});return function(e){var n=e.defaultRender;return ts.createElement(t,tf({},e,{defaultRender:n?o(n):r}))}})}var oj=oH(oU);function oW(e,t){return oj(e)(t)}function oq(e,t){return void 0!==e[t]&&null!==e[t]}function oG(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var a=o[r];if(a)if("string"==typeof a)n.push(a);else if(a.hasOwnProperty("toString")&&"function"==typeof a.toString)n.push(a.toString());else for(var s in a)a[s]&&n.push(s)}return n.join(" ")}var oK="customizations",oX={settings:{},scopedSettings:{},inCustomizerContext:!1},oY=rG.getValue(oK,{settings:{},scopedSettings:{},inCustomizerContext:!1}),o$=[],oQ=function(){function e(){}return e.reset=function(){oY.settings={},oY.scopedSettings={}},e.applySettings=function(t){oY.settings=tf(tf({},oY.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){oY.scopedSettings[t]=tf(tf({},oY.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=oX);for(var r={},o=t&&n.scopedSettings[t]||{},a=t&&oY.scopedSettings[t]||{},s=0,l=e;s<l.length;s++){var c=l[s];r[c]=o[c]||n.settings[c]||a[c]||oY.settings[c]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){o$.push(e)},e.unobserve=function(e){o$=o$.filter(function(t){return t!==e})},e._raiseChange=function(){e._suppressUpdates||o$.forEach(function(e){return e()})},e}(),oJ=ts.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function oZ(e,t){return void 0===e&&(e={}),(o1(t)?t:o2(t))(e)}function o0(e,t){return void 0===e&&(e={}),(o1(t)?t:o5(t))(e)}function o1(e){return"function"==typeof e}function o2(e){return function(t){return e?tf(tf({},t),e):t}}function o5(e){return void 0===e&&(e={}),function(t){var n=tf({},t);for(var r in e)e.hasOwnProperty(r)&&(n[r]=tf(tf({},t[r]),e[r]));return n}}function o4(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:oZ(r.settings,e.settings),scopedSettings:o0(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}var o3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return tp(t,e),t.prototype.componentDidMount=function(){oQ.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){oQ.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return ts.createElement(oJ.Consumer,null,function(n){var r=o4(e.props,n);return t&&(r=t(r)),ts.createElement(oJ.Provider,{value:r},e.props.children)})},t}(ts.Component);function o6(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var o8=function(){return!1},o9=function(){return tF},o7=function(){return new Map},ie=function(){},it=function(){return{stylesheets:new Map,useAdoptedStylesheetEx:o8,useAdoptedStylesheet:o8,useShadowConfig:o9,useMergeStylesShadowRootContext:ie,useHasMergeStylesShadowRootContext:o8,useMergeStylesRootStylesheets:o7,useWindow:ie,useStyled:ie}},ir=ts.createContext(it()),io=function(){var e=ts.useContext(ir);return{useAdoptedStylesheet:e.useAdoptedStylesheet,useAdoptedStylesheetEx:e.useAdoptedStylesheetEx,useShadowConfig:e.useShadowConfig,useMergeStylesShadowRootContext:e.useMergeStylesShadowRootContext,useHasMergeStylesShadowRootContext:e.useHasMergeStylesShadowRootContext,useMergeStylesRootStylesheets:e.useMergeStylesRootStylesheets,useWindow:e.useWindow,useStyled:e.useStyled}},ii=ts.createContext(void 0),ia=function(){return!!is()},is=function(){return ts.useContext(ii)},il=function(e){var t=e.stylesheetKey,n=e.children,r=io(),o=r.useAdoptedStylesheetEx,a=r.useMergeStylesRootStylesheets,s=r.useWindow,l=is(),c=a(),u=s();return o(tB,l,c,u),o(t,l,c,u),n(!!l)},ic=ts.createContext({window:"object"==typeof window?window:void 0}),iu=function(){return ts.useContext(ic).window},id=function(){var e;return null==(e=ts.useContext(ic).window)?void 0:e.document};tN("@fluentui/react-window-provider","2.2.28");var ip=oL(tO),ih=oL(function(e,t,n){var r,o=null!=(r=null!=t?t:e)?r:{};return o.__shadowConfig__=n,o});function im(e,t,n){return function(r){var o,a=((o=function(o){function a(e){var t=o.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return tp(a,o),a.prototype.componentDidMount=function(){oQ.observe(this._onSettingChanged)},a.prototype.componentWillUnmount=function(){oQ.unobserve(this._onSettingChanged)},a.prototype.render=function(){var o=this;return ts.createElement(il,{stylesheetKey:e},function(a){return ts.createElement(oJ.Consumer,null,function(s){var l,c=oQ.getSettings(t,e,s.customizations),u=ip(e,a,null!=(l=o.context.window)?l:nM()),d=o.props;if(c.styles&&"function"==typeof c.styles&&(c.styles=c.styles(tf(tf({},c),d))),n&&c.styles){if(o._styleCache.default!==c.styles||o._styleCache.component!==d.styles){var p=nx(c.styles,d.styles);p.__shadowConfig__=u,o._styleCache.default=c.styles,o._styleCache.component=d.styles,o._styleCache.merged=p}return ts.createElement(r,tf({},c,d,{styles:o._styleCache.merged}))}var f=ih(c.styles,d.styles,u);return ts.createElement(r,tf({},c,d,{styles:f}))})})},a.prototype._onSettingChanged=function(){this.forceUpdate()},a}(ts.Component)).displayName="Customized"+e,o.contextType=ic,o);return o6(r,a)}}function ig(e,t){var n=iv(),r=ts.useContext(oJ).customizations,o=r.inCustomizerContext;return ts.useEffect(function(){return o||oQ.observe(n),function(){o||oQ.unobserve(n)}},[o]),oQ.getSettings(e,t,r)}function iv(){var e=ts.useState(0)[1];return function(){return e(function(e){return++e})}}function iy(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=ou(e,e[n],t[n]))}var ib="__currentId__",ix="id__",iC=nM()||{};void 0===iC[ib]&&(iC[ib]=0);var ik=!1;function iw(e){if(!ik){var t=t$.getInstance();t&&t.onReset&&t.onReset(iS),ik=!0}return(void 0===e?ix:e)+iC[ib]++}function iS(e){void 0===e&&(e=0),iC[ib]=e}var i_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var a=o[r],s=Array.isArray(a)?a:Object.keys(a),l=0,c=s;l<c.length;l++)n[c[l]]=1;return n},iE=i_(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),iP=i_(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),iI=i_(iP,iE),iT=i_(iI,["form"]),iD=i_(iI,["height","loop","muted","preload","src","width"]),iA=i_(iD,["poster"]),iR=i_(iI,["start"]),iN=i_(iI,["value"]),iB=i_(iI,["download","href","hrefLang","media","rel","target","type"]),iM=i_(iI,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),iF=i_(iM,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),iO=i_(iM,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),iL=i_(iM,["form","multiple","required"]),iH=i_(iI,["selected","value"]),iz=i_(iI,["cellPadding","cellSpacing"]),iV=iI,iU=i_(iI,["rowSpan","scope"]),ij=i_(iI,["colSpan","headers","rowSpan","scope"]),iW=i_(iI,["span"]),iq=i_(iI,["span"]),iG=i_(iI,["acceptCharset","action","encType","encType","method","noValidate","target"]),iK=i_(iI,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),iX=i_(iI,["alt","crossOrigin","height","src","srcSet","useMap","width"]),iY=iI;function i$(e,t,n){for(var r=Array.isArray(t),o={},a=Object.keys(e),s=0,l=a;s<l.length;s++){var c=l[s];(!r&&t[c]||r&&t.indexOf(c)>=0||0===c.indexOf("data-")||0===c.indexOf("aria-"))&&(!n||(null==n?void 0:n.indexOf(c))===-1)&&(o[c]=e[c])}return o}var iQ={label:iT,audio:iD,video:iA,ol:iR,li:iN,a:iB,button:iM,input:iF,textarea:iO,select:iL,option:iH,table:iz,tr:iV,th:iU,td:ij,colGroup:iW,col:iq,form:iG,iframe:iK,img:iX};function iJ(e,t,n){return i$(t,e&&iQ[e]||iI,n)}var iZ=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function i0(e,t,n){void 0===n&&(n=iZ);var r=[],o=function(o){"function"!=typeof t[o]||void 0!==e[o]||n&&-1!==n.indexOf(o)||(r.push(o),e[o]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t[o].apply(t,e)})};for(var a in t)o(a);return r}function i1(e,t){t.forEach(function(t){return delete e[t]})}function i2(e){iy(e,{componentDidMount:i5,componentDidUpdate:i4,componentWillUnmount:i3})}function i5(){i6(this.props.componentRef,this)}function i4(e){e.componentRef!==this.props.componentRef&&(i6(e.componentRef,null),i6(this.props.componentRef,this))}function i3(){i6(this.props.componentRef,null)}function i6(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}var i8=((d={})[r9]=1,d[oe]=1,d[r8]=1,d[r7]=1,d[r6]=1,d[r3]=1,d[r$]=1,d[r5]=1,d[r4]=1,d);function i9(e){return!!i8[e]}var i7="ms-Fabric--isFocusVisible",ae="ms-Fabric--isFocusHidden";function at(e,t){e&&(e.classList.add(t?i7:ae),e.classList.remove(t?ae:i7))}function an(e,t,n){var r;n?n.forEach(function(t){return at(t.current,e)}):at(null==(r=nM(t))?void 0:r.document.body,e)}var ar=new WeakMap,ao=new WeakMap;function ai(e,t){var n,r=ar.get(e);return n=r?r+t:1,ar.set(e,n),n}function aa(e){var t=ao.get(e);return t||(t={onMouseDown:function(t){return au(t,e.registeredProviders)},onPointerDown:function(t){return ad(t,e.registeredProviders)},onKeyDown:function(t){return ap(t,e.registeredProviders)},onKeyUp:function(t){return af(t,e.registeredProviders)}},ao.set(e,t)),t}var as=ts.createContext(void 0);function al(e){var t=ts.useContext(as);ts.useEffect(function(){var n,r,o,a,s,l,c,u,d=nM(null==e?void 0:e.current);if(d&&(null==(n=d.FabricConfig)?void 0:n.disableFocusRects)!==!0){var p=d;if((null==(r=null==t?void 0:t.providerRef)?void 0:r.current)&&(null==(a=null==(o=null==t?void 0:t.providerRef)?void 0:o.current)?void 0:a.addEventListener)){p=t.providerRef.current;var f=aa(t);s=f.onMouseDown,l=f.onPointerDown,c=f.onKeyDown,u=f.onKeyUp}else s=au,l=ad,c=ap,u=af;var h=ai(p,1);return h<=1&&(p.addEventListener("mousedown",s,!0),p.addEventListener("pointerdown",l,!0),p.addEventListener("keydown",c,!0),p.addEventListener("keyup",u,!0)),function(){var e;d&&(null==(e=d.FabricConfig)?void 0:e.disableFocusRects)!==!0&&0===(h=ai(p,-1))&&(p.removeEventListener("mousedown",s,!0),p.removeEventListener("pointerdown",l,!0),p.removeEventListener("keydown",c,!0),p.removeEventListener("keyup",u,!0))}}},[t,e])}var ac=function(e){return al(e.rootRef),null};function au(e,t){an(!1,e.target,t)}function ad(e,t){"mouse"!==e.pointerType&&an(!1,e.target,t)}function ap(e,t){i9(e.which)&&an(!0,e.target,t)}function af(e,t){i9(e.which)&&an(!0,e.target,t)}var ah=function(e){var t=e.providerRef,n=e.layerRoot,r=ts.useState([])[0],o=ts.useContext(as),a=void 0!==o&&!n,s=ts.useMemo(function(){return a?void 0:{providerRef:t,registeredProviders:r,registerProvider:function(e){r.push(e),null==o||o.registerProvider(e)},unregisterProvider:function(e){null==o||o.unregisterProvider(e);var t=r.indexOf(e);t>=0&&r.splice(t,1)}}},[t,r,o,a]);return(ts.useEffect(function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}},[s]),s)?ts.createElement(as.Provider,{value:s},e.children):ts.createElement(ts.Fragment,null,e.children)},am=/[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g,ag=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,av=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,ay=/\s+/g,ab=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function ax(e,t){var n="",r=e.split(" ");return(2===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[1].charAt(0).toUpperCase()):3===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[2].charAt(0).toUpperCase()):0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),t&&n.length>1)?n.charAt(1)+n.charAt(0):n}function aC(e){return(e=(e=(e=e.replace(am,"")).replace(ag,"")).replace(ay," ")).trim()}function ak(e,t,n){return e?(e=aC(e),ab.test(e)||!n&&av.test(e))?"":ax(e,t):""}function aw(e){var t=null;try{var n=nM();t=n?n.localStorage.getItem(e):null}catch(e){}return t}var aS="language";function a_(e){if(void 0===e&&(e="sessionStorage"),void 0===p){var t=n$(),n="localStorage"===e?aw(aS):"sessionStorage"===e?ov(aS):void 0;n&&(p=n),void 0===p&&t&&(p=t.documentElement.getAttribute("lang")),void 0===p&&(p="en")}return p}function aE(e,t){var n=e.left||e.x||0,r=e.top||e.y||0;return Math.sqrt(Math.pow(n-(t.left||t.x||0),2)+Math.pow(r-(t.top||t.y||0),2))}function aP(e){var t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}function aI(e,t,n){void 0===n&&(n=10);var r=Math.pow(n,t);return Math.round(e*r)/r}function aT(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)aD(e||{},o[r]);return e}function aD(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!=typeof o||null===o||Array.isArray(o))e[r]=o;else{var a=n.indexOf(o)>-1;e[r]=a?o:aD(e[r]||{},o,n)}}return n.pop(),e}var aA=function(){return!!window&&!!window.navigator&&!!window.navigator.userAgent&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},aR=["TEMPLATE","STYLE","SCRIPT"];function aN(e){var t=n$(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,o=e.parentElement.children;r<o.length;r++){var a=o[r],s=a.getAttribute("aria-hidden");a!==e&&(null==s?void 0:s.toLowerCase())!=="true"&&-1===aR.indexOf(a.tagName)&&n.push([a,s])}e=e.parentElement}return n.forEach(function(e){e[0].setAttribute("aria-hidden","true")}),function(){aB(n),n=[]}}function aB(e){e.forEach(function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")})}function aM(e){var t;if(void 0===f||e){var n=nM(),r=null==(t=null==n?void 0:n.navigator)?void 0:t.userAgent;f=!!r&&-1!==r.indexOf("Macintosh")}return!!f}function aF(e){return e.clientWidth<e.scrollWidth}function aO(e){return e.clientHeight<e.scrollHeight}function aL(e){return aF(e)||aO(e)}function aH(e){return oH(function(t){var n=oH(function(e){return function(n){return t(n,e)}});return function(r,o){return e(r,o?n(o):t)}})}var az=oH(aH);function aV(e,t){return az(e)(t)}var aU=function(e){var t;return function(n){t||(t=new Set,iy(e,{componentWillUnmount:function(){t.forEach(function(e){return cancelAnimationFrame(e)})}}));var r=requestAnimationFrame(function(){t.delete(r),n()});t.add(r)}},aj="change",aW="items-change";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(h||(h={})),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(m||(m={}));var aq=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0]||{},r=n.onSelectionChanged,o=n.onItemsChanged,a=n.getKey,s=n.canSelectItem,l=void 0===s?function(){return!0}:s,c=n.items,u=n.selectionMode,d=void 0===u?h.multiple:u;this.mode=d,this._getKey=a||aG,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=r,this._onItemsChanged=o,this._canSelectItem=l,this._keyToIndexMap={},this._isModal=!1,this.setItems(c||[],!0),this.count=this.getSelectedCount()}return e.prototype.canSelectItem=function(e,t){return("number"!=typeof t||!(t<0))&&this._canSelectItem(e,t)},e.prototype.getKey=function(e,t){var n=this._getKey(e,t);return"number"==typeof n||n?"".concat(n):""},e.prototype.setChangeEvents=function(e,t){this._changeEventSuppressionCount+=e?-1:1,0===this._changeEventSuppressionCount&&this._hasChanged&&(this._hasChanged=!1,t||this._change())},e.prototype.isModal=function(){return this._isModal},e.prototype.setModal=function(e){this._isModal!==e&&(this.setChangeEvents(!1),this._isModal=e,e||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},e.prototype.setItems=function(e,t){void 0===t&&(t=!0);var n={},r={},o=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var a=!1,s=0;s<e.length;s++){var l=e[s];if(l){var c=this.getKey(l,s);c&&(a||c in this._keyToIndexMap&&this._keyToIndexMap[c]===s||(a=!0),n[c]=s)}r[s]=l&&!this.canSelectItem(l),r[s]&&this._unselectableCount++}(t||0===e.length)&&this._setAllSelected(!1,!0);var u={},d=0;for(var p in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(p)){var f=Number(p),l=this._items[f],h=l?this.getKey(l,Number(f)):void 0,m=h?n[h]:f;void 0===m?o=!0:(u[m]=!0,d++,o=o||m!==f)}if(this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(o=!0),!a)for(var g=0,v=Object.keys(this._keyToIndexMap);g<v.length;g++){var c=v[g];if(!(c in n)){a=!0;break}}this._exemptedIndices=u,this._exemptedCount=d,this._keyToIndexMap=n,this._unselectableIndices=r,this._items=e,this._selectedItems=null,o&&this._updateCount(),a&&(rv.raise(this,aW),this._onItemsChanged&&this._onItemsChanged()),o&&this._change(),this.setChangeEvents(!0)},e.prototype.getItems=function(){return this._items},e.prototype.getSelection=function(){if(!this._selectedItems){this._selectedItems=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedItems.push(e[t])}return this._selectedItems},e.prototype.getSelectedCount=function(){return this._isAllSelected?this._items.length-this._exemptedCount-this._unselectableCount:this._exemptedCount},e.prototype.getSelectedIndices=function(){if(!this._selectedIndices){this._selectedIndices=[];var e=this._items;if(e)for(var t=0;t<e.length;t++)this.isIndexSelected(t)&&this._selectedIndices.push(t)}return this._selectedIndices},e.prototype.getItemIndex=function(e){var t=this._keyToIndexMap[e];return null!=t?t:-1},e.prototype.isRangeSelected=function(e,t){if(0===t)return!1;for(var n=e+t,r=e;r<n;r++)if(!this.isIndexSelected(r))return!1;return!0},e.prototype.isAllSelected=function(){var e=this._items.length-this._unselectableCount;return this.mode===h.single&&(e=Math.min(e,1)),this.count>0&&this._isAllSelected&&0===this._exemptedCount||!this._isAllSelected&&this._exemptedCount===e&&e>0},e.prototype.isKeySelected=function(e){var t=this._keyToIndexMap[e];return this.isIndexSelected(t)},e.prototype.isIndexSelected=function(e){return!!(this.count>0&&this._isAllSelected&&!this._exemptedIndices[e]&&!this._unselectableIndices[e]||!this._isAllSelected&&this._exemptedIndices[e])},e.prototype.setAllSelected=function(e){if(!e||this.mode===h.multiple){var t=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),t>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount()),this.setChangeEvents(!0)}},e.prototype.setKeySelected=function(e,t,n){var r=this._keyToIndexMap[e];r>=0&&this.setIndexSelected(r,t,n)},e.prototype.setIndexSelected=function(e,t,n){if(this.mode!==h.none&&!((e=Math.min(Math.max(0,e),this._items.length-1))<0)&&!(e>=this._items.length)){this.setChangeEvents(!1);var r=this._exemptedIndices[e],o=!this._unselectableIndices[e];o&&(t&&this.mode===h.single&&this._setAllSelected(!1,!0),r&&(t&&this._isAllSelected||!t&&!this._isAllSelected)&&(delete this._exemptedIndices[e],this._exemptedCount--),!r&&(t&&!this._isAllSelected||!t&&this._isAllSelected)&&(this._exemptedIndices[e]=!0,this._exemptedCount++),n&&(this._anchoredIndex=e)),this._updateCount(),this.setChangeEvents(!0)}},e.prototype.setRangeSelected=function(e,t,n,r){if(this.mode!==h.none&&(e=Math.min(Math.max(0,e),this._items.length-1),t=Math.min(Math.max(0,t),this._items.length-e),!(e<0)&&!(e>=this._items.length)&&0!==t)){this.setChangeEvents(!1);for(var o=this._anchoredIndex||0,a=e,s=e+t-1,l=o>=s?a:s;a<=s;a++)this.setIndexSelected(a,n,!!r&&a===l);this.setChangeEvents(!0)}},e.prototype.selectToKey=function(e,t){this.selectToIndex(this._keyToIndexMap[e],t)},e.prototype.selectToRange=function(e,t,n){if(this.mode!==h.none){if(this.mode===h.single){1===t&&this.setIndexSelected(e,!0,!0);return}var r=this._anchoredIndex||0,o=Math.min(e,r),a=Math.max(e+t-1,r);for(this.setChangeEvents(!1),n&&this._setAllSelected(!1,!0);o<=a;o++)this.setIndexSelected(o,!0,!1);this.setChangeEvents(!0)}},e.prototype.selectToIndex=function(e,t){if(this.mode!==h.none){if(this.mode===h.single)return void this.setIndexSelected(e,!0,!0);var n=this._anchoredIndex||0,r=Math.min(e,n),o=Math.max(e,n);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);r<=o;r++)this.setIndexSelected(r,!0,!1);this.setChangeEvents(!0)}},e.prototype.toggleAllSelected=function(){this.setAllSelected(!this.isAllSelected())},e.prototype.toggleKeySelected=function(e){this.setKeySelected(e,!this.isKeySelected(e),!0)},e.prototype.toggleIndexSelected=function(e){this.setIndexSelected(e,!this.isIndexSelected(e),!0)},e.prototype.toggleRangeSelected=function(e,t){if(this.mode!==h.none){var n=this.isRangeSelected(e,t),r=e+t;if(this.mode!==h.single||!(t>1)){this.setChangeEvents(!1);for(var o=e;o<r;o++)this.setIndexSelected(o,!n,!1);this.setChangeEvents(!0)}}},e.prototype._updateCount=function(e){void 0===e&&(e=!1);var t=this.getSelectedCount();t!==this.count&&(this.count=t,this._change()),this.count||e||this.setModal(!1)},e.prototype._setAllSelected=function(e,t){if(void 0===t&&(t=!1),!e||this.mode===h.multiple){var n=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),n>0&&(this._exemptedCount>0||e!==this._isAllSelected)&&(this._exemptedIndices={},(e!==this._isAllSelected||this._exemptedCount>0)&&(this._exemptedCount=0,this._isAllSelected=e,this._change()),this._updateCount(t)),this.setChangeEvents(!0)}},e.prototype._change=function(){0===this._changeEventSuppressionCount?(this._selectedItems=null,this._selectedIndices=void 0,rv.raise(this,aj),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function aG(e,t){var n=(e||{}).key;return void 0===n?"".concat(t):n}var aK=/[\{\}]/g,aX=/\{\d+\}/g;function aY(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t;function o(e){var t=r[e.replace(aK,"")];return null==t&&(t=""),t}return e.replace(aX,o)}var a$=function(){return ts.useContext(ir).stylesheets},aQ=function(e,t,n,r){var o=ts.useRef({});if(ts.useEffect(function(){if(t){var e=o.current;return o.current={},function(){Object.keys(e).forEach(function(t){e[t]()})}}},[r,e,t]),!t)return!1;if(t.shadowRoot&&!t.stylesheets.has(e)){var a=n.get(e);a&&(null==r?void 0:r.document)&&aZ(t,r.document,e,a,o.current)}return!0},aJ=function(e,t,n){var r=e.shadowRoot.querySelector('[data-merge-styles-stylesheet-key="'.concat(t,'"]'));(null==r?void 0:r.sheet)&&r.sheet.insertRule(n)},aZ=function(e,t,n,r,o){var a,s,l,c,u,d=e.shadowRoot;if(e.stylesheets.set(n,r),nE){for(var p=d.adoptedStyleSheets,f=p.length,h=0===f;f>=0&&!h;){var m=p[--f],g=null!=(s=null==(a=m.metadata)?void 0:a.sortOrder)?s:0,v=null!=(c=null==(l=r.metadata)?void 0:l.sortOrder)?c:0;"merge-styles"===m.bucketName&&g<v&&(h=!0)}nI?d.adoptedStyleSheets.splice(f+1,0,r):d.adoptedStyleSheets=tg(tg(tg([],d.adoptedStyleSheets.slice(0,f+1),!0),[r],!1),d.adoptedStyleSheets.slice(f+1),!0)}else{var y=t.createElement("style");y.setAttribute("data-merge-styles-stylesheet-key",n);var b=d.querySelectorAll("[data-merge-styles-stylesheet-key]");if(b.length>0?d.insertBefore(y,b[b.length-1].nextSibling):d.insertBefore(y,d.firstChild),y.sheet&&(nA(r,y.sheet),!o[n])){var x=function(t){var r=t.key,o=t.rule;r===n&&e&&o&&aJ(e,r,o)},C=t$.getInstance(tO(n,!0,null!=(u=t.defaultView)?u:void 0));o[n]=C.onInsertRule(x)}}},a0=(ts.createContext(it()),["theme","styles"]);function a1(e,t,n,r,o){var a=(r=r||{scope:"",fields:void 0}).scope,s=r.fields,l=void 0===s?a0:s,c=ts.forwardRef(function(r,o){var s=ts.useRef(),c=ig(l,a),u=c.styles,d=(c.dir,th(c,["styles","dir"])),p=n?n(r):void 0,f=io().useStyled,h=s.current&&s.current.__cachedInputs__||[],m=r.styles;if(!s.current||u!==h[1]||m!==h[2]){var g=function(e){return nw(e,t,u,m)};g.__cachedInputs__=[t,u,m],g.__noStyleOverride__=!u&&!m,s.current=g}return s.current.__shadowConfig__=f(a),ts.createElement(e,tf({ref:o},d,p,r,{styles:s.current}))});c.displayName="Styled".concat(e.displayName||e.name);var u=o?ts.memo(c):c;return c.displayName&&(u.displayName=c.displayName),u}function a2(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,o=e.props,a=e.oldProps,s=e.onChangeProp,l=e.readOnlyProp,c=e.valueProp,u=a?oq(a,c):void 0,d=oq(o,c);if(d){var p=!!o[s],f=!!(l&&o[l]);p||f||g.valueOnChange[t]||(g.valueOnChange[t]=!0,rN("Warning: You provided a '".concat(String(c),"' prop to a ").concat(String(n)," without an '").concat(String(s),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(r),"'. ")+"Otherwise, set '".concat(String(s),"'").concat(l?" or '".concat(String(l),"'"):"","."))),null==o[r]||g.valueDefaultValue[t]||(g.valueDefaultValue[t]=!0,rN("Warning: You provided both '".concat(String(c),"' and '").concat(String(r),"' to a ").concat(n,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(c),"' prop, ")+"or the '".concat(String(r),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(n," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(a&&d!==u){var h=u?"a controlled":"an uncontrolled",m=u?"uncontrolled":"controlled",v=u?g.controlledToUncontrolled:g.uncontrolledToControlled;v[t]||(v[t]=!0,rN("Warning: A component is changing ".concat(h," ").concat(n," to be ").concat(m,". ")+"".concat(n,"s should not switch from controlled to uncontrolled (or vice versa). ")+"Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}g={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var a5=function(){var e,t=nM();return!!(null==(e=null==t?void 0:t.navigator)?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1};function a4(e,t){for(var n=tf({},t),r=0,o=Object.keys(e);r<o.length;r++){var a=o[r];void 0===n[a]&&(n[a]=e[a])}return n}var a3=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(t):o&&(o.current=t)}}},a6=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&og(t.refs,e)||(t.resolver=a3(t)),t.refs=e,t.resolver}},a8=nN()?ts.useLayoutEffect:ts.useEffect;tN("@fluentui/utilities","8.15.19");var a9="icons",a7=rG.getValue(a9,{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),se=t$.getInstance();se&&se.onReset&&se.onReset(function(){for(var e in a7)a7.hasOwnProperty(e)&&a7[e].subset&&(a7[e].subset.className=void 0)});var st=function(e){return e.toLowerCase()};function sn(e,t){var n=tf(tf({},e),{isRegistered:!1,className:void 0}),r=e.icons;for(var o in t=t?tf(tf({},a7.__options),t):a7.__options,r)if(r.hasOwnProperty(o)){var a=r[o],s=st(o);a7[s]?ss(o):a7[s]={code:a,subset:n}}}function sr(e,t){a7.__remapped[st(e)]=st(t)}function so(e){var t=void 0,n=a7.__options;if(e=e?st(e):"",e=a7.__remapped[e]||e)if(t=a7[e]){var r=t.subset;r&&r.fontFace&&(r.isRegistered||(nS(r.fontFace),r.isRegistered=!0),r.className||(r.className=ny(r.style,{fontFamily:r.fontFace.fontFamily,fontWeight:r.fontFace.fontWeight||"normal",fontStyle:r.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&rN('The icon "'.concat(e,'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.'));return t}var si=null,sa=null;function ss(e){var t=a7.__options,n=2e3,r=10;t.disableWarnings||(si.push(e),void 0===sa&&(sa=setTimeout(function(){rN("Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: \n"+si.slice(0,r).join(", ")+(si.length>r?" (+ ".concat(si.length-r," more)"):"")),sa=void 0,si=[]},n)))}function sl(e,t,n,r,o){return void 0===o&&(o=!1),su(sc(e,t,tf({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function sc(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,f=s.themeDarkAlt,h=s.themeLighter,m=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,x=s.neutralPrimary,C=s.neutralSecondary,k=s.neutralSecondaryAlt,w=s.neutralTertiary,S=s.neutralTertiaryAlt,_=s.neutralLighterAlt,E=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),p&&(a.linkHovered=p),f&&(a.primaryButtonBackgroundHovered=f),h&&(a.inputPlaceholderBackgroundChecked=h),m&&(a.bodyBackgroundChecked=m,a.bodyFrameDivider=m,a.bodyDivider=m,a.variantBorder=m,a.buttonBackgroundCheckedHovered=m,a.buttonBackgroundPressed=m,a.listItemBackgroundChecked=m,a.listHeaderBackgroundPressed=m,a.menuItemBackgroundPressed=m,a.menuItemBackgroundChecked=m),g&&(a.bodyBackgroundHovered=g,a.buttonBackgroundHovered=g,a.buttonBackgroundDisabled=g,a.buttonBorderDisabled=g,a.primaryButtonBackgroundDisabled=g,a.disabledBackground=g,a.listItemBackgroundHovered=g,a.listHeaderBackgroundHovered=g,a.menuItemBackgroundHovered=g),y&&(a.primaryButtonTextDisabled=y,a.disabledSubtext=y),b&&(a.listItemBackgroundCheckedHovered=b),w&&(a.disabledBodyText=w,a.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||w,a.buttonTextDisabled=w,a.inputIconDisabled=w,a.disabledText=w),x&&(a.bodyText=x,a.actionLink=x,a.buttonText=x,a.inputBorderHovered=x,a.inputText=x,a.listText=x,a.menuItemText=x),_&&(a.bodyStandoutBackground=_,a.defaultStateBackground=_),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),C&&(a.bodySubtext=C,a.focusBorder=C,a.inputBorder=C,a.smallInputBorder=C,a.inputPlaceholderText=C),k&&(a.buttonBorder=k),S&&(a.disabledBodySubtext=S,a.disabledBorder=S,a.buttonBackgroundChecked=S,a.menuDivider=S),E&&(a.accentButtonBackground=E),(null==t?void 0:t.elevation4)&&(a.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?a.cardShadowHovered=t.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=tf(tf({},a),n)}function su(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}function sd(e,t){void 0===t&&(t={});var n,r,o,a=aT({},e,t,{semanticColors:sc(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null==(n=t.palette)?void 0:n.themePrimary)&&!(null==(r=t.palette)?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s<l.length;s++){var c=l[s];a.fonts[c]=aT(a.fonts[c],t.defaultFontStyle,null==(o=null==t?void 0:t.fonts)?void 0:o[c])}return a}!function(e){e.shade30="#004578",e.shade20="#005a9e",e.shade10="#106ebe",e.primary="#0078d4",e.tint10="#2b88d8",e.tint20="#c7e0f4",e.tint30="#deecf9",e.tint40="#eff6fc"}(v||(v={})),function(e){e.black="#000000",e.gray220="#11100f",e.gray210="#161514",e.gray200="#1b1a19",e.gray190="#201f1e",e.gray180="#252423",e.gray170="#292827",e.gray160="#323130",e.gray150="#3b3a39",e.gray140="#484644",e.gray130="#605e5c",e.gray120="#797775",e.gray110="#8a8886",e.gray100="#979593",e.gray90="#a19f9d",e.gray80="#b3b0ad",e.gray70="#bebbb8",e.gray60="#c8c6c4",e.gray50="#d2d0ce",e.gray40="#e1dfdd",e.gray30="#edebe9",e.gray20="#f3f2f1",e.gray10="#faf9f8",e.white="#ffffff"}(y||(y={})),function(e){e.pinkRed10="#750b1c",e.red20="#a4262c",e.red10="#d13438",e.redOrange20="#603d30",e.redOrange10="#da3b01",e.orange30="#8e562e",e.orange20="#ca5010",e.orange10="#ffaa44",e.yellow10="#fce100",e.orangeYellow20="#986f0b",e.orangeYellow10="#c19c00",e.yellowGreen10="#8cbd18",e.green20="#0b6a0b",e.green10="#498205",e.greenCyan10="#00ad56",e.cyan40="#005e50",e.cyan30="#005b70",e.cyan20="#038387",e.cyan10="#00b7c3",e.cyanBlue20="#004e8c",e.cyanBlue10="#0078d4",e.blue10="#4f6bed",e.blueMagenta40="#373277",e.blueMagenta30="#5c2e91",e.blueMagenta20="#8764b8",e.blueMagenta10="#8378de",e.magenta20="#881798",e.magenta10="#c239b3",e.magentaPink20="#9b0062",e.magentaPink10="#e3008c",e.gray40="#393939",e.gray30="#7a7574",e.gray20="#69797e",e.gray10="#a0aeb2"}(b||(b={}));var sp={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(x||(x={}));var sf={elevation4:x.depth4,elevation8:x.depth8,elevation16:x.depth16,elevation64:x.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},sh={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},sm=n_({from:{opacity:0},to:{opacity:1}}),sg=n_({from:{opacity:1},to:{opacity:0}}),sv=n_({from:{transform:"scale3d(1.15, 1.15, 1)"},to:{transform:"scale3d(1, 1, 1)"}}),sy=n_({from:{transform:"scale3d(1, 1, 1)"},to:{transform:"scale3d(0.9, 0.9, 1)"}}),sb=n_({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-48px, 0, 0)"}}),sx=n_({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(48px, 0, 0)"}}),sC=n_({from:{transform:"translate3d(48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),sk=n_({from:{transform:"translate3d(-48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),sw=n_({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -48px, 0)"}}),sS=n_({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 48px, 0)"}}),s_=n_({from:{transform:"translate3d(0, 48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),sE=n_({from:{transform:"translate3d(0, -48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}});function sP(e,t,n){return"".concat(e," ").concat(t," ").concat(n)}!function(e){e.duration1="100ms",e.duration2="200ms",e.duration3="300ms",e.duration4="400ms"}(C||(C={})),function(e){e.accelerate="cubic-bezier(0.9, 0.1, 1, 0.2)",e.decelerate="cubic-bezier(0.1, 0.9, 0.2, 1)",e.linear="cubic-bezier(0, 0, 1, 1)",e.standard="cubic-bezier(0.8, 0, 0.2, 1)"}(k||(k={})),function(e){e.fadeIn=sP(sm,C.duration1,k.linear),e.fadeOut=sP(sg,C.duration1,k.linear),e.scaleDownIn=sP(sv,C.duration3,k.decelerate),e.scaleDownOut=sP(sy,C.duration3,k.decelerate),e.slideLeftOut=sP(sb,C.duration1,k.accelerate),e.slideRightOut=sP(sx,C.duration1,k.accelerate),e.slideLeftIn=sP(sC,C.duration1,k.decelerate),e.slideRightIn=sP(sk,C.duration1,k.decelerate),e.slideUpOut=sP(sw,C.duration1,k.accelerate),e.slideDownOut=sP(sS,C.duration1,k.accelerate),e.slideUpIn=sP(s_,C.duration1,k.decelerate),e.slideDownIn=sP(sE,C.duration1,k.decelerate)}(w||(w={}));var sI="cubic-bezier(.1,.9,.2,1)",sT="cubic-bezier(.1,.25,.75,.9)",sD="0.167s",sA="0.267s",sR="0.367s",sN="0.467s",sB=n_({from:{opacity:0},to:{opacity:1}}),sM=n_({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),sF=lu(-10),sO=lu(-20),sL=lu(-40),sH=lu(-400),sz=lu(10),sV=lu(20),sU=lu(40),sj=lu(400),sW=ld(10),sq=ld(20),sG=ld(-10),sK=ld(-20),sX=lp(10),sY=lp(20),s$=lp(40),sQ=lp(400),sJ=lp(-10),sZ=lp(-20),s0=lp(-40),s1=lp(-400),s2=lf(-10),s5=lf(-20),s4=lf(10),s3=lf(20),s6=n_({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),s8=n_({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),s9=n_({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),s7=n_({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),le=n_({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),lt=n_({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),ln=sI,lr=sT,lo=sD,li=sA,la=sR,ls=sN,ll={slideRightIn10:lc("".concat(sB,",").concat(sF),sR,sI),slideRightIn20:lc("".concat(sB,",").concat(sO),sR,sI),slideRightIn40:lc("".concat(sB,",").concat(sL),sR,sI),slideRightIn400:lc("".concat(sB,",").concat(sH),sR,sI),slideLeftIn10:lc("".concat(sB,",").concat(sz),sR,sI),slideLeftIn20:lc("".concat(sB,",").concat(sV),sR,sI),slideLeftIn40:lc("".concat(sB,",").concat(sU),sR,sI),slideLeftIn400:lc("".concat(sB,",").concat(sj),sR,sI),slideUpIn10:lc("".concat(sB,",").concat(sW),sR,sI),slideUpIn20:lc("".concat(sB,",").concat(sq),sR,sI),slideDownIn10:lc("".concat(sB,",").concat(sG),sR,sI),slideDownIn20:lc("".concat(sB,",").concat(sK),sR,sI),slideRightOut10:lc("".concat(sM,",").concat(sX),sR,sI),slideRightOut20:lc("".concat(sM,",").concat(sY),sR,sI),slideRightOut40:lc("".concat(sM,",").concat(s$),sR,sI),slideRightOut400:lc("".concat(sM,",").concat(sQ),sR,sI),slideLeftOut10:lc("".concat(sM,",").concat(sJ),sR,sI),slideLeftOut20:lc("".concat(sM,",").concat(sZ),sR,sI),slideLeftOut40:lc("".concat(sM,",").concat(s0),sR,sI),slideLeftOut400:lc("".concat(sM,",").concat(s1),sR,sI),slideUpOut10:lc("".concat(sM,",").concat(s2),sR,sI),slideUpOut20:lc("".concat(sM,",").concat(s5),sR,sI),slideDownOut10:lc("".concat(sM,",").concat(s4),sR,sI),slideDownOut20:lc("".concat(sM,",").concat(s3),sR,sI),scaleUpIn100:lc("".concat(sB,",").concat(s6),sR,sI),scaleDownIn100:lc("".concat(sB,",").concat(s9),sR,sI),scaleUpOut103:lc("".concat(sM,",").concat(s7),sD,sT),scaleDownOut98:lc("".concat(sM,",").concat(s8),sD,sT),fadeIn100:lc(sB,sD,sT),fadeIn200:lc(sB,sA,sT),fadeIn400:lc(sB,sR,sT),fadeIn500:lc(sB,sN,sT),fadeOut100:lc(sM,sD,sT),fadeOut200:lc(sM,sA,sT),fadeOut400:lc(sM,sR,sT),fadeOut500:lc(sM,sN,sT),rotate90deg:lc(le,"0.1s",sT),rotateN90deg:lc(lt,"0.1s",sT)};function lc(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function lu(e){return n_({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function ld(e){return n_({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function lp(e){return n_({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function lf(e){return n_({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(S||(S={})),function(e){e.Arabic="'".concat(S.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(S.Cyrillic,"'"),e.EastEuropean="'".concat(S.EastEuropean,"'"),e.Greek="'".concat(S.Greek,"'"),e.Hebrew="'".concat(S.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(S.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(S.Vietnamese,"'"),e.WestEuropean="'".concat(S.WestEuropean,"'"),e.Armenian="'".concat(S.Armenian,"'"),e.Georgian="'".concat(S.Georgian,"'")}(_||(_={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(E||(E={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(P||(P={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(I||(I={}));var lh="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",lm="'Segoe UI', '".concat(S.WestEuropean,"'"),lg={ar:_.Arabic,bg:_.Cyrillic,cs:_.EastEuropean,el:_.Greek,et:_.EastEuropean,he:_.Hebrew,hi:_.Hindi,hr:_.EastEuropean,hu:_.EastEuropean,ja:_.Japanese,kk:_.EastEuropean,ko:_.Korean,lt:_.EastEuropean,lv:_.EastEuropean,pl:_.EastEuropean,ru:_.Cyrillic,sk:_.EastEuropean,"sr-latn":_.EastEuropean,th:_.Thai,tr:_.EastEuropean,uk:_.Cyrillic,vi:_.Vietnamese,"zh-hans":_.ChineseSimplified,"zh-hant":_.ChineseTraditional,hy:_.Armenian,ka:_.Georgian};function lv(e){return"".concat(e,", ").concat(lh)}function ly(e){for(var t in lg)if(lg.hasOwnProperty(t)&&e&&0===t.indexOf(e))return lg[t];return lm}function lb(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var lx="https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets",lC=function(e){var t=lv(ly(e));return{tiny:lb(E.mini,P.regular,t),xSmall:lb(E.xSmall,P.regular,t),small:lb(E.small,P.regular,t),smallPlus:lb(E.smallPlus,P.regular,t),medium:lb(E.medium,P.regular,t),mediumPlus:lb(E.mediumPlus,P.regular,t),large:lb(E.large,P.regular,t),xLarge:lb(E.xLarge,P.semibold,t),xLargePlus:lb(E.xLargePlus,P.semibold,t),xxLarge:lb(E.xxLarge,P.semibold,t),xxLargePlus:lb(E.xxLargePlus,P.semibold,t),superLarge:lb(E.superLarge,P.semibold,t),mega:lb(E.mega,P.semibold,t)}}(a_());function lk(e,t,n,r){nS({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function lw(e,t,n,r,o){void 0===r&&(r="segoeui");var a="".concat(e,"/").concat(n,"/").concat(r);lk(t,a+"-light",P.light,o&&o+" Light"),lk(t,a+"-semilight",P.semilight,o&&o+" SemiLight"),lk(t,a+"-regular",P.regular,o),lk(t,a+"-semibold",P.semibold,o&&o+" SemiBold"),lk(t,a+"-bold",P.bold,o&&o+" Bold")}function lS(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return sd({palette:sp,effects:sf,fonts:lC,spacing:sh,isInverted:n,disableGlobalClassNames:!1,semanticColors:sl(sp,sf,void 0,n,t),rtl:void 0},e)}(function(e){if(e){var t="".concat(e,"/fonts");lw(t,S.Thai,"leelawadeeui-thai","leelawadeeui"),lw(t,S.Arabic,"segoeui-arabic"),lw(t,S.Cyrillic,"segoeui-cyrillic"),lw(t,S.EastEuropean,"segoeui-easteuropean"),lw(t,S.Greek,"segoeui-greek"),lw(t,S.Hebrew,"segoeui-hebrew"),lw(t,S.Vietnamese,"segoeui-vietnamese"),lw(t,S.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),lw(t,_.Selawik,"selawik","selawik"),lw(t,S.Armenian,"segoeui-armenian"),lw(t,S.Georgian,"segoeui-georgian"),lk("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),P.light),lk("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),P.semibold)}})(function(){var e,t,n=null==(e=nM())?void 0:e.FabricConfig;return null!=(t=null==n?void 0:n.fontBaseUrl)?t:lx}()),lS({}),tN("@fluentui/theme","2.6.63");var l_="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",lE="@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)",lP=320,lI=480,lT=640,lD=1024,lA=1366,lR=479,lN=639,lB=768;function lM(e,t){var n="number"==typeof e?" and (min-width: ".concat(e,"px)"):"",r="number"==typeof t?" and (max-width: ".concat(t,"px)"):"";return"@media only screen".concat(n).concat(r)}function lF(){return{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}}function lO(e,t,n,r,o,a,s,l){return"number"!=typeof t&&t?lL(e,t):lL(e,{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:a,isFocusedOnly:s,borderRadius:l})}function lL(e,t){void 0===t&&(t={});var n,r,o=t.borderRadius,a=t.inset,s=void 0===a?0:a,l=t.width,c=void 0===l?1:l,u=t.position,d=void 0===u?"relative":u,p=t.highContrastStyle,f=t.borderColor,h=void 0===f?e.palette.white:f,m=t.outlineColor,g=void 0===m?e.palette.neutralSecondary:m,v=t.isFocusedOnly,y=void 0===v||v,b=t.pointerEvents;return{outline:"transparent",position:d,selectors:((n={"::-moz-focus-inner":{border:"0"}})[".".concat(i7," &").concat(y?":focus":"",":after, :host(.").concat(i7,") &").concat(y?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:b,left:s+1,top:s+1,bottom:s+1,right:s+1,border:"".concat(c,"px solid ").concat(h),outline:"".concat(c,"px solid ").concat(g),zIndex:T.FocusStyle,borderRadius:o,selectors:((r={})[l_]=p,r)},n)}}function lH(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(T||(T={}));var lz=function(e,t,n,r){void 0===n&&(n="border"),void 0===r&&(r=-1);var o,a,s,l="borderBottom"===n;return{borderColor:e,selectors:{":after":((o={pointerEvents:"none",content:"''",position:"absolute",left:l?0:r,top:r,bottom:r,right:l?0:r})[n]="2px solid ".concat(e),o.borderRadius=t,o.width="borderBottom"===n?"100%":void 0,(a={})[l_]=((s={})["border"===n?"borderColor":"borderBottomColor"]="Highlight",s),o.selectors=a,o)}}},lV={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},lU="14s",lj="2s",lW="1";function lq(e,t){return{borderColor:e,borderWidth:"0px",width:t,height:t}}function lG(e){return{opacity:1,borderWidth:e}}function lK(){return{opacity:1}}function lX(e,t){return{borderWidth:"0",width:t,height:t,opacity:0,borderColor:e}}function lY(e,t){return tf(tf({},lq(e,t)),{opacity:0})}var l$=function(e,t,n,r,o){return n_({"0%":lq(e,n),"1.42%":lG(o),"3.57%":lK(),"7.14%":lX(t,r),"8%":lY(e,n),"29.99%":lY(e,n),"30%":lq(e,n),"31.42%":lG(o),"33.57%":lK(),"37.14%":lX(t,r),"38%":lY(e,n),"79.42%":lY(e,n),"79.43":lq(e,n),"81.85":lG(o),"83.42":lK(),"87%":lX(t,r),"100%":{}})},lQ=function(e,t,n,r,o){return n_({"0%":lq(e,n),"14.2%":lG(o),"35.7%":lK(),"71.4%":lX(t,r),"100%":{}})},lJ=function(e,t){return{animationName:e,animationIterationCount:lW,animationDuration:lU,animationDelay:t||lj}},lZ=oL(function(e,t){var n=t$.getInstance();return t?Object.keys(e).reduce(function(t,r){return t[r]=n.getClassName(e[r]),t},{}):e});function l0(e,t,n){return lZ(e,void 0!==n?n:t.disableGlobalClassNames)}var l1=function(){return(l1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},l2="u"<typeof window?n.g:window,l5=l2&&l2.CSPSettings&&l2.CSPSettings.nonce,l4=l9(),l3=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,l6=function(){return"u">typeof performance&&performance.now?performance.now():Date.now()};function l8(e){var t=l6();e();var n=l6();l4.perf.duration+=n-t}function l9(){var e=l2.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=l1(l1({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=l1(l1({},e),{registeredThemableStyles:[]})),l2.__themeState__=e,e}function l7(e,t){void 0===t&&(t=!1),l8(function(){var n=Array.isArray(e)?e:cl(e),r=l4.runState,o=r.mode,a=r.buffer,s=r.flushTimer;t||1===o?(a.push(n),s||(l4.runState.flushTimer=ct())):cn(n)})}function ce(){l8(function(){var e=l4.runState.buffer.slice();l4.runState.buffer=[];var t=[].concat.apply([],e);t.length>0&&cn(t)})}function ct(){return setTimeout(function(){l4.runState.flushTimer=0,ce()},0)}function cn(e,t){l4.loadStyles?l4.loadStyles(cs(e).styleString,e):cc(e)}function cr(e){l4.theme=e,ca()}function co(e){void 0===e&&(e=3),(3===e||2===e)&&(ci(l4.registeredStyles),l4.registeredStyles=[]),(3===e||1===e)&&(ci(l4.registeredThemableStyles),l4.registeredThemableStyles=[])}function ci(e){e.forEach(function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)})}function ca(){if(l4.theme){for(var e=[],t=0,n=l4.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(co(1),cn([].concat.apply([],e)))}}function cs(e){var t=l4.theme,n=!1;return{styleString:(e||[]).map(function(e){var r=e.theme;if(!r)return e.rawString;n=!0;var o=t?t[r]:void 0,a=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"u">typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'.concat(r,'". Falling back to "').concat(a,'".')),o||a}).join(""),themable:n}}function cl(e){var t=[];if(e){for(var n=0,r=void 0;r=l3.exec(e);){var o=r.index;o>n&&t.push({rawString:e.substring(n,o)}),t.push({theme:r[1],defaultValue:r[2]}),n=l3.lastIndex}t.push({rawString:e.substring(n)})}return t}function cc(e){if("u">typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=cs(e),o=r.styleString,a=r.themable;n.setAttribute("data-load-themed-styles","true"),l5&&n.setAttribute("nonce",l5),n.appendChild(document.createTextNode(o)),l4.perf.count++,t.appendChild(n);var s=document.createEvent("HTMLEvents");s.initEvent("styleinsert",!0,!1),s.args={newStyle:n},document.dispatchEvent(s);var l={styleElement:n,themableStyle:e};a?l4.registeredThemableStyles.push(l):l4.registeredStyles.push(l)}}var cu=lS({}),cd=[],cp="theme";function cf(){var e,t,n,r=nM();(null==(t=null==r?void 0:r.FabricConfig)?void 0:t.legacyTheme)?cm(r.FabricConfig.legacyTheme):oQ.getSettings([cp]).theme||((null==(n=null==r?void 0:r.FabricConfig)?void 0:n.theme)&&(cu=lS(r.FabricConfig.theme)),oQ.applySettings(((e={})[cp]=cu,e)))}function ch(e){return void 0===e&&(e=!1),!0===e&&(cu=lS({},e)),cu}function cm(e,t){var n;return void 0===t&&(t=!1),cu=lS(e,t),cr(tf(tf(tf(tf({},cu.palette),cu.semanticColors),cu.effects),cg(cu))),oQ.applySettings(((n={})[cp]=cu,n)),cd.forEach(function(e){try{e(cu)}catch(e){}}),cu}function cg(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],a=e.fonts[o],s=0,l=Object.keys(a);s<l.length;s++){var c=l[s],u=o+c.charAt(0).toUpperCase()+c.slice(1),d=a[c];"fontSize"===c&&"number"==typeof d&&(d+="px"),t[u]=d}return t}cf();var cv={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},cy={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},cb="50%",cx=20;function cC(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}var ck=nR(ll);nR(lC);var cw={};for(var cS in sp)sp.hasOwnProperty(cS)&&(c_(cw,cS,"",!1,"color"),c_(cw,cS,"Hover",!0,"color"),c_(cw,cS,"Background",!1,"background"),c_(cw,cS,"BackgroundHover",!0,"background"),c_(cw,cS,"Border",!1,"borderColor"),c_(cw,cS,"BorderHover",!0,"borderColor"));function c_(e,t,n,r,o){Object.defineProperty(e,t+n,{get:function(){var e,n=((e={})[o]=ch().palette[t],e);return ny(r?{selectors:{":hover":n}}:n).toString()},enumerable:!0,configurable:!0})}tN("@fluentui/style-utilities","8.11.4"),cf();var cE="32px",cP="16px",cI="16px",cT="13px",cD="4px",cA="28px",cR="4px",cN=oL(function(){return n_({from:{opacity:0},to:{opacity:1}})}),cB=oL(function(){return n_({from:{transform:"translateX(-10px)"},to:{transform:"translateX(0)"}})}),cM=oL(function(e,t,n,r,o,a){void 0===e&&(e=ch());var s,l={animationName:lQ(r||e.palette.themePrimary,o||e.palette.themeTertiary,cD,cA,cR),animationIterationCount:"1",animationDuration:".8s",zIndex:1},c={animationName:cB(),animationIterationCount:"1",animationDuration:".5s"},u={animationName:cN(),animationIterationCount:"1",animationDuration:".5s"},d={root:[e.fonts.small,{display:"flex",justifyContent:"flex-start",alignItems:"flex-start",boxSizing:"border-box",color:e.palette.neutralSecondary},a&&n&&u],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:0},a&&n&&l],isCompactRoot:{alignItems:"center"},personaContainer:{display:"flex",flexWrap:"wrap",minWidth:cE,width:cE,height:cE},isCompactPersonaContainer:{display:"inline-flex",flexWrap:"nowrap",flexBasis:"auto",height:cP,width:"auto",minWidth:"0",paddingRight:"6px"},activityTypeIcon:{height:cE,fontSize:cI,lineHeight:cI,marginTop:"3px"},isCompactIcon:{height:cP,minWidth:cP,fontSize:cT,lineHeight:cT,color:e.palette.themePrimary,marginTop:"1px",position:"relative",display:"flex",justifyContent:"center",alignItems:"center",selectors:{".ms-Persona-imageArea":{margin:"-2px 0 0 -2px",border:"2px solid"+e.palette.white,borderRadius:"50%",selectors:((s={})[l_]={border:"none",margin:"0"},s)}}},activityPersona:{display:"block"},doublePersona:{selectors:{":first-child":{alignSelf:"flex-end"}}},isCompactPersona:{display:"inline-block",width:"8px",minWidth:"8px",overflow:"visible"},activityContent:[{padding:"0 8px"},a&&n&&c],activityText:{display:"inline"},isCompactContent:{flex:"1",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflowX:"hidden"},commentText:{color:e.palette.neutralPrimary},timeStamp:[e.fonts.tiny,{fontWeight:400,color:e.palette.neutralSecondary}],isCompactTimeStamp:{display:"inline-block",paddingLeft:"0.3em",fontSize:"1em"}},p=t||{},f=p.__shadowConfig__,h=th(p,["__shadowConfig__"]);return f?nx(f,d,h):nx(d,t)}),cF=oL(function(e,t,n,r){return{root:ny(e.__shadowConfig__,"ms-ActivityItem",t,e.root,r&&e.isCompactRoot),pulsingBeacon:ny(e.__shadowConfig__,"ms-ActivityItem-pulsingBeacon",e.pulsingBeacon),personaContainer:ny(e.__shadowConfig__,"ms-ActivityItem-personaContainer",e.personaContainer,r&&e.isCompactPersonaContainer),activityPersona:ny(e.__shadowConfig__,"ms-ActivityItem-activityPersona",e.activityPersona,r&&e.isCompactPersona,!r&&n&&2===n.length&&e.doublePersona),activityTypeIcon:ny(e.__shadowConfig__,"ms-ActivityItem-activityTypeIcon",e.activityTypeIcon,r&&e.isCompactIcon),activityContent:ny(e.__shadowConfig__,"ms-ActivityItem-activityContent",e.activityContent,r&&e.isCompactContent),activityText:ny(e.__shadowConfig__,"ms-ActivityItem-activityText",e.activityText),commentText:ny(e.__shadowConfig__,"ms-ActivityItem-commentText",e.commentText),timeStamp:ny(e.__shadowConfig__,"ms-ActivityItem-timeStamp",e.timeStamp,r&&e.isCompactTimeStamp)}}),cO=0,cL=1,cH=2,cz=3,cV=4,cU=5,cj=6,cW=7,cq=8,cG=9,cK=10,cX=11,cY=12,c$=13;function cQ(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(D||(D={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(A||(A={}));var cJ=((R={})[cO]=cQ(D.top,D.left),R[cL]=cQ(D.top),R[cH]=cQ(D.top,D.right),R[cz]=cQ(D.top,void 0,!0),R[cV]=cQ(D.bottom,D.left),R[cU]=cQ(D.bottom),R[cj]=cQ(D.bottom,D.right),R[cW]=cQ(D.bottom,void 0,!0),R[cq]=cQ(D.left,D.top),R[cG]=cQ(D.left),R[cK]=cQ(D.left,D.bottom),R[cX]=cQ(D.right,D.top),R[cY]=cQ(D.right),R[c$]=cQ(D.right,D.bottom),R);function cZ(e,t){return!(e.top<t.top)&&!(e.bottom>t.bottom)&&!(e.left<t.left)&&!(e.right>t.right)}function c0(e,t){var n=[];return e.top<t.top&&n.push(D.top),e.bottom>t.bottom&&n.push(D.bottom),e.left<t.left&&n.push(D.left),e.right>t.right&&n.push(D.right),n}function c1(e,t){return e[D[t]]}function c2(e,t,n){return e[D[t]]=n,e}function c5(e,t){var n=uc(t);return(c1(e,n.positiveEdge)+c1(e,n.negativeEdge))/2}function c4(e,t){return e>0?t:-1*t}function c3(e,t){return c4(e,c1(t,e))}function c6(e,t,n){var r=c1(e,n)-c1(t,n);return c4(n,r)}function c8(e,t,n,r){void 0===r&&(r=!0);var o=c1(e,t)-n,a=c2(e,t,n);return r&&(a=c2(e,-1*t,c1(e,-1*t)-o)),a}function c9(e,t,n,r){return void 0===r&&(r=0),c8(e,n,c1(t,n)+c4(n,r))}function c7(e,t,n,r){void 0===r&&(r=0);var o=c4(-1*n,r);return c8(e,-1*n,c1(t,n)+o)}function ue(e,t,n){return c3(n,e)>c3(n,t)}function ut(e,t){for(var n=c0(e,t),r=0,o=0,a=n;o<a.length;o++)r+=Math.pow(c6(e,t,a[o]),2);return r}function un(e,t,n,r){return void 0===r&&(r=200),(n===D.bottom||n===D.top)&&c6(e,t,n)>=r}function ur(e,t,n,r,o,a,s){void 0===o&&(o=!1),void 0===s&&(s=0);var l,c=[D.left,D.right,D.bottom,D.top];ox()&&(c[0]*=-1,c[1]*=-1);for(var u=e,d=r.targetEdge,p=r.alignmentEdge,f=d,h=p,m=0;m<4;m++)if(ue(u,n,d))return{elementRectangle:u,targetEdge:d,alignmentEdge:p};else if(o&&un(t,n,d,a)){switch(d){case D.bottom:u.bottom=n.bottom;break;case D.top:u.top=n.top}return{elementRectangle:u,targetEdge:d,alignmentEdge:p,forcedInBounds:!0}}else{var g=ut(u,n);(!l||g<l)&&(l=g,f=d,h=p),c.splice(c.indexOf(d),1),c.length>0&&(c.indexOf(-1*d)>-1?d*=-1:(p=d,d=c.slice(-1)[0]),u=ul(e,t,{targetEdge:d,alignmentEdge:p},s))}return{elementRectangle:u=ul(e,t,{targetEdge:f,alignmentEdge:h},s),targetEdge:f,alignmentEdge:h}}function uo(e,t,n,r){var o=e.alignmentEdge,a=e.targetEdge,s=e.elementRectangle,l=-1*o;return{elementRectangle:ul(s,t,{targetEdge:a,alignmentEdge:l},n,r),targetEdge:a,alignmentEdge:l}}function ui(e,t,n,r,o,a,s,l,c){void 0===o&&(o=!1),void 0===s&&(s=0);var u=r.alignmentEdge,d=r.alignTargetEdge,p={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:u};l||c||(p=ur(e,t,n,r,o,a,s));var f=c0(p.elementRectangle,n),h=l?-p.targetEdge:void 0;if(f.length>0)if(d)if(p.alignmentEdge&&f.indexOf(-1*p.alignmentEdge)>-1){var m=uo(p,t,s,c);if(cZ(m.elementRectangle,n))return m;p=ua(c0(m.elementRectangle,n),p,n,h)}else p=ua(f,p,n,h);else p=ua(f,p,n,h);return p}function ua(e,t,n,r){for(var o=0,a=e;o<a.length;o++){var s=a[o],l=void 0;r&&r===-1*s?(l=c8(t.elementRectangle,s,c1(n,s),!1),t.forcedInBounds=!0):ue(l=c9(t.elementRectangle,n,s),n,-1*s)||(l=c8(l,-1*s,c1(n,-1*s),!1),t.forcedInBounds=!0),t.elementRectangle=l}return t}function us(e,t,n){var r=uc(t).positiveEdge,o=c5(e,t)-c1(e,r);return c8(e,r,n-o)}function ul(e,t,n,r,o){void 0===r&&(r=0);var a=new oc(e.left,e.right,e.top,e.bottom),s=n.alignmentEdge,l=n.targetEdge,c=o?l:-1*l;return a=o?c9(a,t,l,r):c7(a,t,l,r),a=s?c9(a,t,s):us(a,c,c5(t,l))}function uc(e){return e===D.top||e===D.bottom?{positiveEdge:D.left,negativeEdge:D.right}:{positiveEdge:D.top,negativeEdge:D.bottom}}function uu(e,t,n){return n&&Math.abs(c6(e,n,t))>Math.abs(c6(e,n,-1*t))?-1*t:t}function ud(e,t,n){return void 0!==n&&c1(e,t)===c1(n,t)}function up(e,t,n,r,o,a,s,l){var c={},u=ux(t),d=a?n:-1*n,p=o||uc(n).positiveEdge;return(!s||ud(e,uM(p),r))&&(p=uu(e,p,r)),c[D[d]]=c6(e,u,d),c[D[p]]=c6(e,u,p),l&&(c[D[-1*d]]=c6(e,u,-1*d),c[D[-1*p]]=c6(e,u,-1*p)),c}function uf(e){return Math.sqrt(e*e*2)}function uh(e,t,n){if(void 0===e&&(e=cW),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=tf({},cJ[e]);return ox()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?cJ[t]:r):r}function um(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=ug(e.targetEdge,t,n)),e.alignTargetEdge=o,e}function ug(e,t,n){var r=c5(t,e),o=c5(n,e),a=uc(e),s=a.positiveEdge,l=a.negativeEdge;return r<=o?s:l}function uv(e,t,n,r,o,a,s,l,c){void 0===a&&(a=!1);var u=ul(e,t,r,o,c);return cZ(u,n)?{elementRectangle:u,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:ui(u,t,n,r,a,s,o,l,c)}function uy(e,t,n){var r=-1*e.targetEdge,o=new oc(0,e.elementRectangle.width,0,e.elementRectangle.height),a={},s=uu(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:uc(r).positiveEdge,n),l=c6(e.elementRectangle,e.targetRectangle,r)>Math.abs(c1(t,r));return a[D[r]]=c1(t,r),a[D[s]]=c6(t,o,s),{elementPosition:tf({},a),closestEdge:ug(e.targetEdge,t,o),targetEdge:r,hideBeak:!l}}function ub(e,t){var n=t.targetRectangle,r=uc(t.targetEdge),o=r.positiveEdge,a=r.negativeEdge,s=c5(n,t.targetEdge),l=new oc(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),c=new oc(0,e,0,e);return ue(c=us(c=c8(c,-1*t.targetEdge,-e/2),-1*t.targetEdge,s-c3(o,t.elementRectangle)),l,o)?ue(c,l,a)||(c=c9(c,l,a)):c=c9(c,l,o),c}function ux(e){var t=e.getBoundingClientRect();return new oc(t.left,t.right,t.top,t.bottom)}function uC(e){return new oc(e.left,e.right,e.top,e.bottom)}function uk(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new oc(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=ux(t);else{var o=t,a=o.left||o.x,s=o.top||o.y,l=o.right||a,c=o.bottom||s;n=new oc(a,l,s,c)}if(!cZ(n,e))for(var u=c0(n,e),d=0,p=u;d<p.length;d++){var f=p[d];n[D[f]]=e[D[f]]}}else n=new oc(0,0,0,0);return n}function uw(e,t,n,r,o){var a=0,s=cJ[t],l=o?-1*s.targetEdge:s.targetEdge;return(a=l===D.top?c1(e,s.targetEdge)-r.top-n:l===D.bottom?r.bottom-c1(e,s.targetEdge)-n:r.bottom-e.top-n)>0?a:r.height}function uS(e,t,n,r,o,a){void 0===o&&(o=!1);var s=e.gapSpace?e.gapSpace:0,l=uk(n,e.target),c=um(uh(e.directionalHint,e.directionalHintForRTL,r),l,n,e.coverTarget,e.alignTargetEdge),u=uv(ux(t),l,n,c,s,o,a,e.directionalHintFixed,e.coverTarget);return tf(tf({},u),{targetRectangle:l})}function u_(e,t,n,r,o){return{elementPosition:up(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function uE(e,t,n,r,o){var a=null!=o?o:nM(),s=e.bounds?uC(e.bounds):new oc(0,a.innerWidth-rE(),0,a.innerHeight);return u_(uS(e,n,s,r),t,s,e.coverTarget)}function uP(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),uf(e?t:0)/2+n}function uI(e,t,n,r,o,a,s,l){void 0===o&&(o=!1);var c=null!=l?l:nM(),u=e.isBeakVisible&&e.beakWidth||0,d=uP(e.isBeakVisible,e.beakWidth,e.gapSpace),p=e;p.gapSpace=d;var f=e.bounds?uC(e.bounds):new oc(0,c.innerWidth-rE(),0,c.innerHeight),h=uS(p,n,f,r,o,a),m=ub(u,h),g=uy(h,m,f);return tf(tf({},u_(h,t,f,e.coverTarget,s)),{beakPosition:g})}function uT(e,t,n,r,o){return uI(e,t,n,r,!1,void 0,!0,null!=o?o:nM())}function uD(e){var t,n,r,o,a,s=e,l=e,c=e,u=null!=(t=c.left)?t:c.x,d=null!=(n=c.top)?n:c.y,p=null!=(r=c.right)?r:u,f=null!=(o=c.bottom)?o:d;return s.stopPropagation?new oc(s.clientX,s.clientX,s.clientY,s.clientY):void 0!==u&&void 0!==d?new oc(u,p,d,f):ux(l)}function uA(e,t,n,r,o){return uE(e,t,n,r,o)}function uR(e,t,n,r,o,a,s){return uI(e,t,n,r,o,a,void 0,s)}function uN(e,t,n,r,o){return uT(e,t,n,r,o)}function uB(e,t,n,r,o,a){void 0===n&&(n=0);var s=null!=a?a:nM();return uw(uD(e),t,n,r?uC(r):new oc(0,s.innerWidth-rE(),0,s.innerHeight),o)}function uM(e){return -1*e}function uF(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var a=e.getBoundingClientRect();r=(a.left+a.right)/2,o=(a.top+a.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var s={top:0,left:0,right:0,bottom:0,width:0,height:0},l=0,c=n;l<c.length;l++){var u=c[l];r&&u.left<=r&&u.right>=r&&o&&u.top<=o&&u.bottom>=o&&(s={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return s}function uO(e,t){return uF(e,t)}function uL(e,t,n){return uP(e,t,n)}function uH(e){return uD(e)}function uz(){var e=ts.useRef();return e.current||(e.current=new nF),ts.useEffect(function(){return function(){var t;null==(t=e.current)||t.dispose(),e.current=void 0}},[]),e.current}function uV(e){var t=ts.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}function uU(e){var t=ts.useState(e),n=t[0],r=t[1];return[n,{setTrue:uV(function(){return function(){r(!0)}}),setFalse:uV(function(){return function(){r(!1)}}),toggle:uV(function(){return function(){r(function(e){return!e})}})}]}function uj(e,t,n){var r=ts.useState(t),o=r[0],a=r[1],s=uV(void 0!==e),l=s?e:o,c=ts.useRef(l),u=ts.useRef(n);return ts.useEffect(function(){c.current=l,u.current=n}),[l,uV(function(){return function(e,t){var n="function"==typeof e?e(c.current):e;u.current&&u.current(t,n),s||a(n)}})]}function uW(e){var t=ts.useRef(function(){throw Error("Cannot call an event handler while rendering")});return a8(function(){t.current=e},[e]),uV(function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(void 0,e)}})}function uq(e,t){var n=ts.useRef(t);return n.current||(n.current=iw(e)),n.current}function uG(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ts.useCallback(function(t){n.current=t;for(var r=0,o=e;r<o.length;r++){var a=o[r];"function"==typeof a?a(t):a&&(a.current=t)}},tg([],e,!0));return n}function uK(e,t,n,r){var o=ts.useRef(n);o.current=n,ts.useEffect(function(){var n=e&&"current"in e?e.current:e;if(n&&n.addEventListener){var a=rd(n,t,function(e){return o.current(e)},r);return a}},[e,t,r])}function uX(e){var t=tt.useRef();return tt.useEffect(function(){t.current=e}),t.current}function uY(e,t){void 0===t&&(t=null);var n=function(){var e=function(e){r.ref.current!==e&&(r.cleanup&&(r.cleanup(),r.cleanup=void 0),r.ref.current=e,null!==e&&(r.cleanup=r.callback(e)))};return e.current=t,e},r=ts.useRef({ref:n(),callback:e}).current;return r.callback=e,r.ref}tN("@fluentui/react-hooks","8.8.16");var u$=function(){var e=uV({});return ts.useEffect(function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++)clearTimeout(n[t])}},[e]),uV({setTimeout:function(t,n){var r=setTimeout(t,n);return e[r]=1,r},clearTimeout:function(t){delete e[t],clearTimeout(t)}})};function uQ(e,t){var n,r,o,a=ts.useRef(),s=ts.useRef(null),l=iu();if(!e||e!==a.current||"string"==typeof e){var c=null==t?void 0:t.current;if(e)if("string"==typeof e)if(null==(n=null==c?void 0:c.getRootNode())?void 0:n.host)s.current=null!=(o=null==(r=null==c?void 0:c.getRootNode())?void 0:r.querySelector(e))?o:null;else{var u=n$(c);s.current=u?u.querySelector(e):null}else"stopPropagation"in e||"getBoundingClientRect"in e?s.current=e:"current"in e?s.current=e.current:s.current=e;a.current=e}return[s,l]}var uJ=function(e){var t=ts.useRef(e);t.current=e,ts.useEffect(function(){return function(){var e;null==(e=t.current)||e.call(t)}},[])},uZ=0;function u0(e){var t=e.name,n=e.props,r=e.other,o=void 0===r?[]:r,a=e.conditionallyRequired,s=e.deprecations,l=e.mutuallyExclusive,c=e.controlledUsage,u=ts.useRef(!1),d=uV(function(){return"useWarnings_".concat(uZ++)}),p=uX(n);if(!u.current){u.current=!0;for(var f=0,h=o;f<h.length;f++)rN(h[f]);if(a)for(var m=0,g=a;m<g.length;m++){var v=g[m];rB(t,n,v.requiredProps,v.conditionalPropName,v.condition)}s&&rF(t,n,s),l&&rM(t,n,l)}c&&a2(tf(tf({},c),{componentId:d,props:n,componentName:t,oldProps:p}))}function u1(e,t){var n=uz(),r=ts.useState(!1),o=r[0],a=r[1];return ts.useEffect(function(){return n.requestAnimationFrame(function(){if(!e.style||!e.style.overflowY){var n,r=!1;if(t&&t.current&&(null==(n=t.current)?void 0:n.firstElementChild)){var s=t.current.clientHeight,l=t.current.firstElementChild.clientHeight;s>0&&l>s&&(r=l-s>1)}o!==r&&a(r)}}),function(){return n.dispose()}}),o}function u2(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==nM()&&setTimeout(function(){var e;null==(e=t.focus)||e.call(t)},0)}function u5(e,t){var n=e.onRestoreFocus,r=void 0===n?u2:n,o=ts.useRef(),a=ts.useRef(!1);ts.useEffect(function(){return o.current=n$().activeElement,rr(t.current)&&(a.current=!0),function(){var e;null==r||r({originalElement:o.current,containsFocus:a.current,documentContainsFocus:(null==(e=n$())?void 0:e.hasFocus())||!1}),o.current=void 0}},[]),uK(t,"focus",ts.useCallback(function(){a.current=!0},[]),!0),uK(t,"blur",ts.useCallback(function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(a.current=!1)},[]),!0)}function u4(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;ts.useEffect(function(){if(n&&t.current){var e=aN(t.current);return e}},[t,n])}var u3=ts.forwardRef(function(e,t){var n=a4({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=ts.useRef(),o=uG(r,t);u4(n,r),u5(n,r);var a=n.role,s=n.className,l=n.ariaLabel,c=n.ariaLabelledBy,u=n.ariaDescribedBy,d=n.style,p=n.children,f=n.onDismiss,h=u1(n,r),m=ts.useCallback(function(e){e.which===r1&&f&&(f(e),e.preventDefault(),e.stopPropagation())},[f]);return uK(iu(),"keydown",m),ts.createElement("div",tf({ref:o},i$(n,iY),{className:s,role:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,onKeyDown:m,style:tf({overflowY:h?"scroll":void 0,outline:"none"},d)}),p)});u3.displayName="Popup";var u6=function(){var e;return null!=(e=id())?e:"u">typeof document?document:void 0},u8=function(){var e;return null!=(e=iu())?e:"u">typeof window?window:void 0},u9=function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.window)?void 0:t.document)?n:"u">typeof document?document:void 0},u7=function(e){var t;return null!=(t=null==e?void 0:e.window)?t:"u">typeof window?window:void 0},de="CalloutContentBase",dt=((N={})[D.top]=ck.slideUpIn10,N[D.bottom]=ck.slideDownIn10,N[D.left]=ck.slideLeftIn10,N[D.right]=ck.slideRightIn10,N),dn=0,dr=0,di={opacity:0,filter:"opacity(0)",pointerEvents:"none"},da=["role","aria-roledescription"],ds={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:cW},dl=oI({disableCaching:!0});function dc(e,t,n){var r=e.bounds,o=e.minPagePadding,a=void 0===o?ds.minPagePadding:o,s=e.target,l=ts.useState(!1),c=l[0],u=l[1],d=ts.useRef(),p=ts.useCallback(function(){if(!d.current||c){var e="function"==typeof r?n?r(s,n):void 0:r;!e&&n&&(e={top:(e=uO(t.current,n)).top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),d.current=e,c&&u(!1)}return d.current},[r,a,s,t,n,c]);return uK(n,"resize",uz().debounce(function(){u(!0)},500,{leading:!0})),p}function du(e,t,n,r){var o,a=e.calloutMaxHeight,s=e.finalHeight,l=e.directionalHint,c=e.directionalHintFixed,u=e.hidden,d=e.gapSpace,p=e.beakWidth,f=e.isBeakVisible,h=e.coverTarget,m=ts.useState(),g=m[0],v=m[1],y=null!=(o=null==r?void 0:r.elementPosition)?o:{},b=y.top,x=y.bottom,C=(null==n?void 0:n.current)?uH(n.current):void 0;return ts.useEffect(function(){var e,n,o=null!=(e=t())?e:{},s=o.top,l=o.bottom;(null==r?void 0:r.targetEdge)===D.top&&(null==C?void 0:C.top)&&!h&&(l=C.top-uL(f,p,d)),"number"==typeof b&&l?n=l-b:"number"==typeof x&&"number"==typeof s&&l&&(n=l-s-x),!a&&!u||a&&n&&a>n?v(n):a?v(a):v(void 0)},[x,a,s,l,c,t,u,r,b,d,p,f,C,h]),g}function dd(e,t,n,r,o,a){var s,l=ts.useState(),c=l[0],u=l[1],d=ts.useRef(0),p=ts.useRef(),f=uz(),h=e.hidden,m=e.target,g=e.finalHeight,v=e.calloutMaxHeight,y=e.onPositioned,b=e.directionalHint,x=e.hideOverflow,C=e.preferScrollResizePositioning,k=u8(),w=ts.useRef();w.current!==a.current&&(w.current=a.current,s=a.current?null==k?void 0:k.getComputedStyle(a.current):void 0);var S=null==s?void 0:s.overflowY;return ts.useEffect(function(){if(h)u(void 0),d.current=0;else{var a=f.requestAnimationFrame(function(){var a,s;if(t.current&&n){var l=tf(tf({},e),{target:r.current,bounds:o()}),f=n.cloneNode(!0);f.style.maxHeight=v?"".concat(v):"",f.style.visibility="hidden",null==(a=n.parentElement)||a.appendChild(f);var h=p.current===m?c:void 0,b=x||"clip"===S||"hidden"===S,w=C&&!b,_=g?uN(l,t.current,f,h,k):uR(l,t.current,f,h,w,void 0,k);null==(s=n.parentElement)||s.removeChild(f),!c&&_||c&&_&&!dg(c,_)&&d.current<5?(d.current++,u(_)):d.current>0&&(d.current=0,null==y||y(c))}},n);return p.current=m,function(){f.cancelAnimationFrame(a),p.current=void 0}}},[h,b,f,n,v,t,r,g,o,y,c,e,m,x,C,S,k]),c}function dp(e,t,n){var r=e.hidden,o=e.setInitialFocus,a=uz(),s=!!t;ts.useEffect(function(){if(!r&&o&&s&&n){var e=a.requestAnimationFrame(function(){return n3(n)},n);return function(){return a.cancelAnimationFrame(e)}}},[r,s,a,n,o])}function df(e,t,n,r,o){var a=e.hidden,s=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,p=e.shouldDismissOnWindowFocus,f=e.preventDismissOnEvent,h=ts.useRef(!1),m=uz(),g=uV([function(){h.current=!0},function(){h.current=!1}]),v=!!t;return ts.useEffect(function(){var e=function(e){v&&!l&&y(e)},t=function(e){c||f&&f(e)||null==s||s(e)},g=function(e){u||y(e)},y=function(e){var t=e.composedPath?e.composedPath():[],a=t.length>0?t[0]:e.target,l=n.current&&!nz(n.current,a);if(l&&h.current){h.current=!1;return}if(!r.current&&l||e.target!==o&&l&&(!r.current||"stopPropagation"in r.current||d||a!==r.current&&!nz(r.current,a))){if(f&&f(e))return;null==s||s(e)}},b=function(e){p&&((!f||f(e))&&(f||u)||(null==o?void 0:o.document.hasFocus())||null!==e.relatedTarget||null==s||s(e))},x=new Promise(function(n){m.setTimeout(function(){if(!a&&o){var r=[rd(o,"scroll",e,!0),rd(o,"resize",t,!0),rd(o.document.documentElement,"focus",g,!0),rd(o.document.documentElement,"click",g,!0),rd(o,"blur",b,!0)];n(function(){r.forEach(function(e){return e()})})}},0)});return function(){x.then(function(e){return e()})}},[a,m,n,r,o,s,p,d,u,c,l,v,f]),g}var dh=ts.memo(ts.forwardRef(function(e,t){var n=a4(ds,e),r=n.styles,o=n.style,a=n.ariaLabel,s=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.className,u=n.isBeakVisible,d=n.children,p=n.beakWidth,f=n.calloutWidth,h=n.calloutMaxWidth,m=n.calloutMinWidth,g=n.doNotLayer,v=n.finalHeight,y=n.hideOverflow,b=void 0===y?!!v:y,x=n.backgroundColor,C=n.calloutMaxHeight,k=n.onScroll,w=n.shouldRestoreFocus,S=void 0===w||w,_=n.target,E=n.hidden,P=n.onLayerMounted,I=n.popupProps,T=ts.useRef(null),D=uG(ts.useRef(null),null==I?void 0:I.ref),A=ts.useState(null),R=A[0],N=A[1],B=ts.useCallback(function(e){N(e)},[]),M=uG(T,t),F=uQ(n.target,{current:R}),O=F[0],L=F[1],H=dc(n,O,L),z=dd(n,T,R,O,H,D),V=du(n,H,O,z),U=df(n,z,T,O,L),j=U[0],W=U[1],q=(null==z?void 0:z.elementPosition.top)&&(null==z?void 0:z.elementPosition.bottom),G=tf(tf({},null==z?void 0:z.elementPosition),{maxHeight:V});if(q&&(G.bottom=void 0),dp(n,z,R),ts.useEffect(function(){E||null==P||P()},[E]),!L)return null;var K=b,X=u&&!!_,Y=dl(r,{theme:n.theme,className:c,overflowYHidden:K,calloutWidth:f,positions:z,beakWidth:p,backgroundColor:x,calloutMaxWidth:h,calloutMinWidth:m,doNotLayer:g}),Q=tf(tf({maxHeight:C||"100%"},o),K&&{overflowY:"hidden"}),J=n.hidden?{visibility:"hidden"}:void 0;return ts.createElement("div",{ref:M,className:Y.container,style:J},ts.createElement("div",tf({},i$(n,iY,da),{className:oG(Y.root,z&&z.targetEdge&&dt[z.targetEdge]),style:z?tf({},G):di,tabIndex:-1,ref:B}),X&&ts.createElement("div",{className:Y.beak,style:dm(z)}),X&&ts.createElement("div",{className:Y.beakCurtain}),ts.createElement(u3,tf({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:l,className:Y.calloutMain,onDismiss:n.onDismiss,onMouseDown:j,onMouseUp:W,onRestoreFocus:n.onRestoreFocus,onScroll:k,shouldRestoreFocus:S,style:Q},I,{ref:D}),d)))}),function(e,t){return!t.shouldUpdateWhenHidden&&!!e.hidden&&!!t.hidden||rp(e,t)});function dm(e){var t,n,r=tf(tf({},null==(t=null==e?void 0:e.beakPosition)?void 0:t.elementPosition),{display:(null==(n=null==e?void 0:e.beakPosition)?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=dr,r.top=dn),r}function dg(e,t){return dv(e.elementPosition,t.elementPosition)&&dv(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function dv(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o||r.toFixed(2)!==o.toFixed(2))return!1}return!0}function dy(e){return{height:e,width:e}}dh.displayName=de;var db={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},dx=a1(dh,function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,a=e.calloutWidth,s=e.beakWidth,l=e.backgroundColor,c=e.calloutMaxWidth,u=e.calloutMinWidth,d=e.doNotLayer,p=l0(db,n),f=n.semanticColors,h=n.effects;return{container:[p.container,{position:"relative"}],root:[p.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:d?T.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:((t={})[l_]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},lH(),r,!!a&&{width:a},!!c&&{maxWidth:c},!!u&&{minWidth:u}],beak:[p.beak,{position:"absolute",backgroundColor:f.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},dy(s),l&&{backgroundColor:l}],beakCurtain:[p.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:f.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[p.calloutMain,{backgroundColor:f.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},l&&{backgroundColor:l}]}},void 0,{scope:"CalloutContent"}),dC=ts.createContext(void 0),dk=function(){return function(){}};function dw(){var e;return null!=(e=ts.useContext(dC))?e:dk}dC.Provider;var dS=oI(),d_=oL(function(e,t){return lS(tf(tf({},e),{rtl:t}))}),dE=function(e){var t=e.theme,n=e.dir,r=ox(t)?"rtl":"ltr",o=ox()?"rtl":"ltr",a=n||r;return{rootDir:a!==r||a!==o?a:n,needsTheme:a!==r}},dP=ts.forwardRef(function(e,t){var n=e.className,r=e.theme,o=e.applyTheme,a=e.applyThemeToBody,s=dS(e.styles,{theme:r,applyTheme:o,className:n}),l=ts.useRef(null);return dT(a,s,l),ts.createElement(ts.Fragment,null,dI(e,s,l,t))});function dI(e,t,n,r){var o=t.root,a=e.as,s=void 0===a?"div":a,l=e.dir,c=e.theme,u=i$(e,iY,["dir"]),d=dE(e),p=d.rootDir,f=d.needsTheme,h=ts.createElement(ah,{providerRef:n},ts.createElement(s,tf({dir:p},u,{className:o,ref:uG(n,r)})));return f&&(h=ts.createElement(o3,{settings:{theme:d_(c,"rtl"===l)}},h)),h}function dT(e,t,n){var r=t.bodyThemed;return ts.useEffect(function(){if(e){var t=n$(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}},[r,e,n]),n}dP.displayName="FabricBase";var dD={fontFamily:"inherit"},dA={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},dR=a1(dP,function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[l0(dA,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":dD,"& input":dD,"& textarea":dD},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}},void 0,{scope:"Fabric"}),dN={},dB={},dM="fluent-default-layer-host",dF="#".concat(dM);function dO(e,t){dN[e]||(dN[e]=[]),dN[e].push(t);var n=dB[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}function dL(e,t){var n=dN[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete dN[e])}var o=dB[e];if(o)for(var a=0,s=o;a<s.length;a++)s[a].notifyLayersChanged()}function dH(e){var t=dB[e];return t&&t[0]||void 0}function dz(e,t){void 0===t&&(t=null);var n=e.createElement("div");return n.setAttribute("id",dM),n.style.cssText="position:fixed;z-index:1000000",t?t.appendChild(n):null==e||e.body.appendChild(n),n}function dV(){return dF}var dU=oI(),dj=function(e){return null!=e&&!!e.current&&e.current.classList.contains(i7)},dW=ts.forwardRef(function(e,t){var n=dw(),r=ts.useRef(null),o=uG(r,t),a=ts.useRef(),s=ts.useRef(null),l=ts.useContext(as),c=ts.useState(!1),u=c[0],d=c[1],p=ts.useCallback(function(e){var t=dj(null==l?void 0:l.providerRef);e&&t&&e.classList.add(i7)},[l]),f=e.children,h=e.className,m=e.eventBubblingEnabled,g=e.fabricProps,v=e.hostId,y=e.insertFirst,b=e.onLayerDidMount,x=void 0===b?function(){}:b,C=e.onLayerMounted,k=void 0===C?function(){}:C,w=e.onLayerWillUnmount,S=e.styles,_=e.theme,E=uG(s,null==g?void 0:g.ref,p),P=dU(S,{theme:_,className:h,isNotHost:!v}),I=function(e,t){void 0===t&&(t=null);var n,r,o=null!=t?t:e;if(v){var a=dH(v);return a?null!=(n=a.rootRef.current)?n:null:null!=(r=o.getElementById(v))?r:null}var s=dV(),l=s?o.querySelector(s):null;return l||(l=dz(e,t)),l},T=function(){null==w||w();var e=a.current;a.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},D=function(){var e,t,n,o,s=n$(r.current),l=(null==(t=null==(e=r.current)?void 0:e.getRootNode())?void 0:t.host)?null==(n=null==r?void 0:r.current)?void 0:n.getRootNode():void 0;if(s&&(s||l)){var c=I(s,l);if(c){c.__tabsterElementFlags||(c.__tabsterElementFlags={}),c.__tabsterElementFlags.noDirectAriaHidden=!0,T();var u=(null!=(o=c.ownerDocument)?o:s).createElement("div");u.className=P.root,nK(u),nY(u,r.current),y?c.insertBefore(u,c.firstChild):c.appendChild(u),a.current=u,d(!0)}}};return a8(function(){D(),v&&dO(v,D);var e=a.current?n(a.current):void 0;return function(){e&&e(),T(),v&&dL(v,D)}},[v]),ts.useEffect(function(){a.current&&u&&(null==k||k(),null==x||x(),d(!1))},[u,k,x]),dK(e),ts.createElement("span",{className:"ms-layer",ref:o},a.current&&tl.createPortal(ts.createElement(ah,{layerRoot:!0,providerRef:E},ts.createElement(dR,tf({},!m&&dG(),g,{className:oG(P.content,null==g?void 0:g.className),ref:E}),f)),a.current))});dW.displayName="LayerBase";var dq=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};function dG(){return B||(B={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach(function(e){return B[e]=dq})),B}function dK(e){u0({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}var dX={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},dY=a1(dW,function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=l0(dX,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:T.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}},void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),d$=ts.forwardRef(function(e,t){var n=e.layerProps,r=e.doNotLayer,o=th(e,["layerProps","doNotLayer"]),a=ts.createElement(dx,tf({},o,{doNotLayer:r,ref:t}));return r?a:ts.createElement(dY,tf({},n),a)});d$.displayName="Callout";var dQ="FocusTrapZone",dJ={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},dZ=function(e,t,n){ts.useImperativeHandle(e,function(){return{get previouslyFocusedElement(){return t},focus:n}},[n,t])},d0=ts.forwardRef(function(e,t){var n,r=ts.useRef(null),o=ts.useRef(null),a=ts.useRef(null),s=uG(r,t),l=id(),c=u8(),u=ia(),d=null==(n=uX(!1))||n,p=a4(dJ,e),f=uV({hasFocus:!1,focusStackId:uq("ftz-",p.id)}),h=p.children,m=p.componentRef,g=p.disabled,v=p.disableFirstFocus,y=p.forceFocusInsideTrap,b=p.focusPreviouslyFocusedInnerElement,x=p.firstFocusableSelector,C=p.firstFocusableTarget,k=p.disableRestoreFocus,w=void 0===k?p.ignoreExternalFocusing:k,S=p.isClickableOutsideFocusTrap,_=p.enableAriaHiddenSiblings,E={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:g?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},P=ts.useCallback(function(e){e!==o.current&&e!==a.current&&ra(e)},[]),I=uW(function(){if(r.current){var e=f.previouslyFocusedElementInTrapZone;if(b&&e&&nz(r.current,e))return void P(e);var t=null;if("string"==typeof C)t=r.current.querySelector(C);else if(C)t=C(r.current);else if(x){var n="string"==typeof x?x:x();t=r.current.querySelector("."+n)}t||(t=n8(r.current,r.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,u)),t&&P(t)}}),T=function(e){if(!g&&r.current){var t=e===f.hasFocus?n4(r.current,a.current,!0,!1,u):n5(r.current,o.current,!0,!1,u);t&&(t===o.current||t===a.current?I():t.focus())}},D=function(e){null==(t=p.onBlurCapture)||t.call(p,e);var t,n=e.relatedTarget;null===e.relatedTarget&&(n=nj(l)),nz(r.current,n)||(f.hasFocus=!1)},A=function(e){var t;null==(t=p.onFocusCapture)||t.call(p,e),e.target===o.current?T(!0):e.target===a.current&&T(!1),f.hasFocus=!0,e.target!==e.currentTarget&&e.target!==o.current&&e.target!==a.current&&(f.previouslyFocusedElementInTrapZone=nq(e.nativeEvent))},R=uW(function(e){if(d0.focusStack=d0.focusStack.filter(function(e){return f.focusStackId!==e}),l){var t=l.activeElement;!w&&"function"==typeof(null==e?void 0:e.focus)&&(nz(r.current,t)||t===l.body||t.shadowRoot)&&P(e)}}),N=uW(function(e){if(!g&&f.focusStackId===d0.focusStack.slice(-1)[0]){var t=nq(e);t&&!nz(r.current,t)&&(l&&nj(l)===l.body?setTimeout(function(){l&&nj(l)===l.body&&(I(),f.hasFocus=!0)},0):(I(),f.hasFocus=!0),e.preventDefault(),e.stopPropagation())}});return ts.useEffect(function(){var e=[];return y&&e.push(rd(c,"focus",N,!0)),S||e.push(rd(c,"click",N,!0)),function(){e.forEach(function(e){return e()})}},[y,S,c]),ts.useEffect(function(){if(!g&&(d||y)&&r.current){d0.focusStack.push(f.focusStackId);var e=p.elementToFocusOnDismiss||nj(l);return v||nz(r.current,e)||I(),function(){return R(e)}}},[y,g]),ts.useEffect(function(){if(!g&&_)return aN(r.current)},[g,_,r]),uJ(function(){delete f.previouslyFocusedElementInTrapZone}),dZ(m,f.previouslyFocusedElementInTrapZone,I),ts.createElement("div",tf({"aria-labelledby":p.ariaLabelledBy},i$(p,iY),{ref:s,onFocusCapture:A,onBlurCapture:D}),ts.createElement("div",tf({},E,{ref:o})),h,ts.createElement("div",tf({},E,{ref:a})))});d0.displayName=dQ,d0.focusStack=[];var d1=function(e){return ts.createElement(d$,tf({},e),ts.createElement(d0,tf({disabled:e.hidden},e.focusTrapProps),e.children))},d2=oI(),d5=a1(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?ts.createElement("p",{className:t._classNames.subText},e.content):ts.createElement("div",{className:t._classNames.subText},e.content)},t}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,o=e.directionalHintForRTL,a=e.styles,s=e.id,l=e.maxWidth,c=e.onRenderContent,u=void 0===c?this._onRenderContent:c,d=e.targetElement,p=e.theme;return this._classNames=d2(a,{theme:p,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:l}),ts.createElement(d$,tf({target:d,directionalHint:r,directionalHintForRTL:o},n,i$(this.props,iY,["id"]),{className:this._classNames.root}),ts.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},u(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:cL,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(ts.Component),function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,a=void 0===o?0:o,s=e.maxWidth,l=e.theme,c=l.semanticColors,u=l.fonts,d=l.effects,p=-(Math.sqrt(r*r/2)+a)+1/window.devicePixelRatio;return{root:["ms-Tooltip",l.fonts.medium,ck.fadeIn200,{background:c.menuBackground,boxShadow:d.elevation8,padding:"8px",maxWidth:s,selectors:{":after":{content:"''",position:"absolute",bottom:p,left:p,right:p,top:p,zIndex:0}}},t],content:["ms-Tooltip-content",u.small,{position:"relative",zIndex:1,color:c.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}},void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(M||(M={})),function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(F||(F={}));var d4=oI(),d3=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=ts.createRef(),r._defaultTooltipId=iw("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case F.Parent:return r._tooltipHost.current.parentElement;case F.Self:}return r._tooltipHost.current}},r._onTooltipFocus=function(e){if(r._ignoreNextFocusEvent){r._ignoreNextFocusEvent=!1;return}r._onTooltipMouseEnter(e)},r._onTooltipContentFocus=function(e){t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){var t;r._ignoreNextFocusEvent=(null==(t=u9(r.context))?void 0:t.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout(function(){r._hideTooltip()},0)},r._onTooltipMouseEnter=function(e){var n=r.props,o=n.overflowMode,a=n.delay,s=u9(r.context);if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,void 0!==o){var l=r._getTargetElement();if(l&&!aL(l))return}if(!(e.target&&nX(e.target,r._getTargetElement(),s)))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==M.zero){var c=r._getDelayTime(a);r._openTimerId=r._async.setTimeout(function(){r._toggleTooltip(!0)},c)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout(function(){r._toggleTooltip(!1)},n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===r1||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e},function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)})},r._getDelayTime=function(e){switch(e){case M.medium:return 300;case M.long:return 500;default:return 0}},i2(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,o=e.directionalHint,a=e.directionalHintForRTL,s=e.hostClassName,l=e.id,c=e.setAriaDescribedBy,u=void 0===c||c,d=e.tooltipProps,p=e.styles,f=e.theme;this._classNames=d4(p,{theme:f,className:s});var h=this.state.isTooltipVisible,m=l||this._defaultTooltipId,g=tf(tf({id:"".concat(m,"--tooltip"),content:r,targetElement:this._getTargetElement(),directionalHint:o,directionalHintForRTL:a,calloutProps:rf({},t,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},i$(this.props,iY,["id"])),d),v=(null==d?void 0:d.onRenderContent)?d.onRenderContent(g,function(e){return(null==e?void 0:e.content)?ts.createElement(ts.Fragment,null,e.content):null}):r,y=h&&!!v,b=u&&h&&v?m:void 0;return ts.createElement("div",{className:this._classNames.root,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":b},n,y&&ts.createElement(d5,tf({},g)),ts.createElement("div",{hidden:!0,id:m,style:lV},v))},t.prototype.componentDidMount=function(){this._async=new nF(this)},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:M.medium},t.contextType=ic,t}(ts.Component),d6={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},d8=a1(d3,function(e){var t=e.className;return{root:[l0(d6,e.theme).root,{display:"inline"},t]}},void 0,{scope:"TooltipHost"});!function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(O||(O={})),function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(L||(L={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(H||(H={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(z||(z={}));var d9=oI(),d7=/\.svg$/i,pe="fabricImage";function pt(e,t){var n=e.onLoadingStateChange,r=e.onLoad,o=e.onError,a=e.src,s=ts.useState(z.notLoaded),l=s[0],c=s[1];return a8(function(){c(z.notLoaded)},[a]),ts.useEffect(function(){l===z.notLoaded&&t.current&&(a&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&d7.test(a))&&c(z.loaded)}),ts.useEffect(function(){null==n||n(l)},[l]),[l,ts.useCallback(function(e){null==r||r(e),a&&c(z.loaded)},[a,r]),ts.useCallback(function(e){null==o||o(e),c(z.error)},[o])]}var pn=ts.forwardRef(function(e,t){var n=ts.useRef(),r=ts.useRef(),o=pt(e,r),a=o[0],s=o[1],l=o[2],c=i$(e,iX,["width","height"]),u=e.src,d=e.alt,p=e.width,f=e.height,h=e.shouldFadeIn,m=void 0===h||h,g=e.shouldStartVisible,v=e.className,y=e.imageFit,b=e.role,x=e.maximizeFrame,C=e.styles,k=e.theme,w=e.loading,S=pr(e,a,r,n),_=d9(C,{theme:k,className:v,width:p,height:f,maximizeFrame:x,shouldFadeIn:m,shouldStartVisible:g,isLoaded:a===z.loaded||a===z.notLoaded&&e.shouldStartVisible,isLandscape:S===H.landscape,isCenter:y===L.center,isCenterContain:y===L.centerContain,isCenterCover:y===L.centerCover,isContain:y===L.contain,isCover:y===L.cover,isNone:y===L.none,isError:a===z.error,isNotImageFit:void 0===y});return ts.createElement("div",{className:_.root,style:{width:p,height:f},ref:n},ts.createElement("img",tf({},c,{onLoad:s,onError:l,key:pe+e.src||"",className:_.image,ref:uG(r,t),src:u,alt:d,role:b,loading:w})))});function pr(e,t,n,r){var o=ts.useRef(t),a=ts.useRef();return(void 0===a||o.current===z.notLoaded&&t===z.loaded)&&(a.current=po(e,t,n,r)),o.current=t,a.current}function po(e,t,n,r){var o=e.imageFit,a=e.width,s=e.height;if(void 0!==e.coverStyle)return e.coverStyle;if(t===z.loaded&&(o===L.cover||o===L.contain||o===L.centerContain||o===L.centerCover)&&n.current&&r.current){var l=void 0;if(l="number"==typeof a&&"number"==typeof s&&o!==L.centerContain&&o!==L.centerCover?a/s:r.current.clientWidth/r.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>l)return H.landscape}return H.portrait}pn.displayName="ImageBase";var pi={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},pa=a1(pn,function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,a=e.isLoaded,s=e.shouldFadeIn,l=e.shouldStartVisible,c=e.isLandscape,u=e.isCenter,d=e.isContain,p=e.isCover,f=e.isCenterContain,h=e.isCenterCover,m=e.isNone,g=e.isError,v=e.isNotImageFit,y=e.theme,b=l0(pi,y),x={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=nM(),k=void 0!==C&&void 0===C.navigator.msMaxTouchPoints,w=d&&c||p&&!c?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[b.root,y.fonts.medium,{overflow:"hidden"},o&&[b.rootMaximizeFrame,{height:"100%",width:"100%"}],a&&s&&!l&&ck.fadeIn400,(u||d||p||f||h)&&{position:"relative"},t],image:[b.image,{display:"block",opacity:0},a&&["is-loaded",{opacity:1}],u&&[b.imageCenter,x],d&&[b.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&w,!k&&x],p&&[b.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&w,!k&&x],f&&[b.imageCenterContain,c&&{maxWidth:"100%"},!c&&{maxHeight:"100%"},x],h&&[b.imageCenterCover,c&&{maxHeight:"100%"},!c&&{maxWidth:"100%"},x],m&&[b.imageNone,{width:"auto",height:"auto"}],v&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],c&&b.imageLandscape,!c&&b.imagePortrait,!a&&"is-notLoaded",s&&"is-fadeIn",g&&"is-error"]}},void 0,{scope:"Image"},!0);pa.displayName="Image";var ps=nC({root:{display:"inline-block",textDecoration:"inherit"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),pl="ms-Icon",pc=function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,o=e.isImage,a=e.styles;return{root:[r&&ps.placeholder,ps.root,o&&ps.image,n,t,a&&a.root,a&&a.imageContainer]}},pu=oL(function(e){var t=so(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily,mergeImageProps:r.mergeImageProps}:null},void 0,!0),pd=function(e){var t=e.iconName,n=e.className,r=e.style,o=void 0===r?{}:r,a=pu(t)||{},s=a.iconClassName,l=a.children,c=a.fontFamily,u=a.mergeImageProps,d=i$(e,iI),p=e["aria-label"]||e.title,f=e["aria-label"]||e["aria-labelledby"]||e.title?{role:u?void 0:"img"}:{"aria-hidden":!0},h=l;return u&&"object"==typeof l&&"object"==typeof l.props&&p&&(h=ts.cloneElement(l,{alt:p})),ts.createElement("i",tf({"data-icon-name":t},f,d,u?{title:void 0,"aria-label":void 0}:{},{className:oG(pl,ps.root,s,!t&&ps.placeholder,n),style:tf({fontFamily:c},o)}),h)};oL(function(e,t,n){return pd({iconName:e,className:t,"aria-label":n})});var pp=oI({cacheSize:100}),pf=a1(function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===z.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.styles,o=e.iconName,a=e.imageErrorAs,s=e.theme,l="string"==typeof o&&0===o.length,c=!!this.props.imageProps||this.props.iconType===O.image||this.props.iconType===O.Image,u=pu(o)||{},d=u.iconClassName,p=u.children,f=u.mergeImageProps,h=pp(r,{theme:s,className:n,iconClassName:d,isImage:c,isPlaceholder:l}),m=c?"span":"i",g=i$(this.props,iI,["aria-label"]),v=this.state.imageLoadError,y=tf(tf({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=v&&a||pa,x=this.props["aria-label"]||this.props.ariaLabel,C=y.alt||x||this.props.title,k=C||this.props["aria-labelledby"]||y["aria-label"]||y["aria-labelledby"]?{role:c||f?void 0:"img","aria-label":c||f?void 0:C}:{"aria-hidden":!0},w=p;return f&&p&&"object"==typeof p&&C&&(w=ts.cloneElement(p,{alt:C})),ts.createElement(m,tf({"data-icon-name":o},k,g,f?{title:void 0,"aria-label":void 0}:{},{className:h.root}),c?ts.createElement(b,tf({},y)):t||w)},t}(ts.Component),pc,void 0,{scope:"Icon"},!0);pf.displayName="Icon";var ph=function(e){var t=e.className,n=e.imageProps,r=i$(e,iI,["aria-label","aria-labelledby","title","aria-describedby"]),o=n.alt||e["aria-label"],a=o||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,s={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},l=a?{}:{"aria-hidden":!0};return ts.createElement("div",tf({},l,r,{className:oG(pl,ps.root,ps.image,t)}),ts.createElement(pa,tf({},s,n,{alt:a?o:""})))};!function(e){e[e.tiny=0]="tiny",e[e.extraExtraSmall=1]="extraExtraSmall",e[e.extraSmall=2]="extraSmall",e[e.small=3]="small",e[e.regular=4]="regular",e[e.large=5]="large",e[e.extraLarge=6]="extraLarge",e[e.size8=17]="size8",e[e.size10=9]="size10",e[e.size16=8]="size16",e[e.size24=10]="size24",e[e.size28=7]="size28",e[e.size32=11]="size32",e[e.size40=12]="size40",e[e.size48=13]="size48",e[e.size56=16]="size56",e[e.size72=14]="size72",e[e.size100=15]="size100",e[e.size120=18]="size120"}(V||(V={})),function(e){e[e.none=0]="none",e[e.offline=1]="offline",e[e.online=2]="online",e[e.away=3]="away",e[e.dnd=4]="dnd",e[e.blocked=5]="blocked",e[e.busy=6]="busy"}(U||(U={})),function(e){e[e.lightBlue=0]="lightBlue",e[e.blue=1]="blue",e[e.darkBlue=2]="darkBlue",e[e.teal=3]="teal",e[e.lightGreen=4]="lightGreen",e[e.green=5]="green",e[e.darkGreen=6]="darkGreen",e[e.lightPink=7]="lightPink",e[e.pink=8]="pink",e[e.magenta=9]="magenta",e[e.purple=10]="purple",e[e.black=11]="black",e[e.orange=12]="orange",e[e.red=13]="red",e[e.darkRed=14]="darkRed",e[e.transparent=15]="transparent",e[e.violet=16]="violet",e[e.lightRed=17]="lightRed",e[e.gold=18]="gold",e[e.burgundy=19]="burgundy",e[e.warmGray=20]="warmGray",e[e.coolGray=21]="coolGray",e[e.gray=22]="gray",e[e.cyan=23]="cyan",e[e.rust=24]="rust"}(j||(j={})),function(e){e.size8="20px",e.size10="20px",e.size16="16px",e.size24="24px",e.size28="28px",e.size32="32px",e.size40="40px",e.size48="48px",e.size56="56px",e.size72="72px",e.size100="100px",e.size120="120px"}(q||(q={})),function(e){e.size6="6px",e.size8="8px",e.size12="12px",e.size16="16px",e.size20="20px",e.size28="28px",e.size32="32px",e.border="2px"}(G||(G={}));var pm=function(e){return{isSize8:e===V.size8,isSize10:e===V.size10||e===V.tiny,isSize16:e===V.size16,isSize24:e===V.size24||e===V.extraExtraSmall,isSize28:e===V.size28||e===V.extraSmall,isSize32:e===V.size32,isSize40:e===V.size40||e===V.small,isSize48:e===V.size48||e===V.regular,isSize56:e===V.size56,isSize72:e===V.size72||e===V.large,isSize100:e===V.size100||e===V.extraLarge,isSize120:e===V.size120}},pg=((W={})[V.tiny]=10,W[V.extraExtraSmall]=24,W[V.extraSmall]=28,W[V.small]=40,W[V.regular]=48,W[V.large]=72,W[V.extraLarge]=100,W[V.size8]=8,W[V.size10]=10,W[V.size16]=16,W[V.size24]=24,W[V.size28]=28,W[V.size32]=32,W[V.size40]=40,W[V.size48]=48,W[V.size56]=56,W[V.size72]=72,W[V.size100]=100,W[V.size120]=120,W),pv=function(e){return{isAvailable:e===U.online,isAway:e===U.away,isBlocked:e===U.blocked,isBusy:e===U.busy,isDoNotDisturb:e===U.dnd,isOffline:e===U.offline}},py=6,pb=3,px=40,pC=20,pk=oI({cacheSize:100}),pw=ts.forwardRef(function(e,t){var n=e.coinSize,r=e.isOutOfOffice,o=e.styles,a=e.presence,s=e.theme,l=e.presenceTitle,c=e.presenceColors,u=uG(t,ts.useRef(null)),d=pm(e.size),p=!(d.isSize8||d.isSize10||d.isSize16||d.isSize24||d.isSize28||d.isSize32)&&(!n||n>32),f=n?n/pb<px?n/pb+"px":px+"px":"",h=n?n/py<pC?n/py+"px":pC+"px":"",m=n?{fontSize:h,lineHeight:f}:void 0,g=n?{width:f,height:f}:void 0,v=pk(o,{theme:s,presence:a,size:e.size,isOutOfOffice:r,presenceColors:c});return a===U.none?null:ts.createElement("div",{role:"presentation",className:v.presence,style:g,title:l,ref:u},p&&ts.createElement(pf,{className:v.presenceIcon,iconName:pS(e.presence,e.isOutOfOffice),style:m}))});function pS(e,t){if(e){var n="SkypeArrow";switch(U[e]){case"online":return"SkypeCheck";case"away":return t?n:"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?n:""}return""}}pw.displayName="PersonaPresenceBase";var p_={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function pE(e){return{color:e,borderColor:e}}function pP(e,t){return{selectors:{":before":{border:"".concat(e," solid ").concat(t)}}}}function pI(e){return{height:e,width:e}}function pT(e){return{backgroundColor:e}}var pD=a1(pw,function(e){var t,n,r,o,a,s,l=e.theme,c=e.presenceColors,u=l.semanticColors,d=l.fonts,p=l0(p_,l),f=pm(e.size),h=pv(e.presence),m=c&&c.available||"#6BB700",g=c&&c.away||"#FFAA44",v=c&&c.busy||"#C43148",y=c&&c.dnd||"#C50F1F",b=c&&c.offline||"#8A8886",x=c&&c.oof||"#B4009E",C=c&&c.background||u.bodyBackground,k=h.isOffline||e.isOutOfOffice&&(h.isAvailable||h.isBusy||h.isAway||h.isDoNotDisturb),w="1px",S="2px",_=f.isSize72||f.isSize100?S:w;return{presence:[p.presence,tf(tf({position:"absolute",height:G.size12,width:G.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid ".concat(C),textAlign:"center",boxSizing:"content-box",backgroundClip:"border-box"},lF()),{selectors:((t={})[l_]={borderColor:"Window",backgroundColor:"WindowText"},t)}),(f.isSize8||f.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:((n={})[l_]={top:"9px",border:"1px solid WindowText"},n)},(f.isSize8||f.isSize10||f.isSize24||f.isSize28||f.isSize32)&&pI(G.size8),(f.isSize40||f.isSize48)&&pI(G.size12),f.isSize16&&{height:G.size6,width:G.size6,borderWidth:"1.5px"},f.isSize56&&pI(G.size16),f.isSize72&&pI(G.size20),f.isSize100&&pI(G.size28),f.isSize120&&pI(G.size32),h.isAvailable&&{backgroundColor:m,selectors:((r={})[l_]=pT("Highlight"),r)},h.isAway&&pT(g),h.isBlocked&&[{selectors:((o={":after":f.isSize40||f.isSize48||f.isSize72||f.isSize100?{content:'""',width:"100%",height:_,backgroundColor:v,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0})[l_]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},o)}],h.isBusy&&pT(v),h.isDoNotDisturb&&pT(y),h.isOffline&&pT(b),(k||h.isBlocked)&&[{backgroundColor:C,selectors:((a={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"".concat(_," solid ").concat(v),borderRadius:"50%",boxSizing:"border-box"}})[l_]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},a)}],k&&h.isAvailable&&pP(_,m),k&&h.isBusy&&pP(_,v),k&&h.isAway&&pP(_,x),k&&h.isDoNotDisturb&&pP(_,y),k&&h.isOffline&&pP(_,b),k&&h.isOffline&&e.isOutOfOffice&&pP(_,x)],presenceIcon:[p.presenceIcon,{color:C,fontSize:"6px",lineHeight:G.size12,verticalAlign:"top",selectors:((s={})[l_]={color:"Window"},s)},f.isSize56&&{fontSize:"8px",lineHeight:G.size16},f.isSize72&&{fontSize:d.small.fontSize,lineHeight:G.size20},f.isSize100&&{fontSize:d.medium.fontSize,lineHeight:G.size28},f.isSize120&&{fontSize:d.medium.fontSize,lineHeight:G.size32},h.isAway&&{position:"relative",left:k?void 0:"1px"},k&&h.isAvailable&&pE(m),k&&h.isBusy&&pE(v),k&&h.isAway&&pE(x),k&&h.isDoNotDisturb&&pE(y),k&&h.isOffline&&pE(b),k&&h.isOffline&&e.isOutOfOffice&&pE(x)]}},void 0,{scope:"PersonaPresence"}),pA=[j.lightBlue,j.blue,j.darkBlue,j.teal,j.green,j.darkGreen,j.lightPink,j.pink,j.magenta,j.purple,j.orange,j.lightRed,j.darkRed,j.violet,j.gold,j.burgundy,j.warmGray,j.cyan,j.rust,j.coolGray],pR=pA.length;function pN(e){var t=j.blue;if(!e)return t;for(var n=0,r=e.length-1;r>=0;r--){var o=e.charCodeAt(r),a=r%8;n^=(o<<a)+(o>>8-a)}return pA[n%pR]}function pB(e){switch(e){case j.lightBlue:return"#4F6BED";case j.blue:return"#0078D4";case j.darkBlue:return"#004E8C";case j.teal:return"#038387";case j.lightGreen:case j.green:return"#498205";case j.darkGreen:return"#0B6A0B";case j.lightPink:return"#C239B3";case j.pink:return"#E3008C";case j.magenta:return"#881798";case j.purple:return"#5C2E91";case j.orange:return"#CA5010";case j.red:return"#EE1111";case j.lightRed:return"#D13438";case j.darkRed:return"#A4262C";case j.transparent:return"transparent";case j.violet:return"#8764B8";case j.gold:return"#986F0B";case j.burgundy:return"#750B1C";case j.warmGray:return"#7A7574";case j.cyan:return"#005B70";case j.rust:return"#8E562E";case j.coolGray:return"#69797E";case j.black:return"#1D1D1D";case j.gray:return"#393939"}}function pM(e){var t,n=e.primaryText,r=e.text,o=e.initialsColor;return"string"==typeof o?o:pB(o=void 0!==o?o:pN(r||n))}var pF=oI({cacheSize:100}),pO=oL(function(e,t,n,r,o,a){return ny(e,!a&&{backgroundColor:pM({text:r,initialsColor:t,primaryText:o}),color:n})}),pL={size:V.size48,presence:U.none,imageAlt:""};function pH(e){u0({name:"PersonaCoin",props:e,deprecations:{primaryText:"text"}})}function pz(e){var t=e.onPhotoLoadingStateChange,n=e.imageUrl,r=ts.useState(z.notLoaded),o=r[0],a=r[1];return ts.useEffect(function(){a(z.notLoaded)},[n]),[o,function(e){a(e),null==t||t(e)}]}var pV=ts.forwardRef(function(e,t){var n=a4(pL,e);pH(n);var r=pz(n),o=r[0],a=pU(r[1]),s=n.className,l=n.coinProps,c=n.showUnknownPersonaCoin,u=n.coinSize,d=n.styles,p=n.imageUrl,f=n.initialsColor,h=n.initialsTextColor,m=n.isOutOfOffice,g=n.onRenderCoin,v=void 0===g?a:g,y=n.onRenderPersonaCoin,b=void 0===y?v:y,x=n.onRenderInitials,C=void 0===x?pj:x,k=n.presence,w=n.presenceTitle,S=n.presenceColors,_=n.primaryText,E=n.showInitialsUntilImageLoads,P=n.text,I=n.theme,T=n.size,D=i$(n,iY),A=i$(l||{},iY),R=u?{width:u,height:u}:void 0,N=c,B={coinSize:u,isOutOfOffice:m,presence:k,presenceTitle:w,presenceColors:S,size:T,theme:I},M=pF(d,{theme:I,className:l&&l.className?l.className:s,size:T,coinSize:u,showUnknownPersonaCoin:c}),F=!!(o!==z.loaded&&(E&&p||!p||o===z.error||N));return ts.createElement("div",tf({role:"presentation"},D,{className:M.coin,ref:t}),T!==V.size8&&T!==V.size10&&T!==V.tiny?ts.createElement("div",tf({role:"presentation"},A,{className:M.imageArea,style:R}),F&&ts.createElement("div",{className:pO(M.initials,f,h,P,_,c),style:R,"aria-hidden":"true"},C(n,pj)),!N&&b(n,a),ts.createElement(pD,tf({},B))):n.presence?ts.createElement(pD,tf({},B)):ts.createElement(pf,{iconName:"Contact",className:M.size10WithoutPresenceIcon}),n.children)});pV.displayName="PersonaCoinBase";var pU=function(e){return function(t){var n=t.coinSize,r=t.styles,o=t.imageUrl,a=t.imageAlt,s=t.imageShouldFadeIn,l=t.imageShouldStartVisible,c=t.theme,u=t.showUnknownPersonaCoin,d=t.size,p=void 0===d?pL.size:d;if(!o)return null;var f=pF(r,{theme:c,size:p,showUnknownPersonaCoin:u}),h=n||pg[p];return ts.createElement(pa,{className:f.image,imageFit:L.cover,src:o,width:h,height:h,alt:a,shouldFadeIn:s,shouldStartVisible:l,onLoadingStateChange:e})}},pj=function(e){var t=e.imageInitials,n=e.allowPhoneInitials,r=e.showUnknownPersonaCoin,o=e.text,a=e.primaryText,s=e.theme;if(r)return ts.createElement(pf,{iconName:"Help"});var l=ox(s);return""!==(t=t||ak(o||a||"",l,n))?ts.createElement("span",null,t):ts.createElement(pf,{iconName:"Contact"})},pW={coin:"ms-Persona-coin",imageArea:"ms-Persona-imageArea",image:"ms-Persona-image",initials:"ms-Persona-initials",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120"},pq=a1(pV,function(e){var t,n=e.className,r=e.theme,o=e.coinSize,a=r.palette,s=r.fonts,l=pm(e.size),c=l0(pW,r),u="rgb(234, 234, 234)",d="rgb(168, 0, 0)",p=o||e.size&&pg[e.size]||48;return{coin:[c.coin,s.medium,l.isSize8&&c.size8,l.isSize10&&c.size10,l.isSize16&&c.size16,l.isSize24&&c.size24,l.isSize28&&c.size28,l.isSize32&&c.size32,l.isSize40&&c.size40,l.isSize48&&c.size48,l.isSize56&&c.size56,l.isSize72&&c.size72,l.isSize100&&c.size100,l.isSize120&&c.size120,n],size10WithoutPresenceIcon:{fontSize:s.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[c.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:p,width:p},p<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[c.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},p<=10&&{overflow:"visible",background:"transparent",height:0,width:0},p>10&&{height:p,width:p}],initials:[c.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?d:a.white,fontSize:s.large.fontSize,fontWeight:P.semibold,lineHeight:48===p?46:p,height:p,selectors:((t={})[l_]=tf(tf({border:"1px solid WindowText"},lF()),{color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"}),t.i={fontWeight:P.semibold},t)},e.showUnknownPersonaCoin&&{backgroundColor:u},p<32&&{fontSize:s.xSmall.fontSize},p>=32&&p<40&&{fontSize:s.medium.fontSize},p>=40&&p<56&&{fontSize:s.mediumPlus.fontSize},p>=56&&p<72&&{fontSize:s.xLarge.fontSize},p>=72&&p<100&&{fontSize:s.xxLarge.fontSize},p>=100&&{fontSize:s.superLarge.fontSize}]}},void 0,{scope:"PersonaCoin"}),pG=oI(),pK={size:V.size48,presence:U.none,imageAlt:"",showOverflowTooltip:!0};function pX(e){u0({name:"Persona",props:e,deprecations:{primaryText:"text"}})}var pY=ts.forwardRef(function(e,t){var n=a4(pK,e);pX(n);var r=uG(t,ts.useRef(null)),o=function(){return n.text||n.primaryText||""},a=function(e,t,r){var o=t&&t(n,r);return o?ts.createElement("div",{dir:"auto",className:e},o):void 0},s=function(e,t){return void 0===t&&(t=!0),e?t?function(){return ts.createElement(d8,{content:e,overflowMode:F.Parent,directionalHint:cO},e)}:function(){return ts.createElement(ts.Fragment,null,e)}:void 0},l=function(e){return ts.createElement(pq,tf({},e))},c=s(o(),n.showOverflowTooltip),u=s(n.secondaryText,n.showOverflowTooltip),d=s(n.tertiaryText,n.showOverflowTooltip),p=s(n.optionalText,n.showOverflowTooltip),f=n.hidePersonaDetails,h=n.onRenderOptionalText,m=void 0===h?p:h,g=n.onRenderPrimaryText,v=void 0===g?c:g,y=n.onRenderSecondaryText,b=void 0===y?u:y,x=n.onRenderTertiaryText,C=void 0===x?d:x,k=n.onRenderPersonaCoin,w=void 0===k?l:k,S=n.size,_=n.allowPhoneInitials,E=n.className,P=n.coinProps,I=n.showUnknownPersonaCoin,T=n.coinSize,D=n.styles,A=n.imageAlt,R=n.imageInitials,N=n.imageShouldFadeIn,B=n.imageShouldStartVisible,M=n.imageUrl,O=n.initialsColor,L=n.initialsTextColor,H=n.isOutOfOffice,z=n.onPhotoLoadingStateChange,U=n.onRenderCoin,j=n.onRenderInitials,W=n.presence,q=n.presenceTitle,G=n.presenceColors,K=n.showInitialsUntilImageLoads,X=n.showSecondaryText,Y=n.theme,Q=tf({allowPhoneInitials:_,showUnknownPersonaCoin:I,coinSize:T,imageAlt:A,imageInitials:R,imageShouldFadeIn:N,imageShouldStartVisible:B,imageUrl:M,initialsColor:O,initialsTextColor:L,onPhotoLoadingStateChange:z,onRenderCoin:U,onRenderInitials:j,presence:W,presenceTitle:q,showInitialsUntilImageLoads:K,size:S,text:o(),isOutOfOffice:H,presenceColors:G},P),J=pG(D,{theme:Y,className:E,showSecondaryText:X,presence:W,size:S}),Z=i$(n,iY),ee=ts.createElement("div",{className:J.details},a(J.primaryText,v,c),a(J.secondaryText,b,u),a(J.tertiaryText,C,d),a(J.optionalText,m,p),n.children);return ts.createElement("div",tf({},Z,{ref:r,className:J.root,style:T?{height:T,minWidth:T}:void 0}),w(Q,w),(!f||S===V.size8||S===V.size10||S===V.tiny)&&ee)});pY.displayName="PersonaBase";var p$={root:"ms-Persona",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120",available:"ms-Persona--online",away:"ms-Persona--away",blocked:"ms-Persona--blocked",busy:"ms-Persona--busy",doNotDisturb:"ms-Persona--donotdisturb",offline:"ms-Persona--offline",details:"ms-Persona-details",primaryText:"ms-Persona-primaryText",secondaryText:"ms-Persona-secondaryText",tertiaryText:"ms-Persona-tertiaryText",optionalText:"ms-Persona-optionalText",textContent:"ms-Persona-textContent"},pQ=a1(pY,function(e){var t=e.className,n=e.showSecondaryText,r=e.theme,o=r.semanticColors,a=r.fonts,s=l0(p$,r),l=pm(e.size),c=pv(e.presence),u="16px",d={color:o.bodySubtext,fontWeight:P.regular,fontSize:a.small.fontSize};return{root:[s.root,r.fonts.medium,cv,{color:o.bodyText,position:"relative",height:q.size48,minWidth:q.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},l.isSize8&&[s.size8,{height:q.size8,minWidth:q.size8}],l.isSize10&&[s.size10,{height:q.size10,minWidth:q.size10}],l.isSize16&&[s.size16,{height:q.size16,minWidth:q.size16}],l.isSize24&&[s.size24,{height:q.size24,minWidth:q.size24}],l.isSize24&&n&&{height:"36px"},l.isSize28&&[s.size28,{height:q.size28,minWidth:q.size28}],l.isSize28&&n&&{height:"32px"},l.isSize32&&[s.size32,{height:q.size32,minWidth:q.size32}],l.isSize40&&[s.size40,{height:q.size40,minWidth:q.size40}],l.isSize48&&s.size48,l.isSize56&&[s.size56,{height:q.size56,minWidth:q.size56}],l.isSize72&&[s.size72,{height:q.size72,minWidth:q.size72}],l.isSize100&&[s.size100,{height:q.size100,minWidth:q.size100}],l.isSize120&&[s.size120,{height:q.size120,minWidth:q.size120}],c.isAvailable&&s.available,c.isAway&&s.away,c.isBlocked&&s.blocked,c.isBusy&&s.busy,c.isDoNotDisturb&&s.doNotDisturb,c.isOffline&&s.offline,t],details:[s.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(l.isSize8||l.isSize10)&&{paddingLeft:17},(l.isSize24||l.isSize28||l.isSize32)&&{padding:"0 8px"},(l.isSize40||l.isSize48)&&{padding:"0 12px"}],primaryText:[s.primaryText,cy,{color:o.bodyText,fontWeight:P.regular,fontSize:a.medium.fontSize,selectors:{":hover":{color:o.inputTextHovered}}},n&&{height:u,lineHeight:u,overflowX:"hidden"},(l.isSize8||l.isSize10)&&{fontSize:a.small.fontSize,lineHeight:q.size8},l.isSize16&&{lineHeight:q.size28},(l.isSize24||l.isSize28||l.isSize32||l.isSize40||l.isSize48)&&n&&{height:18},(l.isSize56||l.isSize72||l.isSize100||l.isSize120)&&{fontSize:a.xLarge.fontSize},(l.isSize56||l.isSize72||l.isSize100||l.isSize120)&&n&&{height:22}],secondaryText:[s.secondaryText,cy,d,(l.isSize8||l.isSize10||l.isSize16||l.isSize24||l.isSize28||l.isSize32)&&{display:"none"},n&&{display:"block",height:u,lineHeight:u,overflowX:"hidden"},l.isSize24&&n&&{height:18},(l.isSize56||l.isSize72||l.isSize100||l.isSize120)&&{fontSize:a.medium.fontSize},(l.isSize56||l.isSize72||l.isSize100||l.isSize120)&&n&&{height:18}],tertiaryText:[s.tertiaryText,cy,d,{display:"none",fontSize:a.medium.fontSize},(l.isSize72||l.isSize100||l.isSize120)&&{display:"block"}],optionalText:[s.optionalText,cy,d,{display:"none",fontSize:a.medium.fontSize},(l.isSize100||l.isSize120)&&{display:"block"}],textContent:[s.textContent,cy]}},void 0,{scope:"Persona"});!function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderIcon=function(e){return e.activityPersonas?n._onRenderPersonaArray(e):n.props.activityIcon},n._onRenderActivityDescription=function(e){var t=n._getClassNames(e),r=e.activityDescription||e.activityDescriptionText;return r?ts.createElement("span",{className:t.activityText},r):null},n._onRenderComments=function(e){var t=n._getClassNames(e),r=e.comments||e.commentText;return!e.isCompact&&r?ts.createElement("div",{className:t.commentText},r):null},n._onRenderTimeStamp=function(e){var t=n._getClassNames(e);return!e.isCompact&&e.timeStamp?ts.createElement("div",{className:t.timeStamp},e.timeStamp):null},n._onRenderPersonaArray=function(e){var t=n._getClassNames(e),r=null,o=e.activityPersonas;if(o[0].imageUrl||o[0].imageInitials){var a=[],s=o.length>1||e.isCompact,l=e.isCompact?3:4,c=void 0;e.isCompact&&(c={display:"inline-block",width:"10px",minWidth:"10px",overflow:"visible"}),o.filter(function(e,t){return t<l}).forEach(function(e,n){a.push(ts.createElement(pq,tf({},e,{key:e.key||n,className:t.activityPersona,size:s?V.size16:V.size32,style:c})))}),r=ts.createElement("div",{className:t.personaContainer},a)}return r},n}tp(t,e),t.prototype.render=function(){var e=this.props,t=e.onRenderIcon,n=void 0===t?this._onRenderIcon:t,r=e.onRenderActivityDescription,o=void 0===r?this._onRenderActivityDescription:r,a=e.onRenderComments,s=void 0===a?this._onRenderComments:a,l=e.onRenderTimeStamp,c=void 0===l?this._onRenderTimeStamp:l,u=e.animateBeaconSignal,d=e.isCompact,p=this._getClassNames(this.props);return ts.createElement("div",{className:p.root,style:this.props.style},(this.props.activityPersonas||this.props.activityIcon||this.props.onRenderIcon)&&ts.createElement("div",{className:p.activityTypeIcon},u&&d&&ts.createElement("div",{className:p.pulsingBeacon}),n(this.props)),ts.createElement("div",{className:p.activityContent},o(this.props,this._onRenderActivityDescription),s(this.props,this._onRenderComments),c(this.props,this._onRenderTimeStamp)))},t.prototype._getClassNames=function(e){return cF(cM(void 0,e.styles,e.animateBeaconSignal,e.beaconColorOne,e.beaconColorTwo,e.isCompact),e.className,e.activityPersonas,e.isCompact)}}(ts.Component);var pJ="forward",pZ="backward",p0=function(e){function t(t){var n=e.call(this,t)||this;return n._inputElement=ts.createRef(),n._autoFillEnabled=!0,n._onCompositionStart=function(e){n.setState({isComposing:!0}),n._autoFillEnabled=!1},n._onCompositionUpdate=function(){a5()&&n._updateValue(n._getCurrentInputValue(),!0)},n._onCompositionEnd=function(e){var t=n._getCurrentInputValue();n._tryEnableAutofill(t,n.value,!1,!0),n.setState({isComposing:!1}),n._async.setTimeout(function(){n._updateValue(n._getCurrentInputValue(),!1)},0)},n._onClick=function(){n.value&&""!==n.value&&n._autoFillEnabled&&(n._autoFillEnabled=!1)},n._onKeyDown=function(e){if(n.props.onKeyDown&&n.props.onKeyDown(e),!e.nativeEvent.isComposing)switch(e.which){case rY:n._autoFillEnabled=!1;break;case r8:case r7:n._autoFillEnabled&&(n.setState(function(e){return{inputValue:n.props.suggestedDisplayValue||e.inputValue}}),n._autoFillEnabled=!1);break;default:n._autoFillEnabled||-1===n.props.enableAutofillOnKeyPress.indexOf(e.which)||(n._autoFillEnabled=!0)}},n._onInputChanged=function(e){var t=n._getCurrentInputValue(e);if(n.state.isComposing||n._tryEnableAutofill(t,n.value,e.nativeEvent.isComposing),!(a5()&&n.state.isComposing)){var r=e.nativeEvent.isComposing,o=void 0===r?n.state.isComposing:r;n._updateValue(t,o)}},n._onChanged=function(){},n._updateValue=function(e,t){if(e||e!==n.value){var r=n.props,o=r.onInputChange,a=r.onInputValueChange;o&&(e=(null==o?void 0:o(e,t))||""),n.setState({inputValue:e},function(){return null==a?void 0:a(e,t)})}},i2(n),n._async=new nF(n),n.state={inputValue:t.defaultVisibleValue||"",isComposing:!1},n}return tp(t,e),t.getDerivedStateFromProps=function(e,t){if(e.updateValueInWillReceiveProps){var n=e.updateValueInWillReceiveProps();if(null!==n&&n!==t.inputValue&&!t.isComposing)return tf(tf({},t),{inputValue:n})}return null},Object.defineProperty(t.prototype,"cursorLocation",{get:function(){if(!this._inputElement.current)return -1;var e=this._inputElement.current;return e.selectionDirection!==pJ?e.selectionEnd:e.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueSelected",{get:function(){return!!(this.inputElement&&this.inputElement.selectionStart!==this.inputElement.selectionEnd)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._getControlledValue()||this.state.inputValue||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._inputElement.current?this._inputElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._inputElement.current?this._inputElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputElement",{get:function(){return this._inputElement.current},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t,n){var r,o=this.props,a=o.suggestedDisplayValue,s=o.shouldSelectFullInputValueInComponentDidUpdate,l=o.preventValueSelection,c=0;if(!l){var u=(null==(r=this.context)?void 0:r.window.document)||n$(this._inputElement.current),d=this._inputElement.current&&this._inputElement.current===(null==u?void 0:u.activeElement);if(d&&this._autoFillEnabled&&this.value&&a&&p2(a,this.value)){var p=!1;if(s&&(p=s()),p)this._inputElement.current.setSelectionRange(0,a.length,pZ);else{for(;c<this.value.length&&this.value[c].toLocaleLowerCase()===a[c].toLocaleLowerCase();)c++;c>0&&this._inputElement.current.setSelectionRange(c,a.length,pZ)}}else!this._inputElement.current||null===n||this._autoFillEnabled||this.state.isComposing||this._inputElement.current.setSelectionRange(n.start,n.end,n.dir)}},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=i$(this.props,iF),t=tf(tf({},this.props.style),{fontFamily:"inherit"});return ts.createElement("input",tf({autoCapitalize:"off",autoComplete:"off","aria-autocomplete":"both"},e,{style:t,ref:this._inputElement,value:this._getDisplayValue(),onCompositionStart:this._onCompositionStart,onCompositionUpdate:this._onCompositionUpdate,onCompositionEnd:this._onCompositionEnd,onChange:this._onChanged,onInput:this._onInputChanged,onKeyDown:this._onKeyDown,onClick:this.props.onClick?this.props.onClick:this._onClick,"data-lpignore":!0}))},t.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},t.prototype.clear=function(){this._autoFillEnabled=!0,this._updateValue("",!1),this._inputElement.current&&this._inputElement.current.setSelectionRange(0,0)},t.prototype.getSnapshotBeforeUpdate=function(){var e,t,n=this._inputElement.current;return n&&n.selectionStart!==this.value.length?{start:null!=(e=n.selectionStart)?e:n.value.length,end:null!=(t=n.selectionEnd)?t:n.value.length,dir:n.selectionDirection||"backward"}:null},t.prototype._getCurrentInputValue=function(e){return e&&e.target&&e.target.value?e.target.value:this.inputElement&&this.inputElement.value?this.inputElement.value:""},t.prototype._tryEnableAutofill=function(e,t,n,r){!n&&e&&this._inputElement.current&&this._inputElement.current.selectionStart===e.length&&!this._autoFillEnabled&&(e.length>t.length||r)&&(this._autoFillEnabled=!0)},t.prototype._getDisplayValue=function(){return this._autoFillEnabled?p1(this.value,this.props.suggestedDisplayValue):this.value},t.prototype._getControlledValue=function(){var e=this.props.value;return void 0===e||"string"==typeof e?e:(console.warn("props.value of Autofill should be a string, but it is ".concat(e," with type of ").concat(typeof e)),e.toString())},t.defaultProps={enableAutofillOnKeyPress:[oe,r9]},t.contextType=ic,t}(ts.Component);function p1(e,t){var n=e;return t&&e&&p2(t,n)&&(n=t),n}function p2(e,t){if(!e||!t)return!1;for(var n=0,r=[e,t];n<r.length;n++){var o=r[n];if("string"!=typeof o)throw Error("".concat(p0.name,' received non-string value "').concat(o,'" of type ').concat(typeof o," from either input's value or suggestedDisplayValue"))}return 0===e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())}var p5=oI(),p4=a1(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.message,n=e.styles,r=e.as,o=void 0===r?"div":r,a=p5(n,{className:e.className});return ts.createElement(o,tf({role:"status",className:a.root},i$(this.props,iY,["className"])),ts.createElement(rz,null,ts.createElement("div",{className:a.screenReaderText},t)))},t.defaultProps={"aria-live":"polite"},t}(ts.Component),function(e){return{root:e.className,screenReaderText:lV}},void 0,{scope:"Announced"});tN("@fluentui/react-focus","8.9.18");var p3=1,p6=2;!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(K||(K={}));var p8="data-is-focusable",p9="data-disable-click-on-enter",p7="data-focuszone-id",fe="tabindex",ft="data-no-vertical-wrap",fn="data-no-horizontal-wrap",fr=0x3b9ac9ff,fo=-0x3b9ac9ff,fi="ms-FocusZone";function fa(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}function fs(){return X||(X=ny({selectors:{":focus":{outline:"none"}}},fi)),X}var fl={},fc=new Set,fu=["text","number","password","email","tel","url","search","textarea"],fd=!1,fp=function(e){function t(n){var r,o,a,s,l=this;(l=e.call(this,n)||this)._root=ts.createRef(),l._mergedRef=a6(),l._onFocus=function(e){if(!l._portalContainsElement(e.target)){var t,n,r=(t=l.props,t.onActiveElementChanged),o=t.doNotAllowFocusEventToPropagate,a=t.stopFocusPropagation,s=t.onFocusNotification,c=t.onFocus,u=t.shouldFocusInnerElementWhenReceivedFocus,d=t.defaultTabbableElement,p=l._isImmediateDescendantOfZone(e.target);if(p)n=e.target;else for(var f=e.target;f&&f!==l._root.current;){if(re(f,void 0,l._inShadowRoot)&&l._isImmediateDescendantOfZone(f)){n=f;break}f=nH(f,fd)}if(u&&e.target===l._root.current){var h=d&&"function"==typeof d&&l._root.current&&d(l._root.current);h&&re(h,void 0,l._inShadowRoot)?(n=h,h.focus()):(l.focus(!0),l._activeElement&&(n=null))}var m=!l._activeElement;n&&n!==l._activeElement&&((p||m)&&l._setFocusAlignment(n,!0,!0),l._activeElement=n,m&&l._updateTabIndexes()),r&&r(l._activeElement,e),(a||o)&&e.stopPropagation(),c?c(e):s&&s()}},l._onBlur=function(){l._setParkedFocus(!1)},l._onMouseDown=function(e){if(!l._portalContainsElement(e.target)&&!l.props.disabled){for(var t=e.target,n=[];t&&t!==l._root.current;)n.push(t),t=nH(t,fd);for(;n.length&&((t=n.pop())&&re(t,void 0,l._inShadowRoot)&&l._setActiveElement(t,!0),!rt(t)););}},l._onKeyDown=function(e,t){if(l._portalContainsElement(e.target))return;var n,r=(n=l.props).direction,o=n.disabled,a=n.isInnerZoneKeystroke,s=n.pagingSupportDisabled,c=n.shouldEnterInnerZone;if(!o){if((l.props.onKeyDown&&l.props.onKeyDown(e),!e.isDefaultPrevented())&&(l._getDocument().activeElement!==l._root.current||!l._isInnerZone)){if((c&&c(e)||a&&a(e))&&l._isImmediateDescendantOfZone(e.target)){var u=l._getFirstInnerZone();if(u){if(!u.focus(!0))return}else if(!rn(e.target))return;else if(!l.focusElement(n8(e.target,e.target.firstChild,!0)))return}else{if(e.altKey)return;switch(e.which){case r2:if(l._shouldRaiseClicksOnSpace&&l._tryInvokeClickForFocusable(e.target,e))break;return;case r8:if(r!==K.vertical&&(l._preventDefaultWhenHandled(e),l._moveFocusLeft(t)))break;return;case r7:if(r!==K.vertical&&(l._preventDefaultWhenHandled(e),l._moveFocusRight(t)))break;return;case r9:if(r!==K.horizontal&&(l._preventDefaultWhenHandled(e),l._moveFocusUp()))break;return;case oe:if(r!==K.horizontal&&(l._preventDefaultWhenHandled(e),l._moveFocusDown()))break;return;case r4:if(!s&&l._moveFocusPaging(!0))break;return;case r5:if(!s&&l._moveFocusPaging(!1))break;return;case r$:if(l.props.allowTabKey||l.props.handleTabKey===p3||l.props.handleTabKey===p6&&l._isElementInput(e.target)){var d=!1;if(l._processingTabKey=!0,d=r!==K.vertical&&l._shouldWrapFocus(l._activeElement,fn)?(ox(t)?!e.shiftKey:e.shiftKey)?l._moveFocusLeft(t):l._moveFocusRight(t):e.shiftKey?l._moveFocusUp():l._moveFocusDown(),l._processingTabKey=!1,d)break;l.props.shouldResetActiveElementWhenTabFromZone&&(l._activeElement=null)}return;case r6:if(l._isContentEditableElement(e.target)||l._isElementInput(e.target)&&!l._shouldInputLoseFocus(e.target,!1))return!1;var p=l._root.current&&l._root.current.firstChild;if(l._root.current&&p&&l.focusElement(n8(l._root.current,p,!0)))break;return;case r3:if(l._isContentEditableElement(e.target)||l._isElementInput(e.target)&&!l._shouldInputLoseFocus(e.target,!0))return!1;var f=l._root.current&&l._root.current.lastChild;if(l._root.current&&l.focusElement(n6(l._root.current,f,!0,!0,!0)))break;return;case rQ:if(l._shouldRaiseClicksOnEnter&&l._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},l._getHorizontalDistanceFromCenter=function(e,t,n){var r=l._focusAlignment.left||l._focusAlignment.x||0,o=Math.floor(n.top),a=Math.floor(t.bottom),s=Math.floor(n.bottom),c=Math.floor(t.top),u=e&&o>a,d=!e&&s<c;return u||d?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):l._shouldWrapFocus(l._activeElement,ft)?fr:fo},i2(l),rF("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),l._id=iw("FocusZone"),l._focusAlignment={left:0,top:0},l._processingTabKey=!1;var c=null==(o=null!=(r=n.shouldRaiseClicks)?r:t.defaultProps.shouldRaiseClicks)||o;return l._shouldRaiseClicksOnEnter=null!=(a=n.shouldRaiseClicksOnEnter)?a:c,l._shouldRaiseClicksOnSpace=null!=(s=n.shouldRaiseClicksOnSpace)?s:c,l}return tp(t,e),t.getOuterZones=function(){return fc.size},t._onKeyDownCapture=function(e){e.which===r$&&fc.forEach(function(e){return e._updateTabIndexes()})},t.prototype.componentDidMount=function(){var e,n=this._root.current;if(this._inShadowRoot=!!(null==(e=this.context)?void 0:e.shadowRoot),fl[this._id]=this,n){for(var r=nH(n,fd);r&&r!==this._getDocument().body&&1===r.nodeType;){if(rt(r)){this._isInnerZone=!0;break}r=nH(r,fd)}!this._isInnerZone&&(fc.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e,t=this._root.current,n=this._getDocument();if(this._inShadowRoot=!!(null==(e=this.context)?void 0:e.shadowRoot),(this._activeElement&&!nz(this._root.current,this._activeElement,fd)||this._defaultFocusElement&&!nz(this._root.current,this._defaultFocusElement,fd))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&n&&this._lastIndexPath&&(n.activeElement===n.body||null===n.activeElement||n.activeElement===t)){var r=rs(t,this._lastIndexPath);r?(this._setActiveElement(r,!0),r.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete fl[this._id],!this._isInnerZone&&(fc.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e,t=this,n=(e=this.props).as,r=e.elementType,o=e.rootProps,a=e.ariaDescribedBy,s=e.ariaLabelledBy,l=e.className,c=i$(this.props,iI),u=n||r||"div";this._evaluateFocusBeforeRender();var d=ch();return ts.createElement(u,tf({"aria-labelledby":s,"aria-describedby":a},c,o,{className:oG(fs(),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(e){return t._onKeyDown(e,d)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current)if(!e&&"true"===this._root.current.getAttribute(p8)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=fl[n.getAttribute(p7)];return!!r&&r.focusElement(this._root.current)}}else{if(!e&&this._activeElement&&nz(this._root.current,this._activeElement)&&re(this._activeElement,void 0,this._inShadowRoot)&&(!t||n7(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(n8(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(n6(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n,r=(n=this.props).onBeforeFocus,o=n.shouldReceiveFocus;return(!o||!!o(e))&&(!r||!!r(e))&&!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0)},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=nz(e,n,!1);this._lastIndexPath=r?rl(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(rt(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&((!this._focusAlignment||t)&&this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)break;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(p8)&&"true"!==n.getAttribute(p9))return fa(n,t),!0;n=nH(n,fd)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(rt(e))return fl[e.getAttribute(p7)];for(var t=e.firstElementChild;t;){if(rt(t))return fl[t.getAttribute(p7)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,a=-1,s=void 0,l=!1,c=this.props.direction===K.bidirectional;if(!o||!this._root.current||this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var u=c?o.getBoundingClientRect():null;do if(o=e?n8(this._root.current,o):n6(this._root.current,o),c){if(o){var d=t(u,o.getBoundingClientRect());if(-1===d&&-1===a){s=o;break}if(d>-1&&(-1===a||d<a)&&(a=d,s=o),a>=0&&d<0)break}}else{s=o;break}while(o);if(s&&s!==this._activeElement)l=!0,this.focusElement(s);else if(this.props.isCircularNavigation&&r)if(e)return this.focusElement(n8(this._root.current,this._root.current.firstElementChild,!0));else return this.focusElement(n6(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return l},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,function(r,o){var a=-1,s=Math.floor(o.top),l=Math.floor(r.bottom);return s<l?e._shouldWrapFocus(e._activeElement,ft)?fr:fo:((-1===t&&s>=l||s===t)&&(t=s,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,function(r,o){var a=-1,s=Math.floor(o.bottom),l=Math.floor(o.top),c=Math.floor(r.top);return s>c?e._shouldWrapFocus(e._activeElement,ft)?fr:fo:((-1===t&&s<=c||l===t)&&(t=l,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,fn);return!!this._moveFocus(ox(e),function(r,o){var a,s=-1;return(a=ox(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==K.vertical?s=r.right-o.right:n||(s=fo),s},void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,fn);return!!this._moveFocus(!ox(e),function(r,o){var a,s=-1;return(a=ox(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==K.vertical?s=o.left-r.left:n||(s=fo),s},void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current||this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=rP(n);if(!r)return!1;var o=-1,a=void 0,s=-1,l=-1,c=r.clientHeight,u=n.getBoundingClientRect();do if(n=e?n8(this._root.current,n):n6(this._root.current,n)){var d=n.getBoundingClientRect(),p=Math.floor(d.top),f=Math.floor(u.bottom),h=Math.floor(d.bottom),m=Math.floor(u.top),g=this._getHorizontalDistanceFromCenter(e,u,d),v=e&&p>f+c,y=!e&&h<m-c;if(v||y)break;g>-1&&(e&&p>s?(s=p,o=g,a=n):!e&&h<l?(l=h,o=g,a=n):(-1===o||g<=o)&&(o=g,a=n))}while(n);var b=!1;if(a&&a!==this._activeElement)b=!0,this.focusElement(a),this._setFocusAlignment(a,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(n8(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(n6(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return b},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===K.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,a=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:a}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=a)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=nH(e,fd);t&&t!==this._root.current&&t!==this._getDocument().body&&!rt(t);)t=nH(t,fd);return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!nz(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!re(this._activeElement,void 0,this._inShadowRoot)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];rt(r)?"true"===r.getAttribute(p8)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(fe)&&r.setAttribute(fe,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(fe)&&r.setAttribute(fe,"0"))):(r.getAttribute&&"false"===r.getAttribute(p8)&&r.setAttribute(fe,"-1"),re(r,void 0,this._inShadowRoot)?this.props.disabled?r.setAttribute(fe,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(fe)&&r.setAttribute(fe,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(fe)&&r.setAttribute(fe,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!!e&&!!e.tagName&&("input"===e.tagName.toLowerCase()||"textarea"===e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&fu.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,a=e.readOnly;if(r||n>0&&!t&&!a||n!==o.length&&t&&!a||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||ro(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&nX(e,this._root.current)},t.prototype._getDocument=function(){return n$(this._root.current)},t.contextType=ii,t.defaultProps={isCircularNavigation:!1,direction:K.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},t}(ts.Component),ff=oI(),fh=function(e,t){var n=e.as,r=e.className,o=e.disabled,a=e.href,s=e.onClick,l=e.styles,c=e.theme,u=e.underline,d=ts.useRef(null),p=uG(d,t);fm(e,d),al(d);var f=ff(l,{className:r,isButton:!a,isDisabled:o,isUnderlined:u,theme:c}),h=function(e){o?e.preventDefault():s&&s(e)},m=n||(a?"a":"button");return{state:{},slots:{root:m},slotProps:{root:tf(tf({},fg(m,e)),{"aria-disabled":o,className:f.root,onClick:h,ref:p})}}},fm=function(e,t){ts.useImperativeHandle(e.componentRef,function(){return{focus:function(){t.current&&t.current.focus()}}},[t])},fg=function(e,t){t.as;var n=t.disabled,r=t.target,o=t.href,a=(t.theme,t.getStyles,t.styles,t.componentRef,t.underline,th(t,["as","disabled","target","href","theme","getStyles","styles","componentRef","underline"]));return"string"==typeof e?"a"===e?tf({target:r,href:n?void 0:o},a):"button"===e?tf({type:"button",disabled:n},a):tf(tf({},a),{disabled:n}):tf({target:r,href:o,disabled:n},a)},fv=ts.forwardRef(function(e,t){var n=fh(e,t),r=n.slots,o=n.slotProps;return ts.createElement(r.root,tf({},o.root))});fv.displayName="LinkBase";var fy={root:"ms-Link"},fb=a1(fv,function(e){var t,n,r,o,a,s,l,c=e.className,u=e.isButton,d=e.isDisabled,p=e.isUnderlined,f=e.theme,h=f.semanticColors,m=h.link,g=h.linkHovered,v=h.disabledText,y=h.focusBorder,b=l0(fy,f);return{root:[b.root,f.fonts.medium,{color:m,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:p?"underline":"none",selectors:((t={})[".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]={boxShadow:"0 0 0 1px ".concat(y," inset"),outline:"1px auto ".concat(y),selectors:((n={})[l_]={outline:"1px solid WindowText"},n)},t[l_]={borderBottom:"none"},t)},u&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:((r={})[l_]={color:"LinkText",forcedColorAdjust:"none"},r)},!u&&{selectors:((o={})[l_]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},o)},d&&["is-disabled",{color:v,cursor:"default"},{selectors:((a={"&:link, &:visited":{pointerEvents:"none"}})[l_]={color:"GrayText"},a)}],!d&&{selectors:{"&:active, &:hover, &:active:hover":{color:g,textDecoration:"underline",selectors:((s={})[l_]={color:"LinkText"},s)},"&:focus":{color:m,selectors:((l={})[l_]={color:"LinkText"},l)}}},b.root,c]}},void 0,{scope:"Link"});function fx(e){return e.canCheck?!!(e.isChecked||e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function fC(e){return!!(e.subMenuProps||e.items)}function fk(e){return!!(e.isDisabled||e.disabled)}function fw(e){return null!==fx(e)?"menuitemcheckbox":"menuitem"}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(Y||(Y={}));var fS=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return ts.createElement(pf,tf({},r,{className:n.icon}))},f_=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,fS):fS(e):null},fE=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,o=fx(n);if(t){var a=function(e){return t(n,e)};return ts.createElement(pf,{iconName:!1!==n.canCheck&&o?"CheckMark":"",className:r.checkmarkIcon,onClick:a})}return null},fP=function(e){var t=e.item,n=e.classNames;return t.text||t.name?ts.createElement("span",{className:n.label},t.text||t.name):null},fI=function(e){var t=e.item,n=e.classNames;return t.secondaryText?ts.createElement("span",{className:n.secondaryText},t.secondaryText):null},fT=function(e){var t=e.item,n=e.classNames,r=e.theme;return fC(t)?ts.createElement(pf,tf({iconName:ox(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},fD=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var a=o();fC(t)&&r&&a&&r(t,a)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;fC(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},i2(n),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,r=t.onRenderContent||this._renderLayout;return ts.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:fE,renderItemIcon:f_,renderItemName:fP,renderSecondaryText:fI,renderSubMenuIcon:fT}))},t.prototype._renderLayout=function(e,t){return ts.createElement(ts.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(ts.Component),fA=oL(function(e){return nC({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),fR=36,fN=lM(0,lN),fB=oL(function(e){var t,n,r,o,a,s=e.semanticColors,l=e.fonts,c=e.palette,u=s.menuItemBackgroundHovered,d=s.menuItemTextHovered,p=s.menuItemBackgroundPressed,f=s.bodyDivider;return nx({item:[l.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[lO(e),l.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:fR,lineHeight:fR,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:((t={})[l_]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:u,color:d,selectors:{".ms-ContextualMenu-icon":{color:c.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},rootFocused:{backgroundColor:c.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:c.neutralPrimary}}},rootPressed:{backgroundColor:p,selectors:{".ms-ContextualMenu-icon":{color:c.themeDark},".ms-ContextualMenu-submenuIcon":{color:c.neutralPrimary}}},rootExpanded:{backgroundColor:p,color:s.bodyTextChecked,selectors:((n={".ms-ContextualMenu-submenuIcon":((r={})[l_]={color:"inherit"},r)})[l_]=tf({},lF()),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:fR,fontSize:I.medium,width:I.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:((o={})[fN]={fontSize:I.large,width:I.large},o)},iconColor:{color:s.menuIcon},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext},subMenuIcon:{height:fR,lineHeight:fR,color:c.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:I.small,selectors:((a={":hover":{color:c.neutralPrimary},":active":{color:c.neutralPrimary}})[fN]={fontSize:I.medium},a)},splitButtonFlexContainer:[lO(e),{display:"flex",height:fR,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})}),fM="28px",fF=lM(0,lN),fO=oL(function(e){var t;return nC(fA(e),{wrapper:{position:"absolute",right:28,selectors:((t={})[fF]={right:32},t)},divider:{height:16,width:1}})}),fL={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},fH=oL(function(e,t,n,r,o,a,s,l,c,u,d,p){var f,h,m,g,v=fB(e),y=l0(fL,e);return nC({item:[y.item,v.item,s],divider:[y.divider,v.divider,l],root:[y.root,v.root,r&&[y.isChecked,v.rootChecked],o&&v.anchorLink,n&&[y.isExpanded,v.rootExpanded],t&&[y.isDisabled,v.rootDisabled],!t&&!n&&[{selectors:((f={":hover":v.rootHovered,":active":v.rootPressed})[".".concat(i7," &:focus, .").concat(i7," &:focus:hover, :host(.").concat(i7,") &:focus, :host(.").concat(i7,") &:focus:hover")]=v.rootFocused,f[".".concat(i7," &:hover, :host(.").concat(i7,") &:hover")]={background:"inherit;"},f)}],p],splitPrimary:[v.root,{width:"calc(100% - ".concat(fM,")")},r&&["is-checked",v.rootChecked],(t||d)&&["is-disabled",v.rootDisabled],!(t||d)&&!r&&[{selectors:((h={":hover":v.rootHovered})[":hover ~ .".concat(y.splitMenu)]=v.rootHovered,h[":active"]=v.rootPressed,h[".".concat(i7," &:focus, .").concat(i7," &:focus:hover, :host(.").concat(i7,") &:focus, :host(.").concat(i7,") &:focus:hover")]=v.rootFocused,h[".".concat(i7," &:hover, :host(.").concat(i7,") &:hover")]={background:"inherit;"},h)}]],splitMenu:[y.splitMenu,v.root,{flexBasis:"0",padding:"0 8px",minWidth:fM},n&&["is-expanded",v.rootExpanded],t&&["is-disabled",v.rootDisabled],!t&&!n&&[{selectors:((m={":hover":v.rootHovered,":active":v.rootPressed})[".".concat(i7," &:focus, .").concat(i7," &:focus:hover, :host(.").concat(i7,") &:focus, :host(.").concat(i7,") &:focus:hover")]=v.rootFocused,m[".".concat(i7," &:hover, :host(.").concat(i7,") &:hover")]={background:"inherit;"},m)}]],anchorLink:v.anchorLink,linkContent:[y.linkContent,v.linkContent],linkContentMenu:[y.linkContentMenu,v.linkContent,{justifyContent:"center"}],icon:[y.icon,a&&v.iconColor,v.icon,c,t&&[y.isDisabled,v.iconDisabled]],iconColor:v.iconColor,checkmarkIcon:[y.checkmarkIcon,a&&v.checkmarkIcon,v.icon,c],subMenuIcon:[y.subMenuIcon,v.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[v.iconDisabled]],label:[y.label,v.label],secondaryText:[y.secondaryText,v.secondaryText],splitContainer:[v.splitButtonFlexContainer,!t&&!r&&[{selectors:((g={})[".".concat(i7," &:focus, .").concat(i7," &:focus:hover, :host(.").concat(i7,") &:focus, :host(.").concat(i7,") &:focus:hover")]=v.rootFocused,g)}]],screenReaderText:[y.screenReaderText,v.screenReaderText,lV,{visibility:"hidden"}]})}),fz=function(e){return fH(e.theme,e.disabled,e.expanded,e.checked,e.isAnchorLink,e.knownIcon,e.itemClassName,e.dividerClassName,e.iconClassName,e.subMenuClassName,e.primaryDisabled,e.className)},fV=a1(fD,fz,void 0,{scope:"ContextualMenuItem"}),fU=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,r=t.item,o=t.onItemMouseLeave;o&&o(r,e)},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;o&&o(r,e)},n._onItemMouseMove=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,e.currentTarget)},n._getSubmenuTarget=function(){},i2(n),n}return tp(t,e),t.prototype.shouldComponentUpdate=function(e){return!rp(e,this.props)},t}(ts.Component);function fj(e,t){if(e.key!==t.key)return!1;var n=e.modifierKeys,r=t.modifierKeys;if(!n&&r||n&&!r)return!1;if(n&&r){if(n.length!==r.length)return!1;n=n.sort(),r=r.sort();for(var o=0;o<n.length;o++)if(n[o]!==r[o])return!1}return!0}function fW(e,t){return!!of(e,function(e){return fj(e,t)})}var fq="ktp",fG="-",fK="data-ktp-target",fX="data-ktp-execute-target",fY="ktp-layer-id",f$=", ";!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(Q||(Q={}));var fQ=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?Q.PERSISTED_KEYTIP_ADDED:Q.KEYTIP_ADDED;rv.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&rv.raise(this,Q.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],n||delete this.sequenceMapping[e.keySequences.toString()];var r=n?Q.PERSISTED_KEYTIP_REMOVED:Q.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&rv.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){rv.raise(this,Q.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){rv.raise(this,Q.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map(function(t){return e.keytips[t].keytip})},e.prototype.addParentOverflow=function(e){var t=tg([],e.keySequences,!0);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return tf(tf({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){rv.raise(this,Q.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=iw()),{keytip:tf({},e),uniqueID:t}},e._instance=new e,e}();function fJ(e){return e.reduce(function(e,t){return e+fG+t.split("").join(fG)},fq)}function fZ(e,t){var n=t.length,r=tg([],t,!0).pop();return om(tg([],e,!0),n-1,r)}function f0(e){return"["+fK+'="'+fJ(e)+'"]'}function f1(e){return"["+fX+'="'+e+'"]'}function f2(e){var t=" "+fY;return e.length?t+" "+fJ(e):t}function f5(e){var t=ts.useRef(),n=e.keytipProps?tf({disabled:e.disabled},e.keytipProps):void 0,r=uV(fQ.getInstance()),o=uX(e);a8(function(){t.current&&n&&((null==o?void 0:o.keytipProps)!==e.keytipProps||(null==o?void 0:o.disabled)!==e.disabled)&&r.update(n,t.current)}),a8(function(){return n&&(t.current=r.register(n)),function(){n&&r.unregister(n,t.current)}},[]);var a={ariaDescribedBy:e.ariaDescribedBy,keytipId:void 0};return n&&(a=f4(r,n,e.ariaDescribedBy)),a}function f4(e,t,n){var r=e.addParentOverflow(t),o=od(n,f2(r.keySequences)),a=tg([],r.keySequences,!0);return r.overflowSetSequence&&(a=fZ(a,r.overflowSetSequence)),{ariaDescribedBy:o,keytipId:fJ(a)}}var f3=function(e){var t,n=e.children,r=f5(th(e,["children"])),o=r.keytipId,a=r.ariaDescribedBy;return n(((t={})[fK]=o,t[fX]=o,t["aria-describedby"]=a,t))},f6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=ts.createRef(),t._getMemoizedMenuButtonKeytipProps=oL(function(e){return tf(tf({},e),{hasMenu:!0})}),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClick;o&&o(r,e)},t._renderAriaDescription=function(e,n){return e?ts.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return tp(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,o=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,c=t.hasIcons,u=t.expandedMenuItemKey,d=t.onItemClick,p=t.openSubMenu,f=t.dismissSubMenu,h=t.dismissMenu,m=fV;this.props.item.contextualMenuItemAs&&(m=oW(this.props.item.contextualMenuItemAs,m)),this.props.contextualMenuItemAs&&(m=oW(this.props.contextualMenuItemAs,m));var g=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(g=g||"nofollow noopener noreferrer");var v=fC(n),y=i$(n,iB),b=fk(n),x=n.itemProps,C=n.ariaDescription,k=n.keytipProps;k&&v&&(k=this._getMemoizedMenuButtonKeytipProps(k)),C&&(this._ariaDescriptionId=iw());var w=od(n.ariaDescribedBy,C?this._ariaDescriptionId:void 0,y["aria-describedby"]),S={"aria-describedby":w};return ts.createElement("div",null,ts.createElement(f3,{keytipProps:n.keytipProps,ariaDescribedBy:w,disabled:b},function(t){return ts.createElement("a",tf({},S,y,t,{ref:e._anchor,href:n.href,target:n.target,rel:g,className:r.root,role:"menuitem","aria-haspopup":v||void 0,"aria-expanded":v?n.key===u:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":fk(n),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:v?e._onItemKeyDown:void 0}),ts.createElement(m,tf({componentRef:n.componentRef,item:n,classNames:r,index:o,onCheckmarkClick:l&&d?d:void 0,hasIcons:c,openSubMenu:p,dismissSubMenu:f,dismissMenu:h,getSubmenuTarget:e._getSubmenuTarget},x)),e._renderAriaDescription(C,r.screenReaderText))}))},t}(fU),f8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=ts.createRef(),t._getMemoizedMenuButtonKeytipProps=oL(function(e){return tf(tf({},e),{hasMenu:!0})}),t._renderAriaDescription=function(e,n){return e?ts.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return tp(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,o=t.index,a=t.focusableElementIndex,s=t.totalItemCount,l=t.hasCheckmarks,c=t.hasIcons,u=t.contextualMenuItemAs,d=t.expandedMenuItemKey,p=t.onItemMouseDown,f=t.onItemClick,h=t.openSubMenu,m=t.dismissSubMenu,g=t.dismissMenu,v=fV;n.contextualMenuItemAs&&(v=oW(n.contextualMenuItemAs,v)),u&&(v=oW(u,v));var y=fx(n),b=null!==y,x=fw(n),C=fC(n),k=n.itemProps,w=n.ariaLabel,S=n.ariaDescription,_=i$(n,iM);delete _.disabled;var E=n.role||x;S&&(this._ariaDescriptionId=iw());var P=od(n.ariaDescribedBy,S?this._ariaDescriptionId:void 0,_["aria-describedby"]),I={className:r.root,onClick:this._onItemClick,onKeyDown:C?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return p?p(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":w,"aria-describedby":P,"aria-haspopup":C||void 0,"aria-expanded":C?n.key===d:void 0,"aria-posinset":a+1,"aria-setsize":s,"aria-disabled":fk(n),"aria-checked":("menuitemcheckbox"===E||"menuitemradio"===E)&&b?!!y:void 0,"aria-selected":"menuitem"===E&&b?!!y:void 0,role:E,style:n.style},T=n.keytipProps;return T&&C&&(T=this._getMemoizedMenuButtonKeytipProps(T)),ts.createElement(f3,{keytipProps:T,ariaDescribedBy:P,disabled:fk(n)},function(t){return ts.createElement("button",tf({ref:e._btn},_,I,t),ts.createElement(v,tf({componentRef:n.componentRef,item:n,classNames:r,index:o,onCheckmarkClick:l&&f?f:void 0,hasIcons:c,openSubMenu:h,dismissSubMenu:m,dismissMenu:g,getSubmenuTarget:e._getSubmenuTarget},k)),e._renderAriaDescription(S,r.screenReaderText))})},t}(fU),f9=function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw Error("Theme is undefined or null.");if(n){var o=n(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},f7=oI(),he=ts.forwardRef(function(e,t){var n=f7(e.styles,{theme:e.theme,getClassNames:e.getClassNames,className:e.className});return ts.createElement("span",{className:n.wrapper,ref:t},ts.createElement("span",{className:n.divider}))});he.displayName="VerticalDividerBase";var ht=a1(he,f9,void 0,{scope:"VerticalDivider"}),hn=500,hr=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=oL(function(e){return tf(tf({},e),{hasMenu:!0})}),n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;e.which===rQ?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(r,e)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(e,t){return e?ts.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemMouseEnterPrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(tf(tf({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(tf(tf({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,r=t.item,o=t.executeItemClick,a=t.onItemClick;if(!r.disabled&&!r.isDisabled){if(n._processingTouch&&!r.canCheck&&a)return a(r,e);o&&o(r,e)}},n._onTouchStart=function(e){!n._splitButton||"onpointerdown"in n._splitButton||n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new nF(n),n._events=new rv(n),n._dismissLabelId=iw(),n}return tp(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e,t=this,n=this.props,r=n.item,o=n.classNames,a=n.index,s=n.focusableElementIndex,l=n.totalItemCount,c=n.hasCheckmarks,u=n.hasIcons,d=n.onItemMouseLeave,p=n.expandedMenuItemKey,f=fC(r),h=r.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var m=r.ariaDescription;m&&(this._ariaDescriptionId=iw());var g=null!=(e=fx(r))?e:void 0;return ts.createElement(f3,{keytipProps:h,disabled:fk(r)},function(e){return ts.createElement("div",{"data-ktp-target":e["data-ktp-target"],ref:function(e){return t._splitButton=e},role:fw(r),"aria-label":r.ariaLabel,className:o.splitContainer,"aria-disabled":fk(r),"aria-expanded":f?r.key===p:void 0,"aria-haspopup":!0,"aria-describedby":od(r.ariaDescribedBy,m?t._ariaDescriptionId:void 0,e["aria-describedby"]),"aria-checked":g,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:t._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(t,tf(tf({},r),{subMenuProps:null,items:null})):void 0,onMouseMove:t._onItemMouseMovePrimary,onKeyDown:t._onItemKeyDown,onClick:t._executeItemClick,onTouchStart:t._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":r["aria-roledescription"]},t._renderSplitPrimaryButton(r,o,a,c,u),t._renderSplitDivider(r),t._renderSplitIconButton(r,o,a,e),t._renderAriaDescription(m,o.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(e,t,n,r,o){var a=this.props,s=a.contextualMenuItemAs,l=void 0===s?fV:s,c=a.onItemClick,u={key:e.key,disabled:fk(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,id:this._dismissLabelId,onClick:e.onClick,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},d=e.itemProps;return ts.createElement("button",tf({},i$(u,iM)),ts.createElement(l,tf({"data-is-focusable":!1,item:u,classNames:t,index:n,onCheckmarkClick:r&&c?c:void 0,hasIcons:o},d)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||fO;return ts.createElement(ht,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,r){var o=this.props,a=o.onItemMouseLeave,s=o.onItemMouseDown,l=o.openSubMenu,c=o.dismissSubMenu,u=o.dismissMenu,d=fV;this.props.item.contextualMenuItemAs&&(d=oW(this.props.item.contextualMenuItemAs,d)),this.props.contextualMenuItemAs&&(d=oW(this.props.contextualMenuItemAs,d));var p={onClick:this._onIconItemClick,disabled:fk(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key,"aria-labelledby":this._dismissLabelId},f=tf(tf({},i$(p,iM)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:a?a.bind(this,e):void 0,onMouseDown:function(t){return s?s(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":r["data-ktp-execute-target"],"aria-haspopup":!0}),h=e.itemProps;return ts.createElement("button",tf({},f),ts.createElement(d,tf({componentRef:e.componentRef,item:p,classNames:t,index:n,hasIcons:!1,openSubMenu:l,dismissSubMenu:c,dismissMenu:u,getSubmenuTarget:this._getSubmenuTarget},h)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0},hn)},t}(fU),ho=function(e){function t(t){var n=e.call(this,t)||this;return n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return tp(t,e),t.prototype._updateComposedComponentRef=function(e){this._composedComponentInstance=e,e?this._hoisted=i0(this,e):this._hoisted&&i1(this,this._hoisted)},t}(ts.Component);!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(J||(J={}));var hi=[479,639,1023,1365,1919,0x5f5e0ff];function ha(){var e;return null!=(e=null!=Z?Z:ee)?e:J.large}function hs(e){var t,n=((t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=hc(n.context.window);e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._events=new rv(n),n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:ha()},n}return tp(n,t),n.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===J.unknown?null:ts.createElement(e,tf({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(ho)).contextType=ic,t);return o6(e,n)}function hl(e){try{return e.document.documentElement.clientWidth}catch(t){return e.innerWidth}}function hc(e){var t=J.small;if(e){try{for(;hl(e)>hi[t];)t++}catch(e){t=ha()}ee=t}else if(void 0!==Z)t=Z;else throw Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}var hu=function(e,t){var n=ts.useState(ha()),r=n[0],o=n[1],a=ts.useCallback(function(){var t=hc(nM(e.current));r!==t&&o(t)},[e,r]);return uK(iu(),"resize",a),ts.useEffect(function(){void 0===t&&a()},[t]),null!=t?t:r},hd=ts.createContext({}),hp=oI(),hf=oI(),hh={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:cW,beakWidth:16};function hm(e){for(var t=0,n=0,r=e;n<r.length;n++){var o=r[n];o.itemType!==Y.Divider&&o.itemType!==Y.Header&&(t+=o.customOnRenderListLength?o.customOnRenderListLength:1)}return t}function hg(e,t){var n=null==t?void 0:t.target,r=e.subMenuProps?e.subMenuProps.items:e.items;if(r){for(var o=[],a=0,s=r;a<s.length;a++){var l=s[a];if(l.preferMenuTargetAsEventTarget){var c=l.onClick,u=th(l,["onClick"]);o.push(tf(tf({},u),{onClick:hM(c,n)}))}else o.push(l)}return o}}function hv(e){return e.some(function(e){return!!(e.canCheck||e.sectionProps&&e.sectionProps.items.some(function(e){return!0===e.canCheck}))})}var hy=250,hb="ContextualMenu",hx=oL(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return nw.apply(void 0,tg([t,fz],e,!1))}});function hC(e,t){var n=e.hidden,r=void 0!==n&&n,o=e.onMenuDismissed,a=e.onMenuOpened,s=uX(r),l=ts.useRef(a),c=ts.useRef(o),u=ts.useRef(e);l.current=a,c.current=o,u.current=e,ts.useEffect(function(){var e,t;r&&!1===s?null==(e=c.current)||e.call(c,u.current):r||!1===s||null==(t=l.current)||t.call(l,u.current)},[r,s]),ts.useEffect(function(){return function(){var e;return null==(e=c.current)?void 0:e.call(c,u.current)}},[])}function hk(e,t){var n=e.hidden,r=e.items,o=e.theme,a=e.className,s=e.id,l=e.target,c=ts.useState(),u=c[0],d=c[1],p=ts.useState(),f=p[0],h=p[1],m=ts.useState(),g=m[0],v=m[1],y=uq(hb,s),b=ts.useCallback(function(){v(void 0),d(void 0),h(void 0)},[]),x=ts.useCallback(function(e,t,n){var r=e.key;u!==r&&(t.focus(),v(n),d(r),h(t))},[u]);ts.useEffect(function(){n&&b()},[n,b]);var C=hP(t,b),k=function(){var e=hB(u,r),t=null;if(e&&(t={items:hg(e,{target:l}),target:f,onDismiss:C,isSubMenu:!0,id:y,shouldFocusOnMount:!0,shouldFocusOnContainer:g,directionalHint:ox(o)?cq:cX,className:a,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&rf(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)){var n=e.onItemClick;t.onItemClick=hM(n,l)}return t};return[u,x,k,C]}function hw(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,r=ts.useRef(!t),o=ts.useRef(!1);ts.useEffect(function(){r.current=!t,o.current=!n&&!t&&o.current},[t,n]);var a=ts.useCallback(function(){t&&(r.current=!1)},[t]);return[r,o,a]}function hS(e,t,n){var r=e.hidden,o=e.onRestoreFocus,a=ts.useRef(),s=ts.useCallback(function(e){var t,n;o?o(e):(null==e?void 0:e.documentContainsFocus)&&(null==(n=null==(t=a.current)?void 0:t.focus)||n.call(t))},[o]);return a8(function(){var e,o;if(r)a.current&&(s({originalElement:a.current,containsFocus:!0,documentContainsFocus:(null==(o=n$())?void 0:o.hasFocus())||!1}),a.current=void 0);else{var l=null==t?void 0:t.document.activeElement;(null==(e=n.current)?void 0:e.contains(l))||"BODY"===l.tagName||(a.current=l)}},[r,null==t?void 0:t.document.activeElement,s,n]),[s]}function h_(e,t,n,r){var o=e.theme,a=e.isSubMenu,s=e.focusZoneProps,l=void 0===s?{}:s,c=l.checkForNoWrap,u=l.direction,d=void 0===u?K.vertical:u,p=ts.useRef(),f=function(e,n,r){var o=!1;return n(e)&&(t(e,r),e.preventDefault(),e.stopPropagation(),o=!0),o},h=function(e){var t=ox(o)?r7:r8;return e.which===t&&!!a&&!!(d===K.vertical||c&&!ro(e.target,"data-no-horizontal-wrap"))},m=function(e){return e.which===r1||h(e)||e.which===r9&&(e.altKey||e.metaKey)},g=function(e){p.current=hA(e);var t=e.which===r1&&(aM()||aA());return f(e,m,t)},v=function(e){var t=p.current&&hA(e);return p.current=!1,!!t&&!(aA()||aM())},y=function(e){if(!g(e)&&n.current){var t=!!(e.altKey||e.metaKey),r=e.which===r9,o=e.which===oe;if(!t&&(r||o)){var a=r?n2(n.current,n.current.lastChild,!0):n1(n.current,n.current.firstChild,!0);a&&(a.focus(),e.preventDefault(),e.stopPropagation())}}};return[g,function(e){return f(e,v,!0)},y,function(e,t){var n=ox(o)?r8:r7;!e.disabled&&(t.which===n||t.which===rQ||t.which===oe&&(t.altKey||t.metaKey))&&(r(e,t.currentTarget),t.preventDefault())}]}function hE(e){var t=ts.useRef(!0),n=ts.useRef();return[function(){t.current||void 0===n.current?t.current=!1:(e.clearTimeout(n.current),n.current=void 0),n.current=e.setTimeout(function(){t.current=!0},hy)},t]}function hP(e,t){var n=ts.useRef(!1);return ts.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),function(r,o){o?e(r,o):n.current&&t()}}function hI(e,t){var n=e.subMenuHoverDelay,r=void 0===n?hy:n,o=ts.useRef(void 0),a=function(){void 0!==o.current&&(t.clearTimeout(o.current),o.current=void 0)},s=function(e){o.current=t.setTimeout(function(){e(),a()},r)};return[a,s,o]}function hT(e,t,n,r,o,a,s,l,c,u,d,p,f){var h=e.target,m=function(){return!t.current||!a.current},g=function(e,t,n){var r=n||t.currentTarget;e.key!==s&&(u(),void 0===s&&r.focus(),fC(e)?(t.stopPropagation(),c(function(){r.focus(),d(e,r,!0)})):c(function(){p(t),r.focus()}))},v=function(t,n,r){var o=hg(t,{target:h});u(),fC(t)||o&&o.length?t.key!==s&&d(t,r,"boolean"==typeof e.shouldFocusOnContainer?e.shouldFocusOnContainer:"mouse"===n.nativeEvent.pointerType):y(t,n),n.stopPropagation(),n.preventDefault()},y=function(t,n){if(!t.disabled&&!t.isDisabled){t.preferMenuTargetAsEventTarget&&hF(n,h);var r=!1;t.onClick?r=!!t.onClick(n,t):e.onItemClick&&(r=!!e.onItemClick(n,t)),(r||!n.defaultPrevented)&&f(n,!0)}};return[function(e,t,n){o.current&&(a.current=!0),m()||g(e,t,n)},function(e,s,l){var c=s.currentTarget;o.current&&(a.current=!0,t.current&&void 0===n.current&&c!==(null==r?void 0:r.document.activeElement)&&g(e,s,l))},function(e,t){var n;if(!m()&&(u(),void 0===s))if(l.current.setActive)try{l.current.setActive()}catch(e){}else null==(n=l.current)||n.focus()},function(e,t){v(e,t,t.currentTarget)},function(e,t){y(e,t),t.stopPropagation()},y,v]}var hD=ts.memo(ts.forwardRef(function(e,t){var n,r,o=a4(hh,e),a=(o.ref,th(o,["ref"])),s=ts.useRef(null),l=uz(),c=uq(hb,a.id);u0({name:hb,props:a,deprecations:{getMenuClassNames:"styles"}});var u=function(e,t){var n;return null==(n=a.onDismiss)?void 0:n.call(a,e,t)},d=uQ(a.target,s),p=d[0],f=d[1],h=hS(a,f,s)[0],m=hk(a,u),g=m[0],v=m[1],y=m[2],b=m[3],x=hw(a),C=x[0],k=x[1],w=x[2],S=hE(l),_=S[0],E=S[1],P=hI(a,l),I=P[0],T=P[1],D=P[2],A=hu(s,a.responsiveMode);hC(a,f);var R=h_(a,u,s,v),N=R[0],B=R[1],M=R[2],F=R[3],O=hT(a,E,D,f,C,k,g,s,T,I,v,b,u),L=O[0],H=O[1],z=O[2],V=O[3],U=O[4],j=O[5],W=O[6],q=function(e,t,n){var r=0,o=e.items,a=e.totalItemCount,s=e.hasCheckmarks,l=e.hasIcons;return ts.createElement("ul",{className:t.list,onKeyDown:N,onKeyUp:B,role:"presentation"},o.map(function(e,n){var o=X(e,n,r,a,s,l,t);if(e.itemType!==Y.Divider&&e.itemType!==Y.Header){var c=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=c}return o}))},G=function(e,t){var n=a.focusZoneAs,r=void 0===n?fp:n;return ts.createElement(r,tf({},t),e)},X=function(e,t,n,r,o,s,l){var c,u,d=[],p=e.iconProps||{iconName:"None"},f=e.getItemClassNames,h=e.itemProps,m=h?h.styles:void 0,v=e.itemType===Y.Divider?e.className:void 0,y=e.submenuIconProps?e.submenuIconProps.className:"";if(f)u=f(a.theme,fk(e),g===e.key,!!fx(e),!!e.href,"None"!==p.iconName,e.className,v,p.className,y,e.primaryDisabled);else{var b={theme:a.theme,disabled:fk(e),expanded:g===e.key,checked:!!fx(e),isAnchorLink:!!e.href,knownIcon:"None"!==p.iconName,itemClassName:e.className,dividerClassName:v,iconClassName:p.className,subMenuClassName:y,primaryDisabled:e.primaryDisabled};u=hf(hx(null==(c=l.subComponentStyles)?void 0:c.menuItem,m),b)}switch(("-"===e.text||"-"===e.name)&&(e.itemType=Y.Divider),e.itemType){case Y.Divider:d.push(et(t,u));break;case Y.Header:d.push(et(t,u));var x=er(e,u,l,t,o,s);d.push(ee(x,e.key||t,u,e.title));break;case Y.Section:d.push(Z(e,u,l,t,o,s));break;default:var C=function(){return en(e,u,t,n,r,o,s)},k=a.onRenderContextualMenuItem?a.onRenderContextualMenuItem(e,C):C();d.push(ee(k,e.key||t,u,e.title))}return ts.createElement(ts.Fragment,{key:e.key},d)},Q=function(e,t){var n=e.index,r=e.focusableElementIndex,o=e.totalItemCount,a=e.hasCheckmarks,s=e.hasIcons;return X(e,n,r,o,a,s,t)},Z=function(e,t,n,r,o,a){var s,l,u=e.sectionProps;if(u){if(u.title){var d=void 0,p="";if("string"==typeof u.title){var f=c+u.title.replace(/\s/g,"");d={key:"section-".concat(u.title,"-title"),itemType:Y.Header,text:u.title,id:f},p=f}else{var h=u.title.id||c+u.title.key.replace(/\s/g,"");d=tf(tf({},u.title),{id:h}),p=h}d&&(l={role:"group","aria-labelledby":p},s=er(d,t,n,r,o,a))}if(u.items&&u.items.length>0){var m=0;return ts.createElement("li",{role:"presentation",key:u.key||e.key||"section-".concat(r)},ts.createElement("div",tf({},l),ts.createElement("ul",{className:n.list,role:"presentation"},u.topDivider&&et(r,t,!0,!0),s&&ee(s,e.key||r,t,e.title),u.items.map(function(e,t){var r=X(e,t,m,hm(u.items),o,a,n);if(e.itemType!==Y.Divider&&e.itemType!==Y.Header){var s=e.customOnRenderListLength?e.customOnRenderListLength:1;m+=s}return r}),u.bottomDivider&&et(r,t,!1,!0))))}}},ee=function(e,t,n,r){return ts.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},et=function(e,t,n,r){return r||e>0?ts.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},en=function(e,t,n,r,o,s,l){if(e.onRender)return e.onRender(tf({"aria-posinset":r+1,"aria-setsize":o},e),u);var c={item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:o,hasCheckmarks:s,hasIcons:l,contextualMenuItemAs:a.contextualMenuItemAs,onItemMouseEnter:L,onItemMouseLeave:z,onItemMouseMove:H,onItemMouseDown:hR,executeItemClick:j,onItemKeyDown:F,expandedMenuItemKey:g,openSubMenu:v,dismissSubMenu:b,dismissMenu:u};if(e.href){var d=f6;return e.contextualMenuItemWrapperAs&&(d=oW(e.contextualMenuItemWrapperAs,d)),ts.createElement(d,tf({},c,{onItemClick:U}))}if(e.split&&fC(e)){var p=hr;return e.contextualMenuItemWrapperAs&&(p=oW(e.contextualMenuItemWrapperAs,p)),ts.createElement(p,tf({},c,{onItemClick:V,onItemClickBase:W,onTap:I}))}var f=f8;return e.contextualMenuItemWrapperAs&&(f=oW(e.contextualMenuItemWrapperAs,f)),ts.createElement(f,tf({},c,{onItemClick:V,onItemClickBase:W}))},er=function(e,t,n,r,o,s){var l=fV;e.contextualMenuItemAs&&(l=oW(e.contextualMenuItemAs,l)),a.contextualMenuItemAs&&(l=oW(a.contextualMenuItemAs,l));var c=e.itemProps,u=e.id,d=c&&i$(c,iY);return ts.createElement("div",tf({id:u,className:n.header},d,{style:e.style}),ts.createElement(l,tf({item:e,classNames:t,index:r,onCheckmarkClick:o?V:void 0,hasIcons:s},c)))},eo=a.isBeakVisible,ei=a.items,ea=a.labelElementId,es=a.id,el=a.className,ec=a.beakWidth,eu=a.directionalHint,ed=a.directionalHintForRTL,ep=a.alignTargetEdge,ef=a.gapSpace,eh=a.coverTarget,em=a.ariaLabel,eg=a.doNotLayer,ev=a.target,ey=a.bounds,eb=a.useTargetWidth,ex=a.useTargetAsMinWidth,eC=a.directionalHintFixed,ek=a.shouldFocusOnMount,ew=a.shouldFocusOnContainer,eS=a.title,e_=a.styles,eE=a.theme,eP=a.calloutProps,eI=a.onRenderSubMenu,eT=void 0===eI?hN:eI,eD=a.onRenderMenuList,eA=void 0===eD?function(e,t){return q(e,eB,t)}:eD,eR=a.focusZoneProps,eN=a.getMenuClassNames,eB=eN?eN(eE,el):hp(e_,{theme:eE,className:el}),eM=eF(ei);function eF(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.iconProps||r.itemType===Y.Section&&r.sectionProps&&eF(r.sectionProps.items))return!0}return!1}var eO=tf(tf({direction:K.vertical,handleTabKey:p3,isCircularNavigation:!0,"data-tabster":'{"uncontrolled": {}, "focusable": { "excludeFromMover": true }}'},eR),{className:oG(eB.root,null==(n=a.focusZoneProps)?void 0:n.className)}),eL=hv(ei),eH=g&&!0!==a.hidden?y():null;eo=void 0===eo?A<=J.medium:eo;var ez=p.current;if((eb||ex)&&ez&&ez.offsetWidth){var eV=ez.getBoundingClientRect().width-2;eb?r={width:eV}:ex&&(r={minWidth:eV})}if(!ei||!(ei.length>0))return null;var eU=hm(ei),ej=eB.subComponentStyles?eB.subComponentStyles.callout:void 0;return ts.createElement(hd.Consumer,null,function(e){return ts.createElement(d$,tf({styles:ej,onRestoreFocus:h},eP,{target:ev||e.target,isBeakVisible:eo,beakWidth:ec,directionalHint:eu,directionalHintForRTL:ed,gapSpace:ef,coverTarget:eh,doNotLayer:eg,className:oG("ms-ContextualMenu-Callout",eP&&eP.className),setInitialFocus:ek,onDismiss:a.onDismiss||e.onDismiss,onScroll:_,bounds:ey,directionalHintFixed:eC,alignTargetEdge:ep,hidden:a.hidden||e.hidden,ref:t}),ts.createElement("div",{style:r,ref:s,id:es,className:eB.container,tabIndex:ew?0:-1,onKeyDown:M,onKeyUp:B,onFocusCapture:w,"aria-label":em,"aria-labelledby":ea,role:"menu"},eS&&ts.createElement("div",{className:eB.title}," ",eS," "),ei&&ei.length?G(eA({ariaLabel:em,items:ei,totalItemCount:eU,hasCheckmarks:eL,hasIcons:eM,defaultMenuItemRenderer:function(e){return Q(e,eB)},labelElementId:ea},function(e,t){return q(e,eB,t)}),eO):null,eH&&eT(eH,hN)),ts.createElement(ac,null))})}),function(e,t){return!t.shouldUpdateWhenHidden&&!!e.hidden&&!!t.hidden||rp(e,t)});function hA(e){return e.which===r0||"Meta"===e.key}function hR(e,t){var n;null==(n=e.onMouseDown)||n.call(e,e,t)}function hN(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function hB(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.itemType===Y.Section&&o.sectionProps){var a=hB(e,o.sectionProps.items);if(a)return a}else if(o.key&&o.key===e)return o}}function hM(e,t){return e?function(n,r){return hF(n,t),e(n,r)}:e}function hF(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}hD.displayName="ContextualMenuBase";var hO={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function hL(e){return ts.createElement(hH,tf({},e))}var hH=a1(hD,function(e){var t=e.className,n=e.theme,r=l0(hO,n),o=n.fonts,a=n.semanticColors,s=n.effects;return{root:[n.fonts.medium,r.root,r.isopen,{backgroundColor:a.menuBackground,minWidth:"180px"},t],container:[r.container,{selectors:{":focus":{outline:0}}}],list:[r.list,r.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[r.header,o.small,{fontWeight:P.semibold,color:a.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:fR,lineHeight:fR,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[r.title,{fontSize:o.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:a.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:s.elevation8}},menuItem:{}}}},function(e){return{onRenderSubMenu:e.onRenderSubMenu?aV(e.onRenderSubMenu,hL):hL}},{scope:"ContextualMenu"}),hz=hH;hz.displayName="ContextualMenu";var hV={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},hU=oL(function(e,t,n,r,o,a,s,l,c,u,d){var p,f,h=l0(hV,e||{}),m=u&&!d;return nC(t.__shadowConfig__,{root:[h.msButton,t.root,r,c&&["is-checked",t.rootChecked],m&&["is-expanded",t.rootExpanded,((p={})[":hover .".concat(h.msButtonIcon)]=t.iconExpandedHovered,p[":hover .".concat(h.msButtonMenuIcon)]=t.menuIconExpandedHovered||t.rootExpandedHovered,p[":hover"]=t.rootExpandedHovered,p)],l&&[hV.msButtonHasMenu,t.rootHasMenu],s&&["is-disabled",t.rootDisabled],!s&&!m&&!c&&((f={":hover":t.rootHovered})[":hover .".concat(h.msButtonLabel)]=t.labelHovered,f[":hover .".concat(h.msButtonIcon)]=t.iconHovered,f[":hover .".concat(h.msButtonDescription)]=t.descriptionHovered,f[":hover .".concat(h.msButtonMenuIcon)]=t.menuIconHovered,f[":focus"]=t.rootFocused,f[":active"]=t.rootPressed,f[":active .".concat(h.msButtonIcon)]=t.iconPressed,f[":active .".concat(h.msButtonDescription)]=t.descriptionPressed,f[":active .".concat(h.msButtonMenuIcon)]=t.menuIconPressed,f),s&&c&&[t.rootCheckedDisabled],!s&&c&&{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed},n],flexContainer:[h.msButtonFlexContainer,t.flexContainer],textContainer:[h.msButtonTextContainer,t.textContainer],icon:[h.msButtonIcon,o,t.icon,m&&t.iconExpanded,c&&t.iconChecked,s&&t.iconDisabled],label:[h.msButtonLabel,t.label,c&&t.labelChecked,s&&t.labelDisabled],menuIcon:[h.msButtonMenuIcon,a,t.menuIcon,c&&t.menuIconChecked,s&&!d&&t.menuIconDisabled,!s&&!m&&!c&&{":hover":t.menuIconHovered,":active":t.menuIconPressed},m&&["is-expanded",t.menuIconExpanded]],description:[h.msButtonDescription,t.description,c&&t.descriptionChecked,s&&t.descriptionDisabled],screenReaderText:[h.msButtonScreenReaderText,t.screenReaderText]})}),hj="ms-SplitButton-divider",hW=oL(function(e,t,n,r,o){return{root:ny(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],r&&!t&&[e.splitButtonMenuButtonChecked],o&&!t&&[{":focus":e.splitButtonMenuFocused}]),splitButtonContainer:ny(e.splitButtonContainer,!t&&r&&[e.splitButtonContainerChecked,{":hover":e.splitButtonContainerCheckedHovered}],!t&&!r&&[{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}],t&&e.splitButtonContainerDisabled),icon:ny(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:ny(e.splitButtonFlexContainer),divider:ny(hj,e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}}),hq=500,hG="BaseButton",hK=function(e){function t(t){var n=e.call(this,t)||this;return n._buttonElement=ts.createRef(),n._splitButtonContainer=ts.createRef(),n._mergedRef=a6(),n._renderedVisibleMenu=!1,n._getMemoizedMenuButtonKeytipProps=oL(function(e){return tf(tf({},e),{hasMenu:!0})}),n._onRenderIcon=function(e,t){var r=n.props.iconProps;if(r&&(void 0!==r.iconName||r.imageProps)){var o=r.className,a=r.imageProps,s=th(r,["className","imageProps"]);if(r.styles)return ts.createElement(pf,tf({className:oG(n._classNames.icon,o),imageProps:a},s));if(r.iconName)return ts.createElement(pd,tf({className:oG(n._classNames.icon,o)},s));if(a)return ts.createElement(ph,tf({className:oG(n._classNames.icon,o),imageProps:a},s))}return null},n._onRenderTextContents=function(){var e=n.props,t=e.text,r=e.children,o=e.secondaryText,a=void 0===o?n.props.description:o,s=e.onRenderText,l=void 0===s?n._onRenderText:s,c=e.onRenderDescription,u=void 0===c?n._onRenderDescription:c;return t||"string"==typeof r||a?ts.createElement("span",{className:n._classNames.textContainer},l(n.props,n._onRenderText),u(n.props,n._onRenderDescription)):[l(n.props,n._onRenderText),u(n.props,n._onRenderDescription)]},n._onRenderText=function(){var e=n.props.text,t=n.props.children;return(void 0===e&&"string"==typeof t&&(e=t),n._hasText())?ts.createElement("span",{key:n._labelId,className:n._classNames.label,id:n._labelId},e):null},n._onRenderChildren=function(){var e=n.props.children;return"string"==typeof e?null:e},n._onRenderDescription=function(e){var t=e.secondaryText,r=void 0===t?n.props.description:t;return r?ts.createElement("span",{key:n._descriptionId,className:n._classNames.description,id:n._descriptionId},r):null},n._onRenderAriaDescription=function(){var e=n.props.ariaDescription;return e?ts.createElement("span",{className:n._classNames.screenReaderText,id:n._ariaDescriptionId},e):null},n._onRenderMenuIcon=function(e){var t=n.props.menuIconProps;return ts.createElement(pd,tf({iconName:"ChevronDown"},t,{className:n._classNames.menuIcon}))},n._onRenderMenu=function(e){var t=n.props.menuAs?oW(n.props.menuAs,hz):hz;return ts.createElement(t,tf({},e))},n._onDismissMenu=function(e){var t=n.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||n._dismissMenu()},n._dismissMenu=function(){n._menuShouldFocusOnMount=void 0,n._menuShouldFocusOnContainer=void 0,n.setState({menuHidden:!0})},n._openMenu=function(e,t){void 0===t&&(t=!0),n.props.menuProps&&(n._menuShouldFocusOnContainer=e,n._menuShouldFocusOnMount=t,n._renderedVisibleMenu=!0,n.setState({menuHidden:!1}))},n._onToggleMenu=function(e){var t=!0;n.props.menuProps&&!1===n.props.menuProps.shouldFocusOnMount&&(t=!1),n.state.menuHidden?n._openMenu(e,t):n._dismissMenu()},n._onSplitContainerFocusCapture=function(e){var t=n._splitButtonContainer.current;!t||e.target&&nX(e.target,t)||t.focus()},n._onSplitButtonPrimaryClick=function(e){n.state.menuHidden||n._dismissMenu();var t=n._processingTouch&&!n.props.toggle;!t&&n.props.onClick?n.props.onClick(e):t&&n._onMenuClick(e)},n._onKeyDown=function(e){n.props.disabled&&(e.which===rQ||e.which===r2)?(e.preventDefault(),e.stopPropagation()):n.props.disabled||(n.props.menuProps?n._onMenuKeyDown(e):void 0!==n.props.onKeyDown&&n.props.onKeyDown(e))},n._onKeyUp=function(e){n.props.disabled||void 0===n.props.onKeyUp||n.props.onKeyUp(e)},n._onKeyPress=function(e){n.props.disabled||void 0===n.props.onKeyPress||n.props.onKeyPress(e)},n._onMouseUp=function(e){n.props.disabled||void 0===n.props.onMouseUp||n.props.onMouseUp(e)},n._onMouseDown=function(e){n.props.disabled||void 0===n.props.onMouseDown||n.props.onMouseDown(e)},n._onClick=function(e){n.props.disabled||(n.props.menuProps?n._onMenuClick(e):void 0!==n.props.onClick&&n.props.onClick(e))},n._onSplitButtonContainerKeyDown=function(e){e.which===rQ||e.which===r2?n._buttonElement.current&&(n._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):n._onMenuKeyDown(e)},n._onMenuKeyDown=function(e){if(!n.props.disabled){n.props.onKeyDown&&n.props.onKeyDown(e);var t,r=e.which===r9,o=e.which===oe;if(!e.defaultPrevented&&n._isValidMenuOpenKey(e)){var a=n.props.onMenuClick;a&&a(e,n.props),n._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}(e.which===rQ||e.which===r2)&&an(!0,e.target,null==(t=n.context)?void 0:t.registeredProviders),!(e.altKey||e.metaKey)&&(r||o)&&!n.state.menuHidden&&n.props.menuProps&&((void 0!==n._menuShouldFocusOnMount?n._menuShouldFocusOnMount:n.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),n._menuShouldFocusOnMount=!0,n.forceUpdate()))}},n._onTouchStart=function(){!n._isSplitButton||!n._splitButtonContainer.current||"onpointerdown"in n._splitButtonContainer.current||n._handleTouchAndPointerEvent()},n._onMenuClick=function(e){var t=n.props,r=t.onMenuClick,o=t.menuProps;r&&r(e,n.props);var a="boolean"==typeof(null==o?void 0:o.shouldFocusOnContainer)?o.shouldFocusOnContainer:"mouse"===e.nativeEvent.pointerType;e.defaultPrevented||(n._onToggleMenu(a),e.preventDefault(),e.stopPropagation())},i2(n),n._async=new nF(n),n._events=new rv(n),rB(hG,t,["menuProps","onClick"],"split",n.props.split),rF(hG,t,{rootProps:void 0,description:"secondaryText",toggled:"checked"}),n._labelId=iw(),n._descriptionId=iw(),n._ariaDescriptionId=iw(),n.state={menuHidden:!0},n}return tp(t,e),Object.defineProperty(t.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this.props,n=t.ariaDescription,r=t.ariaLabel,o=t.ariaHidden,a=t.className,s=t.disabled,l=t.allowDisabledFocus,c=t.primaryDisabled,u=t.secondaryText,d=void 0===u?this.props.description:u,p=t.href,f=t.iconProps,h=t.menuIconProps,m=t.styles,g=t.checked,v=t.variantClassName,y=t.theme,b=t.toggle,x=t.getClassNames,C=t.role,k=this.state.menuHidden,w=s||c;this._classNames=x?x(y,a,v,f&&f.className,h&&h.className,w,g,!k,!!this.props.menuProps,this.props.split,!!l):hU(y,m,a,v,f&&f.className,h&&h.className,w,!!this.props.menuProps,g,!k,this.props.split);var S=this,_=S._ariaDescriptionId,E=S._labelId,P=S._descriptionId,I=!w&&!!p,T=I?"a":"button",D=i$(rf(I?{}:{type:"button"},this.props.rootProps,this.props),I?iB:iM,["disabled"]),A=r||D["aria-label"],R=void 0;n?R=_:d&&this.props.onRenderDescription!==rH?R=P:D["aria-describedby"]&&(R=D["aria-describedby"]);var N=void 0;D["aria-labelledby"]?N=D["aria-labelledby"]:R&&!A&&(N=this._hasText()?E:void 0);var B=!1!==this.props["data-is-focusable"]&&(!s||!!l)&&!this._isSplitButton,M="menuitemcheckbox"===C||"checkbox"===C,F=M||!0===b?!!g:void 0,O=rf(D,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:w&&!l,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":A,"aria-labelledby":N,"aria-describedby":R,"aria-disabled":w,"data-is-focusable":B})[M?"aria-checked":"aria-pressed"]=F,e));if(o&&(O["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(T,O);if(this.props.menuProps){var L=this.props.menuProps.id,H=void 0===L?"".concat(this._labelId,"-menu"):L;rf(O,{"aria-expanded":!k,"aria-controls":k?null:H,"aria-haspopup":!0})}return this._onRenderContent(T,O)},t.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},t.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.focus=function(){var e,t;this._isSplitButton&&this._splitButtonContainer.current?(an(!0,void 0,null==(e=this.context)?void 0:e.registeredProviders),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(an(!0,void 0,null==(t=this.context)?void 0:t.registeredProviders),this._buttonElement.current.focus())},t.prototype.dismissMenu=function(){this._dismissMenu()},t.prototype.openMenu=function(e,t){this._openMenu(e,t)},t.prototype._onRenderContent=function(e,t){var n=this,r=this.props,o=e,a=r.menuIconProps,s=r.menuProps,l=r.onRenderIcon,c=void 0===l?this._onRenderIcon:l,u=r.onRenderAriaDescription,d=void 0===u?this._onRenderAriaDescription:u,p=r.onRenderChildren,f=void 0===p?this._onRenderChildren:p,h=r.onRenderMenu,m=void 0===h?this._onRenderMenu:h,g=r.onRenderMenuIcon,v=void 0===g?this._onRenderMenuIcon:g,y=r.disabled,b=r.keytipProps;b&&s&&(b=this._getMemoizedMenuButtonKeytipProps(b));var x=function(e){return ts.createElement(o,tf({},t,e),ts.createElement("span",{className:n._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},c(r,n._onRenderIcon),n._onRenderTextContents(),d(r,n._onRenderAriaDescription),f(r,n._onRenderChildren),!n._isSplitButton&&(s||a||n.props.onRenderMenuIcon)&&v(n.props,n._onRenderMenuIcon),s&&!s.doNotLayer&&n._shouldRenderMenu()&&m(n._getMenuProps(s),n._onRenderMenu)))},C=b?ts.createElement(f3,{keytipProps:this._isSplitButton?void 0:b,ariaDescribedBy:t["aria-describedby"],disabled:y},function(e){return x(e)}):x();return s&&s.doNotLayer?ts.createElement(ts.Fragment,null,C,this._shouldRenderMenu()&&m(this._getMenuProps(s),this._onRenderMenu)):ts.createElement(ts.Fragment,null,C,ts.createElement(ac,null))},t.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,n=t.persistMenu,r=t.renderPersistedMenuHiddenOnMount;return!e||!!n&&(!!this._renderedVisibleMenu||!!r)},t.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"==typeof this.props.children)},t.prototype._getMenuProps=function(e){var t=this.props.persistMenu,n=this.state.menuHidden;return!e.ariaLabel&&!e.labelElementId&&this._hasText()&&(e=tf(tf({},e),{labelElementId:this._labelId})),tf(tf({id:this._labelId+"-menu",directionalHint:cV},e),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:t?n:void 0,className:oG("ms-BaseButton-menuhost",e.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},t.prototype._onRenderSplitButtonContent=function(e,t){var n=this,r=this.props,o=r.styles,a=void 0===o?{}:o,s=r.disabled,l=r.allowDisabledFocus,c=r.checked,u=r.getSplitButtonClassNames,d=r.primaryDisabled,p=r.menuProps,f=r.toggle,h=r.role,m=r.primaryActionButtonProps,g=this.props.keytipProps,v=this.state.menuHidden,y=u?u(!!s,!v,!!c,!!l):a&&hW(a,!!s,!v,!!c,!!d);rf(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),g&&p&&(g=this._getMemoizedMenuButtonKeytipProps(g));var b=i$(t,[],["disabled"]);m&&rf(t,m);var x=function(r){return ts.createElement("div",tf({},b,{"data-ktp-target":r?r["data-ktp-target"]:void 0,role:h||"button","aria-disabled":s,"aria-haspopup":!0,"aria-expanded":!v,"aria-pressed":f?!!c:void 0,"aria-describedby":od(t["aria-describedby"],r?r["aria-describedby"]:void 0),className:y&&y.splitButtonContainer,onKeyDown:n._onSplitButtonContainerKeyDown,onTouchStart:n._onTouchStart,ref:n._splitButtonContainer,"data-is-focusable":!0,onClick:s||d?void 0:n._onSplitButtonPrimaryClick,tabIndex:(s||d)&&!l?void 0:0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:n._onSplitContainerFocusCapture}),ts.createElement("span",{style:{display:"flex",width:"100%"}},n._onRenderContent(e,t),n._onRenderSplitButtonMenuButton(y,r),n._onRenderSplitButtonDivider(y)))};return g?ts.createElement(f3,{keytipProps:g,disabled:s},function(e){return x(e)}):x()},t.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){var t=function(e){e.stopPropagation()};return ts.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:t})}return null},t.prototype._onRenderSplitButtonMenuButton=function(e,n){var r=this.props,o=r.allowDisabledFocus,a=r.checked,s=r.disabled,l=r.splitButtonMenuProps,c=r.splitButtonAriaLabel,u=r.primaryDisabled,d=this.state.menuHidden,p=this.props.menuIconProps;void 0===p&&(p={iconName:"ChevronDown"});var f=tf(tf({},l),{styles:e,checked:a,disabled:s,allowDisabledFocus:o,onClick:this._onMenuClick,menuProps:void 0,iconProps:tf(tf({},p),{className:this._classNames.menuIcon}),ariaLabel:c,"aria-haspopup":!0,"aria-expanded":!d,"data-is-focusable":!1});return ts.createElement(t,tf({},f,{"data-ktp-execute-target":n?n["data-ktp-execute-target"]:n,onMouseDown:this._onMouseDown,tabIndex:u&&!o?0:-1}))},t.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.state.menuHidden&&e.focus()},hq)},t.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&e.which===oe&&(e.altKey||e.metaKey)},t.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},t.contextType=as,t}(ts.Component);!function(e){e[e.button=0]="button",e[e.anchor=1]="anchor"}(et||(et={})),function(e){e[e.normal=0]="normal",e[e.primary=1]="primary",e[e.hero=2]="hero",e[e.compound=3]="compound",e[e.command=4]="command",e[e.icon=5]="icon",e[e.default=6]="default"}(en||(en={}));var hX={outline:0},hY=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},h$=oL(function(e){var t,n,r=e.semanticColors,o=e.effects,a=e.fonts,s=r.buttonBorder,l=r.disabledBackground,c=r.disabledText,u={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[lO(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),e.fonts.medium,{border:"1px solid "+s,borderRadius:o.roundedCorner2,boxSizing:"border-box",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"0 16px",textDecoration:"none",textAlign:"center",userSelect:"none",":active > span":{position:"relative",left:0,top:0}}],rootDisabled:[lO(e,{inset:1,highContrastStyle:u,borderColor:"transparent"}),{backgroundColor:l,borderColor:l,color:c,cursor:"default",":hover":hX,":focus":hX}],iconDisabled:((t={color:c})[l_]={color:"GrayText"},t),menuIconDisabled:((n={color:c})[l_]={color:"GrayText"},n),flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:hY(a.mediumPlus.fontSize),menuIcon:hY(a.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:lV}}),hQ=oL(function(e,t){var n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x=e.effects,C=e.palette,k=e.semanticColors,w={left:-2,top:-2,bottom:-2,right:-2,border:"none"},S={position:"absolute",width:1,right:31,top:8,bottom:8};return nx({splitButtonContainer:[lO(e,{highContrastStyle:w,inset:2,pointerEvents:"none"}),{display:"inline-flex",".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":((n={borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",":hover":{border:"none"},":active":{border:"none"}})[l_]=tf(tf({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},lF()),{":hover":{backgroundColor:"Highlight",border:"1px solid Highlight",borderRightWidth:"0",color:"HighlightText"},":active":{border:"1px solid Highlight"}}),n),".ms-Button--default + .ms-Button":((r={})[l_]={border:"1px solid WindowText",borderLeftWidth:"0",":hover":{backgroundColor:"HighlightText",borderColor:"Highlight",color:"Highlight",".ms-Button-menuIcon":tf({backgroundColor:"HighlightText",color:"Highlight"},lF())}},r),'.ms-Button--default + .ms-Button[aria-expanded="true"]':((o={})[l_]={backgroundColor:"HighlightText",borderColor:"Highlight",color:"Highlight",".ms-Button-menuIcon":tf({backgroundColor:"HighlightText",color:"Highlight"},lF())},o),".ms-Button--primary + .ms-Button":((a={border:"none"})[l_]={border:"1px solid WindowText",borderLeftWidth:"0",":hover":{borderLeftWidth:"0",backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",".ms-Button-menuIcon":tf(tf({},lF()),{color:"HighlightText"})}},a),'.ms-Button--primary + .ms-Button[aria-expanded="true"]':((s={})[l_]=tf(tf({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},lF()),{".ms-Button-menuIcon":{color:"HighlightText"}}),s),".ms-Button.is-disabled":((l={})[l_]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},l)}],splitButtonContainerHovered:{".ms-Button--default.is-disabled":((c={backgroundColor:k.buttonBackgroundDisabled,color:k.buttonTextDisabled})[l_]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},c),".ms-Button--primary.is-disabled":((u={backgroundColor:k.primaryButtonBackgroundDisabled,color:k.primaryButtonTextDisabled})[l_]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},u)},splitButtonContainerChecked:{".ms-Button--primary":((d={})[l_]=tf({color:"Window",backgroundColor:"WindowText"},lF()),d)},splitButtonContainerCheckedHovered:{".ms-Button--primary":((p={})[l_]=tf({color:"Window",backgroundColor:"WindowText"},lF()),p)},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:((f={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:x.roundedCorner2,borderBottomRightRadius:x.roundedCorner2,border:"1px solid ".concat(C.neutralSecondaryAlt),borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0})[l_]={".ms-Button-menuIcon":{color:"WindowText"}},f),splitButtonDivider:tf(tf({},S),((h={})[l_]={backgroundColor:"WindowText"},h)),splitButtonDividerDisabled:tf(tf({},S),((m={})[l_]={backgroundColor:"GrayText"},m)),splitButtonMenuButtonDisabled:((g={pointerEvents:"none",border:"none",":hover":{cursor:"default"},".ms-Button--primary":((v={})[l_]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},v),".ms-Button-menuIcon":((y={})[l_]={color:"GrayText"},y)})[l_]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},g),splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:((b={outline:"none",border:"none"})[l_]=tf({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},lF()),b),splitButtonMenuFocused:tf({},lO(e,{highContrastStyle:w,inset:2}))},t)}),hJ=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function hZ(e){var t,n,r,o,a,s=e.semanticColors,l=e.palette,c=s.buttonBackground,u=s.buttonBackgroundPressed,d=s.buttonBackgroundHovered,p=s.buttonBackgroundDisabled,f=s.buttonText,h=s.buttonTextHovered,m=s.buttonTextDisabled,g=s.buttonTextChecked,v=s.buttonTextCheckedHovered;return{root:{backgroundColor:c,color:f},rootHovered:((t={backgroundColor:d,color:h})[l_]={borderColor:"Highlight",color:"Highlight"},t),rootPressed:{backgroundColor:u,color:g},rootExpanded:{backgroundColor:u,color:g},rootChecked:{backgroundColor:u,color:g},rootCheckedHovered:{backgroundColor:u,color:v},rootDisabled:((n={color:m,backgroundColor:p})[l_]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n),splitButtonContainer:((r={})[l_]={border:"none"},r),splitButtonMenuButton:{color:l.white,backgroundColor:"transparent",":hover":((o={backgroundColor:l.neutralLight})[l_]={color:"Highlight"},o)},splitButtonMenuButtonDisabled:{backgroundColor:s.buttonBackgroundDisabled,":hover":{backgroundColor:s.buttonBackgroundDisabled}},splitButtonDivider:tf(tf({},hJ()),((a={backgroundColor:l.neutralTertiaryAlt})[l_]={backgroundColor:"WindowText"},a)),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:l.neutralQuaternaryAlt,":hover":{backgroundColor:l.neutralQuaternaryAlt}},splitButtonMenuButtonExpanded:{backgroundColor:l.neutralQuaternaryAlt,":hover":{backgroundColor:l.neutralQuaternaryAlt}},splitButtonMenuIcon:{color:s.buttonText},splitButtonMenuIconDisabled:{color:s.buttonTextDisabled}}}function h0(e){var t,n,r,o,a,s,l,c,u,d=e.palette,p=e.semanticColors;return{root:((t={backgroundColor:p.primaryButtonBackground,border:"1px solid ".concat(p.primaryButtonBackground),color:p.primaryButtonText})[l_]=tf({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},lF()),t[".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]={":after":{border:"none",outlineColor:d.white}},t),rootHovered:((n={backgroundColor:p.primaryButtonBackgroundHovered,border:"1px solid ".concat(p.primaryButtonBackgroundHovered),color:p.primaryButtonTextHovered})[l_]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n),rootPressed:((r={backgroundColor:p.primaryButtonBackgroundPressed,border:"1px solid ".concat(p.primaryButtonBackgroundPressed),color:p.primaryButtonTextPressed})[l_]=tf({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},lF()),r),rootExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootChecked:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:p.primaryButtonBackgroundPressed,color:p.primaryButtonTextPressed},rootDisabled:((o={color:p.primaryButtonTextDisabled,backgroundColor:p.primaryButtonBackgroundDisabled})[l_]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o),splitButtonContainer:((a={})[l_]={border:"none"},a),splitButtonDivider:tf(tf({},hJ()),((s={backgroundColor:d.white})[l_]={backgroundColor:"Window"},s)),splitButtonMenuButton:((l={backgroundColor:p.primaryButtonBackground,color:p.primaryButtonText})[l_]={backgroundColor:"Canvas"},l[":hover"]=((c={backgroundColor:p.primaryButtonBackgroundHovered})[l_]={color:"Highlight"},c),l),splitButtonMenuButtonDisabled:{backgroundColor:p.primaryButtonBackgroundDisabled,":hover":{backgroundColor:p.primaryButtonBackgroundDisabled}},splitButtonMenuButtonChecked:{backgroundColor:p.primaryButtonBackgroundPressed,":hover":{backgroundColor:p.primaryButtonBackgroundPressed}},splitButtonMenuButtonExpanded:{backgroundColor:p.primaryButtonBackgroundPressed,":hover":{backgroundColor:p.primaryButtonBackgroundPressed}},splitButtonMenuIcon:{color:p.primaryButtonText},splitButtonMenuIconDisabled:((u={color:d.neutralTertiary})[l_]={color:"GrayText"},u)}}var h1="32px",h2="80px",h5=oL(function(e,t,n){var r=h$(e),o=hQ(e);return nx(r,{root:{minWidth:h2,minHeight:h1},label:{fontWeight:P.semibold}},n?h0(e):hZ(e),o,t)}),h4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,o=e.theme;return ts.createElement(hK,tf({},this.props,{variantClassName:n?"ms-Button--primary":"ms-Button--default",styles:h5(o,r,n),onRenderDescription:rH}))},t=tm([im("DefaultButton",["theme","styles"],!0)],t)}(ts.Component),h3="40px",h6="0 4px",h8=oL(function(e,t){var n,r,o;return nx(h$(e),{root:((n={padding:h6,height:h3,color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent"})[l_]={borderColor:"Window"},n),rootHovered:((r={color:e.palette.themePrimary})[l_]={color:"Highlight"},r),iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:((o={color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent"})[l_]={color:"GrayText"},o),rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}},t)}),h9=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return ts.createElement(hK,tf({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:h8(n,t),onRenderDescription:rH}))},t=tm([im("ActionButton",["theme","styles"],!0)],t)}(ts.Component),h7=oL(function(e,t,n){var r,o,a,s,l,c=e.fonts,u=e.palette,d=h$(e),p=hQ(e),f={root:{maxWidth:"280px",minHeight:"72px",height:"auto",padding:"16px 12px"},flexContainer:{flexDirection:"row",alignItems:"flex-start",minWidth:"100%",margin:""},textContainer:{textAlign:"left"},icon:{fontSize:"2em",lineHeight:"1em",height:"1em",margin:"0px 8px 0px 0px",flexBasis:"1em",flexShrink:"0"},label:{margin:"0 0 5px",lineHeight:"100%",fontWeight:P.semibold},description:[c.small,{lineHeight:"100%"}]},h={description:{color:u.neutralSecondary},descriptionHovered:{color:u.neutralDark},descriptionPressed:{color:"inherit"},descriptionChecked:{color:"inherit"},descriptionDisabled:{color:"inherit"}},m={description:((r={color:u.white})[l_]=tf({backgroundColor:"WindowText",color:"Window"},lF()),r),descriptionHovered:((o={color:u.white})[l_]={backgroundColor:"Highlight",color:"Window"},o),descriptionPressed:((a={color:"inherit"})[l_]=tf({color:"Window",backgroundColor:"WindowText"},lF()),a),descriptionChecked:((s={color:"inherit"})[l_]=tf({color:"Window",backgroundColor:"WindowText"},lF()),s),descriptionDisabled:((l={color:"inherit"})[l_]={color:"inherit"},l)};return nx(d,f,n?h0(e):hZ(e),n?m:h,p,t)}),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,o=e.theme;return ts.createElement(hK,tf({},this.props,{variantClassName:n?"ms-Button--compoundPrimary":"ms-Button--compound",styles:h7(o,r,n)}))},t=tm([im("CompoundButton",["theme","styles"],!0)],t)}(ts.Component),mt=oL(function(e,t){var n,r=h$(e),o=hQ(e),a=e.palette;return nx(r,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:((n={color:a.themeDarkAlt,backgroundColor:a.neutralLighter})[l_]={borderColor:"Highlight",color:"Highlight"},n),rootHasMenu:{width:"auto"},rootPressed:{color:a.themeDark,backgroundColor:a.neutralLight},rootExpanded:{color:a.themeDark,backgroundColor:a.neutralLight},rootChecked:{color:a.themeDark,backgroundColor:a.neutralLight},rootCheckedHovered:{color:a.themeDark,backgroundColor:a.neutralQuaternaryAlt},rootDisabled:{color:a.neutralTertiaryAlt}},o,t)}),mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return ts.createElement(hK,tf({},this.props,{variantClassName:"ms-Button--icon",styles:mt(n,t),onRenderText:rH,onRenderDescription:rH}))},t=tm([im("IconButton",["theme","styles"],!0)],t)}(ts.Component),mr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){return ts.createElement(h4,tf({},this.props,{primary:!0,onRenderDescription:rH}))},t=tm([im("PrimaryButton",["theme","styles"],!0)],t)}(ts.Component);!function(e){function t(t){var n=e.call(this,t)||this;return rN("The Button component has been deprecated. Use specific variants instead. (PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)"),n}tp(t,e),t.prototype.render=function(){var e=this.props;switch(e.buttonType){case en.command:return ts.createElement(h9,tf({},e));case en.compound:return ts.createElement(me,tf({},e));case en.icon:return ts.createElement(mn,tf({},e));case en.primary:return ts.createElement(mr,tf({},e));default:return ts.createElement(h4,tf({},e))}}}(ts.Component);var mo=oL(function(e,t,n,r){var o,a,s,l,c,u,d,p,f,h,m,g,v,y=h$(e),b=hQ(e),x=e.palette,C=e.semanticColors;return nx(y,b,{root:[lO(e,{inset:2,highContrastStyle:{left:4,top:4,bottom:4,right:4,border:"none"},borderColor:"transparent"}),e.fonts.medium,((o={minWidth:"40px",backgroundColor:x.white,color:x.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0})[l_]={border:"none"},o)],rootHovered:((a={backgroundColor:x.neutralLighter,color:x.neutralDark})[l_]={color:"Highlight"},a[".".concat(hV.msButtonIcon)]={color:x.themeDarkAlt},a[".".concat(hV.msButtonMenuIcon)]={color:x.neutralPrimary},a),rootPressed:((s={backgroundColor:x.neutralLight,color:x.neutralDark})[".".concat(hV.msButtonIcon)]={color:x.themeDark},s[".".concat(hV.msButtonMenuIcon)]={color:x.neutralPrimary},s),rootChecked:((l={backgroundColor:x.neutralLight,color:x.neutralDark})[".".concat(hV.msButtonIcon)]={color:x.themeDark},l[".".concat(hV.msButtonMenuIcon)]={color:x.neutralPrimary},l),rootCheckedHovered:((c={backgroundColor:x.neutralQuaternaryAlt})[".".concat(hV.msButtonIcon)]={color:x.themeDark},c[".".concat(hV.msButtonMenuIcon)]={color:x.neutralPrimary},c),rootExpanded:((u={backgroundColor:x.neutralLight,color:x.neutralDark})[".".concat(hV.msButtonIcon)]={color:x.themeDark},u[".".concat(hV.msButtonMenuIcon)]={color:x.neutralPrimary},u),rootExpandedHovered:{backgroundColor:x.neutralQuaternaryAlt},rootDisabled:((d={backgroundColor:x.white})[".".concat(hV.msButtonIcon)]=((p={color:C.disabledBodySubtext})[l_]=tf({color:"GrayText"},lF()),p),d[l_]=tf({color:"GrayText",backgroundColor:"Window"},lF()),d),splitButtonContainer:((f={height:"100%"})[l_]={border:"none"},f),splitButtonDividerDisabled:((h={})[l_]={backgroundColor:"Window"},h),splitButtonDivider:{backgroundColor:x.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:x.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:x.neutralSecondary,":hover":((m={backgroundColor:x.neutralLighter,color:x.neutralDark})[l_]={color:"Highlight"},m[".".concat(hV.msButtonIcon)]={color:x.neutralPrimary},m),":active":((g={backgroundColor:x.neutralLight})[".".concat(hV.msButtonIcon)]={color:x.neutralPrimary},g)},splitButtonMenuButtonDisabled:((v={backgroundColor:x.white})[l_]=tf({color:"GrayText",border:"none",backgroundColor:"Window"},lF()),v),splitButtonMenuButtonChecked:{backgroundColor:x.neutralLight,color:x.neutralDark,":hover":{backgroundColor:x.neutralQuaternaryAlt}},splitButtonMenuButtonExpanded:{backgroundColor:x.neutralLight,color:x.black,":hover":{backgroundColor:x.neutralQuaternaryAlt}},splitButtonMenuIcon:{color:x.neutralPrimary},splitButtonMenuIconDisabled:{color:x.neutralTertiary},label:{fontWeight:"normal"},icon:{color:x.themePrimary},menuIcon:{color:x.neutralSecondary}},t)}),mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return ts.createElement(hK,tf({},this.props,{variantClassName:"ms-Button--commandBar",styles:mo(n,t),onRenderDescription:rH}))},t=tm([im("CommandBarButton",["theme","styles"],!0)],t)}(ts.Component),ma=h9,ms=oL(function(e,t){return nx({root:[lO(e,{inset:1,highContrastStyle:{outlineOffset:"-4px",outline:"1px solid Window"},borderColor:"transparent"}),{height:24}]},t)});(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}tp(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return ts.createElement(h4,tf({},this.props,{styles:ms(n,t),onRenderDescription:rH}))},t=tm([im("MessageBarButton",["theme","styles"],!0)],t)})(ts.Component),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(er||(er={}));var ml=16,mc=function(){var e={};return{getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(e[t.cacheKey]=n)}}},mu=function(e){void 0===e&&(e=mc());var t,n=e;function r(e,t){var r=n.getCachedMeasurement(e);if(void 0!==r)return r;var o=t();return n.addMeasurementToCache(e,o),o}function o(e,o,a){for(var s=e,l=r(e,a);l>t;){var c=o(s);if(void 0===c)break;if(void 0===(l=n.getCachedMeasurement(c)))return{dataToMeasure:c,resizeDirection:"shrink"};s=c}return{renderedData:s,resizeDirection:void 0,dataToMeasure:void 0}}function a(e,a,s,l){for(var c=e,u=r(e,s);u<t;){var d=a(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=n.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return tf({resizeDirection:"shrink"},o(c,l,s))}function s(e,n,r,o){var a;return a=e>t?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:r},t=e,tf(tf({},a),{measureContainer:!1})}return{getNextState:function(e,n,r,l){if(void 0!==l||void 0!==n.dataToMeasure){if(l){if(t&&n.renderedData&&!n.dataToMeasure)return tf(tf({},n),s(l,e.data,n.renderedData,e.onGrowData));t=l}var c=tf(tf({},n),{measureContainer:!1});return n.dataToMeasure&&(c="grow"===n.resizeDirection&&e.onGrowData?tf(tf({},c),a(n.dataToMeasure,e.onGrowData,r,e.onReduceData)):tf(tf({},c),o(n.dataToMeasure,e.onReduceData,r))),c}},shouldRenderDataForMeasurement:function(e){return!!e&&void 0===n.getCachedMeasurement(e)},getInitialResizeGroupState:function(e){return{dataToMeasure:tf({},e),resizeDirection:"grow",measureContainer:!0}}}},md=ts.createContext({isMeasured:!1}),mp={position:"fixed",visibility:"hidden"},mf={position:"relative"},mh="ResizeGroup";function mm(e,t){var n;switch(t.type){case"resizeData":return tf({},t.value);case"dataToMeasure":return tf(tf({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return tf(tf({},e),((n={})[t.type]=t.value,n))}}function mg(e,t,n){var r=uV(function(){return t.getInitialResizeGroupState(e.data)}),o=ts.useReducer(mm,r),a=o[0],s=o[1];ts.useEffect(function(){s({type:"dataToMeasure",value:e.data})},[e.data]);var l=ts.useRef(r);return l.current=tf({},a),[l,ts.useCallback(function(e){e&&s({type:"resizeData",value:e})},[]),ts.useCallback(function(){n.current&&s({type:"measureContainer",value:!0})},[n])]}function mv(e,t){var n=uV(mu),r=ts.useRef(null),o=ts.useRef(null),a=ts.useRef(!1),s=uz(),l=mg(e,n,t),c=l[0],u=l[1],d=l[2];ts.useEffect(function(){var t;c.current.renderedData&&(a.current=!0,null==(t=e.dataDidRender)||t.call(e,c.current.renderedData))}),ts.useEffect(function(){s.requestAnimationFrame(function(){var s=void 0;if(c.current.measureContainer&&t.current){var l=t.current.getBoundingClientRect();s=e.direction===er.vertical?l.height:l.width}u(n.getNextState(e,c.current,function(){var t=a.current?o:r;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===er.vertical?n.height:n.width},s))},t.current)}),uK(iu(),"resize",s.debounce(d,ml,{leading:!0}));var p=n.shouldRenderDataForMeasurement(c.current.dataToMeasure),f=!a.current&&p;return[c.current.dataToMeasure,c.current.renderedData,d,r,o,p,f]}function my(e){u0({name:mh,props:e,deprecations:{styles:"className"}})}var mb={isMeasured:!0},mx=ts.forwardRef(function(e,t){var n=ts.useRef(null),r=uG(n,t),o=mv(e,n),a=o[0],s=o[1],l=o[2],c=o[3],u=o[4],d=o[5],p=o[6];ts.useImperativeHandle(e.componentRef,function(){return{remeasure:l}},[l]),my(e);var f=e.className,h=e.onRenderData,m=i$(e,iY,["data"]);return ts.createElement("div",tf({},m,{className:f,ref:r}),ts.createElement("div",{style:mf},d&&!p&&ts.createElement("div",{style:mp,ref:u},ts.createElement(md.Provider,{value:mb},h(a))),ts.createElement("div",{ref:c,style:p?mp:void 0,"data-automation-id":"visibleContent"},p?h(a):s&&h(s))))});mx.displayName="ResizeGroupBase";var mC=mx,mk=oI(),mw="overflow",mS=function(){return null},m_={styles:function(e){return{root:{selectors:{"&.is-disabled":{color:e.theme.semanticColors.bodyText}}}}}},mE=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=ts.createRef(),n._onReduceData=function(e){var t=e.renderedItems,n=e.renderedOverflowItems,r=e.props.overflowIndex,o=t[r];if(o)return(t=tg([],t,!0)).splice(r,1),n=tg(tg([],n,!0),[o],!1),tf(tf({},e),{renderedItems:t,renderedOverflowItems:n})},n._onGrowData=function(e){var t=e.renderedItems,n=e.renderedOverflowItems,r=e.props,o=r.overflowIndex,a=r.maxDisplayedItems,s=(n=tg([],n,!0)).pop();if(s&&!(t.length>=a))return(t=tg([],t,!0)).splice(o,0,s),tf(tf({},e),{renderedItems:t,renderedOverflowItems:n})},n._onRenderBreadcrumb=function(e){var t=e.props,r=t.ariaLabel,o=t.dividerAs,a=void 0===o?pf:o,s=t.onRenderItem,l=t.overflowAriaLabel,c=t.overflowIndex,u=t.onRenderOverflowIcon,d=t.overflowButtonAs,p=e.renderedOverflowItems,f=e.renderedItems,h=p.map(function(e){var t=!!(e.onClick||e.href);return{text:e.text,name:e.text,key:e.key,onClick:e.onClick?n._onBreadcrumbClicked.bind(n,e):null,href:e.href,disabled:!t,itemProps:t?void 0:m_}}),m=f.length-1,g=p&&0!==p.length,v=f.map(function(e,t){var r=n._onRenderItem;return e.onRender&&(r=aV(e.onRender,r)),s&&(r=aV(s,r)),ts.createElement("li",{className:n._classNames.listItem,key:e.key||String(t)},r(e),(t!==m||g&&t===c-1)&&ts.createElement(a,{className:n._classNames.chevron,iconName:ox(n.props.theme)?"ChevronLeft":"ChevronRight",item:e}))});if(g){var y=u?{}:{iconName:"More"},b=u||mS,x=d||mn;v.splice(c,0,ts.createElement("li",{className:n._classNames.overflow,key:mw},ts.createElement(x,{className:n._classNames.overflowButton,iconProps:y,role:"button","aria-haspopup":"true",ariaLabel:l,onRenderMenuIcon:b,menuProps:{items:h,directionalHint:cV}}),c!==m+1&&ts.createElement(a,{className:n._classNames.chevron,iconName:ox(n.props.theme)?"ChevronLeft":"ChevronRight",item:p[p.length-1]})))}var C=i$(n.props,iI,["className"]);return ts.createElement("div",tf({className:n._classNames.root,role:"navigation","aria-label":r},C),ts.createElement(fp,tf({componentRef:n._focusZone,direction:K.horizontal},n.props.focusZoneProps),ts.createElement("ol",{className:n._classNames.list},v)))},n._onRenderItem=function(e){if(!e)return null;var t=e.as,r=e.href,o=e.onClick,a=e.isCurrentItem,s=e.text,l=e.onRenderContent,c=th(e,["as","href","onClick","isCurrentItem","text","onRenderContent"]),u=mP;if(l&&(u=aV(l,u)),n.props.onRenderItemContent&&(u=aV(n.props.onRenderItemContent,u)),o||r)return ts.createElement(fb,tf({},c,{as:t,className:n._classNames.itemLink,href:r,"aria-current":a?"page":void 0,onClick:n._onBreadcrumbClicked.bind(n,e)}),ts.createElement(d8,tf({content:s,overflowMode:F.Parent},n.props.tooltipHostProps),u(e)));var d=t||"span";return ts.createElement(d,tf({},c,{className:n._classNames.item}),ts.createElement(d8,tf({content:s,overflowMode:F.Parent},n.props.tooltipHostProps),u(e)))},n._onBreadcrumbClicked=function(e,t){e.onClick&&e.onClick(t,e)},i2(n),n._validateProps(t),n}return tp(t,e),t.prototype.focus=function(){this._focusZone.current&&this._focusZone.current.focus()},t.prototype.render=function(){this._validateProps(this.props);var e=this.props,t=e.onReduceData,n=void 0===t?this._onReduceData:t,r=e.onGrowData,o=void 0===r?this._onGrowData:r,a=e.overflowIndex,s=e.maxDisplayedItems,l=e.items,c=e.className,u=e.theme,d=e.styles,p=tg([],l,!0),f=p.splice(a,p.length-s),h={props:this.props,renderedItems:p,renderedOverflowItems:f};return this._classNames=mk(d,{className:c,theme:u}),ts.createElement(mC,{onRenderData:this._onRenderBreadcrumb,onReduceData:n,onGrowData:o,data:h})},t.prototype._validateProps=function(e){var t=e.maxDisplayedItems,n=e.overflowIndex,r=e.items;if(n<0||t>1&&n>t-1||r.length>0&&n>r.length-1)throw Error("Breadcrumb: overflowIndex out of range")},t.defaultProps={items:[],maxDisplayedItems:999,overflowIndex:0},t}(ts.Component);function mP(e){return e?ts.createElement(ts.Fragment,null,e.text):null}var mI={root:"ms-Breadcrumb",list:"ms-Breadcrumb-list",listItem:"ms-Breadcrumb-listItem",chevron:"ms-Breadcrumb-chevron",overflow:"ms-Breadcrumb-overflow",overflowButton:"ms-Breadcrumb-overflowButton",itemLink:"ms-Breadcrumb-itemLink",item:"ms-Breadcrumb-item"},mT={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},mD=16,mA=8,mR=36,mN=18,mB=lM(0,lR),mM=lM(lI,lN);a1(mE,function(e){var t,n,r,o,a,s=e.className,l=e.theme,c=l.palette,u=l.semanticColors,d=l.fonts,p=l0(mI,l),f=u.menuItemBackgroundHovered,h=u.menuItemBackgroundPressed,m=c.neutralSecondary,g=P.regular,v=c.neutralPrimary,y=c.neutralPrimary,b=P.semibold,x=c.neutralSecondary,C=c.neutralSecondary,k={fontWeight:b,color:y},w={":hover":{color:v,backgroundColor:f,cursor:"pointer",selectors:((t={})[l_]={color:"Highlight",backgroundColor:"transparent"},t)},":active":{backgroundColor:h,color:v},"&:active:hover":{color:v,backgroundColor:h},"&:active, &:hover, &:active:hover":{textDecoration:"none"}},S={color:m,padding:"0 8px",lineHeight:mR,fontSize:mN,fontWeight:g},_={left:1,right:1,top:1,bottom:1};return{root:[p.root,d.medium,{margin:"11px 0 1px"},s],list:[p.list,{whiteSpace:"nowrap",padding:0,margin:0,display:"flex",alignItems:"stretch"}],listItem:[p.listItem,{listStyleType:"none",margin:"0",padding:"0",display:"flex",position:"relative",alignItems:"center",selectors:{"&:last-child .ms-Breadcrumb-itemLink":tf(tf({},k),((n={})[l_]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},n)),"&:last-child .ms-Breadcrumb-item":k}}],chevron:[p.chevron,{color:x,fontSize:d.small.fontSize,selectors:((r={})[l_]=tf({color:"WindowText"},lF()),r[mM]={fontSize:mA},r[mB]={fontSize:mA},r)}],overflow:[p.overflow,{position:"relative",display:"flex",alignItems:"center"}],overflowButton:[p.overflowButton,lO(l,{highContrastStyle:_}),mT,{fontSize:mD,color:C,height:"100%",cursor:"pointer",selectors:tf(tf({},w),((o={})[mB]={padding:"4px 6px"},o[mM]={fontSize:d.mediumPlus.fontSize},o))}],itemLink:[p.itemLink,lO(l),mT,tf(tf({},S),{selectors:tf(((a={":focus":{color:c.neutralDark}})[".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]={outline:"none"},a),w)})],item:[p.item,tf(tf({},S),{selectors:{":hover":{cursor:"default"}}})]}},void 0,{scope:"Breadcrumb"});var mF=oI(),mO=a1(ts.forwardRef(function(e,t){var n=uq(void 0,e.id),r=e.items,o=e.columnCount,a=e.onRenderItem,s=e.isSemanticRadio,l=e.ariaPosInSet,c=void 0===l?e.positionInSet:l,u=e.ariaSetSize,d=void 0===u?e.setSize:u,p=e.styles,f=e.doNotContainWithinFocusZone,h=i$(e,iI,f?[]:["onBlur"]),m=mF(p,{theme:e.theme}),g=oh(r,o),v=ts.createElement("table",tf({"aria-posinset":c,"aria-setsize":d,id:n,role:s?"radiogroup":"grid"},h,{className:m.root}),ts.createElement("tbody",{role:s?"presentation":"rowgroup"},g.map(function(e,t){return ts.createElement("tr",{role:s?"presentation":"row",key:t},e.map(function(e,t){return ts.createElement("td",{role:"presentation",key:t+"-cell",className:m.tableCell},a(e,t))}))})));return f?v:ts.createElement(fp,{elementRef:t,isCircularNavigation:e.shouldFocusCircularNavigate,className:m.focusedContainer,onBlur:e.onBlur},v)}),function(e){return{root:{padding:2,outline:"none"},tableCell:{padding:0}}});mO.displayName="ButtonGrid";var mL=function(e){var t,n=uq("gridCell"),r=e.item,o=e.id,a=void 0===o?n:o,s=e.className,l=e.selected,c=e.disabled,u=void 0!==c&&c,d=e.onRenderItem,p=e.cellDisabledStyle,f=e.cellIsSelectedStyle,h=e.index,m=e.label,g=e.getClassNames,v=e.onClick,y=e.onHover,b=e.onMouseMove,x=e.onMouseLeave,C=e.onMouseEnter,k=e.onFocus,w=i$(e,iM),S=ts.useCallback(function(e){v&&!u&&v(r,e)},[u,r,v]),_=ts.useCallback(function(e){C&&C(e)||!y||u||y(r,e)},[u,r,y,C]),E=ts.useCallback(function(e){b&&b(e)||!y||u||y(r,e)},[u,r,y,b]),P=ts.useCallback(function(e){x&&x(e)||!y||u||y(void 0,e)},[u,y,x]),I=ts.useCallback(function(e){k&&!u&&k(r,e)},[u,r,k]);return ts.createElement(ma,tf({id:a,"data-index":h,"data-is-focusable":!0,"aria-selected":l,ariaLabel:m,title:m},w,{className:oG(s,((t={})[""+f]=l,t[""+p]=u,t)),onClick:S,onMouseEnter:_,onMouseMove:E,onMouseLeave:P,onFocus:I,getClassNames:g}),d(r))};!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(eo||(eo={})),function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"}(ei||(ei={})),function(e){e[e.FirstDay=0]="FirstDay",e[e.FirstFullWeek=1]="FirstFullWeek",e[e.FirstFourDayWeek=2]="FirstFourDayWeek"}(ea||(ea={})),function(e){e[e.Day=0]="Day",e[e.Week=1]="Week",e[e.Month=2]="Month",e[e.WorkWeek=3]="WorkWeek"}(es||(es={}));var mH=7,mz=1e3,mV=60,mU=7,mj=12,mW=24,mq=60,mG=12,mK=/^(\d\d?):(\d\d):?(\d\d)? ?([ap]m)?/i;function mX(e,t){var n=new Date(e.getTime());return n.setDate(n.getDate()+t),n}function mY(e,t){return mX(e,t*mU)}function m$(e,t){var n=new Date(e.getTime()),r=n.getMonth()+t;return n.setMonth(r),n.getMonth()!==(r%mj+mj)%mj&&(n=mX(n,-n.getDate())),n}function mQ(e,t){var n=new Date(e.getTime());return n.setFullYear(e.getFullYear()+t),n.getMonth()!==(e.getMonth()%mj+mj)%mj&&(n=mX(n,-n.getDate())),n}function mJ(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function mZ(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function m0(e){return new Date(e.getFullYear(),0,1,0,0,0,0)}function m1(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}function m2(e,t){return m$(e,t-e.getMonth())}function m5(e,t){return!e&&!t||!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function m4(e,t){return gt(e)-gt(t)}function m3(e,t,n,r,o){void 0===o&&(o=1);var a,s=[],l=null;switch(!r&&(r=[eo.Monday,eo.Tuesday,eo.Wednesday,eo.Thursday,eo.Friday]),o=Math.max(o,1),t){case es.Day:l=mX(a=ge(e),o);break;case es.Week:case es.WorkWeek:l=mX(a=m7(ge(e),n),mU);break;case es.Month:l=m$(a=new Date(e.getFullYear(),e.getMonth(),1),1);break;default:throw Error("Unexpected object: "+t)}var c=a;do t!==es.WorkWeek?s.push(c):-1!==r.indexOf(c.getDay())&&s.push(c),c=mX(c,1);while(!m5(c,l));return s}function m6(e,t){for(var n=0,r=t;n<r.length;n++)if(m5(e,r[n]))return!0;return!1}function m8(e,t,n,r){var o=r.getFullYear(),a=r.getMonth(),s=1,l=new Date(o,a,1),c=new Date(o,a,s+(t+mU-1)-go(t,l.getDay()));s=c.getDate();for(var u=[],d=0;d<e;d++)u.push(m9(c,t,n)),s+=mU,c=new Date(o,a,s);return u}function m9(e,t,n){var r=4;switch(n){case ea.FirstFullWeek:return gn(e,t,mU);case ea.FirstFourDayWeek:return gn(e,t,r);default:return gr(e,t)}}function m7(e,t){var n=t-e.getDay();return n>0&&(n-=mU),mX(e,n)}function ge(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function gt(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function gn(e,t,n){var r=gi(e)-1,o=e.getDay()-r%mU,a=gi(new Date(e.getFullYear()-1,ei.December,31))-1,s=(t-o+2*mU)%mU;0!==s&&s>=n&&(s-=mU);var l=r-s;return l<0&&(o-=a%mU,0!=(s=(t-o+2*mU)%mU)&&s+1>=n&&(s-=mU),l=a-s),Math.floor(l/mU+1)}function gr(e,t){var n=gi(e)-1,r=(e.getDay()-n%mU-t+2*mU)%mU;return Math.floor((n+r)/mU+1)}function go(e,t){return e!==eo.Sunday&&t<e?t+mU:t}function gi(e){for(var t=e.getMonth(),n=e.getFullYear(),r=0,o=0;o<t;o++)r+=ga(o+1,n);return r+e.getDate()}function ga(e,t){return new Date(t,e,0).getDate()}var gs={formatDay:function(e){return e.getDate().toString()},formatMonth:function(e,t){return t.months[e.getMonth()]},formatYear:function(e){return e.getFullYear().toString()},formatMonthDayYear:function(e,t){return t.months[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()},formatMonthYear:function(e,t){return t.months[e.getMonth()]+" "+e.getFullYear()}},gl=tf(tf({},{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["S","M","T","W","T","F","S"]}),{goToToday:"Go to today",weekNumberFormatString:"Week number {0}",prevMonthAriaLabel:"Previous month",nextMonthAriaLabel:"Next month",prevYearAriaLabel:"Previous year",nextYearAriaLabel:"Next year",prevYearRangeAriaLabel:"Previous year range",nextYearRangeAriaLabel:"Next year range",closeButtonAriaLabel:"Close",selectedDateFormatString:"Selected date {0}",todayDateFormatString:"Today's date {0}",monthPickerHeaderAriaLabel:"{0}, change year",yearPickerHeaderAriaLabel:"{0}, change month",dayMarkedAriaLabel:"marked"}),gc=function(e,t){var n=t.minDate;return!!n&&m4(n,e)>=1},gu=function(e,t){var n=t.maxDate;return!!n&&m4(e,n)>=1},gd=function(e,t){var n=t.restrictedDates,r=t.minDate,o=t.maxDate;return(!!n||!!r||!!o)&&(n&&n.some(function(t){return m5(t,e)})||gc(e,t)||gu(e,t))},gp=function(e){var t=e.targetDate,n=e.initialDate,r=e.direction,o=th(e,["targetDate","initialDate","direction"]),a=t;if(!gd(t,o))return t;for(;0!==m4(n,a)&&gd(a,o)&&!gu(a,o)&&!gc(a,o);)a=mX(a,r);if(0!==m4(n,a)&&!gd(a,o))return a},gf=function(e,t,n){var r=tg([],e,!0);return t&&(r=r.filter(function(e){return m4(e,t)>=0})),n&&(r=r.filter(function(e){return 0>=m4(e,n)})),r},gh=function(e,t,n){for(var r=new Set(e),o=0,a=0,s=e;a<s.length;a++){var l=(s[a]+1)%7;!(r.has(l)&&(!t||n!==l))&&o++}return o<2},gm=function(e,t,n){return t&&e===es.WorkWeek&&(!gh(t,!0,n)||0===t.length)?es.Week:e},gg=function(e){var t,n=e.selectedDate,r=e.dateRangeType,o=e.firstDayOfWeek,a=e.today,s=e.minDate,l=e.maxDate,c=e.weeksToShow,u=e.workWeekDays,d=e.daysToSelectInDayView,p=e.restrictedDates,f=e.markedDays,h={minDate:s,maxDate:l,restrictedDates:p},m=a||new Date,g=e.navigatedDate?e.navigatedDate:m;t=c&&c<=4?new Date(g.getFullYear(),g.getMonth(),g.getDate()):new Date(g.getFullYear(),g.getMonth(),1);for(var v=[];t.getDay()!==o;)t.setDate(t.getDate()-1);t=mX(t,-mH);var y=!1,b=gm(r,u,o),x=[];n&&(x=gf(x=m3(n,b,o,u,d),s,l));for(var C=!0,k=0;C;k++){var w=[];y=!0;for(var S=function(e){var n=new Date(t.getTime()),r={key:t.toString(),date:t.getDate().toString(),originalDate:n,isInMonth:t.getMonth()===g.getMonth(),isToday:m5(m,t),isSelected:m6(t,x),isInBounds:!gd(t,h),isMarked:(null==f?void 0:f.some(function(e){return m5(n,e)}))||!1};w.push(r),r.isInMonth&&(y=!1),t.setDate(t.getDate()+1)},_=0;_<mH;_++)S(_);C=c?k<c+1:!y||0===k,v.push(w)}return v},gv=function(e,t){var n=new Date(e.getTime());return n.setTime(n.getTime()+t*mV*mz),n},gy=function(e,t){var n=new Date(e.getTime()),r=n.getMinutes();if(mV%t)n.setMinutes(0);else{for(var o=mV/t,a=1;a<=o;a++)if(r>t*(a-1)&&r<=t*a){r=t*a;break}n.setMinutes(r)}return n},gb=function(e,t,n){var r=mK.exec(n)||[],o=r[1],a=r[2],s=r[3],l=r[4],c=+o,u=+a,d=s?+s:0;e&&l&&("pm"===l.toLowerCase()&&c!==mG?c+=mG:"am"===l.toLowerCase()&&c===mG&&(c-=mG));var p=mz*mV*(t.getHours()>c||t.getHours()===c&&t.getMinutes()>u?mW-t.getHours()+c:Math.abs(t.getHours()-c))*mq+d*mz,f=new Date(t.getTime()+p);return f.setMinutes(u),f.setSeconds(d),f},gx=function(e,t,n){var r=e.toLocaleTimeString([],{hour:"numeric",minute:"2-digit",second:t?"2-digit":void 0,hour12:n});return n||"24"!==r.slice(0,2)||(r="00"+r.slice(2)),r};tN("@fluentui/date-time-utilities","8.6.9");var gC=function(e){var t=e.showWeekNumbers,n=e.strings,r=e.firstDayOfWeek,o=e.allFocusable,a=e.weeksToShow,s=e.weeks,l=e.classNames,c=n.shortDays.slice(),u=op(s[1],function(e){return 1===e.originalDate.getDate()});return 1===a&&u>=0&&(c[(u+r)%mH]=n.shortMonths[s[1][u].originalDate.getMonth()]),ts.createElement("tr",null,t&&ts.createElement("th",{className:l.dayCell}),c.map(function(e,t){var a=(t+r)%mH,s=n.days[a];return ts.createElement("th",{className:oG(l.dayCell,l.weekDayLabelCell),scope:"col",key:c[a]+" "+t,title:s,"aria-label":s,"data-is-focusable":!!o||void 0},c[a])}))},gk=function(e){var t,n=e.navigatedDate,r=e.dateTimeFormatter,o=e.allFocusable,a=e.strings,s=e.activeDescendantId,l=e.navigatedDayRef,c=e.calculateRoundedStyles,u=e.weeks,d=e.classNames,p=e.day,f=e.dayIndex,h=e.weekIndex,m=e.weekCorners,g=e.ariaHidden,v=e.customDayCellRef,y=e.dateRangeType,b=e.daysToSelectInDayView,x=e.onSelectDate,C=e.restrictedDates,k=e.minDate,w=e.maxDate,S=e.onNavigateDate,_=e.getDayInfosInRangeOfDay,E=e.getRefsFromDayInfos,P=null!=(t=null==m?void 0:m[h+"_"+f])?t:"",I=m5(n,p.originalDate),T=function(e,t){var n=void 0,r=1;if(e.which===r9?(n=mY(t,-1),r=-1):e.which===oe?n=mY(t,1):e.which===ok(r8)?(n=mX(t,-1),r=-1):e.which===ok(r7)&&(n=mX(t,1)),n){var o={initialDate:t,targetDate:n,direction:r,restrictedDates:C,minDate:k,maxDate:w},a=gp(o);a||(o.direction=-r,a=gp(o)),!(u&&a&&u.slice(1,u.length-1).some(function(e){return e.some(function(e){return m5(e.originalDate,a)})}))&&a&&(S(a,!0),e.preventDefault())}},D=function(e){var t=_(p),n=E(t);n.forEach(function(e,r){var o;if(e&&(e.classList.add("ms-CalendarDay-hoverStyle"),!t[r].isSelected&&y===es.Day&&b&&b>1)){e.classList.remove(d.bottomLeftCornerDate,d.bottomRightCornerDate,d.topLeftCornerDate,d.topRightCornerDate);var a=c(d,!1,!1,r>0,r<n.length-1).trim();a&&(o=e.classList).add.apply(o,a.split(" "))}})},A=function(e){E(_(p)).forEach(function(e){e&&e.classList.add("ms-CalendarDay-pressedStyle")})},R=function(e){E(_(p)).forEach(function(e){e&&e.classList.remove("ms-CalendarDay-pressedStyle")})},N=function(e){var t=_(p),n=E(t);n.forEach(function(e,r){var o;if(e&&(e.classList.remove("ms-CalendarDay-hoverStyle"),e.classList.remove("ms-CalendarDay-pressedStyle"),!t[r].isSelected&&y===es.Day&&b&&b>1)){var a=c(d,!1,!1,r>0,r<n.length-1).trim();a&&(o=e.classList).remove.apply(o,a.split(" "))}})},B=function(e){e.which===rQ?null==x||x(p.originalDate):T(e,p.originalDate)},M=p.originalDate.getDate()+", "+a.months[p.originalDate.getMonth()]+", "+p.originalDate.getFullYear();return p.isMarked&&(M=M+", "+a.dayMarkedAriaLabel),ts.createElement("td",{className:oG(d.dayCell,m&&P,p.isSelected&&d.daySelected,p.isSelected&&"ms-CalendarDay-daySelected",!p.isInBounds&&d.dayOutsideBounds,!p.isInMonth&&d.dayOutsideNavigatedMonth),ref:function(e){null==v||v(e,p.originalDate,d),p.setRef(e),I&&(l.current=e)},"aria-hidden":g,"aria-disabled":!g&&!p.isInBounds,onClick:p.isInBounds&&!g?p.onSelected:void 0,onMouseOver:g?void 0:D,onMouseDown:g?void 0:A,onMouseUp:g?void 0:R,onMouseOut:g?void 0:N,onKeyDown:g?void 0:B,role:"gridcell",tabIndex:I?0:void 0,"aria-current":p.isToday?"date":void 0,"aria-selected":p.isInBounds?p.isSelected:void 0,"data-is-focusable":!g&&(o||!!p.isInBounds||void 0)},ts.createElement("button",{key:p.key+"button","aria-hidden":g,className:oG(d.dayButton,p.isToday&&d.dayIsToday,p.isToday&&"ms-CalendarDay-dayIsToday"),"aria-label":M,id:I?s:void 0,disabled:!g&&!p.isInBounds,type:"button",tabIndex:-1,"data-is-focusable":"false"},ts.createElement("span",{"aria-hidden":"true"},r.formatDay(p.originalDate)),p.isMarked&&ts.createElement("div",{"aria-hidden":"true",className:d.dayMarker})))},gw=function(e){var t=e.classNames,n=e.week,r=e.weeks,o=e.weekIndex,a=e.rowClassName,s=e.ariaRole,l=e.showWeekNumbers,c=e.firstDayOfWeek,u=e.firstWeekOfYear,d=e.navigatedDate,p=e.strings,f=l?m8(r.length,c,u,d):null,h=f?p.weekNumberFormatString&&aY(p.weekNumberFormatString,f[o]):"";return ts.createElement("tr",{role:s,className:a,key:o+"_"+n[0].key},l&&f&&ts.createElement("th",{className:t.weekNumberCell,key:o,title:h,"aria-label":h,scope:"row"},ts.createElement("span",null,f[o])),n.map(function(t,n){return ts.createElement(gk,tf({},e,{key:t.key,day:t,dayIndex:n}))}))},gS=oI();function g_(){var e=ts.useRef({}),t=function(t){return function(n){null===n?delete e.current[t]:e.current[t]=n}};return[e,t]}function gE(e,t,n){return ts.useMemo(function(){for(var r,o=gg(e),a=o[1][0].originalDate,s=o[o.length-1][6].originalDate,l=(null==(r=e.getMarkedDays)?void 0:r.call(e,a,s))||[],c=[],u=0;u<o.length;u++){for(var d=[],p=function(e){var r=o[u][e],a=tf(tf({onSelected:function(){return t(r.originalDate)},setRef:n(r.key)},r),{isMarked:r.isMarked||(null==l?void 0:l.some(function(e){return m5(r.originalDate,e)}))});d.push(a)},f=0;f<mH;f++)p(f);c.push(d)}return c},[e])}function gP(e){var t=uX(e[0][0].originalDate);return t&&t.getTime()!==e[0][0].originalDate.getTime()?!(t<=e[0][0].originalDate):void 0}function gI(e){var t=function(e,t,n,r,o){var a=[],s=!t&&!r,l=!t&&!o,c=!n&&!r,u=!n&&!o;return s&&a.push(ox()?e.topRightCornerDate:e.topLeftCornerDate),l&&a.push(ox()?e.topLeftCornerDate:e.topRightCornerDate),c&&a.push(ox()?e.bottomRightCornerDate:e.bottomLeftCornerDate),u&&a.push(ox()?e.bottomLeftCornerDate:e.bottomRightCornerDate),a.join(" ")},n=function(e,t,n,r,o){var a=[];return t||a.push(e.datesAbove),n||a.push(e.datesBelow),r||a.push(ox()?e.datesRight:e.datesLeft),o||a.push(ox()?e.datesLeft:e.datesRight),a.join(" ")},r=function(t,n,r,o){var a=e.dateRangeType,s=e.firstDayOfWeek,l=e.workWeekDays,c=m3(t,a===es.WorkWeek?es.Week:a,s,l);return r===o&&(!!r&&!!o||c.filter(function(e){return e.getTime()===n.getTime()}).length>0)};return[function(e,o){var a={},s=o.slice(1,o.length-1);return s.forEach(function(o,l){o.forEach(function(o,c){var u=s[l-1]&&s[l-1][c]&&r(s[l-1][c].originalDate,o.originalDate,s[l-1][c].isSelected,o.isSelected),d=s[l+1]&&s[l+1][c]&&r(s[l+1][c].originalDate,o.originalDate,s[l+1][c].isSelected,o.isSelected),p=s[l][c-1]&&r(s[l][c-1].originalDate,o.originalDate,s[l][c-1].isSelected,o.isSelected),f=s[l][c+1]&&r(s[l][c+1].originalDate,o.originalDate,s[l][c+1].isSelected,o.isSelected),h=[];h.push(t(e,u,d,p,f)),h.push(n(e,u,d,p,f)),a[l+"_"+c]=h.join(" ")})}),a},t]}var gT=function(e){var t=ts.useRef(null),n=uq(),r=function(t){var n,r,o=e.firstDayOfWeek,a=e.minDate,s=e.maxDate,l=e.workWeekDays,c=e.daysToSelectInDayView,u={minDate:a,maxDate:s,restrictedDates:e.restrictedDates},d=m3(t,v,o,l,c);d=(d=gf(d,a,s)).filter(function(e){return!gd(e,u)}),null==(n=e.onSelectDate)||n.call(e,t,d),null==(r=e.onNavigateDate)||r.call(e,t,!0)},o=g_(),a=o[0],s=gE(e,r,o[1]),l=gP(s),c=gI(e),u=c[0],d=c[1];ts.useImperativeHandle(e.componentRef,function(){return{focus:function(){var e,n;null==(n=null==(e=t.current)?void 0:e.focus)||n.call(e)}}},[]);var p=function(t){var n=gD(e.dateRangeType,e.workWeekDays),r=m3(t.originalDate,n,e.firstDayOfWeek,e.workWeekDays,e.daysToSelectInDayView).map(function(e){return e.getTime()});return s.reduce(function(e,t){return e.concat(t.filter(function(e){return -1!==r.indexOf(e.originalDate.getTime())}))},[])},f=function(e){var t=[];return e.map(function(e){return a.current[e.key]})},h=e.styles,m=e.theme,g=e.className,v=e.dateRangeType,y=e.showWeekNumbers,b=e.labelledBy,x=e.lightenDaysOutsideNavigatedMonth,C=gS(h,{theme:m,className:g,dateRangeType:v,showWeekNumbers:y,lightenDaysOutsideNavigatedMonth:void 0===x||x,animationDirection:e.animationDirection,animateBackwards:l}),k=u(C,s),w={weeks:s,navigatedDayRef:t,calculateRoundedStyles:d,activeDescendantId:n,classNames:C,weekCorners:k,getDayInfosInRangeOfDay:p,getRefsFromDayInfos:f};return ts.createElement(fp,{className:C.wrapper,preventDefaultWhenHandled:!0},ts.createElement("table",{className:C.table,"aria-multiselectable":"false","aria-labelledby":b,"aria-activedescendant":n,role:"grid"},ts.createElement("tbody",null,ts.createElement(gC,tf({},e,{classNames:C,weeks:s})),ts.createElement(gw,tf({},e,w,{week:s[0],weekIndex:-1,rowClassName:C.firstTransitionWeek,ariaRole:"presentation",ariaHidden:!0})),s.slice(1,s.length-1).map(function(t,n){return ts.createElement(gw,tf({},e,w,{key:n,week:t,weekIndex:n,rowClassName:C.weekRow}))}),ts.createElement(gw,tf({},e,w,{week:s[s.length-1],weekIndex:-2,rowClassName:C.lastTransitionWeek,ariaRole:"presentation",ariaHidden:!0})))))};function gD(e,t){if(t&&e===es.WorkWeek){for(var n=t.slice().sort(),r=!0,o=1;o<n.length;o++)if(n[o]!==n[o-1]+1){r=!1;break}if(!r||0===t.length)return es.Week}return e}gT.displayName="CalendarDayGridBase",function(e){e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical"}(el||(el={}));var gA={hoverStyle:"ms-CalendarDay-hoverStyle",pressedStyle:"ms-CalendarDay-pressedStyle",dayIsTodayStyle:"ms-CalendarDay-dayIsToday",daySelectedStyle:"ms-CalendarDay-daySelected"},gR=n_({"100%":{width:0,height:0,overflow:"hidden"},"99.9%":{width:"100%",height:28,overflow:"visible"},"0%":{width:"100%",height:28,overflow:"visible"}}),gN=a1(gT,function(e){var t,n,r,o,a,s,l,c,u,d,p=e.theme,f=e.dateRangeType,h=e.showWeekNumbers,m=e.lightenDaysOutsideNavigatedMonth,g=e.animateBackwards,v=e.animationDirection,y=p.palette,b=l0(gA,p),x={};void 0!==g&&(x=v===el.Horizontal?g?ll.slideRightIn20:ll.slideLeftIn20:g?ll.slideDownIn20:ll.slideUpIn20);var C={},k={};void 0!==g&&v!==el.Horizontal&&(C=g?{animationName:""}:ll.slideUpOut20,k=g?ll.slideDownOut20:{animationName:""});var w={selectors:{"&, &:disabled, & button":{color:y.neutralTertiaryAlt,pointerEvents:"none"}}};return{wrapper:{paddingBottom:10},table:[{textAlign:"center",borderCollapse:"collapse",borderSpacing:"0",tableLayout:"fixed",fontSize:"inherit",marginTop:4,width:196,position:"relative",paddingBottom:10},h&&{width:226}],dayCell:[lO(p,{inset:-3}),{margin:0,padding:0,width:28,height:28,lineHeight:28,fontSize:E.small,fontWeight:P.regular,color:y.neutralPrimary,cursor:"pointer",position:"relative",selectors:((t={})[l_]=tf({color:"WindowText",backgroundColor:"transparent",zIndex:0},lF()),t["&."+b.hoverStyle]={backgroundColor:y.neutralLighter,selectors:((n={})[l_]={zIndex:3,backgroundColor:"Window",outline:"1px solid Highlight"},n)},t["&."+b.pressedStyle]={backgroundColor:y.neutralLight,selectors:((r={})[l_]={borderColor:"Highlight",color:"Highlight",backgroundColor:"Window"},r)},t["&."+b.pressedStyle+"."+b.hoverStyle]={selectors:((o={})[l_]={backgroundColor:"Window",outline:"1px solid Highlight"},o)},t)}],daySelected:[f!==es.Month&&{backgroundColor:y.neutralLight+"!important",selectors:((a={"&::before":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0}})["&:hover, &."+b.hoverStyle+", &."+b.pressedStyle]=((s={backgroundColor:y.neutralLight+"!important"})[l_]={color:"HighlightText!important",background:"Highlight!important"},s),a[l_]=tf({background:"Highlight!important",color:"HighlightText!important",borderColor:"Highlight!important"},lF()),a)}],weekRow:x,weekDayLabelCell:ll.fadeIn200,weekNumberCell:{margin:0,padding:0,borderRight:"1px solid",borderColor:y.neutralLight,backgroundColor:y.neutralLighterAlt,color:y.neutralSecondary,boxSizing:"border-box",width:28,height:28,fontWeight:P.regular,fontSize:E.small},dayOutsideBounds:w,dayOutsideNavigatedMonth:m&&{color:y.neutralSecondary,fontWeight:P.regular},dayButton:{width:24,height:24,lineHeight:24,fontSize:E.small,fontWeight:"inherit",borderRadius:2,border:"none",padding:0,color:"inherit",backgroundColor:"transparent",cursor:"pointer",overflow:"visible",selectors:{span:{height:"inherit",lineHeight:"inherit"}}},dayIsToday:{backgroundColor:y.themePrimary+"!important",borderRadius:"100%",color:y.white+"!important",fontWeight:P.semibold+"!important",selectors:((l={})[l_]=tf({background:"WindowText!important",color:"Window!important",borderColor:"WindowText!important"},lF()),l)},firstTransitionWeek:tf(tf({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden"},C),{animationName:C.animationName+","+gR}),lastTransitionWeek:tf(tf({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden",marginTop:-28},k),{animationName:k.animationName+","+gR}),dayMarker:{width:4,height:4,backgroundColor:y.neutralSecondary,borderRadius:"100%",bottom:1,left:0,right:0,position:"absolute",margin:"auto",selectors:((c={})["."+b.dayIsTodayStyle+" &"]={backgroundColor:y.white,selectors:((u={})[l_]={backgroundColor:"Window"},u)},c["."+b.daySelectedStyle+" &"]={selectors:((d={})[l_]={backgroundColor:"HighlightText"},d)},c[l_]=tf({backgroundColor:"WindowText"},lF()),c)},topRightCornerDate:{borderTopRightRadius:"2px"},topLeftCornerDate:{borderTopLeftRadius:"2px"},bottomRightCornerDate:{borderBottomRightRadius:"2px"},bottomLeftCornerDate:{borderBottomLeftRadius:"2px"},datesAbove:{"&::before":{borderTop:"1px solid ".concat(y.neutralSecondary)}},datesBelow:{"&::before":{borderBottom:"1px solid ".concat(y.neutralSecondary)}},datesLeft:{"&::before":{borderLeft:"1px solid ".concat(y.neutralSecondary)}},datesRight:{"&::before":{borderRight:"1px solid ".concat(y.neutralSecondary)}}}},void 0,{scope:"CalendarDayGrid"}),gB=oI(),gM=function(e){var t=ts.useRef(null);ts.useImperativeHandle(e.componentRef,function(){return{focus:function(){var e,n;null==(n=null==(e=t.current)?void 0:e.focus)||n.call(e)}}},[]);var n=e.strings,r=e.navigatedDate,o=e.dateTimeFormatter,a=e.styles,s=e.theme,l=e.className,c=e.onHeaderSelect,u=e.showSixWeeksByDefault,d=e.minDate,p=e.maxDate,f=e.restrictedDates,h=e.onNavigateDate,m=e.showWeekNumbers,g=e.dateRangeType,v=e.animationDirection,y=uq(),b=gB(a,{theme:s,className:l,headerIsClickable:!!c,showWeekNumbers:m,animationDirection:v}),x=o.formatMonthYear(r,n),C=c?"button":"div",k=n.yearPickerHeaderAriaLabel?aY(n.yearPickerHeaderAriaLabel,x):x;return ts.createElement("div",{className:b.root},ts.createElement("div",{className:b.header},ts.createElement(C,{"aria-label":c?k:void 0,className:b.monthAndYear,onClick:c,"data-is-focusable":!!c,tabIndex:c?0:-1,onKeyDown:gO(c),type:"button"},ts.createElement("span",{id:y,"aria-live":"polite","aria-atomic":"true"},x)),ts.createElement(gF,tf({},e,{classNames:b}))),ts.createElement(gN,tf({},e,{styles:a,componentRef:t,strings:n,navigatedDate:r,weeksToShow:u?6:void 0,dateTimeFormatter:o,minDate:d,maxDate:p,restrictedDates:f,onNavigateDate:h,labelledBy:y,dateRangeType:g})))};gM.displayName="CalendarDayBase";var gF=function(e){var t,n,r=e.minDate,o=e.maxDate,a=e.navigatedDate,s=e.allFocusable,l=e.strings,c=e.navigationIcons,u=e.showCloseButton,d=e.classNames,p=e.onNavigateDate,f=e.onDismiss,h=function(){p(m$(a,1),!1)},m=function(){p(m$(a,-1),!1)},g=c.leftNavigation,v=c.rightNavigation,y=c.closeIcon,b=!r||0>m4(r,mJ(a)),x=!o||0>m4(mZ(a),o);return ts.createElement("div",{className:d.monthComponents},ts.createElement("button",{className:oG(d.headerIconButton,((t={})[d.disabledStyle]=!b,t)),tabIndex:b?void 0:s?0:-1,"aria-disabled":!b,onClick:b?m:void 0,onKeyDown:b?gO(m):void 0,title:l.prevMonthAriaLabel?l.prevMonthAriaLabel+" "+l.months[m$(a,-1).getMonth()]:void 0,type:"button"},ts.createElement(pf,{iconName:g})),ts.createElement("button",{className:oG(d.headerIconButton,((n={})[d.disabledStyle]=!x,n)),tabIndex:x?void 0:s?0:-1,"aria-disabled":!x,onClick:x?h:void 0,onKeyDown:x?gO(h):void 0,title:l.nextMonthAriaLabel?l.nextMonthAriaLabel+" "+l.months[m$(a,1).getMonth()]:void 0,type:"button"},ts.createElement(pf,{iconName:v})),u&&ts.createElement("button",{className:oG(d.headerIconButton),onClick:f,onKeyDown:gO(f),title:l.closeButtonAriaLabel,type:"button"},ts.createElement(pf,{iconName:y})))};gF.displayName="CalendarDayNavigationButtons";var gO=function(e){return function(t){t.which===rQ&&(null==e||e())}},gL=a1(gM,function(e){var t,n=e.className,r=e.theme,o=e.headerIsClickable,a=e.showWeekNumbers,s=r.palette,l={selectors:((t={"&, &:disabled, & button":{color:s.neutralTertiaryAlt,pointerEvents:"none"}})[l_]={color:"GrayText",forcedColorAdjust:"none"},t)};return{root:[cv,{width:196,padding:12,boxSizing:"content-box"},a&&{width:226},n],header:{position:"relative",display:"inline-flex",height:28,lineHeight:44,width:"100%"},monthAndYear:[lO(r,{inset:1}),tf(tf({},ll.fadeIn200),{alignItems:"center",fontSize:E.medium,fontFamily:"inherit",color:s.neutralPrimary,display:"inline-block",flexGrow:1,fontWeight:P.semibold,padding:"0 4px 0 10px",border:"none",backgroundColor:"transparent",borderRadius:2,lineHeight:28,overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"}),o&&{selectors:{"&:hover":{cursor:"pointer",background:s.neutralLight,color:s.black}}}],monthComponents:{display:"inline-flex",alignSelf:"flex-end"},headerIconButton:[lO(r,{inset:-1}),{width:28,height:28,display:"block",textAlign:"center",lineHeight:28,fontSize:E.small,fontFamily:"inherit",color:s.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:s.neutralDark,backgroundColor:s.neutralLight,cursor:"pointer",outline:"1px solid transparent"}}}],disabledStyle:l}},void 0,{scope:"CalendarDay"}),gH=function(e){var t,n,r,o,a,s,l,c=e.className,u=e.theme,d=e.hasHeaderClickCallback,p=e.highlightCurrent,f=e.highlightSelected,h=e.animateBackwards,m=e.animationDirection,g=u.palette,v={};void 0!==h&&(v=m===el.Horizontal?h?ll.slideRightIn20:ll.slideLeftIn20:h?ll.slideDownIn20:ll.slideUpIn20);var y=void 0!==h?ll.fadeIn200:{};return{root:[cv,{width:196,padding:12,boxSizing:"content-box",overflow:"hidden"},c],headerContainer:{display:"flex"},currentItemButton:[lO(u,{inset:-1}),tf(tf({},y),{fontSize:E.medium,fontWeight:P.semibold,fontFamily:"inherit",textAlign:"left",color:"inherit",backgroundColor:"transparent",flexGrow:1,padding:"0 4px 0 10px",border:"none",overflow:"visible"}),d&&{selectors:{"&:hover, &:active":{cursor:d?"pointer":"default",color:g.neutralDark,outline:"1px solid transparent",backgroundColor:g.neutralLight}}}],navigationButtonsContainer:{display:"flex",alignItems:"center"},navigationButton:[lO(u,{inset:-1}),{fontFamily:"inherit",width:28,minWidth:28,height:28,minHeight:28,display:"block",textAlign:"center",lineHeight:28,fontSize:E.small,color:g.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:g.neutralDark,cursor:"pointer",outline:"1px solid transparent",backgroundColor:g.neutralLight}}}],gridContainer:{marginTop:4},buttonRow:tf(tf({},v),{marginBottom:16,selectors:{"&:nth-child(n + 3)":{marginBottom:0}}}),itemButton:[lO(u,{inset:-1}),{width:40,height:40,minWidth:40,minHeight:40,lineHeight:40,fontSize:E.small,fontFamily:"inherit",padding:0,margin:"0 12px 0 0",color:g.neutralPrimary,backgroundColor:"transparent",border:"none",borderRadius:2,overflow:"visible",selectors:{"&:nth-child(4n + 4)":{marginRight:0},"&:nth-child(n + 9)":{marginBottom:0},"& div":{fontWeight:P.regular},"&:hover":{color:g.neutralDark,backgroundColor:g.neutralLight,cursor:"pointer",outline:"1px solid transparent",selectors:((t={})[l_]=tf({background:"Window",color:"WindowText",outline:"1px solid Highlight"},lF()),t)},"&:active":{backgroundColor:g.themeLight,selectors:((n={})[l_]=tf({background:"Window",color:"Highlight"},lF()),n)}}}],current:p?{color:g.white,backgroundColor:g.themePrimary,selectors:((r={"& div":{fontWeight:P.semibold},"&:hover":{backgroundColor:g.themePrimary,selectors:((o={})[l_]=tf({backgroundColor:"WindowText",color:"Window"},lF()),o)}})[l_]=tf({backgroundColor:"WindowText",color:"Window"},lF()),r)}:{},selected:f?{color:g.neutralPrimary,backgroundColor:g.themeLight,fontWeight:P.semibold,selectors:((a={"& div":{fontWeight:P.semibold},"&:hover, &:active":{backgroundColor:g.themeLight,selectors:((s={})[l_]=tf({color:"Window",background:"Highlight"},lF()),s)}})[l_]=tf({background:"Highlight",color:"Window"},lF()),a)}:{},disabled:{selectors:((l={"&, &:disabled, & button":{color:g.neutralTertiaryAlt,pointerEvents:"none"}})[l_]={color:"GrayText",forcedColorAdjust:"none"},l)}}},gz=function(e){return gH(e)},gV=function(e){return gH(e)},gU=gl,gj={leftNavigation:"Up",rightNavigation:"Down",closeIcon:"CalculatorMultiply"},gW=oI(),gq=12,gG=4,gK={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0},gX=function(e){var t,n,r=e.styles,o=e.theme,a=e.className,s=e.highlightCurrentYear,l=e.highlightSelectedYear,c=e.year,u=e.selected,d=e.disabled,p=e.componentRef,f=e.onSelectYear,h=e.onRenderYear,m=ts.useRef(null);ts.useImperativeHandle(p,function(){return{focus:function(){var e,t;null==(t=null==(e=m.current)?void 0:e.focus)||t.call(e)}}},[]);var g=function(){null==f||f(c)},v=function(e){e.which===rQ&&(null==f||f(c))},y=gW(r,{theme:o,className:a,highlightCurrent:s,highlightSelected:l});return ts.createElement("button",{className:oG(y.itemButton,((t={})[y.selected]=u,t[y.disabled]=d,t)),type:"button",role:"gridcell",onClick:d?void 0:g,onKeyDown:d?void 0:v,disabled:d,"aria-selected":u,ref:m},null!=(n=null==h?void 0:h(c))?n:c)};gX.displayName="CalendarYearGridCell";var gY=function(e){var t=e.styles,n=e.theme,r=e.className,o=e.fromYear,a=e.toYear,s=e.animationDirection,l=e.animateBackwards,c=e.minYear,u=e.maxYear,d=e.onSelectYear,p=e.selectedYear,f=e.componentRef,h=ts.useRef(null),m=ts.useRef(null);ts.useImperativeHandle(f,function(){return{focus:function(){var e,t;null==(t=null==(e=h.current||m.current)?void 0:e.focus)||t.call(e)}}},[]);for(var g=function(t){var r=t===p,o=void 0!==c&&t<c||void 0!==u&&t>u,a=t===new Date().getFullYear();return ts.createElement(gX,tf({},e,{key:t,year:t,selected:r,current:a,disabled:o,onSelectYear:d,componentRef:r?h:a?m:void 0,theme:n}))},v=gW(t,{theme:n,className:r,animateBackwards:l,animationDirection:s}),y=function(t){var n,r;return null!=(r=null==(n=e.onRenderYear)?void 0:n.call(e,t))?r:t},b="".concat(y(o)," - ").concat(y(a)),x=o,C=[],k=0;k<(a-o+1)/gG;k++){C.push([]);for(var w=0;w<gG;w++)C[k].push(g(x)),x++}return ts.createElement(fp,null,ts.createElement("div",{className:v.gridContainer,role:"grid","aria-label":b},C.map(function(e,t){return ts.createElement.apply(ts,tg(["div",{key:"yearPickerRow_"+t+"_"+o,role:"row",className:v.buttonRow}],e,!1))})))};gY.displayName="CalendarYearGrid",function(e){e[e.Previous=0]="Previous",e[e.Next=1]="Next"}(ec||(ec={}));var g$=function(e){var t,n=e.styles,r=e.theme,o=e.className,a=e.navigationIcons,s=void 0===a?gj:a,l=e.strings,c=void 0===l?gK:l,u=e.direction,d=e.onSelectPrev,p=e.onSelectNext,f=e.fromYear,h=e.toYear,m=e.maxYear,g=e.minYear,v=gW(n,{theme:r,className:o}),y=u===ec.Previous?c.prevRangeAriaLabel:c.nextRangeAriaLabel,b=u===ec.Previous?-gq:gq,x={fromYear:f+b,toYear:h+b},C=y?"string"==typeof y?y:y(x):void 0,k=u===ec.Previous?void 0!==g&&f<g:void 0!==m&&e.fromYear+gq>m,w=function(){u===ec.Previous?null==d||d():null==p||p()},S=function(e){e.which===rQ&&w()},_=ox()?u===ec.Next:u===ec.Previous;return ts.createElement("button",{className:oG(v.navigationButton,((t={})[v.disabled]=k,t)),onClick:k?void 0:w,onKeyDown:k?void 0:S,type:"button",title:C,disabled:k},ts.createElement(pf,{iconName:_?s.leftNavigation:s.rightNavigation}))};g$.displayName="CalendarYearNavArrow";var gQ=function(e){var t=gW(e.styles,{theme:e.theme,className:e.className});return ts.createElement("div",{className:t.navigationButtonsContainer},ts.createElement(g$,tf({},e,{direction:ec.Previous})),ts.createElement(g$,tf({},e,{direction:ec.Next})))};gQ.displayName="CalendarYearNav";var gJ=function(e){var t=e.styles,n=e.theme,r=e.className,o=e.fromYear,a=e.toYear,s=e.strings,l=void 0===s?gK:s,c=e.animateBackwards,u=e.animationDirection,d=function(){var t;null==(t=e.onHeaderSelect)||t.call(e,!0)},p=function(e){(e.which===rQ||e.which===r2)&&d()},f=function(t){var n,r;return null!=(r=null==(n=e.onRenderYear)?void 0:n.call(e,t))?r:t},h=gW(t,{theme:n,className:r,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:c,animationDirection:u});if(e.onHeaderSelect){var m=l.rangeAriaLabel,g=l.headerAriaLabelFormatString,v=m?"string"==typeof m?m:m(e):void 0,y=g?aY(g,v):v;return ts.createElement("button",{className:h.currentItemButton,onClick:d,onKeyDown:p,"aria-label":y,role:"button",type:"button"},ts.createElement("span",{"aria-live":"assertive","aria-atomic":"true"},f(o)," - ",f(a)))}return ts.createElement("div",{className:h.current},f(o)," - ",f(a))};gJ.displayName="CalendarYearTitle";var gZ=function(e){var t,n=e.styles,r=e.theme,o=e.className,a=e.animateBackwards,s=e.animationDirection,l=e.onRenderTitle,c=gW(n,{theme:r,className:o,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:a,animationDirection:s});return ts.createElement("div",{className:c.headerContainer},null!=(t=null==l?void 0:l(e))?t:ts.createElement(gJ,tf({},e)),ts.createElement(gQ,tf({},e)))};function g0(e){var t=e.selectedYear,n=e.navigatedYear,r=10*Math.floor((t||n||new Date().getFullYear())/10),o=uX(r);return o&&o!==r?o>r:void 0}function g1(e){var t=e.selectedYear,n=e.navigatedYear,r=ts.useMemo(function(){return t||n||10*Math.floor(new Date().getFullYear()/10)},[n,t]),o=ts.useState(r),a=o[0],s=o[1],l=function(){s(function(e){return e+gq})},c=function(){s(function(e){return e-gq})};ts.useEffect(function(){s(r)},[r]);var u=a+gq-1;return[a,u,l,c]}gZ.displayName="CalendarYearHeader";var g2=function(e){var t=g0(e),n=g1(e),r=n[0],o=n[1],a=n[2],s=n[3],l=ts.useRef(null);ts.useImperativeHandle(e.componentRef,function(){return{focus:function(){var e,t;null==(t=null==(e=l.current)?void 0:e.focus)||t.call(e)}}});var c=gW(e.styles,{theme:e.theme,className:e.className});return ts.createElement("div",{className:c.root},ts.createElement(gZ,tf({},e,{fromYear:r,toYear:o,onSelectPrev:s,onSelectNext:a,animateBackwards:t})),ts.createElement(gY,tf({},e,{fromYear:r,toYear:o,animateBackwards:t,componentRef:l})))};g2.displayName="CalendarYearBase";var g5=a1(g2,gV,void 0,{scope:"CalendarYear"}),g4=4,g3=oI(),g6={styles:gz,strings:void 0,navigationIcons:gj,dateTimeFormatter:gs,yearPickerHidden:!1};function g8(e){var t=e.navigatedDate.getFullYear(),n=uX(t);if(void 0!==n&&n!==t)return n>t}function g9(e){var t=e.componentRef,n=ts.useRef(null),r=ts.useRef(null),o=ts.useRef(!1),a=ts.useCallback(function(){r.current?r.current.focus():n.current&&n.current.focus()},[]);return ts.useImperativeHandle(t,function(){return{focus:a}},[a]),ts.useEffect(function(){o.current&&(a(),o.current=!1)}),[n,r,function(){o.current=!0}]}var g7=function(e){var t,n,r=a4(g6,e),o=g9(r),a=o[0],s=o[1],l=o[2],c=ts.useState(!1),u=c[0],d=c[1],p=g8(r),f=r.navigatedDate,h=r.selectedDate,m=r.strings,g=r.today,v=void 0===g?new Date:g,y=r.navigationIcons,b=r.dateTimeFormatter,x=r.minDate,C=r.maxDate,k=r.theme,w=r.styles,S=r.className,_=r.allFocusable,E=r.highlightCurrentMonth,P=r.highlightSelectedMonth,I=r.animationDirection,T=r.yearPickerHidden,D=r.onNavigateDate,A=function(e){return function(){return B(e)}},R=function(){D(mQ(f,1),!1)},N=function(){D(mQ(f,-1),!1)},B=function(e){var t;null==(t=r.onHeaderSelect)||t.call(r),D(m2(f,e),!0)},M=function(){var e;T?null==(e=r.onHeaderSelect)||e.call(r):(l(),d(!0))},F=function(e){if(l(),f.getFullYear()!==e){var t=new Date(f.getTime());t.setFullYear(e),C&&t>C?t=m2(t,C.getMonth()):x&&t<x&&(t=m2(t,x.getMonth())),D(t,!0)}d(!1)},O=function(e){l(),d(!1)},L=y.leftNavigation,H=y.rightNavigation,z=b,V=!x||0>m4(x,m0(f)),U=!C||0>m4(m1(f),C),j=g3(w,{theme:k,className:S,hasHeaderClickCallback:!!r.onHeaderSelect||!T,highlightCurrent:E,highlightSelected:P,animateBackwards:p,animationDirection:I});if(u){var W=ve(r),q=W[0],G=W[1];return ts.createElement(g5,{key:"calendarYear",minYear:x?x.getFullYear():void 0,maxYear:C?C.getFullYear():void 0,onSelectYear:F,navigationIcons:y,onHeaderSelect:O,selectedYear:h?h.getFullYear():f?f.getFullYear():void 0,navigatedYear:f.getFullYear(),onRenderYear:q,strings:G,componentRef:s,styles:w,highlightCurrentYear:E,highlightSelectedYear:P,animationDirection:I})}for(var K=[],X=0;X<m.shortMonths.length/g4;X++)K.push(X);var Y=z.formatYear(f),Q=m.monthPickerHeaderAriaLabel?aY(m.monthPickerHeaderAriaLabel,Y):Y;return ts.createElement("div",{className:j.root},ts.createElement("div",{className:j.headerContainer},ts.createElement("button",{className:j.currentItemButton,onClick:M,onKeyDown:vn(M),"aria-label":Q,"data-is-focusable":!!r.onHeaderSelect||!T,tabIndex:r.onHeaderSelect||!T?0:-1,type:"button"},ts.createElement("span",{"aria-live":"polite","aria-atomic":"true"},Y)),ts.createElement("div",{className:j.navigationButtonsContainer},ts.createElement("button",{className:oG(j.navigationButton,((t={})[j.disabled]=!V,t)),"aria-disabled":!V,tabIndex:V?void 0:_?0:-1,onClick:V?N:void 0,onKeyDown:V?vn(N):void 0,title:m.prevYearAriaLabel?m.prevYearAriaLabel+" "+z.formatYear(mQ(f,-1)):void 0,type:"button"},ts.createElement(pf,{iconName:ox()?H:L})),ts.createElement("button",{className:oG(j.navigationButton,((n={})[j.disabled]=!U,n)),"aria-disabled":!U,tabIndex:U?void 0:_?0:-1,onClick:U?R:void 0,onKeyDown:U?vn(R):void 0,title:m.nextYearAriaLabel?m.nextYearAriaLabel+" "+z.formatYear(mQ(f,1)):void 0,type:"button"},ts.createElement(pf,{iconName:ox()?L:H})))),ts.createElement(fp,null,ts.createElement("div",{className:j.gridContainer,role:"grid","aria-label":Y},K.map(function(e){var t=m.shortMonths.slice(e*g4,(e+1)*g4);return ts.createElement("div",{key:"monthRow_"+e+f.getFullYear(),role:"row",className:j.buttonRow},t.map(function(t,n){var r,o=e*g4+n,s=m2(f,o),l=f.getMonth()===o,c=h.getMonth()===o,u=h.getFullYear()===f.getFullYear(),d=(!x||1>m4(x,mZ(s)))&&(!C||1>m4(mJ(s),C));return ts.createElement("button",{ref:l?a:void 0,role:"gridcell",className:oG(j.itemButton,((r={})[j.current]=E&&vt(o,f.getFullYear(),v),r[j.selected]=P&&c&&u,r[j.disabled]=!d,r)),disabled:!_&&!d,key:o,onClick:d?A(o):void 0,onKeyDown:d?vn(A(o)):void 0,"aria-label":z.formatMonth(s,m),"aria-selected":l,"data-is-focusable":!!d||void 0,type:"button"},t)}))}))))};function ve(e){var t=e.strings,n=e.navigatedDate,r=e.dateTimeFormatter,o=function(e){if(r){var t=new Date(n.getTime());return t.setFullYear(e),r.formatYear(t)}return String(e)},a=function(e){return"".concat(o(e.fromYear)," - ").concat(o(e.toYear))},s=function(e){return t.nextYearRangeAriaLabel?"".concat(t.nextYearRangeAriaLabel," ").concat(a(e)):""},l=function(e){return t.prevYearRangeAriaLabel?"".concat(t.prevYearRangeAriaLabel," ").concat(a(e)):""};return[o,{rangeAriaLabel:a,prevRangeAriaLabel:l,nextRangeAriaLabel:s,headerAriaLabelFormatString:t.yearPickerHeaderAriaLabel}]}function vt(e,t,n){return n.getFullYear()===t&&n.getMonth()===e}function vn(e){return function(t){t.which===rQ&&e()}}g7.displayName="CalendarMonthBase";var vr=a1(g7,gz,void 0,{scope:"CalendarMonth"}),vo=440,vi=oI(),va=[eo.Monday,eo.Tuesday,eo.Wednesday,eo.Thursday,eo.Friday],vs={isMonthPickerVisible:!0,isDayPickerVisible:!0,showMonthPickerAsOverlay:!1,today:new Date,firstDayOfWeek:eo.Sunday,dateRangeType:es.Day,showGoToToday:!0,strings:gl,highlightCurrentMonth:!1,highlightSelectedMonth:!1,navigationIcons:gj,showWeekNumbers:!1,firstWeekOfYear:ea.FirstDay,dateTimeFormatter:gs,showSixWeeksByDefault:!1,workWeekDays:va,showCloseButton:!1,allFocusable:!1};function vl(e){var t=e.value,n=e.today,r=e.onSelectDate,o=ts.useMemo(function(){return void 0===n?new Date:n},[n]),a=uj(t,o),s=a[0],l=void 0===s?o:s,c=a[1],u=ts.useState(t),d=u[0],p=void 0===d?o:d,f=u[1],h=ts.useState(t),m=h[0],g=void 0===m?o:m,v=h[1],y=ts.useState(t),b=y[0],x=void 0===b?o:b,C=y[1];return t&&x.valueOf()!==t.valueOf()&&(f(t),v(t),C(t)),[l,p,g,function(e,t){v(e),f(e),c(e),null==r||r(e,t)},function(e){v(e),f(e)},function(e){v(e)}]}function vc(e){var t=uj(vp(e)?void 0:e.isMonthPickerVisible,!1),n=t[0],r=void 0===n||n,o=t[1],a=uj(vp(e)?void 0:e.isDayPickerVisible,!0),s=a[0],l=void 0===s||s,c=a[1],u=function(){o(!r),c(!l)};return[r,l,u]}function vu(e,t,n){var r=e.componentRef,o=ts.useRef(null),a=ts.useRef(null),s=ts.useRef(!1),l=ts.useCallback(function(){t&&o.current?ra(o.current):n&&a.current&&ra(a.current)},[t,n]);return ts.useImperativeHandle(r,function(){return{focus:l}},[l]),ts.useEffect(function(){s.current&&(l(),s.current=!1)}),[o,a,function(){s.current=!0}]}var vd=ts.forwardRef(function(e,t){var n=a4(vs,e),r=vl(n),o=r[0],a=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=vc(n),p=d[0],f=d[1],h=d[2],m=vu(n,f,p),g=m[0],v=m[1],y=m[2],b=function(){var e=D;return e&&X&&(e=a.getFullYear()!==X.getFullYear()||a.getMonth()!==X.getMonth()||s.getFullYear()!==X.getFullYear()||s.getMonth()!==X.getMonth()),D&&ts.createElement("button",{className:oG("js-goToday",Z.goTodayButton),onClick:w,onKeyDown:S(w),type:"button",disabled:!e},T.goToToday)},x=function(e,t){c(e),t&&y()},C=function(e,t){(t&&y(),t)?(Q&&l(e),c(e)):u(e)},k=vp(n)?function(){h(),y()}:void 0,w=function(){c(X),y()},S=function(e){return function(t){switch(t.which){case rQ:case r2:e()}}},_=function(e){var t;switch(e.which){case rQ:case rY:e.preventDefault();break;case r1:null==(t=n.onDismiss)||t.call(n);break;case r5:e.ctrlKey?c(mQ(a,1)):c(m$(a,1)),e.preventDefault();break;case r4:e.ctrlKey?c(mQ(a,-1)):c(m$(a,-1)),e.preventDefault()}},E="ms-DatePicker",P=n.firstDayOfWeek,I=n.dateRangeType,T=n.strings,D=n.showGoToToday,A=n.highlightCurrentMonth,R=n.highlightSelectedMonth,N=n.navigationIcons,B=n.minDate,M=n.maxDate,F=n.restrictedDates,O=n.id,L=n.className,H=n.showCloseButton,z=n.allFocusable,V=n.styles,U=n.showWeekNumbers,j=n.theme,W=n.calendarDayProps,q=n.calendarMonthProps,G=n.dateTimeFormatter,K=n.today,X=void 0===K?new Date:K,Y=vp(n),Q=!Y&&!f,J=Y&&D,Z=vi(V,{theme:j,className:L,isMonthPickerVisible:p,isDayPickerVisible:f,monthPickerOnly:Q,showMonthPickerAsOverlay:Y,overlaidWithButton:J,overlayedWithButton:J,showGoToToday:D,showWeekNumbers:U}),ee="",et="";if(G&&T.todayDateFormatString&&(ee=aY(T.todayDateFormatString,G.formatMonthDayYear(X,T))),G&&T.selectedDateFormatString){var en=Q?G.formatMonthYear:G.formatMonthDayYear;et=aY(T.selectedDateFormatString,en(o,T))}var er=et+", "+ee;return ts.createElement("div",{id:O,ref:t,role:"group","aria-label":er,className:oG(E,Z.root,L,"ms-slideDownIn10"),onKeyDown:_},ts.createElement("div",{className:Z.liveRegion,"aria-live":"polite","aria-atomic":"true"},ts.createElement("span",null,et)),f&&ts.createElement(gL,tf({selectedDate:o,navigatedDate:a,today:n.today,onSelectDate:l,onNavigateDate:x,onDismiss:n.onDismiss,firstDayOfWeek:P,dateRangeType:I,strings:T,onHeaderSelect:k,navigationIcons:N,showWeekNumbers:n.showWeekNumbers,firstWeekOfYear:n.firstWeekOfYear,dateTimeFormatter:n.dateTimeFormatter,showSixWeeksByDefault:n.showSixWeeksByDefault,minDate:B,maxDate:M,restrictedDates:F,workWeekDays:n.workWeekDays,componentRef:g,showCloseButton:H,allFocusable:z},W)),f&&p&&ts.createElement("div",{className:Z.divider}),p?ts.createElement("div",{className:Z.monthPickerWrapper},ts.createElement(vr,tf({navigatedDate:s,selectedDate:a,strings:T,onNavigateDate:C,today:n.today,highlightCurrentMonth:A,highlightSelectedMonth:R,onHeaderSelect:k,navigationIcons:N,dateTimeFormatter:n.dateTimeFormatter,minDate:B,maxDate:M,componentRef:v},q)),b()):b(),ts.createElement(ac,null))});function vp(e){var t=e.showMonthPickerAsOverlay,n=e.isDayPickerVisible,r=nM();return t||n&&r&&r.innerWidth<=vo}vd.displayName="CalendarBase";var vf=a1(vd,function(e){var t,n=e.className,r=e.theme,o=e.isDayPickerVisible,a=e.isMonthPickerVisible,s=e.showWeekNumbers,l=r.palette,c=o&&a?440:220;return s&&o&&(c+=30),{root:[cv,{display:"flex",width:c},!a&&{flexDirection:"column"},n],divider:{top:0,borderRight:"1px solid",borderColor:l.neutralLight},monthPickerWrapper:[{display:"flex",flexDirection:"column"}],goTodayButton:[lO(r,{inset:-1}),{bottom:0,color:l.neutralPrimary,height:30,lineHeight:30,backgroundColor:"transparent",border:"none",boxSizing:"content-box",padding:"0 4px",alignSelf:"flex-end",marginRight:16,marginTop:3,fontSize:E.small,fontFamily:"inherit",overflow:"visible",selectors:{"& div":{fontSize:E.small},"&:hover":{color:l.themePrimary,backgroundColor:"transparent",cursor:"pointer",selectors:((t={})[l_]={outline:"1px solid Buttontext",borderRadius:"2px"},t)},"&:active":{color:l.themeDark},"&:disabled":{color:l.neutralTertiaryAlt,pointerEvents:"none"}}}],liveRegion:{border:0,height:"1px",margin:"-1px",overflow:"hidden",padding:0,width:"1px",position:"absolute"}}},void 0,{scope:"Calendar"}),vh=oI(),vm=ts.forwardRef(function(e,t){var n=e.checked,r=void 0!==n&&n,o=e.className,a=e.theme,s=e.styles,l=e.useFastIcons,c=void 0===l||l,u=vh(s,{theme:a,className:o,checked:r}),d=c?pd:pf;return ts.createElement("div",{className:u.root,ref:t},ts.createElement(d,{iconName:"CircleRing",className:u.circle}),ts.createElement(d,{iconName:"StatusCircleCheckmark",className:u.check}))});vm.displayName="CheckBase";var vg={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},vv=a1(vm,function(e){var t,n,r,o,a,s=e.height,l=void 0===s?e.checkBoxHeight||"18px":s,c=e.checked,u=e.className,d=e.theme,p=d.palette,f=d.semanticColors,h=d.fonts,m=ox(d),g=l0(vg,d),v={fontSize:l,position:"absolute",left:0,top:0,width:l,height:l,textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"};return{root:[g.root,h.medium,{lineHeight:"1",width:l,height:l,verticalAlign:"top",position:"relative",userSelect:"none",selectors:((t={":before":{content:'""',position:"absolute",top:"1px",right:"1px",bottom:"1px",left:"1px",borderRadius:"50%",opacity:1,background:f.bodyBackground}})[".".concat(g.checkHost,":hover &, .").concat(g.checkHost,":focus &, &:hover, &:focus")]={opacity:1},t)},c&&["is-checked",{selectors:{":before":{background:p.themePrimary,opacity:1,selectors:((n={})[l_]={background:"Window"},n)}}}],u],circle:[g.circle,v,{color:p.neutralSecondary,selectors:((r={})[l_]={color:"WindowText"},r)},c&&{color:p.white}],check:[g.check,v,{opacity:0,color:p.neutralSecondary,fontSize:I.medium,left:m?"-0.5px":".5px",top:"-1px",selectors:((o={":hover":{opacity:1}})[l_]=tf({},lF()),o)},c&&{opacity:1,color:p.white,fontWeight:900,selectors:((a={})[l_]={border:"none",color:"WindowText"},a)}],checkHost:g.checkHost}},void 0,{scope:"Check"},!0),vy=oI(),vb=ts.forwardRef(function(e,t){var n=e.disabled,r=e.required,o=e.inputProps,a=e.name,s=e.ariaLabel,l=e.ariaLabelledBy,c=e.ariaDescribedBy,u=e.ariaPositionInSet,d=e.ariaSetSize,p=e.title,f=e.checkmarkIconProps,h=e.styles,m=e.theme,g=e.className,v=e.boxSide,y=void 0===v?"start":v,b=uq("checkbox-",e.id),x=ts.useRef(null),C=uG(x,t),k=ts.useRef(null),w=uj(e.checked,e.defaultChecked,e.onChange),S=w[0],_=w[1],E=uj(e.indeterminate,e.defaultIndeterminate),P=E[0],I=E[1];al(x),vx(e);var T=vy(h,{theme:m,className:g,disabled:n,indeterminate:P,checked:S,reversed:"start"!==y,isUsingCustomLabelRender:!!e.onRenderLabel}),D=ts.useCallback(function(e){P?(_(!!S,e),I(!1)):_(!S,e)},[_,I,P,S]),A=ts.useCallback(function(e){return e&&e.label?ts.createElement("span",{className:T.text,title:e.title},e.label):null},[T.text]),R=ts.useCallback(function(e){if(k.current){var t=!!e;k.current.indeterminate=t,I(t)}},[I]);vC(e,S,P,R,k),ts.useEffect(function(){return R(P)},[R,P]);var N=e.onRenderLabel||A,B=P?"mixed":void 0,M=tf(tf({className:T.input,type:"checkbox"},o),{checked:!!S,disabled:n,required:r,name:a,id:b,title:p,onChange:D,"aria-disabled":n,"aria-label":s,"aria-labelledby":l,"aria-describedby":c,"aria-posinset":u,"aria-setsize":d,"aria-checked":B});return ts.createElement("div",{className:T.root,title:p,ref:C},ts.createElement("input",tf({},M,{ref:k,title:p,"data-ktp-execute-target":!0})),ts.createElement("label",{className:T.label,htmlFor:b},ts.createElement("div",{className:T.checkbox,"data-ktp-target":!0},ts.createElement(pf,tf({iconName:"CheckMark"},f,{className:T.checkmark}))),N(e,A)))});function vx(e){u0({name:"Checkbox",props:e,mutuallyExclusive:{checked:"defaultChecked",indeterminate:"defaultIndeterminate"}})}function vC(e,t,n,r,o){ts.useImperativeHandle(e.componentRef,function(){return{get checked(){return!!t},get indeterminate(){return!!n},set indeterminate(indeterminate){r(indeterminate)},focus:function(){o.current&&o.current.focus()}}},[o,t,n,r])}vb.displayName="CheckboxBase";var vk={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},vw="20px",vS="200ms",v_="cubic-bezier(.4, 0, .23, 1)",vE=a1(vb,function(e){var t,n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x=e.className,C=e.theme,k=e.reversed,w=e.checked,S=e.disabled,_=e.isUsingCustomLabelRender,E=e.indeterminate,P=C.semanticColors,I=C.effects,T=C.palette,D=C.fonts,A=l0(vk,C),R=P.inputForegroundChecked,N=T.neutralSecondary,B=T.neutralPrimary,M=P.inputBackgroundChecked,F=P.inputBackgroundChecked,O=P.disabledBodySubtext,L=P.inputBorderHovered,H=P.inputBackgroundCheckedHovered,z=P.inputBackgroundChecked,V=P.inputBackgroundCheckedHovered,U=P.inputBackgroundCheckedHovered,j=P.inputTextHovered,W=P.disabledBodySubtext,q=P.bodyText,G=P.disabledText,K=[((t={content:'""',borderRadius:I.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:S?O:M,transitionProperty:"border-width, border, border-color",transitionDuration:vS,transitionTimingFunction:v_})[l_]={borderColor:"WindowText"},t)];return{root:[A.root,{position:"relative",display:"flex"},k&&"reversed",w&&"is-checked",!S&&"is-enabled",S&&"is-disabled",!S&&[!w&&((n={})[":hover .".concat(A.checkbox)]=((r={borderColor:L})[l_]={borderColor:"Highlight"},r),n[":focus .".concat(A.checkbox)]={borderColor:L},n[":hover .".concat(A.checkmark)]=((o={color:N,opacity:"1"})[l_]={color:"Highlight"},o),n),w&&!E&&((a={})[":hover .".concat(A.checkbox)]={background:V,borderColor:U},a[":focus .".concat(A.checkbox)]={background:V,borderColor:U},a[l_]=((s={})[":hover .".concat(A.checkbox)]={background:"Highlight",borderColor:"Highlight"},s[":focus .".concat(A.checkbox)]={background:"Highlight"},s[":focus:hover .".concat(A.checkbox)]={background:"Highlight"},s[":focus:hover .".concat(A.checkmark)]={color:"Window"},s[":hover .".concat(A.checkmark)]={color:"Window"},s),a),E&&((l={})[":hover .".concat(A.checkbox,", :hover .").concat(A.checkbox,":after")]=((c={borderColor:H})[l_]={borderColor:"WindowText"},c),l[":focus .".concat(A.checkbox)]={borderColor:H},l[":hover .".concat(A.checkmark)]={opacity:"0"},l),((u={})[":hover .".concat(A.text,", :focus .").concat(A.text)]=((d={color:j})[l_]={color:S?"GrayText":"WindowText"},d),u)],x],input:((p={position:"absolute",background:"none",opacity:0})[".".concat(i7," &:focus + label::before, :host(.").concat(i7,") &:focus + label::before")]=((f={outline:"1px solid "+C.palette.neutralSecondary,outlineOffset:"2px"})[l_]={outline:"1px solid WindowText"},f),p),label:[A.label,C.fonts.medium,{display:"flex",alignItems:_?"center":"flex-start",cursor:S?"default":"pointer",position:"relative",userSelect:"none"},k&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[A.checkbox,((h={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:vw,width:vw,border:"1px solid ".concat(B),borderRadius:I.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:vS,transitionTimingFunction:v_,overflow:"hidden",":after":E?K:null})[l_]=tf({borderColor:"WindowText"},lF()),h),E&&{borderColor:M},k?{marginLeft:4}:{marginRight:4},!S&&!E&&w&&((m={background:z,borderColor:F})[l_]={background:"Highlight",borderColor:"Highlight"},m),S&&((g={borderColor:O})[l_]={borderColor:"GrayText"},g),w&&S&&((v={background:W,borderColor:O})[l_]={background:"Window"},v)],checkmark:[A.checkmark,((y={opacity:w&&!E?"1":"0",color:R})[l_]=tf({color:S?"GrayText":"Window"},lF()),y)],text:[A.text,((b={color:S?G:q,fontSize:D.medium.fontSize,lineHeight:"20px"})[l_]=tf({color:S?"GrayText":"WindowText"},lF()),b),k?{marginRight:4}:{marginLeft:4}]}},void 0,{scope:"Checkbox"}),vP=oI({cacheSize:100}),vI=a1(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"label":t,r=e.children,o=e.className,a=e.disabled,s=vP(e.styles,{className:o,disabled:a,required:e.required,theme:e.theme});return ts.createElement(n,tf({},i$(this.props,iY),{className:s.root}),r)},t}(ts.Component),function(e){var t,n=e.theme,r=e.className,o=e.disabled,a=e.required,s=n.semanticColors,l=P.semibold,c=s.bodyText,u=s.disabledBodyText,d=s.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:l,color:c,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},o&&{color:u,selectors:((t={})[l_]=tf({color:"GrayText"},lF()),t)},a&&{selectors:{"::after":{content:"' *'",color:d,paddingRight:12}}},r]}},void 0,{scope:"Label"}),vT=oI(),vD=71,vA={imageSize:{width:32,height:32}},vR=function(e){var t=a4(tf(tf({},vA),{key:e.itemKey}),e),n=t.ariaLabel,r=t.focused,o=t.required,a=t.theme,s=t.iconProps,l=t.imageSrc,c=t.imageSize,u=t.disabled,d=t.checked,p=t.id,f=t.styles,h=t.name,m=th(t,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name"]),g=vT(f,{theme:a,hasIcon:!!s,hasImage:!!l,checked:d,disabled:u,imageIsLarge:!!l&&(c.width>vD||c.height>vD),imageSize:c,focused:r}),v=i$(m,iF),y=v.className,b=th(v,["className"]),x=function(){return ts.createElement("span",{id:t.labelId,className:"ms-ChoiceFieldLabel"},t.text)},C=function(){var e=t.imageAlt,n=void 0===e?"":e,r=t.selectedImageSrc,o=(t.onRenderLabel?aV(t.onRenderLabel,x):x)(tf(tf({},t),{key:t.itemKey}));return ts.createElement("label",{htmlFor:p,className:g.field},l&&ts.createElement("div",{className:g.innerField},ts.createElement("div",{className:g.imageWrapper},ts.createElement(pa,tf({src:l,alt:n},c))),ts.createElement("div",{className:g.selectedImageWrapper},ts.createElement(pa,tf({src:r,alt:n},c)))),s&&ts.createElement("div",{className:g.innerField},ts.createElement("div",{className:g.iconWrapper},ts.createElement(pf,tf({},s)))),l||s?ts.createElement("div",{className:g.labelWrapper},o):o)},k=t.onRenderField,w=void 0===k?C:k,S=function(e){var n;null==(n=t.onChange)||n.call(t,e,tf(tf({},t),{key:t.itemKey}))},_=function(e){var n;null==(n=t.onBlur)||n.call(t,e)},E=function(e){var n;null==(n=t.onFocus)||n.call(t,e,tf(tf({},t),{key:t.itemKey}))};return ts.createElement("div",{className:g.root},ts.createElement("div",{className:g.choiceFieldWrapper},ts.createElement("input",tf({"aria-label":n,id:p,className:oG(g.input,y),type:"radio",name:h,disabled:u,checked:d,required:o},b,{onChange:S,onFocus:E,onBlur:_})),w(tf(tf({},t),{key:t.itemKey}),C)))};vR.displayName="ChoiceGroupOption";var vN={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},vB=15,vM=32,vF=32,vO=20,vL="200ms",vH="cubic-bezier(.4, 0, .23, 1)",vz=3,vV=5;function vU(e,t){var n,r;return["is-inFocus",{selectors:((n={})[".".concat(i7," &, :host(.").concat(i7,") &")]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid ".concat(e),position:"absolute",selectors:((r={})[l_]={borderColor:"WindowText",borderWidth:t?1:2},r)}}},n)}]}function vj(e,t,n){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:vL,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(n?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var vW=a1(vR,function(e){var t,n,r,o,a,s=e.theme,l=e.hasIcon,c=e.hasImage,u=e.checked,d=e.disabled,p=e.imageIsLarge,f=e.focused,h=e.imageSize,m=s.palette,g=s.semanticColors,v=s.fonts,y=l0(vN,s),b=m.neutralPrimary,x=g.inputBorderHovered,C=g.inputBackgroundChecked,k=m.themeDark,w=g.disabledBodySubtext,S=g.bodyBackground,_=m.neutralSecondary,E=g.inputBackgroundChecked,P=m.themeDark,I=g.disabledBodySubtext,T=m.neutralDark,D=g.focusBorder,A=g.inputBorderHovered,R=g.inputBackgroundChecked,N=m.themeDark,B=m.neutralLighter,M={selectors:{".ms-ChoiceFieldLabel":{color:T},":before":{borderColor:u?k:x},":after":[!l&&!c&&!u&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:_},u&&{borderColor:P,background:P}]}},F={borderColor:u?N:A,selectors:{":before":{opacity:1,borderColor:u?k:x}}},O=[{content:'""',display:"inline-block",backgroundColor:S,borderWidth:1,borderStyle:"solid",borderColor:b,width:vO,height:vO,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:vL,transitionTimingFunction:vH,borderRadius:"50%"},d&&{borderColor:w,selectors:((t={})[l_]=tf({borderColor:"GrayText",background:"Window"},lF()),t)},u&&{borderColor:d?w:C,selectors:((n={})[l_]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},n)},(l||c)&&{top:vz,right:vz,left:"auto",opacity:+!!u}],L=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:vO/2,right:0,transitionProperty:"border-width",transitionDuration:vL,transitionTimingFunction:vH,boxSizing:"border-box"},u&&{borderWidth:5,borderStyle:"solid",borderColor:d?I:E,background:E,left:5,top:5,width:10,height:10,selectors:((r={})[l_]={borderColor:"Highlight",forcedColorAdjust:"none"},r)},u&&(l||c)&&{top:vz+vV,right:vz+vV,left:"auto"}];return{root:[y.root,s.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:g.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!l&&!c&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},c&&"ms-ChoiceField--image",l&&"ms-ChoiceField--icon",(l||c)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:B,height:"100%"}],choiceFieldWrapper:[y.choiceFieldWrapper,f&&vU(D,l||c)],input:[y.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},d&&"is-disabled"],field:[y.field,u&&y.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!d&&M,":focus":!d&&M,":before":O,":after":L}},l&&"ms-ChoiceField--icon",c&&"ms-ChoiceField-field--image",(l||c)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:vL,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},u&&{borderColor:R},(l||c)&&!d&&{selectors:{":hover":F,":focus":F}},d&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:g.disabledBodyText,selectors:((o={})[l_]=tf({color:"GrayText"},lF()),o)}}},u&&d&&{borderColor:B}],innerField:[y.innerField,c&&{height:h.height,width:h.width},(l||c)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(l||c)&&p&&{paddingLeft:24,paddingRight:24},(l||c)&&d&&{opacity:.25,selectors:((a={})[l_]={color:"GrayText",opacity:1},a)}],imageWrapper:vj(!1,y.imageWrapper,u),selectedImageWrapper:vj(!0,y.imageWrapper,u),iconWrapper:[y.iconWrapper,{fontSize:vF,lineHeight:vF,height:vF}],labelWrapper:[y.labelWrapper,v.medium,(l||c)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:vM,lineHeight:vB,maxWidth:2*h.width,overflow:"hidden",whiteSpace:"pre-wrap"}]}},void 0,{scope:"ChoiceGroupOption"}),vq=oI(),vG=function(e,t){return"".concat(t,"-").concat(e.key)},vK=function(e,t){return void 0===t?void 0:of(e,function(e){return e.key===t})},vX=function(e,t,n,r,o){var a=vK(e,t)||e.filter(function(e){return!e.disabled})[0],s=a&&(null==o?void 0:o.getElementById(vG(a,n)));s&&(s.focus(),an(!0,s,r))},vY=function(e){return e.relatedTarget instanceof HTMLElement&&"true"===e.relatedTarget.dataset.isFocusTrapZoneBumper},v$=function(e,t,n,r,o){var a=u6();ts.useImperativeHandle(r,function(){return{get checkedOption(){return vK(e,t)},focus:function(){vX(e,t,n,o,a)}}},[e,t,n,o,a])},vQ="ChoiceGroup",vJ=ts.forwardRef(function(e,t){var n=e.className,r=e.theme,o=e.styles,a=e.options,s=void 0===a?[]:a,l=e.label,c=e.required,u=e.disabled,d=e.name,p=e.defaultSelectedKey,f=e.componentRef,h=e.onChange,m=uq("ChoiceGroup"),g=uq("ChoiceGroupLabel"),v=i$(e,iY,["onChange","className","required"]),y=vq(o,{theme:r,className:n,optionsContainIconOrImage:s.some(function(e){return!!(e.iconProps||e.imageSrc)})}),b=e.ariaLabelledBy||(l?g:e["aria-labelledby"]),x=uj(e.selectedKey,p),C=x[0],k=x[1],w=ts.useState(),S=w[0],_=w[1],E=ts.useRef(null),P=uG(E,t),I=ts.useContext(as);vZ(e),v$(s,C,m,f,null==I?void 0:I.registeredProviders),al(E);var T=ts.useCallback(function(e,t){var n;t&&(_(t.itemKey),null==(n=t.onFocus)||n.call(t,e))},[]),D=ts.useCallback(function(e,t){var n;_(void 0),null==(n=null==t?void 0:t.onBlur)||n.call(t,e)},[]),A=ts.useCallback(function(e,t){var n;t&&(k(t.itemKey),null==(n=t.onChange)||n.call(t,e),null==h||h(e,vK(s,t.itemKey)))},[h,s,k]),R=ts.useCallback(function(e){vY(e)&&vX(s,C,m,null==I?void 0:I.registeredProviders)},[s,C,m,I]);return ts.createElement("div",tf({className:y.root},v,{ref:P}),ts.createElement("div",tf({role:"radiogroup"},b&&{"aria-labelledby":b},{onFocus:R}),l&&ts.createElement(vI,{className:y.label,required:c,id:g,disabled:u},l),ts.createElement("div",{className:y.flexContainer},s.map(function(e){return ts.createElement(vW,tf({itemKey:e.key},e,{key:e.key,onBlur:D,onFocus:T,onChange:A,focused:e.key===S,checked:e.key===C,disabled:e.disabled||u,id:vG(e,m),labelId:e.labelId||"".concat(g,"-").concat(e.key),name:d||m,required:c}))}))))});function vZ(e){u0({name:vQ,props:e,mutuallyExclusive:{selectedKey:"defaultSelectedKey"}})}vJ.displayName=vQ;var v0={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"};a1(vJ,function(e){var t=e.className,n=e.optionsContainIconOrImage,r=e.theme,o=l0(v0,r);return{root:[t,o.root,r.fonts.medium,{display:"block"}],flexContainer:[o.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}},void 0,{scope:"ChoiceGroup"});var v1=32,v2=32,v5=oL(function(){return n_({"0%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"78.57%":{transform:"translate(0, 0)",animationTimingFunction:"cubic-bezier(0.62, 0, 0.56, 1)"},"82.14%":{transform:"translate(0, -5px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0, 1)"},"84.88%":{transform:"translate(0, 9px)",animationTimingFunction:"cubic-bezier(1, 0, 0.56, 1)"},"88.1%":{transform:"translate(0, -2px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0.67, 1)"},"90.12%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"100%":{transform:"translate(0, 0)"}})}),v4=oL(function(){return n_({"0%":{transform:" scale(0)",animationTimingFunction:"linear"},"14.29%":{transform:"scale(0)",animationTimingFunction:"cubic-bezier(0.84, 0, 0.52, 0.99)"},"16.67%":{transform:"scale(1.15)",animationTimingFunction:"cubic-bezier(0.48, -0.01, 0.52, 1.01)"},"19.05%":{transform:"scale(0.95)",animationTimingFunction:"cubic-bezier(0.48, 0.02, 0.52, 0.98)"},"21.43%":{transform:"scale(1)",animationTimingFunction:"linear"},"42.86%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"45.71%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"50%":{transform:"scale(1)",animationTimingFunction:"linear"},"90.12%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"92.98%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"97.26%":{transform:"scale(1)",animationTimingFunction:"linear"},"100%":{transform:"scale(1)"}})}),v3=oL(function(){return n_({"0%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"83.33%":{transform:" rotate(0deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"83.93%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"84.52%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.12%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.71%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"86.31%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"100%":{transform:"rotate(0deg)"}})});function v6(e){var t,n=e.theme,r=e.className,o=e.color,a=e.beaconColorOne,s=e.beaconColorTwo,l=e.delayBeforeCoachmarkAnimation,c=e.isCollapsed,u=e.isMeasuring,d=e.entityHostHeight,p=e.entityHostWidth,f=e.transformOrigin;if(!n)throw Error("theme is undefined or null in base Dropdown getStyles function.");var h="35px",m="150px",g="10px",v=lJ(l$(a||n.palette.themePrimary,s||n.palette.themeTertiary,h,m,g),l);return{root:[n.fonts.medium,{position:"relative"},r],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:ox(n)?"translate(50%, -50%)":"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:"0"},c&&v],translateAnimationContainer:[{width:"100%",height:"100%"},c&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:v5(),transition:"opacity 0.5s ease-in-out"},!c&&{opacity:"1"}],scaleAnimationLayer:[{width:"100%",height:"100%"},c&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:v4()}],rotateAnimationLayer:[{width:"100%",height:"100%"},c&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:v3()},!c&&{opacity:"1"}],entityHost:[{position:"relative",outline:"none",overflow:"hidden",backgroundColor:o,borderRadius:v1,transition:"border-radius 250ms, width 500ms, height 500ms cubic-bezier(0.5, 0, 0, 1)",visibility:"hidden",selectors:((t={})[l_]={backgroundColor:"Window",border:"2px solid WindowText"},t[".".concat(i7," &:focus")]={outline:"1px solid ".concat(n.palette.themeTertiary)},t)},!u&&c&&{width:v1,height:v2},!u&&{visibility:"visible"},!c&&{borderRadius:"1px",opacity:"1",width:p,height:d},c&&{cursor:"pointer"}],entityInnerHost:[{transition:"transform 500ms cubic-bezier(0.5, 0, 0, 1)",transformOrigin:f,transform:"scale(0)"},!c&&{width:p,height:d,transform:"scale(1)"},!u&&{visibility:"visible"}],childrenContainer:[{display:!u&&c?"none":"block"}],ariaContainer:{position:"fixed",opacity:0,height:0,width:0,pointerEvents:"none"}}}var v8=oL(function(){var e;return nC({root:[{position:"absolute",boxSizing:"border-box",border:"1px solid ${}",selectors:((e={})[l_]={border:"1px solid WindowText"},e)},lH()],container:{position:"relative"},main:{backgroundColor:"#ffffff",overflowX:"hidden",overflowY:"hidden",position:"relative"},overFlowYHidden:{overflowY:"hidden"}})}),v9={opacity:0},v7=1,ye=((eu={})[D.top]="slideUpIn20",eu[D.bottom]="slideDownIn20",eu[D.left]="slideLeftIn20",eu[D.right]="slideRightIn20",eu),yt={preventDismissOnScroll:!1,offsetFromTarget:0,minPagePadding:8,directionalHint:cW};function yn(e,t){return function(){var n=e.bounds;return n||(n={top:0+e.minPagePadding,left:0+e.minPagePadding,right:t.innerWidth-e.minPagePadding,bottom:t.innerHeight-e.minPagePadding,width:t.innerWidth-2*e.minPagePadding,height:t.innerHeight-2*e.minPagePadding}),n}}function yr(e,t,n,r,o){var a=uz(),s=u6(),l=u8(),c=ts.useState(),u=c[0],d=c[1],p=ts.useRef(0),f=function(){a.requestAnimationFrame(function(){return h()})},h=function(){var a=e.offsetFromTarget,c=e.onPositioned,f=t.current,h=n.current;if(f&&h){var m=tf({},e);m.bounds=o(),m.target=r.current;var g=m.target;if(g)if(!g.getBoundingClientRect&&!g.preventDefault||(null==s?void 0:s.body.contains(g))){m.gapSpace=a;var v=uA(m,f,h,void 0,l);!u&&v||u&&v&&!yc(u,v)&&p.current<5?(p.current++,d(v)):p.current=0,null==c||c(v)}else void 0!==u&&d(void 0);else void 0!==u&&d(void 0)}};return ts.useEffect(f),[u,f]}function yo(e,t,n){var r=e.setInitialFocus,o=ts.useRef(!1);ts.useEffect(function(){!o.current&&t.current&&r&&n&&(o.current=!0,n3(t.current))})}function yi(e,t,n){var r=e.directionalHintFixed,o=e.offsetFromTarget,a=e.directionalHint,s=e.target,l=ts.useRef(),c=u8();return"string"==typeof s&&(l.current=void 0),ts.useEffect(function(){l.current=void 0},[s,o]),function(){if(!l.current)if(r&&t.current){var e=o||0;l.current=uB(t.current,a,e,n(),void 0,c)}else l.current=n().height-2*v7;return l.current}}function ya(e,t,n,r,o,a){var s=e.onDismiss,l=e.preventDismissOnScroll,c=uz(),u=ts.useCallback(function(e){s?s(e):a()},[s,a]),d=ts.useCallback(function(e){var o=e.target,a=t.current&&!nz(t.current,o);(!r.current&&a||e.target!==n&&a&&(r.current.stopPropagation||!r.current||o!==r.current&&!nz(r.current,o)))&&u(e)},[u,t,r,n]),p=ts.useCallback(function(e){o&&!l&&d(e)},[d,o,l]);ts.useEffect(function(){var e=new rv({});return c.setTimeout(function(){var t,r;e.on(n,"scroll",c.throttle(p,10),!0),e.on(n,"resize",c.throttle(u,10),!0),e.on(null==(t=null==n?void 0:n.document)?void 0:t.body,"focus",d,!0),e.on(null==(r=null==n?void 0:n.document)?void 0:r.body,"click",d,!0)},0),function(){return e.dispose()}},[p])}function ys(e,t){var n=e.finalHeight,r=ts.useState({value:0}),o=r[0],a=r[1],s=uz(),l=ts.useRef(0),c=function(){t&&n&&(l.current=s.requestAnimationFrame(function(){if(t.current){var e=t.current.lastChild,r=e.scrollHeight,u=e.offsetHeight,d=r-u;a({value:o.value+d}),e.offsetHeight<n?c():s.cancelAnimationFrame(l.current)}}))};return ts.useEffect(c,[n]),o.value}var yl=ts.forwardRef(function(e,t){var n=a4(yt,e),r=ts.useRef(null),o=ts.useRef(null),a=uG(t,o),s=uQ(n.target,o),l=s[0],c=s[1],u=yn(n,c),d=yr(n,o,r,l,u),p=d[0],f=d[1],h=yi(n,l,u),m=ys(n,r);if(yo(n,r,p),ya(n,o,c,l,p,f),ts.useEffect(function(){var e;return null==(e=n.onLayerMounted)?void 0:e.call(n)},[]),!c)return null;var g=n.className,v=n.doNotLayer,y=n.positioningContainerWidth,b=n.positioningContainerMaxHeight,x=n.children,C=v8(),k=p&&p.targetEdge?ck[ye[p.targetEdge]]:"",w=h()+m,S=b&&b>w?w:b,_=ts.createElement("div",{ref:a,className:oG("ms-PositioningContainer",C.container)},ts.createElement("div",{className:ny("ms-PositioningContainer-layerHost",C.root,g,k,!!y&&{width:y},v&&{zIndex:T.Layer}),style:p?p.elementPosition:v9,tabIndex:-1,ref:r},x,S));return v?_:ts.createElement(dY,tf({},n.layerProps),_)});function yc(e,t){return yu(e.elementPosition,t.elementPosition)}function yu(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(r&&o&&r.toFixed(2)!==o.toFixed(2))return!1}return!0}function yd(e){var t;return{root:[{position:"absolute",boxShadow:"inherit",border:"none",boxSizing:"border-box",transform:e.transform,width:e.width,height:e.height,left:e.left,top:e.top,right:e.right,bottom:e.bottom}],beak:{fill:e.color,display:"block",selectors:((t={})[l_]={fill:"windowtext"},t)}}}yl.displayName="PositioningContainer";var yp=10,yf=18,yh=ts.forwardRef(function(e,t){var n,r,o,a,s,l,c=e.left,u=e.top,d=e.bottom,p=e.right,f=e.color,h=e.direction,m=void 0===h?D.top:h;switch(m===D.top||m===D.bottom?(n=yp,r=yf):(n=yf,r=yp),m){case D.top:default:o="".concat(yf/2,", 0"),a="".concat(yf,", ").concat(yp),s="0, ".concat(yp),l="translateY(-100%)";break;case D.right:o="0, 0",a="".concat(yp,", ").concat(yp),s="0, ".concat(yf),l="translateX(100%)";break;case D.bottom:o="0, 0",a="".concat(yf,", 0"),s="".concat(yf/2,", ").concat(yp),l="translateY(100%)";break;case D.left:o="".concat(yp,", 0"),a="0, ".concat(yp),s="".concat(yp,", ").concat(yf),l="translateX(-100%)"}var g=oI()(yd,{left:c,top:u,bottom:d,right:p,height:"".concat(n,"px"),width:"".concat(r,"px"),transform:l,color:f});return ts.createElement("div",{className:g.root,role:"presentation",ref:t},ts.createElement("svg",{height:n,width:r,className:g.beak},ts.createElement("polygon",{points:o+" "+a+" "+s})))});yh.displayName="Beak";var ym=oI(),yg={isCollapsed:!0,mouseProximityOffset:10,delayBeforeMouseOpen:3600,delayBeforeCoachmarkAnimation:0,isPositionForced:!0,positioningContainerProps:{directionalHint:cW}};function yv(e,t){var n=e.isCollapsed,r=e.onAnimationOpenStart,o=e.onAnimationOpenEnd,a=ts.useState(!!n),s=a[0],l=a[1],c=u$().setTimeout,u=ts.useRef(!s),d=ts.useCallback(function(){var e,n;u.current||(l(!1),null==r||r(),null==(n=null==(e=t.current)?void 0:e.addEventListener)||n.call(e,"transitionend",function(){c(function(){t.current&&n3(t.current)},1e3),null==o||o()}),u.current=!0)},[t,o,r,c]);return ts.useEffect(function(){n||d()},[n]),[s,d]}function yy(){var e=uz(),t=ts.useState(),n=t[0],r=t[1],o=ts.useState(),a=o[0],s=o[1];return[n,a,function(t){var n=t.alignmentEdge,o=t.targetEdge;return e.requestAnimationFrame(function(){r(n),s(o)})}]}function yb(e,t,n){var r=ox(e.theme);return ts.useMemo(function(){var e,o,a=void 0===n?D.bottom:uM(n),s={direction:a},l="3px";switch(a){case D.top:case D.bottom:t?t===D.left?(s.left="".concat(v1/2-yf/2,"px"),e="left"):(s.right="".concat(v1/2-yf/2,"px"),e="right"):(s.left="calc(50% - ".concat(yf/2,"px)"),e="center"),a===D.top?(s.top=l,o="top"):(s.bottom=l,o="bottom");break;case D.left:case D.right:t?t===D.top?(s.top="".concat(v1/2-yf/2,"px"),o="top"):(s.bottom="".concat(v1/2-yf/2,"px"),o="bottom"):(s.top="calc(50% - ".concat(yf/2,"px)"),o="center"),a===D.left?(r?s.right=l:s.left=l,e="left"):(r?s.left=l:s.right=l,e="right")}return[s,"".concat(e," ").concat(o)]},[t,n,r])}function yx(e,t,n){var r,o=null==(r=n$())?void 0:r.documentElement;uK(o,"keydown",function(e){var r,o;(e.altKey&&e.which===oi||e.which===rQ&&(null==(o=null==(r=t.current)?void 0:r.contains)?void 0:o.call(r,e.target)))&&n()},!0);var a=function(n){var r;if(e.preventDismissOnLostFocus){var o=n.target,a=t.current&&!nz(t.current,o),s=e.target;a&&o!==s&&!nz(s,o)&&(null==(r=e.onDismiss)||r.call(e,n))}};uK(o,"click",a,!0),uK(o,"focus",a,!0)}function yC(e,t,n,r){var o=u$(),a=o.setTimeout,s=o.clearTimeout,l=ts.useRef(),c=u8(),u=u6();ts.useEffect(function(){var o=function(){t.current&&(l.current=t.current.getBoundingClientRect())},d=new rv({});return a(function(){var t=e.mouseProximityOffset,p=void 0===t?0:t,f=[];a(function(){o(),d.on(c,"resize",function(){f.forEach(function(e){s(e)}),f.splice(0,f.length),f.push(a(function(){o(),r(yT(e.isPositionForced,e.positioningContainerProps,c))},100))})},10),d.on(u,"mousemove",function(t){var r,a=t.clientY,s=t.clientX;o(),yD(l.current,s,a,p)&&n(),null==(r=e.onMouseMove)||r.call(e,t)})},e.delayBeforeMouseOpen),function(){return d.dispose()}},[])}function yk(e){var t=e.onDismiss;ts.useImperativeHandle(e.componentRef,function(e){return{dismiss:function(){null==t||t(e)}}},[t])}function yw(e){var t=e.ariaAlertText,n=uz(),r=ts.useState(),o=r[0],a=r[1];return ts.useEffect(function(){n.requestAnimationFrame(function(){a(t)})},[]),o}function yS(e){var t=e.preventFocusOnMount,n=u$().setTimeout,r=ts.useRef(null);return ts.useEffect(function(){t||n(function(){var e;return null==(e=r.current)?void 0:e.focus()},1e3)},[]),r}function y_(e,t){var n=ts.useState(!!e.isCollapsed),r=n[0],o=n[1],a=ts.useState(e.isCollapsed?{width:0,height:0}:{}),s=a[0],l=a[1],c=uz();return ts.useEffect(function(){c.requestAnimationFrame(function(){t.current&&(l({width:t.current.offsetWidth,height:t.current.offsetHeight}),o(!1))})},[]),[r,s]}function yE(e){u0({name:yP,props:e,deprecations:{teachingBubbleRef:void 0,collapsed:"isCollapsed",beakWidth:void 0,beakHeight:void 0,width:void 0,height:void 0}})}var yP="CoachmarkBase",yI=ts.forwardRef(function(e,t){var n=a4(yg,e),r=u8(),o=ts.useRef(null),a=ts.useRef(null),s=yy(),l=s[0],c=s[1],u=s[2],d=yv(n,o),p=d[0],f=d[1],h=yb(n,l,c),m=h[0],g=h[1],v=y_(n,o),y=v[0],b=v[1],x=ts.useState(yT(n.isPositionForced,n.positioningContainerProps,r)),C=x[0],k=x[1],w=yw(n),S=yS(n);yx(n,a,f),yk(n),yC(n,a,f,k),yE(n),ts.useEffect(function(){k(yT(n.isPositionForced,n.positioningContainerProps,r))},[n.isPositionForced,n.positioningContainerProps,r]);var _=n.beaconColorOne,E=n.beaconColorTwo,P=n.children,I=n.target,T=n.color,D=n.positioningContainerProps,A=n.ariaDescribedBy,R=n.ariaDescribedByText,N=n.ariaLabelledBy,B=n.ariaLabelledByText,M=n.ariaAlertText,F=n.delayBeforeCoachmarkAnimation,O=n.styles,L=n.theme,H=n.className,z=n.persistentBeak,V=T;!V&&L&&(V=L.semanticColors.primaryButtonBackground);var U=ym(O,{theme:L,beaconColorOne:_,beaconColorTwo:E,className:H,isCollapsed:p,isMeasuring:y,color:V,transformOrigin:g,entityHostHeight:void 0===b.height?void 0:"".concat(b.height,"px"),entityHostWidth:void 0===b.width?void 0:"".concat(b.width,"px"),width:"".concat(v1,"px"),height:"".concat(v2,"px"),delayBeforeCoachmarkAnimation:"".concat(F,"ms")}),j=p?v2:b.height,W=ts.useCallback(function(){f()},[f]);return ts.createElement(yl,tf({target:I,offsetFromTarget:yp,finalHeight:j,ref:t,onPositioned:u,bounds:C},D),ts.createElement("div",{className:U.root},M&&ts.createElement("div",{className:U.ariaContainer,role:"alert","aria-hidden":!p},w),ts.createElement("div",{className:U.pulsingBeacon}),ts.createElement("div",{className:U.translateAnimationContainer,ref:a},ts.createElement("div",{className:U.scaleAnimationLayer},ts.createElement("div",{className:U.rotateAnimationLayer},(p||z)&&ts.createElement(yh,tf({},m,{color:V})),ts.createElement("div",{className:U.entityHost,ref:S,tabIndex:-1,"data-is-focusable":!0,role:"dialog","aria-labelledby":N,"aria-describedby":A,onClick:W},p&&[N&&ts.createElement("p",{id:N,key:0,className:U.ariaContainer},B),A&&ts.createElement("p",{id:A,key:1,className:U.ariaContainer},R)],ts.createElement(d0,{isClickableOutsideFocusTrap:!0,forceFocusInsideTrap:!1},ts.createElement("div",{className:U.entityInnerHost,ref:o},ts.createElement("div",{className:U.childrenContainer,"aria-hidden":p},P)))))))))});function yT(e,t,n){var r,o;return e?t&&(t.directionalHint===cz||t.directionalHint===cW)?{left:0,top:-1/0,bottom:1/0,right:null!=(r=null==n?void 0:n.innerWidth)?r:0,width:null!=(o=null==n?void 0:n.innerWidth)?o:0,height:1/0}:{left:-1/0,top:-1/0,bottom:1/0,right:1/0,width:1/0,height:1/0}:void 0}function yD(e,t,n,r){return void 0===r&&(r=0),t>e.left-r&&t<e.left+e.width+r&&n>e.top-r&&n<e.top+e.height+r}yI.displayName=yP,a1(yI,v6,void 0,{scope:"Coachmark"});var yA=100,yR=359,yN=100,yB=255,yM=100,yF=3,yO=6,yL=1,yH=3,yz=/^[\da-f]{0,6}$/i,yV=/^\d{0,3}$/;function yU(e,t,n){t*=(n<50?n:100-n)/100;var r=n+t;return{h:e,s:0===r?0:2*t/r*100,v:r}}function yj(e,t,n){var r=[],o=(n/=100)*(t/=100),a=e/60,s=o*(1-Math.abs(a%2-1)),l=n-o;switch(Math.floor(a)){case 0:r=[o,s,0];break;case 1:r=[s,o,0];break;case 2:r=[0,o,s];break;case 3:r=[0,s,o];break;case 4:r=[s,0,o];break;case 5:r=[o,0,s]}return{r:Math.round(yB*(r[0]+l)),g:Math.round(yB*(r[1]+l)),b:Math.round(yB*(r[2]+l))}}function yW(e,t,n){var r=yU(e,t,n);return yj(r.h,r.s,r.v)}function yq(e,t){if(e){var n=null!=t?t:n$(),r=yK(e)||yY(e)||y$(e)||yX(e);return r||yG(e,n)}}function yG(e,t){if(void 0!==t){var n,r=t.createElement("div");r.style.backgroundColor=e,r.style.position="absolute",r.style.top="-9999px",r.style.left="-9999px",r.style.height="1px",r.style.width="1px",t.body.appendChild(r);var o=null==(n=t.defaultView)?void 0:n.getComputedStyle(r),a=o&&o.backgroundColor;if(t.body.removeChild(r),"rgba(0, 0, 0, 0)"===a||"transparent"===a){switch(e.trim()){case"transparent":case"#0000":case"#00000000":return{r:0,g:0,b:0,a:0}}return}return yK(a)}}function yK(e){if(e){var t=e.match(/^rgb(a?)\(([\d., ]+)\)$/);if(t){var n=!!t[1],r=n?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===r)return{r:o[0],g:o[1],b:o[2],a:n?100*o[3]:yM}}}}function yX(e){var t=e.match(/^hsl(a?)\(([\d., ]+)\)$/);if(t){var n=!!t[1],r=n?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===r){var a=yW(o[0],o[1],o[2]);return a.a=n?100*o[3]:yM,a}}}function yY(e){if("#"===e[0]&&7===e.length&&/^#[\da-fA-F]{6}$/.test(e))return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:yM}}function y$(e){if("#"===e[0]&&4===e.length&&/^#[\da-fA-F]{3}$/.test(e))return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:yM}}function yQ(e,t,n){return void 0===n&&(n=0),e<n?n:e>t?t:e}function yJ(e,t,n){return[yZ(e),yZ(t),yZ(n)].join("")}function yZ(e){var t=(e=yQ(e,yB)).toString(16);return 1===t.length?"0"+t:t}function y0(e,t,n){var r=yj(e,t,n);return yJ(r.r,r.g,r.b)}function y1(e,t,n){var r=NaN,o=Math.max(e,t,n),a=o-Math.min(e,t,n);return 0===a?r=0:e===o?r=(t-n)/a%6:t===o?r=(n-e)/a+2:n===o&&(r=(e-t)/a+4),(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round((0===o?0:a/o)*100),v:Math.round(o/yB*100)}}function y2(e,t,n){var r=(2-(t/=yA))*(n/=yN),o=t*n;return o/=r<=1?r:2-r,{h:e,s:100*(o=o||0),l:100*(r/=2)}}function y5(e,t,n,r,o){return r===yM||"number"!=typeof r?"#".concat(o):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(r/yM,")")}function y4(e){var t=e.a,n=void 0===t?yM:t,r=e.b,o=e.g,a=e.r,s=y1(a,o,r),l=s.h,c=s.s,u=s.v,d=yJ(a,o,r),p=y5(a,o,r,n,d),f=yM-n;return{a:n,b:r,g:o,h:l,hex:d,r:a,s:c,str:p,v:u,t:f}}function y3(e,t){var n=yq(e,null!=t?t:n$());if(n)return tf(tf({},y4(n)),{str:e})}function y6(e){return"#".concat(y0(e.h,yA,yN))}function y8(e,t,n){var r=yj(e.h,t,n),o=r.r,a=r.g,s=r.b,l=yJ(o,a,s);return tf(tf({},e),{s:t,v:n,r:o,g:a,b:s,hex:l,str:y5(o,a,s,e.a,l)})}function y9(e,t){var n=yj(t,e.s,e.v),r=n.r,o=n.g,a=n.b,s=yJ(r,o,a);return tf(tf({},e),{h:t,r:r,g:o,b:a,hex:s,str:y5(r,o,a,e.a,s)})}function y7(e,t){return tf(tf({},e),{a:t,t:yM-t,str:y5(e.r,e.g,e.b,t,e.hex)})}function be(e){return{r:yQ(e.r,yB),g:yQ(e.g,yB),b:yQ(e.b,yB),a:"number"==typeof e.a?yQ(e.a,yM):e.a}}function bt(e){return!e||e.length<yF?"ffffff":e.length>=yO?e.substring(0,yO):e.substring(0,yF)}var bn=[.027,.043,.082,.145,.184,.216,.349,.537],br=[.537,.45,.349,.216,.184,.145,.082,.043],bo=[.537,.349,.216,.184,.145,.082,.043,.027],bi=[.537,.45,.349,.216,.184,.145,.082,.043],ba=[.88,.77,.66,.55,.44,.33,.22,.11],bs=[.11,.22,.33,.44,.55,.66,.77,.88],bl=[.96,.84,.7,.4,.12],bc=[.1,.24,.44],bu=.2,bd=.8;function bp(e){return"number"==typeof e&&e>=ed.Unshaded&&e<=ed.Shade8}function bf(e){return 0===e.r&&0===e.g&&0===e.b}function bh(e){return e.r===yB&&e.g===yB&&e.b===yB}function bm(e,t){return{h:e.h,s:e.s,v:yQ(e.v-e.v*t,100,0)}}function bg(e,t){return{h:e.h,s:yQ(e.s-e.s*t,100,0),v:yQ(e.v+(100-e.v)*t,100,0)}}function bv(e,t,n){if(void 0===n&&(n=!1),!e)return null;if(t===ed.Unshaded||!bp(t))return e;var r=y2(e.h,e.s,e.v),o={h:e.h,s:e.s,v:e.v},a=t-1,s=bg,l=bm;return n&&(s=bm,l=bg),y4(rf(yj((o=bh(e)?bm(o,bo[a]):bf(e)?bg(o,bi[a]):r.l/100>bd?l(o,bs[a]):r.l/100<bu?s(o,ba[a]):a<bl.length?s(o,bl[a]):l(o,bc[a-bl.length])).h,o.s,o.v),{a:e.a}))}function by(e,t,n){if(void 0===n&&(n=!1),!e)return null;if(t===ed.Unshaded||!bp(t))return e;var r={h:e.h,s:e.s,v:e.v},o=t-1;return y4(rf(yj((r=n?bg(r,br[bi.length-1-o]):bm(r,bn[o])).h,r.s,r.v),{a:e.a}))}function bb(e,t){var n=yM-t;return tf(tf({},e),{t:t,a:n,str:y5(e.r,e.g,e.b,n,e.hex)})}!function(e){e[e.Unshaded=0]="Unshaded",e[e.Shade1=1]="Shade1",e[e.Shade2=2]="Shade2",e[e.Shade3=3]="Shade3",e[e.Shade4=4]="Shade4",e[e.Shade5=5]="Shade5",e[e.Shade6=6]="Shade6",e[e.Shade7=7]="Shade7",e[e.Shade8=8]="Shade8"}(ed||(ed={}));var bx=oI(),bC="",bk="TextField",bw="RedEye",bS="Hide",b_=function(e){function t(t){var n=e.call(this,t)||this;n._textElement=ts.createRef(),n._onFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({isFocused:!0},function(){n.props.validateOnFocusIn&&n._validate(n.value)})},n._onBlur=function(e){n.props.onBlur&&n.props.onBlur(e),n.setState({isFocused:!1},function(){n.props.validateOnFocusOut&&n._validate(n.value)})},n._onRenderLabel=function(e){var t=e.label,r=e.required,o=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?ts.createElement(vI,{required:r,htmlFor:n._id,styles:o,disabled:e.disabled,id:n._labelId},e.label):null},n._onRenderDescription=function(e){return e.description?ts.createElement("span",{className:n._classNames.description},e.description):null},n._onRevealButtonClick=function(e){n.setState(function(e){return{isRevealingPassword:!e.isRevealingPassword}})},n._onInputChange=function(e){var t,r,o=e.target.value,a=bE(n.props,n.state)||"";if(void 0===o||o===n._lastChangeValue||o===a){n._lastChangeValue=void 0;return}n._lastChangeValue=o,null==(r=(t=n.props).onChange)||r.call(t,e,o),n._isControlled||n.setState({uncontrolledValue:o})},i2(n),n._async=new nF(n),rM(bk,t,{errorMessage:"onGetErrorMessage"}),n._fallbackId=iw(bk),n._descriptionId=iw(bk+"Description"),n._labelId=iw(bk+"Label"),n._prefixId=iw(bk+"Prefix"),n._suffixId=iw(bk+"Suffix"),n._warnControlledUsage();var r=t.defaultValue,o=void 0===r?bC:r;return"number"==typeof o&&(o=String(o)),n.state={uncontrolledValue:n._isControlled?void 0:o,isFocused:!1,errorMessage:""},n._delayedValidate=n._async.debounce(n._validate,n.props.deferredValidationTime),n._lastValidation=0,n}return tp(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return bE(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=(n||{}).selection,a=void 0===o?[null,null]:o,s=a[0],l=a[1];!!e.multiline!=!!r.multiline&&t.isFocused&&(this.focus(),null!==s&&null!==l&&s>=0&&l>=0&&this.setSelectionRange(s,l)),e.value!==r.value&&(this._lastChangeValue=void 0);var c=bE(e,t),u=this.value;c!==u&&(this._warnControlledUsage(e),this.state.errorMessage&&!r.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),bP(r)&&this._delayedValidate(u))},t.prototype.render=function(){var e=this.props,t=e.borderless,n=e.className,r=e.disabled,o=e.invalid,a=e.iconProps,s=e.inputClassName,l=e.label,c=e.multiline,u=e.required,d=e.underlined,p=e.prefix,f=e.resizable,h=e.suffix,m=e.theme,g=e.styles,v=e.autoAdjustHeight,y=e.canRevealPassword,b=e.revealPasswordAriaLabel,x=e.type,C=e.onRenderPrefix,k=void 0===C?this._onRenderPrefix:C,w=e.onRenderSuffix,S=void 0===w?this._onRenderSuffix:w,_=e.onRenderLabel,E=void 0===_?this._onRenderLabel:_,P=e.onRenderDescription,I=void 0===P?this._onRenderDescription:P,T=this.state,D=T.isFocused,A=T.isRevealingPassword,R=this._errorMessage,N="boolean"==typeof o?o:!!R,B=!!y&&"password"===x&&bI(),M=this._classNames=bx(g,{theme:m,className:n,disabled:r,focused:D,required:u,multiline:c,hasLabel:!!l,hasErrorMessage:N,borderless:t,resizable:f,hasIcon:!!a,underlined:d,inputClassName:s,autoAdjustHeight:v,hasRevealButton:B});return ts.createElement("div",{ref:this.props.elementRef,className:M.root},ts.createElement("div",{className:M.wrapper},E(this.props,this._onRenderLabel),ts.createElement("div",{className:M.fieldGroup},(void 0!==p||this.props.onRenderPrefix)&&ts.createElement("div",{className:M.prefix,id:this._prefixId},k(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),a&&ts.createElement(pf,tf({className:M.icon},a)),B&&ts.createElement("button",{"aria-label":b,className:M.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!A,type:"button"},ts.createElement("span",{className:M.revealSpan},ts.createElement(pf,{className:M.revealIcon,iconName:A?bS:bw}))),(void 0!==h||this.props.onRenderSuffix)&&ts.createElement("div",{className:M.suffix,id:this._suffixId},S(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&ts.createElement("span",{id:this._descriptionId},I(this.props,this._onRenderDescription),R&&ts.createElement("div",{role:"alert"},ts.createElement(rz,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},t.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},t.prototype._warnControlledUsage=function(e){a2({componentId:this._id,componentName:bk,props:this.props,oldProps:e,valueProp:"value",defaultValueProp:"defaultValue",onChangeProp:"onChange",readOnlyProp:"readOnly"}),null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,rN("Warning: 'value' prop on '".concat(bk,"' should not be null. Consider using an ")+"empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return oq(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(e){var t=e.prefix;return ts.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderSuffix=function(e){var t=e.suffix;return ts.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var e=this._errorMessage;return e?"string"==typeof e?ts.createElement("p",{className:this._classNames.errorMessage},ts.createElement("span",{"data-automation-id":"error-message"},e)):ts.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},e):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var e=this.props.invalid,t=void 0===e?!!this._errorMessage:e,n=i$(this.props,iO,["defaultValue"]),r=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return ts.createElement("textarea",tf({id:this._id},n,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":r,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":t,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var e=this.props,t=e.ariaLabel,n=e.invalid,r=void 0===n?!!this._errorMessage:n,o=e.onRenderPrefix,a=e.onRenderSuffix,s=e.prefix,l=e.suffix,c=e.type,u=void 0===c?"text":c,d=e.label,p=[];d&&p.push(this._labelId),(void 0!==s||o)&&p.push(this._prefixId),(void 0!==l||a)&&p.push(this._suffixId);var f=tf(tf({type:this.state.isRevealingPassword?"text":u,id:this._id},i$(this.props,iF,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(p.length>0?p.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":r,onFocus:this._onFocus,onBlur:this._onBlur}),h=function(e){return ts.createElement("input",tf({},e))};return(this.props.onRenderInput||h)(f,h)},t.prototype._validate=function(e){var t=this;if(!(this._latestValidateValue===e&&bP(this.props))){this._latestValidateValue=e;var n=this.props.onGetErrorMessage,r=n&&n(e||"");if(void 0!==r)if("string"!=typeof r&&"then"in r){var o=++this._lastValidation;r.then(function(n){o===t._lastValidation&&t.setState({errorMessage:n}),t._notifyAfterValidate(e,n)})}else this.setState({errorMessage:r}),this._notifyAfterValidate(e,r);else this._notifyAfterValidate(e,"")}},t.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},t.prototype._adjustInputHeight=function(){var e,t;if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var n=null==(t=null==(e=this.props.scrollContainerRef)?void 0:e.current)?void 0:t.scrollTop,r=this._textElement.current;r.style.height="",r.style.height=r.scrollHeight+"px",n&&(this.props.scrollContainerRef.current.scrollTop=n)}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(ts.Component);function bE(e,t){var n=e.value,r=void 0===n?t.uncontrolledValue:n;return"number"==typeof r?String(r):r}function bP(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}function bI(){if("boolean"!=typeof ep){var e=nM();if(null==e?void 0:e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");ep=!(a5()||t)}else ep=!0}return ep}var bT={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function bD(e){var t=e.underlined,n=e.disabled,r=e.focused,o=e.theme,a=o.palette,s=o.fonts;return function(){var e;return{root:[t&&n&&{color:a.neutralTertiary},t&&{fontSize:s.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:((e={})[l_]={height:31},e)}]}}}var bA=a1(b_,function(e){var t,n,r,o,a,s,l,c,u,d,p,f,h=e.theme,m=e.className,g=e.disabled,v=e.focused,y=e.required,b=e.multiline,x=e.hasLabel,C=e.borderless,k=e.underlined,w=e.hasIcon,S=e.resizable,_=e.hasErrorMessage,E=e.inputClassName,P=e.autoAdjustHeight,T=e.hasRevealButton,D=h.semanticColors,A=h.effects,R=h.fonts,N=l0(bT,h),B={background:D.disabledBackground,color:g?D.disabledText:D.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:((t={})[l_]={background:"Window",color:g?"GrayText":"WindowText"},t)},M=[{color:D.inputPlaceholderText,opacity:1,selectors:((n={})[l_]={color:"GrayText"},n)}],F={color:D.disabledText,selectors:((r={})[l_]={color:"GrayText"},r)};return{root:[N.root,R.medium,y&&N.required,g&&N.disabled,v&&N.active,b&&N.multiline,C&&N.borderless,k&&N.underlined,cv,{position:"relative"},m],wrapper:[N.wrapper,k&&[{display:"flex",borderBottom:"1px solid ".concat(_?D.errorText:D.inputBorder),width:"100%"},g&&{borderBottomColor:D.disabledBackground,selectors:((o={})[l_]=tf({borderColor:"GrayText"},lF()),o)},!g&&{selectors:{":hover":{borderBottomColor:_?D.errorText:D.inputBorderHovered,selectors:((a={})[l_]=tf({borderBottomColor:"Highlight"},lF()),a)}}},v&&[{position:"relative"},lz(_?D.errorText:D.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[N.fieldGroup,cv,{border:"1px solid ".concat(D.inputBorder),borderRadius:A.roundedCorner2,background:D.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},b&&{minHeight:"60px",height:"auto",display:"flex"},!v&&!g&&{selectors:{":hover":{borderColor:D.inputBorderHovered,selectors:((s={})[l_]=tf({borderColor:"Highlight"},lF()),s)}}},v&&!k&&lz(_?D.errorText:D.inputFocusBorderAlt,A.roundedCorner2),g&&{borderColor:D.disabledBackground,selectors:((l={})[l_]=tf({borderColor:"GrayText"},lF()),l),cursor:"default"},C&&{border:"none"},C&&v&&{border:"none",selectors:{":after":{border:"none"}}},k&&{flex:"1 1 0px",border:"none",textAlign:"left"},k&&g&&{backgroundColor:"transparent"},_&&!k&&{borderColor:D.errorText,selectors:{"&:hover":{borderColor:D.errorText}}},!x&&y&&{selectors:((c={":before":{content:"'*'",color:D.errorText,position:"absolute",top:-5,right:-10}})[l_]={selectors:{":before":{color:"WindowText",right:-14}}},c)}],field:[R.medium,N.field,cv,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:D.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:((u={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}})[l_]={background:"Window",color:g?"GrayText":"WindowText"},u)},cC(M),b&&!S&&[N.unresizable,{resize:"none"}],b&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},b&&P&&{overflow:"hidden"},w&&!T&&{paddingRight:24},b&&w&&{paddingRight:40},g&&[{backgroundColor:D.disabledBackground,color:D.disabledText,borderColor:D.disabledBackground},cC(F)],k&&{textAlign:"left"},v&&!C&&{selectors:((d={})[l_]={paddingLeft:11,paddingRight:11},d)},v&&b&&!C&&{selectors:((p={})[l_]={paddingTop:4},p)},E],icon:[b&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:I.medium,lineHeight:18},g&&{color:D.disabledText}],description:[N.description,{color:D.bodySubtext,fontSize:R.xSmall.fontSize}],errorMessage:[N.errorMessage,ck.slideDownIn20,R.small,{color:D.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[N.prefix,B],suffix:[N.suffix,B],revealButton:[N.revealButton,"ms-Button","ms-Button--icon",lO(h,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:D.link,selectors:{":hover":{outline:0,color:D.primaryButtonBackgroundHovered,backgroundColor:D.buttonBackgroundHovered,selectors:((f={})[l_]={borderColor:"Highlight",color:"Highlight"},f)},":focus":{outline:0}}},w&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:I.medium,lineHeight:18},subComponentStyles:{label:bD(e)}}},void 0,{scope:"TextField"}),bR={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function bN(e,t){if(void 0===t&&(t=bR),!e)return[];for(var n=[],r=0,o=0;o+r<e.length;o++){var a=e.charAt(o+r);if("\\"===a)r++;else{var s=t[a];s&&n.push({displayIndex:o,format:s})}}return n}function bB(e,t,n){var r=e;if(!r)return"";r=r.replace(/\\/g,"");var o=0;t.length>0&&(o=t[0].displayIndex-1);for(var a=0,s=t;a<s.length;a++){var l=s[a],c=" ";l.value?(c=l.value,l.displayIndex>o&&(o=l.displayIndex)):n&&(c=n),r=r.slice(0,l.displayIndex)+c+r.slice(l.displayIndex+1)}return n||(r=r.slice(0,o+1)),r}function bM(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t)return e[n].displayIndex;return e[e.length-1].displayIndex}function bF(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t)return e[n].displayIndex;return e[0].displayIndex}function bO(e,t,n){for(var r=0;r<e.length;r++)if(e[r].displayIndex>=t){if(e[r].displayIndex>=t+n)break;e[r].value=void 0}return e}function bL(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t){e[n].value=void 0;break}return e}function bH(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t){e[n].value=void 0;break}return e}function bz(e,t,n){for(var r=0,o=0,a=!1,s=0;s<e.length&&r<n.length;s++)if(e[s].displayIndex>=t)for(a=!0,o=e[s].displayIndex;r<n.length;){if(e[s].format.test(n.charAt(r))){e[s].value=n.charAt(r++),s+1<e.length?o=e[s+1].displayIndex:o++;break}r++}return a?o:t}var bV="MaskedTextField",bU=function(e,t,n){ts.useImperativeHandle(e,function(){return{get value(){for(var e="",r=0;r<t.maskCharData.length;r++){if(!t.maskCharData[r].value)return;e+=t.maskCharData[r].value}return e},get selectionStart(){return n.current&&null!==n.current.selectionStart?n.current.selectionStart:-1},get selectionEnd(){return n.current&&n.current.selectionEnd?n.current.selectionEnd:-1},focus:function(){n.current&&n.current.focus()},blur:function(){n.current&&n.current.blur()},select:function(){n.current&&n.current.select()},setSelectionStart:function(e){n.current&&n.current.setSelectionStart(e)},setSelectionEnd:function(e){n.current&&n.current.setSelectionEnd(e)},setSelectionRange:function(e,t){n.current&&n.current.setSelectionRange(e,t)}}},[t,n])},bj="_";ts.forwardRef(function(e,t){var n=ts.useRef(null),r=e.componentRef,o=e.onFocus,a=e.onBlur,s=e.onMouseDown,l=e.onMouseUp,c=e.onChange,u=e.onPaste,d=e.onKeyDown,p=e.mask,f=e.maskChar,h=void 0===f?bj:f,m=e.maskFormat,g=void 0===m?bR:m,v=e.value,y=uV(function(){return{maskCharData:bN(p,g),isFocused:!1,moveCursorOnMouseUp:!1,changeSelectionData:null}}),b=ts.useState(),x=b[0],C=b[1],k=ts.useState(function(){return bB(p,y.maskCharData,h)}),w=k[0],S=k[1],_=ts.useCallback(function(e){for(var t=0,n=0;t<e.length&&n<y.maskCharData.length;){var r=e[t];y.maskCharData[n].format.test(r)&&(y.maskCharData[n].value=r,n++),t++}},[y]),E=ts.useCallback(function(e){null==o||o(e),y.isFocused=!0;for(var t=0;t<y.maskCharData.length;t++)if(!y.maskCharData[t].value){C(y.maskCharData[t].displayIndex);break}},[y,o]),P=ts.useCallback(function(e){null==a||a(e),y.isFocused=!1,y.moveCursorOnMouseUp=!0},[y,a]),I=ts.useCallback(function(e){null==s||s(e),y.isFocused||(y.moveCursorOnMouseUp=!0)},[y,s]),T=ts.useCallback(function(e){if(null==l||l(e),y.moveCursorOnMouseUp){y.moveCursorOnMouseUp=!1;for(var t=0;t<y.maskCharData.length;t++)if(!y.maskCharData[t].value){C(y.maskCharData[t].displayIndex);break}}},[y,l]),D=ts.useCallback(function(e,t){if(null===y.changeSelectionData&&n.current&&(y.changeSelectionData={changeType:"default",selectionStart:null!==n.current.selectionStart?n.current.selectionStart:-1,selectionEnd:null!==n.current.selectionEnd?n.current.selectionEnd:-1}),y.changeSelectionData){var r=0,o=y.changeSelectionData,a=o.changeType,s=o.selectionStart,l=o.selectionEnd;if("textPasted"===a){var u=l-s,d=t.length+u-w.length,f=s,m=t.substr(f,d);u&&(y.maskCharData=bO(y.maskCharData,s,u)),r=bz(y.maskCharData,f,m)}else if("delete"===a||"backspace"===a){var g="delete"===a,d=l-s;d?(y.maskCharData=bO(y.maskCharData,s,d),r=bM(y.maskCharData,s)):g?(y.maskCharData=bL(y.maskCharData,s),r=bM(y.maskCharData,s)):(y.maskCharData=bH(y.maskCharData,s),r=bF(y.maskCharData,s))}else if(t.length>w.length){var d=t.length-w.length,f=l-d,v=t.substr(f,d);r=bz(y.maskCharData,f,v)}else if(t.length<=w.length){var d=1,b=w.length+d-t.length,f=l-d,v=t.substr(f,d);y.maskCharData=bO(y.maskCharData,f,b),r=bz(y.maskCharData,f,v)}y.changeSelectionData=null;var x=bB(p,y.maskCharData,h);S(x),C(r),null==c||c(e,x)}},[w.length,y,p,h,c]),A=ts.useCallback(function(e){if(null==d||d(e),y.changeSelectionData=null,n.current&&n.current.value){var t=e.keyCode,r=e.ctrlKey,o=e.metaKey;if(!r&&!o&&(t===rY||t===ot)){var a=e.target.selectionStart,s=e.target.selectionEnd;if(!(t===rY&&s&&s>0)&&!(t===ot&&null!==a&&a<n.current.value.length))return;y.changeSelectionData={changeType:t===rY?"backspace":"delete",selectionStart:null!==a?a:-1,selectionEnd:null!==s?s:-1}}}},[y,d]),R=ts.useCallback(function(e){null==u||u(e);var t=e.target.selectionStart,n=e.target.selectionEnd;y.changeSelectionData={changeType:"textPasted",selectionStart:null!==t?t:-1,selectionEnd:null!==n?n:-1}},[y,u]);return ts.useEffect(function(){y.maskCharData=bN(p,g),void 0!==v&&_(v),S(bB(p,y.maskCharData,h))},[p,v]),a8(function(){void 0!==x&&n.current&&n.current.setSelectionRange(x,x)},[x]),ts.useEffect(function(){y.isFocused&&void 0!==x&&n.current&&n.current.setSelectionRange(x,x)}),bU(r,y,n),ts.createElement(bA,tf({},e,{elementRef:t,onFocus:E,onBlur:P,onMouseDown:I,onMouseUp:T,onChange:D,onKeyDown:A,onPaste:R,value:w||"",componentRef:n}))}).displayName=bV;var bW=oI(),bq=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=ts.createRef(),n._isAdjustingSaturation=!0,n._descriptionId=iw("ColorRectangle-description"),n._onKeyDown=function(e){var t=n.state.color,r=t.s,o=t.v,a=e.shiftKey?10:1;switch(e.which){case r9:n._isAdjustingSaturation=!1,o+=a;break;case oe:n._isAdjustingSaturation=!1,o-=a;break;case r8:n._isAdjustingSaturation=!0,r-=a;break;case r7:n._isAdjustingSaturation=!0,r+=a;break;default:return}n._updateColor(e,y8(t,yQ(r,yA),yQ(o,yN)))},n._onMouseDown=function(e){var t=u7(n.context);n._disposables.push(rd(t,"mousemove",n._onMouseMove,!0),rd(t,"mouseup",n._disposeListeners,!0)),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=bG(e,n.state.color,n._root.current);t&&n._updateColor(e,t)}},n._onTouchStart=function(e){n._root.current&&e.stopPropagation()},n._onTouchMove=function(e){if(n._root.current){var t=bG(e,n.state.color,n._root.current);t&&n._updateColor(e,t),e.preventDefault(),e.stopPropagation()}},n._disposeListeners=function(){n._disposables.forEach(function(e){return e()}),n._disposables=[]},i2(n),n.state={color:t.color},n}return tp(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&this.props.color&&this.setState({color:this.props.color})},t.prototype.componentDidMount=function(){this._root.current&&(this._root.current.addEventListener("touchstart",this._onTouchStart,{capture:!0,passive:!1}),this._root.current.addEventListener("touchmove",this._onTouchMove,{capture:!0,passive:!1}))},t.prototype.componentWillUnmount=function(){this._root.current&&(this._root.current.removeEventListener("touchstart",this._onTouchStart),this._root.current.removeEventListener("touchmove",this._onTouchMove)),this._disposeListeners()},t.prototype.render=function(){var e=this.props,t=e.minSize,n=e.theme,r=e.className,o=e.styles,a=e.ariaValueFormat,s=e.ariaLabel,l=e.ariaDescription,c=this.state.color,u=bW(o,{theme:n,className:r,minSize:t}),d=a.replace("{0}",String(c.s)).replace("{1}",String(c.v));return ts.createElement("div",{ref:this._root,tabIndex:0,className:u.root,style:{backgroundColor:y6(c)},onMouseDown:this._onMouseDown,onKeyDown:this._onKeyDown,role:"slider","aria-valuetext":d,"aria-valuenow":this._isAdjustingSaturation?c.s:c.v,"aria-valuemin":0,"aria-valuemax":yN,"aria-label":s,"aria-describedby":this._descriptionId,"data-is-focusable":!0},ts.createElement("div",{className:u.description,id:this._descriptionId},l),ts.createElement("div",{className:u.light}),ts.createElement("div",{className:u.dark}),ts.createElement("div",{className:u.thumb,style:{left:c.s+"%",top:yN-c.v+"%",backgroundColor:c.str}}))},t.prototype._updateColor=function(e,t){var n=this.props.onChange,r=this.state.color;(t.s!==r.s||t.v!==r.v)&&(n&&n(e,t),e.defaultPrevented||(this.setState({color:t}),e.preventDefault()))},t.contextType=ic,t.defaultProps={minSize:220,ariaLabel:"Saturation and brightness",ariaValueFormat:"Saturation {0} brightness {1}",ariaDescription:"Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness."},t}(ts.Component);function bG(e,t,n){var r=n.getBoundingClientRect(),o=void 0,a=e;if(a.touches){var s=a.touches[a.touches.length-1];void 0!==s.clientX&&void 0!==s.clientY&&(o={clientX:s.clientX,clientY:s.clientY})}if(!o){var l=e;void 0!==l.clientX&&void 0!==l.clientY&&(o={clientX:l.clientX,clientY:l.clientY})}if(o){var c=(o.clientX-r.left)/r.width,u=(o.clientY-r.top)/r.height;return y8(t,yQ(Math.round(c*yA),yA),yQ(Math.round(yN-u*yN),yN))}}var bK=a1(bq,function(e){var t,n,r=e.className,o=e.theme,a=e.minSize,s=o.palette,l=o.effects;return{root:["ms-ColorPicker-colorRect",{position:"relative",marginBottom:8,border:"1px solid ".concat(s.neutralLighter),borderRadius:l.roundedCorner2,minWidth:a,minHeight:a,outline:"none",selectors:((t={})[l_]=tf({},lF()),t[".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]=((n={outline:"1px solid ".concat(s.neutralSecondary)})["".concat(l_)]={outline:"2px solid CanvasText"},n),t)},r],light:["ms-ColorPicker-light",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/"}],dark:["ms-ColorPicker-dark",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to bottom, transparent 0, #000 100%)"}],thumb:["ms-ColorPicker-thumb",{position:"absolute",width:20,height:20,background:"white",border:"1px solid ".concat(s.neutralSecondaryAlt),borderRadius:"50%",boxShadow:l.elevation8,transform:"translate(-50%, -50%)",selectors:{":before":{position:"absolute",left:0,right:0,top:0,bottom:0,border:"2px solid ".concat(s.white),borderRadius:"50%",boxSizing:"border-box",content:'""'}}}],description:lV}},void 0,{scope:"ColorRectangle"}),bX=oI(),bY=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=ts.createRef(),n._onKeyDown=function(e){var t=n.value,r=n._maxValue,o=e.shiftKey?10:1;switch(e.which){case r8:t-=o;break;case r7:t+=o;break;case r6:t=0;break;case r3:t=r;break;default:return}n._updateValue(e,yQ(t,r))},n._onMouseDown=function(e){var t=nM(n);t&&n._disposables.push(rd(t,"mousemove",n._onMouseMove,!0),rd(t,"mouseup",n._disposeListeners,!0)),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=n._maxValue,r=n._root.current.getBoundingClientRect(),o=(e.clientX-r.left)/r.width,a=yQ(Math.round(o*t),t);n._updateValue(e,a)}},n._onTouchStart=function(e){n._root.current&&e.stopPropagation()},n._onTouchMove=function(e){if(n._root.current){var t=e.touches[e.touches.length-1];if(void 0!==t.clientX){var r=n._maxValue,o=n._root.current.getBoundingClientRect(),a=yQ(Math.round((t.clientX-o.left)/o.width*r),r);n._updateValue(e,a)}e.preventDefault(),e.stopPropagation()}},n._disposeListeners=function(){n._disposables.forEach(function(e){return e()}),n._disposables=[]},i2(n),rF("ColorSlider",t,{thumbColor:"styles.sliderThumb",overlayStyle:"overlayColor",isAlpha:"type",maxValue:"type",minValue:"type"}),"hue"===n._type||t.overlayColor||t.overlayStyle||rN("ColorSlider: 'overlayColor' is required when 'type' is \"alpha\" or \"transparency\""),n.state={currentValue:t.value||0},n}return tp(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.state.currentValue},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&void 0!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.componentDidMount=function(){this._root.current&&(this._root.current.addEventListener("touchstart",this._onTouchStart,{capture:!0,passive:!1}),this._root.current.addEventListener("touchmove",this._onTouchMove,{capture:!0,passive:!1}))},t.prototype.componentWillUnmount=function(){this._root.current&&(this._root.current.removeEventListener("touchstart",this._onTouchStart),this._root.current.removeEventListener("touchmove",this._onTouchMove)),this._disposeListeners()},t.prototype.render=function(){var e=this._type,t=this._maxValue,n=this.props,r=n.overlayStyle,o=n.overlayColor,a=n.theme,s=n.className,l=n.styles,c=n.ariaLabel,u=void 0===c?e:c,d=this.value,p=bX(l,{theme:a,className:s,type:e}),f=100*d/t;return ts.createElement("div",{ref:this._root,className:p.root,tabIndex:0,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,role:"slider","aria-valuenow":d,"aria-valuetext":String(d),"aria-valuemin":0,"aria-valuemax":t,"aria-label":u,"data-is-focusable":!0},!!(o||r)&&ts.createElement("div",{className:p.sliderOverlay,style:o?{background:"transparency"===e?"linear-gradient(to right, #".concat(o,", transparent)"):"linear-gradient(to right, transparent, #".concat(o,")")}:r}),ts.createElement("div",{className:p.sliderThumb,style:{left:f+"%"}}))},Object.defineProperty(t.prototype,"_type",{get:function(){var e=this.props,t=e.isAlpha,n=e.type;return void 0===n?t?"alpha":"hue":n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_maxValue",{get:function(){return"hue"===this._type?yR:yM},enumerable:!1,configurable:!0}),t.prototype._updateValue=function(e,t){if(t!==this.value){var n=this.props.onChange;n&&n(e,t),e.defaultPrevented||(this.setState({currentValue:t}),e.preventDefault())}},t.defaultProps={value:0},t}(ts.Component),b$={background:"linear-gradient(".concat("to left,red 0,#f09 10%,#cd00ff 20%,#3200ff 30%,#06f 40%,#00fffd 50%,#0f6 60%,#35ff00 70%,#cdff00 80%,#f90 90%,red 100%",")")},bQ={backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},bJ=a1(bY,function(e){var t,n,r=e.theme,o=e.className,a=e.type,s=void 0===a?"hue":a,l=e.isAlpha,c=void 0===l?"hue"!==s:l,u=r.palette,d=r.effects;return{root:["ms-ColorPicker-slider",{position:"relative",height:20,marginBottom:8,border:"1px solid ".concat(u.neutralLight),borderRadius:d.roundedCorner2,boxSizing:"border-box",outline:"none",forcedColorAdjust:"none",selectors:((t={})[".".concat(i7," &:focus")]=((n={outline:"1px solid ".concat(u.neutralSecondary)})["".concat(l_)]={outline:"2px solid CanvasText"},n),t)},c?bQ:b$,o],sliderOverlay:["ms-ColorPicker-sliderOverlay",{content:"",position:"absolute",left:0,right:0,top:0,bottom:0}],sliderThumb:["ms-ColorPicker-thumb","is-slider",{position:"absolute",width:20,height:20,background:"white",border:"1px solid ".concat(u.neutralSecondaryAlt),borderRadius:"50%",boxShadow:d.elevation8,transform:"translate(-50%, -50%)",top:"50%",forcedColorAdjust:"auto"}]}},void 0,{scope:"ColorSlider"}),bZ=oI(),b0=["hex","r","g","b","a","t"],b1={hex:"hexError",r:"redError",g:"greenError",b:"blueError",a:"alphaError",t:"transparencyError"};function b2(e){var t=e.color;return"string"==typeof t?y3(t):t}a1(function(e){function t(n){var r=e.call(this,n)||this;r._onSVChanged=function(e,t){r._updateColor(e,t)},r._onHChanged=function(e,t){r._updateColor(e,y9(r.state.color,t))},r._onATChanged=function(e,t){var n="transparency"===r.props.alphaType?bb:y7;r._updateColor(e,n(r.state.color,Math.round(t)))},r._onBlur=function(e){var t,n=r.state,o=n.color,a=n.editingColor;if(a){var s=a.value,l=a.component,c="hex"===l,u="a"===l,d="t"===l,p=c?yF:yL;if(s.length>=p&&(c||!isNaN(Number(s)))){var f=void 0;f=c?y3("#"+bt(s)):u||d?(u?y7:bb)(o,yQ(Number(s),yM)):y4(be(tf(tf({},o),((t={})[l]=Number(s),t)))),r._updateColor(e,f)}else r.setState({editingColor:void 0})}},i2(r);var o=n.strings;rF("ColorPicker",n,{hexLabel:"strings.hex",redLabel:"strings.red",greenLabel:"strings.green",blueLabel:"strings.blue",alphaLabel:"strings.alpha",alphaSliderHidden:"alphaType"}),o.hue&&rN("ColorPicker property 'strings.hue' was used but has been deprecated. Use 'strings.hueAriaLabel' instead."),r.state={color:b2(n)||y3("#ffffff")},r._textChangeHandlers={};for(var a=0,s=b0;a<s.length;a++){var l=s[a];r._textChangeHandlers[l]=r._onTextChange.bind(r,l)}var c=t.defaultProps.strings;return r._textLabels={r:n.redLabel||o.red||c.red,g:n.greenLabel||o.green||c.green,b:n.blueLabel||o.blue||c.blue,a:n.alphaLabel||o.alpha||c.alpha,hex:n.hexLabel||o.hex||c.hex,t:o.transparency||c.transparency},r._strings=tf(tf(tf({},c),{alphaAriaLabel:r._textLabels.a,transparencyAriaLabel:r._textLabels.t}),o),r}return tp(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(e!==this.props){var n=b2(this.props);n&&this._updateColor(void 0,n)}},t.prototype.render=function(){var e=this,t=this.props,n=this._strings,r=this._textLabels,o=t.theme,a=t.className,s=t.styles,l=t.alphaType,c=t.alphaSliderHidden,u=void 0===c?"none"===l:c,d=t.tooltipProps,p=this.state.color,f="transparency"===l,h=["hex","r","g","b",f?"t":"a"],m=f?p.t:p.a,g=f?r.t:r.a,v=bZ(s,{theme:o,className:a,alphaType:l}),y=[r.r,p.r,r.g,p.g,r.b,p.b];u||"number"!=typeof m||y.push(g,"".concat(m,"%"));var b=n.rootAriaLabelFormat.replace("{0}",y.join(" "));return ts.createElement("div",{className:v.root,role:"group","aria-label":b},ts.createElement("div",{className:v.panel},ts.createElement(bK,{color:p,onChange:this._onSVChanged,ariaLabel:n.svAriaLabel,ariaDescription:n.svAriaDescription,ariaValueFormat:n.svAriaValueFormat,className:v.colorRectangle}),ts.createElement("div",{className:v.flexContainer},ts.createElement("div",{className:v.flexSlider},ts.createElement(bJ,{className:"is-hue",type:"hue",ariaLabel:n.hue||n.hueAriaLabel,value:p.h,onChange:this._onHChanged}),!u&&ts.createElement(bJ,{className:"is-alpha",type:l,ariaLabel:f?n.transparencyAriaLabel:n.alphaAriaLabel,overlayColor:p.hex,value:m,onChange:this._onATChanged})),t.showPreview&&ts.createElement("div",{className:v.flexPreviewBox},ts.createElement("div",{className:v.colorSquare+" is-preview",style:{backgroundColor:p.str}}))),ts.createElement("table",{className:v.table,role:"group",cellPadding:"0",cellSpacing:"0"},ts.createElement("thead",null,ts.createElement("tr",{className:v.tableHeader},ts.createElement("td",{className:v.tableHexCell},r.hex),ts.createElement("td",null,r.r),ts.createElement("td",null,r.g),ts.createElement("td",null,r.b),!u&&ts.createElement("td",{className:v.tableAlphaCell},g))),ts.createElement("tbody",null,ts.createElement("tr",null,h.map(function(t){if(("a"===t||"t"===t)&&u)return null;var n=e._getTooltipValue(t);return ts.createElement("td",{key:t},ts.createElement(d8,tf({content:n,directionalHint:cU,role:"alert"},d),ts.createElement(bA,{className:v.input,onChange:e._textChangeHandlers[t],onBlur:e._onBlur,value:e._getDisplayValue(t),spellCheck:!1,ariaLabel:r[t],autoComplete:"off",invalid:!!n})))}))))),ts.createElement(ac,null))},t.prototype._getDisplayValue=function(e){var t=this.state,n=t.color,r=t.editingColor;return r&&r.component===e?r.value:"hex"===e?n[e]||"":"number"!=typeof n[e]||isNaN(n[e])?"":String(n[e])},t.prototype._getTooltipValue=function(e){var t=this.state.editingColor;if(t&&t.component===e){var n=t.value;if("hex"!==e||!(n.length>=yF)||!(n.length<=yO)){var r=b1[e];return this._strings[r]}}},t.prototype._onTextChange=function(e,t,n){var r,o,a=this.state.color,s="hex"===e,l="a"===e,c="t"===e;if(n=(n||"").substr(0,s?yO:yH),(s?yz:yV).test(n))if(o=""!==n&&(s?n.length===yO:l||c?Number(n)<=yM:Number(n)<=yB))if(String(a[e])===n)this.state.editingColor&&this.setState({editingColor:void 0});else{var u=s?y3("#"+n):c?bb(a,Number(n)):y4(tf(tf({},a),((r={})[e]=Number(n),r)));this._updateColor(t,u)}else this.setState({editingColor:{component:e,value:n}})},t.prototype._updateColor=function(e,t){if(t){var n=this.state,r=n.color,o=n.editingColor,a=t.h!==r.h||t.str!==r.str;if(a||o){if(e&&this.props.onChange&&(this.props.onChange(e,t),e.defaultPrevented))return;this.setState({color:t,editingColor:void 0})}}},t.defaultProps={alphaType:"alpha",strings:{rootAriaLabelFormat:"Color picker, {0} selected.",hex:"Hex",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",transparency:"Transparency",hueAriaLabel:"Hue",svAriaLabel:bq.defaultProps.ariaLabel,svAriaValueFormat:bq.defaultProps.ariaValueFormat,svAriaDescription:bq.defaultProps.ariaDescription,hexError:"Hex values must be between 3 and 6 characters long",alphaError:"Alpha must be between 0 and 100",transparencyError:"Transparency must be between 0 and 100",redError:"Red must be between 0 and 255",greenError:"Green must be between 0 and 255",blueError:"Blue must be between 0 and 255"}},t}(ts.Component),function(e){var t=e.className,n=e.theme,r=e.alphaType;return{root:["ms-ColorPicker",n.fonts.medium,{position:"relative",maxWidth:300},t],panel:["ms-ColorPicker-panel",{padding:"16px"}],table:["ms-ColorPicker-table",{tableLayout:"fixed",width:"100%",selectors:{"tbody td:last-of-type .ms-ColorPicker-input":{paddingRight:0}}}],tableHeader:[n.fonts.small,{selectors:{td:{paddingBottom:4}}}],tableHexCell:{width:"25%"},tableAlphaCell:"transparency"===r&&{width:"22%"},colorSquare:["ms-ColorPicker-colorSquare",{width:48,height:48,margin:"0 0 0 8px",border:"1px solid #c8c6c4",forcedColorAdjust:"none"}],flexContainer:{display:"flex"},flexSlider:{flexGrow:"1"},flexPreviewBox:{flexGrow:"0"},input:["ms-ColorPicker-input",{width:"100%",border:"none",boxSizing:"border-box",height:30,selectors:{"&.ms-TextField":{paddingRight:4},"& .ms-TextField-field":{minWidth:"auto",padding:5,textOverflow:"clip"}}}]}},void 0,{scope:"ColorPicker"});var b5=32,b4=30,b3=32,b6=36,b8=oL(function(e){var t,n=e.semanticColors;return{backgroundColor:n.disabledBackground,color:n.disabledText,cursor:"default",selectors:((t={":after":{borderColor:n.disabledBackground}})[l_]={color:"GrayText",selectors:{":after":{borderColor:"GrayText"}}},t)}}),b9={selectors:((ef={})[l_]=tf({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},lF()),ef)},b7={selectors:((eh={})[l_]=tf({color:"WindowText",backgroundColor:"Window"},lF()),eh)},xe=oL(function(e,t,n,r,o,a){var s,l=e.palette,c=e.semanticColors,u={textHoveredColor:c.menuItemTextHovered,textSelectedColor:l.neutralDark,textDisabledColor:c.disabledText,backgroundHoveredColor:c.menuItemBackgroundHovered,backgroundPressedColor:c.menuItemBackgroundPressed};return nx({root:[e.fonts.medium,{backgroundColor:r?u.backgroundHoveredColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:o?"none":"block",width:"100%",height:"auto",minHeight:b6,lineHeight:"20px",padding:"0 8px",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",selectors:tf(tf(((s={})[l_]={border:"none",borderColor:"Background"},s),!o&&{"&.ms-Checkbox":{display:"flex",alignItems:"center"}}),{"&.ms-Button--command:hover:active":{backgroundColor:u.backgroundPressedColor},".ms-Checkbox-label":{width:"100%"}})},a?[{backgroundColor:"transparent",color:u.textSelectedColor,selectors:{":hover":[{backgroundColor:u.backgroundHoveredColor},b9]}},lO(e,{inset:-1,isFocusedOnly:!1}),b9]:[]],rootHovered:{backgroundColor:u.backgroundHoveredColor,color:u.textHoveredColor},rootFocused:{backgroundColor:u.backgroundHoveredColor},rootDisabled:{color:u.textDisabledColor,cursor:"default"},optionText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:"0px",maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",display:"inline-block"},optionTextWrapper:{maxWidth:"100%",display:"flex",alignItems:"center"}},t,n)}),xt=oL(function(e,t){var n,r,o=e.semanticColors,a=e.fonts,s={buttonTextColor:o.bodySubtext,buttonTextHoveredCheckedColor:o.buttonTextChecked,buttonBackgroundHoveredColor:o.listItemBackgroundHovered,buttonBackgroundCheckedColor:o.listItemBackgroundChecked,buttonBackgroundCheckedHoveredColor:o.listItemBackgroundCheckedHovered},l={selectors:((n={})[l_]=tf({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},lF()),n)};return nx({root:{color:s.buttonTextColor,fontSize:a.small.fontSize,position:"absolute",top:0,height:"100%",lineHeight:b4,width:b3,textAlign:"center",cursor:"default",selectors:((r={})[l_]=tf({backgroundColor:"ButtonFace",borderColor:"ButtonText",color:"ButtonText"},lF()),r)},icon:{fontSize:a.small.fontSize},rootHovered:[{backgroundColor:s.buttonBackgroundHoveredColor,color:s.buttonTextHoveredCheckedColor,cursor:"pointer"},l],rootPressed:[{backgroundColor:s.buttonBackgroundCheckedColor,color:s.buttonTextHoveredCheckedColor},l],rootChecked:[{backgroundColor:s.buttonBackgroundCheckedColor,color:s.buttonTextHoveredCheckedColor},l],rootCheckedHovered:[{backgroundColor:s.buttonBackgroundCheckedHoveredColor,color:s.buttonTextHoveredCheckedColor},l],rootDisabled:[b8(e),{position:"absolute"}]},t)}),xn=oL(function(e,t,n){var r,o,a,s,l,c,u=e.semanticColors,d=e.fonts,p=e.effects,f={textColor:u.inputText,borderColor:u.inputBorder,borderHoveredColor:u.inputBorderHovered,borderPressedColor:u.inputFocusBorderAlt,borderFocusedColor:u.inputFocusBorderAlt,backgroundColor:u.inputBackground,erroredColor:u.errorText},h={headerTextColor:u.menuHeader,dividerBorderColor:u.bodyDivider},m={selectors:((r={})[l_]={color:"GrayText"},r)},g=[{color:u.inputPlaceholderText},m],v=[{color:u.inputTextHovered},m],y=[{color:u.disabledText},m],b=tf(tf({color:"HighlightText",backgroundColor:"Window"},lF()),{selectors:{":after":{borderColor:"Highlight"}}}),x=lz(f.borderPressedColor,p.roundedCorner2,"border",0);return nx({container:{},label:{},labelDisabled:{},root:[e.fonts.medium,{boxShadow:"none",marginLeft:"0",paddingRight:b3,paddingLeft:9,color:f.textColor,position:"relative",outline:"0",userSelect:"none",backgroundColor:f.backgroundColor,cursor:"text",display:"block",height:b5,whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",selectors:{".ms-Label":{display:"inline-block",marginBottom:"8px"},"&.is-open":{selectors:((o={})[l_]=b,o)},":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:f.borderColor,borderRadius:p.roundedCorner2}}}],rootHovered:{selectors:((a={":after":{borderColor:f.borderHoveredColor},".ms-ComboBox-Input":[{color:u.inputTextHovered},cC(v),b7]})[l_]=tf(tf({color:"HighlightText",backgroundColor:"Window"},lF()),{selectors:{":after":{borderColor:"Highlight"}}}),a)},rootPressed:[{position:"relative",selectors:((s={})[l_]=b,s)}],rootFocused:[{selectors:((l={".ms-ComboBox-Input":[{color:u.inputTextHovered},b7]})[l_]=b,l)},x],rootDisabled:b8(e),rootError:{selectors:{":after":{borderColor:f.erroredColor},":hover:after":{borderColor:u.inputBorderHovered}}},rootDisallowFreeForm:{},input:[cC(g),{backgroundColor:f.backgroundColor,color:f.textColor,boxSizing:"border-box",width:"100%",height:"100%",borderStyle:"none",outline:"none",font:"inherit",textOverflow:"ellipsis",padding:"0",selectors:{"::-ms-clear":{display:"none"}}},b7],inputDisabled:[b8(e),cC(y)],errorMessage:[e.fonts.small,{color:f.erroredColor,marginTop:"5px"}],callout:{boxShadow:p.elevation8},optionsContainerWrapper:{width:n},optionsContainer:{display:"block"},screenReaderText:lV,header:[d.medium,{fontWeight:P.semibold,color:h.headerTextColor,backgroundColor:"none",borderStyle:"none",height:b6,lineHeight:b6,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:((c={})[l_]=tf({color:"GrayText"},lF()),c)}],divider:{height:1,backgroundColor:h.dividerBorderColor}},t)}),xr=oL(function(e,t,n,r,o,a,s,l){return{container:ny(e.__shadowConfig__,"ms-ComboBox-container",t,e.container),label:ny(e.__shadowConfig__,e.label,r&&e.labelDisabled),root:ny(e.__shadowConfig__,"ms-ComboBox",l?e.rootError:n&&"is-open",o&&"is-required",e.root,!s&&e.rootDisallowFreeForm,l&&!a?e.rootError:!r&&a&&e.rootFocused,!r&&{selectors:{":hover":l?e.rootError:!n&&!a&&e.rootHovered,":active":l?e.rootError:e.rootPressed,":focus":l?e.rootError:e.rootFocused}},r&&["is-disabled",e.rootDisabled]),input:ny(e.__shadowConfig__,"ms-ComboBox-Input",e.input,r&&e.inputDisabled),errorMessage:ny(e.__shadowConfig__,e.errorMessage),callout:ny(e.__shadowConfig__,"ms-ComboBox-callout",e.callout),optionsContainerWrapper:ny(e.__shadowConfig__,"ms-ComboBox-optionsContainerWrapper",e.optionsContainerWrapper),optionsContainer:ny(e.__shadowConfig__,"ms-ComboBox-optionsContainer",e.optionsContainer),header:ny(e.__shadowConfig__,"ms-ComboBox-header",e.header),divider:ny(e.__shadowConfig__,"ms-ComboBox-divider",e.divider),screenReaderText:ny(e.__shadowConfig__,e.screenReaderText)}}),xo=oL(function(e){return{optionText:ny(e.__shadowConfig__,"ms-ComboBox-optionText",e.optionText),root:ny(e.__shadowConfig__,"ms-ComboBox-option",e.root,{selectors:{":hover":e.rootHovered,":focus":e.rootFocused,":active":e.rootPressed}}),optionTextWrapper:ny(e.__shadowConfig__,e.optionTextWrapper)}});function xi(e,t){for(var n=[],r=0,o=t;r<o.length;r++){var a=e[o[r]];a&&n.push(a)}return n}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.SelectAll=3]="SelectAll"}(em||(em={})),function(e){e[e.backward=-1]="backward",e[e.none=0]="none",e[e.forward=1]="forward"}(eg||(eg={})),function(e){e[e.clearAll=-2]="clearAll",e[e.default=-1]="default"}(ev||(ev={}));var xa=250,xs=500,xl=1e3,xc=ts.memo(function(e){return(0,e.render)()},function(e,t){e.render;var n=th(e,["render"]);return t.render,rp(n,th(t,["render"]))}),xu="ComboBox",xd={options:[],allowFreeform:!1,allowParentArrowNavigation:!1,autoComplete:"on",buttonIconProps:{iconName:"ChevronDown"}};function xp(e){var t=e.options,n=e.defaultSelectedKey,r=e.selectedKey,o=ts.useState(function(){return xg(t,xv(n,r))}),a=o[0],s=o[1],l=ts.useState(t),c=l[0],u=l[1],d=ts.useState(),p=d[0],f=d[1];return ts.useEffect(function(){void 0!==r&&s(xg(t,xy(r))),u(t)},[t,r]),ts.useEffect(function(){null===r&&f(void 0)},[r]),[a,s,c,u,p,f]}var xf=ts.forwardRef(function(e,t){var n=a4(xd,e),r=(n.ref,th(n,["ref"])),o=ts.useRef(null),a=uG(o,t),s=xp(r),l=s[0],c=s[1],u=s[2],d=s[3],p=s[4],f=s[5];return ts.createElement(xm,tf({},r,{hoisted:{mergedRootRef:a,rootRef:o,selectedIndices:l,setSelectedIndices:c,currentOptions:u,setCurrentOptions:d,suggestedDisplayValue:p,setSuggestedDisplayValue:f}}))});function xh(e,t){for(var n=nW(e),r=0;r<n.length;r++){var o=n[r];if(t(o))return o;var a=xh(o,t);if(a)return a}return null}xf.displayName=xu;var xm=function(e){function t(t){var n=e.call(this,t)||this;return n._autofill=ts.createRef(),n._comboBoxWrapper=ts.createRef(),n._comboBoxMenu=ts.createRef(),n._selectedElement=ts.createRef(),n._overrideScrollDismiss=!1,n.focus=function(e,t){!n.props.disabled&&(n._autofill.current&&(t?ra(n._autofill.current):n._autofill.current.focus(),e&&n.setState({isOpen:!0})),n._hasFocus()||n.setState({focusState:"focused"}))},n.dismissMenu=function(){n.state.isOpen&&n.setState({isOpen:!1})},n._onUpdateValueInAutofillWillReceiveProps=function(){var e=n._autofill.current;return e&&null!==e.value&&void 0!==e.value?xb(n._currentVisibleValue):null},n._renderComboBoxWrapper=function(e,t){var r=n.props,o=r.label,a=r.disabled,s=r.ariaLabel,l=r.ariaDescribedBy,c=void 0===l?n.props["aria-describedby"]:l,u=r.required,d=r.errorMessage,p=r.buttonIconProps,f=r.isButtonAriaHidden,h=r.title,m=r.placeholder,g=r.tabIndex,v=r.autofill,y=r.iconButtonProps,b=r.hoisted.suggestedDisplayValue,x=n.state,C=x.ariaActiveDescendantValue,k=x.isOpen,w=n._hasFocus()&&n.props.multiSelect&&e?e:m,S={"aria-labelledby":[n.props["aria-labelledby"],o&&n._id+"-label"].join(" ").trim()||void 0,"aria-label":s&&!o?s:void 0};return ts.createElement("div",{"data-ktp-target":!0,ref:n._comboBoxWrapper,id:n._id+"wrapper",className:n._classNames.root,"aria-owns":k?n._id+"-list":void 0},ts.createElement(p0,tf({"data-ktp-execute-target":!0,"data-is-interactable":!a,componentRef:n._autofill,id:n._id+"-input",className:n._classNames.input,type:"text",onFocus:n._onFocus,onBlur:n._onBlur,onKeyDown:n._onInputKeyDown,onKeyUp:n._onInputKeyUp,onClick:n._onAutofillClick,onTouchStart:n._onTouchStart,onInputValueChange:n._onInputChange,"aria-expanded":k,"aria-autocomplete":n._getAriaAutoCompleteValue(),role:"combobox",readOnly:a},S,{"aria-describedby":void 0!==d?od(c,t):c,"aria-activedescendant":C,"aria-required":u,"aria-disabled":a,"aria-controls":k?n._id+"-list":void 0,spellCheck:!1,defaultVisibleValue:n._currentVisibleValue,suggestedDisplayValue:b,updateValueInWillReceiveProps:n._onUpdateValueInAutofillWillReceiveProps,shouldSelectFullInputValueInComponentDidUpdate:n._onShouldSelectFullInputValueInAutofillComponentDidUpdate,title:h,preventValueSelection:!n._hasFocus(),placeholder:w,tabIndex:a?-1:g},v)),ts.createElement(mn,tf({className:"ms-ComboBox-CaretDown-button",styles:n._getCaretButtonStyles(),role:f?"presentation":void 0,"aria-hidden":f},f?void 0:S,{"data-is-focusable":!1,tabIndex:-1,onClick:n._onComboBoxClick,onBlur:n._onBlur,iconProps:p,disabled:a,checked:k},y)))},n._onShouldSelectFullInputValueInAutofillComponentDidUpdate=function(){return n._currentVisibleValue===n.props.hoisted.suggestedDisplayValue},n._getVisibleValue=function(){var e=n.props,t=e.text,r=e.allowFreeform,o=e.allowFreeInput,a=e.autoComplete,s=e.hoisted,l=s.suggestedDisplayValue,c=s.selectedIndices,u=s.currentOptions,d=n.state,p=d.currentPendingValueValidIndex,f=d.currentPendingValue,h=d.isOpen,m=xx(u,p);if(!(h&&m)&&(t||""===t)&&null==f)return t;if(n.props.multiSelect)if(!n._hasFocus())return n._getMultiselectDisplayString(c,u,l);else{var g=-1;return"on"===a&&m&&(g=p),n._getPendingString(f,u,g)}var g=n._getFirstSelectedIndex();return r||o?("on"===a&&m&&(g=p),n._getPendingString(f,u,g)):m&&"on"===a?(g=p,xb(f)):!n.state.isOpen&&f?xx(u,g)?f:xb(l):xx(u,g)?xw(u[g]):xb(l)},n._onInputChange=function(e){n.props.disabled?n._handleInputWhenDisabled(null):(n.props.onInputValueChange&&n.props.onInputValueChange(e),n.props.allowFreeform||n.props.allowFreeInput?n._processInputChangeWithFreeform(e):n._processInputChangeWithoutFreeform(e))},n._onFocus=function(){var e,t;null==(t=null==(e=n._autofill.current)?void 0:e.inputElement)||t.select(),n._hasFocus()||n.setState({focusState:"focusing"})},n._onResolveOptions=function(){if(n.props.onResolveOptions){var e=n.props.onResolveOptions(tg([],n.props.hoisted.currentOptions,!0));Array.isArray(e)?n.props.hoisted.setCurrentOptions(e):e&&e.then&&(n._currentPromise=e,e.then(function(t){e===n._currentPromise&&n.props.hoisted.setCurrentOptions(t)}))}},n._onBlur=function(e){var t,r,o=u9(n.context),a=e.relatedTarget;if(null===e.relatedTarget&&(a=null==o?void 0:o.activeElement),a){var s=null==(t=n.props.hoisted.rootRef.current)?void 0:t.contains(a),l=null==(r=n._comboBoxMenu.current)?void 0:r.contains(a),c=n._comboBoxMenu.current&&nV(n._comboBoxMenu.current,function(e){return e===a},o);if(s||l||c){c&&n._hasFocus()&&(!n.props.multiSelect||n.props.allowFreeform)&&n._submitPendingValue(e),e.preventDefault(),e.stopPropagation();return}}n._hasFocus()&&(n.setState({focusState:"none"}),(!n.props.multiSelect||n.props.allowFreeform)&&n._submitPendingValue(e))},n._onRenderContainer=function(e,t){var r=e.onRenderList,o=e.calloutProps,a=e.dropdownWidth,s=e.dropdownMaxWidth,l=e.onRenderUpperContent,c=void 0===l?n._onRenderUpperContent:l,u=e.onRenderLowerContent,d=void 0===u?n._onRenderLowerContent:u,p=e.useComboBoxAsMenuWidth,f=e.persistMenu,h=e.shouldRestoreFocus,m=void 0===h||h,g=n.state.isOpen,v=n._id,y=p&&n._comboBoxWrapper.current?n._comboBoxWrapper.current.clientWidth+2:void 0;return ts.createElement(d$,tf({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHint:cV,directionalHintFixed:!1},o,{onLayerMounted:n._onLayerMounted,className:oG(n._classNames.callout,null==o?void 0:o.className),target:n._comboBoxWrapper.current,onDismiss:n._onDismiss,onMouseDown:n._onCalloutMouseDown,onScroll:n._onScroll,setInitialFocus:!1,calloutWidth:p&&n._comboBoxWrapper.current?y&&y:a,calloutMaxWidth:s||y,hidden:f?!g:void 0,shouldRestoreFocus:m,preventDismissOnEvent:function(e){return n._preventDismissOnScrollOrResize(e)}}),c(n.props,n._onRenderUpperContent),ts.createElement("div",{className:n._classNames.optionsContainerWrapper,ref:n._comboBoxMenu},null==r?void 0:r(tf(tf({},e),{id:v}),n._onRenderList)),d(n.props,n._onRenderLowerContent))},n._onLayerMounted=function(){n._onCalloutLayerMounted(),n._async.setTimeout(function(){n._scrollIntoView()},0),n.props.calloutProps&&n.props.calloutProps.onLayerMounted&&n.props.calloutProps.onLayerMounted()},n._onRenderLabel=function(e){var t=e.props,r=t.label,o=t.disabled,a=t.required;return r?ts.createElement(vI,{id:n._id+"-label",disabled:o,required:a,className:n._classNames.label},r,e.multiselectAccessibleText&&ts.createElement("span",{className:n._classNames.screenReaderText},e.multiselectAccessibleText)):null},n._onRenderList=function(e){var t=e.onRenderItem,r=void 0===t?n._onRenderItem:t,o=e.label,a=e.ariaLabel,s=e.multiSelect,l={items:[]},c=[],u=function(){var e=l.id?[ts.createElement("div",{role:"group",key:l.id,"aria-labelledby":l.id},l.items)]:l.items;c=tg(tg([],c,!0),e,!0),l={items:[]}},d=function(e,t){switch(e.itemType){case em.Header:l.items.length>0&&u();var o=n._id+e.key;l.items.push(r(tf(tf({id:o},e),{index:t}),n._onRenderItem)),l.id=o;break;case em.Divider:t>0&&l.items.push(r(tf(tf({},e),{index:t}),n._onRenderItem)),l.items.length>0&&u();break;default:l.items.push(r(tf(tf({},e),{index:t}),n._onRenderItem))}};e.options.forEach(function(e,t){d(e,t)}),l.items.length>0&&u();var p=n._id;return ts.createElement("div",{id:p+"-list",className:n._classNames.optionsContainer,"aria-labelledby":o&&p+"-label","aria-label":a&&!o?a:void 0,"aria-multiselectable":s?"true":void 0,role:"listbox"},c)},n._onRenderItem=function(e){switch(e.itemType){case em.Divider:return n._renderSeparator(e);case em.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._onRenderLowerContent=function(){return null},n._onRenderUpperContent=function(){return null},n._renderOption=function(e){var t,r=n.props.onRenderOption,o=void 0===r?n._onRenderOptionContent:r,a=null!=(t=e.id)?t:n._id+"-list"+e.index,s=n._isOptionSelected(e.index),l=n._isOptionChecked(e.index),c=n._isOptionIndeterminate(e.index),u=n._getCurrentOptionStyles(e),d=xo(u),p=e.title,f=function(){return n.props.multiSelect?ts.createElement(vE,{id:a,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabel?void 0:a+"-label",key:e.key,styles:u,className:"ms-ComboBox-option",onChange:n._onItemClick(e),label:e.text,checked:l,indeterminate:c,title:p,disabled:e.disabled,onRenderLabel:n._renderCheckboxLabel.bind(n,tf(tf({},e),{id:a+"-label"})),inputProps:tf({"aria-selected":l?"true":"false",role:"option"},{"data-index":e.index,"data-is-focusable":!0})}):ts.createElement(ma,{id:a,key:e.key,"data-index":e.index,styles:u,checked:s,className:"ms-ComboBox-option",onClick:n._onItemClick(e),onMouseEnter:n._onOptionMouseEnter.bind(n,e.index),onMouseMove:n._onOptionMouseMove.bind(n,e.index),onMouseLeave:n._onOptionMouseLeave,role:"option","aria-selected":s?"true":"false",ariaLabel:e.ariaLabel,disabled:e.disabled,title:p},ts.createElement("span",{className:d.optionTextWrapper,ref:s?n._selectedElement:void 0},o(e,n._onRenderOptionContent)))};return ts.createElement(xc,{key:e.key,index:e.index,disabled:e.disabled,isSelected:s,isChecked:l,isIndeterminate:c,text:e.text,render:f,data:e.data})},n._onCalloutMouseDown=function(e){e.preventDefault()},n._onScroll=function(){var e;n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(n._async.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),(null==(e=n.props.calloutProps)?void 0:e.onScroll)&&n.props.calloutProps.onScroll(),n._scrollIdleTimeoutId=n._async.setTimeout(function(){n._isScrollIdle=!0},xa)},n._onRenderOptionContent=function(e){var t=xo(n._getCurrentOptionStyles(e));return ts.createElement("span",{className:t.optionText},e.text)},n._onRenderMultiselectOptionContent=function(e){var t=xo(n._getCurrentOptionStyles(e));return ts.createElement("span",{id:e.id,"aria-hidden":"true",className:t.optionText},e.text)},n._onDismiss=function(){var e=n.props.onMenuDismiss;e&&e(),n.props.persistMenu&&n._onCalloutLayerMounted(),n._setOpenStateAndFocusOnClose(!1,!1),n._resetSelectedIndex()},n._onAfterClearPendingInfo=function(){n._processingClearPendingInfo=!1},n._onInputKeyDown=function(e){var t=n.props,r=t.disabled,o=t.allowFreeform,a=t.allowFreeInput,s=t.allowParentArrowNavigation,l=t.autoComplete,c=t.hoisted.currentOptions,u=n.state,d=u.isOpen,p=u.currentPendingValueValidIndexOnHover;if(n._lastKeyDownWasAltOrMeta=xS(e),r)return void n._handleInputWhenDisabled(e);var f=n._getPendingSelectedIndex(!1);switch(e.which){case rQ:n._autofill.current&&n._autofill.current.inputElement&&n._autofill.current.inputElement.select(),n._submitPendingValue(e),n.props.multiSelect&&d?n.setState({currentPendingValueValidIndex:f}):(d||(!o||void 0===n.state.currentPendingValue||null===n.state.currentPendingValue||n.state.currentPendingValue.length<=0)&&n.state.currentPendingValueValidIndex<0)&&n.setState({isOpen:!d});break;case r$:n.props.multiSelect||n._submitPendingValue(e),d&&n._setOpenStateAndFocusOnClose(!d,!1);return;case r1:if(n._resetSelectedIndex(),!d)return;n.setState({isOpen:!1});break;case r9:if(p===ev.clearAll&&(f=n.props.hoisted.currentOptions.length),e.altKey||e.metaKey){if(d){n._setOpenStateAndFocusOnClose(!d,!0);break}return}e.preventDefault(),n._setPendingInfoFromIndexAndDirection(f,eg.backward);break;case oe:e.altKey||e.metaKey?n._setOpenStateAndFocusOnClose(!0,!0):(p===ev.clearAll&&(f=-1),e.preventDefault(),n._setPendingInfoFromIndexAndDirection(f,eg.forward));break;case r6:case r3:if(o||a)return;f=-1;var h=eg.forward;e.which===r3&&(f=c.length,h=eg.backward),n._setPendingInfoFromIndexAndDirection(f,h);break;case r2:if(!o&&!a&&"off"===l)break;default:if(e.which>=112&&e.which<=123||e.keyCode===r0||"Meta"===e.key||s&&(e.keyCode===r8||e.keyCode===r7))return;if(!o&&!a&&"on"===l){n._onInputChange(e.key);break}return}e.stopPropagation(),e.preventDefault()},n._onInputKeyUp=function(e){var t=n.props,r=t.disabled,o=t.allowFreeform,a=t.allowFreeInput,s=t.autoComplete,l=n.state.isOpen,c=n._lastKeyDownWasAltOrMeta&&xS(e);n._lastKeyDownWasAltOrMeta=!1;var u=c&&!(aM()||aA());if(r)return void n._handleInputWhenDisabled(e);if(e.which===r2){o||a||"off"!==s||n._setOpenStateAndFocusOnClose(!l,!!l);return}u&&l?n._setOpenStateAndFocusOnClose(!l,!0):("focusing"===n.state.focusState&&n.props.openOnKeyboardFocus&&n.setState({isOpen:!0}),"focused"!==n.state.focusState&&n.setState({focusState:"focused"}))},n._onOptionMouseLeave=function(){n._shouldIgnoreMouseEvent()||(!n.props.persistMenu||n.state.isOpen)&&n.setState({currentPendingValueValidIndexOnHover:ev.clearAll})},n._onComboBoxClick=function(){var e=n.props.disabled,t=n.state.isOpen;e||(n._setOpenStateAndFocusOnClose(!t,!1),n.setState({focusState:"focused"}))},n._onAutofillClick=function(){var e=n.props,t=e.disabled;e.allowFreeform&&!t?n.focus(n.state.isOpen||n._processingTouch):n._onComboBoxClick()},n._onTouchStart=function(){!n._comboBoxWrapper.current||"onpointerdown"in n._comboBoxWrapper||n._handleTouchAndPointerEvent()},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},i2(n),n._async=new nF(n),n._events=new rv(n),rM(xu,t,{defaultSelectedKey:"selectedKey",text:"defaultSelectedKey",selectedKey:"value",dropdownWidth:"useComboBoxAsMenuWidth",ariaLabel:"label"}),n._id=t.id||iw("ComboBox"),n._isScrollIdle=!0,n._processingTouch=!1,n._gotMouseMove=!1,n._processingClearPendingInfo=!1,n.state={isOpen:!1,focusState:"none",currentPendingValueValidIndex:-1,currentPendingValue:void 0,currentPendingValueValidIndexOnHover:ev.default},n}return tp(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props.hoisted;return xi(e.currentOptions,e.selectedIndices)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._comboBoxWrapper.current&&!this.props.disabled&&(this._events.on(this._comboBoxWrapper.current,"focus",this._onResolveOptions,!0),"onpointerdown"in this._comboBoxWrapper.current&&this._events.on(this._comboBoxWrapper.current,"pointerdown",this._onPointerDown,!0))},t.prototype.componentDidUpdate=function(e,t){var n,r,o,a=this,s=this.props,l=s.allowFreeform,c=s.allowFreeInput,u=s.text,d=s.onMenuOpen,p=s.onMenuDismissed,f=s.hoisted,h=f.currentOptions,m=f.selectedIndices,g=this.state,v=g.currentPendingValue,y=g.currentPendingValueValidIndex,b=g.isOpen;b&&(!t.isOpen||t.currentPendingValueValidIndex!==y)&&this._async.setTimeout(function(){return a._scrollIntoView()},0);var x=u9(this.context);this._hasFocus()&&(b||t.isOpen&&!b&&this._focusInputAfterClose&&this._autofill.current&&(null==x?void 0:x.activeElement)!==this._autofill.current.inputElement)&&this.focus(void 0,!0),this._focusInputAfterClose&&(t.isOpen&&!b||this._hasFocus()&&(!b&&!this.props.multiSelect&&e.hoisted.selectedIndices&&m&&e.hoisted.selectedIndices[0]!==m[0]||!l&&!c||u!==e.text))&&this._onFocus(),this._notifyPendingValueChanged(t),b&&!t.isOpen&&(this._overrideScrollDismiss=!0,this._async.clearTimeout(this._overrideScrollDimissTimeout),this._overrideScrollDimissTimeout=this._async.setTimeout(function(){a._overrideScrollDismiss=!1},100),null==d||d()),!b&&t.isOpen&&p&&p();var C=y,k=h.map(function(e,t){return tf(tf({},e),{index:t})});!rp(e.hoisted.currentOptions,h)&&v&&(C=this.props.allowFreeform||this.props.allowFreeInput?this._processInputChangeWithFreeform(v):this._updateAutocompleteIndexWithoutFreeform(v));var w=void 0;b&&this._hasFocus()&&-1!==C?w=null!=(n=k[C].id)?n:this._id+"-list"+C:b&&m.length&&(w=null!=(o=null==(r=k[m[0]])?void 0:r.id)?o:this._id+"-list"+m[0]),w!==this.state.ariaActiveDescendantValue&&this.setState({ariaActiveDescendantValue:w})},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this._id+"-error",t=this.props,n=t.className,r=t.disabled,o=t.required,a=t.errorMessage,s=t.onRenderContainer,l=void 0===s?this._onRenderContainer:s,c=t.onRenderLabel,u=void 0===c?this._onRenderLabel:c,d=t.onRenderList,p=void 0===d?this._onRenderList:d,f=t.onRenderItem,h=void 0===f?this._onRenderItem:f,m=t.onRenderOption,g=void 0===m?this._onRenderOptionContent:m,v=t.allowFreeform,y=t.styles,b=t.theme,x=t.persistMenu,C=t.multiSelect,k=t.hoisted,w=k.suggestedDisplayValue,S=k.selectedIndices,_=k.currentOptions,E=this.state.isOpen;this._currentVisibleValue=this._getVisibleValue();var P=C?this._getMultiselectDisplayString(S,_,w):void 0,I=i$(this.props,iY,["onChange","value","aria-describedby","aria-labelledby"]),T=!!a&&a.length>0;this._classNames=this.props.getClassNames?this.props.getClassNames(b,!!E,!!r,!!o,!!this._hasFocus(),!!v,!!T,n):xr(xn(b,y),n,!!E,!!r,!!o,!!this._hasFocus(),!!v,!!T);var D=this._renderComboBoxWrapper(P,e);return ts.createElement("div",tf({},I,{ref:this.props.hoisted.mergedRootRef,className:this._classNames.container}),u({props:this.props,multiselectAccessibleText:P},this._onRenderLabel),D,(x||E)&&l(tf(tf({},this.props),{onRenderList:p,onRenderItem:h,onRenderOption:g,options:_.map(function(e,t){return tf(tf({},e),{index:t})}),onDismiss:this._onDismiss}),this._onRenderContainer),T&&ts.createElement("div",{role:"alert",id:e,className:this._classNames.errorMessage},a))},t.prototype._getPendingString=function(e,t,n){return null!=e?e:xx(t,n)?xw(t[n]):""},t.prototype._getMultiselectDisplayString=function(e,t,n){for(var r=[],o=0;e&&o<e.length;o++){var a=e[o];t[a].itemType!==em.SelectAll&&r.push(xx(t,a)?t[a].text:xb(n))}var s=this.props.multiSelectDelimiter,l=void 0===s?", ":s;return r.join(l)},t.prototype._preventDismissOnScrollOrResize=function(e){var t=this.props.calloutProps;return(null==t?void 0:t.preventDismissOnEvent)?t.preventDismissOnEvent(e):!!this._overrideScrollDismiss&&("scroll"===e.type||"resize"===e.type)},t.prototype._processInputChangeWithFreeform=function(e){var t=this,n=this.props.hoisted.currentOptions,r=-1;if(""===e){var o=n.map(function(e,t){return tf(tf({},e),{index:t})}).filter(function(t){return xC(t)&&!t.disabled&&xw(t)===e});return 1===o.length&&(r=o[0].index),this._setPendingInfo(e,r,e),r}var a=e;e=this._adjustForCaseSensitivity(e);var s="";if("on"===this.props.autoComplete){var o=n.map(function(e,t){return tf(tf({},e),{index:t})}).filter(function(n){return xC(n)&&!n.disabled&&0===t._adjustForCaseSensitivity(xw(n)).indexOf(e)});if(o.length>0){var l=xw(o[0]);s=this._adjustForCaseSensitivity(l)!==e?l:"",r=o[0].index}}else{var o=n.map(function(e,t){return tf(tf({},e),{index:t})}).filter(function(n){return xC(n)&&!n.disabled&&t._adjustForCaseSensitivity(xw(n))===e});1===o.length&&(r=o[0].index)}return this._setPendingInfo(a,r,s),r},t.prototype._processInputChangeWithoutFreeform=function(e){var t=this,n=this.state,r=n.currentPendingValue,o=n.currentPendingValueValidIndex;if("on"===this.props.autoComplete&&""!==e){this._autoCompleteTimeout&&(this._async.clearTimeout(this._autoCompleteTimeout),this._autoCompleteTimeout=void 0,e=xb(r)+e);var a=this._updateAutocompleteIndexWithoutFreeform(e);return this._autoCompleteTimeout=this._async.setTimeout(function(){t._autoCompleteTimeout=void 0},xl),a}var s=o>=0?o:this._getFirstSelectedIndex();return this._setPendingInfoFromIndex(s),s},t.prototype._updateAutocompleteIndexWithoutFreeform=function(e){var t=this,n=this.props.hoisted.currentOptions,r=e;e=this._adjustForCaseSensitivity(e);var o=n.map(function(e,t){return tf(tf({},e),{index:t})}).filter(function(n){return xC(n)&&!n.disabled&&0===t._adjustForCaseSensitivity(n.text).indexOf(e)});return o.length>0?(this._setPendingInfo(r,o[0].index,xw(o[0])),o[0].index):-1},t.prototype._getFirstSelectedIndex=function(){var e=this.props.hoisted.selectedIndices;return(null==e?void 0:e.length)?e[0]:-1},t.prototype._getNextSelectableIndex=function(e,t){var n=this.props.hoisted.currentOptions,r=e+t;if(r=Math.max(0,Math.min(n.length-1,r)),!xx(n,r))return -1;var o=n[r];if(!xk(o)||!0===o.hidden)if(t===eg.none||(!(r>0)||!(t<eg.none))&&(!(r>=0)||!(r<n.length)||!(t>eg.none)))return e;else r=this._getNextSelectableIndex(r,t);return r},t.prototype._setSelectedIndex=function(e,t,n){void 0===n&&(n=eg.none);var r=this.props,o=r.onChange,a=r.onPendingValueChanged,s=r.hoisted,l=s.selectedIndices,c=s.currentOptions,u=l?l.slice():[],d=c.slice();if(xx(c,e=this._getNextSelectableIndex(e,n))){if(this.props.multiSelect||u.length<1||1===u.length&&u[0]!==e){var p=tf({},c[e]);if(!p||p.disabled)return;if(this.props.multiSelect)if(p.selected=void 0!==p.selected?!p.selected:0>u.indexOf(e),p.itemType===em.SelectAll)u=[],p.selected?c.forEach(function(e,t){!e.disabled&&xk(e)&&(u.push(t),d[t]=tf(tf({},e),{selected:!0}))}):d=c.map(function(e){return tf(tf({},e),{selected:!1})});else{p.selected&&0>u.indexOf(e)?u.push(e):!p.selected&&u.indexOf(e)>=0&&(u=u.filter(function(t){return t!==e})),d[e]=p;var f=d.filter(function(e){return e.itemType===em.SelectAll})[0];if(f){var h=this._isSelectAllChecked(u),m=d.indexOf(f);h?(u.push(m),d[m]=tf(tf({},f),{selected:!0})):(u=u.filter(function(e){return e!==m}),d[m]=tf(tf({},f),{selected:!1}))}}else u[0]=e;t.persist(),this.props.selectedKey||null===this.props.selectedKey||(this.props.hoisted.setSelectedIndices(u),this.props.hoisted.setCurrentOptions(d)),this._hasPendingValue&&a&&(a(),this._hasPendingValue=!1),o&&o(t,p,e,xw(p))}this.props.multiSelect&&this.state.isOpen||this._clearPendingInfo()}},t.prototype._submitPendingValue=function(e){var t,n=this.props,r=n.onChange,o=n.allowFreeform,a=n.autoComplete,s=n.multiSelect,l=n.hoisted,c=l.currentOptions,u=this.state,d=u.currentPendingValue,p=u.currentPendingValueValidIndex,f=u.currentPendingValueValidIndexOnHover,h=this.props.hoisted.selectedIndices;if(!this._processingClearPendingInfo){if(o){if(null==d){f>=0&&(this._setSelectedIndex(f,e),this._clearPendingInfo());return}if(xx(c,p)){var m=this._adjustForCaseSensitivity(xw(c[p])),g=this._autofill.current,v=this._adjustForCaseSensitivity(d);if(v===m||a&&0===m.indexOf(v)&&(null==g?void 0:g.isValueSelected)&&d.length+(g.selectionEnd-g.selectionStart)===m.length||(null==(t=null==g?void 0:g.inputElement)?void 0:t.value)!==void 0&&this._adjustForCaseSensitivity(g.inputElement.value)===m){if(this._setSelectedIndex(p,e),s&&this.state.isOpen)return;this._clearPendingInfo();return}}if(r)r&&r(e,void 0,void 0,d);else{var y={key:d||iw(),text:xb(d)};s&&(y.selected=!0);var b=c.concat([y]);h&&(s||(h=[]),h.push(b.length-1)),l.setCurrentOptions(b),l.setSelectedIndices(h)}}else p>=0?this._setSelectedIndex(p,e):f>=0&&this._setSelectedIndex(f,e);this._clearPendingInfo()}},t.prototype._onCalloutLayerMounted=function(){this._gotMouseMove=!1},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key;return t&&t>0?ts.createElement("div",{role:"presentation",key:n,className:this._classNames.divider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOptionContent:t;return ts.createElement("div",{id:e.id,key:e.key,className:this._classNames.header},n(e,this._onRenderOptionContent))},t.prototype._renderCheckboxLabel=function(e){var t=this.props.onRenderOption;return(void 0===t?this._onRenderMultiselectOptionContent:t)(e,this._onRenderMultiselectOptionContent)},t.prototype._isOptionHighlighted=function(e){var t=this.state.currentPendingValueValidIndexOnHover;return t!==ev.clearAll&&(t>=0?t===e:this._isOptionSelected(e))},t.prototype._isOptionSelected=function(e){return this._getPendingSelectedIndex(!0)===e},t.prototype._isOptionChecked=function(e){if(this.props.multiSelect&&void 0!==e&&this.props.hoisted.selectedIndices){var t=-1;return(t=this.props.hoisted.selectedIndices.indexOf(e))>=0}return!1},t.prototype._isOptionIndeterminate=function(e){var t=this.props,n=t.multiSelect,r=t.hoisted;if(n&&void 0!==e&&r.selectedIndices&&r.currentOptions){var o=r.currentOptions[e];if(o&&o.itemType===em.SelectAll)return r.selectedIndices.length>0&&!this._isSelectAllChecked()}return!1},t.prototype._isSelectAllChecked=function(e){var t=this.props,n=t.multiSelect,r=t.hoisted,o=r.currentOptions.find(function(e){return e.itemType===em.SelectAll}),a=e||r.selectedIndices;if(!n||!a||!o)return!1;var s=r.currentOptions.indexOf(o),l=a.filter(function(e){return e!==s}),c=r.currentOptions.filter(function(e){return!e.disabled&&e.itemType!==em.SelectAll&&xk(e)});return l.length===c.length},t.prototype._getPendingSelectedIndex=function(e){var t=this.state,n=t.currentPendingValueValidIndex,r=t.currentPendingValue;return n>=0||e&&null!=r?n:this.props.multiSelect?-1:this._getFirstSelectedIndex()},t.prototype._scrollIntoView=function(){var e=this.props,t=e.onScrollToItem,n=e.scrollSelectedToTop,r=this._getPendingSelectedIndex(!0);if(t)return void t(r>=0?r:this._getFirstSelectedIndex());var o=this._selectedElement.current;if(this.props.multiSelect&&this._comboBoxMenu.current&&(o=xh(this._comboBoxMenu.current,function(e){var t;return(null==(t=e.dataset)?void 0:t.index)===r.toString()})),o&&o.offsetParent){var a=!0;if(this._comboBoxMenu.current&&this._comboBoxMenu.current.offsetParent){var s=this._comboBoxMenu.current.offsetParent,l=o.offsetParent,c=l.offsetHeight,u=l.offsetTop,d=s,p=d.offsetHeight,f=d.scrollTop,h=u<f,m=u+c>f+p;h||n?(a=!1,s.scrollTo(0,u)):m&&s.scrollTo(0,u-p+c)}else o.offsetParent.scrollIntoView(a)}},t.prototype._onItemClick=function(e){var t=this,n=this.props.onItemClick,r=e.index;return function(o){t.props.multiSelect||(t._autofill.current&&t._autofill.current.focus(),t.setState({isOpen:!1})),n&&n(o,e,r),t._setSelectedIndex(r,o)}},t.prototype._resetSelectedIndex=function(){var e=this.props.hoisted.currentOptions;this._clearPendingInfo();var t=this._getFirstSelectedIndex();t>0&&t<e.length?this.props.hoisted.setSuggestedDisplayValue(e[t].text):this.props.text&&this.props.hoisted.setSuggestedDisplayValue(this.props.text)},t.prototype._clearPendingInfo=function(){this._processingClearPendingInfo=!0,this.props.hoisted.setSuggestedDisplayValue(void 0),this.setState({currentPendingValue:void 0,currentPendingValueValidIndex:-1,currentPendingValueValidIndexOnHover:ev.default},this._onAfterClearPendingInfo)},t.prototype._setPendingInfo=function(e,t,n){void 0===t&&(t=-1),this._processingClearPendingInfo||(this.props.hoisted.setSuggestedDisplayValue(n),this.setState({currentPendingValue:xb(e),currentPendingValueValidIndex:t,currentPendingValueValidIndexOnHover:ev.default}))},t.prototype._setPendingInfoFromIndex=function(e){var t=this.props.hoisted.currentOptions;if(e>=0&&e<t.length){var n=t[e];this._setPendingInfo(xw(n),e,xw(n))}else this._clearPendingInfo()},t.prototype._setPendingInfoFromIndexAndDirection=function(e,t){var n=this.props.hoisted.currentOptions;t===eg.forward&&e>=n.length-1?e=-1:t===eg.backward&&e<=0&&(e=n.length);var r=this._getNextSelectableIndex(e,t);e===r?t===eg.forward?e=this._getNextSelectableIndex(-1,t):t===eg.backward&&(e=this._getNextSelectableIndex(n.length,t)):e=r,xx(n,e)&&this._setPendingInfoFromIndex(e)},t.prototype._notifyPendingValueChanged=function(e){var t=this.props.onPendingValueChanged;if(t){var n=this.props.hoisted.currentOptions,r=this.state,o=r.currentPendingValue,a=r.currentPendingValueValidIndex,s=r.currentPendingValueValidIndexOnHover,l=void 0,c=void 0;s!==e.currentPendingValueValidIndexOnHover&&xx(n,s)?l=s:a!==e.currentPendingValueValidIndex&&xx(n,a)?l=a:o!==e.currentPendingValue&&(c=o),(void 0!==l||void 0!==c||this._hasPendingValue)&&(t(void 0!==l?n[l]:void 0,l,c),this._hasPendingValue=void 0!==l||void 0!==c)}},t.prototype._setOpenStateAndFocusOnClose=function(e,t){this._focusInputAfterClose=t,this.setState({isOpen:e})},t.prototype._onOptionMouseEnter=function(e){this._shouldIgnoreMouseEvent()||this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._onOptionMouseMove=function(e){this._gotMouseMove=!0,this._isScrollIdle&&this.state.currentPendingValueValidIndexOnHover!==e&&this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._handleInputWhenDisabled=function(e){this.props.disabled&&(this.state.isOpen&&this.setState({isOpen:!1}),null!==e&&e.which!==r$&&e.which!==r1&&(e.which<112||e.which>123)&&(e.stopPropagation(),e.preventDefault()))},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0},xs)},t.prototype._getCaretButtonStyles=function(){var e=this.props.caretDownButtonStyles;return xt(this.props.theme,e)},t.prototype._getCurrentOptionStyles=function(e){var t,n=this.props.comboBoxOptionStyles,r=e.styles,o=xe(this.props.theme,n,r,this._isPendingOption(e),e.hidden,this._isOptionHighlighted(e.index));return o.__shadowConfig__=null==(t=this.props.styles)?void 0:t.__shadowConfig__,o},t.prototype._getAriaAutoCompleteValue=function(){return this.props.disabled||"on"!==this.props.autoComplete?"list":this.props.allowFreeform?"inline":"both"},t.prototype._isPendingOption=function(e){return e&&e.index===this.state.currentPendingValueValidIndex},t.prototype._hasFocus=function(){return"none"!==this.state.focusState},t.prototype._adjustForCaseSensitivity=function(e){return this.props.caseSensitive?e:e.toLowerCase()},t.contextType=ic,t=tm([im("ComboBox",["theme","styles"],!0)],t)}(ts.Component);function xg(e,t){if(!e||!t)return[];var n={};e.forEach(function(e,t){e.selected&&(n[t]=!0)});for(var r=function(t){var r=op(e,function(e){return e.key===t});r>-1&&(n[r]=!0)},o=0,a=t;o<a.length;o++)r(a[o]);return Object.keys(n).map(Number).sort()}function xv(e,t){var n=xy(e);return n.length?n:xy(t)}function xy(e){return void 0===e?[]:e instanceof Array?e:[e]}function xb(e){return e||""}function xx(e,t){return!!e&&t>=0&&t<e.length}function xC(e){return e.itemType!==em.Header&&e.itemType!==em.Divider&&e.itemType!==em.SelectAll}function xk(e){return e.itemType!==em.Header&&e.itemType!==em.Divider}function xw(e){return e.useAriaLabelAsText&&e.ariaLabel?e.ariaLabel:e.text}function xS(e){return e.which===r0||"Meta"===e.key}var x_=0,xE=1,xP=2,xI=3,xT=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t},xD=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},xA=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},xR=16,xN=100,xB=500,xM=200,xF=500,xO=10,xL=30,xH=2,xz=2,xV="page-",xU="spacer-",xj=1/3,xW={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},xq=function(e){return e.getBoundingClientRect()},xG=xq,xK=xq,xX=function(e){function t(t){var n=e.call(this,t)||this;return n._root=ts.createRef(),n._surface=ts.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version||!t.hasMounted&&n.props.renderEarly&&nN()?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return ts.createElement("div",tf({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return ts.createElement("div",tf({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r,o=n.props,a=o.onRenderCell,s=o.onRenderCellConditional,l=o.role,c=e.page,u=c.items,d=void 0===u?[]:u,p=c.startIndex,f=th(e,["page"]),h=void 0===l?"listitem":"presentation",m=[],g=0;g<d.length;g++){var v=p+g,y=d[g],b=n.props.getKey?n.props.getKey(y,v):y&&y.key;null==b&&(b=v);var x=null!=s?s:a,C=null!=(r=null==x?void 0:x(y,v,n.props.ignoreScrollingState?void 0:n.state.isScrolling))?r:null;(!s||C)&&m.push(ts.createElement("div",{role:h,className:"ms-List-cell",key:b,"data-list-index":v,"data-automationid":"ListCell"},C))}return ts.createElement("div",tf({},f),m)},i2(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return tp(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=x_);for(var r=this.props.startIndex,o=r+this._getRenderCount(),a=this._allowedRect,s=0,l=1,c=r;c<o;c+=l){var u=this._getPageSpecification(this.props,c,a),d=u.height;if(l=u.itemCount,c<=e&&c+l>e){if(t&&this._scrollElement){for(var p=xK(this._scrollElement),f=xD(this._scrollElement),h={top:f,bottom:f+p.height},m=e-c,g=0;g<m;++g)s+=t(c+g);var v=s+t(e);switch(n){case xE:xA(this._scrollElement,s);return;case xP:xA(this._scrollElement,v-p.height);return;case xI:xA(this._scrollElement,(s+v-p.height)/2);return}if(s>=h.top&&v<=h.bottom)return;var y=s<h.top,b=v>h.bottom;y||b&&(s=v-p.height)}this._scrollElement&&xA(this._scrollElement,s);return}s+=d}},t.prototype.getStartItemIndexInView=function(e){for(var t=this.state.pages||[],n=0,r=t;n<r.length;n++){var o=r[n];if(!o.isSpacer&&(this._scrollTop||0)>=o.top&&(this._scrollTop||0)<=o.top+o.height)if(e)for(var a=0,s=o.startIndex;s<o.startIndex+o.itemCount;s++){var l=e(s);if(o.top+a<=this._scrollTop&&this._scrollTop<o.top+a+l)return s;a+=l}else{var l=Math.floor(o.height/o.itemCount);return o.startIndex+Math.floor((this._scrollTop-o.top)/l)}}return 0},t.prototype.componentDidMount=function(){this._async=new nF(this),this._events=new rv(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,xN,{leading:!1,maxWait:xB}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,xM,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,xR,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,xF,{leading:!1}),this._scrollElement=rP(this._root.current),this._scrollTop=0,this.setState(tf(tf({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var e=u7(this.context);this._events.on(e,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdleDebounced(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},t.prototype.componentWillUnmount=function(){var e,t;null==(e=this._async)||e.dispose(),null==(t=this._events)||t.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!1;if(!t.isScrolling&&this.state.isScrolling||e.version!==this.props.version||e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var a=0;a<n.length;a++){var s=n[a],l=r[a];if(s.key!==l.key||s.itemCount!==l.itemCount){o=!0;break}}else o=!0;return o},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,o=e.onRenderSurface,a=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=i$(this.props,iY),d=0,p=l;d<p.length;d++){var f=p[d];c.push(this._renderPage(f))}var h=o?aV(o,this._onRenderSurface):this._onRenderSurface;return(a?aV(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:h({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:tf(tf({},u),{className:oG("ms-List",t),role:c.length>0?r:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var o=this._getPageStyle(e),a=this.props.onRenderPage,s=(void 0===a?this._onRenderPage:a)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:s}),s},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return tf(tf({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=nH(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),this._materializedRect&&x$(this._requiredRect,this._materializedRect)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this,o=r._requiredWindowsAhead,a=r._requiredWindowsBehind,s=Math.min(t,o+1),l=Math.min(n,a+1);(s!==o||l!==a)&&(this._requiredWindowsAhead=s,this._requiredWindowsBehind=l,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>s||n>l)&&this._onAsyncIdleDebounced()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||(this.setState({isScrolling:!1}),this._onAsyncIdle())},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),tf(tf(tf({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var a={},s=0,l=e;s<l.length;s++){var c=l[s];c.items&&(a[c.startIndex]=c)}for(var u=0,d=t;u<d.length;u++){var c=d[u];c.items&&(a[c.startIndex]?delete a[c.startIndex]:this._onPageAdded(c))}for(var p in a)a.hasOwnProperty(p)&&this._onPageRemoved(a[p])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,o=e.startIndex,a=e.getPageHeight;n=this._getRenderCount(e);for(var s=tf({},xW),l=[],c=1,u=0,d=null,p=this._focusedIndex,f=o+n,h=this._shouldVirtualize(e),m=0===this._estimatedPageHeight&&!a,g=this._allowedRect,v=function(n){var a=y._getPageSpecification(e,n,g),v=a.height,b=a.data,x=a.key;c=a.itemCount;var C=u+v-1,k=op(t.pages,function(e){return!!e.items&&e.startIndex===n})>-1,w=!g||C>=g.top&&u<=g.bottom,S=!y._requiredRect||C>=y._requiredRect.top&&u<=y._requiredRect.bottom,_=p>=n&&p<n+c,E=n===o;if(!m&&(S||w&&k)||!h||_||E){d&&(l.push(d),d=null);var P=Math.min(c,f-n),I=y._createPage(x,r.slice(n,n+P),n,void 0,void 0,b);I.top=u,I.height=v,y._visibleRect&&y._visibleRect.bottom&&(I.isVisible=C>=y._visibleRect.top&&u<=y._visibleRect.bottom),l.push(I),S&&y._allowedRect&&xQ(s,{top:u,bottom:C,height:v,left:g.left,right:g.right,width:g.width})}else d||(d=y._createPage(xU+n,void 0,n,0,void 0,b,!0)),d.height=(d.height||0)+(C-u)+1,d.itemCount+=c;if(u+=C-u+1,m&&h)return"break"},y=this,b=o;b<f&&"break"!==v(b);b+=c);return d&&(d.key=xU+"end",l.push(d)),this._materializedRect=s,tf(tf({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var o=r(t,n,e.items),a=o.itemCount,s=void 0===a?this._getItemCountForPage(t,n):a,l=o.height,c=void 0===l?this._getPageHeight(t,n,s):l;return{itemCount:s,height:c,data:o.data,key:o.key}}var s=this._getItemCountForPage(t,n);return{itemCount:s,height:this._getPageHeight(t,n,s)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n,this.props.items);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||xL},t.prototype._getItemCountForPage=function(e,t){return(this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):xO)||xO},t.prototype._createPage=function(e,t,n,r,o,a,s){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||xV+n;var l=this._pageCache[e];return l&&l.page?l.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:a,isSpacer:s||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,o=e.renderedWindowsBehind,a=t.pages;if(this._shouldVirtualize(e)){var s=this._surfaceRect||tf({},xW),l=xT(this._scrollElement),c=xD(this._scrollElement);this._surface.current&&(n||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight*xj)&&(s=this._surfaceRect=xG(this._surface.current),this._scrollTop=c),(n||!l||l!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=l||0;var u=Math.max(0,-s.top),d=nM(this._root.current),p={top:u,left:s.left,bottom:u+d.innerHeight,right:s.right,width:s.width,height:d.innerHeight};this._requiredRect=xY(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=xY(p,o,r),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return ts.createElement(ts.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:xz,renderedWindowsBehind:xH},t.contextType=ic,t}(ts.Component);function xY(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}function x$(e,t){return e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}function xQ(e,t){return e.top=t.top<e.top||-1===e.top?t.top:e.top,e.left=t.left<e.left||-1===e.left?t.left:e.left,e.bottom=t.bottom>e.bottom||-1===e.bottom?t.bottom:e.bottom,e.right=t.right>e.right||-1===e.right?t.right:e.right,e.width=e.right-e.left+1,e.height=e.bottom-e.top+1,e}!function(e){function t(t){var n=e.call(this,t)||this;return n._comboBox=ts.createRef(),n._list=ts.createRef(),n._onRenderList=function(e){var t=e.id,r=e.onRenderItem;return ts.createElement(xX,{componentRef:n._list,role:"listbox",id:"".concat(t,"-list"),"aria-labelledby":"".concat(t,"-label"),items:e.options,onRenderCell:r?function(e){return r(e)}:function(){return null}})},n._onScrollToItem=function(e){n._list.current&&n._list.current.scrollToIndex(e)},i2(n),n}tp(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return this._comboBox.current?this._comboBox.current.selectedOptions:[]},enumerable:!1,configurable:!0}),t.prototype.dismissMenu=function(){if(this._comboBox.current)return this._comboBox.current.dismissMenu()},t.prototype.focus=function(e,t){return!!this._comboBox.current&&(this._comboBox.current.focus(e,t),!0)},t.prototype.render=function(){return ts.createElement(xf,tf({},this.props,{componentRef:this._comboBox,onRenderList:this._onRenderList,onScrollToItem:this._onScrollToItem}))}}(ts.Component);var xJ=44,xZ=function(e){var t=e.className,n=e.theme,r=n.semanticColors;return{root:[n.fonts.medium,"ms-CommandBar",{display:"flex",backgroundColor:r.bodyBackground,padding:"0 14px 0 24px",height:xJ},t],primarySet:["ms-CommandBar-primaryCommand",{flexGrow:"1",display:"flex",alignItems:"stretch"}],secondarySet:["ms-CommandBar-secondaryCommand",{flexShrink:"0",display:"flex",alignItems:"stretch"}]}},x0=oL(function(e){var t={height:"100%"},n={whiteSpace:"nowrap"},r=e||{},o=r.root,a=r.label,s=th(r,["root","label"]);return tf(tf({},s),{root:o?[t,o]:t,label:a?[n,a]:n})}),x1=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var a=o[r];n[t.register(a,!0)]=a}},x2=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];e.unregister(t[o],o,!0),delete t[o]}},x5=function(e,t,n){var r=uX(e);ts.useEffect(function(){r&&(x2(n,r),x1(t,n,e))}),ts.useEffect(function(){return x1(t,n,e),function(){x2(n,e)}},[])},x4=function(e){var t=fQ.getInstance(),n=e.className,r=e.overflowItems,o=e.keytipSequences,a=e.itemSubMenuProvider,s=e.onRenderOverflowButton,l=uV({}),c=ts.useCallback(function(e){return a?a(e):e.subMenuProps?e.subMenuProps.items:void 0},[a]),u=ts.useMemo(function(){var e=[],n=[];return o?null==r||r.forEach(function(r){var a,s=r.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!!(r.disabled||r.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||c(r)?(l.onExecute=t.menuExecute.bind(t,o,null==(a=null==r?void 0:r.keytipProps)?void 0:a.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var u=tf(tf({},r),{keytipProps:tf(tf({},s),{overflowSetSequence:o})});null==n||n.push(u)}else null==n||n.push(r)}):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}},[r,c,t,o]),d=u.modifiedOverflowItems;return x5(l,u.keytipsToRegister,t),ts.createElement("div",{className:n},s(d))},x3=oI(),x6="OverflowSet",x8=function(e,t){var n=u6();ts.useImperativeHandle(e.componentRef,function(){return{focus:function(e,n){var r=!1;return t.current&&(r=n3(t.current,n)),r},focusElement:function(e){var r=!1;return!!e&&(t.current&&nz(t.current,e)&&(e.focus(),r=(null==n?void 0:n.activeElement)===e),r)}}},[t,n])},x9=ts.forwardRef(function(e,t){var n=ts.useRef(null),r=uG(n,t);x8(e,n);var o=e.items,a=e.overflowItems,s=e.className,l=e.styles,c=e.vertical,u=e.role,d=e.overflowSide,p=void 0===d?"end":d,f=e.onRenderItem,h=x3(l,{className:s,vertical:c}),m=!!a&&a.length>0;return ts.createElement("div",tf({},i$(e,iY),{role:u||"group","aria-orientation":"menubar"===u?!0===c?"vertical":"horizontal":void 0,className:h.root,ref:r}),"start"===p&&m&&ts.createElement(x4,tf({},e,{className:h.overflowButton})),o&&o.map(function(e,t){return ts.createElement("div",{className:h.item,key:e.key,role:"none"},f(e))}),"end"===p&&m&&ts.createElement(x4,tf({},e,{className:h.overflowButton})))});x9.displayName=x6;var x7={flexShrink:0,display:"inherit"},Ce=a1(x9,function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",x7],overflowButton:["ms-OverflowSet-overflowButton",x7]}},void 0,{scope:"OverflowSet"}),Ct=oI();a1(function(e){function t(t){var n=e.call(this,t)||this;return n._overflowSet=ts.createRef(),n._resizeGroup=ts.createRef(),n._onRenderData=function(e){var t=n.props,r=t.ariaLabel,o=t.primaryGroupAriaLabel,a=t.farItemsGroupAriaLabel,s=e.farItems&&e.farItems.length>0;return ts.createElement(fp,{className:oG(n._classNames.root),direction:K.horizontal,role:"menubar","aria-label":r},ts.createElement(Ce,{role:s?"group":"none","aria-label":s?o:void 0,componentRef:n._overflowSet,className:oG(n._classNames.primarySet),items:e.primaryItems,overflowItems:e.overflowItems.length?e.overflowItems:void 0,onRenderItem:n._onRenderItem,onRenderOverflowButton:n._onRenderOverflowButton}),s&&ts.createElement(Ce,{role:"group","aria-label":a,className:oG(n._classNames.secondarySet),items:e.farItems,onRenderItem:n._onRenderItem,onRenderOverflowButton:rH}))},n._onRenderItem=function(e){if(e.onRender)return e.onRender(e,function(){});var t=e.text||e.name,r=tf(tf({allowDisabledFocus:!0,role:"menuitem"},e),{styles:x0(e.buttonStyles),className:oG("ms-CommandBarItem-link",e.className),text:e.iconOnly?void 0:t,menuProps:e.subMenuProps,onClick:n._onButtonClick(e)});return e.iconOnly&&(void 0!==t||e.tooltipHostProps)?ts.createElement(d8,tf({role:"none",content:t,setAriaDescribedBy:!1},e.tooltipHostProps),n._commandButton(e,r)):n._commandButton(e,r)},n._commandButton=function(e,t){var r=n.props.buttonAs,o=e.commandBarButtonAs,a=mi;return o&&(a=oW(o,a)),r&&(a=oW(r,a)),ts.createElement(a,tf({},t))},n._onRenderOverflowButton=function(e){var t=n.props.overflowButtonProps,r=void 0===t?{}:t,o=tg(tg([],r.menuProps?r.menuProps.items:[],!0),e,!0),a=tf(tf({role:"menuitem"},r),{styles:tf({menuIcon:{fontSize:"17px"}},r.styles),className:oG("ms-CommandBar-overflowButton",r.className),menuProps:tf(tf({},r.menuProps),{items:o}),menuIconProps:tf({iconName:"More"},r.menuIconProps)}),s=n.props.overflowButtonAs?oW(n.props.overflowButtonAs,mi):mi;return ts.createElement(s,tf({},a))},n._onReduceData=function(e){var t=n.props,r=t.shiftOnReduce,o=t.onDataReduced,a=e.primaryItems,s=e.overflowItems,l=e.cacheKey,c=e.farItems,u=a[r?0:a.length-1];if(void 0!==u){u.renderedInOverflow=!0,s=tg([u],s,!0),a=r?a.slice(1):a.slice(0,-1);var d=tf(tf({},e),{primaryItems:a,overflowItems:s});return l=n._computeCacheKey({primaryItems:a,overflow:s.length>0,farItems:c}),o&&o(u),d.cacheKey=l,d}},n._onGrowData=function(e){var t=n.props,r=t.shiftOnReduce,o=t.onDataGrown,a=e.minimumOverflowItems,s=e.primaryItems,l=e.overflowItems,c=e.cacheKey,u=e.farItems,d=l[0];if(void 0!==d&&l.length>a){d.renderedInOverflow=!1,l=l.slice(1),s=r?tg([d],s,!0):tg(tg([],s,!0),[d],!1);var p=tf(tf({},e),{primaryItems:s,overflowItems:l});return c=n._computeCacheKey({primaryItems:s,overflow:l.length>0,farItems:u}),o&&o(d),p.cacheKey=c,p}},i2(n),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.items,n=e.overflowItems,r=e.farItems,o=e.styles,a=e.theme,s=e.dataDidRender,l=e.onReduceData,c=void 0===l?this._onReduceData:l,u=e.onGrowData,d=void 0===u?this._onGrowData:u,p=e.resizeGroupAs,f=void 0===p?mC:p,h={primaryItems:tg([],t,!0),overflowItems:tg([],n,!0),minimumOverflowItems:tg([],n,!0).length,farItems:r,cacheKey:this._computeCacheKey({primaryItems:tg([],t,!0),overflow:n&&n.length>0,farItems:r})};this._classNames=Ct(o,{theme:a});var m=i$(this.props,iY);return ts.createElement(f,tf({},m,{componentRef:this._resizeGroup,data:h,onReduceData:c,onGrowData:d,onRenderData:this._onRenderData,dataDidRender:s}))},t.prototype.focus=function(){var e=this._overflowSet.current;e&&e.focus()},t.prototype.remeasure=function(){this._resizeGroup.current&&this._resizeGroup.current.remeasure()},t.prototype._onButtonClick=function(e){return function(t){!e.inactive&&e.onClick&&e.onClick(t,e)}},t.prototype._computeCacheKey=function(e){var t=e.primaryItems,n=e.overflow,r=e.farItems,o=function(e,t){var n=t.cacheKey;return e+(void 0===n?t.key:n)};return[t&&t.reduce(o,""),n?"overflow":"",r&&r.reduce(o,"")].join("")},t.defaultProps={items:[],overflowItems:[]},t}(ts.Component),xZ,void 0,{scope:"CommandBar"});var Cn=tf(tf({},gU),{prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker",isRequiredErrorMessage:"Field is required",invalidInputErrorMessage:"Invalid date format",isResetStatusMessage:'Invalid entry "{0}", date reset to "{1}"'}),Cr=oI(),Co={allowTextInput:!1,formatDate:function(e){return e?e.toDateString():""},parseDateFromString:function(e){e.match(/^\d{4}(-\d{2}){2}$/)&&(e+="T12:00");var t=Date.parse(e);return t?new Date(t):null},firstDayOfWeek:eo.Sunday,initialPickerDate:new Date,isRequired:!1,isMonthPickerVisible:!0,showMonthPickerAsOverlay:!1,strings:Cn,highlightCurrentMonth:!1,highlightSelectedMonth:!1,borderless:!1,pickerAriaLabel:"Calendar",showWeekNumbers:!1,firstWeekOfYear:ea.FirstDay,showGoToToday:!0,showCloseButton:!1,underlined:!1,allFocusable:!1};function Ci(){var e=ts.useRef(null),t=ts.useRef(!1),n=function(){var t,n;null==(n=null==(t=e.current)?void 0:t.focus)||n.call(t)},r=function(){t.current=!0};return[e,n,t,r]}function Ca(e,t){var n=e.allowTextInput,r=e.onAfterMenuDismiss,o=ts.useState(!1),a=o[0],s=o[1],l=ts.useRef(!1),c=uz();return ts.useEffect(function(){l.current&&!a&&(n&&c.requestAnimationFrame(t),null==r||r()),l.current=!0},[a]),[a,s]}function Cs(e){var t=e.formatDate,n=e.value,r=e.onSelectDate,o=uj(n,void 0,function(e,t){return null==r?void 0:r(t)}),a=o[0],s=o[1],l=ts.useState(function(){return n&&t?t(n):""}),c=l[0],u=l[1],d=function(e){s(e),u(e&&t?t(e):"")};return ts.useEffect(function(){u(n&&t?t(n):"")},[t,n]),[a,c,d,u]}function Cl(e,t,n,r,o){var a,s=e.isRequired,l=e.allowTextInput,c=e.strings,u=e.parseDateFromString,d=e.onSelectDate,p=e.formatDate,f=e.minDate,h=e.maxDate,m=e.textField,g=ts.useState(),v=g[0],y=g[1],b=ts.useState(),x=b[0],C=b[1],k=ts.useRef(!0),w=null==(a=null==m?void 0:m.validateOnLoad)||a,S=function(e){if(void 0===e&&(e=null),l)if(r||e){if(t&&!v&&p&&p(null!=e?e:t)===r)return;if(!(e=e||u(r))||isNaN(e.getTime())){n(t);var o=p?p(t):"";C(c.isResetStatusMessage?aY(c.isResetStatusMessage,r,o):c.invalidInputErrorMessage||"")}else Cu(e,f,h)?y(c.isOutOfBoundsErrorMessage||" "):(n(e),y(void 0),C(void 0))}else y(s?c.isRequiredErrorMessage||" ":void 0),null==d||d(e);else s&&!r?y(c.isRequiredErrorMessage||" "):(y(void 0),C(void 0))};return ts.useEffect(function(){(!k.current||(k.current=!1,w))&&(s&&!t?y(c.isRequiredErrorMessage||" "):t&&Cu(t,f,h)?y(c.isOutOfBoundsErrorMessage||" "):y(void 0))},[f&&gt(f),h&&gt(h),t&&gt(t),s,w]),[o?void 0:v,S,y,o?void 0:x,C]}var Cc=ts.forwardRef(function(e,t){var n,r,o=a4(Co,e),a=o.firstDayOfWeek,s=o.strings,l=o.label,c=o.theme,u=o.className,d=o.styles,p=o.initialPickerDate,f=o.isRequired,h=o.disabled,m=o.ariaLabel,g=o.pickerAriaLabel,v=o.placeholder,y=o.allowTextInput,b=o.borderless,x=o.minDate,C=o.maxDate,k=o.showCloseButton,w=o.calendarProps,S=o.calloutProps,_=o.textField,E=o.underlined,P=o.allFocusable,I=o.calendarAs,T=void 0===I?vf:I,D=o.tabIndex,A=o.disableAutoFocus,R=void 0===A||A,N=uq("DatePicker",o.id),B=uq("DatePicker-Callout"),M=ts.useRef(null),F=ts.useRef(null),O=Ci(),L=O[0],H=O[1],z=O[2],V=O[3],U=Ca(o,H),j=U[0],W=U[1],q=Cs(o),G=q[0],K=q[1],X=q[2],Y=q[3],Q=Cl(o,G,X,K,j),J=Q[0],Z=Q[1],ee=Q[2],et=Q[3],en=Q[4],er=ts.useCallback(function(){j||(V(),W(!0))},[j,V,W]);ts.useImperativeHandle(o.componentRef,function(){return{focus:H,reset:function(){W(!1),X(void 0),ee(void 0),en(void 0)},showDatePickerPopup:er}},[H,ee,W,X,en,er]);var eo=function(){!R&&(y||(z.current||er(),z.current=!1))},ei=function(e){o.calendarProps&&o.calendarProps.onSelectDate&&o.calendarProps.onSelectDate(e),em(e)},ea=function(){var e=!0;o.calloutProps&&void 0!==o.calloutProps.setInitialFocus&&(e=o.calloutProps.setInitialFocus),M.current&&e&&M.current.focus()},es=function(e){Z()},el=function(e,t){var n,r=o.textField;y&&(j&&ep(),Y(t)),null==(n=null==r?void 0:r.onChange)||n.call(r,e,t)},ec=function(e){switch(e.which){case rQ:e.preventDefault(),e.stopPropagation(),j?o.allowTextInput&&ep():(Z(),er());break;case r1:ev(e);break;case oe:e.altKey&&!j&&er()}},eu=function(e){!o.openOnClick&&o.disableAutoFocus||j||o.disabled?o.allowTextInput&&ep():er()},ed=function(e){e.stopPropagation(),j||o.disabled?o.allowTextInput&&ep():er()},ep=function(e){j&&(W(!1),Z(e),!y&&e&&X(e))},ef=function(e,t){return ts.createElement(ts.Fragment,null,e.description||e.onRenderDescription?t(e):null,ts.createElement("div",{"aria-live":"assertive",className:eb.statusMessage},et))},eh=function(e){var t=i$(e,iY),n=ny(t.className,eb.readOnlyTextField);return ts.createElement("div",tf({},t,{className:n,tabIndex:D||0}),K||ts.createElement("span",{className:eb.readOnlyPlaceholder},v))},em=function(e){V(),ep(e)},eg=function(e){em()},ev=function(e){j&&(e.stopPropagation(),em())},ey=function(e){em()},eb=Cr(d,{theme:c,className:u,disabled:h,underlined:E,label:!!l,isDatePickerShown:j}),ex=i$(o,iY,["value"]),eC=_&&_.iconProps,ek=_&&_.id&&_.id!==N?_.id:N+"-label",ew=!y&&!h,eS=null==(r=null!=(n=null==_?void 0:_["data-is-focusable"])?n:o["data-is-focusable"])||r,e_=y?{role:"button","aria-expanded":j,"aria-label":null!=m?m:l,"aria-labelledby":_&&_["aria-labelledby"]}:{};return ts.createElement("div",tf({},ex,{className:eb.root,ref:t}),ts.createElement("div",{ref:F,"aria-owns":j?B:void 0,className:eb.wrapper},ts.createElement(bA,tf({role:"combobox",label:l,"aria-expanded":j,"aria-required":f,ariaLabel:m,"aria-haspopup":"dialog","aria-controls":j?B:void 0,required:f,disabled:h,errorMessage:J,placeholder:v,borderless:b,value:K,componentRef:L,underlined:E,tabIndex:D,readOnly:!y},_,{"data-is-focusable":eS,id:ek,className:oG(eb.textField,_&&_.className),iconProps:tf(tf(tf({iconName:"Calendar"},e_),eC),{className:oG(eb.icon,eC&&eC.className),onClick:ed}),onRenderDescription:ef,onKeyDown:ec,onFocus:eo,onBlur:es,onClick:eu,onChange:el,onRenderInput:ew?eh:void 0}))),j&&ts.createElement(d$,tf({id:B,role:"dialog",ariaLabel:g,isBeakVisible:!1,gapSpace:0,doNotLayer:!1,target:F.current,directionalHint:cV},S,{className:oG(eb.callout,S&&S.className),onDismiss:eg,onPositioned:ea}),ts.createElement(d0,{isClickableOutsideFocusTrap:!0,disableFirstFocus:R},ts.createElement(T,tf({},w,{onSelectDate:ei,onDismiss:ey,isMonthPickerVisible:o.isMonthPickerVisible,showMonthPickerAsOverlay:o.showMonthPickerAsOverlay,today:o.today,value:G||p,firstDayOfWeek:a,strings:s,highlightCurrentMonth:o.highlightCurrentMonth,highlightSelectedMonth:o.highlightSelectedMonth,showWeekNumbers:o.showWeekNumbers,firstWeekOfYear:o.firstWeekOfYear,showGoToToday:o.showGoToToday,dateTimeFormatter:o.dateTimeFormatter,minDate:x,maxDate:C,componentRef:M,showCloseButton:k,allFocusable:P})))))});function Cu(e,t,n){return!!t&&m4(t,e)>0||!!n&&0>m4(n,e)}Cc.displayName="DatePickerBase";var Cd={root:"ms-DatePicker",callout:"ms-DatePicker-callout",withLabel:"ms-DatePicker-event--with-label",withoutLabel:"ms-DatePicker-event--without-label",disabled:"msDatePickerDisabled "},Cp=32;a1(Cc,function(e){var t,n=e.className,r=e.theme,o=e.disabled,a=e.underlined,s=e.label,l=e.isDatePickerShown,c=r.palette,u=r.semanticColors,d=r.fonts,p=l0(Cd,r),f={color:c.neutralSecondary,fontSize:E.icon,lineHeight:"18px",pointerEvents:"none",position:"absolute",right:"4px",padding:"5px"};return{root:[p.root,r.fonts.large,l&&"is-open",cv,n],textField:[{position:"relative",selectors:{"& input[readonly]":{cursor:"pointer"},input:{selectors:{"::-ms-clear":{display:"none"}}}}},o&&{selectors:{"& input[readonly]":{cursor:"default"}}}],callout:[p.callout],icon:[f,s?p.withLabel:p.withoutLabel,{paddingTop:"7px"},!o&&[p.disabled,{pointerEvents:"initial",cursor:"pointer"}],o&&{color:u.disabledText,cursor:"default"}],statusMessage:[d.small,{color:u.errorText,marginTop:5}],readOnlyTextField:[{cursor:"pointer",height:Cp,lineHeight:Cp-2,overflow:"hidden",textOverflow:"ellipsis"},a&&{lineHeight:Cp+2}],readOnlyPlaceholder:((t={color:u.inputPlaceholderText})[l_]={color:"GrayText"},t)}},void 0,{scope:"DatePicker"});var Cf="data-selection-disabled",Ch="data-selection-index",Cm="data-selection-span",Cg="data-selection-toggle",Cv="data-selection-invoke",Cy="data-selection-touch-invoke",Cb="data-selection-all-toggle",Cx="data-selection-select",CC=function(e){function t(t){var n=e.call(this,t)||this;n._root=ts.createRef(),n.ignoreNextFocus=function(){n._handleNextFocus(!1)},n._onSelectionChange=function(){var e=n.props.selection,t=e.isModal&&e.isModal();n.setState({isModal:t})},n._onMouseDownCapture=function(e){var t=e.target,r=nM(n._root.current),o=null==r?void 0:r.document;if((null==o?void 0:o.activeElement)!==t&&!nz(null==o?void 0:o.activeElement,t))return void n.ignoreNextFocus();if(nz(t,n._root.current))for(;t!==n._root.current;){if(n._hasAttribute(t,Cv)){n.ignoreNextFocus();break}t=nH(t)}},n._onFocus=function(e){var t=e.target,r=n.props.selection,o=n._isCtrlPressed||n._isMetaPressed,a=n._getSelectionMode();if(n._shouldHandleFocus&&a!==h.none){var s=n._hasAttribute(t,Cg),l=n._findItemRoot(t);if(!s&&l){var c=n._getItemIndex(l);void 0===n._getItemSpan(l)&&(o?(r.setIndexSelected(c,r.isIndexSelected(c),!0),n.props.enterModalOnTouch&&n._isTouch&&r.setModal&&(r.setModal(!0),n._setIsTouch(!1))):n.props.isSelectedOnFocus&&n._onItemSurfaceClick("focus",c))}}n._handleNextFocus(!1)},n._onMouseDown=function(e){n._updateModifiers(e);var t=n.props.toggleWithoutModifierPressed,r=e.target,o=n._findItemRoot(r);if(!n._isSelectionDisabled(r))for(;r!==n._root.current&&!n._hasAttribute(r,Cb);){if(o)if(n._hasAttribute(r,Cg))break;else if(n._hasAttribute(r,Cv))break;else if(!(r===o||n._shouldAutoSelect(r))||n._isShiftPressed||n._isCtrlPressed||n._isMetaPressed||t){if(n.props.disableAutoSelectOnInputElements&&("A"===r.tagName||"BUTTON"===r.tagName||"INPUT"===r.tagName))return}else{n._onInvokeMouseDown(e,n._getItemIndex(o),n._getItemSpan(o));break}r=nH(r)}},n._onTouchStartCapture=function(e){n._setIsTouch(!0)},n._onClick=function(e){var t=n.props.enableTouchInvocationTarget,r=void 0!==t&&t;n._updateModifiers(e);for(var o=e.target,a=n._findItemRoot(o),s=n._isSelectionDisabled(o);o!==n._root.current;){if(n._hasAttribute(o,Cb)){s||n._onToggleAllClick(e);break}if(a){var l=n._getItemIndex(a),c=n._getItemSpan(a);if(n._hasAttribute(o,Cg)){s||(n._isShiftPressed?n._onItemSurfaceClick("click",l,c):n._onToggleClick(e,l,c));break}if(n._isTouch&&r&&n._hasAttribute(o,Cy)||n._hasAttribute(o,Cv)){void 0===c&&n._onInvokeClick(e,l);break}if(o===a){s||n._onItemSurfaceClick("click",l,c);break}else if("A"===o.tagName||"BUTTON"===o.tagName||"INPUT"===o.tagName)return}o=nH(o)}},n._onContextMenu=function(e){var t=e.target,r=n.props,o=r.onItemContextMenu,a=r.selection;if(o){var s=n._findItemRoot(t);if(s){var l=n._getItemIndex(s);n._onInvokeMouseDown(e,l),o(a.getItems()[l],l,e.nativeEvent)||e.preventDefault()}}},n._onDoubleClick=function(e){var t=e.target,r=n.props.onItemInvoked,o=n._findItemRoot(t);if(o&&r&&!n._isInputElement(t)){for(var a=n._getItemIndex(o);t!==n._root.current&&!(n._hasAttribute(t,Cg)||n._hasAttribute(t,Cv));){if(t===o){n._onInvokeClick(e,a);break}t=nH(t)}t=nH(t)}},n._onKeyDownCapture=function(e){n._updateModifiers(e),n._handleNextFocus(!0)},n._onKeyDown=function(e){n._updateModifiers(e);var t=e.target,r=n._isSelectionDisabled(t),o=n.props,a=o.selection,s=o.selectionClearedOnEscapePress,l=e.which===oo&&(n._isCtrlPressed||n._isMetaPressed),c=e.which===r1;if(!n._isInputElement(t)){var u=n._getSelectionMode();if(l&&u===h.multiple&&!a.isAllSelected()){r||a.setAllSelected(!0),e.stopPropagation(),e.preventDefault();return}if(s&&c&&a.getSelectedCount()>0){r||a.setAllSelected(!1),e.stopPropagation(),e.preventDefault();return}var d=n._findItemRoot(t);if(d)for(var p=n._getItemIndex(d),f=n._getItemSpan(d);t!==n._root.current&&!n._hasAttribute(t,Cg);){if(n._shouldAutoSelect(t)){r||void 0!==f||n._onInvokeMouseDown(e,p,f);break}if((e.which===rQ||e.which===r2)&&("BUTTON"===t.tagName||"A"===t.tagName||"INPUT"===t.tagName||"SUMMARY"===t.tagName))return!1;else if(t===d){if(e.which===rQ){void 0===f&&(n._onInvokeClick(e,p),e.preventDefault());return}if(e.which===r2){r||n._onToggleClick(e,p,f),e.preventDefault();return}break}t=nH(t)}}},n._events=new rv(n),n._async=new nF(n),i2(n);var r=n.props.selection;return n.state={isModal:r.isModal&&r.isModal()},n}return tp(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.selection.isModal&&e.selection.isModal();return tf(tf({},t),{isModal:n})},t.prototype.componentDidMount=function(){var e=nM(this._root.current),t=null==e?void 0:e.document;this._events.on(e,"keydown, keyup",this._updateModifiers,!0),this._events.on(t,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(null==t?void 0:t.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(null==t?void 0:t.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},t.prototype.render=function(){var e=this.state.isModal;return ts.createElement("div",{className:oG("ms-SelectionZone",this.props.className,{"ms-SelectionZone--modal":!!e}),ref:this._root,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onKeyDownCapture:this._onKeyDownCapture,onClick:this._onClick,role:"presentation",onDoubleClick:this._onDoubleClick,onContextMenu:this._onContextMenu,onMouseDownCapture:this._onMouseDownCapture,onFocusCapture:this._onFocus,"data-selection-is-modal":!!e||void 0},this.props.children,ts.createElement(ac,null))},t.prototype.componentDidUpdate=function(e){var t=this.props.selection;t!==e.selection&&(this._events.off(e.selection),this._events.on(t,"change",this._onSelectionChange))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype._isSelectionDisabled=function(e){if(this._getSelectionMode()===h.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,Cf))return!0;e=nH(e)}return!1},t.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===h.multiple&&(t.toggleAllSelected(),e.stopPropagation(),e.preventDefault())},t.prototype._onToggleClick=function(e,t,n){var r=this.props.selection,o=this._getSelectionMode();if(r.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&(void 0!==n?!r.isRangeSelected(t,n):!r.isIndexSelected(t))&&r.setModal&&(r.setModal(!0),this._setIsTouch(!1)),o===h.multiple)void 0!==n?r.toggleRangeSelected(t,n):r.toggleIndexSelected(t);else if(o!==h.single)return void r.setChangeEvents(!0);else if(void 0===n||1===n){var a=r.isIndexSelected(t),s=r.isModal&&r.isModal();r.setAllSelected(!1),r.setIndexSelected(t,!a,!0),s&&r.setModal&&r.setModal(!0)}r.setChangeEvents(!0),e.stopPropagation()},t.prototype._onInvokeClick=function(e,t){var n=this.props,r=n.selection,o=n.onItemInvoked;o&&(o(r.getItems()[t],t,e.nativeEvent),e.preventDefault(),e.stopPropagation())},t.prototype._onItemSurfaceClick=function(e,t,n){var r,o=this.props,a=o.selection,s=o.toggleWithoutModifierPressed,l=this._isCtrlPressed||this._isMetaPressed,c=this._getSelectionMode();c===h.multiple?this._isShiftPressed&&!this._isTabPressed?void 0!==n?null==(r=a.selectToRange)||r.call(a,t,n,!l):a.selectToIndex(t,!l):"click"===e&&(l||s)?void 0!==n?a.toggleRangeSelected(t,n):a.toggleIndexSelected(t):this._clearAndSelectIndex(t,n):c===h.single&&this._clearAndSelectIndex(t,n)},t.prototype._onInvokeMouseDown=function(e,t,n){var r=this.props.selection;if(void 0!==n){if(r.isRangeSelected(t,n))return}else if(r.isIndexSelected(t))return;this._clearAndSelectIndex(t,n)},t.prototype._findScrollParentAndTryClearOnEmptyClick=function(e){var t=nM(this._root.current),n=null==t?void 0:t.document,r=rP(this._root.current);this._events.off(n,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(r,"click",this._tryClearOnEmptyClick),(r&&e.target instanceof Node&&r.contains(e.target)||r===e.target)&&this._tryClearOnEmptyClick(e)},t.prototype._tryClearOnEmptyClick=function(e){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(e.target)&&this.props.selection.setAllSelected(!1)},t.prototype._clearAndSelectIndex=function(e,t){var n,r=this.props,o=r.selection,a=r.selectionClearedOnSurfaceClick,s=void 0===a||a;if(!((void 0===t||1===t)&&1===o.getSelectedCount()&&o.isIndexSelected(e))&&s){var l=o.isModal&&o.isModal();o.setChangeEvents(!1),o.setAllSelected(!1),void 0!==t?null==(n=o.setRangeSelected)||n.call(o,e,t,!0,!0):o.setIndexSelected(e,!0,!0),(l||this.props.enterModalOnTouch&&this._isTouch)&&(o.setModal&&o.setModal(!0),this._isTouch&&this._setIsTouch(!1)),o.setChangeEvents(!0)}},t.prototype._updateModifiers=function(e){this._isShiftPressed=e.shiftKey,this._isCtrlPressed=e.ctrlKey,this._isMetaPressed=e.metaKey;var t=e.keyCode;this._isTabPressed=!!t&&t===r$},t.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var n=e.getAttribute(Ch),r=Number(n);if(null!==n&&r>=0&&r<t.getItems().length)break;e=nH(e)}if(e!==this._root.current)return e},t.prototype._getItemIndex=function(e){var t,n=parseInt(null!=(t=e.getAttribute(Ch))?t:"",10);return isNaN(n)?-1:n},t.prototype._getItemSpan=function(e){var t,n=parseInt(null!=(t=e.getAttribute(Cm))?t:"",10);return isNaN(n)?void 0:n},t.prototype._shouldAutoSelect=function(e){return this._hasAttribute(e,Cx)},t.prototype._hasAttribute=function(e,t){for(var n=!1;!n&&e!==this._root.current;){var r=e.getAttribute(t);if("false"===r){n=!1;break}n="true"===r,e=nH(e)}return n},t.prototype._isInputElement=function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")},t.prototype._isNonHandledClick=function(e){var t=n$();if(t&&e)for(;e&&e!==t.documentElement;){if(re(e)||e.hasAttribute("data-selection-index"))return!1;e=nH(e)}return!0},t.prototype._handleNextFocus=function(e){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),this._shouldHandleFocus=e,e&&this._async.setTimeout(function(){t._shouldHandleFocus=!1},100)},t.prototype._setIsTouch=function(e){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,e&&this._async.setTimeout(function(){t._isTouch=!1},300)},t.prototype._getSelectionMode=function(){var e=this.props.selection,t=this.props.selectionMode;return void 0===t?e?e.mode:h.none:t},t.defaultProps={isSelectedOnFocus:!0,toggleWithoutModifierPressed:!1,selectionMode:h.multiple,selectionClearedOnEscapePress:!0},t}(ts.Component);!function(e){e[e.hidden=0]="hidden",e[e.visible=1]="visible"}(ey||(ey={})),function(e){e[e.disabled=0]="disabled",e[e.clickable=1]="clickable",e[e.hasDropdown=2]="hasDropdown"}(eb||(eb={})),function(e){e[e.unconstrained=0]="unconstrained",e[e.horizontalConstrained=1]="horizontalConstrained"}(ex||(ex={})),function(e){e[e.outside=0]="outside",e[e.surface=1]="surface",e[e.header=2]="header"}(eC||(eC={})),function(e){e[e.fixedColumns=0]="fixedColumns",e[e.justified=1]="justified"}(ek||(ek={})),function(e){e[e.onHover=0]="onHover",e[e.always=1]="always",e[e.hidden=2]="hidden"}(ew||(ew={}));var Ck=36,Cw=function(e){var t=e.count,n=e.indentWidth,r=void 0===n?Ck:n,o=e.role,a=void 0===o?"presentation":o,s=t*r;return t>0?ts.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:s},role:a}):null},CS={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},C_="cubic-bezier(0.445, 0.050, 0.550, 0.950)",CE=function(e){var t,n,r=e.theme,o=e.className,a=e.compact,s=r.palette,l=l0(CS,r);return{root:[l.root,r.fonts.small,{position:"relative",selectors:((t={})[".".concat(l.listCell)]={minHeight:38},t)},a&&[l.compact,{selectors:((n={})[".".concat(l.listCell)]={minHeight:32},n)}],o],group:[l.group,{transition:"background-color ".concat(li," ").concat(C_)}],groupIsDropping:{backgroundColor:s.neutralLight}}},CP={root:"ms-DetailsRow",compact:"ms-DetailsList--Compact",cell:"ms-DetailsRow-cell",cellAnimation:"ms-DetailsRow-cellAnimation",cellCheck:"ms-DetailsRow-cellCheck",check:"ms-DetailsRow-check",cellMeasurer:"ms-DetailsRow-cellMeasurer",listCellFirstChild:"ms-List-cell:first-child",isContentUnselectable:"is-contentUnselectable",isSelected:"is-selected",isCheckVisible:"is-check-visible",isRowHeader:"is-row-header",fields:"ms-DetailsRow-fields"},CI="[data-is-focusable='true']",CT={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},CD={rowHeight:42,compactRowHeight:32},CA=tf(tf({},CD),{rowVerticalPadding:11,compactRowVerticalPadding:6}),CR=function(e){var t,n,r,o,a,s,l,c,u,d,p,f,h,m,g=e.theme,v=e.isSelected,y=e.canSelect,b=e.droppingClassName,x=e.isCheckVisible,C=e.checkboxCellClassName,k=e.compact,w=e.className,S=e.cellStyleProps,_=void 0===S?CT:S,E=e.enableUpdateAnimations,I=e.disabled,T=g.palette,D=g.fonts,A=T.neutralPrimary,R=T.white,N=T.neutralSecondary,B=T.neutralLighter,M=T.neutralLight,F=T.neutralDark,O=T.neutralQuaternaryAlt,L=g.semanticColors,H=L.focusBorder,z=L.linkHovered,V=l0(CP,g),U=A,j=N,W=R,q=F,G=A,K=B,X=F,Y=A,Q=M,J=F,Z=A,ee=O,et=F,en=A,er=M,eo=O,ei=[lO(g,{inset:-1,borderColor:H,outlineColor:R,highContrastStyle:{top:2,right:2,bottom:2,left:2},pointerEvents:"none"}),V.isSelected,{color:Y,background:Q,borderBottom:"1px solid ".concat(R),selectors:((t={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid ".concat(R)}})[".".concat(V.cell," > .").concat(fy.root)]={color:z,selectors:((n={})[l_]={color:"HighlightText"},n)},t["&:hover"]={background:ee,color:Z,selectors:((r={})[l_]={background:"Highlight",selectors:((o={})[".".concat(V.cell)]={color:"HighlightText"},o[".".concat(V.cell," > .").concat(fy.root)]={forcedColorAdjust:"none",color:"HighlightText"},o)},r[".".concat(V.isRowHeader)]={color:J,selectors:((a={})[l_]={color:"HighlightText"},a)},r)},t["&:focus"]={background:er,selectors:((s={})[".".concat(V.cell)]={color:en,selectors:((l={})[l_]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},l)},s[".".concat(V.isRowHeader)]={color:et,selectors:((c={})[l_]={color:"HighlightText"},c)},s[l_]={background:"Highlight"},s)},t[l_]=tf(tf({background:"Highlight",color:"HighlightText"},lF()),{selectors:{a:{color:"HighlightText"}}}),t["&:focus:hover"]={background:eo},t)}],ea=[V.isContentUnselectable,{userSelect:"none",cursor:"default"}],es={minHeight:CA.compactRowHeight,border:0},el={minHeight:CA.compactRowHeight,paddingTop:CA.compactRowVerticalPadding,paddingBottom:CA.compactRowVerticalPadding,paddingLeft:"".concat(_.cellLeftPadding,"px")},ec=[lO(g,{inset:-1}),V.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:CA.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:CA.rowVerticalPadding,paddingBottom:CA.rowVerticalPadding,paddingLeft:"".concat(_.cellLeftPadding,"px"),selectors:((u={"& > button":{maxWidth:"100%"}})[CI]=lO(g,{inset:-1,borderColor:N,outlineColor:R}),u)},v&&{selectors:((d={})[l_]=tf({background:"Highlight",color:"HighlightText"},lF()),d)},k&&el,I&&{opacity:.5}];return{root:[V.root,ck.fadeIn400,b,g.fonts.small,x&&V.isCheckVisible,lO(g,{borderColor:H,outlineColor:R}),{borderBottom:"1px solid ".concat(B),background:W,color:j,display:"inline-flex",minWidth:"100%",minHeight:CA.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:((p={})[".".concat(V.listCellFirstChild," &:before")]={display:"none"},p["&:hover"]={background:K,color:G,selectors:((f={})[".".concat(V.isRowHeader)]={color:q},f[".".concat(V.cell," > .").concat(fy.root)]={color:z},f)},p["&:hover .".concat(V.check)]={opacity:1},p[".".concat(i7," &:focus .").concat(V.check,", :host(.").concat(i7,") &:focus .").concat(V.check)]={opacity:1},p[".ms-GroupSpacer"]={flexShrink:0,flexGrow:0},p)},v&&ei,!y&&ea,k&&es,w],cellUnpadded:{paddingRight:"".concat(_.cellRightPadding,"px")},cellPadded:{paddingRight:"".concat(_.cellExtraRightPadding+_.cellRightPadding,"px"),selectors:((h={})["&.".concat(V.cellCheck)]={paddingRight:0},h)},cell:ec,cellAnimation:E&&ll.slideLeftIn40,cellMeasurer:[V.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[ec,V.cellCheck,C,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],fields:[V.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[V.isRowHeader,{color:U,fontSize:D.medium.fontSize},v&&{color:X,fontWeight:P.semibold,selectors:((m={})[l_]={color:"HighlightText"},m)}],isMultiline:[ec,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[V.check]}},CN={tooltipHost:"ms-TooltipHost",root:"ms-DetailsHeader",cell:"ms-DetailsHeader-cell",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintCaretStyle:"ms-DetailsHeader-dropHintCaretStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVertical:"ms-DetailsColumn-gripperBarVertical",checkTooltip:"ms-DetailsHeader-checkTooltip",check:"ms-DetailsHeader-check"},CB=42,CM=function(e){var t=e.theme,n=e.cellStyleProps,r=void 0===n?CT:n,o=t.semanticColors;return[l0(CN,t).cell,lO(t),{color:o.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 ".concat(r.cellRightPadding,"px 0 ").concat(r.cellLeftPadding,"px"),lineHeight:"inherit",margin:"0",height:CB,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]},CF=function(e){var t,n,r,o,a=e.theme,s=e.className,l=e.isAllSelected,c=e.isResizingColumn,u=e.isSizing,d=e.isAllCollapsed,p=e.cellStyleProps,f=void 0===p?CT:p,h=a.semanticColors,m=a.palette,g=a.fonts,v=l0(CN,a),y={iconForegroundColor:h.bodySubtext,headerForegroundColor:h.bodyText,headerBackgroundColor:h.bodyBackground,resizerColor:m.neutralTertiaryAlt},b={opacity:1,transition:"opacity 0.3s linear"},x=CM(e);return{root:[v.root,g.small,{display:"inline-block",background:y.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:CB,lineHeight:CB,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid ".concat(h.bodyDivider),cursor:"default",userSelect:"none",selectors:((t={})["&:hover .".concat(v.check)]={opacity:1},t["& .".concat(v.tooltipHost," .").concat(v.checkTooltip)]={display:"block"},t)},l&&v.isAllSelected,c&&v.isResizingColumn,s],check:[v.check,{height:CB},{selectors:((n={})[".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]={opacity:1},n)}],cellWrapperPadded:{paddingRight:f.cellExtraRightPadding+f.cellRightPadding},cellIsCheck:[x,v.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},l&&{opacity:1}],cellIsGroupExpander:[x,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:g.small.fontSize,padding:0,border:"none",width:Ck,color:m.neutralSecondary,selectors:{":hover":{backgroundColor:m.neutralLighter},":active":{backgroundColor:m.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:h.bodyText,background:h.listHeaderBackgroundHovered},":active":{background:h.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[v.cellSizer,lH(),{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:((r={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:y.resizerColor,opacity:0,left:"50%"},":focus:after":b,":hover:after":b})["&.".concat(v.isResizing,":after")]=[b,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],r)}],cellIsResizing:v.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[v.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},d?[v.isCollapsed,{transform:"rotate(0deg)"}]:{transform:ox(a)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:v.checkTooltip,sizingOverlay:u&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:((o={})[l_]=tf({background:"transparent"},lF()),o)},accessibleLabel:lV,dropHintCircleStyle:[v.dropHintCircleStyle,{display:"inline-block",visibility:"hidden",position:"absolute",bottom:0,height:9,width:9,borderRadius:"50%",marginLeft:-5,top:34,overflow:"visible",zIndex:10,border:"1px solid ".concat(m.themePrimary),background:m.white}],dropHintCaretStyle:[v.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:g.medium.fontSize,color:m.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[v.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:m.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}},CO={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},CL=48,CH=function(e){var t=e.theme,n=e.className,r=e.isHeader,o=e.selected,a=e.anySelected,s=e.canSelect,l=e.compact,c=e.isVisible,u=l0(CO,t),d=CD.rowHeight,p=CD.compactRowHeight,f=r?CB:l?p:d,h=c||o||a;return{root:[u.root,n],check:[!s&&u.isDisabled,r&&u.isHeader,lO(t),t.fonts.small,vg.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:+!!h,height:f,width:CL,padding:0,margin:0}],isDisabled:[]}},Cz={root:"ms-GroupHeader",compact:"ms-GroupHeader--compact",check:"ms-GroupHeader-check",dropIcon:"ms-GroupHeader-dropIcon",expand:"ms-GroupHeader-expand",isCollapsed:"is-collapsed",title:"ms-GroupHeader-title",isSelected:"is-selected",iconTag:"ms-Icon--Tag",group:"ms-GroupedList-group",isDropping:"is-dropping"},CV="cubic-bezier(0.075, 0.820, 0.165, 1.000)",CU="cubic-bezier(0.390, 0.575, 0.565, 1.000)",Cj="cubic-bezier(0.600, -0.280, 0.735, 0.045)",CW=48,Cq=40,CG=function(e){var t,n,r,o,a,s=e.theme,l=e.className,c=e.selected,u=e.isCollapsed,d=e.compact,p=CT.cellLeftPadding,f=d?Cq:CW,h=s.semanticColors,m=s.palette,g=s.fonts,v=l0(Cz,s),y=[lO(s),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[v.root,lO(s),s.fonts.medium,{borderBottom:"1px solid ".concat(h.listBackground),cursor:"default",userSelect:"none",selectors:((t={":hover":{background:h.listItemBackgroundHovered,color:h.actionLinkHovered}})["&:hover .".concat(v.check)]={opacity:1},t[".".concat(i7," &:focus .").concat(v.check,", :host(.").concat(i7,") &:focus .").concat(v.check)]={opacity:1},t[":global(.".concat(v.group,".").concat(v.isDropping,")")]={selectors:((n={})["& > .".concat(v.root," .").concat(v.dropIcon)]={transition:"transform ".concat(ls," ").concat(CV," ")+"opacity ".concat(lo," ").concat(CU),transitionDelay:la,opacity:1,transform:"rotate(0.2deg) scale(1);"},n[".".concat(v.check)]={opacity:0},n)},t)},c&&[v.isSelected,{background:h.listItemBackgroundChecked,selectors:((r={":hover":{background:h.listItemBackgroundCheckedHovered}})["".concat(v.check)]={opacity:1},r)}],d&&[v.compact,{border:"none"}],l],groupHeaderContainer:[{display:"flex",alignItems:"center",height:f}],headerCount:[{padding:"0px 4px"}],check:[v.check,y,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:CL,height:f,selectors:((o={})[".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]={opacity:1},o)}],expand:[v.expand,y,{display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",fontSize:g.small.fontSize,width:Ck,height:f,color:c?m.neutralPrimary:m.neutralSecondary,selectors:{":hover":{backgroundColor:c?m.neutralQuaternary:m.neutralLight},":active":{backgroundColor:c?m.neutralTertiaryAlt:m.neutralQuaternaryAlt}}}],expandIsCollapsed:[u?[v.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:ox(s)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[v.title,{paddingLeft:p,fontSize:d?g.medium.fontSize:g.mediumPlus.fontSize,fontWeight:u?P.regular:P.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}],dropIcon:[v.dropIcon,{position:"absolute",left:-26,fontSize:I.large,color:m.neutralSecondary,transition:"transform ".concat(li," ").concat(Cj,", ")+"opacity ".concat(ls," ").concat(CU),opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:((a={})[":global(.".concat(v.iconTag,")")]={position:"absolute"},a)}]}};!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(eS||(eS={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(e_||(e_={}));var CK=oI(),CX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,r=e.ariaLabel,o=e.ariaLive,a=e.styles,s=e.label,l=e.theme,c=e.className,u=e.labelPosition,d=r,p=i$(this.props,iY,["size"]),f=n;void 0===f&&void 0!==t&&(f=t===e_.large?eS.large:eS.medium);var h=CK(a,{theme:l,size:f,className:c,labelPosition:u});return ts.createElement("div",tf({},p,{className:h.root}),ts.createElement("div",{className:h.circle}),s&&ts.createElement("div",{className:h.label},s),d&&ts.createElement("div",{role:"status","aria-live":o},ts.createElement(rz,null,ts.createElement("div",{className:h.screenReaderText},d))))},t.defaultProps={size:eS.medium,ariaLive:"polite",labelPosition:"bottom"},t}(ts.Component),CY={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},C$=oL(function(){return n_({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),CQ=a1(CX,function(e){var t,n=e.theme,r=e.size,o=e.className,a=e.labelPosition,s=n.palette,l=l0(CY,n);return{root:[l.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===a&&{flexDirection:"column-reverse"},"right"===a&&{flexDirection:"row"},"left"===a&&{flexDirection:"row-reverse"},o],circle:[l.circle,{boxSizing:"border-box",borderRadius:"50%",borderWidth:"1.5px",borderStyle:"solid",borderTopColor:s.themePrimary,borderRightColor:s.themeLight,borderBottomColor:s.themeLight,borderLeftColor:s.themeLight,animationName:C$(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:((t={})[l_]=tf({borderTopColor:"Highlight"},lF()),t)},r===eS.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===eS.small&&["ms-Spinner--small",{width:16,height:16}],r===eS.medium&&["ms-Spinner--medium",{width:20,height:20}],r===eS.large&&["ms-Spinner--large",{width:28,height:28}]],label:[l.label,n.fonts.small,{color:s.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===a&&{margin:"0 0 8px"},"right"===a&&{margin:"0 0 0 8px"},"left"===a&&{margin:"0 8px 0 0"}],screenReaderText:lV}},void 0,{scope:"Spinner"}),CJ=oI(),CZ=function(e){function t(t){var n=e.call(this,t)||this;return n._toggleCollapse=function(){var e=n.props,t=e.group,r=e.onToggleCollapse,o=e.isGroupLoading,a=!n.state.isCollapsed,s=!a&&o&&o(t);n.setState({isCollapsed:a,isLoadingVisible:s}),r&&r(t)},n._onKeyUp=function(e){var t=n.props,r=t.group,o=t.onGroupHeaderKeyUp;if(o&&o(e,r),!e.defaultPrevented){var a=n.state.isCollapsed&&e.which===ok(r7,n.props.theme);(!n.state.isCollapsed&&e.which===ok(r8,n.props.theme)||a)&&(n._toggleCollapse(),e.stopPropagation(),e.preventDefault())}},n._onToggleClick=function(e){n._toggleCollapse(),e.stopPropagation(),e.preventDefault()},n._onHeaderClick=function(){var e=n.props,t=e.group,r=e.onGroupHeaderClick;r&&r(t)},n._onRenderTitle=function(e){if(!e.group)return null;var t=e.onRenderName?aV(e.onRenderName,n._onRenderName):n._onRenderName;return ts.createElement("div",{className:n._classNames.title,id:n._id,onClick:n._onHeaderClick,role:"gridcell","aria-colspan":n.props.ariaColSpan,"data-selection-invoke":!0},t(e))},n._onRenderName=function(e){var t=e.group;return t?ts.createElement(ts.Fragment,null,ts.createElement("span",null,t.name),ts.createElement("span",{className:n._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},n._id=iw("GroupHeader"),n.state={isCollapsed:n.props.group&&n.props.group.isCollapsed,isLoadingVisible:!1},n}return tp(t,e),t.getDerivedStateFromProps=function(e,t){if(e.group){var n=e.group.isCollapsed,r=e.isGroupLoading,o=!n&&r&&r(e.group);return tf(tf({},t),{isCollapsed:n||!1,isLoadingVisible:o||!1})}return t},t.prototype.render=function(){var e=this.props,t=e.group,n=e.groupLevel,r=void 0===n?0:n,o=e.viewport,a=e.selectionMode,s=e.loadingText,l=e.isSelected,c=void 0!==l&&l,u=e.selected,d=void 0!==u&&u,p=e.indentWidth,f=e.onRenderGroupHeaderCheckbox,m=e.isCollapsedGroupSelectVisible,g=void 0===m||m,v=e.expandButtonProps,y=e.expandButtonIcon,b=e.selectAllButtonProps,x=e.theme,C=e.styles,k=e.className,w=e.compact,S=e.ariaLevel,_=e.ariaPosInSet,E=e.ariaSetSize,P=e.ariaRowIndex,I=e.useFastIcons,T=this.props.onRenderTitle?aV(this.props.onRenderTitle,this._onRenderTitle):this._onRenderTitle,D=I?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,A=f?aV(f,D):D,R=this.state,N=R.isCollapsed,B=R.isLoadingVisible,M=a===h.multiple,F=M&&(g||!(t&&t.isCollapsed)),O=d||c,L=ox(x);return(this._classNames=CJ(C,{theme:x,className:k,selected:O,isCollapsed:N,compact:w}),t)?ts.createElement("div",{className:this._classNames.root,style:o?{minWidth:o.width}:{},role:"row","aria-level":S,"aria-setsize":E,"aria-posinset":_,"aria-rowindex":P,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":M?O:void 0,"data-selection-index":t.startIndex,"data-selection-span":t.count},ts.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},F?ts.createElement("div",{role:"gridcell"},ts.createElement("button",tf({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox",id:"".concat(this._id,"-check"),"aria-checked":O,"aria-labelledby":"".concat(this._id,"-check ").concat(this._id),"data-selection-toggle":!0},b),A({checked:O,theme:x},A))):a!==h.none&&ts.createElement(Cw,{indentWidth:CL,count:1}),ts.createElement(Cw,{indentWidth:p,count:r}),ts.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},ts.createElement(pf,{iconName:"Tag"})),ts.createElement("div",{role:"gridcell"},ts.createElement("button",tf({"data-is-focusable":!1,"data-selection-disabled":!0,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},v),ts.createElement(pf,{className:this._classNames.expandIsCollapsed,iconName:y||(L?"ChevronLeftMed":"ChevronRightMed")}))),T(this.props),B&&ts.createElement(CQ,{label:s}))):null},t.prototype._defaultCheckboxRender=function(e){return ts.createElement(vv,{checked:e.checked})},t.prototype._fastDefaultCheckboxRender=function(e){return ts.createElement(C0,{theme:e.theme,checked:e.checked})},t.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},t}(ts.Component),C0=ts.memo(function(e){return ts.createElement(vv,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})}),C1=a1(CZ,CG,void 0,{scope:"GroupHeader"}),C2={root:"ms-GroupShowAll",link:"ms-Link"},C5=function(e){var t,n=e.theme,r=n.fonts,o=l0(C2,n);return{root:[o.root,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:((t={})[".".concat(o.link)]={fontSize:r.small.fontSize},t)}]}},C4=oI(),C3=a1(function(e){var t=e.group,n=e.groupLevel,r=e.showAllLinkText,o=void 0===r?"Show All":r,a=e.styles,s=e.theme,l=e.onToggleSummarize,c=C4(a,{theme:s}),u=ts.useCallback(function(e){l(t),e.stopPropagation(),e.preventDefault()},[l,t]);return t?ts.createElement("div",{className:c.root},ts.createElement(Cw,{count:n}),ts.createElement(fb,{onClick:u},o)):null},C5,void 0,{scope:"GroupShowAll"}),C6={root:"ms-groupFooter"},C8=function(e){var t=e.theme,n=e.className,r=l0(C6,t);return{root:[t.fonts.medium,r.root,{position:"relative",padding:"5px 38px"},n]}},C9=oI(),C7=a1(function(e){var t=e.group,n=e.groupLevel,r=e.footerText,o=e.indentWidth,a=C9(e.styles,{theme:e.theme});return t&&r?ts.createElement("div",{className:a.root},ts.createElement(Cw,{indentWidth:o,count:n}),r):null},C8,void 0,{scope:"GroupFooter"}),ke="is-dropping",kt=function(e){function t(n){var r=e.call(this,n)||this;r._root=ts.createRef(),r._list=ts.createRef(),r._subGroupRefs={},r._droppingClassName="",r._onRenderGroupHeader=function(e){return ts.createElement(C1,tf({},e))},r._onRenderGroupShowAll=function(e){return ts.createElement(C3,tf({},e))},r._onRenderGroupFooter=function(e){return ts.createElement(C7,tf({},e))},r._renderSubGroup=function(e,n){var o=r.props,a=o.dragDropEvents,s=o.dragDropHelper,l=o.eventsToRegister,c=o.getGroupItemLimit,u=o.groupNestingDepth,d=o.groupProps,p=o.items,f=o.headerProps,h=o.showAllProps,m=o.footerProps,g=o.listProps,v=o.onRenderCell,y=o.selection,b=o.selectionMode,x=o.viewport,C=o.onRenderGroupHeader,k=o.onRenderGroupShowAll,w=o.onRenderGroupFooter,S=o.onShouldVirtualize,_=o.group,E=o.compact,P=e.level?e.level+1:u;return!e||e.count>0||d&&d.showEmptyGroups?ts.createElement(t,{ref:function(e){return r._subGroupRefs["subGroup_"+n]=e},key:r._getGroupKey(e,n),dragDropEvents:a,dragDropHelper:s,eventsToRegister:l,footerProps:m,getGroupItemLimit:c,group:e,groupIndex:n,groupNestingDepth:P,groupProps:d,headerProps:f,items:p,listProps:g,onRenderCell:v,selection:y,selectionMode:b,showAllProps:h,viewport:x,onRenderGroupHeader:C,onRenderGroupShowAll:k,onRenderGroupFooter:w,onShouldVirtualize:S,groups:_?_.children:[],compact:E}):null},r._getGroupDragDropOptions=function(){var e=r.props,t=e.group,n=e.groupIndex,o=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:-1,context:{data:t,index:n,isGroup:!0},updateDropState:r._updateDroppingState,canDrag:o.canDrag,canDrop:o.canDrop,onDrop:o.onDrop,onDragStart:o.onDragStart,onDragEnter:o.onDragEnter,onDragLeave:o.onDragLeave,onDragEnd:o.onDragEnd,onDragOver:o.onDragOver}},r._updateDroppingState=function(e,t){var n=r.state.isDropping,o=r.props,a=o.dragDropEvents,s=o.group;n!==e&&(n?a&&a.onDragLeave&&a.onDragLeave(s,t):a&&a.onDragEnter&&(r._droppingClassName=a.onDragEnter(s,t)),r.setState({isDropping:e}))};var o=n.selection,a=n.group;return i2(r),r._id=iw("GroupedListSection"),r.state={isDropping:!1,isSelected:!!o&&!!a&&o.isRangeSelected(a.startIndex,a.count)},r._events=new rv(r),r}return tp(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),n&&this._events.on(n,aj,this._onSelectionChange)},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},t.prototype.componentDidUpdate=function(e){(this.props.group!==e.group||this.props.groupIndex!==e.groupIndex||this.props.dragDropHelper!==e.dragDropHelper)&&(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},t.prototype.render=function(){var e=this.props,t=e.getGroupItemLimit,n=e.group,r=e.groupIndex,o=e.headerProps,a=e.showAllProps,s=e.footerProps,l=e.viewport,c=e.selectionMode,u=e.onRenderGroupHeader,d=void 0===u?this._onRenderGroupHeader:u,p=e.onRenderGroupShowAll,f=void 0===p?this._onRenderGroupShowAll:p,h=e.onRenderGroupFooter,m=void 0===h?this._onRenderGroupFooter:h,g=e.onShouldVirtualize,v=e.groupedListClassNames,y=e.groups,b=e.compact,x=e.listProps,C=void 0===x?{}:x,k=this.state.isSelected,w=n&&t?t(n):1/0,S=n&&!n.children&&!n.isCollapsed&&!n.isShowingAll&&(n.count>w||n.hasMoreData),_=n&&n.children&&n.children.length>0,E=C.version,P={group:n,groupIndex:r,groupLevel:n?n.level:0,isSelected:k,selected:k,viewport:l,selectionMode:c,groups:y,compact:b},I={groupedListId:this._id,ariaLevel:(null==n?void 0:n.level)?n.level+1:1,ariaSetSize:y?y.length:void 0,ariaPosInSet:void 0!==r?r+1:void 0},T=tf(tf(tf({},o),P),I),D=tf(tf({},a),P),A=tf(tf({},s),P),R=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(n)&&!!this.props.dragDropEvents.canDragGroups;return ts.createElement("div",tf({ref:this._root},R&&{draggable:!0},{className:oG(v&&v.group,this._getDroppingClassName()),role:"presentation"}),d(T,this._onRenderGroupHeader),n&&n.isCollapsed?null:_?ts.createElement(xX,{role:"presentation",ref:this._list,items:n?n.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:g,version:E,id:this._id}):this._onRenderGroup(w),n&&n.isCollapsed?null:S&&f(D,this._onRenderGroupShowAll),m(A,this._onRenderGroupFooter))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this.forceListUpdate()},t.prototype.forceListUpdate=function(){var e=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),e&&e.children&&e.children.length>0)for(var t=e.children.length,n=0;n<t;n++){var r=this._list.current.pageRefs["subGroup_"+String(n)];r&&r.forceListUpdate()}}else{var r=this._subGroupRefs["subGroup_"+String(0)];r&&r.forceListUpdate()}},t.prototype._onSelectionChange=function(){var e=this.props,t=e.group,n=e.selection;if(n&&t){var r=n.isRangeSelected(t.startIndex,t.count);r!==this.state.isSelected&&this.setState({isSelected:r})}},t.prototype._onRenderGroupCell=function(e,t,n){return function(r,o){return e(t,r,o,n)}},t.prototype._onRenderGroup=function(e){var t=this.props,n=t.group,r=t.items,o=t.onRenderCell,a=t.listProps,s=t.groupNestingDepth,l=t.onShouldVirtualize,c=t.groupProps,u=n&&!n.isShowingAll?n.count:r.length,d=n?n.startIndex:0;return ts.createElement(xX,tf({role:c&&c.role?c.role:"rowgroup","aria-label":null==n?void 0:n.name,items:r,onRenderCell:this._onRenderGroupCell(o,s,n),ref:this._list,renderCount:Math.min(u,e),startIndex:d,onShouldVirtualize:l,id:this._id},a))},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(e.level)+String(t))},t.prototype._getDroppingClassName=function(){var e=this.state.isDropping,t=this.props,n=t.group,r=t.groupedListClassNames;return oG((e=!!(n&&e))&&this._droppingClassName,e&&ke,e&&r&&r.groupIsDropping)},t}(ts.Component),kn=oI(),kr=CD.rowHeight,ko=CD.compactRowHeight,ki=a1(function(e){function t(t){var n=e.call(this,t)||this;n._list=ts.createRef(),n._renderGroup=function(e,t){var r=n.props,o=r.dragDropEvents,a=r.dragDropHelper,s=r.eventsToRegister,l=r.groupProps,c=r.items,u=r.listProps,d=r.onRenderCell,p=r.selectionMode,f=r.selection,h=r.viewport,m=r.onShouldVirtualize,g=r.groups,v=r.compact,y={onToggleSelectGroup:n._onToggleSelectGroup,onToggleCollapse:n._onToggleCollapse,onToggleSummarize:n._onToggleSummarize},b=tf(tf({},l.headerProps),y),x=tf(tf({},l.showAllProps),y),C=tf(tf({},l.footerProps),y),k=n._getGroupNestingDepth();if(!l.showEmptyGroups&&e&&0===e.count)return null;var w=tf(tf({},u||{}),{version:n.state.version});return ts.createElement(kt,{key:n._getGroupKey(e,t),dragDropEvents:o,dragDropHelper:a,eventsToRegister:s,footerProps:C,getGroupItemLimit:l&&l.getGroupItemLimit,group:e,groupIndex:t,groupNestingDepth:k,groupProps:l,headerProps:b,listProps:w,items:c,onRenderCell:d,onRenderGroupHeader:l.onRenderHeader,onRenderGroupShowAll:l.onRenderShowAll,onRenderGroupFooter:l.onRenderFooter,selectionMode:p,selection:f,showAllProps:x,viewport:h,onShouldVirtualize:m,groupedListClassNames:n._classNames,groups:g,compact:v})},n._getDefaultGroupItemLimit=function(e){return e.children&&e.children.length>0?e.children.length:e.count},n._getGroupItemLimit=function(e){var t=n.props.groupProps;return(t&&t.getGroupItemLimit?t.getGroupItemLimit:n._getDefaultGroupItemLimit)(e)},n._getGroupHeight=function(e){var t=n.props.compact?ko:kr;return t+(e.isCollapsed?0:t*n._getGroupItemLimit(e))},n._getPageHeight=function(e){var t=n.state.groups,r=n.props.getGroupHeight,o=void 0===r?n._getGroupHeight:r,a=t&&t[e];return a?o(a,e):0},n._onToggleCollapse=function(e){var t=n.props.groupProps,r=t&&t.headerProps&&t.headerProps.onToggleCollapse;e&&(r&&r(e),e.isCollapsed=!e.isCollapsed,n._updateIsSomeGroupExpanded(),n.forceUpdate())},n._onToggleSelectGroup=function(e){var t=n.props,r=t.selection,o=t.selectionMode;e&&r&&o===h.multiple&&r.toggleRangeSelected(e.startIndex,e.count)},n._isInnerZoneKeystroke=function(e){return e.which===ok(r7)},n._onToggleSummarize=function(e){var t=n.props.groupProps,r=t&&t.showAllProps&&t.showAllProps.onToggleSummarize;r?r(e):(e&&(e.isShowingAll=!e.isShowingAll),n.forceUpdate())},n._getPageSpecification=function(e){var t=n.state.groups,r=t&&t[e];return{key:r&&r.key}},i2(n),n._isSomeGroupExpanded=n._computeIsSomeGroupExpanded(t.groups);var r=t.listProps,o=(void 0===r?{}:r).version,a=void 0===o?{}:o;return n.state={groups:t.groups,items:t.items,listProps:t.listProps,version:a},n}return tp(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,r=e.selectionMode,o=e.compact,a=e.items,s=e.listProps,l=s&&s.version,c=tf(tf({},t),{selectionMode:r,compact:o,groups:n,listProps:s,items:a}),u=!1;return(l!==(t.listProps&&t.listProps.version)||a!==t.items||n!==t.groups||r!==t.selectionMode||o!==t.compact)&&(u=!0),u&&(c=tf(tf({},c),{version:{}})),c},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n)},t.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},t.prototype.componentDidMount=function(){var e=this.props,t=e.groupProps,n=e.groups,r=void 0===n?[]:n;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(r,t.isAllGroupsCollapsed)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.usePageCache,r=e.onShouldVirtualize,o=e.theme,a=e.role,s=void 0===a?"treegrid":a,l=e.styles,c=e.compact,u=e.focusZoneProps,d=void 0===u?{}:u,p=e.rootListProps,f=void 0===p?{}:p,h=this.state,m=h.groups,g=h.version;this._classNames=kn(l,{theme:o,className:t,compact:c});var v=d.shouldEnterInnerZone,y=void 0===v?this._isInnerZoneKeystroke:v;return ts.createElement(fp,tf({direction:K.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},d,{shouldEnterInnerZone:y,className:oG(this._classNames.root,d.className)}),ts.createElement(ac,null),m?ts.createElement(xX,tf({ref:this._list,role:s,items:m,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:n,onShouldVirtualize:r,version:g},f)):this._renderGroup(void 0,0))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype.toggleCollapseAll=function(e){var t=this.state.groups,n=void 0===t?[]:t,r=this.props.groupProps,o=r&&r.onToggleCollapseAll;n.length>0&&(o&&o(e),this._setGroupsCollapsedState(n,e),this._updateIsSomeGroupExpanded(),this.forceUpdate())},t.prototype._setGroupsCollapsedState=function(e,t){for(var n=0;n<e.length;n++)e[n].isCollapsed=t},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(t))},t.prototype._getGroupNestingDepth=function(){for(var e=this.state.groups,t=0,n=e;n&&n.length>0;)t++,n=n[0].children;return t},t.prototype._forceListUpdates=function(e){this.setState({version:{}})},t.prototype._computeIsSomeGroupExpanded=function(e){var t=this;return!!(e&&e.some(function(e){return e.children?t._computeIsSomeGroupExpanded(e.children):!e.isCollapsed}))},t.prototype._updateIsSomeGroupExpanded=function(){var e=this.state.groups,t=this.props.onGroupExpandStateChanged,n=this._computeIsSomeGroupExpanded(e);this._isSomeGroupExpanded!==n&&(t&&t(n),this._isSomeGroupExpanded=n)},t.defaultProps={selectionMode:h.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},t}(ts.Component),CE,void 0,{scope:"GroupedList"}),ka=void 0,ks=function(e,t,n,r){if(!e)return t;n.length<1&&(n=Array(t.length));for(var o=0,a=[],s=e.length-1;s>=0;)a.push({group:e[s],groupIndex:s+1}),s--;for(;a.length>0;){var l=a.pop(),c=l.group,u=l.groupIndex;for(n[o]={group:c,groupId:iw("GroupedListSection"),type:"header",groupIndex:u},o++;!0!==c.isCollapsed&&(null==c?void 0:c.children)&&c.children.length>0;){for(s=c.children.length-1;s>0;)a.push({group:c.children[s],groupIndex:s+1}),s--;c=c.children[0],n[o]={group:c,groupId:iw("GroupedListSection"),type:"header",groupIndex:1},o++}if(!0!==c.isCollapsed){for(var d=c.startIndex,p=r?r(c):1/0,f=d+Math.min(c.isShowingAll?t.length:c.count,p);d<f;)n[o]={group:c,item:t[d],itemIndex:d,type:"item"},d++,o++;!c.children&&!c.isCollapsed&&!c.isShowingAll&&(c.count>p||c.hasMoreData)&&(n[o]={group:c,type:"showAll"},o++)}n[o]={group:c,type:"footer"},o++}return n.length=o,n},kl=function(e,t,n,r){var o=ts.useState(function(){var r;return null!=(r=null==n?void 0:n.isRangeSelected(e,t))&&r}),a=o[0],s=o[1];return ts.useEffect(function(){if(n&&r){var o=function(){var r;s(null!=(r=null==n?void 0:n.isRangeSelected(e,t))&&r)};return r.on(n,aj,o),function(){null==r||r.off(n,aj,o)}}},[e,t,n,r]),a},kc=function(e){return!!(e&&e.some(function(e){return e.children?kc(e.children):!e.isCollapsed}))},ku=function(e,t){if(void 0!==e)for(var n=0;n<e.length;n++)e[n].isCollapsed=t},kd=function(e){return e.which===ok(r7)},kp=oI(),kf=function(e,t){var n,r;switch(e.type){case"item":return null!=(r=null==(n=e.item)?void 0:n.key)?r:null;case"header":return e.group.key;case"footer":return"".concat(e.group.key,"-footer");case"showAll":return"".concat(e.group.key,"-showAll")}return null},kh=function(e){return ts.createElement(C1,tf({},e))},km=function(e){return ts.createElement(C3,tf({},e))},kg=function(e){return e.group&&e.footerText?ts.createElement(C7,tf({},e)):null},kv=function(e){var t=e.selection,n=e.selectionMode,r=void 0===n?h.multiple:n,o=e.groupProps,a=void 0===o?{}:o,s=e.compact,l=void 0!==s&&s,c=e.items,u=void 0===c?[]:c,d=e.groups,p=e.onGroupExpandStateChanged,f=e.listProps,m=e.className,g=e.usePageCache,v=e.onShouldVirtualize,y=e.theme,b=e.role,x=void 0===b?"treegrid":b,C=e.styles,k=e.focusZoneProps,w=void 0===k?{}:k,S=e.rootListProps,_=void 0===S?{}:S,E=e.onRenderCell,P=e.viewport,I=e.groupedListRef,T=e.groupExpandedVersion,D=e.version,A=a.onRenderHeader,R=void 0===A?kh:A,N=a.onRenderFooter,B=void 0===N?kg:N,M=a.onRenderShowAll,F=void 0===M?km:M,O=kp(C,{theme:y,className:m,compact:l}),L=ts.useRef(),H=ts.useRef([]),z=ts.useRef(kc(d)),V=ts.useRef(null),U=ts.useState({}),j=U[0],W=U[1],q=ts.useState({}),G=q[0],X=q[1],Y=w.shouldEnterInnerZone,Q=void 0===Y?kd:Y,J=ts.useMemo(function(){return ks(d,u,H.current,null==a?void 0:a.getGroupItemLimit)},[d,null==a?void 0:a.getGroupItemLimit,u,G,H,T]),Z=ts.useCallback(function(e){var t=J[e];return{key:"header"===t.type?t.group.key:void 0}},[J]);ts.useImperativeHandle(I,function(){var e;return{scrollToIndex:function(t,n,r){var o,a=(e=null!=e?e:J.reduce(function(e,t,n){return"item"===t.type&&(e[t.itemIndex]=n),e},[]))[t],s="function"==typeof n?function(e){var t;return(null==(t=J[e])?void 0:t.type)==="item"?n(J[e].itemIndex):0}:void 0;null==(o=V.current)||o.scrollToIndex(a,s,r)},getStartItemIndexInView:function(){var e;return(null==(e=V.current)?void 0:e.getStartItemIndexInView())||0}}},[J,V]),ts.useEffect(function(){return(null==a?void 0:a.isAllGroupsCollapsed)&&ku(d,a.isAllGroupsCollapsed),L.current=new rv(ka),function(){var e;null==(e=L.current)||e.dispose(),L.current=void 0}},[]),ts.useEffect(function(){W({})},[D]),ts.useEffect(function(){var e=kc(d);e!==z.current&&(z.current=e,null==p||p(e))},[d,G,p,T]);var ee=ts.useCallback(function(e){var t,n=null==(t=null==a?void 0:a.headerProps)?void 0:t.onToggleCollapse;e&&(null==n||n(e),e.isCollapsed=!e.isCollapsed,X({}),W({}))},[X,a]),et=function(e){e&&t&&r===h.multiple&&t.toggleRangeSelected(e.startIndex,e.count)},en=function(e){var t,n=null==(t=null==a?void 0:a.showAllProps)?void 0:t.onToggleSummarize;n?n(e):(e&&(e.isShowingAll=!e.isShowingAll),W({}),X({}))},er=function(e,t){var n;return{group:e,groupIndex:t,groupLevel:null!=(n=e.level)?n:0,viewport:P,selectionMode:r,groups:d,compact:l,onToggleSelectGroup:et,onToggleCollapse:ee,onToggleSummarize:en}},eo=function(e,n){var r,o=e.group;r="treegrid"===x?{ariaLevel:o.level?o.level+1:1,ariaSetSize:d?d.length:void 0,ariaPosInSet:e.groupIndex}:{ariaRowIndex:n};var s=tf(tf(tf(tf({},a.headerProps),er(e.group,n)),{key:o.key,groupedListId:e.groupId}),r);return ts.createElement(ky,{render:R,defaultRender:kh,item:e,selection:t,eventGroup:L.current,props:s})},ei=function(e,t){var n=e.group;return F(tf(tf(tf({},a.showAllProps),er(n,t)),{key:n.key?"".concat(n.key,"-show-all"):void 0}),km)},ea=function(e,t){var n=e.group;return B(tf(tf(tf({},a.footerProps),er(n,t)),{key:n.key?"".concat(n.key,"-footer"):void 0}),kg)},es=function(e,t){var n;return"header"===e.type?eo(e,t):"showAll"===e.type?ei(e,t):"footer"===e.type?ea(e,t):E(e.group.level?e.group.level+1:1,e.item,null!=(n=e.itemIndex)?n:t,e.group)};return ts.createElement(fp,tf({direction:K.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},w,{shouldEnterInnerZone:Q,className:oG(O.root,w.className)}),ts.createElement(xX,tf({ref:V,role:x,items:J,onRenderCellConditional:es,usePageCache:g,onShouldVirtualize:v,getPageSpecification:Z,version:j,getKey:kf},f,_)))},ky=function(e){var t=e.render,n=e.defaultRender,r=e.item,o=e.selection,a=e.eventGroup,s=e.props,l=r.group,c=kl(l.startIndex,l.count,o,a);return t(tf(tf({},s),{isSelected:c,selected:c}),n)};a1(function(e){function t(t){var n=e.call(this,t)||this;n._groupedList=ts.createRef(),i2(n);var r=t.listProps,o=(void 0===r?{}:r).version;return n.state={version:void 0===o?{}:o,groupExpandedVersion:{},groups:t.groups},n}return tp(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,r=e.selectionMode,o=e.compact,a=e.items,s=e.listProps,l=s&&s.version,c=tf(tf({},t),{groups:n});return(l!==t.version||a!==t.items||n!==t.groups||r!==t.selectionMode||o!==t.compact)&&(c.version={}),c},t.prototype.scrollToIndex=function(e,t,n){var r;null==(r=this._groupedList.current)||r.scrollToIndex(e,t,n)},t.prototype.getStartItemIndexInView=function(){var e;return(null==(e=this._groupedList.current)?void 0:e.getStartItemIndexInView())||0},t.prototype.render=function(){return ts.createElement(kv,tf({},this.props,this.state,{groupedListRef:this._groupedList}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdate()},t.prototype.toggleCollapseAll=function(e){var t,n=this.state.groups,r=this.props.groupProps;n&&n.length>0&&(null==(t=null==r?void 0:r.onToggleCollapseAll)||t.call(r,e),ku(n,e),this.setState({groupExpandedVersion:{}}),this.forceUpdate())},t.prototype._forceListUpdate=function(){this.setState({version:{}})},t.displayName="GroupedListV2",t}(ts.Component),CE,void 0,{scope:"GroupedListV2"}).displayName="GroupedListV2_unstable";var kb=function(e){var t=0;if(e)for(var n=tg([],e,!0),r=void 0;n&&n.length>0;)++t,(r=n.pop())&&r.children&&n.push.apply(n,r.children);return t},kx=oI(),kC=function(e){var t=e.isVisible,n=void 0!==t&&t,r=e.canSelect,o=void 0!==r&&r,a=e.anySelected,s=void 0!==a&&a,l=e.selected,c=void 0!==l&&l,u=e.selectionMode,d=e.isHeader,p=void 0!==d&&d,f=e.className,m=(e.checkClassName,e.styles),g=e.theme,v=e.compact,y=e.onRenderDetailsCheckbox,b=e.useFastIcons,x=void 0===b||b,C=th(e,["isVisible","canSelect","anySelected","selected","selectionMode","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),k=x?kS:kw,w=y?aV(y,k):k,S=kx(m,{theme:g,canSelect:o,selected:c,anySelected:s,className:f,isHeader:p,isVisible:n,compact:v}),_={checked:c,theme:g},E=iJ("div",C,["aria-label","aria-labelledby","aria-describedby"]),P=u===h.single?"radio":"checkbox";return o?ts.createElement("div",tf({},C,{role:P,className:oG(S.root,S.check),"aria-checked":c,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),w(_)):ts.createElement("div",tf({},E,{className:oG(S.root,S.check)}))},kk=ts.memo(function(e){return ts.createElement(vv,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})});function kw(e){return ts.createElement(vv,{checked:e.checked})}function kS(e){return ts.createElement(kk,{theme:e.theme,checked:e.checked})}var k_=a1(kC,CH,void 0,{scope:"DetailsRowCheck"},!0),kE=0,kP=1,kI=function(){function e(e){this._selection=e.selection,this._dragEnterCounts={},this._activeTargets={},this._lastId=0,this._initialized=!1}return e.prototype.dispose=function(){this._events&&this._events.dispose()},e.prototype.subscribe=function(e,t,n){var r,o,a,s,l,c,u,d,p,f,h=this;if(!this._initialized){this._events=new rv(this);var m=n$();m&&(this._events.on(m.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(m,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0}var g=n.key,v=void 0===g?"".concat(++this._lastId):g,y=[];if(n&&e){var b=n.eventMap,x=n.context,C=n.updateDropState,k={root:e,options:n,key:v};if(d=this._isDraggable(k),p=this._isDroppable(k),(d||p)&&b)for(var w=0,S=b;w<S.length;w++){var _=S[w],E={callback:_.callback.bind(null,x),eventName:_.eventName};y.push(E),this._events.on(e,E.eventName,E.callback)}p&&(o=function(e){e.isHandled||(e.isHandled=!0,h._dragEnterCounts[v]--,0===h._dragEnterCounts[v]&&C(!1,e))},a=function(e){e.preventDefault(),e.isHandled||(e.isHandled=!0,h._dragEnterCounts[v]++,1===h._dragEnterCounts[v]&&C(!0,e))},s=function(e){h._dragEnterCounts[v]=0,C(!1,e)},l=function(e){h._dragEnterCounts[v]=0,C(!1,e),n.onDrop&&n.onDrop(n.context.data,e)},c=function(e){e.preventDefault(),n.onDragOver&&n.onDragOver(n.context.data,e)},this._dragEnterCounts[v]=0,t.on(e,"dragenter",a),t.on(e,"dragleave",o),t.on(e,"dragend",s),t.on(e,"drop",l),t.on(e,"dragover",c)),d&&(u=this._onMouseDown.bind(this,k),s=this._onDragEnd.bind(this,k),r=function(t){var r=n;r&&r.onDragStart&&r.onDragStart(r.context.data,r.context.index,h._selection.getSelection(),t),h._isDragging=!0,t.dataTransfer&&t.dataTransfer.setData("id",e.id)},t.on(e,"dragstart",r),t.on(e,"mousedown",u),t.on(e,"dragend",s)),f={target:k,dispose:function(){if(h._activeTargets[v]===f&&delete h._activeTargets[v],e){for(var n=0,m=y;n<m.length;n++){var g=m[n];h._events.off(e,g.eventName,g.callback)}p&&(t.off(e,"dragenter",a),t.off(e,"dragleave",o),t.off(e,"dragend",s),t.off(e,"dragover",c),t.off(e,"drop",l)),d&&(t.off(e,"dragstart",r),t.off(e,"mousedown",u),t.off(e,"dragend",s))}}},this._activeTargets[v]=f}return{key:v,dispose:function(){f&&f.dispose()}}},e.prototype.unsubscribe=function(e,t){var n=this._activeTargets[t];n&&n.dispose()},e.prototype._onDragEnd=function(e,t){var n=e.options;n.onDragEnd&&n.onDragEnd(n.context.data,t)},e.prototype._onMouseUp=function(e){if(this._isDragging=!1,this._dragData){for(var t=0,n=Object.keys(this._activeTargets);t<n.length;t++){var r=n[t],o=this._activeTargets[r];o.target.root&&(this._events.off(o.target.root,"mousemove"),this._events.off(o.target.root,"mouseleave"))}this._dragData.dropTarget&&(rv.raise(this._dragData.dropTarget.root,"dragleave"),rv.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},e.prototype._onDocumentMouseUp=function(e){var t=n$();t&&e.target===t.documentElement&&this._onMouseUp(e)},e.prototype._onMouseMove=function(e,t){var n=t.buttons,r=void 0===n?kP:n;if(this._dragData&&r!==kP)return void this._onMouseUp(t);var o=e.root,a=e.key;this._isDragging&&this._isDroppable(e)&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key!==a&&!this._isChild(o,this._dragData.dropTarget.root)&&this._dragEnterCounts[this._dragData.dropTarget.key]>0&&(rv.raise(this._dragData.dropTarget.root,"dragleave"),rv.raise(o,"dragenter"),this._dragData.dropTarget=e)},e.prototype._onMouseLeave=function(e,t){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===e.key&&(rv.raise(e.root,"dragleave"),this._dragData.dropTarget=void 0)},e.prototype._onMouseDown=function(e,t){if(t.button===kE)if(this._isDraggable(e)){this._dragData={clientX:t.clientX,clientY:t.clientY,eventTarget:t.target,dragTarget:e};for(var n=0,r=Object.keys(this._activeTargets);n<r.length;n++){var o=r[n],a=this._activeTargets[o];a.target.root&&(this._events.on(a.target.root,"mousemove",this._onMouseMove.bind(this,a.target)),this._events.on(a.target.root,"mouseleave",this._onMouseLeave.bind(this,a.target)))}}else this._dragData=null},e.prototype._isChild=function(e,t){for(;t&&t.parentElement;){if(t.parentElement===e)return!0;t=t.parentElement}return!1},e.prototype._isDraggable=function(e){var t=e.options;return!!(t.canDrag&&t.canDrag(t.context.data))},e.prototype._isDroppable=function(e){var t=e.options,n=this._dragData&&this._dragData.dragTarget?this._dragData.dragTarget.options.context:void 0;return!!(t.canDrop&&t.canDrop(t.context,n))},e}(),kT=0,kD=oI(),kA=200,kR=1500,kN=20,kB=function(e){return function(t){return t?t.column.isIconOnly?ts.createElement("span",{className:e.accessibleLabel},t.column.name):ts.createElement(ts.Fragment,null,t.column.name):null}},kM=function(e){function t(t){var n=e.call(this,t)||this;return n._root=ts.createRef(),n._tooltipRef=ts.createRef(),n._onRenderFilterIcon=function(e){return function(e){var t=e.columnProps,n=th(e,["columnProps"]),r=(null==t?void 0:t.useFastIcons)?pd:pf;return ts.createElement(r,tf({},n))}},n._onRenderColumnHeaderTooltip=function(e){return ts.createElement("span",{className:e.hostClassName},e.children)},n._onColumnClick=function(e){var t=n.props,r=t.onColumnClick,o=t.column;o.columnActionsMode!==eb.disabled&&(o.onColumnClick&&o.onColumnClick(e,o),r&&r(e,o))},n._onColumnKeyDown=function(e){var t=n.props,r=t.onColumnKeyDown,o=t.column;o.onColumnKeyDown&&o.onColumnKeyDown(e,o),r&&r(e,o)},n._onColumnBlur=function(){n._tooltipRef.current&&n._tooltipRef.current.dismiss()},n._onColumnFocus=function(){n._tooltipRef.current&&n._tooltipRef.current.show()},n._onDragStart=function(e,t,r,o){var a=n._classNames;t&&(n._updateHeaderDragInfo(t),n._root.current.classList.add(a.borderWhileDragging),n._async.setTimeout(function(){n._root.current&&n._root.current.classList.add(a.noBorderWhileDragging)},kN))},n._onDragEnd=function(e,t){var r=n._classNames;t&&n._updateHeaderDragInfo(-1,t),n._root.current.classList.remove(r.borderWhileDragging),n._root.current.classList.remove(r.noBorderWhileDragging)},n._updateHeaderDragInfo=function(e,t){n.props.setDraggedItemIndex&&n.props.setDraggedItemIndex(e),n.props.updateDragInfo&&n.props.updateDragInfo({itemIndex:e},t)},n._onColumnContextMenu=function(e){var t=n.props,r=t.onColumnContextMenu,o=t.column;o.onColumnContextMenu&&(o.onColumnContextMenu(o,e),e.preventDefault()),r&&(r(o,e),e.preventDefault())},n._onRootMouseDown=function(e){n.props.isDraggable&&e.button===kT&&e.stopPropagation()},i2(n),n._async=new nF(n),n._events=new rv(n),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.column,n=e.parentId,r=e.isDraggable,o=e.styles,a=e.theme,s=e.cellStyleProps,l=void 0===s?CT:s,c=e.useFastIcons,u=void 0===c||c,d=this.props.onRenderColumnHeaderTooltip,p=void 0===d?this._onRenderColumnHeaderTooltip:d;this._classNames=kD(o,{theme:a,headerClassName:t.headerClassName,iconClassName:t.iconClassName,isActionable:t.columnActionsMode!==eb.disabled,isEmpty:!t.name,isIconVisible:t.isSorted||t.isGrouped||t.isFiltered,isPadded:t.isPadded,isIconOnly:t.isIconOnly,cellStyleProps:l,transitionDurationDrag:kA,transitionDurationDrop:kR});var f=this._classNames,h=u?pd:pf,m=t.onRenderFilterIcon?aV(t.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),g=t.onRenderHeader?aV(t.onRenderHeader,kB(this._classNames)):kB(this._classNames),v=t.columnActionsMode!==eb.disabled&&(void 0!==t.onColumnClick||void 0!==this.props.onColumnClick),y=this.props.onRenderColumnHeaderTooltip?!t.ariaLabel:this._hasAccessibleDescription(),b={"aria-label":t.ariaLabel?t.ariaLabel:t.isIconOnly?t.name:void 0,"aria-labelledby":t.ariaLabel||t.isIconOnly?void 0:"".concat(n,"-").concat(t.key,"-name"),"aria-describedby":y?"".concat(n,"-").concat(t.key,"-tooltip"):void 0};return ts.createElement(ts.Fragment,null,ts.createElement("div",tf({key:t.key,ref:this._root,role:"columnheader"},!v&&b,{"aria-sort":t.isSorted?t.isSortedDescending?"descending":"ascending":"none","data-is-focusable":v||t.columnActionsMode===eb.disabled?void 0:"true",className:f.root,"data-is-draggable":r,draggable:r,style:{width:(t.calculatedWidth||0)+l.cellLeftPadding+l.cellRightPadding+(t.isPadded?l.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":t.key,onBlur:this._onColumnBlur,onFocus:this._onColumnFocus}),r&&ts.createElement(h,{iconName:"GripperBarVertical",className:f.gripperBarVerticalStyle}),p({hostClassName:f.cellTooltip,id:"".concat(n,"-").concat(t.key,"-tooltip"),setAriaDescribedBy:!1,column:t,componentRef:this._tooltipRef,content:t.columnActionsMode!==eb.disabled?t.ariaLabel:"",children:ts.createElement("span",tf({id:"".concat(n,"-").concat(t.key),className:f.cellTitle,"data-is-focusable":v&&t.columnActionsMode!==eb.disabled?"true":void 0,role:v?"button":void 0},v&&b,{onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,onKeyDown:this._onColumnKeyDown,"aria-haspopup":t.columnActionsMode===eb.hasDropdown?"menu":void 0,"aria-expanded":t.columnActionsMode===eb.hasDropdown?!!t.isMenuOpen:void 0}),ts.createElement("span",{id:"".concat(n,"-").concat(t.key,"-name"),className:f.cellName},(t.iconName||t.iconClassName)&&ts.createElement(h,{className:f.iconClassName,iconName:t.iconName}),g(this.props)),t.isFiltered&&ts.createElement(h,{className:f.nearIcon,iconName:"Filter"}),(t.isSorted||t.showSortIconWhenUnsorted)&&ts.createElement(h,{className:f.sortIcon,iconName:t.isSorted?t.isSortedDescending?"SortDown":"SortUp":"Sort"}),t.isGrouped&&ts.createElement(h,{className:f.nearIcon,iconName:"GroupedDescending"}),t.columnActionsMode===eb.hasDropdown&&!t.isIconOnly&&m({"aria-hidden":!0,columnProps:this.props,className:f.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleDescription())},t.prototype.componentDidMount=function(){var e=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout(function(){e._root.current&&e._root.current.classList.add(t.noBorderAfterDropping)},kN)),this._async.setTimeout(function(){e._root.current&&(e._root.current.classList.remove(t.borderAfterDropping),e._root.current.classList.remove(t.noBorderAfterDropping))},kR+kN))},t.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},t.prototype._getColumnDragDropOptions=function(){var e=this,t=this.props.columnIndex;return{selectionIndex:t,context:{data:t,index:t},canDrag:function(){return e.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd}},t.prototype._hasAccessibleDescription=function(){var e=this.props.column;return!!(e.filterAriaLabel||e.sortAscendingAriaLabel||e.sortDescendingAriaLabel||e.groupAriaLabel||e.sortableAriaLabel)},t.prototype._renderAccessibleDescription=function(){var e=this.props,t=e.column,n=e.parentId,r=this._classNames;return this._hasAccessibleDescription()&&!this.props.onRenderColumnHeaderTooltip?ts.createElement("label",{key:"".concat(t.key,"_label"),id:"".concat(n,"-").concat(t.key,"-tooltip"),className:r.accessibleLabel,hidden:!0},t.isFiltered&&t.filterAriaLabel||null,(t.isSorted||t.showSortIconWhenUnsorted)&&(t.isSorted?t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel:t.sortableAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},t.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},t}(ts.Component),kF={isActionable:"is-actionable",cellIsCheck:"ms-DetailsHeader-cellIsCheck",collapseButton:"ms-DetailsHeader-collapseButton",isCollapsed:"is-collapsed",isAllSelected:"is-allSelected",isSelectAllHidden:"is-selectAllHidden",isResizingColumn:"is-resizingColumn",isEmpty:"is-empty",isIconVisible:"is-icon-visible",cellSizer:"ms-DetailsHeader-cellSizer",isResizing:"is-resizing",dropHintCircleStyle:"ms-DetailsHeader-dropHintCircleStyle",dropHintLineStyle:"ms-DetailsHeader-dropHintLineStyle",cellTitle:"ms-DetailsHeader-cellTitle",cellName:"ms-DetailsHeader-cellName",filterChevron:"ms-DetailsHeader-filterChevron",gripperBarVerticalStyle:"ms-DetailsColumn-gripperBar",nearIcon:"ms-DetailsColumn-nearIcon"},kO=a1(kM,function(e){var t,n=e.theme,r=e.headerClassName,o=e.iconClassName,a=e.isActionable,s=e.isEmpty,l=e.isIconVisible,c=e.isPadded,u=e.isIconOnly,d=e.cellStyleProps,p=void 0===d?CT:d,f=e.transitionDurationDrag,h=e.transitionDurationDrop,m=n.semanticColors,g=n.palette,v=n.fonts,y=l0(kF,n),b={iconForegroundColor:m.bodySubtext,headerForegroundColor:m.bodyText,headerBackgroundColor:m.bodyBackground,dropdownChevronForegroundColor:g.neutralSecondary,resizerColor:g.neutralTertiaryAlt},x={color:b.iconForegroundColor,opacity:1,paddingLeft:8},C={outline:"1px solid ".concat(g.themePrimary)},k={outlineColor:"transparent"};return{root:[CM(e),v.small,a&&[y.isActionable,{selectors:{":hover":{color:m.bodyText,background:m.listHeaderBackgroundHovered},":active":{background:m.listHeaderBackgroundPressed}}}],s&&[y.isEmpty,{textOverflow:"clip"}],l&&y.isIconVisible,c&&{paddingRight:p.cellExtraRightPadding+p.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},r],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:g.neutralTertiary,left:1},nearIcon:[y.nearIcon,x],sortIcon:[x,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:b.iconForegroundColor,opacity:1},o],filterChevron:[y.filterChevron,{color:b.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:v.small.fontSize}],cellTitle:[y.cellTitle,lO(n),tf({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 ".concat(p.cellRightPadding,"px 0 ").concat(p.cellLeftPadding,"px")},u?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[y.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:P.semibold,fontSize:v.medium.fontSize},u&&{selectors:((t={})[".".concat(y.nearIcon)]={paddingLeft:0},t)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:lV,borderWhileDragging:C,noBorderWhileDragging:[k,{transition:"outline ".concat(f,"ms ease")}],borderAfterDropping:C,noBorderAfterDropping:[k,{transition:"outline  ".concat(h,"ms ease")}]}},void 0,{scope:"DetailsColumn"});!function(e){e[e.none=0]="none",e[e.hidden=1]="hidden",e[e.visible=2]="visible"}(eE||(eE={}));var kL=oI(),kH=0,kz=1,kV=[];function kU(e,t,n,r){return e?t<=n&&t>=r:t>=n&&t<=r}function kj(e,t,n){return e?t>=n:t<=n}function kW(e,t,n){return e?t<=n:t>=n}function kq(e){e.stopPropagation()}var kG=a1(function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=ts.createRef(),n._rootComponent=ts.createRef(),n._draggedColumnIndex=-1,n._dropHintDetails={},n._updateDroppingState=function(e,t){n._draggedColumnIndex>=0&&"drop"!==t.type&&!e&&n._resetDropHints()},n._onDragOver=function(e,t){n._draggedColumnIndex>=0&&(t.stopPropagation(),n._computeDropHintToBeShown(t.clientX))},n._onDrop=function(e,t){var r=n._getColumnReorderProps();if(n._draggedColumnIndex>=0&&t){var o=n._draggedColumnIndex>n._currentDropHintIndex?n._currentDropHintIndex:n._currentDropHintIndex-1,a=n._isValidCurrentDropHintIndex();if(t.stopPropagation(),a)if(n._onDropIndexInfo.sourceIndex=n._draggedColumnIndex,n._onDropIndexInfo.targetIndex=o,r.onColumnDrop){var s={draggedIndex:n._draggedColumnIndex,targetIndex:o};r.onColumnDrop(s)}else r.handleColumnReorder&&r.handleColumnReorder(n._draggedColumnIndex,o)}n._resetDropHints(),n._dropHintDetails={},n._draggedColumnIndex=-1},n._computeColumnIndexOffset=function(e){var t=n.props.groupNestingDepth&&n.props.groupNestingDepth>0,r=1;return e&&(r+=1),t&&(r+=1),r},n._updateDragInfo=function(e,t){var r=n._getColumnReorderProps(),o=e.itemIndex;if(o>=0)n._draggedColumnIndex=o-n._computeColumnIndexOffset(!n._isCheckboxColumnHidden()),n._getDropHintPositions(),r.onColumnDragStart&&r.onColumnDragStart(!0);else if(t&&n._draggedColumnIndex>=0&&(n._resetDropHints(),n._draggedColumnIndex=-1,n._dropHintDetails={},r.onColumnDragEnd)){var a=n._isEventOnHeader(t);r.onColumnDragEnd({dropLocation:a},t)}},n._getDropHintPositions=function(){for(var e,t=n.props.columns,r=void 0===t?kV:t,o=n._getColumnReorderProps(),a=0,s=0,l=o.frozenColumnCountFromStart||0,c=o.frozenColumnCountFromEnd||0,u=l;u<r.length-c+1;u++)if(n._rootElement.current){var d=n._rootElement.current.querySelectorAll("#columnDropHint_"+u)[0];if(d)if(u===l)a=d.offsetLeft,s=d.offsetLeft,e=d;else{var p=(d.offsetLeft+a)/2;n._dropHintDetails[u-1]={originX:a,startX:s,endX:p,dropHintElementRef:e},s=p,e=d,a=d.offsetLeft,u===r.length-c&&(n._dropHintDetails[u]={originX:a,startX:s,endX:d.offsetLeft,dropHintElementRef:e})}}},n._computeDropHintToBeShown=function(e){var t=ox(n.props.theme);if(n._rootElement.current){var r=e-n._rootElement.current.getBoundingClientRect().left,o=n._currentDropHintIndex;if(n._isValidCurrentDropHintIndex()&&kU(t,r,n._dropHintDetails[o].startX,n._dropHintDetails[o].endX))return;var a=n.props.columns,s=void 0===a?kV:a,l=n._getColumnReorderProps(),c=l.frozenColumnCountFromStart||0,u=l.frozenColumnCountFromEnd||0,d=c,p=s.length-u,f=-1;if(kj(t,r,n._dropHintDetails[d].endX)?f=d:kW(t,r,n._dropHintDetails[p].startX)?f=p:n._isValidCurrentDropHintIndex()&&(n._dropHintDetails[o+1]&&kU(t,r,n._dropHintDetails[o+1].startX,n._dropHintDetails[o+1].endX)?f=o+1:n._dropHintDetails[o-1]&&kU(t,r,n._dropHintDetails[o-1].startX,n._dropHintDetails[o-1].endX)&&(f=o-1)),-1===f)for(var h=c,m=p;h<m;){var g=Math.ceil((m+h)/2);if(kU(t,r,n._dropHintDetails[g].startX,n._dropHintDetails[g].endX)){f=g;break}kj(t,r,n._dropHintDetails[g].originX)?m=g:kW(t,r,n._dropHintDetails[g].originX)&&(h=g)}f===n._draggedColumnIndex||f===n._draggedColumnIndex+1?n._isValidCurrentDropHintIndex()&&n._resetDropHints():o!==f&&f>=0&&(n._resetDropHints(),n._updateDropHintElement(n._dropHintDetails[f].dropHintElementRef,"inline-block"),n._currentDropHintIndex=f)}},n._renderColumnSizer=function(e){var t,r=e.columnIndex,o=n.props.columns,a=void 0===o?kV:o,s=a[r],l=n.state.columnResizeDetails,c=n._classNames;return s.isResizable?ts.createElement("div",{key:"".concat(s.key,"_sizer"),"aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:kq,"data-sizer-index":r,onBlur:n._onSizerBlur,className:oG(c.cellSizer,r<a.length-1?c.cellSizerStart:c.cellSizerEnd,((t={})[c.cellIsResizing]=l&&l.columnIndex===r,t)),onDoubleClick:n._onSizerDoubleClick.bind(n,r)}):null},n._onRenderColumnHeaderTooltip=function(e){return ts.createElement("span",{className:e.hostClassName},e.children)},n._onSelectAllClicked=function(){var e=n.props.selection;e&&e.toggleAllSelected()},n._onRootMouseDown=function(e){var t=e.target.getAttribute("data-sizer-index"),r=Number(t),o=n.props.columns,a=void 0===o?kV:o;null!==t&&e.button===kH&&(n.setState({columnResizeDetails:{columnIndex:r,columnMinWidth:a[r].calculatedWidth,originX:e.clientX}}),e.preventDefault(),e.stopPropagation())},n._onRootMouseMove=function(e){var t=n.state,r=t.columnResizeDetails,o=t.isSizing;r&&!o&&e.clientX!==r.originX&&n.setState({isSizing:!0})},n._onRootKeyDown=function(e){var t=n.state,r=t.columnResizeDetails,o=t.isSizing,a=n.props,s=a.columns,l=void 0===s?kV:s,c=a.onColumnResized,u=e.target.getAttribute("data-sizer-index");if(u&&!o){var d=Number(u);if(r){var p=void 0;e.which===rQ?(n.setState({columnResizeDetails:void 0}),e.preventDefault(),e.stopPropagation()):e.which===r8?p=ox(n.props.theme)?1:-1:e.which===r7&&(p=ox(n.props.theme)?-1:1),p&&(e.shiftKey||(p*=10),n.setState({columnResizeDetails:tf(tf({},r),{columnMinWidth:r.columnMinWidth+p})}),c&&c(l[d],r.columnMinWidth+p,d),e.preventDefault(),e.stopPropagation())}else e.which===rQ&&(n.setState({columnResizeDetails:{columnIndex:d,columnMinWidth:l[d].calculatedWidth}}),e.preventDefault(),e.stopPropagation())}},n._onSizerMouseMove=function(e){var t=e.buttons,r=n.props,o=r.onColumnIsSizingChanged,a=r.onColumnResized,s=r.columns,l=void 0===s?kV:s,c=n.state.columnResizeDetails;if(void 0!==t&&t!==kz)return void n._onSizerMouseUp(e);if(e.clientX!==c.originX&&o&&o(l[c.columnIndex],!0),a){var u=e.clientX-c.originX;ox(n.props.theme)&&(u=-u),a(l[c.columnIndex],c.columnMinWidth+u,c.columnIndex)}},n._onSizerBlur=function(e){n.state.columnResizeDetails&&n.setState({columnResizeDetails:void 0,isSizing:!1})},n._onSizerMouseUp=function(e){var t=n.props,r=t.columns,o=void 0===r?kV:r,a=t.onColumnIsSizingChanged,s=n.state.columnResizeDetails;n.setState({columnResizeDetails:void 0,isSizing:!1}),a&&a(o[s.columnIndex],!1)},n._onToggleCollapseAll=function(){var e=n.props.onToggleCollapseAll,t=!n.state.isAllCollapsed;n.setState({isAllCollapsed:t}),e&&e(t)},i2(n),n._events=new rv(n),n.state={columnResizeDetails:void 0,isAllCollapsed:n.props.isAllCollapsed,isAllSelected:!!n.props.selection&&n.props.selection.isAllSelected()},n._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},n._id=iw("header"),n._currentDropHintIndex=-1,n._dragDropHelper=new kI({selection:{getSelection:function(){}},minimumPixelsForDrag:n.props.minimumPixelsForDrag}),n}return tp(t,e),t.prototype.componentDidMount=function(){var e=this.props.selection;this._events.on(e,aj,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},t.prototype.componentDidUpdate=function(e){if(this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==e&&this._onDropIndexInfo.sourceIndex>=0&&this._onDropIndexInfo.targetIndex>=0){var t=e.columns,n=void 0===t?kV:t,r=this.props.columns,o=void 0===r?kV:r;n[this._onDropIndexInfo.sourceIndex].key===o[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}this.props.isAllCollapsed!==e.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},t.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.columns,r=void 0===n?kV:n,o=t.ariaLabel,a=t.ariaLabelForToggleAllGroupsButton,s=t.ariaLabelForSelectAllCheckbox,l=t.selectAllVisibility,c=t.ariaLabelForSelectionColumn,u=t.indentWidth,d=t.onColumnClick,p=t.onColumnContextMenu,f=t.onRenderColumnHeaderTooltip,m=void 0===f?this._onRenderColumnHeaderTooltip:f,g=t.styles,v=t.selectionMode,y=t.theme,b=t.onRenderDetailsCheckbox,x=t.groupNestingDepth,C=t.useFastIcons,k=t.checkboxVisibility,w=t.className,S=this.state,_=S.isAllSelected,E=S.columnResizeDetails,P=S.isSizing,I=S.isAllCollapsed,T=l!==eE.none,D=l===eE.hidden,A=k===ew.always,R=this._getColumnReorderProps(),N=R&&R.frozenColumnCountFromStart?R.frozenColumnCountFromStart:0,B=R&&R.frozenColumnCountFromEnd?R.frozenColumnCountFromEnd:0;this._classNames=kL(g,{theme:y,isAllSelected:_,isSelectAllHidden:l===eE.hidden,isResizingColumn:!!E&&P,isSizing:P,isAllCollapsed:I,isCheckboxHidden:D,className:w});var M=this._classNames,F=C?pd:pf,O=x>0,L=O&&this.props.collapseAllVisibility===ey.visible,H=this._computeColumnIndexOffset(T),z=ox(y);return ts.createElement(fp,{role:"row","aria-label":o,className:M.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:K.horizontal},T?[ts.createElement("div",{key:"__checkbox",className:M.cellIsCheck,"aria-labelledby":"".concat(this._id,"-checkTooltip"),onClick:D?void 0:this._onSelectAllClicked,role:"columnheader"},m({hostClassName:M.checkTooltip,id:"".concat(this._id,"-checkTooltip"),setAriaDescribedBy:!1,content:s,children:ts.createElement(k_,{id:"".concat(this._id,"-check"),"aria-label":v===h.multiple?s:c,"data-is-focusable":!D||void 0,isHeader:!0,selected:_,anySelected:!1,canSelect:!D,className:M.check,onRenderDetailsCheckbox:b,useFastIcons:C,isVisible:A})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:s&&!D?ts.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:M.accessibleLabel,"aria-hidden":!0},s):c&&D?ts.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:M.accessibleLabel,"aria-hidden":!0},c):null]:null,L?ts.createElement("div",{className:M.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":a,"aria-expanded":!I,role:"columnheader"},ts.createElement(F,{className:M.collapseButton,iconName:z?"ChevronLeftMed":"ChevronRightMed"}),ts.createElement("span",{className:M.accessibleLabel},a)):O?ts.createElement("div",{className:M.cellIsGroupExpander,"data-is-focusable":!1,role:"columnheader"}):null,ts.createElement(Cw,{indentWidth:u,role:"gridcell",count:x-1}),r.map(function(t,n){var o=!!R&&n>=N&&n<r.length-B;return[R&&(o||n===r.length-B)&&e._renderDropHint(n),ts.createElement(kO,{column:t,styles:t.styles,key:t.key,columnIndex:H+n,parentId:e._id,isDraggable:o,updateDragInfo:e._updateDragInfo,dragDropHelper:e._dragDropHelper,onColumnClick:d,onColumnContextMenu:p,onRenderColumnHeaderTooltip:e.props.onRenderColumnHeaderTooltip,isDropped:e._onDropIndexInfo.targetIndex===n,cellStyleProps:e.props.cellStyleProps,useFastIcons:C}),e._renderColumnDivider(n)]}),R&&0===B&&this._renderDropHint(r.length),P&&ts.createElement(dY,null,ts.createElement("div",{className:M.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},t.prototype.focus=function(){var e;return!!(null==(e=this._rootComponent.current)?void 0:e.focus())},t.prototype._getColumnReorderProps=function(){var e=this.props,t=e.columnReorderOptions;return e.columnReorderProps||t&&tf(tf({},t),{onColumnDragEnd:void 0})},t.prototype._getHeaderDragDropOptions=function(){return{selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver}},t.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},t.prototype._isCheckboxColumnHidden=function(){var e=this.props,t=e.selectionMode,n=e.checkboxVisibility;return t===h.none||n===ew.hidden},t.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},t.prototype._updateDropHintElement=function(e,t){e.childNodes[1].style.display=t,e.childNodes[0].style.display=t},t.prototype._isEventOnHeader=function(e){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(e.clientX>t.left&&e.clientX<t.right&&e.clientY>t.top&&e.clientY<t.bottom)return eC.header}},t.prototype._renderColumnDivider=function(e){var t=this.props.columns,n=(void 0===t?kV:t)[e],r=n.onRenderDivider;return r?r({column:n,columnIndex:e},this._renderColumnSizer):this._renderColumnSizer({column:n,columnIndex:e})},t.prototype._renderDropHint=function(e){var t=this._classNames,n=this.props.useFastIcons?pd:pf;return ts.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_".concat(e),"aria-hidden":!0},ts.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":e,"aria-hidden":!0},ts.createElement(n,{iconName:"CircleShapeSolid"})),ts.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":e,className:t.dropHintLineStyle}))},t.prototype._onSizerDoubleClick=function(e,t){var n=this.props,r=n.onColumnAutoResized,o=n.columns,a=void 0===o?kV:o;r&&r(a[e],e)},t.prototype._onSelectionChanged=function(){var e=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==e&&this.setState({isAllSelected:e})},t.defaultProps={selectAllVisibility:eE.visible,collapseAllVisibility:ey.visible,useFastIcons:!0},t}(ts.Component),CF,void 0,{scope:"DetailsHeader"}),kK=function(e,t){var n=e&&t&&t.fieldName?e[t.fieldName]:"";return(null==n&&(n=""),"boolean"==typeof n)?n.toString():n},kX=function(e){var t=e.columns,n=e.rowClassNames,r=e.cellStyleProps,o=void 0===r?CT:r,a=e.item,s=e.itemIndex,l=e.isSelected,c=e.onRenderItemColumn,u=e.getCellValueKey,d=e.onRenderField,p=e.cellsByColumn,f=e.enableUpdateAnimations,h=e.rowHeaderId,m=ts.useRef(),g=m.current||(m.current={}),v=ts.useCallback(function(e){var t=e.column,r=e.cellValueKey,a=e.className,s=e.onRender,l=e.item,c=e.itemIndex,u=void 0===t.calculatedWidth?"auto":t.calculatedWidth+o.cellLeftPadding+o.cellRightPadding+(t.isPadded?o.cellExtraRightPadding:0),d="".concat(t.key).concat(void 0!==r?"-".concat(r):"");return ts.createElement("div",{key:d,id:t.isRowHeader?h:void 0,role:t.isRowHeader?"rowheader":"gridcell",className:oG(t.className,t.isMultiline&&n.isMultiline,t.isRowHeader&&n.isRowHeader,n.cell,t.isPadded?n.cellPadded:n.cellUnpadded,a),style:{width:u},"data-automationid":"DetailsRowCell","data-automation-key":t.key},s(l,c,t))},[n,o,h]);return ts.createElement("div",{className:n.fields,"data-automationid":"DetailsRowFields",role:"presentation"},t.map(function(e){var t=e.getValueKey,r=void 0===t?u:t,o=p&&e.key in p&&function(){return p[e.key]}||e.onRender||c||kY,h=v;e.onRenderField&&(h=aV(e.onRenderField,h)),d&&(h=aV(d,h));var m=g[e.key],y=f&&r?r(a,s,e):void 0,b=!1;return void 0!==y&&void 0!==m&&y!==m&&(b=!0),g[e.key]=y,h({item:a,itemIndex:s,isSelected:l,column:e,cellValueKey:y,className:b?n.cellAnimation:void 0,onRender:o})}))};function kY(e,t,n){return e&&n?kK(e,n):null}var k$=oI(),kQ="is-dropping",kJ=[];function kZ(e){var t,n=e.itemIndex,r=e.selection;return{isSelected:!!(null==r?void 0:r.isIndexSelected(n)),isSelectionModal:!!(null==(t=null==r?void 0:r.isModal)?void 0:t.call(r))}}var k0=a1(function(e){function t(t){var n=e.call(this,t)||this;return n._root=ts.createRef(),n._cellMeasurer=ts.createRef(),n._focusZone=ts.createRef(),n._onSelectionChanged=function(){var e=kZ(n.props);rp(e,n.state.selectionState)||n.setState({selectionState:e})},n._updateDroppingState=function(e,t){var r=n.state.isDropping,o=n.props,a=o.dragDropEvents,s=o.item;e?a.onDragEnter&&(n._droppingClassNames=a.onDragEnter(s,t)):a.onDragLeave&&a.onDragLeave(s,t),r!==e&&n.setState({isDropping:e})},i2(n),n._events=new rv(n),n.state={selectionState:kZ(t),columnMeasureInfo:void 0,isDropping:!1},n._droppingClassNames="",n}return tp(t,e),t.getDerivedStateFromProps=function(e,t){return tf(tf({},t),{selectionState:kZ(e)})},t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection,r=e.item,o=e.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),n&&this._events.on(n,aj,this._onSelectionChanged),o&&r&&(this._onDidMountCalled=!0,o(this))},t.prototype.componentDidUpdate=function(e){var t=this.state,n=this.props,r=n.item,o=n.onDidMount,a=t.columnMeasureInfo;if((this.props.itemIndex!==e.itemIndex||this.props.item!==e.item||this.props.dragDropHelper!==e.dragDropHelper)&&(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getRowDragDropOptions()))),a&&a.index>=0&&this._cellMeasurer.current){var s=this._cellMeasurer.current.getBoundingClientRect().width;a.onMeasureDone(s),this.setState({columnMeasureInfo:void 0})}r&&o&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,o(this))},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.item,n=e.onWillUnmount;n&&t&&n(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},t.prototype.shouldComponentUpdate=function(e,t){if(!this.props.useReducedRowRenderer)return!0;var n=kZ(e);return this.state.selectionState.isSelected!==n.isSelected||!rp(this.props,e)},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.columns,o=void 0===r?kJ:r,a=t.dragDropEvents,s=t.item,l=t.itemIndex,c=t.id,u=t.flatIndexOffset,d=void 0===u?2:u,p=t.onRenderCheck,f=void 0===p?this._onRenderCheck:p,m=t.onRenderDetailsCheckbox,g=t.onRenderItemColumn,v=t.onRenderField,y=t.getCellValueKey,b=t.selectionMode,x=t.checkboxVisibility,C=t.getRowAriaLabel,k=t.getRowAriaDescription,w=t.getRowAriaDescribedBy,S=t.isGridRow,_=t.checkButtonAriaLabel,E=t.checkboxCellClassName,P=t.rowFieldsAs,I=t.selection,T=t.indentWidth,D=t.enableUpdateAnimations,A=t.compact,R=t.theme,N=t.styles,B=t.cellsByColumn,M=t.groupNestingDepth,F=t.useFastIcons,O=void 0===F||F,L=t.cellStyleProps,H=t.group,z=t.focusZoneProps,V=t.disabled,U=void 0!==V&&V,j=this.state,W=j.columnMeasureInfo,q=j.isDropping,G=this.state.selectionState,X=G.isSelected,Y=void 0!==X&&X,Q=G.isSelectionModal,J=void 0!==Q&&Q,Z=a?!!(a.canDrag&&a.canDrag(s)):void 0,ee=q?this._droppingClassNames||kQ:"",et=C?C(s):void 0,en=k?k(s):void 0,er=w?w(s):void 0,eo=!!I&&I.canSelectItem(s,l)&&!U,ei=b===h.multiple,ea=b!==h.none&&x!==ew.hidden,es=b===h.none?void 0:Y,el=H?l-H.startIndex+1:void 0,ec=H?H.count:void 0,eu=z?z.direction:K.horizontal;this._classNames=tf(tf({},this._classNames),k$(N,{theme:R,isSelected:Y,canSelect:!ei,anySelected:J,checkboxCellClassName:E,droppingClassName:ee,className:n,compact:A,enableUpdateAnimations:D,cellStyleProps:L,disabled:U}));var ed={isMultiline:this._classNames.isMultiline,isRowHeader:this._classNames.isRowHeader,cell:this._classNames.cell,cellAnimation:this._classNames.cellAnimation,cellPadded:this._classNames.cellPadded,cellUnpadded:this._classNames.cellUnpadded,fields:this._classNames.fields};rp(this._rowClassNames||{},ed)||(this._rowClassNames=ed);var ep=P?oW(P,kX):kX,ef=ts.createElement(ep,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(c,"-header"),cellsByColumn:B,columns:o,item:s,itemIndex:l,isSelected:Y,columnStartIndex:+!!ea+ +!!M,onRenderItemColumn:g,onRenderField:v,getCellValueKey:y,enableUpdateAnimations:D,cellStyleProps:L}),eh="row",em=this.props.role?this.props.role:eh;this._ariaRowDescriptionId=iw("DetailsRow-description");var eg=o.some(function(e){return!!e.isRowHeader}),ev="".concat(c,"-checkbox")+(eg?" ".concat(c,"-header"):""),ey=S?{}:{"aria-level":M&&M+1||void 0,"aria-posinset":el,"aria-setsize":ec};return ts.createElement(fp,tf({"data-is-focusable":!0},i$(this.props,iY),"boolean"==typeof Z?{"data-is-draggable":Z,draggable:Z}:{},z,ey,{direction:eu,elementRef:this._root,componentRef:this._focusZone,role:em,"aria-label":et,"aria-disabled":U||void 0,"aria-describedby":en?this._ariaRowDescriptionId:er,className:this._classNames.root,"data-selection-index":l,"data-selection-touch-invoke":!0,"data-selection-disabled":null!=(e=this.props["data-selection-disabled"])?e:U||void 0,"data-item-index":l,"aria-rowindex":void 0===el?l+d:void 0,"data-automationid":"DetailsRow","aria-selected":es,allowFocusRoot:!0}),en?ts.createElement("span",{key:"description",role:"presentation",hidden:!0,id:this._ariaRowDescriptionId},en):null,ea&&ts.createElement("div",{role:"gridcell","data-selection-toggle":!0,className:this._classNames.checkCell},f({id:c?"".concat(c,"-checkbox"):void 0,selected:Y,selectionMode:b,anySelected:J,"aria-label":_,"aria-labelledby":c?ev:void 0,canSelect:eo,compact:A,className:this._classNames.check,theme:R,isVisible:x===ew.always,onRenderDetailsCheckbox:m,useFastIcons:O})),ts.createElement(Cw,{indentWidth:T,role:"gridcell",count:0===M?-1:M}),s&&ef,W&&ts.createElement("span",{role:"presentation",className:oG(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},ts.createElement(ep,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(c,"-header"),columns:[W.column],item:s,itemIndex:l,columnStartIndex:+!!ea+ +!!M+o.length,onRenderItemColumn:g,getCellValueKey:y})))},t.prototype.measureCell=function(e,t){var n=this.props.columns,r=tf({},(void 0===n?kJ:n)[e]);r.minWidth=0,r.maxWidth=999999,delete r.calculatedWidth,this.setState({columnMeasureInfo:{index:e,column:r,onMeasureDone:t}})},t.prototype.focus=function(e){var t;return void 0===e&&(e=!1),!!(null==(t=this._focusZone.current)?void 0:t.focus(e))},t.prototype._onRenderCheck=function(e){return ts.createElement(k_,tf({},e))},t.prototype._getRowDragDropOptions=function(){var e=this.props,t=e.item,n=e.itemIndex,r=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:n,context:{data:t,index:n},canDrag:r.canDrag,canDrop:r.canDrop,onDragStart:r.onDragStart,updateDropState:this._updateDroppingState,onDrop:r.onDrop,onDragEnd:r.onDragEnd,onDragOver:r.onDragOver}},t}(ts.Component),CR,void 0,{scope:"DetailsRow"}),k1=500,k2=3;function k5(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._root=ts.createRef(),n._registerResizeObserver=function(){var e=nM(n._root.current);n._viewportResizeObserver=new e.ResizeObserver(n._onAsyncResize),n._viewportResizeObserver.observe(n._root.current)},n._unregisterResizeObserver=function(){n._viewportResizeObserver&&(n._viewportResizeObserver.disconnect(),delete n._viewportResizeObserver)},n._updateViewport=function(e){var t=n.state.viewport,r=n._root.current,o=nM(r),a=ru(rP(r),o),s=ru(r,o),l=function(){e&&n._composedComponentInstance&&n._composedComponentInstance.forceUpdate()};((s&&s.width)!==t.width||(a&&a.height)!==t.height)&&n._resizeAttempts<k2&&s&&a?(n._resizeAttempts++,n.setState({viewport:{width:s.width,height:a.height}},function(){n._updateViewport(e)})):(n._resizeAttempts=0,l())},n._async=new nF(n),n._events=new rv(n),n._resizeAttempts=0,n.state={viewport:{width:0,height:0}},n}return tp(n,t),n.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.delayFirstMeasure,r=t.disableResizeObserver,o=t.skipViewportMeasures,a=nM(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,k1,{leading:!1}),o||(!r&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(a,"resize",this._onAsyncResize),n?this._async.setTimeout(function(){e._updateViewport()},k1):this._updateViewport())},n.prototype.componentDidUpdate=function(e){var t=e.skipViewportMeasures,n=this.props,r=n.disableResizeObserver,o=n.skipViewportMeasures,a=nM(this._root.current);o!==t&&(o?(this._unregisterResizeObserver(),this._events.off(a,"resize",this._onAsyncResize)):(!r&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(a,"resize",this._onAsyncResize),this._updateViewport()))},n.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},n.prototype.render=function(){var t=this.state.viewport,n=t.width>0&&t.height>0?t:void 0;return ts.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},ts.createElement(e,tf({ref:this._updateComposedComponentRef,viewport:n},this.props)))},n.prototype.forceUpdate=function(){this._updateViewport(!0)},n.prototype._onAsyncResize=function(){this._updateViewport()},n.prototype._isResizeObserverAvailable=function(){var e=nM(this._root.current);return e&&e.ResizeObserver},n}(ho)}var k4=oI(),k3="DetailsList",k6=100,k8=2,k9=2,k7={tabIndex:0},we={},wt=function(e){var t=e.selection,n=e.ariaLabelForListHeader,r=e.ariaLabelForSelectAllCheckbox,o=e.ariaLabelForSelectionColumn,a=e.className,s=e.checkboxVisibility,l=e.compact,c=e.constrainMode,u=e.dragDropEvents,d=e.groups,p=e.groupProps,f=e.indentWidth,m=e.items,g=e.isPlaceholderData,v=e.isHeaderVisible,y=e.layoutMode,b=e.onItemInvoked,x=e.onItemContextMenu,C=e.onColumnHeaderClick,k=e.onColumnHeaderContextMenu,w=e.selectionMode,S=void 0===w?t.mode:w,_=e.selectionPreservedOnEmptyClick,E=e.selectionZoneProps,P=e.ariaLabel,I=e.ariaLabelForGrid,T=e.rowElementEventMap,D=e.shouldApplyApplicationRole,A=void 0!==D&&D,R=e.getKey,N=e.listProps,B=e.usePageCache,M=e.onShouldVirtualize,F=e.viewport,O=e.minimumPixelsForDrag,L=e.getGroupHeight,H=e.styles,z=e.theme,V=e.cellStyleProps,U=void 0===V?CT:V,j=e.onRenderCheckbox,W=e.useFastIcons,q=e.dragDropHelper,G=e.adjustedColumns,X=e.isCollapsed,Y=e.isSizing,Q=e.isSomeGroupExpanded,J=e.version,Z=e.rootRef,ee=e.listRef,et=e.focusZoneRef,en=e.columnReorderOptions,er=e.groupedListRef,eo=e.headerRef,ei=e.onGroupExpandStateChanged,ea=e.onColumnIsSizingChanged,es=e.onRowDidMount,el=e.onRowWillUnmount,ec=e.disableSelectionZone,eu=e.isSelectedOnFocus,ed=void 0===eu||eu,ep=e.onColumnResized,ef=e.onColumnAutoResized,eh=e.onToggleCollapse,em=e.onActiveRowChanged,eg=e.onBlur,ev=e.rowElementEventMap,ey=e.onRenderMissingItem,eb=e.onRenderItemColumn,eS=e.onRenderField,e_=e.getCellValueKey,eP=e.getRowAriaLabel,eI=e.getRowAriaDescribedBy,eT=e.checkButtonAriaLabel,eD=e.checkButtonGroupAriaLabel,eA=e.checkboxCellClassName,eR=e.useReducedRowRenderer,eN=e.enableUpdateAnimations,eB=e.enterModalSelectionOnTouch,eM=e.onRenderDefaultRow,eF=e.selectionZoneRef,eO=e.focusZoneProps,eL="grid",eH=e.role?e.role:eL,ez=iw("row"),eV=wi(d),eU=wa(d),ej=ts.useMemo(function(){return tf({renderedWindowsAhead:Y?0:k8,renderedWindowsBehind:Y?0:k9,getKey:R,version:J},N)},[Y,R,J,N]),eW=eE.none;if(S===h.single&&(eW=eE.hidden),S===h.multiple){var eq=p&&p.headerProps&&p.headerProps.isCollapsedGroupSelectVisible;void 0===eq&&(eq=!0),eW=eq||!d||Q?eE.visible:eE.hidden}s===ew.hidden&&(eW=eE.none);var eG=ts.useCallback(function(e){return ts.createElement(kG,tf({},e))},[]),eK=ts.useCallback(function(){return null},[]),eX=e.onRenderDetailsHeader,eY=ts.useMemo(function(){return eX?aV(eX,eG):eG},[eX,eG]),e$=e.onRenderDetailsFooter,eQ=ts.useMemo(function(){return e$?aV(e$,eK):eK},[e$,eK]),eJ=ts.useMemo(function(){return{columns:G,groupNestingDepth:eV,selection:t,selectionMode:S,viewport:F,checkboxVisibility:s,indentWidth:f,cellStyleProps:U}},[G,eV,t,S,F,s,f,U]),eZ=en&&en.onDragEnd,e0=ts.useCallback(function(e,t){var n=e.dropLocation,r=eC.outside;if(eZ){if(n&&n!==eC.header)r=n;else if(Z.current){var o=Z.current.getBoundingClientRect();t.clientX>o.left&&t.clientX<o.right&&t.clientY>o.top&&t.clientY<o.bottom&&(r=eC.surface)}eZ(r)}},[eZ,Z]),e1=ts.useMemo(function(){if(en)return tf(tf({},en),{onColumnDragEnd:e0})},[en,e0]),e2=+!!v+ +!!e.onRenderDetailsFooter+kb(d)+(m?m.length:0),e5=+(eW!==eE.none)+(G?G.length:0)+ +!!d,e4=ts.useMemo(function(){return k4(H,{theme:z,compact:l,isFixed:y===ek.fixedColumns,isHorizontalConstrained:c===ex.horizontalConstrained,className:a})},[H,z,l,y,c,a]),e3=p&&p.onRenderFooter,e6=ts.useMemo(function(){return e3?function(e,n){return e3(tf(tf({},e),{columns:G,groupNestingDepth:eV,indentWidth:f,selection:t,selectionMode:S,viewport:F,checkboxVisibility:s,cellStyleProps:U}),n)}:void 0},[e3,G,eV,f,t,S,F,s,U]),e8=p&&p.onRenderHeader,e9=ts.useMemo(function(){return e8?function(e,n){var r,o,a=e.groupIndex,l=void 0!==a?null==(o=null==(r=e.groups)?void 0:r[a])?void 0:o.key:void 0,c=void 0!==l&&eU[l]?eU[l].totalRowCount:0;return e8(tf(tf({},e),{columns:G,groupNestingDepth:eV,indentWidth:f,selection:t,selectionMode:s!==ew.hidden?S:h.none,viewport:F,checkboxVisibility:s,cellStyleProps:U,ariaColSpan:G.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==a?c+ +!!v:void 0}),n)}:function(e,t){var n,r,o=e.groupIndex,a=void 0!==o?null==(r=null==(n=e.groups)?void 0:n[o])?void 0:r.key:void 0,s=void 0!==a&&eU[a]?eU[a].totalRowCount:0;return t(tf(tf({},e),{ariaColSpan:G.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==o?s+ +!!v:void 0}))}},[e8,G,eV,f,v,t,S,F,s,U,eU]),e7=ts.useMemo(function(){var e;return tf(tf({},p),{role:eH===eL?"rowgroup":"presentation",onRenderFooter:e6,onRenderHeader:e9,headerProps:tf(tf({},null==p?void 0:p.headerProps),{selectAllButtonProps:tf({"aria-label":eD},null==(e=null==p?void 0:p.headerProps)?void 0:e.selectAllButtonProps)})})},[p,e6,e9,eD,eH]),te=uV(function(){return oL(function(e){var t=0;return e.forEach(function(e){return t+=e.calculatedWidth||e.minWidth}),t})}),tt=p&&p.collapseAllVisibility,tn=ts.useMemo(function(){return te(G)},[G,te]),tr=ts.useCallback(function(n,r,o,a){var c=e.onRenderRow?aV(e.onRenderRow,eM):eM,d=a?a.key:void 0,p=d&&eU[d]?eU[d].numOfGroupHeadersBeforeItem:0,h=eH===eL?void 0:"presentation",m=o>0?we:k7,g={item:r,itemIndex:o,flatIndexOffset:(v?2:1)+p,compact:l,columns:G,groupNestingDepth:n,id:"".concat(ez,"-").concat(o),selectionMode:S,selection:t,onDidMount:es,onWillUnmount:el,onRenderItemColumn:eb,onRenderField:eS,getCellValueKey:e_,eventsToRegister:ev,dragDropEvents:u,dragDropHelper:q,viewport:F,checkboxVisibility:s,collapseAllVisibility:tt,getRowAriaLabel:eP,getRowAriaDescribedBy:eI,checkButtonAriaLabel:eT,checkboxCellClassName:eA,useReducedRowRenderer:eR,indentWidth:f,cellStyleProps:U,onRenderDetailsCheckbox:j,enableUpdateAnimations:eN,rowWidth:tn,useFastIcons:W,role:h,isGridRow:!0,focusZoneProps:m};return r?c(g):ey?ey(o,g):null},[l,G,S,t,ez,es,el,eb,eS,e_,ev,u,q,F,s,tt,eP,eI,v,eT,eA,eR,f,U,j,eN,W,eM,ey,e.onRenderRow,tn,eH,eU]),to=ts.useCallback(function(e){return function(t,n){return tr(e,t,n)}},[tr]),ti=ts.useCallback(function(e){return e.which===ok(r7,z)},[z]),ta=tf(tf({},eO),{componentRef:eO&&eO.componentRef?eO.componentRef:et,className:eO&&eO.className?oG(e4.focusZone,eO.className):e4.focusZone,direction:eO?eO.direction:K.vertical,shouldEnterInnerZone:eO&&eO.shouldEnterInnerZone?eO.shouldEnterInnerZone:ti,onActiveElementChanged:eO&&eO.onActiveElementChanged?eO.onActiveElementChanged:em,shouldRaiseClicksOnEnter:!1,onBlur:eO&&eO.onBlur?eO.onBlur:eg}),tl=d&&(null==p?void 0:p.groupedListAs)?oW(p.groupedListAs,ki):ki,tc=d?ts.createElement(tl,{focusZoneProps:ta,componentRef:er,groups:d,groupProps:e7,items:m,onRenderCell:tr,role:"presentation",selection:t,selectionMode:s!==ew.hidden?S:h.none,dragDropEvents:u,dragDropHelper:q,eventsToRegister:T,listProps:ej,onGroupExpandStateChanged:ei,usePageCache:B,onShouldVirtualize:M,getGroupHeight:L,compact:l}):ts.createElement(fp,tf({},ta),ts.createElement(xX,tf({ref:ee,role:"presentation",items:m,onRenderCell:to(0),usePageCache:B,onShouldVirtualize:M},ej))),tu=ts.useCallback(function(e){e.which===oe&&et.current&&et.current.focus()&&(ed&&0===t.getSelectedIndices().length&&t.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())},[t,et,ed]),td=ts.useCallback(function(e){e.which===r9&&!e.altKey&&eo.current&&eo.current.focus()&&(e.preventDefault(),e.stopPropagation())},[eo]);return ts.createElement("div",tf({ref:Z,className:e4.root,"data-automationid":"DetailsList","data-is-scrollable":"false"},A?{role:"application"}:{}),ts.createElement(ac,null),ts.createElement("div",{role:eH,"aria-label":I||P,"aria-rowcount":g?0:e2,"aria-colcount":e5,"aria-busy":g},ts.createElement("div",{onKeyDown:tu,role:"presentation",className:e4.headerWrapper},v&&eY({componentRef:eo,selectionMode:S,layoutMode:y,selection:t,columns:G,onColumnClick:C,onColumnContextMenu:k,onColumnResized:ep,onColumnIsSizingChanged:ea,onColumnAutoResized:ef,groupNestingDepth:eV,isAllCollapsed:X,onToggleCollapseAll:eh,ariaLabel:n,ariaLabelForSelectAllCheckbox:r,ariaLabelForSelectionColumn:o,selectAllVisibility:eW,collapseAllVisibility:p&&p.collapseAllVisibility,viewport:F,columnReorderProps:e1,minimumPixelsForDrag:O,cellStyleProps:U,checkboxVisibility:s,indentWidth:f,onRenderDetailsCheckbox:j,rowWidth:te(G),useFastIcons:W},eY)),ts.createElement("div",{onKeyDown:td,role:"presentation",className:e4.contentWrapper},ec?tc:ts.createElement(CC,tf({ref:eF,selection:t,selectionPreservedOnEmptyClick:_,selectionMode:S,isSelectedOnFocus:ed,selectionClearedOnEscapePress:ed,toggleWithoutModifierPressed:!ed,onItemInvoked:b,onItemContextMenu:x,enterModalOnTouch:eB},E||{}),tc)),eQ(tf({},eJ))))},wn=function(e){function t(t){var n=e.call(this,t)||this;return n._root=ts.createRef(),n._header=ts.createRef(),n._groupedList=ts.createRef(),n._list=ts.createRef(),n._focusZone=ts.createRef(),n._selectionZone=ts.createRef(),n._onRenderRow=function(e,t){return ts.createElement(k0,tf({},e))},n._getDerivedStateFromProps=function(e,t){var r=n.props,o=r.checkboxVisibility,a=r.items,s=r.setKey,l=r.selectionMode,c=void 0===l?n._selection.mode:l,u=r.columns,d=r.viewport,p=r.compact,f=r.dragDropEvents,h=(n.props.groupProps||{}).isAllGroupsCollapsed,m=void 0===h?void 0:h,g=e.viewport&&e.viewport.width||0,v=d&&d.width||0,y=e.setKey!==s||void 0===e.setKey,b=!1;e.layoutMode!==n.props.layoutMode&&(b=!0);var x=t;return y&&(n._initialFocusedIndex=e.initialFocusedIndex,x=tf(tf({},x),{focusedItemIndex:void 0!==n._initialFocusedIndex?n._initialFocusedIndex:-1})),n.props.disableSelectionZone||e.items===a||n._selection.setItems(e.items,y),(e.checkboxVisibility!==o||e.columns!==u||g!==v||e.compact!==p)&&(b=!0),x=tf(tf({},x),n._adjustColumns(e,x,!0)),e.selectionMode!==c&&(b=!0),void 0===m&&e.groupProps&&void 0!==e.groupProps.isAllGroupsCollapsed&&(x=tf(tf({},x),{isCollapsed:e.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!e.groupProps.isAllGroupsCollapsed})),e.dragDropEvents!==f&&(n._dragDropHelper&&n._dragDropHelper.dispose(),n._dragDropHelper=e.dragDropEvents?new kI({selection:n._selection,minimumPixelsForDrag:e.minimumPixelsForDrag}):void 0,b=!0),b&&(x=tf(tf({},x),{version:{}})),x},n._onGroupExpandStateChanged=function(e){n.setState({isSomeGroupExpanded:e})},n._onColumnIsSizingChanged=function(e,t){n.setState({isSizing:t})},n._onRowDidMount=function(e){var t=e.props,r=t.item,o=t.itemIndex,a=n._getItemKey(r,o);n._activeRows[a]=e,n._setFocusToRowIfPending(e);var s=n.props.onRowDidMount;s&&s(r,o)},n._onRowWillUnmount=function(e){var t=n.props.onRowWillUnmount,r=e.props,o=r.item,a=r.itemIndex,s=n._getItemKey(o,a);delete n._activeRows[s],t&&t(o,a)},n._onToggleCollapse=function(e){n.setState({isCollapsed:e}),n._groupedList.current&&n._groupedList.current.toggleCollapseAll(e)},n._onColumnResized=function(e,t,r){var o=Math.max(e.minWidth||k6,t);n.props.onColumnResize&&n.props.onColumnResize(e,o,r),n._rememberCalculatedWidth(e,o),n.setState(tf(tf({},n._adjustColumns(n.props,n.state,!0,r)),{version:{}}))},n._onColumnAutoResized=function(e,t){var r=0,o=0,a=Object.keys(n._activeRows).length;for(var s in n._activeRows)n._activeRows.hasOwnProperty(s)&&n._activeRows[s].measureCell(t,function(s){r=Math.max(r,s),++o===a&&n._onColumnResized(e,r,t)})},n._onActiveRowChanged=function(e,t){var r=n.props,o=r.items,a=r.onActiveItemChanged;if(e&&e.getAttribute("data-item-index")){var s=Number(e.getAttribute("data-item-index"));s>=0&&(a&&a(o[s],s,t),n.setState({focusedItemIndex:s}))}},n._onBlur=function(e){n.setState({focusedItemIndex:-1})},i2(n),n._async=new nF(n),n._activeRows={},n._columnOverrides={},n.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:n._getAdjustedColumns(t,void 0),isSizing:!1,isCollapsed:t.groupProps&&t.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:t.groupProps&&!t.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:n._getDerivedStateFromProps},rM(k3,t,{selection:"getKey"}),n._selection=t.selection||new aq({onSelectionChanged:void 0,getKey:t.getKey,selectionMode:t.selectionMode}),n.props.disableSelectionZone||n._selection.setItems(t.items,!1),n._dragDropHelper=t.dragDropEvents?new kI({selection:n._selection,minimumPixelsForDrag:t.minimumPixelsForDrag}):void 0,n._initialFocusedIndex=t.initialFocusedIndex,n}return tp(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n),this._groupedList.current&&this._groupedList.current.scrollToIndex(e,t,n)},t.prototype.focusIndex=function(e,t,n,r){void 0===t&&(t=!1);var o=this.props.items[e];if(o){this.scrollToIndex(e,n,r);var a=this._getItemKey(o,e),s=this._activeRows[a];s&&this._setFocusToRow(s,t)}},t.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},t.prototype.updateColumn=function(e,t){var n,r,o=[],a=this.props,s=a.columns,l=void 0===s?o:s,c=a.selectionMode,u=a.checkboxVisibility,d=a.columnReorderOptions,p=t.width,f=t.newColumnIndex,m=l.findIndex(function(t){return t.key===e.key});if(p&&this._onColumnResized(e,p,m),void 0!==f&&d){var g=c===h.none||u===ew.hidden,v=(u!==ew.hidden?2:1)+m,y=g?v-1:v-2,b=g?f-1:f-2,x=null!=(n=d.frozenColumnCountFromStart)?n:0,C=null!=(r=d.frozenColumnCountFromEnd)?r:0;if(b>=x&&b<l.length-C)if(d.onColumnDrop){var k={draggedIndex:y,targetIndex:b};d.onColumnDrop(k)}else d.handleColumnReorder&&d.handleColumnReorder(y,b)}},t.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},t.prototype.componentDidUpdate=function(e,t){this._notifyColumnsResized();var n=u9(this.context);if(void 0!==this._initialFocusedIndex){var r=this.props.items[this._initialFocusedIndex];if(r){var o=this._getItemKey(r,this._initialFocusedIndex),a=this._activeRows[o];a&&this._setFocusToRowIfPending(a)}}if(this.props.items!==e.items&&this.props.items.length>0&&-1!==this.state.focusedItemIndex&&!nz(this._root.current,null==n?void 0:n.activeElement,!1)){var s=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,r=this.props.items[s],o=this._getItemKey(r,this.state.focusedItemIndex),a=this._activeRows[o];a?this._setFocusToRow(a):this._initialFocusedIndex=s}this.props.onDidUpdate&&this.props.onDidUpdate(this)},t.prototype.render=function(){return ts.createElement(wt,tf({},this.props,this.state,{selection:this._selection,dragDropHelper:this._dragDropHelper,rootRef:this._root,listRef:this._list,groupedListRef:this._groupedList,focusZoneRef:this._focusZone,headerRef:this._header,selectionZoneRef:this._selectionZone,onGroupExpandStateChanged:this._onGroupExpandStateChanged,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onRowDidMount:this._onRowDidMount,onRowWillUnmount:this._onRowWillUnmount,onColumnResized:this._onColumnResized,onColumnAutoResized:this._onColumnAutoResized,onToggleCollapse:this._onToggleCollapse,onActiveRowChanged:this._onActiveRowChanged,onBlur:this._onBlur,onRenderDefaultRow:this._onRenderRow}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype._getGroupNestingDepth=function(){for(var e=this.props.groups,t=0,n=e;n&&n.length>0;)t++,n=n[0].children;return t},t.prototype._setFocusToRowIfPending=function(e){var t=e.props.itemIndex;void 0!==this._initialFocusedIndex&&t===this._initialFocusedIndex&&(this._setFocusToRow(e),delete this._initialFocusedIndex)},t.prototype._setFocusToRow=function(e,t){void 0===t&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout(function(){e.focus(t)},0)},t.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},t.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach(function(e){e.onColumnResize&&e.onColumnResize(e.currentWidth)})},t.prototype._adjustColumns=function(e,t,n,r){var o=this._getAdjustedColumns(e,t,n,r),a=this.props.viewport,s=a&&a.width?a.width:0;return tf(tf({},t),{adjustedColumns:o,lastWidth:s})},t.prototype._getAdjustedColumns=function(e,t,n,r){var o,a=this,s=e.items,l=e.layoutMode,c=e.selectionMode,u=e.viewport,d=u&&u.width?u.width:0,p=e.columns,f=this.props?this.props.columns:[],h=t?t.lastWidth:-1,m=t?t.lastSelectionMode:void 0;return n||h!==d||m!==c||f&&p!==f?(p=p||wr(s,!0),l===ek.fixedColumns?(o=this._getFixedColumns(p,d,e)).forEach(function(e){a._rememberCalculatedWidth(e,e.calculatedWidth)}):(o=this._getJustifiedColumns(p,d,e)).forEach(function(e){a._getColumnOverride(e.key).currentWidth=e.calculatedWidth}),o):p||[]},t.prototype._getFixedColumns=function(e,t,n){var r=this,o=this.props,a=o.selectionMode,s=void 0===a?this._selection.mode:a,l=o.checkboxVisibility,c=o.flexMargin,u=o.skipViewportMeasures,d=t-(c||0),p=0;e.forEach(function(e){u||!e.flexGrow?d-=e.maxWidth||e.minWidth||k6:(d-=e.minWidth||k6,p+=e.flexGrow),d-=wo(e,n,!0)});var f=s!==h.none&&l!==ew.hidden?CL:0,m=this._getGroupNestingDepth()*Ck,g=(d-=f+m)/p;return u||e.forEach(function(e){var t=tf(tf({},e),r._columnOverrides[e.key]);if(t.flexGrow&&t.maxWidth){var n=t.flexGrow*g+t.minWidth,o=n-t.maxWidth;o>0&&(d+=o,p-=o/(n-t.minWidth)*t.flexGrow)}}),g=d>0?d/p:0,e.map(function(e){var n=tf(tf({},e),r._columnOverrides[e.key]);return!u&&n.flexGrow&&d<=0&&0===t||n.calculatedWidth||(!u&&n.flexGrow?(n.calculatedWidth=n.minWidth+n.flexGrow*g,n.calculatedWidth=Math.min(n.calculatedWidth,n.maxWidth||Number.MAX_VALUE)):n.calculatedWidth=n.maxWidth||n.minWidth||k6),n})},t.prototype._getJustifiedColumns=function(e,t,n){var r=this,o=n.selectionMode,a=void 0===o?this._selection.mode:o,s=n.checkboxVisibility,l=n.skipViewportMeasures,c=a!==h.none&&s!==ew.hidden?CL:0,u=this._getGroupNestingDepth()*Ck,d=0,p=0,f=t-(c+u),m=e.map(function(e,t){var o=tf(tf({},e),{calculatedWidth:e.minWidth||k6}),a=tf(tf({},o),r._columnOverrides[e.key]);return o.isCollapsible||o.isCollapsable||(p+=wo(o,n)),d+=wo(a,n),a});if(l)return m;for(var g=m.length-1;g>=0&&d>f;){var v=m[g],y=v.minWidth||k6,b=d-f;if(v.calculatedWidth-y>=b||!(v.isCollapsible||v.isCollapsable)){var x=v.calculatedWidth;p<f&&(v.calculatedWidth=Math.max(v.calculatedWidth-b,y)),d-=x-v.calculatedWidth}else d-=wo(v,n),m.splice(g,1);g--}for(var C=0;C<m.length&&d<f;C++){var v=m[C],k=C===m.length-1,w=this._columnOverrides[v.key];if(!w||!w.calculatedWidth||k){var S=f-d,_=void 0;if(k)_=S;else{var E=v.maxWidth,y=v.minWidth||E||k6;_=E?Math.min(S,E-y):S}v.calculatedWidth=v.calculatedWidth+_,d+=_}}return m},t.prototype._rememberCalculatedWidth=function(e,t){var n=this._getColumnOverride(e.key);n.calculatedWidth=t,n.currentWidth=t},t.prototype._getColumnOverride=function(e){return this._columnOverrides[e]=this._columnOverrides[e]||{}},t.prototype._getItemKey=function(e,t){var n=this.props.getKey,r=void 0;return e&&(r=e.key),n&&(r=n(e,t)),r||(r=t),r},t.defaultProps={layoutMode:ek.justified,selectionMode:h.multiple,constrainMode:ex.horizontalConstrained,checkboxVisibility:ew.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},t.contextType=ic,t=tm([k5],t)}(ts.Component);function wr(e,t,n,r,o,a,s,l){var c=[];if(e&&e.length){var u=e[0];for(var d in u)u.hasOwnProperty(d)&&c.push({key:d,name:d,fieldName:d,minWidth:k6,maxWidth:300,isCollapsible:!!c.length,isMultiline:void 0!==s&&s,isSorted:r===d,isSortedDescending:!!o,isRowHeader:!1,columnActionsMode:null!=l?l:eb.clickable,isResizable:t,onColumnClick:n,isGrouped:a===d})}return c}function wo(e,t,n){var r=t.cellStyleProps,o=void 0===r?CT:r;return(n?0:e.calculatedWidth)+o.cellLeftPadding+o.cellRightPadding+(e.isPadded?o.cellExtraRightPadding:0)}function wi(e){for(var t=0,n=e;n&&n.length>0;)t++,n=n[0].children;return t}function wa(e){return ts.useMemo(function(){var t={};if(e)for(var n=1,r=1,o=0,a=e;o<a.length;o++){var s=a[o];t[s.key]={numOfGroupHeadersBeforeItem:r,totalRowCount:n},r++,n+=s.count+1}return t},[e])}var ws={root:"ms-DetailsList",compact:"ms-DetailsList--Compact",contentWrapper:"ms-DetailsList-contentWrapper",headerWrapper:"ms-DetailsList-headerWrapper",isFixed:"is-fixed",isHorizontalConstrained:"is-horizontalConstrained",listCell:"ms-List-cell"},wl=a1(wn,function(e){var t,n,r=e.theme,o=e.className,a=e.isHorizontalConstrained,s=e.compact,l=e.isFixed,c=r.semanticColors,u=l0(ws,r);return{root:[u.root,r.fonts.small,{position:"relative",color:c.listText,selectors:((t={})["& .".concat(u.listCell)]={minHeight:38,wordBreak:"break-word"},t)},l&&u.isFixed,s&&[u.compact,{selectors:((n={})[".".concat(u.listCell)]={minHeight:32},n)}],a&&[u.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],o],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:u.headerWrapper,contentWrapper:u.contentWrapper}},void 0,{scope:"DetailsList"});!function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"}(eP||(eP={}));var wc=li,wu={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},wd=function(e){var t,n=e.className,r=e.containerClassName,o=e.scrollableContentClassName,a=e.isOpen,s=e.isVisible,l=e.hasBeenOpened,c=e.modalRectangleTop,u=e.theme,d=e.topOffsetFixed,p=e.isModeless,f=e.layerClassName,h=e.isDefaultDragHandle,m=e.windowInnerHeight,g=u.palette,v=u.effects,y=u.fonts,b=l0(wu,u);return{root:[b.root,y.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity ".concat(wc)},d&&"number"==typeof c&&l&&{alignItems:"flex-start"},a&&b.isOpen,s&&{opacity:1},s&&!p&&{pointerEvents:"auto"},n],main:[b.main,{boxShadow:v.elevation64,borderRadius:v.roundedCorner2,backgroundColor:g.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:p?T.Layer:void 0},p&&{pointerEvents:"auto"},d&&"number"==typeof c&&l&&{top:c},h&&{cursor:"move"},r],scrollableContent:[b.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:((t={})["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:m},t)},o],layer:p&&[f,b.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:y.xLargePlus.fontSize,width:"24px"}}},wp=oI(),wf=function(e){function t(t){var n=e.call(this,t)||this;i2(n);var r=n.props.allowTouchBodyScroll;return n._allowTouchBodyScroll=void 0!==r&&r,n}return tp(t,e),t.prototype.componentDidMount=function(){this._allowTouchBodyScroll||rS()},t.prototype.componentWillUnmount=function(){this._allowTouchBodyScroll||r_()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,n=e.className,r=e.theme,o=e.styles,a=i$(this.props,iY),s=wp(o,{theme:r,className:n,isDark:t});return ts.createElement("div",tf({},a,{className:s.root}))},t}(ts.Component),wh={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},wm=a1(wf,function(e){var t,n=e.className,r=e.theme,o=e.isNone,a=e.isDark,s=r.palette,l=l0(wh,r);return{root:[l.root,r.fonts.medium,{backgroundColor:s.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:((t={})[l_]={border:"1px solid WindowText",opacity:0},t)},o&&{visibility:"hidden"},a&&[l.rootDark,{backgroundColor:s.blackTranslucent40}],n]}},void 0,{scope:"Overlay"}),wg=oL(function(e,t){return{root:ny(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),wv={start:"touchstart",move:"touchmove",stop:"touchend"},wy={start:"mousedown",move:"mousemove",stop:"mouseup"},wb=function(e){function t(t){var n=e.call(this,t)||this;return n._currentEventType=wy,n._events=[],n._onMouseDown=function(e){var t=ts.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=wy,n._onDragStart(e)},n._onMouseUp=function(e){var t=ts.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=wy,n._onDragStop(e)},n._onTouchStart=function(e){var t=ts.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=wv,n._onDragStart(e)},n._onTouchEnd=function(e){var t=ts.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=wv,n._onDragStop(e)},n._onDragStart=function(e){if("number"==typeof e.button&&0!==e.button)return!1;if(!(n.props.handleSelector&&!n._matchesSelector(e.target,n.props.handleSelector)||n.props.preventDragSelector&&n._matchesSelector(e.target,n.props.preventDragSelector))){n._touchId=n._getTouchId(e);var t=n._getControlPosition(e);if(void 0!==t){var r=n._createDragDataFromPosition(t);n.props.onStart&&n.props.onStart(e,r),n.setState({isDragging:!0,lastPosition:t});var o=u9(n.context);n._events=[rd(o.body,n._currentEventType.move,n._onDrag,!0),rd(o.body,n._currentEventType.stop,n._onDragStop,!0)]}}},n._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=n._getControlPosition(e);if(t){var r=n._createUpdatedDragData(n._createDragDataFromPosition(t)),o=r.position;n.props.onDragChange&&n.props.onDragChange(e,r),n.setState({position:o,lastPosition:t})}},n._onDragStop=function(e){if(n.state.isDragging){var t=n._getControlPosition(e);if(t){var r=n._createDragDataFromPosition(t);n.setState({isDragging:!1,lastPosition:void 0}),n.props.onStop&&n.props.onStop(e,r),n.props.position&&n.setState({position:n.props.position}),n._events.forEach(function(e){return e()})}}},n.state={isDragging:!1,position:n.props.position||{x:0,y:0},lastPosition:void 0},n}return tp(t,e),t.prototype.componentDidUpdate=function(e){this.props.position&&(!e.position||this.props.position!==e.position)&&this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach(function(e){return e()})},t.prototype.render=function(){var e=ts.Children.only(this.props.children),t=e.props,n=this.props.position,r=this.state,o=r.position,a=r.isDragging,s=o.x,l=o.y;return n&&!a&&(s=n.x,l=n.y),ts.cloneElement(e,{style:tf(tf({},t.style),{transform:"translate(".concat(s,"px, ").concat(l,"px)")}),className:wg(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){if(!e||e===(null==(n=u9(this.context))?void 0:n.body))return!1;var n,r=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!r&&(r.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId){for(var t=0;t<e.length;t++)if(e[t].identifier===this._touchId)return e[t]}},t.prototype._createDragDataFromPosition=function(e){var t=this.state.lastPosition;return void 0===t?{delta:{x:0,y:0},lastPosition:e,position:e}:{delta:{x:e.x-t.x,y:e.y-t.y},lastPosition:t,position:e}},t.prototype._createUpdatedDragData=function(e){var t=this.state.position;return{position:{x:t.x+e.delta.x,y:t.y+e.delta.y},delta:e.delta,lastPosition:t}},t.contextType=ic,t}(ts.Component),wx={x:0,y:0},wC={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},wk=oI(),ww=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t},wS=function(e,t){ts.useImperativeHandle(e.componentRef,function(){return{focus:function(){t.current&&t.current.focus()}}},[t])},w_=ts.forwardRef(function(e,t){var n,r,o,a,s,l=a4(wC,e),c=l.allowTouchBodyScroll,u=l.className,d=l.children,p=l.containerClassName,f=l.scrollableContentClassName,h=l.elementToFocusOnDismiss,m=l.firstFocusableSelector,g=l.focusTrapZoneProps,v=l.forceFocusInsideTrap,y=l.disableRestoreFocus,b=void 0===y?l.ignoreExternalFocusing:y,x=l.isBlocking,C=l.isAlert,k=l.isClickableOutsideFocusTrap,w=l.isDarkOverlay,S=l.onDismiss,_=l.layerProps,E=l.overlay,P=l.isOpen,I=l.titleAriaId,T=l.styles,D=l.subtitleAriaId,A=l.theme,R=l.topOffsetFixed,N=l.responsiveMode,B=l.onLayerDidMount,M=l.isModeless,F=l.dragOptions,O=l.onDismissed,L=l.enableAriaHiddenSiblings,H=l.popupProps,z=ts.useRef(null),V=ts.useRef(null),U=uG(V,null==g?void 0:g.componentRef),j=ts.useRef(null),W=uG(z,t),q=hu(W),G=uq("ModalFocusTrapZone",null==g?void 0:g.id),K=iu(),X=u$(),Y=X.setTimeout,Q=X.clearTimeout,Z=ts.useState(P),ee=Z[0],et=Z[1],en=ts.useState(P),er=en[0],eo=en[1],ei=ts.useState(wx),ea=ei[0],es=ei[1],el=ts.useState(),ec=el[0],eu=el[1],ed=uU(!1),ep=ed[0],ef=ed[1],eh=ef.toggle,em=ef.setFalse,eg=uV(function(){return{onModalCloseTimer:0,allowTouchBodyScroll:c,scrollableContent:null,lastSetCoordinates:wx,events:new rv({})}}),ev=(F||{}).keepInBounds,ey=null!=C?C:x&&!M,eb=void 0===_?"":_.className,ex=wk(T,{theme:A,className:u,containerClassName:p,scrollableContentClassName:f,isOpen:P,isVisible:er,hasBeenOpened:eg.hasBeenOpened,modalRectangleTop:ec,topOffsetFixed:R,isModeless:M,layerClassName:eb,windowInnerHeight:null==K?void 0:K.innerHeight,isDefaultDragHandle:F&&!F.dragHandleSelector}),eC=tf(tf({eventBubblingEnabled:!1},_),{onLayerDidMount:_&&_.onLayerDidMount?_.onLayerDidMount:B,insertFirst:(null==_?void 0:_.insertFirst)||M,className:ex.layer}),ek=ts.useCallback(function(e){e?eg.allowTouchBodyScroll?rk(e,eg.events):rC(e,eg.events):eg.events.off(eg.scrollableContent),eg.scrollableContent=e},[eg]),ew=function(){var e=j.current,t=null==e?void 0:e.getBoundingClientRect();t&&(R&&eu(t.top),ev&&(eg.minPosition={x:-t.left,y:-t.top},eg.maxPosition={x:t.left,y:t.top}))},eS=ts.useCallback(function(e,t){var n=eg.minPosition,r=eg.maxPosition;return ev&&n&&r&&(t=Math.max(n[e],t),t=Math.min(r[e],t)),t},[ev,eg]),e_=function(){var e;eg.lastSetCoordinates=wx,em(),eg.isInKeyboardMoveMode=!1,et(!1),es(wx),null==(e=eg.disposeOnKeyUp)||e.call(eg),null==O||O()},eE=ts.useCallback(function(){em(),eg.isInKeyboardMoveMode=!1},[eg,em]),eP=ts.useCallback(function(e,t){es(function(e){return{x:eS("x",e.x+t.delta.x),y:eS("y",e.y+t.delta.y)}})},[eS]),eI=ts.useCallback(function(){V.current&&V.current.focus()},[]),eT=function(){var e=function(e){if(e.altKey&&e.ctrlKey&&e.keyCode===r2){e.preventDefault(),e.stopPropagation();return}var t=e.altKey||e.keyCode===r1;if(ep&&t&&em(),eg.isInKeyboardMoveMode&&(e.keyCode===r1||e.keyCode===rQ)&&(eg.isInKeyboardMoveMode=!1,e.preventDefault(),e.stopPropagation()),eg.isInKeyboardMoveMode){var n=!0,r=ww(e);switch(e.keyCode){case r1:es(eg.lastSetCoordinates);case rQ:eg.lastSetCoordinates=wx;break;case r9:es(function(e){return{x:e.x,y:eS("y",e.y-r)}});break;case oe:es(function(e){return{x:e.x,y:eS("y",e.y+r)}});break;case r8:es(function(e){return{x:eS("x",e.x-r),y:e.y}});break;case r7:es(function(e){return{x:eS("x",e.x+r),y:e.y}});break;default:n=!1}n&&(e.preventDefault(),e.stopPropagation())}};eg.lastSetCoordinates=ea,em(),eg.isInKeyboardMoveMode=!0,eg.events.on(K,"keydown",e,!0),eg.disposeOnKeyDown=function(){eg.events.off(K,"keydown",e,!0),eg.disposeOnKeyDown=void 0}},eD=function(e){var t,n;null==(t=null==g?void 0:g.onBlur)||t.call(g,e),eg.lastSetCoordinates=wx,eg.isInKeyboardMoveMode=!1,null==(n=eg.disposeOnKeyDown)||n.call(eg)},eA=function(){var e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===r2&&nz(eg.scrollableContent,e.target)&&(eh(),e.preventDefault(),e.stopPropagation())};eg.disposeOnKeyUp||(eg.events.on(K,"keyup",e,!0),eg.disposeOnKeyUp=function(){eg.events.off(K,"keyup",e,!0),eg.disposeOnKeyUp=void 0})};ts.useEffect(function(){Q(eg.onModalCloseTimer),P&&(requestAnimationFrame(function(){return Y(ew,0)}),et(!0),F&&eA(),eg.hasBeenOpened=!0,eo(!0)),!P&&ee&&(eg.onModalCloseTimer=Y(e_,1e3*parseFloat(wc)),eo(!1))},[ee,P]),uJ(function(){eg.events.dispose(),eg.onModalCloseTimer&&(Q(eg.onModalCloseTimer),eg.onModalCloseTimer=0)}),wS(l,V),wE(l);var eR=ts.createElement(d0,tf({},g,{id:G,ref:j,componentRef:U,className:oG(ex.main,null==g?void 0:g.className),elementToFocusOnDismiss:null!=(n=null==g?void 0:g.elementToFocusOnDismiss)?n:h,isClickableOutsideFocusTrap:null!=(r=null==g?void 0:g.isClickableOutsideFocusTrap)?r:M||k||!x,disableRestoreFocus:null!=(o=null==g?void 0:g.disableRestoreFocus)?o:b,forceFocusInsideTrap:(null!=(a=null==g?void 0:g.forceFocusInsideTrap)?a:v)&&!M,firstFocusableSelector:(null==g?void 0:g.firstFocusableSelector)||m,focusPreviouslyFocusedInnerElement:null==(s=null==g?void 0:g.focusPreviouslyFocusedInnerElement)||s,onBlur:eg.isInKeyboardMoveMode?eD:void 0}),F&&eg.isInKeyboardMoveMode&&ts.createElement("div",{className:ex.keyboardMoveIconContainer},F.keyboardMoveIconProps?ts.createElement(pf,tf({},F.keyboardMoveIconProps)):ts.createElement(pf,{iconName:"move",className:ex.keyboardMoveIcon})),ts.createElement("div",{ref:ek,className:ex.scrollableContent,"data-is-scrollable":!0},F&&ep&&ts.createElement(F.menu,{items:[{key:"move",text:F.moveMenuItemText,onClick:eT},{key:"close",text:F.closeMenuItemText,onClick:e_}],onDismiss:em,alignTargetEdge:!0,coverTarget:!0,directionalHint:cO,directionalHintFixed:!0,shouldFocusOnMount:!0,target:eg.scrollableContent}),d));return ee&&q>=(N||J.small)&&ts.createElement(dY,tf({ref:W},eC),ts.createElement(u3,tf({role:ey?"alertdialog":"dialog",ariaLabelledBy:I,ariaDescribedBy:D,onDismiss:S,shouldRestoreFocus:!b,enableAriaHiddenSiblings:L,"aria-modal":!M},H),ts.createElement("div",{className:ex.root,role:M?void 0:"document"},!M&&ts.createElement(wm,tf({"aria-hidden":!0,isDarkThemed:w,onClick:x?void 0:S,allowTouchBodyScroll:c},E)),F?ts.createElement(wb,{handleSelector:F.dragHandleSelector||"#".concat(G),preventDragSelector:"button",onStart:eE,onDragChange:eP,onStop:eI,position:ea},eR):eR)))||null});function wE(e){u0({name:"Modal",props:e,deprecations:{onLayerDidMount:"layerProps.onLayerDidMount"}})}w_.displayName="Modal";var wP=a1(w_,wd,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});wP.displayName="Modal";var wI=oI(),wT=function(e){function t(t){var n=e.call(this,t)||this;return i2(n),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return this._classNames=wI(n,{theme:r,className:t}),ts.createElement("div",{className:this._classNames.actions},ts.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var e=this;return ts.Children.map(this.props.children,function(t){return t?ts.createElement("span",{className:e._classNames.action},t):null})},t}(ts.Component),wD={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},wA=a1(wT,function(e){var t=e.className,n=l0(wD,e.theme);return{actions:[n.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal",verticalAlign:"middle"}}},t],action:[n.action,{margin:"0 4px"}],actionsRight:[n.actionsRight,{alignItems:"center",display:"flex",fontSize:"0",justifyContent:"flex-end",marginRight:"-4px"}]}},void 0,{scope:"DialogFooter"});wA.displayName="DialogFooter";var wR=oI(),wN=ts.createElement(wA,null).type,wB="DialogContent",wM=function(e){function t(t){var n=e.call(this,t)||this;return i2(n),rF(wB,t,{titleId:"titleProps.id"}),n}return tp(t,e),t.prototype.render=function(){var e,t=this.props,n=t.showCloseButton,r=t.className,o=t.closeButtonAriaLabel,a=t.onDismiss,s=t.subTextId,l=t.subText,c=t.titleProps,u=void 0===c?{}:c,d=t.titleId,p=t.title,f=t.type,h=t.styles,m=t.theme,g=t.draggableHeaderClassName,v=wR(h,{theme:m,className:r,isLargeHeader:f===eP.largeHeader,isClose:f===eP.close,draggableHeaderClassName:g}),y=this._groupChildren();return l&&(e=ts.createElement("p",{className:v.subText,id:s},l)),ts.createElement("div",{className:v.content},ts.createElement("div",{className:v.header},ts.createElement("div",tf({id:d,role:"heading","aria-level":1},u,{className:oG(v.title,u.className)}),p),ts.createElement("div",{className:v.topButton},this.props.topButtonsProps.map(function(e,t){return ts.createElement(mn,tf({key:e.uniqueId||t},e))}),(f===eP.close||n&&f!==eP.largeHeader)&&ts.createElement(mn,{className:v.button,iconProps:{iconName:"Cancel"},ariaLabel:o,onClick:a}))),ts.createElement("div",{className:v.inner},ts.createElement("div",{className:v.innerContent},e,y.contents),y.footers))},t.prototype._groupChildren=function(){var e={footers:[],contents:[]};return ts.Children.map(this.props.children,function(t){"object"==typeof t&&null!==t&&t.type===wN?e.footers.push(t):e.contents.push(t)}),e},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=tm([hs],t)}(ts.Component),wF={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},wO=a1(wM,function(e){var t,n,r,o=e.className,a=e.theme,s=e.isLargeHeader,l=e.isClose,c=e.hidden,u=e.isMultiline,d=e.draggableHeaderClassName,p=a.palette,f=a.fonts,h=a.effects,m=a.semanticColors,g=l0(wF,a);return{content:[s&&[g.contentLgHeader,{borderTop:"4px solid ".concat(p.themePrimary)}],l&&g.close,{flexGrow:1,overflowY:"hidden"},o],subText:[g.subText,f.medium,{margin:"0 0 24px 0",color:m.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:P.regular}],header:[g.header,{position:"relative",width:"100%",boxSizing:"border-box"},l&&g.close,d&&[d,{cursor:"move"}]],button:[g.button,c&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:m.buttonText,fontSize:I.medium}}}],inner:[g.inner,{padding:"0 24px 24px",selectors:((t={})["@media (min-width: ".concat(lP,"px) and (max-width: ").concat(lR,"px)")]={padding:"0 16px 16px"},t)}],innerContent:[g.content,{position:"relative",width:"100%"}],title:[g.title,f.xLarge,{color:m.bodyText,margin:"0",minHeight:f.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:((n={})["@media (min-width: ".concat(lP,"px) and (max-width: ").concat(lR,"px)")]={padding:"16px 46px 16px 16px"},n)},s&&{color:m.menuHeader},u&&{fontSize:f.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:((r={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:m.buttonText},".ms-Dialog-button:hover":{color:m.buttonTextHovered,borderRadius:h.roundedCorner2}})["@media (min-width: ".concat(lP,"px) and (max-width: ").concat(lR,"px)")]={padding:"15px 8px 0 0"},r)}]}},void 0,{scope:"DialogContent"});wO.displayName="DialogContent";var wL=oI(),wH={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},wz={type:eP.normal,className:"",topButtonsProps:[]},wV=function(e){function t(t){var n=e.call(this,t)||this;return n._getSubTextId=function(){var e=n.props,t=e.ariaDescribedById,r=e.modalProps,o=e.dialogContentProps,a=e.subText,s=r&&r.subtitleAriaId||t;return s||(s=(o&&o.subText||a)&&n._defaultSubTextId),s},n._getTitleTextId=function(){var e=n.props,t=e.ariaLabelledById,r=e.modalProps,o=e.dialogContentProps,a=e.title,s=r&&r.titleAriaId||t;return s||(s=(o&&o.title||a)&&n._defaultTitleTextId),s},n._id=iw("Dialog"),n._defaultTitleTextId=n._id+"-title",n._defaultSubTextId=n._id+"-subText",rF("Dialog",t,{isOpen:"hidden",type:"dialogContentProps.type",subText:"dialogContentProps.subText",contentClassName:"dialogContentProps.className",topButtonsProps:"dialogContentProps.topButtonsProps",className:"modalProps.className",isDarkOverlay:"modalProps.isDarkOverlay",isBlocking:"modalProps.isBlocking",containerClassName:"modalProps.containerClassName",onDismissed:"modalProps.onDismissed",onLayerDidMount:"modalProps.layerProps.onLayerDidMount",ariaDescribedById:"modalProps.subtitleAriaId",ariaLabelledById:"modalProps.titleAriaId"}),n}return tp(t,e),t.prototype.render=function(){var e,t,n,r,o,a=this.props,s=a.className,l=a.containerClassName,c=a.contentClassName,u=a.elementToFocusOnDismiss,d=a.firstFocusableSelector,p=a.forceFocusInsideTrap,f=a.styles,h=a.hidden,m=a.disableRestoreFocus,g=void 0===m?a.ignoreExternalFocusing:m,v=a.isBlocking,y=a.isClickableOutsideFocusTrap,b=a.isDarkOverlay,x=a.isOpen,C=void 0===x?!h:x,k=a.onDismiss,w=a.onDismissed,S=a.onLayerDidMount,_=a.responsiveMode,E=a.subText,P=a.theme,I=a.title,T=a.topButtonsProps,D=a.type,A=a.minWidth,R=a.maxWidth,N=a.modalProps,B=tf({onLayerDidMount:S},null==N?void 0:N.layerProps);(null==N?void 0:N.dragOptions)&&!(null==(e=N.dragOptions)?void 0:e.dragHandleSelector)&&(o=tf({},N.dragOptions),r="ms-Dialog-draggable-header",o.dragHandleSelector=".".concat(r));var M=tf(tf(tf(tf({},wH),{elementToFocusOnDismiss:u,firstFocusableSelector:d,forceFocusInsideTrap:p,disableRestoreFocus:g,isClickableOutsideFocusTrap:y,responsiveMode:_,className:s,containerClassName:l,isBlocking:v,isDarkOverlay:b,onDismissed:w}),N),{dragOptions:o,layerProps:B,isOpen:C}),F=tf(tf(tf({className:c,subText:E,title:I,topButtonsProps:T,type:D},wz),a.dialogContentProps),{draggableHeaderClassName:r,titleProps:tf({id:(null==(t=a.dialogContentProps)?void 0:t.titleId)||this._defaultTitleTextId},null==(n=a.dialogContentProps)?void 0:n.titleProps)}),O=wL(f,{theme:P,className:M.className,containerClassName:M.containerClassName,hidden:h,dialogDefaultMinWidth:A,dialogDefaultMaxWidth:R});return ts.createElement(wP,tf({},M,{className:O.root,containerClassName:O.main,onDismiss:k||M.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),ts.createElement(wO,tf({subTextId:this._defaultSubTextId,showCloseButton:M.isBlocking,onDismiss:k},F),a.children))},t.defaultProps={hidden:!0},t=tm([hs],t)}(ts.Component),wU={root:"ms-Dialog"};a1(wV,function(e){var t,n=e.className,r=e.containerClassName,o=e.dialogDefaultMinWidth,a=void 0===o?"288px":o,s=e.dialogDefaultMaxWidth,l=void 0===s?"340px":s,c=e.hidden,u=e.theme;return{root:[l0(wU,u).root,u.fonts.medium,n],main:[{width:a,outline:"3px solid transparent",selectors:((t={})["@media (min-width: ".concat(lI,"px)")]={width:"auto",maxWidth:l,minWidth:a},t)},!c&&{display:"flex"},r]}},void 0,{scope:"Dialog"}).displayName="Dialog",function(e){e[e.normal=0]="normal",e[e.compact=1]="compact"}(eI||(eI={}));var wj=oI(),wW="DocumentCard",wq=ts.createContext({}),wG=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=ts.createRef(),n._onClick=function(e){n._onAction(e)},n._onKeyDown=function(e){(e.which===rQ||e.which===r2)&&n._onAction(e)},n._onAction=function(e){var t=n.props,r=t.onClick,o=t.onClickHref,a=t.onClickTarget,s=u7(n.context);r?r(e):!r&&o&&(a?s.open(o,a,"noreferrer noopener nofollow"):s.location.href=o,e.preventDefault(),e.stopPropagation())},i2(n),rF(wW,t,{accentColor:void 0}),n}return tp(t,e),t.prototype.render=function(){var e,t=this.props,n=t.onClick,r=t.onClickHref,o=t.children,a=t.type,s=t.accentColor,l=t.styles,c=t.theme,u=t.className,d=i$(this.props,iY,["className","onClick","type","role"]),p=!!n||!!r;this._classNames=wj(l,{theme:c,className:u,actionable:p,compact:a===eI.compact}),a===eI.compact&&s&&(e={borderBottomColor:s});var f={role:this.props.role||(p?n?"button":"link":void 0),tabIndex:p?0:void 0};return ts.createElement("div",tf({ref:this._rootElement,role:"group",className:this._classNames.root,onKeyDown:p?this._onKeyDown:void 0,onClick:p?this._onClick:void 0,style:e},d),ts.createElement(wq.Provider,{value:f},o))},t.prototype.focus=function(){this._rootElement.current&&this._rootElement.current.focus()},t.defaultProps={type:eI.normal},t.contextType=ic,t}(ts.Component),wK={root:"ms-DocumentCardPreview",icon:"ms-DocumentCardPreview-icon",iconContainer:"ms-DocumentCardPreview-iconContainer"},wX=function(e){var t,n,r=e.theme,o=e.className,a=e.isFileList,s=r.palette,l=r.fonts,c=l0(wK,r);return{root:[c.root,l.small,{backgroundColor:a?s.white:s.neutralLighterAlt,borderBottom:"1px solid ".concat(s.neutralLight),overflow:"hidden",position:"relative"},o],previewIcon:[c.iconContainer,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}],icon:[c.icon,{left:"10px",bottom:"10px",position:"absolute"}],fileList:{padding:"16px 16px 0 16px",listStyleType:"none",margin:0,selectors:{li:{height:"16px",lineHeight:"16px",display:"flex",flexWrap:"nowrap",alignItems:"center",marginBottom:"8px",overflow:"hidden"}}},fileListIcon:{display:"inline-block",flexShrink:0,marginRight:"8px"},fileListLink:[lO(r,{highContrastStyle:{border:"1px solid WindowText",outline:"none"}}),{boxSizing:"border-box",color:s.neutralDark,flexGrow:1,overflow:"hidden",display:"inline-block",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:((t={":hover":{color:s.themePrimary}})[".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]={selectors:((n={})[l_]={outline:"none"},n)},t)}],fileListOverflowText:{padding:"0px 16px 8px 16px",display:"block"}}},wY=8,w$=16,wQ=32,wJ=8,wZ={root:"ms-DocumentCardActivity",multiplePeople:"ms-DocumentCardActivity--multiplePeople",details:"ms-DocumentCardActivity-details",name:"ms-DocumentCardActivity-name",activity:"ms-DocumentCardActivity-activity",avatars:"ms-DocumentCardActivity-avatars",avatar:"ms-DocumentCardActivity-avatar"},w0=function(e){var t=e.theme,n=e.className,r=e.multiplePeople,o=t.palette,a=t.fonts,s=l0(wZ,t);return{root:[s.root,r&&s.multiplePeople,{padding:"".concat(wY,"px ").concat(w$,"px"),position:"relative"},n],avatars:[s.avatars,{marginLeft:"-2px",height:"32px"}],avatar:[s.avatar,{display:"inline-block",verticalAlign:"top",position:"relative",textAlign:"center",width:wQ,height:wQ,selectors:{"&:after":{content:'" "',position:"absolute",left:"-1px",top:"-1px",right:"-1px",bottom:"-1px",border:"2px solid ".concat(o.white),borderRadius:"50%"},":nth-of-type(2)":r&&{marginLeft:"-16px"}}}],details:[s.details,{left:r?"".concat(w$+1.5*wQ+wJ,"px"):"".concat(w$+wQ+wJ,"px"),height:wQ,position:"absolute",top:wY,width:"calc(100% - ".concat(w$+wQ+wJ+w$,"px)")}],name:[s.name,{display:"block",fontSize:a.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o.neutralPrimary,fontWeight:P.semibold}],activity:[s.activity,{display:"block",fontSize:a.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o.neutralSecondary}]}},w1={root:"ms-DocumentCardTitle"},w2=function(e){var t,n=e.theme,r=e.className,o=e.showAsSecondaryTitle,a=n.palette,s=n.fonts,l=n.effects;return{root:[l0(w1,n).root,o?s.medium:s.large,{padding:"8px 16px",display:"block",overflow:"hidden",position:"relative",wordWrap:"break-word",height:o?"45px":"38px",lineHeight:o?"18px":"21px",color:o?a.neutralSecondary:a.neutralPrimary,selectors:((t={":focus":{outline:"0px solid"}})[".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]=lz(a.neutralSecondary,l.roundedCorner2),t)},r]}},w5={root:"ms-DocumentCardLocation"},w4=function(e){var t=e.theme,n=e.className,r=t.palette,o=t.fonts;return{root:[l0(w5,t).root,o.small,{color:r.themePrimary,display:"block",fontWeight:P.semibold,overflow:"hidden",padding:"8px 16px",position:"relative",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:{":hover":{color:r.themePrimary,cursor:"pointer"}}},n]}},w3={root:"ms-DocumentCard",rootActionable:"ms-DocumentCard--actionable",rootCompact:"ms-DocumentCard--compact"};a1(wG,function(e){var t,n,r=e.className,o=e.theme,a=e.actionable,s=e.compact,l=o.palette,c=o.fonts,u=o.effects,d=l0(w3,o);return{root:[d.root,{WebkitFontSmoothing:"antialiased",backgroundColor:l.white,border:"1px solid ".concat(l.neutralLight),maxWidth:"320px",minWidth:"206px",userSelect:"none",position:"relative",selectors:((t={":focus":{outline:"0px solid"}})[".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]=lz(l.neutralSecondary,u.roundedCorner2),t[".".concat(w5.root," + .").concat(w1.root)]={paddingTop:"4px"},t)},a&&[d.rootActionable,{selectors:{":hover":{cursor:"pointer",borderColor:l.neutralTertiaryAlt},":hover:after":{content:'" "',position:"absolute",top:0,right:0,bottom:0,left:0,border:"1px solid ".concat(l.neutralTertiaryAlt),pointerEvents:"none"}}}],s&&[d.rootCompact,{display:"flex",maxWidth:"480px",height:"108px",selectors:((n={})[".".concat(wK.root)]={borderRight:"1px solid ".concat(l.neutralLight),borderBottom:0,maxHeight:"106px",maxWidth:"144px"},n[".".concat(wK.icon)]={maxHeight:"32px",maxWidth:"32px"},n[".".concat(wZ.root)]={paddingBottom:"12px"},n[".".concat(w1.root)]={paddingBottom:"12px 16px 8px 16px",fontSize:c.mediumPlus.fontSize,lineHeight:"16px"},n)}],r]}},void 0,{scope:"DocumentCard"});var w6=oI(),w8=function(e){function t(t){var n=e.call(this,t)||this;return i2(n),n}return tp(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.actions,r=t.views,o=t.styles,a=t.theme,s=t.className;return this._classNames=w6(o,{theme:a,className:s}),ts.createElement("div",{className:this._classNames.root},n&&n.map(function(t,n){return ts.createElement("div",{className:e._classNames.action,key:n},ts.createElement(mn,tf({},t)))}),r>0&&ts.createElement("div",{className:this._classNames.views},ts.createElement(pf,{iconName:"View",className:this._classNames.viewsIcon}),r))},t}(ts.Component),w9=34,w7=12,Se=4,St={root:"ms-DocumentCardActions",action:"ms-DocumentCardActions-action",views:"ms-DocumentCardActions-views"};a1(w8,function(e){var t=e.className,n=e.theme,r=n.palette,o=n.fonts,a=l0(St,n);return{root:[a.root,{height:"".concat(w9,"px"),padding:"".concat(Se,"px ").concat(w7,"px"),position:"relative"},t],action:[a.action,{float:"left",marginRight:"4px",color:r.neutralSecondary,cursor:"pointer",selectors:{".ms-Button":{fontSize:o.mediumPlus.fontSize,height:w9,width:w9},".ms-Button:hover .ms-Button-icon":{color:n.semanticColors.buttonText,cursor:"pointer"}}}],views:[a.views,{textAlign:"right",lineHeight:w9}],viewsIcon:{marginRight:"8px",fontSize:o.medium.fontSize,verticalAlign:"top"}}},void 0,{scope:"DocumentCardActions"});var Sn=oI();a1(function(e){function t(t){var n=e.call(this,t)||this;return i2(n),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.activity,n=e.people,r=e.styles,o=e.theme,a=e.className;return(this._classNames=Sn(r,{theme:o,className:a,multiplePeople:n.length>1}),n&&0!==n.length)?ts.createElement("div",{className:this._classNames.root},this._renderAvatars(n),ts.createElement("div",{className:this._classNames.details},ts.createElement("span",{className:this._classNames.name},this._getNameString(n)),ts.createElement("span",{className:this._classNames.activity},t))):null},t.prototype._renderAvatars=function(e){return ts.createElement("div",{className:this._classNames.avatars},e.length>1?this._renderAvatar(e[1]):null,this._renderAvatar(e[0]))},t.prototype._renderAvatar=function(e){return ts.createElement("div",{className:this._classNames.avatar},ts.createElement(pq,{imageInitials:e.initials,text:e.name,imageUrl:e.profileImageSrc,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,role:"presentation",size:V.size32}))},t.prototype._getNameString=function(e){var t=e[0].name;return e.length>=2&&(t+=" +"+(e.length-1)),t},t}(ts.Component),w0,void 0,{scope:"DocumentCardActivity"});var Sr=oI(),So=function(e){function t(t){var n=e.call(this,t)||this;return i2(n),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.styles,r=e.theme,o=e.className;return this._classNames=Sr(n,{theme:r,className:o}),ts.createElement("div",{className:this._classNames.root},t)},t}(ts.Component),Si={root:"ms-DocumentCardDetails"};a1(So,function(e){var t=e.className;return{root:[l0(Si,e.theme).root,{display:"flex",flexDirection:"column",flex:1,justifyContent:"space-between",overflow:"hidden"},t]}},void 0,{scope:"DocumentCardDetails"});var Sa=oI();a1(function(e){function t(t){var n=e.call(this,t)||this;return i2(n),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.locationHref,r=e.ariaLabel,o=e.onClick,a=e.styles,s=e.theme,l=e.className;return this._classNames=Sa(a,{theme:s,className:l}),ts.createElement("a",{className:this._classNames.root,href:n,onClick:o,"aria-label":r},t)},t}(ts.Component),w4,void 0,{scope:"DocumentCardLocation"});var Ss=3,Sl=oI();a1(function(e){function t(t){var n=e.call(this,t)||this;return n._renderPreviewList=function(e){var t=n.props,r=t.getOverflowDocumentCountText,o=t.maxDisplayCount,a=void 0===o?Ss:o,s=e.length-a,l=s?r?r(s):"+"+s:null,c=e.slice(0,a).map(function(e,t){return ts.createElement("li",{key:t},ts.createElement(pa,{className:n._classNames.fileListIcon,src:e.iconSrc,role:"presentation",alt:"",width:"16px",height:"16px"}),ts.createElement(fb,tf({className:n._classNames.fileListLink,href:e.url},e.linkProps),e.name))});return ts.createElement("div",null,ts.createElement("ul",{className:n._classNames.fileList},c),l&&ts.createElement("span",{className:n._classNames.fileListOverflowText},l))},i2(n),n}return tp(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.previewImages,o=n.styles,a=n.theme,s=n.className,l=r.length>1;return this._classNames=Sl(o,{theme:a,className:s,isFileList:l}),r.length>1?t=this._renderPreviewList(r):1===r.length&&(t=this._renderPreviewImage(r[0]),r[0].accentColor&&(e={borderBottomColor:r[0].accentColor})),ts.createElement("div",{className:this._classNames.root,style:e},t)},t.prototype._renderPreviewImage=function(e){var t,n=e.width,r=e.height,o=e.imageFit,a=e.previewIconProps,s=e.previewIconContainerClass;if(a)return ts.createElement("div",{className:oG(this._classNames.previewIcon,s),style:{width:n,height:r}},ts.createElement(pf,tf({},a)));var l=ts.createElement(pa,{width:n,height:r,imageFit:o,src:e.previewImageSrc,role:"presentation",alt:""});return e.iconSrc&&(t=ts.createElement(pa,{className:this._classNames.icon,src:e.iconSrc,role:"presentation",alt:""})),ts.createElement("div",null,l,t)},t}(ts.Component),wX,void 0,{scope:"DocumentCardPreview"});var Sc=oI(),Su=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoad=function(){n.setState({imageHasLoaded:!0})},i2(n),n.state={imageHasLoaded:!1},n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.width,r=e.height,o=e.imageFit,a=e.imageSrc;return this._classNames=Sc(t,this.props),ts.createElement("div",{className:this._classNames.root},a&&ts.createElement(pa,{width:n,height:r,imageFit:o,src:a,role:"presentation",alt:"",onLoad:this._onImageLoad}),this.state.imageHasLoaded?this._renderCornerIcon():this._renderCenterIcon())},t.prototype._renderCenterIcon=function(){var e=this.props.iconProps;return ts.createElement("div",{className:this._classNames.centeredIconWrapper},ts.createElement(pf,tf({className:this._classNames.centeredIcon},e)))},t.prototype._renderCornerIcon=function(){var e=this.props.iconProps;return ts.createElement(pf,tf({className:this._classNames.cornerIcon},e))},t}(ts.Component),Sd="42px",Sp="32px";a1(Su,function(e){var t=e.theme,n=e.className,r=e.height,o=e.width,a=t.palette;return{root:[{borderBottom:"1px solid ".concat(a.neutralLight),position:"relative",backgroundColor:a.neutralLighterAlt,overflow:"hidden",height:r&&"".concat(r,"px"),width:o&&"".concat(o,"px")},n],centeredIcon:[{height:Sd,width:Sd,fontSize:Sd}],centeredIconWrapper:[{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",position:"absolute",top:0,left:0}],cornerIcon:[{left:"10px",bottom:"10px",height:Sp,width:Sp,fontSize:Sp,position:"absolute",overflow:"visible"}]}},void 0,{scope:"DocumentCardImage"});var Sf=oI(),Sh=5;a1(function(e){function t(t){var n=e.call(this,t)||this;return n._titleElement=ts.createRef(),n._truncateTitle=function(){n._needMeasurement&&n._async.requestAnimationFrame(n._truncateWhenInAnimation)},n._truncateWhenInAnimation=function(){var e=n.props.title,t=n._titleElement.current;if(t){var r=getComputedStyle(t);if(r.width&&r.lineHeight&&r.height){var o=t.clientWidth,a=t.scrollWidth;n._clientWidth=o;var s=Math.floor((parseInt(r.height,10)+Sh)/parseInt(r.lineHeight,10));t.style.whiteSpace="";var l=a/(parseInt(r.width,10)*s);if(l>1){var c=e.length/l-3;return n.setState({truncatedTitleFirstPiece:e.slice(0,c/2),truncatedTitleSecondPiece:e.slice(e.length-c/2)})}}}},n._shrinkTitle=function(){var e=n.state,t=e.truncatedTitleFirstPiece,r=e.truncatedTitleSecondPiece;if(t&&r){var o=n._titleElement.current;if(!o)return;(o.scrollHeight>o.clientHeight+Sh||o.scrollWidth>o.clientWidth)&&n.setState({truncatedTitleFirstPiece:t.slice(0,t.length-1),truncatedTitleSecondPiece:r.slice(1)})}},i2(n),n._async=new nF(n),n._events=new rv(n),n._clientWidth=void 0,n.state={truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0},n}return tp(t,e),t.prototype.componentDidUpdate=function(e){var t=this;if(this.props.title!==e.title&&this.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0}),e.shouldTruncate!==this.props.shouldTruncate){var n=u7(this.context);this.props.shouldTruncate?(this._truncateTitle(),this._async.requestAnimationFrame(this._shrinkTitle),this._events.on(n,"resize",this._updateTruncation)):this._events.off(n,"resize",this._updateTruncation)}else this._needMeasurement&&this._async.requestAnimationFrame(function(){t._truncateWhenInAnimation(),t._shrinkTitle()})},t.prototype.componentDidMount=function(){if(this.props.shouldTruncate){this._truncateTitle();var e=u7(this.context);this._events.on(e,"resize",this._updateTruncation)}},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.title,r=t.shouldTruncate,o=t.showAsSecondaryTitle,a=t.styles,s=t.theme,l=t.className,c=this.state,u=c.truncatedTitleFirstPiece,d=c.truncatedTitleSecondPiece;return(this._classNames=Sf(a,{theme:s,className:l,showAsSecondaryTitle:o}),r&&u&&d)?ts.createElement(wq.Consumer,null,function(t){var r=t.role,o=t.tabIndex;return ts.createElement("div",{className:e._classNames.root,ref:e._titleElement,title:n,tabIndex:o,role:r},u,"…",d)}):ts.createElement(wq.Consumer,null,function(t){var r=t.role,o=t.tabIndex;return ts.createElement("div",{className:e._classNames.root,ref:e._titleElement,title:n,tabIndex:o,role:r,style:e._needMeasurement?{whiteSpace:"nowrap"}:void 0},n)})},Object.defineProperty(t.prototype,"_needMeasurement",{get:function(){return!!this.props.shouldTruncate&&void 0===this._clientWidth},enumerable:!1,configurable:!0}),t.prototype._updateTruncation=function(){var e=this;this._timerId||(this._timerId=this._async.setTimeout(function(){delete e._timerId,e._clientWidth=void 0,e.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0})},250))},t.contextType=ic,t}(ts.Component),w2,void 0,{scope:"DocumentCardTitle"});var Sm=oI(),Sg=function(e){function t(t){var n=e.call(this,t)||this;return i2(n),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.logoIcon,n=e.styles,r=e.theme,o=e.className;return this._classNames=Sm(n,{theme:r,className:o}),ts.createElement("div",{className:this._classNames.root},ts.createElement(pf,{iconName:t}))},t}(ts.Component),Sv={root:"ms-DocumentCardLogo"};a1(Sg,function(e){var t=e.theme,n=e.className,r=t.palette,o=t.fonts;return{root:[l0(Sv,t).root,{fontSize:o.xxLargePlus.fontSize,color:r.themePrimary,display:"block",padding:"16px 16px 0 16px"},n]}},void 0,{scope:"DocumentCardLogo"});var Sy=oI(),Sb=function(e){function t(t){var n=e.call(this,t)||this;return i2(n),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.statusIcon,n=e.status,r=e.styles,o=e.theme,a=e.className,s={iconName:t,styles:{root:{padding:"8px"}}};return this._classNames=Sy(r,{theme:o,className:a}),ts.createElement("div",{className:this._classNames.root},t&&ts.createElement(pf,tf({},s)),n)},t}(ts.Component),Sx={root:"ms-DocumentCardStatus"};a1(Sb,function(e){var t=e.className,n=e.theme,r=n.palette,o=n.fonts;return{root:[l0(Sx,n).root,o.medium,{margin:"8px 16px",color:r.neutralPrimary,backgroundColor:r.neutralLighter,height:"32px"},t]}},void 0,{scope:"DocumentCardStatus"});var SC=function(){function e(){this._size=0}return e.prototype.updateOptions=function(e){for(var t=[],n=[],r=0,o=0;o<e.length;o++){var a=e[o],s=a.itemType,l=a.hidden;s===em.Divider||s===em.Header?(t.push(o),n.push(o)):l?n.push(o):r++}this._size=r,this._displayOnlyOptionsCache=t,this._notSelectableOptionsCache=n,this._cachedOptions=tg([],e,!0)},Object.defineProperty(e.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!1,configurable:!0}),e.prototype.positionInSet=function(e){if(void 0!==e){for(var t=0;e>this._notSelectableOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw Error("Unexpected: Option at index ".concat(e," is not a selectable element."));if(this._notSelectableOptionsCache[t]!==e)return e-t+1}},e}();!function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(eT||(eT={}));var Sk=oI(),Sw="Panel";!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(eD||(eD={}));var SS=function(e){function t(t){var n=e.call(this,t)||this;n._panel=ts.createRef(),n._animationCallback=null,n._hasCustomNavigation=!!(n.props.onRenderNavigation||n.props.onRenderNavigationContent),n.dismiss=function(e){n.props.onDismiss&&n.isActive&&n.props.onDismiss(e),e&&(!e||e.defaultPrevented)||n.close()},n._allowScrollOnPanel=function(e){e?n._allowTouchBodyScroll?rk(e,n._events):rC(e,n._events):n._events.off(n._scrollableContent),n._scrollableContent=e},n._onRenderNavigation=function(e){if(!n.props.onRenderNavigationContent&&!n.props.onRenderNavigation&&!n.props.hasCloseButton)return null;var t=n.props.onRenderNavigationContent,r=void 0===t?n._onRenderNavigationContent:t;return ts.createElement("div",{className:n._classNames.navigation},r(e,n._onRenderNavigationContent))},n._onRenderNavigationContent=function(e){var t,r=e.closeButtonAriaLabel,o=e.hasCloseButton,a=e.onRenderHeader,s=void 0===a?n._onRenderHeader:a;if(o){var l=null==(t=n._classNames.subComponentStyles)?void 0:t.closeButton();return ts.createElement(ts.Fragment,null,!n._hasCustomNavigation&&s(n.props,n._onRenderHeader,n._headerTextId),ts.createElement(mn,{styles:l,className:n._classNames.closeButton,onClick:n._onPanelClick,ariaLabel:r,title:r,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},n._onRenderHeader=function(e,t,r){var o=e.headerText,a=e.headerTextProps,s=void 0===a?{}:a;return o?ts.createElement("div",{className:n._classNames.header},ts.createElement("div",tf({id:r,role:"heading","aria-level":1},s,{className:oG(n._classNames.headerText,s.className)}),o)):null},n._onRenderBody=function(e){return ts.createElement("div",{className:n._classNames.content},e.children)},n._onRenderFooter=function(e){var t=n.props.onRenderFooterContent,r=void 0===t?null:t;return r?ts.createElement("div",{className:n._classNames.footer},ts.createElement("div",{className:n._classNames.footerInner},r())):null},n._animateTo=function(e){e===eD.open&&n.props.onOpen&&n.props.onOpen(),n._animationCallback=n._async.setTimeout(function(){n.setState({visibility:e}),n._onTransitionComplete(e)},200)},n._clearExistingAnimationTimer=function(){null!==n._animationCallback&&n._async.clearTimeout(n._animationCallback)},n._onPanelClick=function(e){n.dismiss(e)},n._onTransitionComplete=function(e){n._updateFooterPosition(),e===eD.open&&n.props.onOpened&&n.props.onOpened(),e===eD.closed&&n.props.onDismissed&&n.props.onDismissed()};var r=n.props.allowTouchBodyScroll;return n._allowTouchBodyScroll=void 0!==r&&r,i2(n),rF(Sw,t,{ignoreExternalFocusing:"focusTrapZoneProps",forceFocusInsideTrap:"focusTrapZoneProps",firstFocusableSelector:"focusTrapZoneProps"}),n.state={isFooterSticky:!1,visibility:eD.closed,id:iw("Panel")},n}return tp(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:e.isOpen&&(t.visibility===eD.closed||t.visibility===eD.animatingClosed)?{visibility:eD.animatingOpen}:e.isOpen||t.visibility!==eD.open&&t.visibility!==eD.animatingOpen?null:{visibility:eD.animatingClosed}},t.prototype.componentDidMount=function(){this._async=new nF(this),this._events=new rv(this);var e=u7(this.context),t=u9(this.context);this._events.on(e,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(null==t?void 0:t.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:eD.animatingOpen})},t.prototype.componentDidUpdate=function(e,t){var n=this._shouldListenForOuterClick(this.props),r=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===eD.animatingOpen?this._animateTo(eD.open):this.state.visibility===eD.animatingClosed&&this._animateTo(eD.closed));var o=u9(this.context);n&&!r?this._events.on(null==o?void 0:o.body,"mousedown",this._dismissOnOuterClick,!0):!n&&r&&this._events.off(null==o?void 0:o.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e,t=this.props,n=t.className,r=void 0===n?"":n,o=t.elementToFocusOnDismiss,a=t.firstFocusableSelector,s=t.focusTrapZoneProps,l=t.forceFocusInsideTrap,c=t.hasCloseButton,u=t.headerText,d=t.headerClassName,p=void 0===d?"":d,f=t.ignoreExternalFocusing,h=t.isBlocking,m=t.isFooterAtBottom,g=t.isLightDismiss,v=t.isHiddenOnDismiss,y=t.layerProps,b=t.overlayProps,x=t.popupProps,C=t.type,k=t.styles,w=t.theme,S=t.customWidth,_=t.onLightDismissClick,E=void 0===_?this._onPanelClick:_,P=t.onRenderNavigation,I=void 0===P?this._onRenderNavigation:P,T=t.onRenderHeader,D=void 0===T?this._onRenderHeader:T,A=t.onRenderBody,R=void 0===A?this._onRenderBody:A,N=t.onRenderFooter,B=void 0===N?this._onRenderFooter:N,M=this.state,F=M.isFooterSticky,O=M.visibility,L=M.id,H=C===eT.smallFixedNear||C===eT.customNear,z=ox(w)?H:!H,V=C===eT.custom||C===eT.customNear?{width:S}:{},U=i$(this.props,iY),j=this.isActive,W=O===eD.animatingClosed||O===eD.animatingOpen;if(this._headerTextId=u&&L+"-headerText",!j&&!W&&!v)return null;this._classNames=Sk(k,{theme:w,className:r,focusTrapZoneClassName:s?s.className:void 0,hasCloseButton:c,headerClassName:p,isAnimating:W,isFooterSticky:F,isFooterAtBottom:m,isOnRightSide:z,isOpen:j,isHiddenOnDismiss:v,type:C,hasCustomNavigation:this._hasCustomNavigation});var q=this,G=q._classNames,K=q._allowTouchBodyScroll;return h&&j&&(e=ts.createElement(wm,tf({className:G.overlay,isDarkThemed:!1,onClick:g?E:void 0,allowTouchBodyScroll:K},b))),ts.createElement(dY,tf({},y),ts.createElement(u3,tf({role:"dialog","aria-modal":h?"true":void 0,ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:G.hiddenPanel,enableAriaHiddenSiblings:!!j},x),ts.createElement("div",tf({"aria-hidden":!j&&W},U,{ref:this._panel,className:G.root}),e,ts.createElement(d0,tf({ignoreExternalFocusing:f,forceFocusInsideTrap:!!h&&(!v||!!j)&&l,firstFocusableSelector:a,isClickableOutsideFocusTrap:!0},s,{className:G.main,style:V,elementToFocusOnDismiss:o}),ts.createElement("div",{className:G.contentInner},ts.createElement("div",{ref:this._allowScrollOnPanel,className:G.scrollableContent,"data-is-scrollable":!0},ts.createElement("div",{className:G.commands,"data-is-visible":!0},I(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!c)&&D(this.props,this._onRenderHeader,this._headerTextId),R(this.props,this._onRenderBody),B(this.props,this._onRenderFooter)))))))},t.prototype.open=function(){void 0!==this.props.isOpen||this.isActive||this.setState({visibility:eD.animatingOpen})},t.prototype.close=function(){void 0!==this.props.isOpen||this.isActive&&this.setState({visibility:eD.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===eD.open||this.state.visibility===eD.animatingOpen},enumerable:!1,configurable:!0}),t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,n=e.scrollHeight;this.setState({isFooterSticky:t<n})}},t.prototype._dismissOnOuterClick=function(e){var t=this._panel.current;this.isActive&&t&&!e.defaultPrevented&&!nz(t,e.target)&&(this.props.onOuterClick?this.props.onOuterClick(e):this.dismiss(e))},t.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:eT.smallFixedFar},t.contextType=ic,t}(ts.Component),S_={root:"ms-Panel",main:"ms-Panel-main",commands:"ms-Panel-commands",contentInner:"ms-Panel-contentInner",scrollableContent:"ms-Panel-scrollableContent",navigation:"ms-Panel-navigation",closeButton:"ms-Panel-closeButton ms-PanelAction-close",header:"ms-Panel-header",headerText:"ms-Panel-headerText",content:"ms-Panel-content",footer:"ms-Panel-footer",footerInner:"ms-Panel-footerInner",isOpen:"is-open",hasCloseButton:"ms-Panel--hasCloseButton",smallFluid:"ms-Panel--smFluid",smallFixedNear:"ms-Panel--smLeft",smallFixedFar:"ms-Panel--sm",medium:"ms-Panel--md",large:"ms-Panel--lg",largeFixed:"ms-Panel--fixed",extraLarge:"ms-Panel--xl",custom:"ms-Panel--custom",customNear:"ms-Panel--customLeft"},SE="100%",SP="auto",SI=272,ST=340,SD=592,SA=644,SR=940,SN="auto",SB=0,SM=48,SF=428,SO=176,SL=((eA={})["@media (min-width: ".concat(lI,"px)")]={width:ST},eA),SH=((eR={})["@media (min-width: ".concat(lT,"px)")]={width:SD},eR["@media (min-width: ".concat(lD,"px)")]={width:SA},eR),Sz=((eN={})["@media (min-width: ".concat(lB,"px)")]={left:SM,width:SP},eN["@media (min-width: ".concat(lA,"px)")]={left:SF},eN),SV=((eB={})["@media (min-width: ".concat(lA,"px)")]={left:SN,width:SR},eB),SU=((eM={})["@media (min-width: ".concat(lA,"px)")]={left:SO},eM),Sj=function(e){var t;switch(e){case eT.smallFixedFar:t=tf({},SL);break;case eT.medium:t=tf(tf({},SL),SH);break;case eT.large:t=tf(tf(tf({},SL),SH),Sz);break;case eT.largeFixed:t=tf(tf(tf(tf({},SL),SH),Sz),SV);break;case eT.extraLarge:t=tf(tf(tf(tf({},SL),SH),Sz),SU)}return t},SW="44px",Sq={paddingLeft:"24px",paddingRight:"24px"},SG=a1(SS,function(e){var t,n,r,o,a=e.className,s=e.focusTrapZoneClassName,l=e.hasCloseButton,c=e.headerClassName,u=e.isAnimating,d=e.isFooterSticky,p=e.isFooterAtBottom,f=e.isOnRightSide,h=e.isOpen,m=e.isHiddenOnDismiss,g=e.hasCustomNavigation,v=e.theme,y=e.type,b=void 0===y?eT.smallFixedFar:y,x=v.effects,C=v.fonts,k=v.semanticColors,w=l0(S_,v),S=b===eT.custom||b===eT.customNear;return{root:[w.root,v.fonts.medium,h&&w.isOpen,l&&w.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},S&&f&&w.custom,S&&!f&&w.customNear,a],overlay:[{pointerEvents:"auto",cursor:"pointer"},h&&u&&ck.fadeIn100,!h&&u&&ck.fadeOut100],hiddenPanel:[!h&&!u&&m&&{visibility:"hidden"}],main:[w.main,{backgroundColor:k.bodyBackground,boxShadow:x.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:SN,right:SB,width:SE,selectors:tf(((t={})[l_]={borderLeft:"3px solid ".concat(k.variantBorder),borderRight:"3px solid ".concat(k.variantBorder)},t),Sj(b))},b===eT.smallFluid&&{left:SB},b===eT.smallFixedNear&&{left:SB,right:SN,width:SI},b===eT.customNear&&{right:"auto",left:0},S&&{maxWidth:"100vw"},h&&u&&!f&&ck.slideRightIn40,h&&u&&f&&ck.slideLeftIn40,!h&&u&&!f&&ck.slideLeftOut40,!h&&u&&f&&ck.slideRightOut40,s],commands:[w.commands,{backgroundColor:k.bodyBackground,paddingTop:18,selectors:((n={})["@media (min-height: ".concat(lI,"px)")]={position:"sticky",top:0,zIndex:1},n)},g&&{paddingTop:"inherit"}],navigation:[w.navigation,{display:"flex",justifyContent:"flex-end"},g&&{height:SW}],contentInner:[w.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[w.header,Sq,{alignSelf:"flex-start"},l&&!g&&{flexGrow:1},g&&{flexShrink:0}],headerText:[w.headerText,C.xLarge,{color:k.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},c],scrollableContent:[w.scrollableContent,{overflowY:"auto"},p&&{flexGrow:1,display:"inherit",flexDirection:"inherit"}],content:[w.content,Sq,{paddingBottom:20},p&&{selectors:((r={})["@media (min-height: ".concat(lI,"px)")]={flexGrow:1},r)}],footer:[w.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity ".concat(la," ").concat(lr),selectors:((o={})["@media (min-height: ".concat(lI,"px)")]={position:"sticky",bottom:0},o)},d&&{backgroundColor:k.bodyBackground,borderTopColor:k.variantBorder}],footerInner:[w.footerInner,Sq,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[w.closeButton,{marginRight:14,color:v.palette.neutralSecondary,fontSize:I.large},g&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:v.palette.neutralPrimary}}}}},void 0,{scope:"Panel"}),SK="Dropdown",SX=oI(),SY={options:[]};function S$(e){var t,n=e.defaultSelectedKeys,r=e.selectedKeys,o=e.defaultSelectedKey,a=e.selectedKey,s=e.options,l=e.multiSelect,c=uX(s),u=ts.useState([]),d=u[0],p=u[1],f=s!==c,h=uX(t=l?f&&void 0!==n?n:r:f&&void 0!==o?o:a);return ts.useEffect(function(){var e=function(){if(void 0===t){if(l)return n();var e=r(null);return -1!==e?[e]:[]}if(!Array.isArray(t)){var e=r(t);return -1!==e?[e]:[]}for(var o=[],a=0,s=t;a<s.length;a++){var e=r(s[a]);-1!==e&&o.push(e)}return o},n=function(){return s.map(function(e,t){return e.selected?t:-1}).filter(function(e){return -1!==e})},r=function(e){return op(s,function(t){return null!=e?t.key===e:!!t.selected||!!t.isSelected})};(void 0!==t||!c)&&(t!==h||f)&&p(e())},[f,l,c,h,s,t]),[d,p]}var SQ=ts.forwardRef(function(e,t){var n=a4(SY,e),r=ts.useRef(null),o=uG(t,r),a=hu(r,n.responsiveMode),s=S$(n),l=s[0],c=s[1];return ts.createElement(SJ,tf({},n,{responsiveMode:a,hoisted:{rootRef:o,selectedIndices:l,setSelectedIndices:c}}))});SQ.displayName="DropdownBase";var SJ=function(e){function t(t){var n=e.call(this,t)||this;n._host=ts.createRef(),n._focusZone=ts.createRef(),n._dropDown=ts.createRef(),n._scrollIdleDelay=250,n._sizePosCache=new SC,n._requestAnimationFrame=aU(n),n.dismissMenu=function(){n.state.isOpen&&n.setState({isOpen:!1})},n._onChange=function(e,t,r,o,a){var s=n.props,l=s.onChange,c=s.onChanged;if(l||c){var u=a?tf(tf({},t[r]),{selected:!o}):t[r];l&&l(tf(tf({},e),{target:n._dropDown.current}),u,r),c&&c(u,r)}},n._getPlaceholder=function(){return n.props.placeholder||n.props.placeHolder},n._getTitle=function(e,t){var r=n.props.multiSelectDelimiter,o=void 0===r?", ":r;return e.map(function(e){return e.text}).join(o)},n._onRenderTitle=function(e){return ts.createElement(ts.Fragment,null,n._getTitle(e))},n._onRenderPlaceholder=function(e){return n._getPlaceholder()?ts.createElement(ts.Fragment,null,n._getPlaceholder()):null},n._onRenderContainer=function(e){var t=e.calloutProps,r=e.panelProps,o=n.props,a=o.responsiveMode,s=o.dropdownWidth,l=a<=J.medium,c={firstFocusableTarget:"#".concat(n._listId,"1")},u=n._classNames.subComponentStyles?n._classNames.subComponentStyles.panel:void 0,d=void 0,p=void 0;return"auto"===s?p=n._dropDown.current?n._dropDown.current.clientWidth:0:d=s||(n._dropDown.current?n._dropDown.current.clientWidth:0),l?ts.createElement(SG,tf({closeButtonAriaLabel:"Close",focusTrapZoneProps:c,hasCloseButton:!0,isOpen:!0,isLightDismiss:!0,onDismiss:n._onDismiss,styles:u},r),n._renderFocusableList(e)):ts.createElement(d$,tf({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:cV,calloutWidth:d,calloutMinWidth:p},t,{className:n._classNames.callout,target:n._dropDown.current,onDismiss:n._onDismiss,onScroll:n._onScroll,onPositioned:n._onPositioned}),n._renderFocusableList(e))},n._onRenderCaretDown=function(e){return ts.createElement(pf,{className:n._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},n._onRenderList=function(e){var t=e.onRenderItem,r=void 0===t?n._onRenderItem:t,o={items:[]},a=[],s=function(){var e=o.id?[ts.createElement("div",{role:"group",key:o.id,"aria-labelledby":o.id},o.items)]:o.items;a=tg(tg([],a,!0),e,!0),o={items:[]}},l=function(e,t){switch(e.itemType){case em.Header:o.items.length>0&&s();var a=n._id+e.key;o.items.push(r(tf(tf({id:a},e),{index:t}),n._onRenderItem)),o.id=a;break;case em.Divider:t>0&&o.items.push(r(tf(tf({},e),{index:t}),n._onRenderItem)),o.items.length>0&&s();break;default:o.items.push(r(tf(tf({},e),{index:t}),n._onRenderItem))}};return e.options.forEach(function(e,t){l(e,t)}),o.items.length>0&&s(),ts.createElement(ts.Fragment,null,a)},n._onRenderItem=function(e){switch(e.itemType){case em.Divider:return n._renderSeparator(e);case em.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._renderOption=function(e){var t,r=n.props,o=r.onRenderOption,a=void 0===o?n._onRenderOption:o,s=r.hoisted.selectedIndices,l=void 0===s?[]:s,c=void 0!==e.index&&!!l&&l.indexOf(e.index)>-1,u=e.hidden?n._classNames.dropdownItemHidden:c&&!0===e.disabled?n._classNames.dropdownItemSelectedAndDisabled:c?n._classNames.dropdownItemSelected:!0===e.disabled?n._classNames.dropdownItemDisabled:n._classNames.dropdownItem,d=e.title,p=n._listId+e.index,f=null!=(t=e.id)?t:p+"-label",h=n._classNames.subComponentStyles?n._classNames.subComponentStyles.multiSelectItem:void 0;return n.props.multiSelect?ts.createElement(vE,{id:p,key:e.key,disabled:e.disabled,onChange:n._onItemClick(e),inputProps:tf({"aria-selected":c,onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option"},{"data-index":e.index,"data-is-focusable":!(e.disabled||e.hidden)}),label:e.text,title:d,onRenderLabel:n._onRenderItemLabel.bind(n,tf(tf({},e),{id:f})),className:oG(u,"is-multi-select"),checked:c,styles:h,ariaPositionInSet:e.hidden?void 0:n._sizePosCache.positionInSet(e.index),ariaSetSize:e.hidden?void 0:n._sizePosCache.optionSetSize,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabel?void 0:f}):ts.createElement(ma,{id:p,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:u,onClick:n._onItemClick(e),onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option","aria-selected":c?"true":"false",ariaLabel:e.ariaLabel,title:d,"aria-posinset":n._sizePosCache.positionInSet(e.index),"aria-setsize":n._sizePosCache.optionSetSize},a(e,n._onRenderOption))},n._onRenderOption=function(e){return ts.createElement("span",{className:n._classNames.dropdownOptionText},e.text)},n._onRenderMultiselectOption=function(e){return ts.createElement("span",{id:e.id,"aria-hidden":"true",className:n._classNames.dropdownOptionText},e.text)},n._onRenderItemLabel=function(e){var t=n.props.onRenderOption;return(void 0===t?n._onRenderMultiselectOption:t)(e,n._onRenderMultiselectOption)},n._onPositioned=function(e){n._focusZone.current&&n._requestAnimationFrame(function(){var e=n.props.hoisted.selectedIndices;if(n._focusZone.current)if(!n._hasBeenPositioned&&e&&e[0]&&!n.props.options[e[0]].disabled){var t=n$().getElementById("".concat(n._id,"-list").concat(e[0]));t&&n._focusZone.current.focusElement(t),n._hasBeenPositioned=!0}else n._focusZone.current.focus()}),n.state.calloutRenderEdge&&n.state.calloutRenderEdge===e.targetEdge||n.setState({calloutRenderEdge:e.targetEdge})},n._onItemClick=function(e){return function(t){!e.disabled&&(n.setSelectedIndex(t,e.index),n.props.multiSelect||n.setState({isOpen:!1}))}},n._onScroll=function(){var e=u7(n.context);n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(e.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=e.setTimeout(function(){n._isScrollIdle=!0},n._scrollIdleDelay)},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&n._host.current)if(n._host.current.setActive)try{n._host.current.setActive()}catch(e){}else n._host.current.focus()},n._onDismiss=function(){n.setState({isOpen:!1})},n._onDropdownBlur=function(e){n._isDisabled()||!n.state.isOpen&&(n.setState({hasFocus:!1}),n.props.onBlur&&n.props.onBlur(e))},n._onDropdownKeyDown=function(e){var t;if(!n._isDisabled()){if(n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e),n.props.onKeyDown&&(n.props.onKeyDown(e),e.defaultPrevented))return;var r=n.props.hoisted.selectedIndices.length?n.props.hoisted.selectedIndices[0]:-1,o=e.altKey||e.metaKey,a=n.state.isOpen;switch(e.which){case rQ:n.setState({isOpen:!a});break;case r1:if(!a)return;n.setState({isOpen:!1});break;case r9:if(o){if(a){n.setState({isOpen:!1});break}return}n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,-1,r-1,r));break;case oe:o&&(e.stopPropagation(),e.preventDefault()),o&&!a||n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,1,r+1,r));break;case r6:n.props.multiSelect||(t=n._moveIndex(e,1,0,r));break;case r3:n.props.multiSelect||(t=n._moveIndex(e,-1,n.props.options.length-1,r));break;case r2:break;default:return}t!==r&&(e.stopPropagation(),e.preventDefault())}},n._onDropdownKeyUp=function(e){if(!n._isDisabled()){var t=n._shouldHandleKeyUp(e),r=n.state.isOpen;if(!n.props.onKeyUp||(n.props.onKeyUp(e),!e.defaultPrevented)){if(e.which===r2)n.setState({isOpen:!r});else{t&&r&&n.setState({isOpen:!1});return}e.stopPropagation(),e.preventDefault()}}},n._onZoneKeyDown=function(e){n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var t,r,o,a=e.altKey||e.metaKey;switch(e.which){case r9:a?n.setState({isOpen:!1}):n._host.current&&(o=n2(n._host.current,n._host.current.lastChild,!0));break;case r6:case r3:case r5:case r4:break;case oe:!a&&n._host.current&&(o=n1(n._host.current,n._host.current.firstChild,!0));break;case r1:n.setState({isOpen:!1});break;case r$:n.setState({isOpen:!1});var s=n$();s&&(e.shiftKey?null==(t=n6(s.body,n._dropDown.current,!1,!1,!0,!0))||t.focus():null==(r=n8(s.body,n._dropDown.current,!1,!1,!0,!0))||r.focus());break;default:return}o&&o.focus(),e.stopPropagation(),e.preventDefault()},n._onZoneKeyUp=function(e){n._shouldHandleKeyUp(e)&&n.state.isOpen&&(n.setState({isOpen:!1}),e.preventDefault())},n._onDropdownClick=function(e){if(!n.props.onClick||(n.props.onClick(e),!e.defaultPrevented)){var t=n.state.isOpen;n._isDisabled()||n._shouldOpenOnFocus()||n.setState({isOpen:!t}),n._isFocusedByClick=!1}},n._onDropdownMouseDown=function(){n._isFocusedByClick=!0},n._onFocus=function(e){if(!n._isDisabled()){n.props.onFocus&&n.props.onFocus(e);var t={hasFocus:!0};n._shouldOpenOnFocus()&&(t.isOpen=!0),n.setState(t)}},n._isDisabled=function(){var e=n.props.disabled,t=n.props.isDisabled;return void 0===e&&(e=t),e},n._onRenderLabel=function(e){var t=e.label,r=e.required,o=e.disabled,a=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?ts.createElement(vI,{className:n._classNames.label,id:n._labelId,required:r,styles:a,disabled:o},t):null},i2(n);var r=t.multiSelect,o=t.selectedKey,a=t.selectedKeys,s=t.defaultSelectedKey,l=t.defaultSelectedKeys,c=t.options;if(rF(SK,t,{isDisabled:"disabled",onChanged:"onChange",placeHolder:"placeholder",onRenderPlaceHolder:"onRenderPlaceholder"}),rM(SK,t,{defaultSelectedKey:"selectedKey",defaultSelectedKeys:"selectedKeys",selectedKeys:"selectedKey"}),r){var u=function(e){return rN("Dropdown property '".concat(e,"' cannot be used when 'multiSelect' is true. Use '").concat(e,"s' instead."))};void 0!==o&&u("selectedKey"),void 0!==s&&u("defaultSelectedKey")}else{var d=function(e){return rN("Dropdown property '".concat(e,"s' cannot be used when 'multiSelect' is false/unset. Use '").concat(e,"' instead."))};void 0!==a&&d("selectedKey"),void 0!==l&&d("defaultSelectedKey")}return n._id=t.id||iw("Dropdown"),n._labelId=n._id+"-label",n._listId=n._id+"-list",n._optionId=n._id+"-option",n._isScrollIdle=!0,n._hasBeenPositioned=!1,n._sizePosCache.updateOptions(c),n.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},n}return tp(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props;return xi(e.options,e.hoisted.selectedIndices)},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._hasBeenPositioned=!1,this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this._id,t=this.props,n=t.className,r=t.label,o=t.options,a=t.ariaLabel,s=t.required,l=t.errorMessage,c=t.styles,u=t.theme,d=t.panelProps,p=t.calloutProps,f=t.onRenderTitle,h=void 0===f?this._getTitle:f,m=t.onRenderContainer,g=void 0===m?this._onRenderContainer:m,v=t.onRenderCaretDown,y=void 0===v?this._onRenderCaretDown:v,b=t.onRenderLabel,x=void 0===b?this._onRenderLabel:b,C=t.onRenderItem,k=void 0===C?this._onRenderItem:C,w=t.hoisted.selectedIndices,S=this.state,_=S.isOpen,E=S.calloutRenderEdge,P=S.hasFocus,I=t.onRenderPlaceholder||t.onRenderPlaceHolder||this._getPlaceholder;o!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(o);var T=xi(o,w),D=i$(t,iY),A=this._isDisabled(),R=e+"-errorMessage";this._classNames=SX(c,{theme:u,className:n,hasError:!!(l&&l.length>0),hasLabel:!!r,isOpen:_,required:s,disabled:A,isRenderingPlaceholder:!T.length,panelClassName:d?d.className:void 0,calloutClassName:p?p.className:void 0,calloutRenderEdge:E});var N=!!l&&l.length>0;return ts.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":_?this._listId:void 0},x(this.props,this._onRenderLabel),ts.createElement("div",tf({"data-is-focusable":!A,"data-ktp-target":!0,ref:this._dropDown,id:e,tabIndex:A?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":_?"true":"false","aria-label":a,"aria-labelledby":r&&!a?od(this._labelId,this._optionId):void 0,"aria-describedby":N?this._id+"-errorMessage":void 0,"aria-required":s,"aria-disabled":A,"aria-controls":_?this._listId:void 0},D,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),ts.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":P?"polite":void 0,"aria-atomic":!!P||void 0,"aria-invalid":N},T.length?h(T,this._onRenderTitle):I(t,this._onRenderPlaceholder)),ts.createElement("span",{className:this._classNames.caretDownWrapper},y(t,this._onRenderCaretDown))),_&&g(tf(tf({},t),{onDismiss:this._onDismiss,onRenderItem:k}),this._onRenderContainer),N&&ts.createElement("div",{role:"alert",id:R,className:this._classNames.errorMessage},l))},t.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var n=this.props,r=n.options,o=n.selectedKey,a=n.selectedKeys,s=n.multiSelect,l=n.notifyOnReselect,c=n.hoisted.selectedIndices,u=void 0===c?[]:c,d=!!u&&u.indexOf(t)>-1,p=[];if(t=Math.max(0,Math.min(r.length-1,t)),void 0!==o||void 0!==a)return void this._onChange(e,r,t,d,s);if(s||l||t!==u[0]){if(s)if(p=u?this._copyArray(u):[],d){var f=p.indexOf(t);f>-1&&p.splice(f,1)}else p.push(t);else p=[t];e.persist(),this.props.hoisted.setSelectedIndices(p),this._onChange(e,r,t,d,s)}},t.prototype._copyArray=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o)}return t},t.prototype._moveIndex=function(e,t,n,r){var o=this.props.options;if(r===n||0===o.length)return r;n>=o.length?n=0:n<0&&(n=o.length-1);for(var a=0;o[n].itemType===em.Header||o[n].itemType===em.Divider||o[n].disabled;){if(a>=o.length)return r;n+t<0?n=o.length:n+t>=o.length&&(n=-1),n+=t,a++}return this.setSelectedIndex(e,n),n},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,n=void 0===t?this._onRenderList:t,r=e.label,o=e.ariaLabel,a=e.multiSelect;return ts.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},ts.createElement(fp,{ref:this._focusZone,direction:K.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":o,"aria-labelledby":r&&!o?this._labelId:void 0,"aria-multiselectable":a},n(e,this._onRenderList)))},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key,r=e.hidden?this._classNames.dropdownDividerHidden:this._classNames.dropdownDivider;return t>0?ts.createElement("div",{role:"presentation",key:n,className:r}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOption:t,r=e.key,o=e.id,a=e.hidden?this._classNames.dropdownItemHeaderHidden:this._classNames.dropdownItemHeader;return ts.createElement("div",{id:o,key:r,className:a},n(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){if(!this._shouldIgnoreMouseEvent()){var n=t.currentTarget;n.focus()}},t.prototype._onItemMouseMove=function(e,t){var n=u9(this.context),r=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&n.activeElement!==r&&r.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._isAltOrMeta=function(e){return e.which===r0||"Meta"===e.key},t.prototype._shouldHandleKeyUp=function(e){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!(aM()||aA())},t.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},t.defaultProps={options:[]},t.contextType=ic,t}(ts.Component),SZ={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},S0=32,S1=36,S2=((eF={})["".concat(l_,", ").concat(lE.replace("@media ",""))]=tf({},lF()),eF),S5={selectors:tf(((eO={})[l_]=((eL={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"})[".".concat(i7," &:focus:after")]={borderColor:"HighlightText"},eL),eO[".ms-Checkbox-checkbox"]=((eH={})[l_]={borderColor:"HighlightText"},eH),eO),S2)},S4={selectors:((ez={})[l_]={borderColor:"Highlight"},ez)},S3=lM(0,lI);a1(SQ,function(e){var t,n,r,o,a,s,l,c,u,d,p,f,h=e.theme,m=e.hasError,g=e.hasLabel,v=e.className,y=e.isOpen,b=e.disabled,x=e.required,C=e.isRenderingPlaceholder,k=e.panelClassName,w=e.calloutClassName,S=e.calloutRenderEdge;if(!h)throw Error("theme is undefined or null in base Dropdown getStyles function.");var _=l0(SZ,h),E=h.palette,I=h.semanticColors,T=h.effects,A=h.fonts,R={color:I.menuItemTextHovered},N={color:I.menuItemText},B={borderColor:I.errorText},M=[_.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:S1,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],F=[_.dropdownItemHeader,tf(tf({},A.medium),{fontWeight:P.semibold,color:I.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:S1,lineHeight:S1,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:((t={})[l_]=tf({color:"GrayText"},lF()),t)})],O=I.menuItemBackgroundPressed,L=function(e){var t,n;return void 0===e&&(e=!1),{selectors:((t={"&:hover":[{color:I.menuItemTextHovered,backgroundColor:e?O:I.menuItemBackgroundHovered},S5],"&.is-multi-select:hover":[{backgroundColor:e?O:"transparent"},S5],"&:active:hover":[{color:I.menuItemTextHovered,backgroundColor:e?I.menuItemBackgroundHovered:I.menuItemBackgroundPressed},S5]})[".".concat(i7," &:focus:after, :host(.").concat(i7,") &:focus:after")]=((n={left:0,top:0,bottom:0,right:0})[l_]={inset:"2px"},n),t[l_]={border:"none"},t)}},H=tg(tg([],M,!0),[{backgroundColor:O,color:I.menuItemTextHovered},L(!0),S5],!1),z=tg(tg([],M,!0),[{color:I.disabledText,cursor:"default",selectors:((n={})[l_]={color:"GrayText",border:"none"},n)}],!1),V=S===D.bottom?"".concat(T.roundedCorner2," ").concat(T.roundedCorner2," 0 0"):"0 0 ".concat(T.roundedCorner2," ").concat(T.roundedCorner2),U=S===D.bottom?"0 0 ".concat(T.roundedCorner2," ").concat(T.roundedCorner2):"".concat(T.roundedCorner2," ").concat(T.roundedCorner2," 0 0");return{root:[_.root,v],label:_.label,dropdown:[_.dropdown,cv,A.medium,{color:I.menuItemText,borderColor:I.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:((r={})["&:hover ."+_.title]=[!b&&R,{borderColor:y?E.neutralSecondary:E.neutralPrimary},S4],r["&:focus ."+_.title]=[!b&&R,{selectors:((o={})[l_]={color:"Highlight"},o)}],r["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:b?"none":"2px solid ".concat(E.themePrimary),borderRadius:"2px",selectors:((a={})[l_]={color:"Highlight"},a)}],r["&:active ."+_.title]=[!b&&R,{borderColor:E.themePrimary},S4],r["&:hover ."+_.caretDown]=!b&&N,r["&:focus ."+_.caretDown]=[!b&&N,{selectors:((s={})[l_]={color:"Highlight"},s)}],r["&:active ."+_.caretDown]=!b&&N,r["&:hover ."+_.titleIsPlaceHolder]=!b&&N,r["&:focus ."+_.titleIsPlaceHolder]=!b&&N,r["&:active ."+_.titleIsPlaceHolder]=!b&&N,r["&:hover ."+_.titleHasError]=B,r["&:active ."+_.titleHasError]=B,r)},y&&"is-open",b&&"is-disabled",x&&"is-required",x&&!g&&{selectors:((l={":before":{content:"'*'",color:I.errorText,position:"absolute",top:-5,right:-10}})[l_]={selectors:{":after":{right:-14}}},l)}],title:[_.title,cv,{backgroundColor:I.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:I.inputBorder,borderRadius:y?V:T.roundedCorner2,cursor:"pointer",display:"block",height:S0,lineHeight:S0-2,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},C&&[_.titleIsPlaceHolder,{color:I.inputPlaceholderText}],m&&[_.titleHasError,B],b&&{backgroundColor:I.disabledBackground,border:"none",color:I.disabledText,cursor:"default",selectors:((c={})[l_]=tf({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},lF()),c)}],caretDownWrapper:[_.caretDownWrapper,{height:S0,lineHeight:S0-2,paddingTop:1,position:"absolute",right:8,top:0},!b&&{cursor:"pointer"}],caretDown:[_.caretDown,{color:E.neutralSecondary,fontSize:A.small.fontSize,pointerEvents:"none"},b&&{color:I.disabledText,selectors:((u={})[l_]=tf({color:"GrayText"},lF()),u)}],errorMessage:tf(tf({color:I.errorText},h.fonts.small),{paddingTop:5}),callout:[_.callout,{boxShadow:T.elevation8,borderRadius:U,selectors:((d={})[".ms-Callout-main"]={borderRadius:U},d)},w],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[_.dropdownItems,{display:"block"}],dropdownItem:tg(tg([],M,!0),[L()],!1),dropdownItemSelected:H,dropdownItemDisabled:z,dropdownItemSelectedAndDisabled:[H,z,{backgroundColor:"transparent"}],dropdownItemHidden:tg(tg([],M,!0),[{display:"none"}],!1),dropdownDivider:[_.dropdownDivider,{height:1,backgroundColor:I.bodyDivider}],dropdownDividerHidden:[_.dropdownDivider,{display:"none"}],dropdownOptionText:[_.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:F,dropdownItemHeaderHidden:tg(tg([],F,!0),[{display:"none"}],!1),subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:((p={})[".".concat(i7," &:focus + label::before, :host(.").concat(i7,") &:focus + label::before")]={outlineOffset:"0px"},p)}},panel:{root:[k],main:{selectors:((f={})[S3]={width:272},f)},contentInner:{padding:"0 0 20px"}}}}},void 0,{scope:"Dropdown"}).displayName="Dropdown",l7([{rawString:".pickerText_9f838726{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;padding:1px;min-height:32px}.pickerText_9f838726:hover{border-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.pickerInput_9f838726{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;margin:1px}.pickerInput_9f838726::-ms-clear{display:none}"}]);var S6=Object.freeze({__proto__:null,pickerText:"pickerText_9f838726",pickerInput:"pickerInput_9f838726"}),S8=function(e){function t(t){var n=e.call(this,t)||this;return n.floatingPicker=ts.createRef(),n.selectedItemsList=ts.createRef(),n.root=ts.createRef(),n.input=ts.createRef(),n.onSelectionChange=function(){n.forceUpdate()},n.onInputChange=function(e,t){!t&&(n.setState({queryString:e}),n.floatingPicker.current&&n.floatingPicker.current.onQueryStringChanged(e))},n.onInputFocus=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e)},n.onInputClick=function(e){if(n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.floatingPicker.current&&n.inputElement){var t=""===n.inputElement.value||n.inputElement.value!==n.floatingPicker.current.inputText;n.floatingPicker.current.showPicker(t)}},n.onBackspace=function(e){e.which===rY&&n.selectedItemsList.current&&n.items.length&&(n.input.current&&!n.input.current.isValueSelected&&n.input.current.inputElement===e.currentTarget.ownerDocument.activeElement&&0===n.input.current.cursorLocation?(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeItemAt(n.items.length-1),n._onSelectedItemsChanged()):n.selectedItemsList.current.hasSelectedItems()&&(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeSelectedItems(),n._onSelectedItemsChanged()))},n.onCopy=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.onCopy(e)},n.onPaste=function(e){if(n.props.onPaste){var t=e.clipboardData.getData("Text");e.preventDefault(),n.props.onPaste(t)}},n._onSuggestionSelected=function(e){var t=n.props.currentRenderedQueryString,r=n.state.queryString;if(void 0===t||t===r){var o,a=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null===a)return;var s=a,l=a;l&&l.then?l.then(function(e){o=e,n._addProcessedItem(o)}):(o=s,n._addProcessedItem(o))}},n._onSelectedItemsChanged=function(){n.focus()},n._onSuggestionsShownOrHidden=function(){n.forceUpdate()},i2(n),n.selection=new aq({onSelectionChanged:function(){return n.onSelectionChange()}}),n.state={queryString:""},n}return tp(t,e),Object.defineProperty(t.prototype,"items",{get:function(){var e,t,n,r;return null!=(r=null!=(n=null!=(e=this.props.selectedItems)?e:null==(t=this.selectedItemsList.current)?void 0:t.items)?n:this.props.defaultSelectedItems)?r:null},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.clearInput=function(){this.input.current&&this.input.current.clear()},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input.current&&this.input.current.inputElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedItems",{get:function(){return this.selectedItemsList.current?this.selectedItemsList.current.highlightedItems():[]},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.className,n=e.inputProps,r=e.disabled,o=e.focusZoneProps,a=this.floatingPicker.current&&-1!==this.floatingPicker.current.currentSelectedSuggestionIndex?"sug-"+this.floatingPicker.current.currentSelectedSuggestionIndex:void 0,s=!!this.floatingPicker.current&&this.floatingPicker.current.isSuggestionsShown;return ts.createElement("div",{ref:this.root,className:oG("ms-BasePicker ms-BaseExtendedPicker",t||""),onKeyDown:this.onBackspace,onCopy:this.onCopy},ts.createElement(fp,tf({direction:K.bidirectional},o),ts.createElement(CC,{selection:this.selection,selectionMode:h.multiple},ts.createElement("div",{className:oG("ms-BasePicker-text",S6.pickerText),role:"list"},this.props.headerComponent,this.renderSelectedItemsList(),this.canAddItems()&&ts.createElement(p0,tf({},n,{className:oG("ms-BasePicker-input",S6.pickerInput),ref:this.input,onFocus:this.onInputFocus,onClick:this.onInputClick,onInputValueChange:this.onInputChange,"aria-activedescendant":a,"aria-owns":s?"suggestion-list":void 0,"aria-expanded":s,"aria-haspopup":"true",role:"combobox",disabled:r,onPaste:this.onPaste}))))),this.renderFloatingPicker())},Object.defineProperty(t.prototype,"floatingPickerProps",{get:function(){return this.props.floatingPickerProps},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemsListProps",{get:function(){return this.props.selectedItemsListProps},enumerable:!1,configurable:!0}),t.prototype.canAddItems=function(){var e=this.props.itemLimit;return void 0===e||this.items.length<e},t.prototype.renderFloatingPicker=function(){var e=this.props.onRenderFloatingPicker;return ts.createElement(e,tf({componentRef:this.floatingPicker,onChange:this._onSuggestionSelected,onSuggestionsHidden:this._onSuggestionsShownOrHidden,onSuggestionsShown:this._onSuggestionsShownOrHidden,inputElement:this.input.current?this.input.current.inputElement:void 0,selectedItems:this.items,suggestionItems:this.props.suggestionItems?this.props.suggestionItems:void 0},this.floatingPickerProps))},t.prototype.renderSelectedItemsList=function(){var e=this.props.onRenderSelectedItems;return ts.createElement(e,tf({componentRef:this.selectedItemsList,selection:this.selection,selectedItems:this.props.selectedItems?this.props.selectedItems:void 0,onItemsDeleted:this.props.selectedItems?this.props.onItemsRemoved:void 0},this.selectedItemsListProps))},t.prototype._addProcessedItem=function(e){this.props.onItemAdded&&this.props.onItemAdded(e),this.selectedItemsList.current&&this.selectedItemsList.current.addItems([e]),this.input.current&&this.input.current.clear(),this.floatingPicker.current&&this.floatingPicker.current.hidePicker(),this.focus()},t}(ts.Component);l7([{rawString:".resultContent_4cc31f3f{display:table-row}.resultContent_4cc31f3f .resultItem_4cc31f3f{display:table-cell;vertical-align:bottom}.peoplePickerPersona_4cc31f3f{width:180px}.peoplePickerPersona_4cc31f3f .ms-Persona-details{width:100%}.peoplePicker_4cc31f3f .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_4cc31f3f{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}"}]),function(e){tp(function t(){return null!==e&&e.apply(this,arguments)||this},e)}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t}(S8)),function(e){e[e.none=0]="none",e[e.descriptive=1]="descriptive",e[e.more=2]="more",e[e.downArrow=3]="downArrow"}(eV||(eV={}));var S9=oL(function(e,t,n){var r=h$(e),o=nx(r,n);return tf(tf({},o),{root:[r.root,t,e.fonts.medium,n&&n.root]})}),S7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=th(e,["className","styles"]),o=S9(this.props.theme,t,n);return ts.createElement(hK,tf({},r,{variantClassName:"ms-Button--facepile",styles:o,onRenderDescription:rH}))},t=tm([im("FacepileButton",["theme","styles"],!0)],t)}(ts.Component),_e=oI(),_t=function(e){function t(t){var n=e.call(this,t)||this;return n._classNames=_e(n.props.styles,{theme:n.props.theme,className:n.props.className}),n._getPersonaControl=function(e){var t=n.props,r=t.getPersonaProps,o=t.personaSize,a={details:{flex:"1 0 auto"}};return ts.createElement(pQ,tf({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:o},r?r(e):null,{styles:a}))},n._getPersonaCoinControl=function(e){var t=n.props,r=t.getPersonaProps,o=t.personaSize;return ts.createElement(pq,tf({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:o},r?r(e):null))},i2(n),n._ariaDescriptionId=iw(),n}return tp(t,e),t.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,n=t.chevronButtonProps,r=t.maxDisplayablePersonas,o=t.personas,a=t.overflowPersonas,s=t.showAddButton,l=t.ariaLabel,c=t.showTooltip,u=void 0===c||c,d=this._classNames,p="number"==typeof r?Math.min(o.length,r):o.length;n&&!e&&(e=n);var f=a&&a.length>0,h=f?o:o.slice(0,p),m=(f?a:o.slice(p))||[];return ts.createElement("div",{className:d.root},this.onRenderAriaDescription(),ts.createElement("div",{className:d.itemContainer},s?this._getAddNewElement():null,ts.createElement("ul",{className:d.members,"aria-label":l},this._onRenderVisiblePersonas(h,0===m.length&&1===o.length,u)),e?this._getOverflowElement(m):null))},t.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&ts.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t.prototype._onRenderVisiblePersonas=function(e,t,n){var r=this,o=this.props,a=o.onRenderPersona,s=void 0===a?this._getPersonaControl:a,l=o.onRenderPersonaCoin,c=void 0===l?this._getPersonaCoinControl:l,u=o.onRenderPersonaWrapper;return e.map(function(e,o){var a=t?s(e,r._getPersonaControl):c(e,r._getPersonaCoinControl),l=e.onClick?function(){return r._getElementWithOnClickEvent(a,e,n,o)}:function(){return r._getElementWithoutOnClickEvent(a,e,n,o)};return ts.createElement("li",{key:"".concat(t?"persona":"personaCoin","-").concat(o),className:r._classNames.member},u?u(e,l):l())})},t.prototype._getElementWithOnClickEvent=function(e,t,n,r){var o=t.keytipProps;return ts.createElement(S7,tf({},i$(t,iM),this._getElementProps(t,n,r),{keytipProps:o,onClick:this._onPersonaClick.bind(this,t)}),e)},t.prototype._getElementWithoutOnClickEvent=function(e,t,n,r){return ts.createElement("div",tf({},i$(t,iM),this._getElementProps(t,n,r)),e)},t.prototype._getElementProps=function(e,t,n){var r=this._classNames;return{key:(e.imageUrl?"i":"")+n,"data-is-focusable":!0,className:r.itemButton,title:t?e.personaName:void 0,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},t.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case eV.descriptive:return this._getDescriptiveOverflowElement(e);case eV.downArrow:return this._getIconElement("ChevronDown");case eV.more:return this._getIconElement("More");default:return null}},t.prototype._getDescriptiveOverflowElement=function(e){var t=this.props.personaSize;if(!e||e.length<1)return null;var n=e.map(function(e){return e.personaName}).join(", "),r=tf({title:n},this.props.overflowButtonProps),o=Math.max(e.length,0),a=this._classNames;return ts.createElement(S7,tf({},r,{ariaDescription:r.title,className:a.descriptiveOverflowButton}),ts.createElement(pq,{size:t,onRenderInitials:this._renderInitialsNotPictured(o),initialsColor:j.transparent}))},t.prototype._getIconElement=function(e){var t=this.props,n=t.overflowButtonProps,r=t.personaSize,o=!0,a=this._classNames;return ts.createElement(S7,tf({},n,{className:a.overflowButton}),ts.createElement(pq,{size:r,onRenderInitials:this._renderInitials(e,o),initialsColor:j.transparent}))},t.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,n=e.personaSize,r=this._classNames;return ts.createElement(S7,tf({},t,{className:r.addButton}),ts.createElement(pq,{size:n,onRenderInitials:this._renderInitials("AddFriend")}))},t.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},t.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},t.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},t.prototype._renderInitials=function(e,t){var n=this._classNames;return function(){return ts.createElement(pf,{iconName:e,className:t?n.overflowInitialsIcon:""})}},t.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return ts.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},t.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:V.size32},t}(ts.Component),_n={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"};a1(_t,function(e){var t,n=e.className,r=e.theme,o=e.spacingAroundItemButton,a=void 0===o?2:o,s=r.palette,l=r.fonts,c=l0(_n,r),u={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[c.root,r.fonts.medium,{width:"auto"},n],addButton:[c.addButton,lO(r,{inset:-1}),u,{fontSize:l.medium.fontSize,color:s.white,backgroundColor:s.themePrimary,marginRight:2*a+"px",selectors:{"&:hover":{backgroundColor:s.themeDark},"&:focus":{backgroundColor:s.themeDark},"&:active":{backgroundColor:s.themeDarker},"&:disabled":{backgroundColor:s.neutralTertiaryAlt}}}],descriptiveOverflowButton:[c.descriptiveOverflowButton,lO(r,{inset:-1}),u,{fontSize:l.small.fontSize,color:s.neutralSecondary,backgroundColor:s.neutralLighter,marginLeft:"".concat(2*a,"px")}],itemButton:[c.itemButton,u],itemContainer:[c.itemContainer,{display:"flex"}],members:[c.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-".concat(a,"px")}],member:[c.member,{display:"inline-flex",flex:"0 0 auto",margin:"".concat(a,"px")}],overflowButton:[c.overflowButton,lO(r,{inset:-1}),u,{fontSize:l.medium.fontSize,color:s.neutralSecondary,backgroundColor:s.neutralLighter,marginLeft:"".concat(2*a,"px")}],overflowInitialsIcon:[{color:s.neutralPrimary,selectors:((t={})[l_]={color:"WindowText"},t)}],screenReaderOnly:lV}},void 0,{scope:"Facepile"}),l7([{rawString:".callout_ad5629e1 .ms-Suggestions-itemButton{padding:0;border:none}.callout_ad5629e1 .ms-Suggestions{min-width:300px}"}]);var _r=Object.freeze({__proto__:null,callout:"callout_ad5629e1"});!function(e){e[e.none=0]="none",e[e.forceResolve=1]="forceResolve",e[e.searchMore=2]="searchMore"}(eU||(eU={})),l7([{rawString:".root_8c91000a{min-width:260px}.suggestionsItem_8c91000a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_8c91000a:hover{background:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:"}.suggestionsItem_8c91000a:hover .closeButton_8c91000a{display:block}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .closeButton_8c91000a:hover{background:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .itemButton_8c91000a{color:HighlightText}}.suggestionsItem_8c91000a .closeButton_8c91000a{display:none;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.suggestionsItem_8c91000a .closeButton_8c91000a:hover{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.actionButton_8c91000a{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_8c91000a{padding-left:8px}[dir=rtl] .actionButton_8c91000a{padding-right:8px}html[dir=ltr] .actionButton_8c91000a{text-align:left}html[dir=rtl] .actionButton_8c91000a{text-align:right}.actionButton_8c91000a:hover{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";cursor:pointer}.actionButton_8c91000a:active,.actionButton_8c91000a:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_8c91000a .ms-Button-icon{font-size:16px;width:25px}.actionButton_8c91000a .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_8c91000a .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_8c91000a{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.suggestionsTitle_8c91000a{padding:0 12px;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";font-size:12px;line-height:40px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsContainer_8c91000a{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsNone_8c91000a{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_8c91000a{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_8c91000a{padding-left:14px}html[dir=rtl] .suggestionsSpinner_8c91000a{padding-right:14px}html[dir=ltr] .suggestionsSpinner_8c91000a{text-align:left}html[dir=rtl] .suggestionsSpinner_8c91000a{text-align:right}.suggestionsSpinner_8c91000a .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_8c91000a .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_8c91000a .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_8c91000a.itemButton_8c91000a{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_8c91000a.itemButton_8c91000a{color:WindowText}}.itemButton_8c91000a.itemButton_8c91000a:hover{color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.closeButton_8c91000a.closeButton_8c91000a{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.closeButton_8c91000a.closeButton_8c91000a{color:WindowText}}.closeButton_8c91000a.closeButton_8c91000a:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:";color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.suggestionsAvailable_8c91000a{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var _o=Object.freeze({__proto__:null,root:"root_8c91000a",suggestionsItem:"suggestionsItem_8c91000a",closeButton:"closeButton_8c91000a",suggestionsItemIsSuggested:"suggestionsItemIsSuggested_8c91000a",itemButton:"itemButton_8c91000a",actionButton:"actionButton_8c91000a",buttonSelected:"buttonSelected_8c91000a",suggestionsTitle:"suggestionsTitle_8c91000a",suggestionsContainer:"suggestionsContainer_8c91000a",suggestionsNone:"suggestionsNone_8c91000a",suggestionsSpinner:"suggestionsSpinner_8c91000a",suggestionsAvailable:"suggestionsAvailable_8c91000a"}),_i=_o,_a=oI(),_s=function(e){function t(t){var n=e.call(this,t)||this;return i2(n),n}return tp(t,e),t.prototype.render=function(){var e,t=this.props,n=t.suggestionModel,r=t.RenderSuggestion,o=t.onClick,a=t.className,s=t.id,l=t.onRemoveItem,c=t.isSelectedOverride,u=t.removeButtonAriaLabel,d=t.styles,p=t.theme,f=t.removeButtonIconProps,h=d?_a(d,{theme:p,className:a,suggested:n.selected||c}):{root:oG("ms-Suggestions-item",_i.suggestionsItem,((e={})["is-suggested "+_i.suggestionsItemIsSuggested]=n.selected||c,e),a),itemButton:oG("ms-Suggestions-itemButton",_i.itemButton),closeButton:oG("ms-Suggestions-closeButton",_i.closeButton)};return ts.createElement("div",{className:h.root,role:"presentation"},ts.createElement(ma,{onClick:o,className:h.itemButton,id:s,"aria-selected":n.selected,role:"option","aria-label":n.ariaLabel},r(n.item,this.props)),this.props.showRemoveButton?ts.createElement(mn,{iconProps:null!=f?f:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},title:u,ariaLabel:u,onClick:l,className:h.closeButton}):null)},t}(ts.Component),_l={root:"ms-Suggestions-item",itemButton:"ms-Suggestions-itemButton",closeButton:"ms-Suggestions-closeButton",isSuggested:"is-suggested"};function _c(e){var t,n,r,o,a,s,l=e.className,c=e.theme,u=e.suggested,d=c.palette,p=c.semanticColors,f=l0(_l,c);return{root:[f.root,{display:"flex",alignItems:"stretch",boxSizing:"border-box",width:"100%",position:"relative",selectors:{"&:hover":{background:p.menuItemBackgroundHovered},"&:hover .ms-Suggestions-closeButton":{display:"block"}}},u&&{selectors:((t={})[".".concat(i7," &, :host(.").concat(i7,") &")]={selectors:((n={})[".".concat(f.closeButton)]={display:"block",background:p.menuItemBackgroundPressed},n)},t[":after"]={pointerEvents:"none",content:'""',position:"absolute",left:0,top:0,bottom:0,right:0,border:"1px solid ".concat(c.semanticColors.focusBorder)},t)},l],itemButton:[f.itemButton,{justifyContent:"flex-start",width:"100%",padding:0,border:"none",height:"100%",minWidth:0,overflow:"hidden",selectors:((r={})[l_]={color:"WindowText",selectors:{":hover":tf({background:"Highlight",color:"HighlightText"},lF())}},r[":hover"]={color:p.menuItemTextHovered},r)},u&&[f.isSuggested,{background:p.menuItemBackgroundPressed,selectors:((o={":hover":{background:p.menuDivider}})[l_]=tf({background:"Highlight",color:"HighlightText"},lF()),o)}]],closeButton:[f.closeButton,{display:"none",color:d.neutralSecondary,padding:"0 4px",height:"auto",width:32,selectors:((a={":hover, :active":{background:d.neutralTertiaryAlt,color:d.neutralDark}})[l_]={color:"WindowText"},a)},u&&((s={})[".".concat(i7," &, :host(.").concat(i7,") &")]={selectors:{":hover, :active":{background:d.neutralTertiary}}},s.selectors={":hover, :active":{background:d.neutralTertiary,color:d.neutralPrimary}},s)]}}var _u=_o,_d=oI(),_p=a1(_s,_c,void 0,{scope:"SuggestionItem"}),_f=function(e){function t(t){var n=e.call(this,t)||this;return n._forceResolveButton=ts.createRef(),n._searchForMoreButton=ts.createRef(),n._selectedElement=ts.createRef(),n._scrollContainer=ts.createRef(),n.tryHandleKeyDown=function(e,t){var r=!1,o=null,a=n.state.selectedActionType,s=n.props.suggestions.length;if(e===oe)switch(a){case eU.forceResolve:s>0?(n._refocusOnSuggestions(e),o=eU.none):o=n._searchForMoreButton.current?eU.searchMore:eU.forceResolve;break;case eU.searchMore:n._forceResolveButton.current?o=eU.forceResolve:s>0?(n._refocusOnSuggestions(e),o=eU.none):o=eU.searchMore;break;case eU.none:-1===t&&n._forceResolveButton.current&&(o=eU.forceResolve)}else if(e===r9)switch(a){case eU.forceResolve:n._searchForMoreButton.current?o=eU.searchMore:s>0&&(n._refocusOnSuggestions(e),o=eU.none);break;case eU.searchMore:s>0?(n._refocusOnSuggestions(e),o=eU.none):n._forceResolveButton.current&&(o=eU.forceResolve);break;case eU.none:-1===t&&n._searchForMoreButton.current&&(o=eU.searchMore)}return null!==o&&(n.setState({selectedActionType:o}),r=!0),r},n._getAlertText=function(){var e=n.props,t=e.isLoading,r=e.isSearching,o=e.suggestions,a=e.suggestionsAvailableAlertText,s=e.noResultsFoundText,l=e.isExtendedLoading,c=e.loadingText;if(t||r){if(t&&l)return c||""}else{if(o.length>0)return a||"";if(s)return s}return""},n._getMoreResults=function(){n.props.onGetMoreResults&&(n.props.onGetMoreResults(),n.setState({selectedActionType:eU.none}))},n._forceResolve=function(){n.props.createGenericItem&&n.props.createGenericItem()},n._shouldShowForceResolve=function(){return!!n.props.showForceResolve&&n.props.showForceResolve()},n._onClickTypedSuggestionsItem=function(e,t){return function(r){n.props.onSuggestionClick(r,e,t)}},n._refocusOnSuggestions=function(e){"function"==typeof n.props.refocusSuggestions&&n.props.refocusSuggestions(e)},n._onRemoveTypedSuggestionsItem=function(e,t){return function(r){(0,n.props.onSuggestionRemove)(r,e,t),r.stopPropagation()}},i2(n),n.state={selectedActionType:eU.none},n}return tp(t,e),t.prototype.componentDidMount=function(){this.scrollSelected(),this.activeSelectedElement=this._selectedElement?this._selectedElement.current:null},t.prototype.componentDidUpdate=function(){this._selectedElement.current&&this.activeSelectedElement!==this._selectedElement.current&&(this.scrollSelected(),this.activeSelectedElement=this._selectedElement.current)},t.prototype.render=function(){var e,t,n=this,r=this.props,o=r.forceResolveText,a=r.mostRecentlyUsedHeaderText,s=r.searchForMoreIcon,l=r.searchForMoreText,c=r.className,u=r.moreSuggestionsAvailable,d=r.noResultsFoundText,p=r.suggestions,f=r.isLoading,h=r.isSearching,m=r.loadingText,g=r.onRenderNoResultFound,v=r.searchingText,y=r.isMostRecentlyUsedVisible,b=r.resultsMaximumNumber,x=r.resultsFooterFull,C=r.resultsFooter,k=r.isResultsFooterVisible,w=void 0===k||k,S=r.suggestionsHeaderText,_=r.suggestionsClassName,E=r.theme,P=r.styles,I=r.suggestionsListId,T=r.suggestionsContainerAriaLabel;this._classNames=P?_d(P,{theme:E,className:c,suggestionsClassName:_,forceResolveButtonSelected:this.state.selectedActionType===eU.forceResolve,searchForMoreButtonSelected:this.state.selectedActionType===eU.searchMore}):{root:oG("ms-Suggestions",c,_u.root),title:oG("ms-Suggestions-title",_u.suggestionsTitle),searchForMoreButton:oG("ms-SearchMore-button",_u.actionButton,((e={})["is-selected "+_u.buttonSelected]=this.state.selectedActionType===eU.searchMore,e)),forceResolveButton:oG("ms-forceResolve-button",_u.actionButton,((t={})["is-selected "+_u.buttonSelected]=this.state.selectedActionType===eU.forceResolve,t)),suggestionsAvailable:oG("ms-Suggestions-suggestionsAvailable",_u.suggestionsAvailable),suggestionsContainer:oG("ms-Suggestions-container",_u.suggestionsContainer,_),noSuggestions:oG("ms-Suggestions-none",_u.suggestionsNone)};var D=this._classNames.subComponentStyles?this._classNames.subComponentStyles.spinner:void 0,A=P?{styles:D}:{className:oG("ms-Suggestions-spinner",_u.suggestionsSpinner)},R=function(){var e=function(){return ts.createElement("div",{className:n._classNames.noSuggestions},d)};return ts.createElement("div",{id:"sug-noResultsFound",role:"option"},g?g(void 0,e):e())},N=S;y&&a&&(N=a);var B=void 0;w&&(B=p.length>=b?x:C);var M=(!p||!p.length)&&!f,F=this.state.selectedActionType===eU.forceResolve?"sug-selectedAction":void 0,O=this.state.selectedActionType===eU.searchMore?"sug-selectedAction":void 0;return ts.createElement("div",{className:this._classNames.root,"aria-label":T||N,id:I,role:"listbox"},ts.createElement(p4,{message:this._getAlertText(),"aria-live":"polite"}),N?ts.createElement("div",{className:this._classNames.title},N):null,o&&this._shouldShowForceResolve()&&ts.createElement(ma,{componentRef:this._forceResolveButton,className:this._classNames.forceResolveButton,id:F,onClick:this._forceResolve,"data-automationid":"sug-forceResolve"},o),f&&ts.createElement(CQ,tf({},A,{ariaLabel:m,label:m})),M?R():this._renderSuggestions(),l&&u&&ts.createElement(ma,{componentRef:this._searchForMoreButton,className:this._classNames.searchForMoreButton,iconProps:s||{iconName:"Search"},id:O,onClick:this._getMoreResults,"data-automationid":"sug-searchForMore",role:"option"},l),h?ts.createElement(CQ,tf({},A,{ariaLabel:v,label:v})):null,!B||u||y||h?null:ts.createElement("div",{className:this._classNames.title},B(this.props)))},t.prototype.hasSuggestedAction=function(){return!!this._searchForMoreButton.current||!!this._forceResolveButton.current},t.prototype.hasSuggestedActionSelected=function(){return this.state.selectedActionType!==eU.none},t.prototype.executeSelectedAction=function(){switch(this.state.selectedActionType){case eU.forceResolve:this._forceResolve();break;case eU.searchMore:this._getMoreResults()}},t.prototype.focusAboveSuggestions=function(){this._forceResolveButton.current?this.setState({selectedActionType:eU.forceResolve}):this._searchForMoreButton.current&&this.setState({selectedActionType:eU.searchMore})},t.prototype.focusBelowSuggestions=function(){this._searchForMoreButton.current?this.setState({selectedActionType:eU.searchMore}):this._forceResolveButton.current&&this.setState({selectedActionType:eU.forceResolve})},t.prototype.focusSearchForMoreButton=function(){this._searchForMoreButton.current&&this._searchForMoreButton.current.focus()},t.prototype.scrollSelected=function(){if(this._selectedElement.current&&this._scrollContainer.current&&void 0!==this._scrollContainer.current.scrollTo){var e=this._selectedElement.current,t=e.offsetHeight,n=e.offsetTop,r=this._scrollContainer.current,o=r.offsetHeight,a=r.scrollTop,s=n<a,l=n+t>a+o;s?this._scrollContainer.current.scrollTo(0,n):l&&this._scrollContainer.current.scrollTo(0,n-o+t)}},t.prototype._renderSuggestions=function(){var e=this,t=this.props,n=t.onRenderSuggestion,r=t.removeSuggestionAriaLabel,o=t.suggestionsItemClassName,a=t.resultsMaximumNumber,s=t.showRemoveButtons,l=t.removeButtonIconProps,c=this.props.suggestions,u=_p,d=-1;return(c.some(function(e,t){return!!e.selected&&(d=t,!0)}),a&&(c=d>=a?c.slice(d-a+1,d+1):c.slice(0,a)),0===c.length)?null:ts.createElement("div",{className:this._classNames.suggestionsContainer,ref:this._scrollContainer,role:"presentation"},c.map(function(t,a){return ts.createElement("div",{ref:t.selected?e._selectedElement:void 0,key:t.item.key?t.item.key:a,role:"presentation"},ts.createElement(u,{suggestionModel:t,RenderSuggestion:n,onClick:e._onClickTypedSuggestionsItem(t.item,a),className:o,showRemoveButton:s,removeButtonAriaLabel:r,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,a),id:"sug-"+a,removeButtonIconProps:l}))}))},t}(ts.Component),_h={root:"ms-Suggestions",suggestionsContainer:"ms-Suggestions-container",title:"ms-Suggestions-title",forceResolveButton:"ms-forceResolve-button",searchForMoreButton:"ms-SearchMore-button",spinner:"ms-Suggestions-spinner",noSuggestions:"ms-Suggestions-none",suggestionsAvailable:"ms-Suggestions-suggestionsAvailable",isSelected:"is-selected"};function _m(e){var t,n=e.className,r=e.suggestionsClassName,o=e.theme,a=e.forceResolveButtonSelected,s=e.searchForMoreButtonSelected,l=o.palette,c=o.semanticColors,u=o.fonts,d=l0(_h,o),p={backgroundColor:"transparent",border:0,cursor:"pointer",margin:0,paddingLeft:8,position:"relative",borderTop:"1px solid ".concat(l.neutralLight),height:40,textAlign:"left",width:"100%",fontSize:u.small.fontSize,selectors:{":hover":{backgroundColor:c.menuItemBackgroundPressed,cursor:"pointer"},":focus, :active":{backgroundColor:l.themeLight},".ms-Button-icon":{fontSize:u.mediumPlus.fontSize,width:25},".ms-Button-label":{margin:"0 4px 0 9px"}}},f={backgroundColor:l.themeLight,selectors:((t={})[l_]=tf({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},lF()),t[":after"]={pointerEvents:"none",content:'""',position:"absolute",left:0,top:0,bottom:0,right:0,border:"1px solid ".concat(o.semanticColors.focusBorder)},t)};return{root:[d.root,{minWidth:260},n],suggestionsContainer:[d.suggestionsContainer,{overflowY:"auto",overflowX:"hidden",maxHeight:300,transform:"translate3d(0,0,0)"},r],title:[d.title,{padding:"0 12px",fontSize:u.small.fontSize,color:l.themePrimary,lineHeight:40,borderBottom:"1px solid ".concat(c.menuItemBackgroundPressed)}],forceResolveButton:[d.forceResolveButton,p,a&&[d.isSelected,f]],searchForMoreButton:[d.searchForMoreButton,p,s&&[d.isSelected,f]],noSuggestions:[d.noSuggestions,{textAlign:"center",color:l.neutralSecondary,fontSize:u.small.fontSize,lineHeight:30}],suggestionsAvailable:[d.suggestionsAvailable,lV],subComponentStyles:{spinner:{root:[d.spinner,{margin:"5px 0",paddingLeft:14,textAlign:"left",whiteSpace:"nowrap",lineHeight:20,fontSize:u.small.fontSize}],circle:{display:"inline-block",verticalAlign:"middle"},label:{display:"inline-block",verticalAlign:"middle",margin:"0 10px 0 16px"}}}}}var _g=function(){function e(){var e=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(t){return e._isSuggestionModel(t)?t:{item:t,selected:!1,ariaLabel:t.ariaLabel}},this.suggestions=[],this.currentIndex=-1}return e.prototype.updateSuggestions=function(e,t,n){if(e&&e.length>0){if(n&&e.length>n){var r=t&&t>n?t+1-n:0;e=e.slice(r,r+n-1)}this.suggestions=this.convertSuggestionsToSuggestionItems(e),this.currentIndex=t||0,-1===t?this.currentSuggestion=void 0:void 0!==t&&(this.suggestions[t].selected=!0,this.currentSuggestion=this.suggestions[t])}else this.suggestions=[],this.currentIndex=-1,this.currentSuggestion=void 0},e.prototype.nextSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex<this.suggestions.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;else if(this.currentIndex===this.suggestions.length-1)return this.setSelectedSuggestion(0),!0}return!1},e.prototype.previousSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;else if(0===this.currentIndex)return this.setSelectedSuggestion(this.suggestions.length-1),!0}return!1},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getCurrentItem=function(){return this.currentSuggestion},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.hasSelectedSuggestion=function(){return!!this.currentSuggestion},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.createGenericSuggestion=function(e){var t=this.convertSuggestionsToSuggestionItems([e])[0];this.currentSuggestion=t},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1)},e.prototype.setSelectedSuggestion=function(e){e>this.suggestions.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=this.suggestions[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1),this.suggestions[e].selected=!0,this.currentIndex=e,this.currentSuggestion=this.suggestions[e])},e}();!function(e){e[e.valid=0]="valid",e[e.warning=1]="warning",e[e.invalid=2]="invalid"}(ej||(ej={})),l7([{rawString:".picker_94f06b16{position:relative}.pickerText_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;min-height:30px}.pickerText_94f06b16:hover{border-color:"},{theme:"inputBorderHovered",defaultValue:"#323130"},{rawString:"}.pickerText_94f06b16.inputFocused_94f06b16{position:relative;border-color:"},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:'}.pickerText_94f06b16.inputFocused_94f06b16:after{pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid '},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:'}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.pickerText_94f06b16.inputDisabled_94f06b16{position:relative;border-color:GrayText}.pickerText_94f06b16.inputDisabled_94f06b16:after{pointer-events:none;content:"";position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_94f06b16{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_94f06b16{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}'}]);var _v=Object.freeze({__proto__:null,picker:"picker_94f06b16",pickerText:"pickerText_94f06b16",inputFocused:"inputFocused_94f06b16",inputDisabled:"inputDisabled_94f06b16",pickerInput:"pickerInput_94f06b16",pickerItems:"pickerItems_94f06b16",screenReaderOnly:"screenReaderOnly_94f06b16"}),_y=3e3,_b=oI();function _x(e){return a1(e,_m,void 0,{scope:"Suggestions"})}var _C=function(e){function t(t){var n=e.call(this,t)||this;n.root=ts.createRef(),n.input=ts.createRef(),n.suggestionElement=ts.createRef(),n.SuggestionOfProperType=_f,n._styledSuggestions=_x(n.SuggestionOfProperType),n._overrideScrollDismiss=!1,n.dismissSuggestions=function(e){var t=function(){var t=!0;n.props.onDismiss&&(t=n.props.onDismiss(e,n.suggestionStore.currentSuggestion?n.suggestionStore.currentSuggestion.item:void 0)),(!e||e&&!e.defaultPrevented)&&!1!==t&&n.canAddItems()&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestedDisplayValue&&n.addItemByIndex(0)};n.currentPromise?n.currentPromise.then(function(){return t()}):t(),n.setState({suggestionsVisible:!1})},n.refocusSuggestions=function(e){n.resetFocus(),n.suggestionStore.suggestions&&n.suggestionStore.suggestions.length>0&&(e===r9?n.suggestionStore.setSelectedSuggestion(n.suggestionStore.suggestions.length-1):e===oe&&n.suggestionStore.setSelectedSuggestion(0))},n.onInputChange=function(e){n.updateValue(e),n.setState({moreSuggestionsAvailable:!0,isMostRecentlyUsedVisible:!1})},n.onSuggestionClick=function(e,t,r){n.addItemByIndex(r)},n.onSuggestionRemove=function(e,t,r){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionStore.removeSuggestion(r)},n.onInputFocus=function(e){n.selection.setAllSelected(!1),!n.state.isFocused&&(n._userTriggeredSuggestions(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e))},n.onInputBlur=function(e){n.props.inputProps&&n.props.inputProps.onBlur&&n.props.inputProps.onBlur(e)},n.onBlur=function(e){if(n.state.isFocused){var t=e.relatedTarget;null===e.relatedTarget&&(t=u9(n.context).activeElement),t&&!nz(n.root.current,t)&&(n.setState({isFocused:!1}),n.props.onBlur&&n.props.onBlur(e))}},n.onWrapperClick=function(e){n.state.items.length&&!n.canAddItems()&&n.resetFocus(n.state.items.length-1)},n.onClick=function(e){void 0!==n.props.inputProps&&void 0!==n.props.inputProps.onClick&&n.props.inputProps.onClick(e),0===e.button&&n._userTriggeredSuggestions()},n.onFocus=function(){n.state.isFocused||n.setState({isFocused:!0})},n.onKeyDown=function(e){var t=e.which;switch(t){case r1:n.state.suggestionsVisible&&(n.setState({suggestionsVisible:!1}),e.preventDefault(),e.stopPropagation());break;case r$:case rQ:n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedActionSelected()?n.suggestionElement.current.executeSelectedAction():!e.shiftKey&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestionsVisible?(n.completeSuggestion(),e.preventDefault(),e.stopPropagation()):n._completeGenericSuggestion();break;case rY:n.props.disabled||n.onBackspace(e),e.stopPropagation();break;case ot:n.props.disabled||(n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&-1!==n.suggestionStore.currentIndex?(n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(n.suggestionStore.currentSuggestion.item),n.suggestionStore.removeSuggestion(n.suggestionStore.currentIndex),n.forceUpdate()):n.onBackspace(e)),e.stopPropagation();break;case r9:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&0===n.suggestionStore.currentIndex?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusAboveSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.previousSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()));break;case oe:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&n.suggestionStore.currentIndex+1===n.suggestionStore.suggestions.length?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusBelowSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.nextSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()))}},n.onItemChange=function(e,t){var r=n.state.items;if(t>=0){var o=r;o[t]=e,n._updateSelectedItems(o)}},n.onGetMoreResults=function(){n.setState({isSearching:!0},function(){if(n.props.onGetMoreResults&&n.input.current){var e=n.props.onGetMoreResults(n.input.current.value,n.state.items),t=e,r=e;Array.isArray(t)?(n.updateSuggestions(t),n.setState({isSearching:!1})):r.then&&r.then(function(e){n.updateSuggestions(e),n.setState({isSearching:!1})})}else n.setState({isSearching:!1});n.input.current&&n.input.current.focus(),n.setState({moreSuggestionsAvailable:!1,isResultsFooterVisible:!0})})},n.completeSelection=function(e){n.addItem(e),n.updateValue(""),n.input.current&&n.input.current.clear(),n.setState({suggestionsVisible:!1})},n.addItemByIndex=function(e){n.completeSelection(n.suggestionStore.getSuggestionAtIndex(e).item)},n.addItem=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null!==t){var r=t,o=t;if(o&&o.then)o.then(function(e){var t=n.state.items.concat([e]);n._updateSelectedItems(t)});else{var a=n.state.items.concat([r]);n._updateSelectedItems(a)}n.setState({suggestedDisplayValue:"",selectionRemoved:void 0})}},n.removeItem=function(e){var t=n.state.items,r=t.indexOf(e);if(r>=0){var o=t.slice(0,r).concat(t.slice(r+1));n.setState({selectionRemoved:e}),n._updateSelectedItems(o),n._async.setTimeout(function(){n.setState({selectionRemoved:void 0})},1e3)}},n.removeItems=function(e){var t=n.state.items.filter(function(t){return -1===e.indexOf(t)});n._updateSelectedItems(t)},n._shouldFocusZoneEnterInnerZone=function(e){if(n.state.suggestionsVisible)switch(e.which){case r9:case oe:return!0}return e.which===rQ},n._onResolveSuggestions=function(e){var t=n.props.onResolveSuggestions(e,n.state.items);null!==t&&n.updateSuggestionsList(t,e)},n._completeGenericSuggestion=function(){if(n.props.onValidateInput&&n.input.current&&n.props.onValidateInput(n.input.current.value)!==ej.invalid&&n.props.createGenericItem){var e=n.props.createGenericItem(n.input.current.value,n.props.onValidateInput(n.input.current.value));n.suggestionStore.createGenericSuggestion(e),n.completeSuggestion()}},n._userTriggeredSuggestions=function(){if(!n.state.suggestionsVisible){var e=n.input.current?n.input.current.value:"";e?0===n.suggestionStore.suggestions.length?n._onResolveSuggestionsDebounced(e):n.setState({isMostRecentlyUsedVisible:!1,suggestionsVisible:!0}):n.onEmptyInputFocus()}},i2(n);var r=t.selectedItems||t.defaultSelectedItems||[];return n._id=iw(),n._ariaMap={selectedItems:"selected-items-".concat(n._id),selectedSuggestionAlert:"selected-suggestion-alert-".concat(n._id),suggestionList:"suggestion-list-".concat(n._id),combobox:"combobox-".concat(n._id)},n.suggestionStore=new _g,n.selection=new aq({onSelectionChanged:function(){return n.onSelectionChange()}}),n.selection.setItems(r),n.state={items:r,suggestedDisplayValue:"",isMostRecentlyUsedVisible:!1,moreSuggestionsAvailable:!1,isFocused:!1,isSearching:!1,selectedIndices:[],selectionRemoved:void 0},n}return tp(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._async=new nF(this),this.selection.setItems(this.state.items),this._onResolveSuggestionsDebounced=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.state.items&&this.state.items!==t.items){var r=this.selection.getSelectedIndices()[0];this.selection.setItems(this.state.items),this.state.isFocused&&(this.state.items.length<t.items.length?(this.selection.setIndexSelected(r,!1,!0),this.resetFocus(r)):this.state.items.length>t.items.length&&!this.canAddItems()&&this.resetFocus(this.state.items.length-1))}this.state.suggestionsVisible&&!t.suggestionsVisible&&(this._overrideScrollDismiss=!0,this._async.clearTimeout(this._overrideScrollDimissTimeout),this._overrideScrollDimissTimeout=this._async.setTimeout(function(){n._overrideScrollDismiss=!1},100))},t.prototype.componentWillUnmount=function(){this.currentPromise&&(this.currentPromise=void 0),this._async.dispose()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.focusInput=function(){this.input.current&&this.input.current.focus()},t.prototype.completeSuggestion=function(e){this.suggestionStore.hasSelectedSuggestion()&&this.input.current?this.completeSelection(this.suggestionStore.currentSuggestion.item):e&&this._completeGenericSuggestion()},t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,r=e.items,o=this.props,a=o.className,s=o.inputProps,l=o.disabled,c=o.selectionAriaLabel,u=o.selectionRole,d=void 0===u?"list":u,p=o.theme,f=o.styles,m=!!this.state.suggestionsVisible,g=m?this._ariaMap.suggestionList:void 0,v=f?_b(f,{theme:p,className:a,isFocused:n,disabled:l,inputClassName:s&&s.className}):{root:oG("ms-BasePicker",a||""),text:oG("ms-BasePicker-text",_v.pickerText,this.state.isFocused&&_v.inputFocused),itemsWrapper:_v.pickerItems,input:oG("ms-BasePicker-input",_v.pickerInput,s&&s.className),screenReaderText:_v.screenReaderOnly},y=this.props["aria-label"]||(null==s?void 0:s["aria-label"]);return ts.createElement("div",{ref:this.root,className:v.root,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onWrapperClick},this.renderCustomAlert(v.screenReaderText),ts.createElement("span",{id:"".concat(this._ariaMap.selectedItems,"-label"),hidden:!0},c||y),ts.createElement(CC,{selection:this.selection,selectionMode:h.multiple},ts.createElement("div",{className:v.text,"aria-owns":g},r.length>0&&ts.createElement("span",{id:this._ariaMap.selectedItems,className:v.itemsWrapper,role:d,"aria-labelledby":"".concat(this._ariaMap.selectedItems,"-label")},this.renderItems()),this.canAddItems()&&ts.createElement(p0,tf({spellCheck:!1},s,{className:v.input,componentRef:this.input,id:(null==s?void 0:s.id)?s.id:this._ariaMap.combobox,onClick:this.onClick,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":m?this.getActiveDescendant():void 0,"aria-controls":g,"aria-describedby":r.length>0?this._ariaMap.selectedItems:void 0,"aria-expanded":m,"aria-haspopup":"listbox","aria-label":y,role:"combobox",disabled:l,onInputChange:this.props.onInputChange})))),this.renderSuggestions())},t.prototype.canAddItems=function(){var e=this.state.items,t=this.props.itemLimit;return void 0===t||e.length<t},t.prototype.renderSuggestions=function(){var e=this,t=this._styledSuggestions;return this.state.suggestionsVisible&&this.input?ts.createElement(d$,tf({isBeakVisible:!1,gapSpace:5,target:this.input.current?this.input.current.inputElement:void 0,onDismiss:this.dismissSuggestions,directionalHint:cV,directionalHintForRTL:cj,preventDismissOnEvent:function(t){return e._preventDismissOnScrollOrResize(t)}},this.props.pickerCalloutProps),ts.createElement(t,tf({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionElement,onGetMoreResults:this.onGetMoreResults,moreSuggestionsAvailable:this.state.moreSuggestionsAvailable,isLoading:this.state.suggestionsLoading,isExtendedLoading:this.state.suggestionsExtendedLoading,isSearching:this.state.isSearching,isMostRecentlyUsedVisible:this.state.isMostRecentlyUsedVisible,isResultsFooterVisible:this.state.isResultsFooterVisible,refocusSuggestions:this.refocusSuggestions,removeSuggestionAriaLabel:this.props.removeButtonAriaLabel,suggestionsListId:this._ariaMap.suggestionList,createGenericItem:this._completeGenericSuggestion},this.props.pickerSuggestionsProps))):null},t.prototype.renderItems=function(){var e=this,t=this.props,n=t.disabled,r=t.removeButtonAriaLabel,o=t.removeButtonIconProps,a=this.props.onRenderItem,s=this.state,l=s.items,c=s.selectedIndices;return l.map(function(t,s){return a({item:t,index:s,key:t.key?t.key:s,selected:-1!==c.indexOf(s),onRemoveItem:function(){return e.removeItem(t)},disabled:n,onItemChange:e.onItemChange,removeButtonAriaLabel:r,removeButtonIconProps:o})})},t.prototype.resetFocus=function(e){var t=this.state.items;if(t.length){e=null!=e?e:t.length-1;var n=this.root.current&&this.root.current.querySelectorAll("[data-selection-index] > button")[Math.min(e,t.length-1)];n&&n.focus()}else this.input.current&&this.input.current.focus()},t.prototype.onSuggestionSelect=function(){if(this.suggestionStore.currentSuggestion){var e=this.input.current?this.input.current.value:"",t=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e);this.setState({suggestedDisplayValue:t})}},t.prototype.onSelectionChange=function(){this.setState({selectedIndices:this.selection.getSelectedIndices()})},t.prototype.updateSuggestions=function(e){var t,n=null==(t=this.props.pickerSuggestionsProps)?void 0:t.resultsMaximumNumber;this.suggestionStore.updateSuggestions(e,0,n),this.forceUpdate()},t.prototype.onEmptyInputFocus=function(){var e=this.props.onEmptyResolveSuggestions?this.props.onEmptyResolveSuggestions:this.props.onEmptyInputFocus;if(e){var t=e(this.state.items);this.updateSuggestionsList(t),this.setState({isMostRecentlyUsedVisible:!0,suggestionsVisible:!0,moreSuggestionsAvailable:!1})}},t.prototype.updateValue=function(e){this._onResolveSuggestionsDebounced(e)},t.prototype.updateSuggestionsList=function(e,t){var n,r=this;Array.isArray(e)?this._updateAndResolveValue(t,e):e&&e.then&&(this.setState({suggestionsLoading:!0}),this._startLoadTimer(),this.suggestionStore.updateSuggestions([]),void 0!==t?this.setState({suggestionsVisible:this._getShowSuggestions()}):this.setState({suggestionsVisible:this.input.current&&this.input.current.inputElement===(null==(n=u9(this.context))?void 0:n.activeElement)}),this.currentPromise=e,e.then(function(n){e===r.currentPromise&&r._updateAndResolveValue(t,n)}))},t.prototype.resolveNewValue=function(e,t){var n=this;this.updateSuggestions(t);var r=void 0;this.suggestionStore.currentSuggestion&&(r=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e)),this.setState({suggestedDisplayValue:r,suggestionsVisible:this._getShowSuggestions()},function(){return n.setState({suggestionsLoading:!1,suggestionsExtendedLoading:!1})})},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.onBackspace=function(e){(this.state.items.length&&!this.input.current||this.input.current&&!this.input.current.isValueSelected&&0===this.input.current.cursorLocation)&&(this.selection.getSelectedCount()>0?this.removeItems(this.selection.getSelection()):this.removeItem(this.state.items[this.state.items.length-1]))},t.prototype.getActiveDescendant=function(){if(!this.state.suggestionsLoading){var e,t=this.suggestionStore.currentIndex;return t<0?(null==(e=this.suggestionElement.current)?void 0:e.hasSuggestedAction())?"sug-selectedAction":0===this.suggestionStore.suggestions.length?"sug-noResultsFound":void 0:"sug-".concat(t)}},t.prototype.getSuggestionsAlert=function(e){void 0===e&&(e=_v.screenReaderOnly);var t=this.suggestionStore.currentIndex;if(this.props.enableSelectedSuggestionAlert){var n=t>-1?this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex):void 0,r=n?n.ariaLabel:void 0;return ts.createElement("div",{id:this._ariaMap.selectedSuggestionAlert,className:e},"".concat(r," "))}},t.prototype.renderCustomAlert=function(e){void 0===e&&(e=_v.screenReaderOnly);var t=this.props.suggestionRemovedText,n=void 0===t?"removed {0}":t,r="";return this.state.selectionRemoved&&(r=aY(n,this._getTextFromItem(this.state.selectionRemoved,""))),ts.createElement("div",{className:e,id:this._ariaMap.selectedSuggestionAlert,"aria-live":"assertive"},this.getSuggestionsAlert(e),r)},t.prototype._preventDismissOnScrollOrResize=function(e){return!!this._overrideScrollDismiss&&("scroll"===e.type||"resize"===e.type)},t.prototype._startLoadTimer=function(){var e=this;this._async.setTimeout(function(){e.state.suggestionsLoading&&e.setState({suggestionsExtendedLoading:!0})},_y)},t.prototype._updateAndResolveValue=function(e,t){var n;if(void 0!==e)this.resolveNewValue(e,t);else{var r=null==(n=this.props.pickerSuggestionsProps)?void 0:n.resultsMaximumNumber;this.suggestionStore.updateSuggestions(t,-1,r),this.state.suggestionsLoading&&this.setState({suggestionsLoading:!1,suggestionsExtendedLoading:!1})}},t.prototype._updateSelectedItems=function(e){var t=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},function(){t._onSelectedItemsUpdated(e)})},t.prototype._onSelectedItemsUpdated=function(e){this.onChange(e)},t.prototype._getShowSuggestions=function(){var e;return void 0!==this.input.current&&null!==this.input.current&&this.input.current.inputElement===(null==(e=u9(this.context))?void 0:e.activeElement)&&""!==this.input.current.value},t.prototype._getTextFromItem=function(e,t){return this.props.getTextFromItem?this.props.getTextFromItem(e,t):""},t.contextType=ic,t}(ts.Component),_k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,r=this.props,o=r.className,a=r.inputProps,s=r.disabled,l=r.selectionAriaLabel,c=r.selectionRole,u=void 0===c?"list":c,d=r.theme,p=r.styles,f=!!this.state.suggestionsVisible,m=f?this._ariaMap.suggestionList:void 0,g=p?_b(p,{theme:d,className:o,isFocused:n,inputClassName:a&&a.className}):{root:oG("ms-BasePicker",_v.picker,o||""),text:oG("ms-BasePicker-text",_v.pickerText,this.state.isFocused&&_v.inputFocused,s&&_v.inputDisabled),itemsWrapper:_v.pickerItems,input:oG("ms-BasePicker-input",_v.pickerInput,a&&a.className),screenReaderText:_v.screenReaderOnly},v=this.props["aria-label"]||(null==a?void 0:a["aria-label"]);return ts.createElement("div",{ref:this.root,onBlur:this.onBlur,onFocus:this.onFocus},ts.createElement("div",{className:g.root,onKeyDown:this.onKeyDown},this.renderCustomAlert(g.screenReaderText),ts.createElement("span",{id:"".concat(this._ariaMap.selectedItems,"-label"),hidden:!0},l||v),ts.createElement("div",{className:g.text,"aria-owns":m},ts.createElement(p0,tf({},a,{className:g.input,componentRef:this.input,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onClick:this.onClick,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":f?this.getActiveDescendant():void 0,"aria-controls":m,"aria-expanded":f,"aria-haspopup":"listbox","aria-label":v,"aria-describedby":this.state.items.length>0?this._ariaMap.selectedItems:void 0,role:"combobox",id:(null==a?void 0:a.id)?a.id:this._ariaMap.combobox,disabled:s,onInputChange:this.props.onInputChange})))),this.renderSuggestions(),ts.createElement(CC,{selection:this.selection,selectionMode:h.single},ts.createElement("div",{id:this._ariaMap.selectedItems,className:"ms-BasePicker-selectedItems",role:u,"aria-labelledby":"".concat(this._ariaMap.selectedItems,"-label")},this.renderItems())))},t.prototype.onBackspace=function(e){},t}(_C),_w={root:"ms-BasePicker",text:"ms-BasePicker-text",itemsWrapper:"ms-BasePicker-itemsWrapper",input:"ms-BasePicker-input"};function _S(e){var t,n,r,o=e.className,a=e.theme,s=e.isFocused,l=e.inputClassName,c=e.disabled;if(!a)throw Error("theme is undefined or null in base BasePicker getStyles function.");var u=a.semanticColors,d=a.effects,p=a.fonts,f=u.inputBorder,h=u.inputBorderHovered,m=u.inputFocusBorderAlt,g=l0(_w,a),v=[p.medium,{color:u.inputPlaceholderText,opacity:1,selectors:((t={})[l_]={color:"GrayText"},t)}],y={color:u.disabledText,selectors:((n={})[l_]={color:"GrayText"},n)},b="rgba(218, 218, 218, 0.29)";return{root:[g.root,o,{position:"relative"}],text:[g.text,{display:"flex",position:"relative",flexWrap:"wrap",alignItems:"center",boxSizing:"border-box",minWidth:180,minHeight:30,border:"1px solid ".concat(f),borderRadius:d.roundedCorner2},!s&&!c&&{selectors:{":hover":{borderColor:h}}},s&&!c&&lz(m,d.roundedCorner2),c&&{borderColor:b,selectors:((r={":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:b}})[l_]={borderColor:"GrayText",selectors:{":after":{background:"none"}}},r)}],itemsWrapper:[g.itemsWrapper,{display:"flex",flexWrap:"wrap",maxWidth:"100%"}],input:[g.input,p.medium,{height:30,border:"none",flexGrow:1,outline:"none",padding:"0 6px 0",alignSelf:"flex-end",borderRadius:d.roundedCorner2,backgroundColor:"transparent",color:u.inputText,selectors:{"::-ms-clear":{display:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}},cC(v),c&&cC(y),l],screenReaderText:lV}}var __={root:"ms-PickerPersona-container",itemContent:"ms-PickerItem-content",removeButton:"ms-PickerItem-removeButton",isSelected:"is-selected",isInvalid:"is-invalid"},_E=24,_P=15;function _I(e){var t,n,r,o,a,s,l,c,u=e.className,d=e.theme,p=e.selected,f=e.invalid,h=e.disabled,m=d.palette,g=d.semanticColors,v=d.fonts,y=l0(__,d),b={color:"inherit"},x=[p&&!f&&!h&&{color:"inherit",selectors:((t={":hover":{color:"inherit"}})[l_]={color:"HighlightText"},t)},(f&&!p||f&&p&&h)&&{color:"inherit",borderBottom:"2px dotted currentColor",selectors:((n={})[".".concat(y.root,":hover &")]={color:"inherit"},n)},f&&p&&!h&&{color:"inherit",borderBottom:"2px dotted currentColor",selectors:{":hover":{color:"inherit"}}},h&&{selectors:((r={})[l_]={color:"GrayText"},r)}],C=[p&&!f&&!h&&{color:"inherit",selectors:((o={":hover":{color:"inherit"}})[l_]={color:"HighlightText"},o)}],k=[f&&{fontSize:v.xLarge.fontSize}];return{root:[y.root,lO(d,{inset:-2}),{borderRadius:_P,display:"inline-flex",alignItems:"center",background:m.neutralLighter,margin:"1px 2px",cursor:"default",userSelect:"none",maxWidth:300,verticalAlign:"middle",minWidth:0,selectors:((a={":hover":{background:p||h?"":m.neutralLight}})[l_]=[{border:"1px solid WindowText"},h&&{borderColor:"GrayText"}],a)},p&&!h&&[y.isSelected,{selectors:((s={":focus-within":{background:m.themePrimary,color:m.white}})[l_]=tf({borderColor:"HighLight",background:"Highlight"},lF()),s)}],f&&[y.isInvalid],f&&p&&!h&&{":focus-within":{background:m.redDark,color:m.white}},(f&&!p||f&&p&&h)&&{color:m.redDark},u],itemContent:[y.itemContent,{flex:"0 1 auto",minWidth:0,maxWidth:"100%",overflow:"hidden"}],removeButton:[y.removeButton,{borderRadius:_P,color:m.neutralPrimary,flex:"0 0 auto",width:_E,height:_E,selectors:{":hover":{background:m.neutralTertiaryAlt,color:m.neutralDark}}},p&&[lO(d,{inset:2,borderColor:"transparent",highContrastStyle:{inset:2,left:1,top:1,bottom:1,right:1,outlineColor:"ButtonText"},outlineColor:m.white,borderRadius:_P}),{selectors:((l={":hover":{color:m.white,background:m.themeDark},":active":{color:m.white,background:m.themeDarker},":focus":{color:m.white}})[l_]={color:"HighlightText"},l)},f&&{selectors:{":hover":{color:m.white,background:m.red},":active":{color:m.white,background:m.redDark}}}],h&&{selectors:((c={})[".".concat(hV.msButtonIcon)]={color:g.buttonText},c)}],subComponentStyles:{persona:{root:b,primaryText:x,secondaryText:C},personaCoin:{initials:k}}}}var _T=oI(),_D=a1(function(e){var t=e.item,n=e.onRemoveItem,r=e.index,o=e.selected,a=e.removeButtonAriaLabel,s=e.styles,l=e.theme,c=e.className,u=e.disabled,d=e.removeButtonIconProps,p=ts.createRef(),f=function(){var e;null==(e=p.current)||e.focus()},h=iw(),m=_T(s,{theme:l,className:c,selected:o,disabled:u,invalid:t.ValidationState===ej.warning}),g=m.subComponentStyles?m.subComponentStyles.persona:void 0,v=m.subComponentStyles?m.subComponentStyles.personaCoin:void 0;return ts.createElement("div",{"data-selection-index":r,className:m.root,role:"listitem",key:r,onClick:f},ts.createElement("div",{className:m.itemContent,id:"selectedItemPersona-"+h},ts.createElement(pQ,tf({size:V.size24,styles:g,coinProps:{styles:v}},t))),ts.createElement(mn,{componentRef:p,id:h,onClick:n,disabled:u,iconProps:null!=d?d:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:m.removeButton,ariaLabel:a,"aria-labelledby":"".concat(h," selectedItemPersona-").concat(h)}))},_I,void 0,{scope:"PeoplePickerItem"}),_A={root:"ms-PeoplePicker-personaContent",personaWrapper:"ms-PeoplePicker-Persona"};function _R(e){var t,n,r,o=e.className,a=l0(_A,e.theme),s={selectors:((t={})[".".concat(_l.isSuggested," &")]={selectors:((n={})[l_]={color:"HighlightText"},n)},t[".".concat(a.root,":hover &")]={selectors:((r={})[l_]={color:"HighlightText"},r)},t)};return{root:[a.root,{width:"100%",padding:"4px 12px"},o],personaWrapper:[a.personaWrapper,{width:180}],subComponentStyles:{persona:{primaryText:s,secondaryText:s}}}}var _N=oI(),_B=a1(function(e){var t=e.personaProps,n=e.suggestionsProps,r=e.compact,o=e.styles,a=e.theme,s=e.className,l=_N(o,{theme:a,className:n&&n.suggestionsItemClassName||s}),c=l.subComponentStyles&&l.subComponentStyles.persona?l.subComponentStyles.persona:void 0;return ts.createElement("div",{className:l.root},ts.createElement(pQ,tf({size:V.size24,styles:c,className:l.personaWrapper,showSecondaryText:!r,showOverflowTooltip:!1},t)))},_R,void 0,{scope:"PeoplePickerItemSuggestion"}),_M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t}(_C),_F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t}(_k),_O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.defaultProps={onRenderItem:function(e){return ts.createElement(_D,tf({},e))},onRenderSuggestionsItem:function(e,t){return ts.createElement(_B,{personaProps:e,suggestionsProps:t})},createGenericItem:_z},t}(_M),_L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.defaultProps={onRenderItem:function(e){return ts.createElement(_D,tf({},e))},onRenderSuggestionsItem:function(e,t){return ts.createElement(_B,{personaProps:e,suggestionsProps:t,compact:!0})},createGenericItem:_z},t}(_M),_H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.defaultProps={onRenderItem:function(e){return ts.createElement(_D,tf({},e))},onRenderSuggestionsItem:function(e,t){return ts.createElement(_B,{personaProps:e,suggestionsProps:t})},createGenericItem:_z},t}(_F);function _z(e,t){var n={key:e,primaryText:e,imageInitials:"!",ValidationState:t};return t!==ej.warning&&(n.imageInitials=ak(e,ox())),n}a1(_O,_S,void 0,{scope:"NormalPeoplePicker"}),a1(_L,_S,void 0,{scope:"CompactPeoplePicker"}),a1(_H,_S,void 0,{scope:"ListPeoplePickerBase"});var _V={root:"ms-TagItem",text:"ms-TagItem-text",close:"ms-TagItem-close",isSelected:"is-selected"},_U=26;function _j(e){var t,n,r,o,a,s=e.className,l=e.theme,c=e.selected,u=e.disabled,d=l.palette,p=l.effects,f=l.fonts,h=l.semanticColors,m=l0(_V,l);return{root:[m.root,f.medium,lO(l),{boxSizing:"content-box",flexShrink:"1",margin:2,height:_U,lineHeight:_U,cursor:"default",userSelect:"none",display:"flex",flexWrap:"nowrap",maxWidth:300,minWidth:0,borderRadius:p.roundedCorner2,color:h.inputText,background:d.neutralLighter,selectors:((t={":hover":[!u&&!c&&{color:d.neutralDark,background:d.neutralLight,selectors:{".ms-TagItem-close":{color:d.neutralPrimary}}},u&&{background:d.neutralLighter}]})[l_]={border:"1px solid ".concat(c?"WindowFrame":"WindowText")},t)},u&&{selectors:((n={})[l_]={borderColor:"GrayText"},n)},c&&!u&&[m.isSelected,{":focus-within":{background:d.themePrimary,color:d.white}}],s],text:[m.text,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:30,margin:"0 8px"},u&&{selectors:((r={})[l_]={color:"GrayText"},r)}],close:[m.close,lO(l,{borderColor:"transparent",inset:1,outlineColor:d.white}),{color:d.neutralSecondary,width:30,height:"100%",flex:"0 0 auto",borderRadius:ox(l)?"".concat(p.roundedCorner2," 0 0 ").concat(p.roundedCorner2):"0 ".concat(p.roundedCorner2," ").concat(p.roundedCorner2," 0"),selectors:((o={":hover":{background:d.neutralQuaternaryAlt,color:d.neutralPrimary}})[".".concat(m.isSelected," &:focus")]={color:d.white,background:d.themePrimary},o[":focus:hover"]={color:d.white,background:d.themeDark},o[":active"]={color:d.white,backgroundColor:d.themeDark},o)},u&&{selectors:((a={})[".".concat(hV.msButtonIcon)]={color:d.neutralSecondary},a)}]}}var _W=oI(),_q=a1(function(e){var t=e.theme,n=e.styles,r=e.selected,o=e.disabled,a=e.enableTagFocusInDisabledPicker,s=e.children,l=e.className,c=e.index,u=e.onRemoveItem,d=e.removeButtonAriaLabel,p=e.title,f=void 0===p?"string"==typeof e.children?e.children:e.item.name:p,h=e.removeButtonIconProps,m=ts.createRef(),g=function(){var e;null==(e=m.current)||e.focus()},v=_W(n,{theme:t,className:l,selected:r,disabled:o}),y=uq(),b=a?{"aria-disabled":o,tabindex:0}:{disabled:o};return ts.createElement("div",{"data-selection-index":c,className:v.root,role:"listitem",key:c,onClick:g},ts.createElement("span",{className:v.text,title:f,id:"".concat(y,"-text")},s),ts.createElement(mn,tf({componentRef:m,id:y,onClick:u},b,{iconProps:null!=h?h:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:v.close,"aria-labelledby":"".concat(y,"-removeLabel ").concat(y,"-text")})),ts.createElement("span",{id:"".concat(y,"-removeLabel"),hidden:!0},d))},_j,void 0,{scope:"TagItem"}),_G={suggestionTextOverflow:"ms-TagItem-TextOverflow"};function _K(e){var t=e.className;return{suggestionTextOverflow:[l0(_G,e.theme).suggestionTextOverflow,{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"60vw",padding:"6px 12px 7px",whiteSpace:"nowrap"},t]}}var _X=oI(),_Y=a1(function(e){var t=e.styles,n=e.theme,r=e.children,o=_X(t,{theme:n});return ts.createElement("div",{className:o.suggestionTextOverflow}," ",r," ")},_K,void 0,{scope:"TagItemSuggestion"});a1(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.defaultProps={onRenderItem:function(e){return ts.createElement(_q,tf({},e),e.item.name)},onRenderSuggestionsItem:function(e){return ts.createElement(_Y,null,e.name)}},t}(_C),_S,void 0,{scope:"TagPicker"}),l7([{rawString:".suggestionsContainer_44c59fda{overflow-y:auto;overflow-x:hidden;max-height:300px}.suggestionsContainer_44c59fda .ms-Suggestion-item:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.suggestionsContainer_44c59fda .is-suggested{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.suggestionsContainer_44c59fda .is-suggested:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}"}]);var _$=Object.freeze({__proto__:null,suggestionsContainer:"suggestionsContainer_44c59fda"}),_Q=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=ts.createRef(),n.SuggestionsItemOfProperType=_s,n._onClickTypedSuggestionsItem=function(e,t){return function(r){n.props.onSuggestionClick(r,e,t)}},n._onRemoveTypedSuggestionsItem=function(e,t){return function(r){(0,n.props.onSuggestionRemove)(r,e,t),r.stopPropagation()}},i2(n),n.currentIndex=-1,n}return tp(t,e),t.prototype.nextSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(0),!0;else if(this.currentIndex<e.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;else if(this.props.shouldLoopSelection&&this.currentIndex===e.length-1)return this.setSelectedSuggestion(0),!0}return!1},t.prototype.previousSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0;else if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;else if(this.props.shouldLoopSelection&&0===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0}return!1},Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this._selectedElement.current||void 0},enumerable:!1,configurable:!0}),t.prototype.getCurrentItem=function(){return this.props.suggestions[this.currentIndex]},t.prototype.getSuggestionAtIndex=function(e){return this.props.suggestions[e]},t.prototype.hasSuggestionSelected=function(){return -1!==this.currentIndex&&this.currentIndex<this.props.suggestions.length},t.prototype.removeSuggestion=function(e){this.props.suggestions.splice(e,1)},t.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&this.props.suggestions[this.currentIndex]&&(this.props.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1,this.forceUpdate())},t.prototype.setSelectedSuggestion=function(e){var t=this.props.suggestions;e>t.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=t[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&t[this.currentIndex]&&(t[this.currentIndex].selected=!1),t[e].selected=!0,this.currentIndex=e,this.currentSuggestion=t[e]),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.scrollSelected()},t.prototype.render=function(){var e=this,t=this.props,n=t.onRenderSuggestion,r=t.suggestionsItemClassName,o=t.resultsMaximumNumber,a=t.showRemoveButtons,s=t.suggestionsContainerAriaLabel,l=this.SuggestionsItemOfProperType,c=this.props.suggestions;return o&&(c=c.slice(0,o)),ts.createElement("div",{className:oG("ms-Suggestions-container",_$.suggestionsContainer),id:"suggestion-list",role:"listbox","aria-label":s},c.map(function(t,o){return ts.createElement("div",{ref:t.selected||o===e.currentIndex?e._selectedElement:void 0,key:t.item.key?t.item.key:o,id:"sug-"+o},ts.createElement(l,{id:"sug-item"+o,suggestionModel:t,RenderSuggestion:n,onClick:e._onClickTypedSuggestionsItem(t.item,o),className:r,showRemoveButton:a,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,o),isSelectedOverride:o===e.currentIndex}))}))},t.prototype.scrollSelected=function(){var e;(null==(e=this._selectedElement.current)?void 0:e.scrollIntoView)!==void 0&&this._selectedElement.current.scrollIntoView(!1)},t}(ts.Component);l7([{rawString:".root_ade399af{min-width:260px}.actionButton_ade399af{background:0 0;background-color:transparent;border:0;cursor:pointer;margin:0;padding:0;position:relative;width:100%;font-size:12px}html[dir=ltr] .actionButton_ade399af{text-align:left}html[dir=rtl] .actionButton_ade399af{text-align:right}.actionButton_ade399af:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.actionButton_ade399af:active,.actionButton_ade399af:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_ade399af .ms-Button-icon{font-size:16px;width:25px}.actionButton_ade399af .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_ade399af .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_ade399af{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.buttonSelected_ade399af:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af:hover{background-color:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af{background-color:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsTitle_ade399af{font-size:12px}.suggestionsSpinner_ade399af{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_ade399af{padding-left:14px}html[dir=rtl] .suggestionsSpinner_ade399af{padding-right:14px}html[dir=ltr] .suggestionsSpinner_ade399af{text-align:left}html[dir=rtl] .suggestionsSpinner_ade399af{text-align:right}.suggestionsSpinner_ade399af .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_ade399af .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_ade399af .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_ade399af{height:100%;width:100%;padding:7px 12px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_ade399af{color:WindowText}}.screenReaderOnly_ade399af{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var _J=Object.freeze({__proto__:null,root:"root_ade399af",actionButton:"actionButton_ade399af",buttonSelected:"buttonSelected_ade399af",suggestionsTitle:"suggestionsTitle_ade399af",suggestionsSpinner:"suggestionsSpinner_ade399af",itemButton:"itemButton_ade399af",screenReaderOnly:"screenReaderOnly_ade399af"});!function(e){e[e.header=0]="header",e[e.suggestion=1]="suggestion",e[e.footer=2]="footer"}(eW||(eW={}));var _Z=function(e){function t(t){var n=e.call(this,t)||this;return i2(n),n}return tp(t,e),t.prototype.render=function(){var e,t=this.props,n=t.renderItem,r=t.onExecute,o=t.isSelected,a=t.id,s=t.className;return r?ts.createElement("div",{id:a,onClick:r,className:oG("ms-Suggestions-sectionButton",s,_J.actionButton,((e={})["is-selected "+_J.buttonSelected]=o,e))},n()):ts.createElement("div",{id:a,className:oG("ms-Suggestions-section",s,_J.suggestionsTitle)},n())},t}(ts.Component),_0=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=ts.createRef(),n._suggestions=ts.createRef(),n.SuggestionsOfProperType=_Q,i2(n),n.state={selectedHeaderIndex:-1,selectedFooterIndex:-1,suggestions:t.suggestions},n}return tp(t,e),t.prototype.componentDidMount=function(){this.resetSelectedItem()},t.prototype.componentDidUpdate=function(e){var t=this;this.scrollSelected(),e.suggestions&&e.suggestions!==this.props.suggestions&&this.setState({suggestions:this.props.suggestions},function(){t.resetSelectedItem()})},t.prototype.componentWillUnmount=function(){var e;null==(e=this._suggestions.current)||e.deselectAllSuggestions()},t.prototype.render=function(){var e=this.props,t=e.className,n=e.headerItemsProps,r=e.footerItemsProps,o=e.suggestionsAvailableAlertText,a=ny(lV),s=this.state.suggestions&&this.state.suggestions.length>0&&o;return ts.createElement("div",{className:oG("ms-Suggestions",t||"",_J.root)},n&&this.renderHeaderItems(),this._renderSuggestions(),r&&this.renderFooterItems(),s?ts.createElement("span",{role:"alert","aria-live":"polite",className:a},o):null)},Object.defineProperty(t.prototype,"currentSuggestion",{get:function(){var e;return(null==(e=this._suggestions.current)?void 0:e.getCurrentItem())||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentSuggestionIndex",{get:function(){return this._suggestions.current?this._suggestions.current.currentIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedElement",{get:function(){var e;return this._selectedElement.current?this._selectedElement.current:null==(e=this._suggestions.current)?void 0:e.selectedElement},enumerable:!1,configurable:!0}),t.prototype.hasSuggestionSelected=function(){var e;return(null==(e=this._suggestions.current)?void 0:e.hasSuggestionSelected())||!1},t.prototype.hasSelection=function(){var e=this.state,t=e.selectedHeaderIndex,n=e.selectedFooterIndex;return -1!==t||this.hasSuggestionSelected()||-1!==n},t.prototype.executeSelectedAction=function(){var e,t=this.props,n=t.headerItemsProps,r=t.footerItemsProps,o=this.state,a=o.selectedHeaderIndex,s=o.selectedFooterIndex;if(n&&-1!==a&&a<n.length){var l=n[a];l.onExecute&&l.onExecute()}else if(null==(e=this._suggestions.current)?void 0:e.hasSuggestionSelected())this.props.completeSuggestion();else if(r&&-1!==s&&s<r.length){var c=r[s];c.onExecute&&c.onExecute()}},t.prototype.removeSuggestion=function(e){var t,n;null==(t=this._suggestions.current)||t.removeSuggestion(e||(null==(n=this._suggestions.current)?void 0:n.currentIndex))},t.prototype.handleKeyDown=function(e){var t,n,r,o,a=this.state,s=a.selectedHeaderIndex,l=a.selectedFooterIndex,c=!1;return e===oe?-1!==s||(null==(t=this._suggestions.current)?void 0:t.hasSuggestionSelected())||-1!==l?-1!==s?(this.selectNextItem(eW.header),c=!0):(null==(n=this._suggestions.current)?void 0:n.hasSuggestionSelected())?(this.selectNextItem(eW.suggestion),c=!0):-1!==l&&(this.selectNextItem(eW.footer),c=!0):this.selectFirstItem():e===r9?-1!==s||(null==(r=this._suggestions.current)?void 0:r.hasSuggestionSelected())||-1!==l?-1!==s?(this.selectPreviousItem(eW.header),c=!0):(null==(o=this._suggestions.current)?void 0:o.hasSuggestionSelected())?(this.selectPreviousItem(eW.suggestion),c=!0):-1!==l&&(this.selectPreviousItem(eW.footer),c=!0):this.selectLastItem():(e===rQ||e===r$)&&this.hasSelection()&&(this.executeSelectedAction(),c=!0),c},t.prototype.scrollSelected=function(){this._selectedElement.current&&this._selectedElement.current.scrollIntoView(!1)},t.prototype.renderHeaderItems=function(){var e=this,t=this.props,n=t.headerItemsProps,r=t.suggestionsHeaderContainerAriaLabel,o=this.state.selectedHeaderIndex;return n?ts.createElement("div",{className:oG("ms-Suggestions-headerContainer",_J.suggestionsContainer),id:"suggestionHeader-list",role:"list","aria-label":r},n.map(function(t,n){var r=-1!==o&&o===n;return t.shouldShow()?ts.createElement("div",{ref:r?e._selectedElement:void 0,id:"sug-header"+n,key:"sug-header"+n,role:"listitem","aria-label":t.ariaLabel},ts.createElement(_Z,{id:"sug-header-item"+n,isSelected:r,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null})):null},t.prototype.renderFooterItems=function(){var e=this,t=this.props,n=t.footerItemsProps,r=t.suggestionsFooterContainerAriaLabel,o=this.state.selectedFooterIndex;return n?ts.createElement("div",{className:oG("ms-Suggestions-footerContainer",_J.suggestionsContainer),id:"suggestionFooter-list",role:"list","aria-label":r},n.map(function(t,n){var r=-1!==o&&o===n;return t.shouldShow()?ts.createElement("div",{ref:r?e._selectedElement:void 0,id:"sug-footer"+n,key:"sug-footer"+n,role:"listitem","aria-label":t.ariaLabel},ts.createElement(_Z,{id:"sug-footer-item"+n,isSelected:r,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null})):null},t.prototype._renderSuggestions=function(){var e=this.SuggestionsOfProperType;return ts.createElement(e,tf({ref:this._suggestions},this.props,{suggestions:this.state.suggestions}))},t.prototype.selectNextItem=function(e,t){if(e===t)return void this._selectNextItemOfItemType(e);var n=void 0!==t?t:e;this._selectNextItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectNextItem(this._getNextItemSectionType(e),n)},t.prototype.selectPreviousItem=function(e,t){if(e===t)return void this._selectPreviousItemOfItemType(e);var n=void 0!==t?t:e;this._selectPreviousItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectPreviousItem(this._getPreviousItemSectionType(e),n)},t.prototype.resetSelectedItem=function(){var e;this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),null==(e=this._suggestions.current)||e.deselectAllSuggestions(),(void 0===this.props.shouldSelectFirstItem||this.props.shouldSelectFirstItem())&&this.selectFirstItem()},t.prototype.selectFirstItem=function(){this._selectNextItemOfItemType(eW.header)||this._selectNextItemOfItemType(eW.suggestion)||this._selectNextItemOfItemType(eW.footer)},t.prototype.selectLastItem=function(){this._selectPreviousItemOfItemType(eW.footer)||this._selectPreviousItemOfItemType(eW.suggestion)||this._selectPreviousItemOfItemType(eW.header)},t.prototype._selectNextItemOfItemType=function(e,t){var n,r;if(void 0===t&&(t=-1),e===eW.suggestion){if(this.state.suggestions.length>t+1)return null==(n=this._suggestions.current)||n.setSelectedSuggestion(t+1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o=e===eW.header,a=o?this.props.headerItemsProps:this.props.footerItemsProps;if(a&&a.length>t+1)for(var s=t+1;s<a.length;s++){var l=a[s];if(l.onExecute&&l.shouldShow())return this.setState({selectedHeaderIndex:o?s:-1}),this.setState({selectedFooterIndex:o?-1:s}),null==(r=this._suggestions.current)||r.deselectAllSuggestions(),!0}}return!1},t.prototype._selectPreviousItemOfItemType=function(e,t){var n,r;if(e===eW.suggestion){var o=void 0!==t?t:this.state.suggestions.length;if(o>0)return null==(n=this._suggestions.current)||n.setSelectedSuggestion(o-1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var a=e===eW.header,s=a?this.props.headerItemsProps:this.props.footerItemsProps;if(s){var o=void 0!==t?t:s.length;if(o>0)for(var l=o-1;l>=0;l--){var c=s[l];if(c.onExecute&&c.shouldShow())return this.setState({selectedHeaderIndex:a?l:-1}),this.setState({selectedFooterIndex:a?-1:l}),null==(r=this._suggestions.current)||r.deselectAllSuggestions(),!0}}}return!1},t.prototype._getCurrentIndexForType=function(e){switch(e){case eW.header:return this.state.selectedHeaderIndex;case eW.suggestion:return this._suggestions.current.currentIndex;case eW.footer:return this.state.selectedFooterIndex}},t.prototype._getNextItemSectionType=function(e){switch(e){case eW.header:return eW.suggestion;case eW.suggestion:return eW.footer;case eW.footer:return eW.header}},t.prototype._getPreviousItemSectionType=function(e){switch(e){case eW.header:return eW.footer;case eW.suggestion:return eW.header;case eW.footer:return eW.suggestion}},t}(ts.Component),_1=_r,_2=function(e){function t(t){var n=e.call(this,t)||this;return n.root=ts.createRef(),n.suggestionsControl=ts.createRef(),n.SuggestionsControlOfProperType=_0,n.isComponentMounted=!1,n.onQueryStringChanged=function(e){e!==n.state.queryString&&(n.setState({queryString:e}),n.props.onInputChanged&&n.props.onInputChanged(e),n.updateValue(e))},n.hidePicker=function(){var e=n.isSuggestionsShown;n.setState({suggestionsVisible:!1}),n.props.onSuggestionsHidden&&e&&n.props.onSuggestionsHidden()},n.showPicker=function(e){void 0===e&&(e=!1);var t=n.isSuggestionsShown;n.setState({suggestionsVisible:!0});var r=n.props.inputElement?n.props.inputElement.value:"";e&&n.updateValue(r),n.props.onSuggestionsShown&&!t&&n.props.onSuggestionsShown()},n.completeSuggestion=function(){n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.onChange(n.suggestionsControl.current.currentSuggestion.item)},n.onSuggestionClick=function(e,t,r){n.onChange(t),n._updateSuggestionsVisible(!1)},n.onSuggestionRemove=function(e,t,r){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionsControl.current&&n.suggestionsControl.current.removeSuggestion(r)},n.onKeyDown=function(e){if(n.state.suggestionsVisible&&(!n.props.inputElement||n.props.inputElement.contains(e.target))){var t=e.which;switch(t){case r1:n.hidePicker(),e.preventDefault(),e.stopPropagation();break;case r$:case rQ:!e.shiftKey&&!e.ctrlKey&&n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)?(e.preventDefault(),e.stopPropagation()):n._onValidateInput();break;case ot:n.props.onRemoveSuggestion&&n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.suggestionsControl.current.currentSuggestion&&e.shiftKey&&(n.props.onRemoveSuggestion(n.suggestionsControl.current.currentSuggestion.item),n.suggestionsControl.current.removeSuggestion(),n.forceUpdate(),e.stopPropagation());break;case r9:case oe:n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)&&(e.preventDefault(),e.stopPropagation(),n._updateActiveDescendant())}}},n._onValidateInput=function(){if(n.state.queryString&&n.props.onValidateInput&&n.props.createGenericItem){var e=n.props.createGenericItem(n.state.queryString,n.props.onValidateInput(n.state.queryString)),t=n.suggestionStore.convertSuggestionsToSuggestionItems([e]);n.onChange(t[0].item)}},n._async=new nF(n),i2(n),n.suggestionStore=t.suggestionsStore,n.state={queryString:"",didBind:!1},n}return tp(t,e),Object.defineProperty(t.prototype,"inputText",{get:function(){return this.state.queryString},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suggestions",{get:function(){return this.suggestionStore.suggestions},enumerable:!1,configurable:!0}),t.prototype.forceResolveSuggestion=function(){this.suggestionsControl.current&&this.suggestionsControl.current.hasSuggestionSelected()?this.completeSuggestion():this._onValidateInput()},Object.defineProperty(t.prototype,"currentSelectedSuggestionIndex",{get:function(){return this.suggestionsControl.current?this.suggestionsControl.current.currentSuggestionIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuggestionsShown",{get:function(){return void 0!==this.state.suggestionsVisible&&this.state.suggestionsVisible},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._bindToInputElement(),this.isComponentMounted=!0,this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(){this._bindToInputElement()},t.prototype.componentWillUnmount=function(){this._unbindFromInputElement(),this.isComponentMounted=!1},t.prototype.updateSuggestions=function(e,t){void 0===t&&(t=!1),this.suggestionStore.updateSuggestions(e),t&&this.forceUpdate()},t.prototype.render=function(){var e=this.props.className;return ts.createElement("div",{ref:this.root,className:oG("ms-BasePicker ms-BaseFloatingPicker",e||"")},this.renderSuggestions())},t.prototype.renderSuggestions=function(){var e=this.SuggestionsControlOfProperType;return this.props.suggestionItems&&this.suggestionStore.updateSuggestions(this.props.suggestionItems),this.state.suggestionsVisible?ts.createElement(d$,tf({className:_1.callout,isBeakVisible:!1,gapSpace:5,target:this.props.inputElement,onDismiss:this.hidePicker,directionalHint:cV,directionalHintForRTL:cj,calloutWidth:this.props.calloutWidth?this.props.calloutWidth:0},this.props.pickerCalloutProps),ts.createElement(e,tf({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionsControl,completeSuggestion:this.completeSuggestion,shouldLoopSelection:!1},this.props.pickerSuggestionsProps))):null},t.prototype.onSelectionChange=function(){this.forceUpdate()},t.prototype.updateValue=function(e){""===e?this.updateSuggestionWithZeroState():this._onResolveSuggestions(e)},t.prototype.updateSuggestionWithZeroState=function(){if(this.props.onZeroQuerySuggestion){var e=(0,this.props.onZeroQuerySuggestion)(this.props.selectedItems);this.updateSuggestionsList(e)}else this.hidePicker()},t.prototype.updateSuggestionsList=function(e){var t=this;Array.isArray(e)?this.updateSuggestions(e,!0):e&&e.then&&(this.currentPromise=e,e.then(function(n){e===t.currentPromise&&t.isComponentMounted&&t.updateSuggestions(n,!0)}))},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype._updateActiveDescendant=function(){if(this.props.inputElement&&this.suggestionsControl.current&&this.suggestionsControl.current.selectedElement){var e=this.suggestionsControl.current.selectedElement.getAttribute("id");e&&this.props.inputElement.setAttribute("aria-activedescendant",e)}},t.prototype._onResolveSuggestions=function(e){var t=this.props.onResolveSuggestions(e,this.props.selectedItems);this._updateSuggestionsVisible(!0),null!==t&&this.updateSuggestionsList(t)},t.prototype._updateSuggestionsVisible=function(e){e?this.showPicker():this.hidePicker()},t.prototype._bindToInputElement=function(){this.props.inputElement&&!this.state.didBind&&(this.props.inputElement.addEventListener("keydown",this.onKeyDown),this.setState({didBind:!0}))},t.prototype._unbindFromInputElement=function(){this.props.inputElement&&this.state.didBind&&(this.props.inputElement.removeEventListener("keydown",this.onKeyDown),this.setState({didBind:!1}))},t}(ts.Component);l7([{rawString:".resultContent_f73be5be{display:table-row}.resultContent_f73be5be .resultItem_f73be5be{display:table-cell;vertical-align:bottom}.peoplePickerPersona_f73be5be{width:180px}.peoplePickerPersona_f73be5be .ms-Persona-details{width:100%}.peoplePicker_f73be5be .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_f73be5be{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 12px}"}]);var _5="peoplePickerPersona_f73be5be",_4="peoplePickerPersonaContent_f73be5be",_3=function(e,t){return ts.createElement("div",{className:oG("ms-PeoplePicker-personaContent",_4)},ts.createElement(pQ,tf({presence:void 0!==e.presence?e.presence:U.none,size:V.size40,className:oG("ms-PeoplePicker-Persona",_5),showSecondaryText:!0},e)))};function _6(e,t){var n={key:e,primaryText:e,imageInitials:"!",isValid:t};return t||(n.imageInitials=ak(e,ox())),n}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}tp(t,e),t.defaultProps={onRenderSuggestionsItem:function(e,t){return _3(tf({},e),tf({},t))},createGenericItem:_6}})(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t}(_2)),function(){function e(e){var t=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(e){return t._isSuggestionModel(e)?e:{item:e,selected:!1,ariaLabel:void 0!==t.getAriaLabel?t.getAriaLabel(e):e.name||e.text||e.primaryText}},this.suggestions=[],this.getAriaLabel=e&&e.getAriaLabel}e.prototype.updateSuggestions=function(e){e&&e.length>0?this.suggestions=this.convertSuggestionsToSuggestionItems(e):this.suggestions=[]},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]}}();var _8={host:"ms-HoverCard-host"};function _9(e){var t=e.className;return{host:[l0(_8,e.theme).host,t]}}!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(eq||(eq={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(eG||(eG={}));var _7={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Ee(e){var t,n=e.theme,r=e.needsScroll,o=e.expandedCardFirstFrameRendered,a=e.compactCardHeight,s=e.expandedCardHeight,l=e.className,c=n.palette,u=l0(_7,n);return{root:[u.root,{width:320,pointerEvents:"none",selectors:((t={})[l_]={border:"1px solid WindowText"},t)},l],compactCard:[u.compactCard,{pointerEvents:"auto",position:"relative",height:a}],expandedCard:[u.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:c.neutralLighter}}},o&&{height:s}],expandedCardScroll:[u.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(eK||(eK={}));var Et=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,o=void 0===r?cV:r,a=e.directionalHintFixed,s=e.targetElement,l=e.firstFocus,c=e.trapFocus,u=e.onLeave,d=e.className,p=e.finalHeight,f=e.content,h=e.calloutProps,m=tf(tf(tf({},i$(e,iY)),{className:d,target:s,isBeakVisible:!1,directionalHint:o,directionalHintFixed:a,finalHeight:p,minPagePadding:24,onDismiss:u,gapSpace:n}),h);return ts.createElement(ts.Fragment,null,c?ts.createElement(d1,tf({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),f):ts.createElement(d$,tf({},m),f))},En=oI(),Er=a1(function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=ts.createRef(),n._onKeyDown=function(e){e.which===r1&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return ts.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return n.state.firstFrameRendered||n._async.requestAnimationFrame(function(){n.setState({firstFrameRendered:!0})}),ts.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},ts.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame(function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})})},n._async=new nF(n),i2(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return tp(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,o=e.theme,a=e.mode,s=e.className,l=this.state,c=l.needsScroll,u=l.firstFrameRendered,d=n+r;this._classNames=En(t,{theme:o,compactCardHeight:n,className:s,expandedCardHeight:r,needsScroll:c,expandedCardFirstFrameRendered:a===eK.expanded&&u});var p=ts.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return ts.createElement(Et,tf({},this.props,{content:p,finalHeight:d,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(ts.Component),Ee,void 0,{scope:"ExpandingCard"}),Eo={root:"ms-PlainCard-root"};function Ei(e){var t,n=e.theme,r=e.className;return{root:[l0(Eo,n).root,{pointerEvents:"auto",selectors:((t={})[l_]={border:"1px solid WindowText"},t)},r]}}var Ea=oI(),Es=a1(function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===r1&&n.props.onLeave&&n.props.onLeave(e)},i2(n),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=Ea(t,{theme:n,className:r});var o=ts.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return ts.createElement(Et,tf({},this.props,{content:o,className:this._classNames.root}))},t}(ts.Component),Ei,void 0,{scope:"PlainCard"}),El=oI();a1(function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=ts.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout(function(){n._setDismissedState()},n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout(function(){n.setState(function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:eK.compact,openMode:"keydown"===e.type?eq.hotKey:eq.hover}})},n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e)t instanceof MouseEvent&&("keydown"!==t.type||t.which===r1)&&(n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==r1||n.dismiss(!0));else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:eK.compact,openMode:eq.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState(function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:eK.expanded}})},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,o=e.eventListenerTarget,a=o?n._getTargetElement(o):n._getTargetElement(n.props.target),s=n._nativeDismissEvent;a&&(n._events.on(a,"mouseenter",n._cardOpen),n._events.on(a,"mouseleave",s),t?n._events.on(a,"keydown",n._cardOpen):(n._events.on(a,"focus",n._cardOpen),n._events.on(a,"blur",s)),r?n._events.on(a,"click",n._instantOpenAsExpanded):(n._events.on(a,"mousedown",s),n._events.on(a,"keydown",s)))},i2(n),n._async=new nF(n),n._events=new rv(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:eK.compact,openMode:eq.hover},n}return tp(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout(function(){n.setState({mode:eK.expanded},function(){n.props.onCardExpand&&n.props.onCardExpand()})},this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:eK.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,o=e.setAriaDescribedBy,a=void 0===o||o,s=e.styles,l=e.theme,c=e.className,u=e.type,d=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,h=this.state,m=h.isHoverCardVisible,g=h.mode,v=h.openMode,y=r||iw("hoverCard");this._classNames=El(s,{theme:l,className:c});var b=tf(tf({},i$(this.props,iY)),{id:y,trapFocus:!!p,firstFocus:f||v===eq.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),x=tf(tf(tf({},t),b),{mode:g}),C=tf(tf({},d),b);return ts.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&m?y:void 0,"data-is-focusable":!this.props.target},n,m&&(u===eG.expanding?ts.createElement(Er,tf({},x)):ts.createElement(Es,tf({},C))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return n$().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!!(this.props.shouldBlockHoverCard&&this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:oi,type:eG.expanding},t}(ts.Component),_9,void 0,{scope:"HoverCard"});tN("@fluentui/font-icons-mdl2","8.5.55"),nM();var Ec=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.content,n=e.styles,r=e.theme,o=e.disabled,a=e.visible,s=oI()(n,{theme:r,disabled:o,visible:a});return ts.createElement("div",{className:s.container},ts.createElement("span",{className:s.root},t))},t}(ts.Component),Eu=function(e){return{container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]}},Ed=function(e){return function(t){return nC(Eu(t),{root:[{marginLeft:e.left||e.x,marginTop:e.top||e.y}]})}},Ep=a1(Ec,function(e){var t,n=e.theme,r=e.disabled,o=e.visible;return{container:[{backgroundColor:n.palette.neutralDark},r&&{opacity:.5,selectors:((t={})[l_]={color:"GrayText",opacity:1},t)},!o&&{visibility:"hidden"}],root:[n.fonts.medium,{textAlign:"center",paddingLeft:"3px",paddingRight:"3px",backgroundColor:n.palette.neutralDark,color:n.palette.neutralLight,minWidth:"11px",lineHeight:"17px",height:"17px",display:"inline-block"},r&&{color:n.palette.neutralTertiaryAlt}]}},void 0,{scope:"KeytipContent"}),Ef=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t.prototype.render=function(){var e,t=this.props,n=t.keySequences,r=t.offset,o=t.overflowSetSequence,a=this.props.calloutProps,s=rc(e=o?f0(fZ(n,o)):f0(n));return s?(e=s,r&&(a=tf({coverTarget:!0,directionalHint:cO},a)),a&&void 0!==a.directionalHint||(a=tf(tf({},a),{directionalHint:cU})),ts.createElement(d$,tf({},a,{isBeakVisible:!1,doNotLayer:!0,minPagePadding:0,styles:r?Ed(r):Eu,preventDismissOnScroll:!0,target:e}),ts.createElement(Ep,tf({},this.props)))):ts.createElement(ts.Fragment,null)},t}(ts.Component),Eh=function(e){return{root:[{zIndex:T.KeytipLayer}]}},Em=function(e){return{innerContent:[{position:"absolute",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",visibility:"hidden"}]}},Eg=function(){function e(){this.nodeMap={},this.root={id:fY,children:[],parent:"",keySequences:[]},this.nodeMap[this.root.id]=this.root}return e.prototype.addNode=function(e,t,n){var r=this._getFullSequence(e),o=fJ(r);r.pop();var a=this._getParentID(r),s=this._createNode(o,a,[],e,n);this.nodeMap[t]=s,this.getNodes([a]).forEach(function(e){return e.children.push(o)})},e.prototype.updateNode=function(e,t){var n=this._getFullSequence(e),r=fJ(n);n.pop();var o=this._getParentID(n),a=this.nodeMap[t],s=a.parent;a&&(s!==o&&this._removeChildFromParents(s,a.id),a.id!==r&&this.getNodes([o]).forEach(function(e){var t=e.children.indexOf(a.id);t>=0?e.children[t]=r:e.children.push(r)}),a.id=r,a.keySequences=e.keySequences,a.overflowSetSequence=e.overflowSetSequence,a.onExecute=e.onExecute,a.onReturn=e.onReturn,a.hasDynamicChildren=e.hasDynamicChildren,a.hasMenu=e.hasMenu,a.parent=o,a.disabled=e.disabled)},e.prototype.removeNode=function(e,t){var n=this._getFullSequence(e),r=fJ(n);n.pop(),this._removeChildFromParents(this._getParentID(n),r),this.nodeMap[t]&&delete this.nodeMap[t]},e.prototype.getExactMatchedNode=function(e,t,n){var r=this,o=null!=n?n:n$(),a=this.getNodes(t.children).filter(function(t){return r._getNodeSequence(t)===e&&!t.disabled});if(0!==a.length){var s=a[0];if(1===a.length)return s;var l=s.keySequences,c=s.overflowSetSequence,u=c?fZ(l,c):l,d=f0(u),p=o.querySelectorAll(d);if(a.length<p.length)return s;var f=Array.from(p).findIndex(function(e){var t;return n7(e,null!=(t=o.defaultView)?t:void 0)});if(-1!==f)return a[f];var h=a.find(function(e){return e.hasOverflowSubMenu});return h||s}},e.prototype.getPartiallyMatchedNodes=function(e,t){var n=this;return this.getNodes(t.children).filter(function(t){return 0===n._getNodeSequence(t).indexOf(e)&&!t.disabled})},e.prototype.getChildren=function(e){var t=this;if(!e&&!(e=this.currentKeytip))return[];var n=e.children;return Object.keys(this.nodeMap).reduce(function(e,r){return n.indexOf(t.nodeMap[r].id)>=0&&!t.nodeMap[r].persisted&&e.push(t.nodeMap[r].id),e},[])},e.prototype.getNodes=function(e){var t=this;return Object.keys(this.nodeMap).reduce(function(n,r){return e.indexOf(t.nodeMap[r].id)>=0&&n.push(t.nodeMap[r]),n},[])},e.prototype.getNode=function(e){return of(rm(this.nodeMap),function(t){return t.id===e})},e.prototype.isCurrentKeytipParent=function(e){if(this.currentKeytip){var t=tg([],e.keySequences,!0);e.overflowSetSequence&&(t=fZ(t,e.overflowSetSequence)),t.pop();var n=0===t.length?this.root.id:fJ(t),r=!1;return this.currentKeytip.overflowSetSequence&&(r=fJ(this.currentKeytip.keySequences)===n),r||this.currentKeytip.id===n}return!1},e.prototype._getParentID=function(e){return 0===e.length?this.root.id:fJ(e)},e.prototype._getFullSequence=function(e){var t=tg([],e.keySequences,!0);return e.overflowSetSequence&&(t=fZ(t,e.overflowSetSequence)),t},e.prototype._getNodeSequence=function(e){var t=tg([],e.keySequences,!0);return e.overflowSetSequence&&(t=fZ(t,e.overflowSetSequence)),t[t.length-1]},e.prototype._createNode=function(e,t,n,r,o){var a=this,s=r.keySequences,l=r.hasDynamicChildren,c=r.overflowSetSequence,u=r.hasMenu,d={id:e,keySequences:s,overflowSetSequence:c,parent:t,children:n,onExecute:r.onExecute,onReturn:r.onReturn,hasDynamicChildren:l,hasMenu:u,disabled:r.disabled,persisted:o,hasOverflowSubMenu:r.hasOverflowSubMenu};return d.children=Object.keys(this.nodeMap).reduce(function(t,n){return a.nodeMap[n].parent===e&&t.push(a.nodeMap[n].id),t},[]),d},e.prototype._removeChildFromParents=function(e,t){this.getNodes([e]).forEach(function(e){var n=e.children.indexOf(t);n>=0&&e.children.splice(n,1)})},e}(),Ev={key:aM()?"Control":"Meta",modifierKeys:[r0]},Ey=Ev,Eb={key:"Escape"},Ex=oI();a1(function(e){function t(t,n){var r=e.call(this,t,n)||this;r._keytipManager=fQ.getInstance(),r._delayedKeytipQueue=[],r._keyHandled=!1,r._isKeytipInstanceTargetVisible=function(e,t){var n,o=u9(r.context),a=u7(r.context),s=f0(e),l=null!=(n=null==o?void 0:o.querySelectorAll(s))?n:[];return l.length>1&&t<=l.length?n7(l[t-1],null!=a?a:void 0):1===t},r._onDismiss=function(e){r.state.inKeytipMode&&r._exitKeytipMode(e)},r._onKeyDown=function(e){r._keyHandled=!1;var t=e.key;switch(t){case"Tab":case"Enter":case"Spacebar":case" ":case"ArrowUp":case"Up":case"ArrowDown":case"Down":case"ArrowLeft":case"Left":case"ArrowRight":case"Right":r.state.inKeytipMode&&(r._keyHandled=!0,r._exitKeytipMode(e));break;default:"Esc"===t?t="Escape":("OS"===t||"Win"===t)&&(t="Meta");var n={key:t};n.modifierKeys=r._getModifierKey(t,e),r.processTransitionInput(n,e)}},r._onKeyPress=function(e){r.state.inKeytipMode&&!r._keyHandled&&(r.processInput(e.key.toLocaleLowerCase(),e),e.preventDefault(),e.stopPropagation())},r._onKeytipAdded=function(e){var t,n=e.keytip,o=e.uniqueID;if(r._keytipTree.addNode(n,o),r._setKeytips(),r._keytipTree.isCurrentKeytipParent(n)&&(r._delayedKeytipQueue=r._delayedKeytipQueue.concat((null==(t=r._keytipTree.currentKeytip)?void 0:t.children)||[]),r._addKeytipToQueue(fJ(n.keySequences)),r._keytipTree.currentKeytip&&r._keytipTree.currentKeytip.hasDynamicChildren&&0>r._keytipTree.currentKeytip.children.indexOf(n.id))){var a=r._keytipTree.getNode(r._keytipTree.currentKeytip.id);a&&(r._keytipTree.currentKeytip=a)}r._persistedKeytipChecks(n)},r._onKeytipUpdated=function(e){var t,n=e.keytip,o=e.uniqueID;r._keytipTree.updateNode(n,o),r._setKeytips(),r._keytipTree.isCurrentKeytipParent(n)&&(r._delayedKeytipQueue=r._delayedKeytipQueue.concat((null==(t=r._keytipTree.currentKeytip)?void 0:t.children)||[]),r._addKeytipToQueue(fJ(n.keySequences))),r._persistedKeytipChecks(n)},r._persistedKeytipChecks=function(e){if(r._newCurrentKeytipSequences&&og(e.keySequences,r._newCurrentKeytipSequences)&&r._triggerKeytipImmediately(e),r._isCurrentKeytipAnAlias(e)){var t=e.keySequences;e.overflowSetSequence&&(t=fZ(t,e.overflowSetSequence)),r._keytipTree.currentKeytip=r._keytipTree.getNode(fJ(t))}},r._onKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;r._removeKeytipFromQueue(fJ(t.keySequences)),r._keytipTree.removeNode(t,n),r._setKeytips()},r._onPersistedKeytipAdded=function(e){var t=e.keytip,n=e.uniqueID;r._keytipTree.addNode(t,n,!0)},r._onPersistedKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;r._keytipTree.removeNode(t,n)},r._onPersistedKeytipExecute=function(e){r._persistedKeytipExecute(e.overflowButtonSequences,e.keytipSequences)},r._setInKeytipMode=function(e){r.setState({inKeytipMode:e}),r._keytipManager.inKeytipMode=e},r._warnIfDuplicateKeytips=function(){var e=r._getDuplicateIds(r._keytipTree.getChildren());e.length&&rN("Duplicate keytips found for "+e.join(", "))},r._getDuplicateIds=function(e){var t={};return e.filter(function(e){return t[e]=t[e]?t[e]+1:1,2===t[e]})},i2(r),r._events=new rv(r),r._async=new nF(r);var o=r._keytipManager.getKeytips();return r.state={inKeytipMode:!1,keytips:o,visibleKeytips:r._getVisibleKeytips(o)},r._buildTree(),r._currentSequence="",r._events.on(r._keytipManager,Q.KEYTIP_ADDED,r._onKeytipAdded),r._events.on(r._keytipManager,Q.KEYTIP_UPDATED,r._onKeytipUpdated),r._events.on(r._keytipManager,Q.KEYTIP_REMOVED,r._onKeytipRemoved),r._events.on(r._keytipManager,Q.PERSISTED_KEYTIP_ADDED,r._onPersistedKeytipAdded),r._events.on(r._keytipManager,Q.PERSISTED_KEYTIP_REMOVED,r._onPersistedKeytipRemoved),r._events.on(r._keytipManager,Q.PERSISTED_KEYTIP_EXECUTE,r._onPersistedKeytipExecute),r}return tp(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.content,r=t.styles,o=this.state,a=o.keytips,s=o.visibleKeytips;return this._classNames=Ex(r,{}),ts.createElement(dY,{styles:Eh},ts.createElement("span",{id:fY,className:this._classNames.innerContent},"".concat(n).concat(f$)),a&&a.map(function(t,n){return ts.createElement("span",{key:n,id:fJ(t.keySequences),className:e._classNames.innerContent},t.keySequences.join(f$))}),s&&s.map(function(e){return ts.createElement(Ef,tf({key:fJ(e.keySequences)},e))}))},t.prototype.componentDidMount=function(){var e=u7(this.context);this._events.on(e,"mouseup",this._onDismiss,!0),this._events.on(e,"pointerup",this._onDismiss,!0),this._events.on(e,"resize",this._onDismiss),this._events.on(e,"keydown",this._onKeyDown,!0),this._events.on(e,"keypress",this._onKeyPress,!0),this._events.on(e,"scroll",this._onDismiss,!0),this._events.on(this._keytipManager,Q.ENTER_KEYTIP_MODE,this._enterKeytipMode),this._events.on(this._keytipManager,Q.EXIT_KEYTIP_MODE,this._exitKeytipMode)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.getCurrentSequence=function(){return this._currentSequence},t.prototype.getKeytipTree=function(){return this._keytipTree},t.prototype.processTransitionInput=function(e,t){var n=this._keytipTree.currentKeytip;fW(this.props.keytipExitSequences,e)&&n?(this._keyHandled=!0,this._exitKeytipMode(t)):fW(this.props.keytipReturnSequences,e)?n&&(this._keyHandled=!0,n.id===this._keytipTree.root.id?this._exitKeytipMode(t):(n.onReturn&&n.onReturn(this._getKtpExecuteTarget(n),this._getKtpTarget(n)),this._currentSequence="",this._keytipTree.currentKeytip=this._keytipTree.getNode(n.parent),this.showKeytips(this._keytipTree.getChildren()),this._warnIfDuplicateKeytips())):fW(this.props.keytipStartSequences,e)&&!n&&(this._keyHandled=!0,this._enterKeytipMode(e),this._warnIfDuplicateKeytips())},t.prototype.processInput=function(e,t){var n=this._currentSequence+e,r=this._keytipTree.currentKeytip;if(r){var o=this._keytipTree.getExactMatchedNode(n,r);if(o){this._keytipTree.currentKeytip=r=o;var a=this._keytipTree.getChildren();r.onExecute&&(r.onExecute(this._getKtpExecuteTarget(r),this._getKtpTarget(r)),r=this._keytipTree.currentKeytip),0!==a.length||r.hasDynamicChildren||r.hasMenu?(this.showKeytips(a),this._warnIfDuplicateKeytips()):this._exitKeytipMode(t),this._currentSequence="";return}var s=this._keytipTree.getPartiallyMatchedNodes(n,r);if(s.length>0){var l=s.filter(function(e){return!e.persisted}).map(function(e){return e.id});this.showKeytips(l),this._currentSequence=n}}},t.prototype.showKeytips=function(e){for(var t=0,n=this._keytipManager.getKeytips();t<n.length;t++){var r=n[t],o=fJ(r.keySequences);r.overflowSetSequence&&(o=fJ(fZ(r.keySequences,r.overflowSetSequence))),e.indexOf(o)>=0?r.visible=!0:r.visible=!1}this._setKeytips()},t.prototype._enterKeytipMode=function(e){this._keytipManager.shouldEnterKeytipMode&&(this._keytipManager.delayUpdatingKeytipChange&&(this._buildTree(),this._setKeytips()),this._keytipTree.currentKeytip=this._keytipTree.root,this.showKeytips(this._keytipTree.getChildren()),this._setInKeytipMode(!0),this.props.onEnterKeytipMode&&this.props.onEnterKeytipMode(e))},t.prototype._buildTree=function(){this._keytipTree=new Eg;for(var e=0,t=Object.keys(this._keytipManager.keytips);e<t.length;e++){var n=t[e],r=this._keytipManager.keytips[n];this._keytipTree.addNode(r.keytip,r.uniqueID)}for(var o=0,a=Object.keys(this._keytipManager.persistedKeytips);o<a.length;o++){var n=a[o],r=this._keytipManager.persistedKeytips[n];this._keytipTree.addNode(r.keytip,r.uniqueID)}},t.prototype._exitKeytipMode=function(e){this._keytipTree.currentKeytip=void 0,this._currentSequence="",this.showKeytips([]),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedKeytipQueue=[],this._setInKeytipMode(!1),this.props.onExitKeytipMode&&this.props.onExitKeytipMode(e)},t.prototype._setKeytips=function(e){void 0===e&&(e=this._keytipManager.getKeytips()),this.setState({keytips:e,visibleKeytips:this._getVisibleKeytips(e)})},t.prototype._persistedKeytipExecute=function(e,t){this._newCurrentKeytipSequences=t;var n=this._keytipTree.getNode(fJ(e));n&&n.onExecute&&n.onExecute(this._getKtpExecuteTarget(n),this._getKtpTarget(n))},t.prototype._getVisibleKeytips=function(e){var t=this,n={};return e.filter(function(e){var r=fJ(e.keySequences);return e.overflowSetSequence&&(r=fJ(fZ(e.keySequences,e.overflowSetSequence))),n[r]=n[r]?n[r]+1:1,e.visible&&t._isKeytipInstanceTargetVisible(e.keySequences,n[r])})},t.prototype._getModifierKey=function(e,t){var n=[];return t.altKey&&"Alt"!==e&&n.push(r0),t.ctrlKey&&"Control"!==e&&n.push(rZ),t.shiftKey&&"Shift"!==e&&n.push(rJ),t.metaKey&&"Meta"!==e&&n.push(ol),n.length?n:void 0},t.prototype._triggerKeytipImmediately=function(e){var t=tg([],e.keySequences,!0);if(e.overflowSetSequence&&(t=fZ(t,e.overflowSetSequence)),this._keytipTree.currentKeytip=this._keytipTree.getNode(fJ(t)),this._keytipTree.currentKeytip){var n=this._keytipTree.getChildren();n.length&&this.showKeytips(n),this._keytipTree.currentKeytip.onExecute&&this._keytipTree.currentKeytip.onExecute(this._getKtpExecuteTarget(this._keytipTree.currentKeytip),this._getKtpTarget(this._keytipTree.currentKeytip))}this._newCurrentKeytipSequences=void 0},t.prototype._addKeytipToQueue=function(e){var t=this;this._delayedKeytipQueue.push(e),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout(function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])},300)},t.prototype._removeKeytipFromQueue=function(e){var t=this,n=this._delayedKeytipQueue.indexOf(e);n>=0&&(this._delayedKeytipQueue.splice(n,1),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout(function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])},300))},t.prototype._getKtpExecuteTarget=function(e){return n$().querySelector(f1(e.id))},t.prototype._getKtpTarget=function(e){return n$().querySelector(f0(e.keySequences))},t.prototype._isCurrentKeytipAnAlias=function(e){var t=this._keytipTree.currentKeytip;return!!(t&&(t.overflowSetSequence||t.persisted)&&og(e.keySequences,t.keySequences))},t.defaultProps={keytipStartSequences:[Ev],keytipExitSequences:[Ey],keytipReturnSequences:[Eb],content:""},t.contextType=ic,t}(ts.Component),Em,void 0,{scope:"KeytipLayer"});var EC=oI(),Ek=5;a1(function(e){function t(t){var n=e.call(this,t)||this;return n._root=ts.createRef(),n._onMouseDown=function(e){var t=n.props,r=t.isEnabled,o=t.onShouldStartSelection;if(!n._isMouseEventOnScrollbar(e)&&!n._isInSelectionToggle(e)&&!n._isTouch&&r&&!n._isDragStartInSelection(e)&&(!o||o(e))&&n._scrollableSurface&&0===e.button&&n._root.current){var a=u7(n.context);n._selectedIndicies={},n._preservedIndicies=void 0,n._events.on(a,"mousemove",n._onAsyncMouseMove,!0),n._events.on(n._scrollableParent,"scroll",n._onAsyncMouseMove),n._events.on(a,"click",n._onMouseUp,!0),n._autoScroll=new rA(n._root.current,a),n._scrollTop=n._scrollableSurface.scrollTop,n._scrollLeft=n._scrollableSurface.scrollLeft,n._rootRect=n._root.current.getBoundingClientRect(),n._onMouseMove(e)}},n._onTouchStart=function(e){n._isTouch=!0,n._async.setTimeout(function(){n._isTouch=!1},0)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._isTouch=!0,n._async.setTimeout(function(){n._isTouch=!1},0))},i2(n),n._async=new nF(n),n._events=new rv(n),n.state={dragRect:void 0},n}return tp(t,e),t.prototype.componentDidMount=function(){var e=u7(this.context),t=u9(this.context);this._scrollableParent=rP(this._root.current),this._scrollableSurface=this._scrollableParent===e?null==t?void 0:t.body:this._scrollableParent;var n=this.props.isDraggingConstrainedToRoot?this._root.current:this._scrollableSurface;this._events.on(n,"mousedown",this._onMouseDown),this._events.on(n,"touchstart",this._onTouchStart,!0),this._events.on(n,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._autoScroll&&this._autoScroll.dispose(),delete this._scrollableParent,delete this._scrollableSurface,this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.rootProps,n=e.children,r=e.theme,o=e.className,a=e.styles,s=this.state.dragRect,l=EC(a,{theme:r,className:o});return ts.createElement("div",tf({},t,{className:l.root,ref:this._root}),n,s&&ts.createElement("div",{className:l.dragMask}),s&&ts.createElement("div",{className:l.box,style:s},ts.createElement("div",{className:l.boxFill})))},t.prototype._isMouseEventOnScrollbar=function(e){var t=e.target,n=t.offsetWidth-t.clientWidth,r=t.offsetHeight-t.clientHeight;if(n||r){var o=t.getBoundingClientRect();if(ox(this.props.theme)){if(e.clientX<o.left+n)return!0}else if(e.clientX>o.left+t.clientWidth)return!0;if(e.clientY>o.top+t.clientHeight)return!0}return!1},t.prototype._getRootRect=function(){return{left:this._rootRect.left+(this._scrollableSurface?this._scrollLeft-this._scrollableSurface.scrollLeft:this._scrollLeft),top:this._rootRect.top+(this._scrollableSurface?this._scrollTop-this._scrollableSurface.scrollTop:this._scrollTop),width:this._rootRect.width,height:this._rootRect.height}},t.prototype._onAsyncMouseMove=function(e){var t=this;this._async.requestAnimationFrame(function(){t._onMouseMove(e)}),e.stopPropagation(),e.preventDefault()},t.prototype._onMouseMove=function(e){if(this._autoScroll){void 0!==e.clientX&&(this._lastMouseEvent=e);var t=this._getRootRect(),n={left:e.clientX-t.left,top:e.clientY-t.top};if(this._dragOrigin||(this._dragOrigin=n),void 0!==e.buttons&&0===e.buttons)this._onMouseUp(e);else if(this.state.dragRect||aE(this._dragOrigin,n)>Ek){if(!this.state.dragRect){var r=this.props.selection;e.shiftKey||r.setAllSelected(!1),this._preservedIndicies=r&&r.getSelectedIndices&&r.getSelectedIndices()}var o=this.props.isDraggingConstrainedToRoot?{left:Math.max(0,Math.min(t.width,this._lastMouseEvent.clientX-t.left)),top:Math.max(0,Math.min(t.height,this._lastMouseEvent.clientY-t.top))}:{left:this._lastMouseEvent.clientX-t.left,top:this._lastMouseEvent.clientY-t.top},a={left:Math.min(this._dragOrigin.left||0,o.left),top:Math.min(this._dragOrigin.top||0,o.top),width:Math.abs(o.left-(this._dragOrigin.left||0)),height:Math.abs(o.top-(this._dragOrigin.top||0))};this._evaluateSelection(a,t),this.setState({dragRect:a})}return!1}},t.prototype._onMouseUp=function(e){var t=u7(this.context);this._events.off(t),this._events.off(this._scrollableParent,"scroll"),this._autoScroll&&this._autoScroll.dispose(),this._autoScroll=this._dragOrigin=this._lastMouseEvent=void 0,this._selectedIndicies=this._itemRectCache=void 0,this.state.dragRect&&(this.setState({dragRect:void 0}),e.preventDefault(),e.stopPropagation())},t.prototype._isPointInRectangle=function(e,t){return!!t.top&&e.top<t.top&&e.bottom>t.top&&!!t.left&&e.left<t.left&&e.right>t.left},t.prototype._isDragStartInSelection=function(e){var t=this.props.selection;if(!this._root.current||t&&0===t.getSelectedCount())return!1;for(var n=this._root.current.querySelectorAll("[data-selection-index]"),r=0;r<n.length;r++){var o=n[r],a=Number(o.getAttribute("data-selection-index"));if(t.isIndexSelected(a)){var s=o.getBoundingClientRect();if(this._isPointInRectangle(s,{left:e.clientX,top:e.clientY}))return!0}}return!1},t.prototype._isInSelectionToggle=function(e){for(var t=e.target;t&&t!==this._root.current;){if("true"===t.getAttribute("data-selection-toggle"))return!0;t=t.parentElement}return!1},t.prototype._evaluateSelection=function(e,t){if(e&&this._root.current){var n=this.props.selection,r=this._root.current.querySelectorAll("[data-selection-index]");this._itemRectCache||(this._itemRectCache={});for(var o=0;o<r.length;o++){var a=r[o],s=a.getAttribute("data-selection-index"),l=this._itemRectCache[s];!l&&(l={left:(l=a.getBoundingClientRect()).left-t.left,top:l.top-t.top,width:l.width,height:l.height,right:l.left-t.left+l.width,bottom:l.top-t.top+l.height}).width>0&&l.height>0&&(this._itemRectCache[s]=l),l.top<e.top+e.height&&l.bottom>e.top&&l.left<e.left+e.width&&l.right>e.left?this._selectedIndicies[s]=!0:delete this._selectedIndicies[s]}var c=this._allSelectedIndices||{};for(var s in this._allSelectedIndices={},this._selectedIndicies)this._selectedIndicies.hasOwnProperty(s)&&(this._allSelectedIndices[s]=!0);if(this._preservedIndicies)for(var u=0,d=this._preservedIndicies;u<d.length;u++){var s=d[u];this._allSelectedIndices[s]=!0}var p=!1;for(var s in this._allSelectedIndices)if(this._allSelectedIndices[s]!==c[s]){p=!0;break}if(!p){for(var s in c)if(this._allSelectedIndices[s]!==c[s]){p=!0;break}}if(p){n.setChangeEvents(!1),n.setAllSelected(!1);for(var f=0,h=Object.keys(this._allSelectedIndices);f<h.length;f++){var s=h[f];n.setIndexSelected(Number(s),!0,!1)}n.setChangeEvents(!0)}}},t.defaultProps={rootTagName:"div",rootProps:{},isEnabled:!0},t.contextType=ic,t}(ts.Component),function(e){var t,n,r,o=e.theme,a=e.className,s=o.palette;return{root:[a,{position:"relative",cursor:"default"}],dragMask:[{position:"absolute",background:"rgba(255, 0, 0, 0)",left:0,top:0,right:0,bottom:0,selectors:((t={})[l_]={background:"none",backgroundColor:"transparent"},t)}],box:[{position:"absolute",boxSizing:"border-box",border:"1px solid ".concat(s.themePrimary),pointerEvents:"none",zIndex:10,selectors:((n={})[l_]={borderColor:"Highlight"},n)}],boxFill:[{position:"absolute",boxSizing:"border-box",backgroundColor:s.themePrimary,opacity:.1,left:0,top:0,right:0,bottom:0,selectors:((r={})[l_]={background:"none",backgroundColor:"transparent"},r)}]}},void 0,{scope:"MarqueeSelection"}),function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"}(eX||(eX={}));var Ew=((eY={})[eX.info]="Info",eY[eX.warning]="Info",eY[eX.error]="ErrorBadge",eY[eX.blocked]="Blocked2",eY[eX.severeWarning]="Warning",eY[eX.success]="Completed",eY),ES="MessageBar",E_=oI(),EE=function(e){switch(e){case eX.blocked:case eX.error:case eX.severeWarning:return"assertive"}return"polite"},EP=function(e){switch(e){case eX.blocked:case eX.error:case eX.severeWarning:return"alert"}return"status"},EI=ts.forwardRef(function(e,t){var n=uU(!1),r=n[0],o=n[1].toggle,a=uq("MessageBar"),s=e.actions,l=e.className,c=e.children,u=e.overflowButtonAriaLabel,d=e.dismissIconProps,p=e.styles,f=e.theme,h=e.messageBarType,m=void 0===h?eX.info:h,g=e.onDismiss,v=void 0===g?void 0:g,y=e.isMultiline,b=void 0===y||y,x=e.truncated,C=e.dismissButtonAriaLabel,k=e.messageBarIconProps,w=e.role,S=e.delayedRender,_=void 0===S||S,E=e.expandButtonProps,P=e.onExpandButtonToggled,I=void 0===P?void 0:P,T=e.showExpandButton,D=ts.useCallback(function(){o(),I&&I(!r)},[r,I,o]),A=i$(e,iI,["className","role"]),R=E_(p,{theme:f,messageBarType:m||eX.info,onDismiss:void 0!==v,actions:void 0!==s,truncated:x,isMultiline:b,expandSingleLine:r,className:l}),N={iconName:r?"DoubleChevronUp":"DoubleChevronDown"},B=s||v?{"aria-describedby":a,role:"region"}:{},M=s?ts.createElement("div",{className:R.actions},s):null,F=v?ts.createElement(mn,{disabled:!1,className:R.dismissal,onClick:v,iconProps:d||{iconName:"Clear"},title:C,ariaLabel:C}):null;return ts.createElement("div",tf({ref:t,className:R.root},B),ts.createElement("div",{className:R.content},ts.createElement("div",{className:R.iconContainer,"aria-hidden":!0},k?ts.createElement(pf,tf({},k,{className:oG(R.icon,k.className)})):ts.createElement(pf,{iconName:Ew[m],className:R.icon})),ts.createElement("div",{className:R.text,id:a,role:w||EP(m),"aria-live":EE(m)},ts.createElement("span",tf({className:R.innerText},A),_?ts.createElement(rz,null,ts.createElement("span",null,c)):ts.createElement("span",null,c))),(T||!b&&!M&&x)&&ts.createElement("div",{className:R.expandSingleLine},ts.createElement(mn,tf({disabled:!1,className:R.expand,onClick:D,iconProps:N,ariaLabel:u,"aria-expanded":r},E))),!b&&M,!b&&F&&ts.createElement("div",{className:R.dismissSingleLine},F),b&&F),b&&M)});EI.displayName=ES;var ET={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},ED=((e$={})[eX.error]="errorBackground",e$[eX.blocked]="errorBackground",e$[eX.success]="successBackground",e$[eX.warning]="warningBackground",e$[eX.severeWarning]="severeWarningBackground",e$[eX.info]="infoBackground",e$),EA=((eQ={})[eX.error]="errorIcon",eQ[eX.blocked]="errorIcon",eQ[eX.success]="successIcon",eQ[eX.warning]="warningIcon",eQ[eX.severeWarning]="severeWarningIcon",eQ[eX.info]="infoIcon",eQ),ER=((eJ={})[eX.error]="#ff0000",eJ[eX.blocked]="#ff0000",eJ[eX.success]="#bad80a",eJ[eX.warning]="#fff100",eJ[eX.severeWarning]="#ff0000",eJ[eX.info]="WindowText",eJ),EN=((eZ={})[eX.error]="#e81123",eZ[eX.blocked]="#e81123",eZ[eX.success]="#107c10",eZ[eX.warning]="#966400",eZ[eX.severeWarning]="#d83b01",eZ[eX.info]="WindowText",eZ);a1(EI,function(e){var t,n,r,o,a,s,l,c,u,d,p,f=e.theme,h=e.className,m=e.onDismiss,g=e.truncated,v=e.isMultiline,y=e.expandSingleLine,b=e.messageBarType,x=void 0===b?eX.info:b,C=f.semanticColors,k=f.fonts,w=lM(0,lR),S=l0(ET,f),_={fontSize:I.xSmall,height:10,lineHeight:"10px",color:C.messageText,selectors:((t={})[l_]=tf(tf({},lF()),{color:"WindowText"}),t)},E=[lO(f,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":_,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[S.root,k.medium,x===eX.error&&S.error,x===eX.blocked&&S.blocked,x===eX.severeWarning&&S.severeWarning,x===eX.success&&S.success,x===eX.warning&&S.warning,v?S.multiline:S.singleline,!v&&m&&S.dismissalSingleLine,!v&&g&&S.expandingSingleLine,{background:C[ED[x]],boxSizing:"border-box",color:C.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:((n={".ms-Link":{color:C.messageLink,selectors:{":hover":{color:C.messageLinkHovered}}}})[l_]=tf(tf({},lF()),{background:"transparent",border:"1px solid ".concat(ER[x]),color:"WindowText"}),n[lE]={border:"1px solid ".concat(EN[x])},n)},v&&{flexDirection:"column"},h],content:[S.content,((r={display:"flex",width:"100%",lineHeight:"normal"})[w]={display:"grid",gridTemplateColumns:"auto 1fr auto",gridTemplateRows:"1fr auto",gridTemplateAreas:'\n            "icon text close"\n            "action action action"\n          '},r)],iconContainer:[S.iconContainer,((o={fontSize:I.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"})[w]={gridArea:"icon"},o)],icon:{color:C[EA[x]],selectors:((a={})[l_]=tf(tf({},lF()),{color:"WindowText"}),a)},text:[S.text,tf(tf({minWidth:0,display:"flex",flexGrow:1,margin:8},k.small),((s={})[w]={gridArea:"text"},(l={})[l_]=tf({},lF()),s.selectors=l,s)),!m&&{marginRight:12}],innerText:[S.innerText,{lineHeight:16,selectors:{"& span a:last-child":{paddingLeft:4}}},g&&{overflow:"visible",whiteSpace:"pre-wrap"},!v&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!v&&!g&&{selectors:((c={})[w]={overflow:"visible",whiteSpace:"pre-wrap"},c)},y&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:[S.dismissSingleLine,((u={})[w]={gridArea:"close"},u)],expandSingleLine:S.expandSingleLine,dismissal:[S.dismissal,E],expand:[S.expand,E],actions:[v?S.actions:S.actionsSingleline,((d={display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",forcedColorAdjust:"auto",MsHighContrastAdjust:"auto"})[w]={gridArea:"action",marginRight:8,marginBottom:8},d.selectors={"& button:nth-child(n+2)":((p={marginLeft:8})[w]={marginBottom:0},p)},d),v&&{marginBottom:8},m&&!v&&{marginRight:0}]}},void 0,{scope:"MessageBar"});var EB={root:"ms-Nav",linkText:"ms-Nav-linkText",compositeLink:"ms-Nav-compositeLink",link:"ms-Nav-link",chevronButton:"ms-Nav-chevronButton",chevronIcon:"ms-Nav-chevron",navItem:"ms-Nav-navItem",navItems:"ms-Nav-navItems",group:"ms-Nav-group",groupContent:"ms-Nav-groupContent"},EM={textContainer:{overflow:"hidden"},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}},EF=function(e){var t,n=e.className,r=e.theme,o=e.isOnTop,a=e.isExpanded,s=e.isGroup,l=e.isLink,c=e.isSelected,u=e.isDisabled,d=e.isButtonEntry,p=e.navHeight,f=void 0===p?44:p,h=e.position,m=e.leftPadding,g=void 0===m?20:m,v=e.leftPaddingExpanded,y=void 0===v?28:v,b=e.rightPadding,x=void 0===b?20:b,C=r.palette,k=r.semanticColors,w=r.fonts,S=l0(EB,r);return{root:[S.root,n,w.medium,{overflowY:"auto",userSelect:"none",WebkitOverflowScrolling:"touch"},o&&[{position:"absolute"},ck.slideRightIn40]],linkText:[S.linkText,{margin:"0 4px",overflow:"hidden",verticalAlign:"middle",textAlign:"left",textOverflow:"ellipsis"}],compositeLink:[S.compositeLink,{display:"block",position:"relative",color:k.bodyText},a&&"is-expanded",c&&"is-selected",u&&"is-disabled",u&&{color:k.disabledText}],link:[S.link,lO(r),{display:"block",position:"relative",height:f,width:"100%",lineHeight:"".concat(f,"px"),textDecoration:"none",cursor:"pointer",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",paddingLeft:g,paddingRight:x,color:k.bodyText,selectors:((t={})[l_]={border:0,selectors:{":focus":{border:"1px solid WindowText"}}},t)},!u&&{selectors:{".ms-Nav-compositeLink:hover &":{backgroundColor:k.bodyBackgroundHovered}}},c&&{color:k.bodyTextChecked,fontWeight:P.semibold,backgroundColor:k.bodyBackgroundChecked,selectors:{"&:after":{borderLeft:"2px solid ".concat(C.themePrimary),content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}},u&&{color:k.disabledText},d&&{color:C.themePrimary}],chevronButton:[S.chevronButton,lO(r),w.small,{display:"block",textAlign:"left",lineHeight:"".concat(f,"px"),margin:"5px 0",padding:"0px, ".concat(x,"px, 0px, ").concat(y,"px"),border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",color:k.bodyText,backgroundColor:"transparent",selectors:{"&:visited":{color:k.bodyText}}},s&&{fontSize:w.large.fontSize,width:"100%",height:f,borderBottom:"1px solid ".concat(k.bodyDivider)},l&&{display:"block",width:y-2,height:f-2,position:"absolute",top:"1px",left:"".concat(h,"px"),zIndex:T.Nav,padding:0,margin:0}],chevronIcon:[S.chevronIcon,{position:"absolute",left:"8px",height:f,display:"inline-flex",alignItems:"center",lineHeight:"".concat(f,"px"),fontSize:w.small.fontSize,transition:"transform .1s linear"},a&&{transform:"rotate(-180deg)"},l&&{top:0}],navItem:[S.navItem,{padding:0}],navItems:[S.navItems,{listStyleType:"none",padding:0,margin:0}],group:[S.group,a&&"is-expanded"],groupContent:[S.groupContent,{display:"none",marginBottom:"40px"},ck.slideDownIn20,a&&{display:"block"}]}},EO=14,EL=3;function EH(e){return!!e&&!/^[a-z0-9+-.]+:\/\//i.test(e)}var Ez=oI();a1(function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=ts.createRef(),n._onRenderLink=function(e){var t=n.props,r=t.styles,o=t.groups,a=Ez(r,{theme:t.theme,groups:o});return ts.createElement("div",{className:a.linkText},e.name)},n._renderGroup=function(e,t){var r=n.props,o=r.styles,a=r.groups,s=r.theme,l=r.onRenderGroupHeader,c=void 0===l?n._renderGroupHeader:l,u=n._isGroupExpanded(e),d=Ez(o,{theme:s,isGroup:!0,isExpanded:u,groups:a}),p=function(t,r){n._onGroupHeaderClicked(e,t)},f=tf(tf({},e),{isExpanded:u,onHeaderClick:p});return ts.createElement("div",{key:t,className:d.group},f.name?c(f,n._renderGroupHeader):null,ts.createElement("div",{className:d.groupContent},n._renderLinks(f.links,0)))},n._renderGroupHeader=function(e){var t,r=n.props,o=r.styles,a=r.groups,s=r.theme,l=r.expandButtonAriaLabel,c=e.isExpanded,u=Ez(o,{theme:s,isGroup:!0,isExpanded:c,groups:a}),d=null!=(t=e.collapseAriaLabel)?t:e.expandAriaLabel,p=(c?d:e.expandAriaLabel)||l,f=e.onHeaderClick,h=f?function(e){f(e,c)}:void 0;return ts.createElement("button",{className:u.chevronButton,onClick:h,"aria-label":p,"aria-expanded":c},ts.createElement(pf,{className:u.chevronIcon,iconName:"ChevronDown"}),e.name)},i2(n),n.state={isGroupCollapsed:{},isLinkExpandStateChanged:!1,selectedKey:t.initialSelectedKey||t.selectedKey},n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.groups,r=e.className,o=e.isOnTop,a=e.role,s=void 0===a?"navigation":a,l=e.theme;if(!n)return null;var c=n.map(this._renderGroup),u=Ez(t,{theme:l,className:r,isOnTop:o,groups:n});return ts.createElement(fp,tf({direction:K.vertical,componentRef:this._focusZone},this.props.focusZoneProps),ts.createElement("nav",{role:s,className:u.root,"aria-label":this.props.ariaLabel},c))},Object.defineProperty(t.prototype,"selectedKey",{get:function(){return this.state.selectedKey},enumerable:!1,configurable:!0}),t.prototype.focus=function(e){return void 0===e&&(e=!1),!!this._focusZone&&!!this._focusZone.current&&this._focusZone.current.focus(e)},t.prototype._renderNavLink=function(e,t,n){var r=this.props,o=r.styles,a=r.groups,s=r.theme,l=e.icon||e.iconProps,c=this._isLinkSelected(e),u=e.ariaCurrent,d=void 0===u?"page":u,p=Ez(o,{theme:s,isSelected:c,isDisabled:e.disabled,isButtonEntry:e.onClick&&!e.forceAnchor,leftPadding:EO*n+EL+24*!l,groups:a}),f=e.url&&e.target&&!EH(e.url)?"noopener noreferrer":void 0,h=this.props.linkAs?oW(this.props.linkAs,h9):h9,m=this.props.onRenderLink?aV(this.props.onRenderLink,this._onRenderLink):this._onRenderLink;return ts.createElement(h,{className:p.link,styles:EM,href:e.url||(e.forceAnchor?"#":void 0),iconProps:e.iconProps||{iconName:e.icon},onClick:e.onClick?this._onNavButtonLinkClicked.bind(this,e):this._onNavAnchorLinkClicked.bind(this,e),title:void 0!==e.title?e.title:e.name,target:e.target,rel:f,disabled:e.disabled,"aria-current":c?d:void 0,"aria-label":e.ariaLabel?e.ariaLabel:void 0,link:e},m(e))},t.prototype._renderCompositeLink=function(e,t,n){var r,o=tf({},i$(e,iY,["onClick"])),a=this.props,s=a.expandButtonAriaLabel,l=a.styles,c=a.groups,u=Ez(l,{theme:a.theme,isExpanded:!!e.isExpanded,isSelected:this._isLinkSelected(e),isLink:!0,isDisabled:e.disabled,position:EO*n+1,groups:c}),d="";if(e.links&&e.links.length>0)if(e.collapseAriaLabel||e.expandAriaLabel){var p=null!=(r=e.collapseAriaLabel)?r:e.expandAriaLabel;d=e.isExpanded?p:e.expandAriaLabel}else d=s?"".concat(e.name," ").concat(s):e.name;return ts.createElement("div",tf({},o,{key:e.key||t,className:u.compositeLink}),e.links&&e.links.length>0?ts.createElement("button",{className:u.chevronButton,onClick:this._onLinkExpandClicked.bind(this,e),"aria-label":d,"aria-expanded":e.isExpanded?"true":"false"},ts.createElement(pf,{className:u.chevronIcon,iconName:"ChevronDown"})):null,this._renderNavLink(e,t,n))},t.prototype._renderLink=function(e,t,n){var r=this.props,o=r.styles,a=r.groups,s=Ez(o,{theme:r.theme,groups:a});return ts.createElement("li",{key:e.key||t,role:"listitem",className:s.navItem},this._renderCompositeLink(e,t,n),e.isExpanded?this._renderLinks(e.links,++n):null)},t.prototype._renderLinks=function(e,t){var n=this;if(!e||!e.length)return null;var r=e.map(function(e,r){return n._renderLink(e,r,t)}),o=this.props,a=o.styles,s=o.groups,l=Ez(a,{theme:o.theme,groups:s});return ts.createElement("ul",{role:"list",className:l.navItems},r)},t.prototype._onGroupHeaderClicked=function(e,t){e.onHeaderClick&&e.onHeaderClick(t,this._isGroupExpanded(e)),void 0===e.isExpanded&&this._toggleCollapsed(e),t&&(t.preventDefault(),t.stopPropagation())},t.prototype._onLinkExpandClicked=function(e,t){var n=this.props.onLinkExpandClick;n&&n(t,e),t.defaultPrevented||(e.isExpanded=!e.isExpanded,this.setState({isLinkExpandStateChanged:!0})),t.preventDefault(),t.stopPropagation()},t.prototype._preventBounce=function(e,t){!e.url&&e.forceAnchor&&t.preventDefault()},t.prototype._onNavAnchorLinkClicked=function(e,t){this._preventBounce(e,t),this.props.onLinkClick&&this.props.onLinkClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._onNavButtonLinkClicked=function(e,t){this._preventBounce(e,t),e.onClick&&e.onClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._isLinkSelected=function(e){if(void 0!==this.props.selectedKey)return e.key===this.props.selectedKey;if(void 0!==this.state.selectedKey)return e.key===this.state.selectedKey;if(void 0===nM()||!e.url)return!1;var t=u9(this.context);(e0=e0||t.createElement("a")).href=e.url||"";var n=e0.href;return location.href===n||location.protocol+"//"+location.host+location.pathname===n||!!location.hash&&(location.hash===e.url||(e0.href=location.hash.substring(1),e0.href===n))},t.prototype._isGroupExpanded=function(e){return void 0!==e.isExpanded?e.isExpanded:e.name&&this.state.isGroupCollapsed.hasOwnProperty(e.name)?!this.state.isGroupCollapsed[e.name]:void 0===e.collapseByDefault||!e.collapseByDefault},t.prototype._toggleCollapsed=function(e){var t;if(e.name){var n=tf(tf({},this.state.isGroupCollapsed),((t={})[e.name]=this._isGroupExpanded(e),t));this.setState({isGroupCollapsed:n})}},t.defaultProps={groups:null},t.contextType=ic,t}(ts.Component),EF,void 0,{scope:"Nav"});var EV=function(e,t){if("u">typeof ResizeObserver){var n=new ResizeObserver(t);return Array.isArray(e)?e.forEach(function(e){return n.observe(e)}):n.observe(e),function(){return n.disconnect()}}var r=function(){return t(void 0)},o=nM(Array.isArray(e)?e[0]:e);if(!o)return function(){};var a=o.requestAnimationFrame(r);return o.addEventListener("resize",r,!1),function(){o.cancelAnimationFrame(a),o.removeEventListener("resize",r,!1)}},EU=function(e){var t=e.onOverflowItemsChanged,n=e.rtl,r=e.pinnedIndex,o=ts.useRef(),a=ts.useRef(),s=uY(function(e){var t=EV(e,function(t){a.current=t?t[0].contentRect.width:e.clientWidth,o.current&&o.current()});return function(){t(),a.current=void 0}}),l=uY(function(e){return s(e.parentElement),function(){return s(null)}});return a8(function(){var e=s.current,c=l.current;if(e&&c){for(var u=[],d=0;d<e.children.length;d++){var p=e.children[d];p instanceof HTMLElement&&p!==c&&u.push(p)}var f=[],h=0;o.current=function(){var e=a.current;if(void 0!==e){for(var t=u.length-1;t>=0;t--){if(void 0===f[t]){var o=n?e-u[t].offsetLeft:u[t].offsetLeft+u[t].offsetWidth;t+1<u.length&&t+1===r&&(h=f[t+1]-o),t===u.length-2&&(h+=c.offsetWidth),f[t]=o+h}if(e>f[t])return void g(t+1)}g(0)}};var m=u.length,g=function(e){m!==e&&(m=e,t(e,u.map(function(t,n){return{ele:t,isOverflowing:n>=e&&n!==r}})))},v=void 0;if(void 0!==a.current){var y=nM(e);if(y){var b=y.requestAnimationFrame(o.current);v=function(){return y.cancelAnimationFrame(b)}}}return function(){v&&v(),g(u.length),o.current=void 0}}}),{menuButtonRef:l}},Ej="PivotItem",EW=function(e){function t(t){var n=e.call(this,t)||this;return i2(n),rF(Ej,t,{linkText:"headerText"}),n}return tp(t,e),t.prototype.render=function(){return ts.createElement("div",tf({},i$(this.props,iY)),this.props.children)},t}(ts.Component),Eq=oI(),EG="Pivot",EK=function(e,t,n,r){return e.getTabId?e.getTabId(n,r):t+"-Tab".concat(r)},EX=function(e,t){var n={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return ts.Children.forEach(ts.Children.toArray(e.children),function(r,o){if(EY(r)){var a=r.props,s=a.linkText,l=th(a,["linkText"]),c=r.props.itemKey||o.toString();n.links.push(tf(tf({headerText:s},l),{itemKey:c})),n.keyToIndexMapping[c]=o,n.keyToTabIdMapping[c]=EK(e,t,c,o)}else r&&rN("The children of a Pivot component must be of type PivotItem to be rendered.")}),n},EY=function(e){var t;return ts.isValidElement(e)&&(null==(t=e.type)?void 0:t.name)===EW.name},E$=ts.forwardRef(function(e,t){var n,r=ts.useRef(null),o=ts.useRef(null),a=uq("Pivot"),s=uj(e.selectedKey,e.defaultSelectedKey),l=s[0],c=s[1],u=e.componentRef,d=e.theme,p=e.linkSize,f=e.linkFormat,h=e.overflowBehavior,m=e.overflowAriaLabel,g=e.focusZoneProps,v=e.overflowButtonAs,y={"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"]},b=i$(e,iY,["aria-label","aria-labelledby"]),x=EX(e,a);ts.useImperativeHandle(u,function(){return{focus:function(){var e;null==(e=r.current)||e.focus()}}});var C=function(e){if(!e)return null;var t=e.itemCount,r=e.itemIcon,o=e.headerText;return ts.createElement("span",{className:n.linkContent},void 0!==r&&ts.createElement("span",{className:n.icon},ts.createElement(pf,{iconName:r})),void 0!==o&&ts.createElement("span",{className:n.text}," ",e.headerText),void 0!==t&&ts.createElement("span",{className:n.count}," (",t,")"))},k=function(e,t,r,o){var a,s=t.itemKey,l=t.headerButtonProps,c=t.onRenderItemLink,u=e.keyToTabIdMapping[s],d=r===s;a=c?c(t,C):C(t);var p=t.headerText||"";p+=t.itemCount?" ("+t.itemCount+")":"",p+=t.itemIcon?" xx":"";var f=t.role&&"tab"!==t.role?{role:t.role}:{role:"tab","aria-selected":d};return ts.createElement(ma,tf({},l,f,{id:u,key:s,className:oG(o,d&&n.linkIsSelected),onClick:function(e){return w(s,e)},onKeyDown:function(e){return S(s,e)},"aria-label":t.ariaLabel,name:t.headerText,keytipProps:t.keytipProps,"data-content":p}),a)},w=function(e,t){t.preventDefault(),_(e,t)},S=function(e,t){t.which===rQ&&(t.preventDefault(),_(e))},_=function(t,n){var r;if(c(t),x=EX(e,a),e.onLinkClick&&x.keyToIndexMapping[t]>=0){var s=x.keyToIndexMapping[t],l=ts.Children.toArray(e.children)[s];EY(l)&&e.onLinkClick(l,n)}null==(r=o.current)||r.dismissMenu()},E=function(t,r){if(e.headersOnly||!t)return null;var o=x.keyToIndexMapping[t],a=x.keyToTabIdMapping[t];return ts.createElement("div",{role:"tabpanel",hidden:!r,key:t,"aria-hidden":!r,"aria-labelledby":a,className:n.itemContainer},ts.Children.toArray(e.children)[o])},P=function(e){return null===e||void 0!==e&&void 0!==x.keyToIndexMapping[e]},I=function(){return P(l)?l:x.links.length?x.links[0].itemKey:void 0};n=Eq(e.styles,{theme:d,linkSize:p,linkFormat:f});var T=I(),D=T?x.keyToIndexMapping[T]:0,A=x.links.map(function(e){return k(x,e,T,n.link)}),R=ts.useMemo(function(){return{items:[],alignTargetEdge:!0,directionalHint:cj}},[]),N=EU({onOverflowItemsChanged:function(e,t){t.forEach(function(e){var t=e.ele,n=e.isOverflowing;return t.dataset.isOverflowing="".concat(n)}),R.items=x.links.slice(e).filter(function(e){return e.itemKey!==T}).map(function(t,r){return t.role="menuitem",{key:t.itemKey||"".concat(e+r),onRender:function(){return k(x,t,T,n.linkInMenu)}}})},rtl:ox(d),pinnedIndex:D}).menuButtonRef,B=v||ma;return ts.createElement("div",tf({ref:t},b),ts.createElement(fp,tf({componentRef:r,role:"tablist"},y,{direction:K.horizontal},g,{className:oG(n.root,null==g?void 0:g.className)}),A,"menu"===h&&ts.createElement(B,{className:oG(n.link,n.overflowMenuButton),elementRef:N,componentRef:o,menuProps:R,menuIconProps:{iconName:"More",style:{color:"inherit"}},ariaLabel:m,role:"tab"})),T&&x.links.map(function(e){return(!0===e.alwaysRender||T===e.itemKey)&&E(e.itemKey,T===e.itemKey)}))});E$.displayName=EG;var EQ={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text",linkInMenu:"ms-Pivot-linkInMenu",overflowMenuButton:"ms-Pivot-overflowMenuButton"},EJ=function(e,t,n){void 0===n&&(n=!1);var r,o,a,s=e.linkSize,l=e.linkFormat,c=e.theme,u=c.semanticColors,d=c.fonts,p="large"===s,f="tabs"===l;return[d.medium,{color:u.actionLink,padding:"0 8px",position:"relative",backgroundColor:"transparent",border:0,borderRadius:0,selectors:{":hover":{backgroundColor:u.buttonBackgroundHovered,color:u.buttonTextHovered,cursor:"pointer"},":active":{backgroundColor:u.buttonBackgroundPressed,color:u.buttonTextHovered},":focus":{outline:"none"}}},!n&&[{display:"inline-block",lineHeight:44,height:44,marginRight:8,textAlign:"center",selectors:((r={})[".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]={outline:"1px solid ".concat(u.focusBorder)},r[".".concat(i7," &:focus:after, :host(.").concat(i7,") &:focus:after")]={content:"attr(data-content)",position:"relative",border:0},r[":before"]={backgroundColor:"transparent",bottom:0,content:'""',height:2,left:8,position:"absolute",right:8,transition:"left ".concat(li," ").concat(lr,",\n                        right ").concat(li," ").concat(lr)},r[":after"]={color:"transparent",content:"attr(data-content)",display:"block",fontWeight:P.bold,height:1,overflow:"hidden",visibility:"hidden"},r)},p&&{fontSize:d.large.fontSize},f&&[{marginRight:0,height:44,lineHeight:44,backgroundColor:u.buttonBackground,padding:"0 10px",verticalAlign:"top",selectors:((o={":focus":{outlineOffset:"-2px"}})[".".concat(i7," &:focus::before, :host(.").concat(i7,") &:focus::before")]={height:"auto",background:"transparent",transition:"none"},o["&:hover, &:focus"]={color:u.buttonTextCheckedHovered},o["&:active, &:hover"]={color:u.primaryButtonText,backgroundColor:u.primaryButtonBackground},o["&.".concat(t.linkIsSelected)]={backgroundColor:u.primaryButtonBackground,color:u.primaryButtonText,fontWeight:P.regular,selectors:((a={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:0},":hover":{backgroundColor:u.primaryButtonBackgroundHovered,color:u.primaryButtonText},":active":{backgroundColor:u.primaryButtonBackgroundPressed,color:u.primaryButtonText}})[l_]=tf({fontWeight:P.semibold,color:"HighlightText",background:"Highlight"},lF()),a)},o[".".concat(i7," &.").concat(t.linkIsSelected,":focus, :host(.").concat(i7,") &.").concat(t.linkIsSelected,":focus")]={outlineColor:u.primaryButtonText},o)}]]]};a1(E$,function(e){var t,n,r,o,a=e.className,s=e.linkSize,l=e.linkFormat,c=e.theme,u=c.semanticColors,d=c.fonts,p=l0(EQ,c),f="large"===s,h="tabs"===l;return{root:[p.root,d.medium,cv,{position:"relative",color:u.link,whiteSpace:"nowrap"},f&&p.rootIsLarge,h&&p.rootIsTabs,a],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:tg(tg([p.link],EJ(e,p),!0),[((t={})["&[data-is-overflowing='true']"]={display:"none"},t)],!1),overflowMenuButton:[p.overflowMenuButton,((n={visibility:"hidden",position:"absolute",right:0})[".".concat(p.link,"[data-is-overflowing='true'] ~ &")]={visibility:"visible",position:"relative"},n)],linkInMenu:tg(tg([p.linkInMenu],EJ(e,p,!0),!0),[{justifyContent:"start",height:36,lineHeight:36,width:"100%"}],!1),linkIsSelected:[p.link,p.linkIsSelected,{fontWeight:P.semibold,selectors:((r={":before":{backgroundColor:u.inputBackgroundChecked,selectors:((o={})[l_]={backgroundColor:"Highlight"},o)},":hover::before":{left:0,right:0}})[l_]={color:"Highlight"},r)}],linkContent:[p.linkContent,{flex:"0 1 100%",selectors:{"& > * ":{marginLeft:4},"& > *:first-child":{marginLeft:0}}}],text:[p.text,{display:"inline-block",verticalAlign:"top"}],count:[p.count,{display:"inline-block",verticalAlign:"top"}],icon:p.icon}},void 0,{scope:"Pivot"}),function(e){e.links="links",e.tabs="tabs"}(e1||(e1={})),function(e){e.normal="normal",e.large="large"}(e2||(e2={}));var EZ=oI(),E0=.01,E1=function(e){function t(t){var n=e.call(this,t)||this;n._onRenderProgress=function(e){var t=n.props,r=t.ariaLabel,o=t.ariaValueText,a=t.barHeight,s=t.className,l=t.description,c=t.label,u=void 0===c?n.props.title:c,d=t.styles,p=t.theme,f="number"==typeof n.props.percentComplete?Math.min(100,Math.max(0,100*n.props.percentComplete)):void 0,h=EZ(d,{theme:p,className:s,barHeight:a,indeterminate:void 0===f}),m={width:void 0!==f?f+"%":void 0,transition:void 0!==f&&f<E0?"none":void 0},g=void 0!==f?0:void 0,v=void 0!==f?100:void 0,y=void 0!==f?Math.floor(f):void 0;return ts.createElement("div",{className:h.itemProgress},ts.createElement("div",{className:h.progressTrack}),ts.createElement("div",{className:h.progressBar,style:m,role:"progressbar","aria-describedby":l?n._descriptionId:void 0,"aria-label":r,"aria-labelledby":u?n._labelId:void 0,"aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":y,"aria-valuetext":o}))};var r=iw("progress-indicator");return n._labelId=r+"-label",n._descriptionId=r+"-description",n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.barHeight,n=e.className,r=e.label,o=void 0===r?this.props.title:r,a=e.description,s=e.styles,l=e.theme,c=e.progressHidden,u=e.onRenderProgress,d=void 0===u?this._onRenderProgress:u,p="number"==typeof this.props.percentComplete?Math.min(100,Math.max(0,100*this.props.percentComplete)):void 0,f=EZ(s,{theme:l,className:n,barHeight:t,indeterminate:void 0===p});return ts.createElement("div",{className:f.root},o?ts.createElement("div",{id:this._labelId,className:f.itemName},o):null,c?null:d(tf(tf({},this.props),{percentComplete:p}),this._onRenderProgress),a?ts.createElement("div",{id:this._descriptionId,className:f.itemDescription},a):null)},t.defaultProps={label:"",description:"",width:180},t}(ts.Component),E2={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},E5=oL(function(){return n_({"0%":{left:"-30%"},"100%":{left:"100%"}})}),E4=oL(function(){return n_({"100%":{right:"-30%"},"0%":{right:"100%"}})});a1(E1,function(e){var t,n,r,o=ox(e.theme),a=e.className,s=e.indeterminate,l=e.theme,c=e.barHeight,u=void 0===c?2:c,d=l.palette,p=l.semanticColors,f=l.fonts,h=l0(E2,l),m=8,g=18,v=d.neutralLight;return{root:[h.root,f.medium,a],itemName:[h.itemName,cy,{color:p.bodyText,paddingTop:m/2,lineHeight:g+2}],itemDescription:[h.itemDescription,{color:p.bodySubtext,fontSize:f.small.fontSize,lineHeight:g}],itemProgress:[h.itemProgress,{position:"relative",overflow:"hidden",height:u,padding:"".concat(m,"px 0")}],progressTrack:[h.progressTrack,{position:"absolute",width:"100%",height:u,backgroundColor:v,selectors:((t={})[l_]={borderBottom:"1px solid WindowText"},t)}],progressBar:[{backgroundColor:d.themePrimary,height:u,position:"absolute",transition:"width .3s ease",width:0,selectors:((n={})[l_]=tf({backgroundColor:"highlight"},lF()),n)},s?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, ".concat(v," 0%, ")+"".concat(d.themePrimary," 50%, ").concat(v," 100%)"),animation:"".concat(o?E4():E5()," 3s infinite"),selectors:((r={})[l_]={background:"highlight"},r)}:{transition:"width .15s linear"},h.progressBar]}},void 0,{scope:"ProgressIndicator"});var E3={root:"ms-RatingStar-root",rootIsSmall:"ms-RatingStar-root--small",rootIsLarge:"ms-RatingStar-root--large",ratingStar:"ms-RatingStar-container",ratingStarBack:"ms-RatingStar-back",ratingStarFront:"ms-RatingStar-front",ratingButton:"ms-Rating-button",ratingStarIsSmall:"ms-Rating--small",ratingStartIsLarge:"ms-Rating--large",labelText:"ms-Rating-labelText",ratingFocusZone:"ms-Rating-focuszone"};function E6(e,t){var n;return{color:e,selectors:((n={})[l_]={color:t},n)}}function E8(e){var t=e.disabled,n=e.readOnly,r=e.theme,o=r.semanticColors,a=r.palette,s=l0(E3,r),l=16,c=20,u=8,d=2,p=a.neutralSecondary,f=a.themePrimary,h=a.themeDark,m=a.neutralPrimary,g=o.disabledBodySubtext;return{root:[s.root,r.fonts.medium,!t&&!n&&{selectors:{"&:hover":{selectors:{".ms-RatingStar-back":E6(m,"Highlight")}}}}],rootIsSmall:[s.rootIsSmall,{height:l+2*u+"px"}],rootIsLarge:[s.rootIsLarge,{height:c+2*u+"px"}],ratingStar:[s.ratingStar,{display:"inline-block",position:"relative",height:"inherit"}],ratingStarBack:[s.ratingStarBack,{color:p,width:"100%"},t&&E6(g,"GrayText")],ratingStarFront:[s.ratingStarFront,{position:"absolute",height:"100 %",left:"0",top:"0",textAlign:"center",verticalAlign:"middle",overflow:"hidden"},E6(m,"Highlight")],ratingButton:[lO(r),s.ratingButton,{backgroundColor:"transparent",padding:"".concat(u,"px ").concat(d,"px"),boxSizing:"content-box",margin:"0px",border:"none",cursor:"pointer",selectors:{"&:disabled":{cursor:"default"},"&[disabled]":{cursor:"default"}}},!t&&!n&&{selectors:{"&:hover ~ .ms-Rating-button":{selectors:{".ms-RatingStar-back":E6(p,"WindowText"),".ms-RatingStar-front":E6(p,"WindowText")}},"&:hover":{selectors:{".ms-RatingStar-back":{color:f},".ms-RatingStar-front":{color:h}}}}},t&&{cursor:"default"}],ratingStarIsSmall:[s.ratingStarIsSmall,{fontSize:l+"px",lineHeight:l+"px",height:l+"px"}],ratingStarIsLarge:[s.ratingStartIsLarge,{fontSize:c+"px",lineHeight:c+"px",height:c+"px"}],labelText:[s.labelText,lV],ratingFocusZone:[lO(r),s.ratingFocusZone,{display:"inline-block"}]}}!function(e){e[e.Small=0]="Small",e[e.Large=1]="Large"}(e5||(e5={}));var E9=oI(),E7=function(e){return ts.createElement("div",{className:e.classNames.ratingStar},ts.createElement(pf,{className:e.classNames.ratingStarBack,iconName:0===e.fillPercentage||100===e.fillPercentage?e.icon:e.unselectedIcon}),!e.disabled&&ts.createElement(pf,{className:e.classNames.ratingStarFront,iconName:e.icon,style:{width:e.fillPercentage+"%"}}))},Pe=function(e,t){ts.useImperativeHandle(e,function(){return{rating:t}},[t])},Pt=function(e){u0({name:"Rating",props:e,controlledUsage:{valueProp:"rating",defaultValueProp:"defaultRating",onChangeProp:"onChange",readOnlyProp:"readOnly"}})},Pn=function(e,t,n){return Math.min(Math.max(null!=e?e:t,t),n)},Pr=function(e,t){var n=Math.ceil(t),r=100;return e===t?r=100:e===n?r=t%1*100:e>n&&(r=0),r},Po=function(e,t){return"".concat(e,"-star-").concat(t-1)},Pi=ts.forwardRef(function(e,t){var n=uq("Rating"),r=uq("RatingLabel"),o=e.ariaLabel,a=e.ariaLabelFormat,s=e.disabled,l=e.getAriaLabel,c=e.styles,u=e.min,d=void 0===u?+!e.allowZeroStars:u,p=e.max,f=void 0===p?5:p,h=e.readOnly,m=e.size,g=e.theme,v=e.icon,y=void 0===v?"FavoriteStarFill":v,b=e.unselectedIcon,x=void 0===b?"FavoriteStar":b,C=e.onRenderStar,k=Math.max(d,0),w=uj(e.rating,e.defaultRating,e.onChange),S=w[0],_=w[1],E=Pn(S,k,f);Pt(e),Pe(e.componentRef,E);var P=ts.useRef(null),I=uG(P,t);al(P);for(var T=i$(e,iY),D=E9(c,{disabled:s,readOnly:h,theme:g}),A=null==l?void 0:l(E,f),R=o||A,N=[],B=function(e,t){return t?t(e):ts.createElement(E7,tf({},e))},M=function(e){var t=Pr(e,E),o=function(t){(void 0===S||Math.ceil(S)!==e)&&_(e,t)},l=function(t){var n=t.which,r=e;switch(n){case r7:case oe:r=Math.min(f,r+1);break;case r8:case r9:r=Math.max(1,r-1);break;case r6:case r5:r=1;break;case r3:case r4:r=f}r!==e&&(void 0===S||Math.ceil(S)!==r)&&_(r,t)};N.push(ts.createElement("button",tf({className:oG(D.ratingButton,m===e5.Large?D.ratingStarIsLarge:D.ratingStarIsSmall),id:Po(n,e),key:e},e===Math.ceil(E)&&{"data-is-current":!0},{onKeyDown:l,onClick:o,disabled:!!(s||h),role:"radio","aria-hidden":h?"true":void 0,type:"button","aria-checked":e===Math.ceil(E)}),ts.createElement("span",{id:"".concat(r,"-").concat(e),className:D.labelText},aY(a||"",e,f)),B({fillPercentage:t,disabled:s,classNames:D,icon:t>0?y:x,starNum:e,unselectedIcon:x},C)))},F=1;F<=f;F++)M(F);var O=m===e5.Large?D.rootIsLarge:D.rootIsSmall;return ts.createElement("div",tf({ref:I,className:oG("ms-Rating-star",D.root,O),"aria-label":h?void 0:R,id:n,role:h?void 0:"radiogroup"},T),ts.createElement(fp,tf({direction:K.bidirectional,className:oG(D.ratingFocusZone,O),defaultActiveElement:"#"+Po(n,Math.ceil(E))},h&&{allowFocusRoot:!0,disabled:!0,role:"textbox","aria-label":A,"aria-readonly":!0,"data-is-focusable":!0,tabIndex:0}),N))});Pi.displayName="RatingBase",a1(Pi,E8,void 0,{scope:"Rating"});var Pa={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},Ps=function(e){var t,n,r=e.className,o=e.theme,a=l0(Pa,o),s={position:"absolute",pointerEvents:"none"},l={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[a.root,o.fonts.medium,l,r],contentContainer:[a.contentContainer,{overflowY:"always"===e.scrollbarVisibility?"scroll":"auto"},l],stickyAbove:[{top:0,zIndex:1,selectors:((t={})[l_]={borderBottom:"1px solid WindowText"},t)},s],stickyBelow:[{bottom:0,selectors:((n={})[l_]={borderTop:"1px solid WindowText"},n)},s],stickyBelowItems:[{bottom:0},s,{width:"100%"}]}},Pl=ts.createContext({scrollablePane:void 0,window:void 0}),Pc=oI();a1(function(e){function t(t){var n=e.call(this,t)||this;return n._root=ts.createRef(),n._stickyAboveRef=ts.createRef(),n._stickyBelowRef=ts.createRef(),n._contentContainer=ts.createRef(),n.subscribe=function(e){n._subscribers.add(e)},n.unsubscribe=function(e){n._subscribers.delete(e)},n.addSticky=function(e){n._stickies.add(e),n.contentContainer&&(e.setDistanceFromTop(n.contentContainer),n.sortSticky(e))},n.removeSticky=function(e){n._stickies.delete(e),n._removeStickyFromContainers(e),n.notifySubscribers()},n.sortSticky=function(e,t){n.stickyAbove&&n.stickyBelow&&(t&&n._removeStickyFromContainers(e),e.canStickyTop&&e.stickyContentTop&&n._addToStickyContainer(e,n.stickyAbove,e.stickyContentTop),e.canStickyBottom&&e.stickyContentBottom&&n._addToStickyContainer(e,n.stickyBelow,e.stickyContentBottom))},n.updateStickyRefHeights=function(){var e=n._stickies,t=0,r=0;e.forEach(function(e){var o=e.state,a=o.isStickyTop,s=o.isStickyBottom;e.nonStickyContent&&(a&&(t+=e.nonStickyContent.offsetHeight),s&&(r+=e.nonStickyContent.offsetHeight),n._checkStickyStatus(e))}),n.setState({stickyTopHeight:t,stickyBottomHeight:r})},n.notifySubscribers=function(){n.contentContainer&&n._subscribers.forEach(function(e){e(n.contentContainer,n.stickyBelow)})},n.getScrollPosition=function(){return n.contentContainer?n.contentContainer.scrollTop:0},n.syncScrollSticky=function(e){e&&n.contentContainer&&e.syncScroll(n.contentContainer)},n._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:n.subscribe,unsubscribe:n.unsubscribe,addSticky:n.addSticky,removeSticky:n.removeSticky,updateStickyRefHeights:n.updateStickyRefHeights,sortSticky:n.sortSticky,notifySubscribers:n.notifySubscribers,syncScrollSticky:n.syncScrollSticky},window:u7(n.context)}},n._addToStickyContainer=function(e,t,r){if(t.children.length){if(!t.contains(r)){var o=[].slice.call(t.children),a=[];n._stickies.forEach(function(r){t===n.stickyAbove&&e.canStickyTop?a.push(r):e.canStickyBottom&&a.push(r)});for(var s=a.sort(function(e,t){return(e.state.distanceFromTop||0)-(t.state.distanceFromTop||0)}).filter(function(e){var r=t===n.stickyAbove?e.stickyContentTop:e.stickyContentBottom;return!!r&&o.indexOf(r)>-1}),l=void 0,c=0,u=s;c<u.length;c++){var d=u[c];if((d.state.distanceFromTop||0)>=(e.state.distanceFromTop||0)){l=d;break}}var p=null;l&&(p=t===n.stickyAbove?l.stickyContentTop:l.stickyContentBottom),t.insertBefore(r,p)}}else t.appendChild(r)},n._removeStickyFromContainers=function(e){n.stickyAbove&&e.stickyContentTop&&n.stickyAbove.contains(e.stickyContentTop)&&n.stickyAbove.removeChild(e.stickyContentTop),n.stickyBelow&&e.stickyContentBottom&&n.stickyBelow.contains(e.stickyContentBottom)&&n.stickyBelow.removeChild(e.stickyContentBottom)},n._onWindowResize=function(){var e=n._getScrollbarWidth(),t=n._getScrollbarHeight();n.setState({scrollbarWidth:e,scrollbarHeight:t}),n.notifySubscribers()},n._getStickyContainerStyle=function(e,t){return tf(tf({height:e},ox(n.props.theme)?{right:"0",left:"".concat(n.state.scrollbarWidth||n._getScrollbarWidth()||0,"px")}:{left:"0",right:"".concat(n.state.scrollbarWidth||n._getScrollbarWidth()||0,"px")}),t?{top:"0"}:{bottom:"".concat(n.state.scrollbarHeight||n._getScrollbarHeight()||0,"px")})},n._onScroll=function(){var e=n.contentContainer;e&&n._stickies.forEach(function(t){t.syncScroll(e)}),n._notifyThrottled()},n._subscribers=new Set,n._stickies=new Set,i2(n),n.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},n}return tp(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this,t=u7(this.context),n=this.props.initialScrollPosition;this._async=new nF(this),this._notifyThrottled=this._async.throttle(this.notifySubscribers,50),this._events=new rv(this),this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(t,"resize",this._onWindowResize),this.contentContainer&&n&&(this.contentContainer.scrollTop=n),this.setStickiesDistanceFromTop(),this._stickies.forEach(function(t){e.sortSticky(t)}),this.notifySubscribers(),t&&"MutationObserver"in t&&(this._mutationObserver=new MutationObserver(function(t){function n(e){return null!==this.stickyAbove&&null!==this.stickyBelow&&(this.stickyAbove.contains(e.target)||this.stickyBelow.contains(e.target))}var r=e._getScrollbarHeight();if(r!==e.state.scrollbarHeight&&e.setState({scrollbarHeight:r}),e.notifySubscribers(),t.some(n.bind(e)))e.updateStickyRefHeights();else{var o=[];e._stickies.forEach(function(e){e.root&&e.root.contains(t[0].target)&&o.push(e)}),o.length&&o.forEach(function(e){e.forceUpdate()})}}),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._mutationObserver&&this._mutationObserver.disconnect()},t.prototype.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.props.initialScrollPosition!==e.initialScrollPosition||this.props.className!==e.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},t.prototype.componentDidUpdate=function(e,t){var n=this.props.initialScrollPosition;this.contentContainer&&"number"==typeof n&&e.initialScrollPosition!==n&&(this.contentContainer.scrollTop=n),(t.stickyTopHeight!==this.state.stickyTopHeight||t.stickyBottomHeight!==this.state.stickyBottomHeight)&&this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.scrollContainerFocus,r=e.scrollContainerAriaLabel,o=e.theme,a=e.styles,s=e.onScroll,l=this.state,c=l.stickyTopHeight,u=l.stickyBottomHeight,d=Pc(a,{theme:o,className:t,scrollbarVisibility:this.props.scrollbarVisibility}),p=n?{role:"group",tabIndex:0,"aria-label":r,onScroll:s}:{onScroll:s};return ts.createElement("div",tf({},i$(tf({},this.props),iY,["onScroll"]),{ref:this._root,className:d.root}),ts.createElement("div",{ref:this._stickyAboveRef,className:d.stickyAbove,style:this._getStickyContainerStyle(c,!0)}),ts.createElement("div",tf({ref:this._contentContainer},p,{className:d.contentContainer,"data-is-scrollable":!0}),ts.createElement(Pl.Provider,{value:this._getScrollablePaneContext()},this.props.children)),ts.createElement("div",{className:d.stickyBelow,style:this._getStickyContainerStyle(u,!1)},ts.createElement("div",{ref:this._stickyBelowRef,className:d.stickyBelowItems})))},t.prototype.setStickiesDistanceFromTop=function(){var e=this;this.contentContainer&&this._stickies.forEach(function(t){t.setDistanceFromTop(e.contentContainer)})},t.prototype.forceLayoutUpdate=function(){this._onWindowResize()},t.prototype._checkStickyStatus=function(e){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&e.nonStickyContent&&(e.state.isStickyTop||e.state.isStickyBottom?(e.state.isStickyTop&&!this.stickyAbove.contains(e.nonStickyContent)&&e.stickyContentTop&&e.addSticky(e.stickyContentTop),e.state.isStickyBottom&&!this.stickyBelow.contains(e.nonStickyContent)&&e.stickyContentBottom&&e.addSticky(e.stickyContentBottom)):this.contentContainer.contains(e.nonStickyContent)||e.resetSticky())},t.prototype._getScrollbarWidth=function(){var e=this.contentContainer;return e?e.offsetWidth-e.clientWidth:0},t.prototype._getScrollbarHeight=function(){var e=this.contentContainer;return e?e.offsetHeight-e.clientHeight:0},t.contextType=ic,t}(ts.Component),Ps,void 0,{scope:"ScrollablePane"});var Pu="SearchBox",Pd={root:{height:"auto"},icon:{fontSize:"12px"}},Pp={iconName:"Clear"},Pf={ariaLabel:"Clear text"},Ph=oI(),Pm=function(e,t,n){ts.useImperativeHandle(e,function(){return{focus:function(){var e;return null==(e=t.current)?void 0:e.focus()},blur:function(){var e;return null==(e=t.current)?void 0:e.blur()},hasFocus:function(){return n}}},[t,n])},Pg=ts.forwardRef(function(e,t){var n=e.ariaLabel,r=e.className,o=e.defaultValue,a=void 0===o?"":o,s=e.disabled,l=e.underlined,c=e.styles,u=e.labelText,d=e.placeholder,p=void 0===d?u:d,f=e.theme,h=e.clearButtonProps,m=void 0===h?Pf:h,g=e.disableAnimation,v=void 0!==g&&g,y=e.showIcon,b=void 0!==y&&y,x=e.onClear,C=e.onBlur,k=e.onEscape,w=e.onSearch,S=e.onKeyDown,_=e.iconProps,E=e.role,P=e.onChange,I=e.onChanged,T=ts.useState(!1),D=T[0],A=T[1],R=ts.useRef(),N=uj(e.value,a,function(e,t){e&&e.timeStamp===R.current||(R.current=null==e?void 0:e.timeStamp,null==P||P(e,t),null==I||I(t))}),B=N[0],M=N[1],F=String(B),O=ts.useRef(null),L=ts.useRef(null),H=uG(O,t),z=uq(Pu,e.id),V=m.onClick,U=Ph(c,{theme:f,className:r,underlined:l,hasFocus:D,disabled:s,hasInput:F.length>0,disableAnimation:v,showIcon:b}),j=i$(e,iF,["className","placeholder","onFocus","onBlur","value","role"]),W=ts.useCallback(function(e){var t;null==x||x(e),e.defaultPrevented||(M(""),null==(t=L.current)||t.focus(),e.stopPropagation(),e.preventDefault())},[x,M]),q=ts.useCallback(function(e){null==V||V(e),e.defaultPrevented||W(e)},[V,W]),G=function(t){var n;A(!0),null==(n=e.onFocus)||n.call(e,t)},K=function(){L.current&&(L.current.focus(),L.current.selectionStart=L.current.selectionEnd=0)},X=ts.useCallback(function(e){A(!1),null==C||C(e)},[C]),Y=function(e){M(e.target.value,e)},Q=function(e){switch(e.which){case r1:null==k||k(e),F&&!e.defaultPrevented&&W(e);break;case rQ:w&&(w(F),e.preventDefault(),e.stopPropagation());break;default:null==S||S(e),e.defaultPrevented&&e.stopPropagation()}};return Pv(e),Pm(e.componentRef,L,D),ts.createElement("div",{role:E,ref:H,className:U.root,onFocusCapture:G},ts.createElement("div",{className:U.iconContainer,onClick:K,"aria-hidden":!0},ts.createElement(pf,tf({iconName:"Search"},_,{className:U.icon}))),ts.createElement("input",tf({},j,{id:z,className:U.field,placeholder:p,onChange:Y,onInput:Y,onBlur:X,onKeyDown:Q,value:F,disabled:s,role:"searchbox","aria-label":n,ref:L})),F.length>0&&ts.createElement("div",{className:U.clearButton},ts.createElement(mn,tf({onBlur:X,styles:Pd,iconProps:Pp},m,{onClick:q}))))});function Pv(e){u0({name:Pu,props:e,deprecations:{labelText:"placeholder"}})}Pg.displayName=Pu;var Py={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};a1(Pg,function(e){var t,n,r,o,a,s=e.theme,l=e.underlined,c=e.disabled,u=e.hasFocus,d=e.className,p=e.hasInput,f=e.disableAnimation,h=e.showIcon,m=s.palette,g=s.fonts,v=s.semanticColors,y=s.effects,b=l0(Py,s),x={color:v.inputPlaceholderText,opacity:1},C=m.neutralSecondary,k=m.neutralPrimary,w=m.neutralLighter,S=m.neutralLighter,_=m.neutralLighter;return{root:[b.root,g.medium,cv,{color:v.inputText,backgroundColor:v.inputBackground,display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch",padding:"1px 0 1px 4px",borderRadius:y.roundedCorner2,border:"1px solid ".concat(v.inputBorder),height:32,selectors:((t={})[l_]={borderColor:"WindowText"},t[":hover"]={borderColor:v.inputBorderHovered,selectors:((n={})[l_]={borderColor:"Highlight"},n)},t[":hover .".concat(b.iconContainer)]={color:v.inputIconHovered},t)},!u&&p&&{selectors:((r={})[":hover .".concat(b.iconContainer)]={width:4},r[":hover .".concat(b.icon)]={opacity:0,pointerEvents:"none"},r)},u&&["is-active",{position:"relative"},lz(v.inputFocusBorderAlt,l?0:y.roundedCorner2,l?"borderBottom":"border")],h&&[{selectors:((o={})[":hover .".concat(b.iconContainer)]={width:32},o[":hover .".concat(b.icon)]={opacity:1},o)}],c&&["is-disabled",{borderColor:w,backgroundColor:_,pointerEvents:"none",cursor:"default",selectors:((a={})[l_]={borderColor:"GrayText"},a)}],l&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],l&&c&&{backgroundColor:"transparent"},p&&"can-clear",d],iconContainer:[b.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:v.inputIcon,cursor:"text"},u&&{width:4},c&&{color:v.inputIconDisabled},!f&&{transition:"width ".concat(lo)},h&&u&&{width:32}],icon:[b.icon,{opacity:1},u&&{opacity:0,pointerEvents:"none"},!f&&{transition:"opacity ".concat(lo," 0s")},h&&u&&{opacity:1}],clearButton:[b.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:S},"&:hover .ms-Button-icon":{color:k},".ms-Button":{borderRadius:ox(s)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:C}}}],field:[b.field,cv,cC(x),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:v.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},c&&{color:v.disabledText}]}},void 0,{scope:"SearchBox"});var Pb=function(e){function t(t){var n=e.call(this,t)||this;return n.addItems=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e,r=t,o=t;if(o&&o.then)o.then(function(e){var t=n.state.items.concat(e);n.updateItems(t)});else{var a=n.state.items.concat(r);n.updateItems(a)}},n.removeItemAt=function(e){var t=n.state.items;if(n._canRemoveItem(t[e])&&e>-1){n.props.onItemsDeleted&&n.props.onItemsDeleted([t[e]]);var r=t.slice(0,e).concat(t.slice(e+1));n.updateItems(r)}},n.removeItem=function(e){var t=n.state.items.indexOf(e);n.removeItemAt(t)},n.replaceItem=function(e,t){var r=n.state.items,o=r.indexOf(e);if(o>-1){var a=r.slice(0,o).concat(t).concat(r.slice(o+1));n.updateItems(a)}},n.removeItems=function(e){var t=n.state.items,r=e.filter(function(e){return n._canRemoveItem(e)}),o=t.filter(function(e){return -1===r.indexOf(e)}),a=r[0],s=t.indexOf(a);n.props.onItemsDeleted&&n.props.onItemsDeleted(r),n.updateItems(o,s)},n.onCopy=function(e){if(n.props.onCopyItems&&n.selection.getSelectedCount()>0){var t=n.selection.getSelection();n.copyItems(t)}},n.renderItems=function(){var e=n.props.removeButtonAriaLabel,t=n.props.onRenderItem;return n.state.items.map(function(r,o){return t({item:r,index:o,key:r.key?r.key:o,selected:n.selection.isIndexSelected(o),onRemoveItem:function(){return n.removeItem(r)},onItemChange:n.onItemChange,removeButtonAriaLabel:e,onCopyItem:function(e){return n.copyItems([e])}})})},n.onSelectionChanged=function(){n.forceUpdate()},n.onItemChange=function(e,t){var r=n.state.items;if(t>=0){var o=r;o[t]=e,n.updateItems(o)}},i2(n),n.state={items:t.selectedItems||t.defaultSelectedItems||[]},n._defaultSelection=new aq({onSelectionChanged:n.onSelectionChanged}),n}return tp(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.removeSelectedItems=function(){this.state.items.length&&this.selection.getSelectedCount()>0&&this.removeItems(this.selection.getSelection())},t.prototype.updateItems=function(e,t){var n=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},function(){n._onSelectedItemsUpdated(e,t)})},t.prototype.hasSelectedItems=function(){return this.selection.getSelectedCount()>0},t.prototype.componentDidUpdate=function(e,t){this.state.items&&this.state.items!==t.items&&this.selection.setItems(this.state.items)},t.prototype.unselectAll=function(){this.selection.setAllSelected(!1)},t.prototype.highlightedItems=function(){return this.selection.getSelection()},t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items)},Object.defineProperty(t.prototype,"selection",{get:function(){var e;return null!=(e=this.props.selection)?e:this._defaultSelection},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.renderItems()},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.copyItems=function(e){if(this.props.onCopyItems){var t=this.props.onCopyItems(e),n=u9(this.context),r=n.createElement("input");n.body.appendChild(r);try{if(r.value=t,r.select(),!n.execCommand("copy"))throw Error()}catch(e){}finally{n.body.removeChild(r)}}},t.prototype._onSelectedItemsUpdated=function(e,t){this.onChange(e)},t.prototype._canRemoveItem=function(e){return!this.props.canRemoveItem||this.props.canRemoveItem(e)},t.contextType=ic,t}(ts.Component);l7([{rawString:".personaContainer_6625fd9a{border-radius:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:"},{theme:"themeLighterAlt",defaultValue:"#eff6fc"},{rawString:';margin:4px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;position:relative}.personaContainer_6625fd9a::-moz-focus-inner{border:0}.personaContainer_6625fd9a{outline:transparent}.personaContainer_6625fd9a{position:relative}.ms-Fabric--isFocusVisible .personaContainer_6625fd9a:focus:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;pointer-events:none;border:1px solid '},{theme:"focusBorder",defaultValue:"#605e5c"},{rawString:";border-radius:0}.personaContainer_6625fd9a .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}.personaContainer_6625fd9a .ms-Persona-primaryText.hover_6625fd9a{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a .actionButton_6625fd9a:hover{background:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.personaContainer_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:HighlightText}}.personaContainer_6625fd9a:hover{background:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.personaContainer_6625fd9a:hover .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a:hover .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a{background:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .ms-Persona-primaryText{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon:hover{background:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a{border-color:Highlight;background:Highlight;-ms-high-contrast-adjust:none}}.personaContainer_6625fd9a.validationError_6625fd9a .ms-Persona-primaryText{color:"},{theme:"red",defaultValue:"#e81123"},{rawString:"}.personaContainer_6625fd9a.validationError_6625fd9a .ms-Persona-initials{font-size:20px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a{border:1px solid WindowText}}.personaContainer_6625fd9a .itemContent_6625fd9a{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;min-width:0;max-width:100%}.personaContainer_6625fd9a .removeButton_6625fd9a{border-radius:15px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:33px;height:33px;-ms-flex-preferred-size:32px;flex-basis:32px}.personaContainer_6625fd9a .expandButton_6625fd9a{border-radius:15px 0 0 15px;height:33px;width:44px;padding-right:16px;position:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:-17px}.personaContainer_6625fd9a .personaWrapper_6625fd9a{position:relative;display:inherit}.personaContainer_6625fd9a .personaWrapper_6625fd9a .ms-Persona-details{padding:0 8px}.personaContainer_6625fd9a .personaDetails_6625fd9a{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.itemContainer_6625fd9a{display:inline-block;vertical-align:top}"}]);var Px=Object.freeze({__proto__:null,personaContainer:"personaContainer_6625fd9a",hover:"hover_6625fd9a",actionButton:"actionButton_6625fd9a",personaContainerIsSelected:"personaContainerIsSelected_6625fd9a",validationError:"validationError_6625fd9a",itemContent:"itemContent_6625fd9a",removeButton:"removeButton_6625fd9a",expandButton:"expandButton_6625fd9a",personaWrapper:"personaWrapper_6625fd9a",personaDetails:"personaDetails_6625fd9a",itemContainer:"itemContainer_6625fd9a"}),PC=function(e){function t(t){var n=e.call(this,t)||this;return n.persona=ts.createRef(),i2(n),n.state={contextualMenuVisible:!1},n}return tp(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.item,o=n.onExpandItem,a=n.onRemoveItem,s=n.removeButtonAriaLabel,l=n.index,c=n.selected,u=iw();return ts.createElement("div",{ref:this.persona,className:oG("ms-PickerPersona-container",Px.personaContainer,((e={})["is-selected "+Px.personaContainerIsSelected]=c,e),((t={})["is-invalid "+Px.validationError]=!r.isValid,t)),"data-is-focusable":!0,"data-is-sub-focuszone":!0,"data-selection-index":l,role:"listitem","aria-labelledby":"selectedItemPersona-"+u},ts.createElement("div",{hidden:!r.canExpand||void 0===o},ts.createElement(mn,{onClick:this._onClickIconButton(o),iconProps:{iconName:"Add",style:{fontSize:"14px"}},className:oG("ms-PickerItem-removeButton",Px.expandButton,Px.actionButton),ariaLabel:s})),ts.createElement("div",{className:oG(Px.personaWrapper)},ts.createElement("div",{className:oG("ms-PickerItem-content",Px.itemContent),id:"selectedItemPersona-"+u},ts.createElement(pQ,tf({},r,{onRenderCoin:this.props.renderPersonaCoin,onRenderPrimaryText:this.props.renderPrimaryText,size:V.size32}))),ts.createElement(mn,{onClick:this._onClickIconButton(a),iconProps:{iconName:"Cancel",style:{fontSize:"14px"}},className:oG("ms-PickerItem-removeButton",Px.removeButton,Px.actionButton),ariaLabel:s})))},t.prototype._onClickIconButton=function(e){return function(t){t.stopPropagation(),t.preventDefault(),e&&e()}},t}(ts.Component),Pk=function(e){function t(t){var n=e.call(this,t)||this;return n.itemElement=ts.createRef(),n._onClick=function(e){e.preventDefault(),n.props.beginEditing&&!n.props.item.isValid?n.props.beginEditing(n.props.item):n.setState({contextualMenuVisible:!0})},n._onCloseContextualMenu=function(e){n.setState({contextualMenuVisible:!1})},i2(n),n.state={contextualMenuVisible:!1},n}return tp(t,e),t.prototype.render=function(){return ts.createElement("div",{ref:this.itemElement,onContextMenu:this._onClick},this.props.renderedItem,this.state.contextualMenuVisible?ts.createElement(hz,{items:this.props.menuItems,shouldFocusOnMount:!0,target:this.itemElement.current,onDismiss:this._onCloseContextualMenu,directionalHint:cV}):null)},t}(ts.Component),Pw={root:"ms-EditingItem",input:"ms-EditingItem-input"},PS=function(e){var t=ch();if(!t)throw Error("theme is undefined or null in Editing item getStyles function.");var n=t.semanticColors,r=l0(Pw,t);return{root:[r.root,{margin:"4px"}],input:[r.input,{border:"0px",outline:"none",width:"100%",backgroundColor:n.inputBackground,color:n.inputText,selectors:{"::-ms-clear":{display:"none"}}}]}},P_=function(e){function t(t){var n=e.call(this,t)||this;return n._editingFloatingPicker=ts.createRef(),n._renderEditingSuggestions=function(){var e=n.props.onRenderFloatingPicker,t=n.props.floatingPickerProps;return e&&t?ts.createElement(e,tf({componentRef:n._editingFloatingPicker,onChange:n._onSuggestionSelected,inputElement:n._editingInput,selectedItems:[]},t)):ts.createElement(ts.Fragment,null)},n._resolveInputRef=function(e){n._editingInput=e,n.forceUpdate(function(){n._editingInput.focus()})},n._onInputClick=function(){n._editingFloatingPicker.current&&n._editingFloatingPicker.current.showPicker(!0)},n._onInputBlur=function(e){if(n._editingFloatingPicker.current&&null!==e.relatedTarget){var t=e.relatedTarget;-1===t.className.indexOf("ms-Suggestions-itemButton")&&-1===t.className.indexOf("ms-Suggestions-sectionButton")&&n._editingFloatingPicker.current.forceResolveSuggestion()}},n._onInputChange=function(e){var t=e.target.value;""===t?n.props.onRemoveItem&&n.props.onRemoveItem():n._editingFloatingPicker.current&&n._editingFloatingPicker.current.onQueryStringChanged(t)},n._onSuggestionSelected=function(e){n.props.onEditingComplete(n.props.item,e)},i2(n),n.state={contextualMenuVisible:!1},n}return tp(t,e),t.prototype.componentDidMount=function(){var e=(0,this.props.getEditingItemText)(this.props.item);this._editingFloatingPicker.current&&this._editingFloatingPicker.current.onQueryStringChanged(e),this._editingInput.value=e,this._editingInput.focus()},t.prototype.render=function(){var e=iw(),t=i$(this.props,iF),n=oI()(PS);return ts.createElement("div",{"aria-labelledby":"editingItemPersona-"+e,className:n.root},ts.createElement("input",tf({autoCapitalize:"off",autoComplete:"off"},t,{ref:this._resolveInputRef,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onBlur:this._onInputBlur,onClick:this._onInputClick,"data-lpignore":!0,className:n.input,id:e})),this._renderEditingSuggestions())},t.prototype._onInputKeyDown=function(e){(e.which===rY||e.which===ot)&&e.stopPropagation()},t}(ts.Component);!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderItems=function(){return t.state.items.map(function(e,n){return t._renderItem(e,n)})},t._beginEditing=function(e){e.isEditing=!0,t.forceUpdate()},t._completeEditing=function(e,n){e.isEditing=!1,t.replaceItem(e,n)},t}tp(t,e),t.prototype._renderItem=function(e,t){var n=this,r=this.props.removeButtonAriaLabel,o=this.props.onExpandGroup,a={item:e,index:t,key:e.key?e.key:t,selected:this.selection.isIndexSelected(t),onRemoveItem:function(){return n.removeItem(e)},onItemChange:this.onItemChange,removeButtonAriaLabel:r,onCopyItem:function(e){return n.copyItems([e])},onExpandItem:o?function(){return o(e)}:void 0,menuItems:this._createMenuItems(e)},s=a.menuItems.length>0;if(e.isEditing&&s)return ts.createElement(P_,tf({},a,{onRenderFloatingPicker:this.props.onRenderFloatingPicker,floatingPickerProps:this.props.floatingPickerProps,onEditingComplete:this._completeEditing,getEditingItemText:this.props.getEditingItemText}));var l=(0,this.props.onRenderItem)(a);return s?ts.createElement(Pk,{key:a.key,renderedItem:l,beginEditing:this._beginEditing,menuItems:this._createMenuItems(a.item),item:a.item}):l},t.prototype._createMenuItems=function(e){var t=this,n=[];return this.props.editMenuItemText&&this.props.getEditingItemText&&n.push({key:"Edit",text:this.props.editMenuItemText,onClick:function(e,n){t._beginEditing(n.data)},data:e}),this.props.removeMenuItemText&&n.push({key:"Remove",text:this.props.removeMenuItemText,onClick:function(e,n){t.removeItem(n.data)},data:e}),this.props.copyMenuItemText&&n.push({key:"Copy",text:this.props.copyMenuItemText,onClick:function(e,n){t.props.onCopyItems&&t.copyItems([n.data])},data:e}),n},t.defaultProps={onRenderItem:function(e){return ts.createElement(PC,tf({},e))}}}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tp(t,e),t}(Pb));var PE=oI();a1(ts.forwardRef(function(e,t){var n=e.styles,r=e.theme,o=e.className,a=e.vertical,s=e.alignContent,l=e.children,c=PE(n,{theme:r,className:o,alignContent:s,vertical:a});return ts.createElement("div",{className:c.root,ref:t},ts.createElement("div",{className:c.content,role:"separator","aria-orientation":a?"vertical":"horizontal"},l))}),function(e){var t,n,r=e.theme,o=e.alignContent,a=e.vertical,s=e.className,l="start"===o,c="center"===o,u="end"===o;return{root:[r.fonts.medium,{position:"relative"},o&&{textAlign:o},!o&&{textAlign:"center"},a&&(c||!o)&&{verticalAlign:"middle"},a&&l&&{verticalAlign:"top"},a&&u&&{verticalAlign:"bottom"},a&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":((t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1})[l_]={backgroundColor:"WindowText"},t)}},!a&&{padding:"4px 0",selectors:{":before":((n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"})[l_]={backgroundColor:"WindowText"},n)}},s],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},a&&{padding:"12px 0"}]}},void 0,{scope:"Separator"}).displayName="Separator";var PP={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},PI="100%",PT=oL(function(){return n_({"0%":{transform:"translateX(-".concat(PI,")")},"100%":{transform:"translateX(".concat(PI,")")}})}),PD=oL(function(){return n_({"100%":{transform:"translateX(-".concat(PI,")")},"0%":{transform:"translateX(".concat(PI,")")}})});function PA(e){var t,n=e.isDataLoaded,r=e.className,o=e.theme,a=e.transitionAnimationInterval,s=e.shimmerColor,l=e.shimmerWaveColor,c=e.improveCSSPerformance,u=o.semanticColors,d=l0(PP,o),p=ox(o);return{root:[d.root,o.fonts.medium,{position:"relative",height:"auto"},r],shimmerWrapper:[d.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:s||u.disabledBackground,transition:"opacity ".concat(a,"ms"),selectors:((t={})[l_]=tf({background:"WindowText\n                        linear-gradient(\n                          to right,\n                          transparent 0%,\n                          Window 50%,\n                          transparent 100%)\n                        0 0 / 90% 100%\n                        no-repeat"},lF()),t)},n&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"},c?{selectors:{"> div:last-child":{transform:"translateZ(0)"}}}:{selectors:{"> *":{transform:"translateZ(0)"}}}],shimmerGradient:[d.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"".concat(s||u.disabledBackground,"\n                      linear-gradient(\n                        to right,\n                        ").concat(s||u.disabledBackground," 0%,\n                        ").concat(l||u.bodyDivider," 50%,\n                        ").concat(s||u.disabledBackground," 100%)\n                      0 0 / 90% 100%\n                      no-repeat"),transform:"translateX(-".concat(PI,")"),animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:p?PD():PT()}],dataWrapper:[d.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity ".concat(a,"ms")},n&&{opacity:"1",position:"static"}],screenReaderText:lV}}!function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(e4||(e4={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(e3||(e3={}));var PR=oI(),PN={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"},PB=a1(function(e){var t=e.height,n=e.styles,r=e.width,o=void 0===r?"100%":r,a=e.borderStyle,s=PR(n,{theme:e.theme,height:t,borderStyle:a});return ts.createElement("div",{style:{width:o,minWidth:"number"==typeof o?"".concat(o,"px"):"auto"},className:s.root},ts.createElement("svg",{width:"2",height:"2",className:s.topLeftCorner},ts.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),ts.createElement("svg",{width:"2",height:"2",className:s.topRightCorner},ts.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),ts.createElement("svg",{width:"2",height:"2",className:s.bottomRightCorner},ts.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),ts.createElement("svg",{width:"2",height:"2",className:s.bottomLeftCorner},ts.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))},function(e){var t,n=e.height,r=e.borderStyle,o=e.theme,a=o.semanticColors,s=l0(PN,o),l=r||{},c={position:"absolute",fill:a.bodyBackground};return{root:[s.root,o.fonts.medium,{height:"".concat(n,"px"),boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:a.bodyBackground,borderWidth:0,selectors:((t={})[l_]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},l],topLeftCorner:[s.topLeftCorner,{top:"0",left:"0"},c],topRightCorner:[s.topRightCorner,{top:"0",right:"0"},c],bottomRightCorner:[s.bottomRightCorner,{bottom:"0",right:"0"},c],bottomLeftCorner:[s.bottomLeftCorner,{bottom:"0",left:"0"},c]}},void 0,{scope:"ShimmerLine"}),PM=oI(),PF={root:"ms-ShimmerGap-root"},PO=a1(function(e){var t=e.height,n=e.styles,r=e.width,o=void 0===r?"10px":r,a=e.borderStyle,s=PM(n,{theme:e.theme,height:t,borderStyle:a});return ts.createElement("div",{style:{width:o,minWidth:"number"==typeof o?"".concat(o,"px"):"auto"},className:s.root})},function(e){var t,n=e.height,r=e.borderStyle,o=e.theme,a=o.semanticColors,s=l0(PF,o),l=r||{};return{root:[s.root,o.fonts.medium,{backgroundColor:a.bodyBackground,height:"".concat(n,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:a.bodyBackground,selectors:((t={})[l_]={backgroundColor:"Window",borderColor:"Window"},t)},l]}},void 0,{scope:"ShimmerGap"}),PL={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};function PH(e){var t,n,r=e.height,o=e.borderStyle,a=e.theme,s=a.semanticColors,l=l0(PL,a),c=o||{};return{root:[l.root,a.fonts.medium,{width:"".concat(r,"px"),height:"".concat(r,"px"),minWidth:"".concat(r,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:s.bodyBackground,selectors:((t={})[l_]={borderColor:"Window"},t)},c],svg:[l.svg,{display:"block",fill:s.bodyBackground,selectors:((n={})[l_]={fill:"Window"},n)}]}}var Pz=oI(),PV=a1(function(e){var t=e.height,n=e.styles,r=e.borderStyle,o=Pz(n,{theme:e.theme,height:t,borderStyle:r});return ts.createElement("div",{className:o.root},ts.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:o.svg},ts.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))},PH,void 0,{scope:"ShimmerCircle"}),PU=oI(),Pj=function(e){var t=e.styles,n=e.width,r=void 0===n?"auto":n,o=e.shimmerElements,a=e.rowHeight,s=void 0===a?PG(o||[]):a,l=e.flexWrap,c=void 0!==l&&l,u=e.theme,d=e.backgroundColor,p=PU(t,{theme:u,flexWrap:c});return ts.createElement("div",{style:{width:r},className:p.root},PW(o,d,s))};function PW(e,t,n){return e?e.map(function(e,r){var o=e.type,a=th(e,["type"]),s=Pq(a.verticalAlign,o,a.height,t,n);switch(e.type){case e4.circle:return ts.createElement(PV,tf({key:r},a,{styles:s}));case e4.gap:return ts.createElement(PO,tf({key:r},a,{styles:s}));case e4.line:return ts.createElement(PB,tf({key:r},a,{styles:s}))}}):ts.createElement(PB,{height:e3.line})}var Pq=oL(function(e,t,n,r,o){var a,s=o&&n?o-n:0;if(e&&"center"!==e?e&&"top"===e?a={borderBottomWidth:"".concat(s,"px"),borderTopWidth:"0px"}:e&&"bottom"===e&&(a={borderBottomWidth:"0px",borderTopWidth:"".concat(s,"px")}):a={borderBottomWidth:"".concat(s?Math.floor(s/2):0,"px"),borderTopWidth:"".concat(s?Math.ceil(s/2):0,"px")},r)switch(t){case e4.circle:return{root:tf(tf({},a),{borderColor:r}),svg:{fill:r}};case e4.gap:return{root:tf(tf({},a),{borderColor:r,backgroundColor:r})};case e4.line:return{root:tf(tf({},a),{borderColor:r}),topLeftCorner:{fill:r},topRightCorner:{fill:r},bottomLeftCorner:{fill:r},bottomRightCorner:{fill:r}}}return{root:a}});function PG(e){return e.map(function(e){switch(e.type){case e4.circle:e.height||(e.height=e3.circle);break;case e4.line:e.height||(e.height=e3.line);break;case e4.gap:e.height||(e.height=e3.gap)}return e}).reduce(function(e,t){return t.height&&t.height>e?t.height:e},0)}var PK={root:"ms-ShimmerElementsGroup-root"},PX=a1(Pj,function(e){var t=e.flexWrap,n=e.theme;return{root:[l0(PK,n).root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}},void 0,{scope:"ShimmerElementsGroup"}),PY=200,P$="Shimmer",PQ=oI(),PJ=ts.forwardRef(function(e,t){var n=e.styles,r=e.shimmerElements,o=e.children,a=e.width,s=e.className,l=e.customElementsGroup,c=e.theme,u=e.ariaLabel,d=e.shimmerColors,p=e.isDataLoaded,f=void 0!==p&&p,h=e.improveCSSPerformance,m=i$(e,iY),g=PQ(n,{theme:c,isDataLoaded:f,className:s,transitionAnimationInterval:PY,shimmerColor:d&&d.shimmer,shimmerWaveColor:d&&d.shimmerWave,improveCSSPerformance:h||!l}),v=uV({lastTimeoutId:0}),y=u$(),b=y.setTimeout,x=y.clearTimeout,C=ts.useState(f),k=C[0],w=C[1],S={width:a||"100%"};return ts.useEffect(function(){if(f!==k)if(f)return v.lastTimeoutId=b(function(){w(!0)},PY),function(){return x(v.lastTimeoutId)};else w(!1)},[f]),ts.createElement("div",tf({},m,{className:g.root,ref:t}),!k&&ts.createElement("div",{style:S,className:g.shimmerWrapper},ts.createElement("div",{className:g.shimmerGradient}),l||ts.createElement(PX,{shimmerElements:r,backgroundColor:d&&d.background})),o&&ts.createElement("div",{className:g.dataWrapper},o),u&&!f&&ts.createElement("div",{role:"status","aria-live":"polite"},ts.createElement(rz,null,ts.createElement("div",{className:g.screenReaderText},u))))});PJ.displayName=P$;var PZ=a1(PJ,PA,void 0,{scope:"Shimmer"}),P0=oI(),P1=10,P2=7,P5=.95;a1(function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderShimmerPlaceholder=function(e,t){var r=n.props.onRenderCustomPlaceholder,o=r?r(t,e,n._renderDefaultShimmerPlaceholder):n._renderDefaultShimmerPlaceholder(t);return ts.createElement(PZ,{customElementsGroup:o})},n._renderDefaultShimmerPlaceholder=function(e){var t=e.columns,n=e.compact,r=e.selectionMode,o=e.checkboxVisibility,a=e.cellStyleProps,s=void 0===a?CT:a,l=CD.rowHeight,c=CD.compactRowHeight,u=n?c:l+1,d=[];return r!==h.none&&o!==ew.hidden&&d.push(ts.createElement(PX,{key:"checkboxGap",shimmerElements:[{type:e4.gap,width:"40px",height:u}]})),t.forEach(function(e,t){var n=[],r=s.cellLeftPadding+s.cellRightPadding+e.calculatedWidth+(e.isPadded?s.cellExtraRightPadding:0);n.push({type:e4.gap,width:s.cellLeftPadding,height:u}),e.isIconOnly?(n.push({type:e4.line,width:e.calculatedWidth,height:e.calculatedWidth}),n.push({type:e4.gap,width:s.cellRightPadding,height:u})):(n.push({type:e4.line,width:e.calculatedWidth*P5,height:P2}),n.push({type:e4.gap,width:s.cellRightPadding+(e.calculatedWidth-e.calculatedWidth*P5)+(e.isPadded?s.cellExtraRightPadding:0),height:u})),d.push(ts.createElement(PX,{key:t,width:"".concat(r,"px"),shimmerElements:n}))}),d.push(ts.createElement(PX,{key:"endGap",width:"100%",shimmerElements:[{type:e4.gap,width:"100%",height:u}]})),ts.createElement("div",{style:{display:"flex"}},d)},n._shimmerItems=t.shimmerLines?Array(t.shimmerLines):Array(P1),n}return tp(t,e),t.prototype.render=function(){var e=this.props,t=e.detailsListStyles,n=e.enableShimmer,r=e.items,o=e.listProps,a=(e.onRenderCustomPlaceholder,e.removeFadingOverlay),s=(e.shimmerLines,e.styles),l=e.theme,c=e.ariaLabelForGrid,u=e.ariaLabelForShimmer,d=th(e,["detailsListStyles","enableShimmer","items","listProps","onRenderCustomPlaceholder","removeFadingOverlay","shimmerLines","styles","theme","ariaLabelForGrid","ariaLabelForShimmer"]),p=o&&o.className;this._classNames=P0(s,{theme:l});var f=tf(tf({},o),{className:n&&!a?oG(this._classNames.root,p):p});return ts.createElement(wl,tf({},d,{styles:t,items:n?this._shimmerItems:r,isPlaceholderData:n,ariaLabelForGrid:n&&u||c,onRenderMissingItem:this._onRenderShimmerPlaceholder,listProps:f}))},t}(ts.Component),function(e){var t=e.theme.palette;return{root:{position:"relative",selectors:{":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundImage:"linear-gradient(to bottom, transparent 30%, ".concat(t.whiteTranslucent40," 65%,").concat(t.white," 100%)")}}}}},void 0,{scope:"ShimmeredDetailsList"});var P4=1e3,P3=oI(),P6=function(e){return function(t){var n;return(n={})[e]="".concat(t,"%"),n}},P8=function(e,t,n){return n===t?0:(e-t)/(n-t)*100},P9=function(e,t,n,r){ts.useImperativeHandle(e.componentRef,function(){return{get value(){return n},get range(){return r},focus:function(){var e;null==(e=t.current)||e.focus()}}},[r,t,n])},P7=function(e,t){var n=e.step,r=void 0===n?1:n,o=e.className,a=e.disabled,s=void 0!==a&&a,l=e.label,c=e.max,u=void 0===c?10:c,d=e.min,p=void 0===d?0:d,f=e.showValue,h=void 0===f||f,m=e.buttonProps,g=void 0===m?{}:m,v=e.vertical,y=void 0!==v&&v,b=e.snapToStep,x=e.valueFormat,C=e.styles,k=e.theme,w=e.originFromZero,S=e["aria-labelledby"],_=e.ariaLabel,E=void 0===_?e["aria-label"]:_,P=e.ranged,I=e.onChange,T=e.onChanged,D=ts.useRef([]),A=u$(),R=A.setTimeout,N=A.clearTimeout,B=ts.useRef(null),M=u8(),F=uj(e.value,e.defaultValue,function(e,t){return null==I?void 0:I(t,P?[W.latestLowerValue,t]:void 0,e)}),O=F[0],L=F[1],H=uj(e.lowerValue,e.defaultLowerValue,function(e,t){return null==I?void 0:I(W.latestValue,[t,W.latestValue],e)}),z=H[0],V=H[1],U=Math.max(p,Math.min(u,O||0)),j=Math.max(p,Math.min(U,z||0)),W=uV({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:U,latestLowerValue:j});W.latestValue=U,W.latestLowerValue=j;var q=uq("Slider",e.id||(null==g?void 0:g.id)),G=P3(C,{className:o,disabled:s,vertical:y,showTransitions:!b&&!W.isBetweenSteps,showValue:h,ranged:P,theme:k}),K=(u-p)/r,X=function(){N(W.onKeyDownTimer),W.onKeyDownTimer=-1},Y=function(e){X(),T&&(W.onKeyDownTimer=R(function(){T(e,W.latestValue,P?[W.latestLowerValue,W.latestValue]:void 0)},P4))},Q=function(t){var n=e.ariaValueText;if(void 0!==t)return n?n(t):t.toString()},J=function(e,t,n){t=Math.min(u,Math.max(p,t)),n=void 0!==n?Math.min(u,Math.max(p,n)):void 0;var o=0;if(isFinite(r))for(;Math.round(r*Math.pow(10,o))/Math.pow(10,o)!==r;)o++;var a=parseFloat(t.toFixed(o));W.isBetweenSteps=void 0!==n&&n!==a,P?W.isAdjustingLowerValue&&(w?a<=0:a<=W.latestValue)?V(a,e):!W.isAdjustingLowerValue&&(w?a>=0:a>=W.latestLowerValue)&&L(a,e):L(a,e)},Z=function(t){var n=W.isAdjustingLowerValue?W.latestLowerValue:W.latestValue,o=0;switch(t.which){case ok(r8,e.theme):case oe:o=-r,X(),Y(t);break;case ok(r7,e.theme):case r9:o=r,X(),Y(t);break;case r6:n=p,X(),Y(t);break;case r3:n=u,X(),Y(t);break;default:return}J(t,n+o),t.preventDefault(),t.stopPropagation()},ee=function(e,t){var n=0;switch(e.type){case"mousedown":case"mousemove":n=t?e.clientY:e.clientX;break;case"touchstart":case"touchmove":n=t?e.touches[0].clientY:e.touches[0].clientX}return n},et=function(t){var n,r,o=B.current.getBoundingClientRect(),a=(e.vertical?o.height:o.width)/K;if(e.vertical){var s=ee(t,e.vertical);n=(r=o.bottom-s)/a}else{var l=ee(t,e.vertical);n=(r=ox(e.theme)?o.right-l:l-o.left)/a}return n},en=function(e,t){var n=et(e),o=p+r*n;J(e,p+r*Math.round(n),o),t||(e.preventDefault(),e.stopPropagation())},er=function(e){if(P){var t=p+r*et(e);W.isAdjustingLowerValue=t<=W.latestLowerValue||t-W.latestLowerValue<=W.latestValue-t}"mousedown"===e.type?D.current.push(rd(M,"mousemove",en,!0),rd(M,"mouseup",eo,!0)):"touchstart"===e.type&&D.current.push(rd(M,"touchmove",en,!0),rd(M,"touchend",eo,!0)),en(e,!0)},eo=function(e){W.isBetweenSteps=void 0,null==T||T(e,W.latestValue,P?[W.latestLowerValue,W.latestValue]:void 0),ea()},ei=function(e){W.isAdjustingLowerValue=e.target===es.current},ea=ts.useCallback(function(){D.current.forEach(function(e){return e()}),D.current=[]},[]);ts.useEffect(function(){return ea},[ea]);var es=ts.useRef(null),el=ts.useRef(null),ec=ts.useRef(null);P9(e,ec,U,P?[j,U]:void 0);var eu=P6(y?"bottom":ox(e.theme)?"right":"left"),ed=P6(y?"height":"width"),ep=w?0:p,ef=P8(U,p,u),eh=P8(j,p,u),em=P8(ep,p,u),eg=P?ef-eh:Math.abs(em-ef),ev=Math.min(100-ef,100-em),ey=P?eh:Math.min(ef,em),eb={className:G.root,ref:t},ex={className:G.titleLabel,children:l,disabled:s,htmlFor:E?void 0:q},eC=h?{className:G.valueLabel,children:x?x(U):U,disabled:s,htmlFor:s?q:void 0}:void 0,ek=P&&h?{className:G.valueLabel,children:x?x(j):j,disabled:s}:void 0,ew=w?{className:G.zeroTick,style:eu(em)}:void 0,eS={className:oG(G.lineContainer,G.activeSection),style:ed(eg)},e_={className:oG(G.lineContainer,G.inactiveSection),style:ed(ev)},eE={className:oG(G.lineContainer,G.inactiveSection),style:ed(ey)},eP=tf({"aria-disabled":s,role:"slider",tabIndex:s?void 0:0},{"data-is-focusable":!s}),eI=tf(tf(tf({id:q,className:oG(G.slideBox,g.className),ref:ec},!s&&{onMouseDown:er,onTouchStart:er,onKeyDown:Z}),g&&i$(g,iY,["id","className"])),!P&&tf(tf({},eP),{"aria-valuemin":p,"aria-valuemax":u,"aria-valuenow":U,"aria-valuetext":Q(U),"aria-label":E||l,"aria-labelledby":S})),eT=s?{}:{onFocus:ei},eD=tf({ref:el,className:G.thumb,style:eu(ef)},P&&tf(tf(tf({},eP),eT),{id:"max-".concat(q),"aria-valuemin":j,"aria-valuemax":u,"aria-valuenow":U,"aria-valuetext":Q(U),"aria-label":"max ".concat(E||l)})),eA=P?tf(tf(tf({ref:es,className:G.thumb,style:eu(eh)},eP),eT),{id:"min-".concat(q),"aria-valuemin":p,"aria-valuemax":U,"aria-valuenow":j,"aria-valuetext":Q(j),"aria-label":"min ".concat(E||l)}):void 0;return{root:eb,label:ex,sliderBox:eI,container:{className:G.container},valueLabel:eC,lowerValueLabel:ek,thumb:eD,lowerValueThumb:eA,zeroTick:ew,activeTrack:eS,topInactiveTrack:e_,bottomInactiveTrack:eE,sliderLine:{ref:B,className:G.line}}},Ie="SliderBase",It=ts.forwardRef(function(e,t){var n=P7(e,t);return u0({name:Ie,props:e,mutuallyExclusive:{value:"defaultValue"}}),ts.createElement("div",tf({},n.root),n&&ts.createElement(vI,tf({},n.label)),ts.createElement("div",tf({},n.container),e.ranged&&(e.vertical?n.valueLabel&&ts.createElement(vI,tf({},n.valueLabel)):n.lowerValueLabel&&ts.createElement(vI,tf({},n.lowerValueLabel))),ts.createElement("div",tf({},n.sliderBox),ts.createElement("div",tf({},n.sliderLine),e.ranged&&ts.createElement("span",tf({},n.lowerValueThumb)),ts.createElement("span",tf({},n.thumb)),n.zeroTick&&ts.createElement("span",tf({},n.zeroTick)),ts.createElement("span",tf({},n.bottomInactiveTrack)),ts.createElement("span",tf({},n.activeTrack)),ts.createElement("span",tf({},n.topInactiveTrack)))),e.ranged&&e.vertical?n.lowerValueLabel&&ts.createElement(vI,tf({},n.lowerValueLabel)):n.valueLabel&&ts.createElement(vI,tf({},n.valueLabel))),ts.createElement(ac,null))});It.displayName=Ie;var In={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"};a1(It,function(e){var t,n,r,o,a,s,l,c,u,d,p,f,h,m=e.className,g=e.titleLabelClassName,v=e.theme,y=e.vertical,b=e.disabled,x=e.showTransitions,C=e.showValue,k=e.ranged,w=v.semanticColors,S=v.palette,_=l0(In,v),E=w.inputBackgroundCheckedHovered,P=w.inputBackgroundChecked,I=S.neutralSecondaryAlt,T=S.neutralPrimary,D=S.neutralSecondaryAlt,A=w.disabledText,R=w.disabledBackground,N=w.inputBackground,B=w.smallInputBorder,M=w.disabledBorder,F=!b&&{backgroundColor:E,selectors:((t={})[l_]={backgroundColor:"Highlight"},t)},O=!b&&{backgroundColor:I,selectors:((n={})[l_]={borderColor:"Highlight"},n)},L=!b&&{backgroundColor:P,selectors:((r={})[l_]={backgroundColor:"Highlight"},r)},H=!b&&{border:"2px solid ".concat(E),selectors:((o={})[l_]={borderColor:"Highlight"},o)},z=!e.disabled&&{backgroundColor:w.inputPlaceholderBackgroundChecked,selectors:((a={})[l_]={backgroundColor:"Highlight"},a)};return{root:tg(tg(tg(tg(tg([_.root,v.fonts.medium,{userSelect:"none"},y&&{marginRight:8}],[b?void 0:_.enabled],!1),[b?_.disabled:void 0],!1),[y?void 0:_.row],!1),[y?_.column:void 0],!1),[m],!1),titleLabel:[{padding:0},g],container:[_.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},y&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:tg(tg([_.slideBox,!k&&lO(v),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:((s={})[":active .".concat(_.activeSection)]=F,s[":hover .".concat(_.activeSection)]=L,s[":active .".concat(_.inactiveSection)]=O,s[":hover .".concat(_.inactiveSection)]=O,s[":active .".concat(_.thumb)]=H,s[":hover .".concat(_.thumb)]=H,s[":active .".concat(_.zeroTick)]=z,s[":hover .".concat(_.zeroTick)]=z,s[l_]={forcedColorAdjust:"none"},s)},y?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[C?_.showValue:void 0],!1),[x?_.showTransitions:void 0],!1),thumb:[_.thumb,k&&lO(v,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:B,borderRadius:10,boxSizing:"border-box",background:N,display:"block",width:16,height:16,position:"absolute"},y?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:ox(v)?"translateX(50%)":"translateX(-50%)"},x&&{transition:"left ".concat(la," ").concat(ln)},b&&{borderColor:M,selectors:((l={})[l_]={borderColor:"GrayText"},l)}],line:[_.line,{display:"flex",position:"relative"},y?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},y?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[_.activeSection,{background:T,selectors:((c={})[l_]={backgroundColor:"WindowText"},c)},x&&{transition:"width ".concat(la," ").concat(ln)},b&&{background:A,selectors:((u={})[l_]={backgroundColor:"GrayText",borderColor:"GrayText"},u)}],inactiveSection:[_.inactiveSection,{background:D,selectors:((d={})[l_]={border:"1px solid WindowText"},d)},x&&{transition:"width ".concat(la," ").concat(ln)},b&&{background:R,selectors:((p={})[l_]={borderColor:"GrayText"},p)}],zeroTick:[_.zeroTick,{position:"absolute",background:w.disabledBorder,selectors:((f={})[l_]={backgroundColor:"WindowText"},f)},e.disabled&&{background:w.disabledBackground,selectors:((h={})[l_]={backgroundColor:"GrayText"},h)},e.vertical?{width:"16px",height:"1px",transform:ox(v)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[_.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},y?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}},void 0,{scope:"Slider"});var Ir=23,Io=8,Ii=32,Ia=86,Is=10,Il=oL(function(e){var t,n=e.semanticColors,r=n.disabledText,o=n.disabledBackground;return{backgroundColor:o,pointerEvents:"none",cursor:"default",color:r,selectors:((t={":after":{borderColor:o}})[l_]={color:"GrayText"},t)}}),Ic=oL(function(e,t,n){var r,o,a,s=e.palette,l=e.semanticColors,c=e.effects,u=s.neutralSecondary,d=l.buttonText,p=l.buttonText,f=l.buttonBackgroundHovered,h=l.buttonBackgroundPressed,m={root:{outline:"none",display:"block",height:"50%",width:Ir,padding:0,backgroundColor:"transparent",textAlign:"center",cursor:"default",color:u,selectors:{"&.ms-DownButton":{borderRadius:"0 0 ".concat(c.roundedCorner2," 0")},"&.ms-UpButton":{borderRadius:"0 ".concat(c.roundedCorner2," 0 0")}}},rootHovered:{backgroundColor:f,color:d},rootChecked:{backgroundColor:h,color:p,selectors:((r={})[l_]={backgroundColor:"Highlight",color:"HighlightText"},r)},rootPressed:{backgroundColor:h,color:p,selectors:((o={})[l_]={backgroundColor:"Highlight",color:"HighlightText"},o)},rootDisabled:{opacity:.5,selectors:((a={})[l_]={color:"GrayText",opacity:1},a)},icon:{fontSize:Io,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},g={},v={};return nx(m,t?g:v,n)}),Iu=function(e){var t,n,r,o,a=e.theme,s=e.className,l=e.labelPosition,c=e.disabled,u=e.isFocused,d=a.palette,p=a.semanticColors,f=a.effects,h=a.fonts,m=p.inputBorder,g=p.inputBackground,v=p.inputBorderHovered,y=p.inputFocusBorderAlt,b=p.inputText,x=d.white,C=p.inputBackgroundChecked,k=p.disabledText;return{root:[h.medium,{outline:"none",width:"100%",minWidth:Ia},s],labelWrapper:[{display:"inline-flex",alignItems:"center"},l===A.start&&{height:Ii,float:"left",marginRight:Is},l===A.end&&{height:Ii,float:"right",marginLeft:Is},l===A.top&&{marginBottom:-1}],icon:[{padding:"0 5px",fontSize:I.large},c&&{color:k}],label:{pointerEvents:"none",lineHeight:I.large},spinButtonWrapper:[tf(tf({display:"flex",position:"relative",boxSizing:"border-box",height:Ii,minWidth:Ia},lz(m,f.roundedCorner2,"border",0)),{":after":((t={borderWidth:"1px"})[l_]={borderColor:"GrayText"},t)}),(l===A.top||l===A.bottom)&&{width:"100%"},!c&&[{":hover:after":((n={borderColor:v})[l_]={borderColor:"Highlight"},n)},u&&{":hover:after, :after":((r={borderColor:y,borderWidth:"2px"})[l_]={borderColor:"Highlight"},r)}],c&&Il(a)],input:["ms-spinButton-input",{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",flex:1,margin:0,fontSize:h.medium.fontSize,fontFamily:"inherit",color:b,backgroundColor:g,height:"100%",padding:"0 8px 0 9px",outline:0,display:"block",minWidth:Ia-Ir-2,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",cursor:"text",userSelect:"text",borderRadius:"".concat(f.roundedCorner2," 0 0 ").concat(f.roundedCorner2)},!c&&{selectors:{"::selection":{backgroundColor:C,color:x,selectors:((o={})[l_]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},o)}}},c&&Il(a)],arrowButtonsContainer:[{display:"block",height:"100%",cursor:"default"},c&&Il(a)]}};!function(e){e[e.down=-1]="down",e[e.notSpinning=0]="notSpinning",e[e.up=1]="up"}(e6||(e6={}));var Id=oI(),Ip="SpinButton",If={disabled:!1,label:"",step:1,labelPosition:A.start,incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},Ih=400,Im=75,Ig=function(e,t,n){ts.useImperativeHandle(e.componentRef,function(){return{get value(){return n},focus:function(){t.current&&t.current.focus()}}},[t,n])},Iv=function(){},Iy=function(e,t){var n=t.min,r=t.max;return"number"==typeof r&&(e=Math.min(e,r)),"number"==typeof n&&(e=Math.max(e,n)),e},Ib=ts.forwardRef(function(e,t){var n=a4(If,e),r=n.disabled,o=n.label,a=n.min,s=n.max,l=n.step,c=n.defaultValue,u=n.value,d=n.precision,p=n.labelPosition,f=n.iconProps,h=n.incrementButtonIcon,m=n.incrementButtonAriaLabel,g=n.decrementButtonIcon,v=n.decrementButtonAriaLabel,y=n.ariaLabel,b=n.ariaDescribedBy,x=n.upArrowButtonStyles,C=n.downArrowButtonStyles,k=n.theme,w=n.ariaPositionInSet,S=n.ariaSetSize,_=n.ariaValueNow,E=n.ariaValueText,P=n.className,I=n.inputProps,T=n.onDecrement,D=n.onIncrement,R=n.iconButtonProps,N=n.onValidate,B=n.onChange,M=n.styles,F=ts.useRef(null),O=uq("input"),L=uq("Label"),H=ts.useState(!1),z=H[0],V=H[1],U=ts.useState(e6.notSpinning),j=U[0],W=U[1],q=uz(),G=ts.useMemo(function(){return null!=d?d:Math.max(aP(l),0)},[d,l]),K=uj(u,null!=c?c:String(a||0),B),X=K[0],Y=K[1],Q=ts.useState(),J=Q[0],Z=Q[1],ee=ts.useRef({stepTimeoutHandle:-1,latestValue:void 0,latestIntermediateValue:void 0}).current;ee.latestValue=X,ee.latestIntermediateValue=J;var et=uX(u);ts.useEffect(function(){u!==et&&void 0!==J&&Z(void 0)},[u,et,J]);var en=Id(M,{theme:k,disabled:r,isFocused:z,keyboardSpinDirection:j,labelPosition:p,className:P}),er=i$(n,iY,["onBlur","onFocus","className","onChange"]),eo=ts.useCallback(function(e){var t=ee.latestIntermediateValue;if(void 0!==t&&t!==ee.latestValue){var n=void 0;N?n=N(t,e):t&&t.trim().length&&!isNaN(Number(t))&&(n=String(Iy(Number(t),{min:a,max:s}))),void 0!==n&&n!==ee.latestValue&&Y(n,e)}Z(void 0)},[ee,s,a,N,Y]),ei=ts.useCallback(function(){ee.stepTimeoutHandle>=0&&(q.clearTimeout(ee.stepTimeoutHandle),ee.stepTimeoutHandle=-1),(ee.spinningByMouse||j!==e6.notSpinning)&&(ee.spinningByMouse=!1,W(e6.notSpinning))},[ee,j,q]),ea=ts.useCallback(function(e,t){if(t.persist(),void 0!==ee.latestIntermediateValue){("keydown"===t.type||"mousedown"===t.type)&&eo(t),q.requestAnimationFrame(function(){ea(e,t)});return}var n=e(ee.latestValue||"",t);void 0!==n&&n!==ee.latestValue&&Y(n,t);var r=ee.spinningByMouse;ee.spinningByMouse="mousedown"===t.type,ee.spinningByMouse&&(ee.stepTimeoutHandle=q.setTimeout(function(){ea(e,t)},r?Im:Ih))},[ee,q,eo,Y]),es=ts.useCallback(function(e){if(D)return D(e);var t=Iy(Number(e)+Number(l),{max:s});return String(t=aI(t,G))},[G,s,D,l]),el=ts.useCallback(function(e){if(T)return T(e);var t=Iy(Number(e)-Number(l),{min:a});return String(t=aI(t,G))},[G,a,T,l]),ec=function(e){Z(e.target.value)},eu=function(e){var t;F.current&&((ee.spinningByMouse||j!==e6.notSpinning)&&ei(),F.current.select(),V(!0),null==(t=n.onFocus)||t.call(n,e))},ed=function(e){var t;eo(e),V(!1),null==(t=n.onBlur)||t.call(n,e)},ep=function(e){if((e.which===r9||e.which===oe||e.which===rQ)&&(e.preventDefault(),e.stopPropagation()),r)return void ei();var t=e6.notSpinning;switch(e.which){case r9:t=e6.up,ea(es,e);break;case oe:t=e6.down,ea(el,e);break;case rQ:eo(e);break;case r1:Z(void 0)}j!==t&&W(t)},ef=ts.useCallback(function(e){if(r||e.which===r9||e.which===oe)return void ei()},[r,ei]),eh=ts.useCallback(function(e){ea(es,e)},[es,ea]),em=ts.useCallback(function(e){ea(el,e)},[el,ea]);Ig(n,F,X),Ix(n);var eg=!!X&&!isNaN(Number(X)),ev=(f||o)&&ts.createElement("div",{className:en.labelWrapper},f&&ts.createElement(pf,tf({},f,{className:en.icon,"aria-hidden":"true"})),o&&ts.createElement(vI,{id:L,htmlFor:O,className:en.label,disabled:r},o));return ts.createElement("div",{className:en.root,ref:t},p!==A.bottom&&ev,ts.createElement("div",tf({},er,{className:en.spinButtonWrapper,"aria-label":y&&y,"aria-posinset":w,"aria-setsize":S,"data-ktp-target":!0}),ts.createElement("input",tf({value:null!=J?J:X,id:O,onChange:Iv,onInput:ec,className:en.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":o&&L,"aria-valuetext":null!=E?E:eg?void 0:X,"aria-valuenow":_,"aria-valuemin":a,"aria-valuemax":s,"aria-describedby":b,onBlur:ed,ref:F,onFocus:eu,onKeyDown:ep,onKeyUp:ef,disabled:r,"aria-disabled":r,"data-lpignore":!0,"data-ktp-execute-target":!0},I)),ts.createElement("span",{className:en.arrowButtonsContainer},ts.createElement(mn,tf({styles:Ic(k,!0,x),className:"ms-UpButton",checked:j===e6.up,disabled:r,iconProps:h,onMouseDown:eh,onMouseLeave:ei,onMouseUp:ei,tabIndex:-1,ariaLabel:m,"data-is-focusable":!1},R)),ts.createElement(mn,tf({styles:Ic(k,!1,C),className:"ms-DownButton",checked:j===e6.down,disabled:r,iconProps:g,onMouseDown:em,onMouseLeave:ei,onMouseUp:ei,tabIndex:-1,ariaLabel:v,"data-is-focusable":!1},R)))),p===A.bottom&&ev)});Ib.displayName=Ip;var Ix=function(e){u0({name:Ip,props:e,mutuallyExclusive:{value:"defaultValue"}})};a1(Ib,Iu,void 0,{scope:"SpinButton"});var IC=tf;function Ik(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e;return o.isSlot?o(0===(n=ts.Children.toArray(n)).length?t:tf(tf({},t),{children:n})):ts.createElement.apply(ts,tg([e,t],n,!1))}function Iw(e,t){void 0===t&&(t={});var n=t.defaultProp,r=void 0===n?"children":n;return function(t,n,o,a,s){if(ts.isValidElement(n))return n;var l=IP(a,s,t,IE(r,n));if(o){if(o.component){var c=o.component;return ts.createElement(c,tf({},l))}if(o.render)return o.render(l,e)}return ts.createElement(e,tf({},l))}}var IS=oL(function(e){return Iw(e)});function I_(e,t){var n={},r=e,o=function(e){if(t.hasOwnProperty(e)){var o=function(n){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];if(o.length>0)throw Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return II(t[e],n,r[e],r.slots&&r.slots[e],r._defaultStyles&&r._defaultStyles[e],r.theme)};o.isSlot=!0,n[e]=o}};for(var a in t)o(a);return n}function IE(e,t){var n,r;return"string"==typeof t||"number"==typeof t||"boolean"==typeof t?((n={})[e]=t,r=n):r=t,r}function IP(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},a=[],s=0,l=n;s<l.length;s++){var c=l[s];a.push(c&&c.className),IC(o,c)}return o.className=nb([e,a],{rtl:ox(t)}),o}function II(e,t,n,r,o,a){return void 0!==e.create?e.create(t,n,r,o):IS(e)(t,n,r,o,a)}function IT(e,t){void 0===t&&(t={});var n=t.factoryOptions,r=(void 0===n?{}:n).defaultProp,o=function(n){var r=IR(t.displayName,ts.useContext(oJ),t.fields),o=t.state;o&&(n=tf(tf({},n),o(n)));var a=n.theme||r.theme,s=IA(n,a,t.tokens,r.tokens,n.tokens),l=ID(n,a,s,t.styles,r.styles,n.styles);return e(tf(tf({},n),{styles:l,tokens:s,_defaultStyles:l,theme:a}))};return o.displayName=t.displayName||e.name,r&&(o.create=Iw(o,{defaultProp:r})),IC(o,t.statics),o}function ID(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return nx.apply(void 0,r.map(function(r){return"function"==typeof r?r(e,t,n):r}))}function IA(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},a=0,s=n;a<s.length;a++){var l=s[a];l&&(Array.isArray(l="function"==typeof l?l(e,t):l)&&(l=IA.apply(void 0,tg([e,t],l,!1))),IC(o,l))}return o}function IR(e,t,n){var r=["theme","styles","tokens"];return oQ.getSettings(n||r,e,t.customizations)}tN("@fluentui/foundation-legacy","8.4.21");var IN={root:"ms-StackItem"},IB={start:"flex-start",end:"flex-end"},IM=IT(function(e){var t=e.children,n=i$(e,iI);return null==t?null:Ik(I_(e,{root:"div"}).root,tf({},n),t)},{displayName:"StackItem",styles:function(e,t,n){var r=e.grow,o=e.shrink,a=e.disableShrink,s=e.align,l=e.verticalFill,c=e.order,u=e.className,d=e.basis,p=void 0===d?"auto":d,f=l0(IN,t);return{root:[t.fonts.medium,f.root,{flexBasis:p,margin:n.margin,padding:n.padding,height:l?"100%":"auto",width:"auto"},r&&{flexGrow:!0===r?1:r},(a||!r&&!o)&&{flexShrink:0},o&&!a&&{flexShrink:1},s&&{alignSelf:IB[s]||s},c&&{order:c},u]}}}),IF=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},IO=function(e){var t=parseFloat(e),n=isNaN(t)?0:t,r=isNaN(t)?"":t.toString();return{value:n,unit:e.substring(r.toString().length)||"px"}},IL=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"==typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var n=e.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:IO(IF(n[0],t)),columnGap:IO(IF(n[1],t))};var r=IO(IF(e,t));return{rowGap:r,columnGap:r}},IH=function(e,t){if(void 0===e||"number"==typeof e||""===e)return e;var n=e.split(" ");return n.length<2?IF(e,t):n.reduce(function(e,n){return IF(e,t)+" "+IF(n,t)})},Iz={start:"flex-start",end:"flex-end"},IV={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"};function IU(e,t){var n=t.disableShrink,r=t.enableScopedSelectors,o=t.doNotRenderFalsyValues,a=ts.Children.toArray(e);return ts.Children.map(a,function(e){if(!e)return o?null:e;if(!ts.isValidElement(e))return e;if(e.type===ts.Fragment)return e.props.children?IU(e.props.children,{disableShrink:n,enableScopedSelectors:r,doNotRenderFalsyValues:o}):null;var t=e,a={};Ij(e)&&(a={shrink:!n});var s=t.props.className;return ts.cloneElement(t,tf(tf(tf(tf({},a),t.props),s&&{className:s}),r&&{className:oG(IV.child,s)}))})}function Ij(e){return!!e&&"object"==typeof e&&!!e.type&&e.type.displayName===IM.displayName}var IW=IT(function(e){var t=e.as,n=void 0===t?"div":t,r=e.disableShrink,o=void 0!==r&&r,a=e.doNotRenderFalsyValues,s=void 0!==a&&a,l=e.enableScopedSelectors,c=void 0!==l&&l,u=e.wrap,d=th(e,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]);rF("Stack",e,{gap:"tokens.childrenGap",maxHeight:"tokens.maxHeight",maxWidth:"tokens.maxWidth",padding:"tokens.padding"});var p=IU(e.children,{disableShrink:o,enableScopedSelectors:c,doNotRenderFalsyValues:s}),f=i$(d,iI),h=I_(e,{root:n,inner:"div"});return u?Ik(h.root,tf({},f),Ik(h.inner,null,p)):Ik(h.root,tf({},f),p)},{displayName:"Stack",styles:function(e,t,n){var r,o,a,s,l,c,u,d,p,f,h,m,g,v=e.className,y=e.disableShrink,b=e.enableScopedSelectors,x=e.grow,C=e.horizontal,k=e.horizontalAlign,w=e.reversed,S=e.verticalAlign,_=e.verticalFill,E=e.wrap,P=l0(IV,t),I=n&&n.childrenGap?n.childrenGap:e.gap,T=n&&n.maxHeight?n.maxHeight:e.maxHeight,D=n&&n.maxWidth?n.maxWidth:e.maxWidth,A=n&&n.padding?n.padding:e.padding,R=IL(I,t),N=R.rowGap,B=R.columnGap,M="".concat(-.5*B.value).concat(B.unit),F="".concat(-.5*N.value).concat(N.unit),O={textOverflow:"ellipsis"},L="> "+(b?"."+IV.child:"*"),H=((r={})["".concat(L,":not(.").concat(IN.root,")")]={flexShrink:0},r);return E?{root:[P.root,{flexWrap:"wrap",maxWidth:D,maxHeight:T,width:"auto",overflow:"visible",height:"100%"},k&&((o={})[C?"justifyContent":"alignItems"]=Iz[k]||k,o),S&&((a={})[C?"alignItems":"justifyContent"]=Iz[S]||S,a),v,{display:"flex"},C&&{height:_?"100%":"auto"}],inner:[P.inner,((s={display:"flex",flexWrap:"wrap",marginLeft:M,marginRight:M,marginTop:F,marginBottom:F,overflow:"visible",boxSizing:"border-box",padding:IH(A,t),width:0===B.value?"100%":"calc(100% + ".concat(B.value).concat(B.unit,")"),maxWidth:"100vw"})[L]=tf({margin:"".concat(.5*N.value).concat(N.unit," ").concat(.5*B.value).concat(B.unit)},O),s),y&&H,k&&((l={})[C?"justifyContent":"alignItems"]=Iz[k]||k,l),S&&((c={})[C?"alignItems":"justifyContent"]=Iz[S]||S,c),C&&((u={flexDirection:w?"row-reverse":"row",height:0===N.value?"100%":"calc(100% + ".concat(N.value).concat(N.unit,")")})[L]={maxWidth:0===B.value?"100%":"calc(100% - ".concat(B.value).concat(B.unit,")")},u),!C&&((d={flexDirection:w?"column-reverse":"column",height:"calc(100% + ".concat(N.value).concat(N.unit,")")})[L]={maxHeight:0===N.value?"100%":"calc(100% - ".concat(N.value).concat(N.unit,")")},d)]}:{root:[P.root,((p={display:"flex",flexDirection:C?w?"row-reverse":"row":w?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:_?"100%":"auto",maxWidth:D,maxHeight:T,padding:IH(A,t),boxSizing:"border-box"})[L]=O,p),y&&H,x&&{flexGrow:!0===x?1:x},k&&((f={})[C?"justifyContent":"alignItems"]=Iz[k]||k,f),S&&((h={})[C?"alignItems":"justifyContent"]=Iz[S]||S,h),C&&B.value>0&&((m={})[w?"".concat(L,":not(:last-child)"):"".concat(L,":not(:first-child)")]={marginLeft:"".concat(B.value).concat(B.unit)},m),!C&&N.value>0&&((g={})[w?"".concat(L,":not(:last-child)"):"".concat(L,":not(:first-child)")]={marginTop:"".concat(N.value).concat(N.unit)},g),v]}},statics:{Item:IM}});!function(e){e[e.Both=0]="Both",e[e.Header=1]="Header",e[e.Footer=2]="Footer"}(e8||(e8={}));var Iq=function(){var e=new Map;return{getScrollTopInRange:function(t,n){var r,o=t.scrollTop,a=null!=(r=e.get(t))?r:NaN;return a-n<=o&&a+n>=o?a:(e.set(t,o),o)}}},IG=function(e,t,n){return Math.abs(e-t)<=(n<0?0:n)},IK=function(e,t,n){return e<t&&!IG(e,t,n)},IX=1;function IY(e,t){return e&&t&&e.current&&t.current&&e.current.offsetHeight!==t.current.offsetHeight}!function(e){function t(t){var n=e.call(this,t)||this;return n._root=ts.createRef(),n._stickyContentTop=ts.createRef(),n._stickyContentBottom=ts.createRef(),n._nonStickyContent=ts.createRef(),n._placeHolder=ts.createRef(),n.syncScroll=function(e){var t=n.nonStickyContent;t&&n.props.isScrollSynced&&(t.scrollLeft=e.scrollLeft)},n._getContext=function(){return n.context},n._onScrollEvent=function(e,t){var r,o;if(n.root&&n.nonStickyContent){var a=n._getNonStickyDistanceFromTop(e),s=!1,l=!1,c=null==(o=null!=(r=n._getContext().window)?r:window)?void 0:o.document;n.canStickyTop&&(s=IK(a-n._getStickyDistanceFromTop(),e.scrollTop,IX)),n.canStickyBottom&&e.clientHeight-t.offsetHeight<=a&&(l=a-n._scrollUtils.getScrollTopInRange(e,IX)>=n._getStickyDistanceFromTopForFooter(e,t)),(null==c?void 0:c.activeElement)&&n.nonStickyContent.contains(null==c?void 0:c.activeElement)&&(n.state.isStickyTop!==s||n.state.isStickyBottom!==l)?n._activeElement=null==c?void 0:c.activeElement:n._activeElement=void 0,n.setState({isStickyTop:n.canStickyTop&&s,isStickyBottom:l,distanceFromTop:a})}},n._getStickyDistanceFromTop=function(){var e=0;return n.stickyContentTop&&(e=n.stickyContentTop.offsetTop),e},n._getStickyDistanceFromTopForFooter=function(e,t){var r=0;return n.stickyContentBottom&&(r=e.clientHeight-t.offsetHeight+n.stickyContentBottom.offsetTop),r},n._getNonStickyDistanceFromTop=function(e){var t=0,r=n.root;if(r){for(;r&&r.offsetParent!==e;)t+=r.offsetTop,r=r.offsetParent;r&&r.offsetParent===e&&(t+=r.offsetTop)}return t},i2(n),n.state={isStickyTop:!1,isStickyBottom:!1,distanceFromTop:void 0},n._activeElement=void 0,n._scrollUtils=Iq(),n}tp(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeHolder.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentTop",{get:function(){return this._stickyContentTop.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentBottom",{get:function(){return this._stickyContentBottom.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nonStickyContent",{get:function(){return this._nonStickyContent.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyTop",{get:function(){return this.props.stickyPosition===e8.Both||this.props.stickyPosition===e8.Header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===e8.Both||this.props.stickyPosition===e8.Footer},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this._getContext().scrollablePane;e&&(e.subscribe(this._onScrollEvent),e.addSticky(this))},t.prototype.componentWillUnmount=function(){var e=this._getContext().scrollablePane;e&&(e.unsubscribe(this._onScrollEvent),e.removeSticky(this))},t.prototype.componentDidUpdate=function(e,t){var n=this._getContext().scrollablePane;if(n){var r=this.state,o=r.isStickyBottom,a=r.isStickyTop,s=r.distanceFromTop,l=!1;t.distanceFromTop!==s&&(n.sortSticky(this,!0),l=!0),(t.isStickyTop!==a||t.isStickyBottom!==o)&&(this._activeElement&&this._activeElement.focus(),n.updateStickyRefHeights(),l=!0),l&&n.syncScrollSticky(this)}},t.prototype.shouldComponentUpdate=function(e,t){if(!this.context.scrollablePane)return!0;var n=this.state,r=n.isStickyTop,o=n.isStickyBottom,a=n.distanceFromTop;return r!==t.isStickyTop||o!==t.isStickyBottom||this.props.stickyPosition!==e.stickyPosition||this.props.children!==e.children||a!==t.distanceFromTop||IY(this._nonStickyContent,this._stickyContentTop)||IY(this._nonStickyContent,this._stickyContentBottom)||IY(this._nonStickyContent,this._placeHolder)},t.prototype.render=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom,r=this.props,o=r.stickyClassName,a=r.children;return this.context.scrollablePane?ts.createElement("div",{ref:this._root},this.canStickyTop&&ts.createElement("div",{ref:this._stickyContentTop,style:{pointerEvents:t?"auto":"none"}},ts.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&&ts.createElement("div",{ref:this._stickyContentBottom,style:{pointerEvents:n?"auto":"none"}},ts.createElement("div",{style:this._getStickyPlaceholderHeight(n)})),ts.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},(t||n)&&ts.createElement("span",{style:lV},a),ts.createElement("div",{ref:this._nonStickyContent,className:t||n?o:void 0,style:this._getContentStyles(t||n)},a))):ts.createElement("div",null,this.props.children)},t.prototype.addSticky=function(e){this.nonStickyContent&&e.appendChild(this.nonStickyContent)},t.prototype.resetSticky=function(){this.nonStickyContent&&this.placeholder&&this.placeholder.appendChild(this.nonStickyContent)},t.prototype.setDistanceFromTop=function(e){var t=this._getNonStickyDistanceFromTop(e);this.setState({distanceFromTop:t})},t.prototype._getContentStyles=function(e){return{backgroundColor:this.props.stickyBackgroundColor||this._getBackground(),overflow:e?"hidden":""}},t.prototype._getStickyPlaceholderHeight=function(e){var t=this.nonStickyContent?this.nonStickyContent.offsetHeight:0;return{visibility:e?"hidden":"visible",height:e?0:t}},t.prototype._getNonStickyPlaceholderHeightAndWidth=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom;if(!t&&!n)return{};var r=0,o=0;return this.nonStickyContent&&this.nonStickyContent.firstElementChild&&(r=this.nonStickyContent.offsetHeight,o=this.nonStickyContent.firstElementChild.scrollWidth+(this.nonStickyContent.firstElementChild.offsetWidth-this.nonStickyContent.firstElementChild.clientWidth)),{height:r,width:o}},t.prototype._getBackground=function(){if(this.root){for(var e,t=this.root,n=null!=(e=this._getContext().window)?e:window;"rgba(0, 0, 0, 0)"===n.getComputedStyle(t).getPropertyValue("background-color")||"transparent"===n.getComputedStyle(t).getPropertyValue("background-color");){if("HTML"===t.tagName)return;t.parentElement&&(t=t.parentElement)}return n.getComputedStyle(t).getPropertyValue("background-color")}},t.defaultProps={stickyPosition:e8.Both,isScrollSynced:!0},t.contextType=Pl}(ts.Component);var I$=oI(),IQ=function(e){var t=y3(e);return(null==t?void 0:t.hex)==="ffffff"},IJ=oL(function(e,t,n,r,o,a,s,l,c){var u=h8(e);return nC({root:["ms-Button",u.root,n,t,s&&["is-checked",u.rootChecked],a&&["is-disabled",u.rootDisabled],!a&&!s&&{selectors:{":hover":u.rootHovered,":focus":u.rootFocused,":active":u.rootPressed}},a&&s&&[u.rootCheckedDisabled],!a&&s&&{selectors:{":hover":u.rootCheckedHovered,":active":u.rootCheckedPressed}}],flexContainer:["ms-Button-flexContainer",u.flexContainer]})}),IZ=24,I0=4,I1=2,I2=2,I5=20,I4={left:-2,top:-2,bottom:-2,right:-2,border:"none",outlineColor:"ButtonText"},I3=a1(function(e){var t=e.item,n=e.idPrefix,r=void 0===n?e.id:n,o=e.isRadio,a=e.selected,s=void 0!==a&&a,l=e.disabled,c=void 0!==l&&l,u=e.styles,d=e.circle,p=void 0===d||d,f=e.color,h=e.onClick,m=e.onHover,g=e.onFocus,v=e.onMouseEnter,y=e.onMouseMove,b=e.onMouseLeave,x=e.onWheel,C=e.onKeyDown,k=e.height,w=e.width,S=e.borderWidth,_=I$(u,{theme:e.theme,disabled:c,selected:s,circle:p,isWhite:IQ(f),height:k,width:w,borderWidth:S}),E=function(e){var t,n=_.svg;return ts.createElement("svg",{className:n,role:"img","aria-label":e.label,viewBox:"0 0 20 20",fill:null==(t=y3(e.color))?void 0:t.str},p?ts.createElement("circle",{cx:"50%",cy:"50%",r:"50%"}):ts.createElement("rect",{width:"100%",height:"100%"}))},P=function(t){var n=e.onRenderColorCellContent;return(void 0===n?E:n)(t,E)},I=o?{role:"radio","aria-checked":s,selected:void 0}:{role:"gridcell",selected:s};return ts.createElement(mL,tf({item:t,id:"".concat(r,"-").concat(t.id,"-").concat(t.index),key:t.id,disabled:c},I,{onRenderItem:P,onClick:h,onHover:m,onFocus:g,label:t.label,className:_.colorCell,getClassNames:IJ,index:t.index,onMouseEnter:v,onMouseMove:y,onMouseLeave:b,onWheel:x,onKeyDown:C}))},function(e){var t,n,r,o,a,s,l=e.theme,c=e.disabled,u=e.selected,d=e.circle,p=e.isWhite,f=e.height,h=void 0===f?I5:f,m=e.width,g=void 0===m?I5:m,v=e.borderWidth,y=l.semanticColors,b=l.palette,x=b.neutralLighter,C=b.neutralLight,k=b.neutralSecondary,w=b.neutralTertiary,S=v||(g<IZ?I1:I0);return{colorCell:[lO(l,{inset:-1,position:"relative",highContrastStyle:I4}),{backgroundColor:y.bodyBackground,padding:0,position:"relative",boxSizing:"border-box",display:"inline-block",cursor:"pointer",userSelect:"none",borderRadius:0,border:"none",height:h,width:g,verticalAlign:"top","forced-color-adjust":"none"},!d&&{selectors:((t={})[".".concat(i7," &:focus::after, :host(.").concat(i7,") &:focus::after")]={outlineOffset:"".concat(S-1,"px")},t)},d&&{borderRadius:"50%",selectors:((n={})[".".concat(i7," &:focus::after, :host(.").concat(i7,") &:focus::after")]={outline:"none",borderColor:y.focusBorder,borderRadius:"50%",left:-S,right:-S,top:-S,bottom:-S,selectors:((r={})[l_]={outline:"1px solid ButtonText"},r)},n)},u&&{padding:I2,border:"".concat(S,"px solid ").concat(C),selectors:((o={})["&:hover::before"]={content:'""',height:h,width:g,position:"absolute",top:-S,left:-S,borderRadius:d?"50%":"default",boxShadow:"inset 0 0 0 1px ".concat(k)},o)},!u&&{selectors:((a={})["&:hover, &:active, &:focus"]={backgroundColor:y.bodyBackground,padding:I2,border:"".concat(S,"px solid ").concat(x)},a["&:focus"]={borderColor:y.bodyBackground,padding:0,selectors:{":hover":{borderColor:l.palette.neutralLight,padding:I2}}},a)},c&&{color:y.disabledBodyText,pointerEvents:"none",opacity:.3},p&&!u&&{backgroundColor:w,padding:1,selectors:((s={})[l_]={outline:"1px solid ButtonText"},s)}],svg:[{width:"100%",height:"100%"},d&&{borderRadius:"50%"}]}},void 0,{scope:"ColorPickerGridCell"},!0),I6=oI(),I8="SwatchColorPicker";function I9(e){u0({name:I8,props:e,mutuallyExclusive:{focusOnHover:"onHover",selectedId:"defaultSelectedId"},deprecations:{isControlled:"selectedId' or 'defaultSelectedId",onColorChanged:"onChange"}})}var I7=ts.forwardRef(function(e,t){var n=uq("swatchColorPicker"),r=e.id||n,o=u6(),a=uV({isNavigationIdle:!0,cellFocused:!1,navigationIdleTimeoutId:void 0,navigationIdleDelay:250}),s=u$(),l=s.setTimeout,c=s.clearTimeout;I9(e);var u=e.colorCells,d=e.cellShape,p=void 0===d?"circle":d,f=e.columnCount,h=e.shouldFocusCircularNavigate,m=void 0===h||h,g=e.className,v=e.disabled,y=void 0!==v&&v,b=e.doNotContainWithinFocusZone,x=e.styles,C=e.cellMargin,k=void 0===C?10:C,w=e.defaultSelectedId,S=e.focusOnHover,_=e.mouseLeaveParentSelector,E=e.onChange,P=e.onColorChanged,I=e.onCellHovered,T=e.onCellFocused,D=e.getColorGridCellStyles,A=e.cellHeight,R=e.cellWidth,N=e.cellBorderWidth,B=e.onRenderColorCellContent,M=ts.useMemo(function(){return u.map(function(e,t){return tf(tf({},e),{index:t})})},[u]),F=ts.useCallback(function(e,t){var n,r=null==(n=u.filter(function(e){return e.id===t})[0])?void 0:n.color;null==E||E(e,t,r),null==P||P(t,r)},[E,P,u]),O=uj(e.selectedId,w,F),L=O[0],H=O[1],z=I6(x,{theme:e.theme,className:g,cellMargin:k}),V={root:z.root,tableCell:z.tableCell,focusedContainer:z.focusedContainer},U=u.length<=f,j=ts.useCallback(function(e){T&&(a.cellFocused=!1,T(void 0,void 0,e))},[a,T]),W=ts.useCallback(function(e){return S?(a.isNavigationIdle&&!y&&e.currentTarget.focus(),!0):!a.isNavigationIdle||!!y},[S,a,y]),q=ts.useCallback(function(e){if(!S)return!a.isNavigationIdle||!!y;var t=e.currentTarget;return a.isNavigationIdle&&!(o&&t===o.activeElement)&&t.focus(),!0},[S,a,y,o]),G=ts.useCallback(function(e){var t,n=_;if(S&&n&&a.isNavigationIdle&&!y){for(var r=null!=(t=null==o?void 0:o.querySelectorAll(n))?t:[],s=0;s<r.length;s+=1)if(r[s].contains(e.currentTarget)){if(r[s].setActive)try{r[s].setActive()}catch(e){}else r[s].focus();break}}},[y,S,a,_,o]),K=ts.useCallback(function(e,t){I&&(e?I(e.id,e.color,t):I(void 0,void 0,t))},[I]),X=ts.useCallback(function(e,t){if(T)if(e)return a.cellFocused=!0,T(e.id,e.color,t);else return a.cellFocused=!1,T(void 0,void 0,t)},[a,T]),Y=ts.useCallback(function(e,t){y||e.disabled||e.id!==L&&(T&&a.cellFocused&&(a.cellFocused=!1,T(void 0,void 0,t)),H(e.id,t))},[y,a,T,L,H]),Q=ts.useCallback(function(){a.isNavigationIdle||void 0===a.navigationIdleTimeoutId?a.isNavigationIdle=!1:(c(a.navigationIdleTimeoutId),a.navigationIdleTimeoutId=void 0),a.navigationIdleTimeoutId=l(function(){a.isNavigationIdle=!0},a.navigationIdleDelay)},[c,a,l]),J=ts.useCallback(function(e){(e.which===r9||e.which===oe||e.which===r8||e.which===r7)&&Q()},[Q]),Z=function(e){return ts.createElement(I3,{item:e,idPrefix:r,color:e.color,styles:D,disabled:y||e.disabled,onClick:Y,onHover:K,onFocus:X,selected:L===e.id,circle:"circle"===p,label:e.label,onMouseEnter:W,onMouseMove:q,onMouseLeave:G,onWheel:Q,onKeyDown:J,onRenderColorCellContent:B,height:A,width:R,borderWidth:N,isRadio:U})};if(u.length<1||f<1)return null;var ee=function(t,n){var r=e.onRenderColorCell;return(void 0===r?Z:r)(t,Z)};return ts.createElement(mO,tf({},e,{ref:t,id:r,items:M,columnCount:f,isSemanticRadio:U,onRenderItem:ee,shouldFocusCircularNavigate:m,doNotContainWithinFocusZone:b,onBlur:j,theme:e.theme,styles:V}))});I7.displayName=I8;var Te={focusedContainer:"ms-swatchColorPickerBodyContainer"};a1(I7,function(e){var t=e.className,n=e.theme;return{root:{margin:"8px 0",borderCollapse:"collapse"},tableCell:{padding:e.cellMargin/2},focusedContainer:[l0(Te,n).focusedContainer,{clear:"both",display:"block",minWidth:"180px"},t]}},void 0,{scope:"SwatchColorPicker"});var Tt=oI(),Tn=function(e,t){ts.useImperativeHandle(e,function(){return{focus:function(){var e;return null==(e=t.current)?void 0:e.focus()}}},[t])},Tr=ts.forwardRef(function(e,t){var n,r,o,a,s,l,c,u=ts.useRef(null),d=id(),p=uG(u,t),f=uq("teaching-bubble-content-"),h=uq("teaching-bubble-title-"),m=null!=(n=e.ariaDescribedBy)?n:f,g=null!=(r=e.ariaLabelledBy)?r:h,v=e.illustrationImage,y=e.primaryButtonProps,b=e.secondaryButtonProps,x=e.headline,C=e.hasCondensedHeadline,k=e.hasCloseButton,w=void 0===k?e.hasCloseIcon:k,S=e.onDismiss,_=e.closeButtonAriaLabel,E=e.hasSmallHeadline,P=e.isWide,I=e.styles,T=e.theme,D=e.footerContent,A=e.focusTrapZoneProps,R=Tt(I,{theme:T,hasCondensedHeadline:C,hasSmallHeadline:E,hasCloseButton:w,hasHeadline:!!x,isWide:P,primaryButtonClassName:y?y.className:void 0,secondaryButtonClassName:b?b.className:void 0});if(uK(d,"keydown",ts.useCallback(function(e){S&&e.which===r1&&S(e)},[S])),v&&v.src&&(o=ts.createElement("div",{className:R.imageContent},ts.createElement(pa,tf({},v)))),x){var N="string"==typeof x?"p":"div";a=ts.createElement("div",{className:R.header},ts.createElement(N,{role:"heading","aria-level":3,className:R.headline,id:g},x))}if(e.children){var B="string"==typeof e.children?"p":"div";s=ts.createElement("div",{className:R.body},ts.createElement(B,{className:R.subText,id:m},e.children))}return(y||b||D)&&(l=ts.createElement(IW,{className:R.footer,horizontal:!0,horizontalAlign:D?"space-between":"end"},ts.createElement(IW.Item,{align:"center"},ts.createElement("span",null,D)),ts.createElement(IW.Item,null,y&&ts.createElement(mr,tf({},y,{className:R.primaryButton})),b&&ts.createElement(h4,tf({},b,{className:R.secondaryButton}))))),w&&(c=ts.createElement(mn,{className:R.closeButton,iconProps:{iconName:"Cancel"},ariaLabel:_,onClick:S})),Tn(e.componentRef,u),ts.createElement("div",{className:R.content,ref:p,role:"dialog",tabIndex:-1,"aria-labelledby":g,"aria-describedby":m,"data-is-focusable":!0},o,ts.createElement(d0,tf({isClickableOutsideFocusTrap:!0},A),ts.createElement("div",{className:R.bodyContent},a,s,l,c)))}),To={root:"ms-TeachingBubble",body:"ms-TeachingBubble-body",bodyContent:"ms-TeachingBubble-bodycontent",closeButton:"ms-TeachingBubble-closebutton",content:"ms-TeachingBubble-content",footer:"ms-TeachingBubble-footer",header:"ms-TeachingBubble-header",headerIsCondensed:"ms-TeachingBubble-header--condensed",headerIsSmall:"ms-TeachingBubble-header--small",headerIsLarge:"ms-TeachingBubble-header--large",headline:"ms-TeachingBubble-headline",image:"ms-TeachingBubble-image",primaryButton:"ms-TeachingBubble-primaryButton",secondaryButton:"ms-TeachingBubble-secondaryButton",subText:"ms-TeachingBubble-subText",button:"ms-Button",buttonLabel:"ms-Button-label"},Ti=oL(function(){return n_({"0%":{opacity:0,animationTimingFunction:ln,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})}),Ta=function(e,t){var n=t||{},r=n.calloutWidth,o=n.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:r||"calc(100% + 1px)",animationName:"".concat(Ti()),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:o||456}]},Ts=function(e,t,n){return t?[e.headerIsCondensed,{marginBottom:14}]:[n&&e.headerIsSmall,!n&&e.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},Tl=function(e){var t,n,r,o=e.hasCondensedHeadline,a=e.hasSmallHeadline,s=e.hasCloseButton,l=e.hasHeadline,c=e.isWide,u=e.primaryButtonClassName,d=e.secondaryButtonClassName,p=e.theme,f=e.calloutProps,h=void 0===f?{className:void 0,theme:p}:f,m=!o&&!a,g=p.palette,v=p.semanticColors,y=p.fonts,b=l0(To,p),x=lO(p,{outlineColor:"transparent",borderColor:"transparent"});return{root:[b.root,y.medium,h.className],body:[b.body,s&&!l&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[b.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[b.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:g.white,fontSize:y.small.fontSize,selectors:{":hover":{background:g.themeDarkAlt,color:g.white},":active":{background:g.themeDark,color:g.white},":focus":{border:"1px solid ".concat(v.variantBorder)}}}],content:tg(tg([b.content],Ta(c),!0),[c&&{display:"flex"}],!1),footer:[b.footer,{display:"flex",flex:"auto",alignItems:"center",color:g.white,selectors:((t={})[".".concat(b.button,":not(:first-child)")]={marginLeft:10},t)}],header:tg(tg([b.header],Ts(b,o,a),!0),[s&&{marginRight:24},(o||a)&&[y.medium,{fontWeight:P.semibold}]],!1),headline:[b.headline,{margin:0,color:g.white,fontWeight:P.semibold,overflowWrap:"break-word"},m&&[{fontSize:y.xLarge.fontSize}]],imageContent:[b.header,b.image,c&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[b.primaryButton,u,x,{backgroundColor:g.white,borderColor:g.white,color:g.themePrimary,whiteSpace:"nowrap",selectors:((n={})[".".concat(b.buttonLabel)]=y.medium,n[":hover"]={backgroundColor:g.themeLighter,borderColor:g.themeLighter,color:g.themeDark},n[":focus"]={backgroundColor:g.themeLighter,border:"1px solid ".concat(g.black),color:g.themeDark,outline:"1px solid ".concat(g.white),outlineOffset:"-2px"},n[":active"]={backgroundColor:g.white,borderColor:g.white,color:g.themePrimary},n)}],secondaryButton:[b.secondaryButton,d,x,{backgroundColor:g.themePrimary,borderColor:g.white,whiteSpace:"nowrap",selectors:((r={})[".".concat(b.buttonLabel)]=[y.medium,{color:g.white}],r[":hover"]={backgroundColor:g.themeDarkAlt,borderColor:g.white},r[":focus"]={backgroundColor:g.themeDark,border:"1px solid ".concat(g.black),outline:"1px solid ".concat(g.white),outlineOffset:"-2px"},r[":active"]={backgroundColor:g.themePrimary,borderColor:g.white},r)}],subText:[b.subText,{margin:0,fontSize:y.medium.fontSize,color:g.white,fontWeight:P.regular}],subComponentStyles:{callout:{root:tg(tg([],Ta(c,h),!0),[y.medium],!1),beak:[{background:g.themePrimary}],calloutMain:[{background:g.themePrimary}]}}}},Tc=a1(Tr,Tl,void 0,{scope:"TeachingBubbleContent"}),Tu="TeachingBubble",Td={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:cY},Tp=oI(),Tf=function(e,t){ts.useImperativeHandle(e,function(){return{focus:function(){var e;return null==(e=t.current)?void 0:e.focus()}}},[t])},Th=ts.forwardRef(function(e,t){var n=ts.useRef(null),r=uG(n,t),o=e.calloutProps,a=e.targetElement,s=e.onDismiss,l=e.hasCloseButton,c=void 0===l?e.hasCloseIcon:l,u=e.isWide,d=e.styles,p=e.theme,f=e.target,h=ts.useMemo(function(){return tf(tf(tf({},Td),o),{theme:p})},[o,p]),m=Tp(d,{theme:p,isWide:u,calloutProps:h,hasCloseButton:c}),g=m.subComponentStyles?m.subComponentStyles.callout:void 0;return Tf(e.componentRef,n),ts.createElement(d$,tf({target:f||a,onDismiss:s},h,{className:m.root,styles:g,hideOverflow:!0}),ts.createElement("div",{ref:r},ts.createElement(Tc,tf({},e))))});Th.displayName=Tu,a1(Th,Tl,void 0,{scope:"TeachingBubble"}),IT(function(e){if(null==e.children)return null;e.block,e.className;var t=e.as,n=void 0===t?"span":t,r=(e.variant,e.nowrap,th(e,["block","className","as","variant","nowrap"]));return Ik(I_(e,{root:n}).root,tf({},i$(r,iI)))},{displayName:"Text",styles:function(e,t){var n=e.as,r=e.className,o=e.block,a=e.nowrap,s=e.variant,l=t.fonts,c=t.semanticColors,u=l[s||"medium"];return{root:[u,{color:u.color||c.bodyText,display:o?"td"===n?"table-cell":"block":"inline",mozOsxFontSmoothing:u.MozOsxFontSmoothing,webkitFontSmoothing:u.WebkitFontSmoothing},a&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}}}),function(){function e(){}e.setSlot=function(t,n,r,o,a){if(void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===a&&(a=!0),t.color||!t.value)if(a){var s=void 0;if("string"==typeof n){if(!(s=y3(n)))throw Error("color is invalid in setSlot(): "+n)}else s=n;e._setSlot(t,s,r,o,a)}else t.color&&e._setSlot(t,t.color,r,o,a)},e.insureSlots=function(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(!o.inherits&&!o.value){if(!o.color)throw Error("A color slot rule that does not inherit must provide its own color.");e._setSlot(o,o.color,n,!1,!1)}}},e.getThemeAsJson=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[r.name]=r.color?r.color.str:r.value||""}return t},e.getThemeAsCode=function(t){var n="loadTheme({\n  palette: {\n";return e._makeRemainingCode(n,t)},e.getThemeAsCodeWithCreateTheme=function(t){var n="const myTheme = createTheme({\n  palette: {\n";return e._makeRemainingCode(n,t)},e.getThemeAsSass=function(e){var t='${0}Color: "[theme: {1}, default: {2}]";\n',n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r],a=o.name.charAt(0).toLowerCase()+o.name.slice(1);n+=aY(t,a,a,o.color?o.color.str:o.value||"")}return n},e.getThemeForPowerShell=function(e){var t='"{0}" = "{1}";\n',n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(o.value)continue;var a=o.name.charAt(0).toLowerCase()+o.name.slice(1),s=o.color?"#"+o.color.hex:o.value||"";o.color&&o.color.a&&100!==o.color.a&&(s+=String(o.color.a.toString(16))),n+=aY(t,a,s)}return"@{\n"+n+"}"},e._setSlot=function(t,n,r,o,a){if(void 0===a&&(a=!0),(t.color||!t.value)&&(a||!t.color||!t.isCustomized||!t.inherits)){(a||!t.isCustomized)&&!o&&t.inherits&&bp(t.asShade)?(t.isBackgroundShade?t.color=by(n,t.asShade,r):t.color=bv(n,t.asShade,r),t.isCustomized=!1):(t.color=n,t.isCustomized=!0);for(var s=0,l=t.dependentRules;s<l.length;s++){var c=l[s];e._setSlot(c,t.color,r,!1,a)}}},e._makeRemainingCode=function(e,t){var n="    {0}: '{1}',\n";for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];e+=aY(n,o.name.charAt(0).toLowerCase()+o.name.slice(1),o.color?"#"+o.color.hex:o.value||"")}return e+"  }});"}}(),function(e){e[e.primaryColor=0]="primaryColor",e[e.backgroundColor=1]="backgroundColor",e[e.foregroundColor=2]="foregroundColor"}(e9||(e9={})),function(e){e[e.themePrimary=0]="themePrimary",e[e.themeLighterAlt=1]="themeLighterAlt",e[e.themeLighter=2]="themeLighter",e[e.themeLight=3]="themeLight",e[e.themeTertiary=4]="themeTertiary",e[e.themeSecondary=5]="themeSecondary",e[e.themeDarkAlt=6]="themeDarkAlt",e[e.themeDark=7]="themeDark",e[e.themeDarker=8]="themeDarker",e[e.neutralLighterAlt=9]="neutralLighterAlt",e[e.neutralLighter=10]="neutralLighter",e[e.neutralLight=11]="neutralLight",e[e.neutralQuaternaryAlt=12]="neutralQuaternaryAlt",e[e.neutralQuaternary=13]="neutralQuaternary",e[e.neutralTertiaryAlt=14]="neutralTertiaryAlt",e[e.neutralTertiary=15]="neutralTertiary",e[e.neutralSecondaryAlt=16]="neutralSecondaryAlt",e[e.neutralSecondary=17]="neutralSecondary",e[e.neutralPrimaryAlt=18]="neutralPrimaryAlt",e[e.neutralPrimary=19]="neutralPrimary",e[e.neutralDark=20]="neutralDark",e[e.black=21]="black",e[e.white=22]="white"}(e7||(e7={})),function(e){e[e.bodyBackground=0]="bodyBackground",e[e.bodyText=1]="bodyText",e[e.disabledBackground=2]="disabledBackground",e[e.disabledText=3]="disabledText"}(te||(te={}));var Tm=/^((1[0-2]|0?[1-9]):([0-5][0-9]):([0-5][0-9])\s([AaPp][Mm]))$/,Tg=/^((1[0-2]|0?[1-9]):[0-5][0-9]\s([AaPp][Mm]))$/,Tv=/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/,Ty=/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/,Tb=0,Tx=23,TC=function(e,t){var n=e?"12-hour":"24-hour",r="hh:mm".concat(t?":ss":"").concat(e?" AP":"");return{invalidInputErrorMessage:"Enter a valid time in the ".concat(n," format: ").concat(r),timeOutOfBoundsErrorMessage:"Please enter a time within the range of {0} and {1}"}};var Tk=function(e,t,n,r){var o=new Date(e.getTime());if(r){var a=Tw(r),s="start"===t?a.start:a.end;o.getHours()!==s&&o.setHours(s)}else"end"===t&&o.setDate(o.getDate()+1);return o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),gy(o,n)},Tw=function(e){return{start:Math.min(Math.max(e.start,Tb),Tx),end:Math.min(Math.max(e.end,Tb),Tx)}},TS=function(e){var t=mW;if(e){var n=Tw(e);n.start>n.end?t=mW-e.start-e.end:e.end>e.start&&(t=e.end-e.start)}return t},T_=function(e,t){return Math.floor(mV*TS(t)/e)},TE=oI(),TP="Toggle",TI=ts.forwardRef(function(e,t){var n=e.as,r=void 0===n?"div":n,o=e.ariaLabel,a=e.checked,s=e.className,l=e.defaultChecked,c=void 0!==l&&l,u=e.disabled,d=e.inlineLabel,p=e.label,f=e.offAriaLabel,h=e.offText,m=e.onAriaLabel,g=e.onChange,v=e.onChanged,y=e.onClick,b=e.onText,x=e.role,C=e.styles,k=e.theme,w=uj(a,c,ts.useCallback(function(e,t){null==g||g(e,t),null==v||v(t)},[g,v])),S=w[0],_=w[1],E=TE(C,{theme:k,className:s,disabled:u,checked:S,inlineLabel:d,onOffMissing:!b&&!h}),P=S?m:f,I=uq(TP,e.id),T="".concat(I,"-label"),D="".concat(I,"-stateText"),A=S?b:h,R=i$(e,iF,["defaultChecked"]),N=void 0;o||P||(p&&(N=T),A&&!N&&(N=D));var B=ts.useRef(null);al(B),TT(e,S,B),u0({name:TP,props:e,deprecations:{offAriaLabel:void 0,onAriaLabel:"ariaLabel",onChanged:"onChange"},mutuallyExclusive:{checked:"defaultChecked"}});var M=function(e){!u&&(_(!S,e),y&&y(e))},F={root:{className:E.root,hidden:R.hidden},label:{children:p,className:E.label,htmlFor:I,id:T},container:{className:E.container},pill:tf(tf({},R),{"aria-disabled":u,"aria-checked":S,"aria-label":o||P,"aria-labelledby":N,className:E.pill,"data-is-focusable":!0,"data-ktp-target":!0,disabled:u,id:I,onClick:M,ref:B,role:x||"switch",type:"button"}),thumb:{className:E.thumb},stateText:{children:A,className:E.text,htmlFor:I,id:D}};return ts.createElement(r,tf({ref:t},F.root),p&&ts.createElement(vI,tf({},F.label)),ts.createElement("div",tf({},F.container),ts.createElement("button",tf({},F.pill),ts.createElement("span",tf({},F.thumb))),(S&&b||h)&&ts.createElement(vI,tf({},F.stateText))))});TI.displayName=TP+"Base";var TT=function(e,t,n){ts.useImperativeHandle(e.componentRef,function(){return{get checked(){return!!t},focus:function(){n.current&&n.current.focus()}}},[t,n])},TD=40,TA=20,TR=12;a1(TI,function(e){var t,n,r,o,a,s,l,c=e.theme,u=e.className,d=e.disabled,p=e.checked,f=e.inlineLabel,h=e.onOffMissing,m=c.semanticColors,g=c.palette,v=m.bodyBackground,y=m.inputBackgroundChecked,b=m.inputBackgroundCheckedHovered,x=g.neutralDark,C=m.disabledBodySubtext,k=m.smallInputBorder,w=m.inputForegroundChecked,S=m.disabledBodySubtext,_=m.disabledBackground,E=m.smallInputBorder,I=m.inputBorderHovered,T=m.disabledBodySubtext,D=m.disabledText;return{root:["ms-Toggle",p&&"is-checked",!d&&"is-enabled",d&&"is-disabled",c.fonts.medium,{marginBottom:"8px"},f&&{display:"flex",alignItems:"center"},u],label:["ms-Toggle-label",{display:"inline-block"},d&&{color:D,selectors:((t={})[l_]={color:"GrayText"},t)},f&&!h&&{marginRight:16},h&&f&&{order:1,marginLeft:16},f&&{wordBreak:"break-word"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",lO(c,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:TD,height:TA,borderRadius:TA/2,transition:"all 0.1s ease",border:"1px solid ".concat(E),background:v,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px",overflow:"visible"},!d&&[!p&&{selectors:{":hover":[{borderColor:I}],":hover .ms-Toggle-thumb":[{backgroundColor:x,selectors:((n={})[l_]={borderColor:"Highlight"},n)}]}},p&&[{background:y,borderColor:"transparent",justifyContent:"flex-end"},{selectors:((r={":hover":[{backgroundColor:b,borderColor:"transparent",selectors:((o={})[l_]={backgroundColor:"Highlight"},o)}]})[l_]=tf({backgroundColor:"Highlight"},lF()),r)}]],d&&[{cursor:"default"},!p&&[{borderColor:T}],p&&[{backgroundColor:C,borderColor:"transparent",justifyContent:"flex-end"}]],!d&&{selectors:{"&:hover":{selectors:((a={})[l_]={borderColor:"Highlight"},a)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:TR,height:TR,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:k,borderColor:"transparent",borderWidth:TR/2,borderStyle:"solid",boxSizing:"border-box"},!d&&p&&[{backgroundColor:w,selectors:((s={})[l_]={backgroundColor:"Window",borderColor:"Window"},s)}],d&&[!p&&[{backgroundColor:S}],p&&[{backgroundColor:_}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:P.regular}}},d&&{selectors:{"&&":{color:D,selectors:((l={})[l_]={color:"GrayText"},l)}}}]}},void 0,{scope:"Toggle"});var TN=tf(tf({},gl),{prevWeekAriaLabel:"Previous week",nextWeekAriaLabel:"Next week",prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker"}),TB={leftNavigation:"ChevronLeft",rightNavigation:"ChevronRight"},TM=oI(),TF=function(e){function t(t){var n=e.call(this,t)||this;n._dayGrid=ts.createRef(),n._onSelectDate=function(e){var t=n.props.onSelectDate;n.setState({selectedDate:e}),n._focusOnUpdate=!0,t&&t(e)},n._onNavigateDate=function(e,t){var r=n.props.onNavigateDate;n.setState({navigatedDate:e}),n._focusOnUpdate=t,r&&r(e)},n._renderPreviousWeekNavigationButton=function(e){var t,r=n.props,o=r.minDate,a=r.firstDayOfWeek,s=r.navigationIcons,l=n.state.navigatedDate,c=ox()?s.rightNavigation:s.leftNavigation,u=!o||0>m4(o,m7(l,a));return ts.createElement("button",{className:oG(e.navigationIconButton,((t={})[e.disabledStyle]=!u,t)),disabled:!u,"aria-disabled":!u,onClick:u?n._onSelectPrevDateRange:void 0,onKeyDown:u?n._onButtonKeyDown(n._onSelectPrevDateRange):void 0,title:n._createPreviousWeekAriaLabel(),type:"button"},ts.createElement(pf,{iconName:c}))},n._renderNextWeekNavigationButton=function(e){var t,r=n.props,o=r.maxDate,a=r.firstDayOfWeek,s=r.navigationIcons,l=n.state.navigatedDate,c=ox()?s.leftNavigation:s.rightNavigation,u=!o||0>m4(mX(m7(l,a),7),o);return ts.createElement("button",{className:oG(e.navigationIconButton,((t={})[e.disabledStyle]=!u,t)),disabled:!u,"aria-disabled":!u,onClick:u?n._onSelectNextDateRange:void 0,onKeyDown:u?n._onButtonKeyDown(n._onSelectNextDateRange):void 0,title:n._createNextWeekAriaLabel(),type:"button"},ts.createElement(pf,{iconName:c}))},n._onSelectPrevDateRange=function(){n.props.showFullMonth?n._navigateDate(m$(n.state.navigatedDate,-1)):n._navigateDate(mX(n.state.navigatedDate,-7))},n._onSelectNextDateRange=function(){n.props.showFullMonth?n._navigateDate(m$(n.state.navigatedDate,1)):n._navigateDate(mX(n.state.navigatedDate,7))},n._navigateDate=function(e){n.setState({navigatedDate:e}),n.props.onNavigateDate&&n.props.onNavigateDate(e)},n._onWrapperKeyDown=function(e){switch(e.which){case rQ:case rY:e.preventDefault()}},n._onButtonKeyDown=function(e){return function(t){t.which===rQ&&e()}},n._onTouchStart=function(e){var t=e.touches[0];t&&(n._initialTouchX=t.clientX)},n._onTouchMove=function(e){var t=ox(),r=e.touches[0];r&&void 0!==n._initialTouchX&&r.clientX!==n._initialTouchX&&((r.clientX-n._initialTouchX)*(t?-1:1)<0?n._onSelectNextDateRange():n._onSelectPrevDateRange(),n._initialTouchX=void 0)},n._createPreviousWeekAriaLabel=function(){var e=n.props,t=e.strings,r=e.showFullMonth,o=e.firstDayOfWeek,a=n.state.navigatedDate,s=void 0;if(r&&t.prevMonthAriaLabel)s=t.prevMonthAriaLabel+" "+t.months[m$(a,-1).getMonth()];else if(!r&&t.prevWeekAriaLabel){var l=m7(mX(a,-7),o),c=mX(l,6);s=t.prevWeekAriaLabel+" "+n._formatDateRange(l,c)}return s},n._createNextWeekAriaLabel=function(){var e=n.props,t=e.strings,r=e.showFullMonth,o=e.firstDayOfWeek,a=n.state.navigatedDate,s=void 0;if(r&&t.nextMonthAriaLabel)s=t.nextMonthAriaLabel+" "+t.months[m$(a,1).getMonth()];else if(!r&&t.nextWeekAriaLabel){var l=m7(mX(a,7),o),c=mX(l,6);s=t.nextWeekAriaLabel+" "+n._formatDateRange(l,c)}return s},n._formatDateRange=function(e,t){var r=n.props,o=r.dateTimeFormatter,a=r.strings;return"".concat(null==o?void 0:o.formatMonthDayYear(e,a)," - ").concat(null==o?void 0:o.formatMonthDayYear(t,a))},i2(n);var r=t.initialDate&&!isNaN(t.initialDate.getTime())?t.initialDate:t.today||new Date;return n.state={selectedDate:r,navigatedDate:r,previousShowFullMonth:!!t.showFullMonth,animationDirection:t.animationDirection},n._focusOnUpdate=!1,n}return tp(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.initialDate&&!isNaN(e.initialDate.getTime())?e.initialDate:e.today||new Date,r=!!e.showFullMonth,o=r!==t.previousShowFullMonth?el.Vertical:el.Horizontal;return m5(n,t.selectedDate)?{selectedDate:n,navigatedDate:t.navigatedDate,previousShowFullMonth:r,animationDirection:o}:{selectedDate:n,navigatedDate:n,previousShowFullMonth:r,animationDirection:o}},t.prototype.focus=function(){this._dayGrid&&this._dayGrid.current&&this._dayGrid.current.focus()},t.prototype.render=function(){var e=this.props,t=e.strings,n=e.dateTimeFormatter,r=e.firstDayOfWeek,o=e.minDate,a=e.maxDate,s=e.restrictedDates,l=e.today,c=e.styles,u=e.theme,d=e.className,p=e.showFullMonth,f=e.weeksToShow,h=th(e,["strings","dateTimeFormatter","firstDayOfWeek","minDate","maxDate","restrictedDates","today","styles","theme","className","showFullMonth","weeksToShow"]),m=TM(c,{theme:u,className:d});return ts.createElement("div",{className:m.root,onKeyDown:this._onWrapperKeyDown,onTouchStart:this._onTouchStart,onTouchMove:this._onTouchMove,"aria-expanded":p},this._renderPreviousWeekNavigationButton(m),ts.createElement(gN,tf({styles:c,componentRef:this._dayGrid,strings:t,selectedDate:this.state.selectedDate,navigatedDate:this.state.navigatedDate,firstDayOfWeek:r,firstWeekOfYear:ea.FirstDay,dateRangeType:es.Day,weeksToShow:p?f:1,dateTimeFormatter:n,minDate:o,maxDate:a,restrictedDates:s,onSelectDate:this._onSelectDate,onNavigateDate:this._onNavigateDate,today:l,lightenDaysOutsideNavigatedMonth:p,animationDirection:this.state.animationDirection},h)),this._renderNextWeekNavigationButton(m))},t.prototype.componentDidUpdate=function(){this._focusOnUpdate&&(this.focus(),this._focusOnUpdate=!1)},t.defaultProps={onSelectDate:void 0,initialDate:void 0,today:new Date,firstDayOfWeek:eo.Sunday,strings:TN,navigationIcons:TB,dateTimeFormatter:gs,animationDirection:el.Horizontal},t}(ts.Component),TO={root:"ms-WeeklyDayPicker-root"};a1(TF,function(e){var t,n=e.className,r=e.theme,o=r.palette,a=l0(TO,r);return{root:[a.root,cv,{width:220,padding:12,boxSizing:"content-box",display:"flex",alignItems:"center",flexDirection:"row"},n],dayButton:{borderRadius:"100%"},dayIsToday:{},dayCell:{borderRadius:"100%!important"},daySelected:{},navigationIconButton:[lO(r,{inset:0}),{width:12,minWidth:12,height:0,overflow:"hidden",padding:0,margin:0,border:"none",display:"flex",alignItems:"center",backgroundColor:o.neutralLighter,fontSize:E.small,fontFamily:"inherit",selectors:((t={})[".".concat(a.root,":hover &, .").concat(i7," .").concat(a.root,":focus &, :host(.").concat(i7,") .").concat(a.root,":focus &, ")+".".concat(i7," &:focus, :host(.").concat(i7,") &:focus")]={height:53,minHeight:12,overflow:"initial"},t[".".concat(i7," .").concat(a.root,":focus-within &, :host(.").concat(i7,") .").concat(a.root,":focus-within &")]={height:53,minHeight:12,overflow:"initial"},t["&:hover"]={cursor:"pointer",backgroundColor:o.neutralLight},t["&:active"]={backgroundColor:o.neutralTertiary},t)}],disabledStyle:{selectors:{"&, &:disabled, & button":{color:o.neutralTertiaryAlt,pointerEvents:"none"}}}}},void 0,{scope:"WeeklyDayPicker"});var TL=ts.createContext(void 0);function TH(){return ig(["theme"]).theme}var Tz=function(){var e=ts.useContext(TL),t=TH();return e||t||lS({})},TV=0,TU=function(){return TV},Tj=function(e,t){return nk(Array.isArray(e)?e:[e],t)},TW=function(e,t){var n,r,o,a=t[0],s=t[1],l=t[2];return null==(o=null==(r=null==(n=e.get(a))?void 0:n.get(s))?void 0:r.get(l))?void 0:o.classMap},Tq=function(e,t,n){var r,o,a=t[0],s=t[1],l=t[2],c=null!=(r=e.get(a))?r:new Map;e.set(a,c);var u=null!=(o=c.get(s))?o:new Map;c.set(s,u),u.set(l,{classMap:n,refCount:0})};function TG(e,t){var n,r,o=t[0],a=t[1],s=t[2],l=null==(r=null==(n=e.get(o))?void 0:n.get(a))?void 0:r.get(s);l&&l.refCount++}function TK(e,t){var n,r,o,a,s,l,c,u,d=t[0],p=t[1],f=t[2],h=null==(r=null==(n=e.get(d))?void 0:n.get(p))?void 0:r.get(f);h&&(h.refCount--,0===h.refCount&&(null==(a=null==(o=e.get(d))?void 0:o.get(p))||a.delete(f),(null==(l=null==(s=e.get(d))?void 0:s.get(p))?void 0:l.size)===0&&(null==(c=e.get(d))||c.delete(p),(null==(u=e.get(d))?void 0:u.size)===0&&e.delete(d))))}function TX(e){return"function"==typeof e}var TY=function(e){var t=new Map,n=new Set,r=function(e){var o=e.currentTarget,a=o.__id__;t.delete(a),o.removeEventListener("unload",r),n.delete(a)};return function(o){void 0===o&&(o={});var a,s=o.theme,l=iu();l&&(l.__id__=l.__id__||iw(),a=l.__id__,n.has(a)||(n.add(a),l.addEventListener("unload",r)));var c=Tz();s=s||c;var u=TU(),d=[a,u,s],p=TW(t,d);if(ts.useEffect(function(){return TG(t,[a,u,s]),function(){return TK(t,[a,u,s])}},[a,u,s]),!p){var f=TX(e)?e(s):e;Tq(t,d,p=Tj(f,{targetWindow:l,rtl:!!s.rtl}))}return p}}(function(e){var t=e.semanticColors,n=e.fonts;return{body:[{color:t.bodyText,background:t.bodyBackground,fontFamily:n.medium.fontFamily,fontWeight:n.medium.fontWeight,fontSize:n.medium.fontSize,MozOsxFontSmoothing:n.medium.MozOsxFontSmoothing,WebkitFontSmoothing:n.medium.WebkitFontSmoothing}]}});function T$(e,t){var n,r="body"===e.applyTo,o=null==(n=id())?void 0:n.body;ts.useEffect(function(){if(r&&o){for(var e=0,n=t;e<n.length;e++){var a=n[e];a&&o.classList.add(a)}return function(){if(r&&o)for(var e=0,n=t;e<n.length;e++){var a=n[e];a&&o.classList.remove(a)}}}},[r,o,t])}function TQ(e){var t=TY(e),n=e.className,r=e.applyTo;T$(e,[t.root,t.body]),e.className=oG(n,t.root,"element"===r&&t.body)}var TJ=function(e){var t=e.customizerContext,n=e.ref,r=e.theme,o=e.as||"div",a="string"==typeof e.as?iJ(e.as,e):e.as===ts.Fragment?{children:e.children}:rg(e,["as"]);return ts.createElement(TL.Provider,{value:r},ts.createElement(oJ.Provider,{value:t},ts.createElement(ah,{providerRef:n},ts.createElement(o,tf({},a)))))},TZ=new Map,T0=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var a=o[r];if(a){var s=a.id||TZ.get(a);s||(s=iw(""),TZ.set(a,s)),n.push(s)}}return n.join("-")},T1=function(e){var t=e.theme,n=Tz(),r=e.theme=ts.useMemo(function(){var e=sd(n,t);return e.id=T0(n,t),e},[n,t]);e.customizerContext=ts.useMemo(function(){return{customizations:{inCustomizerContext:!0,settings:{theme:r},scopedSettings:r.components||{}}}},[r]),e.theme.rtl!==n.rtl&&(e.dir=e.theme.rtl?"rtl":"ltr")},T2=function(e,t){var n=a4(t,e);return T1(n),{state:n,render:TJ}};ts.forwardRef(function(e,t){var n=T2(e,{ref:uG(t,ts.useRef(null)),as:"div",applyTo:"element"}),r=n.render,o=n.state;return TQ(o),r(o)}).displayName="ThemeProvider";var T5=function(e){function t(t){var n=e.call(this,t)||this;return n.optionsListContainerSelector="#pidlddc-div-pagebodycontents .pidlddc-div-paymentMethod",n.embeddedAddPIContainerSelectorRoot="pidlddc-div-embeddedAddPi_",n.addPIContainerBusyBlockRoot="pidlddc-div-busyblock_",n.selectResourceTypeRef=ta.default.createRef(),n.addResourceRefs={},n.onErrorShowEditAddressForm=function(e){var t,r=null==(t=null==e?void 0:e.error)?void 0:t.errors;r&&r.some(function(e){var t,r=e.propertyName;if(r&&("address_line1"===r||"address_line2"===r||"address_line3"===r||"city"===r||"region"===r||"postal_code"===r)){var o=n.state.selectedPm,a=o.family,s=o.type,l=n.getEmbeddedAddPiContainerId(a,s),c="".concat(n.optionsListContainerSelector," div#").concat(l),u=null!=(t=document.querySelector(c))?t:document,d=u.querySelector("#pidlddc-text-editAddressText")||u.querySelector("#pidlddc-button-editAddressText"),p=u.querySelector("#pidlddc-div-billingAddressShowGroup"),f=u.querySelector("#pidlddc-div-billingAddressEditGroup");d&&f&&p&&tP(d,p,f)}})},n.getSelectResourceTypeProps=function(){var e,t=tT(n.props.returnOptions,null==(e=n.props.displayOptions)?void 0:e.busyBlockShowHideHandler);return tf(tf({},n.props),{returnOptions:t,displayOptions:tf(tf({},n.props.displayOptions),{disableFocusOnLoad:n.state.disableFocusOnLoad}),ref:n.selectResourceTypeRef,onEvent:n.selectResourceTypeEventHandler,telemetryOptions:n.addParentOperationIdToTelemetryOptions(n.props.telemetryOptions,n.state.parentOperationId),options:void 0})},n.getAddResourceProps=function(e,t){var r,o=ta.default.createRef(),a=tT(n.props.returnOptions,null==(r=n.props.displayOptions)?void 0:r.busyBlockShowHideHandler);return n.addResourceRefs[n.getAddResourceRefKey(e,t)]=o,tf(tf({},n.props),{ref:o,returnOptions:a,displayOptions:tf(tf({},n.props.displayOptions),{disableFocusOnLoad:n.state.disableFocusOnLoad}),pidlDocInfo:tf(tf({},n.props.pidlDocInfo),{parameters:tf(tf({},n.props.pidlDocInfo.parameters),{family:e,type:t})}),telemetryOptions:n.addParentOperationIdToTelemetryOptions(n.props.telemetryOptions,n.state.parentOperationId),onEvent:n.addResourceEventHandler})},n.selectResourceTypeEventHandler=function(e,t){var r,o,a,s,l=!0,c=null==(r=n.props.displayOptions)?void 0:r.busyBlockShowHideHandler,u=t_.internal.constants.eventNames;if(c&&(e===u.pidlDownloading||e===u.inputSubmitting)&&c(!0),e==t_.internal.constants.eventNames.pageRendered){var d=document.querySelectorAll("#pidlddc-div-pagebodycontents");if(d&&d.length>0){var p=null==(o=d[0])?void 0:o.children,f=void 0;p&&p.length>0&&(f=null==(a=p[0])?void 0:a.textContent),f&&n.setState({modalAriaMessage:f})}}if(e===t_.internal.constants.eventNames.selectionChanged){var h=null==(s=n.selectResourceTypeRef.current.getSelectedResource())?void 0:s.id,m=null==h?void 0:h.paymentMethodFamily,g=null==h?void 0:h.paymentMethodType;l=m&&g,n.setState({selectedPm:{family:m,type:g}})}n.props.onEvent&&l&&n.props.onEvent(e,t)},n.addResourceEventHandler=function(e,t){var r,o,a=null==(r=n.props.displayOptions)?void 0:r.busyBlockShowHideHandler,s=t_.internal.constants.eventNames;e===s.error&&n.onErrorShowEditAddressForm(t),a&&(e===s.pageRendered||e===s.inputSubmitted)&&a(!1),(e===t_.internal.constants.eventNames.pageRendered||e===t_.internal.constants.eventNames.pageRefreshed)&&n.setState({addResourceRendered:!0}),e===t_.internal.constants.eventNames.propertySelected&&n.setState({disableFocusOnLoad:!1,lastFocusedElementId:null==(o=document.activeElement)?void 0:o.id}),n.props.onEvent&&n.props.onEvent(e,t)},n.showAddPiForm=function(e,t){var r=n.getPmId(e,t),o=n.getEmbeddedAddPiContainerId(e,t),a=document.querySelector("".concat(n.optionsListContainerSelector," div#").concat(o));if(document.querySelectorAll("".concat(n.optionsListContainerSelector,' div[id^="').concat(n.embeddedAddPIContainerSelectorRoot,'"]')).forEach(function(e){return e.style.display="none"}),a)a.style.display="block";else{var s=document.querySelector("".concat(n.optionsListContainerSelector,' input[type="radio"][id$="').concat(r,'"]'));if(s&&s.parentElement){if(n.props.busyBlockElement){var l=document.createElement("div");l.id=n.addPIContainerBusyBlockRoot+o,s.parentElement.appendChild(l)}var c=document.createElement("div");c.id=o,s.parentElement.appendChild(c);var u=ta.default.createElement(tx,tf({},n.getAddResourceProps(e,t)));tc.default.render(u,c)}}},n.addParentOperationIdToTelemetryOptions=function(e,t){return tf(tf({},e),{contextData:tf(tf({},null==e?void 0:e.contextData),{parentOperationId:n.state.parentOperationId})})},n.getPmId=function(e,t){return e+"_"+t.replace(/\s|,/g,"_")},n.getEmbeddedAddPiContainerId=function(e,t){var r=n.getPmId(e,t);return n.embeddedAddPIContainerSelectorRoot+r},n.getAddResourceRefKey=function(e,t){return"".concat(e,"_").concat(t)},n.moveNextPage=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)];(null==o?void 0:o.current)&&o.current.moveNextPage()},n.movePrevPage=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)];(null==o?void 0:o.current)&&o.current.movePrevPage()},n.cancel=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)];(null==o?void 0:o.current)&&o.current.cancel()},n.getNextButtonProps=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)],a=null,s=null;(null==o?void 0:o.current)&&(s=o.current.getPidlExternalControlPropsMap()),s&&s[t_.internal.constants.supportedPidlActions.next]?a=s[t_.internal.constants.supportedPidlActions.next]:s&&s[t_.internal.constants.supportedPidlActions.submit]&&(a=s[t_.internal.constants.supportedPidlActions.submit]);var l=null==a?void 0:a.displayContent;return l&&n.localizedStringFound(l,"Next")?{displayContent:l,type:t_.internal.constants.supportedPidlActions.next}:a},n.getPrevButtonProps=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)],a=null,s=null;return(null==o?void 0:o.current)&&(s=o.current.getPidlExternalControlPropsMap()),s&&s[t_.internal.constants.supportedPidlActions.prev]?a=s[t_.internal.constants.supportedPidlActions.prev]:s&&s[t_.internal.constants.supportedPidlActions.gohome]&&(a=s[t_.internal.constants.supportedPidlActions.gohome]),a},n.getCancelButtonProps=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)],a=null,s=null;return(null==o?void 0:o.current)&&(s=o.current.getPidlExternalControlPropsMap()),s&&s[t_.internal.constants.supportedPidlActions.gohome]&&(a=s[t_.internal.constants.supportedPidlActions.gohome]),a},n.getSelectResourceTypeExternalControlPropsMap=function(){var e;return(null==(e=n.selectResourceTypeRef)?void 0:e.current)?n.selectResourceTypeRef.current.getPidlExternalControlPropsMap():null},n.localizedStringFound=function(e,t){if(e===t)return!0;var r,o,a={"chr-cher-us":"en-us"},s=null==(r=n.props.pidlDocInfo.parameters.language)?void 0:r.toLowerCase(),l=(s=null!=(o=a[s])?o:s)?tD[s]:null;return!!l&&l[t]===e},n.state={addResourceRendered:!1,selectedPm:{family:"",type:""},parentOperationId:t_.internal.utils.guid(),modalAriaMessage:"",lastFocusedElementId:void 0,disableFocusOnLoad:n.props.displayOptions.disableFocusOnLoad},n}return tp(t,e),t.prototype.render=function(){return ta.default.createElement(ta.default.Fragment,null,ta.default.createElement("style",null," ",'\n                // Targets the embedded Add PIs inside each radio buttons.\n                #pidlddc-div-pagebodycontents div[id^="'.concat(this.embeddedAddPIContainerSelectorRoot,'"] {\n                    margin-left: 24px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup {\n                    flex-wrap: wrap;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup label#pidlddc-label-expiryGroup {\n                    display: block;\n                    width: 100%;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup .pidlddc-div-textbox {\n                    width: 60px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup #pidlddc-text-expiryDelimiter {\n                    margin: 6px 7px 0 8px;\n                }\n\n                #pidlddc-div-pagesubmitblock {\n                    width: 92.5%;\n                    background-color: rgb(255, 255, 255);\n                    padding-top: 10px;\n                    padding-bottom: 10px;\n\n                }\n\n                #pidlddc-div-pagesubmitblock .ms-Button, .pidlddc-ns-panel .pidlddc-submitGroup .ms-Button {\n                    width: 180px;\n                    margin-right: 10px;\n                }\n\n                /* Allows click events for links inside the radio button to work, for example the "privacy statement" link */\n                #pidlddc-div-pagebodycontents .pidlddc-div-paymentMethod .ms-ChoiceField-input {\n                    height: fit-content;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-microsoftPrivacyTextGroup {\n                    margin-top: 10px;\n                }\n                #pidlddc-div-pagebodycontents #pidlddc-text-paymentSummaryText {\n                    margin-bottom: 10px;\n                }\n\n                #pidlddc-div-pagebodycontents div[id^="').concat(this.embeddedAddPIContainerSelectorRoot,"\"] div.pidlddc-logoBlock {\n                    display: none; // Hides the credit card logos in Add PI.\n                }\n\n                /* hides duplicate header for pm types */\n                #pidlddc-div-pagebodycontents #pidlddc-text-paymentOptionText {\n                    display: none;\n                }\n\n                /* hides the duplicate logos for credit card */\n                #pidlddc-div-pagebodycontents .pidlddc-logo-image {\n                    display: none;\n                }\n\n                /* margins for the pm logo containers */\n                #pidlddc-div-pagebodycontents #pidlddc-div-multiplePaymentMethodLogosRowOneGroup {\n                    margin: 9px 6px 0 24px;\n                }\n\n                /* set height of pm logos so they aren't 0px by 0px */\n                #pidlddc-div-pagebodycontents #pidlddc-div-multiplePaymentMethodLogosRowOneGroup img {\n                    height: 32px;\n                    margin-right: 8px;\n                    width: 50px;\n                }\n\n                /* move container for logos below the pm type label */\n                #pidlddc-div-pagebodycontents .pidlddc-div-paymentMethod .ms-ChoiceField .ms-ChoiceField-input + div {\n                    align-items: flex-start;\n                    flex-direction: column;\n                }\n\n                /* alipay QR code */\n                #pidlddc-div-pagebodycontents #pidlddc-image-alipayQrCodeChallengeImage {\n                  width: 229px;\n                  height: 230px;\n                }\n            \n                /* Add spacing between all text fields except for first stack item (logo block) */\n                #pidlddc-div-pagebodycontents #pidlddc-div-pagebodycontents > .ms-StackItem ~ .ms-StackItem {\n                    padding-top: 7px;\n                }\n            ")),tI(),ta.default.createElement("div",{tabIndex:-1,"aria-label":this.state.modalAriaMessage},ta.default.createElement(pd,{iconName:"SingleColumnEdit",style:{display:"none"}}),ta.default.createElement(tk,tf({},this.getSelectResourceTypeProps()))))},t.prototype.componentDidUpdate=function(e,t){var n=this,r=this.state.selectedPm,o=r.family,a=r.type,s=this.state.addResourceRendered;if(o&&a&&(o!=t.selectedPm.family||a!=t.selectedPm.type)&&this.showAddPiForm(o,a),s&&s!=t.addResourceRendered){var l,c=this.getEmbeddedAddPiContainerId(o,a),u=document.querySelector("".concat(this.optionsListContainerSelector," div#").concat(c));u.style.display="none";var d="".concat(this.optionsListContainerSelector," div#").concat(c),p=this.props.busyBlockElement;p&&(l=document.getElementById(this.addPIContainerBusyBlockRoot+c)),l&&tc.default.render(p,l),setTimeout(function(){var e;if(tE(d),n.setState({addResourceRendered:!1}),u.style.display="block",n.state.lastFocusedElementId&&!n.state.disableFocusOnLoad){var t=(null!=(e=document.querySelector(d))?e:document).querySelector("#".concat(n.state.lastFocusedElementId));t&&t.focus()}l&&(l.style.display="none",l.remove())},100)}},t}(ta.default.Component),T4=function(e){function t(t){var n=e.call(this,t)||this;return n.optionsListContainerSelector="#pidlddc-div-pagebodycontents",n.updateResourceRef=ta.default.createRef(),n.busyCounter={count:0},n.getUpdateResourceProps=function(){var e,t=tT(n.props.returnOptions,null==(e=n.props.displayOptions)?void 0:e.busyBlockShowHideHandler);return tf(tf({},n.props),{ref:n.updateResourceRef,returnOptions:t,displayOptions:tf({},n.props.displayOptions),onEvent:n.updateResourceEventHandler})},n.updateResourceEventHandler=function(e,t){var r,o=null==(r=n.props.displayOptions)?void 0:r.busyBlockShowHideHandler,a=t_.internal.constants.eventNames;o&&(e===a.pidlDownloading||e===a.inputSubmitting)&&o(!0),o&&(e===a.pageRendered||e===a.inputSubmitted)&&o(!1),e===t_.internal.constants.eventNames.pageRendered&&n.setState({updateResourceRendered:!0}),n.props.onEvent&&n.props.onEvent(e,t)},n.moveNextPage=function(){var e;(null==(e=n.updateResourceRef)?void 0:e.current)&&n.updateResourceRef.current.moveNextPage()},n.movePrevPage=function(){var e;(null==(e=n.updateResourceRef)?void 0:e.current)&&n.updateResourceRef.current.movePrevPage()},n.cancel=function(){var e;(null==(e=n.updateResourceRef)?void 0:e.current)&&n.updateResourceRef.current.cancel()},n.state={updateResourceRendered:!1},n}return tp(t,e),t.prototype.render=function(){return ta.default.createElement(ta.default.Fragment,null,ta.default.createElement("style",null," ","\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryAndCvvAddGroup, #pidlddc-div-expiryAndCvvUpdateGroup {\n                    align-items: flex-end;\n                }\n                \n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup {\n                    flex-wrap: wrap;\n                }\n                \n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup label#pidlddc-label-expiryGroup {\n                    display: block;\n                    width: 100%;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup .pidlddc-div-textbox {\n                    width: 60px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup #pidlddc-text-expiryDelimiter {\n                    margin: 6px 7px 0 8px;\n                }\n                \n                #pidlddc-div-pagesubmitblock {\n                    width: 92.5%;\n                    background-color: rgb(255, 255, 255);\n                    padding-top: 10px;\n                    padding-bottom: 10px;    \n                }\n\n                #pidlddc-div-pagesubmitblock .ms-Button, .pidlddc-ns-panel .pidlddc-submitGroup .ms-Button {\n                    width: 180px;\n                    margin-right: 10px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-microsoftPrivacyTextGroup {\n                    margin-top: 10px;\n                }\n                \n                #pidlddc-div-pagebodycontents #pidlddc-text-paymentSummaryText  {\n                    margin-bottom: 10px;\n                }\n                \n                /* Add spacing between all text fields */\n                #pidlddc-div-pagebodycontents > .ms-StackItem {\n                    padding-top: 7px;\n                }\n            "),tI(),ta.default.createElement(tw,tf({},this.getUpdateResourceProps())))},t.prototype.componentDidUpdate=function(e,t){var n=this.state.updateResourceRendered;n&&n!=t.updateResourceRendered&&setTimeout(tE,100,this.optionsListContainerSelector)},t}(ta.default.Component),T3=function(e){function t(t){var n=e.call(this,t)||this;return n.selectResourceRef=ta.default.createRef(),n.getSelectResourceProps=function(){return tf(tf({},n.props),{ref:n.selectResourceRef})},n.getSelectedResource=function(){var e,t=null==(e=n.selectResourceRef)?void 0:e.current;if(t)return t.getSelectedResource()},n.moveNextPage=function(){var e,t=null==(e=n.selectResourceRef)?void 0:e.current;t&&t.moveNextPage()},n.movePrevPage=function(){var e,t=null==(e=n.selectResourceRef)?void 0:e.current;t&&t.movePrevPage()},n.cancel=function(){var e,t=null==(e=n.selectResourceRef)?void 0:e.current;t&&t.cancel()},n}return tp(t,e),t.prototype.render=function(){return ta.default.createElement(ta.default.Fragment,null,ta.default.createElement("style",null,'\n                    /* Container for each pi item "row" */\n                    #pidlddc-div-pagebodycontents .ms-ChoiceField {\n                        height: 65px;\n                        outline: 1px solid transparent;\n                        border-radius: 4px;\n                        background-color: rgba(0, 0, 0, 0.03);\n                        padding: 14px 16px;\n                    }\n\n                    /* Wraps all content inside each pi choice "row" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .ms-ChoiceField-wrapper {\n                        flex: 1;\n                    }\n\n                    /* Wraps all content to the right of the radio button in each pi choice "row" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container {\n                        flex: 1;\n                        align-items: center;\n                    }\n\n                    /* Targets container of all pi choice text aka "Visa **1234" and "Exp 01/2021" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container .ms-StackItem:nth-child(2) {\n                        flex: 1;\n                    }\n\n                    /* First line of text for each pi choice aka "Visa **1234" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container span[id^="pidlddc-text-optionPaymentText_part1_"] {\n                        font-weight: bold;\n                    }\n\n                    /* Second line of text for each pi choice aka "Exp 01/2021" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] div[id^="pidlddc-div-optionTextGroup_"] .ms-StackItem:nth-child(2) {\n                        justify-content: flex-start;\n                    }\n\n                    /* Container  the "Update" button for expired pi */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] .ms-StackItem:nth-child(2) {\n                        justify-content: flex-end;\n                        display: flex;\n                    }\n\n                    /* Container inside the "Update" button for expired pi */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] button[id^="pidlddc-button-optionUpdate_"] span {\n                        align-items: center;\n                    }\n\n                    /* "Update" button for expired pi */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] button[id^="pidlddc-button-optionUpdate_"] {\n                        color: #0067B8;\n                    }\n\n                    /* Logo for each pi choice */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .ms-Image {\n                        margin: 0px 16px;\n                    }\n\n                    /* Element with warning class for expired pi choice */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument div[id^="pidlddc-div-optionTextGroup_"] .pidlddc-warning-icon {\n                        color: #C72127;\n                    }\n\n                    /* Container for Add a way to pay "row" */\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink {\n                        outline: 1px solid transparent;\n                        border-radius: 4px;\n                        background-color: rgba(0, 0, 0, 0.03);\n                        padding: 14px 16px;\n                        margin-top: 6px;\n                        height: 59px;\n                        flex: 1;\n                        width: 100%;\n                    }\n\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink:focus {\n                        outline: 3px solid transparent;\n                    }\n\n                    /* Targets Add a way to pay + icon */\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink i {\n                        color: #000;\n                        margin-right: 16px;\n                    }\n\n                    /* Targets "Add a way to pay" text span */\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink {\n                        font-weight: bold;\n                    }\n\n                    /* Targets "I don\'t want a back-up" text span */\n                    #pidlddc-div-pagebodycontents #pidlddc-text-optionText_NoBackupPISelected {\n                        margin: 0px 16px;\n                        font-weight: bold;\n                    }\n                '),ta.default.createElement(tC,tf({},this.getSelectResourceProps())))},t}(ta.default.Component),T6=function(e){function t(t){var n=e.call(this,t)||this;return n.wrapperId="pidlddc-div-validateAddressEnrichment",n.getValidateAddressProps=function(){return tf(tf({},n.props),{onEvent:n.validateAddressEventHandler})},n.updateModalAriaMessage=function(){var e,t=null!=(e=n.wrapper.querySelector("#pidlddc-text-addressChangePageSubheading"))?e:n.wrapper.querySelector("#pidlddc-text-addressSuggestionMessage");t&&t.textContent!==n.state.modalAriaMessage&&n.setState({modalAriaMessage:t.textContent})},n.validateAddressEventHandler=function(e,t){(e===t_.internal.constants.eventNames.pageRendered||e===t_.internal.constants.eventNames.pageRefreshed)&&n.setState({validateAddressRendered:!0}),n.props.onEvent&&n.props.onEvent(e,t)},n.state={validateAddressRendered:!1,modalAriaMessage:""},n}return tp(t,e),t.prototype.componentDidMount=function(){this.wrapper=document.getElementById(this.wrapperId)},t.prototype.componentDidUpdate=function(){var e,t,n,r=null==(e=document.getElementById("pidlddc-div-pagebodycontents"))?void 0:e.children;r&&r.length>2&&(null==(t=r[0])||t.setAttribute("aria-hidden","true"),null==(n=r[1])||n.setAttribute("aria-hidden","true")),this.updateModalAriaMessage()},t.prototype.render=function(){return ta.default.createElement(ta.default.Fragment,null,ta.default.createElement("style",null," ","\n                #".concat(this.wrapperId," {\n                    display: flex;\n                    flex-direction: column;\n                    flex: 1;\n                    height: 100%;\n                }\n\n                #").concat(this.wrapperId," > #pidlddc-div-pagebodycontents {\n                    margin-bottom: 15px;\n                }\n\n                #").concat(this.wrapperId," > #pidlddc-div-pagebodycontents #pidlddc-div-addressChangeGroup {\n                    margin-top: 10px;\n                }\n\n                #").concat(this.wrapperId," > #pidlddc-div-pagesubmitblock {\n                    margin-top: auto;\n                    margin-bottom: 10px;\n                    bottom: auto !important;\n                    position: static !important;\n                }\n            ")),ta.default.createElement("div",{id:this.wrapperId},ta.default.createElement("div",{"aria-label":this.state.modalAriaMessage,"aria-live":"assertive"}),ta.default.createElement(tS,tf({},this.getValidateAddressProps()))))},t}(ta.default.Component);t.AddPaymentInstrument=T5,t.EditPaymentInstrument=T4,t.SelectPaymentInstrument=T3,t.ValidateAddress=T6},34561(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(57221);var r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C,k,w,S,_,E,P,I,T,D,A,R,N,B,M,F,O,L,H,z,V,U,j,W,q,G,K,X,Y,Q,J,Z,ee,et,en,er,eo,ei,ea,es,el,ec,eu,ed,ep,ef,eh,em,eg,ev,ey,eb,ex,eC,ek,ew,eS,e_,eE,eP,eI,eT,eD,eA,eR,eN,eB,eM,eF,eO,eL,eH,ez,eV,eU,ej,eW,eq,eG,eK,eX,eY,e$,eQ,eJ,eZ,e0,e1,e2=n(40887),e5=n(99870);function e4(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var e3=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(e2),e6=e4(e2),e8=e4(e5),e9="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==n.g?n.g:"u">typeof self?self:{};function e7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function te(e,t){return e(t={exports:{}},t.exports),t.exports}e7(te(function(e){!function(e){!function(t){var n="u">typeof globalThis&&globalThis||void 0!==e&&e||void 0!==e9&&e9||{},r={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function o(e){return e&&DataView.prototype.isPrototypeOf(e)}if(r.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function p(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function f(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function h(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){var t=new FileReader,n=f(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}function g(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&o(e)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(r.blob)return this.blob().then(h);throw Error("could not read as ArrayBuffer")},this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return m(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(g(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},r.formData&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[l(e)]},d.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},d.prototype.set=function(e,t){this.map[l(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},d.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},d.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},r.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var b=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(e){var t=e.toUpperCase();return b.indexOf(t)>-1?t:e}function C(e,t){if(!(this instanceof C))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(t=t||{}).body;if(e instanceof C){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new d(t.headers)),this.method=x(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in n)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+new Date().getTime());else{var a=/\?/;this.url+=(a.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function w(e){var t=new d;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}}),t}function S(e,t){if(!(this instanceof S))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},y.call(C.prototype),y.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var _=[301,302,303,307,308];S.redirect=function(e,t){if(-1===_.indexOf(t))throw RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,o){return new Promise(function(a,s){var u=new C(e,o);if(u.signal&&u.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var p=new XMLHttpRequest;function f(){p.abort()}function h(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}if(p.onload=function(){var e={statusText:p.statusText,headers:w(p.getAllResponseHeaders()||"")};0===u.url.indexOf("file://")&&(p.status<200||p.status>599)?e.status=200:e.status=p.status,e.url="responseURL"in p?p.responseURL:e.headers.get("X-Request-URL");var t="response"in p?p.response:p.responseText;setTimeout(function(){a(new S(t,e))},0)},p.onerror=function(){setTimeout(function(){s(TypeError("Network request failed"))},0)},p.ontimeout=function(){setTimeout(function(){s(TypeError("Network request timed out"))},0)},p.onabort=function(){setTimeout(function(){s(new t.DOMException("Aborted","AbortError"))},0)},p.open(u.method,h(u.url),!0),"include"===u.credentials?p.withCredentials=!0:"omit"===u.credentials&&(p.withCredentials=!1),"responseType"in p&&(r.blob?p.responseType="blob":r.arrayBuffer&&(p.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof d||n.Headers&&o.headers instanceof n.Headers)){var m=[];Object.getOwnPropertyNames(o.headers).forEach(function(e){m.push(l(e)),p.setRequestHeader(e,c(o.headers[e]))}),u.headers.forEach(function(e,t){-1===m.indexOf(t)&&p.setRequestHeader(t,e)})}else u.headers.forEach(function(e,t){p.setRequestHeader(t,e)});u.signal&&(u.signal.addEventListener("abort",f),p.onreadystatechange=function(){4===p.readyState&&u.signal.removeEventListener("abort",f)}),p.send(void 0===u._bodyInit?null:u._bodyInit)})}E.polyfill=!0,n.fetch||(n.fetch=E,n.Headers=d,n.Request=C,n.Response=S),t.Headers=d,t.Request=C,t.Response=S,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}("u">typeof self?self:e9)}));var tt=function(e,t){return(tt=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])})(e,t)};function tn(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}tt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var tr=function(){return(tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function to(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ti(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function ta(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=l(0),s.throw=l(1),s.return=l(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return c([e,t])}}function c(l){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function ts(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var tl=Object.prototype.hasOwnProperty,tc=Object.prototype.toString,tu=Object.defineProperty,td=Object.getOwnPropertyDescriptor,tp=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===tc.call(e)},tf=function(e){if(!e||"[object Object]"!==tc.call(e))return!1;var t,n=tl.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&tl.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||tl.call(e,t)},th=function(e,t){tu&&"__proto__"===t.name?tu(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},tm=function(e,t){if("__proto__"===t){if(!tl.call(e,t))return;else if(td)return td(e,t).value}return e[t]},tg=function e(){var t,n,r,o,a,s,l=arguments[0],c=1,u=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},c=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});c<u;++c)if(t=arguments[c],null!=t)for(n in t)r=tm(l,n),l!==(o=tm(t,n))&&(d&&o&&(tf(o)||(a=tp(o)))?(a?(a=!1,s=r&&tp(r)?r:[]):s=r&&tf(r)?r:{},th(l,{name:n,newValue:e(d,s,o)})):void 0!==o&&th(l,{name:n,newValue:o}));return l};!function(e){e.Unknown="Unknown",e.iFrameMessageHandler="iFrameMessageHandler"}(r||(r={})),function(e){e.forSubmit="forSubmit",e.forDisplay="forDisplay"}(o||(o={})),function(e){e.message="message"}(a||(a={})),function(e){e.forFormat="forFormat",e.forModel="forModel"}(s||(s={})),function(e){e.Error="error",e.Fail="failed",e.Passed="passed"}(l||(l={})),function(e){e.PaymentInstrument="PaymentInstrument",e.Challenge="Challenge",e.Address="Address",e.Profile="Profile",e.PaymentSession="PaymentSession",e.Checkout="Checkout",e.PayeeTaxProfile="PayeeTaxProfile",e.WalletToken="WalletToken"}(c||(c={})),function(e){e.div="pidlddc-div",e.errorDiv="pidlddc-errordiv",e.label="pidlddc-label",e.key="pidlddc-input-key",e.property="pidlddc-input-property",e.dropdown="pidlddc-input-dropdown",e.radio="pidlddc-input-radio",e.radioLabel="pidlddc-radio-label",e.buttonList="pidlddc-input-buttonlist",e.checkBox="pidlddc-input-checkbox",e.textBox="pidlddc-input-text",e.filePicker="pidlddc-input-file",e.staticText="pidlddc-static-text",e.heading="pidlddc-heading",e.subHeading="pidlddc-subheading",e.text="pidlddc-text",e.textGroup="pidlddc-text-group",e.hyperlink="pidlddc-hyperlink",e.image="pidlddc-image",e.error="pidlddc-error",e.separator="pidlddc-separator",e.pageBody="pidlddc-page-body",e.logo="pidlddc-logo-image",e.submitButton="pidlddc-submit-button",e.button="pidlddc-button",e.busyBlock="pidlddc-busy-block",e.errorBlock="pidlddc-error-block",e.errorInlineGroup="pidlddc-error-inlineGroup",e.submitBlock="pidlddc-submit-block",e.helpImage="pidlddc-help-image",e.helpDialogBlock="pidlddc-help-dialog-block",e.helpDialogContentBlock="pidlddc-help-dialog-content-block",e.modalDialogBlock="pidlddc-modal-dialog-block",e.modalDialogContentBlock="pidlddc-modal-dialog-content-block",e.helpDialogClose="pidlddc-help-dialog-close",e.helpImageLink="pidlddc-help-imageLink",e.helpTextLink="pidlddc-help-textLink",e.pageContentBlock="pidlddc-pagecontent-block",e.prefillControl="pidlddc-input-prefillcontrol",e.prefillCheckbox="pidlddc-input-prefillcheckbox",e.prefillDropdown="pidlddc-input-prefilldropdown",e.propertyDiv="pidlddc-div-property",e.dropdownDiv="pidlddc-div-dropdown",e.checkBoxDiv="pidlddc-div-checkbox",e.textBoxDiv="pidlddc-div-textbox",e.securePropertyDiv="pidlddc-div-secureproperty",e.filePickerDiv="pidlddc-div-filepicker",e.imageDiv="pidlddc-div-image",e.logoDiv="pidlddc-div-logo",e.buttonDiv="pidlddc-div-button",e.groupDiv="pidlddc-div-group",e.errorStroke="pidlddc-errorstroke",e.highlighted="pidlddc-highlighted",e.back="pidlddc-back",e.inlineGroup="pidlddc-group-inline",e.inputTextDisabled="pidlddc-input-text-disabled",e.inputSelectDisabled="pidlddc-input-select-disabled",e.displayLogo="pidlddc-input-logo",e.filled="pidlddc-filled",e.iFrame="pidlddc-iFrame",e.secureProperty="pidlddc-secure-property",e.iFrameDiv="pidlddc-div-iFrame",e.captchaDiv="pidlddc-div-captcha",e.audio="pidlddc-audio",e.challengeIFrame="pidlddc-challengeiFrame",e.challengeIFrameDiv="pidlddc-div-challengeiFrame"}(u||(u={})),function(e){e.index="pidlddc-inline-element-",e.taggedClass="pidlddc-"}(d||(d={})),function(e){e.div="pidlddc-div-",e.error="pidlddc-error-",e.label="pidlddc-label-",e.text="pidlddc-text-",e.hyperlink="pidlddc-hyperlink-",e.property="pidlddc-input-",e.button="pidlddc-button-",e.audio="pidlddc-audio-",e.buttongroup="pidlddc-button-group-",e.iFrame="pidlddc-iFrame-",e.challengeiFrame="pidlddc-challengeiFrame-",e.input="input_",e.iframe="iframe_",e.filePicker="filepicker_",e.secureProperty="pidlddc-secure-input-",e.image="pidlddc-image-",e.helpDialog="helpdialog-",e.helpDialogContent="helpdialog-content-",e.modalDialog="modaldialog-",e.modalDialogContent="modaldialog-content-",e.prefillControl="pidlddc-prefillcontrol-",e.maxLength="pidlddc-maxlength-",e.logo="pidlddc-logo-",e.separator="pidlddc-separator-",e.spinner="pidlddc-spinner-",e.pidlInstance="pidlddc-pidlinstance-"}(p||(p={})),function(e){e.pageBlock="pagebodycontents",e.pageLogoBlock="pagelogoblock",e.pageBusyBlock="pagebusyblock",e.pageErrorBlock="pageerrorblock",e.pageSubmitBlock="pagesubmitblock",e.helpDialogBlock="pagehelpdialog",e.modalDialogBlock="pagemodaldialog",e.displayImage="displayImage",e.closeButton="closeButton",e.prefillCheckbox="prefillCheckbox"}(f||(f={})),function(e){e[e.Unexpected=1e3]="Unexpected",e[e.InvalidInput=1001]="InvalidInput",e[e.ServerError=1002]="ServerError"}(h||(h={})),function(e){e.success="success",e.failure="failure",e.gohome="gohome"}(m||(m={})),function(e){e.unknown="modelElementType_unknown",e.page="modelElementType_page",e.group="modelElementType_group",e.captcha="modelElementType_captcha",e.audio="modelElementType_audio",e.textGroup="modelElementType_textGroup",e.heading="modelElementType_heading",e.subheading="modelElementType_subheading",e.text="modelElementType_text",e.hyperlink="modelElementType_hyperlink",e.image="modelElementType_image",e.logo="modelElementType_logo",e.dropdown="modelElementType_dropdown",e.checkBox="modelElementType_checkBox",e.textBox="modelElementType_textBox",e.button="modelElementType_button",e.expression="modelElementType_expression",e.radio="modelElementType_radio",e.buttonList="modelElementType_buttonlist",e.pidlContainer="modelElementType_pidlContainer",e.pidlInstance="modelElementType_pidlInstance",e.dataCollectionBindingGroup="modelElementType_dataCollectionBindingGroup",e.iFrame="modelElementType_iFrame",e.challengeIFrame="modelElementType_challengeiFrame",e.expressCheckoutButton="modelElementType_expressCheckoutButton",e.filePicker="modelElementType_filePicker",e.secureProperty="modelElementType_secureProperty",e.separator="modelElementType_separator",e.spinner="modelElementType_spinner"}(g||(g={})),function(e){e.modelElementType_heading="h1",e.modelElementType_subheading="h2",e.modelElementType_text="p",e.modelElementType_expression="p",e.modelElementType_textGroup="p"}(v||(v={})),function(e){e.button="button",e.iFrame="iframe",e.div="div",e.hyperlink="a",e.image="img",e.input="input",e.label="label",e.select="select",e.span="span",e.h1="h1",e.h2="h2",e.hr="hr",e.audio="audio"}(y||(y={})),function(e){e.image="image",e.button="button",e.password="password",e.radio="radio",e.checkbox="checkbox",e.file="file"}(b||(b={})),function(e){e.add="Add",e.replace="Replace",e.createPaymentSession="createPaymentSession",e.getSelectedResource="GetSelectedResource",e.handleAction="HandleAction",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.expressCheckout="expressCheckout",e.invokeResourceAction="InvokeResourceAction",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="RenderPidlPage",e.selectResource="SelectResource",e.selectResourceType="SelectResourceType",e.selectSingleResource="SelectSingleResource",e.show="Show",e.offer="Offer",e.search="Search",e.update="Update",e.validateResource="ValidateResource",e.verify="Verify",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.applyResource="applyResource",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.delete="Delete",e.getPayeeTaxProfile="getPayeeTaxProfile",e.redeemMSRewards="redeemMSRewards",e.searchTransactions="searchTransactions",e.selectMSRewards="selectMSRewards"}(x||(x={})),function(e){e.stringTrue="true",e.stringFalse="false",e.stringOptional="optional"}(C||(C={})),function(e){e.submit="submit",e.triggerSubmit="triggerSubmit",e.submitOriginalPidl="submitOriginalPidl",e.gohome="gohome",e.next="moveNext",e.prev="movePrevious",e.first="moveFirst",e.last="moveLast",e.success="success",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.redirect="redirect",e.restAction="restAction",e.restartFlow="restartFlow",e.successWithPidlPayload="successWithPidlPayload",e.navigateAndNext="navigateAndMoveNext",e.validate="validate",e.validateOnChange="validateOnChange",e.poll="poll",e.moveNextAndPoll="moveNextAndPoll",e.handleFailure="handleFailure",e.updatePoll="updatePoll",e.continueSuspendedAction="continueSuspendedAction",e.closeModalDialog="closeModalDialog",e.mergeData="mergeData",e.propertyBindingAction="propertyBindingAction",e.closePidlPage="closePidlPage",e.successWithSelectedPidlAction="successWithSelectedPidlAction",e.updatePollAndMoveLast="updatePollAndMoveLast",e.noAction="noAction",e.moveToPageIndex="moveToPageIndex",e.updatePropertyValue="updatePropertyValue"}(k||(k={})),function(e){e.selectSingleResource="selectSingleResource",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.addResource="addResource",e.updateResource="updateResource",e.deleteResource="deleteResource",e.handleChallenge="handleChallenge",e.collectResourceInfo="collectResourceInfo",e.addAddress="addAddress",e.selectPaymentInstrument="selectPaymentInstrument",e.addPaymentInstrument="addPaymentInstrument",e.updateProfile="updateProfile",e.searchTransactions="searchTransactions"}(w||(w={})),function(e){e.error="error",e.styleSheetError="styleSheetError",e.captchaRendered="captchaRendered",e.propertyCreating="propertyCreating",e.propertySelected="propertySelected",e.toggleClicked="toggleClicked",e.instanceDownloading="instanceDownloading",e.instanceDownloaded="instanceDownloaded",e.pidlDownloading="pidlDownloading",e.pidlDownloaded="pidlDownloaded",e.pageRendering="pageRendering",e.pageRendered="pageRendered",e.pageRefreshed="pageRefreshed",e.pageDisplayed="pageDisplayed",e.inputReading="inputReading",e.inputRead="inputRead",e.inputValidating="inputValidating",e.inputValidated="inputValidated",e.inputTokenizing="inputTokenizing",e.inputTokenized="inputTokenized",e.inputSubmitting="inputSubmitting",e.inputSubmitted="inputSubmitted",e.redirecting="redirecting",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.propertyValidated="propertyValidated",e.propertyTokenizing="propertyTokenizing",e.propertyTokenized="propertyTokenized",e.propertyTransforming="propertyTransforming",e.propertyTransformed="propertyTransformed",e.resourceSelected="resourceSelected",e.pageNavigated="pageNavigated",e.click="click",e.payloadCreated="payloadCreated",e.restMethodInvoking="restMethodInvoking",e.restMethodInvoked="restMethodInvoked",e.noSelectionOptionsFound="noSelectionOptionsFound",e.selectionChanged="selectionChanged",e.fetchCallCompleted="fetchCallCompleted",e.renderedPidlPage="renderedPidlPage",e.closePidlPage="closePidlPage",e.submitOriginalPidl="submitOriginalPidl",e.fileUploading="fileUploading",e.fileUploaded="fileUploaded",e.isDisabled="isDisabled",e.expressCheckoutReady="expressCheckoutReady",e.propertyConditionallyUpdated="propertyConditionallyUpdated",e.challengeMessageReceived="challengeMessageReceived",e.getLocalDataSourceInvoked="getLocalDataSourceInvoked",e.getLocalDataSourceResolved="getLocalDataSourceResolved",e.getLocalDataSourceError="getLocalDataSourceError",e.paymentSheetOpened="paymentSheetOpened",e.paymentSheetCancelled="paymentSheetCancelled"}(S||(S={})),function(e){e.apiCalled="apiCalled",e.apiReturned="apiReturned",e.modelUpdated="modelUpdated",e.dataUpdated="dataUpdated",e.failure="failure",e.success="success",e.gohome="gohome",e.stateChanged="stateChanged",e.propertyCreated="propertyCreated",e.propertyUnselected="propertyUnselected",e.conflictingInputValues="conflictingInputValues",e.pidlResolved="pidlResolved",e.secureFieldEventReceived="secureFieldEventReceived",e.secureFieldEventQueued="secureFieldEventQueued",e.secureFieldEventPosted="secureFieldEventPosted",e.secureFieldLoadWaitStarted="secureFieldWaitStarted",e.secureFieldsLoaded="secureFieldsLoaded",e.secureFieldLoadWaitEnded="secureFieldWaitEnded",e.challengeMessageReceived="challengeMessageReceived",e.paymentDataTokenizing="paymentDataTokenizing",e.paymentDataTokenized="paymentDataTokenized",e.postMessageReceived="postMessageReceived",e.postMessageHandleSuccess="postMessageHandleSuccess",e.postMessageHandleFailure="postMessageHandleFailure",e.postMessageTimeoutHandleSuccess="postMessageTimeoutHandleSuccess",e.postMessageTimeoutHandleFailure="postMessageTimeoutHandleFailure",e.postMessageBusyTimerStarted="postMessageBusyTimerStarted",e.postMessageBusyTimerEnded="postMessageBusyTimerEnded",e.pollingStarted="pollingStarted",e.pollingEnded="pollingEnded",e.paymentClientSubmissionSkipped="paymentClientSubmissionSkipped",e.resourceHelpersFunctionExecuted="resourceHelpersFunctionExecuted",e.submitting="submitting",e.submitted="submitted",e.pollClientActionSuccess="pollClientActionSuccess",e.pollClientActionFailure="pollClientActionFailure",e.hideModalDialog="hideModalDialog",e.updatePollAndMoveLast="updatePollAndMoveLast",e.pidlActionInvoked="pidlActionInvoked",e.clientActionInvoked="clientActionInvoked",e.propertyValueSelected="propertyValueSelected",e.eventExtenderRegistered="eventExtenderRegistered",e.metric="metric",e.addSecureFieldPreLoadIFrameStarted="addSecureFieldPreLoadIFrameStarted",e.addSecureFieldPreLoadIFrameCompleted="addSecureFieldPreLoadIFrameCompleted",e.addSecureFieldPreLoadIFrameFailed="addSecureFieldPreLoadIFrameFailed",e.implementationMissing="implementationMissing"}(_||(_={})),function(e){e.containerId="containerId",e.busyBlockId="busyBlockId",e.busyBlockShowHideHandler="busyBlockShowHideHandler",e.inputPropertyIdPrefix="inputPropertyIdPrefix",e.inputPropertyIdSuffix="inputPropertyIdSuffix",e.displayElementIdPrefix="displayElementIdPrefix",e.displayElementIdSuffix="displayElementIdSuffix",e.inputPropertyErrorIdPrefix="inputPropertyErrorIdPrefix",e.showPlaceholderInTextbox="showPlaceholderInTextbox",e.showSubmitBlock="showSubmitBlock",e.showErrorBlock="showErrorBlock",e.disableEnterKeyAction="disableEnterKeyAction",e.htmlExtender="htmlExtender",e.hidePropertyErrors="hidePropertyErrors",e.disableFocusOnLoad="disableFocusOnLoad",e.alwaysValidateOnChange="alwaysValidateOnChange",e.ieExtender="ieExtender",e.propagateCallbackException="propagateCallbackException",e.useWebView2="useWebView2",e.busyUntilInitialPageRendered="busyUntilInitialPageRendered",e.secureFieldPreLoadingEnabled="secureFieldPreLoadingEnabled",e.instanceName="instanceName",e.preventUnmountOnFinish="preventUnmountOnFinish"}(E||(E={})),function(e){e.formValidationFailed="formValidationFailed",e.editedPropertiesValidationFailed="editedPropertiesValidationFailed"}(P||(P={})),function(e){e.inputValidation="inputValidationError",e.userInputValidation="userInputValidationError",e.formValidation="formValidationFailed",e.unexpected="unexpected",e.serverError="serverError",e.missingImplementationError="missingImplementationError",e.invalidSetup="invalidSetup",e.paymentMethodFailure="paymentMethodFailure",e.failedToOpenWindow="failedToOpenWindow",e.unmatchedAmount="unmatchedAmount",e.walletProvider="walletProvider",e.secureFieldInitCompletedTimeout="secureFieldInitCompletedTimeout"}(I||(I={})),function(e){e.validationFailed="ValidationFailed",e.tokenizationFailed="TokenizationFailed",e.fileUploadFailed="FileUploadFailed"}(T||(T={})),function(e){e.property="property",e.group="group"}(D||(D={})),function(e){e.all="all",e.dirtyOnly="dirtyOnly"}(A||(A={})),function(e){e.empty="required_field_empty"}(R||(R={})),function(e){e.div="htmlElementType_div",e.label="htmlElementType_label",e.captcha="htmlElementType_captcha",e.audio="htmlElementType_audio",e.dropdown="htmlElementType_dropdown",e.checkBox="htmlElementType_checkBox",e.radio="htmlElementType_radio",e.buttonList="htmlElementType_buttonList",e.textBox="htmlElementType_textBox",e.filePicker="htmlElementType_filePicker",e.button="htmlElementType_button",e.iFrame="htmlElementType_iFrame",e.challengeIFrame="htmlElementType_challengeiFrame",e.secureProperty="htmlElementType_secureProperty",e.heading="htmlElementType_text_heading",e.subHeading="htmlElementType_text_subheading",e.text="htmlElementType_text",e.textGroup="htmlElementType_textGroup",e.hyperlink="htmlElementType_hyperlink",e.image="htmlElementType_image",e.logo="htmlElementType_logo",e.errorDiv="htmlElementType_errorDiv",e.error="htmlElementType_error",e.separator="htmlElementType_separator"}(N||(N={})),function(e){e.busyBlock="busyBlock",e.errorBlock="errorBlock",e.helpDialogBlock="helpDialogBlock",e.helpDialogContentBlock="helpDialogContentBlock",e.pageContentBlock="pageContentBlock",e.submitBlock="submitBlock",e.modalDialogBlock="modalDialogBlock",e.modalDialogContentBlock="modalDialogContentBlock"}(B||(B={})),function(e){e.authorization="authorization",e.contentType="content-type",e.msCV="ms-cv",e.msCorrelationId="x-ms-correlation-id",e.msFlight="x-ms-flight",e.msTrackingId="x-ms-tracking-id",e.msRetryOnServerErr="x-ms-px-retry-servererr",e.correlationContext="Correlation-Context",e.msPidlsdkVersion="x-ms-pidlsdk-version",e.msTest="x-ms-test",e.msClientContext="x-ms-pidlsdk-clientcontext"}(M||(M={})),function(e){e.enablePaymentAgentChallenge="pidl-enable-payment-agent-challenge"}(F||(F={})),function(e){e.operation="operation"}(O||(O={})),function(e){e.role="role",e.required="required",e.src="src",e.controls="controls"}(L||(L={})),function(e){e.pidlInfo="pidlInfo",e.paymentInstruments="paymentInstruments"}(H||(H={})),function(e){e.alt="alt",e.tabIndex="tabindex"}(z||(z={})),function(e){e[e.element=1]="element",e[e.attribute=2]="attribute",e[e.text=3]="text",e[e.comment=8]="comment"}(V||(V={})),function(e){e.alert="alert",e.dialog="dialog",e.combobox="combobox",e.radiogroup="radiogroup",e.radio="radio",e.presentation="presentation",e.group="group",e.image="img",e.separator="separator",e.audio="audio"}(U||(U={})),function(e){e.activedescendant="aria-activedescendant",e.describedBy="aria-describedby",e.disabled="aria-disabled",e.expanded="aria-expanded",e.hidden="aria-hidden",e.label="aria-label",e.labelledBy="aria-labelledby",e.live="aria-live",e.selected="aria-selected",e.checked="aria-checked",e.required="aria-required"}(j||(j={})),function(e){e.polite="polite",e.assertive="assertive",e.off="off"}(W||(W={})),function(e){e.errorBlockId="data-pidl-error-block-id"}(q||(q={})),function(e){e.market="country"}(G||(G={})),function(e){e.country="market"}(K||(K={})),function(e){e.windows="windows"}(X||(X={})),function(e){e.closeButtonHelpText="closeButtonAccessiblityName",e.prefillDropdownDefault="dropdown_default",e.prefillDropdownNew="dropdown_new"}(Y||(Y={})),function(e){e.notInitialized="notInitialized",e.initialized="initialized",e.executing="executing",e.submitting="submitting"}(Q||(Q={})),function(e){e.clean="clean",e.editing="editing",e.dirty="dirty"}(J||(J={})),function(e){e.ready="ready",e.selected="selected",e.editing="editing",e.finished="finished"}(Z||(Z={})),function(e){e.empty="[]"}(ee||(ee={})),function(e){e.pageNavigated="pageNavigated",e.modelCreated="modelCreated",e.modelUpdated="modelUpdated",e.prefillChanged="prefillChanged"}(et||(et={})),function(e){e.constructor="constructor",e.addResource="addResource",e.applyResource="applyResource",e.replaceResource="replaceResource",e.cancel="cancel",e.destroyInstance="destroyInstance",e.createPaymentSession="createPaymentSession",e.getPidlPayload="getPidlPayload",e.getSelectedResource="getSelectedResource",e.handleAction="handleAction",e.handleChallenge="handleChallenge",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.expressCheckout="expressCheckout",e.invokePageDefaultAction="invokePageDefaultAction",e.invokeResourceAction="invokeResourceAction",e.modelSubmitForm="modelSubmitForm",e.moveNextPage="moveNextPage",e.submitPage="submitPage",e.validateProperties="validateProperties",e.movePrevPage="movePrevPage",e.moveToLastPage="moveToLastPage",e.moveToFirstPage="moveToFirstPage",e.postMessageToChildIFrames="postMessageToChildiFrames",e.refreshData="refreshData",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="renderPidlPage",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.selectSingleResource="selectSingleResource",e.showResource="showResource",e.searchResource="searchResource",e.updateResource="updateResource",e.validateResource="validateResource",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.deleteResource="deleteResource",e.getPayeeTaxProfile="getPayeeTaxProfile",e.redeemMSRewards="redeemMSRewards",e.searchTransactions="searchTransactions",e.offerResource="offerResource",e.selectMSRewards="selectMSRewards"}(en||(en={})),function(e){e[e.arrowDown=40]="arrowDown",e[e.arrowUp=38]="arrowUp",e[e.enter=13]="enter",e[e.escape=27]="escape",e[e.xboxBackButton=196]="xboxBackButton",e[e.xboxEnterButton=207]="xboxEnterButton"}(er||(er={})),function(e){e.hidden="hidden",e.number="number",e.bool="bool",e.object="object",e.returnObject="returnObject"}(eo||(eo={})),function(e){e.sessionId="sessionId",e.riskData="riskData",e.greenId="greenId"}(ei||(ei={})),function(e){e.userData="userData"}(ea||(ea={})),function(e){e.captchaType="captchaType"}(es||(es={})),function(e){e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE"}(el||(el={})),function(e){e.accessibilityName="accessibilityName",e.theme="theme",e.tabIndex="tabIndex",e.maxLengthMessage="maxLengthMessage",e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.linkAccessibilityName="linkAccessibilityName",e.accessibilityHint="accessibilityHint",e.hideInlineError="hideInlineError",e.displayTagStyleHints="displayTagStyleHints",e.separator="separator"}(ec||(ec={})),function(e){e.noPidlddc="noPidlddc.",e.helpDialog="help.",e.pidlReact="pidlReact.",e.parent="parent."}(eu||(eu={})),function(e){e.allowedCountries="allowedCountries"}(ed||(ed={})),function(e){e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.accessibilityName="accessibilityName",e.linkAccessibilityName="linkAccessibilityName"}(ep||(ep={})),function(e){e.primary="primary",e.secondary="secondary"}(ef||(ef={})),function(e){e.ignore="ignore",e.throw="throw"}(eh||(eh={})),function(e){e.token="piAuthKey",e.algorithm="hmacsha256",e.userCredential="userCredential"}(em||(em={})),function(e){e.jarvisError=".",e.paymentMethodName="."}(eg||(eg={})),function(e){e.partnerData="partnerData",e.contextData="contextData"}(ev||(ev={})),function(e){e.paymentTransaction="PaymentTransaction",e.recurringTransaction="RecurringTransaction",e.addCard="AddCard"}(ey||(ey={})),function(e){e.noPreference="NoPreference",e.noChallengeRequested="NoChallengeRequested",e.challengeRequestedPreference="ChallengeRequestedPreference",e.challengeRequestedMandate="ChallengeRequestedMandate"}(eb||(eb={})),function(e){e.small="01",e.medium="02",e.large="03",e.extraLarge="04",e.fullScreen="05"}(ex||(ex={})),function(e){e.Succeeded="Succeeded",e.ByPassed="ByPassed",e.Failed="Failed",e.Cancelled="Cancelled",e.TimedOut="TimedOut",e.NotApplicable="NotApplicable",e.Unknown="Unknown"}(eC||(eC={})),function(e){e.ThreeDS="threeds",e.CVV="cvv",e.SMS="sms"}(ek||(ek={})),function(e){e[e.Default=3e3]="Default"}(ew||(ew={})),function(e){e.link="]("}(eS||(eS={})),function(e){e.floatRight="floatRight",e.floatLeft="floatLeft"}(e_||(e_={})),function(e){e.loaded="loaded",e.initCompleted="initCompleted",e.readyForSubmit="readyForSubmit",e.validationCompleted="validationCompleted",e.valueUpdated="valueUpdated",e.keyPropertyResolved="keyPropertyResolved",e.focused="focused",e.blurred="blurred",e.hmacSignatureCreated="hmacSignatureCreated"}(eE||(eE={})),function(e){e.init="init",e.hydrateState="hydrateState",e.clearState="clearState",e.applyPlaceholder="applyPlaceholder",e.applyCss="applyCss",e.applyFocus="applyFocus",e.validate="validate",e.prepareForSubmit="prepareForSubmit",e.updateWidth="updateWidth",e.createHmacSignature="createHmacSignature"}(eP||(eP={})),function(e){e[e.pidlSdkWaitTimeForSecureFieldsInit=2e3]="pidlSdkWaitTimeForSecureFieldsInit",e.pidlSdkMessageSource="PidlSdk",e.secureFieldMessageSource="PXSecureField",e.tokenizationValuePrefix="tokenized_"}(eI||(eI={})),function(e){e.loaded="expressCheckout.loaded",e.paymentSheetOpened="expressCheckout.paymentSheetOpened",e.isEligible="expressCheckout.isEligible",e.paymentData="expressCheckout.paymentData",e.setup="expressCheckout.setup",e.error="expressCheckout.error",e.cancel="expressCheckout.cancel",e.paymentDataTokenizing="expressCheckout.paymentDataTokenizing",e.paymentDataTokenized="expressCheckout.paymentDataTokenized"}(eT||(eT={})),function(e){e.failedToOpenWindow="failed to open window",e.tokenizationFailed="tokenizationFailed"}(eD||(eD={})),function(e){e.pidlSdkWaitTimeForSecureFieldsInit="pidlSdkWaitTimeForSecureFieldsInit"}(eA||(eA={})),function(e){e.challengeiFrameLoaded="challengeiFrameLoaded",e.challengeCompleted="challengeCompleted"}(eR||(eR={})),function(e){e.challengeiFrameMessageSource="ChallengeUI"}(eN||(eN={})),function(e){e.viewTermsTriggered="viewTermsTriggered"}(eB||(eB={})),function(e){e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute"}(eM||(eM={})),function(e){e.applePay="be4de87d-7e38-4b2d-8836-9237eb32848e"}(eF||(eF={})),function(e){e.styleHintDefs="styleHintDefs",e.baseStyleHintDefs="baseStyleHintDefs"}(eO||(eO={}));var tv=Object.freeze({__proto__:null,get requestOriginator(){return r},get pidlTransformationTargets(){return o},get eventTypes(){return a},get displayTransformationTargets(){return s},get pidlResultType(){return l},get pidlResourceTypes(){return c},get htmlClassNames(){return u},get htmlClassPrefixes(){return d},get htmlElementIdPrefixes(){return p},get htmlElementIdSuffixes(){return f},get errorCode(){return h},get returnCallbackNames(){return m},get modelElementType(){return g},get textBlockTypes(){return v},get htmlBlockTypes(){return y},get htmlInputTypes(){return b},get telemetryPidlOperationType(){return x},get showDisplayNameValues(){return C},get supportedPidlActions(){return k},get resourceActions(){return w},get eventNames(){return S},get privateEventNames(){return _},get displayOptionNames(){return E},get errorNames(){return P},get errorTypes(){return I},get serverErrorTypes(){return T},get validationErrorTypes(){return D},get validationOptions(){return A},get validationErrorCodes(){return R},get htmlElementTypes(){return N},get containerTypes(){return B},get httpHeaders(){return M},get flightHeaders(){return F},get httpUrlQueryParameters(){return O},get htmlAttributes(){return L},get pidlPayloadAttributes(){return H},get htmlTags(){return z},get htmlNodeTypes(){return V},get htmlRoles(){return U},get ariaTags(){return j},get ariaLiveInterruptLevels(){return W},get dataAttributes(){return q},get sdkParamUrlQueryParamMap(){return G},get pidlPropertyNameToPidlDocInfoProperty(){return K},get themes(){return X},get pidlStringKeys(){return Y},get controlStates(){return Q},get propertyEditState(){return J},get controlOperationTypes(){return Z},get errorValue(){return ee},get viewUpdateReasons(){return et},get pidlDdcApiNames(){return en},get keyCodes(){return er},get dataTypes(){return eo},get clientDataTypes(){return ei},get propertyTypes(){return ea},get captchaPropertyName(){return es},get httpActions(){return el},get knownTags(){return ec},get knownTagPrefixes(){return eu},get knownQueryParameters(){return ed},get helpDialogPrefixedTags(){return ep},get scenarioContextResourceType(){return ef},get scenarioContextTerminatingErrorHandling(){return eh},get hmac(){return em},get delimiters(){return eg},get dataStores(){return ev},get challengeScenario(){return ey},get riskChallengeIndicator(){return eb},get challengeWindowSize(){return ex},get challengeStatus(){return eC},get challengeType(){return ek},get pollingInterval(){return ew},get TextSymbols(){return eS},get displayHelpPosition(){return e_},get SecureFieldEvent(){return eE},get SecureFieldMessages(){return eP},get SecureFieldConstants(){return eI},get ExpressCheckoutButtonMessages(){return eT},get ExpressCheckoutButtonDebugMessages(){return eD},get ClientSettingNames(){return eA},get ChallengeiFrameEvent(){return eR},get ChallengeiFrameConstants(){return eN},get CustomTriggerEventConstants(){return eB},get FrequencyUnitConstants(){return eM},get PaymentMethodPIIDs(){return eF},get styleHintDefsCacheNames(){return eO}}),ty=new(function(){return function(){var e=this;this.skipQueryParameter=function(e){if(!e)return!1;var t=ri.find(ri.getKeys(ed),function(t){return t.toLowerCase()===e.toLowerCase()});return ri.boolify(t)},this.mapQueryParameter=function(e){return G[ri.toLowerCase(e)]||e},this.buildUrlInternal=function(t,n,r){var o;if(o=ri.startsWith(t,"https://")?t:ri.startsWith(t,"http://")?"https://"+t.substr(7):"https://"+t,n)for(var a=0;a<n.length;a++)o+=ri.startsWith(n[a],"/")?n[a]:"/"+n[a];return r&&Object.keys(r).sort().forEach(function(t){if(!e.skipQueryParameter(t)){var n=r[t];n&&(o=e.addQueryParameter(o,e.mapQueryParameter(t),n))}}),o},this.createFromTemplateInternal=function(t,n,r,o,a,s){if(t){var l=tV.replaceVirtualEndpointWithServiceAddress(t,n);return l=l.replace(/{id}/i,encodeURIComponent(o)).replace(/{resourcetype}/i,a),r&&(l=l.replace(/{userid}/i,r.getUserId(t))),e.buildUrlInternal(l,[],s)}},this.getUrlExpressionValue=function(t,n,r,o,a){var s=e.createFromTemplateInternal(t,n,r,o,null,null);return s&&a&&(s=ro.getFormatStringExpressionValue("("+s+")",a,function(e){return encodeURIComponent(e)})),s},this.getResourceUrl=function(t,n){t=t||{};var r=tV.getResourceEndpoint(t.resourceType);return{url:e.createFromTemplateInternal(r.template,t.resourceEndpoint,n,t.id,t.resourceType,t.parameters),template:r.template,recreateUrl:function(t){return e.getResourceUrl(t.resourceInfo,t.userContext)},originalParameters:{resourceInfo:t,userContext:n},virtualEndpoint:r}},this.getPidlDocUrl=function(t,n,r){r=r||{};var o=ri.deepCopy(r.parameters||{});n&&(o[O.operation]=n);var a=tV.getPidlDocEndpoint(r.resourceType);a.addResourceNameToQueryParam&&(o.resourceName=ri.toLowerCase(r.resourceType)),a.removeOperationParameter&&delete o[O.operation];var s=r.resourceType+(r.resourceSuffix||a.suffix),l=r.anonymousPidl&&a.anonymousTemplate?a.anonymousTemplate:a.template;return{url:e.createFromTemplateInternal(l,r.pidlEndpoint,t,null,s,o),template:l,recreateUrl:function(t){return e.getPidlDocUrl(t.userContext,t.operationType,t.pidlDocInfo)},originalParameters:{userContext:t,operationType:n,pidlDocInfo:r},virtualEndpoint:a}},this.getSubmitUrl=function(t,n,r,o,a){return{url:e.getUrlExpressionValue(r.href,null,n,o,a),template:r.href,recreateUrl:function(t){return e.getSubmitUrl(t.operationType,t.userContext,t.context,t.id,t.bindingDataContext)},originalParameters:{operationType:t,userContext:n,context:r,id:o,bindingDataContext:a},virtualEndpoint:tV.findVirtualEndpointInTemplate(r.href)}},this.getRestMethodUrl=function(t,n,r,o){return{url:e.getUrlExpressionValue(t,null,n,r,o),template:t,recreateUrl:function(t){return e.getRestMethodUrl(t.template,t.userContext,t.id,t.bindingDataContext)},originalParameters:{template:t,userContext:n,id:r,bindingDataContext:o},virtualEndpoint:tV.findVirtualEndpointInTemplate(t)}},this.addQueryParameter=function(e,t,n){ri.isString(n)||(n=JSON.stringify(n)),n=encodeURIComponent(n);var r=RegExp("([?&])"+t+"=.*?(&|$)","i");if(e.match(r))return e.replace(r,"$1"+t+"="+n+"$2");var o=RegExp("([?])");if(e.match(o))return e.replace(o,"$1"+t+"="+n+"&");var a=-1!==e.indexOf("?")?"&":"?";return e+a+t+"="+n},this.addQueryStringParameters=function(t,n){if(n)for(var r in n)n[r]&&(t=e.addQueryParameter(t,r,n[r]));return t},this.buildUrl=function(t,n,r){return e.buildUrlInternal(t,n,r)},this.createFromTemplate=function(t,n,r,o,a,s){return e.createFromTemplateInternal(t,n,r,o,a,s)}}}());function tb(e){return!ri.isNullOrUndefined(e)&&"propertyType"in e&&"type"in e&&"dataType"in e}function tx(e){return!ri.isNullOrUndefined(e)&&"displayType"in e}function tC(e){return tx(e)&&(e.displayType===eW.group||e.displayType===eW.dataCollectionBindingGroup||e.displayType===eW.page||e.displayType===eW.textGroup)}function tk(e){if(tx(e)){var t=e;return t&&t.propertyElementType&&t.propertyElementType===eW.file}return!1}function tw(e){return tx(e)&&(e.displayType===eW.group||e.displayType===eW.dataCollectionBindingGroup)}function tS(e){return tx(e)&&e.displayType===eW.captcha}function t_(e){return tx(e)&&e.displayType===eW.dataCollectionBindingGroup}function tE(e){return tx(e)&&e.displayType===eW.page}function tP(e){return tx(e)&&(e.displayType===eW.button||e.displayType===eW.expression||e.displayType===eW.heading||e.displayType===eW.hyperlink||e.displayType===eW.subheading||e.displayType===eW.text||e.displayType===eW.challengeIframe||e.displayType===eW.iFrame)}function tI(e){return tx(e)&&e.displayType===eW.logo}function tT(e){return tx(e)&&(e.displayType===eW.property||e.displayType===eW.prefillControl)}function tD(e){return ri.isObject(e)&&"href"in e&&"method"in e}function tA(e){return ri.isObject(e)&&"members"in e}function tR(e){return!ri.isNullOrUndefined(e)&&"identity"in e&&"data_description"in e}function tN(e){return!ri.isNullOrUndefined(e)&&ri.isArray(e)&&e.length&&tR(e[0])}function tB(e){return!ri.isNullOrUndefined(e)&&"pidlInfo"in e}function tM(e){return!ri.isNullOrUndefined(e)&&!ri.isString(e)&&"clientAction"in e}function tF(e){return tx(e)&&e.displayType===eW.pidlContainer}function tO(e){return tx(e)&&e.displayType===eW.pidlInstance}function tL(e){return!ri.isNullOrUndefined(e)&&ri.isString(e.type)&&(e.type===eV.Pidl||e.type===eV.Wait||e.type===eV.Redirect||e.type===eV.ReturnContext||e.type===eV.ExecuteScriptAndResume||e.type===eV.None||e.type===eV.GoHome||e.type===eV.Failure||e.type===eV.MergeData||e.type===eV.RestAction)}function tH(e){return!ri.isNullOrUndefined(e)&&!ri.isNullOrUndefined(e.resourceActionContext)}!function(e){e.add="Add",e.replace="Replace",e.getPidlPayload="GetPidlPayload",e.handlePurchasePendingState="HandlePurchasePendingState",e.renderPidlPage="RenderPidlPage",e.select="Select",e.selectInstance="SelectInstance",e.selectSingleInstance="SelectSingleInstance",e.show="Show",e.search="Search",e.delete="Delete",e.update="Update",e.validateInstance="ValidateInstance",e.fundStoredValue="FundStoredValue",e.apply="Apply",e.searchTransactions="searchTransactions",e.redeem="Redeem",e.provisionWalletToken="provisionWalletToken",e.offer="Offer",e.expressCheckout="ExpressCheckout"}(eL||(eL={})),function(e){e.function="function",e.regexMessage="regexMessage",e.regex="regex",e.service="service",e.size="size"}(eH||(eH={})),function(e){e.regex="regex",e.service="service"}(ez||(ez={})),function(e){e.Pidl="Pidl",e.PidlModal="PidlModal",e.PidlPage="PidlPage",e.Wait="Wait",e.Redirect="Redirect",e.ReturnContext="ReturnContext",e.ExecuteScriptAndResume="ExecuteScriptAndResume",e.None="None",e.GoHome="GoHome",e.Failure="Failure",e.MergeData="MergeData",e.RestAction="RestAction",e.UpdatePropertyValue="UpdatePropertyValue"}(eV||(eV={})),function(e){e.Active="Active",e.Banned="Banned",e.Deactivated="Deactivated",e.Declined="Declined",e.Pending="Pending",e.Removed="Removed",e.Unknown="Unknown"}(eU||(eU={})),function(e){e.regex="regex"}(ej||(ej={})),function(e){e.button="button",e.dataCollectionBindingGroup="datacollectionbindinggroup",e.expression="expression",e.group="group",e.captcha="captcha",e.audio="audio",e.heading="heading",e.hyperlink="hyperlink",e.iFrame="iframe",e.challengeIframe="challengeiframe",e.expressCheckoutButton="expresscheckoutbutton",e.secureProperty="secureproperty",e.image="image",e.logo="logo",e.page="page",e.pidlContainer="pidlcontainer",e.pidlInstance="pidlinstance",e.prefillControl="prefillcontrol",e.property="property",e.subheading="subheading",e.text="text",e.textGroup="textgroup",e.separator="separator",e.spinner="spinner",e.file="file"}(eW||(eW={})),function(e){e.inline="inline",e.vertical="vertical"}(eq||(eq={})),function(e){e.afterBase="afterBase",e.beforeBase="beforeBase",e.withBase="withBase"}(eG||(eG={})),function(e){e.buttonList="buttonList",e.checkBox="checkbox",e.dropDown="dropDown",e.radio="radio"}(eK||(eK={})),function(e){e.always="always",e.focusout="focusout"}(eX||(eX={})),function(e){e.limitedRetry="limitedRetry",e.noRetry="noRetry",e.unlimitedRetry="unlimitedRetry"}(eY||(eY={}));var tz=Object.freeze({__proto__:null,get pidlOperationTypeValues(){return eL},get validationModesValues(){return eH},get transformationModesValues(){return ez},isDataDescription:tb,get clientActionTypeValues(){return eV},get paymentInstrumentStatusValues(){return eU},get displayTransformationTypesValues(){return ej},get pidlDisplayTypesValues(){return eW},isDisplayDescription:tx,get groupLayoutOrientationTypesValues(){return eq},isContainerDisplayDescription:tC,isFilePickerDisplayDescription:tk,isGroupDisplayDescription:tw,isCaptchaDisplayDescription:tS,isDataCollectionBindingGroupDisplayDescription:t_,isPageDisplayDescription:tE,isContentDisplayDescription:tP,isLogoDisplayDescription:tI,get pidlSubmitOrdersValues(){return eG},get pidlSelectTypeValues(){return eK},get resolutionPolicyValues(){return eX},isPropertyDisplayDescription:tT,get serverErrorRetryPolicyValues(){return eY},isPidlLink:tD,isMembersInDataSources:tA,isPidlDocument:tR,isPidlDocumentArray:tN,isPidlPayload:tB,isPidlDocumentWithClientAction:tM,isPidlContainerDisplayDescription:tF,isPidlInstanceDisplayDescription:tO,isClientAction:tL,isInvokeResourceActionApiParams:tH}),tV=new(function(){return function(){var e=this;this.getContainingVirtualEndpoint=function(e){if(ri.isString(e)){var t=e.toLowerCase();for(var n in ra.virtualEndpoints){var r="{"+ra.virtualEndpoints[n].endpoint+"}";if(-1!==t.indexOf(r))return ra.virtualEndpoints[n]}}},this.getPidlDocInfoFromResource=function(e,t){var n=ri.toLowerCase(e.resourceType),r=ra.resourceTypeToPidlDoc[n]||ra.resourceTypeToPidlDoc.default;return{resourceType:n,parameters:r.getParams&&r.getParams(e,t),anonymousPidl:e.anonymousPidl}},this.updatePidlDocInfo=function(e){if(e&&e.parameters&&e.parameters.allowedPaymentMethods&&ri.isArray(e.parameters.allowedPaymentMethods)){for(var t=!0,n=0,r=e.parameters.allowedPaymentMethods.length;n<r;n++)t=t&&ri.isObject(e.parameters.allowedPaymentMethods[n]);if(t){var o=e.parameters.allowedPaymentMethods;e.parameters.allowedPaymentMethods={};for(var a=0,s=o.length;a<s;a++){var l=o[a],c=l.family;c+=l.type?eg.paymentMethodName+l.type:"",e.parameters.allowedPaymentMethods[c]=+!l.disabled}}}},this.additionalRedirectParams=function(e,t){var n={};for(var r in t&&(t.paymentMethod&&(n.family=t.paymentMethod.paymentMethodFamily,n.type=t.paymentMethod.paymentMethodType),ri.equalsIgnoreCase(t.status,eU.Pending)&&t.details&&(n.pendingOn=t.details.pendingOn,n.picvRequired=t.details.picvRequired)),n)n[r]&&(e=ty.addQueryParameter(e,r,n[r]));return e},this.getErrorSourceFromUrl=function(e){if(e=ri.toLowerCase(e)){if(-1!==e.indexOf(ra.getServiceEndpoint(ra.virtualEndpoints.pifd.endpoint))){if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/addresses"))return ra.virtualEndpoints.pifdAddress.endpoint;else if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/profiles"))return ra.virtualEndpoints.pifdProfile.endpoint}else if(-1!==e.indexOf(ra.getServiceEndpoint(ra.virtualEndpoints.jarvis.endpoint)))return ra.virtualEndpoints.jarvisAddress.endpoint}return ra.virtualEndpoints.pifd.endpoint},this.getResourceEndpoint=function(e){return ra.resourceTypeToResource[ri.toLowerCase(e)]||ra.resourceTypeToResource.default},this.getPidlDocEndpoint=function(e){return ra.resourceTypeToPidlDoc[ri.toLowerCase(e)]||ra.resourceTypeToPidlDoc.default},this.replaceVirtualEndpointWithServiceAddress=function(t,n){var r=e.getContainingVirtualEndpoint(t);if(!r)return t;var o=RegExp("{"+r.endpoint+"}","i");return t.replace(o,n||ra.getServiceEndpoint(r.endpoint))},this.findVirtualEndpointInTemplate=function(t){return e.getContainingVirtualEndpoint(t)||{description:null,endpoint:null,name:null,operation:null}},this.getTelemetryLoggerProperties=function(){return ra.defaultTelemetryLoggerProperties}}}());function tU(e,t){return e.debugMessage?ri.format(e.debugMessage,t):""}var tj=function(){return function(e,t,n,r){this.message=n||"",this.name=t.name,this.code=t.code,this.type=e}}(),tW=function(e){function t(t,n,r){var o=e.call(this,I.inputValidation,t,null,r)||this;return o.parameterName=n,o.debugMessage=tU(t,r),o}return tn(t,e),t}(tj),tq=function(e){function t(t,n,r){var o=e.call(this,I.inputValidation,t,null,r)||this;return o.apiName=n,o.debugMessage=tU(t,r),o}return tn(t,e),t}(tj),tG=function(e){function t(t,n,r,o){var a=e.call(this,I.userInputValidation,t,n,o)||this;return a.propertyName=r,a.errorCode=n,a.validationErrorType=D.property,a.debugMessage=tU(t,o),a}return tn(t,e),t}(tj),tK=function(e){function t(t,n,r,o){var a=e.call(this,I.userInputValidation,t,n,o)||this;return a.groupDisplayId=r,a.errorCode=n,a.validationErrorType=D.group,a.debugMessage=tU(t,o),a}return tn(t,e),t}(tj),tX=function(e){function t(t,n,r,o){var a=e.call(this,I.formValidation,t,n,o)||this;return a.errors=r,a.debugMessage=tU(t,o),a}return tn(t,e),t}(tj),tY=function(e){function t(t,n,r){var o=e.call(this,I.unexpected,t,r,n)||this;return o.debugMessage=tU(t,n),o}return tn(t,e),t}(tj),t$=function(e){function t(t,n,r,o,a,s,l,c,u,d){var p=e.call(this,I.serverError,t,null,l)||this;return p.innererror=r,p.status=o,p.url=n,p.statusText=a,p.responseText=s,p.httpMethod=c,p.retryAttempt=u,p.retryable=d,p.debugMessage=tU(t,l),p}return tn(t,e),t}(tj),tQ=function(e){function t(t,n,r){var o=e.call(this,I.invalidSetup,t,n,r)||this;return o.debugMessage=tU(t,r),o}return tn(t,e),t}(tj),tJ=function(e){function t(t,n,r){var o=e.call(this,I.paymentMethodFailure,t,n,r)||this;return o.debugMessage=tU(t,r),o}return tn(t,e),t}(tj),tZ=function(e){function t(t,n,r){var o=e.call(this,I.failedToOpenWindow,t,n,r)||this;return o.debugMessage=tU(t,r),o}return tn(t,e),t}(tj),t0=function(e){function t(t,n,r){var o=e.call(this,I.unmatchedAmount,t,n,r)||this;return o.debugMessage=tU(t,r),o}return tn(t,e),t}(tj),t1=function(e){function t(t,n,r){var o=e.call(this,I.walletProvider,t,n,r)||this;return o.debugMessage=tU(t,r),o}return tn(t,e),t}(tj),t2=function(e){function t(t,n,r){var o=e.call(this,I.secureFieldInitCompletedTimeout,t,n,r)||this;return o.debugMessage=tU(t,r),o}return tn(t,e),t}(tj),t5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tn(t,e),t}(tj),t4=new(function(){function e(){this.inputParameterValidationFailedError=tW,this.apiValidationError=tq,this.propertyValidationFailedError=tG,this.groupValidationFailedError=tK,this.formValidationFailedError=tX,this.unexpectedError=tY,this.serverError=t$,this.invalidSetupError=tQ,this.paymentMethodFailureError=tJ,this.failedToOpenWindowError=tZ,this.unmatchedAmountError=t0,this.testHookErrorBase=t5,this.walletProviderError=t1,this.secureFieldInitCompletedTimeoutError=t2}return e.prototype.isUnexpectedError=function(e){return ri.isObject(e)&&e.type===I.unexpected},e.prototype.isServerError=function(e){return ri.isObject(e)&&e.type===I.serverError},e}()),t3={inputParameterMissing:{code:1e3,name:"mandatoryInputParameterMissingOrNull",debugMessage:"Mandatory parameter '{0}' is missing or null"},inputParameterTypeMismatch:{code:1001,name:"inputParameterTypeMismatch",debugMessage:"Parameter type is mismatched. Expected type was '{0}', but actual type passed is '{1}'"},inputParameterNotInRange:{code:1002,name:"inputParameterNotInRange",debugMessage:"Value of parameter '{0}' is '{1}' not in the range of expected values. Valid range for the parameter is '{2}'"},containerIdNotFound:{code:1003,name:"containerIdNotFound",debugMessage:"Value of 'containerId' parameter '{0}' is not a valid element in current HTML DOM"},apiCannotStartAsControlNotInitialized:{code:1004,name:"apiCannotStartAsControlNotInitialized",debugMessage:"API '{0}' cannot start as display control is not initialized."},apiCannotStartAsNotAllowedInCurrentState:{code:1005,name:"apiCannotStartAsNotAllowedInCurrentState",debugMessage:"API '{0}' cannot start as current control state is '{1}' and the API is allowed only in following states '{2}'"},busyBlockShowHideHandlerAndbusyBlockIdAreExclusive:{code:1006,name:"busyBlockShowHideHandlerAndbusyBlockIdAreExclusive",debugMessage:"Both busyBlockShowHideHandler and busyBlockId are passed in displayOptions. They are exclusive and only one can be passed."},inputParameterSmallerThanMinLength:{code:1007,name:"inputParameterSmallerThanMinLength",debugMessage:"Array element '{0}' is expected to have minimum length '{1}' but it has a length of '{2}'."},inputParameterLargerThanMaxLength:{code:1008,name:"inputParameterLargerThanMaxLength",debugMessage:"Array element '{0}' is expected to have maximum length '{1}' but it has a length of '{2}'."},mandatoryPropertyValueMissing:{code:1101,name:"mandatoryPropertyValueMissing",debugMessage:"Property '{0}' is mandatory, but its value is missing"},propertyValidationFailed:{code:1102,name:"propertyValidationFailed",debugMessage:"Validation for property '{0}' failed with the message '{1}'"},formValidationFailed:{code:1103,name:"formValidationFailed",debugMessage:"Validation for form failed with the message '{0}'"},readUserInputFailed:{code:1104,name:"readUserInputFailed",debugMessage:"Read user input failed with the message '{0}'"},formSubmissionFailedBadUserInput:{code:1105,name:"formSubmissionFailedBadUserInput",debugMessage:"Form submission failed with error '{0}' due to bad user input"},editedPropertiesValidationFailed:{code:1106,name:"editedPropertiesValidationFailed",debugMessage:"Validation for edited properties failed with the message '{0}'"},propertyTransformationFailed:{code:1107,name:"propertyTransformationFailed",debugMessage:"Property transformation failed with the message '{0}'"},tokenizationFailed:{code:1108,name:"tokenizationFailed",debugMessage:"Tokenization failed with the message '{0}'"},hmacError:{code:1109,name:"hmacError",debugMessage:"HMAC error happened with the message '{0}'"},tokenizationError:{code:1110,name:"tokenizationError",debugMessage:"Some error happened during tokenization. Here is the error message '{0}'"},connectivityError:{code:1200,name:"connectivityError",debugMessage:"There was a connectivity error when attempting to download PIDL document. Error message: '{0}'"},pidlDocDownloadFailed:{code:1201,name:"pidlDocDownloadFailed",debugMessage:"Failed to download PIDL document. Error message: '{0}'"},formSubmitFailed:{code:1202,name:"formSubmitFailed",debugMessage:"Failed to submit form. Error message: '{0}'"},resourceInstanceDownloadFailed:{code:1203,name:"resourceInstanceDownloadFailed",debugMessage:"Failed to download resource instance. Error message: '{0}'"},commerceJsDownloadFailed:{code:1204,name:"commerceJsDownloadFailed",debugMessage:"Failed to download Commerce JS"},restMethodInvocationFailed:{code:1205,name:"restMethodInvocationFailed",debugMessage:"Rest method invocation for url '{0}' failed with error '{1}'"},missingSubmitActionInPidlDoc:{code:1501,name:"missingSubmitActionInPidlDoc",debugMessage:"Cannot perform submit action as the current PIDL document does not have it."},submitActionMissing:{code:1502,name:"submitActionMissing",debugMessage:"Submit action is missing in the PIDL document"},unknownActionType:{code:1503,name:"unknownActionType",debugMessage:"Unknown action type '{0}'"},unknownClientActionType:{code:1504,name:"unknownClientActionType",debugMessage:"Unknown client action type '{0}'"},cannotMoveToNextPageAsOnLastPage:{code:1505,name:"cannotMoveToNextPageAsOnLastPage",debugMessage:"Cannot move to next page as already on the last page"},cannotMoveToPrevPage:{code:1506,name:"cannotMoveToPrevPage",debugMessage:"Cannot move to previous page"},noMappingToGetPidlDocForResource:{code:1507,name:"noMappingToGetPidlDocForResource",debugMessage:"There is no mapping for getting PIDL document for the input resource type '{0}'"},noMappingToGetHtmlClassNameForElement:{code:1508,name:"noMappingToGetHtmlClassNameForElement",debugMessage:"There is no mapping for getting HTML class name for element '{0}'"},missingMandatoryParameterForHtmlCreation:{code:1509,name:"missingMandatoryParameterForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. But the mandatory property '{2}' is missing or empty"},parameterTypeMismatchForHtmlCreation:{code:1510,name:"parameterTypeMismatchForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. Property '{2}' is expected to be of type '{3}' but actual type is '{4}'"},modelNotPpopulated:{code:1511,name:"modelNotPopulated",debugMessage:"Model is not populated"},cannotMoveToPageIndex:{code:1512,name:"cannotMoveToPageIndex",debugMessage:"Cannot move to the given page index because it is out of bounds"},apiStateMappingNotFound:{code:1513,name:"apiStateMappingNotFound",debugMessage:"Api '{0}' does not have a mapping in state manager"},contextMissingFromPidlAction:{code:1514,name:"contextMissingFromPidlAction",debugMessage:"PIDL action '{0}' does not have should have a context"},restActionPidlActionMissingParameters:{code:1515,name:"restActionPidlActionMissingParameters",debugMessage:"Rest action is missing parameter '{0}' "},noPidlDocumentInPopulateRequest:{code:1516,name:"noPidlDocumentInPopulateRequest",debugMessage:"No PIDL documents are sent in the request for populating model"},noDisplayDescriptionInPidlDocument:{code:1517,name:"noDisplayDescriptionInPidlDocument",debugMessage:"No display description are found in the PIDL document"},multiplePagesInLinkedPidlForSinglePagePidlContainer:{code:1518,name:"multiplePagesInLinkedPidlForSinglePagePidlContainer",debugMessage:"Multiple pages extracted from a linked PIDL for a single page PIDL container (being a member of a PIDL Page)"},expectedPayloadValueNotPresentInServerResponse:{code:1519,name:"expectedPayloadValueNotPresentInServerResponse",debugMessage:"The expected value for the next submit payload was not present in server response"},noRedirectUrlToNavigate:{code:1520,name:"noRedirecturlToNavigate",debugMessage:"There is no redirection service url to navigate"},invalidCacheEntry:{code:1521,name:"invalidCacheEntry",debugMessage:"Cache entry for the handle given is invalid"},unexpectedPrefillDataCount:{code:1522,name:"unexpectedPrefillDataCount",debugMessage:"The expected count of prefill data objects for '{0}' is '{1}' but actual count was '{2}'"},defaultActionNotFound:{code:1523,name:"defaultActionNotFound",debugMessage:"Default action is not found on the page"},isDefaultPidlActionNotFound:{code:1524,name:"isDefaultPidlActionNotFound",debugMessage:"Pidl action with isDefault === true not found in the pidl with element ids: {0}"},displayElementPointingToMissingDataProperty:{code:1525,name:"noPropertyFoundForDisplayElement",debugMessage:"Display element '{0}' is pointing to missing data property '{1}'"},invalidReturnContextPidl:{code:1526,name:"invalidReturnContextPidl",debugMessage:"Downloaded pidl had returnContext client action type but context was empty"},duplicateDisplayHintIdOnPage:{code:1527,name:"duplicateDisplayHintIdOnPage",debugMessage:"DisplayId '{0}' appears multiple times on page '{1}'"},invalidNotInPurchasePendingState:{code:1528,name:"instanceNotInPurchasePendingState",debugMessage:"The PI downloaded was not a valid type for purchase pending state"},submitPidlRequestMissingParameters:{code:1529,name:"submitPidlRequestMissingParameters",debugMessage:"Submit pidl request is missing parameter '{0}'"},IFrameTimedOut:{code:1530,name:"iframetimedout",debugMessage:"Took to long to notify as successful. Operation timed out'"},unhandledRejection:{code:1531,name:"unhandledrejection",debugMessage:"Unhandled Promise Rejection at {0}"},iFrameReturnedFailure:{code:1532,name:"iFrameReturnedFailure",debugMessage:"iFrame POST message returned failure with message {0}"},failureClientActionReturned:{code:1533,name:"failureClientActionReturned",debugMessage:"Client action type failure is returned with payload {0}"},validationFailedForNonUserInputProperty:{code:1534,name:"validationFailedForNonUserInputProperty",debugMessage:"Validation for property '{0}' failed with error code '{1}' and message '{2}' which has caused flow termination because correct value for this property is expected either to be passed by the partner or is there as default value in the PIDL, not input by the user."},pollingTimedOut:{code:1535,name:"pollingTimedOut",debugMessage:"Polling exceeded maximum time allowed"},unableToSetupPolling:{code:1536,name:"unableToSetupPolling",debugMessage:"Unable to setup polling"},msrEncryptionFailed:{code:1537,name:"msrEncryptionFailed",debugMessage:"MSR Encryption failed with the message '{0}'"},onlyOneBusyBlockPropAllowed:{code:1538,name:"onlyOneBusyBlockPropAllowed",debugMessage:"Please pass in only one prop option for busyBlocks (busyBlockId, busyBlockElement, or busyBlockShowHideHandler)"},failurePollingResponseReturned:{code:1539,name:"failurePollingResponseReturned",debugMessage:"The following response from polling is unexpected: {0}"},fileUploadFailure:{code:1540,name:"fileUploadFailure",debugMessage:"Unable to upload the file"},invalidSetup:{code:1541,name:"invalidSetup",debugMessage:"PaymentAgent needs to be fully initialized"},paymentMethodFailure:{code:1542,name:"paymentMethodFailure",debugMessage:"Error processing payment sheet"},unmatchedAmount:{code:1543,name:"unmatchedAmount",debugMessage:"Authorization group total amount does not match amount"},failedToOpenWindow:{code:1544,name:"failedToOpenWindow",debugMessage:"Failed to Open Window"},unexpectedChallengeiFrameMessage:{code:1545,name:"unexpectedChallengeIframeMessage",debugMessage:"Unexpected challenge iframe message."},challengeIframeMessagePostFailure:{code:1546,name:"challengeIframeMessagePostFailure",debugMessage:"Challenge iframe message post failure."},failedToFetchStyleHints:{code:1547,name:"failedToFetchStyleHints",debugMessage:"Failed to fetch style hints from static resources"},unmatchedSecureFieldEvent:{code:1601,name:"unmatchedSecureFieldEvent",debugMessage:"The following secure field event is unexpected: {0}"},unexpectedSecureFieldMessage:{code:1602,name:"unexpectedSecureFieldMessage",debugMessage:"Unexpected secure field message."},secureFieldPromiseNotFound:{code:1602,name:"secureFieldPromiseNotFound",debugMessage:"Unable to find promise after secure field posted back message."},secureFieldInitCompletedTimeout:{code:1603,name:"secureFieldInitCompletedTimeout",debugMessage:"Timeout while waiting for secure fields initCompleted events"},walletProviderError:{code:1700,name:"walletProviderError",debugMessage:"Unable to retrieve wallet cards."}},t6=new(function(){return function(){var e=this;this.getResolvedPidls=function(t,n){var r=[];return t.forEach(function(t){var o=!1;for(var a in n){var s=t8.getPropertyFromDataDescription(t.data_description,a),l=n[a];if(l&&l.getValue&&!(o=e.resolveKeyProperty(s,l.getValue(s))))break}o&&r.push(t)}),r},this.getPidlContainersInSubmitOrder=function(t,n){t.forEach(function(t){if(tF(t)){var r=t.submitOrder;r===eG.beforeBase?n.beforeBase.push(t):r===eG.afterBase?n.afterBase.push(t):n.withBase.push(t)}else tC(t)&&t.members.length&&e.getPidlContainersInSubmitOrder(t.members,n)})},this.resolveInfoDescriptionId=function(t,n){return e.getResolvedPidls(t,n).map(function(e){return e.identity})},this.getFirstPidlWithValidDefaultKey=function(t,n){return e.getResolvedPidls(t,n)[0]},this.getPidlSubmitOrder=function(t){var n={beforeBase:[],withBase:[],afterBase:[]};return e.getPidlContainersInSubmitOrder(t.displayDescription,n),n},this.resolveKeyProperty=function(e,t){var n=(e||{validation:null}).validation;return!ri.isUndefined(t)&&!!n&&new RegExp(n.resolutionRegex||n.regex).test(t)}}}()),t8=new(function(){return function(){var e=this;this.getPropertyDescriptorsHelper=function(t,n,r){var o=[];for(var a in t){var s=t[a];if(s instanceof Array)for(var l=0;l<s.length;l++)o=o.concat(e.getPropertyDescriptorsHelper(s[l].data_description,n,r));else s.hasOwnProperty(n)&&s[n]===r&&o.push({propertyName:a,propertyDescriptor:s})}return o},this.getPropertyValueFromInputDataHelper=function(t,n){var r;for(var o in t)if(o===n){r=t[o];break}else if(ri.isObject(t[o])&&void 0!==(r=e.getPropertyValueFromInputDataHelper(t[o],n)))break;return r},this.getPropertyFromDataDescriptionHelper=function(t,n,r){if(void 0===r&&(r=!1),n)for(var o in t){var a,s=t[o];if(s instanceof Array){if(r&&o===n&&s[0])return s[0].data_description;else if(s.some(function(t){return void 0!==(a=e.getPropertyFromDataDescriptionHelper(t.data_description,n,r))}),void 0!==a)break}else if(e.propertyMatchesDataDescriptionInternal(s,o,n)){a=s;break}}return a},this.getFirstResolvedPidlDocument=function(t,n){var r=null;return t.some(function(t){if(e.getKeyPropertyDescriptors(t.data_description).every(function(t){return t6.resolveKeyProperty(t.propertyDescriptor,e.getPropertyValueFromInputData(n,t.propertyName))}))return r=t,!0}),r},this.propertyMatchesDataDescriptionInternal=function(e,t,n){return n&&(t===n||e&&e.display_property===n)},this.getPropertyNamesFromDataDescription=function(t,n,r){return e.getPropertyDescriptorsHelper(t,n,r)},this.getKeyPropertyDescriptors=function(t){return e.getPropertyNamesFromDataDescription(t,"is_key",!0)},this.getPropertyValueFromInputData=function(t,n){return e.getPropertyValueFromInputDataHelper(t,n)},this.getPropertyFromDataDescription=function(t,n){var r=e.getPropertyFromDataDescriptionHelper(t,n);return tb(r)?r:void 0},this.getPropertiesFromDataDescription=function(t,n){return e.getPropertyFromDataDescriptionHelper(t,n,!0)},this.propertyMatchesDataDescription=function(t,n,r){return e.propertyMatchesDataDescriptionInternal(t,n,r)},this.getDisplayPropertyName=function(e,t){return e.display_property||t}}}()),t9=new(function(){return function(){var e=this;this.setService=function(t,n){e.services[t]=n},this.getService=function(t){return e.services[t]},this.getCommerceService=function(){return e.getService("commerce")},this.setCommerceService=function(t){e.setService("commerce",t)},this.getLoggingService=function(){return e.getService("logging")},this.setLoggingService=function(t){e.setService("logging",t)},this.getPidlService=function(){return e.getService("pidl")},this.setPidlService=function(t){e.setService("pidl",t)},this.getRedirectionService=function(){return e.getService("redirection")},this.setRedirectionService=function(t){e.setService("redirection",t)},this.getTelemetryInjectionService=function(){return e.getService("telemetry")},this.setTelemetryInjectionService=function(t){e.setService("telemetry",t)},this.getPidlStoreService=function(){return e.getService("pidlStore")},this.setPidlStoreService=function(t){return e.setService("pidlStore",t)},this.getOneDSService=function(){return e.getService("oneDS")},this.setOneDSService=function(t){return e.setService("oneDS",t)},this.testHookResetServices=function(){e.services={}},this.services={}}}()),t7=new(function(){return function(){var e=this;this.getDisplayDescriptionPidlActions=function(t,n){if(t&&(t.pidlAction&&n.push(t.pidlAction),tC(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getDisplayDescriptionPidlActions(t.members[r],n)},this.getLogoDescriptions=function(t,n){if(t&&n&&(tI(t)&&n.push(t),tC(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getLogoDescriptions(t.members[r],n)},this.getPidlIdentityForProperty=function(t,n){if(n){if(t instanceof Array){for(var r,o=0;o<t.length;o++)if(r=e.getPidlIdentityForProperty(t[o],n))return r}else if(t.data_description)for(var a in t.data_description){var s=t.data_description[a];if(s instanceof Array){if(r=e.getPidlIdentityForProperty(s,n))return r}else if(t8.propertyMatchesDataDescription(s,a,n))return t.identity}}},this.createIdentityHash=function(e){var t="";for(var n in e)ri.isString(e[n])&&(t+=n+"_"+e[n]);return t},this.resolvePidlDocs=function(e,t){if(!(e instanceof Array))return[e];var n=[];if(t){for(var r=t9.getCommerceService(),o=0;o<e.length;o++)for(var a=0;a<t.length;a++)if(r.areIdentitiesEqual(e[o].identity,t[a])){n.push(e[o]);break}}return n},this.getDisplayDescriptionsPidlActions=function(t){var n=[];if(e.getDisplayDescriptionPidlActions(t,n),tT(t)){var r=t.possibleOptions;if(r)for(var o in r){var a=r[o].pidlAction;a&&(n=ts(ts([],n,!0),[a],!1))}}return n},this.getSubmitPidlAction=function(t){if(t&&t.displayDescription){var n=[];return t.displayDescription.forEach(function(t){e.getDisplayDescriptionPidlActions(t,n)}),ri.find(n,function(e){return e.type===k.submit})}},this.isPrimaryResource=function(e){return(e&&e.scenarioContext&&e.scenarioContext.resourceType||ef.primary)===ef.primary},this.ignoreTerminatingError=function(e){return e&&e.length>0&&e[0]&&e[0].scenarioContext&&e[0].scenarioContext.terminatingErrorHandling&&e[0].scenarioContext.terminatingErrorHandling===eh.ignore},this.matchPidlIdsToPidls=function(e,t,n){for(var r=t&&n&&t.length===n.length,o=0;r&&o<t.length;o++){for(var a=!1,s=0;s<n.length;s++){var l=n[s]?n[s].identity:null;a=a||e.areIdentitiesEqual(t[o],l)}r=r&&a}return r},this.translateErrorTargetsToDisplayProperties=function(e,t){var n=[];return e.forEach(function(e){var r=t8.getPropertyFromDataDescription(t.data_description,e);n.push(r&&r.display_property||e)}),n},this.doesKeyPropertyTriggerPidlDownload=function(e){return e&&ri.boolify(e.pidl_download_enabled||e.possible_values)},this.getKeyPropertyPidlDownloadUrlParam=function(e,t){return e&&(e.pidl_download_parameter||e.possible_values&&t)},this.createKeyPropertyMap=function(e,t){for(var n={},r=function(e){return function(n){return t(e,n)}},o=0,a=e.length;o<a;o++)for(var s=t8.getKeyPropertyDescriptors(e[o].data_description),l=0,c=s.length;l<c;l++){var u=s[l].propertyName,d=s[l].propertyDescriptor;n[u]={propertyDescriptor:d,getValue:r(u)}}return n},this.getPropertyValueGetter=function(e,t,n){return function(r,o){var a=e===r?t:n(r);return ri.toString(a)}},this.getDefaultPropertyValueGetter=function(){return function(e,t){return t&&ri.toString(t.default_value)}},this.getDataSourceObjects=function(e){var t=[];if(e&&(ri.isNullOrEmptyObject(e.dataSources)||t.push(e.dataSources),e.linkedPidls&&e.linkedPidls.length>0))for(var n=0;n<e.linkedPidls.length;n++)ri.isNullOrEmptyObject(e.linkedPidls[n].dataSources)||t.push(e.linkedPidls[n].dataSources);return t}}}()),ne=new(function(){return function(){var e=this;this.createModelElement=function(t,n,r,o,a,s,l,c,u){switch(t){case g.button:return e.addHandleToDisplayDescriptions(r,l),new nk(n,r,o,a,s,c,u);case g.filePicker:return new nb(n,r,o,a,s);case g.checkBox:return new ny(n,r,o,a,s);case g.dropdown:return e.addHandleToDisplayDescriptions(r,l),new nh(n,r,o,a,s);case g.group:return new ni(t,n,r,o,a,s,u);case g.captcha:return new nc(t,n,r,o,a,s,u);case g.page:return new nu(n,r,o,a,s);case g.textGroup:return new nd(n,r,o,a,s);case g.dataCollectionBindingGroup:return new na(n,r,o,a,s);case g.textBox:return new nv(n,r,o,a,s,l);case g.radio:return e.addHandleToDisplayDescriptions(r,l),new nm(n,r,o,a,s);case g.buttonList:return e.addHandleToDisplayDescriptions(r,l),new ng(n,r,o,a,s);case g.secureProperty:return new nR(n,r,o,a,s,l);case g.expressCheckoutButton:return new nN(n,r,o,a,s);case g.iFrame:return new nB(n,r,o,a,s);case g.challengeIFrame:return new nM(n,r,o,a,s);case g.heading:case g.subheading:case g.text:case g.hyperlink:return new nC(t,n,r,o,a,s,c,u);case g.image:return new n_(t,n,r,o,a,s,c,u);case g.logo:return new nI(n,r,o,a,s,l,u);case g.audio:return new nw(n,r,o,a,s,c,u);case g.expression:return new nS(n,r,o,a,s,c,u);case g.pidlContainer:return new nT(n,r,o,a,s);case g.pidlInstance:return new nD(n,r,o,a,s);case g.separator:return new nE(t,n,r,o,a,s,u);case g.spinner:return new nP(t,n,r,o,a,s,u);default:return new nn(t,n,r,o,a,s)}},this.addHandleToDisplayDescriptions=function(e,t){if(t){var n=t.getOperationHandle();if(n)for(var r=t7.getDisplayDescriptionsPidlActions(e),o=0;o<r.length;o++){var a=r[o];(a.type===k.success||a.type===k.successWithPidlPayload)&&ri.isObject(a.context)&&(a.context.handle=n,ri.isObject(a.context.resourceActionContext)&&(a.context.resourceActionContext.handle=n))}}},this.getPidlIdentityHash=function(e,t){if(t.propertyName){var n=t7.getPidlIdentityForProperty(e,t.propertyName);if(n)return t7.createIdentityHash(n)}},this.isErrorObject=function(e){return void 0!==e.error},this.addPage=function(t,n,r,o,a,s,l){var c=e.create(t,n,r,o,a,!1,{},null,s,l);if(e.isErrorObject(c))return c;var u=null,d=c.element,p=ts([],c.warnings,!0);if(d)if(nj(d)){var f=e.createLinkedPidlModelElements(a,o,d.linkedPidlId,!0,{});if(e.isErrorObject(f))return f;u=ts([],f.elements,!0),p=ts(ts([],p,!0),f.warnings,!0)}else u=[d];return{elements:u,warnings:p}},this.create=function(t,n,r,o,a,s,l,c,u,d){var p=ro.getModelElementType(n,r);if(p.error)return{error:p.error};var f=e.getPidlIdentityHash(t,r),h=e.createModelElement(p.type,n,r,o,f,s,a,u,d),m=[];if(l&&(h.displayType!==eW.page&&l[h.displayId]&&(m=ts(ts([],m,!0),[new t4.unexpectedError(t3.duplicateDisplayHintIdOnPage,[h.displayId,c])],!1)),c||(c=h.displayId),l[h.displayId]=!0),nL(h))for(var g=h.displayDescription,v=["audioMembers","imageMembers"],y=0;y<v.length;y++)for(var b=0;b<g[v[y]].length;b++){var x=e.create(t,t&&t8.getPropertyFromDataDescription(t.data_description,g[v[y]][b].propertyName),g[v[y]][b],o,a,s,l,c,u,d);if(e.isErrorObject(x))return x;m=ts(ts([],m,!0),x.warnings,!0);var C=x.element;0===y?h.audioChildren.push(C):h.imageChildren.push(C)}else if(nO(h))for(var g=h.displayDescription,b=0;b<g.members.length;b++){var x=e.create(t,t&&t8.getPropertyFromDataDescription(t.data_description,g.members[b].propertyName),g.members[b],o,a,s,l,c,u,d);if(e.isErrorObject(x))return x;m=ts(ts([],m,!0),x.warnings,!0);var C=x.element;if(nj(C)){var k=e.createLinkedPidlModelElements(a,o,C.linkedPidlId,!1,l,c);if(e.isErrorObject(k))return k;h.children=ts(ts([],h.children,!0),k.elements,!0),m=ts(ts([],m,!0),k.warnings,!0)}else h.children.push(C)}else nK(h)?e.createButtonWithDisplayContentGroup(h):e.createPossibleOptionMembers(h,u);return{element:h,warnings:m}},this.createPossibleOptionMembers=function(t,n){if(nz(t))for(var r in t.possibleOptions){var o=t.possibleOptions[r];if(o.displayContent){var a=e.createModelElementsFromDisplayDescriptions([o.displayContent],t.operationType,n),s=a.elements;s&&s.length>=1&&(o.displayContentContainer=s[0])}}},this.createButtonWithDisplayContentGroup=function(t){if(t.displayDescription.displayContentDisplayDescription){var n=t.displayDescription.displayContentDisplayDescription,r=e.createModelElementsFromDisplayDescriptions([n],t.operationType).elements;r&&r.length>=1&&(t.displayContentModelElement=r[0])}},this.createLinkedPidlModelElements=function(t,n,r,o,a,s){for(var l=t7.createIdentityHash(r),c=t.getLinkedPidl(l),u={elements:[],warnings:[]},d=!1,p=0;p<c.displayDescription.length;p++){var f=c.displayDescription[p],h=e.create(c,t8.getPropertyFromDataDescription(c.data_description,f.propertyName),f,n,t,!0,a,s);if(e.isErrorObject(h))return h;var m=h.element,g=h.warnings;if(u.warnings=ts(ts([],u.warnings,!0),g,!0),!o&&nH(m))if(d)return{error:new t4.unexpectedError(t3.multiplePagesInLinkedPidlForSinglePagePidlContainer)};else u.elements=ts(ts([],u.elements,!0),m.children,!0),d=!0;else u.elements=ts(ts([],u.elements,!0),[m],!1)}return u},this.createModelElements=function(t,n){var r=t.getResolvedOrFirstPidlDoc(),o=[],a=[];if(r&&r.displayDescription&&r.displayDescription.length)for(var s=0;s<r.displayDescription.length;s++){var l=r.displayDescription[s],c=e.addPage(r,t8.getPropertyFromDataDescription(r.data_description,l.propertyName),l,n,t);if(e.isErrorObject(c))return c;o=ts(ts([],o,!0),c.elements,!0),a=ts(ts([],a,!0),c.warnings,!0)}return 0===o.length?{error:new t4.unexpectedError(t3.noDisplayDescriptionInPidlDocument)}:{elements:o,warnings:a}},this.createModelElementsFromDisplayDescriptions=function(t,n,r,o,a,s){for(var l=[],c=0;c<t.length;c++){var u=t[c];if(u){var d=a&&a.data_description&&t8.getPropertyFromDataDescription(a.data_description,u.propertyName),p=e.addPage(a,d,u,n,s,r,o);e.isErrorObject(p)||(l=ts(ts([],l,!0),p.elements,!0))}}return{elements:l}}}}()),nt=new(function(){function e(){var e=this;this.normalizeValueToOptions=function(e,t){var n=ri.find(e,function(e){return ri.equalsIgnoreCase(e,t)});return n||(n=""),n},this.updateModelElements=function(t,n,r){e.propertiesVisitorProcessingAny(t,function(e,t){return!!e.update&&e.update(t,r)},n,r)},this.findFirstMatchingProperty=function(t,n){var r={properties:n};return e.propertiesVisitorProcessingDataProperty(t,function(e,t){if(!e.isPrefillControl()&&ri.contains(t.properties,e.getPropertyName()))return t.matchedProperty=e.getPropertyName(),!0},r),r.matchedProperty},this.getParentIfSame=function(t,n){for(var r=null,o=0;o<n.length;o++){var a={propertyName:n[o]};if(e.propertiesVisitorProcessingAny(t,function(e,t){if(e&&e.children){for(var n=0;n<e.children.length;n++)if(e.children[n].isProperty()){var r=e.children[n];if(r&&r.getPropertyName&&r.getPropertyName()===t.propertyName)return t.parent=e,!0}}},a),a.parent)if(r){if(a.parent!==r)return null}else r=a.parent}return r},this.findPropertyElement=function(t,n){var r={propertyName:n};return e.propertiesVisitorProcessingDataProperty(t,function(e,t){if(e.getPropertyName()===t.propertyName)return t.element=e,!0},r),r.element},this.findElement=function(t,n){var r={};return e.propertiesVisitorProcessingAny(t,function(e,t){if(n(e))return t.element=e,!0},r),r.element},this.findAllElements=function(t,n){var r={elements:[]};return e.propertiesVisitorProcessingAny(t,function(e,t){n(e)&&t.elements.push(e)},r),r.elements},this.findPrefillControlElement=function(t){return e.findElement(t,function(e){if(e&&e.displayType===eW.prefillControl)return!0})},this.findFirstVisibleEnabledPropertyElement=function(t){var n={};return e.propertiesVisitorProcessingAny(t,function(e,t){if(e&&(e.isProperty()||e.isSecureProperty()||e.isPrefillControl())&&!e.disabled()&&!e.hidden())return t.element=e,!0},n),n.element},this.isButtonWithDisplayDescription=function(e){return nK(e)&&!ri.isNullOrUndefined(e.displayDescription)},this.findFirstButtonElement=function(t){return e.findElement(t,function(e){return nK(e)})},this.findHighlightedButton=function(t){return e.findElement(t,function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.isHighlighted})},this.findDefaultPidlActionButton=function(t){return e.findElement(t,function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.pidlAction&&t.displayDescription.pidlAction.isDefault})},this.getDefaultPidlActionButton=function(t,n){var r=e.findDefaultPidlActionButton(t);return r||(r=e.findHighlightedButton(t)||e.findFirstButtonElement(t)),r},this.getDefaultPidlAction=function(t,n){var r=e.findDefaultPidlActionButton(t);return r||(r=e.findHighlightedButton(t)),r&&r.displayDescription&&r.displayDescription.pidlAction},this.getDefaultSuccessPidlPayload=function(t,n){var r=e.getDefaultPidlAction(t,n);if(r&&(r.type===k.success||r.type===k.successWithPidlPayload))return r.context},this.normalizeValueToPossibleValues=function(t,n){var r=e.normalizeValueToOptions(ri.getKeys(t.possibleOptions),n);return ri.isEmptyString(r)&&t.dataDescription.possible_values&&(r=e.normalizeValueToOptions(ri.getKeys(t.dataDescription.possible_values),n)),r},this.normalizeValueToDisplayDescriptionPossibleOptions=function(t,n){return e.normalizeValueToOptions(ri.getKeys(t.possibleOptions),n)},this.getPollingPidlActions=function(t){var n={};return t.forEach(function(t){t.pidlAction&&t.pidlAction.type===k.poll&&(n[t.displayId]=t.pidlAction),t.children&&(n=tr(tr({},n),e.getPollingPidlActions(t.children)))}),n},this.getPagePidlActions=function(e,t){var n={};return e.forEach(function(e){ri.isObject(e.pidlAction)&&(!ri.isString(t)||e.pidlAction.type===t)&&(n[e.displayId]=e.pidlAction)}),n},this.findRadioElements=function(t){return e.findAllElements(t,function(e){return n2(e)})},this.findExpressCheckoutButtonElements=function(t){return e.findAllElements(t,function(e){return n7(e)})}}return e.prototype.propertyVisitorProcessingDataProperty=function(e,t,n){if(e){if(e.isProperty()||e.isSecureProperty()||e.isCaptcha()){var r=t(e,n);if(r)return r}if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,t,n);n&&delete n.stopDescendantsProcessing}},e.prototype.propertyVisitorProcessingAny=function(e,t,n,r){if(e){var o,a=t(e,n);if(a)return a;if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingAny(e.children,t,n,r);if(nz(e)&&e.possibleOptions&&(!n||!n.stopDescendantsProcessing)){var s=!1;if(e.dataCollectionSource&&e.possibleOptionsTemplate&&(null==n?void 0:n.modelData)){var l=e.getBindingData(n);if(l&&l.length>0)for(var c=0;c<l.length;c++){var u=tr(tr({},n),{contextData:l[c]}),d=e.getPossibleOptionKey(u);d&&e.possibleOptions[d]&&(s=s||this.propertiesVisitorProcessingAny([null==(o=e.possibleOptions[d])?void 0:o.displayContentContainer],t,u,r))}}else for(var p=0,f=Object.values(e.possibleOptions);p<f.length;p++){var h=f[p];s=s||this.propertiesVisitorProcessingAny([null==h?void 0:h.displayContentContainer],t,n,r)}return s}n&&delete n.stopDescendantsProcessing}},e.prototype.propertiesVisitorProcessingDataProperty=function(e,t,n){if(e)if(!ri.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,n);else for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingDataProperty(e[r],t,n);if(o)return o}},e.prototype.propertiesVisitorProcessingAny=function(e,t,n,r){if(e)if(!ri.isArray(e))return this.propertyVisitorProcessingAny(e,t,n,r);else for(var o=0;o<e.length;o++){var a=this.propertyVisitorProcessingAny(e[o],t,n,r);if(a)return a}},e}()),nn=function(){function e(e,t,n,r,o,a){var s=this;this.isText=function(){return s.isStaticText()||s.type===g.hyperlink},this.isStaticText=function(){return s.type===g.heading||s.type===g.subheading||s.type===g.text||s.type===g.expression},this.isProperty=function(){return s.displayDescription.displayType===eW.property},this.isCaptcha=function(){return s.displayDescription.displayType===eW.captcha},this.isPrefillControl=function(){return s.displayDescription.displayType===eW.prefillControl},this.isButton=function(){return s.displayDescription.displayType===eW.button},this.isHighlighted=function(){return s.displayDescription.isHighlighted},this.isIframe=function(){return s.displayDescription.displayType===eW.iFrame},this.isChallengeIframe=function(){return s.displayDescription.displayType===eW.challengeIframe},this.isSecureProperty=function(){return s.displayDescription.displayType===eW.secureProperty},this.showKeyLogo=function(){return ri.boolify(s.dataDescription)&&!0===s.dataDescription.is_key},this.disabled=function(){return s.operationType===eL.update&&s.dataDescription&&!1===s.dataDescription.is_updatable||!0===s.isDisabled},this.hidden=function(){return s.isHidden||s.hasNoDataToShow},this.canBeRendered=function(){return s.displayConditionResult},this.isConditionalFieldProperty=function(){return ri.boolify(s.dataDescription&&s.dataDescription.isConditionalFieldValue)},this.getPrefixedTags=function(e,t,n){n=n||function(e,t){return!0};var r={};return Object.keys(s.tags?s.tags:{}).forEach(function(o){var a=s.tags[o];ri.startsWith(o,e)&&n(o,a)&&(r[t?o.replace(e,""):a]=a)}),r},this.getParentHtmlClassTags=function(){return s.getPrefixedTags(eu.parent,!1,function(e,t){return!ec[e.replace(eu.parent,"")]})},this.getHelpDialogTags=function(){return s.getPrefixedTags(eu.helpDialog,!0,function(e,t){return ec[e.replace(eu.helpDialog,"")]})},this.update=function(e,t){if(s.displayCondition&&(s.displayConditionResult=ro.getFunctionExecutionResult(s.displayCondition,e)),s.conditionalFields){for(var n in s.conditionalFields)if(s.hasOwnProperty(n)){var r=s.conditionalFields[n];s[n]=ro.getConditionalFieldValue(r,e,s)}}return s.updateModelElement(e,t)},this.operationType=r,this.dataDescription=t,this.displayDescription=n,this.type=e,this.pidlIdentity=o,this.isLinkedPidl=a,this.hasNoDataToShow=!1;var l=this.displayDescription,c=l.isHidden,u=l.displayCondition,d=l.displayId,p=l.displayType,f=l.tags,h=l.propertyName,m=l.pidlAction,v=l.displayHelpName,y=l.displayHelp,b=l.displayImage,x=l.isDisabled,C=l.styleHints,k=l.conditionalFields;this.isHidden=!0===c,this.displayCondition=u,this.displayConditionResult=!this.displayCondition,this.pidlAction=m,this.displayId=d,this.displayType=p,this.tags=f,this.styleHints=C,this.conditionalFields=k,this.displayHelpName=v,this.displayHelp=y,this.displayImage=b,this.accessibilityName=null,this.tabIndex=null,this.tags&&(this.accessibilityName=this.tags.accessibilityName,this.accessibilityHint=this.tags.accessibilityHint,this.disabledAccessibilityName=this.tags.disabledAccessibilityName,this.tags.tabIndex&&(this.tabIndex=String(this.tags.tabIndex)),this.maxLengthMessage=this.tags.maxLengthMessage);var w=h;this.id=w||d,this.isDisabled=x,this.children=[],this.audioChildren=[],this.imageChildren=[]}return e.prototype.updateModelElement=function(e,t){return!1},e}(),nr=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,r,o,a,s)||this,c=r.layoutOrientation,u=r.layoutAlignment,d=r.containerDescription,p=r.members,f=r.displayName,h=r.showDisplayName;return l.layoutOrientation=c||eq.vertical,l.layoutAlignment=u,l.containerDescription=d,l.members=p,l.displayName=f,l.showDisplayName=f&&ri.boolify(h),l}return tn(t,e),t}(nn),no=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,t,n,r,o,a,s)||this,u=r.displayName,d=r.showDisplayName,p=r.isSubmitGroup,f=r.isModalGroup;return c.displayName=u,c.showDisplayName=u&&(!d||d===C.stringTrue),c.isSubmitGroup=p,c.isModalGroup=f,l&&(c.id+=l),c}return tn(t,e),t}(nr),ni=function(e){function t(t,n,r,o,a,s,l){return e.call(this,t,n,r,o,a,s,l)||this}return tn(t,e),t.prototype.updateModelElement=function(e){if(this.pidlAction&&ri.isObject(this.pidlAction.context)){var t={};for(var n in this.pidlAction.context)"instance"===n&&ri.isString(this.pidlAction.context[n])?t[n]=ro.getFormatInstanceExpressionValue(this.pidlAction.context[n],e):t[n]=ro.getFormatStringExpressionValue(this.pidlAction.context[n],e);this.pidlAction.context=t}return!1},t}(no),na=function(e){function t(t,n,r,o,a){var s=e.call(this,g.dataCollectionBindingGroup,t,n,r,o,a)||this;return s.dataCollectionSource=n.dataCollectionSource,s.filterDescription=n.filterDescription,s.childrenTemplates=s.children,s}return tn(t,e),t.prototype.updateModelElement=function(e){if(this.dataCollectionSource){var t=ro.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(t=ro.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:t}));var n=null;if(t&&t.length&&ri.isArray(t)){n=[];for(var r=0;r<t.length;r++)for(var o={modelData:e.modelData,contextData:t[r]},a=0;a<this.childrenTemplates.length;a++){var s=String(r);e.depth?(this.id=this.id+e.depth,o.depth=(s=e.depth+"_"+s)+String.fromCharCode(e.depth.charCodeAt(e.depth.length-1)+1)):o.depth=s+"a";var l=ri.deepCopy(this.childrenTemplates[a]),c=ne.createModelElementsFromDisplayDescriptions([l.displayDescription],this.operationType,o,s).elements;c&&c.length>=1&&(e.stopDescendantsProcessing=!0,nt.updateModelElements(c,o),n=n.concat(c))}}this.children=n}return!1},t}(no),ns=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,r,o,a,s)||this,c=r.layoutOrientation,u=r.layoutAlignment,d=r.containerDescription,p=r.audioMembers,f=r.imageMembers,h=r.displayName,m=r.showDisplayName;return l.layoutOrientation=c||eq.vertical,l.layoutAlignment=u,l.containerDescription=d,l.audioMembers=p,l.imageMembers=f,l.displayName=h,l.showDisplayName=h&&ri.boolify(m),l}return tn(t,e),t}(nn),nl=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,t,n,r,o,a,s)||this;c.getPropertyName=function(){return c.displayDescription.propertyName},c.required=function(){return!0!==c.dataDescription.is_optional};var u=r.displayName,d=r.showDisplayName;return c.displayName=u,c.showDisplayName=u&&(!d||d===C.stringTrue),c.defaultValue=n.default_value,l&&(c.id+=l),c}return tn(t,e),t}(ns),nc=function(e){function t(t,n,r,o,a,s,l){return e.call(this,t,n,r,o,a,s,l)||this}return tn(t,e),t}(nl),nu=function(e){function t(t,n,r,o,a){var s=e.call(this,g.page,t,n,r,o,a)||this;return s.displayName=n.displayName,s.keyPidlActions=n.keyPidlActions,s}return tn(t,e),t}(nr),nd=function(e){function t(t,n,r,o,a){var s=e.call(this,g.textGroup,t,n,r,o,a)||this;return s.displayContent=n.displayContent,s}return tn(t,e),t}(nr),np=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,r,o,a,s)||this;l.getPropertyName=function(){return l.displayDescription.propertyName},l.getErrorMessage=function(e,t){var n,r=l.displayErrorMessages;if(r){if(t&&r.fromErrorCode)for(var o=0;o<r.fromErrorCode.length;o++){var a=r.fromErrorCode[o];if(a.errorCode===t){n=a.errorMessage;break}}else if(r.fromRegex)for(var o=0;o<r.fromRegex.length;o++){var s=r.fromRegex[o];if(new RegExp(s.regex).test(e)){n=s.errorMessage;break}}n||(n=r.defaultErrorMessage)}return n},l.required=function(){return!0!==l.dataDescription.is_optional&&l.displayDescription.displayType!==eW.prefillControl};var c=l.displayDescription,u=c.displayName,d=c.showDisplayName,p=c.displayErrorMessages,f=c.displayLogo,h=c.maskDisplay,m=c.resolutionPolicy,g=c.displayHelpPosition,v=c.onfocusout,y=n.is_key,b=n.transformation,x=n.displayOnly,k=n.default_value,w=n.broadcastTo,S=n.sideEffects,_=n.onValidationFailed,E=n.usePreExistingValue;return ri.isFormatStringExpressionPlaceholder(k)?l.defaultValueTemplate=k:l.defaultValue=k,l.displayName=u,l.showDisplayName=u&&(!d||d===C.stringTrue),l.isKeyProperty=!0===y,l.supportsDisplayTransformation=b&&!ri.isNullOrUndefined(b.forDisplay),l.displayErrorMessages=p,l.displayLogo=f,l.maskDisplay=h,l.triggerPidlDownloadOnChange=l.isKeyProperty&&t7.doesKeyPropertyTriggerPidlDownload(l.dataDescription),l.resolutionPolicy=m||eX.always,l.displayOnly=x,l.displayHelpPosition=g,l.broadcastTo=w,l.sideEffects=S,l.onValidationFailed=_,l.usePreExistingValue=E,l.onfocusout=v,l}return tn(t,e),t.prototype.updateModelElement=function(e,t){if(this.defaultValueTemplate&&(this.defaultValue=ro.getFormatStringExpressionValue(this.defaultValueTemplate,e),e.modelData&&this.defaultValue)){var n=e.modelData.getModelDataProperty(this.getPropertyName());n&&!n.getValue()&&n.setValue(this.defaultValue)}if(this.conditionalFields&&!ri.isNullOrUndefined(this.conditionalFields.value)&&e&&e.resultData&&e.resultData.propertyUpdates){var r=ro.getConditionalFieldValue(this.conditionalFields.value,e,this);e.resultData.propertyUpdates.push({propertyName:this.getPropertyName(),propertyValue:r,propertyElement:this})}return this.updatePropertyElement(e,t)},t.prototype.updatePropertyElement=function(e,t){return!1},t}(nn),nf=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,r,o,a,s)||this;l.firstElementIdSuffix=function(){return l.getFirstElementIdSuffix(l.possibleOptions)},l.getBindingData=function(e,t){if(l.dataCollectionSource&&l.possibleOptionsTemplate){var n=[];if(ri.isArray(l.dataCollectionSource))for(var r=0,o=l.dataCollectionSource;r<o.length;r++){var a=o[r],s=ro.getPropertyExpressionValue(a,e);n.push.apply(n,s)}else n=ro.getPropertyExpressionValue(l.dataCollectionSource,e);if(l.filterDescription&&(n=ro.getFunctionExecutionResult(l.filterDescription,{modelData:e.modelData,contextData:n},t)),n&&ri.isArray(n)&&n.length>0)return n}return[]},l.getPossibleOptionKey=function(e){return ro.getFormatStringExpressionValue(l.possibleOptionsTemplate.key,e)};var c=r.possibleOptions,u=r.possibleValues,d=r.dataCollectionSource,p=r.filterDescription,f=r.displaySelectionText,h=r.displayPropertyDescription,m=r.isSelectFirstItem,g=r.alwaysUpdateModelValue;if(l.possibleValues=u,l.possibleOptions=c,!l.possibleOptions&&u&&(l.possibleOptions=l.getPossibleOptions(u)),l.dataCollectionSource=d,l.filterDescription=p,l.displaySelectionText=f,l.description=h,l.isSelectFirstItem=m,l.selectedIndex=l.displaySelectionText?0:-1,l.alwaysUpdateModelValue=g,l.dataCollectionSource){var v=Object.keys(l.possibleOptions);v&&v.length&&ri.isFormatStringExpressionPlaceholder(v[0])&&(l.possibleOptionsTemplate=l.possibleOptions[v[0]],l.possibleOptionsTemplate.key=v[0],l.possibleOptions={})}return l.isSelectFirstItem&&l.selectedIndex++,l}return tn(t,e),t.prototype.updatePropertyElement=function(e,t){if(this.dataCollectionSource&&this.possibleOptionsTemplate){var n=[];if(ri.isArray(this.dataCollectionSource))for(var r=0,o=this.dataCollectionSource;r<o.length;r++){var a=o[r],s=ro.getPropertyExpressionValue(a,e);n.push.apply(n,s)}else n=ro.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(n=ro.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:n},t));var l={},c=this.defaultValue;if(n&&n.length&&ri.isArray(n))for(var u=0;u<n.length;u++){var d={modelData:e.modelData,contextData:n[u]},p=ro.getFormatStringExpressionValue(this.possibleOptionsTemplate.key,d);if(this.isSelectFirstItem&&ri.isNullOrUndefinedOrWhiteSpaceString(c)&&(c=p,e.modelData)){var f=e.modelData.getModelDataProperty(this.getPropertyName());f&&f.setValue(p)}var h={};for(var m in this.possibleOptionsTemplate){var v=ro.getFormatStringExpressionValue(this.possibleOptionsTemplate[m],d);h[m]=ri.isObject(v)?ri.deepCopy(v):v}if(h.displayContent){var y=ne.createModelElementsFromDisplayDescriptions([h.displayContent],this.operationType,d,String(u));y.elements&&y.elements.length>=1&&(nt.updateModelElements(y.elements,d),h.displayContentContainer=y.elements[0])}h.pidlAction=h.pidlAction||{},h.pidlAction.context=n[u],l[p]=h}else t&&t.notifyNoSelectionOptionsFound(this.id,this.displayId,this.pidlIdentity,this.type);this.possibleOptions=l,this.hasNoDataToShow=0===ri.keyCount(this.possibleOptions)}if(!this.hasNoDataToShow){var b=ro.getFunctionExecutionResult({functionName:"filterOptions"},{modelData:e.modelData,contextData:{propertyName:this.getPropertyName(),possible_values:this.dataDescription.possible_values,possibleValues:this.possibleValues,possibleOptions:this.possibleOptions}});if(b){var x=b.possible_values,C=b.possibleValues,k=b.possibleOptions;x&&(this.dataDescription.possible_values=x),C&&(this.possibleValues=C),k&&(this.possibleOptions=k)}}return this.displayDescription.disableSingleItemDropdown&&this.type===g.dropdown&&this.possibleOptions&&1===ri.keyCount(this.possibleOptions)?(this.isDisabled=!0,this.defaultValue=this.defaultValue||ri.getFirstKey(this.possibleOptions)):this.isDisabled=this.displayDescription.isDisabled,!1},t.prototype.getFirstElementIdSuffix=function(e){for(var t in e)return"_"+t},t.prototype.getPossibleOptions=function(e){var t={};for(var n in e)t[n]={displayText:e[n],isDisabled:void 0};return t},t}(np),nh=function(e){function t(t,n,r,o,a){var s=e.call(this,g.dropdown,t,n,r,o,a)||this;return s.defaultValue&&(s.defaultValue=nt.normalizeValueToPossibleValues(s,s.defaultValue)),s}return tn(t,e),t}(nf),nm=function(e){function t(t,n,r,o,a){var s=e.call(this,g.radio,t,n,r,o,a)||this;return s.defaultValue||(s.defaultValue=ri.getFirstKey(s.possibleValues)),s}return tn(t,e),t}(nf),ng=function(e){function t(t,n,r,o,a){var s=e.call(this,g.buttonList,t,n,r,o,a)||this;return s.findFirstValidPidlAction=function(e){for(var t,n=ri.copyArray(null==(t=null==e?void 0:e.displayContentContainer)?void 0:t.children),r={};n.length;){var o=n.shift();if(!r[o.id]){if(r[o.id]=!0,o.pidlAction&&o.canBeRendered()){e.pidlAction=o.pidlAction;break}if(nO(o))for(var a=null==o?void 0:o.children,s=0;s<(null==a?void 0:a.length);s++)n.push(a[s])}}},s}return tn(t,e),t.prototype.updateModelElement=function(t,n){for(var r in e.prototype.updateModelElement.call(this,t,n),this.possibleOptions)this.findFirstValidPidlAction(this.possibleOptions[r])},t}(nf),nv=function(e){function t(t,n,r,o,a,s){var l=e.call(this,g.textBox,t,n,r,o,a)||this;l.getResolvedLogo=function(){return(l.pidlDocManager&&l.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},l.placeHolderText=function(){var e=l.displayDescription,t=e.displayPropertyDescription,n=e.displayExample;if(t){if(!l.showDisplayName||t!==l.displayDescription.displayName)return t}else if(n&&n.length>0)return n[0];return null},l.getTextBoxType=function(){var e=l.displayDescription,t=e.inputScope,n=e.maskInput;return t||(!0===n||"password"===l.dataDescription.type?"password":"text")};var c=n.maxLength,u=n.direction,d=n.textAlignment;return l.displayTransformations=n.displayTransformations,l.maxLength=c,l.direction=u,l.textAlignment=d,l.pidlDocManager=s,l}return tn(t,e),t}(np),ny=function(e){function t(t,n,r,o,a){var s=e.call(this,g.checkBox,t,n,r,o,a)||this;return s.description=n.displayPropertyDescription,s}return tn(t,e),t}(np),nb=function(e){function t(t,n,r,o,a){var s=e.call(this,g.filePicker,t,n,r,o,a)||this;return s.displayContent=n.displayContent,s}return tn(t,e),t}(np),nx=function(e){function t(t,n,r,o,a,s,l,c){var u=e.call(this,t,n,r,o,a,s)||this;return u.displayContentTemplate=r.displayContent,u.displayContent=ro.getFormatStringExpressionValue(u.displayContentTemplate,l),c&&(u.id+=c,u.displayId=u.id),u}return tn(t,e),t.prototype.updateModelElement=function(e){return this.displayContent=ro.getFormatStringExpressionValue(this.displayContentTemplate,e),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceInfo&&this.pidlAction.context.resourceActionContext.resourceInfo.id&&(this.pidlAction.context.resourceActionContext.resourceInfo.id=ro.getFormatStringExpressionValue(this.pidlAction.context.resourceActionContext.resourceInfo.id,e)),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceObjPath&&(this.pidlAction.context.resourceActionContext.resource=ro.getPropertyExpressionValue(this.pidlAction.context.resourceActionContext.resourceObjPath,e)),this.type===g.hyperlink&&this.pidlAction&&ri.isString(this.pidlAction.context)&&(this.pidlAction.context=ro.getFormatStringExpressionValue(this.pidlAction.context,e)),!1},t}(nn),nC=function(e){function t(t,n,r,o,a,s,l,c){return e.call(this,t,n,r,o,a,s,l,c)||this}return tn(t,e),t}(nx),nk=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,g.button,t,n,r,o,a,s,l)||this;return c.tooltipText=n.tooltipText,c}return tn(t,e),t}(nx),nw=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,g.audio,t,n,r,o,a,s,l)||this;return c.audioUrl=ro.convertBase64strIntoBlobUrl(n.audioUrl,"audio/mp3"),c}return tn(t,e),t}(nx),nS=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,g.expression,t,n,r,o,a,s,l)||this;return c.expression=n.displayContent,c}return tn(t,e),t.prototype.updateModelElement=function(e){var t;return this.displayContent=ro.getExpressionValue(this.expression,e),(null==(t=this.tags)?void 0:t.accessibilityNameExpression)&&(this.accessibilityName=ro.getExpressionValue(this.tags.accessibilityNameExpression,e)),!1},t}(nx),n_=function(e){function t(t,n,r,o,a,s,l,c){var u=e.call(this,t,n,r,o,a,s)||this;return u.sourceUrlTemplate=r.sourceUrl,u.sourceUrl=ro.getFormatStringExpressionValue(u.sourceUrlTemplate,l),r.codepoint&&(u.codepoint=Number(r.codepoint)),u.accessibilityName=ro.getFormatStringExpressionValue(u.accessibilityName,l),c&&(u.id+=c,u.displayId=u.id),u}return tn(t,e),t}(nn),nE=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,t,n,r,o,a,s)||this;return l&&(c.id+=l,c.displayId=c.id),c}return tn(t,e),t}(nn),nP=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,t,n,r,o,a,s)||this;return l&&(c.id+=l,c.displayId=c.id),c}return tn(t,e),t}(nn),nI=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,g.logo,t,n,r,o,a)||this;return c.getResolvedLogo=function(){return(c.pidlDocManager&&c.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},c.getAllLogos=function(){return c.pidlDocManager.getAllLogos()},c.sourceUrl=n.sourceUrl,c.pidlDocManager=s,l&&(c.id+=l,c.displayId=c.id),c}return tn(t,e),t}(nn),nT=function(e){function t(t,n,r,o,a){var s=e.call(this,g.pidlContainer,t,n,r,o,a)||this;return s.linkedPidlId=n.linkedPidlId,s.submitOrder=n.submitOrder,s}return tn(t,e),t}(nn),nD=function(e){function t(t,n,r,o,a){var s=e.call(this,g.pidlInstance,t,n,r,o,a)||this;return s.pidlInstance=n.pidlInstance,s}return tn(t,e),t}(nn),nA=function(){return function(){this.isOptional=!1,this.resolutionPolicy=eX.always}}(),nR=function(e){function t(t,n,r,o,a,s){var l=e.call(this,g.secureProperty,t,n,r,o,a)||this;l.placeHolderText=function(){var e=l.displayDescription,t=e.displayPropertyDescription,n=e.displayExample;if(t){if(!l.showDisplayName||t!==l.displayDescription.displayName)return t}else if(n&&n.length>0)return n[0];return null},l.getResolvedLogo=function(){return(l.pidlDocManager&&l.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl};var c=n.sourceUrl,u=n.width,d=n.height,p=n.messageTimeout,f=n.frameName,h=n.displayName,m=n.propertyName,v=n.displayLogo;return l.sourceUrl=ty.createFromTemplate(c),l.width=u,l.height=d,l.messageTimeout=p,l.frameName=f,l.displayName=h,l.propertyName=m,l.displayLogo=v,l.pidlDocManager=s,l}return tn(t,e),t.prototype.validate=function(){return this.validationPromise()},t.prototype.prepareForSubmit=function(e){return this.submitPromise(e)},t}(np),nN=function(e){function t(t,n,r,o,a){var s=e.call(this,g.expressCheckoutButton,t,n,r,o,a)||this,l=n.sourceUrl,c=n.displayContent,u=n.width,d=n.height,p=n.frameName,f=n.payload,h=n.messageTimeout;return s.sourceUrl=l,s.displayContent=c,s.width=u,s.height=d,s.frameName=p,s.payload=f,s.messageTimeout=h,s}return tn(t,e),t}(nx),nB=function(e){function t(t,n,r,o,a){var s=e.call(this,g.iFrame,t,n,r,o,a)||this,l=n.sourceUrl,c=n.displayContent,u=n.width,d=n.height,p=n.expectedClientActionId,f=n.messageTimeout,h=n.messageTimeoutClientAction,m=n.useAuth,v=n.loadingMessage;return s.sourceUrl=l,s.displayContent=c,s.width=u,s.height=d,s.expectedClientActionId=p,s.messageTimeout=f,s.messageTimeoutClientAction=h,s.useAuth=m,s.loadingMessage=v,s}return tn(t,e),t}(nx),nM=function(e){function t(t,n,r,o,a){var s=e.call(this,g.challengeIFrame,t,n,r,o,a)||this,l=n.sourceUrl,c=n.displayContent,u=n.width,d=n.height,p=n.expectedClientActionId,f=n.messageTimeout,h=n.messageTimeoutClientAction,m=n.useAuth,v=n.loadingMessage;return s.sourceUrl=l,s.displayContent=c,s.width=u,s.height=d,s.expectedClientActionId=p,s.messageTimeout=f,s.messageTimeoutClientAction=h,s.useAuth=m,s.loadingMessage=v,s}return tn(t,e),t}(nx);function nF(e){return!ri.isNullOrUndefined(e)&&"type"in e}function nO(e){return nF(e)&&(e.type===g.page||e.type===g.group||e.type===g.textGroup||e.type===g.dataCollectionBindingGroup||e.type===g.captcha)}function nL(e){return nF(e)&&e.type===g.captcha}function nH(e){return nF(e)&&e.type===g.page}function nz(e){return nF(e)&&(e.type===g.dropdown||e.type===g.radio||e.type===g.buttonList)}function nV(e){return nF(e)&&e.type===g.dropdown}function nU(e){return nV(e)&&e.displayType===eW.prefillControl}function nj(e){return nF(e)&&e.type===g.pidlContainer}function nW(e){return nF(e)&&e.type===g.pidlInstance}function nq(e){return nF(e)&&e.type===g.image}function nG(e){return nF(e)&&e.type===g.logo}function nK(e){return nF(e)&&e.type===g.button}function nX(e){return nF(e)&&e.type===g.filePicker}function nY(e){return nF(e)&&e.type===g.checkBox}function n$(e){return nY(e)&&e.displayType===eW.prefillControl}function nQ(e){return nF(e)&&(e.type===g.page||e.type===g.group||e.type===g.dataCollectionBindingGroup)}function nJ(e){return nF(e)&&e.type===g.group}function nZ(e){return nF(e)&&e.type===g.textGroup}function n0(e){return nF(e)&&e.type===g.textBox}function n1(e){return nF(e)&&e.type===g.buttonList}function n2(e){return nF(e)&&e.type===g.radio}function n5(e){var t=[g.heading,g.subheading,g.text,g.hyperlink];return nF(e)&&ri.contains(t,e.type)}function n4(e){return nF(e)&&e.type===g.dataCollectionBindingGroup}function n3(e){return nF(e)&&e.type===g.expression}function n6(e){return nF(e)&&e.type===g.iFrame}function n8(e){return nF(e)&&e.type===g.challengeIFrame}function n9(e){return nF(e)&&e.type===g.secureProperty}function n7(e){return nF(e)&&e.type===g.expressCheckoutButton}function re(e){return nF(e)&&e.type===g.separator}function rt(e){return nF(e)&&e.type===g.audio}function rn(e){return nF(e)&&e.isProperty()}var rr=Object.freeze({__proto__:null,ModelElement:nn,ContainerElement:nr,GenericGroupElement:no,GroupElement:ni,DataCollectionBindingGroupElement:na,CaptchaContainerElement:ns,GenericCaptchaElement:nl,CaptchaElement:nc,PageElement:nu,TextGroupElement:nd,PropertyElement:np,SelectionElement:nf,DropdownElement:nh,RadioElement:nm,ButtonListElement:ng,TextBoxElement:nv,CheckBoxElement:ny,FilePickerElement:nb,GenericTextElement:nx,TextElement:nC,ButtonElement:nk,AudioElement:nw,ExpressionElement:nS,ImageElement:n_,SeparatorElement:nE,SpinnerElement:nP,LogoElement:nI,PidlContainer:nT,PidlInstance:nD,SecurePropertyInitializations:nA,SecurePropertyElement:nR,ExpressCheckoutButtonElement:nN,IFrameElement:nB,ChallengeIFrameElement:nM,isModelElement:nF,isContainerElement:nO,isCaptchaElement:nL,isPageElement:nH,isSelectionElement:nz,isDropdownElement:nV,isPrefillDropdownElement:nU,isPidlContainerElement:nj,isPidlInstanceElement:nW,isImageElement:nq,isLogoElement:nG,isButtonElement:nK,isFilePickerElement:nX,isCheckBoxElement:nY,isPrefilledCheckBoxElement:n$,isPageOrGroupOrDataCollectionBindingGroup:nQ,isGroupElement:nJ,isTextGroupElement:nZ,isTextBoxElement:n0,isButtonListElement:n1,isRadioElement:n2,isTextElement:n5,isDataCollectionBindingGroup:n4,isExpressionElement:n3,isIFrameElement:n6,isChallengeIFrameElement:n8,isSecurePropertyElement:n9,isExpressCheckoutButtonElement:n7,isSeparatorElement:re,isAudioElement:rt,isPropertyElement:rn}),ro=new(function(){function e(){var e=this;this.extend=tg,this.getSelectElementType=function(e){switch(e){case eK.radio:return g.radio;case eK.buttonList:return g.buttonList;default:return g.dropdown}},this.getErrorDetailsFromPidl=function(t,n){if(t&&n){var r=n[t];if(r&&r.Target)return e.extend(!0,r,{code:t,target:r.Target,message:r.ErrorMessage})}},this.processServerError=function(t,n,r){var o=[];if(t&&n&&n.length)for(var a=0;a<n.length;a++){var s=e.getFormatStringExpressionValue(n[a],{contextData:t}),l=e.getErrorDetailsFromPidl(s,r);if(l){o.push(l);break}}return o},this.processPimsPxError=function(t,n){var r=[];if(t)if(t.details&&t.details.length)for(var o=0;o<t.details.length;o++){var a=t.details[o];a&&r.push(a)}else{var s=e.getErrorDetailsFromPidl(t.code,n);s&&r.push(s)}return r},this.updatePidlDocUrlParamHelper=function(e,t,n){if(e&&e.parameters){if(e.parameters[t])return!ri.equalsIgnoreCase(e.parameters[t],n)&&(e.parameters[t]=n,!0);var r=K[t];return r&&e.parameters[r]?!ri.equalsIgnoreCase(e.parameters[r],n)&&(e.parameters[r]=n,!0):(e.parameters[t]=n,!0)}return!1},this.s4=function(){return Math.floor((Math.random()+1)*65536).toString(16).substring(1)},this.getAt=function(e,t){return e?e[t]:null},this.guid=function(){return e.s4()+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+e.s4()+e.s4()},this.parseJSON=function(e){var t={succeeded:!0,value:null};try{t.value=JSON.parse(e)}catch(e){t.value=e.message,t.succeeded=!1}return t},this.getHostName=function(e){if(e)return(e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0]).toLowerCase()},this.getBoolValue=function(e){var t=!1;return ri.isString(e)?"true"===e.toLowerCase():e},this.getStringValue=function(e){for(var t="",n=0;n<e.length;++n)t+=e[n],t+=" ";return t.trim()},this.getModelElementType=function(t,n){var r={};switch(n.displayType){case eW.page:r.type=g.page;break;case eW.group:r.type=g.group;break;case eW.captcha:r.type=g.captcha;break;case eW.audio:r.type=g.audio;break;case eW.textGroup:r.type=g.textGroup;break;case eW.heading:r.type=g.heading;break;case eW.subheading:r.type=g.subheading;break;case eW.text:r.type=g.text;break;case eW.hyperlink:r.type=g.hyperlink;break;case eW.image:r.type=g.image;break;case eW.logo:r.type=g.logo;break;case eW.prefillControl:n.selectType===eK.checkBox?r.type=g.checkBox:n.selectType===eK.dropDown?r.type=g.dropdown:r.type=g.unknown;break;case eW.property:t?tT(n)&&n.possibleOptions?r.type=e.getSelectElementType(n.selectType):"bool"===t.type?r.type=g.checkBox:tk(n)?r.type=g.filePicker:r.type=g.textBox:r.error=new t4.unexpectedError(t3.displayElementPointingToMissingDataProperty,[n.displayId,n.propertyName]);break;case eW.button:r.type=g.button;break;case eW.expression:r.type=g.expression;break;case eW.pidlContainer:r.type=g.pidlContainer;break;case eW.pidlInstance:r.type=g.pidlInstance;break;case eW.dataCollectionBindingGroup:r.type=g.dataCollectionBindingGroup;break;case eW.iFrame:r.type=g.iFrame;break;case eW.challengeIframe:r.type=g.challengeIFrame;break;case eW.expressCheckoutButton:r.type=g.expressCheckoutButton;break;case eW.secureProperty:r.type=g.secureProperty;break;case eW.separator:r.type=g.separator;break;case eW.spinner:r.type=g.spinner;break;default:r.type=g.unknown}return r},this.getPidlOperationType=function(e){switch(e){case w.addAddress:case w.addPaymentInstrument:case w.addResource:case w.handleChallenge:return eL.add;case w.collectResourceInfo:return eL.renderPidlPage;case w.selectPaymentInstrument:case w.selectResource:return eL.selectInstance;case w.selectResourceType:return eL.select;case w.selectSingleResource:return eL.selectSingleInstance;case w.updateProfile:case w.updateResource:return eL.update}},this.createObjectWithNonNullProperties=function(e){var t=null;for(var n in e)ri.isNullOrUndefined(e[n])||(t||(t={}),t[n]=e[n]);return t},this.updatePidlDocUrlParams=function(t,n){var r=!1;for(var o in n){var a=t7.getKeyPropertyPidlDownloadUrlParam(n[o].propertyDescriptor,o),s=n[o].getValue(n[o].propertyDescriptor);if(a){var l=e.updatePidlDocUrlParamHelper(t,a,s);r=r||l}}return r},this.getRetryableTargettedErrors=function(e,t){if(e&&e.length)for(var n=0;n<e.length;n++){var r=e[n],o=!0;if(r.target||(o=!1),o&&t&&r.code){t[r.code]||(t[r.code]={retryCount:0});var a=r.retryPolicy;a&&a.type===eY.limitedRetry&&a.context&&!ri.isUndefined(a.context.maxRetryCount)&&r.retryPolicy.context.maxRetryCount<=t[r.code].retryCount&&(o=!1)}o?t&&r.code&&t[r.code].retryCount++:(ri.removeFromArray(e,n,1),n--)}return e},this.createParseErrorResponse=function(t,n,r,o,a){var s=[],c=void 0,u=void 0,d=void 0;if(o){var p=e.parseJSON(o.failureContent),f=p.succeeded?p.value:o.failureObject;if(d=o.failureContent,f){u=f;var h=f.innererror||f;switch(tV.getErrorSourceFromUrl(t)){case ra.virtualEndpoints.pifdProfile.endpoint:case ra.virtualEndpoints.pifdAddress.endpoint:n=n||["({contextData.innererror.code})","({contextData.InnerError.ErrorCode})"];break;case ra.virtualEndpoints.jarvisAddress.endpoint:n=n||["({contextData.error_code}.{contextData.parameters.property_name})","({contextData.error_code})"]}if(s=n?e.processServerError(f,n,r):e.processPimsPxError(h,r),s=e.getRetryableTargettedErrors(s,a),h&&h.clientAction&&(c=h.clientAction),!d)try{d=JSON.stringify(f)}catch(e){}}}else o=o||{status:l.Error};return{jsonResponse:u,clientAction:c,status:o.httpStatus,statusText:o.httpStatusText,responseText:d,errorMessage:o.errorMessage,targettedInnerErrors:s}},this.convertCustomErrorsInSdkErrors=function(t,n){for(var r=[],o=0;o<t.length;o++){var a=t[o],s=null;if(a.message?s={message:a.message,target:a.target,code:a.code}:a.code&&(s=e.getErrorDetailsFromPidl(a.code,n)),!s)return null;r.push(s)}return r},this.parseCustomSubmitError=function(t,n,r,o,a,s){return t||n&&0!==n.length?n&&0!==n.length?{jsonResponse:t,targettedInnerErrors:e.convertCustomErrorsInSdkErrors(n,a)}:e.createParseErrorResponse(r,o,a,{status:l.Error,failureContent:t},s):{clientAction:{type:eV.None}}},this.parseServerError=function(t,n,r,o,a){return e.createParseErrorResponse(t,n,r,o,a)},this.createServerError=function(t,n,r,o,a){var s=e.parseServerError(n,null,a,r);return new t4.serverError(t,n,s.jsonResponse,r.httpStatus,r.httpStatusText,r.failureContent,o)},this.createServerErrorFromIPxServiceError=function(e,t){var n=JSON.stringify(t);return new t4.serverError(e,null,t,null,null,n,[])},this.createPropertyErrors=function(e,t,n,r,o){if(t){var a=new t4.groupValidationFailedError(t3.propertyValidationFailed,r.code,t,[t,r.code]);a.message=r.message,o.push(a),n=null}for(var s=0;s<e.length;s++){var l=e[s],c=new t4.propertyValidationFailedError(t3.propertyValidationFailed,r.code,l,[l,r.code]);c.message=l===n?r.message:"",o.push(c)}},this.convertErrorToString=function(e){try{if(e instanceof Error)return e.message;if("object"!=typeof e||null===e)return String(e);try{return JSON.stringify(e,null,2)}catch(e){return"Error converting object to string"}}catch(e){return"Error converting error to string"}},this.createResponseHeadersDictionary=function(e){var t;return e&&(t=e.split("\r\n").reduce(function(e,t,n){var r=t.split(": ");return r[0]&&r[1]&&(e[ri.toLowerCase(r[0])]=ri.toLowerCase(r[1])),e},{})),t},this.isTagPrefixKnown=function(e){for(var t in eu)if(ri.startsWith(e,eu[t]))return!0;return!1},this.unregisterFromOrchestrator=function(e){var t;try{t=window.pidlOrchestrator}catch(e){return}t&&t.unregisterPidlHook&&t.unregisterPidlHook(e)},this.registerToOrchestrator=function(e){var t;try{t=window.pidlOrchestrator}catch(e){return -1}return t&&t.registerPidlHook?t.registerPidlHook(e):null},this.broadcastPropertyValueUpdate=function(e,t,n,r,o){var a;try{a=window.pidlOrchestrator}catch(e){}return a&&a.broadcastPropertyValueUpdate?a.broadcastPropertyValueUpdate(e,t,n,r,o):Promise.resolve()},this.getGlobalPropertyValue=function(e,t){var n;try{n=window.pidlOrchestrator}catch(e){}if(n&&n.getGlobalPropertyValue)return n.getGlobalPropertyValue(e,t)},this.getFormatStringExpressionValue=function(t,n,r){if(n&&ri.isFormatStringExpressionPlaceholder(t)){for(var o=t.substring(1,t.length-1),a=ri.getProperties(o,"<|","|>"),s=0;s<a.length;s++){var l=a[s],c=l.split("|"),u=c[0],d=c[1],p=void 0;if(d){var f=d.split(";");p=[];for(var h=0;h<f.length;h++)p[h]=e.getPropertyExpressionValue(f[h],n)}var m=e.getFunctionExecutionResult({functionName:u,arguments:p},n);m=ri.isNullOrUndefined(m)?"":m,o=o.replace("<|"+l+"|>",m)}for(var g=ri.getProperties(o,"{","}"),s=0;s<g.length;s++){var v="{"+g[s]+"}",y=e.getPropertyExpressionValue(v,n)||"";r&&(y=r(y)),o=o.replace(v,y)}return o}return t},this.getConditionalFieldValue=function(t,n,r){if(n){if(ri.isFormatStringExpressionPlaceholder(t))return e.getFormatStringExpressionValue(t,n);else if(ri.isDataBindingPlaceholder(t))return e.getPropertyExpressionValue(t,n,nz(r));else if(ri.isFunctionCallPlaceholder(t)){var o=t.substring(2,t.length-2),a=o.indexOf("|"),s=o.substring(0,a),l=o.substring(a+1),c=void 0;if(l){var u=/\<\|([^<]*?)\|\>/gm,d=l;do{for(var p=u.exec(l);null!==p;){var f=e.getConditionalFieldValue(p[0],n,r);d=d.replace(p[0],f),p=u.exec(l)}l=d}while(null!==l.match(u));var h=l.split(";");c=[];for(var m=0;m<h.length;m++)c[m]=e.getConditionalFieldValue(h[m],n,r)}return e.getFunctionExecutionResult({functionName:s,arguments:c},n)}}return t},this.getFormatInstanceExpressionValue=function(e,t){if(t&&ri.isFormatStringExpressionPlaceholder(e)){for(var n=e.substring(1,e.length-1),r=ri.getProperties(n,"{","}"),o=0;o<r.length;o++)if(0>r[o].indexOf(".")&&r[o]in t)return t[r[o]]}return null},this.getExpressionValue=function(t,n){for(var r=t,o=ri.getProperties(t,"(",")"),a=0;a<o.length;a++){var s=ri.getProperties(o[a],"{","}")[0],l=e.getPropertyExpressionValue("{"+s+"}",n),c=void 0,u=void 0;l?(c=(r=r.replace("{"+s+"}",l)).indexOf("("),u=(r=r.substring(0,c)+r.substring(c+1,r.length)).indexOf(")"),r=r.substring(0,u)+r.substring(u+1,r.length)):(c=r.indexOf("("),u=r.indexOf(")"),r=r.substring(0,c)+r.substring(u+1,r.length))}return r},this.applyRegexTransformation=function(e,t,n){if(!ri.isNullOrUndefined(e)&&t&&n)return e.replace(RegExp(t),n).trim()},this.applyDisplayTransformation=function(t,n){var r=n;return t.type===ej.regex?(ri.isString(n)||ri.isNumber(n))&&(r=e.applyRegexTransformation(n.toString(),t.inputRegex,t.replacementPattern)||r):r=void 0,r},this.getTextContent=function(t){if(-1===t.indexOf(eS.link))return t;var n="",r=e.parseDisplayContent(t);if(1===r.length)return t;for(var o=0;o<r.length;o++){var a=r[o];-1===a.indexOf(eS.link)?n+=a:n+=a.replace(a,a.match(/\[(.*?)\]/)[1])}return n},this.parseDisplayContent=function(e){for(var t=0,n=e.indexOf(eS.link,t),r=-1,o=-1,a=[];-1!==n;){r=-1;for(var s=n;s<=n&&s>=0;s--)if("["===e[s]){r=s;break}if(-1===r){(a=[]).push(e);break}a.push(e.substring(o,r)),o=-1;for(var l=n;l>=n&&l<e.length;l++)if(")"===e[l]){o=l+1;break}if(-1===o){(a=[]).push(e);break}if(a.push(e.substring(r,o)),t=n+2,-1===(n=e.indexOf(eS.link,t))){var c=e.substring(o,e.length);void 0!==c&&""!==c&&a.push(c)}}return a},this.convertBase64strIntoBlobUrl=function(e,t){e=e.replace("data:audio/mp3;base64,","");var n="";try{for(var r=window.atob(e),o=new ArrayBuffer(r.length),a=new Uint8Array(o),s=0;s<r.length;s++)a[s]=r.charCodeAt(s);var l=new Blob([a],{type:t});n=URL.createObjectURL(l)}catch(e){}return n},this.verifyClientSupported=function(e){var t,n=tr({},e);n.parameters=tr({},e.parameters);var r=n.parameters.allowedPaymentMethods;if((null==(t=null==window?void 0:window.paymentAgent)?void 0:t.clientSupported)&&(null==r?void 0:r.length)){var o=window.paymentAgent.clientSupported(r);n.parameters.allowedPaymentMethods=o}return n},this.getFlightHeaders=function(e){var t;return((null==(t=null==e?void 0:e.getHeaders)?void 0:t.call(e,{},""))||{})[M.msFlight]||""}}return e.prototype.getPropertyExpressionValue=function(e,t,n){if(void 0===n&&(n=!1),t&&ri.isString(e)&&ri.isDataBindingPlaceholder(e)){var r=e.substring(1,e.length-1);if(0>r.indexOf("."))return n?t.modelData&&t.modelData.getPropertyValue(r):t.modelData&&(t.modelData.getDisplayPropertyValue(r)||t.modelData.getPropertyValue(r));var o=ri.getDataSourceDetails(r),a=null;switch(o.dataSourceName){case ev.contextData:a=t.contextData;break;case ev.partnerData:a=t.modelData&&t.modelData.getPartnerData();break;default:a=t.modelData&&t.modelData.getAllDataSources()}return a&&o.jpath?ri.getPropertyValueByJPath(a,o.jpath):null}return e},e.prototype.getFunctionExecutionResult=function(e,t,n){if(e&&e.functionName){var r={contextData:t&&t.contextData,partnerData:t&&t.modelData&&t.modelData.getPartnerData(),dataSources:t&&t.modelData&&t.modelData.getAllDataSources(),model:t&&t.model};e.arguments&&(r.arguments=e.arguments);var o=void 0;try{o=window.pidlResourceHelpers}catch(e){}if(o&&o.executeExtensionFunc){var a=o.executeExtensionFunc(e.functionName,r);if(n&&"filterPaymentInstruments"===e.functionName&&ri.isArray(a)){var s={pidlDocInfo:r.partnerData&&r.partnerData.inputParameters&&r.partnerData.inputParameters.pidlDocInfo},l=a.map(function(e){return{id:e&&e.id,paymentMethodType:e&&e.paymentMethod&&e.paymentMethod.paymentMethodType,paymentMethodFamily:e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily}});n.resourceHelpersFunctionExecuted(e.functionName,s,l)}return a}}return null},e}()),ri=new(function(){function e(){var e=this;this.getType=function(e){return Object.prototype.toString.call(e)},this.isArray=function(t){return t&&"[object Array]"===e.getType(t)},this.isObject=function(t){return t&&"[object Object]"===e.getType(t)},this.isFunction=function(t){return t&&"[object Function]"===e.getType(t)},this.isString=function(e){return"string"==typeof e},this.isBool=function(e){return"boolean"==typeof e},this.isNumber=function(e){return"number"==typeof e},this.isNullOrEmptyObject=function(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!1}return!0},this.isEmptyString=function(t){return e.isString(t)&&0===t.length},this.isWhiteSpaceString=function(t){return e.isString(t)&&0===t.trim().length},this.isNull=function(e){return!e&&null===e},this.isUndefined=function(e){return void 0===e},this.isNullOrUndefined=function(t){return e.isNull(t)||e.isUndefined(t)},this.isNullOrUndefinedOrWhiteSpaceString=function(t){return e.isNullOrUndefined(t)||e.isEmptyString(t)||e.isWhiteSpaceString(t)},this.contains=function(t,n){return e.indexOf(t,n)>=0},this.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return -1},this.includes=function(t,n){return!e.isNullOrUndefined(t)&&t.indexOf(n)>=0},this.keyCount=function(t){if(e.isObject(t))return Object.keys(t).length},this.getFirstKey=function(t){return e.isObject(t)&&e.keyCount(t)>0&&Object.keys(t)[0]||void 0},this.serialize=function(t){if(e.isObject(t)||e.isArray(t))try{return JSON.stringify(t)}catch(e){return e&&e.message}return null==t?"":t},this.addSlashes=function(e){return e.replace(/[\\\'\"]/g,"\\$&")},this.format=function(t,n){return e.isString(t)?((n=n||[])["{"]="{",n["}"]="}",t.replace(/{({|}|-?[0-9]+)}/g,function(t){return e.addSlashes(e.serialize(n[t.substring(1,t.length-1)]))})):t},this.attachAffixes=function(t,n,r){var o=e.isNullOrUndefined(t)?n:t+n;return e.isNullOrUndefined(r)?o:o+r},this.removeAffixes=function(t,n,r){if(e.isNullOrUndefined(n))return n;var o=e.isNullOrUndefined(t)?0:t.length,a=e.isNullOrUndefined(r)?n.length:n.length-r.length;return n.substring(o,a)},this.startsWithIgnoreCase=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length).toLowerCase()===t.toLowerCase())},this.startsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length)===t)},this.endsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(e.length-t.length)===t)},this.isDataBindingPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"{")&&e.endsWith(t,"}")},this.isFormatStringExpressionPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"(")&&e.endsWith(t,")")},this.isFunctionCallPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"<|")&&e.endsWith(t,"|>")},this.getDataSourceDetails=function(e){var t=e,n=void 0,r=e.indexOf(".");return r>0&&(t=e.substr(0,r),n=e.substr(r+1)),{dataSourceName:t,jpath:n}},this.getPropertyValueByJPath=function(t,n){e.startsWith(n,"{$.")?n=n.substring(3,n.length-1):e.startsWith(n,"{")&&(n=n.substring(1,n.length-1));for(var r=(n=(n=n.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0;o<r.length;o++){var a=r[o];if(!t||!(a in t))return;t=t[a]}return t},this.getDataCollectionSource=function(e){return e.split(".")[0]},this.getDataCollectionName=function(e){return e.split(".")[1]||e},this.toString=function(t){return!e.isUndefined(t)&&t.toString&&(t=t.toString()),t},this.toLowerCase=function(t){return e.isString(t)&&t.toLowerCase?t.toLowerCase():t},this.toUpperCase=function(t){return e.isString(t)&&t.toUpperCase?t.toUpperCase():t},this.equalsIgnoreCase=function(t,n){return e.toLowerCase(t)===e.toLowerCase(n)},this.escapeCharactersForHtml=function(e){return e&&e.replace?e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"):e},this.replaceCharactersForHtml=function(e){return e&&e.replace?e.replace(/(^[^A-Za-z])/,"a").replace(/([^A-Za-z0-9-_])/g,"_"):e},this.getProperties=function(e,t,n){for(var r=[],o=-1,a=t.length,s=n.length;;){var l=e.indexOf(t,-1===o?0:o+s);if(-1===l||-1===(o=e.indexOf(n,l+a)))break;r.push(e.substr(l+a,o-l-a))}return r},this.boolify=function(t){if(e.isString(t))if(e.equalsIgnoreCase(t,"false")||e.isEmptyString(t))return!1;else return!0;return!!t},this.deepCopy=function(e,t){return t=t||{},e&&ro.extend(!0,t,e)||{}},this.mergeObjectArray=function(e){var t={};if(e&&e.length)for(var n=0;n<e.length;n++)ro.extend(t,e[n]);return t},this.removeFromArray=function(e,t,n){e&&e.splice(t,n)},this.getKeys=function(e){return e?Object.keys(e):[]},this.getValues=function(e){return e?Object.keys(e).map(function(t){return e[t]}):[]},this.filter=function(t,n){var r=function(e){return!(n||function(){return!0})(e)};e.invokeIf(t,r,function(e){t.splice(e,1)})},this.objectEquals=function(t,n){if(!t||!n||e.keyCount(t)!==e.keyCount(n))return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0},this.bothNull=function(e,t){return!(e||t)},this.onlyOneNull=function(e,t){return!(e&&t)}}return e.prototype.copyArray=function(e){return e&&e.slice()||[]},e.prototype.invokeIf=function(e,t,n){if(e&&t)for(var r=e.length;r--;)t(e[r])&&n(r)},e.prototype.find=function(e,t){if(e&&t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},e}()),ra=new(function(){return function(){var e=this;this.serviceEndpoints={},this.currentEnv="prod",this.virtualEndpoints={billingAuth:{description:"Billing Auth Service",endpoint:"billingauth-endpoint",name:"billingauth",operation:"POST Tax ID"},bsxCommerce:{description:"BSX Commerce Service",endpoint:"bsxcommerce-endpoint",name:"bsxcommerce",operation:"GET MC PI"},hapi:{description:"HAPI Service",endpoint:"hapi-endpoint",name:"hapi",operation:"POST Tax ID"},jarvis:{description:"Jarvis FD",endpoint:"jarvis-endpoint",name:"jarvis",operation:"POST Jarvis"},jarvisAddress:{description:"Jarvis FD",endpoint:"jarvis-address-endpoint",name:"jarvisaddress",operation:"POST Jarvis Address"},paypalEncryptJS:{description:"Static Resource Service",endpoint:"paypalencryptjs-endpoint",name:"paypalencrypt",operation:"Download Paypal Encrypt JS"},pidl:{description:"PIDL Service",endpoint:"pidl-endpoint",name:"pidl",operation:"GET PIDL"},pidlEdge:{description:"PIDL Service on Edge",endpoint:"pidledge-endpoint",name:"pidledge",operation:"GET PIDL on Edge"},pifdBackend:{description:"PIFD Backend",endpoint:"pifdbackend-endpoint",name:"pifdbackend",operation:"PIFD operation on PIFDBackEnd"},pifd:{description:"Payment Instrument FD",endpoint:"pifd-endpoint",name:"pifd",operation:"POST PIDL"},pifdEdge:{description:"Payment Instrument FD on Edge",endpoint:"pifdedge-endpoint",name:"pifdedge",operation:"PIFD operation on Edge"},pifdAddress:{description:"Payment Instrument FD",endpoint:"pifd-address-endpoint",name:"pifdaddress",operation:"POST Address PIDL"},pifdProfile:{description:"Payment Instrument FD",endpoint:"pifd-profile-endpoint",name:"pifdprofile",operation:"POST Profile PIDL"},pifdPx:{description:"Payment Instrument FD",endpoint:"pifd-px-endpoint",name:"pifdpx",operation:"PIFD PX"},redirection:{description:"Redirection Service",endpoint:"redirection-endpoint",name:"redirection",operation:"Redirect"},redirectionv2:{description:"Redirection Service",endpoint:"redirectionv2-endpoint",name:"redirection",operation:"Redirect"},resource:{description:"Resource Service",endpoint:"resource-endpoint",name:"resource",operation:"GET Resource"},tokenization:{description:"Tokenization Service",endpoint:"tokenization-endpoint",name:"tokenization",operation:"Tokenize User Input"},transformation:{description:"Transformation Service",endpoint:"transformation-endpoint",name:"transformation",operation:"Transform User Input"},validation:{description:"Validation Service",endpoint:"validation-endpoint",name:"validation",operation:"Validate User Input"},commercemgmt:{description:"Commerce Management Endpoint",endpoint:"commercemgmt-endpoint",name:"commercemgmt",operation:"Commerce Management"},encryptJS:{description:"Static Resource Service",endpoint:"encryptjs-endpoint",name:"encrypt",operation:"Download external service specific Encrypt JS"},msrCryptoJS:{description:"Static Resource Service",endpoint:"msrcryptojs-endpoint",name:"msrcrypto",operation:"Download MSR Crypto JS"},staticResources:{description:"Static Resource Service",endpoint:"staticResources-endpoint",name:"staticresources",operation:"Download static resources"},styleHintDefsJson:{description:"Static Resource Service",endpoint:"stylehintdefsjson-endpoint",name:"staticresources",operation:"Download styleHintDefs and baseStyleHintDefs"},tokenPolicy:{description:"Token Policy Service",endpoint:"tops-endpoint",name:"tokenpolicy",operation:"Verify CSV"},purchaseFrontDoor:{description:"Purchase FrontDoor Service",endpoint:"purchase-endpoint",name:"purchasefrontdoor",operation:"Apply CSV to user account"},payeeTaxProfile:{description:"Payee Tax Profile PIDL Service",endpoint:"payeetaxprofile-endpoint",name:"payeetaxprofile",operation:"Payee Tax Profile PIDL Service"},msRewards:{description:"MS Rewards PIDL Service",endpoint:"pidl-endpoint",name:"msrewards",operation:"GET MS Rewards PIDL"},securePx:{description:"Secure PX Service",endpoint:"securepx-endpoint",name:"securepx",operation:"Secure field value handler"},provisionWalletToken:{description:"Wallet Token",endpoint:"pifd-endpoint",name:"pifd",operation:"POST Wallet Token"},gpex:{description:"Generic PIDL Experience Service",endpoint:"gpex-endpoint",name:"gpex",operation:"Address Tax Profile PIDL Service"},challengeUI:{description:"Challenge UI PIDL Service",endpoint:"challengeui-endpoint",name:"challengeui",operation:"Challenge UI PIDL Service"}},this.updateEndpoints=function(t){var n,r={};e.currentEnv=(null==(n=null==t?void 0:t.toLowerCase)?void 0:n.call(t))||"prod","int"===t?(r.billingAuth="billingapi.cp.microsoft-int.com",r.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",r.hapi="commerceapi.officeppe.net/v1",r.jarvis="jcmsdf.account.microsoft-int.com",r.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",r.staticResources="pmservices.cp.microsoft-int.com",r.pifdBackend="pifd.cp.microsoft-int.com/v6.0",r.pifd="pifd.cp.microsoft-int.com/v6.0",r.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdint/v6.0",r.redirection="pmservices.cp.microsoft-int.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",r.tokenization="tokenization.cp.microsoft-int.com/tokens",r.transformation="pifd.cp.microsoft-int.com/v6.0",r.validation="pifd.cp.microsoft-int.com/v6.0",r.commercemgmt="ppe.commercemgmt.m365.microsoft.com",r.tokenPolicy="tops-int.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",r.securePx="securepxservice.cp.microsoft-int.com",r.payeeTaxProfile="taxProfileService-dev-gfahd6aad6a5asey.b02.azurefd.net",r.gpex="edge.gpex.cp.microsoft-int.com",r.challengeUI="payint.microsoft.com/challengeui"):"aircapi"===t?(r.billingAuth="billingapi.cp.microsoft-int.com",r.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",r.hapi="commerceapi.officeppe.net/v1",r.jarvis="jcmsdf.account.microsoft-int.com",r.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",r.staticResources="pmservices.cp.microsoft-int.com",r.pifdBackend="edge.gpex-aircapi.cp.microsoft.com",r.pifd="edge.gpex-aircapi.cp.microsoft.com",r.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdint/v6.0",r.redirection="pmservices.cp.microsoft-int.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",r.tokenization="tokenization.cp.microsoft-int.com/tokens",r.transformation="edge.gpex-aircapi.cp.microsoft.com",r.validation="edge.gpex-aircapi.cp.microsoft.com",r.commercemgmt="ppe.commercemgmt.m365.microsoft.com",r.tokenPolicy="tops-int.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",r.securePx="localhost:44326",r.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net",r.gpex="edge.gpex-aircapi.cp.microsoft.com",r.challengeUI="payint.microsoft.com/challengeui"):"ppe"===t?(r.billingAuth="billingapi.cp.microsoft.com",r.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",r.hapi="commerceapi.office.net/v1",r.jarvis="jcmsfd.account.microsoft.com",r.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",r.staticResources="pmservices.cp.microsoft.com",r.pifdBackend="paymentinstruments-int.mp.microsoft.com/v6.0",r.pifd="paymentinstruments-int.mp.microsoft.com/v6.0",r.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdppe/v6.0",r.redirection="pmservices.cp.microsoft.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft.com",r.tokenization="tokenization.cp.microsoft.com/tokens",r.transformation="paymentinstruments-int.mp.microsoft.com/v6.0",r.validation="paymentinstruments-int.mp.microsoft.com/v6.0",r.commercemgmt="ppe.commercemgmt.m365.microsoft.com",r.tokenPolicy="tops.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",r.securePx="securepxservice-ppe.cp.microsoft.com",r.payeeTaxProfile="taxservice-uat-htdmh4h7cxfjfecg.z01.azurefd.net",r.gpex="edge.gpex-ppe.cp.microsoft.com",r.challengeUI="payppe.microsoft.com/challengeui"):"prod"===t?(r.billingAuth="billingapi.cp.microsoft.com",r.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",r.hapi="commerceapi.office.net/v1",r.jarvis="jcmsfd.account.microsoft.com",r.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.styleHintDefsJson="pmservices.cp.microsoft.com/staticresourceservice/resources/pidlstylehints/prod",r.staticResources="pmservices.cp.microsoft.com",r.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",r.pifd="paymentinstruments.mp.microsoft.com/v6.0",r.pifdEdge="paymentsfd.cp.microsoft.com/pifd/v6.0",r.redirection="pmservices.cp.microsoft.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft.com",r.tokenization="tokenization.cp.microsoft.com/tokens",r.transformation="paymentinstruments.mp.microsoft.com/v6.0",r.validation="paymentinstruments.mp.microsoft.com/v6.0",r.commercemgmt="commercemgmt.m365.microsoft.com",r.tokenPolicy="tops.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",r.securePx="securepxservice.cp.microsoft.com",r.payeeTaxProfile="taxprofileservice-prod-hqgqe5g5f8fwfcdw.z01.azurefd.net",r.gpex="edge.gpex.cp.microsoft.com",r.challengeUI="pay.microsoft.com/challengeui"):"feature"===t&&(r.billingAuth="billingapi.cp.microsoft.com",r.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",r.hapi="commerceapi.office.net/v1",r.jarvis="jcmsfd.account.microsoft.com",r.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.styleHintDefsJson="pmservices.cp.microsoft.com/staticresourceservice/resources/pidlstylehints/prod",r.staticResources="pmservices.cp.microsoft.com",r.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",r.pifd="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.pifdEdge="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.redirection="pmservices.cp.microsoft.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft.com",r.tokenization="tokenization.cp.microsoft.com/tokens",r.transformation="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.validation="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.commercemgmt="commercemgmt.m365.microsoft.com",r.tokenPolicy="tops.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",r.securePx="securepxservice.cp.microsoft.com",r.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net",r.gpex="edge.gpex.cp.microsoft.com",r.challengeUI="payint.microsoft.com/challengeui"),e.serviceEndpoints={},e.serviceEndpoints[e.virtualEndpoints.billingAuth.endpoint]=r.billingAuth,e.serviceEndpoints[e.virtualEndpoints.bsxCommerce.endpoint]=r.bsxCommerce,e.serviceEndpoints[e.virtualEndpoints.hapi.endpoint]=r.hapi,e.serviceEndpoints[e.virtualEndpoints.jarvis.endpoint]=r.jarvis,e.serviceEndpoints[e.virtualEndpoints.jarvisAddress.endpoint]=r.jarvis,e.serviceEndpoints[e.virtualEndpoints.paypalEncryptJS.endpoint]=r.paypalencryptjs,e.serviceEndpoints[e.virtualEndpoints.encryptJS.endpoint]=r.encryptJS,e.serviceEndpoints[e.virtualEndpoints.msrCryptoJS.endpoint]=r.msrCryptojs,e.serviceEndpoints[e.virtualEndpoints.styleHintDefsJson.endpoint]=r.styleHintDefsJson,e.serviceEndpoints[e.virtualEndpoints.staticResources.endpoint]=r.staticResources,e.serviceEndpoints[e.virtualEndpoints.pidl.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pidlEdge.endpoint]=r.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdBackend.endpoint]=r.pifdBackend,e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint]=r.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdAddress.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdProfile.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdPx.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.redirection.endpoint]=r.redirection,e.serviceEndpoints[e.virtualEndpoints.redirectionv2.endpoint]=r.redirectionv2,e.serviceEndpoints[e.virtualEndpoints.resource.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.tokenization.endpoint]=r.tokenization,e.serviceEndpoints[e.virtualEndpoints.transformation.endpoint]=r.transformation,e.serviceEndpoints[e.virtualEndpoints.validation.endpoint]=r.validation,e.serviceEndpoints[e.virtualEndpoints.commercemgmt.endpoint]=r.commercemgmt,e.serviceEndpoints[e.virtualEndpoints.tokenPolicy.endpoint]=r.tokenPolicy,e.serviceEndpoints[e.virtualEndpoints.purchaseFrontDoor.endpoint]=r.purchaseFrontDoor,e.serviceEndpoints[e.virtualEndpoints.securePx.endpoint]=r.securePx,e.serviceEndpoints[e.virtualEndpoints.payeeTaxProfile.endpoint]=r.payeeTaxProfile,e.serviceEndpoints[e.virtualEndpoints.gpex.endpoint]=r.gpex,e.serviceEndpoints[e.virtualEndpoints.challengeUI.endpoint]=r.challengeUI},this.addGenericParameters=function(e,t,n){if(t&&t.parameters)for(var r in t.parameters){var o=G[r];t.parameters[r]&&!(e[r]||e[o])&&(e[r]=t.parameters[r])}return n&&(e.operationType=n),e},this.getGenericResourceParams=function(t,n,r){return e.addGenericParameters({},t,r)},this.getResourceEndpointParams=function(t,n,r,o){var a=e.addGenericParameters({},n,o);return a.resourceName=t,a},this.getOrderResourceEndpointParams=function(t,n,r){return e.getResourceEndpointParams("order",t,n,r)},this.getPaymentResourceParams=function(t,n,r){var o=(n=n||{}).paymentMethod||{};return e.addGenericParameters({family:o.paymentMethodFamily,type:o.paymentMethodType,country:((n.details||{}).address||{}).country},t,r)},this.resourceTypeToPidlDoc={addressex:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/addressDescriptions"},challenge:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/challengeDescriptions"},order:{addResourceNameToQueryParam:!0,description:"PIDL Service",getParams:this.getOrderResourceEndpointParams,operation:"GET Order resource PIDLs",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/resourceDescriptions"},paymentinstrument:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},paymentinstrumentlist:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentInstrumentsEx",anonymousTemplate:"{pidl-endpoint}/paymentInstrumentsEx"},paymentmethod:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Method PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},payeetaxprofile:{description:"Payee Tax Profile PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payee Tax Profile PIDL",suffix:"",template:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",anonymousTemplate:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",removeOperationParameter:!0},msrewards:{description:"Rewards PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Rewards PIDL",suffix:"",template:"{pidl-endpoint}/users/{userId}/rewardsDescriptions",anonymousTemplate:"{pidl-endpoint}/rewardsDescriptions"},addpiqrcode:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Anonymous Payment Instrument PIDL",suffix:"",template:"{pidl-endpoint}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},default:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/{resourceType}",anonymousTemplate:"{pidl-endpoint}/{resourceType}"}},this.resourceTypeToResource={paymentinstrument:{description:"Payment Instrument FD",operation:"GET Payment Instrument Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},paymentmethod:{description:"Payment Instrument FD",operation:"GET Payment Method Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},profile:{description:"Payment Instrument FD",operation:"GET Profile Resource",template:"{resource-endpoint}/users/{userId}/profiles/{id}"},address:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addresses/{id}"},addressex:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addressesEx/{id}"},legalentity:{description:"Jarvis FD",operation:"GET LegalEntity Profile Resource from Jarvis",template:"{jarvis-endpoint}/users/{userId}/profiles?type=legalentity"},billinggroup:{description:"HAPI Billing Groups",operation:"GET Billing Groups",template:"{hapi-endpoint}/{userId}/billinggroup"},wallettoken:{description:"PIDL Service",operation:"POST Provision Wallet Token",template:"{pifd-endpoint}/users/{userId}/provisionWalletToken"},default:{description:"Payment Instrument FD",operation:"GET Resource",template:"{resource-endpoint}/users/{userId}/{resourceType}/{id}"}},this.telemetryHeaders={names:["x-ms-operation-version","x-ms-flight"],prefixes:["x-ms-px"]},this.defaultTelemetryLoggerProperties={enableMultipleLoggers:!0},this.getServiceEndpoint=function(t){return e.serviceEndpoints[t]},this.getAlternateUrl=function(t){if(t){var n="https://",r="paymentsfd.cp.microsoft.com",o="paymentsfd.signup.azure.com",a=n+e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint],s=n+e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint],l=((window||{}).location||{}).hostname||"";l&&l.indexOf("signup.azure.com")>-1&&(s=s.replace(r,o)),ri.startsWithIgnoreCase(t,a)?t=t.replace(a,s):ri.startsWithIgnoreCase(t,s)&&(t=t.replace(s,a))}return t},this.setEnv=function(t){e.updateEndpoints(t)},this.getEnv=function(){return e.currentEnv},this.setPidlDocEndpointInfo=function(t){var n=tr({},e.resourceTypeToPidlDoc);for(var r in t)n[r.toLowerCase()]=tr(tr({},n[r.toLowerCase()]),t[r]);e.resourceTypeToPidlDoc=n},this.updateEndpoints("prod")}}()),rs=function(){function e(e){this.alwaysValidateOnChange=!1,this.busyBlockShowHideHandler=null,this.containerId=null,this.disableEnterKeyAction=!1,this.disableFocusOnLoad=!1,this.errorPrefix=p.error,this.htmlExtender=null,this.hidePropertyErrors=!1,this.showLogoInKeyField=null,this.showMandatoryIdentifier={show:!1,identifier:"*"},this.showPlaceholderInTextbox=!1,this.ieExtender=null,this.propagateCallbackException=!1,this.busyUntilInitialPageRendered=!1,this.secureFieldPreLoadingEnabled=!1,this.instanceName="_currentInstance",this.preventUnmountOnFinish=!1,this.getAffixedPropertyElementId=null,this.getTrimmedPropertyElementId=null,this.getAffixedDisplayElementId=null,this.getTrimmedDisplayElementId=null,this.busyBlock={id:p.div+f.pageBusyBlock,preExists:!1,show:!0},this.errorBlock={id:f.pageErrorBlock,preExists:!1,show:!0},this.helpDialogBlock={id:f.helpDialogBlock,preExists:!1,show:!0},this.logoBlock={id:f.pageLogoBlock,preExists:!1,show:!0,displayConfiguration:function(e,t){var n=13,r=e&&e.length>0&&e[0],o=!t&&r&&e[0].displayHelpName&&e.length>n;return{totalToShow:o?n:e.length,dialogButtonText:o?e[0].displayHelpName:null}}},this.pageBodyBlock={id:f.pageBlock,preExists:!1,show:!0},this.submitButtonBlock={id:f.pageSubmitBlock,preExists:!1,show:!0},this.modalDialogBlock={id:f.modalDialogBlock,preExists:!1,show:!0},this.prefillCheckboxBlock={id:f.prefillCheckbox,preExists:!1,show:!0};var t="pidlInput_",n="",r="",o="";for(var a in e)switch(a){case E.containerId:this.containerId=e[a];break;case E.busyBlockId:this.setBlockId(this.busyBlock,e[a]);break;case E.busyBlockShowHideHandler:this.busyBlockShowHideHandler=e[a],this.busyBlock.preExists=!0;break;case E.inputPropertyIdPrefix:t=e[a]||t;break;case E.inputPropertyIdSuffix:n=e[a]||n;break;case E.displayElementIdPrefix:r=e[a]||r;break;case E.displayElementIdSuffix:o=e[a]||o;break;case E.inputPropertyErrorIdPrefix:this.errorPrefix=e[a];break;case E.showPlaceholderInTextbox:this.showPlaceholderInTextbox=ro.getBoolValue(e[a]);break;case E.disableEnterKeyAction:this.disableEnterKeyAction=ro.getBoolValue(e[a]);break;case E.showSubmitBlock:this.setShowBlock(this.submitButtonBlock,e[a]);break;case E.showErrorBlock:this.setShowBlock(this.errorBlock,e[a]);break;case E.hidePropertyErrors:this.hidePropertyErrors=ro.getBoolValue(e[a]);break;case E.htmlExtender:this.htmlExtender=e[a];break;case E.disableFocusOnLoad:this.disableFocusOnLoad=ro.getBoolValue(e[a]);break;case E.alwaysValidateOnChange:this.alwaysValidateOnChange=ro.getBoolValue(e[a]);break;case E.ieExtender:this.ieExtender=e[a];break;case E.propagateCallbackException:this.propagateCallbackException=ro.getBoolValue(e[a]);break;case E.busyUntilInitialPageRendered:this.busyUntilInitialPageRendered=ro.getBoolValue(e[a]);break;case E.secureFieldPreLoadingEnabled:this.secureFieldPreLoadingEnabled=ro.getBoolValue(e[a]);break;case E.instanceName:this.instanceName=e[a]||this.instanceName;break;case E.preventUnmountOnFinish:this.preventUnmountOnFinish=ro.getBoolValue(e[a])}this.getAffixedPropertyElementId=this.getAffixesAttacher(t,n),this.getTrimmedPropertyElementId=this.getAffixesRemover(t,n),this.getAffixedDisplayElementId=this.getAffixesAttacher(r,o),this.getTrimmedDisplayElementId=this.getAffixesRemover(r,o)}return e.prototype.setBlockId=function(e,t){e.id=t,e.preExists=!0},e.prototype.setShowBlock=function(e,t){e.show=ro.getBoolValue(t)},e.prototype.getAffixesAttacher=function(e,t){return function(n){return ri.attachAffixes(e,n,t)}},e.prototype.getAffixesRemover=function(e,t){return function(n){return ri.removeAffixes(e,n,t)}},e}(),rl=function(){},rc=function(e){throw e};function ru(e){return Promise.resolve(e)}function rd(e){return Promise.reject(e)}var rp=Object.freeze({__proto__:null,doNothing:rl,throwException:rc,createFakePromise:ru,createFakeRejectedPromise:rd}),rf=function(){return function(e,t){var n=this;this.returnUrls={},this.returnCallbacks={},this.publicEventHandlers=[],this.privateEventHandlers=[],this.eventParameterExtenders={},this.telemetryContext=null,this.telemetryLogger=null,this.invokeReturnCallback=function(e,t){e(t=n.extendEventParameters(t))},this.invokePublicEvent=function(e,t,r,o){return t&&n.logMessage(e,t),n.invokeEventHandlers(n.publicEventHandlers,e,r,o)},this.invokePrivateEvent=function(e,t,r,o){return t&&(n.telemetryContext&&n.telemetryContext.enablePrivateEventConsoleLogging||!n.telemetryContext)&&n.logMessage(e,t),n.invokeEventHandlers(n.privateEventHandlers,e,r,o)},this.isEventConsoleLoggingEnabled=function(e){var t=(n.telemetryContext||{}).telemetryOverrides,r=void 0===t?null:t;return(n.telemetryContext&&n.telemetryContext.enableConsoleLogging||!n.telemetryContext)&&!(r&&r[e]&&r[e].disableConsoleLogging)},this.logMessage=function(e,t){if(n.isEventConsoleLoggingEnabled(e)){var r=t9.getLoggingService();r&&r.logMessage(n.addExtendedParametersToLogMessage(t))}},this.logError=function(e,t,r){if(n.isEventConsoleLoggingEnabled(e)){var o=t9.getLoggingService();o&&o.logError(t,r)}},this.getExtendedEventParameter=function(e){return n.eventParameterExtenders[e]()},this.extendEventParameters=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);for(var o in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n.getExtendedEventParameter(o));return ro.createObjectWithNonNullProperties(t)},this.addExtendedParametersToUrl=function(e){for(var t in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(t)&&(e=ty.addQueryParameter(e,t,n.getExtendedEventParameter(t)));return e},this.addExtendedParametersToLogMessage=function(e){for(var t in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(t)&&(e+=", ".concat(t,"=").concat(n.getExtendedEventParameter(t)));return e},this.redirectUrl=function(e){e&&t9.getRedirectionService().redirect(e)},this.isEventTelemetryEnabled=function(e){var t=(n.telemetryContext||{}).telemetryOverrides,r=void 0===t?null:t;return!(r&&r[e]&&r[e].disableLogging)},this.logTelemetryEvent=function(e,t){n.telemetryLogger&&n.telemetryContext&&n.telemetryContext.enableLogging&&(e!==S.propertyValidated&&e!==S.error||!t||t.controlOperationType!==Z.editing)&&(n.isEventTelemetryEnabled(e)||e===_.metric)&&n.telemetryLogger.logEvent(e,t,n.telemetryContext)},this.getCorrelationId=function(){return n.telemetryLogger&&n.telemetryLogger.getCorrelationId&&n.telemetryLogger.getCorrelationId()},this.getHttpRequestCorrelationHeader=function(){if(n.telemetryLogger&&n.telemetryLogger.getHttpRequestCorrelationHeader)return n.telemetryLogger.getHttpRequestCorrelationHeader()},this.getCorrelationContextHeaderValue=function(){var e,t,r,o,a,s,l,c=null==(e=n.telemetryContext)?void 0:e.partnerContext,u=c.partnerName,d=c.scenarioId,p=c.sessionId;return!u&&(null==(r=null==(t=n.telemetryContext)?void 0:t.telemetryResource)?void 0:r.parameters.hasOwnProperty("partner"))&&(u=n.telemetryContext.telemetryResource.parameters.partner),p||(p=null==(o=n.telemetryContext)?void 0:o.sessionId),d||(d="commerce.payments.".concat(null==(s=null==(a=n.telemetryContext)?void 0:a.telemetryResource)?void 0:s.resourceType).concat(null==(l=n.telemetryContext)?void 0:l.operationType,".1")),"v=1,ms.b.tel.scenario=".concat(d,",ms.b.tel.partner=").concat(u,",ms.c.cfs.payments.partnerSessionId=").concat(p)},this.getSessionId=function(){var e;return null==(e=n.telemetryContext)?void 0:e.sessionId},this.getPidlSdkVersionHeaderValue=function(){var e,t;return"".concat(null==(e=n.telemetryContext)?void 0:e.sdkVersion,"_").concat(null==(t=n.telemetryContext)?void 0:t.sdkViewType)},this.updateTelemetryContext=function(e){n.telemetryContext&&e&&n.telemetryContext.updateResourceInfo({resourceType:void 0,parameters:e})},this.invokeEventHandlers=function(e,t,r,o){n.logTelemetryEvent(t,n.extendEventParameters(o));var a=n.extendEventParameters(r),s=!1;if(e)return e.forEach(function(e){s=e(t,a)||s}),s},this.addReturnOptions=function(e){n.returnUrls=e.urls?tr({},e.urls):{},n.returnCallbacks=e.callbacks?tr({},e.callbacks):{}},this.addPublicEventHandler=function(e){n.publicEventHandlers.push(e)},this.addPrivateEventHandler=function(e){n.privateEventHandlers.push(e)},this.registerEventExtender=function(e,t){n.eventParameterExtenders.hasOwnProperty(e)?n.logMessage(_.eventExtenderRegistered,"There is an existing event parameter extender for name ".concat(e)):n.eventParameterExtenders[e]=t},this.failure=function(e){e.cv=n.getCorrelationId(),n.invokePrivateEvent(_.failure,null,{error:e},{error:e}),n.invokePrivateEvent(_.metric,null,{succeeded:!1,error:e},{succeeded:!1,error:e}),n.logError(_.failure,"failure",e);var t=n.returnCallbacks[m.failure];if(t)return void n.invokeReturnCallback(t,{error:e,cv:n.getCorrelationId()});var r=n.returnUrls.failure;if(r){var o=r;e&&(o=ty.addQueryParameter(o,"errormessage",e.message)),n.redirectUrl(n.addExtendedParametersToUrl(o))}else throw e},this.success=function(e){(e=e||{}).cv=n.getCorrelationId(),n.logMessage(_.success,"Successfully completed operation: ".concat(e.operationType,". Id: ").concat(e.id)),n.invokePrivateEvent(_.success,null,{operationId:e.id,operationType:e.operationType},{operationId:e.id,operationType:e.operationType}),n.invokePrivateEvent(_.metric,null,{succeeded:!0},{succeeded:!0});var t=n.returnCallbacks[m.success];if(t)return void n.invokeReturnCallback(t,e);var r=n.returnUrls.success;if(r){var o=r;e.id&&(o=ty.addQueryParameter(o,"id",e.id)),n.redirectUrl(n.addExtendedParametersToUrl(o))}},this.gohome=function(){n.logMessage(_.gohome,"Going to call go-home"),n.invokePrivateEvent(_.gohome),n.invokePrivateEvent(_.metric,null,{succeeded:!0},{succeeded:!0});var e=n.returnCallbacks[m.gohome];e?n.invokeReturnCallback(e,{cv:n.getCorrelationId()}):n.returnUrls.gohome&&n.redirectUrl(n.addExtendedParametersToUrl(n.returnUrls.gohome))},this.notifyNoSelectionOptionsFound=function(e,t,r,o){n.invokePublicEvent(S.noSelectionOptionsFound,"No Data found in element id: ".concat(e," of type: ").concat(o," and of displayId: ").concat(t),{id:e,displayId:t,pidlIdentity:r,propertyType:o},{id:e,displayId:t,pidlIdentity:r,propertyType:o})},this.selectionChanged=function(e,t,r){n.invokePublicEvent(S.selectionChanged,"selection changed for ".concat(e," and display id ").concat(t),{propertyName:e,displayId:t,propertyValue:r},{propertyName:e,displayId:t})},this.error=function(e,t){n.logError(S.error,"error",e),e.cv=n.getCorrelationId(),n.invokePublicEvent(S.error,null,{error:e},{error:e,controlOperationType:t})},this.apiCalled=function(e,t,r){n.invokePrivateEvent(_.apiCalled,"API called. name: ".concat(e),{name:e},{name:e,parametersPassed:t,sanitizedParameters:r})},this.apiReturned=function(e,t,r){r||(r=ru()),n.invokePrivateEvent(_.apiReturned,"API returned. name: ".concat(e),{name:e,succeeded:t,promise:r},{name:e,succeeded:ri.boolify(t)})},this.secureFieldLoadWaitStarted=function(){n.invokePrivateEvent(_.secureFieldLoadWaitStarted)},this.secureFieldsLoaded=function(){n.invokePrivateEvent(_.secureFieldsLoaded)},this.secureFieldLoadWaitEnded=function(){n.invokePrivateEvent(_.secureFieldLoadWaitEnded)},this.secureFieldEventReceived=function(e,t,r){n.invokePrivateEvent(_.secureFieldEventReceived,"secureField event received",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.secureFieldEventQueued=function(e,t,r){n.invokePrivateEvent(_.secureFieldEventQueued,"secureField event queued",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.secureFieldEventPosted=function(e,t,r){n.invokePrivateEvent(_.secureFieldEventPosted,"secureField event posted",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.addSecureFieldPreLoadIFrameStarted=function(){n.invokePrivateEvent(_.addSecureFieldPreLoadIFrameStarted)},this.addSecureFieldPreLoadIFrameCompleted=function(){n.invokePrivateEvent(_.addSecureFieldPreLoadIFrameCompleted)},this.addSecureFieldPreLoadIFrameFailed=function(e){n.invokePrivateEvent(_.addSecureFieldPreLoadIFrameFailed,e)},this.challengeMessageReceived=function(e){n.invokePublicEvent(S.challengeMessageReceived,"challengeMessage received",{event:e},{event:e})},this.expressCheckoutReady=function(e){n.invokePublicEvent(S.expressCheckoutReady,"express checkout is ready",{availablePaymentMethods:e},{availablePaymentMethods:e})},this.postMessageReceived=function(e,t,r){n.invokePrivateEvent(_.postMessageReceived,"postMessage received",{origin:e,expectedOrigin:t,dataLength:r},{origin:e,expectedOrigin:t,dataLength:r})},this.postMessageHandleSuccess=function(e){n.invokePrivateEvent(_.postMessageHandleSuccess,"postMessage handle success",{actionType:e},{actionType:e})},this.postMessageHandleFailure=function(e){n.invokePrivateEvent(_.postMessageHandleFailure,"postMessage handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageTimeoutHandleSuccess=function(e){n.invokePrivateEvent(_.postMessageTimeoutHandleSuccess,"postMessageTimeout handle success",{actionType:e},{actionType:e})},this.postMessageTimeoutHandleFailure=function(e){n.invokePrivateEvent(_.postMessageTimeoutHandleFailure,"postMessageTimeout handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageBusyTimerStarted=function(e){n.invokePrivateEvent(_.postMessageBusyTimerStarted,"postMessage busy timer started",{details:e},{details:e})},this.postMessageBusyTimerEnded=function(e){n.invokePrivateEvent(_.postMessageBusyTimerEnded,"postMessage busy timer ended",{details:e},{details:e})},this.paymentSheetOpened=function(e){n.invokePublicEvent(S.paymentSheetOpened,"payment sheet opened",{details:e},{details:e})},this.paymentSheetCancelled=function(e){n.invokePublicEvent(S.paymentSheetCancelled,"payment sheet closed",{details:e},{details:e})},this.paymentDataTokenizing=function(e){n.invokePrivateEvent(_.paymentDataTokenizing,"payment data tokenizing",{details:e},{details:e})},this.paymentDataTokenized=function(e){n.invokePrivateEvent(_.paymentDataTokenized,"payment data tokenized successfully",{details:e},{details:e})},this.paymentClientSubmissionSkipped=function(e){n.invokePrivateEvent(_.paymentClientSubmissionSkipped,"Skipping submission for payment client component: "+e,{componentName:e},{componentName:e})},this.resourceHelpersFunctionExecuted=function(e,t,r){n.invokePrivateEvent(_.resourceHelpersFunctionExecuted,"Executed Resource Helper Function ".concat(e),{functionName:e,inputParams:t,outputValue:r},{functionName:e,inputParams:t,outputValue:r})},this.fetchCallCompleted=function(e){n.invokePublicEvent(S.fetchCallCompleted,"Fetch call completed",{httpRequestTelemetryData:e},{httpRequestTelemetryData:e})},this.toggleClicked=function(e,t){n.invokePublicEvent(S.toggleClicked,"Toggle clicked for property: ".concat(e,", current value: ").concat(t),{propertyName:e,currentValue:t},{propertyName:e,currentValue:t})},this.propertySelected=function(e,t,r){n.invokePublicEvent(S.propertySelected,"Input selected. id: ".concat(e),{id:e,propertyName:t,divId:r},{id:e,propertyName:t})},this.propertyValidated=function(e,t){n.invokePublicEvent(S.propertyValidated,"Property validation succeeded for property ".concat(e),{propertyName:e,controlOperationType:t},{propertyName:e,controlOperationType:t})},this.resourceSelected=function(e,t){var r;n.invokePublicEvent(S.resourceSelected,"Resource selected ".concat(e),{resourceName:e,value:t},{resourceName:e,id:t&&t.id,isWalletCard:!!(null==(r=null==t?void 0:t.details)?void 0:r.isNotSaved)})},this.instanceDownloading=function(e){n.invokePublicEvent(S.instanceDownloading,"Downloading instance from url: ".concat(e),{url:e},{url:e})},this.instanceDownloaded=function(){n.invokePublicEvent(S.instanceDownloaded,"Downloaded instance")},this.pidlDownloading=function(e){n.invokePublicEvent(S.pidlDownloading,"Downloading PIDL document from url: ".concat(e),{url:e},{url:e})},this.pidlDownloaded=function(){n.invokePublicEvent(S.pidlDownloaded,"PIDL document successfully downloaded")},this.pageRendering=function(e){n.invokePublicEvent(S.pageRendering,"PIDL document rendering begins",{successPayload:e},{})},this.pageRendered=function(e,t,r,o,a,s,l){n.invokePublicEvent(S.pageRendered,"PIDL document rendered",{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:a,currentPageName:s,currentPageDescription:l},{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:a,currentPageName:s})},this.pageRefreshed=function(){n.invokePublicEvent(S.pageRefreshed,"PIDL document refreshed")},this.pageDisplayed=function(){n.invokePublicEvent(S.pageDisplayed,"PIDL document displayed")},this.inputReading=function(){n.invokePublicEvent(S.inputReading,"Reading user input data")},this.inputRead=function(){n.invokePublicEvent(S.inputRead,"Read user input data")},this.inputValidating=function(){n.invokePublicEvent(S.inputValidating,"Validating user input data")},this.inputValidated=function(){n.invokePublicEvent(S.inputValidated,"Validated user input data")},this.inputTokenizing=function(){n.invokePublicEvent(S.inputTokenizing,"Tokenizing user input data")},this.inputTokenized=function(){n.invokePublicEvent(S.inputTokenized,"Tokenized user input data")},this.submitting=function(){n.invokePrivateEvent(_.submitting)},this.submitted=function(){n.invokePrivateEvent(_.submitted)},this.implementationMissing=function(e,t,r){n.invokePrivateEvent(_.implementationMissing,"Implentation of ".concat(null!=t?t:"undefined"," missing in ").concat(e),r)},this.inputSubmitting=function(e){n.invokePublicEvent(S.inputSubmitting,"Submitting PIDL document: ".concat(e),{url:e},{url:e})},this.inputSubmitted=function(e){n.invokePublicEvent(S.inputSubmitted,"PIDL document submitted. Next action: ".concat(e),{clientAction:e},{clientAction:e})},this.propertyTokenizing=function(e,t){n.invokePublicEvent(S.propertyTokenizing,"Tokenizing property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.propertyTokenized=function(e){n.invokePublicEvent(S.propertyTokenized,"Tokenized property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransforming=function(e){n.invokePublicEvent(S.propertyTransforming,"Transforming property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransformed=function(e){n.invokePublicEvent(S.propertyTransformed,"Transformed property: ".concat(e),{propertyName:e},{propertyName:e})},this.fileUploading=function(e,t){n.invokePublicEvent(S.fileUploading,"File uploading property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.fileUploaded=function(e){n.invokePublicEvent(S.fileUploaded,"File uploaded property: ".concat(e),{propertyName:e},{propertyName:e})},this.styleSheetError=function(e,t){n.invokePublicEvent(S.styleSheetError,"Failed to read the cssRules property from: ".concat(t),{error:e},{error:e})},this.redirecting=function(e){n.invokePublicEvent(S.redirecting,"Redirecting to url: ".concat(e),{url:e},{url:e})},this.navigate=function(e,t,r,o,a,s){var l=r?"Redirect":"Navigate";return n.invokePublicEvent(S.navigate,"".concat(l," to url: ").concat(t),{displayId:e,dest:a||e,url:t,piRedirection:r,context:o,destinationId:s},{displayId:e,dest:a||e,url:t,piRedirection:r,destinationId:s})},this.triggerEvent=function(e,t){return n.invokePublicEvent(S.triggerEvent,"Event triggered: ".concat(e),{eventName:e,params:t},{eventName:e,params:t})},this.partnerAction=function(e,t){return n.invokePublicEvent(S.partnerAction,"Invoke partner action on Id: ".concat(e),{displayId:e,context:t},{displayId:e})},this.pageNavigated=function(e,t,r,o,a,s,l){n.invokePublicEvent(S.pageNavigated,"Navigating from page: ".concat(e," to: ").concat(o),{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:a,currentPageName:s,currentPageDescription:l},{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:a,currentPageName:s})},this.click=function(e){n.invokePublicEvent(S.click,"Click display control for button with id ".concat(e),{id:e},{id:e})},this.captchaRendered=function(e){n.invokePublicEvent(S.captchaRendered,"Captcha is rendered with id ".concat(e),{id:e},{id:e})},this.propertyCreating=function(e,t,r){n.invokePublicEvent(S.propertyCreating,"Creating control with id ".concat(e),{id:e,displayDescription:t,htmlAttributes:r},{id:e})},this.payloadCreated=function(e){n.invokePublicEvent(S.payloadCreated,"Pidl payload created",{value:e},{})},this.restMethodInvoking=function(e,t){n.invokePublicEvent(S.restMethodInvoking,"invoking rest method with requestUrl: ".concat(e," operationType: ").concat(t),{requestUrl:e,operationType:t},{requestUrl:e,operationType:t})},this.restMethodInvoked=function(e){n.invokePublicEvent(S.restMethodInvoked,"rest method invoked, request url: ".concat(e),{requestUrl:e},{requestUrl:e})},this.propertyConditionallyUpdated=function(e,t){n.invokePublicEvent(S.propertyConditionallyUpdated,"Property ".concat(e," has been conditionally updated to ").concat(t),{propertyName:e,propertyValue:t},{propertyName:e,propertyValue:t})},this.pidlResolved=function(e,t){var r=[];t&&(r=t.map(function(e){return t7.createIdentityHash(e.identity)}));var o=ri.serialize(r);n.invokePrivateEvent(_.pidlResolved,"PIDL document resolved successfully for context: ".concat(e,". Pidl Identities ").concat(o),{context:e,resolvedPidlIdentity:o},{})},this.propertyUnselected=function(e,t,r){n.invokePrivateEvent(_.propertyUnselected,null,{id:e,propertyName:t,divId:r},{id:e,propertyName:t})},this.propertyCreated=function(e,t,r){n.invokePrivateEvent(_.propertyCreated,null,{propertyName:e,controlId:t,divId:r},{propertyName:e,controlId:t})},this.pollingStarted=function(e){n.invokePrivateEvent(_.pollingStarted,null,{id:e},{id:e})},this.pollingEnded=function(e){n.invokePrivateEvent(_.pollingEnded,null,{id:e},{id:e})},this.updatePollAndMoveLast=function(e){n.invokePrivateEvent(_.updatePollAndMoveLast,null,{pollId:e})},this.modelUpdated=function(e,t){n.invokePrivateEvent(_.modelUpdated,null,{created:e,skipHideBusyBlock:t},{created:e,skipHideBusyBlock:t})},this.dataUpdated=function(){n.invokePrivateEvent(_.dataUpdated)},this.conflictingInputValues=function(e){n.invokePrivateEvent(_.conflictingInputValues,null,{propertyName:e},{propertyName:e})},this.stateChanged=function(e,t){n.invokePrivateEvent(_.stateChanged,null,{oldState:e,newState:t},{oldState:e,newState:t})},this.testHookGetInternalState=function(){return{returnUrls:n.returnUrls,returnCallbacks:n.returnCallbacks,publicEventHandlers:n.publicEventHandlers,privateEventHandlers:n.privateEventHandlers,eventParameterExtenders:n.eventParameterExtenders,telemetryContext:n.telemetryContext,telemetryLogger:n.telemetryLogger}},this.pollClientActionSuccess=function(e){n.invokePrivateEvent(_.pollClientActionSuccess,"handle client action succeeded during polling",{actionType:e},{actionType:e})},this.pollClientActionFailure=function(e){n.invokePrivateEvent(_.pollClientActionFailure,"handle client action failed during polling",{failureDetails:e},{failureDetails:e})},this.hideModalDialog=function(){n.invokePrivateEvent(_.hideModalDialog)},this.pidlActionInvoked=function(e,t){n.invokePrivateEvent(_.pidlActionInvoked,"PidlAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.clientActionInvoked=function(e,t){n.invokePrivateEvent(_.clientActionInvoked,"ClientAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.propertyValueSelected=function(e,t){n.invokePrivateEvent(_.propertyValueSelected,"Property ".concat(e," has the selected value ").concat(t),{propertyName:e,propertyValue:t},{propertyName:e,propertyValue:t})},this.renderedPidlPage=function(){n.invokePublicEvent(S.renderedPidlPage,"Rendered PidlPage")},this.closePidlPage=function(){n.invokePublicEvent(S.closePidlPage,"Closed PidlPage")},this.submitOriginalPidl=function(){n.invokePublicEvent(S.submitOriginalPidl,"Submit Original Pidl Action")},this.getLocalDataSourceInvoked=function(e){n.invokePublicEvent(S.getLocalDataSourceInvoked,"getDataSource of ".concat(e," invoked"),{dataSourceName:e},{dataSourceName:e})},this.getLocalDataSourceResolved=function(e,t){n.invokePublicEvent(S.getLocalDataSourceResolved,"getDataSource of ".concat(e," resolved"),{dataSourceName:e,count:t},{dataSourceName:e,count:t})},this.getLocalDataSourceError=function(e,t){n.logError(S.error,"error",t),t.cv=n.getCorrelationId(),n.invokePublicEvent(S.getLocalDataSourceError,"getDataSource of ".concat(e," error"),{dataSourceName:e,errorObject:t},{dataSourceName:e,errorObject:t})},this.telemetryContext=t,this.telemetryLogger=e}}(),rh=function(){return function(e,t,n,r,o,a,s,l,c){void 0===c&&(c=!1);var u=this;if(this.dataType="json",this.contentType="application/json",this.operationVersion="",this.getRequest=function(){var e={method:u.type,headers:new Headers(u.headers),mode:"cors",credentials:u.includeCredentials?"include":"omit"};return u.payload&&(e.body=u.payload),new Request(u.url,e)},this.updateFetchOptions=function(e,t){var n=ru({success:u.secondaryRetrieved,headers:u.secondaryHeaders,payload:u.secondaryPayload});return t&&e.useSecondaryPayload&&!u.secondaryRetrieved&&(n=t()),n.then(function(t){var n=t.success,r=t.headers,o=t.payload;return e&&e.endpoint?u.url=tV.replaceVirtualEndpointWithServiceAddress(e.endpoint):e&&e.useAlternateUrl||(u.url=u.originalUrl),n&&(u.secondaryRetrieved=n,u.secondaryHeaders=r,u.secondaryPayload=o),e.useSecondaryPayload?(u.secondaryHeaders?u.headers=tr({},u.secondaryHeaders):null===u.secondaryHeaders&&(u.headers={}),u.secondaryPayload&&(u.payload=u.secondaryPayload)):(u.headers=tr({},u.originalHeaders),u.payload=u.originalPayload),(void 0===u.payload||null===u.payload)&&delete u.payload,u})},this.url=e,this.originalUrl=e,this.type=t,this.headers=n,this.originalHeaders=tr({},n),this.payload=r,this.originalPayload=r,this.retryCount=o?0:-1,this.retryOnServerError=o,this.currentOperationName=a||"pidlsdkOperation",this.operationName=s||"DependentOperationName",this.serviceName=l||"PidlSdkDependentService",this.includeCredentials=c,this.serverErrorCount=0,this.secondaryRetrieved=!1,n&&ri.isObject(n)){var d=n,p=M.msRetryOnServerErr,f=d[p],h=to(d,["symbol"==typeof p?p:p+""]);this.retryOnServerError="false"!==f,this.headers=h}}}(),rm=function(e){function t(t,n,r,o,a){var s=e.call(this,"Failed to fetch")||this;return s.status=t,s.statusText=n,s.failureContent=r,s.hasResponseFromServer=o,s.canRetryOnServerError=a,s}return tn(t,e),t}(Error),rg=1e3,rv=1.5,ry=[500,502,503,504],rb=2,rx=12e3,rC=42e3,rk=function(){return[{retry:2},{retry:1,xhrConfig:{getRequestTimeout:rx,postRequestTimeout:rC}},{retry:2,useAlternateUrl:!0},{retry:1,useAlternateUrl:!0,xhrConfig:{getRequestTimeout:rx,postRequestTimeout:rC}}]},rw=function(){return function(e){this.initialRetryTimeout=rg,this.retryTimeoutMultiplier=rv,this.retryableErrorCodes=ts([],ry,!0),this.maxServerErrorRetryCount=rb,this.fetchOrder=rk(),this.initialRetryTimeout=(null==e?void 0:e.initialRetryTimeout)||this.initialRetryTimeout,this.retryTimeoutMultiplier=(null==e?void 0:e.retryTimeoutMultiplier)||this.retryTimeoutMultiplier,this.retryableErrorCodes=(null==e?void 0:e.retryableErrorCodes)||this.retryableErrorCodes,this.maxServerErrorRetryCount=(null==e?void 0:e.maxServerErrorRetryCount)||this.maxServerErrorRetryCount,this.fetchOrder=(null==e?void 0:e.fetchOrder)||this.fetchOrder;for(var t=[],n=0,r=this.fetchOrder;n<r.length;n++){for(var o=r[n],a=0;a<o.retry;a++)t.push(o);o.retry=1}this.fetchOrder=t}}(),rS=new(function(){function e(){var e=this;this.FetchOptions=rh,this.getHttpTelemetryData=function(t,n){var r=t.url,o=t.type,a=t.contentType,s=t.currentOperationName,l=t.operationName,c=t.operationVersion,u=t.serviceName,d=t.retryCount,p=n.isSuccess,f=n.statusCode,h=n.headers,m=n.failureResponseText,g=n.timeTaken,v=n.serviceErrorCode,y=n.statusText,b=f?f.toString():"0",x=p||"200"===b?"":m||y,C=0;try{C=parseInt(n.headers.get("Content-Length"),10)}catch(e){}return{targetUri:r,requestMethod:o,responseContentType:a,operationName:s,dependencyOperationName:l,dependencyOperationVersion:c,serviceName:u,retryCount:d,succeeded:p,protocolStatusCode:b,failureResponse:x,contentLength:isNaN(C)?0:C,latencyMs:g,serviceErrorCode:v,headers:e.getDesiredResponseHeaders(h)}},this.getDesiredResponseHeaders=function(e){var t={};if(e&&e.forEach){var n=ra.telemetryHeaders.names,r=ra.telemetryHeaders.prefixes;e.forEach(function(e,o){n.indexOf(o)>-1?t[o]=e:r.forEach(function(n){ri.startsWithIgnoreCase(o,n)&&(t[o]=e)})})}return t},this.isFetchFailureError=function(e){return"status"in e&&"statusText"in e&&"failureContent"in e},this.addCVHeader=function(e,t){var n=e.getHttpRequestCorrelationHeader()||{name:void 0,value:void 0},r=n.name,o=n.value;r&&o&&(t[r]=o)},this.handleFetchFailure=function(t,n,r,o){if(e.isFetchFailureError(t))a=t.status,s=t.statusText,c=t.failureContent,u=t.hasResponseFromServer,r=r&&t.canRetryOnServerError;else if(t){var a,s,c,u,d,p=t;a=p.status,s=p.statusText,c=p.failureContent||t.message||ri.serialize(p)}var f=!1,h=!1,m=!1;u?(o&&o.retryableErrorCodes&&o.retryableErrorCodes.indexOf(a)>-1&&(h=!0,f=r),d="HTTP Error |".concat(a,"|").concat(s,"|: |").concat(c,"|")):(d="|NetworkError|Status: ".concat(a,", StatusText: ").concat(s,", FailureContent: ").concat(c,"| Uncaught Error. |").concat(c,"|"),m=!0,f=!0);var g=ro.parseJSON(c);return{failureMessage:{status:l.Error,errorMessage:d,httpStatus:a,httpStatusText:s,failureContent:c,failureObject:g&&g.succeeded?g.value:void 0,connectivityError:m},retryable:f,serverError:h}},this.fetchWrapper=function(t){return e.fetchHandler?e.fetchHandler(t.getRequest()):fetch(t.getRequest())},this.xhrWrapper=function(t,n,r,o){return new Promise(function(a,s){var l=t.type,c=t.url,u=t.headers,d=t.payload,p=t.includeCredentials,f=(n||{xhrConfig:{getRequestTimeout:rx,postRequestTimeout:rC}}).xhrConfig,h=new XMLHttpRequest;h.open(l,c),l===el.Get?h.timeout=f.getRequestTimeout||rx:h.timeout=f.postRequestTimeout||rC,u&&ri.getKeys(u).forEach(function(e){return h.setRequestHeader(e,u[e])}),p&&(h.withCredentials=p);var m=function(){var e=h.getAllResponseHeaders(),t={};return ri.isEmptyString(e)||e.trim().split(/[\r\n]+/).forEach(function(e){var n=e.split(": "),r=n.shift(),o=n.join(": ");t[r]=o}),t},g=function(){var e=void 0;return(""===h.responseType||"text"===h.responseType)&&(e=h.responseText),e};h.onload=function(){a(new Response(g(),{status:h.status,headers:new Headers(m()),statusText:h.statusText}))},h.onerror=function(){var n={isSuccess:!1,timeTaken:Date.now()-o,statusCode:h.status,headers:new Headers(m())};r&&r.fetchCallCompleted(e.getHttpTelemetryData(t,n));var a=g();s(new rm(h.status,h.statusText,a,ri.boolify(a),!0))},h.ontimeout=function(){var n={isSuccess:!1,timeTaken:Date.now()-o,statusCode:h.status,headers:new Headers};r&&r.fetchCallCompleted(e.getHttpTelemetryData(t,n)),s(new rm(h.status,h.statusText,void 0,!1,!0))},l===el.Post&&d?(h.setRequestHeader("Content-Type","application/json"),h.send(d)):h.send()})},this.loadScript=function(e){return new Promise(function(t,n){try{if(document&&(document.head||document.body)){var r=document.createElement("script");r.onload=function(){t()},r.onerror=function(){n()},r.async=!0,r.src=e,(document.head||document.body).appendChild(r)}else n()}catch(e){n(e)}})},this.getHttpHeaders=function(t,n,r,o,a){var s=e.getDefaultHttpHeaders(t);for(var l in n&&(s=n.getHeaders(s,o)),r&&(ro.extend(!0,s,r),s.hasOwnProperty(M.msCorrelationId)&&ri.isNullOrUndefinedOrWhiteSpaceString(s[M.msCorrelationId])&&(s[M.msCorrelationId]=ro.guid()),s.hasOwnProperty(M.msTrackingId)&&ri.isNullOrUndefinedOrWhiteSpaceString(s[M.msTrackingId])&&(s[M.msTrackingId]=ro.guid())),o&&(o.indexOf("{pidl")>-1||o.indexOf("{pifd")>-1||o.indexOf("{resource-endpoint}")>-1)&&(s.hasOwnProperty(M.correlationContext)||(s[M.correlationContext]=null==t?void 0:t.getCorrelationContextHeaderValue()),s[M.msPidlsdkVersion]=null==t?void 0:t.getPidlSdkVersionHeaderValue()),s)s[l]=ro.getFormatStringExpressionValue(s[l],a);return s},this.getDefaultHttpHeaders=function(t){var n,r=((n={})[M.contentType]="application/json",n);return e.addCVHeader(t,r),r},this.getPayeeFileUploadHttpHeaders=function(e,t){var n={};return t&&(n[M.authorization]=t),n},this.setFetchHandler=function(t){e.fetchHandler=t},this.testHookSetRetryTimeout=function(e){rg=e},this.testHookHandleFetchFailure=function(t,n,r){return void 0===n&&(n=el.Post),void 0===r&&(r=!1),e.handleFetchFailure(t,n,r,new rw)}}return e.prototype.successHandler=function(e,t,n,r,o,a){var s=this;return function(l){var c={isSuccess:l.ok,timeTaken:Date.now()-n,statusCode:l.status,headers:l.headers};if(c.isSuccess)try{e.fetchCallCompleted(s.getHttpTelemetryData(t,c))}catch(e){}return l.text().then(function(n){var u=ro.parseJSON(n),d=!1;if(!c.isSuccess){c=tr(tr({},c),{statusText:l.statusText,serviceErrorCode:(u.value||{}).code,failureResponseText:n});try{e.fetchCallCompleted(s.getHttpTelemetryData(t,c))}catch(e){}d=t.serverErrorCount<a.maxServerErrorRetryCount;try{var p=c.headers.get(M.msRetryOnServerErr);d="true"===p||"false"!==p&&d}catch(e){}}if(l.ok&&(ri.isEmptyString(n)||u.succeeded))try{var f=u.succeeded?u.value:{};o&&o(f),r.resolve(f)}catch(e){throw new rm(l.status,l.statusText,e.message,!0,!1)}else throw new rm(l.status,l.statusText,n,!0,d)})}},e.prototype.exceptionHandler=function(e,t,n,r,o,a,s,l){var c=this;return function(u){var d=c.handleFetchFailure(u,t.type,t.retryOnServerError,s),p=d.failureMessage,f=d.retryable&&s.fetchOrder.length>0;if(e.error(new t4.serverError(t3.restMethodInvocationFailed,t.url,p.failureObject||p.failureContent,p.httpStatus,p.httpStatusText,p.errorMessage,[t.url,p.httpStatusText],t.type,t.retryCount,f)),d.serverError&&t.serverErrorCount++,f){t.retryCount+=1;var h=s.fetchOrder.shift();h.useAlternateUrl&&(t.url=ra.getAlternateUrl(t.originalUrl));var m=t.updateFetchOptions(h,l);setTimeout(function(){return(n=Date.now(),!h.xhrConfig||c.fetchHandler)?m.then(function(t){return c.addCVHeader(e,t.headers),c.fetchWrapper(t).then(c.successHandler(e,t,n,r,o,s)).catch(c.exceptionHandler(e,t,n,r,o,a,s,l))}):m.then(function(t){return c.addCVHeader(e,t.headers),c.xhrWrapper(t,h,e,n).then(c.successHandler(e,t,n,r,o,s)).catch(c.exceptionHandler(e,t,n,r,o,a,s,l))})},s.initialRetryTimeout*Math.pow(s.retryTimeoutMultiplier,t.retryCount-1))}else a&&a(p),r.reject(p)}},e.prototype.invokeFetch=function(e,t,n,r,o,a,s,l,c,u,d,p,f,h){var m=this;void 0===p&&(p=!1),void 0===f&&(f=null),void 0===h&&(h=null);var g=Date.now(),v=new this.FetchOptions(r,n,o,a,t,c,u,d,p),y=new rw(f),b=y.fetchOrder.shift(),x=v.updateFetchOptions(b,h);return new Promise(function(t,n){var r={resolve:t,reject:n};x.then(function(t){(b.xhrConfig&&!m.fetchHandler?m.xhrWrapper(t,b,e,g):m.fetchWrapper(t)).then(m.successHandler(e,t,g,r,s,y)).catch(m.exceptionHandler(e,t,g,r,s,l,y,h))}).catch(m.exceptionHandler(e,v,g,r,s,l,y,h))})},e.prototype.post=function(e,t,n,r,o,a,s,l,c,u,d,p,f){return void 0===d&&(d=!1),void 0===p&&(p=null),void 0===f&&(f=null),this.invokeFetch(e,t,el.Post,n,r,o,a,s,l,c,u,d,p,f)},e.prototype.put=function(e,t,n,r,o,a,s,l,c,u,d,p){return void 0===d&&(d=!1),void 0===p&&(p=null),this.invokeFetch(e,t,el.Put,n,r,o,a,s,l,c,u,d,p)},e.prototype.get=function(e,t,n,r,o,a,s){return void 0===s&&(s=null),this.invokeFetch(e,!0,el.Get,t,n,null,null,null,r,o,a,!1,s)},e.prototype.delete=function(e,t,n,r,o,a,s){return void 0===s&&(s=null),this.invokeFetch(e,!0,el.Delete,t,n,null,null,null,r,o,a,!1,s)},e}()),r_=new(function(){function e(){var e=this;this.returnOptionSchema={type:"object",children:{callbacks:{type:"object",optional:!0,children:{success:{type:"function",optional:!0},failure:{type:"function",optional:!0},gohome:{type:"function",optional:!0}}},urls:{type:"object",optional:!0,children:{success:{type:"string",optional:!0},failure:{type:"string",optional:!0},gohome:{type:"string",optional:!0}}}}},this.userContextSchema={type:"object",optional:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0},serviceOverrides:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0}}}}},this.pidlDocInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},resourceSuffix:{type:"string",optional:!0},pidlVersion:{type:"string",optional:!0},pidlEndpoint:{type:"string",optional:!0}}},this.resourceInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},id:{type:"string"},resourceEndpoint:{type:"string",optional:!0}}},this.pidlIdentitySchema={type:"object",ignoreUnspecifiedChild:!0,children:{country:{type:"string",optional:!0},description_type:{type:"string",optional:!0},operation:{type:"string",optional:!0},resource_id:{type:"string",optional:!0}}},this.displayOptionsSchema={type:"object",children:{containerId:{type:"string"},busyBlockId:{type:"string",optional:!0},busyBlockElement:{type:"any",optional:!0},helpDialogBlockId:{type:"string",optional:!0},showHelpDialogBlock:{type:"boolean",optional:!0},inputPropertyIdPrefix:{type:"string",optional:!0},inputPropertyIdSuffix:{type:"string",optional:!0},displayElementIdPrefix:{type:"string",optional:!0},displayElementIdSuffix:{type:"string",optional:!0},inputPropertyErrorIdPrefix:{type:"string",optional:!0},showPlaceholderInTextbox:{type:"boolean",optional:!0},disableEnterKeyAction:{type:"boolean",optional:!0},showSubmitBlock:{type:"boolean",optional:!0},showErrorBlock:{type:"boolean",optional:!0},htmlExtender:{type:"dictionary",optional:!0},busyBlockShowHideHandler:{type:"function",optional:!0},hidePropertyErrors:{type:"boolean",optional:!0},disableFocusOnLoad:{type:"boolean",optional:!0},alwaysValidateOnChange:{type:"boolean",optional:!0},ieExtender:{type:"dictionary",optional:!0},propagateCallbackException:{type:"boolean",optional:!0},useWebView2:{type:"boolean",optional:!0},busyUntilInitialPageRendered:{type:"boolean",optional:!0},secureFieldPreLoadingEnabled:{type:"boolean",optional:!0},instanceName:{type:"string",optional:!0},preventUnmountOnFinish:{type:"boolean",optional:!0}}},this.suppressedEventsSchema={type:"object",optional:!0,children:{disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0}}},this.telemetryOptionsSchema={type:"object",optional:!0,children:{contextData:{type:"dictionary",optional:!0},disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0},enablePrivateEventConsoleLogging:{type:"boolean",optional:!0},customTelemetryFrameworkWindowNamespace:{type:"string",optional:!0},overrides:{type:"object",minLength:0,optional:!0,childType:this.suppressedEventsSchema,allowedChildNames:tr(tr({},S),_)}}},this.callbacksSchema={type:"object",optional:!0,children:{view:{type:"any",optional:!0},submit:{type:"function",optional:!0},getPidlDocument:{type:"function",optional:!0},iFrameMessageHandler:{type:"function",optional:!0},telemetryLogger:{type:"any",optional:!0},prefetcher:{type:"any",optional:!0},encryptionHandler:{type:"any",optional:!0},fetchHandler:{type:"function",optional:!0}}},this.checkoutParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{anonymousUser:{type:"boolean",optional:!0},checkoutId:{type:"string"},language:{type:"string"},market:{type:"string"},partner:{type:"string",optional:!0},paymentProviderId:{type:"string"},redirectUrl:{type:"string"}}},this.payeeTaxProfileParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{section:{type:"string"},tenant:{type:"string"},sapidind:{type:"string",optional:!0},status:{type:"string",optional:!0},accounttype:{type:"string",optional:!0},payfromcc:{type:"array",minLength:1,optional:!0},residencecc:{type:"string",optional:!0},language:{type:"string",optional:!0}}},this.mockEventsSchema={type:"object",optional:!0,children:{name:{type:"string"},params:{type:"dictionary",optional:!0}}},this.mockFunctionSchema={type:"object",optional:!0,children:{name:{type:"string"},triggers:{type:"array",maxLength:1,childType:this.mockEventsSchema},returns:{type:"any",optional:!0}}},this.mockFunctionsSchema={type:"array",maxLength:1,optional:!0,childType:this.mockFunctionSchema},this.addUpdateOrDeleteOptionSchema={type:"object",optional:!0,children:{sessionId:{type:"string",optional:!0},riskData:{type:"object",optional:!0,children:{greenId:{type:"string"}}}}},this.selectOrRenderOptionSchema={type:"object",optional:!0},this.selectedResourceInfoSchema={type:"object",children:{id:{type:"string",optional:!0},backupId:{type:"string",optional:!0}}},this.handleSchema={type:"string"},this.prefillDataSchema={type:"object",ignoreUnspecifiedChild:!0},this.purchaseContextSchema={type:"object",children:{amount:{type:"number"},currency:{type:"string"},country:{type:"string"},threeDSScenario:{type:"string",possibleValues:ri.getValues(tr({},ey))},riskChallengeIndicator:{type:"string",optional:!0,possibleValues:ri.getValues(tr({},eb))}}},this.purchaseRiskChallengeSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},sessionId:{type:"string",optional:!0},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchaseRiskChallengeSchemaForThreeDS={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},challengeWindowSize:{type:"string",possibleValues:ri.getValues(tr({},ex))},purchaseContext:{type:"schema",schema:this.purchaseContextSchema},sessionId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchasePendingStateSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},sessionId:{type:"string"},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.resourceOptionsSchema={type:"dictionary",optional:!0},this.showResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.offerResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.searchResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.fundStoredValueParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.resourceActionParamsSchema={type:"object",children:{resourceActionContext:{type:"object",ignoreUnspecifiedChild:!0,children:{action:{type:"string",possibleValues:ri.getValues(tr({},w))},handle:{type:"string",optional:!0},pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema,optional:!0},pidlIdentity:{type:"schema",schema:this.pidlIdentitySchema,optional:!0},resourceInfo:{type:"schema",schema:this.resourceInfoSchema,optional:!0},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0}}},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"dictionary",optional:!0},selectedResourceInfo:{type:"schema",schema:this.selectedResourceInfoSchema,optional:!0}}},this.authorizationGroupSchema={type:"object",children:{id:{type:"string"},totalAmount:{type:"number"},itemTitles:{type:"array"}}},this.paymentSessionDataSchema={type:"object",ignoreUnspecifiedChild:!0,children:{amount:{type:"number"},billableAccountId:{type:"string",optional:!0},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:ri.getValues(tr({},ey))},challengeWindowSize:{type:"string",possibleValues:ri.getValues(tr({},ex))},classicProduct:{type:"string",optional:!0},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"},purchaseOrderId:{type:"string",optional:!0},redeemRewards:{type:"boolean",optional:!0},rewardsPoints:{type:"number",optional:!0},recurringPaymentDetails:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{label:{type:"string",optional:!0},frequencyUnit:{type:"string",possibleValues:ri.getValues(tr({},eM))},frequency:{type:"number"},startTime:{type:"date",optional:!0},amount:{type:"number"}}},authorizationGroups:{type:"array",optional:!0,childType:this.authorizationGroupSchema},initiativeContext:{type:"string",optional:!0}}},this.paymentSessionSchema={type:"object",ignoreUnspecifiedChild:!0,children:{id:{type:"string"},isChallengeRequired:{type:"boolean"},challengeStatus:{type:"string",possibleValues:ri.getValues(tr({},eC))},signature:{type:"string"},amount:{type:"number"},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:ri.getValues(tr({},ey))},challengeWindowSize:{type:"string",possibleValues:ri.getValues(tr({},ex))},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"}}},this.visitInputSchema=function(t,n,r){var o=e.validate(t,n,r);if(o)return o;if("dictionary"===n.type||!r)return null;if(e.isObjectSchema(n)){var a=n.allowedChildNames,s=n.ignoreUnspecifiedChild,l=n.children,c=n.childType;if(a)for(var u in r){if(!a[u])return new t4.inputParameterValidationFailedError(t3.inputParameterMissing,t,[n.type,ri.getType(r)]);if(c){var d=e.visitInputSchema(t+" element: ",c,r[u]);if(d)return d}}else{if(!s){for(var p in r)if(!l[p])return new t4.inputParameterValidationFailedError(t3.inputParameterNotInRange,p,[p])}for(var f in l){var h=e.visitInputSchema(f,l[f],r[f]);if(h)return h}}}if(e.isArraySchema(n)){if(!ri.isArray(r))return new t4.inputParameterValidationFailedError(t3.inputParameterTypeMismatch,t,[n.type,ri.getType(r)]);var m=n.minLength,g=n.maxLength,c=n.childType;if(m&&r.length<m)return new t4.inputParameterValidationFailedError(t3.inputParameterSmallerThanMinLength,t,[t,m,r.length]);if(g&&r.length>g)return new t4.inputParameterValidationFailedError(t3.inputParameterLargerThanMaxLength,t,[t,g,r.length]);if(c)for(var v=0;v<r.length;++v){var y=e.visitInputSchema(t+" element: "+v,c,r[v]);if(y)return y}}if(e.isSchemaSchema(n)){var b=e.visitInputSchema(t,n.schema,r);if(b)return b}return null},this.validate=function(e,t,n){if(!t.optional&&null==n)return new t4.inputParameterValidationFailedError(t3.inputParameterMissing,e,[e]);var r=t.type;if(!n||"any"===r)return null;var o=typeof n;return("dictionary"===r||"schema"===r?r="object":"array"===r&&ri.isArray(n)&&(o="array"),"boolean"===r&&"string"===o&&("true"===n||"false"===n)&&(o="boolean"),"date"===r&&"object"===o&&(o="date"),r&&o&&r!==o)?new t4.inputParameterValidationFailedError(t3.inputParameterTypeMismatch,e,[r,o]):t.possibleValues&&!ri.contains(t.possibleValues,n)?new t4.inputParameterValidationFailedError(t3.inputParameterNotInRange,e,[e,n,JSON.stringify(t.possibleValues)]):null},this.resultHandler=function(e,t){return t&&e.failure(t),!ri.boolify(t)},this.validateInputParameters=function(t,n,r,o,a){var s=e.resultHandler(t,e.visitInputSchema("userContext",e.userContextSchema,n));return(s=s&&e.resultHandler(t,e.visitInputSchema("displayOptions",e.displayOptionsSchema,r)))&&r.busyBlockShowHideHandler&&r.busyBlockId&&(s=e.resultHandler(t,new t4.inputParameterValidationFailedError(t3.busyBlockShowHideHandlerAndbusyBlockIdAreExclusive))),s=(s=s&&e.resultHandler(t,e.visitInputSchema("telemetryOptions",e.telemetryOptionsSchema,o)))&&e.resultHandler(t,e.visitInputSchema("callbacks",e.callbacksSchema,a))},this.validateCheckoutParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("checkoutParams",e.checkoutParamsSchema,n))},this.validatePayeeTaxProfileParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("payeeTaxProfileParams",e.payeeTaxProfileParamsSchema,n))},this.validateMockFunctions=function(t,n){return e.resultHandler(t,e.visitInputSchema("mockFunctions",e.mockFunctionsSchema,n))},this.validateReturnOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("returnOptions",e.returnOptionSchema,n))},this.validatePidlDocInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("pidlDocInfo",e.pidlDocInfoSchema,n))},this.validateResourceInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("resourceInfo",e.resourceInfoSchema,n))},this.validateAddUpdateOrDeleteOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.addUpdateOrDeleteOptionSchema,n))},this.validateSelectOrRenderOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.selectOrRenderOptionSchema,n))},this.validateShowResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("showResourceParams",e.showResourceParamsSchema,n))},this.validateOfferResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("offerResourceParams",e.offerResourceParamsSchema,n))},this.validateSearchResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("searchResourceParams",e.searchResourceParamsSchema,n))},this.validateFundStoredValueParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("fundStoredValueParams",e.fundStoredValueParamsSchema,n))},this.validateResourceOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.resourceOptionsSchema,n))},this.validateResourceActionParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("resourceActionParams",e.resourceActionParamsSchema,n))},this.validatePaymentSessionData=function(t,n){return e.resultHandler(t,e.visitInputSchema("paymentSessionData",e.paymentSessionDataSchema,n))},this.shouldValidateAuthorizationGroups=function(e,t){return"be4de87d-7e38-4b2d-8836-9237eb32848e"===t&&e.length>1},this.validatePaymentSessionOrData=function(t,n){if(e.isPaymentSession(n))o=e.paymentSessionSchema;else{if(o=e.paymentSessionDataSchema,null==(r=null==n?void 0:n.recurringPaymentDetails)?void 0:r.frequencyUnit){var r,o,a=n.recurringPaymentDetails.frequencyUnit;n.recurringPaymentDetails.frequencyUnit=a.toLowerCase()}if((null==n?void 0:n.authorizationGroups)&&e.shouldValidateAuthorizationGroups(n.authorizationGroups,null==n?void 0:n.piid)){for(var s=0,l=0,c=n.authorizationGroups;l<c.length;l++)s+=100*c[l].totalAmount;if(s!==(null==n?void 0:n.amount)*100){var u=new t4.unmatchedAmountError(t3.unmatchedAmount,JSON.stringify(n));t.error(u)}}}return e.resultHandler(t,e.visitInputSchema("paymentSessionOrData",o,n))},this.validatePurchaseRiskChallengeParams=function(t,n){var r="purchaseRiskChallengeSchema",o=e.purchaseRiskChallengeSchema;return n&&n.riskChallengeData&&n.riskChallengeData.length>0&&"threeds"===n.riskChallengeData[0].toLowerCase()&&(r="purchaseRiskChallengeSchemaForThreeDS",o=e.purchaseRiskChallengeSchemaForThreeDS),e.resultHandler(t,e.visitInputSchema(r,o,n))},this.validateHandlePurchasePendingStateParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("purchasePendingStateSchema",e.purchasePendingStateSchema,n))},this.validateSelectedResourceInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("selectedResourceInfo",e.selectedResourceInfoSchema,n))},this.validateHandle=function(t,n){return e.resultHandler(t,e.visitInputSchema("handle",e.handleSchema,n))}}return e.prototype.isObjectSchema=function(e){return e&&"object"===e.type},e.prototype.isArraySchema=function(e){return e&&"array"===e.type},e.prototype.isSchemaSchema=function(e){return e&&"schema"===e.type},e.prototype.isPaymentSession=function(e){return e&&ri.isString(e.id)&&e.id.length},e}()),rE=function(){return function(e){this.constants={},this.errors={};var t=e&&e.getResolvedOrFirstPidlDoc();if(t&&t.strings){var n=t.strings,r=n.constants,o=n.errorCodes;r&&(this.constants=tr({},r)),o&&(this.errors=tr({},o))}}}(),rP=function(){function e(e){var t=this;this.cache=null,this.keyComparer=null,this.put=function(e,n){var r=t.getCacheEntryIndex(e);-1===r?t.cache.push({key:e,value:n}):t.cache[r].value=n},this.get=function(e){var n=t.getCacheEntryIndex(e);return -1!==n&&t.cache[n].value},this.remove=function(e){var n=t.getCacheEntryIndex(e),r=null;return -1!==n&&(r=t.cache[n],t.cache.splice(n,1)),r&&r.value},this.clear=function(){t.cache=[]},this.removeIf=function(e){e&&ri.filter(t.cache,function(t){return!t||!t.value||!e(t.value)})},this.cache=[],this.keyComparer=ri.isFunction(e)?e:function(e,t){return e===t}}return e.prototype.getCacheEntryIndex=function(e){for(var t=0;t<this.cache.length;t++)if(this.keyComparer(this.cache[t].key,e))return t;return -1},e}(),rI=function(){function e(){var e=this;this.modelDataCache=null,this.dataSourceCache=null,this.partnerData=null,this.saveModelData=function(t,n){e.modelDataCache.put(t,e.getModelData(n))},this.readModelData=function(t){return e.modelDataCache.get(t)},this.saveDataSource=function(t,n){e.dataSourceCache[t]=n},this.readDataSource=function(t){return e.dataSourceCache[t]},this.readAllDataSources=function(){return e.dataSourceCache},this.savePartnerData=function(t){e.partnerData=t},this.readPartnerData=function(){return e.partnerData},this.clear=function(){e.modelDataCache.clear(),e.partnerData=null,e.clearDataSourceCache()},this.clearDataSourceCache=function(){e.dataSourceCache={}},this.modelDataCache=new rP,this.dataSourceCache={}}return e.prototype.getModelData=function(e){var t={};if(e)for(var n in e){var r=e[n];r&&(t[n]=r.getValue())}return t},e}(),rT=function(){return function(e,t){this.value=e,this.objectId=t}}(),rD=function(){return function(e,t,n,r,o){var a=this;if(this.possibleValues=[],this.index=-1,this.associatedModelDataProperties=null,this.pidlIdentity=null,this.getPossibleOptions=function(){for(var e={},t=0;t<a.possibleValues.length;t++)e[t]={displayText:a.possibleValues[t].value};return e},this.getIndex=function(){return a.index},this.setIndex=function(e){a.index=e;var t=a.possibleValues[a.index];if(t)for(var n=t.objectId,r=0;r<a.associatedModelDataProperties.length;r++)a.associatedModelDataProperties[r].setCurrentObjectId(n)},this.pidlIdentity=e,this.associatedModelDataProperties=r,this.possibleValues=[],o)for(var s=0;s<o.length;s++){var l=o[s];this.possibleValues.push(new rT(l,t))}for(var c=0;c<n.objectIds.length;c++){var u=n.objectIds[c];if(u!==t){for(var d=[],p=0;p<this.associatedModelDataProperties.length;p++){var f=this.associatedModelDataProperties[p];f.setCurrentObjectId(u);var h=f.getValue();h&&d.push(h),f.setCurrentObjectId(t)}this.possibleValues.push(new rT(ro.getStringValue(d),u))}}}}(),rA=function(){return function(e){this.modelDataProperties=[],this.pageIndex=e,this.allPropertyOnSamePage=!0,this.modelDataProperties=[]}}(),rR=function(){return function(){this.currentObjectId=null,this.objectIds=[],this.currentObjectId=null,this.objectIds=[]}}(),rN="pidlddc_object_id",rB=function(){return function(e){var t=this;this.prefillData=null,this.defaultInstanceId=null,this.multiPropertySelectors={},this.modelDataProperties={},this.pidlIdentityPrefillObjectMapping={},this.pidlDocInfos={},this.addId=function(e){if(ri.isArray(e))for(var n=0;n<e.length;n++)t.addId(e[n]);else if(ri.isObject(e))for(var r in e[rN]||(e[rN]=ro.guid()),e)r!==rN&&t.addId(e[r])},this.getPropertyInstancesInternal=function(e,n,r){if(ri.isArray(n))for(var o=0;o<n.length;o++)t.getPropertyInstancesInternal(e,n[o],r);else if(ri.isObject(n)){var a=e.getPropertyName();for(var s in n){if(s===a){var l=n[rN];l||(l=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]&&t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId?t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId:t.defaultInstanceId);var c=n[a];nV(e)&&(c=nt.normalizeValueToPossibleValues(e,n[a])),r[l]=c}t.getPropertyInstancesInternal(e,n[s],r)}}},this.getPropertyInstances=function(e,n){var r={};return n&&t.getPropertyInstancesInternal(e,n,r),r},this.parsePrefillData=function(e){var n=t.getPropertyInstances(e,t.prefillData);if(t.modelDataProperties[e.getPropertyName()].setInstances(n),ri.keyCount(n)>0){var r=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity];for(var o in r||(r=new rR,t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]=r),n)ri.contains(r.objectIds,o)||r.objectIds.push(o);r.currentObjectId=r.objectIds[0]}},this.createPidlInfos=function(e,n){var r=n.pidlInfos[e.pidlIdentity];r||(r=new rA(n.pageIndex),n.pidlInfos[e.pidlIdentity]=r),r.pageIndex!==n.pageIndex&&(r.allPropertyOnSamePage=!1);var o=t.modelDataProperties[e.getPropertyName()];o&&r.modelDataProperties.push(o)},this.getPidlInfos=function(e){for(var n={},r=0;r<e.length;r++)nt.propertiesVisitorProcessingDataProperty(e[r].children,t.createPidlInfos,{pageIndex:r,pidlInfos:n});t.pidlDocInfos=n},this.getDefaultSelectionStrings=function(e,t,n){if(e&&t){var r=t.getIdentityString(e),o=r+"_"+Y.prefillDropdownDefault,a=r+"_"+Y.prefillDropdownNew,s=(n||{})[o],l=(n||{})[a];if(s&&l){var c=[];return c.push(s),c.push(l),c}}},this.createMultiPropertySelectors=function(e,n,r,o){var a=nt.findPrefillControlElement(e),s=!1;for(var l in t.pidlDocInfos){var c,u=t.pidlDocInfos[l],d=t.pidlIdentityPrefillObjectMapping[l],p=a&&u.allPropertyOnSamePage&&l===a.pidlIdentity;if(d&&d.objectIds&&u.modelDataProperties)if(p&&a.type===g.checkBox)d.objectIds.length>1&&o.error(new t4.unexpectedError(t3.unexpectedPrefillDataCount,[l,"1",d.objectIds.length.toString()])),c=new rD(l,t.defaultInstanceId,d,u.modelDataProperties),t.multiPropertySelectors[l]=c,s=!0;else if(p&&a.type===g.dropdown&&d.objectIds.length>1){var f=t.getDefaultSelectionStrings(l,r,n);c=new rD(l,t.defaultInstanceId,d,u.modelDataProperties,f),t.multiPropertySelectors[l]=c}else for(var h=0;h<u.modelDataProperties.length;h++)u.modelDataProperties[h].setDefaultObjectAsCurrent()}return s},this.getPidlInfoMatch=function(e){for(var n in t.pidlDocInfos)for(var r=t.pidlDocInfos[n].modelDataProperties,o=0;o<r.length;o++)if(e[r[o].propertyName])return t.pidlDocInfos[n]},this.fillPrefillData=function(){for(var e=0;e<t.prefillData.length;e++){var n=t.prefillData[e],r=t.getPidlInfoMatch(n);if(r)for(var o=0;o<r.modelDataProperties.length;o++){var a=r.modelDataProperties[o].propertyName;n[a]=n[a]?n[a]:""}}},this.getPropertyValueInternal=function(e,n,r){if(n){if(void 0===r){if(ri.isArray(n))for(var o=0;o<n.length;o++)r=r||t.getPropertyValueInternal(e,n[o],r);else if(ri.isObject(n)||n.hasOwnProperty(e))for(var a in n)e===a?r=n[a]:void 0===r&&(r=t.getPropertyValueInternal(e,n[a],r))}return r}},this.reset=function(){t.prefillData=null,t.multiPropertySelectors={},t.modelDataProperties={},t.pidlIdentityPrefillObjectMapping={},t.pidlDocInfos={}},this.parse=function(e,n,r,o,a,s){var l=!1;return t.prefillData=e,t.addId(t.prefillData),t.multiPropertySelectors={},t.modelDataProperties=r,t.getPidlInfos(n),t.prefillData&&(t.fillPrefillData(),nt.propertiesVisitorProcessingDataProperty(n,t.parsePrefillData),l=t.createMultiPropertySelectors(n,o,a,s)),{multiPropertySelectors:t.multiPropertySelectors,editable:l}},this.getPropertyValue=function(e){if(t.prefillData)return t.getPropertyValueInternal(e,t.prefillData)},this.getPrefillData=function(){return t.prefillData||{}},this.testHookGetParsePrefillDataFunc=function(){return t.parsePrefillData},this.defaultInstanceId=e}}(),rM=function(){return function(e,t,n,r){var o=this;this.objectId=null,this.defaultObjectId=null,this.objectIdValuesMapping={},this.propertyName=null,this.modelElement=null,this.editState=null,this.setCurrentObjectId=function(e){o.objectId=e},this.setDefaultObjectAsCurrent=function(){var e=null;for(e in o.objectIdValuesMapping)if(e!==o.defaultObjectId)break;var t=null;e&&(t=o.objectIdValuesMapping[e]),o.objectIdValuesMapping[o.defaultObjectId]=t,o.objectId=o.defaultObjectId},this.setValue=function(e){var t=!1;return!e&&o.modelElement&&o.modelElement.hidden()&&o.modelElement.defaultValue&&(e=o.modelElement.defaultValue),o.objectId!==o.defaultObjectId&&e!==o.objectIdValuesMapping[o.objectId]&&(o.objectId=o.defaultObjectId,t=!0),o.objectIdValuesMapping[o.objectId]=e,t},this.getValue=function(e,t){var n=o.objectIdValuesMapping[o.objectId];if(nz(o.modelElement)&&ri.isObject(o.modelElement.possibleOptions)){if(!o.modelElement.possibleOptions[n])return nt.normalizeValueToPossibleValues(o.modelElement,n);else if(e&&t&&n&&o.modelElement.possibleOptions[n].pidlAction)return o.modelElement.possibleOptions[n].pidlAction.context}return n},this.isEditable=function(e){return(o.objectId===o.defaultObjectId||e)&&(!o.modelElement||!o.modelElement.disabled())},this.setInstances=function(e){o.objectIdValuesMapping=ro.extend(o.objectIdValuesMapping,e)},this.propertyName=e,this.modelElement=r,this.editState=J.clean,this.objectId=t,this.defaultObjectId=t,this.objectIdValuesMapping=n}}(),rF=function(){return function(e){var t=this;this.inputPrefillDataManager=null,this.multiPropertySelectors={},this.modelDataProperties={},this.inputInstance=null,this.pidlDocManager=null,this.dataStore=null,this.resourceResponse=null,this.getInstancePropertyValue=function(e,n,r){if(ri.isArray(n)){for(var o=0;o<n.length;o++)if(t.getInstancePropertyValue(e,n[o],r))return!0}else if(ri.isObject(n))for(var a in n){if(a===e)return r[e]=n[e],!0;if(t.getInstancePropertyValue(e,n[a],r))return!0}},this.getDisplayPropertyValueInternal=function(e){var n=t.displayData&&t.displayData.details&&t.displayData.details[e];if(n)return n;var r=t.modelDataProperties[e];if(r){var o=r.modelElement;if(o&&o.possibleOptions){var a=r.getValue(),s=o.possibleOptions[a];if(s)return s.displayText}}},this.maskPropertyValueFlagExists=function(e){var n=t.modelDataProperties[e];return n&&n.modelElement&&n.modelElement.maskDisplay},this.mergeUserDataInternal=function(e,n){var r=e.getPropertyName();if(n.userData.hasOwnProperty(r)){var o=n.userData[r],a=t.getMaskedPropertyValue(r);if(!a||o!==a){var s=t.modelDataProperties[r],l=s.getValue(!1);o!==l&&n.conflictingInputValueReporter&&n.conflictingInputValueReporter(r),s.setValue(o)}}},this.updateModelElement=function(e){var n=e.getPropertyName(),r=t.modelDataProperties[n];r||(t.populateInternal(e),r=t.modelDataProperties[n]);var o=r.modelElement;if(o&&e.pidlIdentity!==o.pidlIdentity){r.modelElement=e;var a=t.multiPropertySelectors[o.pidlIdentity];a&&(t.multiPropertySelectors[e.pidlIdentity]=a,a.pidlIdentity=e.pidlIdentity,delete t.multiPropertySelectors[o.pidlIdentity])}},this.populateInternal=function(e){var n={},r=e.getPropertyName();t.modelDataProperties[r]||(n[t.defaultInstanceId]=e.defaultValue,t.modelDataProperties[r]=new rM(r,t.defaultInstanceId,n,e))},this.getPropertyInternal=function(e,n,r){var o=!0,a=null,s=t.modelDataProperties[e];return s?(a=s.getValue(n,r),o=s.isEditable(t.editablePrefillData)):a=t.inputInstance&&t.inputInstance.hasOwnProperty(e)?t.inputInstance[e]:t.inputPrefillDataManager.getPropertyValue(e),{value:a,editable:o,propertyName:e}},this.setJumpbackData=function(e){if(e)for(var n in t.modelDataProperties)e.hasOwnProperty(n)&&t.modelDataProperties[n].setValue(e[n])},this.removeClientAction=function(e){if(!e)return e;var t=ri.deepCopy(e);return delete t.clientAction,t},this.setPrefillData=function(e,n,r,o){if(e.elements&&n){var a=t.inputPrefillDataManager.parse(n,e.elements,t.modelDataProperties,r,e.pidlDocManager,o);t.multiPropertySelectors=a.multiPropertySelectors,t.editablePrefillData=a.editable,t.setPrefillDataInPartnerDataSource(n)}},this.getPrefillData=function(){return t.inputPrefillDataManager.getPrefillData()},this.setPrefillDataInPartnerDataSource=function(e){var n=t.getPartnerData()||{};n.prefillData=e,t.setPartnerData(n)},this.setInputParametersInPartnerDataSource=function(e){var n=t.getPartnerData()||{};n.inputParameters=e,t.setPartnerData(n)},this.setDisplayData=function(e){t.displayData=e},this.updateUserData=function(e){t.setJumpbackData(e)},this.mergeUserData=function(e,n,r){n&&e&&e.elements&&nt.propertiesVisitorProcessingDataProperty(e.elements,t.mergeUserDataInternal,{userData:n,conflictingInputValueReporter:r})},this.updateModelElements=function(e){e&&nt.propertiesVisitorProcessingDataProperty(e,t.updateModelElement)},this.getPropertyValue=function(e,n,r){var o=t.getPropertyInternal(e,n,r);if(o)return o.value},this.getProperty=function(e){return t.getPropertyInternal(e)},this.getPropertyModelElement=function(e){return t.modelDataProperties[e]?t.modelDataProperties[e].modelElement:null},this.getDisplayPropertyValue=function(e){return t.getDisplayPropertyValueInternal(e)},this.getMaskedPropertyValue=function(e){return t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]},this.clearMaskedPropertyValue=function(e){t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]&&(t.displayData.details[e]=null)},this.getModelDataProperty=function(e){return t.modelDataProperties[e]},this.setMultiPropertySelectorIndex=function(e,n){var r=t.multiPropertySelectors[e];r&&r.setIndex(n)},this.getMultiPropertySelectorIndex=function(e){var n=t.multiPropertySelectors[e];if(n)return n.getIndex()},this.getMultiPropertySelectorPossibleOptions=function(e){var n=t.multiPropertySelectors[e];if(n)return n.getPossibleOptions()},this.getId=function(){return t.inputInstance?t.inputInstance.hasOwnProperty("id")?t.inputInstance.id:void 0:t.inputPrefillDataManager.getPropertyValue("id")},this.setDataSource=function(e,n){t.dataStore.saveDataSource(e,n)},this.getDataSource=function(e){return t.dataStore.readDataSource(e)},this.getAllDataSources=function(){return t.dataStore.readAllDataSources()},this.setPartnerData=function(e){t.dataStore.savePartnerData(e)},this.getPartnerData=function(){return t.dataStore.readPartnerData()},this.cacheFlow=function(){var e=t.pidlDocManager.getPidlIdentity();return e&&t.dataStore.saveModelData(t7.createIdentityHash(e),t.modelDataProperties),e},this.clearFlow=function(){t.displayData=null,t.modelDataProperties={},t.multiPropertySelectors={},t.inputInstance=null,t.inputPrefillDataManager.reset()},this.clearAll=function(){t.dataStore.clear(),t.resourceResponse=null,t.clearFlow()},this.clearDataSourceCache=function(){t.dataStore.clearDataSourceCache()},this.populate=function(e){nt.propertiesVisitorProcessingDataProperty(e,t.populateInternal)},this.getModelDataProperties=function(e){var n={properties:{}};return nt.propertiesVisitorProcessingDataProperty(e,function(e,n){var r=e.getPropertyName(),o=t.modelDataProperties[r];o&&(n.properties[r]=o)},n),n.properties},this.setInputInstance=function(e,n){n&&(nt.propertiesVisitorProcessingDataProperty(e,function(e,n){var r={},o=e.getPropertyName();t.getInstancePropertyValue(o,n.inputInstanceDetails,r)&&t.modelDataProperties[o].setValue(r[o])},{inputInstanceDetails:n}),t.inputInstance=n)},this.setPrimaryResourceResponse=function(e,n){var r=[];n&&n.length&&n.forEach(function(e){return r.push(t.removeClientAction(e))}),t.resourceResponse={primary:t.removeClientAction(e),secondary:r}},this.retrieveFromCache=function(e,n){if(e=e||t.pidlDocManager.getPidlIdentity()){var r=t.dataStore.readModelData(t7.createIdentityHash(e));if(n)for(var o=0;o<n.length;o++)r.hasOwnProperty(n[o])&&delete r[n[o]];if(r)return t.setJumpbackData(r),!0}},this.getPrimaryResourceResponseId=function(){return t.resourceResponse&&t.resourceResponse.primary&&t.resourceResponse.primary.id},this.getResourceResponse=function(){return t.resourceResponse},this.testHookSetMultiPropertySelectors=function(e){t.multiPropertySelectors=e},this.testHookGetMultiPropertySelectors=function(){return t.multiPropertySelectors},this.testHookSetModelDataProperties=function(e){t.modelDataProperties=e},this.testHookGetModelDataProperties=function(){return t.modelDataProperties},this.testHookGetDefaultInstanceId=function(){return t.defaultInstanceId},this.testHookGetDisplayData=function(){return t.displayData},this.testHookSetInputPrefillDataManager=function(e){t.inputPrefillDataManager=e},this.testHookSetEditablePrefillData=function(e){t.editablePrefillData=e},this.displayData=null,this.defaultInstanceId=ro.guid(),this.inputPrefillDataManager=new rB(this.defaultInstanceId),this.multiPropertySelectors={},this.pidlDocManager=e,this.dataStore=new rI}}(),rO=new(function(){return function(){this.luhn=function(e){for(var t=0,n=!1,r=e.length-1;r>=0;r--){var o=parseInt(e.charAt(r));n&&(o*=2)>9&&(o-=9),t+=o,n=!n}return t%10==0}}}()),rL=new(function(){return function(){this.aggregateCommerceResults=function(e,t){return e.length?new Promise(function(n,r){var o=[],a=0,s=function(){if(++a===e.length){var r=o.length?o[0].error:null;r=o.length&&t?t(r):r,n({innerErrors:o,error:r})}};e.forEach(function(e){e.then(function(e){e.error&&o.push(e),s()}).catch(function(e){o.push({error:new t4.unexpectedError(e)}),s()})})}):ru({innerErrors:[]})}}}()),rH=new(function(){return function(){var e=this;this.validateUserInputDataFromService=function(e,t,n,r,o,a,s){var c=ty.buildUrl(ra.getServiceEndpoint(ra.virtualEndpoints.validation.endpoint),[a]),u={value:r,propertyName:n};t&&(u.urlValidationType=t);var d=JSON.stringify(u),p=rS.getDefaultHttpHeaders(e);return p[M.msFlight]="pxpidl",new Promise(function(t,r){rS.post(e,!0,c,p,d,function(e){t({error:ri.equalsIgnoreCase(e.status,l.Passed)?null:new t4.propertyValidationFailedError(t3.propertyValidationFailed,e.errorCode,n,[n,e.errorCode])})},function(e){t({error:new t4.propertyValidationFailedError(t3.propertyValidationFailed,R.empty,n,[n,R.empty])})},o,ra.virtualEndpoints.validation.operation,ra.virtualEndpoints.validation.description,!0,s).catch(rl)})},this.validateUserInputDataInternal=function(t,n,r,o,a){var s=n.data_description,l=[];for(var c in s){var u=s[c];if(tN(u)){var d=u&&u.length&&u[0];d&&(l=l.concat(e.validateUserInputDataInternal(t,d,r[c],o,a)))}else{if(u.displayOnly||o===eL.update&&!u.is_updatable)continue;var p=null;if(a){var f=a.getModelDataProperty(c);f&&(p=f.modelElement)}l.push(e.validatePropertyFromPropertyDescription(t,p,t8.getPropertyValueFromInputData(r,c),o,c,u))}}return l},this.validatePropertyFromPropertyDescription=function(t,n,r,o,a,s){var c,u=l.Passed,d=null,p=null;if((null==n?void 0:n.type)===g.secureProperty)p=n.validate().then(function(e){return e?{error:new t4.propertyValidationFailedError(t3.propertyValidationFailed,e,s.display_property||a,[s.display_property||a,e])}:{error:null}});else if(r){if(s.validation||s.validations)for(var f=null==s.validations?[s.validation]:s.validations,h=0;h<f.length&&u===l.Passed;h++)switch(f[h].validationType){case eH.regex:var m=new RegExp(f[h].regex);n&&n.type&&n.type===g.filePicker?r&&r.name&&!1===m.test(r.name)&&(u=l.Fail,d=f[h].error_code):!1===m.test(r)&&(u=l.Fail);break;case eH.function:rO[f[h].function]&&rO[f[h].function](r)||(u=l.Fail,d=f[h].error_code);break;case eH.service:p=e.validateUserInputDataFromService(t,f[h].urlValidationType,a,r,o,f[h].url,null==(c=null==s?void 0:s.dataProtection)?void 0:c.fetchConfig);break;case eH.size:var v=f[h].maxFileSize;n&&n.type&&n.type===g.filePicker&&r&&r.size&&r.size>v&&(u=l.Fail,d=f[h].error_code)}}else s.is_optional||(u=l.Fail,d=R.empty);return p||(p=ru({error:u===l.Passed?null:new t4.propertyValidationFailedError(t3.propertyValidationFailed,d,s.display_property||a,[s.display_property||a,d])})),p},this.validateUserInputData=function(t,n,r,o,a){var s=e.validateUserInputDataInternal(t,n,r,o,a);return rL.aggregateCommerceResults(s)},this.validateUserInputProperty=function(t,n,r,o){var a=e.validatePropertyFromPropertyDescription(t,n,r,o,n.getPropertyName(),n.dataDescription);return rL.aggregateCommerceResults([a])}}}()),rz=function(){return function(e,t){var n=this;this.shouldValidateProperty=function(e,t){if(n.alwaysValidateOnChange)return!0;var r=e.editState,o=e.modelElement;if(!o||o.type!==g.textBox&&o.type!==g.dropdown&&o.type!==g.checkBox&&o.type!==g.secureProperty)return r===J.clean?""!==e.getValue():t===Z.editing||t===Z.finished;switch(r){case J.clean:return!1;case J.editing:return t===Z.finished;case J.dirty:return!0}},this.shouldValidatePropertyInPageValidation=function(e,t){return t!==A.dirtyOnly||e===J.dirty},this.getUpdatedPropertyState=function(e,t){var n=e.editState,r=e.modelElement;if(r&&(r.type===g.textBox||r.type===g.dropdown||r.type===g.checkBox||r.type===g.secureProperty))switch(n){case J.clean:return t===Z.editing?J.editing:null;case J.editing:return t===Z.finished?J.dirty:null;case J.dirty:return null}else if(n===J.clean&&""!==e.getValue())return J.dirty;else return null},this.validatePropertyValue=function(e,t){return rH.validateUserInputProperty(n.eventHub,e.modelElement,e.getValue(),t)},this.validatePageElements=function(e,t,r,o){var a=[],s=function(s){var l=e[s];n.shouldValidatePropertyInPageValidation(l.editState,t)&&a.push(n.validatePropertyValue(l,r).then(function(t){var r=t.error;if(!r){l&&n.eventHub.propertyValidated(s,Z.finished);return}var a=e[r.propertyName];if(a){var c=a.modelElement;(rn(c)||n9(c))&&(r.message=c.getErrorMessage(a.getValue(),r.errorCode)),a.editState=J.dirty,o.push(r)}}).catch(function(){return rl}))};for(var l in e)s(l);return a},this.validateProperty=function(e,t,r){var o=n.shouldValidateProperty(e,t),a=n.getUpdatedPropertyState(e,t);return a&&(e.editState=a),new Promise(function(a,s){o?n.validatePropertyValue(e,r).then(function(r){var o=r.error;if(o){var s=e.modelElement;(rn(s)||n9(s))&&(o.message=s.getErrorMessage(e.getValue(),o.errorCode)),n.eventHub.error(o,t)}else n.eventHub.propertyValidated(e.propertyName,t);a()}).catch(function(){return rl}):a()})},this.clearElementEditState=function(e){e.editState=J.clean},this.validatePage=function(e,t,r){return(t===A.all&&n.eventHub.inputValidating(),e)?new Promise(function(o,a){var s=[],l="";Promise.all(n.validatePageElements(e,t,r,s)).then(function(){if(s.length){var e=new t4.formValidationFailedError(t===A.all?t3.formValidationFailed:t3.editedPropertiesValidationFailed,l,s,[l]);n.eventHub.error(e),a(e)}else o(),t===A.all&&n.eventHub.inputValidated()},function(){a()})}):(t===A.all&&n.eventHub.inputValidated(),ru())},this.eventHub=e,this.alwaysValidateOnChange=t}}(),rV=new(function(){return function(){var e=this;this.getCryptoSubtleInstance=function(){return window&&window.crypto&&window.crypto.subtle},this.isSupported=function(){return e.getCryptoSubtleInstance()}}}()),rU={name:"HMAC",hash:{name:"SHA-256"}},rj=function(){return function(){var e=this;this.init=function(){var t=rV.getCryptoSubtleInstance();return t?new Promise(function(n,r){t.generateKey(rU,!0,["sign"]).then(function(r){e.hmacKey=r,t.exportKey("raw",e.hmacKey).then(function(t){var r={};try{e.rawKey=btoa(String.fromCharCode.apply(null,new Uint8Array(t)))}catch(e){r.error=new t4.unexpectedError(t3.hmacError,[e&&e.message])}n(r)},function(e){n({error:new t4.unexpectedError(t3.hmacError,[e&&e.message])})})},function(e){n({error:new t4.unexpectedError(t3.hmacError,[e&&e.message])})})}):ru({error:new t4.unexpectedError(t3.hmacError,["Failed to Init hmac"])})},this.getRawKey=function(){return e.rawKey},this.sign=function(t){var n=rV.getCryptoSubtleInstance();return n&&e.hmacKey?new Promise(function(r,o){for(var a=new Uint8Array(t.length),s=0;s<t.length;s++)a[s]=t.charCodeAt(s);n.sign(rU,e.hmacKey,a).then(function(e){var t=null;try{var n=new Uint8Array(e);t=btoa(String.fromCharCode.apply(null,n))}catch(e){r({error:new t4.unexpectedError(t3.hmacError,[e&&e.message])})}r({data:t})},function(e){r({error:new t4.unexpectedError(t3.hmacError,[e&&e.message])})})}):ru({error:new t4.unexpectedError(t3.hmacError,["hmac not initialized"])})},this.testHookGetHmacAlgo=function(){return rU},this.testHookSetHmacKey=function(t){e.hmacKey=t},this.hmacKey=null,this.rawKey=null}}();function rW(e){var t="1.6.6";return e=e||{},function(){var n,r,o={};o.register=function(e,t,n){o[e]||(o[e]={});var r=o[e];r[t]||(r[t]=n)},o.exists=function(e,t){return!!o[e]&&!!o[e][t]};var a=function(){if("u">typeof document)try{throw Error()}catch(t){if(t.stack){var e=/\w+:\/\/(.+?\/)*.+\.js/.exec(t.stack);return e&&e.length>0?e[0]:null}}else if("u">typeof self&&void 0!==self.location)return self.location.href;return null}(),s=!1,l="u">typeof Worker,c="function"==typeof importScripts&&self instanceof WorkerGlobalScope,u=!1,d="u">typeof ArrayBuffer,p=function(){try{return Object.defineProperty({},"oncomplete",{}),!0}catch(e){return!1}}(),f=!1,h=function(e,t,n,r,o){if(!p){e[t]=n;return}var a={};r&&(a.get=r),o&&(a.set=o),Object.defineProperty(e,t,a)},m={},g=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function t(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4!=0;)t+="=";var n,r,o,a,s,l,c,u,d=[];for(u=0,t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<t.length;u+=4)a=e.indexOf(t.charAt(u)),s=e.indexOf(t.charAt(u+1)),l=e.indexOf(t.charAt(u+2)),c=e.indexOf(t.charAt(u+3)),n=a<<2|s>>4,r=(15&s)<<4|l>>2,o=(3&l)<<6|c,d.push(n),64!==l&&d.push(r),64!==c&&d.push(o);return d}function n(e){return Object.prototype.toString.call(e).slice(8,-1)}function r(e,n,r){var o,a=t(e),s=[];if(isNaN(n))return a;for(o=0;o<a.length;o+=n)s.push(a.slice(o,o+n));if(r)for(o=0;o<s.length;o++)s[o]=(s[o][0]<<24)+(s[o][1]<<16)+(s[o][2]<<8)+s[o][3];return s}function o(e){return[e>>>24&255,e>>>16&255,e>>>8&255,255&e]}function a(e){for(var t=[],n=0;n<e.length;n++)t=t.concat(o(e[n]));return t}function s(e){if(!e)return[];if(e.pop)return e;if("ArrayBuffer"===n(e)?e=new Uint8Array(e):e.BYTES_PER_ELEMENT>1&&(e=new Uint8Array(e.buffer)),1===e.length)return[e[0]];if(e.length<65536)return Array.apply(null,e);for(var t=Array(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}function l(e){if("Array"!==n(e))return!1;for(var t,r=0;r<e.length;r++)if(isNaN(t=e[r])||t<0||t>255)return!1;return!0}function c(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}return{consoleLog:function(e){"console"in self&&"log"in console&&console.log(e)},toBase64:function(t,r){var o,a,l,c,u,d,p,f,h=n(t);if("Array"!==h&&"Uint8Array"!==h&&"ArrayBuffer"!==h)throw Error("invalid input");var m="",g=s(t);for(r||(r=!1),f=0;f<g.length;f+=3)o=g[f],a=g[f+1],l=g[f+2],c=o>>2,u=(3&o)<<4|a>>4,d=(15&a)<<2|l>>6,p=63&l,isNaN(a)?d=p=64:isNaN(l)&&(p=64),m=m+e.charAt(c)+e.charAt(u)+e.charAt(d)+e.charAt(p);return r?m.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,""):m},fromBase64:t,checkParam:function(e,t,r){if(!e||t&&n(e)!==t)throw Error(r);return!0},getObjectType:n,bytesToHexString:function(e,t){var n="";void 0===t&&(t=!1);for(var r=0;r<e.length;r++){t&&r%4==0&&0!==r&&(n+="-");var o=e[r].toString(16).toUpperCase();1===o.length&&(n+="0"),n+=o}return n},bytesToInt32:function(e,t){return e[t=t||0]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},stringToBytes:function(e){for(var t=[],n=0,r=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?t[r++]=o:(o<2048?t[r++]=o>>>6|192:(o<55296||o>57343?t[r++]=o>>>12|224:(o=(o-55296)*1024+(e.charCodeAt(++n)-56320)+65536,t[r++]=o>>>18|240,t[r++]=o>>>12&63|128),t[r++]=o>>>6&63|128),t[r++]=63&o|128)}return t},bytesToString:function(e){var t,n="";e=s(e);for(var r=0;r<e.length;){var o=e[r++];if((t=o<128?o:o<224?(o<<6)+e[r++]-12416:o<240?(o<<12)+(e[r++]<<6)+e[r++]-925824:(o<<18)+(e[r++]<<12)+(e[r++]<<6)+e[r++]-0x3c82080)>65535){n+=String.fromCharCode(Math.floor((t-65536)/1024)+55296,(t-65536)%1024+56320);continue}n+=String.fromCharCode(t)}return n},unpackData:r,hexToBytesArray:function(e){e=e.replace(/\-/g,"");for(var t=[];e.length>=2;)t.push(parseInt(e.substring(0,2),16)),e=e.substring(2,e.length);return t},int32ToBytes:o,int32ArrayToBytes:a,toArray:s,arraysEqual:function(e,t){var n=!0;e.length!==t.length&&(n=!1);for(var r=0;r<e.length;r++)e[r]!==t[r]&&(n=!1);return n},clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},xorVectors:function(e,t,n){for(var r=Math.min(e.length,t.length),n=n||Array(r),o=0;o<r;o+=1)n[o]=e[o]^t[o];return n},padEnd:function(e,t,n){for(;e.length<n;)e.push(t);return e},padFront:function(e,t,n){for(;e.length<n;)e.unshift(t);return e},getVector:function(e,t){isNaN(t)&&(t=0);for(var n=Array(e),r=0;r<e;r+=1)n[r]=t;return n},verifyByteArray:l,error:function(e,t){var n=Error(t);throw n.name=e,n},isBytes:function(e){if(!(e instanceof Array))return!1;for(var t=0;t<e.length;t++){var n=e[t];if(!c(n)||n>255||n<0)return!1}return!0},isInteger:c}}(),v=function(){var e={0:"CUSTOM",1:"BOOLEAN",2:"INTEGER",3:"BIT STRING",4:"OCTET STRING",5:"NULL",6:"OBJECT IDENTIFIER",16:"SEQUENCE",17:"SET",19:"PRINTABLE STRING",23:"UTCTime"};function t(n,r){r=!!r;var o,a,s,l=e[31&n[0]],c=n[1],u=0,d=!!(32&n[0]);if(128&c)for(u=0,c=0;u<(127&n[1]);u++)c=(c<<8)+n[2+u];if(s=2+u,void 0===l||c>n.length)return null;var p=d?[]:{};if(p.type=l,p.header=s,p.data=n.slice(0,c+s),d||r)for("BIT STRING"===p.type&&0===n[s]&&u++,o=n.slice(s,p.data.length);o.length>0&&null!==(a=t(o));)p.push(a),o=o.slice(a.data.length);return p}function n(e){var t=2,s=3,l=4,c=5,u=6,d=16,p=160,f=32;if(e.hasOwnProperty("INTEGER")){var h=e.INTEGER;g.isInteger(h)&&(h=o(h)),128&h[0]&&h.unshift(0);var m=[t].concat(r(h),h);return m}if(e.hasOwnProperty("OCTET STRING")){var h=e["OCTET STRING"];h instanceof Array||(h=n(h));var m=[l].concat(r(h),h);return m}if(e.hasOwnProperty("BIT STRING")){var h=e["BIT STRING"];h instanceof Array||(h=n(h)),h.unshift(0);var m=[s].concat(r(h),h);return m}if(e.hasOwnProperty("NULL"))return[c,0];if(e.hasOwnProperty("OBJECT IDENTIFIER")){var h=a(e["OBJECT IDENTIFIER"]),m=[u].concat(r(h),h);return m}if(e.hasOwnProperty("SEQUENCE")){for(var v=e.SEQUENCE,h=[],y=0;y<v.length;y++)h=h.concat(n(v[y]));var m=[d|f].concat(r(h),h);return m}if(e.hasOwnProperty("APPLICATION")){var v=e.APPLICATION,b=isNaN(parseInt(v[0]))?f:0,x=e.tag,h=b?[]:e.APPLICATION;if(b)for(var y=0;y<v.length;y++)h=h.concat(n(v[y]));var m=[p|b|x].concat(r(h),h);return m}throw Error("unsupported asn.1 type")}function r(e){var t=e.length;if(t<=127)return[t];var n=o(t);return n.unshift(128|n.length),n}function o(e){var t=[];if(0===e)return[0];for(;e>0;)t.unshift(255&e),e>>>=8;return t}function a(e){for(var t=e.split("."),n=[parseInt(40*t[0]+parseInt(t[1]))],r=2;r<t.length;r++){for(var o=parseInt(t[r]),a=[];o>0;)a.push(127&o|128),o>>>=7;a[0]=127&a[0],n=n.concat(a.reverse())}return n}function s(e,t){var n=Array(t+1).join(" ")+e.type+" ("+e.length+") "+bytesToHexString(e.data).substring(0,16)+"\n";if(!e.children)return n;for(var r=0;r<e.children.length;r++)n+=s(e.children[r],t+4)+"";return n}return{parse:t,encode:n,toString:function(e){return s(e,0)}}}(),y=function(){var e,t,n;function r(e){return u&&c&&self.postMessage(e),e}return{jsCryptoRunner:function(a){e=a.data.workerid,t=a.data.operationType,n=a.data.operationSubType;var s,l=a.data.operationType,c=o[l][a.data.algorithm.name],u=a.data;if(!o.exists(l,a.data.algorithm.name))throw Error("unregistered algorithm.");return u.operationSubType?r({type:u.operationSubType,result:c(u)}):r(c(u))},returnResult:r}}();c&&(self.onmessage=function(e){if(!u&&e.data.prngSeed){var t=e.data.prngSeed;return Y.init(t),u=!0,y.returnResult({initialized:!0})}!0===u&&y.jsCryptoRunner(e)});var b=function(){var e=g;function t(e){for(var t=[],n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return 0===t[t.length-1]&&t.pop(),t}function n(e){var t=e.algorithm.name.slice(0,3).toUpperCase();return"RSA"===t?"RSA":"ECD"===t?"EC":"oct"}function r(e){return e.hash.name.substring(e.hash.name.indexOf("-")+1)}var o={HMAC:function(e){return"HS"+r(e)},"AES-CBC":function(e){return"A"+e.length.toString()+"CBC"},"AES-GCM":function(e){return"A"+e.length.toString()+"GCM"},"AES-KW":function(e){return"A"+e.length.toString()+"KW"},"RSAES-PKCS1-V1_5":function(e){return"RSA1_5"},"RSASSA-PKCS1-V1_5":function(e){return"RS"+r(e)},"RSA-OAEP":function(e){return"SHA-1"===e.hash.name.toUpperCase()?"RSA-OAEP":"RSA-OAEP-"+r(e)},"RSA-PSS":function(e){return"PS"+r(e)},ECDSA:function(e){return"EC-"+e.namedCurve.substring(e.namedCurve.indexOf("-")+1)}};return{keyToJwkOld:function(r,o){var a={};if(a.kty=n(r),a.extractable=r.extractable,o.pop)a.k=e.toBase64(o,!0);else for(var s in o)o[s].pop&&(a[s]=e.toBase64(o[s],!0));return r.algorithm.namedCurve&&(a.crv=r.algorithm.namedCurve),t(JSON.stringify(a,null,"	"))},keyToJwk:function t(t,r){var a={};if(a.kty=n(t),a.ext=t.extractable,o[t.algorithm.name.toUpperCase()]&&(a.alg=o[t.algorithm.name.toUpperCase()](t.algorithm)),a.key_ops=t.usages,r.pop)a.k=e.toBase64(r,!0);else for(var s in r)r[s].pop&&"key_ops"!==s&&(a[s]=e.toBase64(r[s],!0));return t.algorithm.namedCurve&&(a.crv=t.algorithm.namedCurve),a},jwkToKey:function(t,n,r){for(var o=JSON.parse(JSON.stringify(t)),a=0;a<r.length;a+=1){var s=o[r[a]];s&&(o[r[a]]=e.fromBase64(s))}return o}}}();function x(){for(var e=24,t=Math.floor(3),n=0xffffff,r=0x1000000,o=0xffffff,a=5960464477539063e-23,s=[1,256],l=2;l<=t;l++)s[l]=256*s[l-1];var c=[0],u=[1];function d(e){var t,n=null;if(arguments.length&&"number"!=typeof arguments[0]){if("object"==typeof arguments[0])for(t=0,n=Array(e.length);t<e.length;t+=1)n[t]=e[t]}else for(t=0,n=Array(e);t<e;t+=1)n[t]=0;return n}function p(e,t){e=e.replace(/^\s+|\s+$/g,"");var n=[0],r=[0];t=t||10;for(var o=0;o<e.length;o+=1){var a=parseInt(e[o],t);if(isNaN(a))throw Error("Failed to convert string to integer in radix "+t.toString());T(n,t,r),P(r,[a],n),S(n)}return n}function f(e,t){if(r<=(t=t||10))throw Error("DIGIT_BASE is smaller than RADIX; cannot convert.");var n,o=e.length,a=[],s=[],l=[],c=[],u=[],d=[],p="",f="0";for(u[0]=t;Math.floor(r/u[0])>=t;)u[0]=u[0]*t,f=f.concat("0");for(n=0;n<o;n+=1)d[n]=e[n];for(;;){var h=!0;for(n=0;n<d.length;n+=1)if(0!==d[n]){h=!1;break}if(h)break;D(d,u,a,s,l,c),S(a,d.length,!0);var m=s[0].toString(t);p=f.substring(0,f.length-m.length)+m+p;var g=d;d=a,a=g}for(;0!==p.length&&"0"===p[0];)p=p.substring(1,p.length);return 0===p.length&&(p="0"),p}function h(t){for(var n=0,r=0;r<e;r++)n=Math.max(n,-(t>>>r&1)&r);return n}function m(t,n){var r,o=t.length,a=0,s=0,l=0,c=0,u=Array(Math.ceil(o*e/n));for(l=0,u[0]=0;a<o;a++)for(s=0,r=t[a];s<e;s++,r>>>=1)l===n&&(u[++c]=0,l=0),u[c]+=(1&r)<<l++;return u}function g(e,t,n,r,o){for(;o-- >0;)n[r+o]=e[t+o]}function v(e){var t,n=0;for(t=0;t<e.length;t+=1)n|=e[t];return!n}function y(e){var n=Math.floor((e.length+t-1)/t),o=Array(n);o[0]=0;for(var a=0,l=0,c=0,u=e.length-1;u>=0;u--)a+=s[c++]*(255&e[u]),s[c]===r&&(c=0,o[l++]=a,a=0);for(0!==a&&(o[l]=a);null==o[--n];)o[n]=0;return o}function b(e,n,r){var o,a,s,l=[0];for(void 0===n&&(n=!0),o=0;o<e.length;o+=1)for(a=0,s=e[o];a<t;a+=1)l[o*t+a]=255&s,s=Math.floor(s/256);if(l.reverse(),void 0===r&&(r=1),n)for(;l.length>r&&0===l[0];)l.shift();return l}function x(t,n){void 0===n&&(n=t<=1?1:Math.ceil(Math.log(t)/Math.LN2/e));for(var o=[];t>0;)o.push(t%r),t=Math.floor(t/r);for(;o.length<n;)o.push(0);return o}function k(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t]&&0!==e[t])return t;return 0===e[0]?-1:0}function w(e,t){var n,r,o=0;for(r=0;r<Math.max(e.length,t.length);r++)o=(n=~~e[r]-~~t[r])+(o&-!n);return o}function S(e,t,n){var r=k(e);if(e.length=t||r+1,n)for(;++r<e.length;)e[r]=0;return e.length<=0&&(e[0]=0,e.length=1),e}function _(t,r,o,a){if(void 0===o)o=1;else if(o>=e||o<0)throw Error("Invalid bit count for shiftRight");void 0===a&&(a=t.length);for(var s=a-1,l=e-o,c=0;c<s;c++)r[c]=(t[c+1]<<l|t[c]>>>o)&n;r[s]=t[s]>>>o}function E(t,r,o,a){if(void 0===o)o=1;else if(o>=e||o<0)throw Error("bit count must be smaller than DIGIT_BITS and positive in shiftLeft");void 0===a&&(a=t.length);var s=e-o;r[a]=t[a-1]>>>e-o||r[a];for(var l=a-1;l>0;l--)r[l]=(t[l]<<o|t[l-1]>>>s)&n;r[0]=t[0]<<o&n}function P(t,r,o){var a,s=t,l=r;r.length<t.length&&(s=r,l=t);var c=s.length,u=0;for(a=0;a<c;a+=1)u+=s[a]+l[a],o[a]=u&n,u>>=e;for(a=c;a<l.length;a+=1)u+=l[a],o[a]=u&n,u>>=e;return o.length=l.length,0!==u&&(o[a]=u&n),u}function I(t,r,o){var a=r.length;if(t.length<r.length&&(a=k(r)+1,t.length<a))throw Error("Subtrahend is longer than minuend, not supported.");var s,l=0;for(s=0;s<a;s+=1)l+=t[s]-r[s],o[s]=l&n,l>>=e;for(;s<t.length;)l+=t[s],o[s++]=l&n,l>>=e;return l}function T(e,t,r){t="number"==typeof t?[t]:t;var o,s,l,c,u,d,p,f,h=e.length,m=t.length;for(o=0;o<h+m;o+=1)r[o]=0;o=0,c=0;for(var g=31,v=0;o<m;){for(c=Math.min(c+g,m);o<c;o++)for(s=0,f=t[o];s<h;s++)r[o+s]+=e[s]*f;for(u=0,l=v;l<o+h;l++)p=(d=r[l]+u)&n,r[l]=p,u=(d-p)*a;r[l]=u,v+=g}return r.length=h+m,r}function D(t,o,a,s,l,c){var u,d,p,f,m,v,y,b=k(t)+1,x=k(o)+1;if(b<x){g(t,0,s,0,t.length),s.length=t.length,S(s),a[0]=0,a.length=1;return}if(0===x||1===x&&0===o[x-1])throw Error("Division by zero.");if(1===x){for(m=o[0],d=0,y=b-1;y>=0;y--)f=d*r+t[y],a[y]=f/m&n,d=f-a[y]*m&n;a.length=b,S(a),s[0]=d,s.length=1;return}var C=e-1-h(o[x-1]),w=l||[];w.length=x,E(o,w,C,x);var _=c||[];for(_.length=b,E(t,_,C,b),_[b]=_[b]||0,a.length=b-x+1,s.length=x,y=b-x;y>=0;y--){for(u=Math.floor((_[y+x]*r+_[y+x-1])/w[x-1]),d=_[y+x]*r+_[y+x-1]-u*w[x-1];(u>=r||u*w[x-2]>d*r+_[y+x-2])&&(u-=1,(d+=w[x-1])<r););for(v=0,p=0;v<x;v++)f=u*w[v],m=_[v+y]-p-(f&n),_[v+y]=m&n,p=Math.floor(f/r)-Math.floor(m/r);if(m=_[y+x]-p,_[y+x]=m&n,a[y]=u&n,m<0){for(v=0,a[y]=a[y]-1,p=0;v<x;v++)m=_[v+y]+w[v]+p,_[v+y]=m&n,p=m>>e;_[y+x]=_[y+x]+p&n}}for(v=0;v<x;v++)s[v]=(_[v]>>>C|_[v+1]<<e-C)&n;S(a),S(s)}function A(e,t,n,r,o){return D(e,t,[],n,r,o),n}function R(e,t,n,r,o,a){var s=[];return T(e,t,s),D(s,n,s,r,o,a),r}function N(e,t,n,r,o){if(v(e))return g(t,0,o,0,t.length),o.length=t.length,0;if(v(t))return g(e,0,o,0,e.length),o.length=e.length,0;0>w(e,t)?(a=e.slice(0),g(t,0,o,0,t.length),o.length=t.length):(a=t.slice(0),g(e,0,o,0,e.length),o.length=e.length),S(o),S(a);var a,s,l,c,u=Array(o.length),d=Array(o.length),p=Array(o.length),f=void 0!==r;f&&((s=Array(o.length))[0]=1,s.length=1,r[0]=0,r.length=1);var h=Array(o.length),m=void 0!==n;m&&((l=Array(o.length))[0]=0,l.length=1,n[0]=1,n.length=1);for(var y=-1,b=n,x=r,C=o;!v(a);)D(o,a,u,d,h,p),m&&(T(u,l,h),P(h,n,h),S(h),c=n,n=l,l=h,h=c),f&&(T(u,s,p),P(p,r,p),S(p),c=r,r=s,s=p,p=c),c=o,o=a,a=d,d=c,y++;return m&&(g(n,0,b,0,n.length),b.length=n.length),f&&(g(r,0,x,0,r.length),x.length=r.length),g(o,0,C,0,o.length),C.length=o.length,y}function B(e,t,n){var r=e,o=t;return w(e,t)>0&&(r=t,o=e),N(r,o,void 0,void 0,n),S(n)}function M(e,t,n,r){var o=Array(t.length),a=Array(t.length),s=Array(t.length),l=N(e,t,a,o,s);return n=n||[],0!==w(s,u)?(n[0]=NaN,n.length=1):((1&l)==1?I(t,o,n):(g(o,0,n,0,o.length),n.length=o.length),r?S(n,t.length,!0):S(n)),n}function F(e,t,n,r){var o=[];return n=n||[],I(t,[2],o),O(e,o,t,n),S(n),n}function O(e,t,n,r){if(r=r||[],0===w(t,c))r[0]=1;else if(0===w(t,u))g(e,0,r,0,e.length),r.length=e.length;else{var o=new L(n);S(e,o.s,!0),o.modExp(e,t,r),r.length=n.length}return r}function L(t,r){function o(t){for(var r=1,o=2,a=3,s=3&t,l=2;l<=e;l+=1)o<s&&(r+=o),o<<=1,s=t*r&(a=a<<1|1);return(~r&n)+1}function s(e,t,r,o){for(var s,l,c,u,p,f,m,g,v=(o=o||this).m,y=v.length,b=o.mPrime,x=o.m0,k=0,w=0,S=d(y+2);k<y;){for(w=Math.min(y,w+16);k<w;){for(s=~~t[k],c=((l=S[0]+e[0]*s)&n)*b&n,S[1]+=(x*c+l)*a|0,u=1,p=0;u<y;p=u,u+=1)S[p]=S[u]+v[u]*c+e[u]*s;S[p]=S[u],S[u]=0,k++}for(u=0,g=0;u<y;u++)m=(f=S[u]+g)&n,S[u]=m,g=(f-m)*a;S[u]=g}for(k=0;k<y;k+=1)r[k]=S[k];r.length=y;var _=+(C.compareDigits(S,v)>0);C.subtract(r,v,o.temp2),h(_,r,o.temp2)}function l(e){if(e.length<this.s){e.length=this.s;for(var t=0;t<this.s;t++)e[t]=isNaN(e[t])?0:e[t]}var n=d(e.length);for(this.montgomeryMultiply(e,this.rSquaredModm,n),t=0;t<this.s;t+=1)e[t]=n[t]}function c(e){this.montgomeryMultiply(e,this.one,this.temp1);for(var t=0;t<this.s;t+=1)e[t]=this.temp1[t]}function u(t){var n,r,o=2,a=t*e;r=4+3*Math.ceil(a/2)+1;do o++,n=r,r=Math.pow(2,o)+Math.ceil(a/o)*(o+1)+1;while(r<n);return o-1}function p(e,t,n,r){r=!!r;var o,a,s,l=u(t.length),c=m(t,l).reverse(),d=this.rModM.slice(0),p=Math.pow(2,l),h=M;for(a=1,h.length=p,h[0]=this.rModM;a<p;a++)h[a]=[],T(h[a-1],e,h[a]),this.reduce(h[a]);var g=[];for(a=0;a<c.length;a++){for(s=0;s<l;s++)this.montgomeryMultiply(d,d,d);o=c[a],r?g=h[o]:f(h,o,g),this.montgomeryMultiply(d,g,d)}return this.montgomeryMultiply(d,this.one,n),n}function f(e,t,n){var r,o,a,s,l;for(r=0;r<e[0].length;r++)n[r]=0;for(o=0;o<e.length;o++)for(l=0,s=e[o],a=-(t===o);l<s.length;l++)n[l]=n[l]|s[l]&a}function h(e,t,n){for(var r=-e,o=~r,a=0;a<t.length;a++)t[a]=t[a]&o|n[a]&r}function g(e,t){var n,r,o,a,s,l,c,u=this.m.length,d=[];for(t=t||e,n=e.slice(u-1),r=[],T(n,this.mu,r),o=r.slice(u+1),a=e.slice(0,u+1),T(o,y,s=[]),s=s.slice(0,u+1),a[u+1]=w(a,s)>>>31,l=0;l<t.length;l++)t[l]=0;I(a,s,t),c=+(w(t,y)>0),C.subtract(t,y,d),h(c,t,d),S(t)}function v(e){var t=e.length,n=e[0],r={m:e,mPrime:o(n),m0:n,temp1:d(2*t+1),temp2:d(2*t+1)},a=d(2*e.length);a[a.length]=1,r.mu=[],D(a,e,r.mu,[]);var l=d(2*t+1),c=d(t+1),u=d(2*t+1),p=d(2*t+1),f=c;f[t]=1,D(f,e,l,c,u,p),r.rModM=S(c,t,!0);var h=d(2*t+1),m=h;return m[2*t]=1,D(m,e,l,h,u,p),r.rSquaredModm=S(h,t,!0),r.rCubedModm=d(t),s(h,h,r.rCubedModm,r),r}var y=(r=r||v(t)).m,b=r.mu,x=r.m0,k=y.length,_=d(k+1).slice(0,k);_[0]=1;var E=r.mPrime,P=r.rModM,A=r.rSquaredModm,R=r.rCubedModm,N=d(2*k+1),B=d(2*k+1),M=[,,,,];return M[0]=P,M[1]=Array(k),M[2]=Array(k),M[3]=Array(k),{m:y,m0:x,mPrime:E,mu:b,rSquaredModm:A,s:k,rModM:P,rCubedModm:R,one:_,temp1:N,temp2:B,convertToMontgomeryForm:l,convertToStandardForm:c,montgomeryMultiply:s,modExp:p,reduce:g,ctx:r}}function H(t){var r=y(t),o=r.length,a=x(0,o),s=x(1,o),l=d(o),c=d(o),u=new L(r);function p(e,t){return{m_digits:e,m_group:t,equals:function(e){return 0===w(this.m_digits,e.m_digits)&&this.m_group.equals(this.m_group,e.m_group)}}}return{m_modulus:r,m_digitWidth:o,montmul:u,createElementFromInteger:function(e){return p(x(e,this.m_digitWidth),this)},createElementFromBytes:function(e){var t=y(e);if(C.compareDigits(t,this.m_modulus)>=0)throw Error("The number provided is not an element of this group");return S(t,this.m_digitWidth,!0),p(t,this)},createElementFromDigits:function(e){return C.normalizeDigitArray(e,this.m_digitWidth,!0),p(e,this)},equals:function(e){return 0===w(this.m_modulus,e.m_modulus)},add:function(t,r,o){var a,s=this.m_digitWidth,l=o.m_digits;C.add(t.m_digits,r.m_digits,l);var c=(w(l,this.m_modulus)>>>31)-1&n,u=0;for(a=0;a<s;a+=1)u=l[a]-(this.m_modulus[a]&c)+u,l[a]=u&n,u>>=e;l.length=s},subtract:function(t,r,o){var a,s=this.m_digitWidth,l=o.m_digits,c=C.subtract(t.m_digits,r.m_digits,o.m_digits);if(-1===c)for(a=0,c=0;a<s;a+=1)c+=l[a]+this.m_modulus[a],l[a]=c&n,c>>=e},multiply:function(e,t,n){return C.modMul(e.m_digits,t.m_digits,this.m_modulus,n.m_digits,l,c)},inverse:function(e,t){C.modInv(e.m_digits,this.m_modulus,t.m_digits)},modexp:function(e,t,n){if(n=n||p([],this),0===w(t,a))n.m_digits=x(1,this.m_digitWidth);else if(0===w(t,s)){for(var r=0;r<e.m_digits.length;r++)n.m_digits[r]=e.m_digits[r];n.m_digits.length=e.m_digits.length}else this.montmul.modExp(e.m_digits,t,n.m_digits),n.m_digits.length=this.montmul.s;return n}}}return{DIGIT_BITS:e,DIGIT_NUM_BYTES:t,DIGIT_MASK:n,DIGIT_BASE:r,DIGIT_MAX:o,Zero:c,One:u,normalizeDigitArray:S,bytesToDigits:y,stringToDigits:p,digitsToString:f,intToDigits:x,digitsToBytes:b,isZero:v,isEven:function(e){return(1&e[0])==0},shiftRight:_,shiftLeft:E,compareDigits:w,bitLength:function e(e){for(var t=0,n=0;t<e.length;){if(0===n)for(var r=7;r>=0&&0===n;){var o=1<<r;(e[t]&o)===o&&(n=r+1),r--}else n+=8;t+=1}return n},fixedWindowRecode:function e(e,t,n){e=e.slice();for(var r=[],o=Math.pow(2,t),a=Math.pow(2,t-1),s=0;s<n;s++)r[s]=e[0]%o-a,e[0]=e[0]-r[s],C.shiftRight(e,e,t-1);return r[s]=e[0],r},IntegerGroup:H,add:P,subtract:I,multiply:T,divRem:D,reduce:A,modInv:M,modInvCT:F,modExp:O,modMul:R,MontgomeryMultiplier:L,gcd:B,sequenceEqual:function(e,t){for(var n=e.length===t.length,r=0;r<Math.min(e.length,t.length);r+=1)e[r]!==t[r]&&(n=!1);return n},swapEndianness:function(e){return e.reverse()},computeBitArray:function e(e){for(var t=d(8*e.length),n=0,r=e.length-1;r>=0;){for(var o=0;o<8;){var a=1<<o,s=+((e[r]&a)===a),l=8*(e.length-r-1)+o;1===s&&(n=l+1),t[l]=s,o+=1}r--}return t.slice(0,n)}}}var C=C||x();function k(){var e=C.bytesToDigits;function t(e){var t,n=null;if(arguments.length&&"number"!=typeof arguments[0]){if("object"==typeof arguments[0])for(t=0,n=[];t<e.length;t+=1)n[t]=e[t]}else for(t=0,n=[];t<e;t+=1)n[t]=0;return n}var n=function(e,t,n,r,o,s){var l=e.length;return{p:e,a:t,b:n,order:r,generator:a(this,!1,o,s,null,!1),allocatePointStorage:function(){return a(this,!1,C.intToDigits(0,l),C.intToDigits(0,l))},createPointAtInfinity:function(){return a(this,!0,C.intToDigits(0,l),C.intToDigits(0,l))}}},r=function(t){var r=new n(e(t.p),e(t.a),e(t.b),e(t.order),e(t.gx),e(t.gy));return r.type=t.type,r.name=t.name,r.generator.curve=r,r},o=function(t){var r=new n(e(t.p),e(t.a),e(t.d),e(t.order),e(t.gx),e(t.gy));return r.type=t.type,1===r.type&&(r.d=r.b.slice(),delete r.b),r.rbits=t.info[2],r.name=t.name,r.generator.curve=r,r},a=function(e,n,r,o,s,l){var c;function u(e){return!!e&&(!!c.isInfinity&&!!e.isInfinity||(null!==c.z||null===e.z)&&(null===c.z||null!==e.z)&&(null===c.z?0===C.compareDigits(c.x,e.x)&&0===C.compareDigits(c.y,e.y)&&c.isInMontgomeryForm===e.isInMontgomeryForm:0===C.compareDigits(c.x,e.x)&&0===C.compareDigits(c.y,e.y)&&0===C.compareDigits(c.z,e.z)&&c.isInMontgomeryForm===e.isInMontgomeryForm))}function d(e,t){if(t.curve=e.curve,t.x=e.x.slice(),t.y=e.y.slice(),null!==e.z?t.z=e.z.slice():t.z=null,p||(t.isAffine=e.isAffine),t.isInMontgomeryForm=e.isInMontgomeryForm,t.isInfinity=e.isInfinity,!t.equals(e))throw Error("Instances should be equal.")}function f(){var e=a(c.curve,c.isInfinity,t(c.x),t(c.y),c.z?t(c.z):null,c.isInMontgomeryForm);return c.ta&&(e.ta=t(c.ta)),c.tb&&(e.tb=t(c.tb)),e}return void 0===s&&(s=null),void 0===l&&(l=!1),h(c={equals:function(e){return u(e)},copy:function(e){d(this,e)},clone:function(){return f()}},"curve",e,function(){return e},function(t){e=t}),h(c,"x",r,function(){return r},function(e){r=e}),h(c,"y",o,function(){return o},function(e){o=e}),h(c,"z",s,function(){return s},function(e){s=e}),h(c,"isInMontgomeryForm",l,function(){return l},function(e){l=e}),h(c,"isInfinity",n,function(){return n},function(e){n=e}),h(c,"isAffine",null===s,function(){return null===s}),c},s=function(e){var n=1===e.type,r=e.p.length,o=C.MontgomeryMultiplier(e.p),a=e.a.slice();o.convertToMontgomeryForm(a);var s=C.isZero(e.a),l=C.One,c=t(r);c[0]=1,o.convertToMontgomeryForm(c);var u=C.IntegerGroup(C.digitsToBytes(o.m),!0),d=t(r),f=t(r),h=t(r),m=t(r),g=t(r),v=t(r),y=t(r),b=t(r),x=t(r),k=t(r),w=t(r),S=t(r);function _(e,t,n){var r=u.createElementFromInteger(0);r.m_digits=n,u.subtract(u.createElementFromDigits(e),u.createElementFromDigits(t),r)}function E(e,t,n){var r=u.createElementFromInteger(0);r.m_digits=n,u.add(u.createElementFromDigits(e),u.createElementFromDigits(t),r)}function P(t,n){var r=t.length,o=e.p;if((1&t[0])==1){for(var a=0,s=0;s<r;s+=1)a+=t[s]+o[s],n[s]=a&C.DIGIT_MASK,a>>>=C.DIGIT_BITS;a<<=C.DIGIT_BITS-1,C.shiftRight(n,n),n[r-1]|=a}else C.shiftRight(t,n)}function I(e,t,n){o.montgomeryMultiply(e,t,n)}function T(e,t){o.montgomeryMultiply(e,e,t)}function D(e,t){if(e.isInfinity){t.isInfinity=!0;return}T(e.z,f),I(e.z,e.y,g),E(e.x,f,h),_(e.x,f,f),t.z=g.slice(),I(f,h,m),P(m,h),E(m,h,f),T(e.y,h),T(f,g),I(e.x,h,m),_(g,m,g),_(g,m,t.x),_(m,t.x,g),T(h,m),I(f,g,h),_(h,m,t.y),t.isInfinity=!1,t.isInMontgomeryForm=!0}function A(e,t){if(e.isInfinity){t.isInfinity=!0;return}T(e.y,m),T(e.x,g),E(g,g,d),E(d,g,g),I(e.x,m,v),T(m,d),P(g,f),T(f,m),I(e.y,e.z,x);for(var n=0;n<x.length;n+=1)t.z[n]=x[n];_(m,v,t.x),_(t.x,v,t.x),_(v,t.x,g),I(f,g,h),_(h,d,t.y),t.isInfinity=!1,t.isInMontgomeryForm=!0}function R(e,t){var n,r=t.clone();if(V(r),!W(r))throw Error("Invalid Parameter");var o=t.clone();j(o);var a=[t.clone()],s=o.clone(),l=o.clone();N(o,l),U(l);for(var c=1;c<Math.pow(2,e-2);c++)M(s,l,s),U(n=s.clone()),a[c]=n;return a}function N(e,t){if(void 0===e)throw Error("point undefined");if(void 0===t)throw Error("outputPoint undefined");if(e.isAffine)throw Error("Given point was in Affine form. Use convertToJacobian() first.");if(!e.isInMontgomeryForm)throw Error("Given point must be in Montgomery form. Use montgomeryize() first.");s?A(e,t):D(e,t)}function B(e,t,n){if(e.isInfinity){t.copy(n),this.convertToJacobianForm(n);return}if(t.isInfinity)return void e.copy(n);if(T(e.z,v),I(e.z,v,y),I(t.x,v,g),I(t.y,y,v),_(g,e.x,f),_(v,e.y,h),C.isZero(f))if(C.isZero(h)){N(e,n),M(n,t,n);return}else{n.x=e.x.slice(0),n.y=e.y.slice(0),n.z=e.z.slice(0);return}if(T(h,g),T(f,y),I(y,e.x,v),I(f,y,d),_(g,v,m),_(m,v,m),I(e.z,f,g),_(m,v,m),I(d,e.y,y),_(m,d,m),C.isZero(m)){for(i=0;i<n.x.length;i++)n.x[i]=0,n.y[i]=0,n.z[i]=0;n.y[0]=1;return}E(y,y,f),I(g,m,n.z),I(h,m,g),T(m,d),E(f,g,f),I(d,v,g),T(f,b),I(d,m,v),_(b,g,n.x),_(n.x,g,n.x),_(n.x,v,n.x),_(n.x,g,m),I(v,y,d),I(f,m,g),_(g,d,n.y),n.isInfinity=!1,n.isInMontgomeryForm=!0}function M(e,t,n){if(null===e)throw Error("jacobianPoint");if(null===t)throw Error("affinePoint");if(null===n)throw Error("outputPoint");if(e.curve!==t.curve||e.curve!==n.curve)throw Error("All points must be from the same curve object.");if(e.isAffine)throw Error("Given jacobianPoint was in Affine form. Use ConvertToJacobian()                     before calling DoubleJacobianAddAffinePoints().");if(!t.isAffine)throw Error("Given affinePoint was in Jacobian form. Use ConvertToAffine() before                      calling DoubleJacobianAddAffinePoints().");if(n.isAffine)throw Error("Given jacobianPoint was in Jacobian form. Use ConvertToJacobian() before                      calling DoubleJacobianAddAffinePoints().");if(!e.isInMontgomeryForm)throw Error("Jacobian point must be in Montgomery form");if(!t.isInMontgomeryForm)throw Error("Affine point must be in Montgomery form");if(e.isInfinity){t.copy(n),this.convertToJacobianForm(n);return}if(t.isInfinity)return void e.copy(n);for(T(e.z,f),I(f,e.z,h),I(f,t.x,m),I(h,t.y,g),_(m,e.x,f),_(g,e.y,h),o=0;o<f.length;o+=1)if(0!==f[o]){I(e.z,f,d);for(var o,a=0;a<r;a+=1)n.z[a]=d[a];T(f,m),I(m,f,g),I(m,e.x,v),E(v,v,f),T(h,n.x),_(n.x,f,n.x),_(n.x,g,n.x),_(v,n.x,m),I(h,m,v),I(e.y,g,y),_(v,y,n.y),n.isInfinity=!1,n.isInMontgomeryForm=!0;return}for(o=0;o<h.length;o+=1)if(0!==h[o]){n.isInfinity=!0,n.isInMontgomeryForm=!0;return}t.copy(n),this.convertToJacobianForm(n),this.double(n,n),n.isInMontgomeryForm=!0}function F(t,n,r,o){if(n.isInfinity||C.isZero(t)){r.isInfinity=!0;return}if(C.compareDigits(t,e.order)>=0)throw Error("The scalar k must be in the range 1 <= k < order.");if(t=t.slice(),1===n.curve.type){var a=void 0!==n.ta;a||K(n),X(t,n,r,o),a||Q(n)}else{var s=n.isInMontgomeryForm,l=r.isInMontgomeryForm,c=r.isAffine;s||z(n),l||z(r),O(t,n,r),c&&U(r),s||V(n),l||V(r)}}function O(e,t,n){var o=t.clone();if(V(o),!W(o))throw Error("Invalid Parameters.");var a=1&e[0],s=[];for(_(t.curve.order,e,s),h=0;h<e.length;h++)e[h]=a-1&(e[h]^s[h])^e[h];var l=r<=8?5:6,c=Math.ceil(t.curve.p.length*C.DIGIT_BITS/(l-1)),u=C.fixedWindowRecode(e,l,c),d=R(l,t),p=Math.floor(Math.abs(u[c])-1)/2,f=d[p].clone();j(f);for(var h=c-1;h>=0;h--){for(var m=0;m<l-2;m++)N(f,f);var g=L(d,p=Math.floor((Math.abs(u[h])-1)/2));_(g.curve.p,g.y,s);for(var v=-(u[h]>>>31),y=0;y<g.y.length;y++)g.y[y]=g.y[y]&~v|s[y]&v;B(f,g,f)}for(_(t.curve.p,f.y,s),h=0;h<f.y.length;h++)f.y[h]=a-1&(f.y[h]^s[h])^f.y[h];f.copy(n)}function L(e,t){for(var n,r,o=0;o<e.length;o++)n=+(o===t),r=[r,e[o].clone()][n];return r}function H(e,t){e!==t&&e.copy(t),_(e.curve.p,e.y,t.y)}function z(e){if(e.isInMontgomeryForm)throw Error("The given point is already in Montgomery form.");e.isInfinity||(o.convertToMontgomeryForm(e.x),o.convertToMontgomeryForm(e.y),null!==e.z&&o.convertToMontgomeryForm(e.z),void 0!==e.ta&&(o.convertToMontgomeryForm(e.ta),o.convertToMontgomeryForm(e.tb))),e.isInMontgomeryForm=!0}function V(e){if(!e.isInMontgomeryForm)throw Error("The given point is not in montgomery form.");e.isInfinity||(o.convertToStandardForm(e.x),o.convertToStandardForm(e.y),null!==e.z&&o.convertToStandardForm(e.z),void 0!==e.ta&&(o.convertToStandardForm(e.ta),o.convertToStandardForm(e.tb))),e.isInMontgomeryForm=!1}function U(t){if(t.isInfinity){t.z=null,p||(t.isAffine=!0);return}if(C.modInv(t.z,e.p,S,!0),t.isInMontgomeryForm){I(S,o.rCubedModm,w);var n=S;S=w,w=n}T(S,k),I(t.x,k,w);for(var a=0;a<r;a+=1)t.x[a]=w[a];I(t.y,k,w),I(w,S,t.y),t.z=null,delete t.ta,delete t.tb,p||(t.isAffine=!0)}function j(e){if(!e.isAffine)throw Error("The given point is not in Affine form.");p||(e.isAffine=!1);var n,r,o=e.isInMontgomeryForm?c:l;for(r=0,n=t(o.length);r<o.length;r+=1)n[r]=o[r];e.z=n}function W(e){return!e.isInfinity&&(C.modMul(e.y,e.y,e.curve.p,f),C.modMul(e.x,e.x,e.curve.p,h),C.modMul(e.x,h,e.curve.p,m),E(m,e.curve.b,h),C.modMul(e.x,e.curve.a,e.curve.p,m),E(h,m,h),_(f,h,f),!1!==C.isZero(f))}function q(e){return e.ta&&Q(e=e.clone()),C.modMul(e.y,e.y,e.curve.p,m),C.modMul(e.x,e.x,e.curve.p,h),C.add(h,m,f),C.reduce(g,e.curve.p,g),C.modMul(h,m,e.curve.p,g),C.modMul(e.curve.d,g,e.curve.p,m),C.add(m,[1],h),C.reduce(h,e.curve.p,h),C.subtract(f,h,f),(!1!==C.isZero(f)||(C.reduce(f,e.curve.p,f),!1!==C.isZero(f)))&&!0}function G(e,t){var n=t.clone(),r=n.clone(),o=[];o[0]=ee(t),J(n,n),r=ee(n),n=t.clone();for(var a=1;a<e;a++)et(r,n,n),o[a]=ee(n);return o}function K(e){e.ta=e.x.slice(),e.tb=e.y.slice(),e.z=[1]}function X(e,t,n,o){if(!q(t))throw Error("Invalid Parameter");var a=t.curve.rbits;o=void 0===o||o;var s=r<=8?5:6,l=Math.floor((a+(s-2))/(s-1));e=e.slice();var c=t.clone();K(c),o&&(J(c,c),J(c,c));var u,d,p=G(1<<s-2,c),f=1&e[0],h=[];for(_(t.curve.order,e,h),u=0;u<e.length;u++)e[u]=f-1&(e[u]^h[u])^e[u];var m=C.fixedWindowRecode(e,s,l),g=Math.floor(Math.abs(m[l])-1)/2,v=p[g];for(c.x=v.x.slice(),c.y=v.y.slice(),c.z=v.z.slice(),u=l-1;u>=0;u--){for(d=0;d<s-1;d++)J(c,c);var y=Y(p,g=Math.floor((Math.abs(m[u])-1)/2)),b=-(m[u]>>>31);_(t.curve.p,y.x,h);for(var x=0;x<y.x.length;x++)y.x[x]=y.x[x]&~b|h[x]&b;for(_(t.curve.p,y.td,h),x=0;x<y.td.length;x++)y.td[x]=y.td[x]&~b|h[x]&b;et(y,c,c)}for(_(t.curve.p,c.x,h),u=0;u<c.x.length;u++)c.x[u]=f-1&(c.x[u]^h[u])^c.x[u];Q(c),n.x=c.x.slice(),n.y=c.y.slice()}function Y(e,t){for(var n=(t+1)%e.length,r=0;r<e.length;r++){var o={x:e[n].x.slice(),y:e[n].y.slice(),z:e[n].z.slice(),td:e[n].td.slice()};n=(n+1)%e.length}return o}function Q(t){C.modInv(t.z,e.p,S,!0),C.modMul(t.x,S,e.p,t.x),C.modMul(t.y,S,e.p,t.y),delete t.ta,delete t.tb,t.z=null}function J(e,t){if(void 0===e.ta)throw Error("Point should be in Extended Projective form.");C.modMul(e.x,e.x,e.curve.p,d),C.modMul(e.y,e.y,e.curve.p,f),C.modMul(e.z,e.z,e.curve.p,e.ta),_(f,d,t.tb),E(d,f,d),E(e.ta,e.ta,e.ta),E(e.y,e.y,e.y),_(e.ta,d,f),C.modMul(e.x,e.y,e.curve.p,t.ta),C.modMul(d,t.tb,e.curve.p,t.y),C.modMul(f,t.ta,e.curve.p,t.x),C.modMul(d,f,e.curve.p,t.z)}function Z(e,t,n){if(void 0===e.ta)throw Error("Point1 should be in Extended Projective form.");if(void 0===t.ta)throw Error("Point2 should be in Extended Projective form.");et(ee(e),t,n)}function ee(e){var t=e.curve,n=t.p,r={x:e.x.slice(),y:e.y.slice(),z:e.z.slice(),td:[],curve:e.curve};return C.modMul(e.ta,e.tb,n,k),C.modMul(k,t.d,n,r.td),r}function et(e,t,n){var r=C,o=t.curve.p;f=[],h=[],m=[],r.modMul(t.z,e.z,o,m),r.modMul(t.ta,t.tb,o,f),E(t.x,t.y,t.ta),r.modMul(f,e.td,o,h),E(e.x,e.y,t.tb),_(m,h,f),E(m,h,m),r.modMul(t.ta,t.tb,o,h),r.modMul(t.x,e.x,o,t.z),r.modMul(t.y,e.y,o,t.x),_(h,t.z,h),_(t.x,t.z,n.ta),_(h,t.x,n.tb),r.modMul(n.ta,m,o,n.y),r.modMul(n.tb,f,o,n.x),r.modMul(m,f,o,n.z)}function en(e,t){var n=e.curve.a.slice(),r=e.curve.d.slice(),o=e.curve.p,a=C.modMul,s=C.modInv;a(n,f=[5],o,h),_(h,r,h),a(r,f,o,m),_(n,m,f),a(e.y,f,o,m),E(m,h,h),_(f=[1],e.y,m),a(f=[12],m,o,g),s(g,o,g,!0),a(e.x,m,o,f),E(f,f,m),E(m,m,m),s(m,o,m,!0),a(g,h,o,t.x),f=[1],E(e.y,f,f),_(n,r,h),a(f,h,o,g),a(g,m,o,t.y)}function er(e,t){var n=t.curve.a.slice(),r=t.curve.d.slice(),o=t.curve.p,a=C.modMul,s=C.modInv;E(e.x,e.x,f),E(e.x,f,f),E(f,f,f),_(f,n,h),_(h,r,h),E(e.y,e.y,m),E(e.y,m,m),E(m,m,m),s(m,o,m,!0),a(h,m,o,t.x),E(f,f,f),E(f,r,h),E(f,n,f),E(n,n,m),_(h,m,h),_(h,m,h),_(h,n,h),E(r,r,m),_(f,m,f),_(f,m,f),_(f,r,f),s(f,o,f,!0),a(f,h,o,t.y)}var eo={convertToMontgomeryForm:z,convertToStandardForm:V,convertToAffineForm:U,convertToJacobianForm:j,generatePrecomputationTable:function(e,t){return R(e,t)}};return n?(eo.double=J,eo.add=Z,eo.scalarMultiply=F,eo.normalize=Q,eo.convertToExtendedProjective=K,eo.convertTedToWeierstrass=en,eo.convertWeierstrassToTed=er,eo.validatePoint=q,eo.generatePrecomputationTable=function(e,t){return G(e,t)}):(eo.double=N,eo.mixedDoubleAdd=B,eo.mixedAdd=M,eo.scalarMultiply=F,eo.negate=H,eo.validatePoint=W),eo},l={},c=function(e){var t=l[e.toUpperCase()];if(!t)throw Error(e+" Unsupported curve.");if(0===t.type)return r(t);if(1===t.type)return o(t);throw Error(e+" Unsupported curve type.")},u=function(t,n,r,o){var l=c(t),u=new a(l,!1,e(n),e(r),o&&e(o),!1);return new s(l).validatePoint(u)};return{createCurve:c,curves:l,sec1EncodingFp:function(){return{encodePoint:function(e){if(!e)throw Error("point");if(!e.isAffine)throw Error("Point must be in affine form.");if(e.isInMontgomeryForm)throw Error("Point must not be in Montgomery form.");if(e.isInfinity)return t(1);var n=C.digitsToBytes(e.x),r=C.digitsToBytes(e.y),o=C.digitsToBytes(e.curve.p).length;if(o<n.length||o<r.length)throw Error("Point coordinate(s) are bigger than the field order.");var a=t(2*o+1);a[0]=4;for(var s=o-n.length,l=0;l<n.length;l++)a[l+1+s]=n[l];for(l=0,s=o-r.length;l<r.length;l++)a[o+l+1+s]=r[l];return a},decodePoint:function(e,n){if(e.length<1)throw Error("Byte array must have non-zero length");var r=C.digitsToBytes(n.p).length;if(0===e[0]&&1===e.length)return n.createPointAtInfinity();if(4===e[0]&&e.length===1+2*r){for(var o=t(r),s=t(r),l=0;l<r;l++)o[l]=e[l+1],s[l]=e[r+l+1];return a(n,!1,C.bytesToDigits(o),C.bytesToDigits(s))}throw Error("Unsupported encoding format")}}},validatePoint:u,EllipticCurvePointFp:a,EllipticCurveOperatorFp:s,ModularSquareRootSolver:function(e){var t=e,n=[];if(void 0===e)throw Error("modulus");if(C.isEven(e))throw Error("Only odd moduli are supported");var r=C.MontgomeryMultiplier(t);t[0]%4==3?(C.add(t,C.One,n),C.shiftRight(n,n,2)):n=null;var o=Array(t.length),a=Array(t.length);function s(e){var t=C.intToDigits(0,16);r.modExp(e,n,t);var o=[0];return(C.modMul(t,t,r.m,o),0!==C.compareDigits(e,o))?null:t}return{squareRoot:function(e){if(null!==n)return s(e);throw Error("GeneralCase not supported.")},jacobiSymbol:function(e){var n,r,s=7,l=3;n=e.slice(),r=t.slice(),C.reduce(n,r,n,o,a);for(var c=1;!C.isZero(n);){for(;C.isEven(n);){C.shiftRight(n,n);var u=r[0]&s;(3===u||5===u)&&(c=-c)}var d=n;n=r,r=d;var p=n[0]&l,f=r[0]&l;3===p&&3===f&&(c=-c),C.reduce(n,r,n,o,a)}return 0===C.compareDigits(r,C.One)?c:0}}}}}var w=w||k(),S={name:"P-256",type:0,p:[255,255,255,255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255],a:[255,255,255,255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,252],b:[90,198,53,216,170,58,147,231,179,235,189,85,118,152,134,188,101,29,6,176,204,83,176,246,59,206,60,62,39,210,96,75],order:[255,255,255,255,0,0,0,0,255,255,255,255,255,255,255,255,188,230,250,173,167,23,158,132,243,185,202,194,252,99,37,81],gx:[107,23,209,242,225,44,66,71,248,188,230,229,99,164,64,242,119,3,125,129,45,235,51,160,244,161,57,69,216,152,194,150],gy:[79,227,66,226,254,26,127,155,142,231,235,74,124,15,158,22,43,206,51,87,107,49,94,206,203,182,64,104,55,191,81,245],cf:1},_={name:"P-384",type:0,p:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255],a:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,252],b:[179,49,47,167,226,62,231,228,152,142,5,107,227,248,45,25,24,29,156,110,254,129,65,18,3,20,8,143,80,19,135,90,198,86,57,141,138,46,209,157,42,133,200,237,211,236,42,239],order:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,199,99,77,129,244,55,45,223,88,26,13,178,72,176,167,122,236,236,25,106,204,197,41,115],gx:[170,135,202,34,190,139,5,55,142,177,199,30,243,32,173,116,110,29,59,98,139,167,155,152,89,247,65,224,130,84,42,56,85,2,242,93,191,85,41,108,58,84,94,56,114,118,10,183],gy:[54,23,222,74,150,38,44,111,93,158,152,191,146,146,220,41,248,244,29,189,40,154,20,124,233,218,49,19,181,240,184,192,10,96,177,206,29,126,129,157,122,67,29,124,144,234,14,95],cf:1},E={name:"P-521",type:0,p:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255],a:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,252],b:[0,81,149,62,185,97,142,28,154,31,146,154,33,160,182,133,64,238,162,218,114,91,153,179,21,243,184,180,137,145,142,241,9,225,86,25,57,81,236,126,147,123,22,82,192,189,59,177,191,7,53,115,223,136,61,44,52,241,239,69,31,212,107,80,63,0],order:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,250,81,134,135,131,191,47,150,107,127,204,1,72,247,9,165,208,59,181,201,184,137,156,71,174,187,111,183,30,145,56,100,9],gx:[0,198,133,142,6,183,4,4,233,205,158,62,203,102,35,149,180,66,156,100,129,57,5,63,181,33,248,40,175,96,107,77,61,186,161,75,94,119,239,231,89,40,254,29,193,39,162,255,168,222,51,72,179,193,133,106,66,155,249,126,126,49,194,229,189,102],gy:[1,24,57,41,106,120,154,59,192,4,92,138,95,180,44,125,27,217,152,245,68,73,87,155,68,104,23,175,189,23,39,62,102,44,151,238,114,153,94,244,38,64,197,80,185,1,63,173,7,97,53,60,112,134,162,114,194,64,136,190,148,118,159,209,102,80],cf:1};void 0!==w&&(w.curves["P-256"]=S,w.curves["P-384"]=_,w.curves["P-521"]=E);var P={name:"BN-254",type:0,p:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,8,97,33,0,0,0,0,0,19,167,0,0,0,0,0,0,19],a:[0],b:[2],order:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,7,255,159,128,0,0,0,0,16,161,0,0,0,0,0,0,13],gx:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,8,97,33,0,0,0,0,0,19,167,0,0,0,0,0,0,18],gy:[1],cf:1};void 0!==w&&(w.curves["BN-254"]=P);var I={info:["numsp256d1",256,256,256],type:0,p:[67,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[64,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[129,85,2].reverse(),order:[37,168,81,71,41,32,171,32,96,92,38,234,117,130,60,228,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[177,172,26,178,30,238,82,188,58,199,212,3,9,155,87,131,9,203,66,79,160,149,122,41,97,219,170,90,182,214,158,188].reverse(),gy:[159,222,132,33,203,185,181,128,187,15,49,21,209,195,85,201,53,224,4,126,247,139,68,115,166,182,153,51,241,192,143,208].reverse(),cf:1},T={info:["numsp256t1",256,255,256],name:"numsp256t1",type:1,p:[67,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1],d:[85,195,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[245,74,221,238,144,177,71,26,155,67,89,47,165,90,149,65,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64].reverse(),gx:[218,19,237,46,144,192,222,160,134,53,8,227,14,138,57,12,214,155,32,105,95,61,30,205,125,35,234,106,251,20,117,138].reverse(),gy:[230,137,138,121,231,22,166,47,211,110,133,16,216,97,95,113,16,128,75,166,217,101,150,206,199,37,217,217,159,62,213,68].reverse(),cf:4},D={info:["numsp384d1",384,384,384],name:"numsp384d1",type:0,p:[195,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[192,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[187,119,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[185,97,14,123,246,129,77,96,122,226,55,76,61,157,218,190,129,104,93,235,30,175,30,214,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[42,21,152,32,4,186,156,235,123,196,97,15,16,237,46,82,66,199,108,42,27,41,189,243,244,249,129,251,205,193,37,2,166,241,5,65,34,202,128,72,28,24,111,177,240,86,121,117].reverse(),gy:[22,7,24,102,236,184,116,92,38,173,244,191,219,180,214,188,126,131,26,18,125,131,32,185,156,115,127,248,119,105,4,176,126,207,132,5,48,61,227,215,56,142,155,225,104,227,222,172].reverse(),cf:1},A={info:["numsp384t1",384,382,384],name:"numsp384t1",type:1,p:[195,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1],d:[159,209,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[125,137,163,230,196,220,185,32,121,200,53,171,90,85,228,97,207,225,107,180,28,26,71,226,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63].reverse(),gx:[222,107,32,108,228,64,213,80,19,148,69,101,177,146,242,111,64,99,49,243,168,255,99,87,0,76,190,229,70,244,11,179,181,93,229,154,18,162,182,192,108,38,169,69,251,17,177,97].reverse(),gy:[146,147,114,240,225,3,141,157,220,72,236,70,249,176,114,0,75,150,69,246,247,152,15,131,86,95,66,241,116,130,173,22,215,13,177,35,164,177,56,135,176,238,166,185,103,62,152,130].reverse(),cf:4},R={info:["numsp512d1",512,512,512],name:"numsp512d1",type:0,p:[199,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[196,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[155,217,1].reverse(),order:[93,85,51,4,57,63,21,206,67,210,124,96,54,139,86,59,198,189,208,151,237,88,194,79,27,131,231,148,251,164,60,91,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[87,174,171,140,149,135,130,220,226,93,111,125,19,96,93,29,131,21,86,37,134,66,121,147,158,53,107,7,81,161,33,80,249,217,6,83,194,224,6,69,133,246,1,181,59,216,202,152,82,59,61,160,2,112,43,218,147,10,29,20,71,52,192,58].reverse(),gy:[166,39,53,56,96,135,160,35,233,15,253,76,30,92,43,207,2,86,90,178,64,168,33,193,233,237,14,139,218,21,132,162,20,79,209,123,12,38,75,143,140,187,188,171,222,219,151,75,0,177,235,99,220,238,14,206,179,86,173,41,202,84,58,148].reverse(),cf:4},N={info:["numsp512t1",512,510,512],name:"numsp512t1",type:1,p:[199,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1].reverse(),d:[239,203,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[109,212,238,27,245,140,70,103,255,236,239,109,120,5,70,42,245,134,182,112,201,216,63,158,186,145,207,47,109,99,240,180,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63].reverse(),gx:[254,87,236,153,41,171,185,197,21,240,196,124,66,37,229,15,173,4,137,86,146,201,189,120,15,115,70,238,78,193,33,70,71,129,59,39,190,126,161,39,130,163,196,77,159,231,209,47,51,197,211,136,120,203,24,122,156,182,141,18,109,49,142,223].reverse(),gy:[225,245,226,193,192,222,109,50,31,208,241,155,138,211,102,2,253,193,236,42,134,6,26,96,98,53,150,233,242,83,202,32,65,131,158,144,149,107,43,169,34,157,37,216,38,247,118,228,110,37,42,168,119,245,176,152,113,202,73,157,243,191,9,109].reverse(),cf:4};void 0!==w&&(w.curves.NUMSP256D1=I,w.curves.NUMSP384D1=D,w.curves.NUMSP512D1=R,w.curves.NUMSP256T1=T,w.curves.NUMSP384T1=A,w.curves.NUMSP512T1=N);var B=function(e,t,n,r,o,a,s){var l=g,c=n.slice(),u=Array(o),d=[],p=0;function f(e){for(var t=Math.floor(e.length/o),n=0;n<t;n++)a(e,n,c,r,u);return p+=t,e.slice(t*o)}function h(){for(var e=[],t=0;t<c.length;t++)e=e.concat(l.int32ToBytes(c[t]));return e.length=s/8,e}function m(e){var t=o-e.length%o;t<=o/8&&(t+=o);var n=l.getVector(t);n[0]=128;for(var r=(e.length+p*o)*8,a=1;a<=8;a++)n[t-a]=r%256,r=Math.floor(r/256);return e.concat(n)}function v(){if(0!==f(m(d)).length)throw Error("buffer.length !== 0");var e=h();return d=[],c=n.slice(),p=0,e}return{name:e,computeHash:function(e){return d=f(e),v()},process:function(e){(d=d.concat(e)).length>=o&&(d=f(d))},finish:v,der:t,hashLen:s,maxMessageSize:0xffffffff}},M=function(){function e(e,n,r,o,a){var s,l,c,u,d=64,p=0xffffffff,f=r[0],h=r[1],m=r[2],g=r[3],v=r[4];for(l=0;l<16;l++)a[l]=t.bytesToInt32(e,n*d+4*l);for(s=16;s<80;s++)u=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=u<<1|u>>>31;for(l=0;l<80;l++)c=(f<<5|f>>>27)+(l>=60?h^m^g:l>=40?h&m^h&g^m&g:l>=20?h^m^g:h&m^~h&g)+(v+o[l]+a[l]),v=g,g=m,m=h<<30|h>>>2,h=f,f=c;return r[0]+=f&p,r[1]+=h&p,r[2]+=m&p,r[3]+=g&p,r[4]+=v&p,r}var t=g,n=t.unpackData,r=n("Z0UjAe/Nq4mYutz+EDJUdsPS4fA=",4,1),o=n("WoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroY8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdY",4,1),a=n("MCEwCQYFKw4DAhoFAAQU");return{sha1:function(){return B("SHA-1",a,r,o,64,e,160)}}}();void 0!==o&&(M.instances={},M.getInstance=function(e){return M.instances[e]||(M.instances[e]=M.sha1())},M.deleteInstance=function(e){M.instances[e]=null,delete M.instances[e]},M.hash=function(e){return"process"===e.operationSubType?void M.sha1.process(e.buffer):"finish"===e.operationSubType?M.sha1.finish():M.sha1().computeHash(e.buffer)},o.register("digest","SHA-1",M.hash)),m["SHA-1"]=M.sha1;var F=function(){var e=g;function t(t,n,r,o,a){var s,l,c,u,d,p=64,f=0xffffffff,h=r[0],m=r[1],g=r[2],v=r[3],y=r[4],b=r[5],x=r[6],C=r[7];for(l=0;l<16;l++)a[l]=e.bytesToInt32(t,n*p+4*l);for(s=16;s<64;s++)u=a[s-15],d=a[s-2],a[s]=((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+a[s-7]+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3)+a[s-16],a[s]=a[s]&f;for(l=0;l<64;l++)v+=c=C+((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&b^~y&x)+o[l]+a[l],c+=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&(m^g)^m&g),C=x,x=b,b=y,y=v,v=g,g=m,m=h,h=c;return r[0]=r[0]+h>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+v>>>0,r[4]=r[4]+y>>>0,r[5]=r[5]+b>>>0,r[6]=r[6]+x>>>0,r[7]=r[7]+C>>>0,r}var n,r,o,a,s,l=e.unpackData;return r=l("wQWe2DZ81QcwcN0X9w5ZOf/ACzFoWBURZPmPp776T6Q",4,1),o=l("agnmZ7tnroU8bvNypU/1OlEOUn+bBWiMH4PZq1vgzRk",4,1),n=l("QoovmHE3RJG1wPvP6bXbpTlWwltZ8RHxkj+CpKscXtXYB6qYEoNbASQxhb5VDH3Dcr5ddIDesf6b3AanwZvxdOSbacHvvkeGD8GdxiQMocwt6SxvSnSEqlywqdx2+YjamD5RUqgxxm2wAyfIv1l/x8bgC/PVp5FHBspjURQpKWcntwqFLhshOE0sbfxTOA0TZQpzVHZqCruBwskuknIshaK/6KGoGmZLwkuLcMdsUaPRkugZ1pkGJPQONYUQaqBwGaTBFh43bAgnSHdMNLC8tTkcDLNO2KpKW5zKT2gub/N0j4LueKVjb4TIeBSMxwIIkL7/+qRQbOu++aP3xnF48g",4,1),a=l("MC0wDQYJYIZIAWUDBAIEBQAEHA"),s=l("MDEwDQYJYIZIAWUDBAIBBQAEIA"),{sha224:function(){return B("SHA-224",a,r,n,64,t,224)},sha256:function(){return B("SHA-256",s,o,n,64,t,256)}}}();void 0!==o&&(F.instance224=F.instance224||F.sha224(),F.instance256=F.instance256||F.sha256(),F.instances={},F.getInstance224=function(e){return F.instances[e]||(F.instances[e]=F.sha224())},F.getInstance256=function(e){return F.instances[e]||(F.instances[e]=F.sha256())},F.deleteInstance=function(e){F.instances[e]=null,delete F.instances[e]},F.hash256=function(e){if("process"===e.operationSubType)return F.getInstance256(e.workerid).process(e.buffer),null;if("finish"===e.operationSubType){var t=F.getInstance256(e.workerid).finish();return F.deleteInstance(e.workerid),t}return"abort"===e.operationSubType?void F.deleteInstance(e.workerid):F.instance256.computeHash(e.buffer)},F.hash224=function(e){return"process"===e.operationSubType?void F.getInstance224(e.workerid).process(e.buffer):("finish"===e.operationSubType&&F.getInstance224(e.workerid).finish(),"abort"===e.operationSubType)?void msrcryptoSha224.deleteInstance(e.workerid):F.instance224.computeHash(e.buffer)},o.register("digest","SHA-224",F.hash224),o.register("digest","SHA-256",F.hash256)),m["SHA-224"]=F.sha224,m["SHA-256"]=F.sha256;var O=function(){function e(e,t,n,r,o){var a=t+r|0,s=a>>>0<r>>>0;o[0]=e+n+s|0,o[1]=a}function t(t,n,r,o,a){var s,l,c,u,d,p,f,h,m,g=128,v=[],y=[],b=[],x=r[0],C=r[1],k=r[2],w=r[3],S=r[4],_=r[5],E=r[6],P=r[7],I=r[8],T=r[9],D=r[10],A=r[11],R=r[12],N=r[13],B=r[14],M=r[15];for(s=0;s<32;s++)m=n*g+4*s,a[s]=t.slice(m,m+4),a[s]=a[s][0]<<24|a[s][1]<<16|a[s][2]<<8|a[s][3];for(s=32;s<160;s+=2)c=((f=a[s-30])>>>1|(h=a[s-29])<<31)^(f>>>8|h<<24)^f>>>7,u=(h>>>1|f<<31)^(h>>>8|f<<24)^(h>>>7|f<<25),e(d=((f=a[s-4])>>>19|(h=a[s-3])<<13)^(h>>>29|f<<3)^f>>>6,p=(h>>>19|f<<13)^(f>>>29|h<<3)^(h>>>6|f<<26),a[s-14],a[s-13],v),e(c,u,v[0],v[1],v),e(a[s-32],a[s-31],v[0],v[1],v),a[s]=v[0],a[s+1]=v[1];for(l=0;l<160;l+=2)c=(I>>>14|T<<18)^(I>>>18|T<<14)^(T>>>9|I<<23),u=(T>>>14|I<<18)^(T>>>18|I<<14)^(I>>>9|T<<23),d=I&D^R&~I,p=T&A^N&~T,e(B,M,c,u,v),e(d,p,o[l],o[l+1],y),e(v[0],v[1],a[l],a[l+1],b),e(y[0],y[1],b[0],b[1],b),e(b[0],b[1],E,P,v),E=v[0],P=v[1],u=(C>>>28|x<<4)^(x>>>2|C<<30)^(x>>>7|C<<25),c=(x>>>28|C<<4)^(C>>>2|x<<30)^(C>>>7|x<<25),p=C&(w^_)^w&_,d=x&(k^S)^k&S,e(b[0],b[1],c,u,v),e(d,p,c=v[0],u=v[1],v),c=v[0],u=v[1],B=R,M=N,R=D,N=A,D=I,A=T,I=E,T=P,E=S,P=_,S=k,_=w,k=x,w=C,x=c,C=u;return e(r[0],r[1],x,C,v),r[0]=v[0],r[1]=v[1],e(r[2],r[3],k,w,v),r[2]=v[0],r[3]=v[1],e(r[4],r[5],S,_,v),r[4]=v[0],r[5]=v[1],e(r[6],r[7],E,P,v),r[6]=v[0],r[7]=v[1],e(r[8],r[9],I,T,v),r[8]=v[0],r[9]=v[1],e(r[10],r[11],D,A,v),r[10]=v[0],r[11]=v[1],e(r[12],r[13],R,N,v),r[12]=v[0],r[13]=v[1],e(r[14],r[15],B,M,v),r[14]=v[0],r[15]=v[1],r}var n,r,o,a,s,l,c,u=g.unpackData;return n=u("y7udXcEFnthimikqNnzVB5FZAVowcN0XFS/s2PcOWTlnMyZn/8ALMY60SodoWBUR2wwuDWT5j6dHtUgdvvpPpA==",4,1),r=u("agnmZ/O8yQi7Z66FhMqnOzxu83L+lPgrpU/1Ol8dNvFRDlJ/reaC0ZsFaIwrPmwfH4PZq/tBvWtb4M0ZE34heQ",4,1),o=u("QoovmNcoriJxN0SRI+9lzbXA+8/sTTsv6bXbpYGJ27w5VsJb80i1OFnxEfG2BdAZkj+CpK8ZT5urHF7V2m2BGNgHqpijAwJCEoNbAUVwb74kMYW+TuSyjFUMfcPV/7Ticr5ddPJ7iW+A3rH+OxaWsZvcBqclxxI1wZvxdM9pJpTkm2nBnvFK0u++R4Y4TyXjD8GdxouM1bUkDKHMd6ycZS3pLG9ZKwJ1SnSEqm6m5INcsKncvUH71Hb5iNqDEVO1mD5RUu5m36uoMcZtLbQyELADJ8iY+yE/v1l/x77vDuTG4AvzPaiPwtWnkUeTCqclBspjUeADgm8UKSlnCg5ucCe3CoVG0i/8LhshOFwmySZNLG38WsQq7VM4DROdlbPfZQpzVIuvY952agq7PHeyqIHCyS5H7a7mknIshRSCNTuiv+ihTPEDZKgaZku8QjABwkuLcND4l5HHbFGjBlS+MNGS6BnW71IY1pkGJFVlqRD0DjWFV3EgKhBqoHAyu9G4GaTBFrjS0MgeN2wIUUGrUydId0zfjuuZNLC8teGbSKg5HAyzxclaY07YqkrjQYrLW5zKT3dj43NoLm/z1rK4o3SPgu5d77L8eKVjb0MXL2CEyHgUofCrcozHAggaZDnskL7/+iNjHiikUGzr3oK96b75o/eyxnkVxnF48uNyUyvKJz7O6iZhnNGGuMchwMIH6tp91s3g6x71fU9/7m7ReAbwZ6pyF2+6CmN9xaLImKYRP5gEvvkNrhtxCzUTHEcbKNt39SMEfYQyyqt7QMckkzyevgoVyb68Qx1nxJwQDUxMxdS+yz5Ctll/KZz8ZX4qX8tvqzrW+uxsRBmMSkdYFw==",4,1),a=u("MEEwDQYJYIZIAWUDBAICBQAEMA"),s=u("MFEwDQYJYIZIAWUDBAIDBQAEQA"),l=u("MC0wDQYJYIZIAWUDBAIFBQAEHA"),c=u("MDEwDQYJYIZIAWUDBAIGBQAEIA"),{sha384:function(){return B("SHA-384",a,n,o,128,t,384)},sha512:function(){return B("SHA-512",s,r,o,128,t,512)},sha512_224:function(){return B("SHA-512.224",l,r,o,128,t,224)},sha512_256:function(){return B("SHA-512.256",c,r,o,128,t,256)}}}();void 0!==o&&(O.instances={},O.getInstance384=function(e){return O.instances[e]||(O.instances[e]=O.sha384())},O.getInstance512=function(e){return O.instances[e]||(O.instances[e]=O.sha512())},O.deleteInstance=function(e){O.instances[e]=null,delete O.instances[e]},O.hash384=function(e){return"process"===e.operationSubType?void O.sha384.process(e.buffer):"finish"===e.operationSubType?O.sha384.finish():O.sha384().computeHash(e.buffer)},O.hash512=function(e){return"process"===e.operationSubType?void O.sha512.process(e.buffer):"finish"===e.operationSubType?O.sha512.finish():O.sha512().computeHash(e.buffer)},o.register("digest","SHA-384",O.hash384),o.register("digest","SHA-512",O.hash512)),m["SHA-384"]=O.sha384,m["SHA-512"]=O.sha512;var L=function(e,t){var n,r,o,a,s,l={384:128,512:128}[t.name.replace(/SHA-/,"")]||64,c=p();function u(e,t){for(var n=Array(e),r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function d(e,t){for(var n=e.slice(),r=e.length;r<t;r++)n.push(0);return n}function p(){return e.length===l?e:e.length>l?d(t.computeHash(e),l):d(e,l)}function f(e){s?t.process(e):(s=a.concat(e),t.process(s))}function h(){var e=t.finish(),n=o.concat(e);return t.computeHash(n)}function m(){e=null,t=null,c=null}n=Array(l),r=Array(l);for(var g=0;g<l;g++)n[g]=54,r[g]=92;return a=u(c,n),o=u(c,r),{computeHmac:function(e,t,n){f(e);var r=h();return m(),r},process:function(e,t,n){return f(e),null},finish:function(e,t){var n=h();return m(),n}}};if(void 0!==o){var H={};L.signHmac=function(e){var t,n=m[e.keyHandle.algorithm.hash.name.toUpperCase()](),r=e.workerid;return(H[r]||(H[r]=L(e.keyData,n)),"process"===e.operationSubType)?(H[r].process(e.buffer),null):("finish"===e.operationSubType?t=H[r].finish():t=H[r].computeHmac(e.buffer),H[r]=null,t)},L.verifyHmac=function(e){var t,n=m[e.keyHandle.algorithm.hash.name.toUpperCase()](),r=e.workerid;return(H[r]||(H[r]=L(e.keyData,n)),"process"===e.operationSubType)?(H[r].process(e.buffer),null):("finish"===e.operationSubType?t=H[r].finish():t=H[r].computeHmac(e.buffer),t=g.arraysEqual(t,e.signature),H[r]=null,t)},L.generateKey=function(e){var t={"SHA-1":64,"SHA-224":64,"SHA-256":64,"SHA-384":128,"SHA-512":128},n=e.algorithm.length;return n||(n=t[e.algorithm.hash.name.toUpperCase()]),{type:"keyGeneration",keyData:Y.getBytes(n),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},L.importKey=function(e){var t;if(e.keyData.length,"jwk"===e.format)(t=b.jwkToKey(e.keyData,e.algorithm,["k"])).alg=t.alg.replace("HS","SHA-");else if("raw"===e.format)t={k:g.toArray(e.keyData)};else throw Error("unsupported import format");return{type:"keyImport",keyData:t.k,keyHandle:{algorithm:{name:"HMAC",hash:{name:e.algorithm.hash.name}},extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"}}},L.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw Error("unsupported export format")},o.register("importKey","HMAC",L.importKey),o.register("exportKey","HMAC",L.exportKey),o.register("generateKey","HMAC",L.generateKey),o.register("sign","HMAC",L.signHmac),o.register("verify","HMAC",L.verifyHmac)}var z=function(){var e,t,n,r,o,a,s,l,c,u;return{aes:function(d){e||(t=(e=g.unpackData("AAIEBggKDA4QEhQWGBocHiAiJCYoKiwuMDI0Njg6PD5AQkRGSEpMTlBSVFZYWlxeYGJkZmhqbG5wcnR2eHp8foCChIaIioyOkJKUlpianJ6goqSmqKqsrrCytLa4ury+wMLExsjKzM7Q0tTW2Nrc3uDi5Obo6uzu8PL09vj6/P4bGR8dExEXFQsJDw0DAQcFOzk/PTMxNzUrKS8tIyEnJVtZX11TUVdVS0lPTUNBR0V7eX99c3F3dWtpb21jYWdlm5mfnZORl5WLiY+Ng4GHhbu5v72zsbe1q6mvraOhp6Xb2d/d09HX1cvJz83DwcfF+/n//fPx9/Xr6e/t4+Hn5QADBgUMDwoJGBseHRQXEhEwMzY1PD86OSgrLi0kJyIhYGNmZWxvaml4e359dHdycVBTVlVcX1pZSEtOTURHQkHAw8bFzM/Kydjb3t3U19LR8PP29fz/+vno6+7t5Ofi4aCjpqWsr6qpuLu+vbS3srGQk5aVnJ+amYiLjo2Eh4KBm5idnpeUkZKDgIWGj4yJiquora6npKGis7C1tr+8ubr7+P3+9/Tx8uPg5ebv7Onqy8jNzsfEwcLT0NXW39zZ2ltYXV5XVFFSQ0BFRk9MSUpraG1uZ2RhYnNwdXZ/fHl6Ozg9Pjc0MTIjICUmLywpKgsIDQ4HBAECExAVFh8cGRoADhwSODYkKnB+bGJIRlRa4O788tjWxMqQnoyCqKa0utvVx8nj7f/xq6W3uZOdj4E7NScpAw0fEUtFV1lzfW9hraOxv5WbiYfd08HP5ev5901DUV91e2lnPTMhLwULGRd2eGpkTkBSXAYIGhQ+MCIslpiKhK6gsrzm6Pr03tDCzEFPXVN5d2VrMT8tIwkHFRuhr72zmZeFi9HfzcPp5/X7mpSGiKKsvrDq5Pb40tzOwHp0ZmhCTF5QCgQWGDI8LiDs4vD+1NrIxpySgI6kqri2DAIQHjQ6KCZ8cmBuREpYVjc5KyUPARMdR0lbVX9xY23X2cvF7+Hz/aepu7WfkYONAA0aFzQ5LiNoZXJ/XFFGS9Ddysfk6f7zuLWir4yBlpu7tqGsj4KVmNPeycTn6v3wa2ZxfF9SRUgDDhkUNzotIG1gd3pZVENOBQgfEjE8Kya9sKeqiYSTntXYz8Lh7Pv21tvMweLv+PW+s6SpioeQnQYLHBEyPyglbmN0eVpXQE3a18DN7uP0+bK/qKWGi5yRCgcQHT4zJClib3h1VltMQWFse3ZVWE9CCQQTHj0wJyqxvKumhYifktnUw87t4Pf6t7qtoIOOmZTf0sXI6+bx/GdqfXBTXklEDwIVGDs2ISwMARYbODUiL2RpfnNQXUpH3NHGy+jl8v+0ua6jgI2alwALFh0sJzoxWFNORXR/Ymmwu6atnJeKgejj/vXEz9LZe3BtZldcQUojKDU+DwQZEsvA3dbn7PH6k5iFjr+0qaL2/eDr2tHMx66luLOCiZSfRk1QW2phfHceFQgDMjkkL42Gm5Chqre81d7DyPny7+Q9NisgERoHDGVuc3hJQl9U9/zh6tvQzcavpLmyg4iVnkdMUVprYH12HxQJAjM4JS6Mh5qRoKu2vdTfwsn48+7lPDcqIRAbBg1kb3J5SENeVQEKFxwtJjswWVJPRHV+Y2ixuqesnZaLgOni//TFztPYenFsZ1ZdQEsiKTQ/DgUYE8rB3Nfm7fD7kpmEj761qKMACRIbJC02P0hBWlNsZX53kJmCi7S9pq/Y0crD/PXu5zsyKSAfFg0Ec3phaFdeRUyrormwj4adlOPq8fjHztXcdn9kbVJbQEk+NywlGhMIAebv9P3Cy9DZrqe8tYqDmJFNRF9WaWB7cgUMFx4hKDM63dTPxvnw6+KVnIeOsbijquzl/vfIwdrTpK22v4CJkpt8dW5nWFFKQzQ9Ji8QGQIL197FzPP64eiflo2Eu7KpoEdOVVxjanF4DwYdFCsiOTCak4iBvrespdLbwMn2/+TtCgMYES4nPDVCS1BZZm90faGos7qFjJee6eD78s3E39YxOCMqFRwHDnlwa2JdVE9GY3x3e/Jrb8UwAWcr/terdsqCyX36WUfwrdSir5ykcsC3/ZMmNj/3zDSl5fFx2DEVBMcjwxiWBZoHEoDi6yeydQmDLBobblqgUjvWsynjL4RT0QDtIPyxW2rLvjlKTFjP0O+q+0NNM4VF+QJ/UDyfqFGjQI+SnTj1vLbaIRD/89LNDBPsX5dEF8Snfj1kXRlzYIFP3CIqkIhG7rgU3l4L2+AyOgpJBiRcwtOsYpGV5HnnyDdtjdVOqWxW9Opleq4IunglLhymtMbo3XQfS72LinA+tWZIA/YOYTVXuYbBHZ7h+JgRadmOlJseh+nOVSjfjKGJDb/mQmhBmS0PsFS7FlIJatUwNqU4v0CjnoHz1/t84zmCmy//hzSOQ0TE3unLVHuUMqbCIz3uTJULQvrDTgguoWYo2SSydluiSW2L0SVy+PZkhmiYFtSkXMxdZbaSbHBIUP3tudpeFUZXp42dhJDYqwCMvNMK9+RYBbizRQbQLB6Pyj8PAsGvvQMBE4prOpERQU9n3OqX8s/O8LTmc5asdCLnrTWF4vk36Bx1325H8RpxHSnFiW+3Yg6qGL4b/FY+S8bSeSCa28D+eM1a9B/dqDOIB8cxsRIQWSeA7F9gUX+pGbVKDS3lep+TyZzvoOA7Ta4q9bDI67s8g1OZYRcrBH66d9Ym4WkUY1UhDH2NAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuN",256,!1))[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8]);var p,f,h,m,v=128,y=4;switch(p=8*d.length){case 128:case 192:case 256:break;default:throw Error("Unsupported keyLength")}h=(f=p/32)+6;var b=function(e){var t=e[1];e[1]=e[5],e[5]=e[9],e[9]=e[13],e[13]=t,t=e[2],e[2]=e[10],e[10]=t,t=e[6],e[6]=e[14],e[14]=t,t=e[15],e[15]=e[11],e[11]=e[7],e[7]=e[3],e[3]=t},x=function(e){var t=e[13];e[13]=e[9],e[9]=e[5],e[5]=e[1],e[1]=t,t=e[10],e[10]=e[2],e[2]=t,t=e[14],e[14]=e[6],e[6]=t,t=e[3],e[3]=e[7],e[7]=e[11],e[11]=e[15],e[15]=t},C=function(e){var r=e[0],o=e[1],a=e[2],s=e[3],l=e[4],c=e[5],u=e[6],d=e[7],p=e[8],f=e[9],h=e[10],m=e[11],g=e[12],v=e[13],y=e[14],b=e[15];e[0]=t[r]^n[o]^a^s,e[1]=r^t[o]^n[a]^s,e[2]=r^o^t[a]^n[s],e[3]=n[r]^o^a^t[s],e[4]=t[l]^n[c]^u^d,e[5]=l^t[c]^n[u]^d,e[6]=l^c^t[u]^n[d],e[7]=n[l]^c^u^t[d],e[8]=t[p]^n[f]^h^m,e[9]=p^t[f]^n[h]^m,e[10]=p^f^t[h]^n[m],e[11]=n[p]^f^h^t[m],e[12]=t[g]^n[v]^y^b,e[13]=g^t[v]^n[y]^b,e[14]=g^v^t[y]^n[b],e[15]=n[g]^v^y^t[b]},k=function(e){var t=e[0],n=e[1],l=e[2],c=e[3],u=e[4],d=e[5],p=e[6],f=e[7],h=e[8],m=e[9],g=e[10],v=e[11],y=e[12],b=e[13],x=e[14],C=e[15];e[0]=r[t]^a[n]^o[l]^s[c],e[1]=s[t]^r[n]^a[l]^o[c],e[2]=o[t]^s[n]^r[l]^a[c],e[3]=a[t]^o[n]^s[l]^r[c],e[4]=r[u]^a[d]^o[p]^s[f],e[5]=s[u]^r[d]^a[p]^o[f],e[6]=o[u]^s[d]^r[p]^a[f],e[7]=a[u]^o[d]^s[p]^r[f],e[8]=r[h]^a[m]^o[g]^s[v],e[9]=s[h]^r[m]^a[g]^o[v],e[10]=o[h]^s[m]^r[g]^a[v],e[11]=a[h]^o[m]^s[g]^r[v],e[12]=r[y]^a[b]^o[x]^s[C],e[13]=s[y]^r[b]^a[x]^o[C],e[14]=o[y]^s[b]^r[x]^a[C],e[15]=a[y]^o[b]^s[x]^r[C]},w=function(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]},S=function(e,t,n){for(var r=0;r<e.length;r+=1)e[r]^=t[r+n]},_=function(e){var t=e[0];e[0]=e[1],e[1]=e[2],e[2]=e[3],e[3]=t},E=function(e){for(var t=0;t<e.length;t+=1)e[t]=l[e[t]]},P=function(e){for(var t=0;t<e.length;t+=1)e[t]=c[e[t]]},I=function(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]},T=function(e,t,n,r){e[4*n]=t[4*r],e[4*n+1]=t[4*r+1],e[4*n+2]=t[4*r+2],e[4*n+3]=t[4*r+3]};return m=function(e){for(var t,n=[],r=0;r<4*f;)n.push(e[r++]);for(r=f;r<y*(h+1);){if(t=I(n,r-1),r%f==0){var o=[u[r/f],0,0,0];_(t),E(t),t=w(t,o)}else f>6&&r%f==4&&E(t);var a=w(I(n,r-f),t);T(n,a,r,0),r+=1}return n}(d),{encrypt:function(e){var t,n=e;for(S(n,m,0),t=1;t<=h-1;t+=1)E(n),b(n),C(n),S(n,m,4*t*y);return E(n),b(n),S(n,m,4*h*y),n},decrypt:function(e){var t,n=e;for(S(n,m,4*h*y),t=h-1;t>=1;t-=1)x(n),P(n),S(n,m,4*t*y),k(n);return x(n),P(n),S(n,m,0),n},clear:function(){},keyLength:p,blockSize:v}}}}(),V=V||{};V.pkcsv7=function(e){return{pad:function(t){var n=t.length-1>=0?t.length-1:0,r=t[n],o=r.length;if(o===e){var a,s=[];for(a=0;a<e;a+=1)s.push(e);t.push(s)}else for(var l=e-o&255;r.length!==e;)r.push(l)},unpad:function(t){var n=!0;t.length%e!=0&&(n=!1);for(var r=t.slice(-e),o=r[r.length-1],a=0;a<e;a++){var s=e-a<=o,l=r[a]===o;n=(!s||l)&&n}var c=n?o:0;return t.length-=c,n}}};var U=function(e){var t=e.blockSize/8,n=V.pkcsv7(t),r=function(e){var t,n,r=[];for(t=0;t<e.length;t+=1){var o=e[t];for(n=0;n<o.length;n+=1)r.push(o[n])}return r};function o(e){for(var n=[],r=Math.floor((u=u.concat(e)).length/t),o=0;o<r;o++)n.push(u.slice(o*t,(o+1)*t));return u=u.slice(r*t),n}function a(t){for(var n,r=[],o=0;o<t.length;o++)n=g.xorVectors(c,t[o]),r.push(e.encrypt(n)),c=r[o];return r}function s(t){for(var n,r,o=[],a=0;a<t.length;a+=1)n=t[a].slice(0,t[a].length),r=e.decrypt(n),o.push(g.xorVectors(c,r)),c=t[a];return o}function l(){u=[],d=[],c=null}var c,u=[],d=[];return{init:function(e){if(e.length!==t)throw Error("Invalid iv size");c=e.slice()},encrypt:function(e){var t=a(o(e));return d=d.concat(r(t)),this.finishEncrypt()},processEncrypt:function(e){return r(a(o(e)))},finishEncrypt:function(){var e=1===u.length?[[u[0]]]:[u];n.pad(e);var t=d.concat(r(a(e)));return l(),t},decrypt:function(e){return this.processDecrypt(e),this.finishDecrypt()},processDecrypt:function(e){var t=s(o(e));d=d.concat(r(t))},finishDecrypt:function(){var e=d;return n.unpad(e),l(),e}}};if(void 0!==o){var j={};U.workerEncrypt=function(e){var t,n=e.workerid;return(j[n]||(j[n]=U(z.aes(e.keyData)),j[n].init(e.algorithm.iv)),"process"===e.operationSubType)?j[n].processEncrypt(e.buffer):("finish"===e.operationSubType?t=j[n].finishEncrypt():t=j[n].encrypt(e.buffer),j[n]=null,t)},U.workerDecrypt=function(e){var t,n=e.workerid;return(j[n]||(j[n]=U(z.aes(e.keyData)),j[n].init(e.algorithm.iv)),"process"===e.operationSubType)?void j[n].processDecrypt(e.buffer):("finish"===e.operationSubType?t=j[n].finishDecrypt():t=j[n].decrypt(e.buffer),j[n]=null,t)},U.generateKey=function(e){if(e.algorithm.length%8!=0)throw Error();return{type:"keyGeneration",keyData:Y.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},U.importKey=function(e){var t,n=8*e.keyData.length;if("jwk"===e.format)t=b.jwkToKey(e.keyData,e.algorithm,["k"]);else if("raw"===e.format){if(128!==n&&192!==n&&256!==n)throw Error("invalid key length (should be 128, 192, or 256 bits)");t={k:g.toArray(e.keyData)}}else throw Error("unsupported import format");return e.algorithm.length=8*t.k.length,{keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"},type:"keyImport"}},U.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw Error("unsupported export format")},o.register("importKey","AES-CBC",U.importKey),o.register("exportKey","AES-CBC",U.exportKey),o.register("generateKey","AES-CBC",U.generateKey),o.register("encrypt","AES-CBC",U.workerEncrypt),o.register("decrypt","AES-CBC",U.workerDecrypt)}var W=function(e){var t,n,r,o,a,s,l=g,c=[],u=e.encrypt(l.getVector(16)),d=l.getVector(16),p=[],f=[],h=0;function m(e,t){for(var n,r=Math.floor(t.length/16),o=0;o<r;o++)n=t.slice(16*o,16*o+16),d=y(l.xorVectors(d,n),e);return p=t.slice(16*r),d}function v(){var e=16*Math.ceil(h/16)-h,t=w(8*n.length),r=w(8*h);return m(u,p.concat(l.getVector(e)).concat(t).concat(r))}function y(e,t){var n,r,o,a=l.getVector(16),s=t.slice(0);for(o=0;o<128;o++){for(r=0,n=255&-x(e,o);r<16;r++)a[r]=a[r]^s[r]&n;n=255&-(1&s[15]),b(s),s[0]^=225&n}return a}function b(e){for(var t=e.length-1;t>0;t--)e[t]=(1&e[t-1])<<7|e[t]>>>1;return e[0]=e[0]>>>1,e}function x(e,t){return e[Math.floor(t/8)]>>7-t%8&1}function C(e){for(var t=256,n=1;n<=4;n++)t=(t>>>8)+e[e.length-n],e[e.length-n]=255&t;return e}function k(t,n){var r,o=Math.ceil(n.length/16),a=[];s!==t&&(s=t.slice());for(var c=0;c<o;c++){r=n.slice(16*c,16*c+16);var u=e.encrypt(s.slice());a=a.concat(l.xorVectors(r,u)),s=C(s)}return a}function w(e){return[0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e]}function S(e){var t=16*Math.ceil(n.length/16)-n.length;return e.concat(l.getVector(t))}function _(){h=0,c=[],f=[],d=l.getVector(16),p=[],s=t=n=null}return{init:function(e,s,c){if(n=s||[],(r=isNaN(c)?128:c)%8!=0)throw Error("DataError");if(12===(t=e).length)o=t.concat([0,0,0,1]);else{var p=16*Math.ceil(t.length/16)-t.length;o=m(u,t.concat(l.getVector(p+8)).concat(w(8*t.length))),d=l.getVector(16)}a=C(o.slice()),m(u,S(n))},encrypt:function(e){h=e.length;var t=k(a,e);m(u,t);var n=v(),s=k(o,n).slice(0,r/8);return _(),t.slice().concat(s)},decrypt:function(e,t){h=e.length;var n=k(a,e);m(u,e);var s=v(),c=k(o,s).slice(0,r/8);return(_(),l.arraysEqual(c,t))?n:null},processEncrypt:function(e){var t=(c=c.concat(e)).slice(0,16*Math.floor(c.length/16));h+=t.length,c=c.slice(t.length);var n=k(s||a,t);f=f.concat(n),m(u,n)},processDecrypt:function(e){var t=(c=c.concat(e)).slice(0,16*Math.floor((c.length-r/8)/16));h+=t.length,c=c.slice(t.length);var n=k(s||a,t);f=f.concat(n),m(u,t)},finishEncrypt:function(){var e=k(s,c);f=f.concat(e),h+=c.length;var t=v(),n=k(o,t).slice(0,r/8),a=f.slice().concat(n);return _(),a},finishDecrypt:function(){var e=Math.floor(r/8),t=c.slice(-e);c=c.slice(0,c.length-e);var n=k(s,c);f=f.concat(n),h+=c.length;var a=v(),u=k(o,a).slice(0,r/8),d=f.slice();return(_(),l.arraysEqual(u,t))?d:null}}};if(void 0!==o){var q={};W.encrypt=function(e){var t,n=e.workerid;return(q[n]||(q[n]=W(z.aes(e.keyData)),q[n].init(e.algorithm.iv,e.algorithm.additionalData,e.algorithm.tagLength)),"process"===e.operationSubType)?void q[n].processEncrypt(e.buffer):("finish"===e.operationSubType?t=q[n].finishEncrypt():t=q[n].encrypt(e.buffer),q[n]=null,t)},W.decrypt=function(e){var t,n=e.workerid;if(q[n]||(q[n]=W(z.aes(e.keyData)),q[n].init(e.algorithm.iv,e.algorithm.additionalData,e.algorithm.tagLength)),"process"===e.operationSubType)return void q[n].processDecrypt(e.buffer);if("finish"===e.operationSubType){if(t=q[n].finishDecrypt(),q[n]=null,null===t)throw Error("OperationError");return t}var r=e.algorithm.tagLength?Math.floor(e.algorithm.tagLength/8):16,o=e.buffer.slice(0,e.buffer.length-r),a=e.buffer.slice(-r);if(t=q[n].decrypt(o,a),q[n]=null,null===t)throw Error("OperationError");return t},W.generateKey=function(e){if(e.algorithm.length%8!=0)throw Error();return{type:"keyGeneration",keyData:Y.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},W.importKey=function(e){var t,n=8*e.keyData.length;if("jwk"===e.format)t=b.jwkToKey(e.keyData,e.algorithm,["k"]);else if("raw"===e.format){if(128!==n&&192!==n&&256!==n)throw Error("invalid key length (should be 128, 192, or 256 bits)");t={k:g.toArray(e.keyData)}}else throw Error("unsupported import format");return{type:"keyImport",keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"}}},W.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw Error("unsupported export format")},o.register("importKey","AES-GCM",W.importKey),o.register("exportKey","AES-GCM",W.exportKey),o.register("generateKey","AES-GCM",W.generateKey),o.register("encrypt","AES-GCM",W.encrypt),o.register("decrypt","AES-GCM",W.decrypt)}var G=function(e){return{encrypt:function(t){for(var n=[[0]],r=0;r<t.length;r+=8)n.push(t.slice(r,r+8));for(var o=[166,166,166,166,166,166,166,166],a=n.length-1,s=[],r=1;r<=a;r++)s[r]=n[r];for(var l=0;l<=5;l++)for(var r=1;r<=a;r++){var c=a*l+r,u=e.encrypt(o.concat(s[r]));s[r]=u.slice(8),o=u.slice(0,8);for(var d=7;c>0;d--,c>>>=8)o[d]^=255&c}for(var p=o,r=1;r<=a;r++)p=p.concat(s[r]);return p},decrypt:function(t){for(var n=[],r=0;r<t.length;r+=8)n.push(t.slice(r,r+8));for(var o=n.length-1,a=[],s=[],l=n[0],r=1;r<=o;r++)a[r]=n[r];for(var c=5;c>=0;c--)for(var r=o;r>=1;r--){for(var u=o*c+r,d=7;u>0;d--,u>>>=8)l[d]^=255&u;var p=e.decrypt(l.concat(a[r]));l=p.slice(0,8),a[r]=p.slice(8)}if("166,166,166,166,166,166,166,166"!==l.join(","))throw g.error("OperationError","");for(var r=1;r<=o;r++)s=s.concat(a[r]);return s}}};if(void 0!==o){var K={};G.workerEncrypt=function(e){var t,n=e.workerid;if(e.buffer.length%8!=0)throw g.error("DataError","The AES-KW input data length is invalid: not a multiple of 8 bytes");return K[n]||(K[n]=G(z.aes(e.keyData))),t=K[n].encrypt(e.buffer),K[n]=null,t},G.workerDecrypt=function(e){var t,n=e.workerid;if(e.buffer.length%8!=0)throw g.error("DataError","The AES-KW input data length is invalid: not a multiple of 8 bytes");return K[n]||(K[n]=G(z.aes(e.keyData))),t=K[n].decrypt(e.buffer),K[n]=null,t},G.generateKey=function(e){if(e.algorithm.length%8!=0)throw g.error("OperationError","AES key length must be 128, 192, or 256 bits");return{type:"keyGeneration",keyData:Y.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},G.importKey=function(e){var t,n=8*e.keyData.length;if("jwk"===e.format)t=b.jwkToKey(e.keyData,e.algorithm,["k"]);else if("raw"===e.format){if(128!==n&&192!==n&&256!==n)throw g.error("OperationError","AES key length must be 128, 192, or 256 bits");t={k:g.toArray(e.keyData)}}else throw TypeError("Invalid keyFormat argument");return e.algorithm.length=8*t.k.length,{keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"},type:"keyImport"}},G.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw TypeError("Invalid keyFormat argument")},o.register("importKey","AES-KW",G.importKey),o.register("exportKey","AES-KW",G.exportKey),o.register("generateKey","AES-KW",G.generateKey),o.register("encrypt","AES-KW",G.workerEncrypt),o.register("decrypt","AES-KW",G.workerDecrypt)}function X(){if(!(this instanceof X))throw Error("create MsrcryptoPrng object with new keyword");var e,t,n,r,o=!1,a=1,s=0x1000000000000;function l(e){var t;for(t=e.length-1;t>=0&&(e[t]+=1,e[t]>=256&&(e[t]=0),!e[t]);t-=1);}function c(){e=g.getVector(32),t=g.getVector(16),n=32,r=48,a=1}function u(e,t){if((t=t||[0]).length>r)throw Error("Incorrect entropy or additionalEntropy length");t=t.concat(g.getVector(r-t.length)),e=e.concat(g.getVector((r-e.length%r)%r));for(var n=0;n<e.length;n+=r)d(g.xorVectors(e.slice(n,n+r),t));a=1}function d(o){for(var a=[],s=new z.aes(e);a.length<r;){l(t);var c=t.slice(0,16),u=s.encrypt(c);a=a.concat(u)}e=(a=g.xorVectors(a,o)).slice(0,n),t=a.slice(n)}function p(n,o){if(n>=65536)throw Error("too much random requested");if(a>s)throw Error("Reseeding is required");if(o&&o.length>0){for(;o.length<r;)o=o.concat(g.getVector(r-o.length));d(o)}else o=g.getVector(r);for(var c=[],u=new z.aes(e);c.length<n;){l(t);var p=t.slice(0,t.length),f=u.encrypt(p);c=c.concat(f)}return c=c.slice(0,n),d(o),a+=1,c}return c(),{reseed:u,getBytes:function(e,t){if(!o)throw Error("can't get randomness before initialization");return p(e,t)},getNonZeroBytes:function(e,t){if(!o)throw Error("can't get randomness before initialization");for(var n,r=[];r.length<e;){n=p(e,t);for(var a=0;a<n.length;a+=1)0!==n[a]&&r.push(n[a])}return r.slice(0,e)},init:function(e,t){if(e.length<r)throw Error("Initial entropy length too short");c(),u(e,t),o=!0}}}var Y=new X;function Q(e){var t=48,n=[],r=128,o=0,a=new X,s=!1,l=!1,c=e;function u(){var r,o=["Cookie","RedirectUri","ETag","x-ms-client-antiforgery-id","x-ms-client-request-id","x-ms-client-session-id","SubscriptionPool"],u=[];for(r=0;r<t;r+=1)u[r]=Math.floor(256*Math.random());var d=c.crypto||c.msCrypto;if(d&&"function"==typeof d.getRandomValues&&e.Uint8Array){var h=new e.Uint8Array(t);d.getRandomValues(h),u=u.concat(Array.apply(null,h)),l=!0}if("u">typeof XMLHttpRequest){var m=new XMLHttpRequest;for(r=0;r<o.length;r+=1)try{var v=m.getResponseHeader(o[r]);if(v){var y=g.stringToBytes(v);u=u.concat(y)}}catch(e){}}!l&&p&&(u=u.concat(n.splice(0,n.length)),f.startCollectors()),s?a.reseed(u):a.init(u),s=!0}function d(e){for(var t=0;t<e.length;++t)n.push(e[t]);n.length>=r&&f.stopCollectors()}var p=e&&e.addEventListener||"u">typeof document&&document.attachEvent,f=function(){return{startCollectors:function(){if(!this.collectorsRegistered){if(e.addEventListener)e.addEventListener("mousemove",this.MouseEventCallBack,!0),e.addEventListener("load",this.LoadTimeCallBack,!0);else if(document.attachEvent)document.attachEvent("onmousemove",this.MouseEventCallBack),document.attachEvent("onload",this.LoadTimeCallBack);else throw Error("Can't attach events for entropy collection");this.collectorsRegistered=1}},stopCollectors:function(){this.collectorsRegistered&&(e.removeEventListener?(e.removeEventListener("mousemove",this.MouseEventCallBack,1),e.removeEventListener("load",this.LoadTimeCallBack,1)):e.detachEvent&&(e.detachEvent("onmousemove",this.MouseEventCallBack),e.detachEvent("onload",this.LoadTimeCallBack)),this.collectorsRegistered=0)},MouseEventCallBack:function(e){var t=new Date().valueOf(),n=e.x||e.clientX||e.offsetX||0,r=e.y||e.clientY||e.offsetY||0;d([255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,255&r,r>>8&255])},LoadTimeCallBack:function(){var e=new Date().valueOf();d([255&e,e>>8&255,e>>16&255,e>>24&255])}}}();return{init:function(){if(u(),!l&&!o&&p)try{f.startCollectors()}catch(e){}},reseed:function(e){a.reseed(e)},read:function(e){if(!s)throw Error("Entropy pool is not initialized.");var t=a.getBytes(e);return u(),t}}}var J=function(){var e=[],t=[],n=16384;function r(e){var t,n,r=Array(e+1),o=[],a=0|Math.sqrt(e);for(t=3;t<=a;t+=2)for(n=t*t;n<=e;n+=2*t)r[n]=0;for(t=3;t<=e;t+=2)0!==r[t]&&o.push(t);return o}function o(n){var r,o=t.length;for(r=0;r<o;r++)if((t[r]+n)%e[r]==0)return!1;return!0}function a(o){var a,s,l,c,u,d,p=o.length-1,f=C.DIGIT_BASE,h=o[p];for(0===e.length&&(e=r(n)),t=Array(d=e.length),a=0;a<d;a++){for(s=p,h<(u=e[a])?(l=h,s--):l=0;s>=0;)l=(c=l*f+o[s--])-(c/u|0)*u;t[a]=l}}function s(e){var t,n=0,r=0;if(C.isZero(e))return 0;for(n=0;0===e[n];n++);for(r=0,t=2;e[n]%t==0;t*=2,r++);return n*C.DIGIT_BITS+r}function l(e){var t=0,n=0,r=0;if(C.isZero(e))return 0;for(t=e.length-1;0===e[t];t--);for(r=1<<(n=C.DIGIT_BITS-1);n>0&&(e[t]&r)==0;r>>>=1,n--);return t*C.DIGIT_BITS+n}function c(e,t){var n,r=e,o=[];C.subtract(r,[1],o);var a=s(o),c=[];C.shiftRight(o,c,a);for(var d=l(r),p=C.MontgomeryMultiplier(r),f=1;f<=t;f++){var h=!1;do n=u(d);while(C.compareDigits(n,o)>=0);var m=[];if(p.modExp(n,c,m,!0),0!==C.compareDigits(m,[1])&&0!==C.compareDigits(m,o)){for(var g=1;g<a;g++){if(p.montgomeryMultiply(m,m,m),0===C.compareDigits(m,o)){h=!0;break}if(0===C.compareDigits(m,[1]))return!1}if(!1===h)return!1}}return!0}function u(e){var t=Math.ceil(e/8),n=Y.getBytes(t);return n[0]|=128,n[n.length-1]|=1,C.bytesToDigits(n)}return{generatePrime:function(e){var t=u(e),n=0,r=[];for(a(t);;){if(o(n)&&(C.add(t,[n],r),!0===c(r,6)))return r;n+=2}}}}(),Z=function(e){var t=g,n=e.hasOwnProperty("n")&&e.hasOwnProperty("d"),r=e.hasOwnProperty("p")&&e.hasOwnProperty("q"),o=e.n.length;function a(e){var n=C.digitsToBytes(e);return t.padFront(n,0,o),n}function s(e,t,n){var r=C.bytesToDigits(t),o=C.IntegerGroup(n),a=o.createElementFromBytes(e);return o.modexp(a,r).m_digits}function l(t){return a(s(t,e.d,e.n))}function c(t){var n=C.bytesToDigits,r=e.p,o=e.q,s=e.dp,l=e.dq,c=e.qi,u=n(r),d=n(o),p=Array(u.length+d.length),f=Array(u.length+1),h=Array(d.length+1),m=n(t),g=C.MontgomeryMultiplier,v=new g(e.ctxp?void 0:u,e.ctxp),y=new g(e.ctxq?void 0:d,e.ctxq);v.reduce(m,p),v.modExp(p,n(s),f),y.reduce(m,p),y.modExp(p,n(l),h);var b=C.subtract(f,h,p);return 0!==b&&C.subtract(h,f,p),C.modMul(p,n(c),u,m),0!==b&&C.subtract(u,m,m),C.multiply(m,d,p),C.add(h,p,f),a(f)}return{encrypt:function(t){return a(s(t,e.e,e.n,!0))},decrypt:function(e){if(r)return c(e);if(n)return l(e);throw Error("missing private key")}}},ee=function(e,t,n){var r,o,a,s=[],l=n.hashLen/8;for(a=0;a<=Math.floor(t/l);a+=1)r=[a>>>24&255,a>>>16&255,a>>>8&255,255&a],o=n.computeHash(e.concat(r)),s=s.concat(o);return s.slice(0,t)},et=et||{};et.oaep=function(e,t){var n=g,r=Y,o=e.n.length;if(null===t)throw Error("must supply hashFunction");function a(e,a){var s,l,c,u,d,p,f,h;if(e.length>o-2*(t.hashLen/8)-2)throw Error("Message too long.");return null==a&&(a=[]),s=t.computeHash(a),l=o-e.length-2*s.length-2,c=n.getVector(l),u=s.concat(c,[1],e),p=ee(d=r.getBytes(s.length),o-s.length-1,t),h=ee(f=n.xorVectors(u,p),s.length,t),e=[0].concat(n.xorVectors(d,h)).concat(f).slice()}function s(e,r){var a,s,l,c,u,d,p,f=0,h=0===e[0];for(r||(r=[]),a=t.computeHash(r),s=e.slice(1,a.length+1),c=ee(l=e.slice(a.length+1),a.length,t),u=ee(n.xorVectors(s,c),o-a.length-1,t),p=(d=n.xorVectors(l,u)).slice(0,a.length),h=h&&n.arraysEqual(a,p),d=d.slice(a.length);!d[f++];);return{valid:h,data:d.slice(f)}}return{pad:function(e,t){return a(e,t)},unpad:function(e,t){return s(e,t)}}};var et=et||{};et.pkcs1Encrypt=function(e){var t=Y,n=e.n.length;function r(e){if(e.length>n-11)throw Error("message too long");return[0,2].concat(t.getNonZeroBytes(n-e.length-3),[0],e)}function o(e){for(var t=0===e[0]&&2===e[1],n=2;n<10;n++)t=t&&!!e[n];return t}function a(e){var t,n=o(e),r=0;for(t=1;t<e.length;t+=1)r=r||+!e[t]&&t+1;return r=-n&&r,{data:e.slice(r),valid:n}}return{pad:function(e){return r(e)},unpad:function(e){return a(e)}}},et.pkcs1Sign=function(e,t){var n=g,r=e.n.length;function o(e){var o,a,s;if(a=t.computeHash(e.slice()),r<(s=(o=t.der.concat(a)).length)+11)throw Error("intended encoded message length too short");return[0,1].concat(n.getVector(r-s-3,255),[0],o)}return{sign:function(e){return o(e)},verify:function(e,t){var r=o(t);return n.arraysEqual(e,r)}}};var et=et||{};et.pss=function(e,t){var n=g,r=Y;function o(o,a,s){var l=C.bitLength(e.n)-1,c=Math.ceil(l/8),u=t.computeHash(o);if(a=s?s.length:null==a?u.length:a,c<u.length+a+2)throw Error("encoding error");for(var d=[0,0,0,0,0,0,0,0].concat(u,s=s||r.getBytes(a)),p=t.computeHash(d),f=n.getVector(c-s.length-p.length-2).concat([1],s),h=ee(p,c-p.length-1,t),m=n.xorVectors(f,h),g=0,v=0;v<8-(8*c-l);v++)g+=1<<v;return m[0]&=g,m.concat(p,[188])}function a(r,o,a){var s=C.bitLength(e.n)-1,l=Math.ceil(s/8),c=t.computeHash(o),u=c.length;if(a=null==a?u:a,l<u+a+2)return!1;var d=r.slice(0,l-u-1),p=r.slice(d.length,d.length+u),f=ee(p,l-u-1,t),h=n.xorVectors(d,f);h[0]&=255>>>8-(8*l-s);for(var m=0;m<l-u-a-2;m++)if(0!==h[m])return!1;if(1!==h[l-u-a-2])return!1;var g=[0,0,0,0,0,0,0,0].concat(c,h.slice(h.length-a)),v=t.computeHash(g);return n.arraysEqual(v,p)}return{sign:function(e,t,n){return o(e,t,n)},verify:function(e,t,n){return a(e,t,n)}}};var en=function(e,t,n){var r,o=Z(e);if(!t)throw Error("padding mode");function a(){if(!n||!n.computeHash)throw Error("missing hash function")}var s=null,l=null;switch(t){case"RSAES-PKCS1-V1_5":r=et.pkcs1Encrypt(e);break;case"RSASSA-PKCS1-V1_5":a(),r=et.pkcs1Sign(e,n);break;case"RSA-OAEP":a(),r=et.oaep(e,n);break;case"RSA-PSS":a(),r=et.pss(e,n);break;case"raw":r={pad:function(e){return e},unpad:function(e){return e}};break;default:throw Error("invalid mode")}return r&&(s=r.pad||r.sign,l=r.unpad||r.verify),{encrypt:function(e,t){var n;return n=null!==s?s(e,t):e.slice(),o.encrypt(n)},decrypt:function(e,t){var n=o.decrypt(e);if(null!==l){if(!1===(n=l(n,t)).valid)throw Error("OperationError");n=n.data}else n=n.slice(0);return n},signData:function(e,t,n){return o.decrypt(s(e,t,n))},verifySignature:function(e,t,n){var r=o.encrypt(e);return l(r,t,n)},generateKeyPair:function(e){genRsaKeyFromRandom(e)},mode:t}};void 0!==o&&(en.sign=function(e){var t=m[e.keyHandle.algorithm.hash.name.toUpperCase()](),n=e.algorithm.saltLength,r=e.algorithm.salt;return en(e.keyData,e.algorithm.name,t).signData(e.buffer,n,r)},en.verify=function(e){var t=m[e.keyHandle.algorithm.hash.name.toUpperCase()](),n=e.algorithm.saltLength;return en(e.keyData,e.algorithm.name,t).verifySignature(e.signature,e.buffer,n)},en.workerEncrypt=function(e){var t,n,r,o;switch(e.algorithm.name){case"RSAES-PKCS1-V1_5":t=(n=en(e.keyData,e.algorithm.name)).encrypt(e.buffer);break;case"RSA-OAEP":if(!(o=e.keyHandle.algorithm.hash.name))throw Error("unsupported hash algorithm");r=m[o.toUpperCase()](),t=(n=en(e.keyData,e.algorithm.name,r)).encrypt(e.buffer);break;default:throw Error("unsupported algorithm")}return t},en.workerDecrypt=function(e){var t,n,r;switch(e.algorithm.name){case"RSAES-PKCS1-V1_5":t=(n=en(e.keyData,e.algorithm.name)).decrypt(e.buffer);break;case"RSA-OAEP":var o=e.keyHandle.algorithm.hash.name;if(!o)throw Error("unsupported hash algorithm");r=m[o.toUpperCase()](),t=(n=en(e.keyData,e.algorithm.name,r)).decrypt(e.buffer);break;default:throw Error("unsupported algorithm")}return t},en.importKey=function(e){var t;if("jwk"===e.format)(t=b.jwkToKey(e.keyData,e.algorithm,["n","e","d","p","q","dp","dq","qi"])).d&&(t.ctxp=new C.MontgomeryMultiplier(C.bytesToDigits(t.p)).ctx,t.ctxq=new C.MontgomeryMultiplier(C.bytesToDigits(t.q)).ctx);else if("spki"===e.format){var n=v.parse(e.keyData);if(null==n)throw Error("invalid key data.");var r=n[1],o=v.parse(r.data.slice(r.header+1),!0);if(null==o)throw Error("invalid key data.");var a=o[0],s=o[1];if("INTEGER"!==a.type||"INTEGER"!==s.type)throw Error("invalid key data.");a=a.data.slice(a.header),s=s.data.slice(s.header),0===a[0]&&128&a[1]&&(a=a.slice(1)),0===s[0]&&128&s[1]&&(s=s.slice(1)),t={n:a,e:s}}else if("pkcs8"===e.format){var n=v.parse(e.keyData);if(null==n)throw Error("invalid key data.");var r=n[2],o=v.parse(r.data.slice(r.header),!0);if(null==o)throw Error("invalid key data.");var l=["n","e","d","p","q","dp","dq","qi"];t={};for(var c=1;c<o.length;c++){var u=o[c];0===(u=u.data.slice(u.header))[0]&&128&u[1]&&(u=u.slice(1)),t[l[c-1]]=u}}else throw Error("unsupported key import format.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:t.d||t.dq?"private":"public"}}},en.exportKey=function(e){var t="1.2.840.113549.1.1.1";if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format){var n=v.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{NULL:1}]},{"BIT STRING":{SEQUENCE:[{INTEGER:e.keyData.n},{INTEGER:e.keyData.e}]}}]});return{type:"keyExport",keyHandle:n}}if("pkcs8"===e.format){var n=v.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{NULL:1}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:0},{INTEGER:e.keyData.n},{INTEGER:e.keyData.e},{INTEGER:e.keyData.d},{INTEGER:e.keyData.p},{INTEGER:e.keyData.q},{INTEGER:e.keyData.dp},{INTEGER:e.keyData.dq},{INTEGER:e.keyData.qi}]}}]});return{type:"keyExport",keyHandle:n}}throw Error(e.format+" not implemented")},en.genRsaKeyFromRandom=function(e,t){var n=t?C.bytesToDigits(t):[65537];do{var r=J.generatePrime(e/2),o=J.generatePrime(e/2);if(C.compareDigits(o,r)>0){var a=r;r=o,o=a}var s=[];C.multiply(r,o,s);var l=[];C.subtract(r,[1],l);var c=[];C.subtract(o,[1],c);var u=[];C.multiply(l,c,u);var d=[];C.gcd(n,u,d);var p=0===C.compareDigits(d,C.One)}while(!p);var f=[];C.modInv(n,u,f);var h=[];C.reduce(f,l,h);var m=[];C.reduce(f,c,m);var g=[];C.modInv(o,r,g);var v=C.digitsToBytes;return{privateKey:{n:v(s),e:v(n),d:v(f),p:v(r),q:v(o),dp:v(h),dq:v(m),qi:v(g)},publicKey:{n:v(s),e:v(n)}}},en.generateKeyPair=function(e){if(void 0===e.algorithm.modulusLength)throw Error("missing modulusLength");var t,n,r,o=C.bytesToDigits;switch(e.algorithm.modulusLength){case 1024:case 2048:case 4096:t=en.genRsaKeyFromRandom(e.algorithm.modulusLength,e.algorithm.publicExponent);break;default:throw Error("invalid modulusLength")}var a=t.privateKey;a.ctxp=new C.MontgomeryMultiplier(o(a.p)).ctx,a.ctxq=new C.MontgomeryMultiplier(o(a.q)).ctx;var s=e.algorithm.name;return s.slice(s.indexOf("-")+1).toUpperCase(),"RSASSA-PKCS1-V1_5"===s||"RSA-PSS"===s?(n=["verify"],r=["sign"]):(n=["encrypt"],r=["decrypt"]),{type:"keyGeneration",keyPair:{publicKey:{keyData:t.publicKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:n,type:"public"}},privateKey:{keyData:t.privateKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:r,type:"private"}}}}},o.register("sign","RSASSA-PKCS1-V1_5",en.sign),o.register("sign","RSA-PSS",en.sign),o.register("verify","RSASSA-PKCS1-V1_5",en.verify),o.register("verify","RSA-PSS",en.verify),o.register("encrypt","RSAES-PKCS1-V1_5",en.workerEncrypt),o.register("decrypt","RSAES-PKCS1-V1_5",en.workerDecrypt),o.register("encrypt","RSA-OAEP",en.workerEncrypt),o.register("decrypt","RSA-OAEP",en.workerDecrypt),o.register("importKey","RSA-OAEP",en.importKey),o.register("importKey","RSAES-PKCS1-V1_5",en.importKey),o.register("importKey","RSASSA-PKCS1-V1_5",en.importKey),o.register("importKey","RSA-PSS",en.importKey),o.register("exportKey","RSA-OAEP",en.exportKey),o.register("exportKey","RSAES-PKCS1-V1_5",en.exportKey),o.register("exportKey","RSASSA-PKCS1-V1_5",en.exportKey),o.register("exportKey","RSA-PSS",en.exportKey),o.register("generateKey","RSA-OAEP",en.generateKeyPair),o.register("generateKey","RSAES-PKCS1-V1_5",en.generateKeyPair),o.register("generateKey","RSASSA-PKCS1-V1_5",en.generateKeyPair),o.register("generateKey","RSA-PSS",en.generateKeyPair));var er=function(){return{deriveBits:function(e){for(var t=m[e.algorithm.hash.name.toUpperCase()](),n=e.algorithm,r=eu.toArray(n.algorithmId).concat(eu.toArray(n.partyUInfo),eu.toArray(n.partyVInfo),eu.toArray(n.publicInfo)||[],eu.toArray(n.privateInfo)||[]),o=Math.ceil(e.length/t.hashLen),a=1,s=e.keyData.concat(r),l=[],c=0;c<o;c++){var u=eu.int32ToBytes(a++).concat(s),d=t.computeHash(u);l=l.concat(d)}return l.slice(0,e.length/8)}}}();void 0!==o&&(er.importKey=function(e){var t;if("raw"===e.format)t=g.toArray(e.keyData);else throw Error("unsupported import format");if(!1!==e.extractable)throw Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"CONCAT"},extractable:!1,usages:e.usages,type:"secret"}}},o.register("deriveBits","CONCAT",er.deriveBits),o.register("importKey","CONCAT",er.importKey));var eo=function(){return{deriveBits:function(e){var t,n,r=e.algorithm,o=e.keyData,a=e.length,s=r.iterations,l=Array.apply(null,r.salt),c=Math.ceil(a/8),u=[];switch(r.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw Error("Unsupported hash algorithm")}n=Math.ceil(c/t);var d=L.importKey({format:"raw",keyData:o,algorithm:{name:"HMAC",hash:r.hash}}),p={algorithm:r,keyHandle:d.keyHandle,keyData:d.keyData,workerid:0,buffer:null};function f(e,n,r){for(var o=[],a=e.concat([r>>>24&255,r>>>16&255,r>>>8&255,255&r]),s=0;s<n;s++){p.buffer=a,a=L.signHmac(p);for(var l=0;l<t;l++)o[l]=~~o[l]^a[l]}return o}for(var h=1;h<=n;h++)u=u.concat(f(l,s,h));return u.length=c,u}}}();void 0!==o&&(eo.importKey=function(e){var t;if("raw"===e.format)t=g.toArray(e.keyData);else throw Error("unsupported import format");if(!1!==e.extractable)throw Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"PBKDF2"},extractable:!1,usages:e.usages,type:"secret"}}},o.register("deriveBits","PBKDF2",eo.deriveBits),o.register("importKey","PBKDF2",eo.importKey));var ei=function(){return{deriveBits:function(e){var t,n,r,o=e.algorithm,a=e.keyData,s=e.length,l=o.salt,c=Math.ceil(s/8),u=[],d=g.toArray(o.info),p=[];switch(o.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw Error("Unsupported hash algorithm.")}if(null==o.salt)throw Error("HkdfParams: salt: Missing required property.");if(null==o.info)throw Error("HkdfParams: info: Missing required property.");if(s%8!=0)throw Error("The length provided for HKDF is not a multiple of 8 bits.");if(c>255*t)throw Error("The length provided for HKDF is too large.");for(0===l.length&&(l=g.getVector(t)),(r={workerid:0,keyHandle:{algorithm:o},keyData:l,buffer:a}).keyData=L.signHmac(r),n=0;n<Math.ceil(c/t);n++)r.buffer=p.concat(d).concat([1+n]),p=L.signHmac(r),u=u.concat(p);return u.slice(0,c)}}}();void 0!==o&&(ei.importKey=function(e){var t;if("raw"===e.format)t=g.toArray(e.keyData);else throw Error("unsupported import format");if(!1!==e.extractable)throw Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"HKDF"},extractable:!1,usages:e.usages,type:"secret"}}},o.register("deriveBits","HKDF",ei.deriveBits),o.register("importKey","HKDF",ei.importKey));var ea=function(){return{deriveBits:function(e){var t,n,r,o=e.algorithm,a=e.keyData,s=e.length,l=o.label,c=o.context,u=Math.ceil(s/8),d=[];switch(o.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw Error("Unsupported hash algorithm.")}if(null==o.label)throw Error("HkdfCtrParams: label: Missing required property.");if(null==o.context)throw Error("HkdfCtrParams: context: Missing required property.");if(s%8!=0)throw Error("The length provided for HKDF-CTR is not a multiple of 8 bits.");if(u>255*t)throw Error("The length provided for HKDF-CTR is too large.");r={workerid:0,keyHandle:{algorithm:o},keyData:a,buffer:a};var p=l.concat([0],c,eu.int32ToBytes(s));for(n=1;n<=Math.ceil(u/t);n++)r.buffer=eu.int32ToBytes(n).concat(p),d=d.concat(L.signHmac(r));return d.slice(0,u)}}}();void 0!==o&&(ea.importKey=function(e){var t;if("raw"===e.format)t=g.toArray(e.keyData);else throw Error("unsupported import format");if(!1!==e.extractable)throw Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"HKDF-CTR"},extractable:!1,usages:e.usages,type:"secret"}}},o.register("deriveBits","HKDF-CTR",ea.deriveBits),o.register("importKey","HKDF-CTR",ea.importKey));var es=function(e){var t=C.bytesToDigits,n=C.digitsToBytes,r=e,o=new w.EllipticCurveOperatorFp(e);return{generateKey:function(t){var a=[],s=Y.getBytes(e.order.length*C.DIGIT_NUM_BYTES);C.reduce(C.bytesToDigits(s),r.order,a);var l=r.allocatePointStorage();return o.scalarMultiply(a,r.generator,l),{privateKey:{x:n(l.x),y:n(l.y),d:n(a)},publicKey:{x:n(l.x),y:n(l.y)}}},deriveBits:function(e,n,a){var s=new w.EllipticCurvePointFp(r,!1,t(n.x),t(n.y),null,!1),l=r.allocatePointStorage();o.convertToJacobianForm(l),o.convertToMontgomeryForm(l),o.scalarMultiply(t(e.d),s,l),o.convertToAffineForm(l),o.convertToStandardForm(l);var c=C.digitsToBytes(l.x,!0,n.x.length);if(a&&8*c.length<a)throw Error("DataError");c=a?c.slice(0,Math.ceil(a/8)):c;var u=a%8,d=0===u?255:65280>>>u;return c[c.length-1]=c[c.length-1]&d,c},computePublicKey:function(e){r.generator.isInMontgomeryForm||o.convertToMontgomeryForm(r.generator);var a=r.allocatePointStorage();return o.convertToJacobianForm(a),o.convertToMontgomeryForm(a),o.scalarMultiply(t(e),r.generator,a),{x:n(a.x),y:n(a.y)}}}},el=null;void 0!==o&&(es.deriveBits=function(e){var t=w.createCurve(e.algorithm.namedCurve.toUpperCase()),n=e.keyData,r=e.additionalKeyData;return(el=es(t)).deriveBits(n,r,e.length)},es.deriveKey=function(e){throw Error("not supported")},es.generateKey=function(e){var t=(el=es(w.createCurve(e.algorithm.namedCurve.toUpperCase()))).generateKey();return{type:"keyPairGeneration",keyPair:{publicKey:{keyData:t.publicKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:[],type:"public"}},privateKey:{keyData:t.privateKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}}},es.importKey=function(e){try{if("raw"===e.format){var t=e.keyData;if(4!==t[0])throw Error("DataError");var n=~~((t.length-1)/2),r=e.algorithm.namedCurve.toUpperCase(),o=t.slice(1,n+1),a=t.slice(n+1);if(!1===w.validatePoint(r,o,a))throw Error("DataError");return{type:"keyImport",keyData:{x:o,y:a},keyHandle:{algorithm:e.algorithm,extractable:e.extractable||!1,usages:e.usages,type:"public"}}}if("jwk"===e.format){var s=b.jwkToKey(e.keyData,e.algorithm,["x","y","d","crv"]);if(s.d&&(!s.x||!s.y)){var l=w.createCurve(e.algorithm.namedCurve.toUpperCase()),c=(el=es(l)).computePublicKey(s.d);s.x=c.x,s.y=c.y}if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||s.extractable,usages:e.usages,type:s.d?"private":"public"}}}if("spki"===e.format){var u={"P-256":32,"P-384":48,"P-521":66},d=u[e.algorithm.namedCurve],p=v.parse(e.keyData);if(null==p)throw Error("invalid key data.");var f=p[1],h=f.data.slice(f.header+1);if(null==h||4!==h.shift()||h.length!==2*d)throw Error("invalid key data.");var o=h.slice(0,d),a=h.slice(d);if(!g.isBytes(o)||!g.isBytes(a))throw Error("invalid key data.");var s={x:o,y:a};if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("pkcs8"===e.format){var u={"P-256":32,"P-384":48,"P-521":66},d=u[e.algorithm.namedCurve],p=v.parse(e.keyData);if(null==p)throw Error("invalid key data.");var m=p[2],h=v.parse(m.data.slice(m.header));if(null==h)throw Error("invalid key data.");var y=h[1].data.slice(h[1].header),f=v.parse(h[2][0].data),h=f.data.slice(f.header+1);if(null==h||4!==h.shift()||h.length!==2*d)throw Error("invalid key data.");var o=h.slice(0,d),a=h.slice(d);if(!g.isBytes(o)||!g.isBytes(a))throw Error("invalid key data.");var s={x:o,y:a,d:y};if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}}catch(e){throw new g.error("DataError","")}},es.exportKey=function(e){var t="1.2.840.10045.2.1",n={"P-256":"1.2.840.10045.3.1.7 ","P-384":"1.3.132.0.34","P-521":"1.3.132.0.35"};if("raw"===e.format&&"public"===e.keyHandle.type)return{type:"keyExport",keyHandle:[4].concat(e.keyData.x,e.keyData.y)};if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format){var r=v.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}]});return{type:"keyExport",keyHandle:r}}if("pkcs8"===e.format){var r=v.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:1},{"OCTET STRING":e.keyData.d},{APPLICATION:[{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}],tag:1}]}}]});return{type:"keyExport",keyHandle:r}}throw Error("unsupported export format.")},o.register("importKey","ECDH",es.importKey),o.register("exportKey","ECDH",es.exportKey),o.register("generateKey","ECDH",es.generateKey),o.register("deriveBits","ECDH",es.deriveBits),o.register("deriveKey","ECDH",es.deriveKey));var ec=function(e){var t=C.bytesToDigits,n=C.digitsToBytes,r=new w.EllipticCurveOperatorFp(e),o=n(e.order).length,a=1===e.type;function s(t){var n=e.allocatePointStorage();return r.scalarMultiply(t,e.generator,n),{publicKey:n,privateKey:t}}function l(t){var n=[];return t||(t=Y.getBytes(e.order.length*C.DIGIT_NUM_BYTES)),C.reduce(C.bytesToDigits(t),e.order,n),s(n)}function c(n){n.length>o&&(n.length=o);var r=t(n);if(a){var s=8-e.rbits%8;C.shiftRight(r,r,s)}return C.reduce(r,e.order,r),r}function u(r,a,s){s||(s=l());var u=s.publicKey.x,d=s.privateKey,p=t(r.d),f=c(a.slice()),h=[],m=[],v=null;C.reduce(u,e.order,u),C.modMul(u,p,e.order,h),C.add(h,f,h),C.reduce(h,e.order,h),C.modInvCT(d,e.order,m),C.modMul(h,m,e.order,h);var y=g.padFront(n(u,!0,o),0,o),b=g.padFront(n(h,!0,o),0,o);return y.concat(b)}return{createKey:function(e){return s(t(e))},generateKey:l,sign:u,verify:function(n,o,s){var l=Math.floor(o.length/2),u=t(o.slice(0,l)),d=t(o.slice(l)),p=c(s.slice()),f=[],h=[],m=new w.EllipticCurvePointFp(e,!1,t(n.x),t(n.y),null,!1);C.modInv(d,e.order,d),C.modMul(p,d,e.order,f),C.modMul(u,d,e.order,h);var g=e.allocatePointStorage(),v=e.allocatePointStorage();return a?(C.add(f,f,f),C.add(f,f,f),C.reduce(f,e.order,f),r.scalarMultiply(f,e.generator,g,!1),r.scalarMultiply(h,m,v,!1),r.convertToExtendedProjective(g),r.convertToExtendedProjective(v),r.add(v,g,g),r.normalize(g)):(r.scalarMultiply(f,e.generator,g),r.scalarMultiply(h,m,v),r.convertToJacobianForm(g),r.convertToMontgomeryForm(g),r.convertToMontgomeryForm(v),r.mixedAdd(g,v,g),r.convertToAffineForm(g),r.convertToStandardForm(g)),!g.isInfinity&&(C.reduce(g.x,e.order,g.x),0===C.compareDigits(g.x,u))}}};void 0!==o&&(ec.sign=function(e){g.checkParam(e.algorithm.hash,"Object","algorithm.hash"),g.checkParam(e.algorithm.hash.name,"String","algorithm.hash.name"),g.checkParam(e.keyHandle.algorithm.namedCurve,"String","p.keyHandle.algorithm.namedCurve");var t=e.algorithm.hash.name,n=w.createCurve(e.keyHandle.algorithm.namedCurve.toUpperCase()),r=m[t.toUpperCase()]().computeHash(e.buffer);return ec(n).sign(e.keyData,r)},ec.verify=function(e){var t=e.algorithm.hash.name,n=w.createCurve(e.keyHandle.algorithm.namedCurve.toUpperCase()),r=m[t.toUpperCase()]().computeHash(e.buffer);return ec(n).verify(e.keyData,e.signature,r)},ec.generateKey=function(e){var t=ec(w.createCurve(e.algorithm.namedCurve.toUpperCase())).generateKey(),n=C.digitsToBytes;function r(e){return e}var o=r(n(t.publicKey.x)),a=r(n(t.publicKey.y)),s=r(n(t.privateKey));return{type:"keyPairGeneration",keyPair:{publicKey:{keyData:{x:o,y:a},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:["verify"],type:"public"}},privateKey:{keyData:{x:o,y:a,d:s},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:["sign"],type:"private"}}}}},ec.importKey=function(e){if("raw"===e.format){var t=e.keyData;if(4!==t[0])throw Error("DataError");var n=~~((t.length-1)/2),r=e.algorithm.namedCurve.toUpperCase(),o=t.slice(1,n+1),a=t.slice(n+1);if(!1===w.validatePoint(r,o,a))throw Error("DataError");return{type:"keyImport",keyData:{x:o,y:a},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("jwk"===e.format){var s=b.jwkToKey(e.keyData,e.algorithm,["x","y","d","crv"]);if(s.d&&(!s.x||!s.y)){var l=ec.curves[e.algorithm.namedCurve](),c=ec(l).computePublicKey(s.d);s.x=c.x,s.y=c.y}if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||s.extractable,usages:e.usages,type:s.d?"private":"public"}}}if("spki"===e.format){var u={"P-256":32,"P-384":48,"P-521":66},d=u[e.algorithm.namedCurve],p=v.parse(e.keyData);if(null==p)throw Error("invalid key data.");var f=p[1],h=f.data.slice(f.header+1);if(null==h||4!==h.shift()||h.length!==2*d)throw Error("invalid key data.");var o=h.slice(0,d),a=h.slice(d);if(!g.isBytes(o)||!g.isBytes(a))throw Error("invalid key data.");var s={x:o,y:a};if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("pkcs8"===e.format){var u={"P-256":32,"P-384":48,"P-521":66},d=u[e.algorithm.namedCurve],p=v.parse(e.keyData);if(null==p)throw Error("invalid key data.");var m=p[2],h=v.parse(m.data.slice(m.header));if(null==h)throw Error("invalid key data.");var y=h[1].data.slice(h[1].header),f=v.parse(h[2][0].data),h=f.data.slice(f.header+1);if(null==h||4!==h.shift()||h.length!==2*d)throw Error("invalid key data.");var o=h.slice(0,d),a=h.slice(d);if(!g.isBytes(o)||!g.isBytes(a))throw Error("invalid key data.");var s={x:o,y:a,d:y};if(!1===w.validatePoint(e.algorithm.namedCurve.toUpperCase(),s.x,s.y))throw Error("DataError");return{type:"keyImport",keyData:s,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}},ec.exportKey=function(e){var t="1.2.840.10045.2.1",n={"P-256":"1.2.840.10045.3.1.7 ","P-384":"1.3.132.0.34","P-521":"1.3.132.0.35"};if("raw"===e.format&&"public"===e.keyHandle.type)return{type:"keyExport",keyHandle:[4].concat(e.keyData.x,e.keyData.y)};if("jwk"===e.format)return{type:"keyExport",keyHandle:b.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format){var r=v.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}]});return{type:"keyExport",keyHandle:r}}if("pkcs8"===e.format){var r=v.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:1},{"OCTET STRING":e.keyData.d},{APPLICATION:[{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}],tag:1}]}}]});return{type:"keyExport",keyHandle:r}}throw Error("unsupported export format.")},o.register("sign","ECDSA",ec.sign),o.register("verify","ECDSA",ec.verify),o.register("generateKey","ECDSA",ec.generateKey),o.register("importKey","ECDSA",ec.importKey),o.register("exportKey","ECDSA",ec.exportKey));var eu=g;n=function(){function e(){var e;return{postMessage:function(t){try{t.workerid=this.id,e=y.jsCryptoRunner({data:t})}catch(e){this.onerror({data:e,type:"error"});return}this.onmessage({data:e})},onmessage:null,onerror:null,terminate:function(){}}}var t=function(e){return{process:function(t){return e.process(t)},finish:function(){return e.finish()},abort:function(){return e.abort()}}};function n(e){var t,n,r;return{dispatchEvent:function(o){if("error"===o.type){r&&(o.data&&(o.data.stack="Error")&&(o.data.code=0),r.apply(t,[o.data||o]));return}"process"===o.data.type||"finish"===o.data.type?e(o.data.result,!0):(this.result=e(o.data),n.apply(t,[this.result]))},promise:t=new Promise(function(e,t){n=e,r=t}),result:null}}function r(){return n(function(e){var t,n;switch(e.type){case"keyGeneration":case"keyImport":case"keyDerive":if(e.keyPair)return u.add(e.keyPair.publicKey.keyHandle,e.keyPair.publicKey.keyData),u.add(e.keyPair.privateKey.keyHandle,e.keyPair.privateKey.keyData),{publicKey:e.keyPair.publicKey.keyHandle,privateKey:e.keyPair.privateKey.keyHandle};return u.add(e.keyHandle,e.keyData),e.keyHandle;case"keyExport":return e.keyHandle;case"keyPairGeneration":return n=e.keyPair.privateKey,t=e.keyPair.publicKey,u.add(t.keyHandle,t.keyData),u.add(n.keyHandle,n.keyData),{publicKey:t.keyHandle,privateKey:n.keyHandle};default:throw Error("Unknown key operation")}})}function s(e){return d&&e.pop?new Uint8Array(e).buffer:e}function c(e){var t=[],r=n(function(e,n){return(e=e&&s(e),n)?void t.resolve(e):e});return r.stream=e.algorithm.stream,t.add=function(e){var n,r,o=new Promise(function(e,t){n=e,r=t});return o.label=e,t.push({resolve:n,reject:r,promise:o}),o},t.resolve=function(e){var n=t.shift();n.resolve.apply(n.promise,[e])},r.process=function(n){return e.operationSubType="process",e.buffer=eu.toArray(n),p.continueJob(this,eu.clone(e)),t.add("process")},r.finish=function(){return e.operationSubType="finish",e.buffer=[],p.continueJob(this,eu.clone(e)),t.add("finish")},r.abort=function(){p.abortJob(this)},r.algorithm=e.algorithm||null,r.key=e.keyHandle||null,r}var u=[];u.add=function(e,t){u.push({keyHandle:e,keyData:t})},u.remove=function(e){for(var t=0;t<u.length;t+=1)if(u[t].keyHandle===e){u=u.splice(t,1);return}},u.lookup=function(e){for(var t=0;t<u.length;t+=1)if(u[t].keyHandle===e)return u[t].keyData;return null};var p=function(){var t=12,n=2,r=[],o=[],s=0,c=0,u=[],d="u"<typeof setImmediate?setTimeout:setImmediate;function p(){u.shift()()}function h(e){u.push(e),d(p,0)}var m=l?"available":"unavailable";function g(){v(!f);for(var e=0;e<r.length;e++)if(!r[e].busy)return r[e];return null}function v(e){for(var t=r.length-1;t>=0;t-=1)r[t].isWebWorker===e&&(r[t].terminate(),r.splice(t,1))}function y(){for(var e=0,t=0;t<r.length;t++)r[t].busy||(e+=1);return e}function b(e){r.push(e)}function x(e){for(var t=0;t<r.length;t++)if(r[t]===e){e.terminate(),r.splice(t,1);return}}function C(e){for(var t=0;t<r.length;t++)if(r[t].operation===e)return r[t];return null}function k(e,t){o.push({operation:e,data:t,id:s++})}function w(e){if(e.busy=!1,f)if(o.length>0){var t,r=o.shift();if(P(r.operation,r.data),"process"===r.data.operationSubType){for(t=0;t<o.length;t++)r.operation===o[t].operation&&P(o[t].operation,o[t].data);for(t=o.length-1;t>=0;t--)r.operation===o[t].operation&&o.splice(t,1)}}else y()>n&&x(e)}function S(t){var n;if("pending"===m)throw Error("Creating new worker while workerstatus=pending");if("ready"===m)try{(n=new Worker(a)).postMessage({prngSeed:Y.getBytes(48)}),n.isWebWorker=!0}catch(t){f=!1,m="failed",n.terminate(),(n=e()).isWebWorker=!1}else(n=e()).isWebWorker=!1;return n.operation=t,n.id=c++,n.busy=!1,n.onmessage=function(e){if(!0!==e.data.initialized){var t=n.operation;e.target||(e.target={data:n.data});for(var r=0;r<o.length;r++)if(o[r].operation===n.operation){var a=o[r];o.splice(r,1),I(n,a.data);return}e.data.hasOwnProperty("type")&&"process"===e.data.type||w(n),t.dispatchEvent(e)}},n.onerror=function(e){var t=n.operation;w(n),t.dispatchEvent(e)},b(n),n}function _(e){if("unavailable"===m)return void eu.consoleLog("web workers not available in this browser.");if((!0!==e||"ready"!==m)&&(!1!==e||"available"!==m)){if(!1===e&&"ready"===m){f=!1,m="available",eu.consoleLog("web workers disabled.");return}if("pending"!==m){m="pending";var t=new Worker(a);t.addEventListener("message",n,!1),t.addEventListener("error",n,!1),t.postMessage({prngSeed:Y.getBytes(48)})}}function n(e){var r=!!(e.data&&!0===e.data.initialized);if(t.removeEventListener("message",n,!1),t.removeEventListener("error",n,!1),t.terminate(),m=r?"ready":"failed",f=r,eu.consoleLog("web worker initialization "+(r?"succeeded. Now using web workers.":"failed. running synchronously."+(e.message||""))),o.length>0){var a=o.shift();E(a.operation,a.data)}}}function E(e,n){var o=null;if("pending"===m||(o=g(),f&&null===o&&r.length>=t))return void k(e,n);if(null===o&&(o=S(e)),null===o)throw k(e,n),Error("could not create new worker");o.operation=e,o.busy=!0,n.workerid=o.id,I(o,n)}function P(e,t){var n=C(e);n?I(n,t):E(e,t)}function I(e,t){t.workerid=e.id,f?e.postMessage(t):h(function(t){return function(){return e.postMessage(t)}}(t))}return{runJob:E,continueJob:P,abortJob:function(e){var t=C(e);t&&x(t)},useWebWorkers:_}}();function h(e,t){if(!o.exists(e,t))throw Error("unsupported algorithm")}var m=[{name:"algorithm",type:"Object",required:!0},{name:"keyHandle",type:"Object",required:!0},{name:"buffer",type:"Array",required:!1},{name:"signature",type:"Array",required:!0},{name:"format",type:"String",required:!0},{name:"keyData",type:"Object",required:!0},{name:"extractable",type:"Boolean",required:!1},{name:"usages",type:"Array",required:!1},{name:"derivedKeyType",type:"Object",required:!0},{name:"length",type:"Number",required:!1},{name:"extractable",type:"Boolean",required:!0},{name:"usages",type:"Array",required:!0},{name:"keyData",type:"Array",required:!0}],v={encrypt:[0,1,2],decrypt:[0,1,2],sign:[0,1,2],verify:[0,1,3,2],digest:[0,2],generateKey:[0,6,7],importKeyRaw:[4,12,0,10,11],importKeyJwk:[4,5,0,10,11],exportKey:[0,4,1,6,7],deriveKey:[0,1,8,6,7],deriveBits:[0,1,9],wrapKey:[1,1,0],unwrapKey:[2,0,1,6,7]};function b(e){var t=u.lookup(e);if(!t)throw Error("key not found");return t}function x(e,t){var n,r,o,a,s={operationType:e};for("importKey"===e&&("raw"===t[0]||"spki"===t[0]||"pkcs8"===t[0])&&(e="importKeyRaw"),"importKey"===e&&"jwk"===t[0]&&(e="importKeyJwk"),n=v[e],a=0;a<n.length;a+=1){if(r=m[n[a]],null==(o=t[a]))if(!r.required)continue;else throw Error(r.name);if(o.subarray&&(o=eu.toArray(o)),"ArrayBuffer"===eu.getObjectType(o)&&(o=eu.toArray(o)),g.getObjectType(o)!==r.type)throw Error(r.name);"algorithm"===r.name&&(o.name=o.name.toUpperCase(),o.iv&&(o.iv=eu.toArray(o.iv)),o.publicExponent&&(o.publicExponent=eu.toArray(o.publicExponent)),o.salt&&(o.salt=eu.toArray(o.salt)),o.additionalData&&(o.additionalData=eu.toArray(o.additionalData)),o.hash&&!o.hash.name&&"String"===eu.getObjectType(o.hash)&&(o.hash={name:o.hash})),s.hasOwnProperty(r.name)?s[r.name+"1"]=o:s[r.name]=o}return s}function C(e,n,o){var a=x(e,n);h(e,a.algorithm.name),a.keyHandle&&(a.keyData=b(a.keyHandle)),a.keyHandle1&&(a.keyData1=b(a.keyHandle1)),a.algorithm&&a.algorithm.public&&(a.additionalKeyData=b(a.algorithm.public));var s=o?r(a):c(a);return((o||a.buffer||"deriveBits"===e||"wrapKey"===e)&&p.runJob(s,a),s.stream)?Promise.resolve(t(s)):s.promise}return{publicMethods:{encrypt:function(e,t,n){return C("encrypt",arguments,0)},decrypt:function(e,t,n){return C("decrypt",arguments,0)},sign:function(e,t,n){return C("sign",arguments,0)},verify:function(e,t,n,r){return C("verify",arguments,0)},digest:function(e,t){return C("digest",arguments,0)},generateKey:function(e,t,n){return C("generateKey",arguments,1)},deriveKey:function(e,t,n,r,o){var a=this.deriveBits,s=this.importKey;return new Promise(function(l,c){var u;switch(n.name.toUpperCase()){case"AES-CBC":case"AES-GCM":u=n.length;break;case"HMAC":u=n.length||({"SHA-1":512,"SHA-224":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024})[n.hash.name.toUpperCase()];break;default:c(Error("No Supported"));return}a(e,t,u).then(function(e){return s("raw",e,n,r,o)}).then(function(e){l(e)}).catch(function(e){c(e)})})},deriveBits:function(e,t,n){return C("deriveBits",arguments,0)},importKey:function(e,t,n,r,o){return C("importKey",arguments,1)},exportKey:function(e,t){return C("exportKey",[t.algorithm,e,t],1)},wrapKey:function(e,t,n,r){var o=this.encrypt,a=this.exportKey;return new Promise(function(s,l){!1===t.extractable||0>n.usages.indexOf("wrapKey")||n.algorithm.name.toUpperCase()!==r.name?l(Error("InvalidAccessError")):a(e,t).then(function(t){return console.log(eu.toBase64(t)),o(r,n,"jwk"===e?eu.stringToBytes(JSON.stringify(t,null,0)):t)}).then(function(e){s(e)}).catch(function(e){l(e)})})},unwrapKey:function(e,t,n,r,o,a,s){var l=this.decrypt,c=this.importKey;return new Promise(function(u,d){0>n.usages.indexOf("unwrapKey")||n.algorithm.name.toUpperCase()!==r.name?d(Error("InvalidAccessError")):l(r,n,t).then(function(t){return c(e,"jwk"===e?JSON.parse(eu.bytesToString(t)):t,o,a,s)}).then(function(e){u(e)}).catch(function(e){d(e)})})}},internalMethods:{useWebWorkers:p.useWebWorkers}}}();var ed=function(){var e=g;return{wrapKey:function(t){var n=en(t.keyData1,t.keyHandle1.algorithm.name,m["SHA-1"])(),r=128,o=b.keyToJwkOld(t.keyHandle,t.keyData),a={alg:t.keyHandle1.algorithm.name.toUpperCase(),enc:"A128GCM"},s=e.toBase64(JSON.stringify(a),!0),l=Y.getBytes(32),c=n.encrypt(l),u=e.toBase64(c,!0),d=Y.getBytes(12),p=e.toBase64(d,!0),f=s.concat(".",u,".",p),h=W(z.aes(l));h.init(d,e.stringToBytes(f),r);var g=h.encrypt(o),v=g.slice(-(r/8)),y={recipients:[{header:s,encrypted_key:u,integrity_value:e.toBase64(v,!0)}],initialization_vector:p,ciphertext:e.toBase64(g.slice(0,g.length-v.length),!0)};return e.stringToBytes(JSON.stringify(y))},unwrapKey:function(t){var n=e.fromBase64,r=JSON.parse(String.fromCharCode.apply(null,t.buffer));e.fromBase64(r.recipients[0].header);var o=n(r.recipients[0].encrypted_key),a=n(r.recipients[0].integrity_value),s=n(r.initialization_vector),l=n(r.ciphertext),c=m["SHA-1"](),u=en(t.keyData,t.keyHandle.algorithm.name,c).decrypt(o),d=r.recipients[0].header.concat(".",r.recipients[0].encrypted_key,".",r.initialization_vector),p=W(z.aes(u));p.init(s,e.stringToBytes(d),128);var f=p.decrypt(l,a),h=b.jwkToKey(f,t.algorithm,["k"]);return{type:"keyImport",keyData:h.k,keyHandle:{algorithm:{name:t.algorithm.name},extractable:t.extractable||h.extractable,usages:t.usages,type:"secret"}}}}}();void 0!==o&&(o.register("wrapKey","AES-GCM",ed.wrapKey),o.register("unwrapKey","AES-CBC",ed.unwrapKey));var ep={subtle:n?n.publicMethods:null,getRandomValues:function(e){var t,n=Y.getBytes(e.length);for(t=0;t<e.length;t+=1)e[t]=n[t];return e},initPrng:function(e){var t=Object.prototype.toString.call(e);if("[object Array]"!==t&&"[object Uint8Array]"!==t)throw Error("entropyData must be a Array or Uint8Array");r&&r.reseed(e),Y.reseed(r.read(48)),s=!0},toBase64:function(e,t){return g.toBase64(e,t)},fromBase64:function(e){return g.fromBase64(e)},textToBytes:function(e){return g.stringToBytes(e)},bytesToText:function(e){return g.bytesToString(e)},asn1:v,url:a,version:t,useWebWorkers:function(e){return n?n.internalMethods.useWebWorkers(e):null}};(r=r||new Q(e)).init();var ef=r.read(48);return Y.init(ef),ep}()}!function(e){e.default="default",e.black="black",e.white="white"}(e$||(e$={})),function(e){e.black="black",e.white="white",e.whiteOutline="white-outline"}(eQ||(eQ={})),function(e){e.book="book",e.buy="buy",e.checkout="checkout",e.donate="donate",e.order="order",e.pay="pay",e.plain="plain",e.subscribe="subscribe"}(eJ||(eJ={})),function(e){e.book="book",e.buy="buy",e.checkOut="check-out",e.donate="donate",e.order="order",e.pay="pay",e.plain="plain",e.subscribe="subscribe"}(eZ||(eZ={})),function(e){e[e.PayPal=0]="PayPal",e[e.Tokenization=1]="Tokenization"}(e0||(e0={}));var rq=Object.freeze({__proto__:null,msrCrypto:rW});function rG(e){var t=window.crypto||window.msrCrypto||e;v()&&(t=window.msCrypto);var n=t.subtle,r=function(e){return t.getRandomValues(e)},o={name:"RSA-OAEP",hash:{name:"SHA-256"}},a=void 0;function s(e,t,r,s){f(e.dataProtection.parameters.publicKey);var c=e.token_set||void 0,u=void 0,d="jwk",p="Public Jwk key import failure",h=v(),m="encrypt";if(h){var g=y(JSON.stringify(a)),b=n.importKey(d,g,o,!0,[m]);b.onerror=function(e){s(p+" in IE11: "+e.target.result)},b.oncomplete=function(e){l(u=e.target.result,t,c,r,s,h)}}else n.importKey(d,a,o,!0,[m]).then(function(e){l(u=e,t,c,r,s,h)}).catch(function(e){s(p+": "+e)})}function l(e,t,n,o,s,l){var u=r(new Uint8Array(32)),d=r(new Uint8Array(12)),p=y(JSON.stringify({alg:"RSA-OAEP-256",enc:"A256GCM",typ:"JOSE",kid:a.kid,uuid:m(),iat:Math.floor(Date.now()/1e3).toString()})),f=y(C(p,!0));c(e,t,{aesGcmParams:{name:"AES-GCM",iv:d,additionalData:f,tagLength:128},rsaParams:{name:"RSA-OAEP"},serializedHeader:p,aesKeyData:u,nonce:d,aad:f},n,o,s,l)}function c(e,t,n,r,o,a,s){var l=y(t,a);s?d(e,l,n,r,o,a):p(e,l,n,r,o,a)}function u(e,t,n,r,o){var s=e.slice(0,e.byteLength-16),l=e.slice(e.byteLength-16);r({header:g(n.serializedHeader,o),key_version:a.kid,session_key:g(t,o),iv:g(n.nonce,o),payload:g(s,o),tag:g(l,o),authenticated_data:g(n.aad,o)})}function d(e,t,r,o,a,s){var l=n.importKey("raw",r.aesKeyData,{name:"AES-GCM"},!0,["encrypt"]);l.onerror=function(e){s(keyImportFailureMessage+" in IE11: "+e.target.result)},l.oncomplete=function(l){var c=l.target.result,d=n.encrypt(r.aesGcmParams,c,t);d.onerror=function(e){s(o+" Encrypt data failure in IE11: "+e.target.result)},d.oncomplete=function(t){var l=n.encrypt(r.rsaParams,e,r.aesKeyData);l.onerror=function(e){s(o+" Encrypt key failure in IE11: "+e.target.result)},l.oncomplete=function(e){u(t,e,r,a,s)}}}}function p(e,t,r,o,a,s){n.importKey("raw",r.aesKeyData,{name:"AES-GCM"},!0,["encrypt"]).then(function(l){n.encrypt(r.aesGcmParams,l,t).then(function(t){t.slice(0,t.byteLength-16),t.slice(t.byteLength-16),n.encrypt(r.rsaParams,e,r.aesKeyData).then(function(e){u(t,e,r,a,s)}).catch(function(e){s(o+" Encrypt key failure: "+e)})}).catch(function(e){s(o+"Encrypt data failure: "+e)})}).catch(function(e){s(o+"Encrypt data failure: "+e)})}function f(e){a=JSON.parse(e)}function h(){return r(new Uint16Array(1))[0].toString(16)}function m(){return h()+h()+"-"+h()+"-"+h()+"-"+h()+"-"+h()+h()+h()}function g(e,t){return C(y(e,t))}function v(){var e;return(null==(e=null==navigator?void 0:navigator.userAgent)?void 0:e.indexOf("rv:11.0"))>-1&&void 0!=window.msCrypto}function y(e,t){var n="u">typeof Uint8Array,r=Object.prototype.toString.call(e);switch(r=r.substring(8,r.length-1)){case"Array":return n?new Uint8Array(e):e;case"ArrayBuffer":case"Uint16Array":case"Uint32Array":return new Uint8Array(e);case"Uint8Array":return e;case"String":for(var o=n?new Uint8Array(e.length):Array(e.length),a=0;a<e.length;a+=1)o[a]=e.charCodeAt(a);return o;default:t("toSupportedArray : unsupported data type "+r)}}var b="u">typeof btoa,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function C(e,t){var n,r,o,a,s,l,c,u,d="";if(t||(t=!1),(e.pop||e.subarray)&&(e=String.fromCharCode.apply(null,e)),b)d=btoa(e);else for(u=0;u<e.length;u+=3)n=e.charCodeAt(u),r=e.charCodeAt(u+1),o=e.charCodeAt(u+2),a=n>>2,s=(3&n)<<4|r>>4,l=(15&r)<<2|o>>6,c=63&o,isNaN(r)?l=c=64:isNaN(o)&&(c=64),d=d+x.charAt(a)+x.charAt(s)+x.charAt(l)+x.charAt(c);return t?d.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,""):d}return{Encrypt:function(e,t,n,r){s(e,t,function(e){n(e)},function(e){r(e)})},SetPublicKey:f,EncryptedOutput:void 0}}var rK=Object.freeze({__proto__:null,TokenEncrypt:rG}),rX=new(function(){return function(){var e=this;this.doServerTokenization=function(e,t,n,r,o){return new Promise(function(a,s){var c=ra.virtualEndpoints.tokenization,u=ty.buildUrl(ra.getServiceEndpoint(c.endpoint),[t,"getToken"]);return rS.post(e,!0,u,rS.getDefaultHttpHeaders(e),'{ "data": "'+n+'" }',function(e){a({data:e.data})},function(e){(e=e||{status:l.Fail}).failureObject=e.failureObject||{},e.failureObject.code=T.tokenizationFailed;var t=" ";if(ri.isString(n))for(var r=0;r<n.length;r++){var o=n.charCodeAt(r);o>=48&&o<=57?t+="d":t+="c"}else t=" n_s";e.failureObject.message=e.failureObject.message?e.failureObject.message+t:t,a({error:new t4.serverError(t3.tokenizationFailed,u,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage+t])})},r,c.operation,c.description,!1,o).catch(function(e){a({error:new t4.unexpectedError(t3.tokenizationFailed,[e.message])})})})},this.serverTokenization=function(t,n,r,o,a){var s;return r.propertyTokenizing(n,ty.buildUrl(ra.getServiceEndpoint(ra.virtualEndpoints.tokenization.endpoint),[t.token_set,"getToken"])),e.doServerTokenization(r,t.token_set,o[n],a,null==(s=null==t?void 0:t.dataProtection)?void 0:s.fetchConfig).then(function(e){return e.error||(o[n]=e.data,r.propertyTokenized(n)),{error:e.error}})},this.doFileUpload=function(e,t,n,r,o,a){var s=n.hmacContext;return new Promise(function(n,c){var u=ra.virtualEndpoints.payeeTaxProfile;return rS.post(e,!0,o,rS.getPayeeFileUploadHttpHeaders(e,s.userCredential),t,function(e){n({data:e.filename})},function(e){(e=e||{status:l.Fail}).failureObject=e.failureObject||{},e.failureObject.code=T.fileUploadFailed,n({error:new t4.serverError(t3.fileUploadFailure,o,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage])})},r,u.operation,u.description,!1,a).catch(function(e){n({error:new t4.unexpectedError(t3.fileUploadFailure,[e.message])})})})},this.composePayeeFileUploadPayload=function(e,t){var n=new FormData;return n.append("file",e[t]),n.append("payeeid",e.payee_id),n.append("taxprofileid",e.tax_profile_id),n},this.fileUpload=function(t,n,r,o,a,s,l){var c,u=e.composePayeeFileUploadPayload(o,n),d=ty.createFromTemplate(l);return r.fileUploading(n,d),e.doFileUpload(r,u,a,s,d,null==(c=null==t?void 0:t.dataProtection)?void 0:c.fetchConfig).then(function(e){return e.error||(o[n]=e.data,r.fileUploaded(n)),{error:e.error}})},this.msrCryptoEncryption=function(e,t,n,r){n.propertyTokenizing(t,"");var o,a,s,l,c=e&&e.dataProtection&&e.dataProtection.parameters;if("u">typeof msrCrypto||c&&!c.encryptionLibrary)a=ru();else{s=c&&c.encryptionLibrary||void 0;var u=c&&c.encryptionLibraryUrl||ty.buildUrl(ra.getServiceEndpoint(ra.virtualEndpoints.msrCryptoJS.endpoint),[s]);a=rS.loadScript(u)}if("u">typeof encryption)o=ru();else{l=c&&c.encryptionScript||void 0;var d=c&&c.encryptionScriptUrl||ty.buildUrl(ra.getServiceEndpoint(ra.virtualEndpoints.encryptJS.endpoint),[l]);o=rS.loadScript(d)}return a.then(function(){return o.then(function(){return"u"<typeof encryption?{error:new t4.unexpectedError(t3.msrEncryptionFailed,["Fail to initialize "+l+" instance"])}:new Promise(function(o,a){encryption.Encrypt(e,r[t],function(e){r[t]=e,n.propertyTokenized(t),o({})},function(e){a(e)})}).catch(function(e){var t="Encryption failure: "+JSON.stringify(e);return{error:new t4.serverError(t3.msrEncryptionFailed,null,null,null,t,null,[t])}})}).catch(function(e){var t="Fail to download "+l+" script file: "+JSON.stringify(e);return{error:new t4.serverError(t3.msrEncryptionFailed,null,null,null,t,null,[t])}})}).catch(function(e){var t="Fail to download "+s+" script file: "+JSON.stringify(e);return{error:new t4.serverError(t3.msrEncryptionFailed,null,null,null,t,null,[t])}})},this.doTokenizeMsrCryptoEncryption=function(t,n,r,o,a,s){var c,u,d,p=ru(),f=ru(),h=t&&t.dataProtection&&t.dataProtection.parameters;if(!s)if(h&&h.encryptionFunction)e.localMsrCryptoInstance||(e.localMsrCryptoInstance=rW(window)),e.localEncryptionInstance||(e.localEncryptionInstance=rG(e.localMsrCryptoInstance)),d=e.localEncryptionInstance;else{if("u">typeof msrCrypto||h&&!h.encryptionLibrary)f=ru();else{c=h&&h.encryptionLibrary||void 0;var m=h&&h.encryptionLibraryUrl||ty.buildUrl(ra.getServiceEndpoint(ra.virtualEndpoints.msrCryptoJS.endpoint),[c]);f=rS.loadScript(m)}if("u">typeof encryption)p=ru();else{u=h&&h.encryptionScript||void 0;var g=h&&h.encryptionScriptUrl||ty.buildUrl(ra.getServiceEndpoint(ra.virtualEndpoints.encryptJS.endpoint),[u]);p=rS.loadScript(g).then(function(){if("u"<typeof encryption)return{error:new t4.unexpectedError(t3.msrEncryptionFailed,["Fail to initialize "+u+" instance"])};d=encryption})}}return f.then(function(){return p.then(function(){return new Promise(function(e,c){var u,p=ra.virtualEndpoints.tokenization,f=ty.buildUrl(ra.getServiceEndpoint(p.endpoint),[r,"getToken"]);return rS.post(n,!0,f,rS.getDefaultHttpHeaders(n),'{ "data": "'+o+'" }',function(t){e({data:t.data})},function(t){(t=t||{status:l.Fail}).failureObject=t.failureObject||{},t.failureObject.code=T.tokenizationFailed;var n=" ";if(ri.isString(o))for(var r=0;r<o.length;r++){var a=o.charCodeAt(r);a>=48&&a<=57?n+="d":n+="c"}else n=" n_s";t.failureObject.message=t.failureObject.message?t.failureObject.message+n:n,e({error:new t4.serverError(t3.tokenizationFailed,f,t.failureObject,t.httpStatus,t.httpStatusText,void 0,[t.errorMessage+n])})},a,p.operation,p.description,!1,null==(u=t.dataProtection)?void 0:u.fetchConfig,function(){return new Promise(function(e,n){s?s.encrypt(t,t.token_set,o).then(function(t){e({success:!0,headers:{"content-type":"application/json","x-ms-requestor":"Microsoft",traceparent:ro.guid()},payload:"string"!=typeof t?JSON.stringify(t):t})}).catch(function(e){n(e)}):d.Encrypt(t,o,function(t){e({success:!0,headers:{"content-type":"application/json","x-ms-requestor":"Microsoft",traceparent:ro.guid()},payload:JSON.stringify(t)})},function(e){n(e)})})}).catch(function(t){e({error:new t4.unexpectedError(t3.tokenizationFailed,[t.message])})})}).catch(function(e){var t="Encryption and tokenize failure: "+JSON.stringify(e);return{error:new t4.serverError(t3.msrEncryptionFailed,null,null,null,t,null,[t])}})}).catch(function(e){var t="Fail to download "+u+" script file: "+JSON.stringify(e);return{error:new t4.serverError(t3.msrEncryptionFailed,null,null,null,t,null,[t])}})}).catch(function(e){var t="Fail to download "+c+" script file: "+JSON.stringify(e);return{error:new t4.serverError(t3.msrEncryptionFailed,null,null,null,t,null,[t])}})},this.tokenizeMsrCryptoEncryption=function(t,n,r,o,a,s){r.propertyTokenizing(n,"");var l=o[n];return e.doTokenizeMsrCryptoEncryption(t,r,t.token_set,l,a,s).then(function(e){return e.error||(o[n]=e.data,r.propertyTokenized(n)),{error:e.error}})},this.payPalHECEncryption=function(e,t,n,r,o){if(n.propertyTokenizing(t,""),"u">typeof PayPalCrypto)a=ru();else{var a,s=e&&e.dataProtection&&e.dataProtection.parameters,l=s&&s.encryptionScriptUrl;if(!l){var c=s&&s.encryptionScript||"paypalEncrypt.js";l=ty.buildUrl(ra.getServiceEndpoint(ra.virtualEndpoints.paypalEncryptJS.endpoint),[c])}a=rS.loadScript(l)}var u=e;return a.then(function(){return"u"<typeof PayPalCrypto?{error:new t4.unexpectedError(t3.hmacError,["Fail to initialize PayPal encryption instance"])}:new Promise(function(e,a){PayPalCrypto.Encrypt(u,o,r[t],function(o){r[t]=btoa(String.fromCharCode.apply(null,o)),n.propertyTokenized(t),e({})})})}).catch(function(e){var t="Fail to download paypal encryption script file\n "+JSON.stringify(e);return{error:new t4.serverError(t3.tokenizationFailed,null,null,null,t,null,[t])}})},this.customEncryption=function(t,n,r,o,a,s,l){r.propertyTokenizing(n,"");var c=t;return new Promise(function(t,l){return ti(e,void 0,void 0,function(){var e;return ta(this,function(l){switch(l.label){case 0:return[4,s.encrypt(c,a,o[n])];case 1:return e=l.sent(),o[n]=e,r.propertyTokenized(n),t({}),[2]}})})}).catch(function(e){var t="".concat(l,"\n").concat(JSON.stringify(e));return{error:new t4.serverError(t3.tokenizationFailed,null,null,null,t,null,[t])}})},this.createHmacSignatureInternal=function(t,n,r,o,a,s,l,c){return t.init().then(function(u){if(u.error)return{error:u.error};var d,p=t.getRawKey(),f="Pan:"+a.pan+"|HMACKey:"+p+"|UserCredential:"+a.userCredential,h={keyToken:null,data:null},m=l&&l.dataProtection||{},g=m.protection_type,v=m.fetchConfig;return(d=g&&"HMACSIGNATUREMSRENCRYPT"===g.toUpperCase()?e.doTokenizeMsrCryptoEncryption(l,n,em.token,p,s,c):e.doServerTokenization(n,em.token,p,s,v)).then(function(e){return e.error?e:(h.keyToken=e.data,t.sign(f))}).then(function(e){return e.error||(h.data=e.data,o[em.userCredential]=a.userCredential,o[r]={algorithm:em.algorithm,keyToken:h.keyToken,data:h.data}),{error:e.error}})})},this.getHmacSignatureFromSecurePX=function(e,t,n,r){var o=n;return new Promise(function(n,a){o.createHmacSignature("Pan",r).then(function(o){t[em.userCredential]=r,t[e]=o.value,n({})}).catch(function(e){n({error:new t4.serverError(t3.hmacError,null,null,null,e.message,null,[e.message])})})})},this.createHmacSignature=function(t,n,r,o,a,s,l){var c=o.hmacContext;return rV.isSupported()&&c&&c.userCredential?c.panElement&&c.panElement.isSecureProperty()?e.getHmacSignatureFromSecurePX(n,r,c.panElement,c.userCredential):c.pan?e.createHmacSignatureInternal(new rj,t,n,r,c,a,s,l):(r[n]=null,ru({})):(r[n]=null,ru({}))},this.tokenizeUserInputDataInternal=function(t,n,r,o,a,s,l){var c=n.data_description,u=a||n.clientContext,d=[];for(var p in c){var f=c[p];if(tN(f)){var h=f&&f.length&&f[0];if(h){var m=e.tokenizeUserInputDataInternal(t,h,r[p],o,u,s,l);d=ts(ts([],d,!0),m,!0)}}else{if(f.displayOnly||o===eL.update&&!f.is_updatable)continue;if(f.token_set&&!f.token_set.startsWith(eI.tokenizationValuePrefix)||f.dataProtection)if(r.hasOwnProperty(p)){var g=f.dataProtection&&f.dataProtection.protection_type&&ri.isString(f.dataProtection.protection_type)&&f.dataProtection.protection_type.toUpperCase(),v=f.token_set&&ri.isString(f.token_set)&&f.token_set.toUpperCase();if("TOKENIZEMSRENCRYPT"===g)d.push(e.tokenizeMsrCryptoEncryption(f,p,t,r,o,null==l?void 0:l[e0.Tokenization]));else if("HMACSIGNATURE"===g)d.push(e.createHmacSignature(t,p,r,s,o,f));else if("HMACSIGNATUREMSRENCRYPT"===g)d.push(e.createHmacSignature(t,p,r,s,o,f,null==l?void 0:l[e0.Tokenization]));else if("MSRENCRYPT"===g)d.push(e.msrCryptoEncryption(f,p,t,r));else if("PAYPALENCRYPTION"===v)l&&l[e0.PayPal]?d.push(e.customEncryption(f,p,t,r,u,l[e0.PayPal],"HEC Encryption failed.")):d.push(e.payPalHECEncryption(f,p,t,r,u));else if("FILEUPLOAD"===v){var y=s.fileUploadUrls[p];d.push(e.fileUpload(f,p,t,r,s,o,y))}else d.push(e.serverTokenization(f,p,t,r,o))}else f.is_optional||d.push(ru({error:new t4.unexpectedError(t3.tokenizationError,["DataDescription contains a required field '"+p+"' which is missing in the userInputData passed in."])}))}}return d},this.getFileUploadUrlsInDisplayDescription=function(t,n){if(t&&(tk(t)&&(n[t.propertyName]=null==t?void 0:t.uploadUrl),tC(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getFileUploadUrlsInDisplayDescription(t.members[r],n)},this.getFileUploadUrlsInPidlDoc=function(t){var n={};if(t&&t.displayDescription&&t.displayDescription.length)for(var r=0;r<t.displayDescription.length;r++){var o=t.displayDescription[r];e.getFileUploadUrlsInDisplayDescription(o,n)}return n},this.tokenizeUserInputData=function(t,n,r,o,a,s,l){void 0===l&&(l=null);var c={hmacContext:{userCredential:a,pan:r&&r.details&&r.details.accountToken,panElement:l&&l.getPropertyModelElement("accountToken")}};c.fileUploadUrls=e.getFileUploadUrlsInPidlDoc(n);var u=e.tokenizeUserInputDataInternal(t,n,r,o,null,c,s);return rL.aggregateCommerceResults(u,function(e){return e.code===t3.tokenizationFailed.code?e:new t4.unexpectedError(t3.tokenizationFailed,[e.message])})}}}()),rY=function(){function e(e){var t=this;this.operationType=null,this.pidlDocManager=null,this.operationOptions=null,this.modelData=null,this.showMaskedValues=!1,this.secureFieldOriginOverride=null,this.computedStyles={style:{}},this.secureFieldResolved=!1,this.urls=null,this.userContext=null,this.displaySettings=null,this.stateManager=null,this.view=null,this.eventHub=null,this.hasPidlResolved=!1,this.postMessageTimeoutInMs=200,this.maxRetryPostMessage=5,this.pageIndex=0,this.validator=null,this.currentlyRenderedPidl=null,this.callbacks=null,this.transformers=null,this.localDataSourceProviders=null,this.serverErrorRetries={},this.suspendedNextAction=null,this.orchestratorId=-1,this.inputDataCache="",this.elements=[],this.resources=null,this.clientSettings=null,this.pidlInstanceContexts={},this.getClientSetting=function(e){if(t.clientSettings&&t.clientSettings[e])return t.clientSettings[e]},this.setOrchestratorId=function(e){t.orchestratorId=e},this.getSubmitButton=function(){var e=t.getCurrentPage().children,n=nt.findElement(e,function(e){if(nJ(e)&&e.isSubmitGroup)return!0});if(!n&&!t.callbacks.submit)return t.eventHub.failure(new t4.unexpectedError(t3.missingSubmitActionInPidlDoc)),null;if(n){var r=nt.findElement([n],function(e){for(var t=!1,n=nK(e)&&e.pidlAction;!t&&n;)t=t||"submit"===n.type||n.type===k.successWithSelectedPidlAction||n.type===k.successWithPidlPayload||n.type===k.success||n.type===k.propertyBindingAction||n.type===k.mergeData,n=n.nextAction;return t});return nK(r)&&r}},this.setClientSettings=function(e){var n=e&&e.getResolvedOrFirstPidlDoc();n&&n.clientSettings&&(t.clientSettings=n.clientSettings)},this.getDataSources=function(e,n,r){var o=[];return(r=r||t7.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc()))&&r.length&&r.forEach(function(r){for(var a in r)t.modelData.getDataSource(a)||o.push(t.getResourceData(a,r[a],e,n))}),Promise.all(o)},this.populateModelInternal=function(e){t.resources=new rE(t.pidlDocManager),t.setClientSettings(t.pidlDocManager);var n=ne.createModelElements(t.pidlDocManager,e);return ne.isErrorObject(n)?n.error:(n.warnings&&n.warnings.forEach(function(e){t.eventHub.error(e)}),t.elements=n.elements,t.pidlInstanceContexts=t.pidlDocManager.getPidlInstanceContexts(),t.updateSubmitGroupVisibility(t.elements,t.displaySettings.submitButtonBlock.show),t.setupSecureFields(),null)},this.getGlobalPreexistingData=function(){if(t.elements&&t.orchestratorId>=0){var e={};return nt.propertiesVisitorProcessingDataProperty(t.elements,function(e,n){if(e.usePreExistingValue){var r=e.getPropertyName(),o=ro.getGlobalPropertyValue(t.orchestratorId,r);void 0!==o&&(n[r]=o)}},e),e}},this.populateModel=function(e,n,r,o,a){var s=t.populateModelInternal(e);if(s)return t.eventHub.pageRendering(void 0),t.eventHub.failure(s),rd(s);t.eventHub.pageRendering(nt.getDefaultSuccessPidlPayload(t.elements,t.eventHub)),t.modelData.populate(t.elements),o&&t.modelData.retrieveFromCache(o,a);var l=[];(n=n?tr(tr({},n),t.getGlobalPreexistingData()):t.getGlobalPreexistingData())&&(r?l.push(t.transformResourceInstance(t.elements,n).then(function(){t.modelData.setInputInstance(t.elements,n),nt.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)})):t.modelData.setPrefillData(t,n,t.resources.constants,t.eventHub)),t.modelData.setPrefillDataInPartnerDataSource(n);var c=t.pidlDocManager.getPidlPayload();if(c){for(var u in c)u!==H.pidlInfo&&t.modelData.setDataSource(u,c[u]);nt.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}else l.push(t.getDataSources(e,{modelData:t.modelData,model:t}).then(function(){nt.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}));return Promise.all(l).then(function(){t.eventHub.modelUpdated(!0,!1)})},this.populateModelOnInternalCallback=function(e){var n=t.populateModelInternal(e);if(n)return t.eventHub.failure(n),n;t.modelData.updateModelElements(t.elements),nt.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub),t.setupSecureFields(),t.eventHub.modelUpdated(!1)},this.updateModelElementsOnInternalCallback=function(e,n){t.modelData.updateModelElements(t.elements);var r={modelData:t.modelData,resultData:{propertyUpdates:[]}};nt.updateModelElements(t.elements,r,t.eventHub);var o=[];if(r.resultData.propertyUpdates.length>0)for(var a=function(r,a){o.push(t.updatePropertyValue(r,a,e,n).then(function(){t.eventHub.propertyConditionallyUpdated(r.getPropertyName(),a)}))},s=0,l=r.resultData.propertyUpdates;s<l.length;s++){var c=l[s];a(c.propertyElement,c.propertyValue)}return Promise.all(o).then(function(){if(r.resultData.propertyUpdates.length>0){var e={modelData:t.modelData,resultData:{propertyUpdates:[]}};nt.updateModelElements(t.elements,e,t.eventHub)}t.eventHub.modelUpdated(!1)})},this.setupSecureFields=function(){var e=t.getCurrentPage();t.setupSecureFieldsRecursive(e)},this.setupSecureFieldsRecursive=function(e){if(e){var n=e.children;n&&n.forEach(function(e){if(null==e?void 0:e.isSecureProperty()){var n=e;n&&(n.validationPromise=function(){return t.postSecureFieldMessage(n.frameName,eP.validate,"")},n.submitPromise=function(e){return t.postSecureFieldMessage(n.frameName,eP.prepareForSubmit,{tokenSet:e})},n.createHmacSignature=function(e,r){return t.postSecureFieldMessage(n.frameName,eP.createHmacSignature,{tokenSet:e,userCredentials:r})},n.setFocus=function(){return t.postGuaranteedSecureFieldMessage(n.frameName,eP.applyFocus,"")})}else(null==e?void 0:e.type)===g.group&&t.setupSecureFieldsRecursive(e)})}},this.privateEventHandler=function(e,n){switch(e){case _.success:n&&n.operationType&&(n.operationType===eL.add||n.operationType===eL.update)&&t.pidlDocManager.clearCurrentPIDLResource();break;case _.failure:case _.gohome:t.clearAll()}},this.handleSuccess=function(e,n){t.pidlDocManager.clearCache(),e&&t7.isPrimaryResource(t.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.modelData.setPrimaryResourceResponse(e,n);var r=e&&e.clientAction;if(r)return t.handleClientAction(r,e);var o=t.pidlDocManager.getNextPidlRef()||{href:null},a=o.href,s=o.fetchConfig;if(!a)return t.eventHub.success(t.createSuccessEventPayload()),ru();var l=ty.getRestMethodUrl(a,t.userContext,null,{modelData:t.modelData});t.pidlDocManager.downloadPidlDoc(t.eventHub,l,rS.getHttpHeaders(t.eventHub,t.userContext,null,a,{modelData:t.modelData}),void 0,void 0,s).then(function(e){return e&&e.type?t.handleClientAction(e):t.populate()},function(e){return t.eventHub.failure(ro.createServerError(t3.pidlDocDownloadFailed,l.url,e,[e.errorMessage])),rd(e)})},this.createSuccessEventPayload=function(){var e=t.modelData.getResourceResponse(),n={id:t.modelData.getPrimaryResourceResponseId(),operationType:t.operationType,response:e&&e.primary};return e&&e.secondary&&e.secondary.length&&(n.secondaryResponses=e.secondary),n},this.handleServerError=function(e,n,r){var o=e.targettedInnerErrors,a=void 0===o?[]:o,s=e.clientAction,l=ru();return(s&&(l=t.doErrorNextClientAction(new t4.serverError(t3.formSubmitFailed,n,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]),e.clientAction)),a.length)?l.then(function(){var n=[],o="";a.forEach(function(e){e.message===ee.empty&&(e.message="");var a=ri.isString(e.target)?e.target.split(","):[];a=t7.translateErrorTargetsToDisplayProperties(a,r);var s=nt.getParentIfSame(t.elements,a),l=s&&s.children&&s.children.length===a.length&&s.layoutOrientation===eq.inline?s.displayId:null;ro.createPropertyErrors(a,l,nt.findFirstMatchingProperty(t.elements,a),e,n),o||a.length||(o=e.message)});var s=e.innerError,l=s&&s.message!==ee.empty?e.innerError.message:o;return t.clearElementEditStates(),t.handleRetryableError(new t4.formValidationFailedError(t3.formSubmissionFailedBadUserInput,l,n,[l]),!0)}):l.then(function(){return rd(new t4.serverError(t3.formSubmitFailed,n,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]))})},this.handleRetryableError=function(e,n){var r=ru(),o=e.errors;if(o&&o.length){var a=n?-1:t.pageIndex;e.errors.forEach(function(e){var n=e,o=t.getPropertyPageIndex(n.propertyName);a=-1===a||o>=0&&o<a?o:a;var s=t.getPropertyModelElement(n.propertyName);if(s&&s.onValidationFailed){var l=[];for(var c in s.onValidationFailed){var u=t.getPropertyModelElement(c);if(u){var d=s.onValidationFailed[c],p=d;ri.isString(d)&&(p=ro.getConditionalFieldValue(d,{modelData:t.modelData},s)),l.push(t.updatePropertyValue(u,p,Z.editing,!1))}}r=Promise.all(l).then(function(){return ru()})}}),a>=0&&(a<t.pageIndex||n)&&(r=r.then(function(){return t.moveToPageIndex(a)}))}return r.then(function(){return t.eventHub.error(e),{error:e}})},this.clearFlow=function(){var e=t.modelData.cacheFlow();return t.modelData.clearFlow(),t.elements=[],t.resources={},t.clientSettings=null,t.pageIndex=0,t.pidlDocManager.reset(),t.showMaskedValues=!1,t.currentlyRenderedPidl=null,t.serverErrorRetries={},e},this.clearElementEditStates=function(){t.elements.forEach(function(e){var n=t.modelData.getModelDataProperties([e]);for(var r in n)t.validator.clearElementEditState(n[r])})},this.handleRestartFlow=function(){var e=t.pageIndex,n=t.getCurrentPage()||{};return t.clearFlow(),t.pidlDocManager.setToLastDownloadedPidlDoc(t.eventHub),t.populate(null,!0,e,n)},this.handleRenderPidlClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"==typeof n[o]&&"details"!==o&&delete n[o];var a=t.pageIndex,s=t.getCurrentPage(),c=t.clearFlow(),u=ru();if(tN(e.context))t.pidlDocManager.setPidlDoc(t.eventHub,e.context);else if(tH(e.context)){var d=e.context.resourceActionContext,p=ro.getPidlOperationType(d.action);t.pidlDocManager.setOperationInfo({operationType:p}),u=t.downloadPidlDocument(ty.getPidlDocUrl(t.userContext,p,d.pidlDocInfo),d.pidlDocInfo)}return u.then(function(){return t.populate(n,r,a,s,e.pidlRetainUserInput?c:void 0,ri.isString(e.pidlUserInputToClear)?e.pidlUserInputToClear.split(","):e.pidlUserInputToClear).then(function(){if(e.pidlError){var n=t.pidlDocManager.getResolvedOrFirstPidlDoc(),r=ro.parseServerError(void 0,void 0,n&&n.strings&&n.strings.serverErrorCodes,{status:l.Error,failureObject:e.pidlError},t.serverErrorRetries);return t.handleServerError(r,void 0,n).then(function(){return ru()})}})})},this.handleRenderPidlPageClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"==typeof n[o]&&"details"!==o&&delete n[o];if(e.context&&tN(e.context)&&e.context.length>0){var a=e.context[0],s=ne.createModelElementsFromDisplayDescriptions(a.displayDescription,t.operationType,null,null,a,t.pidlDocManager).elements;if(t.updateSubmitGroupVisibility(s,t.displaySettings.submitButtonBlock.show),s&&s.length>0)return t.modelData.updateModelElements(s),t.elements.splice(t.pageIndex+1,0,s[0]),t.moveNextPage().then(function(){return t.eventHub.renderedPidlPage(),ru()})}},this.updateSubmitGroupVisibility=function(e,t){for(var n=nt.findAllElements(e,function(e){return nJ(e)&&e.isSubmitGroup}),r=0,o=n;r<o.length;r++)o[r].isHidden=!t},this.handleRenderModalClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"==typeof n[o]&&"details"!==o&&delete n[o];if(e.context&&tN(e.context)&&e.context.length>0){var a=e.context[0],s=ne.createModelElementsFromDisplayDescriptions(a.displayDescription,t.operationType,null,null,a,t.pidlDocManager).elements;if(t.updateSubmitGroupVisibility(s,t.displaySettings.submitButtonBlock.show),s&&s.length>0){t.modelData.updateModelElements(s);var l=t.getCurrentPage();if(l&&l.children&&l.children.length>0){var c=l.children[l.children.length-1];nJ(c)&&c.isModalGroup&&l.children.pop()}l.children=ts(ts([],l.children,!0),s[0].children,!0),t.eventHub.modelUpdated(!1)}}},this.setViewHandler=function(e){t.view=e},this.getLinkActionUrl=function(e,n,r){void 0===r&&(r=null);var o,a=e,s=t.urls,l=s.success,c=s.failure;if(a&&a.noCallbackParams){if(a&&a.baseUrl&&(o=ty.createFromTemplate(a.baseUrl)),o)return o;n&&t.eventHub.failure(new t4.unexpectedError(t3.noRedirectUrlToNavigate))}else if(l&&c){var u=l,d=c;if(a&&a.baseUrl)o=ty.createFromTemplate(a.baseUrl),u=ty.addQueryStringParameters(u,a.successParams),d=ty.addQueryStringParameters(d,a.failureParams);else if(ri.isString(e)){o=ty.createFromTemplate(e);var p=t.modelData.getPrimaryResourceResponseId();p&&(u=ty.addQueryParameter(u,"id",p),u=tV.additionalRedirectParams(u,r))}if(o)return o+("?ru="+(u=encodeURIComponent(u))+"&rx="+(d=encodeURIComponent(d)));n&&t.eventHub.failure(new t4.unexpectedError(t3.noRedirectUrlToNavigate))}else if(n){var f=l?"urls.failure":"urls.success";t.eventHub.failure(new t4.inputParameterValidationFailedError(t3.inputParameterMissing,f,[f]))}},this.handleExpressCheckoutButtonIframeLoaded=function(e,n,r){var o,a,s,l=t7.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc()),c=tA(null==l?void 0:l[0].walletConfig)?null==(a=null==(o=l[0].walletConfig)?void 0:o.members)?void 0:a[0]:{},u=ra.getEnv();n&&c&&(null==(s=null==window?void 0:window.frames)?void 0:s[e])&&window.frames[e].postMessage({messageType:eT.setup,config:c,expressCheckoutData:n,useTestEnv:"int"===u,env:u},r)},this.handleSecureFieldMessage=function(e,n){if(!e||!e.data||!e.data.source||e.data.source!==eI.secureFieldMessageSource||!e.data.event){var r,o,a,s=new t4.unexpectedError(t3.unexpectedSecureFieldMessage);t.eventHub.failure(s);return}switch(t.eventHub.secureFieldEventReceived(e.data.field,e.data.event,e.data.correlationId),e.data.event){case eE.loaded:t.loadedSecureFields.includes(e.data.field)||t.loadedSecureFields.push(e.data.field),r=t.modelData.getModelDataProperty(e.data.field);var l=t.getSecurePropertyInitializationPayload(r);t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.init,l),0),t.hasPidlResolved?t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.hydrateState,""),0):t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.clearState,""),0);var c=r.modelElement.getResolvedLogo(),u="";c&&"accountToken"===e.data.field&&t.hasPidlResolved&&(u="background-image: url(".concat(c,"); background-repeat: no-repeat; background-position: right center; ")),u&&t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.applyCss,u),0);var d=r.modelElement.placeHolderText();d&&t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.applyPlaceholder,d),0);break;case eE.initCompleted:t.resolveSecureFieldInitCompletedPromise(e.data.field);break;case eE.keyPropertyResolved:if(t.hasPidlResolved=!0,t.secureFieldResolved=!0,r=t.modelData.getModelDataProperty(e.data.field),o=t.updatePropertyValue(r.modelElement,e.data.payload,Z.finished,!1).then(function(){var n=t.getSecurePropertyInitializationPayload(r);t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.init,n),0);var o=r.modelElement.getResolvedLogo(),a="";o&&(a="background-image: url(".concat(o,"); background-repeat: no-repeat; background-position: right center; ")),a&&t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.applyCss,a),0),t.updatePropertyValue(r.modelElement,e.data.payload,Z.finished,!1).catch(function(e){});var s=r.modelElement.placeHolderText();s&&t.guaranteedPostMessage(e.data.field,t.buildMessage(eP.applyPlaceholder,s),0);var l=t.modelData.getModelDataProperty("cvvToken");return n=t.getSecurePropertyInitializationPayload(l),t.guaranteedPostMessage("cvvToken",t.buildMessage(eP.init,n),0),t.updatePropertyValue(l.modelElement,"",Z.finished,!1)}).catch(function(e){t.secureFieldResolved=!1}),n)return o;break;case eE.valueUpdated:var p=e.data.payload.editState,f=e.data.payload.operationType;if((r=t.modelData.getModelDataProperty(e.data.field)).editState=p,o=t.updatePropertyValue(r.modelElement,"",f,!1),n)return o;break;case eE.readyForSubmit:if(a=t.queuedSecureFieldPromises.find(function(t){return t.id===e.data.correlationId})){if(e.data.payload.error)return void t.eventHub.failure(new t4.unexpectedError(t3.tokenizationFailed,[e.data.payload.error]));var h={value:e.data.payload.value,propertyName:e.data.field};a.resolve(h)}else t.eventHub.failure(new t4.unexpectedError(t3.secureFieldPromiseNotFound));break;case eE.validationCompleted:(a=t.queuedSecureFieldPromises.find(function(t){return t.id===e.data.correlationId}))?a.resolve(e.data.payload):t.eventHub.failure(new t4.unexpectedError(t3.secureFieldPromiseNotFound));break;case eE.hmacSignatureCreated:if(a=t.queuedSecureFieldPromises.find(function(t){return t.id===e.data.correlationId})){if(e.data.payload.error)return void t.eventHub.failure(new t4.unexpectedError(t3.hmacError,[e.data.payload.error]));var h={value:e.data.payload.value,propertyName:e.data.field};a.resolve(h)}else t.eventHub.failure(new t4.unexpectedError(t3.secureFieldPromiseNotFound));break;default:var m=new t4.unexpectedError(t3.unmatchedSecureFieldEvent,[e.data.event]);t.eventHub.failure(m)}},this.handleChallengeiFrameMessage=function(e,n){switch(e.data){case eR.challengeiFrameLoaded:case eR.challengeCompleted:t.eventHub.challengeMessageReceived(e.data);break;default:var r=new t4.unexpectedError(t3.unexpectedChallengeiFrameMessage);t.eventHub.failure(r)}},this.handleClientAction=function(e,n,o){var a,s=e.type,l=e.nextAction;return t.eventHub.clientActionInvoked(null==e?void 0:e.type,{originator:o}),new Promise(function(l,c){switch(s){case eV.None:t.eventHub.success(t.createSuccessEventPayload()),l();break;case eV.UpdatePropertyValue:if(e.context){var u=e.context,d=u.propertyName,p=u.propertyValue,f=t.getPropertyModelElement(d);f&&t.updatePropertyValue(f,p,Z.editing,!1).then(function(){l()}).catch(function(){return c()})}else l();break;case eV.Redirect:var h=t.getLinkActionUrl(e.context,!0,n);if(h){var m=t.pageIndex,g=t.getCurrentPage()||{};e.redirectPidl?(t.eventHub.navigate("",h,!0,e.context,null),t.clearFlow(),t.pidlDocManager.setPidlDoc(t.eventHub,e.redirectPidl),t.populate(n,!0,m,g).then(function(){l()}).catch(function(){return c()})):(t.eventHub.navigate("",h,!0,e.context,null)||(t.eventHub.redirecting(h),t9.getRedirectionService().redirect(h)),t.clearFlow(),l())}break;case eV.Pidl:t.handleRenderPidlClientAction(e,n,!0).then(function(){l()},function(){return c()});break;case eV.ReturnContext:e.context?(t.eventHub.success(e.context),l()):(a=new t4.unexpectedError(t3.invalidReturnContextPidl),t.eventHub.failure(a),c(a));break;case eV.GoHome:t.eventHub.gohome(),l();break;case eV.Failure:var v=ro.createServerErrorFromIPxServiceError(o===r.iFrameMessageHandler?t3.iFrameReturnedFailure:t3.failureClientActionReturned,e.context);t.eventHub.failure(v),l();break;case eV.PidlModal:t.handleRenderModalClientAction(e,n,!0),l();break;case eV.PidlPage:t.handleRenderPidlPageClientAction(e,n,!0).then(function(){l()},function(){return c()});break;case eV.MergeData:if(e.context&&e.context.payload){var y=e.context,b=y.payload;if(y.explicit){var x=[];for(var C in b){var f=t.getPropertyModelElement(C);f&&x.push(t.updatePropertyValue(f,b[C],Z.editing,!1))}Promise.all(x).then(function(){l()}).catch(function(){return c()})}else t.modelData.updateUserData(b),t.eventHub.modelUpdated(!1,!0),l();t.updateInputDataCache(b)}break;case eV.RestAction:e.context&&t.invokeRestMethod(e.context).then(function(){l()},function(){return c()});break;default:a=new t4.unexpectedError(t3.unknownClientActionType,[e.type]),t.eventHub.failure(a),c(a)}}).then(function(){l&&t.handleClientAction(l).catch(function(){})})},this.doErrorNextClientAction=function(e,n){switch(n.type){case eV.None:return ru();case eV.UpdatePropertyValue:if(n.context){var r=n.context,o=r.propertyName,a=r.propertyValue,s=r.terminalError,l=t.getPropertyModelElement(o);if(l)return t.updatePropertyValue(l,a,Z.editing,!1).then(function(){return s?rd(e):ru()})}return ru();case eV.Pidl:return t.handleRenderPidlClientAction(n,null,!1).then(function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated()});default:return rd(e)}},this.readUserInputData=function(e){void 0===e&&(e=!1);var n=t.view.getPageElementValues();for(var r in n){var o=t.getPropertyModelElement(r),a=n[r];n0(o)&&!(t.showMaskedValues&&o.maskDisplay)&&o.displayTransformations&&o.displayTransformations.forModel&&ri.isString(a)&&(n[r]=ro.applyDisplayTransformation(o.displayTransformations.forModel,a)||n[r])}var s=e?null:function(e){t.eventHub.conflictingInputValues(e)};t.modelData.mergeUserData(t,n,s)},this.resolveKeyProperty=function(e){for(var n in e){var r=e[n];if(r&&rn(r.modelElement)){var o=r.modelElement,a=o.isKeyProperty&&!o.hidden()&&r.getValue();if(a)return t.updateResolvedPidlDoc(a,o,Z.finished)}}return ru(!0)},this.validatePage=function(e){var n=t.modelData.getModelDataProperties([t.getCurrentPage()]);return(e===A.all&&t.resolveKeyProperty(n)||ru()).then(function(){return n=t.modelData.getModelDataProperties([t.getCurrentPage()]),t.validator.validatePage(n,e,t.operationType)})},this.getClientDataProperties=function(){var e={sessionId:ro.guid()};if(t.operationOptions){var n=t.operationOptions,r=n.sessionId,o=n.riskData;r&&(e.sessionId=r),o&&o.greenId&&(e.greenId=o.greenId)}return e},this.getInputDataFromResponse=function(e,t,n){for(var r in t){var o=t[r];if(o.match&&o.match(RegExp("^{(.)*}$"))){var a=o.substring(1,o.length-1);if(!n||!n[a])return new t4.unexpectedError(t3.expectedPayloadValueNotPresentInServerResponse);e[r]=n[a]}else e[r]=o}return null},this.invokeSubmitRequest=function(e,n,r,o){void 0===r&&(r=!0);var a=t.callbacks.submit,s=t.transformers.submissionSuccessTransformer;if(r&&a&&(t7.isPrimaryResource(e)||!n.url))return new Promise(function(r,s){o&&o.currentSubmitCount++,a(n,{pidlDoc:e},function(e){r(e)},function(r,o){s(ro.parseCustomSubmitError(r,o,n.url,n.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,t.serverErrorRetries))},o)});if(!n.url||!n.virtualEndpoint){var l=new t4.unexpectedError(t3.submitPidlRequestMissingParameters,[!n.url?"url":"virtualEndpoint"]);return t.eventHub.failure(l),rd(l)}return new Promise(function(r,o){t9.getPidlService().submitPidlDocument(t.eventHub,n,t.operationType,s).then(function(e){r(e)},function(r){o(ro.parseServerError(n.url,n.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,r,t.serverErrorRetries))})})},this.submitValidatedData=function(e,n,r,o,a,s,c){var u,d=t.modelData.getId();o=o||t7.getSubmitPidlAction(n)||{},s=s||1;var p=o.type!==k.validate,f=1===s?o.context:o["context"+s],h={modelData:t.modelData},m=f&&ty.getSubmitUrl(t.operationType,t.userContext,f,d,h),g={method:f&&f.method?f.method:el.Post,url:m&&m.url,headers:f&&rS.getHttpHeaders(t.eventHub,t.userContext,f&&f.headers,m&&m.template,h),errorCodeExpressions:f&&f.errorCodeExpressions,virtualEndpoint:m&&m.virtualEndpoint},v=ru();if(f&&f.payload){var y={},b=t.getInputDataFromResponse(y,f.payload,c);if(b)return void e.reject(b);g.data=y}else{g.data=r;var x=rX.tokenizeUserInputData(t.eventHub,n,g.data,t.operationType,t.userContext.getUserCredential(),null==(u=t.callbacks)?void 0:u.encryptionHandler,t.modelData);v=new Promise(function(r,o){x.then(function(a){var s=a.error;if(s)if(t4.isServerError(s)&&s.code===t3.tokenizationFailed.code&&400===s.status){var c=ro.parseServerError(s.url,void 0,n&&n.strings&&n.strings.serverErrorCodes,{status:l.Error,errorMessage:s.debugMessage,httpStatus:s.status,httpStatusText:s.statusText,failureObject:s.innererror},t.serverErrorRetries);return t.handleServerError(c,s.url,n).then(function(t){e.resolve(t)}).catch(e.reject)}else o(s);else r()}).catch(function(e){return o(e)})})}v.then(function(){t.invokeSubmitRequest(n,g,p,a).then(function(l){o["context"+ ++s]?t.submitValidatedData(e,n,r,o,a,s,l):e.resolve({data:l})},function(r){return t.handleServerError(r,g.url,n).then(function(t){e.resolve(t)}).catch(e.reject)})},function(t){e.reject(new t4.serverError(t3.tokenizationFailed,null,t,null,null,null,[(t||{}).message]))})},this.scopeDownPidlDocAndUserInput=function(e,t,n){if(e&&e.type===k.validate&&e.context&&e.context.propertyName){var r=e.context.propertyName;n=t8.getPropertyValueFromInputData(n,r);var o=tr(tr({},t),{data_description:{}}),a=t8.getPropertiesFromDataDescription(t.data_description,r);tb(a)?o.data_description[r]=a:o.data_description=a,t=o}return{pidlDocument:t,userInputData:n}},this.validatePidlArray=function(e,n,r,o,a){var s=ts([n],r.map(function(e){return t.pidlDocManager.getLinkedPidl(t7.createIdentityHash(e.linkedPidlId))}),!0),l=[],c=null,u=s.map(function(n){var r=e.createUserInputData(n,t.modelData,o,t.operationType,!0);return rH.validateUserInputData(t.eventHub,n,r,t.operationType,t.modelData).then(function(e){var n=e.innerErrors;n&&n.length&&(t.updateInputDataCache(r),n.forEach(function(e){var n=t.createFormValidationError(e.error);t4.isUnexpectedError(n)?c=n:l.push(n)}))})});return new Promise(function(e,t){Promise.all(u).then(function(){c?t(c):l.length>0?t(l):e()},function(e){var n=(e||{}).message;t(new t4.formValidationFailedError(t3.formValidationFailed,n,[e],[n]))})})},this.getResolvedOrFirstPidlDoc=function(e,t){return 1!==e.length&&t&&t8.getFirstResolvedPidlDocument(e,t)||e[0]},this.createFormValidationError=function(e){var n=e.propertyName,r=e.errorCode,o=e.debugMessage;if(n){var a=t.modelData.getModelDataProperty(n);if(!a)return new t4.unexpectedError(t3.validationFailedForNonUserInputProperty,[n,r,o]);a.editState=J.dirty;var s=nt.findPropertyElement(t.elements,n);return s&&(e.message=s.getErrorMessage(t.getPropertyValue(n),r)),e}},this.validateAndTransformUserInputPidlData=function(e,n,r,o,a,s,l,c){return e.createUserSecureInputData(n[0],t.modelData,r,t.operationType,!0).then(function(u){var d=e.createUserInputData(n[0],t.modelData,r,t.operationType,!0);d.details&&u?d.details=ro.extend({},d.details,u):d&&u&&(d=ro.extend({},d,u));var p=t.getResolvedOrFirstPidlDoc(n,d);if(a&&!e.canSubmitUserInputData(p,d))return ru({});var f=t.scopeDownPidlDocAndUserInput(o,p,d),h=f.pidlDocument,m=f.userInputData;return p=h,d=m,new Promise(function(n,r){var a="",u=[];return rH.validateUserInputData(t.eventHub,p,d,t.operationType,t.modelData).then(function(e){var n=e.innerErrors;n&&n.length&&n.forEach(function(e){var n=t.createFormValidationError(e);n&&(t4.isUnexpectedError(n)?r(n):u.push(n))})}).then(function(){if(u.length)s(a,u).then(function(e){n(e)}).catch(r);else{if(o.type===k.validateOnChange){if(JSON.stringify(d)===t.inputDataCache)return;t.inputDataCache=JSON.stringify(d)}return e.transformUserInputData(p,t.eventHub,d,t.operationType).then(function(){return l({resolve:n,reject:r},p,d,o,c)},function(e){var t=e&&e.message;r(new t4.formValidationFailedError(t3.propertyTransformationFailed,t,[e],[t]))})}},function(e){var t=e||{},n=t.message;r(new t4.formValidationFailedError(t3.formValidationFailed,n,[t],[n]))})})})},this.handleRetryableValidationErrorsOnSubmit=function(e,n){return t.handleRetryableError(new t4.formValidationFailedError(t3.formValidationFailed,e,n,[e]))},this.tokenizeUserInputData=function(e,n,r){var o;return rX.tokenizeUserInputData(t.eventHub,n,r,t.operationType,t.userContext.getUserCredential(),null==(o=t.callbacks)?void 0:o.encryptionHandler,t.modelData).then(function(t){var n=t.error;n?e.reject(n):e.resolve({data:r})}).catch(function(t){return e.reject(t)})},this.submitLinkedPidlArray=function(e,n,r,o,a,s){return new Promise(function(l,c){if(!o&&(!e||0===e.length))return void l();n.pending=e.length+ +!!o;var u=function(){n.pending--,0===n.pending&&l()},d=t9.getCommerceService();o&&t.validateAndTransformUserInputPidlData(d,o,r,a,!1,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData,s).then(function(e){e&&e.error?n.validationError=e.error:n.baseSuccessResponse=e&&e.data?e.data:e,u()},function(e){t7.ignoreTerminatingError(o)||(n.baseFailure=e),u()}),e.forEach(function(e){var o=t.pidlDocManager.getLinkedPidl(t7.createIdentityHash(e.linkedPidlId));t.validateAndTransformUserInputPidlData(d,[o],r,t7.getSubmitPidlAction(o),!0,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData,s).then(function(e){n.linkedResponses.push(e),u()},function(e){t7.ignoreTerminatingError([o])||n.failures.push(e),u()})})})},this.validateAndSubmitUserInputData=function(e){t.readUserInputData();var n=t.getClientDataProperties(),r=t9.getCommerceService(),o={failures:[],pending:0,baseFailure:null,baseSuccessResponse:null,linkedResponses:[]};if(!t.stateManager.canApiStart(en.modelSubmitForm).result)return ru({result:o});t.eventHub.submitting(),t.stateManager.setState(Q.submitting);var a=t.pidlDocManager.getResolvedOrAllPidlDocs(),s=r.getPidlSubmitOrder(a[0]);return new Promise(function(l,c){e.type===k.validate&&(s.beforeBase=[],s.withBase=[],s.afterBase=[]);var u={totalSubmitCount:0,currentSubmitCount:0};u.totalSubmitCount=s.beforeBase.length+s.withBase.length+s.afterBase.length+1,t.validatePidlArray(r,a[0],s.beforeBase.concat(s.withBase,s.afterBase),n,e).then(function(){return t.submitLinkedPidlArray(s.beforeBase,o,n,void 0,void 0,u).then(function(){if(!(0!==o.failures.length||o.linkedResponses&&o.linkedResponses.length&&o.linkedResponses.some(function(e){return e.error})))return t.submitLinkedPidlArray(s.withBase,o,n,a,e,u).then(function(){if(0===o.failures.length&&!o.baseFailure)return t.submitLinkedPidlArray(s.afterBase,o,n,void 0,void 0,u).then(function(){l()});l()});l()})},function(n){if(t4.isUnexpectedError(n))o.failures.push(n),l();else if(!(e&&e.context&&e.context.silent))return t.handleRetryableValidationErrorsOnSubmit("",Array.isArray(n)?ts([],n,!0):[n]).then(function(e){o.validationError=e.error,l()})}).catch(function(e){l()})}).then(function(){return t.stateManager.setState(Q.executing),t.eventHub.submitted(),{result:o,basePidls:a}})},this.transformResourceInstance=function(e,n){return Promise.all(t.transformResourceInstanceInternal(e,t9.getCommerceService(),n)).then(rl,rl)},this.transformResourceInstanceInternal=function(e,n,r){var o=[];return e.forEach(function(e){if(rn(e)&&e.supportsDisplayTransformation){var a=e&&e.isLinkedPidl&&e.pidlIdentity?[t.pidlDocManager.getLinkedPidl(e.pidlIdentity)]:t.pidlDocManager.getResolvedOrAllPidlDocs();o=ts(ts([],o,!0),[n.transformUserInputPropertyForDisplay(a,t.eventHub,e.getPropertyName(),r,t.operationType)],!1)}e.children&&e.children.length&&(o=ts(ts([],o,!0),t.transformResourceInstanceInternal(e.children,n,r),!0))}),o},this.updateResolvedPidlDoc=function(e,n,r){return new Promise(function(o,a){t.pidlDocManager.resolvePidlDoc(t.eventHub,t.getPropertyValue,e,n,r).then(function(e){if(e){var n=t.pidlDocManager.getResolvedOrFirstPidlDoc();t.currentlyRenderedPidl&&t.currentlyRenderedPidl.identity&&n&&n.identity&&ri.objectEquals(t.currentlyRenderedPidl.identity,n.identity)&&o(!1),n&&t7.isPrimaryResource(n)&&t.eventHub.updateTelemetryContext(n.identity),t.readUserInputData(!0),t.populateModelOnInternalCallback(t.operationType),t.currentlyRenderedPidl=n}o(e)}).catch(function(e){o(!1)})})},this.updatePropertyValueInternal=function(e,n,r){if(e&&e.getPropertyName){var o=t.modelData.getModelDataProperty(e.getPropertyName());if(o)return o.setValue(n)&&t.setCurrentDataIndex(e.pidlIdentity,-1),t.sendResourceSelectedEventInternal(o,r),t.validator.validateProperty(o,r,t.operationType)}return ru()},this.sendResourceSelectedEventInternal=function(e,n){var r=e.propertyName,o=t.getPropertyValue(r),a=t.getPropertyModelElement(r);t.operationType===eL.selectInstance&&n!==Z.finished&&t.eventHub.resourceSelected(r,e.getValue(!0,!0)),nz(a)&&a.possibleOptions&&a.possibleOptions[o]&&a.possibleOptions[o].onresourceselected&&t.invokePidlAction(a.possibleOptions[o].onresourceselected).catch(function(e){})},this.getPropertyPageIndex=function(e){var n=-1;return t.elements.some(function(t,r){if(t.children&&nt.findPropertyElement(t.children,e))return n=r,!0}),n},this.navigateToPageIndex=function(e){nt.updateModelElements(t.elements,{modelData:t.modelData});var n=t.pageIndex,r=t.getCurrentPage()||{};t.pageIndex=e;var o=t.getCurrentPage()||{};t.eventHub.pageNavigated(n,r.displayId,r.displayName,t.pageIndex,o.displayId,o.displayName,o.containerDescription)},this.isMaskedValue=function(e,n,r,o){return e&&e.maskDisplay&&o&&r===Z.finished&&n===t.modelData.getMaskedPropertyValue(e.getPropertyName())},this.updateInputDataCache=function(e){if(e)try{var n=t.inputDataCache?JSON.parse(t.inputDataCache):{};for(var r in e)r&&t.getPropertyModelElement(r)&&(n[r]=e[r]);var o=JSON.stringify(n);o&&o!==t.inputDataCache&&(t.inputDataCache=o)}catch(e){}},this.downloadPidlDocument=function(e,n,r,o){var a=rS.getHttpHeaders(t.eventHub,t.userContext,null,e.template,null);if(n.anonymousPidl){var s=a[M.msFlight];(!s||0>s.indexOf("pxpidl"))&&(a[M.msFlight]=s?s+",pxpidl":"pxpidl")}if(o){var l=a[M.msClientContext];l?a[M.msClientContext]=l+",hasPrefillData":a[M.msClientContext]="hasPrefillData"}return t.pidlDocManager.downloadPidlDoc(t.eventHub,e,a,n,r).then(function(e){return t.eventHub.pidlDownloaded(),e},function(n){var r=n.connectivityError?t3.connectivityError:t3.pidlDocDownloadFailed,o=ro.createServerError(r,e.url,n,[n.errorMessage]);return t.eventHub.failure(o),rd(o)})},this.populate=function(e,n,r,o,a,s){if(t.pageIndex=0,t.pidlDocManager.isEmpty()){t.eventHub.pageRendering(void 0);var l=new t4.unexpectedError(t3.noPidlDocumentInPopulateRequest);return t.eventHub.failure(l),rd(l)}return t.populateModel(t.operationType,e,n,a,s).then(function(){o=o||{};var e=t.getCurrentPage()||{};t.stateManager&&t.stateManager.setState(Q.executing),t.eventHub.pageRendered(r,o.displayId,o.displayName,t.pageIndex,e.displayId,e.displayName,e.containerDescription);var n=t.modelData.getModelDataProperties([t.getCurrentPage()]);return t.resolveKeyProperty(n).then(function(){return ru()})})},this.updatePropertyValue=function(e,n,r,o,a,s){if(void 0===a&&(a=!0),void 0===s&&(s=!0),o)if(t.isMaskedValue(e,n,r,o))return ru();else t.modelData.clearMaskedPropertyValue(e.getPropertyName());var l=e&&e.isKeyProperty&&(e.resolutionPolicy!==eX.focusout||r===Z.finished)?t.updateResolvedPidlDoc(n,e,r):ru(!0),c=!1,u=function(){var o=t.modelData.getPropertyValue(e.getPropertyName()),a=e&&nz(e)&&e.alwaysUpdateModelValue;if(o!==n||a||r===Z.finished)return c=!0,t.updatePropertyValueInternal(e,n,r)};return l.then(u,u).then(function(){var s=ru();if(c&&a&&e&&e.broadcastTo){var l=t.getPropertyModelElement(e.broadcastTo);l&&l.getPropertyName()!==e.broadcastTo&&(s=t.updatePropertyValue(l,n,r,o,a)),s=s.then(function(){return ro.broadcastPropertyValueUpdate(t.orchestratorId,e,n,r,o)})}return s}).then(function(){t.sendSelectionChangeEvent(e,n)}).then(function(){if(c&&e&&e.sideEffects){var l=[];for(var u in e.sideEffects){var d=t.getPropertyModelElement(u),p=e.sideEffects[u],f=ro.getConditionalFieldValue(p,{modelData:t.modelData},e);s&&d?l.push(t.updatePropertyValue(d,f,r,o,a,!1)):a&&l.push(ro.broadcastPropertyValueUpdate(t.orchestratorId,e,n,r,o))}return Promise.all(l).then(function(){return ru()})}return ru()}).then(function(){return c&&e&&(e.isConditionalFieldProperty()||!a)?t.updateModelElementsOnInternalCallback(r,o):ru()}).then(function(){return nY(e)&&c&&ri.isBool(n)&&t.eventHub.toggleClicked(e.getPropertyName(),n),ru()})},this.sendSelectionChangeEvent=function(e,n){if(nz(e)&&(t.eventHub.selectionChanged(e.getPropertyName(),e.displayId,n),e.possibleOptions&&e.possibleOptions[n])){var r=e.possibleOptions[n];if(r.pidlAction&&r.pidlAction.type===k.partnerAction){var o=ri.deepCopy(e.possibleOptions[n].pidlAction.context);t.eventHub.partnerAction(e.id,o)}}},this.sendResourceSelectedEvent=function(e,n){var r=t.modelData.getModelDataProperty(e);r&&t.sendResourceSelectedEventInternal(r,n)},this.getPropertyValue=function(e){return t.modelData.getPropertyValue(e)},this.getPropertyModelElement=function(e){return t.modelData.getPropertyModelElement(e)},this.setCurrentDataIndex=function(e,n){t.readUserInputData(),t.modelData.setMultiPropertySelectorIndex(e,n)},this.getCurrentDataIndex=function(e){return t.modelData.getMultiPropertySelectorIndex(e)},this.getCurrentPage=function(){return t.elements[t.pageIndex]},this.getCurrentPageId=function(){return t.elements.length>t.pageIndex?t.elements[t.pageIndex].displayId:null},this.getCaptchaType=function(){return t.modelData.getPropertyValue(es.captchaType)||null},this.validateEditedProperties=function(){return t.validatePage(A.dirtyOnly)},this.validateProperties=function(){return t.validatePage(A.all).then(function(e){return!0}).catch(function(){return!1})},this.moveToLastPage=function(){var e=t.elements.length-1;return t.readUserInputData(),t.navigateToPageIndex(e),ru()},this.moveNextPage=function(){var e=t.pageIndex+1;return e>=t.elements.length?(t.eventHub.failure(new t4.unexpectedError(t3.cannotMoveToNextPageAsOnLastPage)),ru()):(t.readUserInputData(),t.validatePage(A.all).then(function(){var n=t9.getCommerceService(),r=n.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return n.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,r,t.operationType).then(function(n){t.modelData.setDisplayData(n),t.navigateToPageIndex(e)})}))},this.submitPage=function(){return t.readUserInputData(),t.validatePage(A.all).then(function(){var e=t9.getCommerceService(),n=e.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return e.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,n,t.operationType).then(function(e){t.modelData.setDisplayData(e)})})},this.movePrevPage=function(){return t.moveToPageIndex(t.pageIndex-1)},this.moveToFirstPage=function(){return t.moveToPageIndex(0)},this.moveToPageIndex=function(e){return t.pageIndex===e||e<0||e>=t.elements.length?(e<0?t.eventHub.failure(new t4.unexpectedError(t3.cannotMoveToPrevPage)):e>=t.elements.length&&t.eventHub.failure(new t4.unexpectedError(t3.cannotMoveToPageIndex)),ru()):t.pageIndex>e?(t.readUserInputData(),t.navigateToPageIndex(e),ru()):t.moveNextPage().then(function(){return t.moveToPageIndex(e)})},this.submitForm=function(e){return t.validateAndSubmitUserInputData(e).then(function(e){var n=e.result,r=e.basePidls;return n.baseFailure?(t.eventHub.failure(n.baseFailure),rd(n.baseFailure)):n.failures.length>=1?(t.eventHub.failure(n.failures[0]),rd(n.baseFailure)):n.baseSuccessResponse||t7.ignoreTerminatingError(r)?t.handleSuccess(n.baseSuccessResponse,n.linkedResponses):void 0})},this.validateForm=function(e){return t.validateAndSubmitUserInputData(e).then(function(n){var r=n.result;if(!(e&&e.context&&e.context.silent)&&(r.baseFailure||r.failures.length>=1||r.validationError))if(r.baseFailure)return t.eventHub.failure(r.baseFailure),rd(r.baseFailure);else if(r.failures&&r.failures.length>=1)return t.eventHub.failure(r.failures[0]),rd(r.baseFailure);else return rd();if(r.baseSuccessResponse){var o=r.baseSuccessResponse&&r.baseSuccessResponse.clientAction;if(o)if(o.type===eV.MergeData)return t.handleClientAction(o,r.baseSuccessResponse).then(function(){return ru()},function(e){return rd(e)});else return e.nextAction&&(t.suspendedNextAction=e.nextAction),t.handleClientAction(o,r.baseSuccessResponse).then(function(){return rd()},function(e){return rd(e)})}})},this.createUserInputData=function(e,n){return t.readUserInputData(),t9.getCommerceService().createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,t.getClientDataProperties(),t.operationType,e,n)},this.returnUserInputData=function(){return t.readUserInputData(),t.validateAndTransformUserInputPidlData(t9.getCommerceService(),[t.pidlDocManager.getResolvedOrFirstPidlDoc()],t.getClientDataProperties(),null,!1,function(e,t){return rd(new t4.formValidationFailedError(t3.formValidationFailed,e,t,[e]))},t.tokenizeUserInputData)},this.gohome=function(){t.eventHub.gohome()},this.clearAll=function(){t.modelData.clearAll(),t.clearFlow(),ro.unregisterFromOrchestrator(t.orchestratorId)},this.moveNextOrSubmit=function(){if(t.pageIndex<t.elements.length-1)return t.moveNextPage();var e=t.getSubmitButton();return e&&e.pidlAction?t.invokePidlAction(e.pidlAction).then(function(){return ru()}):(t.eventHub.failure(new t4.unexpectedError(t3.missingSubmitActionInPidlDoc)),rd())},this.submitAction=function(){var e=t.getSubmitButton();return e&&e.pidlAction?(e.pidlAction.context||t.eventHub.implementationMissing("context","pidlAction"),t.invokePidlAction(e.pidlAction).then(function(){return ru()})):(t.eventHub.failure(new t4.unexpectedError(t3.missingSubmitActionInPidlDoc)),rd())},this.movePrevOrCancel=function(){return t.pageIndex>0?t.movePrevPage():(t.gohome(),ru())},this.invokePidlAction=function(e,n){var r=e.type,o=e.nextAction,a=e.context,s=null;return t.eventHub.pidlActionInvoked(r,{nextAction:null==o?void 0:o.type}),new Promise(function(o,l){var c;switch(r){case k.closePidlPage:t.movePrevPage().then(function(){t.elements.splice(t.pageIndex+1,1),o()},function(){return l()}),t.eventHub.closePidlPage();break;case k.closeModalDialog:t.eventHub.hideModalDialog();var u=t.getCurrentPage();if(u&&u.children&&u.children.length>0){var d=u.children[u.children.length-1];nJ(d)&&d.isModalGroup&&u.children.pop()}o();break;case k.continueSuspendedAction:t.suspendedNextAction?t.invokePidlAction(t.suspendedNextAction,n).then(function(){return o()},function(e){return l(e)}):o();break;case k.propertyBindingAction:var p=a.bindingPropertyName,f=a.actionMap,h=t.getPropertyValue(p);ri.isBool(h)&&(h=ri.toString(h)),t.eventHub.propertyValueSelected(p,h);var m=f[h];m?t.invokePidlAction(m,n).then(function(){return o()},function(e){return l(e)}):o();break;case k.mergeData:var g=a.payload;if(a.explicit){var v=[];for(var y in g){var b=t.getPropertyModelElement(y);b&&v.push(t.updatePropertyValue(b,g[y],Z.editing,!1))}return Promise.all(v).then(function(){return o()},function(){return l()})}t.modelData.updateUserData(g),t.eventHub.modelUpdated(!1),o();break;case k.updatePropertyValue:var x=a.propertyName,C=a.propertyValue;if(ri.isString(x)){var b=t.getPropertyModelElement(x);if(b)return t.updatePropertyValue(b,C,Z.editing,!1)}break;case k.submit:t.submitForm(e).then(function(){return o()},function(e){l(e)});break;case k.triggerSubmit:t.submitAction().catch(function(e){return l(e)});break;case k.submitOriginalPidl:t.movePrevPage().then(function(){t.elements.splice(t.pageIndex+1,1),t.invokeDefaultPidlAction().then(function(){return o()},function(){l()})},function(){return l()}),t.eventHub.submitOriginalPidl();break;case k.validate:t.validateForm(e).then(function(){return o()},function(){return l()});break;case k.validateOnChange:t.validateForm(e).then(function(){return o()},function(){return l()});break;case k.gohome:t.gohome(),o();break;case k.first:t.moveToPageIndex(0).then(function(){return o()},function(){return l()});break;case k.last:t.moveToLastPage().then(function(){return o()},function(){return l()});break;case k.next:t.moveNextPage().then(function(){return o()},function(){return l()});break;case k.prev:t.movePrevPage().then(function(){return o()},function(){return l()});break;case k.moveToPageIndex:var w=a.pageIndex;t.moveToPageIndex(w).then(function(){return o()},function(){return l()});break;case k.restartFlow:t.restartFlow().then(function(){return o()},function(){return l()});break;case k.restAction:a?t.invokeRestMethod(a).then(function(){return o()},function(){return l()}):(t.eventHub.error(new t4.unexpectedError(t3.contextMissingFromPidlAction,[e.type])),l());break;case k.success:n&&n.value?((s=ri.deepCopy(n.value)).operationType=t.operationType,t.eventHub.success(s)):t.eventHub.success(t.createSuccessEventPayload()),o();break;case k.partnerAction:n&&n.value&&(s=ri.deepCopy(n.value),t.eventHub.partnerAction(n.id,s)),o();break;case k.successWithPidlPayload:(s=ri.deepCopy(t.createUserInputData(!0))).operationType=t.operationType,n&&n.value&&(s.additionalData=ri.deepCopy(n.value)),t.eventHub.success(s),o();break;case k.successWithSelectedPidlAction:(s=ri.deepCopy(t.createUserInputData(!0,!0))).operationType=t.operationType,n&&n.value&&(s.additionalData=ri.deepCopy(n.value)),t.eventHub.success(s),o();break;case k.navigateAndNext:var S=t.getLinkActionUrl(a,!0);if(S){var _=t9.getRedirectionService();!t.eventHub.navigate(n.id,S,!1,null,n.dest)&&_&&_.openInNewTab(S),t.moveNextPage().then(function(){return o()},function(){return l()})}else l();break;case k.navigate:t.eventHub.navigate(n.id,a,!1,null,n.dest,e.dest),o();break;case k.triggerEvent:t.eventHub.triggerEvent(null!=(c=e.context.name)?c:"",e.context.params),o();break;case k.redirect:t.eventHub.navigate(n.id,t.getLinkActionUrl(a,!0),!0,a,null),o();break;case k.poll:o();break;case k.updatePollAndMoveLast:t.eventHub.updatePollAndMoveLast(a);break;case k.noAction:o();break;default:t.eventHub.error(new t4.unexpectedError(t3.unknownActionType,[r])),l()}}).then(function(){return!o||t.invokePidlAction(o,n)},function(e){if(e)throw e;return!1})},this.invokeDefaultPidlAction=function(){var e=nt.getDefaultPidlAction([t.getCurrentPage()],t.eventHub);return e?t.invokePidlAction(e):(t.eventHub.error(new t4.unexpectedError(t3.defaultActionNotFound)),rd(!1))},this.invokeRestMethod=function(e){if(!e.href||!e.method){var n=e.href?"method":"href";return t.eventHub.error(new t4.unexpectedError(t3.restActionPidlActionMissingParameters,[n])),ru()}var r={modelData:t.modelData},o=e&&e.shouldHandleSuccess,a=ty.getRestMethodUrl(e.href,t.userContext,t.modelData.getId(),r),s={url:a.url,method:e.method,headers:rS.getHttpHeaders(t.eventHub,t.userContext,e.headers,a.template,r),virtualEndpoint:a.virtualEndpoint,errorCodeExpressions:e.errorCodeExpressions,data:ri.serialize(e.payload)};return t.eventHub.restMethodInvoking(a.url,t.operationType),new Promise(function(e,n){t9.getPidlService().invokeRestMethod(t.eventHub,s,t.operationType).then(function(n){t.eventHub.restMethodInvoked(s.url);var r=n&&n.clientAction;if(r)return t.handleClientAction(r,n);n&&o&&(t.modelData.setPrimaryResourceResponse(n),t.eventHub.success(t.createSuccessEventPayload())),e()},function(r){var o=t.pidlDocManager.getResolvedOrFirstPidlDoc();return t.handleServerError(ro.parseServerError(s.url,s.errorCodeExpressions,o&&o.strings&&o.strings.serverErrorCodes,r),s.url,t.pidlDocManager.getResolvedOrFirstPidlDoc()).then(function(){return e()},function(e){return n(e)})})}).then(rl,function(e){return t.eventHub.failure(e),rd(e)})},this.updateDisplayContainerId=function(e){e&&(t.displaySettings.containerId=e)},this.getMultiPropertySelectorPossibleOptions=function(e){return t.modelData.getMultiPropertySelectorPossibleOptions(e)},this.restartFlow=function(){return new Promise(function(e,n){t.handleRestartFlow().then(function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated(),e()},function(e){return n(e)})})},this.refreshData=function(e){var n=!1,r=ru(),o=t7.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc());return o&&o.length>0&&(t.modelData.clearDataSourceCache(),t.modelData.setPrefillDataInPartnerDataSource(e),r=t.getDataSources(t.operationType,{modelData:t.modelData,model:t},o),n=!0),r.then(function(){n&&(t.modelData.clearFlow(),t.modelData.populate(t.elements)),t.modelData.setPrefillData(t,e,t.resources.constants,t.eventHub),nt.updateModelElements(t.elements,{modelData:t.modelData}),n?t.eventHub.modelUpdated(!1):t.eventHub.dataUpdated()})},this.getPidlInstanceContexts=function(){return t.pidlInstanceContexts},this.loadedSecureFields=[],this.queuedSecureFieldPromises=[],this.queuedIFrameLoadedPromises=[],this.queuedIFrameInitCompletedPromises=[],this.userContext=e.userContext,this.eventHub=e.eventHub,this.pidlDocManager=e.pidlDocManager,this.stateManager=e.stateManager,this.displaySettings=e.displaySettings||new rs({containerId:""}),this.urls=e.urls||{},this.callbacks=e.callbacks||{},this.transformers=e.transformers||{},this.localDataSourceProviders=e.localDataSourceProviders,this.modelData=new rF(this.pidlDocManager),this.eventHub.addPrivateEventHandler(this.privateEventHandler),this.eventHub.registerEventExtender("pageId",this.getCurrentPageId),this.validator=new rz(this.eventHub,this.displaySettings.alwaysValidateOnChange),this.resources=new rE(this.pidlDocManager),this.setClientSettings(this.pidlDocManager)}return e.prototype.getResourceData=function(e,t,n,r){var o,a=this,s=null;if(t.dataSourceConfig&&(o=t.dataSourceConfig,delete t.dataSourceConfig),tD(t)){var l=t.href,c=t.method,u=t.headers,d=t.fetchConfig,p=ty.getRestMethodUrl(l,this.userContext,this.modelData.getId(),r),f=p.url,h=p.template,m={url:f,method:c,virtualEndpoint:p.virtualEndpoint,pidlOperation:n,headers:rS.getHttpHeaders(this.eventHub,this.userContext,u,h,r),fetchConfig:d};s=new Promise(function(e,t){return t9.getPidlService().getInstance(a.eventHub,m).then(function(t){a.eventHub.instanceDownloaded(),e(t)},function(e){var n=ro.createServerError(t3.resourceInstanceDownloadFailed,m.url,e,[e.errorMessage]);a.eventHub.failure(n),t(n)})})}else s=tA(t)?ru(t.members):ru(t);return new Promise(function(t,n){s.then(function(n){return ti(a,void 0,void 0,function(){var a,s,l,c=this;return ta(this,function(u){return s=ru(a=n),o&&o.useLocalDataSource&&this.localDataSourceProviders&&this.localDataSourceProviders[e]&&(l=this.localDataSourceProviders[e].mergingFunction||"mergeLocalData",this.eventHub.getLocalDataSourceInvoked(e),s=this.localDataSourceProviders[e].getDataSource().then(function(t){a=ro.getFunctionExecutionResult({functionName:l,arguments:[n,t]},r);var o=ro.getFunctionExecutionResult({functionName:"getDataSourceCount",arguments:[e,a]},r);return c.eventHub.getLocalDataSourceResolved(e,o),a},function(t){c.eventHub.getLocalDataSourceError(e,t)})),[2,s.then(function(n){var a=n;o&&o.filter&&o.filter.functionName&&(a=ro.getFunctionExecutionResult({functionName:o.filter.functionName,arguments:[n,o.filter.functionContext]},r)),c.modelData.setDataSource(e,a),t()})]})})},function(e){n(e)})})},e.prototype.postChallengeiFrameMessage=function(e){var t=this;return new Promise(function(n,r){var o,a,s=null==(a=null==(o=window.frames.iframe_ChallengeFrame)?void 0:o.contentWindow)?void 0:a.frames.challenge_iframe;if(s){var l="https://"+ra.getServiceEndpoint(ra.virtualEndpoints.challengeUI.endpoint);s.contentWindow.postMessage(e,l)}else setTimeout(function(){t.postChallengeiFrameMessage(e).then().catch(function(){var e=new t4.unexpectedError(t3.challengeIframeMessagePostFailure);t.eventHub.failure(e)})},t.postMessageTimeoutInMs)})},e.prototype.postSecureFieldMessage=function(e,t,n,r){var o=this;return new Promise(function(a,s){var l=o.buildMessage(t,n);r&&(l.correlationId=r),o.queuedSecureFieldPromises.push({id:l.correlationId,resolve:a,reject:s}),o.guaranteedPostMessage(e,l,0)})},e.prototype.postGuaranteedSecureFieldMessage=function(e,t,n,r){var o=this.buildMessage(t,n);r&&(o.correlationId=r),this.guaranteedPostMessage(e,o,0)},e.prototype.queueSecureFieldLoadedPromise=function(e){var t=this;return new Promise(function(n,r){t.queuedIFrameLoadedPromises.push({id:e,resolve:n,reject:r})})},e.prototype.resolveSecureFieldLoadedPromise=function(e){this.queuedIFrameLoadedPromises.forEach(function(t){t.id===e&&t.resolve()}),this.queuedIFrameLoadedPromises=this.queuedIFrameLoadedPromises.filter(function(t){return t.id!==e})},e.prototype.queueSecureFieldInitCompletedPromise=function(e){var t=this;return new Promise(function(n,r){t.queuedIFrameInitCompletedPromises.push({id:e,resolve:n,reject:r})})},e.prototype.resolveSecureFieldInitCompletedPromise=function(e){this.queuedIFrameInitCompletedPromises.forEach(function(t){t.id===e&&t.resolve()}),this.queuedIFrameInitCompletedPromises=this.queuedIFrameInitCompletedPromises.filter(function(t){return t.id!==e})},e.prototype.buildMessage=function(e,t){return{source:eI.pidlSdkMessageSource,event:e,payload:t,correlationId:ro.guid()}},e.prototype.guaranteedPostMessage=function(e,t,n){var r=this;if(!(n>this.maxRetryPostMessage))if(n++,this.loadedSecureFields.includes(e)&&window.frames[e]){var o="https://"+ra.getServiceEndpoint(ra.virtualEndpoints.securePx.endpoint);this.secureFieldOriginOverride&&(o=this.secureFieldOriginOverride),window.frames[e].postMessage(t,o),this.eventHub.secureFieldEventPosted(e,t.event,t.correlationId)}else this.eventHub.secureFieldEventQueued(e,t.event,t.correlationId),setTimeout(function(){r.guaranteedPostMessage(e,t,n)},this.postMessageTimeoutInMs)},e.prototype.getSecurePropertyInitializationPayload=function(e){var t,n,r,o=null==(t=null==e?void 0:e.modelElement)?void 0:t.dataDescription,a=null==(n=null==e?void 0:e.modelElement)?void 0:n.displayDescription,s=null==a?void 0:a.propertyName,l=null==o.validations?[o.validation]:o.validations;return{maxLength:null==a?void 0:a.maxLength,isOptional:o.is_optional,resolutionPolicy:null==(r=null==e?void 0:e.modelElement)?void 0:r.resolutionPolicy,keyPropertyResolutionMappings:o.keyPropertyResolutionMappings,propertyDataValidations:l,cssStyles:this.computedStyles.style[s],msCv:this.eventHub.getCorrelationId(),sessionId:this.eventHub.getSessionId()}},e.prototype.handleExpressCheckoutButtonMessage=function(e,t){var n,r,o,a,s,l,c,u=this;switch(null==(n=e.data)?void 0:n.messageType){case eT.paymentSheetOpened:this.eventHub.paymentSheetOpened(null==(r=e.data)?void 0:r.source);break;case eT.paymentData:var d=e.data.pidlAction||null;d?this.invokePidlAction(d).then(function(){u.eventHub.postMessageHandleSuccess(d.type)},function(){u.eventHub.postMessageHandleFailure("specified pidlAction from expressCheckout is not successful. pidlAction type: "+d.type)}):this.eventHub.postMessageHandleFailure("pidlAction from expressCheckout is not specified");break;case eT.paymentDataTokenizing:this.eventHub.paymentDataTokenizing(null==(o=e.data)?void 0:o.source);break;case eT.paymentDataTokenized:this.eventHub.paymentDataTokenized({source:null==(a=e.data)?void 0:a.source,tokenReference:null==(s=e.data)?void 0:s.tokenReference});break;case eT.cancel:this.eventHub.paymentSheetCancelled(null==(l=e.data)?void 0:l.source);break;case eT.error:var p=null==(c=e.data)?void 0:c.error,f=p;try{f=JSON.parse(p)}catch(e){f=p}var h={error:f,stack:null==f?void 0:f.stack,message:null==f?void 0:f.message},m=void 0;p===eD.failedToOpenWindow?m=new t4.failedToOpenWindowError(t3.failedToOpenWindow,JSON.stringify(h)):(null==f?void 0:f.message)===eD.tokenizationFailed?(h.message=null==f?void 0:f.originalError,m=new t4.unexpectedError(t3.tokenizationFailed,[JSON.stringify(h)])):m=new t4.paymentMethodFailureError(t3.paymentMethodFailure,JSON.stringify(h)),this.eventHub.failure(m)}},e.prototype.testHookSetCurrentPage=function(e){this.pageIndex=e},e.prototype.testHookGetCurrentPage=function(){return this.pageIndex},e.prototype.testHookGetValidator=function(){return this.validator},e.prototype.testHookGetModelData=function(){return this.modelData},e.prototype.testHookClearElementEditStates=function(){return this.clearElementEditStates()},e.prototype.testHookSetCallbacks=function(e){this.callbacks=e},e.prototype.testHookSetSuspendedNextAction=function(e){this.suspendedNextAction=e},e.prototype.testHookGetInputDataCache=function(){return this.inputDataCache},e}(),r$=function(){return function(e,t){var n=this;this.getPidlDocumentHook=null,this.originalPidlDocs=[],this.resolvedPidlDocs=[],this.pidlIdentityHashMapping={},this.downloadedPidlDocsByUrl={},this.lastDownloadedPidlDoc=null,this.operationInfo=null,this.currentUrl=null,this.currentHeaders=null,this.pidlPayload=null,this.logos=[],this.updatePidlDocStore=function(e,t,r){if(n.operationInfo&&n.operationInfo.handle){var o=t9.getPidlStoreService();if(o){var a=o.get(n.operationInfo.handle);e=e||a&&a.pidls;var s=t[0]&&t[0].identity||a&&a.resolvedPidlIdentity;o.put(n.operationInfo.handle,r||a.pidlDocInfo,e,s)}}},this.getResolvedLogoDescription=function(e){for(var t=0;t<e.length;t++){var r=e[t];if(tI(r))return r;if(tC(r)&&r.members){var o=n.getResolvedLogoDescription(r.members);if(o)return o}}},this.getIdentityLessCountry=function(e){return e.description_type+"_"+e.type},this.addIdentity=function(e){if(e&&e.identity){var t=t7.createIdentityHash(e.identity),r=n.getIdentityLessCountry(e.identity);n.pidlIdentityHashMapping[t]=r}},this.addLogo=function(e){var t=e.displayDescription;if(t&&ri.isArray(t))for(var r=0;r<t.length;r++){var o=[];t7.getLogoDescriptions(t[r],o);for(var a=0;a<o.length;a++){for(var s=!1,l=0;l<n.logos.length;l++)if(n.logos[l].displayId===o[a].displayId){s=!0;break}s||n.logos.push(o[a])}}},this.checkPidlDoc=function(e){if(e){n.addIdentity(e);var t=e.data_description;for(var r in t){var o=t[r];if(o instanceof Array)for(var a=0;a<o.length;a++)n.checkPidlDoc(o[a])}}},this.isPidlForCurrentOperation=function(e){return!n.operationInfo||!n.operationInfo.operationType||!e||!e.identity||!e.identity.operation||ri.equalsIgnoreCase(n.operationInfo.operationType,e.identity.operation)||ri.equalsIgnoreCase(eL.update,e.identity.operation)},this.swapPidlDoc=function(e,t,r){if(n.resetPidlDocs(),t){if(t instanceof Array)for(var o=0;o<t.length;o++)n.checkPidlDoc(t[o]),n.isPidlForCurrentOperation(t[o])&&(n.originalPidlDocs.push(t[o]),n.addLogo(t[o]));else n.checkPidlDoc(t),n.isPidlForCurrentOperation(t)&&(n.originalPidlDocs.push(t),n.addLogo(t));if(1===n.originalPidlDocs.length?n.resolvedPidlDocs=ri.copyArray(n.originalPidlDocs):r&&ri.invokeIf(n.originalPidlDocs,function(e){var t=e.identity;return ri.objectEquals(r,t)},function(e){n.resolvedPidlDocs.push(n.originalPidlDocs[e])}),0===n.resolvedPidlDocs.length){var a=t9.getCommerceService(),s=t7.createKeyPropertyMap(n.originalPidlDocs,t7.getDefaultPropertyValueGetter()),l=a.getFirstPidlWithValidDefaultKey(n.originalPidlDocs,s);l&&n.resolvedPidlDocs.push(l)}e&&e.pidlResolved("swapPidlDocs",n.resolvedPidlDocs)}},this.resetPidlDocs=function(){n.originalPidlDocs=[],n.resolvedPidlDocs=[],n.pidlIdentityHashMapping={},n.logos=[]},this.getPidlDocument=function(e,t){return e.pidlDownloading(t.url),new Promise(function(r,o){var a=ri.toLowerCase(t.url);if(n.pidlPayload)r(n.pidlPayload);else{if(!n.downloadedPidlDocsByUrl[a])return t9.getPidlService().getPidlDocument(e,t,n.getPidlDocumentHook).then(function(e){n.downloadedPidlDocsByUrl[a]=e,r(e)},function(e){o(e)});r(n.downloadedPidlDocsByUrl[a])}})},this.setPidlDoc=function(e,t,r){n.clearCache(),t instanceof Array||(t=t?[t]:null),n.swapPidlDoc(e,t,r),n.updatePidlDocStore(t,n.resolvedPidlDocs,n.currentPidlDocInfo)},this.getPidlPayload=function(){return n.pidlPayload},this.setToLastDownloadedPidlDoc=function(e){n.setPidlDoc(e,n.lastDownloadedPidlDoc)},this.downloadPidlDoc=function(e,t,r,o,a,s){return new Promise(function(l,c){n.getPidlDocument(e,{url:t.url,headers:r,virtualEndpoint:t.virtualEndpoint,pidlOperation:n.operationInfo.operationType,fetchConfig:s}).then(function(s){var c,u,d;if(s&&s[0]&&s[0].clientAction)return void l(s[0].clientAction);if(tB(s)){for(var p in null==(c=null==s?void 0:s.pidlInfo)?void 0:c.pidls)if(n.operationInfo.operationType.toLowerCase()===p.toLowerCase()){d=null==(u=null==s?void 0:s.pidlInfo)?void 0:u.pidls[p];break}n.pidlPayload=s}else d=s;n.currentUrl=t,n.currentHeaders=r,n.currentPidlDocInfo=o||n.currentPidlDocInfo,n.lastDownloadedPidlDoc=d,n.swapPidlDoc(e,d,a),n.updatePidlDocStore(d,n.resolvedPidlDocs,o),l()},function(e){c(e)})})},this.retrievePidlDocFromCache=function(e,t,r){return new Promise(function(o,a){var s=t9.getPidlStoreService().get(t);s&&s.pidls?(n.lastDownloadedPidlDoc=s.pidls,n.swapPidlDoc(e,s.pidls,r),o()):a(t3.invalidCacheEntry)})},this.shouldDownloadNewPidl=function(e,t,r,o){return!(e instanceof Array&&e.length>=1||!n.currentUrl||nV(t)&&t.possibleOptions&&!r)&&t.triggerPidlDownloadOnChange&&(o===Z.finished||nV(t)&&o===Z.editing)},this.resolvePidlDoc=function(e,t,r,o,a){var s=t9.getCommerceService(),l=n.getAllPidlDocs(),c=t7.createKeyPropertyMap(l,t7.getPropertyValueGetter(o.getPropertyName(),r,t));return s.resolveInfoDescriptionId(l,c).then(function(l){if(n.shouldDownloadNewPidl(l,o,r,a)){var u=ri.deepCopy(n.currentUrl.originalParameters);if(ro.updatePidlDocUrlParams(u.pidlDocInfo,c)){var d=n.currentUrl.recreateUrl(u);return n.downloadPidlDoc(e,d,n.currentHeaders,u.pidlDocInfo).then(function(){return e.pidlDownloaded(),n.resolvePidlDoc(e,t,r,o,a).then(function(){return!0})},function(t){return e.failure(ro.createServerError(t3.pidlDocDownloadFailed,d.url,t,[t.errorMessage])),!1})}}else if(!t7.matchPidlIdsToPidls(s,l,n.resolvedPidlDocs)&&(n.resolvedPidlDocs=t7.resolvePidlDocs(n.originalPidlDocs,l),e.pidlResolved("resolvedPidlDocs",n.resolvedPidlDocs),0!==n.resolvedPidlDocs.length))return!0;return!1})},this.isEmpty=function(){return 0===n.originalPidlDocs.length},this.getResolvedOrAllPidlDocs=function(){return 0!==n.resolvedPidlDocs.length?n.resolvedPidlDocs:n.originalPidlDocs},this.getResolvedOrFirstPidlDoc=function(){return n.resolvedPidlDocs.length>0?n.resolvedPidlDocs[0]:n.originalPidlDocs.length>0?n.originalPidlDocs[0]:null},this.getAllPidlDocs=function(){return n.originalPidlDocs},this.clearCurrentPIDLResource=function(){n.currentPidlDocInfo&&t9.getPidlStoreService().removeResourceEntries(n.currentPidlDocInfo.resourceType)},this.getPidlIdentity=function(){var e=n.getResolvedOrFirstPidlDoc();return e?e.identity:null},this.getAllLogos=function(){return n.logos},this.getResolvedLogo=function(){if(1===n.resolvedPidlDocs.length)return n.getResolvedLogoDescription(n.resolvedPidlDocs[0].displayDescription)},this.getLogoUrl=function(e,t){var n=e.toLowerCase();switch(n){case"mastercard":return t.mc;case"americanexpress":case"american express":return t.amex;default:return t[n]||""}},this.getLogosFromDataDescription=function(){var e,t=n.getResolvedOrFirstPidlDoc();if(null==(e=null==t?void 0:t.data_description)?void 0:e.cardLogos){var r=t.data_description.cardLogos;return(null==r?void 0:r.possible_values)||{}}return{}},this.getIdentityString=function(e){return e&&e in n.pidlIdentityHashMapping?n.pidlIdentityHashMapping[e]:null},this.reset=function(){n.resetPidlDocs(),n.operationInfo=null,n.clearCache()},this.clearCache=function(){n.downloadedPidlDocsByUrl={}},this.getNextPidlRef=function(){if(n.resolvedPidlDocs[0]&&n.resolvedPidlDocs[0].links)return n.resolvedPidlDocs[0].links.nextPidl},this.getLinkedPidls=function(){var e=n.getResolvedOrFirstPidlDoc();if(e)return e.linkedPidls},this.getLinkedPidl=function(e){var t=n.getLinkedPidls();if(t){for(var r=0;r<t.length;r++)if(t7.createIdentityHash(t[r].identity)===e)return t[r]}},this.getPidlInstanceContexts=function(){var e=n.getResolvedOrFirstPidlDoc();if(e)return e.pidlInstanceContexts},this.setOperationInfo=function(e){n.operationInfo=e},this.getOperationHandle=function(){if(n.operationInfo)return n.operationInfo.handle},this.testHookGetGetPidlDocumentHook=function(){return n.getPidlDocumentHook},this.testHookGetResolvedPidlDoc=function(){return n.resolvedPidlDocs},this.testHookSetResolvedPidlDocument=function(e){n.resolvedPidlDocs=e instanceof Array?e:[e]},this.testHookSetCurrentUrl=function(e){n.currentUrl=e},this.getPidlDocumentHook=e||null,this.pidlPayload=t||null}}(),rQ={addAddress:[Q.initialized],selectPaymentInstrument:[Q.initialized],addPaymentInstrument:[Q.initialized],listAddress:[Q.initialized],addResource:[Q.initialized],applyResource:[Q.initialized],replaceResource:[Q.initialized],updateResource:[Q.initialized],updateProfile:[Q.initialized],selectResource:[Q.initialized],selectSingleResource:[Q.initialized],selectResourceType:[Q.initialized],validateResource:[Q.initialized],showResource:[Q.initialized],offerResource:[Q.initialized],searchResource:[Q.initialized],deleteResource:[Q.initialized],fundStoredValue:[Q.initialized],createPaymentSession:[Q.initialized],handleChallenge:[Q.initialized],handlePaymentChallenge:[Q.initialized],expressCheckout:[Q.initialized],handlePurchaseRiskChallenge:[Q.initialized],handlePurchasePendingState:[Q.initialized],renderPidlPage:[Q.initialized],getPidlPayload:[Q.executing],invokePageDefaultAction:[Q.executing],invokeResourceAction:[Q.initialized,Q.executing],moveNextPage:[Q.executing],validateProperties:[Q.executing],submitPage:[Q.submitting,Q.executing,Q.initialized],movePrevPage:[Q.executing],moveToLastPage:[Q.executing],moveToFirstPage:[Q.executing],refreshData:[Q.executing],cancel:[Q.initialized,Q.executing,Q.submitting],destroyInstance:[Q.submitting,Q.executing,Q.initialized,Q.notInitialized],modelSubmitForm:[Q.executing,Q.submitting],handleAction:[Q.initialized],getSelectedResource:[Q.initialized,Q.executing,Q.submitting],renderPidlDocument:[Q.initialized],postMessageToChildIFrames:[Q.executing,Q.submitting],profilePrerequisite:[Q.initialized],handleCheckout:[Q.initialized],getPayeeTaxProfile:[Q.initialized],redeemMSRewards:[Q.initialized],searchTransactions:[Q.initialized],selectMSRewards:[Q.initialized]},rJ=function(){function e(e){this.state=Q.notInitialized,this.eventHub=e;var t=this;this.eventHub.addPrivateEventHandler(function(e,n){t.privateEventHandler(e,n)})}return e.prototype.privateEventHandler=function(e,t){if(this.state!==Q.notInitialized)switch(e){case _.success:case _.failure:case _.gohome:t[E.preventUnmountOnFinish]||this.setState(Q.initialized)}},e.prototype.getState=function(){return this.state},e.prototype.setState=function(e){this.eventHub.stateChanged(this.state,e),this.state=e},e.prototype.canApiStart=function(e){if(this.state===Q.notInitialized)return{error:new t4.apiValidationError(t3.apiCannotStartAsControlNotInitialized,e,[e]),result:!1};var t=rQ[e];return t?ri.contains(t,this.state)?{result:!0}:{error:new t4.apiValidationError(t3.apiCannotStartAsNotAllowedInCurrentState,e,[e,this.state,t.toString()]),result:!1}:{error:new t4.unexpectedError(t3.apiStateMappingNotFound,[e]),result:!1}},e}(),rZ=function(){function e(e){this.userContext=e}return e.prototype.getServiceParam=function(e,t){if(!this.userContext)return null;var n=tV.findVirtualEndpointInTemplate(e);if(n&&n.name&&this.userContext.serviceOverrides){for(var r in this.userContext.serviceOverrides)if(ri.toLowerCase(r)===n.name)return this.userContext.serviceOverrides[r][t]||this.userContext[t]}return this.userContext[t]},e.prototype.getAdditionalHeaders=function(e){return this.getServiceParam(e,"additionalHeaders")},e.prototype.getAuthToken=function(e){return this.getServiceParam(e,"authToken")},e.prototype.getUserId=function(e){return this.getServiceParam(e,"userId")},e.prototype.getHeaders=function(e,t){e=e||{};var n=this.getAuthToken(t);n&&(e[M.authorization]=n);var r=this.getAdditionalHeaders(t);if(r)for(var o in r)e[o]=r[o];return e},e.prototype.getUserCredential=function(e){var t=this.getAuthToken(e);if(!t){var n=this.getAdditionalHeaders(e);for(var r in n)if(ri.equalsIgnoreCase(r,M.authorization)){t=n[r];break}}return t},e}(),r0=function(){function e(e){var t=this;this.waitForSecureFields=!1,this.displaySettings=null,this.model=null,this.userContext=null,this.eventHub=null,this.focusTarget=null,this.unseenErrors=[],this.totalExpressCheckoutButtonElements=0,this.expressCheckoutButtonEligibilityStatus={},this.securePropertyPromises=[],this.securePropertyInitCompletedPromises=[],this.errorPropertyGroups={},this.pollingActions={},this.pageRestActions={},this.valueSetters=[],this.view=null,this.pollingTimersAndCounters={},this.showHideBusy=function(e){(e||!t.displaySettings.busyUntilInitialPageRendered)&&(t.displaySettings.busyBlockShowHideHandler?t.displaySettings.busyBlockShowHideHandler(e):t.view.showHideBusy(e))},this.applyForModelDisplayTransformation=function(e,t,n){if(n0(e)&&!(n&&e.maskDisplay)&&e.displayTransformations&&e.displayTransformations.forModel)return ro.applyDisplayTransformation(e.displayTransformations.forModel,t)},this.hideError=function(e){e?t.view.hidePropertyError(e):t.view.hidePageError()},this.showGroupError=function(e){return!!e.groupDisplayId&&(t.view.showGroupError(e)||t.unseenErrors.push(e),!0)},this.showPropertyError=function(e){return!!e.propertyName&&(t.view.showPropertyError(e)||t.unseenErrors.push(e),!0)},this.showPageError=function(e){return t.view.showPageError(e)},this.hideModalDialog=function(){return t.view.hideModalDialog()},this.showError=function(e){var n=!1;switch(e.type){case I.formValidation:var r=e;if(r.errors&&r.errors.length>0){for(var o=0;o<r.errors.length;o++)if(r.errors[o].message===ee.empty&&(r.errors[o].message=""),!t.showError(r.errors[o]))return;e.name===t3.formSubmissionFailedBadUserInput.name&&r.message!==ee.empty&&(n=!0)}else n=!0;break;case I.userInputValidation:n=e.validationErrorType===D.group?!t.showGroupError(e):!t.showPropertyError(e);break;default:n=!0}return n&&t.showPageError(e),!0},this.fillForm=function(e){var n=t.view.getVisibleProperties();t.model.showMaskedValues=e===et.pageNavigated;var r={isRadioProperty:!1,firstRadioChecked:!1,updateReason:e};if(n.forEach(function(e){var n=t.model.modelData.getProperty(e),o=t.model.getPropertyModelElement(e);r.isRadioProperty=n2(o);var a=t.model.modelData.getPrefillData(),s=t.model.showMaskedValues&&t.model.modelData.getMaskedPropertyValue(e)||n0(o)&&o.displayTransformations&&o.displayTransformations.forFormat&&ro.applyDisplayTransformation(o.displayTransformations.forFormat,n.value)||n.value;t.model.showMaskedValues&&s!==n.value&&t.view.setAccessibilityText(o,o.tags&&o.tags.maskedAccessibilityName||o.accessibilityName||o.displayName),nV(o)&&(r.dropdownElement=o),s&&t.model.sendResourceSelectedEvent(e,Z.ready),n1(o)&&a&&a.id&&t.view.updateButtonList(o,a.id,a.invalid),t.view.updatePropertyValue(e,n.editable,s,r)}),t.valueSetters&&t.valueSetters.length)for(var o=0;o<t.valueSetters.length;o++)t.valueSetters[o].set();t.view.updatePrefillControls()},this.reset=function(){t.unseenErrors=[],t.errorPropertyGroups={},t.model.showMaskedValues=!1,t.view.reset(),t.valueSetters=[],t.stopAllPolling()},this.stopAllPolling=function(){for(var e in t.pollingTimersAndCounters)t.stopPoll(e);t.pollingTimersAndCounters={},t.pollingActions={}},this.stopPoll=function(e){t.pollingTimersAndCounters[e]&&(t.pollingTimersAndCounters[e].pollingCounter=0,clearInterval(t.pollingTimersAndCounters[e].pollingTimer))},this.startPollingWithNextAction=function(e){t.pollingActions[e]&&t.pollingActions[e].nextAction&&(t.pollingActions[e]=t.pollingActions[e].nextAction,t.pollingHandler(e,t.pollingActions[e]))},this.registerGroupedErrors=function(e){if(e&&e.errors&&e.errors.length)for(var n=[],r=0;r<e.errors.length;++r){var o=e.errors[r],a=e.errors[r];o.propertyName&&(n.push(o.propertyName),t.errorPropertyGroups[o.propertyName]=n),a.groupDisplayId&&(n.push(a.groupDisplayId),t.errorPropertyGroups[a.groupDisplayId]=n)}},this.deregisterGroupedErrors=function(e,n){if(n||(n=t.hideError),e&&t.errorPropertyGroups[e])for(var r=t.errorPropertyGroups[e],o=0;o<r.length;++o){var a=r[o];t.unseenErrors.length>0&&ri.filter(t.unseenErrors,function(e){return!e.propertyName||e.propertyName!==a}),n(a),delete t.errorPropertyGroups[a]}},this.handleErrorEvent=function(e){if(!t.displaySettings.hidePropertyErrors){var n=e.error;if(n){(!t4.isServerError(n)||n.retryable)&&t4.isServerError(n)||t.showHideBusy(!1);var r=n.propertyName;r&&n.type===I.userInputValidation&&t.deregisterGroupedErrors(r),t.sortError(n),t.showError(n),n.name===t3.formSubmissionFailedBadUserInput.name?(t.registerGroupedErrors(n),t.view.setFocusOnFirstError()):n.name===t3.formValidationFailed.name&&t.view.setFocusOnFirstError()}}},this.sortError=function(e){if(e.type===I.formValidation){var n=e;if(null!==n.errors&&!(n.errors.length<=1)){var r=t.model.getCurrentPage(),o=[];t.addError(r,n,o),n.errors=o}}},this.addError=function(e,n,r){if(null!=e)for(var o=0;o<e.children.length;o++){var a=e.children[o];if(rn(a)||n9(a)){var s=a.getPropertyName(),l=t.getErrorByPropertyName(n.errors,s);null!==l&&r.push(l)}else if(nO(a)){t.addError(a,n,r);var c=t.getErrorByDisplayId(n.errors,a.displayId);null!==c&&r.push(c)}}},this.getErrorByPropertyName=function(e,t){if(null==t)return null;for(var n=0;n<e.length;n++){var r=e[n];if(t===r.propertyName)return r}return null},this.getErrorByDisplayId=function(e,t){if(null==t)return null;for(var n=0;n<e.length;n++){var r=e[n];if(t===r.groupDisplayId)return r}return null},this.handlePropertyValidated=function(e){e&&(t.hideError(e.propertyName),t.deregisterGroupedErrors(e.propertyName))},this.setSubmitButtonState=function(e){var n=t.model.getSubmitButton()||{},r=n.accessibilityName,o=void 0===r?null:r,a=n.disabledAccessibilityName,s=void 0===a?null:a,l=n.displayId,c=void 0===l?null:l;t.view.setDisabledByDisplayId(c,e,{accessibilityName:o,disabledAccessibilityName:s})},this.publicEventHandler=function(e,n){switch(e){case S.error:t.handleErrorEvent(n);break;case S.propertyValidated:t.handlePropertyValidated(n);break;case S.pidlDownloading:case S.pageRendering:case S.inputSubmitting:case S.redirecting:case S.instanceDownloading:case S.restMethodInvoking:case S.propertyTokenizing:t.showHideBusy(!0);break;case S.pageRendered:for(var r in t.displaySettings.busyUntilInitialPageRendered=!1,t.pollingActions=nt.getPollingPidlActions(t.model.elements),t.pollingActions)t.pollingHandler(r,t.pollingActions[r]);nt.findRadioElements(t.model.elements).forEach(function(e){rn(e)&&t.model.sendSelectionChangeEvent(e,e.defaultValue)}),t.pageRestActions=nt.getPagePidlActions(t.model.elements,k.restAction);var o=[];for(var r in t.pageRestActions)o.push(t.invokePidlAction(t.pageRestActions[r]));if(o.length>0){Promise.all(o).finally(function(){t.showHideBusy(!1)}).catch(t.displaySettings.propagateCallbackException?rc:rl);break}if(t.waitForSecureFields)break;case S.pageDisplayed:case S.pidlDownloaded:case S.instanceDownloaded:case S.restMethodInvoked:case S.inputSubmitted:t.showHideBusy(!1);break;case S.pageNavigated:t.updateView(et.pageNavigated);break;case S.propertySelected:t.view.markAsFilled(n.divId)}},this.privateEventHandler=function(e,n){switch(e){case _.modelUpdated:var r=n&&n.created?et.modelCreated:et.modelUpdated;t.updateView(r,null==n?void 0:n.skipHideBusyBlock);break;case _.dataUpdated:t.fillForm();break;case _.secureFieldLoadWaitStarted:t.showHideBusy(!0),t.waitForSecureFields=!0;break;case _.secureFieldLoadWaitEnded:t.showHideBusy(!1),t.waitForSecureFields=!1;break;case _.success:case _.failure:case _.gohome:t.showHideBusy(!1),t.reset();break;case _.propertyCreated:var o=n;t.view.checkAndMarkAsFilled(o.divId,o.controlId);break;case _.propertyUnselected:var a=n;t.view.checkAndMarkAsUnfilled(a.divId,a.id);break;case _.postMessageBusyTimerStarted:t.showHideBusy(!0);break;case _.postMessageBusyTimerEnded:t.showHideBusy(!1);break;case _.hideModalDialog:t.hideModalDialog();break;case _.submitting:t.setSubmitButtonState(!0);break;case _.submitted:t.setSubmitButtonState(!1);break;case _.updatePollAndMoveLast:var s=n.pollId||"";t.stopPoll(s),t.startPollingWithNextAction(s),t.model.moveToLastPage().catch(rl)}},this.getPollingPidlActionContext=function(e){var t=e.context,n=t.href,r=t.responseResultExpression,o=t.responseActions,a=t.method;if(n&&r&&o&&a)return e.context},this.getPidlActionFromPollingResponse=function(e,t,n){if(!e||!t||!n)return null;var r=ri.getPropertyValueByJPath(e,t);return ri.getPropertyValueByJPath(n,r)},this.getModelPropertyValue=function(e){return t.model.getPropertyValue(e)},this.updateModelPropertyValue=function(e,n,r){return t.model.updatePropertyValue(t.model.getPropertyModelElement(e),n,r,!1)},this.updateView=function(e,n){t.view.initialize(t.eventHub,t.model,t.displaySettings,t);var r=t.model.getCurrentPage(),o=t.model.getCaptchaType(),a=t.model.getPidlInstanceContexts();t.model.secureFieldResolved||t.view.reset(),t.totalExpressCheckoutButtonElements=nt.findExpressCheckoutButtonElements(t.model.elements).length;var s=t.view.render({updateReason:e,focusTarget:t.focusTarget,captchaType:o,pageElement:r,viewEventHandler:t,displaySettings:t.displaySettings,eventHandler:t.eventHandler,eventHub:t.eventHub,pidlInstanceContexts:a,displayOptions:t.displayOptions,callbacks:t.callbacks,telemetryOptions:t.telemetryOptions,userContext:t.userContextIn,returnOptions:t.returnOptions,externalPrivateEventHandler:t.externalPrivateEventHandler,oneDSService:t.oneDSService,transformers:t.transformers,pidlPayload:t.pidlPayload,localDataSourceProviders:t.localDataSourceProviders,controlApiMap:t.controlApiMap});if(t.valueSetters=s.valueSetters,t.eventHub.pageRefreshed(),t.fillForm(e),t.view.restoreCaretPosition&&e!==et.pageNavigated&&t.view.restoreCaretPosition(),t.model.validateEditedProperties().catch(rl),e===et.modelCreated)t.unseenErrors=[],t.errorPropertyGroups={};else{var l=t.unseenErrors;t.unseenErrors=[],n||t.showHideBusy(!1);for(var c=0;c<l.length;c++)t.showError(l[c]);e!==et.modelUpdated&&t.view.setFocusOnFirstError()}},this.hasSecureFields=function(e){var n,r=e.children;if(!r)return!1;for(var o=0,a=r;o<a.length;o++){var s=a[o];if((null==(n=null==s?void 0:s.isSecureProperty)?void 0:n.call(s))||nJ(s)&&t.hasSecureFields(s))return!0}return!1},this.getTimeoutPromise=function(e){return new Promise(function(n,r){var o=setTimeout(function(){r(Error("Timeout"))},e);t.getTimeoutPromise.id=o})},this.clearTimeoutPromise=function(){var e;try{var n=null==(e=t.getTimeoutPromise)?void 0:e.id;n&&clearTimeout(n)}catch(e){}},this.createSecurePropertyLoadedPromise=function(e){t.securePropertyPromises.push(t.model.queueSecureFieldLoadedPromise(e))},this.resolveSecurePropertyLoadedPromise=function(e){t.model.resolveSecureFieldLoadedPromise(e)},this.createSecurePropertyInitCompletedPromise=function(e){t.securePropertyInitCompletedPromises.push(t.model.queueSecureFieldInitCompletedPromise(e))},this.getSecurePropertyLoadedPromises=function(){return t.securePropertyPromises},this.getSecurePropertyInitCompletedPromises=function(){return t.securePropertyInitCompletedPromises},this.extractStylesFromStylesheet=function(e){for(var n=document.styleSheets,r=".errorStroke",o=".".concat(u.errorStroke),a=".".concat(u.secureProperty),s=0;s<n.length;s++){var l=n[s];try{for(var c=l.cssRules||l.rules,d=0;d<c.length;d++){var p=c[d];if(p instanceof CSSStyleRule)for(var f=p.selectorText.split(","),h=0;h<f.length;h++){var m=f[h].trim();m.includes(r)||m.includes(o)?e.push(m+"{ "+p.style.cssText+" }"):m.includes(a)&&(m=m.replace(a,""),e.push(m+"{ "+p.style.cssText+" }"))}}}catch(e){t.eventHub.styleSheetError(e,null==l?void 0:l.href)}}},this.computeSecurePropertyStyles=function(e,n){var r=[];n&&0===Object.keys(n).length?t.extractStylesFromStylesheet(r):n&&t.computeStylesFromHardCodedStyles(n,r),t.model.computedStyles.style[e]=r},this.computeStylesFromHardCodedStyles=function(e,t){var n='input[type="text"]',r=Object.keys(e.textFieldStyles).map(function(t){return"".concat(t,":").concat(e.textFieldStyles[t])}).join(";");t.push(n+"{"+r+"}");var o=".normalClass",a=Object.keys(e.fieldGroupNormalStyles).map(function(t){return"".concat(t,":").concat(e.fieldGroupNormalStyles[t])}).join(";");t.push(o+"{"+a+"}");var s=".focusClass",l=Object.keys(e.fieldGroupFocusStyles).map(function(t){return"".concat(t,":").concat(e.fieldGroupFocusStyles[t])}).join(";");t.push(s+"{"+l+"}");var c=".errorClass",u=Object.keys(e.fieldGroupErrorStyles).map(function(t){return"".concat(t,":").concat(e.fieldGroupErrorStyles[t])}).join(";");t.push(c+"{"+u+"}");var d=".focusErrorClass",p=Object.keys(e.fieldGroupFocusErrorStyles).map(function(t){return"".concat(t,":").concat(e.fieldGroupFocusErrorStyles[t])}).join(";");t.push(d+"{"+p+"}")},this.getMultiPropertySelectorPossibleOptions=function(e){return t.model.getMultiPropertySelectorPossibleOptions(e)},this.inputHandler=function(e){t.model.showMaskedValues=!1;var n=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.caretPosition&&e.caretPosition.id;var r=nY(e.propertyElement)||nV(e.propertyElement)?Z.finished:Z.editing;t.model.updatePropertyValue(e.propertyElement,n,r,t.model.showMaskedValues).catch(rl),t.view.updateDisplayValue&&t.view.updateDisplayValue(e.id,e.propertyElement,n,e.caretPosition),t.view.updatePrefillControls()},this.focusoutHandler=function(e){var n=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,n,Z.finished,t.model.showMaskedValues).catch(rl),t.view.updatePrefillControls(),t.eventHub.propertyUnselected(e.id,e.propertyElement.getPropertyName(),e.divId)},this.dropdownSelectHandler=function(e){var n=e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,n,Z.editing,t.model.showMaskedValues).catch(rl),t.view.updatePrefillControls()},this.buttonClickHandler=function(e){t.eventHub.click(e.id),t.model.invokePidlAction(e.pidlAction,e).catch(t.displaySettings.propagateCallbackException?rc:rl)},this.invokePidlAction=function(e){return t.model.invokePidlAction(e).catch(t.displaySettings.propagateCallbackException?rc:rl)},this.iFrameMessageTimeoutHandler=function(e){t.model.handleClientAction(e).then(function(){t.eventHub.postMessageTimeoutHandleSuccess(e.type)}).catch(function(){t.eventHub.postMessageTimeoutHandleFailure("specified client action is not successful. clientAction type: "+e.type)})},this.challengeiFrameMessageTimeoutHandler=function(e){t.model.handleClientAction(e).then(function(){}).catch(function(){})},this.postSecureFieldMessage=function(e,n,r){return t.model.postSecureFieldMessage(e,n,r)},this.secureIFrameOnLoadHandler=function(e){t.resolveSecurePropertyLoadedPromise(e.id)},this.getClientSetting=function(e){return t.model.getClientSetting(e)},this.postChallengeIframeMessage=function(e){return t.model.postChallengeiFrameMessage(e)},this.secureFieldMessageHandler=function(e){var n=ro.getHostName(ra.getServiceEndpoint(ra.virtualEndpoints.securePx.endpoint));ro.getHostName(e.origin)===n&&e&&e.data&&e.data.source===eI.secureFieldMessageSource&&t.model.handleSecureFieldMessage(e)},this.expressCheckoutButtonLoadHandler=function(e,n,r){t.model.handleExpressCheckoutButtonIframeLoaded(e,n,r)},this.expressCheckoutButtonIsEligible=function(e,n){if(t.expressCheckoutButtonEligibilityStatus[e]=n,Object.keys(t.expressCheckoutButtonEligibilityStatus).length===t.totalExpressCheckoutButtonElements){var r=[];for(var o in t.expressCheckoutButtonEligibilityStatus)t.expressCheckoutButtonEligibilityStatus[o]&&r.push(o);t.eventHub.expressCheckoutReady(r)}},this.expressCheckoutButtonMessageHandler=function(e){var n=ro.getHostName(ra.getServiceEndpoint(ra.virtualEndpoints.staticResources.endpoint));ro.getHostName(e.origin)===n&&e&&e.data&&t.model.handleExpressCheckoutButtonMessage(e)},this.iFrameMessageHandler=function(e){var n=ro.getHostName(ra.getServiceEndpoint(ra.virtualEndpoints.pifd.endpoint)),o=ro.getHostName(ra.getServiceEndpoint(ra.virtualEndpoints.pifdBackend.endpoint)),a=ro.getHostName(e.origin);if(t.eventHub.postMessageReceived(a,n,e.data&&e.data.length),a===n||a===o){var s=ro.parseJSON(e.data),l=s.succeeded?s.value:null;l?t.model.handleClientAction(l,null,r.iFrameMessageHandler).then(function(){t.eventHub.postMessageHandleSuccess(l.type)},function(){t.eventHub.postMessageHandleFailure("specified client action is not successful. clientAction type: "+l.type)}):t.eventHub.postMessageHandleFailure("clientAction is not specified")}},this.challengeiFrameMessageHandler=function(e){var n=ro.getHostName(ra.getServiceEndpoint(ra.virtualEndpoints.challengeUI.endpoint));if(ro.getHostName(e.origin)===n){var o=ro.parseJSON(e.data),a=o.succeeded&&e.type in eV?o.value:null;a?t.model.handleClientAction(a,null,r.iFrameMessageHandler).then(function(){t.eventHub.postMessageHandleSuccess(a.type)},function(){t.eventHub.postMessageHandleFailure("specified client action is not successful. clientAction type: "+a.type)}):t.eventHub.postMessageHandleFailure("clientAction is not specified"),"message"===e.type&&e.data in eR&&t.model.handleChallengeiFrameMessage(e)}},this.iFrameBusyTimerStartedHandler=function(e){t.eventHub.postMessageBusyTimerStarted("Busy started for timer ".concat(e))},this.iFrameBusyTimerEndedHandler=function(e){t.eventHub.postMessageBusyTimerEnded("Busy ended for timer ".concat(e))},this.hyperlinkClickHandler=function(e){var n=t9.getRedirectionService(),r=e.pidlAction,o=!1;switch(r.type){case k.redirect:var a=t.model.getLinkActionUrl(r.context,!1);if(!(o=t.eventHub.navigate(e.id,a,!0,r.context,null))&&n)return n.redirect(a),!0;break;case k.navigate:default:if(!(o=t.eventHub.navigate(e.id,r.context,!1,null,r.dest))&&n)return!n.openInNewTab(r.context)}return!o},this.captchaHyperlinkClickHandler=function(e,n,r){t.updateModelPropertyValue(e,n,r).catch(rl)},this.updatePrefillValue=function(e,n){return!0===n?t.model.setCurrentDataIndex(e,0):!1===n?t.model.setCurrentDataIndex(e,-1):t.model.setCurrentDataIndex(e,n),t.model.validateEditedProperties()},this.prefillChangeHandler=function(e){var n=e.type&&e.type===g.checkBox;n?e.val?t.model.setCurrentDataIndex(e.pidlIdentity,0):t.model.setCurrentDataIndex(e.pidlIdentity,-1):t.model.setCurrentDataIndex(e.pidlIdentity,e.val),t.fillForm(et.prefillChanged),n||t.model.validateEditedProperties().catch(rl)},this.propertySelectedHandler=function(e){t.eventHub.propertySelected(e.id,e.propertyName,e.divId)},this.propertyUnselectedHandler=function(e){t.eventHub.propertyUnselected(e.id,e.propertyName,e.divId)},this.postMessageToChildIFrames=function(e){return t.view.postMessageToChildIFrames(e)},this.pollingHandler=function(e,n){if(!n)return!1;var r={pollingTimer:null,pollingCounter:0};t.pollingTimersAndCounters[e]=r;var o=t.getPollingPidlActionContext(n);if(!o)return!1;var a=o.method,s=o.payload,l=o.headers,c=o.interval,u=void 0===c?ew.Default:c,d=o.responseResultExpression,p=o.responseActions,f=o.maxPollingAttempts,h=o.checkPollingTimeOut,m=o.fetchConfig,g=rS.getHttpHeaders(t.eventHub,t.userContext,l),v=ty.getSubmitUrl(t.model.operationType,t.userContext,o,t.model.modelData.getId()),y=v.virtualEndpoint,b=y.operation,x=y.description,C=function(e,n){clearInterval(t.pollingTimersAndCounters[n].pollingTimer),t.pollingTimersAndCounters[n].pollingCounter=0,delete t.pollingTimersAndCounters[n],t.eventHub.pollingEnded(n),t.eventHub.failure(e)};return t.pollingTimersAndCounters[e].pollingTimer=setInterval(function(){var r=null;if(a===el.Get)t.eventHub.pollingStarted(e),r=rS.get(t.eventHub,v.url,g,t.model.operationType,b,x,m);else if(a===el.Post)t.eventHub.pollingStarted(e),r=rS.post(t.eventHub,!0,v.url,g,JSON.stringify(s),null,null,t.model.operationType,b,x,!1,m);else if(a===el.Put)t.eventHub.pollingStarted(e),r=rS.put(t.eventHub,!0,v.url,g,JSON.stringify(s),null,null,t.model.operationType,b,x,!1,m);else{var o=new t4.unexpectedError(t3.unableToSetupPolling);return C(o,e),!1}if(null!==r)r.then(function(r){if(h&&t.pollingTimersAndCounters[e].pollingCounter++>f)return C(new t4.unexpectedError(t3.pollingTimedOut),e),!1;var o=t.getPidlActionFromPollingResponse(r,d,p)||n;if(o.type!==k.poll){if(clearInterval(t.pollingTimersAndCounters[e].pollingTimer),t.pollingTimersAndCounters[e].pollingCounter=0,delete t.pollingTimersAndCounters[e],t.eventHub.pollingEnded(e),o.type===k.moveNextAndPoll)return t.model.moveNextPage().catch(rl),t.pollingActions[e]=n.nextAction,t.pollingHandler(e,n.nextAction);if(o.type===k.updatePoll)return t.pollingActions[e]=n.nextAction,t.pollingHandler(e,n.nextAction);if(o.type===k.handleFailure)return t.eventHub.failure(new t4.unexpectedError(t3.failurePollingResponseReturned,[JSON.stringify(r)])),!1;r&&t7.isPrimaryResource(t.model.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.model.modelData.setPrimaryResourceResponse(r)}if(!r||!r.clientAction||!o||o.type!==k.success)return t.model.invokePidlAction(o);t.model.handleClientAction(r.clientAction).then(function(){t.eventHub.pollClientActionSuccess(r.clientAction.type)}).catch(function(){t.eventHub.pollClientActionFailure("specified client action is not successful. clientAction type: "+r.clientAction.type)})},function(t){return C(t,e),!1});else{var o=new t4.unexpectedError(t3.unableToSetupPolling);return C(o,e),!1}},u),!0},this.testHookPublicEventHandler=function(e,n){t.publicEventHandler(e,n)},this.testHookPrivateEventHandler=function(e,n){t.privateEventHandler(e,n)},this.testHookGetUnseenErrors=function(){return t.unseenErrors},this.testHookSetUnseenErrors=function(e){t.unseenErrors=e},this.testHookFillForm=function(e,n){t.displaySettings=e,t.fillForm(n)},this.testHookGetErrorPropertyGroups=function(){return t.errorPropertyGroups},this.testHookRegisterGroupedErrors=function(e){t.registerGroupedErrors(e)},this.testHookDeregisterGroupedErrors=function(e,n){t.deregisterGroupedErrors(e,n)},this.testHookSetShowMaskedFlag=function(e){t.model.showMaskedValues=e},this.testHookGetRenderer=function(){return t.view},this.testHookUpdateView=function(e){t.updateView(e)},this.testHookSetFocusTarget=function(e){t.focusTarget=e},this.eventHub=e.eventHub,this.displaySettings=e.displaySettings,this.model=e.model,this.view=e.view,this.userContext=e.userContext,this.userContextIn=e.userContextIn,this.returnOptions=e.returnOptions,this.eventHandler=e.eventHandler,this.displayOptions=e.displayOptions,this.callbacks=e.callbacks,this.telemetryOptions=e.telemetryOptions,this.externalPrivateEventHandler=e.externalPrivateEventHandler,this.oneDSService=e.oneDSService,this.transformers=e.transformers,this.pidlPayload=e.pidlPayload,this.localDataSourceProviders=e.localDataSourceProviders,this.controlApiMap=e.controlApiMap,e.iFrameMessageHandler&&(this.iFrameMessageHandler=e.iFrameMessageHandler),this.eventHub.addPublicEventHandler(function(e,n){t.publicEventHandler(e,n)}),this.eventHub.addPrivateEventHandler(function(e,n){t.privateEventHandler(e,n)}),this.view.initialize(this.eventHub,this.model,this.displaySettings,this),this.model.setViewHandler(this.view)}return e.prototype.getPidlInstanceControls=function(){return this.view.getPidlInstanceControls()},e}(),r1=new(function(){return function(){var e=this;this.env="prod",this.envs=["int","ppe","prod","feature","aircapi"],this.get=function(){return e.env},this.set=function(t){var n=ri.toLowerCase(t);ri.contains(e.envs,n)&&(e.env=n,ra.setEnv(e.env))},this.getAll=function(){return e.envs}}}()),r2="2.9.0",r5=new(function(){return function(){this.get=function(){return r2}}}()),r4=new(function(){return function(){var e=this;this.applicationInsightsInstance=null,this.cvPlugin=null,this.cvInstance=null,this.cvInitialValue=null,this.userConsentDetailsCallback=function(){return{Advertising:!1,Analytics:!1,Required:!0,SocialMedia:!1}},this.initOneDsObjects=function(){if(!e.applicationInsightsInstance)try{var t="4127950a47f84a01a75e9a7d49d79f14-b56cc96f-0faa-4455-912a-6b8df93eeac5-6769";e.cvPlugin||e.initCVPlugin(),t9.getOneDSService()&&(e.applicationInsightsInstance=t9.getOneDSService().getApplicationInsights());var n={instrumentationKey:t,extensions:[e.cvPlugin],extensionConfig:[],propertyConfiguration:{gpcDataSharingOptIn:!1,callback:{userConsentDetails:e.userConsentDetailsCallback}}};e.applicationInsightsInstance&&ri.isFunction(e.applicationInsightsInstance.initialize)&&e.applicationInsightsInstance.initialize(n,[])}catch(e){t9.getLoggingService()&&t9.getLoggingService().logError("1DS Error : Error when attempting to initialize 1DS.",e)}},this.initCVPlugin=function(){if(!e.cvPlugin){t9.getOneDSService()&&(e.cvPlugin=t9.getOneDSService().getCorrelationVectorPlugin(e.cvInitialValue));var t=void 0;e.cvPlugin&&ri.isFunction(e.cvPlugin.getCv)&&(t=e.cvPlugin.getCv()),t&&ri.isFunction(t.isInit)&&t.isInit()?e.cvInstance=t:(t9.getOneDSService()&&(e.cvPlugin=t9.getOneDSService().getCorrelationVectorPlugin()),e.cvPlugin&&ri.isFunction(e.cvPlugin.getCv)&&(e.cvInstance=e.cvPlugin&&e.cvPlugin.getCv()))}},this.getCVInstance=function(){return e.cvInstance||e.initCVPlugin(),e.cvInstance},this.reset=function(){e.cvPlugin=null,e.cvInstance=null,e.applicationInsightsInstance=null},this.setUserConsentDetailsCallback=function(t){t&&(e.userConsentDetailsCallback=t)},this.getApplicationInsights=function(){return e.applicationInsightsInstance||e.initOneDsObjects(),e.applicationInsightsInstance},this.writeEvent=function(t,n,r){try{var o=e.getApplicationInsights();o&&ri.isFunction(o.trackEvent)?o.trackEvent({name:t,baseData:n},r):t9.getLoggingService()&&t9.getLoggingService().logError("1DS Error : ApplicationInsights is not correctly initialized")}catch(e){t9.getLoggingService()&&t9.getLoggingService().logError("1DS Error : Error when attempting to track event with 1DS.",e)}},this.getIncrementedCV=function(){try{var t=e.getCVInstance();return t&&ri.isFunction(t.increment)&&t.increment()}catch(e){t9.getLoggingService()&&t9.getLoggingService().logError("1DS Error : There was an issue with incrementing the correlation vector",e)}},this.getCVValue=function(){try{var t=e.getCVInstance();return t&&ri.isFunction(t.getValue)&&t.getValue()}catch(e){t9.getLoggingService()&&t9.getLoggingService().logError("1DS Error : There is an issue with correlation vector getValue function",e)}},this.initCV=function(t){try{t&&(e.cvInitialValue=t,e.reset())}catch(e){t9.getLoggingService()&&t9.getLoggingService().logError("1DS Error : There is an issue with Initializing CV",e)}},this.testHookReset=function(){e.applicationInsightsInstance=null,e.cvInstance=null}}}()),r3=function(){return function(e,t){var n=this;this.partnerContext={},this.enableLogging=!0,this.enableConsoleLogging=!0,this.enablePrivateEventConsoleLogging=!1,this.enableUnhandledRejectionLogging=!0,this.sdkVersion=r5.get(),this.env=r1.get(),this.sessionId=ro.guid(),this.telemetryResource={resourceType:"",parameters:{id:null}},this.userConsentDetailsCallback=null,this.updateResourceInfo=function(e){var t;if(e){if(e.parameters)for(var r in e.parameters)try{e.parameters.hasOwnProperty(r)&&(n.telemetryResource.parameters=tr(tr({},n.telemetryResource.parameters),((t={})[r]=e.parameters[r],t)))}catch(e){}e.id&&(n.telemetryResource.parameters.id=e.id),e.resourceType&&(n.telemetryResource.resourceType=e.resourceType)}},this.update=function(e,t){n.operationType=e,t&&n.updateResourceInfo(t)},this.trackNewOperation=function(e,t){n.operationId=ro.guid(),n.update(e,t)},e&&(this.partnerContext=e.contextData||{},this.enableLogging=!e.disableLogging,this.enableConsoleLogging=!e.disableConsoleLogging,this.enablePrivateEventConsoleLogging=!!e.enablePrivateEventConsoleLogging,this.enableUnhandledRejectionLogging=!e.disableUnhandledRejectionLogging,this.telemetryOverrides=e.overrides,this.customTelemetryFrameworkWindowNamespace=e.customTelemetryFrameworkWindowNamespace,this.partnerContext&&this.partnerContext.cvInitValue&&r4&&r4.initCV(this.partnerContext.cvInitValue),e.userConsentDetailsCallback&&(this.userConsentDetailsCallback=e.userConsentDetailsCallback),r4.setUserConsentDetailsCallback(this.userConsentDetailsCallback));var r=this.partnerContext,o=r.sessionId,a=r.cvInitValue;!o&&a&&(o=a.substr(0,a.indexOf(".")),this.partnerContext.sessionId=o),!o&&this.sessionId&&(this.partnerContext.sessionId=this.sessionId),this.sdkViewType=t}}(),r6=function(){function e(){}return e.prototype.logError=function(e,t){var n="";if(t)try{n=JSON.stringify(t)}catch(e){n=""}console.error(e+"= "+n)},e.prototype.logWarning=function(e){console.warn(e)},e.prototype.logMessage=function(e){console.log(e)},e}(),r8=new(function(){return function(){var e=this;this.createUserDataPropertyValue=function(e,t,n,r,o){if(t.indexedOn&&t.possible_values){var a=n.getPropertyValue(t.indexedOn,!1);if(a&&t.possible_values[a])return t.possible_values[a]}var s=n.getPropertyValue(t8.getDisplayPropertyName(t,e),r,o);return s=void 0===s?ro.getFormatStringExpressionValue(t.default_value,{modelData:n}):s,t.type===eo.bool&&(s=ri.boolify(s)),s},this.createUserSecureInputDataInternal=function(t,n,r,o,a,s,l){var c=t.data_description,u=[];for(var d in c){var p=c[d];if(tN(p)){var f=p&&p.length&&p[0];if(f){var h=e.createUserSecureInputDataInternal(f,n,r,o,a,s,l);u.push(h)}}else{var m=n.getModelDataProperty(d);if(m&&m.modelElement&&m.modelElement.isSecureProperty()){p.token_set&&p.token_set.startsWith(eI.tokenizationValuePrefix)&&(p.token_set=p.token_set.replace(eI.tokenizationValuePrefix,""));var g=m.modelElement.prepareForSubmit(p.token_set).then(function(e){var t=c[e.propertyName];t.token_set=eI.tokenizationValuePrefix+t.token_set,a[e.propertyName]=e.value});u.push(g)}}}return Promise.all(u).then(function(){})},this.createUserInputDataInternal=function(t,n,r,o,a,s){var l,c={},u=t.data_description;for(var d in u){var p=u[d];if(tN(p)){var f=p&&p.length&&p[0];f&&(c[d]=e.createUserInputDataInternal(f,n,r,o,a,s))}else{if(p.displayOnly&&!s||o===eL.update&&!p.is_updatable)continue;if(p.type===eo.hidden){c[d]||(r[d]?c[d]=r[d]:c[d]=ro.getFormatStringExpressionValue(p.default_value,{modelData:n}));continue}var h=e.createUserDataPropertyValue(d,p,n,a,s);h&&(a&&p.type===eo.returnObject?(ri.isObject(h)||((l={})[d]=h,h=l),c=ro.extend({},c,h)):c[d]=e.getValueInDataType(h,a,p))}}return c},this.getValueInDataType=function(e,t,n){if(t){if(n.type===eo.number){var r=Number(e);return isNaN(r)?e:r}else if(n.type===eo.bool){if(!ri.isBool(e))return ri.equalsIgnoreCase(e,"true")}else if(n.type===eo.object&&!ri.isObject(e))try{return JSON.parse(e)}catch(e){}}return e},this.canSubmitUserInputDataInternal=function(t,n,r){var o=t.data_description;for(var a in o){var s=o[a];if(tN(s)){var l=s&&s.length&&s[0];if(l&&(e.canSubmitUserInputDataInternal(l,n?n[a]:n,r),r.canSubmit))return}else if(s.propertyType===ea.userData&&(r.noUserInputData=!1,!s.is_optional||n&&n[a])){r.canSubmit=!0;return}}},this.createUserInputData=function(t,n,r,o,a,s){return e.createUserInputDataInternal(t,n,r,o,a,s)},this.createUserSecureInputData=function(t,n,r,o,a,s){var l={};return e.createUserSecureInputDataInternal(t,n,r,o,l,a,s).then(function(){return l})},this.canSubmitUserInputData=function(t,n){var r={canSubmit:!1,noUserInputData:!0};return e.canSubmitUserInputDataInternal(t,n,r),r.canSubmit||r.noUserInputData}}}()),r9=new(function(){return function(){var e=this;this.setPropertyValueOfInputData=function(t,n,r){for(var o in t)if(o===n){t[o]=r;break}else ri.isObject(t[o])&&e.setPropertyValueOfInputData(t[o],n,r)},this.checkForValidTransformationTarget=function(e,t){var n=e.transformation,r=void 0===n?{}:n;return t===o.forSubmit&&ri.boolify(r.forSubmit)||t===o.forDisplay&&ri.boolify(r.forDisplay)},this.transformUserInputDataFromService=function(e,t,n,r,o,a,s,c,u){var d={value:o,pidlIdentity:t.identity,propertyName:n,transformationTarget:r},p=rS.getDefaultHttpHeaders(e);p[M.msFlight]="pxpidl",rS.post(e,!0,ty.buildUrl(ra.getServiceEndpoint(ra.virtualEndpoints.transformation.endpoint),[a]),p,JSON.stringify(d),function(e){var t;c(t=ri.equalsIgnoreCase(e.status,l.Passed)?{status:l.Passed,transformedValue:e.transformedValue}:{status:l.Fail,errorCode:e.errorCode,errorMessage:e.errorMessage})},function(e){c({status:l.Error,mode:ez.service,errorMessage:e.errorMessage})},s,ra.virtualEndpoints.transformation.operation,ra.virtualEndpoints.transformation.description,!0,u).catch(rl)},this.transformPropertyInternal=function(t,n,r,o,a,s,c,u){var d=!1,p=n.data_description,f=function(f){var h=p[f];if(tN(h)){var m=h.length&&h[0];m&&(d=e.transformPropertyInternal(t,m,r,o,a,s,function(e){c(e)},u)||d)}else if(f===r){var g=t8.getPropertyValueFromInputData(o,f);if(e.transformPropertyFromPropertyDescription(t,n,f,h,a,g,s,function(t){t.status===l.Passed&&(e.setPropertyValueOfInputData(o,f,t.transformedValue),u()),(t.status===l.Error||t.status===l.Fail)&&c(Error(t.errorMessage))}),e.checkForValidTransformationTarget(h,a))return{value:!0}}};for(var h in p){var m=f(h);if("object"==typeof m)return m.value}return d},this.transformUserInputDataInternal=function(t,n,r,o,a,s,c,u){var d=n.data_description,p=0,f=!1,h=u?r:d,m=function(h){var m=d[h];if(tN(m)){var g=m&&m.length&&m[0];g&&(p++,f=e.transformUserInputDataInternal(t,g,r[h],o,function(e){a(e)},function(){0==--p&&f&&s&&s()},c,u)||f)}else{if(c===eL.update&&!m.is_updatable)return"continue";var v=t8.getPropertyValueFromInputData(r,h);if(!v){if(m.displayOnly||u)return"continue";m.is_optional||a(Error(h+" is a required property per the pidlDocument but is missing in the userInputData object passed in."))}(f=e.transformPropertyFromPropertyDescription(t,n,h,m,o,v,c,function(t){t.status===l.Passed&&e.setPropertyValueOfInputData(r,h,t.transformedValue),(t.status===l.Error||t.status===l.Fail)&&a(Error(t.errorMessage)),t.mode===ez.service&&0==--p&&s&&s()}))&&p++}};for(var g in h)m(g);return 0===p&&s&&s(),p>0},this.transformPropertyFromPropertyDescription=function(t,n,r,a,s,c,u,d){var p,f={},h=!1;if(!c)return!1;if(a.transformation){var m=null;if(s===o.forSubmit)if(!a.transformation.forSubmit)return d(f),h;else m=a.transformation.forSubmit;else if(s===o.forDisplay)if(!a.transformation.forDisplay)return d(f),h;else m=a.transformation.forDisplay;else throw Error(r+"has invalid transformation type.");var g=m.inputregex,v=m.transformregex;if(g){if(v){var y=new RegExp(g),b=c.replace(y,v);f={status:l.Passed,transformedValue:JSON.parse('"'+b+'"')}}f.mode=ez.regex}else m.url&&(h=!0,e.transformUserInputDataFromService(t,n,r,s,c,m.url,u,function(e){(f=e).mode=ez.service,d(f)},null==(p=null==a?void 0:a.dataProtection)?void 0:p.fetchConfig))}return h||d(f),h},this.getUserDisplayDataPartial=function(t,n,r,a,s,l){var c=ri.deepCopy(r);e.transformUserInputDataInternal(t,n,c,o.forDisplay,a,function(){s(c)},l,!0)},this.transformUserInputData=function(t,n,r,a,s,l){e.transformUserInputDataInternal(t,n,r,o.forSubmit,a,s,l)},this.transformUserInputPropertyForDisplay=function(t,n,r,a,s,l,c){e.transformPropertyInternal(t,n,r,a,o.forDisplay,s,l,c)||l(Error("The property with property Name:"+r+" does not have valid display transform in data description"))}}}()),r7=function(){function e(){var e=this;this.getParentOfProperty=function(t,n){for(var r in n)if(r===t)return n;else if(ri.isObject(n[r])){var o=e.getParentOfProperty(t,n[r]);if(o)return o}},this.areIdentitiesEqual=function(e,t){if(!e||!t||ri.keyCount(e)!==ri.keyCount(t))return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0},this.resolveInfoDescriptionId=function(t,n){return e.invoke(function(e){try{var r=t6.resolveInfoDescriptionId(t,n);e.resolve(r)}catch(t){e.reject(t)}})},this.getFirstPidlWithValidDefaultKey=function(e,t){return t6.getFirstPidlWithValidDefaultKey(e,t)},this.createUserInputData=function(e,t,n,r,o,a){return r8.createUserInputData(e,t,n,r,o,a)},this.createUserSecureInputData=function(e,t,n,r,o,a){return r8.createUserSecureInputData(e,t,n,r,o,a)}}return e.prototype.invoke=function(e){return new Promise(function(t,n){e({resolve:t,reject:n})})},e.prototype.getUserDisplayDataPartial=function(e,t,n,r){return this.invoke(function(o){try{var a=t.getResolvedOrAllPidlDocs(),s=t8.getFirstResolvedPidlDocument(a,n);null==s&&(s=a[0]),r9.getUserDisplayDataPartial(e,s,n,function(e){o.reject(e)},function(e){o.resolve(e)},r)}catch(e){o.reject(e)}})},e.prototype.transformUserInputData=function(e,t,n,r){return this.invoke(function(o){try{r9.transformUserInputData(t,e,n,function(e){o.reject(e)},function(){o.resolve()},r)}catch(e){o.reject(e)}})},e.prototype.transformUserInputPropertyForDisplay=function(e,t,n,r,o){var a=this;return this.invoke(function(s){var l=!1;t.propertyTransforming(n);try{var c=a.getParentOfProperty(n,r),u={};u[n]=c[n];var d=t8.getFirstResolvedPidlDocument(e,r);null==d&&(d=e[0]),r9.transformUserInputPropertyForDisplay(t,d,n,u,o,function(e){l=!0,s.reject(e)},function(){t.propertyTransformed(n),c[n]=u[n],s.resolve()}),l||(t.propertyTransformed(n),c[n]=u[n],s.resolve())}catch(e){s.reject(e)}})},e.prototype.canSubmitUserInputData=function(e,t){return r8.canSubmitUserInputData(e,t)},e.prototype.getPidlSubmitOrder=function(e){return t6.getPidlSubmitOrder(e)},e}();function oe(e,t){return rS.get(e,t.url,t.headers,t.pidlOperation,t.virtualEndpoint.operation,t.virtualEndpoint.description,t.fetchConfig)}var ot=function(){function e(){}return e.prototype.getPidlDocument=function(e,t,n){return n?new Promise(function(e,r){n(t,function(t){e(t)},function(e){r(e)})}):oe(e,t)},e.prototype.getInstance=function(e,t){return e.instanceDownloading(t.url),oe(e,t)},e.prototype.submitPidlDocument=function(e,t,n,r){return e.inputSubmitting(t.url),new Promise(function(o,a){rS.invokeFetch(e,!0,t.method,t.url,t.headers,t.method.toUpperCase()===el.Get||t.method.toUpperCase()===el.Delete?null:JSON.stringify(t.data),function(n){r&&(n=r(t,n));var a="None";!ri.isString(n)&&tM(n)&&n.clientAction&&(a=n.clientAction.type),e.inputSubmitted(a),o(n)},function(e){a(e)},n,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(o)})},e.prototype.invokeRestMethod=function(e,t,n){return new Promise(function(r,o){rS.invokeFetch(e,!0,t.method,t.url,t.headers,t.data,function(e){r(e)},function(e){o(e)},n,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(r)})},e.prototype.getRequestInstance=function(e,t,n,r,o){var a=ty.getResourceUrl(t,n);return{url:a.url,headers:rS.getHttpHeaders(e,n,null,a.template,null),virtualEndpoint:a.virtualEndpoint,pidlOperation:r,fetchConfig:o}},e}(),on=function(){function e(){this.cache=null,this.cache=new rP}return e.prototype.put=function(e,t,n,r){var o={pidlDocInfo:t,pidls:n,resolvedPidlIdentity:r};this.cache.put(e,o)},e.prototype.get=function(e){return this.cache.get(e)},e.prototype.remove=function(e){this.cache.remove(e)},e.prototype.removeResourceEntries=function(e){this.cache.removeIf(function(t){return t&&t.pidlDocInfo&&ri.equalsIgnoreCase(t.pidlDocInfo.resourceType,e)})},e}(),or=function(){function e(){}return e.prototype.redirect=function(e){window.location.replace(e),window.location.href=e},e.prototype.openInNewTab=function(e){return!!window&&!!window.open&&(window.open(e),!0)},e}(),oo=function(){function e(e,t,n,r,o,a,s,l,u,d,p){var f=this;this.controlApiMap={},this.getInstanceControls=function(){var e=tr({},f.viewEventHandler.getPidlInstanceControls());return e[f.displaySettings.instanceName]={moveNextPage:function(){return!!f.moveNextPage&&f.moveNextPage().result},submitPage:function(){return!!f.submitPage&&f.submitPage().result},validateProperties:function(){return f.validateProperties?f.validateProperties().result:ru(!1)},movePrevPage:function(){return!!f.movePrevPage&&f.movePrevPage().result},moveToFirstPage:function(){return!!f.moveToFirstPage&&f.moveToFirstPage().result},cancel:function(){return!!f.cancel&&f.cancel().result},getSelectedResource:function(){return f.getSelectedResource?f.getSelectedResource().result:{}},getPidlPayload:function(){return f.getPidlPayload?f.returnUserInputData():ru()},postMessageToChildIFrames:function(e){return!!f.postMessageToChildIFrames&&f.postMessageToChildIFrames(e).result}},f.apiSuccess(e,ru())},this.addSecureFieldPreLoadIFrame=function(){try{if(!("u">typeof document))return;f.eventHub.addSecureFieldPreLoadIFrameStarted();var e="secureFieldIFrame",t=ty.buildUrl(ra.getServiceEndpoint(ra.virtualEndpoints.securePx.endpoint),["resources","securefield.html"]),n=document.createElement("iframe");n.id=e,n.name="preloadSecureFieldIFrame",n.style.display="none",n.setAttribute("sandbox",""),n.src=t;var r=document.getElementById(e);r?r.src=t:document.body&&document.body.appendChild(n),f.eventHub.addSecureFieldPreLoadIFrameCompleted()}catch(e){f.eventHub.addSecureFieldPreLoadIFrameFailed(ro.convertErrorToString(e))}},this.logConstructorCall=function(e,t,n,r,o){var a={userContext:ri.boolify(e),returnOptions:ri.boolify(t),eventHandler:ri.boolify(n),displayOptions:ri.boolify(r),telemetryOptions:ri.boolify(o)},s={returnOptions:t,displayOptions:r,telemetryOptions:o};f.eventHub.apiCalled(en.constructor,a,s)},this.unhandledRejectionHandler=function(e){var t=e.reason&&e.reason.stack;t&&f.eventHub.error(new t4.unexpectedError(t3.unhandledRejection,[t]))},this.handlePrivateEvent=function(e,t){try{switch(e){case _.stateChanged:t&&t.newState===Q.initialized&&f.telemetryContext.enableUnhandledRejectionLogging&&window.addEventListener("unhandledrejection",f.unhandledRejectionHandler);break;case _.failure:case _.success:case _.gohome:f.telemetryContext.enableUnhandledRejectionLogging&&window.removeEventListener("unhandledrejection",f.unhandledRejectionHandler)}}catch(e){}},this.canApiStart=function(e){var t=f.stateManager.canApiStart(e);return!!t.result||(f.eventHub.error(t.error),!1)},this.getChallengePidlInfo=function(e){var t={resourceType:"Challenge",parameters:ri.deepCopy(e.piResourceInfo.parameters)};return t.parameters.piid=e.piResourceInfo.id,t.parameters.sessionId=e.sessionId,t.parameters.orderId=e.orderId,t},this.provisionWalletToken=function(e,t){var n={piFamily:null==t?void 0:t.family,piType:null==t?void 0:t.type,tokenReference:null==t?void 0:t.tokenReference,sessionData:e,paymentData:null==t?void 0:t.paymentData};return new Promise(function(e,t){var r,o={resourceType:c.WalletToken,parameters:{}},a=tV.getResourceEndpoint(o.resourceType),s=null==(r=ty.getResourceUrl(o,f.userContext))?void 0:r.url;try{return rS.post(f.eventHub,!0,s,rS.getHttpHeaders(f.eventHub,f.userContext,void 0,a.template),JSON.stringify(n),function(t){return e(t)},function(e){return t(e)},eL.provisionWalletToken,a.operation,a.description,!0)}catch(e){t(e)}})},this.handlePaymentAgentChallenge=function(e,t,n,r){if(!(null==(a=null==(o=null==window?void 0:window.paymentAgent)?void 0:o.isReadyToPay)?void 0:a.call(o))){var o,a,s=new t4.invalidSetupError(t3.invalidSetup);return f.eventHub.failure(s),f.apiFailure(!1)}var l=window.paymentAgent.handleChallenge(e,r).then(function(r){return r.tokenReference?f.provisionWalletToken(e,r).then(function(r){return n&&(n.current.style.display="flex",n.current.attributes["aria-hidden"]="false"),t.parameters.paymentSessionOrData=tr(tr({},e),r),f.renderPidlPageInternal(t)}):f.renderPidlPageInternal(t)}).catch(function(e){if((null==e?void 0:e.type)==="cancel"||(null==e?void 0:e.name)==="AbortError"||(null==e?void 0:e.statusCode)==="CANCELED")return f.model.gohome(),ru();var t={error:e,stack:null==e?void 0:e.stack,message:null==e?void 0:e.message},n=void 0;return n="failed to open window"===e?new t4.failedToOpenWindowError(t3.failedToOpenWindow,JSON.stringify(t)):new t4.paymentMethodFailureError(t3.paymentMethodFailure,JSON.stringify(t)),f.eventHub.failure(n),f.apiFailure(n)});return f.apiSuccess(!0,l)},this.invokeResourceAction=function(e){if(f.telemetryContext.trackNewOperation(x.invokeResourceAction),f.eventHub.apiCalled(en.invokeResourceAction),!f.canApiStart(en.invokeResourceAction)||!e||!r_.validateResourceActionParams(f.eventHub,e))return f.eventHub.apiReturned(en.invokeResourceAction,!1),f.apiFailure(!1);var t=e.resourceActionContext,n={result:null,promise:ru(null)};switch(t.action){case w.addResource:case w.addAddress:f.telemetryContext.update(x.add,t.pidlDocInfo),n=f.addResourceInternal(eL.add,t.pidlDocInfo,e.prefillData,e.options);break;case w.collectResourceInfo:f.telemetryContext.update(x.renderPidlPage,t.pidlDocInfo),n=f.renderPidlPageInternal(t.pidlDocInfo,e.options);break;case w.handleChallenge:f.telemetryContext.update(x.verify,t.resourceInfo),n=f.handleChallengeInternal(t.resourceInfo,e.options);break;case w.selectPaymentInstrument:case w.selectResource:f.telemetryContext.update(x.selectResource,t.pidlDocInfo),n=f.selectInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case w.selectResourceType:f.telemetryContext.update(x.selectResourceType,t.pidlDocInfo),n=f.selectResourceTypeInternal(t.pidlDocInfo,e.options);break;case w.selectSingleResource:f.telemetryContext.update(x.selectSingleResource,t.pidlDocInfo),n=f.selectSingleInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case w.updateProfile:case w.updateResource:f.telemetryContext.update(x.update,t.pidlDocInfo||t.resourceInfo),n=f.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options);break;case w.deleteResource:f.telemetryContext.update(x.delete,t.pidlDocInfo||t.resourceInfo),n=f.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options,eL.delete);break;case w.searchTransactions:f.telemetryContext.update(x.searchTransactions,t.pidlDocInfo),n=f.addResourceInternal(eL.searchTransactions,t.pidlDocInfo,void 0,e.options)}return f.eventHub.apiReturned(en.invokeResourceAction,ri.boolify(n.result),n.promise),n},this.addResourceInternal=function(e,t,n,r){if(!r_.validatePidlDocInfo(f.eventHub,t)||!r_.validateAddUpdateOrDeleteOptions(f.eventHub,r))return f.apiFailure(!1);f.displaySettings.secureFieldPreLoadingEnabled&&f.addSecureFieldPreLoadIFrame();var o=ty.getPidlDocUrl(f.userContext,e,t);return f.apiSuccess(!0,f.getPidl(o,n,e,r,t))},this.addResource=function(e,t,n){if(f.telemetryContext.trackNewOperation(x.add,e),f.eventHub.apiCalled(en.addResource,{pidlDocInfo:ri.boolify(e),prefillData:ri.boolify(t),options:ri.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.addResource))return f.eventHub.apiReturned(en.addResource,!1),f.apiFailure(!1);var r=f.addResourceInternal(eL.add,e,t,n);return f.eventHub.apiReturned(en.addResource,r.result,r.promise),r},this.msRewardsInternal=function(e,t){if(!r_.validatePidlDocInfo(f.eventHub,t))return f.apiFailure(!1);var n=ty.getPidlDocUrl(f.userContext,e,t);return f.apiSuccess(!0,f.getPidl(n,{},e,{},t))},this.redeemMSRewards=function(e){if(f.telemetryContext.trackNewOperation(x.redeemMSRewards,e),f.eventHub.apiCalled(en.redeemMSRewards,{pidlDocInfo:ri.boolify(e)},{pidlDocInfo:e}),!f.canApiStart(en.redeemMSRewards))return f.eventHub.apiReturned(en.redeemMSRewards,!1),f.apiFailure(!1);var t=f.msRewardsInternal(eL.redeem,e);return f.eventHub.apiReturned(en.redeemMSRewards,t.result,t.promise),t},this.selectMSRewards=function(e){if(f.telemetryContext.trackNewOperation(x.selectMSRewards,e),f.eventHub.apiCalled(en.selectMSRewards,{pidlDocInfo:ri.boolify(e)},{pidlDocInfo:e}),!f.canApiStart(en.selectMSRewards))return f.eventHub.apiReturned(en.selectMSRewards,!1),f.apiFailure(!1);var t=f.msRewardsInternal(eL.select,e);return f.eventHub.apiReturned(en.selectMSRewards,t.result,t.promise),t},this.searchTransactions=function(e){var t=e.pidlDocInfo,n=e.options;if(f.telemetryContext.trackNewOperation(x.searchTransactions,t),f.eventHub.apiCalled(en.searchTransactions,{pidlDocInfo:ri.boolify(t),options:ri.boolify(n)},{pidlDocInfo:t}),!f.canApiStart(en.searchTransactions))return f.eventHub.apiReturned(en.searchTransactions,!1),f.apiFailure(!1);var r=f.addResourceInternal(eL.searchTransactions,t,void 0,n);return f.eventHub.apiReturned(en.searchTransactions,r.result,r.promise),r},this.addPaymentInstrument=function(e,t,n){var r,o=tr(tr({},e),{resourceType:(null==e?void 0:e.resourceType)?null==(r=null==e?void 0:e.resourceType)?void 0:r.toString():"PaymentInstrument"});if(f.telemetryContext.trackNewOperation(x.addPaymentInstrument,o),f.eventHub.apiCalled(en.addPaymentInstrument,{pidlDocInfo:ri.boolify(o),prefillData:ri.boolify(t),options:ri.boolify(n)},{pidlDocInfo:o}),!f.canApiStart(en.addPaymentInstrument))return f.eventHub.apiReturned(en.addPaymentInstrument,!1),f.apiFailure(!1);var a=f.addResourceInternal(eL.add,o,t,n);return f.eventHub.apiReturned(en.addPaymentInstrument,a.result,a.promise),a},this.applyResource=function(e,t,n){if(f.telemetryContext.trackNewOperation(x.applyResource,e),f.eventHub.apiCalled(en.applyResource,{pidlDocInfo:ri.boolify(e),prefillData:ri.boolify(t),options:ri.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.applyResource))return f.eventHub.apiReturned(en.applyResource,!1),f.apiFailure(!1);var r=f.addResourceInternal(eL.apply,e,t,n);return f.eventHub.apiReturned(en.applyResource,r.result,r.promise),r},this.replaceResource=function(e,t,n){if(f.telemetryContext.trackNewOperation(x.replace,e),f.eventHub.apiCalled(en.replaceResource,{pidlDocInfo:ri.boolify(e),prefillData:ri.boolify(t),options:ri.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.replaceResource))return f.eventHub.apiReturned(en.replaceResource,!1),f.apiFailure(!1);var r=f.addResourceInternal(eL.replace,e,t,n);return f.eventHub.apiReturned(en.replaceResource,r.result,r.promise),r},this.addAddress=function(e,t,n){var r=tr(tr({},e),{resourceType:"Address"});if(f.telemetryContext.trackNewOperation(x.addAddress,r),f.eventHub.apiCalled(en.addAddress,{pidlDocInfo:ri.boolify(r),prefillData:ri.boolify(t),options:ri.boolify(n)},{pidlDocInfo:r}),!f.canApiStart(en.addAddress))return f.eventHub.apiReturned(en.addAddress,!1),f.apiFailure(!1);var o=f.addResourceInternal(eL.add,r,t,n);return f.eventHub.apiReturned(en.addAddress,o.result,o.promise),o},this.validateAddress=function(e){var t=tr(tr({},e),{resourceType:"Address"});return f.validateResource(t)},this.handleCheckout=function(e){var t=e||{},n=t.checkoutId,r=t.partner,o=t.redirectUrl,a=t.paymentProviderId,s=t.language,l=t.market,u={resourceType:c.Checkout,parameters:{partner:r,checkoutId:n,redirectUrl:o,paymentProviderId:a,language:s,market:l},anonymousPidl:e.anonymousUser};if(f.telemetryContext.trackNewOperation(x.handleCheckout,u),f.eventHub.apiCalled(en.handleCheckout,{checkoutParams:ri.boolify(e)},{}),!f.canApiStart(en.handleCheckout)||!r_.validateCheckoutParams(f.eventHub,e))return f.eventHub.apiReturned(en.handlePaymentChallenge,!1),f.apiFailure(!1);var d={resourceType:c.Checkout,parameters:{partner:r,checkoutId:n,redirectUrl:o,paymentProviderId:a,language:s,market:l},anonymousPidl:e.anonymousUser},p=f.renderPidlPageInternal(d);return f.eventHub.apiReturned(en.handleCheckout,p.result,p.promise),p},this.getPayeeTaxProfile=function(e){var t=e||{},n=t.section,r=t.tenant,o=t.sapidind,a=t.status,s=t.accounttype,l=t.payfromcc,u=t.residencecc,d=t.language,p={resourceType:c.PayeeTaxProfile,parameters:{section:n,tenant:r,sapidind:o,status:a,accounttype:s,payfromcc:l,residencecc:u,language:d}};if(f.telemetryContext.trackNewOperation(x.getPayeeTaxProfile,p),f.eventHub.apiCalled(en.getPayeeTaxProfile,{payeeTaxProfileParams:ri.boolify(e)},{}),!f.canApiStart(en.getPayeeTaxProfile)||!r_.validatePayeeTaxProfileParams(f.eventHub,e))return f.eventHub.apiReturned(en.getPayeeTaxProfile,!1),f.apiFailure(!1);var h={resourceType:c.PayeeTaxProfile,parameters:{section:n,tenant:r,sapidind:o,status:a,accounttype:s,payfromcc:l,residencecc:u,language:d}},m=f.renderPidlPageInternal(h);return f.eventHub.apiReturned(en.getPayeeTaxProfile,m.result,m.promise),m},this.createPaymentSession=function(e){var t=e||{},n=t.partner,r=void 0===n?null:n,o=t.country,a=void 0===o?null:o,s=t.language,l=void 0===s?null:s,u={resourceType:c.PaymentSession,parameters:{partner:r,market:a,language:l,paymentSessionData:e}};if(f.telemetryContext.trackNewOperation(x.createPaymentSession,u),f.eventHub.apiCalled(en.createPaymentSession,{paymentSessionData:ri.boolify(e)},{}),!f.canApiStart(en.createPaymentSession)||!r_.validatePaymentSessionData(f.eventHub,e))return f.eventHub.apiReturned(en.createPaymentSession,!1),f.apiFailure(!1);var d={resourceType:c.PaymentSession,parameters:{paymentSessionData:e}};e.billableAccountId&&(d.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(d.parameters.classicProduct=e.classicProduct);var p=f.addResourceInternal(eL.add,d);return f.eventHub.apiReturned(en.createPaymentSession,p.result,p.promise),p},this.renderPidlPageInternal=function(e,t){if(!r_.validatePidlDocInfo(f.eventHub,e)||!r_.validateSelectOrRenderOptions(f.eventHub,t))return f.apiFailure(!1);var n=eL.renderPidlPage,r=ty.getPidlDocUrl(f.userContext,n,e);return f.apiSuccess(!0,f.getPidl(r,null,n,t,e))},this.renderPidlPage=function(e,t){if(f.telemetryContext.trackNewOperation(x.renderPidlPage,e),f.eventHub.apiCalled(en.renderPidlPage,{pidlDocInfo:ri.boolify(e),options:ri.boolify(t)},{pidlDocInfo:e}),!f.canApiStart(en.renderPidlPage))return f.eventHub.apiReturned(en.renderPidlPage,!1),f.apiFailure(!1);var n=f.renderPidlPageInternal(e,t);return f.eventHub.apiReturned(en.renderPidlPage,n.result,n.promise),n},this.handlePaymentChallenge=function(e,t){var n,r,o,a=e||{},s=a.partner,l=void 0===s?null:s,u=a.country,d=void 0===u?null:u,p=a.language,h=void 0===p?null:p,m={resourceType:c.Challenge,parameters:{partner:l,market:d,language:h,paymentSessionOrData:e,timezoneOffset:new Date().getTimezoneOffset()}};if(f.telemetryContext.trackNewOperation(x.handlePaymentChallenge,m),f.eventHub.apiCalled(en.handlePaymentChallenge,{paymentSessionData:ri.boolify(e)},{}),!f.canApiStart(en.handlePaymentChallenge)||!r_.validatePaymentSessionOrData(f.eventHub,e))return f.eventHub.apiReturned(en.handlePaymentChallenge,!1),f.apiFailure(!1);var g={resourceType:c.Challenge,parameters:{paymentSessionOrData:e,timezoneOffset:new Date().getTimezoneOffset()}};e.billableAccountId&&(g.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(g.parameters.classicProduct=e.classicProduct);var v=f.userContext.getHeaders({},"")[M.msTest]||"",y=ro.getFlightHeaders(f.userContext);if((null==y?void 0:y.includes(F.enablePaymentAgentChallenge))&&!f.hasCollectedToken(e)&&(null==(r=null==(n=window.paymentAgent)?void 0:n.isPaymentAgentSupportedPI)?void 0:r.call(n,e)))o=f.handlePaymentAgentChallenge(e,g,t,v);else if("cdc85313-9b57-4052-81fb-dea336132cbf"===e.piid||"be4de87d-7e38-4b2d-8836-9237eb32848e"===e.piid){var b=new t4.invalidSetupError(t3.invalidSetup);f.eventHub.failure(b),o=f.apiFailure(!1)}else o=f.renderPidlPageInternal(g);return f.eventHub.apiReturned(en.handlePaymentChallenge,o.result,o.promise),o},this.hasCollectedToken=function(e){return e.id&&e.isTokenCollected},this.expressCheckoutInternal=function(e){return f.selectResource(e,null,eL.expressCheckout,f.onDownloadValidateOrSelectResourceType.bind(f))},this.expressCheckout=function(e){if(f.telemetryContext.trackNewOperation(x.expressCheckout,e),f.eventHub.apiCalled(en.expressCheckout,{pidlDocInfo:ri.boolify(e)},{pidlDocInfo:e}),!f.canApiStart(en.expressCheckout))return f.eventHub.apiReturned(en.expressCheckout,!1),f.apiFailure(null);var t=f.expressCheckoutInternal(e);return f.eventHub.apiReturned(en.expressCheckout,ri.boolify(t.result),t.promise),t},this.handlePurchasePendingState=function(e){if(f.telemetryContext.trackNewOperation(x.handlePurchasePendingState),f.eventHub.apiCalled(en.handlePurchasePendingState),!f.canApiStart(en.handlePurchasePendingState)||!e||!r_.validateHandlePurchasePendingStateParams(f.eventHub,e))return f.eventHub.apiReturned(en.handlePurchasePendingState,!1),f.apiFailure(!1);var t=f.getChallengePidlInfo(e),n=f.renderPidlPageInternal(t,e.options);return f.eventHub.apiReturned(en.handlePurchasePendingState,!0,n.promise),f.apiSuccess(!0,n.promise)},this.handlePurchaseRiskChallenge=function(e){if(f.telemetryContext.trackNewOperation(x.handlePurchaseRiskChallenge),f.eventHub.apiCalled(en.handlePurchaseRiskChallenge),!f.canApiStart(en.handlePurchaseRiskChallenge)||!e||!r_.validatePurchaseRiskChallengeParams(f.eventHub,e))return f.eventHub.apiReturned(en.handlePurchaseRiskChallenge,!1),f.apiFailure(!1);var t=f.getChallengePidlInfo(e);t.parameters.type=e.riskChallengeData[0];var n=f.renderPidlPageInternal(t,e.options);return f.eventHub.apiReturned(en.handlePurchaseRiskChallenge,n.result,n.promise),n},this.handleChallengeInternal=function(e,t){if(!r_.validateResourceInfo(f.eventHub,e)||!r_.validateAddUpdateOrDeleteOptions(f.eventHub,t))return f.apiFailure(!1);var n=eL.add;f.model.operationType=n,f.model.operationOptions=t,f.model.pidlDocManager.setOperationInfo({operationType:n});var r=t9.getPidlService(),o=r.getRequestInstance(f.eventHub,e,f.userContext,n),a=r.getInstance(f.eventHub,o);return f.apiSuccess(!0,a.then(function(t){f.stateManager.setState(Q.executing),f.eventHub.instanceDownloaded();var r=tV.getPidlDocInfoFromResource(e,t);if(f.telemetryContext.updateResourceInfo(r),t.clientAction)return f.model.handleClientAction(t.clientAction,t);f.eventHub.success({id:t.id,operationType:n,response:t})},function(e){var t=ro.createServerError(t3.resourceInstanceDownloadFailed,o.url,e,[e.errorMessage]);return f.eventHub.failure(t),rd(t)}))},this.handleChallenge=function(e,t){if(f.telemetryContext.trackNewOperation(x.verify,e),f.eventHub.apiCalled(en.handleChallenge,{resourceInfo:ri.boolify(e),options:ri.boolify(t)},{resourceInfo:e}),!f.canApiStart(en.handleChallenge))return f.eventHub.apiReturned(en.handleChallenge,!1),f.apiFailure(!1);var n=f.handleChallengeInternal(e,t);return f.eventHub.apiReturned(en.handleChallenge,n.result,n.promise),n},this.updateOrDeleteResourceInternal=function(e,t,n,r,o){if(n&&!r_.validatePidlDocInfo(f.eventHub,n)||!r_.validateAddUpdateOrDeleteOptions(f.eventHub,r))return f.apiFailure(!1);var a=o||eL.update;f.model.operationType=a,f.model.operationOptions=r,f.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:n}),f.model.pidlDocManager.setOperationInfo({operationType:a});var s=null;if(t)s=f.downloadPidlDocument(ty.getPidlDocUrl(f.userContext,a,n),r,function(){return f.model.populate(t,!0)},n);else{if(!r_.validateResourceInfo(f.eventHub,e))return f.apiFailure(!1);s=f.downloadInstance(e,n,a,r)}return f.apiSuccess(!0,s.then(function(){return f.stateManager.setState(Q.executing)}))},this.updateResource=function(e,t,n,r){if(f.telemetryContext.trackNewOperation(x.update,n||e),f.eventHub.apiCalled(en.updateResource,{resourceInfo:ri.boolify(e),resource:ri.boolify(t),pidlDocInfo:ri.boolify(n),options:ri.boolify(r)},{resourceInfo:e,pidlDocInfo:n}),!f.canApiStart(en.updateResource))return f.eventHub.apiReturned(en.updateResource,!1),f.apiFailure(!1);var o=f.updateOrDeleteResourceInternal(e,t,n,r);return f.eventHub.apiReturned(en.updateResource,o.result,o.promise),o},this.selectResource=function(e,t,n,r,o,a,s){if(!a&&!e||e&&(!(r_.validatePidlDocInfo(f.eventHub,e)||r_.validateResourceInfo(f.eventHub,e))||!r_.validateSelectOrRenderOptions(f.eventHub,t))||a&&!r_.validateHandle(f.eventHub,a)||s&&!r_.validateSelectedResourceInfo(f.eventHub,s))return f.apiFailure(null);s&&(s.id||s.backupId)&&((e=e||{}).parameters=e.parameters||{},e.parameters.filters=e.parameters.filters||{},s.id&&(e.parameters.filters.id=s.id),s.backupId&&(e.parameters.filters.backupId=s.backupId));var l=a||ro.guid();f.model.pidlDocManager.setOperationInfo({handle:l,operationType:n}),f.model.operationType=n,f.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:e});var c=null;return a?c=new Promise(function(e,t){f.model.pidlDocManager.retrievePidlDocFromCache(f.eventHub,l,o).then(function(){r().then(e,function(e){t(e)})},function(e){f.eventHub.failure(new t4.unexpectedError(e,[])),t()})}):(f.model.operationOptions=t,tV.updatePidlDocInfo(e),c=f.downloadPidlDocument(ty.getPidlDocUrl(f.userContext,n,e),t,r,e,o)),f.apiSuccess(l,c.then(function(){return f.stateManager.setState(Q.executing)}))},this.selectResourceTypeInternal=function(e,t){return f.selectResource(e,t,eL.select,f.onDownloadValidateOrSelectResourceType.bind(f))},this.selectResourceType=function(e,t){f.telemetryContext.trackNewOperation(x.selectResourceType,e);var n,r,o=e,a=f.userContext.getHeaders({},"")[M.msFlight]||"",s=ru();(null==a?void 0:a.includes(F.enablePaymentAgentChallenge))&&(null==(n=window.paymentAgent)?void 0:n.getInitPromise)&&(s=null!=(r=window.paymentAgent.getInitPromise())?r:s);var l=s.then(function(){if((null==a?void 0:a.includes(F.enablePaymentAgentChallenge))&&(o=ro.verifyClientSupported(e)),f.eventHub.apiCalled(en.selectResourceType,{pidlDocInfo:ri.boolify(o),options:ri.boolify(t)},{pidlDocInfo:o}),!f.canApiStart(en.selectResourceType))return f.eventHub.apiReturned(en.selectResourceType,!1),f.apiFailure(null);var n=f.selectResourceTypeInternal(o,t);return f.eventHub.apiReturned(en.selectResourceType,ri.boolify(n.result),n.promise),n});return f.apiSuccess(null,l)},this.updateProfile=function(e,t,n,r){var o=tr(tr({},n),{resourceType:"Profile"});if(f.telemetryContext.trackNewOperation(x.updateProfile,o||e),f.eventHub.apiCalled(en.updateProfile,{resourceInfo:ri.boolify(e),resource:ri.boolify(t),pidlDocInfo:ri.boolify(o),options:ri.boolify(r)},{resourceInfo:e,pidlDocInfo:o}),!f.canApiStart(en.updateProfile))return f.eventHub.apiReturned(en.updateProfile,!1),f.apiFailure(!1);var a=f.updateOrDeleteResourceInternal(e,t,o,r);return f.eventHub.apiReturned(en.updateProfile,a.result,a.promise),a},this.selectInstanceInternal=function(e,t,n,r){return f.selectResource(e,t,eL.selectInstance,function(){return f.onDownloadSelectResource(n&&n.prefillData)},n&&n.targetIdentity,n&&n.handle,r)},this.selectInstance=function(e,t,n,r){f.telemetryContext.trackNewOperation(x.selectResource,e);var o,a,s=e,l=f.userContext.getHeaders({},"")[M.msFlight]||"",c=ru();(null==l?void 0:l.includes(F.enablePaymentAgentChallenge))&&(null==(o=window.paymentAgent)?void 0:o.getInitPromise)&&(c=null!=(a=window.paymentAgent.getInitPromise())?a:c);var u=c.then(function(){if((null==l?void 0:l.includes(F.enablePaymentAgentChallenge))&&(s=ro.verifyClientSupported(e)),f.eventHub.apiCalled(en.selectResource,{pidlDocInfo:ri.boolify(s),options:ri.boolify(t),actionContext:ri.boolify(n)},{pidlDocInfo:s}),!f.canApiStart(en.selectResource))return f.eventHub.apiReturned(en.selectResource,!1),f.apiFailure(null);var o=f.selectInstanceInternal(s,t,n,r);return f.eventHub.apiReturned(en.selectResource,ri.boolify(o.result),o.promise),o});return f.apiSuccess(null,u)},this.listAddress=function(e,t,n,r){var o=tr(tr({},e),{resourceType:"Address"});if(f.telemetryContext.trackNewOperation(x.listAddress,o),f.eventHub.apiCalled(en.listAddress,{pidlDocInfo:ri.boolify(e),options:ri.boolify(t),actionContext:ri.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.listAddress))return f.eventHub.apiReturned(en.listAddress,!1),f.apiFailure(null);var a=f.selectInstanceInternal(e,t,n,r);return f.eventHub.apiReturned(en.listAddress,ri.boolify(a.result),a.promise),a},this.selectPaymentInstrument=function(e,t,n,r,o){if(a=o?tr(tr({},e),{resourceType:e.resourceType}):tr(tr({},e),{resourceType:"PaymentInstrument"}),f.telemetryContext.trackNewOperation(x.selectPaymentInstrument,a),f.eventHub.apiCalled(en.selectPaymentInstrument,{pidlDocInfo:ri.boolify(a),options:ri.boolify(t),actionContext:ri.boolify(n)},{pidlDocWithResource:a}),!f.canApiStart(en.selectPaymentInstrument))return f.eventHub.apiReturned(en.selectPaymentInstrument,!1),f.apiFailure(null);var a,s=f.selectInstanceInternal(a,t,n,r);return f.eventHub.apiReturned(en.selectPaymentInstrument,ri.boolify(s.result),s.promise),s},this.selectSingleInstanceInternal=function(e,t,n,r){return f.selectResource(e,t,eL.selectSingleInstance,function(){return f.onDownloadSelectSingleResource(n&&n.handle)},n&&n.targetIdentity,n&&n.handle,r)},this.selectSingleInstance=function(e,t,n,r){if(f.telemetryContext.trackNewOperation(x.selectSingleResource,e),f.eventHub.apiCalled(en.selectSingleResource,{pidlDocInfo:ri.boolify(e),options:ri.boolify(t),actionContext:ri.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.selectSingleResource))return f.eventHub.apiReturned(en.selectSingleResource,!1),f.apiFailure(null);var o=f.selectSingleInstanceInternal(e,t,n,r);return f.eventHub.apiReturned(en.selectSingleResource,ri.boolify(o.result),o.promise),o},this.runApi=function(e,t,n,r,o){if(void 0===n&&(n=function(){return!1}),void 0===r&&(r=function(){return!0}),void 0===o&&(o=function(){}),f.eventHub.apiCalled(e),!f.canApiStart(e)||n())return f.eventHub.apiReturned(e,!1),f.apiFailure(!1);var a=t(),s=r();return f.eventHub.apiReturned(e,ri.boolify(s),a),f.apiSuccess(s,o()||a)},this.showResource=function(e){f.telemetryContext.trackNewOperation(x.show);var t=e.pidlDocInfo,n=e.prefillData,r=e.options,o=function(){return!e||!r_.validateShowResourceParams(f.eventHub,e)||!r_.validatePidlDocInfo(f.eventHub,t)||!r_.validateResourceOptions(f.eventHub,r)},a=function(){var e=eL.show,o=ty.getPidlDocUrl(f.userContext,e,t);return f.getPidl(o,n,e,r,t)};return f.runApi(en.showResource,a,o)},this.offerResource=function(e){f.telemetryContext.trackNewOperation(x.offer);var t=e.pidlDocInfo,n=function(){return!e||!r_.validateOfferResourceParams(f.eventHub,e)||!r_.validatePidlDocInfo(f.eventHub,t)},r=function(){var e=eL.offer,n=ty.getPidlDocUrl(f.userContext,e,t);return f.getPidl(n,null,e,null,t)};return f.runApi(en.offerResource,r,n)},this.searchResource=function(e){f.telemetryContext.trackNewOperation(x.search);var t=e.pidlDocInfo,n=e.options,r=function(){return!e||!r_.validateSearchResourceParams(f.eventHub,e)},o=function(){var e=eL.search,r=ty.getPidlDocUrl(f.userContext,e,t);return f.getPidl(r,null,e,n,t)};return f.runApi(en.searchResource,o,r)},this.deleteResource=function(e){var t=e.resourceInfo,n=e.resource,r=e.pidlDocInfo,o=e.options;if(f.telemetryContext.trackNewOperation(x.delete,t||r),f.eventHub.apiCalled(en.deleteResource,{resourceInfo:ri.boolify(t),resource:ri.boolify(n),pidlDocInfo:ri.boolify(r),options:ri.boolify(o)},{resourceInfo:t,pidlDocInfo:r}),!f.canApiStart(en.deleteResource)||!e)return f.eventHub.apiReturned(en.deleteResource,!1),f.apiFailure(!1);var a=f.updateOrDeleteResourceInternal(t,n,r,o,eL.delete);return f.eventHub.apiReturned(en.deleteResource,a.result,a.promise),a},this.fundStoredValue=function(e){f.telemetryContext.trackNewOperation(x.fundStoredValue);var t=e.pidlDocInfo,n=e.options,r=function(){return!e||!r_.validateFundStoredValueParams(f.eventHub,e)},o=function(){var e=eL.fundStoredValue,r=ty.getPidlDocUrl(f.userContext,e,t);return f.getPidl(r,null,e,n,t)};return f.runApi(en.fundStoredValue,o,r)},this.validateResource=function(e,t,n,r){if(f.telemetryContext.trackNewOperation(x.validateResource,e),f.eventHub.apiCalled(en.validateResource,{pidlDocInfo:ri.boolify(e),options:ri.boolify(t),actionContext:ri.boolify(n)},{pidlDocInfo:e}),!f.canApiStart(en.validateResource))return f.eventHub.apiReturned(en.validateResource,!1),f.apiFailure(null);var o=f.selectResource(e,t,eL.validateInstance,f.onDownloadValidateOrSelectResourceType.bind(f),n&&n.targetIdentity,n&&n.handle,r);return f.eventHub.apiReturned(en.validateResource,ri.boolify(o.result),o.promise),o},this.validateProperties=function(){return f.apiSuccess(f.model.validateProperties(),ru())},this.moveNextPage=function(){return f.runApi(en.moveNextPage,function(){return f.model.moveNextOrSubmit().catch(f.displaySettings.propagateCallbackException?rc:rl)})},this.submitPage=function(){return f.runApi(en.submitPage,function(){return f.model.submitAction().catch(f.displaySettings.propagateCallbackException?rc:rl)})},this.moveToLastPage=function(){return f.runApi(en.moveToLastPage,function(){return f.model.moveToLastPage().catch(rl)})},this.movePrevPage=function(){return f.runApi(en.movePrevPage,function(){return f.model.movePrevOrCancel().catch(rl)})},this.moveToFirstPage=function(){return f.runApi(en.moveToFirstPage,function(){return f.model.moveToFirstPage().catch(rl)})},this.refreshData=function(e){return f.runApi(en.refreshData,function(){return f.model.refreshData(e).catch(rl)})},this.cancel=function(){return f.runApi(en.cancel,function(){return f.model.gohome(),ru()})},this.destroyInstance=function(){return f.runApi(en.destroyInstance,function(){return f.model.clearAll(),ru()})},this.getSelectedResource=function(){var e=function(){var e={},t=f.model.getCurrentPage();if(t){var n=t.operationType;n===eL.selectSingleInstance?e=nt.getDefaultSuccessPidlPayload([t],f.eventHub):(n===eL.selectInstance||n===eL.select)&&(e=ri.deepCopy(f.model.createUserInputData(!0,!0)))}return e.operationType=f.model.operationType,e||(e=void 0),e};return f.runApi(en.getSelectedResource,function(){return ru()},function(){return!1},e)},this.invokePageDefaultAction=function(){return f.runApi(en.invokePageDefaultAction,function(){return f.model.invokeDefaultPidlAction().catch(rl)},function(){return!1},function(){return!0},function(){return ru()})},this.returnUserInputData=function(){return new Promise(function(e,t){f.model.returnUserInputData().then(function(t){var n={};n.payload=ri.deepCopy(t),n.operationType=eL.getPidlPayload,e(n)},function(e){f.eventHub.error(e),t()})})},this.getPidlPayload=function(){return f.runApi(en.getPidlPayload,function(){return f.returnUserInputData().then(function(e){return f.eventHub.payloadCreated(e)},rl)},function(){return f.model.operationType!==eL.renderPidlPage},function(){return!0},function(){return ru()})},this.postMessageToChildIFrames=function(e){return f.runApi(en.postMessageToChildIFrames,function(){},function(){return!1},function(){return f.viewEventHandler.postMessageToChildIFrames(e)},function(){return ru()})},this.testHookRenderPidl=function(e,t,n){return f.model.pidlDocManager.setPidlDoc(f.eventHub,e),f.model.operationType=t,f.model.populate(n).catch(rl)},this.testHookRenderPidlPage=function(e,t,n,r){void 0===n&&(n=0),f.telemetryContext.trackNewOperation(x.renderPidlDocument),f.eventHub.apiCalled(en.renderPidlDocument);var o=f.testHookRenderPidl(e,t,r).then(function(){f.model.moveToPageIndex(n).catch(rl),f.stateManager.setState(Q.executing)});return f.eventHub.apiReturned(en.renderPidlDocument,!0,o),!0};var h=o||{},m=h.telemetryLogger,g=h.getPidlDocument,v=h.view,y=h.fetchHandler,b=v&&ri.isFunction(v.getViewType)&&v.getViewType();if(this.telemetryContext=new r3(a,b),this.eventHub=new rf(m,this.telemetryContext),this.stateManager=new rJ(this.eventHub),t9.getLoggingService()||t9.setLoggingService(new r6),!t9.getOneDSService())if(l)t9.setOneDSService(l);else{var C={getApplicationInsights:function(){return{initialize:function(){},trackEvent:function(){}}},getCorrelationVectorPlugin:function(){return{getCv:function(){return{count:0,increment:function(){return this.count=this.count+1,this.getValue()},getValue:function(){return"cv__"+this.count},isInit:function(){return!0}}}}}};t9.setOneDSService(C)}if(this.logConstructorCall(e,t,n,r,a),!r_.validateReturnOptions(this.eventHub,t)||(this.eventHub.addReturnOptions(t),t9.getCommerceService()||t9.setCommerceService(new r7),t9.getRedirectionService()||t9.setRedirectionService(new or),t9.getPidlService()||t9.setPidlService(new ot),t9.getPidlStoreService()||t9.setPidlStoreService(new on),n&&this.eventHub.addPublicEventHandler(n),this.eventHub.addPrivateEventHandler(this.handlePrivateEvent),s&&this.eventHub.addPrivateEventHandler(s),!r_.validateInputParameters(this.eventHub,e,r,a,o)))return void this.eventHub.apiReturned(en.constructor,!1);if(this.callbacks=o,this.transformers=u,this.localDataSourceProviders=p,this.userContext=new rZ(e),this.displaySettings=new rs(r),this.displaySettings.preventUnmountOnFinish&&this.eventHub.registerEventExtender(E.preventUnmountOnFinish,function(){return!0}),!this.displaySettings.containerId){this.eventHub.failure(new t4.inputParameterValidationFailedError(t3.containerIdNotFound,"containerId",[this.displaySettings.containerId])),this.eventHub.apiReturned(en.constructor,!1);return}this.model=new rY({urls:t.urls,userContext:this.userContext,displaySettings:this.displaySettings,eventHub:this.eventHub,pidlDocManager:new r$(g,d),stateManager:this.stateManager,callbacks:this.callbacks,transformers:this.transformers,localDataSourceProviders:this.localDataSourceProviders}),this.model.setOrchestratorId(ro.registerToOrchestrator({model:this.model,addPublicEventHandler:this.eventHub.addPublicEventHandler}));var k=this.callbacks,S=k.iFrameMessageHandler,P=k.view;this.viewEventHandler=new r0({eventHub:this.eventHub,model:this.model,displaySettings:this.displaySettings,view:P,iFrameMessageHandler:S,userContext:this.userContext,userContextIn:e,returnOptions:t,eventHandler:n,displayOptions:r,callbacks:o,telemetryOptions:a,externalPrivateEventHandler:s,oneDSService:l,transformers:u,pidlPayload:d,localDataSourceProviders:p,controlApiMap:this.controlApiMap}),y&&rS.setFetchHandler(y),this.stateManager.setState(Q.initialized)}return e.prototype.apiSuccess=function(e,t){return{result:e,promise:t.catch(this.displaySettings.propagateCallbackException?rc:rl)||ru()}},e.prototype.apiFailure=function(e){return{result:e,promise:ru()}},e.prototype.onDownloadSelectResource=function(e){return this.model.populate(e)},e.prototype.onDownloadValidateOrSelectResourceType=function(){return this.model.populate()},e.prototype.onDownloadSelectSingleResource=function(e){if(!this.model.pidlDocManager.isEmpty())return this.model.populate();var t={handle:e,action:"selectResource"};return this.eventHub.success(t),ru()},e.prototype.getPidl=function(e,t,n,r,o){var a=this;return this.model.operationType=n,this.model.operationOptions=r,this.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:o}),this.model.pidlDocManager.setOperationInfo({operationType:n}),this.downloadPidlDocument(e,r,function(){return a.model.populate(t,!1)},o,void 0,!!t).then(function(){return a.stateManager.setState(Q.executing)},rl)},e.prototype.downloadInstance=function(e,t,n,r){var o=this;return new Promise(function(a,s){var l=t9.getPidlService(),c=l.getRequestInstance(o.eventHub,e,o.userContext,n);l.getInstance(o.eventHub,c).then(function(l){o.eventHub.instanceDownloaded(),t||(t=tV.getPidlDocInfoFromResource(e,l),o.telemetryContext.updateResourceInfo(t));var c=ty.getPidlDocUrl(o.userContext,n,t);if(c&&c.url)return o.downloadPidlDocument(c,r,function(){return o.model.populate(l,!0)},t).then(function(e){return a(e)},s);s()},function(e){var t=ro.createServerError(t3.resourceInstanceDownloadFailed,c.url,e,[e.errorMessage]);o.eventHub.failure(t),s(t)})})},e.prototype.downloadPidlDocument=function(e,t,n,r,o,a){var s=this;return this.model.downloadPidlDocument(e,r,o,a).then(function(e){return tL(e)?s.model.handleClientAction(e):n()})},e}(),oi=function(){function e(e,t){this.defaultWaitTime=500,this.eventHub=e,this.mockFunctions=t||[],this.mockFunctionsMap={},this.mockFunctions.forEach(function(e){this.mockFunctionsMap[e.name]=e},this)}return e.prototype.getMockedFunctionNames=function(){var e=[];return this.mockFunctions.forEach(function(t){e=e.concat(t.name)}),e},e.prototype.createMockedFunction=function(t,n){return e.setArity((function(){var e=this.mockFunctionsMap[t];return e.triggers.forEach(function(e){setTimeout(this.eventHub[e.name].bind(this.eventHub),this.defaultWaitTime,e.params)},this),e.returns}).bind(this),n)},e.createArguments=function(e){if(e<1)return"arg";for(var t="arg0",n=1;n<e;n++)t=t+",arg"+n;return t},e.setArity=function(t,n){return Function(e.createArguments(n),"return this.apply(this, arguments);").bind(t)},e}(),oa=function(){function e(){t9.getTelemetryInjectionService()||t9.setTelemetryInjectionService(new os)}return e.prototype.logEvent=function(e,t,n){t9.getTelemetryInjectionService().logEvent(n,e,t)},e.prototype.getCorrelationId=function(){return r4.getCVValue()},e.prototype.getHttpRequestCorrelationHeader=function(){var e=r4.getIncrementedCV();if(e)return{name:M.msCV,value:e}},e}(),os=function(){function e(){}return e.prototype.logEvent=function(e,t,n){r4.setUserConsentDetailsCallback(null==e?void 0:e.userConsentDetailsCallback),t===S.fetchCallCompleted?this.logOSREvent(e,n&&n.httpRequestTelemetryData):this.logGenericEvent(e,t,n)},e.prototype.logGenericEvent=function(e,t,n){var r,o,a,s,l;try{if(ri.isObject(e)){var c=((window||{}).location||{}).href||"",u={name:"Microsoft.Commerce.Payments.PidlSdk.PageEvent",partB:{pageName:(document||{}).title||"",uri:c,destUri:c,customSessionGuid:e.sessionId,impressionGuid:e.operationId,contentJsonVer:1,content:JSON.stringify({eventName:t})},partC:{sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null==(r=e.partnerContext)?void 0:r.partnerName,partnerContext:JSON.stringify(e.partnerContext),partnerContextMap:e.partnerContext,parentOperationId:(null==(o=e.partnerContext)?void 0:o.parentOperationId)||e.operationId,partnerFlowId:null==(a=e.partnerContext)?void 0:a.flowId,partnerSessionId:null==(s=e.partnerContext)?void 0:s.sessionId,partnerScenarioId:null==(l=e.partnerContext)?void 0:l.scenarioId,operationId:e.operationId,operationType:e.operationType,eventName:t,eventParameters:JSON.stringify(n),eventParametersMap:n,baseType:"Ms.Content.PageAction"}};ri.isObject(e.telemetryResource)&&(u.partC.resourceType=e.telemetryResource.resourceType,u.partC.resourceParameters=JSON.stringify(e.telemetryResource.parameters),u.partC.resourceParametersMap=e.telemetryResource.parameters),r4.writeEvent(u.name,u.partB,u.partC)}}catch(e){t9.getLoggingService().logError("TelemetryError",e)}},e.prototype.logOSREvent=function(e,t){var n,r,o,a,s;try{if(ri.isObject(e)){var l={partner:((e.telemetryResource||{}).parameters||{}).partner,telemetryContext:e,responseHeaders:t.headers},c={name:"Ms.Webi.OutgoingRequest",partB:{operationName:t.operationName,targetUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.succeeded||!t.serviceErrorCode||isNaN(t.serviceErrorCode)?-1:t.serviceErrorCode,succeeded:t.succeeded,requestMethod:t.requestMethod,responseContentType:t.responseContentType,protocolStatusCode:t.protocolStatusCode,dependencyOperationName:t.dependencyOperationName,dependencyOperationVersion:t.dependencyOperationVersion&&t.dependencyOperationVersion.toString(),dependencyName:t.serviceName,dependencyType:"webservice",responseSizeBytes:t.contentLength},partC:{customSessionGuid:e.sessionId,impressionGuid:e.operationId,message:t.failureResponse,retryCount:t.retryCount,customData:JSON.stringify(l),sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null==(n=e.partnerContext)?void 0:n.partnerName,partnerContext:JSON.stringify(e.partnerContext),operationId:e.operationId,parentOperationId:(null==(r=e.partnerContext)?void 0:r.parentOperationId)||e.operationId,partnerFlowId:null==(o=e.partnerContext)?void 0:o.flowId,partnerSessionId:null==(a=e.partnerContext)?void 0:a.sessionId,partnerScenarioId:null==(s=e.partnerContext)?void 0:s.scenarioId,partnerContextMap:e.partnerContext,operationType:e.operationType,baseType:"Ms.Qos.OutgoingServiceRequest"}};r4.writeEvent(c.name,c.partB,c.partC)}}catch(e){t9.getLoggingService().logError("TelemetryError",e)}},e}(),ol=function(){function e(e,t){tV.getTelemetryLoggerProperties().enableMultipleLoggers&&t?this.loggers=[e,t]:t?this.loggers=[t]:this.loggers=[e]}return e.prototype.logEvent=function(e,t,n){for(var r=0,o=this.loggers;r<o.length;r++)o[r].logEvent(e,t,n)},e.prototype.getCorrelationId=function(){for(var e,t,n=0,r=this.loggers;n<r.length;n++){var o=r[n],a=null==(e=o.getCorrelationId)?void 0:e.call(o);a&&(t=a)}return t},e.prototype.getHttpRequestCorrelationHeader=function(){for(var e,t,n=0,r=this.loggers;n<r.length;n++){var o=r[n],a=null==(e=o.getHttpRequestCorrelationHeader)?void 0:e.call(o);a&&(t=a)}return t},e.prototype.getLoggers=function(){return this.loggers},e}(),oc=new(function(){function e(){var e=this;this.getContainerClassName=function(e){if(e)switch(e){case B.busyBlock:return u.busyBlock;case B.errorBlock:return u.errorBlock;case B.helpDialogBlock:return u.helpDialogBlock;case B.helpDialogContentBlock:return u.helpDialogContentBlock;case B.modalDialogBlock:return u.modalDialogBlock;case B.modalDialogContentBlock:return u.modalDialogContentBlock;case B.pageContentBlock:return u.pageContentBlock;case B.submitBlock:return u.submitBlock}},this.getDivClassName=function(t,n,r){switch(n){case g.dropdown:return[u.dropdownDiv,u.propertyDiv];case g.checkBox:return[u.checkBoxDiv,u.propertyDiv];case g.textBox:return[u.textBoxDiv,u.propertyDiv];case g.secureProperty:return[u.propertyDiv];case g.image:return[u.imageDiv];case g.logo:return[u.logoDiv];case g.button:return[u.buttonDiv];case g.iFrame:return[u.iFrameDiv];case g.group:var o=[u.groupDiv],a=e.getContainerClassName(r);return a&&o.push(a),o}},this.generateClassName=function(t,n,r,o,a){var s=e.getClassName(t,n,r);if(o){var l=e.getDivClassName(t,o,a);l&&(s=s.concat(l))}if(s)return s.join(" ")},this.getClassName=function(t,n,r){switch(n){case N.div:return[u.div];case N.label:return[u.label];case N.dropdown:return[u.property,u.dropdown,e.getPropertyClassName(r)];case N.radio:return[u.property,u.radio,e.getPropertyClassName(r)];case N.buttonList:return[u.property,u.buttonList,e.getPropertyClassName(r)];case N.checkBox:return[u.property,u.checkBox,e.getPropertyClassName(r)];case N.textBox:return[u.property,u.textBox,e.getPropertyClassName(r)];case N.secureProperty:return[u.secureProperty];case N.button:return[u.button];case N.iFrame:return[u.iFrame];case N.heading:return[u.staticText,u.heading];case N.subHeading:return[u.staticText,u.subHeading];case N.text:return[u.staticText,u.text];case N.textGroup:return[u.staticText,u.text,u.textGroup];case N.hyperlink:return[u.hyperlink];case N.image:return[u.image];case N.logo:return[u.logo];case N.errorDiv:return[u.errorDiv];case N.error:return[u.error];case N.audio:return[u.audio];default:t.failure(new t4.unexpectedError(t3.noMappingToGetHtmlClassNameForElement,[n]));return}},this.getDivId=function(t){return e.getId(p.div,t)},this.getId=function(e,t){return ri.replaceCharactersForHtml(ri.startsWith(t,e)?t:e+t)},this.getPropertyClassName=function(t){return e.getId(p.property,t)},this.concatIdElement=function(e,t){return ri.replaceCharactersForHtml(e+"_"+t)}}return e.prototype.concatClassName=function(e,t){return e&&t&&e.trim()+" "+t||e||t},e}()),ou=Object.freeze({__proto__:null,constants:tv,modelElementTypes:rr,promise:rp,eventArgs:Object.freeze({__proto__:null}),msrCrypto:rq,tokenEncrypt:rK,oneDSAdapter:r4,commerce2:t6,commerceHelper:t8,config:ra,configManager:tV,error:t4,fetchHelper:rS,inputValidationHelper:r_,iocContainer:t9,modelElementFactory:ne,modelElementsHelper:nt,pidlDocHelper:t7,tokenizer:rX,typeHelper:ri,urlBuilder:ty,userInputDataHelper:r8,userInputDataTransformer:r9,userInputDataValidator:rH,utils:ro,validationFunctions:rO,version:r5,webCrypto:rV,htmlAttributeHelper:oc,hmac:rj,DisplaySettings:rs,errorMessages:t3,EventHub:rf,FetchConfig:rw,mockFactory:oi,Resources:rE,stateManager:rJ,telemetryContext:r3,userContextWrapper:rZ,ViewEventHandler:r0,DataCache:rP,DataStore:rI,InputPrefillDataManager:rB,Model:rY,ModelData:rF,ModelDataProperty:rM,MultiPropertySelector:rD,pidlDocumentManager:r$,Validator:rz,commerceService:r7,loggingService:r6,pidlService:ot,pidlStoreService:on,redirectionService:or,oneDSLogger:oa,telemetryInjectionService:os,LoggerWrapper:ol}),od=Object.freeze({__proto__:null,controlApi:oo,get GpayButtonColor(){return e$},get ApayButtonColor(){return eQ},get GpayButtonType(){return eJ},get ApayButtonType(){return eZ},get EncryptionTypes(){return e0},doNothing:rl,throwException:rc,createFakePromise:ru,createFakeRejectedPromise:rd,errorMessages:t3,ModelElement:nn,ContainerElement:nr,GenericGroupElement:no,GroupElement:ni,DataCollectionBindingGroupElement:na,CaptchaContainerElement:ns,GenericCaptchaElement:nl,CaptchaElement:nc,PageElement:nu,TextGroupElement:nd,PropertyElement:np,SelectionElement:nf,DropdownElement:nh,RadioElement:nm,ButtonListElement:ng,TextBoxElement:nv,CheckBoxElement:ny,FilePickerElement:nb,GenericTextElement:nx,TextElement:nC,ButtonElement:nk,AudioElement:nw,ExpressionElement:nS,ImageElement:n_,SeparatorElement:nE,SpinnerElement:nP,LogoElement:nI,PidlContainer:nT,PidlInstance:nD,SecurePropertyInitializations:nA,SecurePropertyElement:nR,ExpressCheckoutButtonElement:nN,IFrameElement:nB,ChallengeIFrameElement:nM,isModelElement:nF,isContainerElement:nO,isCaptchaElement:nL,isPageElement:nH,isSelectionElement:nz,isDropdownElement:nV,isPrefillDropdownElement:nU,isPidlContainerElement:nj,isPidlInstanceElement:nW,isImageElement:nq,isLogoElement:nG,isButtonElement:nK,isFilePickerElement:nX,isCheckBoxElement:nY,isPrefilledCheckBoxElement:n$,isPageOrGroupOrDataCollectionBindingGroup:nQ,isGroupElement:nJ,isTextGroupElement:nZ,isTextBoxElement:n0,isButtonListElement:n1,isRadioElement:n2,isTextElement:n5,isDataCollectionBindingGroup:n4,isExpressionElement:n3,isIFrameElement:n6,isChallengeIFrameElement:n8,isSecurePropertyElement:n9,isExpressCheckoutButtonElement:n7,isSeparatorElement:re,isAudioElement:rt,isPropertyElement:rn,env:r1,internal:ou,pidlDocumentTypes:tz,fetchHelper:rS,urlBuilder:ty,typehelper:ri,pidlErrors:t4}),op=function(e,t){return(op=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])})(e,t)};function of(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}op(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oh=function(){return(oh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function om(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function og(e,t){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return c([e,t])}}function c(l){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){s.label=l[1];break}if(6===l[0]&&s.label<o[1]){s.label=o[1],o=l;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(l);break}o[2]&&s.ops.pop(),s.trys.pop();continue}l=t.call(e,s)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function ov(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var oy=eu.pidlReact,ob=ri.startsWith;t.AppScenario=void 0,function(e){e.None="none",e.AddAddress="addAddress",e.AddPaymentInstrument="addPaymentInstrument",e.EditPaymentInstrument="editPaymentInstrument",e.DeletePaymentInstrument="deletePaymentInstrument",e.ApplyPaymentInstrument="applyPaymentInstrument",e.SelectPaymentMethod="selectPaymentMethod",e.ConfirmPayment="confirmPayment",e.SelectPaymentInstrument="selectPaymentInstrument",e.ListAddress="listAddress",e.RiskChallenge="riskChallenge",e.ProfilePrerequisite="profilePrerequisite",e.PaymentInstrumentDetails="paymentInstrumentDetails",e.HandlePaymentChallenge="handlePaymentChallenge",e.VerifyAddress="verifyAddress",e.RedeemMSRewards="redeemMSRewards",e.SelectMSRewards="selectMSRewards",e.OfferPaymentInstrument="offerPaymentInstrument"}(t.AppScenario||(t.AppScenario={})),t.ElementType=void 0,function(e){e.alert="alert",e.button="button",e.buttonGroup="buttonGroup",e.checkbox="checkbox",e.dialog="dialog",e.dropdown="dropdown",e.error="error",e.group="group",e.captcha="captcha",e.audio="audio",e.heading="heading",e.helpDialog="helpDialog",e.hyperlink="hyperlink",e.iframe="iframe",e.challengeIframe="challengeIframe",e.expressCheckoutButton="expressCheckoutButton",e.secureProperty="secureProperty",e.securePropertyLabel="securePropertyLabel",e.image="image",e.label="label",e.logo="logo",e.subheading="subheading",e.text="text",e.textBox="textBox",e.radio="radio",e.radioCircle="radioCircle",e.checkedRadioCircle="checkedRadioCircle",e.modal="modal",e.overlay="overlay",e.spinner="spinner",e.pidlInstance="pidlInstance",e.panel="panel",e.textgroup="textgroup",e.filePicker="filePicker",e.separator="separator",e.tooltip="tooltip"}(t.ElementType||(t.ElementType={}));var ox="prod",oC={DefaultAddressType:"jarvis_v3",Operation:"add",ContainerId:"addResource",ResourceType:"Address",UserId:"me",ViewTermsId:"viewTermsButton"},ok={AllowedPaymentMethods:["credit_card","ewallet.paypal","ewallet.kakaopay","ewallet.stored_value","mobile_billing_non_sim","online_bank_transfer.paysafecard","ewallet.venmo"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me"},ow={AddressType:"jarvis_v3",Operation:"update",ContainerId:"updateResource",ResourceType:"AddressEx",UserId:"me"},oS={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me"},o_={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",RiskChallengeData:"globalPIQrCode",ViewTermsId:"globalPIQrCodePrivacyStatement",RedirectButton:"globalPIQrCodeRedirectButton",RedirectButtonPage2:"globalPIQrCodeRedirectButtonPage2"},oE={Operation:"validateInstance",ContainerId:"validateResource",ResourceType:"Address",UserId:"me"},oP={isCreditCard:"isUserPICreditCard",isCreditCardExpired:"isCreditCardExpired",isEwalletStoredValue:"IsEwalletStoredValue"},oI={Operation:"select",ContainerId:"selectMSRewards",ResourceType:"MSRewards",UserId:"me",useCsvTogglePropertyName:"useCsv",redeemPointsTogglePropertyName:"redeemPoints",csvTotalPropertyName:"csvTotal",formattedCsvTotalPropertyName:"formattedCsvTotal",pointsValueTotalPropertyName:"pointsValueTotal",formattedPointsValueTotalPropertyName:"formattedPointsValueTotal"},oT={AllowedPaymentMethods:["credit_card","direct_debit","online_bank_transfer.paysafecard","ewallet","finance_leasing","mobile_billing_non_sim","virtual"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me",SecondaryPIFilter:{SplitPaymentSupported:!0},SelectPaymentInstrument:"SelectPaymentInstrument",paymentInstrumentList:"paymentInstrumentList",addNewPaymentMethodFamily:"add_new_payment_method",preventDefaultSelection:"addnewpm_no_default_selection"},oD={NewPaymentMethodLink:"newPaymentMethodLink",RedeemGiftCardLink:"redeemGiftCardLink",ManagePaymentInstrument:"ManagePaymentInstrument",redeemGiftCardHandlerName:"redeemGiftCardHandler"},oA={Operation:"selectInstance",ContainerId:"listAddress",ResourceType:"Address",UserId:"me",DefaultAddressType:"jarvis_v3"},oR={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",LogoRowElement:"acceptedCardsLogos"},oN={ContainerId:"deletePaymentInstrument",Operation:"delete",ResourceType:"PaymentInstrument",UserId:"me"},oB={ContainerId:"editPaymentInstrument",ViewTermsId:"viewTermsButton",Operation:"update",ResourceType:"PaymentInstrument",UserId:"me"},oM={ContainerId:"MSRewards",ResourceType:"MSRewards",UserId:"me"},oF={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",PaymentType:"mc",PaymentFamily:"credit_card",DefaultScenario:"xboxCreditCardInit"},oO={Operation:"offer",ContainerId:"offerPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me"},oL={Operation:"update",ContainerId:"profilePrerequisite",ResourceType:"Profile",UserId:"me",type:"consumer"},oH={Operation:"selectSingleInstance",ContainerId:"paymentInstrumentDetails",ResourceType:"PaymentInstrument",UserId:"me",type:"consumer",Scenario:"details",ChangeButtonId:"changeSinglePIButton"},oz={ContainerId:"handlePaymentChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",ViewTermsId:"viewTermsButton"},oV={ResourceType:"PaymentInstrument",UserId:"me",ActionType:"triggerSubmit"},oU={ViewTermsId:"viewTermsButton"};t.AddressScenario=void 0,function(e){e.billing="billing",e.shipping="shipping",e.profile="profile"}(t.AddressScenario||(t.AddressScenario={})),t.ApplyPaymentInstrumentScenario=void 0,function(e){e.xboxCoBrandedCard="xboxCoBrandedCard",e.xboxApplyFullPageRender="xboxApplyFullPageRender"}(t.ApplyPaymentInstrumentScenario||(t.ApplyPaymentInstrumentScenario={})),t.OfferPaymentInstrumentScenario=void 0,function(e){e.xboxCoBrandedCardBuyNow="xboxCoBrandedCardBuyNow"}(t.OfferPaymentInstrumentScenario||(t.OfferPaymentInstrumentScenario={}));var oj={propertyName:function(e,t){return t.propertyName=e.getPropertyName()},elementId:function(e,t){return t.elementId=e.id},resolvedLogo:function(e,t){return t.resolvedLogo=e.getResolvedLogo()},pidlKey:function(e,t){return t.pidlKey=e.key}};function oW(){return function(e,t){function n(n,r){var o=n.element;if(!o)return null;for(var a={},s=0,l=t;s<l.length;s++){var c=l[s],u=oj[c];if(u)u(o,a);else{var d=o[c];a[c]=d instanceof Function?d():o[c]}}return e3.createElement(e,oh({ref:r},a,n))}return n.displayName="ElementWrapper(".concat(t.join("|")," => ").concat(e.displayName||"UnknownComponent",")"),e3.forwardRef(n)}}var oq=oW();oW(),oW();var oG=oW(),oK=oW(),oX=oW(),oY=oW(),o$=oW(),oQ=oW(),oJ=oW(),oZ=oW(),o0=oW(),o1=oW(),o2=oW(),o5=oW(),o4=oW(),o3=oW(),o6=oW(),o8=oW(),o9=oW(),o7=oW(),ie=oW(),it=oW();oW(),e3.createContext({pidlDocs:[]});var ir=e3.createContext(!1),io=e3.createContext({values:{},accessibilityText:{},errors:{}}),ii=e3.createContext({}),ia=e3.createContext({elementFactory:null,displayOptions:null,displaySettings:null,theme:null,userContext:null,pidlInstanceContexts:void 0,env:null,returnOptions:null}),is=e3.createContext(null),il=e3.createContext(null);function ic(e){void 0===e&&(e={});var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];ri.startsWith(o,eu.noPidlddc)||ri.startsWith(o,eu.pidlReact)?t.push(e[o]):ec[o]||ro.isTagPrefixKnown(o)||t.push(d.taggedClass+e[o])}return t}function iu(e){var t=[];if(e)for(var n=0,r=e;n<r.length;n++){var o=r[n];t.push(d.taggedClass+o)}return t}function id(e){void 0===e&&(e={});var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];ri.startsWith(o,eu.pidlReact)&&t.push(e[o].substring(eu.pidlReact.length))}return t}function ip(e){if(void 0===e&&(e={}),e){for(var t=0,n=Object.keys(e);t<n.length;t++)if(n[t]===ec.hideInlineError)return!0}return!1}function ih(e){void 0===e&&(e={});var t,n={};if(e)for(var r=0,o=Object.keys(e);r<o.length;r++){var a=o[r];if(a&&L.hasOwnProperty(a)){var s=L[a],l=e[a];n=oh(oh({},n),((t={})[s]=l,t))}}return n}var im=function(e){var n=e.propertyName,r=(0,oc.getId)(tv.htmlElementIdPrefixes.error,n);return e3.createElement(ia.Consumer,null,function(e){return e3.createElement(io.Consumer,null,function(o){var a=e.elementFactory;e.displayOptions,e.displaySettings;var s=o.errors[n]?o.errors[n].message:null;if(!s)return null;var l={errorMessage:s};return a&&a.canCreate(t.ElementType.error,l,{})?a.create(t.ElementType.error,l):e3.createElement("span",{className:e8.default("pidlddc-error",{"d-none":!s},"text-danger"),id:r,tabIndex:-1,role:"alert"},s)})})};im.displayName="Error";var ig=function(e){var n=e.message;return e3.createElement(ia.Consumer,null,function(e){var r=e.elementFactory;e.displayOptions,e.displaySettings;var o={elementId:"pidlddc-page-alert-id",message:n};return r&&r.canCreate(t.ElementType.alert,o,{})?r.create(t.ElementType.alert,o):e3.createElement("div",{id:o.elementId,className:"pidlddc-error-alert",role:"alert"},o.message)})};ig.displayName="PageAlert";var iv=function(e){function t(t){var n=e.call(this,t)||this;return n.onEvent=function(e){var t=n.props,r=t.sourceUrl,o=t.expectedClientActionId,a=t.onIFrameMessage,s=t.onIFrameBusyTimerEnded,l=n.state.messageTimer;if(!r||!e.origin||0===r.indexOf(e.origin)){var c=ro.parseJSON(e.data),u=c.succeeded?c.value:null;u&&o&&u.actionId!==o||(l&&(s(l),clearTimeout(l),n.setState({messageTimer:null})),a(e))}},n.iframe=e3.createRef(),n.state={executing:!0,width:t.element.width,height:t.element.height},n}return of(t,e),t.prototype.postMessage=function(e){return!!this.iframe&&!!this.iframe.current&&!!this.iframe.current.contentWindow&&!!this.iframe.current.contentWindow.postMessage&&(this.iframe.current.contentWindow.postMessage(e.message,e.targetOrigin),!0)},t.prototype.updateHeight=function(e){this.setState({height:e})},t.prototype.componentDidMount=function(){var e=this.props,t=e.displayContent,n=e.sourceUrl,r=e.onIFrameMessageTimeout,o=e.messageTimeout,s=e.messageTimeoutClientAction,l=e.onIFrameBusyTimerStarted,c=e.onIFrameBusyTimerEnded,u=this.iframe.current,d=this.state.messageTimer;if(window.addEventListener(a.message,this.onEvent),!n&&t&&u){var p=u.contentDocument;p&&(p.open(),p.write(t),p.close())}if(!d&&o&&s){var f=window.setTimeout(function(){r(s),c(f)},o);l(f),this.setState({messageTimer:f})}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.displayContent,a=r.sourceUrl,s=this.iframe.current;if(!a&&o&&e&&e.displayContent!==o&&s){var l=s.contentDocument;l&&(l.open(),l.write(o),l.close())}},t.prototype.componentWillUnmount=function(){window.removeEventListener(a.message,this.onEvent)},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,o=e.tags,a=e.sourceUrl;e.containerLayoutOrientation;var s=this.state,l=s.width,c=s.height,u={width:l,height:c},d=(0,oc.getId)(tv.htmlElementIdPrefixes.iframe,t),p=(l||c)&&0===Number((l+c).replace(/\D/g,""))?0:void 0;return this.state.executing?e3.createElement("iframe",{key:d,className:e8.default(ic(o)),id:d,src:a,hidden:r,"aria-label":n,ref:this.iframe,style:u,frameBorder:p}):null},t}(e3.Component),iy=function(e){var n=function(e,t){var n,r;if("xboxCoBrandedCardIframe"!==e)return{authorization:t};try{return{xuh:null==(n=t.split("=")[1])?void 0:n.split(";")[0],xt:null==(r=t.split("=")[1])?void 0:r.split(";")[1]}}catch(e){return{authorization:t}}};return e3.createElement(ia.Consumer,null,function(r){var o=r.elementFactory,a=r.userContext,s=r.displayOptions,l=e.displayId,c=e.useAuth,u=e.containerLayoutOrientation,d=e.styleHints,p={};c&&(null==a?void 0:a.authToken)!=null&&(p=n(l,a.authToken));var f=oh(oh({},e),{headers:p,useWebView2:s.useWebView2||!1,containerLayoutOrientation:u,styleHints:d});return o&&o.canCreate(t.ElementType.iframe,f,{})?o.create(t.ElementType.iframe,f):e3.createElement(iv,oh({},f,{ref:f.iFrameElementRef}))})},ib=oQ(iy,["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","expectedClientActionId","messageTimeout","messageTimeoutClientAction","useAuth","loadingMessage","containerLayoutOrientation","styleHints"]),ix=function(e){var t=e.elementId,n=e.hidden,r=e.showDisplayName,o=e.displayName,a=e.accessibilityName,s=e.element,l=(0,oc.getId)(tv.htmlElementIdPrefixes.label,t);return e3.createElement(io.Consumer,null,function(e){return e3.createElement("label",{className:e8.default("pidlddc-label",{"d-none":n||!r}),id:l,"aria-label":e.accessibilityText[s.getPropertyName()]||a},o,e3.createElement("span",{className:"".concat(l,"-asterisk")},s.dataDescription.is_optional?"":"*"))})},iC=oq(ix,["elementId","propertyName","hidden","displayName","showDisplayName","accessibilityName"]);iC.displayName="PropertyLabel";var ik=function(e){function n(t){var n=e.call(this,t)||this;return n.linkRef=e3.createRef(),n.toggle=function(e){!e&&n.linkRef&&n.linkRef.current&&n.linkRef.current.focus&&n.linkRef.current.focus(),n.setState({open:e})},n.escapeHandler=function(e){27===e.keyCode&&n.toggle(!1)},n.state={open:!1},n}return of(n,e),n.prototype.componentDidUpdate=function(){var e,t=this.props,n=t.elementId,r=t.elementFactory,o=this.state.open;if(!(null==(e=null==r?void 0:r.isReactNative)?void 0:e.call(r))){var a=document.getElementById("".concat(n,"-dialog-body"));o?(document.addEventListener("keydown",this.escapeHandler,!1),a&&a.focus&&a.focus()):document.removeEventListener("keydown",this.escapeHandler,!1)}},n.prototype.render=function(){var e=this,r=this.props,o=r.elementId,a=r.displayHelpName,s=r.displayImage,l=r.children,c=r.element,d=this.state.open;if((!a||0===a.length)&&!s)return null;var f=c.getHelpDialogTags(),h=f&&f[ep.linkAccessibilityName]||c.accessibilityName,m=f&&f[ep.closeButtonAccessibilityName]||"",g="".concat(s?p.image:p.button).concat(o),v=s?u.helpImageLink:u.helpTextLink;return e3.createElement(ia.Consumer,null,function(r){var c=r.elementFactory,u=(r.displayOptions,r.displaySettings);!n.elementIdHelpDialogIndex[o]&&(n.elementIdHelpDialogIndex[o]=n.latestHelpDialogIndex,n.latestHelpDialogIndex++);var f=0===n.elementIdHelpDialogIndex[o]?"":n.elementIdHelpDialogIndex[o],y={id:g,children:l,linkAdditionalClassName:v,linkText:a,linkImageSource:s,linkAriaLabel:h,contentId:u?u.getAffixedDisplayElementId(p.helpDialogContent+u.helpDialogBlock.id+f):o,closeButtonAccessibilityName:m};return c&&c.canCreate(t.ElementType.helpDialog,y,{})?c.create(t.ElementType.helpDialog,y):[e3.createElement("a",{key:"".concat(g,"-toggle"),id:g,className:v,"aria-label":h,"aria-haspopup":"dialog",onClick:function(){return e.toggle(!0)},href:"javascript:void(null);",ref:e.linkRef},s?e3.createElement("img",{src:s,alt:h}):a),e3.createElement("dialog",{key:"".concat(o,"-dialog-body"),id:"".concat(o,"-dialog-body"),tabIndex:-1,onBlur:function(){return e.toggle(!1)},open:d},e3.createElement("div",{key:"".concat(o,"-dialog-close-button"),id:"".concat(o,"-dialog-close-button"),style:{textAlign:"right",width:"100%",paddingBottom:"6px"}},e3.createElement("button",{"aria-label":m,onClick:function(){return e.toggle(!1)}},e3.createElement("span",{"aria-hidden":"true"},"x"))),l)]})},n.elementIdHelpDialogIndex={},n.latestHelpDialogIndex=0,n}(e3.Component),iw=oq(ik,["elementId","displayHelp","displayHelpName","displayImage"]);iw.displayName="HelpDialog";var iS=o9(function(e){function n(t){var n=e.call(this,t)||this;return n.inputFileRef=e3.createRef(),n.onChange=function(e){var t=n.props,r=t.onUpdateValue,o=t.propertyName,a=n.inputFileRef.current.value;a?n.setState({selectedFile:a.split(/(\\|\/)/g).pop()}):n.setState({selectedFile:""}),r(o,e.target.files[0],Z.finished)},n.state={selectedFile:""},n.onButtonClick=n.onButtonClick.bind(n),n}return of(n,e),n.prototype.onButtonClick=function(){this.inputFileRef&&this.inputFileRef.current&&this.inputFileRef.current.click&&this.inputFileRef.current.click()},n.prototype.render=function(){var e=this;return e3.createElement(ia.Consumer,null,function(n){return e3.createElement(io.Consumer,null,function(r){var o=n.elementFactory,a=e.state.selectedFile,s=e.props,l=s.className,c=s.element,u=s.propertyName,d=s.elementId,p=s.disabled,f=s.accessibilityName,h=s.tags,m=s.required,g=s.displayHelpName,v=s.displayHelpChildren,y=s.displayImage,b=c.displayName,x=c.showDisplayName,C=c.displayContent,k=(0,oc.getId)(tv.htmlElementIdPrefixes.filePicker,d),w=e8.default(l,ic(h)),S={inlineError:!0},_=x?e3.createElement(iC,{element:c}):null,E=e3.createElement(im,{propertyName:u}),P={id:d},I=g||y?e3.createElement(iw,oh({},P,{element:c,children:v,elementFactory:o})):null,T={id:k,additionalClassName:w,disabled:p,inlineHelpLink:I,onChange:e.onChange,onButtonClick:e.onButtonClick,ariaLabel:f,displayName:b,displayContent:C,showDisplayName:x,required:m,errorNode:E,selectedFile:a,inputFileRef:e.inputFileRef};return(S=o&&o.canCreate(t.ElementType.filePicker,T,S))?o.create(t.ElementType.filePicker,T):e3.createElement("div",{id:k,className:e8.default(w)},_&&I&&c.displayHelpPosition!==e_.floatRight?e3.createElement("span",null,_," ",I):_,_&&I?null:I,e3.createElement("input",{type:"file",name:"file",ref:e.inputFileRef,onChange:function(t){return e.onChange(t)},style:{display:"none"}}),e3.createElement("button",{id:k+"_button","aria-label":f,disabled:p,onClick:e.onButtonClick},C)," ",e3.createElement("label",{id:k+"_label"}," ",a," "),S&&S.inlineError?null:e3.createElement(im,{propertyName:u}))})})},n}(e3.Component),["elementId","disabled","displayHelpName","displayImage","accessibilityName","tags","required"]);iS.displayName="FilePicker";var i_=function(e){var n=e.className,r=e.element,o=e.elementId,a=e.displayContent,s=e.pidlAction,l=e.disabled,c=e.accessibilityName,u=e.onClick,d=e.tags,p=e.styleHints,f=e.tooltipText,h=e.gridColumn,m=e.gridRow,g=e.accessibilityHint,v=e.containerLayoutOrientation,y=s.type,b=s.isDefault,x="submit"===y||b,C=(0,oc.getId)(tv.htmlElementIdPrefixes.button,o),k=e8.default(n,ic(d)),w=r.propertyElementRef;return e3.createElement(ia.Consumer,null,function(e){var n=e.elementFactory,r={id:C,displayContent:a,onClick:u,additionalClassName:k,disabled:l,ariaLabel:c,accessibilityHint:g,primary:x,type:x?"primary":"secondary",propertyElementRef:w,theme:e.theme,styleHints:p,tooltipText:f,gridColumn:h,gridRow:m,containerLayoutOrientation:v,tags:d};return n&&n.canCreate(t.ElementType.button,r,{})?n.create(t.ElementType.button,r):e3.createElement("button",{id:C,className:e8.default(x?"pidlddc-highlighted":"pidlddc-back",k),disabled:l,"aria-label":c,onClick:u},a)})},iE=o8(i_,["elementId","pidlAction","disabled","displayContent","accessibilityName","accessibilityHint","tags","styleHints","tooltipText","containerLayoutOrientation"]);iE.displayName="Button";var iP=function(e){var n=e.elementId,r=e.displayText,o=e.displayImageUrl,a=e.createElement,s=e.displayContentContainer,l=e.isDisabled,c=e.pidlKey,u=e.onClick,d=e.buttonAction,p=e.containerDisplayId,f=e.ariaLabel,h=e.propertyElementRef,m=e.styleHints,g=e.containerLayoutOrientation,v=e.tags,y=s?a(s):[o?e3.createElement("img",{src:o,key:"".concat(n,"-img"),id:"pidlddc-buttonlist-".concat(n,"-").concat(c)}):null,r];return e3.createElement(ia.Consumer,null,function(e){var r=e.elementFactory,o=e.displayOptions,a=oc,s=(0,a.concatIdElement)((0,a.getId)(o.inputPropertyIdPrefix,n),c),b=function(){return u({id:s,pidlAction:d,value:d.context,dest:""})},x={id:s,key:c,onClick:b,additionalClassName:"",displayContent:y,disabled:l,primary:!1,type:"list",containerDisplayId:p,ariaLabel:f,propertyElementRef:h,styleHints:m,containerLayoutOrientation:g,tags:v};return r&&r.canCreate(t.ElementType.button,x,{})?r.create(t.ElementType.button,x):e3.createElement("button",{id:s,disabled:l,onClick:b,"aria-label":f},x.displayContent)})},iI=it(iP,["displayImageUrl","displayContentContainer","displayText","isDisabled","displayContent","displayType","pidlKey","styleHints","containerLayoutOrientation","tags"]);iI.displayName="ButtonListElement";var iT=function(e){var n=e.createElement,r=e.elementId,o=e.possibleOptions,a=e.onClick,s=e.tags,l=e.displayId,c=e.element,u=e.styleHints,d=e.containerLayoutOrientation,p=[],f=(0,oc.getId)(tv.htmlElementIdPrefixes.buttongroup,r),h=c.propertyElementRef,m=!1;for(var g in o)if(o.hasOwnProperty(g)&&o[g]){var v=o[g],y=o[g].pidlAction||{context:{id:g},type:""},b=null;m||v.isDisabled||(b=h,m=!0),p.push(e3.createElement(iI,{element:v,elementId:r,createElement:n,onClick:a,buttonAction:y,pidlKey:g,containerDisplayId:l,propertyElementRef:b,ariaLabel:null==v?void 0:v.accessibilityName}))}return e3.createElement(ia.Consumer,null,function(e){var n=e.elementFactory,r={id:f,additionalClassName:e8.default(ic(s)),options:p,optionsDirection:"vertical",displayId:l,propertyElementRef:h,styleHints:u,containerLayoutOrientation:d};return n&&n.canCreate(t.ElementType.buttonGroup,r,{})?n.create(t.ElementType.buttonGroup,r):e3.createElement("div",{className:e8.default(ic(s)),id:r.id},p)})},iD=o5(iT,["elementId","possibleOptions","disabled","hidden","tags","displayId","styleHints","containerLayoutOrientation"]);iD.displayName="ButtonList";var iA=function(e){var n=e.elementId,r=e.required,o=e.disabled,a=e.hidden,s=e.propertyName,l=e.displayName,c=e.accessibilityName,u=e.onChange,d=e.tags,p=e.displayId,f=e.useDisplayIdAsKeyForCheckState,h=e.element,m=e.styleHints,g=e.containerLayoutOrientation,v=h.propertyElementRef,y=oc,b=y.getDivId,x=y.getId,C=b(n),k=ip(d),w=function(e,t){return(null==e?void 0:e.isReactNative)&&e.isReactNative()?t:e3.createElement("div",{id:C},t)};return e3.createElement(ia.Consumer,null,function(e){return e3.createElement(io.Consumer,null,function(n){var y=e.elementFactory,b=e.displayOptions,S=e.displaySettings,_=x(b.inputPropertyIdPrefix,h.displayType===eW.prefillControl?S.prefillCheckboxBlock.id:s),E={elementId:_,displayContent:l,onChange:u,displayId:p,disabled:o,ariaLabel:n.accessibilityText[s]||c,additionalClassName:e8.default(ic(d)),inlineError:n.errors[s]&&!k?n.errors[s].message:void 0,checked:f?!!n.values[p]:!0===n.values[s]||"true"===n.values[s],hidden:a,required:r,id:_,propertyName:s,propertyElementRef:v,styleHints:m,containerLayoutOrientation:g},P=y&&y.canCreate(t.ElementType.checkbox,E,{});if(P)return w(y,e3.createElement(e3.Fragment,null,y.create(t.ElementType.checkbox,E),P&&P.inlineError||k?null:e3.createElement(im,{propertyName:s})));var I="".concat(E.elementId,"_label");return e3.createElement("div",{id:C},e3.createElement("label",{id:I,htmlFor:_,"aria-label":E.ariaLabel,hidden:E.hidden},e3.createElement("input",{type:"checkbox",id:_,required:E.required,hidden:E.hidden,disabled:E.disabled,checked:E.checked,"aria-labelledby":I,onChange:function(e){return E.onChange(e.currentTarget.checked)}}),E.displayContent),k?null:e3.createElement(im,{propertyName:s}))})})},iR=o3(iA,["elementId","propertyName","accessibilityName","displayName","required","hidden","disabled","tags","displayId","styleHints","containerLayoutOrientation"]);iR.displayName="CheckBox";var iN=function(e){var n=e.element,r=e.elementId,o=e.hidden,a=e.required,s=e.disabled,l=e.showDisplayName,c=e.displayName,u=e.accessibilityName;return l?e3.createElement(ia.Consumer,null,function(e){var d=e.elementFactory;e.displayOptions,e.displaySettings;var p={disabled:s,required:a,elementId:(0,oc.getId)(tv.htmlElementIdPrefixes.label,r),displayContent:c};if(d&&d.canCreate(t.ElementType.label,p,{}))return d.create(t.ElementType.label,p);for(var f=0;f<n.children.length;f++)if(null!=n.children[f].dataDescription&&!n.children[f].dataDescription.is_optional){p.required=!0;break}return e3.createElement("label",{className:e8.default("pidlddc-label",o||!l?"d-none":"d-block"),id:p.elementId,"aria-label":u},c,e3.createElement("span",{className:"".concat(p.elementId,"-asterisk")},p.required?"*":""))}):null};iN.displayName="GroupLabelInner";var iB=oG(iN,["elementId","hidden","displayName","showDisplayName","accessibilityName"]);iB.displayName="GroupLabel";var iM=function(e){function n(t){var n=e.call(this,t)||this;return n.toggleDisplay=function(e){n.setState({open:e})},n.state={open:!0},n}return of(n,e),n.prototype.render=function(){var e=this.props,n=e.layoutOrientation,r=e.elementId,o=e.childNodes,a=e.tags,s=e.element,l=s.displayId,c=s.type,u=this.state.open,d=(0,oc.getDivId)(r);return e3.createElement(ia.Consumer,null,function(e){var s=e.elementFactory,p=e.displaySettings,f={childNodes:o,layoutOrientation:n,elementId:d,groupClassName:ic(a),displayId:l,type:c,displaySettings:p,open:u};if(s&&s.canCreate(t.ElementType.modal,f,{}))return s.create(t.ElementType.modal,f);var h={position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(128,128,128,0.5)",display:u?"initial":"none"},m={position:"fixed",top:"50vh",left:"50vw",transform:"translate(-50%,-50%)",height:"75%",width:"50%",backgroundColor:"white",padding:"50px",overflow:"scroll"};return f.groupClassName=f.groupClassName.filter(function(e){return!ri.startsWith(e,eu.pidlReact)}),e3.createElement("div",{key:"".concat(r,"-modal"),id:"".concat(r,"-modal"),style:h,className:e8.default(f.groupClassName)},e3.createElement("dialog",{key:"".concat(r,"-modal-content"),id:"".concat(r,"-modal-content"),tabIndex:-1,open:!0,style:m},e3.createElement(ir.Provider,{value:"inline"===n},o)))})},n}(e3.Component),iF=oG(iM,["elementId","layoutOrientation","tags"]);iF.displayName="Modal";var iO=o2(function(e){function n(t){var n=e.call(this,t)||this;if(t.eventHub){var r=t.elementId,o=t.possibleOptions,a=t.displayId,s=t.maxLength,l=(0,oc.getDivId)(r);t.eventHub.propertyCreating(l,{displayId:a,possibleOptions:o,maxLength:s},{})}return n}return of(n,e),n.prototype.render=function(){for(var e,n=this,r=this.props,o=r.elementId,a=r.possibleOptions,s=r.accessibilityName,l=r.displayName,c=r.showDisplayName,u=r.propertyName,d=r.hidden,p=r.isPrefill,f=r.onSelect,h=r.disabled,m=r.required,g=r.displaySelectionText,v=r.onFocus,y=(r.onBlur,r.optionsElements),b=r.isSelectFirstItem,x=r.displayId,C=r.element,k=r.eventHub,w=r.styleHints,S=r.containerLayoutOrientation,_=r.setOpenDropdownId,E=r.openDropdownId,P=r.alwaysUpdateModelValue,I=r.tags,T=tv,D=oc,A=D.getDivId,R=D.generateClassName,N=oc.getId,B=N(T.htmlElementIdPrefixes.error,o),M=N(T.htmlElementIdPrefixes.input,o),F="input_".concat(o,"dummyLabel"),O=A(o),L=C.propertyElementRef,H="".concat(F," ").concat(B),z=[],V=0,U=Object.keys(a||{});V<U.length;V++){var j=U[V];if(a[j]){e=(p||b)&&!e?j:e;var W=a[j],q=W.displayText,G=W.isDisabled,K=W.displayImageUrl,X=W.styleHints;z.push({key:j,text:q,disabled:G,data:{imageUrl:K},styleHints:X})}}d||Object.keys(a).length;var Y=function(e){k.propertySelected(M,u,O),v&&v(e)},Q=function(e){var t=n.props,r=t.onBlur,o=t.element,a=t.eventHandler;a.propertyUnselectedHandler({id:J,propertyName:u,divId:O}),r&&r(e),o.onfocusout&&a.invokePidlAction(o.onfocusout)},J=A(o),Z=R(null,T.htmlElementTypes.div,u,T.modelElementType.dropdown),ee=function(e,t,r,o){return(null==e?void 0:e.isReactNative)&&e.isReactNative()?e3.createElement(e3.Fragment,null):e3.createElement("label",{id:F,"aria-label":r,style:{display:o?"none":void 0},"aria-hidden":o},t,e3.createElement("span",{className:"".concat(J,"-asterisk")},n.props.required?"*":""))},et=function(e,t,n,r){return(null==e?void 0:e.isReactNative)&&e.isReactNative()?e3.createElement(e3.Fragment,null,r):e3.createElement("div",{id:t,className:n},r)};return e3.createElement(ia.Consumer,null,function(r){var o=r.elementFactory,a=r.theme;return et(o,J,Z,e3.createElement(io.Consumer,null,function(r){var v={},b=v?v.style:void 0,C={disabled:h,inlineError:r.errors[u]?r.errors[u].message:void 0,isInValidationErrorGroup:!!r.errors[u],onBlur:Q,onFocus:Y,optionsElements:y,required:m,showDisplayName:c,displayName:l,displayId:x,id:M,ariaLabelId:H,dropdownOptions:z,hidden:d||0===z.length,onChange:f,placeholder:p?void 0:g,value:r.values[u]&&r.values[u].toString()||e,style:b,propertyElementRef:L,theme:a,tags:I,styleHints:w,containerLayoutOrientation:S,setOpenDropdownId:_,openDropdownId:E,alwaysUpdateModelValue:P},k=o&&o.canCreate(t.ElementType.dropdown,C,{inlineError:!0,label:c}),T=null;T=k?o.create(t.ElementType.dropdown,C):n.renderDropdownElement(C);var D=!c||k&&k.label;return e3.createElement(e3.Fragment,null,ee(o,l,r.accessibilityText[u]||s,D),T,k&&k.inlineError?null:e3.createElement(im,{propertyName:u}))}))})},n.prototype.renderDropdownElement=function(e){var t=this,n=e.id,r=e.dropdownOptions,o=e.onChange,a=e.value,s=e.additionalClassName,l=e.hidden,c=e.disabled,u=e.required,d=e.placeholder,p=e.ariaLabelId,f=e.inlineError,h=e.onFocus,m=e.onBlur,g=e.isInValidationErrorGroup,v=d?e3.createElement("option",{value:""},d):null,y=f||g&&!c,b=[];r.forEach(function(e){var t=e.key,n=e.text,r=e.disabled;b.push(e3.createElement("option",{value:t,key:t,disabled:r},n))});var x=function(e){var n=t.props,r=n.onBlur,o=n.element,a=n.eventHandler;r&&r(e),o.onfocusout&&a.invokePidlAction(o.onfocusout)};return e3.createElement("select",{id:n,className:y?e8.default(s,"pidlddc-errorstroke"):s,hidden:l,disabled:c,required:u,"aria-labelledby":p,onFocus:function(e){h&&e&&e.currentTarget&&h(e.currentTarget.value)},onBlur:function(e){m&&e&&e.currentTarget&&x(e.currentTarget.value)},onChange:function(e){o&&e&&e.target&&o(e.target.value)},value:a},v,b)},n}(e3.Component),["elementId","propertyName","possibleOptions","required","hidden","disabled","displayName","showDisplayName","displaySelectionText","accessibilityName","tags","isSelectFirstItem","displayId","styleHints","containerLayoutOrientation","alwaysUpdateModelValue"]);iO.displayName="Dropdown";var iL=function(e){var n=e.elementId,r=e.isInline;return e3.createElement(ia.Consumer,null,function(e){return e3.createElement(ii.Consumer,null,function(o){var a=e.elementFactory;e.displayOptions,e.displaySettings;var s=o[n]?o[n].message:"",l={errorMessage:s};if(a&&a.canCreate(t.ElementType.error,l,{}))return a.create(t.ElementType.error,l);var c={className:e8.default("pidlddc-group-error",{"d-none":!s},"text-danger"),id:"pidlddc-error-".concat(n),tabIndex:-1,role:"alert"};return r?e3.createElement("span",oh({},c,{"aria-hidden":!s}),s):e3.createElement("div",oh({},c,{"aria-hidden":!s}),s)})})};iL.displayName="GroupError";var iH=oG(function(e){var n=e.layoutOrientation,r=e.elementId,o=e.childNodes,a=e.tags,s=e.labelNode,l=e.element,c=l.displayId,u=l.type,d=l.isSubmitGroup,p=l.isHidden,f=e.styleHints,h=e.accessibilityName,m=e.gridColumn,g=e.gridRow,v=e.containerLayoutOrientation;return e3.createElement(ia.Consumer,null,function(e){var l=e.elementFactory,y=e.displaySettings,b=oc.getDivId;return e3.createElement(ir.Consumer,null,function(e){if(p||d&&(null==(x=null==y?void 0:y.submitButtonBlock)?void 0:x.show)===!1)return null;var x,C=b(r),k=e3.createElement(iL,{elementId:r,isInline:e}),w={childNodes:o,errorNode:k,labelNode:s,layoutOrientation:n,elementId:C,groupClassName:ic(a),displayId:c,type:u,displaySettings:y,styleHints:f,isSubmitGroup:d,ariaLabel:h,gridColumn:m,gridRow:g,containerLayoutOrientation:v};return l&&l.canCreate(t.ElementType.group,w,{})?l.create(t.ElementType.group,w):(w.groupClassName=w.groupClassName.filter(function(e){return!ri.startsWith(e,eu.pidlReact)}),e3.createElement("div",{id:w.elementId,className:e8.default(w.groupClassName)},s,e3.createElement(ir.Provider,{value:"inline"===n},o),k))})})},["elementId","layoutOrientation","tags","accessibilityName","styleHints","containerLayoutOrientation"]);iH.displayName="Group";var iz=oX(function(e){var n=e.layoutOrientation,r=e.elementId,o=e.children,a=e.tags,s=e.ariaLabelledBy,l=e.styleHints,c=e.containerLayoutOrientation,u="inline"===n,d=(0,oc.getId)(tv.htmlElementIdPrefixes.div,r),p=function(e,n){var p={children:o,additionalClassName:e8.default(ic(a)),elementId:r,ariaLabelledBy:s,styleHints:l,containerLayoutOrientation:c};return e&&e.canCreate(t.ElementType.textgroup,p,{})?e.create(t.ElementType.textgroup,p):(null==e?void 0:e.isReactNative)&&e.isReactNative()?e3.createElement(e3.Fragment,null,n):e3.createElement("div",{id:d,className:e8.default({"d-inline-block":u},ic(a))},n)};return e3.createElement(ia.Consumer,null,function(e){return p(e.elementFactory,e3.createElement(e3.Fragment,null,o,e3.createElement(iL,{elementId:r,isInline:!0})))})},["elementId","layoutOrientation","tags","styleHints","containerLayoutOrientation"]);iz.displayName="TextGroup";var iV=function(e){function n(t){var n=e.call(this,t)||this;if(t.eventHub){var r=t.elementId,o=(0,oc.getDivId)(r);t.eventHub.captchaRendered(o)}return n}return of(n,e),n.prototype.render=function(){var e=this.props,n=e.elementId,r=e.audioChildNodes,o=e.imageChildNodes,a=e.tags,s=e.element,l=e.required,c=s.displayId,u=s.type,d=s.id,p=s.displayName,f=s.showDisplayName,h=s.accessibilityName;return e3.createElement(ia.Consumer,null,function(e){return e3.createElement(io.Consumer,null,function(s){var m=e.elementFactory,g=oc.getDivId,v="image"==s.values[d],y={audioChildNodes:r,imageChildNodes:o,elementId:g(n),captchaClassName:ic(a),displayId:c,type:u,showImageCaptcha:v,displayName:p,showDisplayName:f,required:l};if(m&&m.canCreate(t.ElementType.captcha,y,{}))return m.create(t.ElementType.captcha,y);var b=e3.createElement("label",{className:e8.default("pidlddc-label",f?"d-block":"d-none"),id:n,"aria-label":h},p);return y.captchaClassName=y.captchaClassName.filter(function(e){return!ri.startsWith(e,eu.pidlReact)}),e3.createElement("div",{id:y.elementId,className:e8.default(y.captchaClassName)},b,v&&o,!v&&r)})})},n}(e3.Component),iU=oK(iV,["elementId","tags","required"]);iU.displayName="Captcha";var ij=function(e){var n=e.className,r=e.element,o=e.elementId,a=e.accessibilityName,s=e.tags,l=e.audioUrl,c=(0,oc.getId)(tv.htmlElementIdPrefixes.audio,o),u=e8.default(n,ic(s)),d=r.propertyElementRef;return e6.default.createElement(ia.Consumer,null,function(e){var n=e.elementFactory,r={id:c,additionalClassName:u,ariaLabel:a,propertyElementRef:d,theme:e.theme,audioUrl:l};return n&&n.canCreate(t.ElementType.audio,r,{})?n.create(t.ElementType.audio,r):e6.default.createElement("div",{id:c,className:u},e6.default.createElement("audio",{"aria-label":a,src:l,controls:!0}))})},iW=o7(ij,["elementId","accessibilityName","tags","audioUrl"]);iW.displayName="Audio";var iq=oY(function(e){var n,r=e.elementId,o=e.pidlAction,a=e.displayContent,s=e.accessibilityName,l=e.tags,c=e.onClick,u=e.styleHints,d=e.gridColumn,p=e.gridRow,f=e.containerLayoutOrientation,h="javascript:void(null);",m=(0,oc.getId)(tv.htmlElementIdPrefixes.hyperlink,r),g=e8.default(ic(l)),v=null==(n=id(l))?void 0:n.includes("noUrl"),y=function(){c&&c({pidlAction:o,id:r})},b=function(e){e&&e.preventDefault&&e.preventDefault(),c&&c({pidlAction:o,id:r})};return e3.createElement(ia.Consumer,null,function(e){var n=e.elementFactory,r=(e.displayOptions,e.displaySettings,e.theme),l={id:m,displayContent:a,additionalClassName:g,href:o&&o.context&&!v?o.context:h,ariaLabel:s,onClick:y,theme:r,styleHints:u,gridColumn:d,gridRow:p,containerLayoutOrientation:f};return n&&n.canCreate(t.ElementType.hyperlink,l,{})?n.create(t.ElementType.hyperlink,l):e3.createElement("a",{id:m,href:o&&o.context&&ri.isString(o.context)?o.context:h,"aria-label":s,className:g,onClick:b},a)})},["elementId","pidlAction","displayContent","accessibilityName","tags","styleHints","containerLayoutOrientation"]);iq.displayName="Hyperlink";var iG=o$(function(e){var n=e.accessibilityName,r=e.element,o=e.elementId,a=e.sourceUrl,s=e.codepoint,l=e.tags,c=e.styleHints,u=e.gridColumn,d=e.gridRow,p=e.containerLayoutOrientation,f=oc.getId,h=tv;return e3.createElement(ia.Consumer,null,function(e){var m,g=e.elementFactory,v={additionalClassName:e8.default(ic(l)),ariaLabel:n||(null==(m=null==r?void 0:r.displayDescription)?void 0:m.accessibilityName),elementId:f(h.htmlElementIdPrefixes.image,o),sourceUrl:a,codepoint:s,styleHints:c,gridColumn:u,gridRow:d,containerLayoutOrientation:p};return g&&g.canCreate(t.ElementType.image,v,{})?g.create(t.ElementType.image,v):e3.createElement("img",{id:v.elementId,src:a,alt:n,"aria-label":n,className:v.additionalClassName})})},["elementId","accessibilityName","sourceUrl","codepoint","tags","styleHints","containerLayoutOrientation"]);iG.displayName="Image";var iK=ie(function(e){var n=e.displayId,r=e.sourceUrl,o=e.tags,a=e.styleHints,s=e.gridColumn,l=e.gridRow,c=e.containerLayoutOrientation,u=o&&o.accessibilityName?o.accessibilityName:void 0,d=oc.getId,p=tv;return e3.createElement(ia.Consumer,null,function(e){var f=e.elementFactory,h={additionalClassName:e8.default(ic(o)),ariaLabel:u,elementId:d(p.htmlElementIdPrefixes.image,n),sourceUrl:r,styleHints:a,gridColumn:s,gridRow:l,containerLayoutOrientation:c};return f&&f.canCreate(t.ElementType.logo,h,{})?f.create(t.ElementType.logo,h):e3.createElement("img",{className:e8.default("pidlddc-logo-image","pidlddc-logoBlock",h.additionalClassName),id:h.elementId,src:r,alt:u,"aria-label":u,style:{width:"48px",height:"48px"}})})},["displayId","sourceUrl","tags","styleHints","containerLayoutOrientation"]);iK.displayName="LogoElement";var iX=function(e){function t(t){var n=e.call(this,t)||this;return n.onEvent=function(e){var t=n.props,r=t.sourceUrl,o=(t.expectedClientActionId,t.onChallengeIFrameMessage),a=t.onChallengeIFrameBusyTimerEnded,s=n.state.messageTimer;r&&e.origin&&0!==r.indexOf(e.origin)||(s&&(a(s),clearTimeout(s),n.setState({messageTimer:null})),o(e))},n.iframe=e3.createRef(),n.state={executing:!0,width:t.element.width,height:t.element.height},n}return of(t,e),t.prototype.updateHeight=function(e){this.setState({height:e})},t.prototype.componentDidMount=function(){var e=this.props,t=e.displayContent,n=e.sourceUrl,r=e.onChallengeIFrameMessageTimeout,o=e.messageTimeout,s=e.messageTimeoutClientAction,l=e.onChallengeIFrameBusyTimerStarted,c=e.onChallengeIFrameBusyTimerEnded,u=this.iframe.current,d=this.state.messageTimer;if(window.addEventListener(a.message,this.onEvent),!n&&t&&u){var p=u.contentDocument;p&&(p.open(),p.write(t),p.close())}if(!d&&o&&s){var f=window.setTimeout(function(){r(s),c(f)},o);l(f),this.setState({messageTimer:f})}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.displayContent,a=r.sourceUrl,s=this.iframe.current;if(!a&&o&&e&&e.displayContent!==o&&s){var l=s.contentDocument;l&&(l.open(),l.write(o),l.close())}},t.prototype.componentWillUnmount=function(){window.removeEventListener(a.message,this.onEvent)},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,o=e.tags,a=e.sourceUrl;e.containerLayoutOrientation;var s=this.state,l=s.width,c=s.height,u={width:l,height:c},d=(0,oc.getId)(tv.htmlElementIdPrefixes.iframe,t),p=(l||c)&&0===Number((l+c).replace(/\D/g,""))?0:void 0;return this.state.executing?e3.createElement("iframe",{key:d,className:e8.default(ic(o)),id:d,src:a,hidden:r,"aria-label":n,ref:this.iframe,style:u,frameBorder:p}):null},t}(e3.Component),iY=oJ(function(e){var n=function(e,t){var n,r;if("xboxCoBrandedCardIframe"!==e)return{authorization:t};try{return{xuh:null==(n=t.split("=")[1])?void 0:n.split(";")[0],xt:null==(r=t.split("=")[1])?void 0:r.split(";")[1]}}catch(e){return{authorization:t}}};return e3.createElement(ia.Consumer,null,function(r){var o=r.elementFactory,a=r.userContext,s=r.displayOptions,l=e.displayId,c=e.useAuth,u=e.containerLayoutOrientation,d={};c&&(null==a?void 0:a.authToken)!=null&&(d=n(l,a.authToken));var p=oh(oh({},e),{headers:d,useWebView2:s.useWebView2||!1,containerLayoutOrientation:u});return o&&o.canCreate(t.ElementType.challengeIframe,p,{})?o.create(t.ElementType.challengeIframe,p):e3.createElement(iX,oh({},p,{ref:p.challengeIFrameElementRef}))})},["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","expectedClientActionId","messageTimeout","messageTimeoutClientAction","useAuth","loadingMessage","containerLayoutOrientation"]),i$=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultMessageTimeout=3e3,n.resetTimer=function(e){var t=n.props.messageTimeout;n.state.messageTimer&&clearTimeout(n.state.messageTimer),n.setState({messageTimer:setTimeout(e,t||n.defaultMessageTimeout)})},n.clearTimer=function(){n.state.messageTimer&&(clearTimeout(n.state.messageTimer),n.setState({messageTimer:void 0}))},n.onEvent=function(e){var t,r,o=n.props,a=o.sourceUrl,s=o.frameName,l=o.onIFrameMessage,c=o.isIFrameEligible,u=o.onIFrameBusyTimerEnded,d=n.state.messageTimer;if((null==(t=e.data)?void 0:t.source)===s&&(!a||!e.origin||0===a.indexOf(e.origin))){if((null==(r=e.data)?void 0:r.messageType)===eT.isEligible&&void 0!==d){var p=e.data.isEligible||!1,f=e.data.pmType;n.clearTimer(),c(f||s,p),u(0),n.setState({isEligible:p});return}l(e)}},n.onExpressCheckoutLoad=function(){var e=n.props;(0,e.onIFrameLoadHandler)(e.frameName,e.payload,new URL(e.sourceUrl).origin)},n.expressCheckoutButtonIFrameRef=e3.createRef(),n.state={isEligible:!1,width:t.element.width,height:t.element.height},n}return of(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.frameName,n=e.isIFrameEligible,r=e.onIFrameBusyTimerStarted;window.addEventListener(a.message,this.onEvent),r(0),this.resetTimer(function(){return n(t,!1)})},t.prototype.componentWillUnmount=function(){window.removeEventListener(a.message,this.onEvent),this.clearTimer()},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,o=e.tags,a=e.sourceUrl,s=e.frameName,l=this.state,c=l.isEligible,u=l.width,d=l.height,p=(0,oc.getId)(tv.htmlElementIdPrefixes.iframe,t),f=new URL(a).origin,h=(u||d)&&0===Number((u+d).replace(/\D/g,""))?0:void 0,m={width:u,height:d};return c?m.display="inline":m.display="none",e3.createElement("iframe",{key:p,className:e8.default(ic(o)),id:p,src:a,name:s,hidden:r,"aria-label":n,ref:this.expressCheckoutButtonIFrameRef,style:m,onLoad:this.onExpressCheckoutLoad,frameBorder:h,allow:"payment ".concat(f)})},t}(e3.Component),iQ=function(e){return e3.createElement(ia.Consumer,null,function(t){var n=t.displayOptions,r={},o=oh(oh({},e),{headers:r,useWebView2:n.useWebView2||!1});return e3.createElement(i$,oh({},o,{ref:o.expressCheckoutButtonElementRef}))})},iJ=oZ(iQ,["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","frameName","payload","messageTimeout"]),iZ=function(e){var t=e.children;return e3.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-error-block",id:"pidlddc-div-pageerrorblock","aria-live":"polite"},t)},i0=function(e){var t=e.children;return e3.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-pagecontent-block",id:"pidlddc-div-pagebodycontents"},t)},i1=o6(function(e){function n(t){return e.call(this,t)||this}return of(n,e),n.prototype.render=function(){var e=this.props,n=e.element,r=e.elementId,o=e.possibleOptions,a=e.accessibilityName,s=e.displayName,l=e.showDisplayName,c=e.propertyName,u=e.disabled,d=e.required,p=e.hidden,f=e.onSelect,h=e.tags,m=e.optionsElements,g=e.styleHints,v=[];for(var y in o)o.hasOwnProperty(y)&&v.push({key:y,value:o[y].key||y,isDisabled:o[y].isDisabled,displayText:o[y].displayText,displayImageUrl:o[y].displayImageUrl});return e3.createElement(ia.Consumer,null,function(e){return e3.createElement(ir.Consumer,null,function(o){return e3.createElement(io.Consumer,null,function(y){var b,x=e.elementFactory,C=(e.displayOptions,e.displaySettings,e.theme),k=oc.getId,w=tv,S=k(w.htmlElementIdPrefixes.div,r),_={elementId:r,isInline:o,hidden:p,options:v,optionsElements:m,ariaLabel:y.accessibilityText[c]||a,showDisplayName:l,displayName:s||n.displayName,additionalClassName:e8.default(ic(h)),onSelect:f,disabled:u,propertyName:c,required:d,invalid:!1,selectedValue:y.values[c]&&y.values[c].toString(),propertyElementRef:n.propertyElementRef,theme:C,styleHints:g},E=x&&x.canCreate(t.ElementType.radio,_,{});return E?(null==(b=null==x?void 0:x.isReactNative)?void 0:b.call(x))?x.create(t.ElementType.radio,_):e3.createElement("div",{id:S,className:e8.default(S,k(w.htmlElementIdPrefixes.div,n.displayId))},x.create(t.ElementType.radio,_),E&&E.inlineError?null:e3.createElement(im,{propertyName:c})):e3.createElement("div",{className:e8.default("pidlddc-input-".concat(r))},v.map(function(e){var t="input_".concat(r,"_").concat(e.value),n="".concat(t,"_displayTextLabel");return e3.createElement("div",{key:t},e3.createElement("label",{id:"".concat(t,"_displayNameLabel"),"aria-label":_.ariaLabel,className:e8.default({"pidlddc-hidden":!l}),"aria-hidden":!l},s),e3.createElement("div",{className:e8.default(ic(h))},e3.createElement("label",{id:n,htmlFor:t,"aria-label":e.displayText,onClick:function(){return e.isDisabled||u?null:f(e.value)}},e3.createElement("input",{id:t,type:"radio",name:"radio-input-".concat(c),disabled:e.isDisabled||u,required:d,"aria-labelledby":n,value:e.value,onChange:function(){return f(e.value)},checked:_.selectedValue===e.value}),m&&m[e.value]?m[e.value]:e.displayText)))}),e3.createElement(im,{propertyName:c}))})})})},n}(e3.Component),["elementId","propertyName","possibleOptions","required","hidden","disabled","showDisplayName","accessibilityName","tags","styleHints"]);i1.displayName="Radio";var i2=function(e){var n=e.elementId,r=e.displayContent,o=e.tags,a=e.styleHints,s=e.containerLayoutOrientation,l=e8.default(ic(o)),c=(0,oc.getId)(tv.htmlElementIdPrefixes.text,n),u=e.element.isHidden;return e3.createElement(ia.Consumer,null,function(e){var n=e.elementFactory,d={id:c,elementId:c,displayContent:r,additionalClassName:l,theme:(e.displayOptions,e.displaySettings,e.theme),styleHints:a,containerLayoutOrientation:s,elementHtmlAttributes:ih(o)};return u?null:n&&n.canCreate(t.ElementType.heading,d,{})?n.create(t.ElementType.heading,d):e3.createElement("h2",{id:c,className:l},r)})},i5=oY(i2,["elementId","displayContent","tags","styleHints","containerLayoutOrientation"]);i5.displayName="Heading";var i4=function(e){var n=e.elementId,r=e.displayContent,o=e.tags,a=e.styleHints,s=e.containerLayoutOrientation,l=e8.default(ic(o)),c=(0,oc.getId)(tv.htmlElementIdPrefixes.text,n);return e3.createElement(ia.Consumer,null,function(e){var n=e.elementFactory,u={id:c,elementId:c,displayContent:r,additionalClassName:l,theme:(e.displayOptions,e.displaySettings,e.theme),styleHints:a,containerLayoutOrientation:s,elementHtmlAttributes:ih(o)};return n&&n.canCreate(t.ElementType.subheading,u,{})?n.create(t.ElementType.subheading,u):e3.createElement("h3",{id:c,className:l},r)})},i3=oY(i4,["elementId","displayContent","tags","styleHints","containerLayoutOrientation"]);i3.displayName="SubHeading";var i6=function(e){var n=e.elementId,r=e.displayContent,o=e.tags,a=e.styleHints,s=e.gridColumn,l=e.gridRow,c=e.hidden,u=e.containerLayoutOrientation,d=e.accessibilityName,p=(0,oc.getId)(tv.htmlElementIdPrefixes.text,n),f=id(o),h=e8.default(ic(o)),m=c?{display:"none"}:void 0;return e3.createElement(ir.Consumer,null,function(e){return e3.createElement(ia.Consumer,null,function(n){var g=n.elementFactory,v=(n.displayOptions,n.displaySettings,n.theme),y={id:p,displayContent:r,additionalClassName:h,inline:e,theme:v,hidden:c,styleHints:a,gridColumn:s,gridRow:l,containerLayoutOrientation:u,accessibilityName:d,tags:o,elementHtmlAttributes:ih(o)};if(g){if(c&&(null==g?void 0:g.isReactNative)&&g.isReactNative())return;var b={displayContent:r,elementId:p,theme:v};if(f.indexOf("labelText")>=0&&g.canCreate(t.ElementType.label,y,{}))return g.create(t.ElementType.label,b);if(g.canCreate(t.ElementType.text,y,{}))return g.create(t.ElementType.text,y)}return e?e3.createElement("span",{id:p,className:h,style:m},r):e3.createElement("p",{id:p,className:h,style:m},r)})})},i8=oY(i6,["elementId","displayContent","tags","styleHints","hidden","containerLayoutOrientation","accessibilityName"]);i8.displayName="Text";var i9=function(e){function t(n){var r=e.call(this,n)||this;return r.getTransformedLength=function(e,t,n){var r=t.substr(0,n),o=ro.applyDisplayTransformation(e.forModel,r);return(o=ro.applyDisplayTransformation(e.forFormat,o)).length},r.onFocus=function(e){var t=r.props.onFocus;t&&e&&e.currentTarget&&t(e.currentTarget.value)},r.onBlur=function(e){var t=r.props.onBlur;t&&e&&e.currentTarget&&t(e.currentTarget.value)},r.onChange=function(e){var n=r.props,o=n.element,a=n.onChange,s=n.id,l=o.displayTransformations;t.caretPosition={id:s,start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd,direction:"forward"===e.currentTarget.selectionDirection?"forward":"backward"===e.currentTarget.selectionDirection?"backward":"none"};var c=e.currentTarget.value;if(l&&l.forModel&&l.forFormat&&(t.caretPosition.start=r.getTransformedLength(l,c,t.caretPosition.start),t.caretPosition.end=r.getTransformedLength(l,c,t.caretPosition.end)),a){var u=e.currentTarget.value;l&&l.forModel&&(u=ro.applyDisplayTransformation(l.forModel,u)),a(u)}},r.onCompositionStart=function(e){r.inComposition=!0},r.onCompositionEnd=function(e){r.inComposition=!1},r.htmlInput=e3.createRef(),r.inComposition=!1,r}return of(t,e),t.prototype.componentDidUpdate=function(){this.props.id===t.caretPosition.id&&this.htmlInput.current.setSelectionRange(t.caretPosition.start,t.caretPosition.end,t.caretPosition.direction)},t.prototype.render=function(){var e=this.props,t=e.element,n=e.additionalClassName,r=e.id,o=e.maskInput,a=e.maxLength,s=e.required,l=e.hidden,c=e.disabled,u=e.placeholder,d=e.ariaLabelId,p=e.inlineError,f=(e.onFocus,e.onBlur,e.onChange,e.isInValidationErrorGroup);e.styleHints;var h=this.props.value,m=t.displayTransformations,g=p||f&&!c;return!this.inComposition&&m&&m.forFormat&&(h=ro.applyDisplayTransformation(m.forFormat,h)),e3.createElement("input",{type:o?"password":"text",className:g?e8.default(n,"pidlddc-errorstroke"):n,id:r,ref:this.htmlInput,maxLength:a,required:s,hidden:l,disabled:c,value:h,placeholder:u,"aria-labelledby":d,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd})},t.caretPosition={id:null,start:0,end:0,direction:"none"},t}(e3.Component),i7=o4(function(e){function n(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=n.props;(0,t.onUpdateValue)(t.propertyName,e,Z.editing)},n.onBlur=function(e){var t=n.props;(0,t.onUpdateValue)(t.propertyName,e,Z.finished)},n.onSelected=function(e,t,r){n.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:r})},n.onUnselected=function(e,t,r){n.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:r})},n.onFocusInternal=function(e){var t=n.props,r=t.elementId,o=t.propertyName,a=t.displayOptions,s=t.onFocus,l=oc,c=l.getDivId,u=l.getId,d=c(r),p=u(a.inputPropertyIdPrefix,o);n.onSelected&&n.onSelected(p,o,d),s&&s(e)},n.onBlurInternal=function(e){var t=n.props,r=t.elementId,o=t.propertyName,a=t.displayOptions,s=t.element,l=t.eventHandler,c=oc,u=c.getDivId,d=c.getId,p=u(r),f=d(a.inputPropertyIdPrefix,o);n.onUnselected&&n.onUnselected(f,o,p),n.onBlur&&n.onBlur(e),s.onfocusout&&l.invokePidlAction(s.onfocusout)},n}return of(n,e),n.prototype.render=function(){var e=this;return e3.createElement(ia.Consumer,null,function(n){return e3.createElement(io.Consumer,null,function(r){var o=n.elementFactory,a=n.displayOptions,s=n.theme,l=e.props,c=l.elementId,u=l.element,d=l.required,p=l.disabled,f=l.hidden,h=l.propertyName,m=l.maxLength,g=l.displayHelpName,v=l.displayImage,y=l.tags,b=void 0===y?{}:y,x=l.placeHolderText,C=l.showKeyLogo,k=l.resolvedLogo,w=l.displayHelpChildren,S=(l.onFocus,l.displayId),_=l.accessibilityName,E=l.accessibilityHint,P=l.styleHints,I=l.containerLayoutOrientation,T=u.displayName,D=u.showDisplayName,A=u.displayDescription,R=u.propertyElementRef,N=tv,B=oc,M=B.getDivId,F=B.getId,O=B.generateClassName,L=B.concatClassName,H=M(c),z=F(a.inputPropertyIdPrefix,h),V={inlineError:!0},U=r.errors[h]?r.errors[h].message:void 0,j=!!r.errors[h],W=D?e3.createElement(iC,{element:u}):null,q={id:c},G=g||v?e3.createElement(iw,oh({},q,{element:u,children:w,elementFactory:o})):null,K={disabled:p,displayName:T,hidden:f,inlineError:U,isInValidationErrorGroup:j,maskInput:A&&A.maskInput,maxLength:m,onBlur:e.onBlurInternal,onChange:e.onChange,onFocus:e.onFocusInternal,required:d,showDisplayName:D,inlineHelpLink:G,additionalClassName:e8.default(ic(b)),ariaLabelId:"pidlddc-label-".concat(h," pidlddc-error-").concat(h),id:z,inlineLogo:C&&k,placeholder:x,value:r.values[h]&&r.values[h].toString()||"",propertyName:h,displayId:S,propertyElementRef:R,ariaLabel:_,accessibilityHint:E,theme:s,styleHints:P,containerLayoutOrientation:I,tags:b};V=o&&o.canCreate(t.ElementType.textBox,K,V);var X=null;V?(X=o.create(t.ElementType.textBox,K),V.label&&(W=null),V.inlineHelpLink&&(G=null)):X=e3.createElement(i9,oh({},K,{element:u}));var Y=O(null,N.htmlElementTypes.div,h,N.modelElementType.textBox);return S&&(Y=L(Y,M(S))),function(e){return(null==o?void 0:o.isReactNative)&&o.isReactNative()?e3.createElement(e3.Fragment,null,e):e3.createElement("div",{id:H,className:Y},e)}(e3.createElement(e3.Fragment,null,W&&G&&u.displayHelpPosition!==e_.floatRight?e3.createElement("span",null,W," ",G):W,G&&u.displayHelpPosition===e_.floatRight?e3.createElement("span",null,X," ",G):X,W&&G?null:G,V&&V.inlineError?null:e3.createElement(im,{propertyName:h})))})})},n}(e3.Component),["elementId","tags","propertyName","displayHelpName","maxLength","required","hidden","disabled","showKeyLogo","resolvedLogo","placeHolderText","displayImage","displayId","accessibilityName","accessibilityHint","styleHints","containerLayoutOrientation","tags"]);i7.displayName="TextBox";var ae=o1(function(e){function n(t){var n=e.call(this,t)||this;return n.pidlInstanceRef=e3.createRef(),t.pidlInstanceRefs[t.pidlInstance]=n.pidlInstanceRef,n}return of(n,e),n.prototype.render=function(){var e=this,n=this.props,r=n.elementId,o=n.tags,a=n.pidlInstance,s=n.disabled,l=n.hidden;if(s)return null;var c=(0,oc.getId)(tv.htmlElementIdPrefixes.pidlInstance,r),u=e8.default(ic(o));return e3.createElement(ia.Consumer,null,function(n){var r=n.elementFactory,o=n.pidlInstanceContexts,d=n.userContext,p=n.displayOptions,f=n.env,h=n.returnOptions,m=null;o&&o[a]&&(m=o[a]);var g=a,v={id:c,additionalClassName:u,pidlInstance:a,disabled:s,pidlInstanceKey:g};return r&&r.canCreate(t.ElementType.pidlInstance,v,{})?r.create(t.ElementType.pidlInstance,v):m?function(){if(l)return e3.createElement(e3.Fragment,null);switch(m.action){case"addResource":return e3.createElement(aR,{key:a,userContext:d,pidlDocInfo:m.pidlDocInfo,displayOptions:p,env:f,returnOptions:h,pidlInstanceKey:g,ref:e.pidlInstanceRef,elementFactory:r});case"selectResource":return e3.createElement(a9,{key:a,userContext:d,pidlDocInfo:m.pidlDocInfo,displayOptions:p,env:f,pidlInstanceKey:g,returnOptions:h,ref:e.pidlInstanceRef,elementFactory:r})}}():null})},n}(e3.Component),["elementId","tags","pidlInstance","disabled","hidden"]);ae.displayName="PidlInstance";var at=function(){function e(e){this.group=e}return e.prototype.addChild=function(e){return this.group.members||(this.group.members=[]),this.group.members.push(e),this},e.prototype.addHeading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:eW.heading})},e.prototype.addSubheading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:eW.subheading})},e.prototype.addText=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:eW.text})},e.prototype.addGroup=function(t,n,r){void 0===r&&(r=!1),this.group.members||(this.group.members=[]);var o={displayId:t,isSubmitGroup:r,displayType:eW.group,layoutOrientation:eq.vertical,displayName:n||"",members:[]};return this.group.members.push(o),new e(o)},e.prototype.addInlineGroup=function(t,n,r){void 0===r&&(r=!1),this.group.members||(this.group.members=[]);var o={displayId:t,isSubmitGroup:r,displayType:eW.group,layoutOrientation:eq.inline,displayName:n||"",members:[]};return this.group.members.push(o),new e(o)},e.prototype.addExpression=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:eW.expression})},e.prototype.addTextGroup=function(t,n){this.group.members||(this.group.members=[]);var r={displayId:t,isSubmitGroup:!1,displayType:eW.textGroup,layoutOrientation:eq.inline,displayName:n||"",members:[]};return this.group.members.push(r),new e(r)},e.prototype.addSubmitGroup=function(e,t){return this.addInlineGroup(e,t,!0)},e.prototype.addButton=function(e,t,n,r){return void 0===r&&(r={}),this.addChild(oh({displayId:e,pidlAction:n,displayContent:t,displayType:"button",tags:{accessibilityName:t}},r))},e.prototype.addSubmitButton=function(e,t,n){return n=oh({type:"submit",isDefault:!0},n),this.addButton(e,t,n,{isHighlighted:!0})},e.prototype.addCancelButton=function(e,t,n){return n=oh({type:"gohome"},n),this.addButton(e,t,n,{isBack:!0})},e}(),an=function(){return function(e){var t=this;this.addDataDescription=function(e,n){return t.dataDescription[e]=n,t},this.addPage=function(e,n){var r={displayId:e,displayName:n,members:[],displayType:eW.page};return t.pages.push(r),new at(r)},this.build=function(){return{identity:t.identity,data_description:t.dataDescription,displayDescription:t.pages}},this.identity=e,this.dataDescription={},this.pages=[]}}(),ar=function(){return function(e){var t=this;this.required=function(e,n){return t.validations.push({error_code:e,error_message:n,validationType:eH.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{1,128}$"}),t},this.hasLetters=function(e,n,r){var o="number"==typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:eH.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{".concat(o,"}$")}),t},this.alphanumeric=function(e,n,r){var o="number"==typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:eH.regex,regex:"^[A-Za-z0-9]{".concat(o,"}$")}),t},this.numeric=function(e,n,r){var o="number"==typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:eH.regex,regex:"^\\d{".concat(o,"}$")}),t},this.exactly=function(e,n,r){return r=Array.isArray(r)?r.join("|"):r,t.validations.push({error_code:e,error_message:n,validationType:eH.regex,regex:"^".concat(r,"$")}),t},this.validations=e}}(),ao=function(){return function(e,t){var n=this;this.validations=[],this.possibleValues=null,this.possibleOptions=null,this.dataCollectionSource=null,this.defaultValue=null,this.isDisabled=null,this.setDataCollectionSource=function(e,t,r){return n.dataCollectionSource=e,n.possibleOptions={},n.possibleOptions[t]={displayText:r,isDisabled:!1},n},this.validate=function(){return new ar(n.validations)},this.setPossibleValues=function(e){n.possibleOptions={};for(var t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];n.possibleOptions[o]={displayText:e[o],isDisabled:!1}}return n.possibleValues=e,n},this.setDisabled=function(){return n.isDisabled=!0,n},this.setDefaultValue=function(e){return n.defaultValue=e,n},this.buildData=function(){var e={validations:n.validations};return n.validations.length>0&&(e.validation=n.validations[0]),n.dataCollectionSource&&(e.possible_values={}),n.defaultValue&&(e.default_value=n.defaultValue),oh(oh({},n.base),e)},this.buildDisplay=function(e){var t=n.propertyName,r={};n.dataCollectionSource?(r.dataCollectionSource=n.dataCollectionSource,r.possibleOptions=n.possibleOptions):n.possibleValues&&(r.possibleValues={},r.possibleOptions={},Object.keys(n.possibleValues).forEach(function(e){var t=n.possibleValues&&n.possibleValues[e];t&&(r.possibleValues[e]=t,r.possibleOptions[e]={displayText:t,isDisabled:!1})}),r.displaySelectionText="--- ".concat(t," ---"));var o=n.validations[0],a=o?{defaultErrorMessage:o.error_message,fromErrorCode:[{errorCode:o.error_code,errorMessage:o.error_message}]}:{},s=!!n.isDisabled;return oh(oh({displayName:t,showDisplayName:"true",displayId:"display_".concat(t),displayType:"property",propertyName:t,tags:{accessibilityName:t},displayErrorMessages:a,isDisabled:s},r),e)},this.propertyName=e,this.base=t||{propertyType:"userData",type:"string",dataType:"string",is_updatable:!0}}}(),ai=function(e){var t=e.displayId,n=e.required,r=e.disabled,o=e.hidden,a=e.elementId,s=e.propertyName,l=e.displayName,c=e.accessibilityName,u=e.onChange,d=e.tags,p=e.element,f=(0,e.getMultiPropertySelectorPossibleOptions)(p.pidlIdentity),h=o||!f;return e3.createElement(iR,{element:p,elementId:a,required:n,hidden:h,disabled:r,propertyName:s,displayName:l,accessibilityName:c,onChange:function(e){return u(e)},displayId:t,useDisplayIdAsKeyForCheckState:!0,tags:d})},aa=o3(ai,["elementId","propertyName","accessibilityName","displayName","displayId","required","hidden","disabled","tags"]);aa.displayName="PrefillCheckBox";var as=oY(function(e){var n=e.elementId,r=e.tags,o=(0,oc.getId)(tv.htmlElementIdPrefixes.separator,n),a=e8.default(ic(r));return e3.createElement(ia.Consumer,null,function(e){var n=e.elementFactory,r={id:o,additionalClassName:a};return n&&n.canCreate(t.ElementType.separator,r,{})?n.create(t.ElementType.separator,r):e3.createElement("hr",{id:o,className:a})})},["elementId","tags"]);as.displayName="Separator";var al=oY(function(e){var n=e.elementId,r=e.tags,o=e.containerLayoutOrientation,a=(0,oc.getId)(tv.htmlElementIdPrefixes.spinner,n),s=e8.default(ic(r));return e3.createElement(ia.Consumer,null,function(e){var r=e.elementFactory,l={elementId:n,additionalClassName:s,containerLayoutOrientation:o};return r&&r.canCreate(t.ElementType.spinner,l,{})?r.create(t.ElementType.spinner,l):e3.createElement("hr",{id:a,className:s})})},["elementId","tags","containerLayoutOrientation"]);al.displayName="Spinner";var ac=o0(function(e){function n(t){var n,r,o=this;(o=e.call(this,t)||this).onLoadEventHandler=function(){var e=o.props,t=e.element;e.eventHandler.resolveSecurePropertyLoadedPromise(t.id)},o.onMessageEvent=function(e){var t,n,r,a,s,l,c=o.props,u=c.sourceUrl,d=c.propertyName,p=c.displayId,f=c.eventHandler,h=oc,m=h.getDivId,g=h.getId,v=tv,y=m(p),b=g(v.htmlElementIdPrefixes.secureProperty,d);if(null==e||!e.origin||(null==u?void 0:u.indexOf(e.origin))===0){if((null==(t=null==e?void 0:e.data)?void 0:t.event)===v.SecureFieldEvent.focused&&(null==(n=null==e?void 0:e.data)?void 0:n.field)===d)return void o.onFocusInternal(b,e.data.field,y);if((null==(r=null==e?void 0:e.data)?void 0:r.event)===v.SecureFieldEvent.blurred&&(null==(a=null==e?void 0:e.data)?void 0:a.field)===d)return void o.onBlurInternal(b,e.data.field,y);(null==(s=null==e?void 0:e.data)?void 0:s.source)===v.SecureFieldConstants.secureFieldMessageSource&&(null==(l=null==e?void 0:e.data)?void 0:l.field)===d&&f.secureFieldMessageHandler(e)}},o.onFocusInternal=function(e,t,n){o.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:n})},o.onBlurInternal=function(e,t,n){o.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:n})},o.computeStyles=function(){var e=oc,t=e.generateClassName,n=e.getPropertyClassName,r=e.concatClassName,a=tv,s=o.props,l=s.propertyName,c=s.tags,u=s.eventHandler,d=t(null,a.htmlElementTypes.textBox,l);d=r(d,n(l)),d=r(d,e8.default(ic(c))),u.computeSecurePropertyStyles(l,o.securePropertyHardCodedStyles)},o.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"width-fill":t=oh(oh({},t),{width:"100%"});break;case"width-half":t=oh(oh({},t),{width:"50%"});break;case"width-quarter":t=oh(oh({},t),{width:"25%"})}return t}},o.iframe=e3.createRef(),o.state={executing:!0,width:null==(n=t.element)?void 0:n.width,height:null==(r=t.element)?void 0:r.height};var a=t.eventHub,s=t.element,l=t.displayId,c=t.frameName,u=t.propertyName,d=t.sourceUrl;return null==a||a.propertyCreating(null==s?void 0:s.id,{displayId:l,frameName:c,propertyName:u,sourceUrl:d},{}),o}return of(n,e),n.prototype.componentDidMount=function(){var e=this.props,t=e.element,n=e.eventHandler;t.propertyElementRef&&t.setFocus(),this.computeStyles(),window.addEventListener(a.message,this.onMessageEvent),n.createSecurePropertyLoadedPromise(t.id),n.createSecurePropertyInitCompletedPromise(t.id)},n.prototype.componentWillUnmount=function(){window.removeEventListener(a.message,this.onMessageEvent)},n.prototype.render=function(){var e=this;return e3.createElement(ia.Consumer,null,function(n){return e3.createElement(io.Consumer,null,function(r){var o,a=n.elementFactory,s={},l=e.props,c=l.displayId,u=l.propertyName,d=l.accessibilityName,p=l.hidden,f=l.tags,h=l.sourceUrl,m=l.frameName,g=l.element,v=l.labelNode,y=l.displayHelpName,b=l.displayImage,x=l.displayHelpChildren,C=l.styleHints,k=e.state,w={width:k.width,height:k.height},S=oc,_=S.getId,E=S.getDivId,P=S.generateClassName,I=S.concatClassName,T=tv,D=_(T.htmlElementIdPrefixes.secureProperty,u),A=E(c),R=P(null,T.htmlElementTypes.div,null,T.modelElementType.secureProperty);u&&(R=I(R,E(u)));var N=P(null,T.htmlElementTypes.secureProperty);f&&(N=I(N,e8.default(ic(f))));var B={id:c},M=y||b?e3.createElement(iw,oh({},B,{element:g,children:x,elementFactory:a})):null;(s=a&&a.canCreate(t.ElementType.secureProperty,null,s))&&(e.securePropertyHardCodedStyles=s.securePropertyHardCodedStyles,(null==(o=s.securePropertyHardCodedStyles)?void 0:o.secureIframeDimensions)&&(w=oh({},s.securePropertyHardCodedStyles.secureIframeDimensions)),s.inlineHelpLink||(M=null)),C&&(w=oh(oh({},w),e.getStylesFromHints(C)));var F=e3.createElement("iframe",{className:N,id:D,src:h,hidden:p,"aria-label":d,ref:e.iframe,style:oh(oh({},w),{verticalAlign:"middle"}),sandbox:"allow-same-origin allow-scripts",name:m,frameBorder:"0",onLoad:e.onLoadEventHandler});return e.state.executing?e3.createElement("div",{id:A,className:R},v&&M&&g.displayHelpPosition===e_.floatRight?e3.createElement("span",null,v," ",M):v,M?e3.createElement("span",null,M," ",F):F,e3.createElement(im,{propertyName:u})):null})})},n}(e3.Component),["displayId","propertyName","displayHelpName","displayImage","accessibilityName","hidden","frameName","tags","sourceUrl","styleHints"]),au=function(e){var n=e.element,r=e.elementId,o=e.hidden,a=e.required,s=e.disabled,l=e.displayId,c=e.displayHelpName,u=e.displayImage,d=e.showDisplayName,p=e.displayName,f=e.accessibilityName,h=e.displayHelpChildren;return d?e3.createElement(ia.Consumer,null,function(e){var m=e.elementFactory,g=(0,oc.getId)(tv.htmlElementIdPrefixes.label,r),v={id:l},y={disabled:s,required:a,elementId:g,displayContent:p,inlineHelpLink:c||u?e3.createElement(iw,oh({},v,{element:n,children:h,elementFactory:m})):null};return(null==m?void 0:m.canCreate(t.ElementType.securePropertyLabel,y,{}))?m.create(t.ElementType.securePropertyLabel,y):e3.createElement("label",{className:e8.default("pidlddc-label",o||!d?"d-none":"d-block"),id:y.elementId,"aria-label":f},p,e3.createElement("span",{className:"".concat(y.elementId,"-asterisk")},a?"*":""))}):null};au.displayName="SecurePropertyLabelInner";var ad=o0(au,["elementId","hidden","displayName","displayId","displayHelpName","displayImage","showDisplayName","accessibilityName","required"]);function ap(e,t,n,r,o,a,s,l){if(!e.canBeRendered())return null;var c,u,d,f,h=e,m=h.getPropertyName&&h.getPropertyName()||"";if(!e.isText()&&e.hidden())return null;var v=function(e,t,n){return n&&(null==e?void 0:e.createLogoWrapper)?e.createLogoWrapper(t):(null==e?void 0:e.isReactNative)&&e.isReactNative()?e3.createElement(e3.Fragment,null,t):e3.createElement("div",{className:"pidlddc-div pidlddc-div-logo pidlddc-logoBlock",id:"pidlddc-div-pagelogoblock0"},t)},y=function(e){return e&&(e.type===k.navigate||e.type===k.redirect)},b={element:e},x=e.displayHelp,C=e.operationType,w=g;switch(e.type){case w.page:return e.children&&e.children.map?e.children.map(af(t,n,r,o,a,s,l)):null;case w.dataCollectionBindingGroup:case w.group:var _=oh(oh({},b),{childNodes:e.children&&e.children.map?e.children.map(af(t,n,r,o,a,s,l)):null,labelNode:e3.createElement(iB,oh({},b))});if(nJ(e)&&e.isModalGroup)return e3.createElement(iF,oh({},_,{ref:e.groupElementRef}));return e3.createElement(iH,oh({},_));case w.captcha:return e3.createElement(is.Consumer,null,function(s){var l=oh({},t),c=oh({},t);l.buttonClickHandler=function(){var t=e.id;l.captchaHyperlinkClickHandler(t,"image",Z.finished)},c.buttonClickHandler=function(){var t=e.id;c.captchaHyperlinkClickHandler(t,"audio",Z.finished)};var u=oh(oh({},b),{audioChildNodes:e.audioChildren&&e.audioChildren.map?e.audioChildren.map(af(l,n,r,o,a)):null,imageChildNodes:e.imageChildren&&e.imageChildren.map?e.imageChildren.map(af(c,n,r,o,a)):null});return e3.createElement(iU,oh({},u,{eventHub:s}))});case w.textGroup:var E=void 0;return e.children&&e.children[0]&&e.children[0].id&&(E=oc.getId(p.text,e.children[0].id)),e3.createElement(iz,oh({},b,{ariaLabelledBy:E}),e3.createElement(ir.Provider,{value:!0},e.children&&e.children.map?e.children.map(af(t,n,r,o,a)):null));case w.heading:return e3.createElement(i5,oh({},b));case w.subheading:return e3.createElement(i3,oh({},b));case w.text:return e3.createElement(i8,oh({},b));case w.hyperlink:var P=function(){var n;return t.buttonClickHandler({id:e.id,pidlAction:e.pidlAction,value:null==(n=e.pidlAction)?void 0:n.context,dest:""})};return e3.createElement(iq,oh({onClick:y(e.pidlAction)?t.hyperlinkClickHandler:e.pidlAction?P:t.buttonClickHandler},b));case w.image:return e3.createElement(iG,oh({},b));case w.logo:var I=e.getAllLogos(),T=oh({},b),D=I&&I.map?I.map(function(e){return e3.createElement(iK,{element:e,containerLayoutOrientation:T.element.containerLayoutOrientation})}):null;return e3.createElement(ia.Consumer,null,function(e){return v(e.elementFactory,D,!0)});case w.dropdown:return e3.createElement(is.Consumer,null,function(c){if(e.displayType===eW.prefillControl){var p=function(t){var n=parseInt(t);isNaN(n)||r(e,n)},f=t.getMultiPropertySelectorPossibleOptions(e.pidlIdentity)||[];return e3.createElement(iO,{element:oh(oh({},e),{getPropertyName:function(){return e.displayId},possibleOptions:f}),isPrefill:!0,onSelect:p,eventHub:c,setOpenDropdownId:s,openDropdownId:l,eventHandler:t})}var h=function(e){n(m,e.toString(),Z.editing),n(m,e.toString(),Z.finished)};if(u=e.possibleOptions){d={};for(var g=0,v=Object.keys(u||{});g<v.length;g++){var y=v[g];if(u[y]){var x=u[y].displayContentContainer;x&&(d||(d={}),d[y]=ap(x,t,n,r,o,a))}}}return e3.createElement(iO,oh({},b,{onSelect:h,optionsElements:d,eventHub:c,setOpenDropdownId:s,openDropdownId:l,eventHandler:t}))});case w.checkBox:if(e.displayType===eW.prefillControl){var A=function(t){r(e,t)};return e3.createElement(aa,oh({},b,{onChange:A,getMultiPropertySelectorPossibleOptions:t.getMultiPropertySelectorPossibleOptions}))}var R=function(e){n(m,e,Z.editing)};return e3.createElement(iR,oh({},b,{onChange:R}));case w.textBox:if(x){var N=ne.createModelElementsFromDisplayDescriptions(x,C);f=N.elements&&N.elements.map?N.elements.map(af(t,n,r,o,a)):void 0}return e3.createElement(ia.Consumer,null,function(e){return e3.createElement(i7,oh({},b,{displayHelpChildren:f,onUpdateValue:n,propertyName:m,eventHandler:t,displayOptions:e.displayOptions}))});case w.button:var B=e.pidlAction,M=e.displayContentModelElement,F=e.displayContent,O=function(){return t.buttonClickHandler({id:e.id,pidlAction:B,value:B.context,dest:""})},L=void 0;return M&&(L=ap(M,t,n,r,o,a)),e3.createElement(iE,oh({},b,{onClick:O,displayContent:null!=L?L:F}));case w.audio:return e3.createElement(iW,oh({},b));case w.radio:var H=function(e){n(m,e,Z.editing)};if(u=e.possibleOptions){d={};for(var z=0,V=Object.keys(u||{});z<V.length;z++){var U=V[z];if(u[U]){var j=u[U].displayContentContainer;j&&j[S.isDisabled]&&(j[S.isDisabled]=u[U].isDisabled),j&&(d||(d={}),d[u[U].key||U]=ap(j,t,n,r,o,a))}}}return e3.createElement(i1,oh({},b,{onSelect:H,optionsElements:d}));case w.expression:return e3.createElement(i8,oh({},b));case w.buttonList:return e3.createElement(iD,oh({},b,{onClick:t.buttonClickHandler,createElement:function(e){return ap(e,t,n,r,o,a)}}));case w.iFrame:var W=e3.createRef(),q=e3.createElement(ib,oh({},b,{key:e.id,onIFrameMessageTimeout:t.iFrameMessageTimeoutHandler,onIFrameMessage:function(e){return t.iFrameMessageHandler(e)},onIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler,iFrameElementRef:W}));return o.push(W),q;case w.challengeIFrame:var G=e3.createRef(),K=e3.createElement(iY,oh({},b,{key:e.id,onChallengeIFrameMessageTimeout:t.iFrameMessageTimeoutHandler,onChallengeIFrameMessage:function(e){return t.challengeiFrameMessageHandler(e)},onChallengeIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onChallengeIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler,challengeIFrameElementRef:G}));return o.push(G),K;case w.expressCheckoutButton:var X=e3.createRef(),Y=e3.createElement(iJ,oh({},b,{key:e.id,onIFrameLoadHandler:function(e,n,r){return t.expressCheckoutButtonLoadHandler(e,n,r)},isIFrameEligible:function(e,n){return t.expressCheckoutButtonIsEligible(e,n)},onIFrameMessage:function(e){return t.expressCheckoutButtonMessageHandler(e)},expressCheckoutButtonElementRef:X,onIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler}));return o.push(X),Y;case w.filePicker:var Q=void 0;if(x){var N=ne.createModelElementsFromDisplayDescriptions(x,C);Q=(null==N?void 0:N.elements)&&(null==(c=null==N?void 0:N.elements)?void 0:c.map)?N.elements.map(af(t,n,r,o,a)):void 0}return e3.createElement(iS,oh({},b,{displayHelpChildren:Q,propertyName:m,onUpdateValue:n}));case w.separator:return e3.createElement(as,oh({},b));case w.spinner:return e3.createElement(al,oh({},b));case w.secureProperty:return e3.createElement(is.Consumer,null,function(e){if(x){var c,u,d=ne.createModelElementsFromDisplayDescriptions(x,C);u=(null==d?void 0:d.elements)&&(null==(c=null==d?void 0:d.elements)?void 0:c.map)?d.elements.map(af(t,n,r,o,a,s,l)):void 0}var p=oh(oh({},b),{labelNode:e3.createElement(ad,oh({},b,{displayHelpChildren:u}))});return e3.createElement(ac,oh({},p,{eventHub:e,displayHelpChildren:u,eventHandler:t}))});case w.pidlInstance:return e3.createElement(ae,oh({},b,{pidlInstanceRefs:a}));default:return}}function af(e,t,n,r,o,a,s){return function(l,c,u){return ap(l,e,t,n,r,o,a,s)}}ad.displayName="SecurePropertyLabel";var ah=function(e){function t(t){var n=e.call(this,t)||this;return n.update=function(e,t){e.run.apply(e,ov([n,t||function(){}],e.args,!1))},n.displayValues={},n.propertyNames=[],n.getPropertyNames(n.props.pageElement.children,n.propertyNames),n.state={propertyErrors:{},groupErrors:{},pendingValues:{},accessibilityText:{}},n}return of(t,e),t.prototype.updatePropertyValues=function(e){var t=this.props,n=t.getModelPropertyValue,r=t.onPropertyChange;for(var o in this.state.pendingValues){var a=n(o);void 0!==a&&r&&r(o,a)}this.setState({pendingValues:{}},e)},t.prototype.getPropertyNames=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.isProperty()){var a=o;a.displayType!==eW.prefillControl&&t.push(a.getPropertyName())}else if(o.isCaptcha()){var s=o;t.push(s.getPropertyName())}o.children&&o.children.length&&this.getPropertyNames(o.children,t)}},t.prototype.getPropertyState=function(){var e=this.props,t=e.getModelPropertyValue,n=e.pageElement,r={};this.propertyNames=[],n&&n.children&&this.getPropertyNames(n.children,this.propertyNames);for(var o=0,a=this.propertyNames;o<a.length;o++){var s=a[o];r[s]=t(s)}var l=oh(oh(oh({},this.displayValues),r),this.state.pendingValues);return{errors:this.state.propertyErrors,values:l,accessibilityText:this.state.accessibilityText}},t.prototype.render=function(){var e=this.props,t=e.children,n=e.elementFactory,r=e.displayOptions,o=e.displaySettings,a=e.eventHub,s=e.theme,l=e.userContext,c=e.pidlInstanceContexts,u=e.env,d=e.returnOptions;return e3.createElement(is.Provider,{value:a},e3.createElement(ii.Provider,{value:this.state.groupErrors},e3.createElement(io.Provider,{value:this.getPropertyState()},e3.createElement(ia.Provider,{value:{elementFactory:n,displayOptions:r,displaySettings:o,theme:s,userContext:l,pidlInstanceContexts:c,env:u,returnOptions:d}},t))))},t}(e3.Component),am=function(e,t,n){var r;e.setState({propertyErrors:oh(oh({},e.state.propertyErrors),((r={})[n.propertyName]=n,r))},t)},ag=function(e,t,n){var r;e.setState({groupErrors:oh(oh({},e.state.groupErrors),((r={})[n.groupDisplayId]=n,r))},t)},av=function(e,t,n){var r=oh({},e.state.propertyErrors);if(r[n])delete r[n],e.setState({propertyErrors:r},t);else{var o=oh({},e.state.groupErrors);o&&o[n]&&(delete o[n],e.setState({groupErrors:o},t))}},ay=function(e,t){e.updatePropertyValues(t)},ab=function(e,t,n,r){var o;e.setState({accessibilityText:oh(oh({},e.state.accessibilityText),((o={})[n]=r,o))},t)},ax=function(e,t,n,r){var o;e.setState({pendingValues:oh(oh({},e.state.pendingValues),((o={})[n]=r,o))})},aC=function(e,t,n,r){var o;e.displayValues=oh(oh({},e.displayValues),((o={})[n]=r,o)),e.forceUpdate(t)},ak=function(e,t){e.setState({propertyErrors:{},groupErrors:{}},t)},aw=function(e,t,n){e.map(function(e){if(e.isProperty()){var r=e;n[r.getPropertyName()]=r}t[e.id]=e,aw(e.children||[],t,n)})},aS=function(e){function t(n){var r=e.call(this,n)||this;if(r._modalRef=e3.createRef(),r._navigationWrapperRef=e3.createRef(),r.pageHasSecureFields=!1,r.alreadyWaiting=!1,r.isFirstLoad=!1,r.moreThanOneBusyBlockPropExists=function(){var e=r.props,t=e.busyBlockElement,n=e.displayOptions;return[n.busyBlockId,t,n.busyBlockShowHideHandler].filter(function(e){return e}).length>1},r.moveNextPage=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.moveNextPage&&r.pidlControlApi.moveNextPage().result},r.submitPage=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.submitPage&&r.pidlControlApi.submitPage().result},r.validateProperties=function(){var e;return(null==(e=r.pidlControlApi)?void 0:e.submitPage)?r.pidlControlApi.validateProperties().result:ru(!1)},r.moveToLastPage=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.moveToLastPage&&r.pidlControlApi.moveToLastPage().result},r.movePrevPage=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.movePrevPage&&r.pidlControlApi.movePrevPage().result},r.moveToFirstPage=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.moveToFirstPage&&r.pidlControlApi.moveToFirstPage().result},r.cancel=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.cancel&&r.pidlControlApi.cancel().result},r.getPidlExternalControlPropsMap=function(){return r.pidlExternalControlProps},r.getSelectedResource=function(){return r.pidlControlApi?r.pidlControlApi.getSelectedResource().result:null},r.getPidlPayload=function(){return r.pidlControlApi?r.pidlControlApi.returnUserInputData():null},r.postMessageToChildIFrames=function(e){return!!r.pidlControlApi&&!!r.pidlControlApi.postMessageToChildIFrames&&r.pidlControlApi.postMessageToChildIFrames(e).result},r.getInstanceControls=function(){return r.pidlControlApi&&r.pidlControlApi.getInstanceControls?r.pidlControlApi.getInstanceControls().result:{}},r.updateChildIFramesHeight=function(e){r.iFrameInnerRefs&&r.iFrameInnerRefs.forEach(function(t,n,r){t&&t.current&&t.current.updateHeight&&t.current.updateHeight(e)})},r.setInstanceDisplayPage=function(){var e=r.getInstanceKey();e&&t.displayPagesByInstance.set(e,r.state.pageElement)},r.deleteInstanceDisplayPage=function(){var e=r.getInstanceKey();e&&t.displayPagesByInstance.delete(e)},r.getInstanceKey=function(){var e,t=r.props.pidlInstanceKey||(null==(e=r.props.displayOptions)?void 0:e.instanceName);return t&&(t=t.toLowerCase()),t},r.getDisplayPagesByInstance=function(){var e=new Map;if(t.displayPagesByInstance.size>0){for(var n=0,r=Array.from(t.displayPagesByInstance.entries());n<r.length;n++){var o=r[n],a=o[0],s=o[1];!(null==a?void 0:a.includes("_"))&&(null==s?void 0:s.children)&&e.set(a,s)}return Array.from(e.entries())}return[]},r.destroyInstance=function(){var e;return null!=(e=r.pidlControlApi)&&!!e.destroyInstance&&r.pidlControlApi.destroyInstance().result},r.focusOnPageRefresh=function(e){r.state.disableFocusOnLoad||(e===S.pageRendered||e===S.pageRefreshed||e===_.secureFieldLoadWaitEnded?setTimeout(function(){var e,n,o,a,s;if(!t.firstErrorPropertyName){r.props.onPageRendered&&r.props.onPageRendered();var l=r.findFirstVisibleEnabledPropertyElement(null==(e=r.state.pageElement)?void 0:e.children);l&&l.isSecureProperty()?l.setFocus():!r.props.propertyElementRef&&(t.lastFocusedPropertyName||0===t.displayPagesByInstance.size)&&(null==(o=null==(n=t._propertyElementRef)?void 0:n.current)?void 0:o.focus)&&(null==(s=null==(a=t._propertyElementRef)?void 0:a.current)||s.focus())}},100):e===S.pageNavigated&&setTimeout(function(){var e,n,o;if(!t.firstErrorPropertyName){var a=null!=(e=r.props.propertyElementRef)?e:t._propertyElementRef;(null==(n=null==a?void 0:a.current)?void 0:n.focus)&&(null==(o=null==a?void 0:a.current)||o.focus())}},100))},r.busyBlockShowHide=function(e){r.setState({showBusyBlock:e})},r.toggleVisualCaptcha=function(e,t,n){r.onUpdateValue(e,t,n)},r.shouldRenderBusyBlock=function(){var e=r.state.showBusyBlock,t=r.props.busyBlockElement;return t&&e3.isValidElement(t)&&e},r.displayPidl=function(e,t){var n=r.state,o=n.eventHub,a=n.waitForSecureFields,s=n.showBusyBlock;r.alreadyWaiting=!1,a&&r.setState(oh(oh({},r.state),{waitForSecureFields:!1})),s&&r.busyBlockShowHide(!1),e.length=0,t.length=0,o.secureFieldLoadWaitEnded()},r.waitForSecureFieldsLoadCompletion=function(){var e=r.state,t=e.eventHub,n=e.viewEventHandler,o=(null==n?void 0:n.getSecurePropertyLoadedPromises())||[],a=(null==n?void 0:n.getSecurePropertyInitCompletedPromises())||[];r.alreadyWaiting=!0,Promise.all(o).then(function(){t.secureFieldsLoaded();var e=n.getClientSetting(eA.pidlSdkWaitTimeForSecureFieldsInit)||eI.pidlSdkWaitTimeForSecureFieldsInit;Promise.race([Promise.all(a),n.getTimeoutPromise(e)]).then(function(){n.clearTimeoutPromise(),r.displayPidl(o,a)}).catch(function(e){if(r.displayPidl(o,a),e instanceof Error&&"Timeout"===e.message){e.message="Timeout waiting for secure fields to resolve";var n=new t4.secureFieldInitCompletedTimeoutError(t3.secureFieldInitCompletedTimeout,e.toString());t.failure(n)}})}).catch(function(e){r.displayPidl(o,a)})},r.reset=function(){r.setState({properties:{},pageError:void 0,viewEventHandler:void 0,pageElement:void 0,pidlInstanceContexts:void 0},function(){return r.updateState({run:ak,args:[]})})},r.findFirstVisibleErroredProperty=function(e,t){for(var n=[],o=0;o<t.length;o++)n.push(t[o].propertyName);var a={};return r.propertiesVisitorProcessingAny(e,function(e,t){if(e&&(e.isProperty()||e.isSecureProperty())&&!e.disabled()&&!e.hidden()&&n.includes(e.getPropertyName()))return t.element=e,!0},a),a.element},r.findFirstVisibleEnabledPropertyElement=function(e){var t={};return r.propertiesVisitorProcessingAny(e,function(e,t){if(e&&(e.isIframe()||e.isSecureProperty()||e.isButton()||e.isPrefillControl()||e.isProperty())&&!e.disabled()&&!e.hidden())return!(n2(e)&&r.isRadioPossibleOptionsAllDisabled(e))&&(t.element=e,!0)},t),t.element},r.findHighlightedButton=function(e){var t={};return r.propertiesVisitorProcessingAny(e,function(e,t){if(e&&e.isButton()&&e.isHighlighted()&&!e.disabled()&&!e.hidden())return t.element=e,!0},t),t.element},r.isRadioPossibleOptionsAllDisabled=function(e){for(var t=ri.getKeys(e.possibleOptions),n=!0,r=0;r<t.length;r++)n=n&&e.possibleOptions[t[r]].isDisabled;return n},r.findPropertyElementByPropertyName=function(e,t,n){var o={};return r.propertiesVisitorProcessingDataProperty(e,function(e,o){if(e&&e.disabled&&!e.disabled()&&e.hidden&&!e.hidden()&&e.getPropertyName&&e.getPropertyName()===t&&(!n2(e)||n&&!ri.isEmptyString(nt.normalizeValueToDisplayDescriptionPossibleOptions(e,n))))return!(n2(e)&&r.isRadioPossibleOptionsAllDisabled(e))&&(o.element=e,!0)},o),o.element},r.setOpenDropdownId=function(e){r.setState({openDropdownId:e})},r.onUpdateValue=function(e,t,n){if(r.state.viewEventHandler){r.pendingPropertyValue(e,t);var o=function(){r.state.viewEventHandler.updateModelPropertyValue(e,t,n).then(function(){r.updatePropertyValues()})};n===Z.finished?setTimeout(o,1):o()}},r.updateButtonList=function(e,t,n){var r=e.possibleOptions;for(var o in r)o===t&&(n&&(r[o].isDisabled=n),r[o].displayContentContainer&&(r[o].displayContentContainer.tags={selected:"selected"}))},r.onUpdatePrefill=function(e,t){if(r.state.viewEventHandler){var n=function(){r.updateDisplayValue(e.displayId,t)};r.state.viewEventHandler.updatePrefillValue(e.pidlIdentity,t).then(n,n)}},r.updateState=function(e){if(e&&r.pendingUpdates.push(e),r.wrapper.current&&r.pendingUpdates.length>0){var t=r.pendingUpdates[0];r.pendingUpdates.splice(0,1),r.wrapper.current.update(t,function(){return r.updateState()})}},r.getTelemetryLogger=function(){var e,t=r.props,n=t.callbacksIn,o=t.elementFactory,a=t.telemetryOptions,s=null==(e=null==o?void 0:o.isReactNative)?void 0:e.call(o),l=null==n?void 0:n.telemetryLogger,c=!!(null==o?void 0:o.telemetryLogger);return s&&c?r.props.elementFactory.telemetryLogger(l,a):new ol(new oa,l)},r.initPidl=function(){var e,n=r.props,o=n.userContext,a=n.returnOptions,s=n.displayOptions,l=n.telemetryOptions,c=n.callbacksIn,u=n.transformersIn,d=n.onShowHideBusy,p=n.pidlsdkMock,f=n.pidlPayload,h=n.localDataSourceProviders,m=oh({},u),g={initialize:function(){},render:function(e){if(!e.pageElement||!e.pageElement.children||0===e.pageElement.children.length)return{succeeded:!1};var t={},n={},o={},a=r.transformPage(e.pageElement,e.displaySettings);for(var s in aw(a.children,t,n),n)n.hasOwnProperty(s)&&(o[s]=e.viewEventHandler.getModelPropertyValue(s)||"");return e.viewEventHandler.captchaHyperlinkClickHandler=r.toggleVisualCaptcha,e.updateReason===et.modelCreated&&(r.pageHasSecureFields=e.viewEventHandler.hasSecureFields(e.pageElement),r.pageHasSecureFields&&r.isFirstLoad&&(r.setState({waitForSecureFields:!0}),r.isFirstLoad=!1)),r.setState({elements:t,properties:n,pageElement:a,viewEventHandler:e.viewEventHandler,displaySettings:e.displaySettings,eventHub:e.eventHub,pidlInstanceContexts:e.pidlInstanceContexts}),{succeeded:!0}},reset:function(){},showHideBusy:function(e){return d&&d(e)},markAsFilled:function(e){},markAsUnfilled:function(e){},checkAndMarkAsFilled:function(e,t){},checkAndMarkAsUnfilled:function(e,t){},setFocusOnFirstError:function(){setTimeout(function(){var e,n,o,a;t.firstErrorPropertyName&&r.state.isFirstErrorInstance&&(t.firstVisibleErrorProperty&&t.firstVisibleErrorProperty.isSecureProperty()&&t.firstVisibleErrorProperty.getPropertyName()===t.firstErrorPropertyName?t.firstVisibleErrorProperty.setFocus():(null==(n=null==(e=t._propertyElementErrorRef)?void 0:e.current)?void 0:n.focus)&&(null==(a=null==(o=t._propertyElementErrorRef)?void 0:o.current)||a.focus()))},100)},showPropertyError:function(e){return r.showPropertyError(e),!0},showGroupError:function(e){return r.showGroupError(e),!0},showPageError:function(e){return r.setState({pageError:e}),!1},hidePropertyError:function(e){r.hidePropertyError(e)},hidePageError:function(){r.setState({pageError:void 0})},postMessageToChildIFrames:function(e){var t=!0;return r.iFrameInnerRefs&&r.iFrameInnerRefs.forEach(function(n,r,o){if(n&&n.current&&n.current.postMessage){var a=n.current.postMessage(e);t=t&&a}else t=!1}),t},getPageElementValues:function(){return r.wrapper.current?r.wrapper.current.getPropertyState().values:{}},setDisabledByDisplayId:function(e,t,n){},getVisibleProperties:function(){if(r.wrapper.current&&r.state.pageElement){var e=[];return r.wrapper.current.getPropertyNames([r.state.pageElement],e),e}return[]},updatePrefillControls:function(){r.updatePropertyValues()},updatePropertyValue:function(e,t,n,o){var a=r.state.properties[e];a&&r.updateDisplayValue(a.displayName,n)},updateButtonList:function(e,t,n){r.updateButtonList(e,t,n)},setAccessibilityText:function(e,t){r.updateAccessibilityText(e.getPropertyName(),t)},hideModalDialog:function(){var e,t;null==(t=null==(e=r._modalRef)?void 0:e.current)||t.toggleDisplay(!1)},getViewType:function(){return"reactview"},restoreCaretPosition:function(){},updateDisplayValue:function(e,t,n,r){},getPidlInstanceControls:function(){var e={};return Object.keys(r.pidlInstanceRefs).forEach(function(t){var n=r.pidlInstanceRefs[t];if(n&&n.current){var o={moveNextPage:function(){if(n.current&&n.current.moveNextPage)return n.current.moveNextPage()},submitPage:function(){if(n.current&&n.current.submitPage)return n.current.submitPage()},validateProperties:function(){if(n.current&&n.current.validateProperties)return n.current.validateProperties()},movePrevPage:function(){if(n.current&&n.current.movePrevPage)return n.current.movePrevPage()},moveToFirstPage:function(){if(n.current&&n.current.moveToFirstPage)return n.current.moveToFirstPage()},cancel:function(){if(n.current&&n.current.cancel)return n.current.cancel()},getSelectedResource:function(){if(n.current&&n.current.getSelectedResource)return n.current.getSelectedResource()},getPidlPayload:function(){if(n.current&&n.current.getPidlPayload)return n.current.getPidlPayload()},postMessageToChildIFrames:function(e){if(n.current&&n.current.postMessageToChildIFrames)return n.current.postMessageToChildIFrames(e)}};e[t]=o}}),e}},v=oh(oh({},c),{telemetryLogger:r.getTelemetryLogger(),view:c&&c.view?c.view:g});return e=p?p.initMock(o,a,r.eventHandler,s,l,v,m):new oo(o,a,r.eventHandler,oh(oh({},s),{containerId:s.containerId||""}),v,l,r.privateEventHandler,r.oneDSService,m,f,h),r.props.operation(e),e},r.moreThanOneBusyBlockPropExists())throw Error(t3.onlyOneBusyBlockPropAllowed.debugMessage);return r.eventHandler=function(e,n){var o,a,s,l,c,u,d,p,f,h,m,g,v,y;if(((null==(o=r.props.elementFactory)?void 0:o.createNavigationWrapper)&&(null==n?void 0:n.currentPageIndex)||(null==n?void 0:n.pageId))&&(n.currentPageIndex!==r.state.currentPageIndex||n.pageId!==r.state.currentPageId)&&r.setState({currentPageIndex:null==n?void 0:n.currentPageIndex,currentPageId:null==n?void 0:n.pageId}),(null==(a=r.props.elementFactory)?void 0:a.createNavigationWrapper)&&e===S.pageRefreshed&&(null==(l=null==(s=r._navigationWrapperRef.current)?void 0:s.forceFocusRefRefresh)||l.call(s)),e===S.error&&r.state.pageElement&&((null==(c=null==n?void 0:n.error)?void 0:c.code)===t3.formSubmissionFailedBadUserInput.code||(null==(u=null==n?void 0:n.error)?void 0:u.code)===t3.formValidationFailed.code)&&(null==(d=null==n?void 0:n.error)?void 0:d.errors)&&(null==(p=null==n?void 0:n.error)?void 0:p.errors.length)>0&&((null==(f=null==n?void 0:n.error)?void 0:f.errors[0].propertyName)||(null==(h=null==n?void 0:n.error)?void 0:h.errors[0].groupDisplayId))){for(var b=void 0,x=void 0,C=r.getDisplayPagesByInstance(),k=null==(v=null==(g=null==(m=r.props.displayOptions)?void 0:m.instanceName)?void 0:g.toLowerCase)?void 0:v.call(g),w=0,_=C;w<_.length;w++){var E=_[w],P=E[0],I=E[1];if((b=r.findPropertyElementByPropertyName(null==I?void 0:I.children,t.firstErrorPropertyName))||(b=r.findFirstVisibleErroredProperty(null==I?void 0:I.children,n.error.errors))){x=P;break}}b||(x=(b=r.findFirstVisibleErroredProperty(r.state.pageElement.children,n.error.errors))?k:-1),t.firstErrorPropertyName=(null==(y=null==b?void 0:b.getPropertyName)?void 0:y.call(b))||n.error.errors[0].propertyName,t.firstVisibleErrorProperty=b,r.setState({isFirstErrorInstance:x===k})}return e===S.propertySelected&&(t.lastFocusedPropertyName=null==n?void 0:n.propertyName,r.setState({disableFocusOnLoad:!1})),e===S.selectionChanged&&(t.lastFocusedPropertyName=null==n?void 0:n.propertyName,t.lastFocusedPropertyValue=null==n?void 0:n.propertyValue,r.setState({disableFocusOnLoad:!1})),r.focusOnPageRefresh(e),r.props.onEvent&&r.props.onEvent(e,n)},r.privateEventHandler=function(e,n){e===_.propertyUnselected&&(t.lastFocusedPropertyName=void 0,t.firstErrorPropertyName=void 0,t.firstVisibleErrorProperty=void 0,r.setState({isFirstErrorInstance:!1})),e!==_.success||n[E.preventUnmountOnFinish]||r.reset(),r.focusOnPageRefresh(e)},r.props&&r.props.elementFactory&&r.props.elementFactory.getOneDSService&&(r.oneDSService=r.props.elementFactory.getOneDSService()),r.wrapper=e3.createRef(),r.pendingUpdates=[],r.iFrameInnerRefs=[],r.pidlInstanceRefs={},r.state={elements:{},properties:{},pageError:void 0,viewEventHandler:void 0,displaySettings:void 0,eventHub:void 0,showBusyBlock:!1,currentPageIndex:null,currentPageId:null,disableFocusOnLoad:r.props.displayOptions.disableFocusOnLoad,waitForSecureFields:!1,openDropdownId:"",isFirstErrorInstance:!1},r.setInstanceDisplayPage(),r}return of(t,e),t.prototype.componentDidMount=function(){var e=this.props.env;this.isFirstLoad=!0,r1.set(e||ox),this.pidlControlApi=this.pidlControlApi||this.initPidl()},t.prototype.isAddResourceProps=function(e){return e&&e.pidlDocInfo},t.prototype.componentDidUpdate=function(e,t){this.pidlControlApi=this.pidlControlApi||this.initPidl(),this.isAddResourceProps(this.props)&&e&&e.pidlDocInfo&&this.props.pidlDocInfo&&JSON.stringify(e.pidlDocInfo)!==JSON.stringify(this.props.pidlDocInfo)&&(this.pidlControlApi=this.initPidl()),this.state.pageElement!==(null==t?void 0:t.pageElement)&&this.setInstanceDisplayPage()},t.prototype.componentWillUnmount=function(){try{this.state.viewEventHandler.clearTimeoutPromise(),this.destroyInstance(),this.deleteInstanceDisplayPage()}catch(e){}},t.prototype.wrapGroupedElements=function(e,t){var n=this.state.pageError;return(null==e?void 0:e.isReactNative)&&e.isReactNative()?e3.createElement(e3.Fragment,null,t):e3.createElement("div",{className:e8.default("pidl-react-page-error",{"d-none":!n||!n.message})},t)},t.prototype.render=function(){var e,n,r,o=this.props,a=o.displayOptions,s=o.children,l=o.onPropertyChange,c=o.elementFactory,u=o.busyBlockElement,d=o.propertyElementRef,p=o.theme,f=o.env,h=o.returnOptions,m=this.state,g=m.pageElement,v=m.viewEventHandler,y=m.pageError,b=m.displaySettings,x=m.eventHub,C=m.pidlInstanceContexts,k=a;u&&e3.isValidElement(u)&&(k.busyBlockShowHideHandler=this.busyBlockShowHide);var w=s;if(this.pidlControlApi&&g&&v){t.previousFocusTarget&&(null==(n=(e=t.previousFocusTarget).getPropertyName)?void 0:n.call(e))!==t.firstErrorPropertyName&&(t.previousFocusTarget.propertyElementRef=void 0),this.attachFocusRef(g,d,t.firstErrorPropertyName,t.lastFocusedPropertyName,t.lastFocusedPropertyValue),this.attachModalRef(g);var S=g.children.map(af(v,this.onUpdateValue,this.onUpdatePrefill,this.iFrameInnerRefs,this.pidlInstanceRefs,this.setOpenDropdownId,this.state.openDropdownId)),_=new Map,E=g.keyPidlActions;Object.keys(E||{}).forEach(function(e){var t=E[e];_.set(e,function(){v.invokePidlAction(t)})});var P=this.state,I=P.eventHub,T=P.waitForSecureFields,D=(null==c?void 0:c.createNavigationWrapper)?c.createNavigationWrapper(S,this.state.currentPageIndex,this.state.currentPageId,this.cancel,this.movePrevPage,this.moveToLastPage,this.moveToFirstPage,this.moveNextPage,this._navigationWrapperRef,_):this.pageHasSecureFields?e3.createElement("div",{style:{display:T?"none":"block"}},S):e3.createElement(e3.Fragment,null,S);w=e3.createElement(ah,{ref:this.wrapper,getModelPropertyValue:v.getModelPropertyValue,onPropertyChange:l,pageElement:g,elementFactory:c,displayOptions:k,displaySettings:b,eventHub:I,theme:p,userContext:this.props.userContext,pidlInstanceContexts:C,env:f,returnOptions:h},D)}var A=function(){return(null==c?void 0:c.createBusyBlockWrapper)?c.createBusyBlockWrapper(e3.cloneElement(u)):e3.cloneElement(u)},R=y?e3.createElement(ig,{message:y.message}):null,N=this.state,B=N.waitForSecureFields,M=N.showBusyBlock,F=(null==(r=null==v?void 0:v.getSecurePropertyLoadedPromises())?void 0:r.length)>0;return this.pageHasSecureFields&&B&&F&&(M||this.busyBlockShowHide(!0),this.alreadyWaiting||(x.secureFieldLoadWaitStarted(),this.waitForSecureFieldsLoadCompletion())),e3.createElement(e3.Fragment,null,e3.createElement(ia.Provider,{value:{elementFactory:c,displayOptions:k,displaySettings:b,theme:p,userContext:this.props.userContext,pidlInstanceContexts:C,env:f,returnOptions:h}},e3.createElement(e3.Fragment,null,this.wrapGroupedElements(c,R))),this.shouldRenderBusyBlock()&&A(),w)},t.prototype.attachFocusRef=function(e,n,r,o,a){var s,l,c,u=e.children;if(r){if(!this.state.isFirstErrorInstance)return;if(c=this.findPropertyElementByPropertyName(u,r))if(null==(s=c.propertyElementRef)?void 0:s.current)t._propertyElementErrorRef=c.propertyElementRef;else{var d=e3.createRef();c.propertyElementRef=d,t._propertyElementErrorRef=d}}else{if(o){for(var p=void 0,f=this.getDisplayPagesByInstance(),h=0,m=f;h<m.length;h++){var g=m[h],v=g[0],y=g[1];if(c=this.findPropertyElementByPropertyName(null==y?void 0:y.children,o,a))break;p||(p=this.findFirstVisibleEnabledPropertyElement(null==y?void 0:y.children))}(c=null!=c?c:p)||(c=this.findPropertyElementByPropertyName(u,o,a)),c||(c=this.findFirstVisibleEnabledPropertyElement(u))}else{for(var f=this.getDisplayPagesByInstance(),b=0,x=f;b<x.length;b++){var C=x[b],v=C[0],k=C[1];if(c=this.findFirstVisibleEnabledPropertyElement(null==k?void 0:k.children))break}c||(c=this.findFirstVisibleEnabledPropertyElement(u))}var w=this.findHighlightedButton(u);if(c&&(c.isButton()&&w&&(c=w),!c.propertyElementRef))if(n)c.propertyElementRef=n;else if((null==(l=t._propertyElementRef)?void 0:l.current)&&t.previousFocusTarget)c.propertyElementRef=t._propertyElementRef;else{var d=e3.createRef();c.propertyElementRef=d,t._propertyElementRef=d}}t.previousFocusTarget=null!=c?c:t.previousFocusTarget},t.prototype.attachModalRef=function(e){var t;e.children.forEach(function(e){nJ(e)&&(t=e)}),t&&(t.groupElementRef=this._modalRef)},t.prototype.propertiesVisitorProcessingDataProperty=function(e,t,n){if(e)if(!Array.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,n);else for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingDataProperty(e[r],t,n);if(o)return o}},t.prototype.propertyVisitorProcessingDataProperty=function(e,n,r){if(e){if(e.isProperty()||e.isSecureProperty()||e.isButton()){var o=n(e,r);if(o)return o}if(n2(e)){var a=e;if(a&&a.possibleOptions)for(var s=ri.getKeys(a.possibleOptions),l=0,c=s;l<c.length;l++){var u=c[l],d=a.possibleOptions[u];if(d&&!d.isDisabled&&d.displayContentContainer){var o=this.propertyVisitorProcessingDataProperty(d.displayContentContainer,n,r);if(o)return o}}}if(nW(e)&&e.pidlInstance){if(t.displayPagesByInstance.has(e.pidlInstance)){var p=t.displayPagesByInstance.get(e.pidlInstance);if(p&&p.children){var o=this.propertiesVisitorProcessingDataProperty(p.children,n,r);if(o)return o}}return!1}if(e.children&&e.children.length>0&&(!r||!r.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,n,r);r&&delete r.stopDescendantsProcessing}},t.prototype.propertiesVisitorProcessingAny=function(e,t,n){if(e)if(!Array.isArray(e))return this.propertyVisitorProcessingAny(e,t,n);else for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingAny(e[r],t,n);if(o)return o}},t.prototype.propertyVisitorProcessingAny=function(e,n,r){if(e){var o=n(e,r);if(o)return o;if(n2(e)){var a=e;if(a&&a.possibleOptions)for(var s=ri.getKeys(a.possibleOptions),l=0,c=s;l<c.length;l++){var u=c[l],d=a.possibleOptions[u];if(d&&!d.isDisabled&&d.displayContentContainer){var p=this.propertyVisitorProcessingAny(d.displayContentContainer,n,r);if(p)return p}}}if(nW(e)&&e.pidlInstance){if(t.displayPagesByInstance.has(e.pidlInstance)){var f=t.displayPagesByInstance.get(e.pidlInstance);if(f&&f.children){var h=this.propertiesVisitorProcessingAny(f.children,n,r);if(h)return h}}return!1}if(e.children&&e.children.length>0&&(!r||!r.stopDescendantsProcessing))return this.propertiesVisitorProcessingAny(e.children,n,r);r&&delete r.stopDescendantsProcessing}},t.prototype.pendingPropertyValue=function(e,t){this.updateState({run:ax,args:[e,t]})},t.prototype.updatePropertyValues=function(){this.updateState({run:ay,args:[]})},t.prototype.updateDisplayValue=function(e,t){this.updateState({run:aC,args:[e,t]})},t.prototype.updateAccessibilityText=function(e,t){this.updateState({run:ab,args:[e,t]})},t.prototype.showGroupError=function(e){this.updateState({run:ag,args:[e]})},t.prototype.showPropertyError=function(e){this.updateState({run:am,args:[e]})},t.prototype.hidePropertyError=function(e){this.updateState({run:av,args:[e]})},t.prototype.splitChildren=function(e,t){var n=ov([],e.children,!0);if(!n||!n.length)return n;var r=n[n.length-1];if(!nJ(r)||!r.isSubmitGroup)return n;(null==r?void 0:r.isSubmitGroup)&&(this.setExternalControlNames(r),r.isHidden=!t.submitButtonBlock.show);var o=r.operationType,a=r.pidlIdentity,s=r.isLinkedPidl;n.pop();var l={displayId:f.pageBlock,displayType:eW.group,displayName:null,styleHints:e.displayDescription.styleHints},c=new ni(g.group,null,l,o,a,s);return c.children=n,r.id=t.submitButtonBlock.id,[c,r]},t.prototype.transformPage=function(e,t){return oh(oh({},e),{children:this.splitChildren(e,t)})},t.prototype.setExternalControlNames=function(e){var t=new Map,n=k.gohome,r=k.submit,o=k.next,a=k.prev,s=e.members;s&&s.forEach(function(e){var s;e.displayContent&&(null==(s=e.pidlAction)?void 0:s.type)&&(e.pidlAction.type==n||e.pidlAction.type==r||e.pidlAction.type==o||e.pidlAction.type==a)&&(t[e.pidlAction.type]={type:e.pidlAction.type,displayContent:e.displayContent})}),this.pidlExternalControlProps=t},t.defaultProps={env:ox},t._propertyElementRef=e3.createRef(),t._propertyElementErrorRef=e3.createRef(),t.displayPagesByInstance=new Map,t}(e3.Component),a_=function(e){function t(t,n){var r=e.call(this,t)||this;r.moveNextPage=function(){return!!r.pidlRef.current&&!!r.pidlRef.current.moveNextPage&&r.pidlRef.current.moveNextPage()},r.submitPage=function(){return!!r.pidlRef.current&&!!r.pidlRef.current.submitPage&&r.pidlRef.current.submitPage()},r.validateProperties=function(){return r.pidlRef.current&&r.pidlRef.current.validateProperties?r.pidlRef.current.validateProperties():ru(!1)},r.movePrevPage=function(){return!!r.pidlRef.current&&!!r.pidlRef.current.movePrevPage&&r.pidlRef.current.movePrevPage()},r.moveToFirstPage=function(){return!!r.pidlRef.current&&!!r.pidlRef.current.moveToFirstPage&&r.pidlRef.current.moveToFirstPage()},r.cancel=function(){return!!r.pidlRef.current&&!!r.pidlRef.current.cancel&&r.pidlRef.current.cancel()},r.getPidlExternalControlPropsMap=function(){return r.pidlRef.current&&r.pidlRef.current.getPidlExternalControlPropsMap?r.pidlRef.current.getPidlExternalControlPropsMap():null},r.getSelectedResource=function(){if(r.pidlRef.current&&r.pidlRef.current.getSelectedResource)return r.pidlRef.current.getSelectedResource()},r.getPidlPayload=function(){return r.pidlRef.current&&r.pidlRef.current.getPidlPayload?r.pidlRef.current.getPidlPayload():ru({payload:null,operationType:null})},r.postMessageToChildIFrames=function(e){return!!r.pidlRef.current&&!!r.pidlRef.current.postMessageToChildIFrames&&r.pidlRef.current.postMessageToChildIFrames(e)},r.getInstanceControls=function(){return r.pidlRef.current&&r.pidlRef.current.getInstanceControls?r.pidlRef.current.getInstanceControls():{}},r.implementationMissing=function(e,t,n){if(!r.pidlRef.current)return null;var o,a,s,l=null==(s=null==(a=null==(o=r.pidlRef)?void 0:o.current)?void 0:a.state)?void 0:s.eventHub;null==l||l.implementationMissing(e,t,n)},r.updateChildIFramesHeight=function(e){r.pidlRef.current&&r.pidlRef.current.updateChildIFramesHeight&&r.pidlRef.current.updateChildIFramesHeight(e)},r.pidlRef=e3.createRef(),r.pidlOperation=n;try{t.telemetryOptions?r.telemetryOptions=Object.assign({},t.telemetryOptions):r.telemetryOptions={},r.telemetryOptions.contextData||(r.telemetryOptions.contextData={}),r.telemetryOptions.contextData.partnerName||(r.telemetryOptions.contextData.partnerName=t.partner)}catch(e){r.telemetryOptions=t.telemetryOptions}return r}return of(t,e),t.prototype.render=function(){return e3.createElement(aS,oh({},this.props,{ref:this.pidlRef,operation:this.pidlOperation,telemetryOptions:this.telemetryOptions}),this.props.children)},t}(e3.Component),aE=function(e){function t(t){var n=e.call(this,t,function(e){return e.addAddress(n.props.pidlDocInfo,n.props.prefillData,n.props.options)})||this;return n}return of(t,e),t}(a_),aP=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(e,n,r,o,a,s,l){var c={operation:oC.Operation,type:s||oC.DefaultAddressType,scenario:e,country:n,language:r,partner:o,setAsDefaultBilling:e===t.AddressScenario.profile||l};return a&&(c=oh(oh({},c),a)),c},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tv,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oC.ViewTermsId)&&a(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.AddAddress,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.scenario,c=e.addressType,u=e.partner,d=e.elementFactory,p=e.onSuccess,f=e.onFailure,h=e.onCancel,m=e.showSubmitBlock,g=void 0===m||m,v=e.busyBlockShowHideHandler,y=e.prefillData,b=e.pidlsdkMock,x=e.telemetryLogger,C=e.telemetryOptions,k=e.propertyElementRef,w=e.onPageRendered,S=e.setAsDefaultBilling,_=e.headers,E=e.callbacksIn,P=e.displayOptions,I=this.state.styleProvider,T=this.compileParameters(l,a,s,u,r,c,S),D=this.compileReturnOptions(p,f,h);return e6.default.createElement(il.Provider,{value:{styleProvider:I}},e6.default.createElement(aE,{busyBlockElement:o,displayOptions:oh(oh({},P),{containerId:oC.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g}),pidlDocInfo:{resourceType:oC.ResourceType,parameters:T},env:n,partner:u,returnOptions:D,onEvent:this.onEvent,userContext:{authToken:t,userId:oC.UserId,additionalHeaders:_},elementFactory:d,prefillData:y,pidlsdkMock:b,callbacksIn:oh(oh({},E),{telemetryLogger:x}),telemetryOptions:C,propertyElementRef:k,onPageRendered:w,ref:this.baseComponentRef}))},n}(e6.default.Component),aI=function(e){function t(t){var n=e.call(this,t,function(e){return e.addPaymentInstrument(n.props.pidlDocInfo,n.props.prefillData,n.props.options)})||this;return n}return of(t,e),t}(a_),aT=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(e,t,n,r,o,a,s,l,c){var u={operation:oR.Operation,country:e,language:t,partner:n,completePrerequisites:s,type:a,family:o,sessionId:l,scenario:c};return r&&(u=oh(oh({},u),r)),u},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n,o,a){return{urls:{success:e,failure:t},callbacks:{success:n,failure:r.FailureHandler,gohome:a}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,a=oh({},o);return t&&(a.telemetryLogger=t),(null==n?void 0:n.encryptionHandler)&&(a.encryptionHandler=n.encryptionHandler()),a},r.compileOptions=function(e){return e?{riskData:{greenId:e}}:null},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tv,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oR.ViewTermsId)&&a(t),o&&o(e,t)},r.getResourceType=function(){return null!=r.props.sessionId?"AddPiQrCode":oR.ResourceType},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.AddPaymentInstrument,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.completePrerequisites,s=e.scenario,l=e.sessionId,c=e.country,u=e.language,d=e.partner,p=e.paymentFamily,f=e.paymentType,h=e.elementFactory,m=e.onSuccess,g=e.onFailure,v=e.onCancel,y=e.showSubmitBlock,b=void 0===y||y,x=e.busyBlockShowHideHandler,C=e.prefillData,k=e.pidlsdkMock,w=(e.telemetryLogger,e.telemetryOptions),S=e.propertyElementRef,_=e.onPageRendered,E=e.headers,P=e.greenId,I=e.redirectionSuccessUrl,T=e.redirectionFailureUrl,D=e.serviceOverrides,A=e.useWebView2,R=e.displayOptions,N=this.state.styleProvider,B=this.compileParameters(c,u,d,r,p,f,a,l,s),M=this.compileReturnOptions(I,T,m,g,v),F=this.compileCallbacks(),O=this.compileOptions(P);return e6.default.createElement(il.Provider,{value:{styleProvider:N}},e6.default.createElement(aI,{busyBlockElement:o,displayOptions:oh(oh({},R),{containerId:oR.ContainerId,busyBlockShowHideHandler:x,showSubmitBlock:b,useWebView2:A}),pidlDocInfo:{resourceType:this.getResourceType(),parameters:B},env:n,returnOptions:M,onEvent:this.onEvent,userContext:{authToken:t,userId:oR.UserId,additionalHeaders:E,serviceOverrides:D},elementFactory:h,prefillData:C,pidlsdkMock:k,callbacksIn:F,partner:d,telemetryOptions:w,propertyElementRef:S,onPageRendered:_,ref:this.baseComponentRef,options:O}))},n}(e6.default.Component),aD=function(e){function t(t){var n=this,r=oh(oh({},t.pidlDocInfo),{resourceType:"PaymentInstrument"});return n=e.call(this,t,function(e){return e.applyResource(r,n.props.prefillData,n.props.options)})||this}return of(t,e),t}(a_),aA=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.parameters,s=e.paymentFamily,l=e.paymentType,c=e.scenario,u=e.prefillData,d=e.provider,p=e.channel,f=e.referrerId,h=e.sessionId,m=e.ocid,g={operation:oF.Operation,country:t,language:n,partner:o,scenario:c,type:l,family:s,prefillData:u,provider:d,channel:p,referrerId:f,sessionId:h,ocid:m};return a&&(g=oh(oh({},g),a)),g},r.FailureHandler=function(e){var t,n,o,a=null==(o=null==(n=null==(t=null==od?void 0:ou)?void 0:t.errorMessages)?void 0:n.pollingTimedOut)?void 0:o.code;a&&e.code===a.toString()?r.props.onTimeOut(e):r.props.onFailure(e)},r.compileReturnOptions=function(e,t,n,o){return{urls:o,callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,a=oh({},o);return t&&(a.telemetryLogger=t),(null==n?void 0:n.encryptionHandler)&&(a.encryptionHandler=n.encryptionHandler()),a},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.onNavigate;a&&e===S.navigate&&a(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.ApplyPaymentInstrument,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,u=e.showSubmitBlock,d=void 0===u||u,p=e.busyBlockShowHideHandler,f=e.pidlsdkMock,h=e.prefillData,m=e.telemetryOptions,g=e.propertyElementRef,v=(e.onEvent,e.onPageRendered),y=e.headers,b=e.useWebView2,x=e.displayOptions,C=e.partner,k=this.state.styleProvider,w=this.compileParameters(),S=this.compileReturnOptions(a,s,l,c),_=this.compileCallbacks();return e6.default.createElement(il.Provider,{value:{styleProvider:k}},e6.default.createElement(aD,{busyBlockElement:r,displayOptions:oh(oh({},x),{containerId:oF.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:d,useWebView2:b}),pidlDocInfo:{resourceType:oF.ResourceType,parameters:w},env:n,returnOptions:S,onEvent:this.onEvent,userContext:{authToken:t,userId:oF.UserId,additionalHeaders:y},elementFactory:o,prefillData:h,pidlsdkMock:f,callbacksIn:_,partner:C,telemetryOptions:m,propertyElementRef:g,onPageRendered:v,ref:this.baseComponentRef}))},n}(e6.default.Component),aR=function(e){function t(t){var n=e.call(this,t,function(e){return e.addResource(n.props.pidlDocInfo,n.props.prefillData,n.props.options)})||this;return n}return of(t,e),t}(a_),aN=function(e){function t(t){var n=e.call(this,t,function(e){return e.applyResource(n.props.pidlDocInfo,n.props.prefillData,n.props.options)})||this;return n}return of(t,e),t}(a_),aB=function(e){function t(t){var n=e.call(this,t,function(e){return e.handlePurchasePendingState(n.props.parameters)})||this;return n}return of(t,e),t}(a_),aM=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock,o=void 0===n||n,a=e.useWebView2,s=e.displayOptions;return oh(oh({},s),{containerId:o_.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:o,useWebView2:a})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.piid,s=e.orderId,l=e.sessionId;return{piResourceInfo:{resourceType:o_.ResourceType,parameters:{market:t,language:n,partner:o,sessionId:l,orderId:s},id:a},sessionId:l,orderId:s,options:{}}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=e.onSuccess,n=e.onCancel,o=e.redirectReturnUrls,a=oh({},o),s=a.success,l=a.failure,c=a.gohome;return{callbacks:{success:t,failure:r.FailureHandler,gohome:n},urls:{success:s,failure:l,gohome:c}}},r.compileCallbacksIn=function(){return oh(oh({},r.props.callbacksIn),{telemetryLogger:r.props.telemetryLogger})},r.compileUserContext=function(){return{authToken:r.props.authToken,userId:o_.UserId,additionalHeaders:r.props.headers}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.ConfirmPayment,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.env,n=e.pidlsdkMock,r=e.propertyElementRef,o=e.telemetryOptions,a=e.onEvent,s=e.onPageRendered,l=e.elementFactory,c=e.busyBlockElement,u=e.partner,d=this.state.styleProvider,p=this.compileDisplayOptions(),f=this.compileParameters(),h=this.compileReturnOptions(),m=this.compileCallbacksIn(),g=this.compileUserContext();return e6.default.createElement(il.Provider,{value:{styleProvider:d}},e6.default.createElement(aB,{busyBlockElement:c,displayOptions:p,parameters:f,env:t,returnOptions:h,userContext:g,onEvent:a,elementFactory:l,pidlsdkMock:n,callbacksIn:m,telemetryOptions:o,propertyElementRef:r,onPageRendered:s,partner:u,ref:this.baseComponentRef}))},n}(e6.default.Component),aF=function(e){function t(t){var n=e.call(this,t,function(e){return e.createPaymentSession(n.props.paymentSessionOrData)})||this;return n}return of(t,e),t}(a_),aO=function(e){function t(t){var n=e.call(this,t,function(e){return e.updateResource(n.props.resourceInfo,null,n.props.pidlDocInfo)})||this;return n}return of(t,e),t}(a_),aL=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(e,t,n,r,o,a){var s=oh({operation:ow.Operation,type:ow.AddressType,scenario:e},{country:t,language:n,partner:r,addressId:a});return o&&(s=oh(oh({},s),o)),s},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tv,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oC.ViewTermsId)&&a(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.AddAddress,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.addressId,r=e.env,o=e.parameters,a=e.busyBlockElement,s=e.scenario,l=e.country,c=e.language,u=e.partner,d=e.elementFactory,p=e.onSuccess,f=e.onFailure,h=e.onCancel,m=e.showSubmitBlock,g=void 0===m||m,v=e.busyBlockShowHideHandler,y=e.pidlsdkMock,b=e.telemetryLogger,x=e.propertyElementRef,C=e.onPageRendered,k=e.headers,w=e.displayOptions,S=this.state.styleProvider,_=this.compileParameters(s,l,c,u,o,n),E=this.compileReturnOptions(p,f,h);return e6.default.createElement(il.Provider,{value:{styleProvider:S}},e6.default.createElement(aO,{busyBlockElement:a,displayOptions:oh(oh({},w),{containerId:ow.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g}),resourceInfo:{id:n,resourceType:ow.ResourceType,parameters:{}},pidlDocInfo:{resourceType:ow.ResourceType,parameters:_},env:r,partner:u,returnOptions:E,onEvent:this.onEvent,userContext:{authToken:t,userId:ow.UserId,additionalHeaders:k},elementFactory:d,pidlsdkMock:y,callbacksIn:{telemetryLogger:b},propertyElementRef:x,onPageRendered:C,ref:this.baseComponentRef}))},n}(e6.default.Component),aH=function(e){function t(t){var n=e.call(this,t,function(e){return e.updateResource(n.props.resourceInfo,null,n.props.pidlDocInfo)})||this;return n}return of(t,e),t}(a_),az=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tv,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oB.ViewTermsId)&&a(t),o&&o(e,t)},r.compileParameters=function(e,t,n,r,o,a){var s={country:e,language:t,partner:o,type:n,family:r};return a&&(s=oh(oh({},s),a)),s},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:r.FailureHandler,gohome:t}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.EditPaymentInstrument,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.paymentInstrumentId,r=e.paymentType,o=e.paymentFamily,a=e.env,s=e.parameters,l=e.busyBlockElement,c=e.country,u=e.language,d=e.partner,p=e.elementFactory,f=e.onSuccess,h=e.onCancel,m=e.showSubmitBlock,g=void 0===m||m,v=e.busyBlockShowHideHandler,y=e.pidlsdkMock,b=e.telemetryLogger,x=e.propertyElementRef,C=e.onPageRendered,k=e.headers,w=e.callbacksIn,S=e.displayOptions,_=this.state.styleProvider,E=this.compileParameters(c,u,r,o,d,s),P=this.compileReturnOptions(f,h);return e6.default.createElement(il.Provider,{value:{styleProvider:_}},e6.default.createElement(aH,{busyBlockElement:l,env:a,returnOptions:P,onEvent:this.onEvent,userContext:{authToken:t,userId:oB.UserId,additionalHeaders:k},elementFactory:p,pidlsdkMock:y,callbacksIn:oh(oh({},w),{telemetryLogger:b}),propertyElementRef:x,onPageRendered:C,displayOptions:oh(oh({},S),{containerId:oB.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g}),partner:d,resourceInfo:{id:n,resourceType:oB.ResourceType,parameters:{partner:d}},pidlDocInfo:{resourceType:oB.ResourceType,parameters:E},ref:this.baseComponentRef}))},n}(e6.default.Component),aV=function(e){function t(t){var n=e.call(this,t,function(e){return e.fundStoredValue(n.props.fundStoredValueParams)})||this;return n}return of(t,e),t}(a_),aU=function(e){function t(t){var n=e.call(this,t,function(e){return e.handlePaymentChallenge(n.props.paymentSessionOrData,n.props.containerRef)})||this;return n}return of(t,e),t}(a_),aj=function(e){function t(t){var n=e.call(this,t,function(e){return e.expressCheckout(n.props.pidlDocInfo)})||this;return n}return of(t,e),t}(a_),aW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onEventInternal=function(e,n){var r=t.props,o=r.onReady,a=r.onEvent;if(e==S.expressCheckoutReady)return o(n);null==a||a(e,n)},t.compileParameters=function(){var e=t.props,n=e.expressCheckoutData,r=e.filters,o=e.allowedPaymentMethods,a=e.partner,s=e.parameters;return oh(oh({},s),{allowedPaymentMethods:o,filters:r,expressCheckoutData:n,partner:a,country:n.country})},t.getPidlDocInfo=function(e){return{resourceType:oV.ResourceType,parameters:e}},t.onFailureHandler=function(e){(0,t.props.onFailure)(e.error)},t.compileReturnOptions=function(){var e=t.props,n=e.onSuccess,r=e.onCancel;return{callbacks:{failure:t.onFailureHandler,success:n,gohome:r}}},t}return of(t,e),t.prototype.render=function(){var e=this.props,t=e.authToken,n=e.headers,r=e.displayOptions,o=e.env,a=e.busyBlockShowHideHandler,s=e.busyBlockElement,l=e.telemetryOptions,c=e.pidlsdkMock,u=e.callbacksIn,d=e.telemetryLogger,p=e.propertyElementRef,f=e.onPageRendered,h=this.compileParameters(),m=this.getPidlDocInfo(h),g=this.compileReturnOptions();return e6.default.createElement(e6.default.Fragment,null,e6.default.createElement(aj,{busyBlockElement:s,pidlDocInfo:m,onEvent:this.onEventInternal,env:o,userContext:{authToken:t,userId:oV.UserId,additionalHeaders:n},returnOptions:g,displayOptions:oh(oh({},r),{busyBlockShowHideHandler:a}),telemetryOptions:l,pidlsdkMock:c,callbacksIn:oh(oh({},u),{telemetryLogger:d}),propertyElementRef:p,onPageRendered:f}))},t}(e6.default.Component),aq=function(e){function t(t){var n=e.call(this,t,function(e){return e.handlePurchaseRiskChallenge(n.props.parameters)})||this;return n}return of(t,e),t}(a_);t.RiskPurchaseType=void 0,function(e){e.CVV="cvv",e.SMS="sms"}(t.RiskPurchaseType||(t.RiskPurchaseType={}));var aG=function(e){function t(t){var n=e.call(this,t,function(e){return e.handlePurchaseRiskChallenge(n.props.parameters)})||this;return n}return of(t,e),t}(a_),aK=function(e){function n(n){var r=e.call(this,n)||this;r.HandleRiskChallengeInternalRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tv,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oU.ViewTermsId)&&a(t),o&&o(e,t)},r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock,o=void 0===n||n,a=e.displayOptions;return oh(oh({},a),{containerId:oS.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:o})},r.compileParameters=function(){var e=r.props,t=e.piid,n=e.language,o=e.country,a=e.partner,s=e.type,l=e.sessionId;return{options:{},piResourceInfo:{id:t,parameters:{language:n,market:o,partner:a},resourceType:oS.ResourceType},riskChallengeData:[s],sessionId:l}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=(e.onSuccess,e.onCancel);return{callbacks:{success:r.onSuccess,failure:r.FailureHandler,gohome:t}}},r.onSuccess=function(e){var n=r.props;(0,n.onSuccess)(n.type===t.RiskPurchaseType.SMS?{challengeType:t.RiskPurchaseType.SMS}:e)},r.compileCallbacksIn=function(){var e=r.props,n=e.onSuccess,o=e.telemetryLogger,a=e.callbacksIn,s=e.type,l=e.elementFactory,c=oh(oh({},a),{telemetryLogger:o});return(null==l?void 0:l.encryptionHandler)&&(c.encryptionHandler=l.encryptionHandler()),s===t.RiskPurchaseType.CVV&&(c=oh(oh({},c),{submit:function(e){n(null==e?void 0:e.data)}})),c},r.transformPidlString=function(e){return function(t,n){var r=n;return t?t.url?t.url.toLowerCase().includes("challenge/sms/validate")&&"string"==typeof n&&(r={value:n}):e.error(new t4.unexpectedError(t3.inputParameterMissing,["request url"])):e.error(new t4.unexpectedError(t3.inputParameterMissing,["request"])),r}},r.moveNextPage=function(){var e,t;null==(t=null==(e=r.HandleRiskChallengeInternalRef)?void 0:e.current)||t.moveNextPage()},r.movePrevPage=function(){var e,t;null==(t=null==(e=r.HandleRiskChallengeInternalRef)?void 0:e.current)||t.movePrevPage()},r.cancel=function(){var e,t;null==(t=null==(e=r.HandleRiskChallengeInternalRef)?void 0:e.current)||t.cancel()},r.getRef=function(){return r.HandleRiskChallengeInternalRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.RiskChallenge,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this,t=this.state.styleProvider,n=this.props,r=n.authToken,o=n.busyBlockElement,a=n.env,s=n.elementFactory,l=n.pidlsdkMock,c=n.propertyElementRef,u=n.onPageRendered,d=n.telemetryOptions,p=n.headers,f=n.partner,h=this.compileDisplayOptions(),m=this.compileParameters(),g=this.compileReturnOptions(),v=this.compileCallbacksIn();return e6.default.createElement(il.Provider,{value:{styleProvider:t}},e6.default.createElement(is.Consumer,null,function(t){return e6.default.createElement(aG,{busyBlockElement:o,displayOptions:h,parameters:m,env:a,returnOptions:g,userContext:{authToken:r,userId:oS.UserId,additionalHeaders:p},onEvent:e.onEvent,elementFactory:s,pidlsdkMock:l,partner:f,callbacksIn:v,telemetryOptions:d,propertyElementRef:c,onPageRendered:u,transformersIn:{submissionSuccessTransformer:e.transformPidlString(t)},ref:e.HandleRiskChallengeInternalRef})}))},n}(e6.default.Component),aX=function(e){function t(t){var n=e.call(this,t,function(e){return e.listAddress(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)})||this;return n}return of(t,e),t}(a_),aY=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(e,t,n,r,o,a,s){var l={operation:a,scenario:e,type:s||oA.DefaultAddressType,country:t,language:n,partner:r};return o&&(l=oh(oh({},l),o)),l},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.ListAddress,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.partner,c=e.scenario,u=e.elementFactory,d=e.onSuccess,p=e.onFailure,f=e.onCancel,h=e.showSubmitBlock,m=void 0===h||h,g=e.busyBlockShowHideHandler,v=e.pidlsdkMock,y=e.telemetryLogger,b=e.telemetryOptions,x=e.addressType,C=e.propertyElementRef,k=e.onPageRendered,w=e.onEvent,S=e.callbacksIn,_=e.headers,E=e.displayOptions,P=this.state.styleProvider,I=this.compileParameters(c,a,s,l,r,oA.Operation,x),T=this.compileReturnOptions(d,p,f);return e6.default.createElement(il.Provider,{value:{styleProvider:P}},e6.default.createElement(aX,{busyBlockElement:o,displayOptions:oh(oh({},E),{containerId:oA.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:m}),pidlDocInfo:{resourceType:oA.ResourceType,parameters:I},env:n,returnOptions:T,onEvent:w,userContext:{authToken:t,userId:oA.UserId,additionalHeaders:_},elementFactory:u,partner:l,pidlsdkMock:v,callbacksIn:oh(oh({},S),{telemetryLogger:y}),telemetryOptions:b,propertyElementRef:C,onPageRendered:k,ref:this.baseComponentRef}))},n}(e6.default.Component),a$=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectSingleInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)})||this;return n}return of(t,e),t}(a_),aQ=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.parameters,s={operation:oH.Operation,country:t,language:n,partner:o,filters:{id:r.props.paymentInstrument.id}};return a&&(s=oh(oh({},s),a)),s},r.compileReturnOptions=function(){var e=r.props,t=e.onCancel;return{callbacks:{failure:e.onFailure,gohome:t}}},r.eventHandler=function(e,t){var n=r.props,o=n.onChange,a=n.onEvent,s=n.paymentInstrument;e===S.click&&(null==t?void 0:t.id)===oH.ChangeButtonId&&o&&o(s.id),a&&a(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.baseDisabledStyleOverrides,f=o.scenarioDisabledStyleOverrides,h=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.PaymentInstrumentDetails,s,l,c,u,d,null,p,f,h)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.showSubmitBlock,s=void 0===a||a,l=e.busyBlockShowHideHandler,c=e.pidlsdkMock,u=e.telemetryLogger,d=e.telemetryOptions,p=e.propertyElementRef,f=e.onPageRendered,h=e.callbacksIn,m=e.headers,g=e.displayOptions,v=this.state.styleProvider,y=this.compileParameters(),b=this.compileReturnOptions();return e6.default.createElement(il.Provider,{value:{styleProvider:v}},e6.default.createElement(a$,{busyBlockElement:r,displayOptions:oh(oh({},g),{containerId:oH.ContainerId,busyBlockShowHideHandler:l,showSubmitBlock:s}),pidlDocInfo:{resourceType:oH.ResourceType,parameters:y},env:n,returnOptions:b,onEvent:this.eventHandler,userContext:{authToken:t,userId:oH.UserId,additionalHeaders:m},elementFactory:o,pidlsdkMock:c,callbacksIn:oh(oh({},h),{telemetryLogger:u}),telemetryOptions:d,propertyElementRef:p,onPageRendered:f,ref:this.baseComponentRef}))},n}(e6.default.Component),aJ=function(e){function t(t){var n=e.call(this,t,function(e){return e.updateProfile(n.props.resourceInfo,n.props.resource,n.props.pidlDocInfo,n.props.options||{})})||this;return n}return of(t,e),t}(a_),aZ=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compilePidlDocParameters=function(e,t,n,r){var o={operation:oL.Operation,country:e,language:t,partner:n,type:"consumer"};return r&&(o=oh(oh({},o),r)),o},r.compileResourceParameters=function(e,t,n,r){return{country:e,language:t,partner:n,type:"consumer"}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{failure:r.FailureHandler,success:e,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,a=n.viewTermsHandler,s=tv,l=s.eventNames,c=s.CustomTriggerEventConstants;(e===l.triggerEvent&&a&&t.eventName===c.viewTermsTriggered||e===l.navigate&&a&&t.displayId===oR.ViewTermsId)&&a(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.ProfilePrerequisite,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.partner,c=e.elementFactory,u=e.onSuccess,d=e.onFailure,p=e.onCancel,f=e.showSubmitBlock,h=void 0===f||f,m=e.busyBlockShowHideHandler,g=e.pidlsdkMock,v=e.telemetryLogger,y=e.propertyElementRef,b=e.profileId,x=e.onPageRendered,C=e.callbacksIn,k=e.headers,w=e.displayOptions,S=this.state.styleProvider,_=this.compilePidlDocParameters(a,s,l,r),E=this.compileResourceParameters(a,s,l,r),P=this.compileReturnOptions(u,d,p);return e6.default.createElement(il.Provider,{value:{styleProvider:S}},e6.default.createElement(aJ,{busyBlockElement:o,displayOptions:oh(oh({},w),{containerId:oL.ContainerId,busyBlockShowHideHandler:m,showSubmitBlock:h}),pidlDocInfo:{resourceType:oL.ResourceType,parameters:_},resourceInfo:{resourceType:oL.ResourceType,parameters:E,id:b},env:n,returnOptions:P,onEvent:this.onEvent,userContext:{authToken:t,userId:oL.UserId,additionalHeaders:k},elementFactory:c,partner:l,pidlsdkMock:g,callbacksIn:oh(oh({},C),{telemetryLogger:v}),propertyElementRef:y,onPageRendered:x,ref:this.baseComponentRef}))},n}(e6.default.Component),a0=function(e){function t(t){var n=e.call(this,t,function(e){return e.replaceResource(n.props.pidlDocInfo,n.props.intersectingData,n.props.options)})||this;return n}return of(t,e),t}(a_),a1=function(e){function t(t){var n=e.call(this,t,function(e){return e.searchResource({pidlDocInfo:n.props.pidlDocInfo,options:n.props.options})})||this;return n}return of(t,e),t}(a_),a2=te(function(e,t){var n=e9&&e9.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};function r(){return n(this,void 0,void 0,function*(){return new Promise(e=>{let t;if(-1===navigator.userAgent.indexOf("Edg"))return void e([]);let n=()=>{window.dispatchEvent(new CustomEvent("LoadLocalCards",{}))},r=o=>{let{localCards:a}=JSON.parse(o.detail);e(a.map(({cardNumber:e,expMonth:t,expYear:n,cardType:r,name:o,billingAddress:a})=>{var s,l,c,u,d,p,f;return{details:{accountHolderName:o,accountToken:e,paymentMethodType:r,expiryYear:n,expiryMonth:t,cardType:"Credit",address:{first_name:"",last_name:"",address_line1:null!=(s=null==a?void 0:a.addressLine1)?s:"",address_line2:null!=(l=null==a?void 0:a.addressLine2)?l:"",city:null!=(c=null==a?void 0:a.city)?c:"",district:null!=(u=null==a?void 0:a.state)?u:"",region:"",postal_code:null!=(d=null==a?void 0:a.postalCode)?d:"",country:null!=(p=null==a?void 0:a.country)?p:"",phone_number:"",unit_number:null!=(f=null==a?void 0:a.aptNum)?f:""}}}})),clearTimeout(t),window.removeEventListener("BuyNowIsReady",n),window.removeEventListener("LoadLocalCardsFinished",r)};t=setTimeout(()=>{e([]),window.removeEventListener("BuyNowIsReady",n),window.removeEventListener("LoadLocalCardsFinished",r)},500),window.addEventListener("BuyNowIsReady",n),window.addEventListener("LoadLocalCardsFinished",r),window.dispatchEvent(new CustomEvent("IsBuyNowReady",{}))})})}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalCards=void 0,t.getLocalCards=r,t.default={getLocalCards:r}}),a5=e7(a2);a2.getLocalCards;var a4=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectPaymentInstrument(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo,n.props.includePidl)})||this;return n}return of(t,e),t}(a_),a3=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.allowAddNewPaymentMethod=!1,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.getResourceType=function(){return r.props.includePidl?oT.paymentInstrumentList:oT.ResourceType},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.allowedPaymentMethods,s=e.defaultPaymentMethod,l=e.parameters,c=e.sessionId,u=e.orderId,d=e.merchantId,p=e.currency,f=e.filters,h=e.classicProduct,m=e.billableAccountId,g=e.includePidl,v=e.paymentInstrumentSelectedHandler,y=e.onAddNewPaymentMethod,b={allowedPaymentMethods:(null==a?void 0:a.length)?a:oT.AllowedPaymentMethods,operation:oT.Operation,country:t,language:n,partner:o};return b.allowedPaymentMethods.length&&0>b.allowedPaymentMethods.indexOf(oT.addNewPaymentMethodFamily)&&v&&y&&(b.allowedPaymentMethods=ov(ov([],b.allowedPaymentMethods,!0),[oT.addNewPaymentMethodFamily],!1)),c&&(b.sessionId=c),g&&(b.includePidl=g),u&&(b.orderId=u),d&&(b.merchantId=d),p&&(b.currency=p),f&&(b.filters=f),h&&(b.classicProduct=h),m&&(b.billableAccountId=m),s&&(b.defaultPaymentMethod=s),l&&(b=oh(oh({},b),l)),b},r.failureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=e.onCancel,n=e.onSuccess;return{callbacks:{failure:r.failureHandler,success:n,gohome:t}}},r.isCreditCard=function(e){if(null==window?void 0:window.pidlResourceHelpers)return ro.getFunctionExecutionResult({functionName:oP.isCreditCard},{contextData:e})},r.isCreditCardExpired=function(e){if(null==window?void 0:window.pidlResourceHelpers)return ro.getFunctionExecutionResult({functionName:oP.isCreditCardExpired},{contextData:e})},r.onEventInternal=function(e,t){var n=r.props,o=n.onEvent,a=n.paymentInstrumentSelectedHandler,s=n.userPiAvailableCheckHandler;if(e==S.pageRefreshed&&t&&(null==t?void 0:t.pageId)=="noPaymentInstrumentSelectPage"&&(r.setState({userPiExists:!1}),s&&s(r.state.userPiExists)),a&&e===S.resourceSelected){var l=r.getSelectedResource(),c=r.props.onAddNewPaymentMethod;return(r.allowAddNewPaymentMethod||l&&(null==l?void 0:l.paymentMethodType)===oT.preventDefaultSelection||(r.allowAddNewPaymentMethod=!0),l.paymentMethodFamily===oT.addNewPaymentMethodFamily&&r.allowAddNewPaymentMethod&&c)?c():(r.allowAddNewPaymentMethod=!0,a(l))}if(o)return o(e,t)},r.getWalletCards=function(e){return om(r,void 0,void 0,function(){var t,n,r;return og(this,function(o){switch(o.label){case 0:if(!(null==e?void 0:e.getLocalCards))return[3,2];return(n=e.timeout||0)>0&&(t=setTimeout(function(){try{throw Error("Timeout getting wallet cards")}catch(e){clearTimeout(t)}},n)),[4,e.getLocalCards().then(function(e){return e}).catch(function(){return[]})];case 1:return r=o.sent()||[],t&&clearTimeout(t),[2,r];case 2:return[2,[]]}})})},r.getLocalWalletProvider=function(e){return{paymentInstruments:{mergingFunction:"mergeAndFillLocalCards",getDataSource:function(){return r.getWalletCards(e)}}}},r.getRef=function(){return r.baseComponentRef},r.populatePrefillData=function(e){var t,n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C,k,w=null==(t=e.details)?void 0:t.expiryMonth,S=w.startsWith&&w.startsWith("0")?w.substring(1):w;return{accountToken:null==(n=e.details)?void 0:n.accountToken,accountHolderName:null==(r=e.details)?void 0:r.accountHolderName,expiryYear:null==(a=null==(o=e.details)?void 0:o.expiryYear)?void 0:a.toString(),expiryMonth:null==S?void 0:S.toString(),address:{address_line1:null==(l=null==(s=e.details)?void 0:s.address)?void 0:l.address_line1,address_line2:(null==(u=null==(c=e.details)?void 0:c.address)?void 0:u.address_line2)||"",address_line3:(null==(p=null==(d=e.details)?void 0:d.address)?void 0:p.address_line3)||"",city:null==(h=null==(f=e.details)?void 0:f.address)?void 0:h.city,region:(null==(g=null==(m=e.details)?void 0:m.address)?void 0:g.region)||(null==(y=null==(v=e.details)?void 0:v.address)?void 0:y.district),postal_code:null==(x=null==(b=e.details)?void 0:b.address)?void 0:x.postal_code,country:null==(k=null==(C=null==e?void 0:e.details)?void 0:C.address)?void 0:k.country}}},r.getSelectedResource=function(){var e,t,n,o,a,s,l,c,u,d,p,f,h=null==(t=null==(e=r.baseComponentRef)?void 0:e.current)?void 0:t.getSelectedResource(),m=(null==h?void 0:h.instance)||(null==h?void 0:h.paymentInstrumentId)||{},g={id:m.id,paymentMethodFamily:null==(n=m.paymentMethod)?void 0:n.paymentMethodFamily,paymentMethodType:null==(o=m.paymentMethod)?void 0:o.paymentMethodType,displayName:null==(s=null==(a=m.paymentMethod)?void 0:a.display)?void 0:s.name,email:null==(l=m.details)?void 0:l.email,lastFourDigits:null==(c=m.details)?void 0:c.lastFourDigits,isExpired:!!r.isCreditCard(m)&&r.isCreditCardExpired(m),soldToAddressRequired:null==(d=null==(u=m.paymentMethod)?void 0:u.properties)?void 0:d.soldToAddressRequired,properties:null==(p=m.paymentMethod)?void 0:p.properties};return(null==(f=m.details)?void 0:f.isNotSaved)&&(g.isNotSaved=m.details.isNotSaved,g.prefillData=r.populatePrefillData(m)),g};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.baseDisabledStyleOverrides,f=o.scenarioDisabledStyleOverrides,h=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.SelectPaymentInstrument,s,l,c,u,d,null,p,f,h),userPiExists:!0},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.showSubmitBlock,s=void 0===a||a,l=e.busyBlockShowHideHandler,c=e.pidlsdkMock,u=e.telemetryLogger,d=e.actionContext,p=e.telemetryOptions,f=e.pidlPayload,h=e.includePidl,m=e.propertyElementRef,g=(e.onEvent,e.onPageRendered),v=e.headers,y=e.callbacksIn,b=e.walletProvider,x=e.displayOptions,C=e.partner,k=this.state.styleProvider,w=this.compileParameters(),S=this.compileReturnOptions(),_=this.getLocalWalletProvider(null!=b?b:a5),E=this.getResourceType();return e6.default.createElement(il.Provider,{value:{styleProvider:k}},e6.default.createElement(a4,{busyBlockElement:r,displayOptions:oh(oh({},x),{containerId:oT.ContainerId,busyBlockShowHideHandler:l,showSubmitBlock:s}),pidlDocInfo:{resourceType:E,parameters:w},env:n,returnOptions:S,onEvent:this.onEventInternal,userContext:{authToken:t,userId:oT.UserId,additionalHeaders:v},actionContext:d,elementFactory:o,partner:C,pidlsdkMock:c,callbacksIn:oh(oh({},y),{telemetryLogger:u}),telemetryOptions:p,propertyElementRef:m,onPageRendered:g,ref:this.baseComponentRef,includePidl:h,pidlPayload:f,localDataSourceProviders:_}))},n}(e6.default.Component),a6=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectResourceType(n.props.pidlDocInfo,n.props.options)})||this;return n}return of(t,e),t}(a_),a8=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.parameters,s=e.defaultPaymentMethod,l=e.allowedPaymentMethods,c=e.filters,u=e.sessionId,d=e.orderId,p=e.merchantId,f=e.currency,h=e.pmGroupPageId,m={allowedPaymentMethods:(null==l?void 0:l.length)?l:ok.AllowedPaymentMethods,operation:ok.Operation,country:t,language:n,partner:o};return s&&(m.defaultPaymentMethod=s),u&&(m.sessionId=u),d&&(m.orderId=d),p&&(m.merchantId=p),f&&(m.currency=f),c&&(m.filters=c),h&&(m.pmGroupPageId=h),a&&(m=oh(oh({},m),a)),m},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{failure:r.FailureHandler,success:e,gohome:n}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.SelectPaymentMethod,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.showSubmitBlock,u=void 0===c||c,d=e.busyBlockShowHideHandler,p=e.pidlsdkMock,f=e.callbacksIn,h=e.propertyElementRef,m=e.onEvent,g=e.onPageRendered,v=e.telemetryLogger,y=e.headers,b=e.displayOptions,x=e.telemetryOptions,C=e.partner,k=this.state.styleProvider,w=this.compileParameters(),S=this.compileReturnOptions(a,s,l);return e6.default.createElement(il.Provider,{value:{styleProvider:k}},e6.default.createElement(a6,{busyBlockElement:r,displayOptions:oh(oh({},b),{containerId:ok.ContainerId,busyBlockShowHideHandler:d,showSubmitBlock:u,disableFocusOnLoad:this.props.disableFocusOnLoad}),pidlDocInfo:{resourceType:ok.ResourceType,parameters:w},env:n,returnOptions:S,onEvent:m,userContext:{authToken:t,userId:ok.UserId,additionalHeaders:y},elementFactory:o,partner:C,pidlsdkMock:p,callbacksIn:oh(oh({},f),{telemetryLogger:v}),propertyElementRef:h,onPageRendered:g,telemetryOptions:x,ref:this.baseComponentRef}))},n}(e6.default.Component),a9=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)})||this;return n}return of(t,e),t}(a_),a7=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectResourceType(n.props.pidlDocInfo,n.props.options)})||this;return n}return of(t,e),t}(a_),se=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectSingleInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)})||this;return n}return of(t,e),t}(a_),st=function(e){function t(t){var n=e.call(this,t,function(e){return e.showResource({pidlDocInfo:n.props.pidlDocInfo,prefillData:n.props.prefillData,options:n.props.options})})||this;return n}return of(t,e),t}(a_),sn=function(e){function t(t){var n=e.call(this,t,function(e){return e.testHookRenderPidlPage(n.props.pidlDocument,n.props.operation,n.props.pageIndex||0,n.props.prefillData)})||this;return n}return of(t,e),t}(a_),sr=function(e){function t(t){var n=e.call(this,t,function(e){return e.updateResource(n.props.resourceInfo,n.props.resource,n.props.pidlDocInfo,n.props.options||{})})||this;return n}return of(t,e),t}(a_),so=function(e){function t(t){var n=e.call(this,t,function(e){return e.validateAddress(n.props.pidlDocInfo)})||this;return n}return of(t,e),t}(a_);t.ValidateAddressPages=void 0,function(e){e[e.validateAddressPage=0]="validateAddressPage",e[e.editAddressPage=1]="editAddressPage"}(t.ValidateAddressPages||(t.ValidateAddressPages={}));var si=function(e){function n(n){var r=e.call(this,n)||this;return r.baseComponentRef=e6.default.createRef(),r.onValidateAddressEvent=function(e,n){var o=r.props,a=o.onEvent,s=o.currentPageChangeHandler;if(e==S.pageRefreshed){switch(n.pageId){case"addressSuggestionPage1":r.setState({currentPage:t.ValidateAddressPages.validateAddressPage});break;case"addressSuggestionPage2":r.setState({currentPage:t.ValidateAddressPages.editAddressPage})}s&&s(r.state.currentPage)}if(a)return a(e,n)},r.getCurrentPage=function(){return r.state.currentPage},r.getRef=function(){return r.props.pidlSdkRef||r.baseComponentRef},r.state={currentPage:t.ValidateAddressPages.validateAddressPage},r}return of(n,e),n.prototype.compileParameters=function(e,t,n,r,o,a){var s=oh({operation:oE.Operation,type:o},{country:e,language:t,partner:n,addressId:r});return a&&(s=oh(oh({},s),a)),s},n.prototype.render=function(){var e=this.props,t=e.userContext,n=e.env,r=e.parameters,o=e.country,a=e.language,s=e.partner,l=e.addressId,c=e.addressType,u=e.elementFactory,d=e.returnOptions,p=e.pidlSdkRef,f=e.showSubmitBlock,h=void 0===f||f,m=e.busyBlockShowHideHandler,g=(e.onEvent,e.callbacksIn),v=this.compileParameters(o,a,s,l,c,r);return e6.default.createElement(so,{displayOptions:{containerId:oE.ContainerId,busyBlockShowHideHandler:m,showSubmitBlock:h},pidlDocInfo:{resourceType:oE.ResourceType,parameters:v},env:n,returnOptions:d,userContext:t,elementFactory:u,partner:s,ref:p||this.baseComponentRef,onEvent:this.onValidateAddressEvent,callbacksIn:g})},n}(e6.default.Component),sa=function(e){function t(t){var n=e.call(this,t,function(e){return e.validateResource(n.props.pidlDocInfo)})||this;return n}return of(t,e),t}(a_),ss=function(e){function t(t){var n=e.call(this,t,function(e){return e.handleCheckout(n.props.checkoutParams)})||this;return n}return of(t,e),t}(a_),sl=function(e){function t(t){var n=e.call(this,t,function(e){return e.deleteResource({resourceInfo:n.props.resourceInfo,resource:n.props.resource,pidlDocInfo:n.props.pidlDocInfo,options:n.props.options||{}})})||this;return n}return of(t,e),t}(a_),sc=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(e,t,n,r,o,a){return{id:a,resourceType:oN.ResourceType,resourceEndpoint:void 0,parameters:{market:e,language:t,partner:n,family:r,type:o}}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:r.FailureHandler,gohome:t}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.DeletePaymentInstrument,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.paymentInstrumentId,r=e.paymentType,o=e.paymentFamily,a=e.env,s=e.busyBlockElement,l=e.country,c=e.language,u=e.partner,d=e.elementFactory,p=e.onSuccess,f=e.onCancel,h=e.showSubmitBlock,m=void 0===h||h,g=e.busyBlockShowHideHandler,v=e.telemetryLogger,y=e.headers,b=e.callbacksIn,x=e.displayOptions,C=this.state.styleProvider,k=this.compileParameters(l,c,u,o,r,n),w=this.compileReturnOptions(p,f);return e6.default.createElement(il.Provider,{value:{styleProvider:C}},e6.default.createElement(sl,{returnOptions:w,busyBlockElement:s,env:a,options:void 0,resourceInfo:k,partner:u,elementFactory:d,callbacksIn:oh(oh({},b),{telemetryLogger:v}),userContext:{authToken:t,userId:oN.UserId,additionalHeaders:y},displayOptions:oh(oh({},x),{containerId:oN.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:m}),ref:this.baseComponentRef}))},n}(e6.default.Component),su=function(e){function t(t){var n=e.call(this,t,function(e){return e.handlePaymentChallenge(n.props.paymentSessionOrData)})||this;return n}return of(t,e),t}(a_),sd=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock,o=void 0===n||n,a=e.displayOptions;return oh(oh({},a),{containerId:oz.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:o})},r.successHandler=function(e){"Cancelled"===e.challengeStatus||"Unknown"===e.challengeStatus?r.props.onCancel(e):"TimedOut"===e.challengeStatus?r.props.onFailure(e):r.props.onSuccess(e)},r.failureHandler=function(e){var t=null==e?void 0:e.error;r.props.onFailure(null==t?void 0:t.innererror)},r.compileReturnOptions=function(){var e=r.props.onCancel;return{callbacks:{success:r.successHandler,failure:r.failureHandler,gohome:e}}},r.compileCallbacksIn=function(){return{telemetryLogger:r.props.telemetryLogger}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.HandlePaymentChallenge,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.state.styleProvider,t=this.props,n=t.authToken,r=t.busyBlockElement,o=t.env,a=t.elementFactory,s=t.headers,l=t.paymentSessionOrData,c=t.pidlsdkMock,u=t.propertyElementRef,d=t.onEvent,p=t.onPageRendered,f=t.telemetryOptions,h=t.partner,m=this.compileDisplayOptions(),g=this.compileReturnOptions(),v=this.compileCallbacksIn();return e6.default.createElement(il.Provider,{value:{styleProvider:e}},e6.default.createElement(su,{busyBlockElement:r,displayOptions:m,env:o,returnOptions:g,userContext:{authToken:n,userId:oz.UserId,additionalHeaders:s},paymentSessionOrData:l,onEvent:d,partner:h,elementFactory:a,pidlsdkMock:c,callbacksIn:v,telemetryOptions:f,propertyElementRef:u,onPageRendered:p,ref:this.baseComponentRef}))},n}(e6.default.Component);t.AllowedViews=void 0,function(e){e[e.SelectPaymentInstrument=0]="SelectPaymentInstrument",e[e.SelectPaymentMethod=1]="SelectPaymentMethod",e[e.AddPaymentInstrument=2]="AddPaymentInstrument",e[e.EditPaymentInstrument=3]="EditPaymentInstrument"}(t.AllowedViews||(t.AllowedViews={})),t.ManagePaymentInstrumentMode=void 0,function(e){e[e.Select=0]="Select"}(t.ManagePaymentInstrumentMode||(t.ManagePaymentInstrumentMode={}));var sp=function(e){function n(n){var r,o=this;return(o=e.call(this,n)||this).SelectPaymentInstrumentRef=e6.default.createRef(),o.SelectPaymentMethodRef=e6.default.createRef(),o.AddPaymentInstrumentRef=e6.default.createRef(),o.EditPaymentInstrumentRef=e6.default.createRef(),o.setCurrentView=function(){var e=o.props,n=e.pidlPayload,r=e.allowedPaymentMethods;return n&&ri.isArray(r)&&0===r.length?t.AllowedViews.SelectPaymentMethod:t.AllowedViews.SelectPaymentInstrument},o.isCreditCardExpired=function(e){if(null==window?void 0:window.pidlResourceHelpers)return ro.getFunctionExecutionResult({functionName:oP.isCreditCardExpired},{contextData:e})},o.isGiftCard=function(e){if(null==window?void 0:window.pidlResourceHelpers)return ro.getFunctionExecutionResult({functionName:oP.isEwalletStoredValue},{contextData:e})},o.onSelectPIEvent=function(e,n){var r,a,s=o.props,l=s.onEvent,c=s.paymentInstrumentSelectedHandler,u=s.includePidl,d=s.pidlPayload;return c&&e===S.resourceSelected&&o.state.currentView===t.AllowedViews.SelectPaymentInstrument?c(null==(a=null==(r=o.SelectPaymentInstrumentRef)?void 0:r.current)?void 0:a.getSelectedResource()):((u||d)&&e===S.noSelectionOptionsFound&&o.state.currentView===t.AllowedViews.SelectPaymentInstrument&&o.setState({currentView:t.AllowedViews.SelectPaymentMethod}),l)?l(e,n):void 0},o.onSelectPISuccess=function(e){var n,r,a,s=e.instance,l=o.props,c=l.onSuccess,u=l.onFailure,d=l.redeemGiftCardHandler;if(e.resourceActionContext){switch(e.resourceActionContext.action){case"selectResourceType":o.setState({currentView:t.AllowedViews.SelectPaymentMethod});break;case"addResource":o.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument});break;case"editPaymentInstrument":o.setState({paymentFamily:e.resourceActionContext.resource.paymentMethod.paymentMethodFamily,paymentType:e.resourceActionContext.resource.paymentMethod.paymentMethodType,paymentInstrumentId:e.resourceActionContext.resource.id,currentView:t.AllowedViews.EditPaymentInstrument});break;case"updateResource":ri.isString(s)||o.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:s.paymentMethod.paymentMethodFamily,paymentType:s.paymentMethod.paymentMethodType,paymentInstrumentId:s.id});break;default:c(s)}return}if(e.action&&"success"!==ri.toLowerCase(e.action)){switch(e.action){case"selectResourceType":o.setState({currentView:t.AllowedViews.SelectPaymentMethod});break;case"updateResource":ri.isString(s)||o.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:s.paymentMethod.paymentMethodFamily,paymentType:s.paymentMethod.paymentMethodType,paymentInstrumentId:s.id})}return}var p=oD.NewPaymentMethodLink,f=oD.RedeemGiftCardLink,h=oD.ManagePaymentInstrument,m=oD.redeemGiftCardHandlerName;if("string"==typeof s){if(s===p&&o.setState({currentView:t.AllowedViews.SelectPaymentMethod}),s===f)if(d)d();else{var g=null==(r=null==(n=o.SelectPaymentInstrumentRef)?void 0:n.current)?void 0:r.getRef();null==(a=null==g?void 0:g.current)||a.implementationMissing(h,m),u({name:I.missingImplementationError,message:"Implentation of ".concat(null!=m?m:"undefined"," missing in ").concat(h),code:"",type:I.missingImplementationError,debugMessage:""})}}else o.isCreditCardExpired(s)?o.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:s.paymentMethod.paymentMethodFamily,paymentType:s.paymentMethod.paymentMethodType,paymentInstrumentId:s.id}):c(s)},o.onSelectPaymentMethodSuccess=function(e){o.isGiftCard({paymentMethod:{paymentMethodFamily:e.paymentMethodFamily,paymentMethodType:e.paymentMethodType}})?o.onSelectPISuccess({operationType:eL.select,instance:oD.RedeemGiftCardLink}):"windowssettings"===ri.toLowerCase(o.props.partner)&&"credit_card"!==ri.toLowerCase(e.paymentMethodFamily)?(0,o.props.onSuccess)(e):o.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument})},o.onAddPISuccess=function(e){try{var n=e.response;n.piModified=!0,(0,o.props.onSuccess)(n)}catch(e){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument})}},o.onEditPISuccess=function(e){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument});var n=o.props.onUpdateSuccess;if(n)try{var r=e.response;r.piModified=!0,n(r)}catch(e){}},o.cancelSelectPM=function(){o.pmGroupPageId=void 0,o.setState({currentView:t.AllowedViews.SelectPaymentInstrument,pmGroupPageId:o.pmGroupPageId})},o.cancelAddPI=function(){var e=o.props.goToSelectPIOnAddCancel;o.pmGroupPageId=o.state.paymentFamily;var n=e?t.AllowedViews.SelectPaymentInstrument:t.AllowedViews.SelectPaymentMethod;o.setState({currentView:n,pmGroupPageId:o.pmGroupPageId})},o.cancelEditPI=function(){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument})},o.moveNextPage=function(){var e,n,r,a,s,l,c,u,d,p,f,h;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null==(r=null==(n=null==(e=o.SelectPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.moveNextPage();break;case t.AllowedViews.SelectPaymentMethod:null==(l=null==(s=null==(a=o.SelectPaymentMethodRef)?void 0:a.current)?void 0:s.getRef().current)||l.moveNextPage();break;case t.AllowedViews.AddPaymentInstrument:null==(d=null==(u=null==(c=o.AddPaymentInstrumentRef)?void 0:c.current)?void 0:u.getRef().current)||d.moveNextPage();break;case t.AllowedViews.EditPaymentInstrument:null==(h=null==(f=null==(p=o.EditPaymentInstrumentRef)?void 0:p.current)?void 0:f.getRef().current)||h.moveNextPage()}},o.movePrevPage=function(){var e,n,r,a,s,l,c,u,d,p,f,h;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null==(r=null==(n=null==(e=o.SelectPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.movePrevPage();break;case t.AllowedViews.SelectPaymentMethod:null==(l=null==(s=null==(a=o.SelectPaymentMethodRef)?void 0:a.current)?void 0:s.getRef().current)||l.movePrevPage();break;case t.AllowedViews.AddPaymentInstrument:null==(d=null==(u=null==(c=o.AddPaymentInstrumentRef)?void 0:c.current)?void 0:u.getRef().current)||d.movePrevPage();break;case t.AllowedViews.EditPaymentInstrument:null==(h=null==(f=null==(p=o.EditPaymentInstrumentRef)?void 0:p.current)?void 0:f.getRef().current)||h.movePrevPage()}},o.cancel=function(){var e,n,r,a,s,l,c,u,d,p,f,h;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null==(r=null==(n=null==(e=o.SelectPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.cancel();break;case t.AllowedViews.SelectPaymentMethod:null==(l=null==(s=null==(a=o.SelectPaymentMethodRef)?void 0:a.current)?void 0:s.getRef().current)||l.cancel();break;case t.AllowedViews.AddPaymentInstrument:null==(d=null==(u=null==(c=o.AddPaymentInstrumentRef)?void 0:c.current)?void 0:u.getRef().current)||d.cancel();break;case t.AllowedViews.EditPaymentInstrument:null==(h=null==(f=null==(p=o.EditPaymentInstrumentRef)?void 0:p.current)?void 0:f.getRef().current)||h.cancel()}},o.cancelSelectPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.SelectPaymentInstrument&&(null==(r=null==(n=null==(e=o.SelectPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.cancel())},o.cancelOrMovePrevSelectPaymentMethod=function(){var e,n,r;o.state.currentView===t.AllowedViews.SelectPaymentMethod&&(null==(r=null==(n=null==(e=o.SelectPaymentMethodRef)?void 0:e.current)?void 0:n.getRef().current)||r.movePrevPage())},o.cancelAddPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null==(r=null==(n=null==(e=o.AddPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.cancel())},o.cancelEditPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null==(r=null==(n=null==(e=o.EditPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.cancel())},o.submitAddPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null==(r=null==(n=null==(e=o.AddPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.moveNextPage())},o.submitEditPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null==(r=null==(n=null==(e=o.EditPaymentInstrumentRef)?void 0:e.current)?void 0:n.getRef().current)||r.moveNextPage())},o.getCurrentView=function(){return o.state.currentView},o.getSelectedResource=function(){var e,n;if(o.state.currentView===t.AllowedViews.SelectPaymentInstrument)return null==(n=null==(e=o.SelectPaymentInstrumentRef)?void 0:e.current)?void 0:n.getSelectedResource()},o.state={currentView:o.setCurrentView(),paymentFamily:"",paymentType:"",paymentInstrumentId:"",allowedPaymentMethods:o.props.allowedPaymentMethods,selectPMAllowedPaymentMethods:(null==(r=o.props.selectPMAllowedPaymentMethods)?void 0:r.length)>0?o.props.selectPMAllowedPaymentMethods:o.props.allowedPaymentMethods},o.pmGroupPageId=void 0,o}return of(n,e),n.prototype.componentDidMount=function(){this.props.currentViewChangeHandler&&this.props.currentViewChangeHandler(t.AllowedViews.SelectPaymentInstrument)},n.prototype.componentDidUpdate=function(e,t,n){this.props.currentViewChangeHandler&&this.state.currentView!==t.currentView&&this.props.currentViewChangeHandler(this.state.currentView)},n.prototype.render=function(){var e=this.props,n=e.authToken,r=e.env,o=e.parameters,a=e.busyBlockElement,s=e.baseStyleOverrides,l=e.scenarioStyleOverrides,c=e.baseFocusStyleOverrides,u=e.scenarioFocusStyleOverrides,d=e.telemetryLogger,p=e.telemetryOptions,f=e.language,h=e.partner,m=e.elementFactory,g=e.onFailure,v=e.onCancel,y=e.busyBlockShowHideHandler,b=e.redirectionSuccessUrl,x=e.redirectionFailureUrl,C=e.includePidl,k=e.pidlPayload,w=e.actionContext,S=e.pidlsdkMock,_=e.propertyElementRef,E=e.onPageRendered,P=e.onEvent,I=e.completePrerequisites,T=e.viewTermsHandler,D=e.defaultPaymentMethod,A=e.sessionId,R=e.orderId,N=e.merchantId,B=e.currency,M=e.filters,F=e.headers,O=e.walletProvider,L=e.showSubmitBlock,H=void 0===L||L,z=e.displayOptions,V=this.state,U=V.currentView,j=V.paymentFamily,W=V.paymentType,q=V.paymentInstrumentId,G=V.allowedPaymentMethods,K=V.selectPMAllowedPaymentMethods,X=this.props,Y=X.country,Q=X.market;return Y=Y||Q,e6.default.createElement(e6.default.Fragment,null,U===t.AllowedViews.SelectPaymentInstrument&&e6.default.createElement(a3,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:m,authToken:n,env:r,onSuccess:this.onSelectPISuccess,onFailure:g,onCancel:v,busyBlockShowHideHandler:y,busyBlockElement:a,country:Y,language:f,partner:h,parameters:o,pidlsdkMock:S,telemetryLogger:d,telemetryOptions:p,propertyElementRef:_,onPageRendered:E,onEvent:this.onSelectPIEvent,allowedPaymentMethods:G,filters:M,sessionId:A,orderId:R,merchantId:N,currency:B,headers:F,includePidl:C,pidlPayload:k,actionContext:w,showSubmitBlock:H,ref:this.SelectPaymentInstrumentRef,walletProvider:O,displayOptions:z}),U===t.AllowedViews.SelectPaymentMethod&&e6.default.createElement(a8,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:m,authToken:n,env:r,onSuccess:this.onSelectPaymentMethodSuccess,onFailure:g,onCancel:this.cancelSelectPM,busyBlockShowHideHandler:y,busyBlockElement:a,country:Y,language:f,partner:h,parameters:o,pidlsdkMock:S,telemetryLogger:d,telemetryOptions:p,propertyElementRef:_,onPageRendered:E,onEvent:P,defaultPaymentMethod:D,allowedPaymentMethods:K,filters:M,sessionId:A,orderId:R,merchantId:N,currency:B,headers:F,pmGroupPageId:this.pmGroupPageId,showSubmitBlock:H,ref:this.SelectPaymentMethodRef,displayOptions:z}),U===t.AllowedViews.AddPaymentInstrument&&e6.default.createElement(aT,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:m,authToken:n,env:r,onSuccess:this.onAddPISuccess,onFailure:g,onCancel:this.cancelAddPI,busyBlockShowHideHandler:y,busyBlockElement:a,country:Y,language:f,partner:h,paymentFamily:j,paymentType:W,completePrerequisites:I,parameters:o,redirectionSuccessUrl:b,redirectionFailureUrl:x,pidlsdkMock:S,telemetryLogger:d,telemetryOptions:p,propertyElementRef:_,onPageRendered:E,onEvent:P,viewTermsHandler:T,showSubmitBlock:H,headers:"windowssettings"===ri.toLowerCase(this.props.partner)?oh(oh({},F),{"x-ms-flight":"PXUsePartnerSettingsService"}):F,ref:this.AddPaymentInstrumentRef,displayOptions:z}),U===t.AllowedViews.EditPaymentInstrument&&e6.default.createElement(az,{baseStyleOverrides:s,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:u,elementFactory:m,authToken:n,env:r,onSuccess:this.onEditPISuccess,onFailure:g,onCancel:this.cancelEditPI,busyBlockShowHideHandler:y,busyBlockElement:a,country:Y,language:f,partner:h,paymentInstrumentId:q,paymentFamily:j,paymentType:W,parameters:o,pidlsdkMock:S,telemetryLogger:d,telemetryOptions:p,propertyElementRef:_,onPageRendered:E,onEvent:P,viewTermsHandler:T,showSubmitBlock:H,headers:"windowssettings"===ri.toLowerCase(this.props.partner)?oh(oh({},F),{"x-ms-flight":"PXUsePartnerSettingsService"}):F,ref:this.EditPaymentInstrumentRef,displayOptions:z}))},n}(e6.default.Component);!function(e){e[e.ListAddress=0]="ListAddress",e[e.AddNewAddress=1]="AddNewAddress",e[e.EditAddress=2]="EditAddress"}(e1||(e1={})),t.ManageAddressMode=void 0,function(e){e[e.Select=0]="Select",e[e.Edit=1]="Edit"}(t.ManageAddressMode||(t.ManageAddressMode={}));var sf=function(e){function n(n){var r=e.call(this,n)||this;return r.onSuccessWrapper=function(e){"newAddressLink"===e.id&&r.props.onAddNewAddress?r.props.onAddNewAddress(e):"newAddressLink"===e.id?r.setState({currentView:e1.AddNewAddress}):r.shouldOpenEditView(e)?r.setState({currentView:e1.EditAddress,addressId:e.instance.id}):r.props.onSuccess(e)},r.shouldOpenEditView=function(e){var n,o,a=r.props,s=a.mode,l=a.scenario;return s===t.ManageAddressMode.Edit||s===t.ManageAddressMode.Select&&!((null==(n=null==e?void 0:e.instance)?void 0:n.first_name)&&(null==(o=null==e?void 0:e.instance)?void 0:o.last_name))&&l===t.AddressScenario.shipping},r.returnToListView=function(){r.setState({currentView:e1.ListAddress})},r.state={currentView:e1.ListAddress},r}return of(n,e),n.prototype.componentDidUpdate=function(e){var t=this.props,n=t.mode,r=t.scenario,o=t.country,a=t.language,s=t.partner,l=t.addressType;(e.mode!==n||e.scenario!==r||e.country!==o||e.language!==a||e.partner!==s||e.addressType!==l)&&this.setState({currentView:e1.ListAddress})},n.prototype.render=function(){var e=this.props,t=e.baseStyleOverrides,n=e.scenarioStyleOverrides,r=e.baseFocusStyleOverrides,o=e.scenarioFocusStyleOverrides,a=e.telemetryLogger,s=e.telemetryOptions,l=e.authToken,c=e.env,u=e.addressType,d=e.showSubmitBlock,p=void 0===d||d,f=e.busyBlockElement,h=e.country,m=e.language,g=e.partner,v=e.scenario,y=e.elementFactory,b=e.onFailure,x=e.onCancel,C=e.busyBlockShowHideHandler,k=e.pidlsdkMock,w=e.propertyElementRef,S=e.onPageRendered,_=e.onEvent,E=e.viewTermsHandler,P=e.headers,I=e.displayOptions,T=this.state,D=T.addressId,A=T.currentView;return e6.default.createElement(e6.default.Fragment,null,A===e1.ListAddress&&e6.default.createElement(aY,{authToken:l,elementFactory:y,env:c,scenario:v,addressType:u,country:h,language:m,partner:g,onSuccess:this.onSuccessWrapper,onFailure:b,onCancel:x,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockElement:f,busyBlockShowHideHandler:C,pidlsdkMock:k,telemetryLogger:a,telemetryOptions:s,propertyElementRef:w,onPageRendered:S,onEvent:_,headers:P,showSubmitBlock:p,displayOptions:I}),A===e1.AddNewAddress&&e6.default.createElement(aP,{authToken:l,elementFactory:y,env:c,country:h,language:m,partner:g,scenario:v,addressType:u,onSuccess:this.returnToListView,onFailure:b,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockElement:f,busyBlockShowHideHandler:C,pidlsdkMock:k,telemetryLogger:a,telemetryOptions:s,propertyElementRef:w,onPageRendered:S,onEvent:_,viewTermsHandler:E,headers:P,showSubmitBlock:p,displayOptions:I}),A===e1.EditAddress&&e6.default.createElement(aL,{authToken:l,addressId:D,elementFactory:y,env:c,country:h,scenario:v,language:m,partner:g,onSuccess:this.returnToListView,onFailure:b,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockShowHideHandler:C,onPageRendered:S,onEvent:_,viewTermsHandler:E,telemetryLogger:a,telemetryOptions:s,headers:P,showSubmitBlock:p,displayOptions:I}))},n}(e6.default.Component),sh=function(e){function t(t){var n=e.call(this,t,function(e){return e.validateAddress(n.props.pidlDocInfo)})||this;return n}return of(t,e),t}(a_);t.VerifyAddressPages=void 0,function(e){e[e.verifyAddressPage=0]="verifyAddressPage",e[e.editAddressPage=1]="editAddressPage",e[e.noAddressSuggestionsPage=2]="noAddressSuggestionsPage"}(t.VerifyAddressPages||(t.VerifyAddressPages={}));var sm=function(e){function n(n){var r=e.call(this,n)||this;r.VerifyAddressRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.onVerifyAddressEvent=function(e,n){var o=r.props,a=o.onEvent,s=o.currentPageChangeHandler;if(e==S.pageRefreshed)switch(n.pageId){case"addressSuggestionPage1":s&&s(t.VerifyAddressPages.verifyAddressPage);break;case"addressSuggestionPage2":s&&s(t.VerifyAddressPages.editAddressPage);break;case"noAddressSuggestionsPage":s&&s(t.VerifyAddressPages.noAddressSuggestionsPage)}if(a)return a(e,n)},r.moveNextPage=function(){var e,t;null==(t=null==(e=r.VerifyAddressRef)?void 0:e.current)||t.moveNextPage()},r.movePrevPage=function(){var e,t;null==(t=null==(e=r.VerifyAddressRef)?void 0:e.current)||t.movePrevPage()},r.cancel=function(){var e,t;null==(t=null==(e=r.VerifyAddressRef)?void 0:e.current)||t.cancel()},r.submitPage=function(){var e,t;null==(t=null==(e=r.VerifyAddressRef)?void 0:e.current)||t.submitPage()},r.getRef=function(){return r.VerifyAddressRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.VerifyAddress,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.compileParameters=function(e,t,n,r,o,a){var s=oh({operation:oE.Operation,type:o},{country:e,language:t,partner:n,addressId:r});return a&&(s=oh(oh({},s),a)),s},n.prototype.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:t,gohome:n}}},n.prototype.render=function(){var e=this.props,t=e.env,n=e.parameters,r=e.country,o=e.language,a=e.partner,s=e.addressId,l=e.addressType,c=e.elementFactory,u=e.busyBlockElement,d=e.showSubmitBlock,p=void 0===d||d,f=e.busyBlockShowHideHandler,h=(e.onEvent,e.callbacksIn,e.onSuccess),m=e.onFailure,g=e.onCancel,v=e.headers,y=e.telemetryLogger,b=e.propertyElementRef,x=e.onPageRendered,C=e.pidlsdkMock,k=e.authToken,w=e.displayOptions,S=this.state.styleProvider,_=this.compileParameters(r,o,a,s,l,n),E=this.compileReturnOptions(h,m,g);return e6.default.createElement(il.Provider,{value:{styleProvider:S}},e6.default.createElement(sh,{busyBlockElement:u,displayOptions:oh(oh({},w),{containerId:oE.ContainerId,busyBlockShowHideHandler:f,showSubmitBlock:p}),pidlDocInfo:{resourceType:oE.ResourceType,parameters:_},env:t,returnOptions:E,onEvent:this.onVerifyAddressEvent,userContext:{authToken:k,userId:oE.UserId,additionalHeaders:v},elementFactory:c,pidlsdkMock:C,callbacksIn:{telemetryLogger:y},propertyElementRef:b,onPageRendered:x,ref:this.VerifyAddressRef}))},n}(e6.default.Component),sg=function(e){function t(t){var n=e.call(this,t,function(e){return e.redeemMSRewards(n.props.pidlDocInfo)})||this;return n}return of(t,e),t}(a_),sv=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileRewardsContextData=function(e,t){return{orderAmount:e,currency:t}},r.compileParameters=function(e,t,n,o,a,s){var l=r.compileRewardsContextData(a,s),c={country:e,language:t,partner:n,type:r.getResourceType(),rewardsContextData:l};return o&&(c=oh(oh({},c),o)),c},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,a=oh({},o);return t&&(a.telemetryLogger=t),(null==n?void 0:n.encryptionHandler)&&(a.encryptionHandler=n.encryptionHandler()),a},r.getResourceType=function(){return oM.ResourceType},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.RedeemMSRewards,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,a=e.country,s=e.language,l=e.partner,c=e.elementFactory,u=e.onSuccess,d=e.onFailure,p=e.onCancel,f=e.onEvent,h=e.showSubmitBlock,m=void 0===h||h,g=e.busyBlockShowHideHandler,v=e.pidlsdkMock,y=(e.telemetryLogger,e.telemetryOptions),b=e.propertyElementRef,x=e.onPageRendered,C=e.headers,k=e.orderAmount,w=e.currency,S=e.displayOptions,_=this.state.styleProvider,E=this.compileParameters(a,s,l,r,k,w),P=this.compileReturnOptions(u,d,p),I=this.compileCallbacks();return e6.default.createElement(il.Provider,{value:{styleProvider:_}},e6.default.createElement(sg,{busyBlockElement:o,displayOptions:oh(oh({},S),{containerId:oM.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:m}),pidlDocInfo:{resourceType:this.getResourceType(),parameters:E},env:n,returnOptions:P,userContext:{authToken:t,userId:oM.UserId,additionalHeaders:C},onEvent:f,elementFactory:c,pidlsdkMock:v,callbacksIn:I,telemetryOptions:y,propertyElementRef:b,onPageRendered:x,ref:this.baseComponentRef}))},n}(e6.default.Component),sy=function(e){function t(t){var n=e.call(this,t,function(e){return e.searchTransactions({pidlDocInfo:n.props.pidlDocInfo,options:n.props.options})})||this;return n}return of(t,e),t}(a_),sb=function(e){function t(t){return e.call(this,t,function(e){return e.offerResource({pidlDocInfo:t.pidlDocInfo})})||this}return of(t,e),t}(a_),sx=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,a=e.parameters,s=e.scenario,l={operation:oO.Operation,country:t,language:n,partner:o,scenario:s};return a&&(l=oh(oh({},l),a)),l},r.compileReturnOptions=function(e,t,n,r){return{urls:r,callbacks:{success:e,failure:t,gohome:n}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.OfferPaymentInstrument,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,u=e.showSubmitBlock,d=void 0===u||u,p=e.busyBlockShowHideHandler,f=e.pidlsdkMock,h=e.telemetryOptions,m=e.propertyElementRef,g=e.onEvent,v=e.onPageRendered,y=e.headers,b=e.useWebView2,x=e.displayOptions,C=e.partner,k=this.state.styleProvider,w=this.compileParameters(),S=this.compileReturnOptions(a,s,l,c);return e6.default.createElement(il.Provider,{value:{styleProvider:k}},e6.default.createElement(sb,{busyBlockElement:r,displayOptions:oh(oh({},x),{containerId:oO.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:d,useWebView2:b}),pidlDocInfo:{resourceType:oO.ResourceType,parameters:w},env:n,returnOptions:S,onEvent:g,userContext:{authToken:t,userId:oO.UserId,additionalHeaders:y},elementFactory:o,partner:C,pidlsdkMock:f,telemetryOptions:h,propertyElementRef:m,onPageRendered:v,ref:this.baseComponentRef}))},n}(e6.default.Component),sC=function(e){function t(t){var n=e.call(this,t,function(e){return e.selectMSRewards(n.props.pidlDocInfo)})||this;return n}return of(t,e),t}(a_),sk=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=e6.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,a=n.partner,s=n.baseStyleOverrides,l=n.scenarioStyleOverrides,c=n.baseFocusStyleOverrides,u=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,p=n.scenarioDisabledStyleOverrides,f=n.telemetryLogger,h=(null==o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,c,u,null,d,p,f);r.setState({styleProvider:h})},r.compileRewardsContextData=function(e,t){return{orderAmount:e,currency:t}},r.getResourceType=function(){return oI.ResourceType},r.compileParameters=function(){var e=r.props,t=e.country,n=e.currency,o=e.language,a=e.orderAmount,s=e.partner,l=e.parameters,c=e.scenario,u=r.compileRewardsContextData(a,n),d={operation:oO.Operation,country:t,language:o,partner:s,rewardsContextData:u,scenario:c,type:r.getResourceType()};return l&&(d=oh(oh({},d),l)),d},r.compileReturnOptions=function(e,t,n,r){return{urls:r,callbacks:{success:e,failure:t,gohome:n}}},r.onEventInternal=function(e,t){var n=r.props,o=n.onEvent,a=n.onMSRewardsSelectionChange;if(a&&(e===S.pageRendered||e===S.pageRefreshed)&&r.baseComponentRef&&r.baseComponentRef.current&&r.baseComponentRef.current.getPidlPayload&&r.baseComponentRef.current.getPidlPayload().then(function(e){e&&e.payload&&e.payload.data&&a(e.payload.data)}),o)return o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,a=o.elementFactory,s=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,u=o.baseFocusStyleOverrides,d=o.scenarioFocusStyleOverrides,p=o.telemetryLogger;return r.state={styleProvider:(null==a?void 0:a.initializeStyles)&&a.initializeStyles(t.AppScenario.SelectMSRewards,s,l,c,u,d,null,null,null,p)},r}return of(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null==(e=this.props.elementFactory)?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null==(e=this.onAppThemeChangeHandlerRegistration)||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,a=e.onSuccess,s=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,u=e.showSubmitBlock,d=void 0===u||u,p=e.busyBlockShowHideHandler,f=e.pidlsdkMock,h=e.telemetryOptions,m=e.propertyElementRef,g=(e.onEvent,e.onPageRendered),v=e.headers,y=e.useWebView2,b=e.displayOptions,x=this.state.styleProvider,C=this.compileParameters(),k=this.compileReturnOptions(a,s,l,c);return e6.default.createElement(il.Provider,{value:{styleProvider:x}},e6.default.createElement(sC,{busyBlockElement:r,displayOptions:oh(oh({},b),{containerId:oI.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:d,useWebView2:y}),pidlDocInfo:{resourceType:oI.ResourceType,parameters:C},env:n,returnOptions:k,onEvent:this.onEventInternal,userContext:{authToken:t,userId:oI.UserId,additionalHeaders:v},elementFactory:o,pidlsdkMock:f,telemetryOptions:h,propertyElementRef:m,onPageRendered:g,ref:this.baseComponentRef}))},n}(e6.default.Component),sw=function(e){function t(t){var n=e.call(this,t,function(e){return e.expressCheckout(n.props.pidlDocInfo)})||this;return n}return of(t,e),t}(a_);t.AddAddress=aP,t.AddAddressConstants=oC,t.AddPaymentInstrument=aT,t.AddPaymentInstrumentConstants=oR,t.AddPaymentInstrumentInternal=aI,t.AddResource=aR,t.ApplyPaymentInstrument=aA,t.ApplyPaymentInstrumentConstants=oF,t.ApplyPaymentInstrumentInternal=aD,t.ApplyResource=aN,t.Audio=iW,t.AudioInner=ij,t.BodyBlock=i0,t.Button=iE,t.ButtonInner=i_,t.ButtonList=iD,t.ButtonListElement=iI,t.ButtonListElementInner=iP,t.ButtonListInner=iT,t.Captcha=iU,t.CaptchaInner=iV,t.CheckBox=iR,t.CheckBoxInner=iA,t.ConfirmPayment=aM,t.ConfirmPaymentConstants=o_,t.ConfirmPaymentInternal=aB,t.CreatePaymentSession=aF,t.DefaultExpressCheckoutButtonElement=i$,t.DefaultIFrameElement=iv,t.DeletePaymentInstrument=sc,t.DeletePaymentInstrumentConstants=oN,t.DeleteResource=sl,t.Dropdown=iO,t.EditAddress=aL,t.EditAddressConstants=ow,t.EditPaymentInstrument=az,t.EditPaymentInstrumentConstants=oB,t.Error=im,t.ExpressCheckout=aW,t.ExpressCheckoutButtonElement=iJ,t.ExpressCheckoutButtonElementInner=iQ,t.ExpressCheckoutConstants=oV,t.ExpressCheckoutInternal=aj,t.FilePicker=iS,t.FundStoredValue=aV,t.Group=iH,t.GroupError=iL,t.GroupLabel=iB,t.GroupLabelInner=iN,t.HandleCheckout=ss,t.HandleIndia3DSChallenge=sd,t.HandleIndia3DSChallengeConstants=oz,t.HandleIndia3DSChallengeInternal=su,t.HandlePaymentChallenge=aU,t.HandlePurchaseRiskChallenge=aq,t.HandleRiskChallenge=aK,t.HandleRiskChallengeConstants=oS,t.HandleRiskChallengeInternal=aG,t.Heading=i5,t.HeadingInner=i2,t.HelpDialog=iw,t.HelpDialogInner=ik,t.Hyperlink=iq,t.IFrameElement=ib,t.IFrameElementInner=iy,t.Image=iG,t.ListAddress=aY,t.ListAddressConstants=oA,t.LogoElement=iK,t.ManageAddress=sf,t.ManagePaymentInstrument=sp,t.ManagePaymentInstrumentConstants=oD,t.Modal=iF,t.ModalInner=iM,t.OfferPaymentInstrument=sx,t.OfferPaymentInstrumentConstants=oO,t.OfferPaymentInstrumentInternal=sb,t.PageAlert=ig,t.PageErrorBlock=iZ,t.PaymentInstrumentDetails=aQ,t.PaymentInstrumentDetailsConstants=oH,t.PaymentInstrumentDetailsInternal=a$,t.PidlComponent=aS,t.PidlDocBuilder=an,t.PidlInstance=ae,t.PidlPropertyBuilder=ao,t.PrefillCheckBox=aa,t.PrefillCheckBoxInner=ai,t.ProfilePrerequisite=aZ,t.ProfilePrerequisiteConstants=oL,t.PropertyLabel=iC,t.PropertyLabelInner=ix,t.QuickPayment=sw,t.Radio=i1,t.RedeemMSRewards=sv,t.RedeemMSRewardsConstants=oM,t.RedeemMSRewardsInternal=sg,t.ReplaceResource=a0,t.ResourceHelpersConstants=oP,t.RiskChallengeConstants=oU,t.SearchResource=a1,t.SearchTransactions=sy,t.SelectMSRewards=sk,t.SelectMSRewardsConstants=oI,t.SelectPaymentInstrument=a3,t.SelectPaymentInstrumentConstants=oT,t.SelectPaymentMethod=a8,t.SelectPaymentMethodConstants=ok,t.SelectPaymentMethodInternal=a6,t.SelectResource=a9,t.SelectResourceType=a7,t.SelectSingleResource=se,t.ShowResource=st,t.StyleProviderContext=il,t.SubHeading=i3,t.SubHeadingInner=i4,t.TestHookRenderPidl=sn,t.Text=i8,t.TextBox=i7,t.TextGroup=iz,t.TextInner=i6,t.UpdateResource=sr,t.ValidateAddress=si,t.ValidateAddressConstants=oE,t.ValidateResource=sa,t.VerifyAddress=sm,t.defaultEnvironment=ox,t.getClassNamesFromStyleHints=iu,t.getHtmlAttributesFromTags=ih,t.getPidlReactCustomProps=id,t.getTagClassNames=ic,t.pidl=od,t.pidlReactClassPrefix=oy,t.shouldHideInlineError=ip,t.startsWith=ob},79284(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}},19949(e,t,n){"use strict";n.d(t,{s:()=>o});var r=n(10816);function o(e,t,n){void 0===n&&(n=!0);var o=!1;if(e&&t)if(n)if(e===t)o=!0;else for(o=!1;t;){var a=(0,r.P)(t);if(a===e){o=!0;break}t=a}else e.contains&&(o=e.contains(t));return o}},29989(e,t,n){"use strict";n.d(t,{w:()=>o});var r=n(10816);function o(e,t){return e&&e!==document.body?t(e)?e:o((0,r.P)(e),t):null}},10816(e,t,n){"use strict";n.d(t,{P:()=>a});var r=n(45231);function o(e){var t;return e&&(0,r.q)(e)&&(t=e._virtual.parent),t}function a(e,t){return void 0===t&&(t=!0),e&&(t&&o(e)||e.parentNode&&e.parentNode)}},45231(e,t,n){"use strict";function r(e){return e&&!!e._virtual}n.d(t,{q:()=>r})},86881(e,t,n){"use strict";n.d(t,{s:()=>a});var r=n(29989),o=n(74052);function a(e,t){var n=(0,r.w)(e,function(e){return t===e||e.hasAttribute(o.r)});return null!==n&&n.hasAttribute(o.r)}},74052(e,t,n){"use strict";n.d(t,{V:()=>o,r:()=>r});var r="data-portal-element";function o(e){e.setAttribute(r,"true")}},85067(e,t,n){"use strict";n.d(t,{v:()=>I});var r=n(82540);function o(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('".concat(e,"fabric-icons-a13498cf.woff') format('woff')")},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};(0,r.K1)(n,t)}function a(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('".concat(e,"fabric-icons-0-467ee27f.woff') format('woff')")},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};(0,r.K1)(n,t)}function s(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('".concat(e,"fabric-icons-1-4d521695.woff') format('woff')")},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};(0,r.K1)(n,t)}function l(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('".concat(e,"fabric-icons-2-63c99abf.woff') format('woff')")},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};(0,r.K1)(n,t)}function c(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('".concat(e,"fabric-icons-3-089e217a.woff') format('woff')")},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};(0,r.K1)(n,t)}function u(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('".concat(e,"fabric-icons-4-a656cc0a.woff') format('woff')")},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};(0,r.K1)(n,t)}function d(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('".concat(e,"fabric-icons-5-f95ba260.woff') format('woff')")},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};(0,r.K1)(n,t)}function p(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('".concat(e,"fabric-icons-6-ef6fd590.woff') format('woff')")},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};(0,r.K1)(n,t)}function f(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('".concat(e,"fabric-icons-7-2b97bb99.woff') format('woff')")},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};(0,r.K1)(n,t)}function h(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('".concat(e,"fabric-icons-8-6fdf1528.woff') format('woff')")},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};(0,r.K1)(n,t)}function m(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('".concat(e,"fabric-icons-9-c6162b42.woff') format('woff')")},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};(0,r.K1)(n,t)}function g(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('".concat(e,"fabric-icons-10-c4ded8e4.woff') format('woff')")},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};(0,r.K1)(n,t)}function v(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('".concat(e,"fabric-icons-11-2a8393d6.woff') format('woff')")},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};(0,r.K1)(n,t)}function y(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('".concat(e,"fabric-icons-12-7e945a1e.woff') format('woff')")},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};(0,r.K1)(n,t)}function b(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('".concat(e,"fabric-icons-13-c3989a02.woff') format('woff')")},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};(0,r.K1)(n,t)}function x(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('".concat(e,"fabric-icons-14-5cf58db8.woff') format('woff')")},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};(0,r.K1)(n,t)}function C(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('".concat(e,"fabric-icons-15-3807251b.woff') format('woff')")},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};(0,r.K1)(n,t)}function k(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('".concat(e,"fabric-icons-16-9cf93f3b.woff') format('woff')")},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};(0,r.K1)(n,t)}function w(e,t){void 0===e&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('".concat(e,"fabric-icons-17-0c4ed701.woff') format('woff')")},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};(0,r.K1)(n,t)}var S=function(){(0,r.aH)("trash","delete"),(0,r.aH)("onedrive","onedrivelogo"),(0,r.aH)("alertsolid12","eventdatemissed12"),(0,r.aH)("sixpointstar","6pointstar"),(0,r.aH)("twelvepointstar","12pointstar"),(0,r.aH)("toggleon","toggleleft"),(0,r.aH)("toggleoff","toggleright")},_=n(46330);(0,n(57289).v)("@fluentui/font-icons-mdl2","8.5.25");var E="".concat(r.pD,"/assets/icons/"),P=(0,_.z)();function I(e,t){var n,r;void 0===e&&(e=(null==(n=null==P?void 0:P.FabricConfig)?void 0:n.iconBaseUrl)||(null==(r=null==P?void 0:P.FabricConfig)?void 0:r.fontBaseUrl)||E),[o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C,k,w].forEach(function(n){return n(e,t)}),S()}},42921(e,t,n){"use strict";n.d(t,{a:()=>d});var r=n(55478),o=n(40887),a=n(82540),s=n(68578),l=n(59980),c=n(89123),u=n(48334);function d(e,t){void 0===t&&(t={});var n=t.factoryOptions,a=(void 0===n?{}:n).defaultProp,l=function(n){var a=h(t.displayName,o.useContext(s.z),t.fields),l=t.state;l&&(n=(0,r.__assign)((0,r.__assign)({},n),l(n)));var c=n.theme||a.theme,u=f(n,c,t.tokens,a.tokens,n.tokens),d=p(n,c,u,t.styles,a.styles,n.styles);return e((0,r.__assign)((0,r.__assign)({},n),{styles:d,tokens:u,_defaultStyles:d,theme:c}))};return l.displayName=t.displayName||e.name,a&&(l.create=(0,c.Bw)(l,{defaultProp:a})),(0,u.k)(l,t.statics),l}function p(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return a.TW.apply(void 0,r.map(function(r){return"function"==typeof r?r(e,t,n):r}))}function f(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];for(var a={},s=0,l=n;s<l.length;s++){var c=l[s];c&&(Array.isArray(c="function"==typeof c?c(e,t):c)&&(c=f.apply(void 0,(0,r.__spreadArray)([e,t],c,!1))),(0,u.k)(a,c))}return a}function h(e,t,n){var r=["theme","styles","tokens"];return l.X.getSettings(n||r,e,t.customizations)}},89123(e,t,n){"use strict";n.d(t,{Bw:()=>d,Sk:()=>f,WL:()=>u});var r=n(55478),o=n(40887),a=n(7380),s=n(4825),l=n(35523),c=n(48334);function u(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var s=e;return s.isSlot?s(0===(n=o.Children.toArray(n)).length?t:(0,r.__assign)((0,r.__assign)({},t),{children:n})):o.createElement.apply(o,(0,r.__spreadArray)([e,t],n,!1))}function d(e,t){void 0===t&&(t={});var n=t.defaultProp,a=void 0===n?"children":n;return function(t,n,s,l,c){if(o.isValidElement(n))return n;var u=m(l,c,t,h(a,n));if(s){if(s.component){var d=s.component;return o.createElement(d,(0,r.__assign)({},u))}if(s.render)return s.render(u,e)}return o.createElement(e,(0,r.__assign)({},u))}}var p=(0,s.J9)(function(e){return d(e)});function f(e,t){var n={},r=e,o=function(e){if(t.hasOwnProperty(e)){var o=function(n){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];if(o.length>0)throw Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return g(t[e],n,r[e],r.slots&&r.slots[e],r._defaultStyles&&r._defaultStyles[e],r.theme)};o.isSlot=!0,n[e]=o}};for(var a in t)o(a);return n}function h(e,t){var n,r;return"string"==typeof t||"number"==typeof t||"boolean"==typeof t?((n={})[e]=t,r=n):r=t,r}function m(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},s=[],u=0,d=n;u<d.length;u++){var p=d[u];s.push(p&&p.className),(0,c.k)(o,p)}return o.className=(0,a.e)([e,s],{rtl:(0,l.jI)(t)}),o}function g(e,t,n,r,o,a){return void 0!==e.create?e.create(t,n,r,o):p(e)(t,n,r,o,a)}},48334(e,t,n){"use strict";n.d(t,{k:()=>r});var r=n(55478).__assign},58600(e,t,n){"use strict";var r;function o(e){r!==e&&(r=e)}function a(){return void 0===r&&(r="u">typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),r}function s(){return{rtl:a()}}n.d(t,{DU:()=>o,Iy:()=>s}),r=a()},59248(e,t,n){"use strict";n.d(t,{n:()=>p});var r,o=n(55478),a=0,s=1,l=2,c="__stylesheet__",u="u">typeof navigator&&/rv:11.0/.test(navigator.userAgent),d={};try{d=window||{}}catch(e){}var p=function(){function e(e,t){var n,r,l,c,u,d;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,o.__assign)({injectionMode:"u"<typeof document?a:s,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!=(n=null==t?void 0:t.classNameToArgs)?n:this._classNameToArgs,this._counter=null!=(r=null==t?void 0:t.counter)?r:this._counter,this._keyToClassName=null!=(c=null!=(l=this._config.classNameCache)?l:null==t?void 0:t.keyToClassName)?c:this._keyToClassName,this._preservedRules=null!=(u=null==t?void 0:t.preservedRules)?u:this._preservedRules,this._rules=null!=(d=null==t?void 0:t.rules)?d:this._rules}return e.getInstance=function(){if(!(r=d[c])||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var t=(null==d?void 0:d.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);r=n,d[c]=n}return r},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=(0,o.__assign)((0,o.__assign)({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter(function(t){return t!==e})}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter(function(t){return t!==e})}},e.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=n!==a?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case s:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case l:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach(function(e){return e()})},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(e){return e()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return!this._styleElement&&"u">typeof document&&(this._styleElement=this._createStyleElement(),u||window.requestAnimationFrame(function(){e._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}()},86482(e,t,n){"use strict";n.d(t,{T:()=>o});var r=n(55478);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},a={},s=0,l=e;s<l.length;s++){var c=l[s];if(c){for(var u in c)if(c.hasOwnProperty(u)){if("subComponentStyles"===u&&void 0!==c.subComponentStyles){var d=c.subComponentStyles;for(var p in d)d.hasOwnProperty(p)&&(a.hasOwnProperty(p)?a[p].push(d[p]):a[p]=[d[p]]);continue}var f=n[u],h=c[u];void 0===f?n[u]=h:n[u]=(0,r.__spreadArray)((0,r.__spreadArray)([],Array.isArray(f)?f:[f],!0),Array.isArray(h)?h:[h],!0)}}}if(Object.keys(a).length>0){n.subComponentStyles={};var m=n.subComponentStyles,g=function(e){if(a.hasOwnProperty(e)){var t=a[e];m[e]=function(e){return o.apply(void 0,t.map(function(t){return"function"==typeof t?t(e):t}))}}};for(var p in a)g(p)}return n}},8754(e,t,n){"use strict";n.d(t,{p:()=>o});var r=n(86482);function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=[],a=0,s=t;a<s.length;a++){var l=s[a];l&&o.push("function"==typeof l?l(e):l)}return 1===o.length?o[0]:o.length?r.T.apply(void 0,o):{}}},658(e,t,n){"use strict";n.d(t,{h:()=>o});var r=n(59248);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],o=[],a=r.n.getInstance();function s(e){for(var t=0,r=e;t<r.length;t++){var l=r[t];if(l)if("string"==typeof l)if(l.indexOf(" ")>=0)s(l.split(" "));else{var c=a.argsFromClassName(l);c?s(c):-1===n.indexOf(l)&&n.push(l)}else Array.isArray(l)?s(l):"object"==typeof l&&o.push(l)}}return s(e),{classes:n,objects:o}}},66180(e,t,n){"use strict";n.d(t,{n:()=>s});var r=n(58600),o=n(59248),a=n(71970);function s(e){var t=o.n.getInstance(),n=(0,a.bz)((0,r.Iy)(),e);if(!t.classNameFromKey(n)){var s=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(s,n,[],["font-face",n])}}},96547(e,t,n){"use strict";n.d(t,{i:()=>s});var r=n(58600),o=n(59248),a=n(71970);function s(e){var t=o.n.getInstance(),n=[];for(var s in e)e.hasOwnProperty(s)&&n.push(s,"{",(0,a.bz)((0,r.Iy)(),e[s]),"}");var l=n.join(""),c=t.classNameFromKey(l);if(c)return c;var u=t.getClassName();return t.insertRule("@keyframes ".concat(u,"{").concat(l,"}"),!0),t.cacheClassName(u,l,[],["keyframes",l]),u}},35428(e,t,n){"use strict";n.d(t,{L:()=>c,l:()=>l});var r=n(86482),o=n(658),a=n(58600),s=n(71970);function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c(e,(0,a.Iy)())}function c(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var a=r.T.apply(void 0,e),l=[];for(var c in a)if(a.hasOwnProperty(c)){if("subComponentStyles"===c){n.subComponentStyles=a.subComponentStyles||{};continue}var u=a[c],d=(0,o.h)(u),p=d.classes,f=d.objects;if(null==f?void 0:f.length){var h=(0,s.GJ)(t||{},{displayName:c},f);h&&(l.push(h),n[c]=p.concat([h.className]).join(" "))}else n[c]=p.join(" ")}for(var m=0,g=l;m<g.length;m++){var h=g[m];h&&(0,s.Ae)(h,null==t?void 0:t.specificityMultiplier)}return n}},7380(e,t,n){"use strict";n.d(t,{Z:()=>s,e:()=>l});var r=n(658),o=n(58600),a=n(71970);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(e,(0,o.Iy)())}function l(e,t){var n=e instanceof Array?e:[e],o=(0,r.h)(n),s=o.classes,l=o.objects;return l.length&&s.push((0,a.kG)(t||{},l)),s.join(" ")}},71970(e,t,n){"use strict";n.d(t,{bz:()=>B,kG:()=>O,Ae:()=>F,GJ:()=>M});var r,o,a=n(55478),s=n(59248),l={};function c(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=l[n]=l[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}function u(){var e;if(!r){var t="u">typeof document?document:void 0,n="u">typeof navigator?navigator:void 0,o=null==(e=null==n?void 0:n.userAgent)?void 0:e.toLowerCase();r=t?{isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(o&&o.indexOf("firefox")>-1),isOpera:!!(o&&o.indexOf("opera")>-1),isMs:!!(n&&(/rv:11.0/i.test(n.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return r}var d={"user-select":1};function p(e,t){var n=u(),r=e[t];if(d[r]){var o=e[t+1];d[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var f=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function h(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=f.indexOf(n)>-1,a=n.indexOf("--")>-1,s=o||a?"":"px";e[t+1]="".concat(r).concat(s)}}var m="left",g="right",v="@noflip",y=((o={})[m]=g,o[g]=m,o),b={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function x(e,t,n){if(e.rtl){var r=t[n];if(r){var o=t[n+1];if("string"==typeof o&&o.indexOf(v)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(m)>=0)t[n]=r.replace(m,g);else if(r.indexOf(g)>=0)t[n]=r.replace(g,m);else if(String(o).indexOf(m)>=0)t[n+1]=o.replace(m,g);else if(String(o).indexOf(g)>=0)t[n+1]=o.replace(g,m);else if(y[r])t[n]=y[r];else if(b[o])t[n+1]=b[o];else switch(r){case"margin":case"padding":t[n+1]=k(o);break;case"box-shadow":t[n+1]=C(o,0)}}}}function C(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}function k(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}function w(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"	":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}var S="displayName";function _(e){var t=e&&e["&"];return t?t.displayName:void 0}var E=/\:global\((.+?)\)/g;function P(e){if(!E.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map(function(e){return":global(".concat(e.trim(),")")}).join(", ")]);return t.reverse().reduce(function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)},e)}function I(e,t){return e.indexOf(":global(")>=0?e.replace(E,"$1"):0===e.indexOf(":")?t+e:0>e.indexOf("&")?t+" "+e:e}function T(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?D([r],t,n=n+"{"+e):n.indexOf(",")>-1?P(n).split(",").map(function(e){return e.trim()}).forEach(function(n){return D([r],t,I(n,e))}):D([r],t,I(n,e))}function D(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=s.n.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,l=e;a<l.length;a++){var c=l[a];if("string"==typeof c){var u=r.argsFromClassName(c);u&&D(u,t,n)}else if(Array.isArray(c))D(c,t,n);else for(var d in c)if(c.hasOwnProperty(d)){var p=c[d];if("selectors"===d){var f=c.selectors;for(var h in f)f.hasOwnProperty(h)&&T(n,t,h,f[h])}else"object"==typeof p?null!==p&&T(n,t,d,p):void 0!==p&&("margin"===d||"padding"===d?A(o,d,p):o[d]=p)}}return t}function A(e,t,n){var r="string"==typeof n?w(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map(function(e){return e+" !important"})),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function R(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,a=t.__order;o<a.length;o++){var s=a[o];n.push(s);var l=t[s];for(var c in l)l.hasOwnProperty(c)&&void 0!==l[c]&&(r=!0,n.push(c,l[c]))}return r?n.join(""):void 0}function N(e,t){return t<=0?"":1===t?e:e+N(e,t-1)}function B(e,t){if(!t)return"";var n=[];for(var r in t)t.hasOwnProperty(r)&&r!==S&&void 0!==t[r]&&n.push(r,t[r]);for(var o=0;o<n.length;o+=2)c(n,o),h(n,o),x(e,n,o),p(n,o);for(var o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function M(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=D(t),o=R(e,r);if(o){var a=s.n.getInstance(),l={className:a.classNameFromKey(o),key:o,args:t};if(!l.className){l.className=a.getClassName(_(r));for(var c=[],u=0,d=r.__order;u<d.length;u++){var p=d[u];c.push(p,B(e,r[p]))}l.rulesToInsert=c}return l}}function F(e,t){void 0===t&&(t=1);var n=s.n.getInstance(),r=e.className,o=e.key,a=e.args,l=e.rulesToInsert;if(l){for(var c=0;c<l.length;c+=2){var u=l[c+1];if(u){var d=l[c];d=d.replace(/&/g,N(".".concat(e.className),t));var p="".concat(d,"{").concat(u,"}").concat(0===d.indexOf("@")?"}":"");n.insertRule(p)}}n.cacheClassName(r,o,a,l)}}function O(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=M.apply(void 0,(0,a.__spreadArray)([e],t,!1));return r?(F(r,e.specificityMultiplier),r.className):""}},70749(e,t,n){"use strict";n.d(t,{F:()=>o});var r=n(69652);function o(e,t){let{disabled:n,disabledFocusable:o=!1,"aria-disabled":a,onClick:s,onKeyDown:l,onKeyUp:c,...u}=null!=t?t:{},d="string"==typeof a?"true"===a:a,p=n||o||d,f=(0,r.D)(e=>{p?(e.preventDefault(),e.stopPropagation()):null==s||s(e)}),h=(0,r.D)(e=>{if(null==l||l(e),e.isDefaultPrevented())return;let t=e.key;if(p&&("Enter"===t||" "===t)){e.preventDefault(),e.stopPropagation();return}" "===t?e.preventDefault():"Enter"===t&&(e.preventDefault(),e.currentTarget.click())}),m=(0,r.D)(e=>{if(null==c||c(e),e.isDefaultPrevented())return;let t=e.key;if(p&&("Enter"===t||" "===t)){e.preventDefault(),e.stopPropagation();return}" "===t&&(e.preventDefault(),e.currentTarget.click())});if("button"===e||void 0===e)return{...u,disabled:n&&!o,"aria-disabled":!!o||d,onClick:o?void 0:f,onKeyUp:o?void 0:c,onKeyDown:o?void 0:l};{let t=!!u.href,r=t?void 0:"button";!r&&p&&(r="link");let a={role:r,tabIndex:!o&&(t||n)?void 0:0,...u,onClick:f,onKeyUp:m,onKeyDown:h,"aria-disabled":p};return"a"===e&&p&&(a.href=void 0),a}}n(40887)},45467(e,t,n){"use strict";n.d(t,{$:()=>c});var r=n(40887),o=n(94683),a=n(46984),s=n(21608),l=n(84388);let c=r.forwardRef((e,t)=>{let n=(0,a.P)(e,t);return(0,s.B)(n),(0,l.$e)("useButtonStyles_unstable")(n),(0,o.e)(n)});c.displayName="Button"},94683(e,t,n){"use strict";n.d(t,{e:()=>a});var r=n(68839),o=n(61955);let a=e=>{(0,o.C)(e);let{iconOnly:t,iconPosition:n}=e;return(0,r.FD)(e.root,{children:["after"!==n&&e.icon&&(0,r.Y)(e.icon,{}),!t&&e.root.children,"after"===n&&e.icon&&(0,r.Y)(e.icon,{})]})}},46984(e,t,n){"use strict";n.d(t,{P:()=>l}),n(40887);var r=n(70749),o=n(45394),a=n(79847),s=n(26205);let l=(e,t)=>{let{size:n}=(0,s.j)(),{appearance:l="secondary",as:c="button",disabled:u=!1,disabledFocusable:d=!1,icon:p,iconPosition:f="before",shape:h="rounded",size:m=null!=n?n:"medium"}=e,g=o.lq(p,{elementType:"span"});return{appearance:l,disabled:u,disabledFocusable:d,iconPosition:f,shape:h,size:m,iconOnly:!!((null==g?void 0:g.children)&&!e.children),components:{root:"button",icon:"span"},root:o.Gk((0,a.g)(c,(0,r.F)(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:"button"===c?"button":void 0}}),icon:g}}},21608(e,t,n){"use strict";n.d(t,{B:()=>g,h:()=>l});var r=n(93635),o=n(9625),a=n(84782),s=n(95750);let l={root:"fui-Button",icon:"fui-Button__icon"};r.L.strokeWidthThin;let c=(0,o.y)("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),u=(0,o.y)("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),d=(0,a.X)({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),p=(0,a.X)({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",Bm2fdqk:"fuigjrg",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",Bx3q9su:"f4dhi0o",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x",xd2cci:"fequ9m0"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fuigjrg .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4dhi0o:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fequ9m0:hover:active .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),f=(0,a.X)({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),h=(0,a.X)({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),m=(0,a.X)({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),g=e=>{let t=c(),n=u(),r=d(),o=p(),a=f(),g=h(),v=m(),{appearance:y,disabled:b,disabledFocusable:x,icon:C,iconOnly:k,iconPosition:w,shape:S,size:_}=e;return e.root.className=(0,s.z)(l.root,t,y&&r[y],r[_],C&&"small"===_&&r.smallWithIcon,C&&"large"===_&&r.largeWithIcon,r[S],(b||x)&&o.base,(b||x)&&o.highContrast,y&&(b||x)&&o[y],"primary"===y&&a.primary,a[_],a[S],k&&g[_],e.root.className),e.icon&&(e.icon.className=(0,s.z)(l.icon,n,!!e.root.children&&v[w],v[_],e.icon.className)),e}},26205(e,t,n){"use strict";n.d(t,{J:()=>s,j:()=>l});var r=n(40887);let o=r.createContext(void 0),a={},s=o.Provider,l=()=>{var e;return null!=(e=r.useContext(o))?e:a}},35225(e,t,n){"use strict";n.d(t,{q:()=>l});var r=n(24681),o=n(40887),a=n(97967);let s=e=>t=>{let n=o.useRef(t.value),s=o.useRef(0),l=o.useRef();return l.current||(l.current={value:n,version:s,listeners:[]}),(0,r.E)(()=>{n.current=t.value,s.current+=1,(0,a.unstable_runWithPriority)(a.unstable_NormalPriority,()=>{l.current.listeners.forEach(e=>{e([s.current,t.value])})})},[t.value]),o.createElement(e,{value:l.current},t.children)},l=e=>{let t=o.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=s(t.Provider),delete t.Consumer,t}},11479(e,t,n){"use strict";n.d(t,{i:()=>s});var r=n(69652),o=n(24681),a=n(40887);let s=(e,t)=>{let{value:{current:n},version:{current:s},listeners:l}=a.useContext(e),c=t(n),[u,d]=a.useState([n,c]),p=e=>{d(r=>{if(!e)return[n,c];if(e[0]<=s)return Object.is(r[1],c)?r:[n,c];try{if(Object.is(r[0],e[1]))return r;let n=t(e[1]);if(Object.is(r[1],n))return r;return[e[1],n]}catch(e){}return[r[0],r[1]]})};Object.is(u[1],c)||p(void 0);let f=(0,r.D)(p);return(0,o.E)(()=>(l.push(f),()=>{let e=l.indexOf(f);l.splice(e,1)}),[f,l]),u[1]}},4014(e,t,n){"use strict";n.d(t,{Y:()=>a});var r=n(40261),o=n(40887);function a(){var e=o.useRef();return e.current||(e.current=new r.j),o.useEffect(function(){return function(){var t;null==(t=e.current)||t.dispose(),e.current=void 0}},[]),e.current}},32642(e,t,n){"use strict";n.d(t,{C:()=>a});var r=n(40887),o=n(74721);function a(e){var t=r.useState(e),n=t[0],a=t[1];return[n,{setTrue:(0,o.d)(function(){return function(){a(!0)}}),setFalse:(0,o.d)(function(){return function(){a(!1)}}),toggle:(0,o.d)(function(){return function(){a(function(e){return!e})}})}]}},74721(e,t,n){"use strict";n.d(t,{d:()=>o});var r=n(40887);function o(e){var t=r.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}},15994(e,t,n){"use strict";n.d(t,{k:()=>a});var r=n(40887),o=n(74721);function a(e,t,n){var a=r.useState(t),s=a[0],l=a[1],c=(0,o.d)(void 0!==e),u=c?e:s,d=r.useRef(u),p=r.useRef(n);return r.useEffect(function(){d.current=u,p.current=n}),[u,(0,o.d)(function(){return function(e,t){var n="function"==typeof e?e(d.current):e;p.current&&p.current(t,n),c||l(n)}})]}},1369(e,t,n){"use strict";n.d(t,{B:()=>a});var r=n(40887),o=n(78780);function a(e,t){var n=r.useRef(t);return n.current||(n.current=(0,o.O)(e)),n.current}},49122(e,t,n){"use strict";n.d(t,{a:()=>a});var r=n(55478),o=n(40887);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.useCallback(function(t){n.current=t;for(var r=0,o=e;r<o.length;r++){var a=o[r];"function"==typeof a?a(t):a&&(a.current=t)}},(0,r.__spreadArray)([],e,!0));return n}},7061(e,t,n){"use strict";n.d(t,{x:()=>a});var r=n(53325),o=n(40887);function a(e,t,n,a){var s=o.useRef(n);s.current=n,o.useEffect(function(){var n=e&&"current"in e?e.current:e;if(n){var o=(0,r.on)(n,t,function(e){return s.current(e)},a);return o}},[e,t,a])}},98041(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(40887);function o(e){var t=(0,r.useRef)();return(0,r.useEffect)(function(){t.current=e}),t.current}},48891(e,t,n){"use strict";n.d(t,{j:()=>a});var r=n(40887),o=n(74721),a=function(){var e=(0,o.d)({});return r.useEffect(function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++)clearTimeout(n[t])}},[e]),(0,o.d)({setTimeout:function(t,n){var r=setTimeout(t,n);return e[r]=1,r},clearTimeout:function(t){delete e[t],clearTimeout(t)}})}},94265(e,t,n){"use strict";n.d(t,{P:()=>s});var r=n(93367),o=n(40887),a=n(16104);function s(e,t){var n=o.useRef(),s=o.useRef(null),l=(0,a.ox)();if(!e||e!==n.current||"string"==typeof e){var c=null==t?void 0:t.current;if(e)if("string"==typeof e){var u=(0,r.Y)(c);s.current=u?u.querySelector(e):null}else"stopPropagation"in e||"getBoundingClientRect"in e?s.current=e:"current"in e?s.current=e.current:s.current=e;n.current=e}return[s,l]}},72962(e,t,n){"use strict";n.d(t,{i:()=>o});var r=n(40887),o=function(e){var t=r.useRef(e);t.current=e,r.useEffect(function(){return function(){var e;null==(e=t.current)||e.call(t)}},[])}},59777(e,t,n){"use strict";n.d(t,{F:()=>s,U:()=>l});var r=n(40887);let o=r.createContext(void 0),a={},s=o.Provider,l=()=>r.useContext(o)?r.useContext(o):a},76339(e,t,n){"use strict";n.d(t,{BEt:()=>f,Crl:()=>d,EEC:()=>m,NGN:()=>l,Tox:()=>h,_jO:()=>o,gcm:()=>a,nUb:()=>c,oAB:()=>u,xeZ:()=>p,yuG:()=>s});var r=n(12360);let o=(0,r.U)("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),a=(0,r.U)("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),s=(0,r.U)("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),l=(0,r.U)("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),c=(0,r.U)("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),u=(0,r.U)("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),d=(0,r.U)("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),p=(0,r.U)("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),f=(0,r.U)("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),h=(0,r.U)("DismissCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),m=(0,r.U)("DocumentErrorRegular","1em",["M6 2a2 2 0 0 0-2 2v5.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6c-.18.36-.4.7-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM5.5 12a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 1 0v-2a.5.5 0 0 0-.5-.5Zm0 5.13a.62.62 0 1 0 0-1.25.62.62 0 0 0 0 1.24Z"])},23562(e,t,n){"use strict";n.d(t,{$Oq:()=>U,ADj:()=>W,B2S:()=>m,DWd:()=>v,F$H:()=>_,HkI:()=>p,KCz:()=>R,MxQ:()=>A,NUA:()=>h,ORW:()=>w,PM$:()=>O,TNE:()=>b,U$D:()=>C,Vo$:()=>d,X0b:()=>F,X8c:()=>I,Z4e:()=>y,_E3:()=>s,b8q:()=>j,dR_:()=>D,fPq:()=>T,gC_:()=>k,gNc:()=>B,gNt:()=>u,grK:()=>g,hmO:()=>P,jcT:()=>f,lYg:()=>H,mx_:()=>x,nHW:()=>q,nPn:()=>L,omG:()=>z,pfk:()=>G,qXC:()=>a,qvE:()=>o,uO1:()=>l,uOK:()=>M,vsS:()=>S,xmy:()=>E,xo$:()=>V,y3Y:()=>N,yQ7:()=>c,yl$:()=>K});var r=n(12360);let o=(0,r.U)("PresenceAvailable10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm2.1-5.9L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 1.9-1.9a.5.5 0 0 1 .7.71Z"]),a=(0,r.U)("PresenceAvailable10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm6.1-1.6c.2.2.2.5 0 .7L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 1 1 .7-.7l.65.64 1.9-1.9c.2-.19.5-.19.7 0Z"]),s=(0,r.U)("PresenceAvailable12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm2.53-6.72L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22a.75.75 0 0 1 1.06 1.06Z"]),l=(0,r.U)("PresenceAvailable12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Zm7.03-1.78c.3.3.3.77 0 1.06L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22c.3-.3.77-.3 1.06 0Z"]),c=(0,r.U)("PresenceAvailable16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm3.7-9.3-4 4a1 1 0 0 1-1.41 0l-2-2a1 1 0 1 1 1.42-1.4L7 8.58l3.3-3.3a1 1 0 0 1 1.4 1.42Z"]),u=(0,r.U)("PresenceAvailable16Regular","16",["M11.7 6.7a1 1 0 0 0-1.4-1.4L7 8.58l-1.3-1.3a1 1 0 0 0-1.4 1.42l2 2a1 1 0 0 0 1.4 0l4-4ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),d=(0,r.U)("PresenceAvailable20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.2-11.8-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 1 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 1 1 1.4 1.42Z"]),p=(0,r.U)("PresenceAvailable20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm12.2-3.2a1 1 0 0 1 0 1.4l-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 0 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 0 1 1.4 0Z"]),f=(0,r.U)("PresenceAway10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm0-7v1.8l1.35 1.35a.5.5 0 1 1-.7.7l-1.5-1.5A.5.5 0 0 1 4 5V3a.5.5 0 0 1 1 0Z"]),h=(0,r.U)("PresenceAway12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.5-8.75v2.4l1.49 1.28A.75.75 0 1 1 7 8.07l-1.75-1.5A.75.75 0 0 1 5 6V3.25a.75.75 0 0 1 1.5 0Z"]),m=(0,r.U)("PresenceAway16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm.5-11.5v3.02l2.12 1.7a1 1 0 1 1-1.24 1.56l-2.5-2A1 1 0 0 1 6.5 8V4.5a1 1 0 0 1 2 0Z"]),g=(0,r.U)("PresenceAway20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm0-14V9.6l2.7 2.7a1 1 0 0 1-1.4 1.42l-3-3A1 1 0 0 1 8 10V6a1 1 0 1 1 2 0Z"]),v=(0,r.U)("PresenceBlocked10Regular","10",["M10 5A5 5 0 1 0 0 5a5 5 0 0 0 10 0ZM9 5a4 4 0 0 1-6.45 3.16l5.61-5.61C8.69 3.22 9 4.08 9 5ZM7.45 1.84 1.84 7.45a4 4 0 0 1 5.61-5.61Z"]),y=(0,r.U)("PresenceBlocked12Regular","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Zm-1.5 0c0-.97-.3-1.87-.83-2.6L3.39 9.66A4.5 4.5 0 0 0 10.5 6ZM8.6 2.33a4.5 4.5 0 0 0-6.28 6.28l6.29-6.28Z"]),b=(0,r.U)("PresenceBlocked16Regular","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-2 0c0-1.3-.41-2.5-1.1-3.48L4.51 12.9A6 6 0 0 0 14 8Zm-2.52-4.9a6 6 0 0 0-8.37 8.37l8.37-8.36Z"]),x=(0,r.U)("PresenceBlocked20Regular","20",["M20 10a10 10 0 1 0-20 0 10 10 0 0 0 20 0Zm-2 0a8 8 0 0 1-12.9 6.32L16.31 5.09A7.97 7.97 0 0 1 18 10Zm-3.1-6.32L3.69 14.91A8 8 0 0 1 14.91 3.68Z"]),C=(0,r.U)("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0Z"]),k=(0,r.U)("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Z"]),w=(0,r.U)("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Z"]),S=(0,r.U)("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]),_=(0,r.U)("PresenceDnd10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10ZM3.5 4.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1Z"]),E=(0,r.U)("PresenceDnd10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm2 0c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 3 5Z"]),P=(0,r.U)("PresenceDnd12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12ZM3.75 5.25h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5Z"]),I=(0,r.U)("PresenceDnd12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3 6c0-.41.34-.75.75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 3 6Z"]),T=(0,r.U)("PresenceDnd16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16ZM5.25 7h5.5a1 1 0 1 1 0 2h-5.5a1 1 0 1 1 0-2Z"]),D=(0,r.U)("PresenceDnd16Regular","16",["M5.25 7a1 1 0 0 0 0 2h5.5a1 1 0 1 0 0-2h-5.5ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),A=(0,r.U)("PresenceDnd20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20ZM7 9h6a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2Z"]),R=(0,r.U)("PresenceDnd20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm4 0a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"]),N=(0,r.U)("PresenceOffline10Regular","10",["M6.85 3.15c.2.2.2.5 0 .7L5.71 5l1.14 1.15a.5.5 0 1 1-.7.7L5 5.71 3.85 6.85a.5.5 0 1 1-.7-.7L4.29 5 3.15 3.85a.5.5 0 1 1 .7-.7L5 4.29l1.15-1.14c.2-.2.5-.2.7 0ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Zm5-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"]),B=(0,r.U)("PresenceOffline12Regular","12",["M8.03 3.97c.3.3.3.77 0 1.06L7.06 6l.97.97a.75.75 0 0 1-1.06 1.06L6 7.06l-.97.97a.75.75 0 0 1-1.06-1.06L4.94 6l-.97-.97a.75.75 0 0 1 1.06-1.06l.97.97.97-.97c.3-.3.77-.3 1.06 0ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Zm6-4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),M=(0,r.U)("PresenceOffline16Regular","16",["M10.7 5.3a1 1 0 0 1 0 1.4L9.42 8l1.3 1.3a1 1 0 0 1-1.42 1.4L8 9.42l-1.3 1.3a1 1 0 0 1-1.4-1.42L6.58 8l-1.3-1.3a1 1 0 0 1 1.42-1.4L8 6.58l1.3-1.3a1 1 0 0 1 1.4 0ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),F=(0,r.U)("PresenceOffline20Regular","20",["M13.7 6.3a1 1 0 0 1 0 1.4L11.42 10l2.3 2.3a1 1 0 0 1-1.42 1.4L10 11.42l-2.3 2.3a1 1 0 0 1-1.4-1.42L8.58 10l-2.3-2.3a1 1 0 0 1 1.42-1.4L10 8.58l2.3-2.3a1 1 0 0 1 1.4 0ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm10-8a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),O=(0,r.U)("PresenceOof10Regular","10",["M5.35 3.85a.5.5 0 1 0-.7-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7L4.7 5.5h1.8a.5.5 0 1 0 0-1H4.7l.65-.65ZM5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z"]),L=(0,r.U)("PresenceOof12Regular","12",["M6.28 4.53a.75.75 0 0 0-1.06-1.06l-2 2c-.3.3-.3.77 0 1.06l2 2a.75.75 0 0 0 1.06-1.06l-.72-.72h2.69a.75.75 0 1 0 0-1.5h-2.7l.73-.72ZM6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Z"]),H=(0,r.U)("PresenceOof16Regular","16",["M8.2 6.2a1 1 0 1 0-1.4-1.4L4.3 7.3a1 1 0 0 0 0 1.4l2.5 2.5a1 1 0 0 0 1.4-1.4L7.42 9H11a1 1 0 1 0 0-2H7.41l.8-.8ZM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),z=(0,r.U)("PresenceOof20Regular","20",["M10.7 7.7A1 1 0 1 0 9.28 6.3l-3 3a1 1 0 0 0 0 1.41l3 3a1 1 0 1 0 1.42-1.41l-1.3-1.3H13a1 1 0 1 0 0-2H9.4l1.3-1.29ZM10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"]),V=(0,r.U)("PresenceUnknown10Regular","10",["M5 1a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Z"]),U=(0,r.U)("PresenceUnknown12Regular","12",["M6 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Z"]),j=(0,r.U)("PresenceUnknown16Regular","16",["M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Z"]),W=(0,r.U)("PresenceUnknown20Regular","20",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Z"]),q=(0,r.U)("RotateLeft20Filled","20",["M12.39 12a.53.53 0 0 1-.54-.52c0-.29.24-.52.54-.52h.35c1.77 0 3.2-1.08 3.2-2.42 0-1.3-1.35-2.36-3.04-2.42H7.82L9.04 7.3c.2.2.2.53 0 .73a.54.54 0 0 1-.7.05l-.06-.05-2.12-2.08a.51.51 0 0 1 0-.73l2.12-2.08.06-.05c.21-.15.5-.13.7.05.2.2.2.53 0 .74L7.82 5.08h4.92C15.1 5.08 17 6.63 17 8.54S15.1 12 12.74 12h-.35Zm-9-3c-.21 0-.39.17-.39.38v6.87c0 .41.36.75.8.75h12.8a.4.4 0 0 0 .35-.19.37.37 0 0 0-.15-.51L3.6 9.05A.41.41 0 0 0 3.4 9Z"]),G=(0,r.U)("RotateLeft20Regular","20",["M12.39 12a.53.53 0 0 1-.54-.52c0-.29.24-.52.54-.52h.35c1.77 0 3.2-1.08 3.2-2.42 0-1.3-1.35-2.36-3.04-2.42H7.82L9.04 7.3c.2.2.2.53 0 .73a.54.54 0 0 1-.7.05l-.06-.05-2.12-2.08a.51.51 0 0 1 0-.73l2.12-2.08.06-.05c.21-.15.5-.13.7.05.2.2.2.53 0 .74L7.82 5.08h4.92C15.1 5.08 17 6.63 17 8.54S15.1 12 12.74 12h-.35ZM4 10.41V16h10.18L4 10.41ZM3.8 17a.77.77 0 0 1-.8-.75V9.38c0-.21.18-.38.4-.38.07 0 .14.02.2.05l13.2 7.25c.2.1.26.33.15.51a.4.4 0 0 1-.35.19H3.8Z"]),K=(0,r.U)("RotateRight20Regular","20",["M7.61 12c.3 0 .54-.23.54-.52a.53.53 0 0 0-.54-.52h-.35c-1.77 0-3.2-1.08-3.2-2.42 0-1.3 1.35-2.36 3.04-2.42h5.08L10.96 7.3c-.2.2-.2.53 0 .73.2.18.49.2.7.05l.06-.05 2.12-2.08c.21-.2.21-.53 0-.73l-2.12-2.08-.06-.05a.54.54 0 0 0-.7.05c-.2.2-.2.53 0 .74l1.22 1.19H7.26C4.9 5.08 3 6.63 3 8.54S4.9 12 7.26 12h.35ZM16 10.41V16H5.82L16 10.41Zm.2 6.59c.44 0 .8-.34.8-.75V9.38c0-.21-.18-.38-.4-.38a.41.41 0 0 0-.2.05L3.2 16.3a.37.37 0 0 0-.15.51c.07.12.2.19.35.19h12.8Z"])},35797(e,t,n){"use strict";n.d(t,{$97:()=>a,Co_:()=>o});var r=n(12360);let o=(0,r.U)("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),a=(0,r.U)("ZoomIn20Regular","20",["M11.5 8.5A.5.5 0 0 0 11 8H9V6a.5.5 0 0 0-1 0v2H6a.5.5 0 0 0 0 1h2v2a.5.5 0 0 0 1 0V9h2a.5.5 0 0 0 .5-.5ZM8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"])},12360(e,t,n){"use strict";n.d(t,{U:()=>u});var r=n(40887),o=n(59777),a=n(29784),s=n(34893);let l=(0,a.X)({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),c=(e,t)=>{let{title:n,primaryFill:r="currentColor",...a}=e,c={...a,title:void 0,fill:r},u=l(),d=(0,o.U)();return c.className=(0,s.z)(u.root,(null==t?void 0:t.flipInRtl)&&(null==d?void 0:d.textDirection)==="rtl"&&u.rtl,c.className),n&&(c["aria-label"]=n),c["aria-label"]||c["aria-labelledby"]?c.role="img":c["aria-hidden"]=!0,c},u=(e,t,n,o)=>{let a="1em"===t?"20":t,s=r.forwardRef((e,s)=>{let l={...c(e,{flipInRtl:null==o?void 0:o.flipInRtl}),ref:s,width:t,height:t,viewBox:`0 0 ${a} ${a}`,xmlns:"http://www.w3.org/2000/svg"};return r.createElement("svg",l,...n.map(e=>r.createElement("path",{d:e,fill:l.fill})))});return s.displayName=e,s}},40982(e,t,n){"use strict";n.d(t,{ed:()=>s,k1:()=>a,wn:()=>l});let r="u"<typeof window?n.g:window,o="@griffel/",a=function e(e,t){return r[Symbol.for(o+e)]||(r[Symbol.for(o+e)]=t),r[Symbol.for(o+e)]}("DEFINITION_LOOKUP_TABLE",{}),s="data-make-styles-bucket",l=10},34893(e,t,n){"use strict";n.d(t,{z:()=>l});var r=n(40982),o=n(22863),a=n(11718);let s={};function l(){let e=null,t="",n="",l=Array(arguments.length);for(let e=0;e<arguments.length;e++){let o=arguments[e];if("string"==typeof o&&""!==o){let a=o.indexOf("___");if(-1===a)t+=o+" ";else{let s=o.substr(a,r.wn);a>0&&(t+=o.slice(0,a)),n+=s,l[e]=s}}}if(""===n)return t.slice(0,-1);let c=s[n];if(void 0!==c)return t+c;let u=[];for(let t=0;t<arguments.length;t++){let n=l[t];if(n){let t=r.k1[n];t&&(u.push(t[0]),e=t[1])}}let d=Object.assign.apply(Object,[{}].concat(u)),p=(0,a.z)(d,e),f=(0,o.G)(p,e,l);return p=f+" "+p,s[n]=p,r.k1[f]=[d,e],t+p}},11718(e,t,n){"use strict";n.d(t,{N:()=>s,z:()=>a});var r=n(40982),o=n(22863);function a(e,t){let n="";for(let r in e){let o=e[r];if(o){let e=Array.isArray(o);"rtl"===t?n+=(e?o[1]:o)+" ":n+=(e?o[0]:o)+" "}}return n.slice(0,-1)}function s(e,t){let n={};for(let s in e){let l=a(e[s],t);if(""===l){n[s]="";continue}let c=(0,o.G)(l,t),u=c+" "+l;r.k1[c]=[e[s],t],n[s]=u}return n}},22863(e,t,n){"use strict";n.d(t,{G:()=>a});var r=n(79284);function o(e){let t=e.length;if(7===t)return e;for(let n=t;n<7;n++)e+="0";return e}function a(e,t,n=[]){return"___"+o((0,r.A)(e+t))}},29784(e,t,n){"use strict";n.d(t,{X:()=>x});var r=n(11718);function o(e,t){let n={},o=null,a=null;return function(s){let{dir:l,renderer:c}=s,u="ltr"===l,d=u?c.id:c.id+"r";return u?null===o&&(o=(0,r.N)(e,l)):null===a&&(a=(0,r.N)(e,l)),void 0===n[d]&&(c.insertCSSRules(t),n[d]=!0),u?o:a}}function a(e){return Array.isArray(e)?e:[e]}var s=n(40982);function l(e,t,n){let r=[];if(n[s.ed]=t,e)for(let t in n)e.setAttribute(t,n[t]);return{elementAttributes:n,insertRule:function(t){return(null==e?void 0:e.sheet)?e.sheet.insertRule(t,e.sheet.cssRules.length):r.push(t)},element:e,bucketName:t,cssRules:()=>(null==e?void 0:e.sheet)?Array.from(e.sheet.cssRules).map(e=>e.cssText):r}}let c=["r","d","l","v","w","f","i","h","a","k","t","m","c"].reduce((e,t,n)=>(e[t]=n,e),{});function u(e,t,n,r,o={}){let a="m"===e,s=a?e+o.m:e;if(!r.stylesheets[s]){let c=t&&t.createElement("style"),u=l(c,e,{...r.styleElementAttributes,...a&&{media:o.m}});r.stylesheets[s]=u,t&&c&&t.head.insertBefore(c,d(t,n,e,r,o))}return r.stylesheets[s]}function d(e,t,n,r,o){let a=c[n],l=e=>a-c[e.getAttribute(s.ed)],u=e.head.querySelectorAll(`[${s.ed}]`);if("m"===n&&o){let t=e.head.querySelectorAll(`[${s.ed}="${n}"]`);t.length&&(u=t,l=e=>r.compareMediaQueries(o.m,e.media))}let d=u.length,p=d-1;for(;p>=0;){let e=u.item(p);if(l(e)>0)return e.nextSibling;p--}return d>0?u.item(0):t?t.nextSibling:null}let p=0,f=(e,t)=>e<t?-1:+(e>t);function h(e="u"<typeof document?void 0:document,t={}){let{unstable_filterCSSRule:n,insertionPoint:r,styleElementAttributes:o,compareMediaQueries:s=f}=t,l={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:s,id:`d${p++}`,insertCSSRules(t){for(let o in t){let s=t[o];for(let t=0,c=s.length;t<c;t++){let[c,d]=a(s[t]),p=u(o,e,r||null,l,d);if(!l.insertionCache[c]){l.insertionCache[c]=o;try{n?n(c)&&p.insertRule(c):p.insertRule(c)}catch(e){}}}}}};return l}var m=n(40887);let g=m.createContext(h());function v(){return m.useContext(g)}let y=m.createContext("ltr");function b(){return m.useContext(y)}function x(e,t){let n=o(e,t);return function(){return n({dir:b(),renderer:v()})}}},68839(e,t,n){"use strict";n.d(t,{FD:()=>g,Y:()=>m});var r=n(16149);function o(e){return!!(null==e?void 0:e.hasOwnProperty(r.o))}var a=n(40887);function s(e,t){return{...t,[r.o]:e}}function l(e){}function c(e,t){return function(n,r,a,c,u){return o(r)?t(s(n,r),null,a,c,u):o(n)?t(n,r,a,c,u):(l(n),e(n,r,a,c,u))}}function u(e){let{as:t,[r.o]:n,[r.Y]:o,...a}=e,s=a,l="string"==typeof n&&null!=t?t:n;return"string"!=typeof l&&t&&(s.as=t),{elementType:l,props:s,renderFunction:o}}n(46733);var d=n(31085);let p=n.t(d,2),f=(e,t,n)=>{let{elementType:r,renderFunction:o,props:s}=u(e),l={...s,...t};return o?p.jsx(a.Fragment,{children:o(r,l)},n):p.jsx(r,l,n)},h=(e,t,n)=>{let{elementType:r,renderFunction:o,props:s}=u(e),l={...s,...t};return o?p.jsx(a.Fragment,{children:o(r,{...l,children:p.jsxs(a.Fragment,{children:l.children},void 0)})},n):p.jsxs(r,l,n)},m=c(p.jsx,f),g=c(p.jsxs,h)},75121(e,t){"use strict";var n,r=60103,o=60106,a=60107,s=60108,l=60114,c=60109,u=60110,d=60112,p=60113,f=60120,h=60115,m=60116,g=60121,v=60122,y=60117,b=60129,x=60131;if("function"==typeof Symbol&&Symbol.for){var C=Symbol.for;r=C("react.element"),o=C("react.portal"),a=C("react.fragment"),s=C("react.strict_mode"),l=C("react.profiler"),c=C("react.provider"),u=C("react.context"),d=C("react.forward_ref"),p=C("react.suspense"),f=C("react.suspense_list"),h=C("react.memo"),m=C("react.lazy"),g=C("react.block"),v=C("react.server.block"),y=C("react.fundamental"),b=C("react.debug_trace_mode"),x=C("react.legacy_hidden")}function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case l:case s:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case h:case c:return e;default:return t}}case o:return t}}}var w=c,S=r,_=d,E=a,P=m,I=h,T=o,D=l,A=s,R=p;n=u,n=w,n=S,n=_,n=E,n=P,n=I,n=T,n=D,n=A,n=R,n=function(){return!1},n=function(){return!1},n=function(e){return k(e)===u},n=function(e){return k(e)===c},n=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},n=function(e){return k(e)===d},n=function(e){return k(e)===a},n=function(e){return k(e)===m},n=function(e){return k(e)===h},n=function(e){return k(e)===o},n=function(e){return k(e)===l},n=function(e){return k(e)===s},n=function(e){return k(e)===p}},46733(e,t,n){"use strict";n(75121)},94056(e,t,n){"use strict";n.d(t,{J:()=>y});var r=n(40887),o=n(45394),a=n(79847);let s=(e,t)=>{let{disabled:n=!1,required:r=!1,weight:s="regular",size:l="medium"}=e;return{disabled:n,required:o.lq(!0===r?"*":r||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:s,size:l,components:{root:"label",required:"span"},root:o.Gk((0,a.g)("label",{ref:t,...e}),{elementType:"label"})}};var l=n(68839),c=n(61955);let u=e=>((0,c.C)(e),(0,l.FD)(e.root,{children:[e.root.children,e.required&&(0,l.Y)(e.required,{})]}));var d=n(84782),p=n(95750);let f="fui-Label",h="fui-Label__required",m=(0,d.X)({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),g=e=>{let t=m();return e.root.className=(0,p.z)(f,t.root,e.disabled&&t.disabled,t[e.size],"semibold"===e.weight&&t.semibold,e.root.className),e.required&&(e.required.className=(0,p.z)(h,t.required,e.disabled&&t.disabled,e.required.className)),e};var v=n(84388);let y=r.forwardRef((e,t)=>{let n=s(e,t);return g(n),(0,v.$e)("useLabelStyles_unstable")(n),u(n)});y.displayName="Label"},95175(e,t,n){"use strict";n.d(t,{N:()=>x});var r=n(40887),o=n(45394),a=n(79847);let s=r.createContext(void 0);function l(){return r.useContext(s)}s.Provider;let c=e=>{let{disabled:t,disabledFocusable:n}=e,{onClick:r,onKeyDown:o,role:a,tabIndex:s}=e.root;return"a"===e.root.as&&(e.root.href=t?void 0:e.root.href,(t||n)&&(e.root.role=a||"link")),("a"===e.root.as||"span"===e.root.as)&&(e.root.tabIndex=null!=s?s:t&&!n?void 0:0),e.root.onClick=e=>{t||n?e.preventDefault():null==r||r(e)},e.root.onKeyDown=r=>{let a="Enter"===r.key||" "===r.key;(t||n)&&a?(r.preventDefault(),r.stopPropagation()):(null==o||o(r),"span"===e.root.as&&e.root.onClick&&!o&&a&&(r.preventDefault(),r.currentTarget.click()))},e.disabled=t||n,e.root["aria-disabled"]=t||n||void 0,"button"===e.root.as&&(e.root.disabled=t&&!n),e};var u=n(67601);let d=(e,t)=>{let n=l(),{inline:r}=(0,u.Fr)(),{appearance:s="default",disabled:d=!1,disabledFocusable:p=!1,inline:f=!1}=e,h=e.as||(e.href?"a":"button"),m={role:"span"===h?"button":void 0,type:"button"===h?"button":void 0,...e,as:h},g={appearance:s,disabled:d,disabledFocusable:p,inline:null!=f?f:!!r,components:{root:h},root:o.Gk((0,a.g)(h,{ref:t,...m}),{elementType:h}),backgroundAppearance:n};return c(g),g};var p=n(84782),f=n(95750);let h="fui-Link",m=(0,p.X)({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",B68tc82:0,Bmxbyg5:0,Bpg54ce:"fnbmjn9",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],[".fnbmjn9{overflow:inherit;}",{p:-1}],".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),g=e=>{let t=m(),{appearance:n,disabled:r,inline:o,root:a,backgroundAppearance:s}=e;return e.root.className=(0,f.z)(h,t.root,t.focusIndicator,"a"===a.as&&a.href&&t.href,"button"===a.as&&t.button,"subtle"===n&&t.subtle,"inverted"===s&&t.inverted,o&&t.inline,r&&t.disabled,e.root.className),e};var v=n(68839),y=n(61955);let b=e=>((0,y.C)(e),(0,v.Y)(e.root,{})),x=r.forwardRef((e,t)=>{let n=d(e,t);return g(n),b(n)});x.displayName="Link"},67601(e,t,n){"use strict";n.d(t,{Fr:()=>l,TN:()=>s});var r=n(40887);let o=r.createContext(void 0),a={inline:!1},s=o.Provider,l=()=>{var e;return null!=(e=r.useContext(o))?e:a}},6865(e,t){"use strict";var n,r=60103,o=60106,a=60107,s=60108,l=60114,c=60109,u=60110,d=60112,p=60113,f=60120,h=60115,m=60116,g=60121,v=60122,y=60117,b=60129,x=60131;if("function"==typeof Symbol&&Symbol.for){var C=Symbol.for;r=C("react.element"),o=C("react.portal"),a=C("react.fragment"),s=C("react.strict_mode"),l=C("react.profiler"),c=C("react.provider"),u=C("react.context"),d=C("react.forward_ref"),p=C("react.suspense"),f=C("react.suspense_list"),h=C("react.memo"),m=C("react.lazy"),g=C("react.block"),v=C("react.server.block"),y=C("react.fundamental"),b=C("react.debug_trace_mode"),x=C("react.legacy_hidden")}function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case l:case s:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case h:case c:return e;default:return t}}case o:return t}}}var w=c,S=r,_=d,E=a,P=m,I=h,T=o,D=l,A=s,R=p;n=u,n=w,n=S,n=_,n=E,n=P,n=I,n=T,n=D,n=A,n=R,n=function(){return!1},n=function(){return!1},n=function(e){return k(e)===u},n=function(e){return k(e)===c},n=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===d},n=function(e){return k(e)===a},n=function(e){return k(e)===m},n=function(e){return k(e)===h},n=function(e){return k(e)===o},n=function(e){return k(e)===l},n=function(e){return k(e)===s},n=function(e){return k(e)===p}},85293(e,t,n){"use strict";e.exports=n(6865)},79795(e,t,n){"use strict";n.d(t,{H:()=>v});var r=n(40887),o=n(45394),a=n(79847),s=n(67745),l=n(20890),c=n(31360);let u=(e,t)=>{let n=(0,c.pO)(e=>e.contentRef),r=(0,c.pO)(e=>e.openOnHover),u=(0,c.pO)(e=>e.setOpen),d=(0,c.pO)(e=>e.mountNode),p=(0,c.pO)(e=>e.arrowRef),f=(0,c.pO)(e=>e.size),h=(0,c.pO)(e=>e.withArrow),m=(0,c.pO)(e=>e.appearance),g=(0,c.pO)(e=>e.trapFocus),v=(0,c.pO)(e=>e.inertTrapFocus),y=(0,c.pO)(e=>e.inline),{modalAttributes:b}=(0,l.y)({trapFocus:g,legacyTrapFocus:!v,alwaysFocusable:!g}),x={inline:y,appearance:m,withArrow:h,size:f,arrowRef:p,mountNode:d,components:{root:"div"},root:o.Gk((0,a.g)("div",{ref:(0,s.a)(t,n),role:g?"dialog":"group","aria-modal":!!g||void 0,...b,...e}),{elementType:"div"})},{onMouseEnter:C,onMouseLeave:k,onKeyDown:w}=x.root;return x.root.onMouseEnter=e=>{r&&u(e,!0),null==C||C(e)},x.root.onMouseLeave=e=>{r&&u(e,!1),null==k||k(e)},x.root.onKeyDown=e=>{var t;"Escape"===e.key&&(null==(t=n.current)?void 0:t.contains(e.target))&&(e.preventDefault(),u(e,!1)),null==w||w(e)},x};var d=n(68839),p=n(61955),f=n(39772);let h=e=>{(0,p.C)(e);let t=(0,d.FD)(e.root,{children:[e.withArrow&&(0,d.Y)("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:(0,d.Y)(f.Z,{mountNode:e.mountNode,children:t})};var m=n(33353),g=n(84388);let v=r.forwardRef((e,t)=>{let n=u(e,t);return(0,m.Ls)(n),(0,g.$e)("usePopoverSurfaceStyles_unstable")(n),h(n)});v.displayName="PopoverSurface"},33353(e,t,n){"use strict";n.d(t,{Ls:()=>c,aT:()=>s});var r=n(84782),o=n(95750);let a="fui-PopoverSurface",s={small:6,medium:8,large:8},l=(0,r.X)({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f1hdglry",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",vcguit:"fxes1gr",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",yckwsp:"fgez7cy",Bvtglag:"fjp4h9y",Bhu2qc9:"fymb6k8"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1sy4kr4"},mediumPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4zyqsv"},largePadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fop8ug2"},smallArrow:{rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz"},mediumLargeArrow:{rhnwrx:"f1f72gjr",Bdy53xb:"f69yoe5"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1hdglry{animation-composition:replace,accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".fymb6k8{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 8px 16px var(--colorNeutralShadowKey));}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",[".f1sy4kr4{padding:12px;}",{p:-1}],[".f4zyqsv{padding:16px;}",{p:-1}],[".fop8ug2{padding:20px;}",{p:-1}],".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1f72gjr{--fui-positioning-arrow-height:11.312px;}",".f69yoe5{--fui-positioning-arrow-offset:-5.656px;}",".f1ewtqcl{box-sizing:border-box;}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fxes1gr[data-popper-placement]{animation-composition:replace;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fgez7cy[data-popper-placement]{animation-composition:replace;}}","@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),c=e=>{let t=l();return e.root.className=(0,o.z)(a,t.root,e.inline&&t.inline,"small"===e.size&&t.smallPadding,"medium"===e.size&&t.mediumPadding,"large"===e.size&&t.largePadding,"inverted"===e.appearance&&t.inverted,"brand"===e.appearance&&t.brand,e.root.className),e.arrowClassName=(0,o.z)(t.arrow,"small"===e.size?t.smallArrow:t.mediumLargeArrow),e}},60326(e,t,n){"use strict";n.d(t,{W:()=>h}),n(40887);var r=n(7666),o=n(69652),a=n(41453),s=n(67745),l=n(89076),c=n(20890),u=n(31360),d=n(70749);let p=e=>{let{children:t,disableButtonEnhancement:n=!1}=e,p=(0,r.h)(t),f=(0,u.pO)(e=>e.open),h=(0,u.pO)(e=>e.setOpen),m=(0,u.pO)(e=>e.toggleOpen),g=(0,u.pO)(e=>e.triggerRef),v=(0,u.pO)(e=>e.openOnHover),y=(0,u.pO)(e=>e.openOnContext),{triggerAttributes:b}=(0,c.y)(),x=e=>{y&&(e.preventDefault(),h(e,!0))},C=e=>{y||m(e)},k=e=>{"Escape"===e.key&&f&&!e.isDefaultPrevented()&&(h(e,!1),e.preventDefault())},w=e=>{v&&h(e,!0)},S=e=>{v&&h(e,!1)},_={...b,"aria-expanded":`${f}`,...null==p?void 0:p.props,onMouseEnter:(0,o.D)((0,a.p)(null==p?void 0:p.props.onMouseEnter,w)),onMouseLeave:(0,o.D)((0,a.p)(null==p?void 0:p.props.onMouseLeave,S)),onContextMenu:(0,o.D)((0,a.p)(null==p?void 0:p.props.onContextMenu,x)),ref:(0,s.a)(g,null==p?void 0:p.ref)},E={..._,onClick:(0,o.D)((0,a.p)(null==p?void 0:p.props.onClick,C)),onKeyDown:(0,o.D)((0,a.p)(null==p?void 0:p.props.onKeyDown,k))},P=(0,d.F)((null==p?void 0:p.type)==="button"||(null==p?void 0:p.type)==="a"?p.type:"div",E);return{children:(0,l.L)(e.children,(0,d.F)((null==p?void 0:p.type)==="button"||(null==p?void 0:p.type)==="a"?p.type:"div",y?_:n?E:P))}},f=e=>e.children,h=e=>f(p(e));h.displayName="PopoverTrigger",h.isFluentTriggerComponent=!0},88724(e,t,n){"use strict";n.d(t,{A:()=>E});var r=n(40887),o=n(33568),a=n(69652),s=n(18165),l=n(1594),c=n(62224),u=n(98259),d=n(75480),p=n(3292),f=n(20880),h=n(32992),m=n(33104),g=n(65729),v=n(28588),y=n(77933);function b(){let e=(0,y.p)(),t=e?(0,v.Az)(e):void 0,[n]=(0,o.Z)();return r.useCallback(e=>{n(()=>{null==t||t.activate(e)},0)},[t,n])}var x=n(33353);let C=e=>{var t,n,u;let f,h,[m,v]=(0,p.N)(),y={size:"medium",contextTarget:m,setContextTarget:v,...e},x=r.Children.toArray(e.children);2===x.length?(f=x[0],h=x[1]):1===x.length&&(h=x[0]);let[C,S]=k(y),[_,E]=(0,o.Z)(),P=(0,a.D)((t,n)=>{if(E(),t instanceof Event||!t.persist||t.persist(),"mouseleave"===t.type){var r;_(()=>{S(t,n)},null!=(r=e.mouseLeaveDelay)?r:500)}else S(t,n)}),I=r.useCallback(e=>{P(e,!C)},[P,C]),T=w(y),{targetDocument:D}=(0,d.Y)();(0,s.W)({contains:l.s,element:D,callback:e=>P(e,!1),refs:[T.triggerRef,T.contentRef],disabled:!C,disabledFocusOnIframe:!(null==(t=e.closeOnIframeFocus)||t)});let A=y.openOnContext||y.closeOnScroll;(0,c.z)({contains:l.s,element:D,callback:e=>P(e,!1),refs:[T.triggerRef,T.contentRef],disabled:!C||!A});let{findFirstFocusable:R}=(0,g.r)(),N=b();return r.useEffect(()=>{if(e.unstable_disableAutoFocus)return;let t=T.contentRef.current;if(C&&t){var n;let e=!isNaN(null!=(n=t.getAttribute("tabIndex"))?n:void 0),r=e?t:R(t);null==r||r.focus(),e&&N(t)}},[R,N,C,T.contentRef,e.unstable_disableAutoFocus]),{...y,...T,inertTrapFocus:null!=(n=e.inertTrapFocus)?n:void 0!==e.legacyTrapFocus&&!e.legacyTrapFocus,popoverTrigger:f,popoverSurface:h,open:C,setOpen:P,toggleOpen:I,setContextTarget:v,contextTarget:m,inline:null!=(u=e.inline)&&u}};function k(e){let t=(0,a.D)((t,n)=>{var r;return null==(r=e.onOpenChange)?void 0:r.call(e,t,n)}),[n,o]=(0,u.i)({state:e.open,defaultState:e.defaultOpen,initialState:!1});e.open=void 0!==n?n:e.open;let s=e.setContextTarget;return[n,r.useCallback((e,n)=>{n&&"contextmenu"===e.type&&s(e),n||s(void 0),o(n),null==t||t(e,{open:n})},[o,t,s])]}function w(e){let t={position:"above",align:"center",arrowPadding:8,target:e.openOnContext?e.contextTarget:void 0,...(0,f.P)(e.positioning)};t.coverTarget&&(e.withArrow=!1),e.withArrow&&(t.offset=(0,h.H)(t.offset,x.aT[e.size]));let{targetRef:n,containerRef:r,arrowRef:o}=(0,m.T)(t);return{triggerRef:n,contentRef:r,arrowRef:o}}var S=n(31360);let _=e=>{let{appearance:t,arrowRef:n,contentRef:o,inline:a,mountNode:s,open:l,openOnContext:c,openOnHover:u,setOpen:d,size:p,toggleOpen:f,trapFocus:h,triggerRef:m,withArrow:g,inertTrapFocus:v}=e;return r.createElement(S.nt.Provider,{value:{appearance:t,arrowRef:n,contentRef:o,inline:a,mountNode:s,open:l,openOnContext:c,openOnHover:u,setOpen:d,toggleOpen:f,triggerRef:m,size:p,trapFocus:h,inertTrapFocus:v,withArrow:g}},e.popoverTrigger,e.open&&e.popoverSurface)},E=e=>_(C(e));E.displayName="Popover"},31360(e,t,n){"use strict";n.d(t,{nt:()=>a,pO:()=>l});var r=n(35225),o=n(11479);let a=(0,r.q)(void 0),s={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};a.Provider;let l=e=>(0,o.i)(a,(t=s)=>e(t))},39772(e,t,n){"use strict";n.d(t,{Z:()=>P});var r=n(40887);function o(e,t){if(!e)return;let n=e;n._virtual||(n._virtual={}),n._virtual.parent=t}var a=n(4582);function s(e){return(0,a.s)(e)?{element:e}:"object"==typeof e?null===e?{element:null}:e:{}}var l=n(75480);let c=r.createContext(void 0);function u(){return r.useContext(c)}c.Provider;var d=n(79556),p=n(95750),f=n(62794),h=()=>r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,m=()=>!1,g=new WeakSet;function v(e,t){let n=h();r.useEffect(()=>{if(!g.has(n)){g.add(n),e();return}return e()},t)}var y=new WeakSet;function b(e,t){return r.useMemo(()=>{let t=h();return y.has(t)?e():(y.add(t),null)},t)}function x(e,t){var n;let o=m()&&!1,a=o?b:r.useMemo,s=o?v:r.useEffect,[l,c]=null!=(n=a(()=>e(),t))?n:[null,()=>null];return s(()=>c,t),l}let C=(0,n(84782).X)({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),k=r.useInsertionEffect,w=e=>{let{targetDocument:t,dir:n}=(0,l.Y)(),o=u(),a=(0,f.Y)(),s=C(),c=(0,d.q)(),h=(0,p.z)(c,s.root,e.className),m=null!=o?o:null==t?void 0:t.body,g=x(()=>{if(void 0===m||e.disabled)return[null,()=>null];let t=m.ownerDocument.createElement("div");return m.appendChild(t),[t,()=>t.remove()]},[m]);return k?k(()=>{if(!g)return;let e=h.split(" ").filter(Boolean);return g.classList.add(...e),g.setAttribute("dir",n),g.setAttribute("data-portal-node","true"),a.current=g,()=>{g.classList.remove(...e),g.removeAttribute("dir")}},[h,n,g,a]):r.useMemo(()=>{g&&(g.className=h,g.setAttribute("dir",n),g.setAttribute("data-portal-node","true"),a.current=g)},[h,n,g,a]),g},S=e=>{let{element:t,className:n}=s(e.mountNode),a=r.useRef(null),l=w({disabled:!!t,className:n}),c=null!=t?t:l,u={children:e.children,mountNode:c,virtualParentRootRef:a};return r.useEffect(()=>{if(!c)return;let e=a.current,t=c.contains(e);if(e&&!t)return o(c,e),()=>{o(c,void 0)}},[a,c]),u};var _=n(2029);let E=e=>r.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&_.createPortal(e.children,e.mountNode)),P=e=>E(S(e));P.displayName="Portal"},33104(e,t,n){"use strict";n.d(t,{T:()=>tI});let r=["top","right","bottom","left"],o=Math.min,a=Math.max,s={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};function c(e,t,n){return a(e,o(t,n))}function u(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function f(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){return["top","bottom"].includes(d(e))?"y":"x"}function g(e){return f(m(e))}function v(e,t,n){void 0===n&&(n=!1);let r=p(e),o=g(e),a=h(o),s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=k(s)),[s,k(s)]}function y(e){let t=k(e);return[b(e),t,b(t)]}function b(e){return e.replace(/start|end/g,e=>l[e])}function x(e,t,n){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?a:s;default:return[]}}function C(e,t,n,r){let o=p(e),a=x(d(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(b)))),a}function k(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function w(e){return{top:0,right:0,bottom:0,left:0,...e}}function S(e){return"number"!=typeof e?w(e):{top:e,right:e,bottom:e,left:e}}function _(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function E(e,t,n){let r,{reference:o,floating:a}=e,s=m(t),l=g(t),c=h(l),u=d(t),f="y"===s,v=o.x+o.width/2-a.width/2,y=o.y+o.height/2-a.height/2,b=o[c]/2-a[c]/2;switch(u){case"top":r={x:v,y:o.y-a.height};break;case"bottom":r={x:v,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:y};break;case"left":r={x:o.x-a.width,y:y};break;default:r={x:o.x,y:o.y}}switch(p(t)){case"start":r[l]-=b*(n&&f?-1:1);break;case"end":r[l]+=b*(n&&f?-1:1)}return r}let P=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),c=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=E(u,r,c),f=r,h={},m=0;for(let n=0;n<l.length;n++){let{name:a,fn:g}=l[n],{x:v,y:y,data:b,reset:x}=await g({x:d,y:p,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,p=null!=y?y:p,h={...h,[a]:{...h[a],...b}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(u=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:d,y:p}=E(u,f,c)),n=-1)}return{x:d,y:p,placement:f,strategy:o,middlewareData:h}};async function I(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:a,rects:s,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=u(t,e),g=S(m),v="floating"===f?"reference":"floating",y=l[h?v:f],b=_(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(y)))||n?y:y.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:p,strategy:c})),x="floating"===f?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),k=await (null==a.isElement?void 0:a.isElement(C))&&await (null==a.getScale?void 0:a.getScale(C))||{x:1,y:1},w=_(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:C,strategy:c}):x);return{top:(b.top-w.top+g.top)/k.y,bottom:(w.bottom-b.bottom+g.bottom)/k.y,left:(b.left-w.left+g.left)/k.x,right:(w.right-b.right+g.right)/k.x}}let T=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:a,rects:s,platform:l,elements:d,middlewareData:f}=t,{element:m,padding:v=0}=u(e,t)||{};if(null==m)return{};let y=S(v),b={x:n,y:r},x=g(a),C=h(x),k=await l.getDimensions(m),w="y"===x,_=w?"top":"left",E=w?"bottom":"right",P=w?"clientHeight":"clientWidth",I=s.reference[C]+s.reference[x]-b[x]-s.floating[C],T=b[x]-s.reference[x],D=await (null==l.getOffsetParent?void 0:l.getOffsetParent(m)),A=D?D[P]:0;A&&await (null==l.isElement?void 0:l.isElement(D))||(A=d.floating[P]||s.floating[C]);let R=I/2-T/2,N=A/2-k[C]/2-1,B=o(y[_],N),M=o(y[E],N),F=B,O=A-k[C]-M,L=A/2-k[C]/2+R,H=c(F,L,O),z=!f.arrow&&null!=p(a)&&L!==H&&s.reference[C]/2-(L<F?B:M)-k[C]/2<0,V=z?L<F?L-F:L-O:0;return{[x]:b[x]+V,data:{[x]:H,centerOffset:L-H-V,...z&&{alignmentOffset:V}},reset:z}}}),D=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,a,s;let{placement:l,middlewareData:c,rects:p,initialPlacement:f,platform:h,elements:g}=t,{mainAxis:b=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:E=!0,...P}=u(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let T=d(l),D=m(f),A=d(f)===f,R=await (null==h.isRTL?void 0:h.isRTL(g.floating)),N=w||(A||!E?[k(f)]:y(f)),B="none"!==_;!w&&B&&N.push(...C(f,E,_,R));let M=[f,...N],F=await I(t,P),O=[],L=(null==(r=c.flip)?void 0:r.overflows)||[];if(b&&O.push(F[T]),x){let e=v(l,p,R);O.push(F[e[0]],F[e[1]])}if(L=[...L,{placement:l,overflows:O}],!O.every(e=>e<=0)){let e=((null==(o=c.flip)?void 0:o.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(a=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(S){case"bestFit":{let e=null==(s=L.filter(e=>{if(B){let t=m(e.placement);return t===D||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=f}if(l!==n)return{reset:{placement:n}}}return{}}}};function A(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function R(e){return r.some(t=>e[t]>=0)}let N=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=u(e,t);switch(r){case"referenceHidden":{let e=A(await I(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:R(e)}}}case"escaped":{let e=A(await I(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:R(e)}}}default:return{}}}}};function B(e){let t=min(...e.map(e=>e.left)),n=min(...e.map(e=>e.top));return{x:t,y:n,width:max(...e.map(e=>e.right))-t,height:max(...e.map(e=>e.bottom))-n}}async function M(e,t){let{placement:n,platform:r,elements:o}=e,a=await (null==r.isRTL?void 0:r.isRTL(o.floating)),s=d(n),l=p(n),c="y"===m(n),f=["left","top"].includes(s)?-1:1,h=a&&c?-1:1,g=u(t,e),{mainAxis:v,crossAxis:y,alignmentAxis:b}="number"==typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&"number"==typeof b&&(y="end"===l?-1*b:b),c?{x:y*h,y:v*f}:{x:v*f,y:y*h}}let F=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:a,placement:s,middlewareData:l}=t,c=await M(t,e);return s===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},O=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...p}=u(e,t),h={x:n,y:r},g=await I(t,p),v=m(d(o)),y=f(v),b=h[y],x=h[v];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=b+g[e],r=b-g[t];b=c(n,b,r)}if(s){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=x+g[e],r=x-g[t];x=c(n,x,r)}let C=l.fn({...t,[y]:b,[v]:x});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[y]:a,[v]:s}}}}}},L=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:p=!0}=u(e,t),h={x:n,y:r},g=m(o),v=f(g),y=h[v],b=h[g],x=u(l,t),C="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){let e="y"===v?"height":"width",t=a.reference[v]-a.floating[e]+C.mainAxis,n=a.reference[v]+a.reference[e]-C.mainAxis;y<t?y=t:y>n&&(y=n)}if(p){var k,w;let e="y"===v?"width":"height",t=["top","left"].includes(d(o)),n=a.reference[g]-a.floating[e]+(t&&(null==(k=s.offset)?void 0:k[g])||0)+(t?0:C.crossAxis),r=a.reference[g]+a.reference[e]+(t?0:(null==(w=s.offset)?void 0:w[g])||0)-(t?C.crossAxis:0);b<n?b=n:b>r&&(b=r)}return{[v]:y,[g]:b}}}},H=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let s,l,{placement:c,rects:f,platform:h,elements:g}=t,{apply:v=()=>{},...y}=u(e,t),b=await I(t,y),x=d(c),C=p(c),k="y"===m(c),{width:w,height:S}=f.floating;"top"===x||"bottom"===x?(s=x,l=C===(await (null==h.isRTL?void 0:h.isRTL(g.floating))?"start":"end")?"left":"right"):(l=x,s="end"===C?"top":"bottom");let _=S-b.top-b.bottom,E=w-b.left-b.right,P=o(S-b[s],_),T=o(w-b[l],E),D=!t.middlewareData.shift,A=P,R=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(R=E),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(A=_),D&&!C){let e=a(b.left,0),t=a(b.right,0),n=a(b.top,0),r=a(b.bottom,0);k?R=w-2*(0!==e||0!==t?e+t:a(b.left,b.right)):A=S-2*(0!==n||0!==r?n+r:a(b.top,b.bottom))}await v({...t,availableWidth:R,availableHeight:A});let N=await h.getDimensions(g.floating);return w!==N.width||S!==N.height?{reset:{rects:!0}}:{}}}},z=Math.min,V=Math.max,U=Math.round,j=e=>({x:e,y:e}),W=null,q=null;function G(e){return e.split("-")[0]}function K(e){return"x"===e?"y":"x"}function X(e){return["top","bottom"].includes(G(e))?"y":"x"}function Y(){return"u">typeof window}function Q(e){return ee(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Z(e){var t;return null==(t=(ee(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ee(e){return!!Y()&&(e instanceof Node||e instanceof J(e).Node)}function et(e){return!!Y()&&(e instanceof Element||e instanceof J(e).Element)}function en(e){return!!Y()&&(e instanceof HTMLElement||e instanceof J(e).HTMLElement)}function er(e){return!(!Y()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof J(e).ShadowRoot)}function eo(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ed(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ei(e){return["table","td","th"].includes(Q(e))}function ea(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function es(e){let t=ec(),n=et(e)?ed(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function el(e){let t=ef(e);for(;en(t)&&!eu(t);){if(es(t))return t;if(ea(t))break;t=ef(t)}return null}function ec(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function eu(e){return["html","body","#document"].includes(Q(e))}function ed(e){return J(e).getComputedStyle(e)}function ep(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ef(e){if("html"===Q(e))return e;let t=e.assignedSlot||e.parentNode||er(e)&&e.host||Z(e);return er(t)?t.host:t}function eh(e){let t=ef(e);return eu(t)?e.ownerDocument?e.ownerDocument.body:e.body:en(t)&&eo(t)?t:eh(t)}function em(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=eh(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),s=J(o);if(a){let e=eg(s);return t.concat(s,s.visualViewport||[],eo(o)?o:[],e&&n?em(e):[])}return t.concat(o,em(o,[],n))}function eg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ev(e){let t=ed(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=en(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=U(n)!==a||U(r)!==s;return l&&(n=a,r=s),{width:n,height:r,$:l}}function ey(e){return et(e)?e:e.contextElement}function eb(e){let t=ey(e);if(!en(t))return j(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ev(t),s=(a?U(n.width):n.width)/r,l=(a?U(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let ex=j(0);function eC(e){let t=J(e);return ec()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ex}function ek(e,t,n){return void 0===t&&(t=!1),!!n&&(!t||n===J(e))&&t}function ew(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=ey(e),s=j(1);t&&(r?et(r)&&(s=eb(r)):s=eb(e));let l=ek(a,n,r)?eC(a):j(0),c=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(a){let e=J(a),t=r&&et(r)?J(r):r,n=e,o=eg(n);for(;o&&r&&t!==n;){let e=eb(o),t=o.getBoundingClientRect(),r=ed(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,p*=e.y,c+=a,u+=s,o=eg(n=J(o))}}return _({width:d,height:p,x:c,y:u})}function eS(e,t){let n=ep(e).scrollLeft;return t?t.left+n:ew(Z(e)).left+n}function e_(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:eS(e,r)),y:r.top+t.scrollTop}}function eE(e){let t=Z(e),n=ep(e),r=e.ownerDocument.body,o=V(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=V(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+eS(e),l=-n.scrollTop;return"rtl"===ed(r).direction&&(s+=V(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function eP(e,t){let n=J(e),r=Z(e),o=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(o){a=o.width,s=o.height;let e=ec();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:l,y:c}}function eI(e,t){let n=ew(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=en(e)?eb(e):j(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y;return{width:s,height:l,x:o*a.x,y:r*a.y}}function eT(e,t,n){let r;if("viewport"===t)r=eP(e,n);else if("document"===t)r=eE(Z(e));else if(et(t))r=eI(t,n);else{let n=eC(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _(r)}function eD(e,t){let n=ef(e);return!(n===t||!et(n)||eu(n))&&("fixed"===ed(n).position||eD(n,t))}function eA(e,t){let n=t.get(e);if(n)return n;let r=em(e,[],!1).filter(e=>et(e)&&"body"!==Q(e)),o=null,a="fixed"===ed(e).position,s=a?ef(e):e;for(;et(s)&&!eu(s);){let t=ed(s),n=es(s);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||eo(s)&&!n&&eD(e,s))?r=r.filter(e=>e!==s):o=t,s=ef(s)}return t.set(e,r),r}function eR(e,t,n){let r=en(t),o=Z(t),a="fixed"===n,s=ew(e,!0,a,t),l={scrollLeft:0,scrollTop:0},c=j(0);if(r||!r&&!a)if(("body"!==Q(t)||eo(o))&&(l=ep(t)),r){let e=ew(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=eS(o));let u=!o||r||a?j(0):e_(o,l);return{x:s.left+l.scrollLeft-c.x-u.x,y:s.top+l.scrollTop-c.y-u.y,width:s.width,height:s.height}}function eN(e){return"static"===ed(e).position}function eB(e,t){if(!en(e)||"fixed"===ed(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Z(e)===n&&(n=n.ownerDocument.body),n}function eM(e,t){let n=J(e);if(ea(e))return n;if(!en(e)){let t=ef(e);for(;t&&!eu(t);){if(et(t)&&!eN(t))return t;t=ef(t)}return n}let r=eB(e,t);for(;r&&ei(r)&&eN(r);)r=eB(r,t);return r&&eu(r)&&eN(r)&&!es(r)?n:r||el(e)||n}let eF=async function(e){let t=this.getOffsetParent||eM,n=this.getDimensions,r=await n(e.floating);return{reference:eR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eO={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,a="fixed"===o,s=Z(r),l=!!t&&ea(t.floating);if(r===s||l&&a)return n;let c={scrollLeft:0,scrollTop:0},u=j(1),d=j(0),p=en(r);if((p||!p&&!a)&&(("body"!==Q(r)||eo(s))&&(c=ep(r)),en(r))){let e=ew(r);u=eb(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!s||p||a?j(0):e_(s,c,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}},getDocumentElement:Z,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?ea(t)?[]:eA(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((e,n)=>{let r=eT(t,n,o);return e.top=V(r.top,e.top),e.right=z(r.right,e.right),e.bottom=z(r.bottom,e.bottom),e.left=V(r.left,e.left),e},eT(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:eM,getElementRects:eF,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ev(e);return{width:t,height:n}},getScale:eb,isElement:et,isRTL:function(e){return"rtl"===ed(e).direction}};function eL(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eH=I,ez=F,eV=O,eU=D,ej=H,eW=N,eq=T,eG=L,eK=(e,t,n)=>{let r=new Map,o={platform:eO,...n},a={...o.platform,_c:r};return P(e,t,{...o,platform:a})};var eX=n(75480),eY=n(67855),e$=n(69652),eQ=n(24681),eJ=n(40887);function eZ(e,t,n){let r=eJ.useRef(!0),[o]=eJ.useState(()=>({value:e,callback:t,facade:{get current(){return o.value},set current(value){let e=o.value;if(e!==value){if(o.value=value,n&&r.current)return;o.callback(value,e)}}}}));return(0,eQ.E)(()=>{r.current=!1},[]),o.callback=t,o.facade}let e0=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}},e1=e=>"HTML"===e.nodeName?e:e.parentNode||e.host,e2=e=>{var t;return 1!==e.nodeType?{}:(null==(t=e.ownerDocument)?void 0:t.defaultView).getComputedStyle(e,null)},e5=e=>{let t=e&&e1(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}let{overflow:n,overflowX:r,overflowY:o}=e2(t);return/(auto|scroll|overlay)/.test(n+o+r)?t:e5(t)},e4=e=>{var t;let n=e5(e);return!!n&&n!==(null==(t=n.ownerDocument)?void 0:t.body)},e3=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),e6=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),e8=(e,t)=>{let n="above"===e||"below"===e,r="top"===t||"bottom"===t;return n&&r||!n&&!r},e9=(e,t,n)=>{let r=e8(t,e)?"center":e,o=t&&e3(n)[t],a=r&&e6()[r];return o&&a?`${o}-${a}`:o};function e7(e,t){if("window"===t)return null==e?void 0:e.ownerDocument.documentElement;if("clippingParents"===t)return"clippingAncestors";if("scrollParent"===t){let t=e5(e);return"BODY"===t.nodeName&&(t=null==e?void 0:e.ownerDocument.documentElement),t}return t}function te(e,t){if("number"==typeof e)return e;let{start:n,end:r,...o}=e,a=o,s=t?"end":"start",l=t?"start":"end";return e[s]&&(a.left=e[s]),e[l]&&(a.right=e[l]),a}let tt=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:n}){var r;if(null==(r=t.resetMaxSize)?void 0:r.maxSizeAlreadyReset)return{};let{applyMaxWidth:o,applyMaxHeight:a}=e;return o&&(n.floating.style.removeProperty("box-sizing"),n.floating.style.removeProperty("max-width"),n.floating.style.removeProperty("width")),a&&(n.floating.style.removeProperty("box-sizing"),n.floating.style.removeProperty("max-height"),n.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function tn(e,t){let{container:n,overflowBoundary:r,overflowBoundaryPadding:o,isRtl:a}=t;return ej({...o&&{padding:te(o,a)},...r&&{altBoundary:!0,boundary:e7(n,r)},apply({availableHeight:t,availableWidth:n,elements:r,rects:o}){let a=(e,t,n)=>{if(e&&(r.floating.style.setProperty("box-sizing","border-box"),r.floating.style.setProperty(`max-${t}`,`${n}px`),o.floating[t]>n)){r.floating.style.setProperty(t,`${n}px`);let e="width"===t?"x":"y";r.floating.style.getPropertyValue(`overflow-${e}`)||r.floating.style.setProperty(`overflow-${e}`,"auto")}},{applyMaxWidth:s,applyMaxHeight:l}=e;a(s,"width",n),a(l,"height",t)}})}let tr="--fui-match-target-size";function to(){return{name:"matchTargetSize",fn:async e=>{let{rects:{reference:t,floating:n},elements:{floating:r},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:o=!1}={}}}=e;if(t.width===n.width||o)return{};let{width:a}=t;return r.style.setProperty(tr,`${a}px`),r.style.width||(r.style.width=`var(${tr})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function ti(e){let t=e.split("-");return{side:t[0],alignment:t[1]}}let ta=()=>({top:"above",bottom:"below",right:"after",left:"before"}),ts=e=>"above"===e||"below"===e?{start:"start",end:"end"}:{start:"top",end:"bottom"},tl=e=>{let{side:t,alignment:n}=ti(e),r=ta()[t],o=n&&ts(r)[n];return{position:r,alignment:o}};function tc(e){return e&&"number"!=typeof e&&"object"!=typeof e?({rects:{floating:t,reference:n},placement:r})=>{let{position:o,alignment:a}=tl(r);return e({positionedRect:t,targetRect:n,position:o,alignment:a})}:e}function tu(e){return ez(tc(e))}function td(){return{name:"coverTarget",fn:e=>{let{placement:t,rects:n,x:r,y:o}=e,a=ti(t).side,s={x:r,y:o};switch(a){case"bottom":s.y-=n.reference.height;break;case"top":s.y+=n.reference.height;break;case"left":s.x+=n.reference.width;break;case"right":s.x-=n.reference.width}return s}}}var tp=n(20880);function tf(e){let{hasScrollableElement:t,flipBoundary:n,container:r,fallbackPositions:o=[],isRtl:a}=e,s=o.reduce((e,t)=>{let{position:n,align:r}=(0,tp.P)(t),o=e9(r,n,a);return o&&e.push(o),e},[]);return eU({...t&&{boundary:"clippingAncestors"},...n&&{altBoundary:!0,boundary:e7(r,n)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function th(e){let{hasScrollableElement:t,shiftToCoverTarget:n,disableTether:r,overflowBoundary:o,container:a,overflowBoundaryPadding:s,isRtl:l}=e;return eV({...t&&{boundary:"clippingAncestors"},...n&&{crossAxis:!0,limiter:eG({crossAxis:!0,mainAxis:!1})},...r&&{crossAxis:"all"===r,limiter:eG({crossAxis:"all"!==r,mainAxis:!1})},...s&&{padding:te(s,l)},...o&&{altBoundary:!0,boundary:e7(a,o)}})}function tm(){return{name:"intersectionObserver",fn:async e=>{let t=e.rects.floating,n=await eH(e,{altBoundary:!0}),r=n.top<t.height&&n.top>0,o=n.bottom<t.height&&n.bottom>0;return{data:{intersecting:r||o}}}}}var tg=n(4582);function tv(e){let{arrow:t,middlewareData:n}=e;if(!n.arrow||!t)return;let{x:r,y:o}=n.arrow;Object.assign(t.style,{left:null!=r?`${r}px`:"",top:null!=o?`${o}px`:""})}let ty="data-popper-is-intersecting",tb="data-popper-escaped",tx="data-popper-reference-hidden",tC="data-popper-placement",tk="fui-positioningend";function tw(e){var t,n,r;let{container:o,placement:a,middlewareData:s,strategy:l,lowPPI:c,coordinates:u,useTransform:d=!0}=e;if(!o)return;o.setAttribute(tC,a),o.removeAttribute(ty),s.intersectionObserver.intersecting&&o.setAttribute(ty,""),o.removeAttribute(tb),(null==(t=s.hide)?void 0:t.escaped)&&o.setAttribute(tb,""),o.removeAttribute(tx),(null==(n=s.hide)?void 0:n.referenceHidden)&&o.setAttribute(tx,"");let p=(null==(r=o.ownerDocument.defaultView)?void 0:r.devicePixelRatio)||1,f=Math.round(u.x*p)/p,h=Math.round(u.y*p)/p;(Object.assign(o.style,{position:l}),d)?Object.assign(o.style,{transform:c?`translate(${f}px, ${h}px)`:`translate3d(${f}px, ${h}px, 0)`}):Object.assign(o.style,{left:`${f}px`,top:`${h}px`})}function tS(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function t_(e){let t=[],n=e;for(;n;){let r=e5(n);if(e.ownerDocument.body===r){t.push(r);break}if("BODY"===r.nodeName&&r!==e.ownerDocument.body)break;t.push(r),n=r}return t}function tE(e,t){return new e.ResizeObserver(t)}function tP(e){let t=!1,{container:n,target:r,arrow:o,strategy:a,middleware:s,placement:l,useTransform:c=!0,disableUpdateOnResize:u=!1}=e,d=n.ownerDocument.defaultView;if(!r||!n||!d)return{updatePosition:()=>void 0,dispose:()=>void 0};let p=u?null:tE(d,e=>{e.every(e=>e.contentRect.width>0&&e.contentRect.height>0)&&g()}),f=!0,h=new Set;Object.assign(n.style,{position:"fixed",left:0,top:0,margin:0});let m=()=>{t||(f&&(t_(n).forEach(e=>h.add(e)),(0,tg.s)(r)&&t_(r).forEach(e=>h.add(e)),h.forEach(e=>{e.addEventListener("scroll",g,{passive:!0})}),null==p||p.observe(n),(0,tg.s)(r)&&(null==p||p.observe(r)),f=!1),Object.assign(n.style,{position:a}),eK(r,n,{placement:l,middleware:s,strategy:a}).then(({x:e,y:r,middlewareData:s,placement:l})=>{t||(tv({arrow:o,middlewareData:s}),tw({container:n,middlewareData:s,placement:l,coordinates:{x:e,y:r},lowPPI:1>=((null==d?void 0:d.devicePixelRatio)||1),strategy:a,useTransform:c}),n.dispatchEvent(new CustomEvent(tk)))}).catch(e=>{}))},g=tS(()=>m()),v=()=>{t=!0,d&&(d.removeEventListener("scroll",g),d.removeEventListener("resize",g)),h.forEach(e=>{e.removeEventListener("scroll",g)}),h.clear(),null==p||p.disconnect()};return d&&(d.addEventListener("scroll",g,{passive:!0}),d.addEventListener("resize",g)),g(),{updatePosition:g,dispose:v}}function tI(e){let t=eJ.useRef(null),n=eJ.useRef(null),r=eJ.useRef(null),o=eJ.useRef(null),a=eJ.useRef(null),{enabled:s=!0}=e,l=tT(e),c=eJ.useCallback(()=>{var e;t.current&&t.current.dispose(),t.current=null;let c=null!=(e=r.current)?e:n.current;s&&(0,eY.S)()&&c&&o.current&&(t.current=tP({container:o.current,target:c,arrow:a.current,...l(o.current,a.current)}))},[s,l]),u=(0,e$.D)(e=>{r.current=e,c()});eJ.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var e;return null==(e=t.current)?void 0:e.updatePosition()},setTarget:t=>{e.target,u(t)}}),[e.target,u]),(0,eQ.E)(()=>{var t;u(null!=(t=e.target)?t:null)},[e.target,u]),(0,eQ.E)(()=>{c()},[c]);let d=eZ(null,e=>{n.current!==e&&(n.current=e,c())}),p=(0,e$.D)(()=>{var t;return null==(t=e.onPositioningEnd)?void 0:t.call(e)});return{targetRef:d,containerRef:eZ(null,e=>{if(o.current!==e){var t;null==(t=o.current)||t.removeEventListener(tk,p),null==e||e.addEventListener(tk,p),o.current=e,c()}}),arrowRef:eZ(null,e=>{a.current!==e&&(a.current=e,c())})}}function tT(e){let{align:t,arrowPadding:n,autoSize:r,coverTarget:o,flipBoundary:a,offset:s,overflowBoundary:l,pinned:c,position:u,unstable_disableTether:d,positionFixed:p,strategy:f,overflowBoundaryPadding:h,fallbackPositions:m,useTransform:g,matchTargetSize:v,disableUpdateOnResize:y=!1,shiftToCoverTarget:b}=e,{dir:x,targetDocument:C}=(0,eX.Y)(),k="rtl"===x,w=(null!=f?f:p)?"fixed":"absolute",S=e0(r);return eJ.useCallback((e,r)=>{let p=e4(e),f=[S&&tt(S),v&&to(),s&&tu(s),o&&td(),!c&&tf({container:e,flipBoundary:a,hasScrollableElement:p,isRtl:k,fallbackPositions:m}),th({container:e,hasScrollableElement:p,overflowBoundary:l,disableTether:d,overflowBoundaryPadding:h,isRtl:k,shiftToCoverTarget:b}),S&&tn(S,{container:e,overflowBoundary:l,overflowBoundaryPadding:h,isRtl:k}),tm(),r&&eq({element:r,padding:n}),eW({strategy:"referenceHidden"}),eW({strategy:"escaped"}),!1].filter(Boolean);return{placement:e9(t,u,k),middleware:f,strategy:w,useTransform:g,disableUpdateOnResize:y}},[t,n,S,o,d,a,k,s,l,c,u,w,h,m,g,v,C,y])}},3292(e,t,n){"use strict";n.d(t,{N:()=>a});var r=n(40887);function o(e){let t=e.clientX,n=e.clientY,r=t+1,o=n+1;return{getBoundingClientRect:function(){return{left:t,top:n,right:r,bottom:o,x:t,y:n,height:1,width:1}}}}let a=e=>{let[t,n]=r.useState(e);return[t,e=>{let t;null==e?n(void 0):(t=e instanceof MouseEvent?e:e.nativeEvent,MouseEvent,n(o(t)))}]}},32992(e,t,n){"use strict";function r(e,t){return"number"==typeof e||"object"==typeof e&&null!==e?o(e,t):"function"==typeof e?n=>o(e(n),t):{mainAxis:t}}n.d(t,{H:()=>r});let o=(e,t)=>{var n;return"number"==typeof e?{mainAxis:e+t}:{...e,mainAxis:(null!=(n=e.mainAxis)?n:0)+t}}},20880(e,t,n){"use strict";n.d(t,{P:()=>o});let r={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function o(e){return null==e?{}:"string"==typeof e?r[e]:e}},67162(e,t,n){"use strict";n.d(t,{q:()=>U});var r=n(40887),o=n(68839),a=n(61955),s=n(67855),l=n(16609),c=n(75480);let u=r.createContext(void 0),d=u.Provider;var p=n(79556),f=n(84388),h=n(18070),m=n(6566),g=n(59777);let v=(e,t)=>((0,a.C)(e),(0,o.Y)(c.K,{value:t.provider,children:(0,o.Y)(d,{value:t.theme,children:(0,o.Y)(p.I,{value:t.themeClassName,children:(0,o.Y)(f.gH,{value:t.customStyleHooks_unstable,children:(0,o.Y)(h.J,{value:t.tooltip,children:(0,o.Y)(l.e,{dir:t.textDirection,children:(0,o.Y)(g.F,{value:t.iconDirection,children:(0,o.Y)(m.Nv,{value:t.overrides_unstable,children:(0,o.FD)(e.root,{children:[(0,s.S)()?null:(0,o.Y)("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})}));var y=n(1180),b=n(62794),x=n(45394),C=n(79847),k=n(67745),w=n(24681),S=n(30122);function _(e,t){if(t){let n=Object.keys(t).reduce((e,n)=>`${e}--${n}: ${t[n]}; `,"");return`${e} { ${n} }`}return`${e} {}`}var E=n(3542),P=n(95750);let I="fui-FluentProvider",T=(0,E.X)({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),D=e=>{let t=(0,y.J)(),n=T({dir:e.dir,renderer:t});return e.root.className=(0,P.z)(I,e.themeClassName,n.root,e.root.className),e},A=r.useInsertionEffect?r.useInsertionEffect:w.E,R=(e,t)=>{if(!e)return;let n=e.createElement("style");return Object.keys(t).forEach(e=>{n.setAttribute(e,t[e])}),e.head.appendChild(n),n},N=(e,t)=>{let n=e.sheet;n&&(n.cssRules.length>0&&n.deleteRule(0),n.insertRule(t,0))},B=e=>{let{targetDocument:t,theme:n,rendererAttributes:o}=e,a=r.useRef(),s=(0,S.Bi)(I),l=o,c=r.useMemo(()=>_(`.${s}`,n),[n,s]);return M(t,s),A(()=>{let e=null==t?void 0:t.getElementById(s);return e?a.current=e:(a.current=R(t,{...l,id:s}),a.current&&N(a.current,c)),()=>{var e;null==(e=a.current)||e.remove()}},[s,t,c,l]),{styleTagId:s,rule:c}};function M(e,t){r.useState(()=>{if(!e)return;let n=e.getElementById(t);n&&e.head.append(n)})}let F={},O={},L=(e,t)=>{var n;let o=(0,c.Y)(),a=z(),s=(0,m.Pv)(),l=r.useContext(f.k7)||F,{applyStylesToPortals:u=!0,customStyleHooks_unstable:d,dir:p=o.dir,targetDocument:h=o.targetDocument,theme:g,overrides_unstable:v={}}=e,w=H(a,g),S=H(s,v),_=H(l,d),E=(0,y.J)(),{styleTagId:P,rule:I}=B({theme:w,targetDocument:h,rendererAttributes:null!=(n=E.styleElementAttributes)?n:O});return{applyStylesToPortals:u,customStyleHooks_unstable:_,dir:p,targetDocument:h,theme:w,overrides_unstable:S,themeClassName:P,components:{root:"div"},root:x.Gk((0,C.g)("div",{...e,dir:p,ref:(0,k.a)(t,(0,b.Y)({targetDocument:h}))}),{elementType:"div"}),serverStyleProps:{cssRule:I,attributes:{...E.styleElementAttributes,id:P}}}};function H(e,t){return e&&t?{...e,...t}:e||t}function z(){return r.useContext(u)}function V(e){let{applyStylesToPortals:t,customStyleHooks_unstable:n,dir:o,root:a,targetDocument:s,theme:l,themeClassName:c,overrides_unstable:u}=e,d=r.useMemo(()=>({dir:o,targetDocument:s}),[o,s]),[p]=r.useState(()=>({})),f=r.useMemo(()=>({textDirection:o}),[o]);return{customStyleHooks_unstable:n,overrides_unstable:u,provider:d,textDirection:o,iconDirection:f,tooltip:p,theme:l,themeClassName:t?a.className:c}}let U=r.forwardRef((e,t)=>{let n=L(e,t);D(n);let r=V(n);return v(n,r)});U.displayName="FluentProvider"},46312(e,t,n){"use strict";n.d(t,{X:()=>s,Z:()=>a});var r=n(40887);let o=r.createContext(void 0),a=o.Provider;function s(){var e;return null!=(e=r.useContext(o))?e:{announce:()=>void 0}}},84388(e,t,n){"use strict";n.d(t,{$e:()=>l,gH:()=>s,k7:()=>o});var r=n(40887);let o=r.createContext(void 0),a=()=>{},s=o.Provider,l=e=>{var t,n;return null!=(n=null==(t=r.useContext(o))?void 0:t[e])?n:a}},6566(e,t,n){"use strict";n.d(t,{Nv:()=>a,Pv:()=>s});var r=n(40887);let o=r.createContext(void 0),a=o.Provider;function s(){var e;return null!=(e=r.useContext(o))?e:{}}},75480(e,t,n){"use strict";n.d(t,{K:()=>s,Y:()=>l});var r=n(40887);let o=r.createContext(void 0),a={targetDocument:"object"==typeof document?document:void 0,dir:"ltr"},s=o.Provider;function l(){var e;return null!=(e=r.useContext(o))?e:a}},79556(e,t,n){"use strict";n.d(t,{I:()=>s,q:()=>l});var r=n(40887);let o=r.createContext(void 0),a="",s=o.Provider;function l(){var e;return null!=(e=r.useContext(o))?e:a}},18070(e,t,n){"use strict";n.d(t,{J:()=>s,n:()=>l});var r=n(40887);let o=r.createContext(void 0),a={},s=o.Provider;function l(){var e;return null!=(e=r.useContext(o))?e:a}},30057(e,t,n){"use strict";n.d(t,{H:()=>x});var r=n(40887),o=n(45394),a=n(79847),s=n(23877);let l=(e,t)=>{let{animation:n,appearance:r}=(0,s.O)(),{animation:l=null!=n?n:"wave",appearance:c=null!=r?r:"opaque",size:u=16,shape:d="rectangle"}=e;return{appearance:c,animation:l,size:u,shape:d,components:{root:"div"},root:o.Gk((0,a.g)("div",{ref:t,...e}),{elementType:"div"})}};var c=n(68839),u=n(61955);let d=e=>((0,u.C)(e),(0,c.Y)(e.root,{}));var p=n(84782),f=n(95750);let h="fui-SkeletonItem",m=(0,p.X)({root:{qhf8xq:"f10pi13n",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Bsft5z2:"f13zj6fq",ap17g6:"f2gz7yw",E3zdtr:"f1mdlcz9",By385i5:0,Eqx8gd:0,B1piin3:0,bn5sak:0,B58onuk:"f1nt53hs",s9ouvv:"f18xs7ez",xr36ep:"ffm3629",Bitv4sc:"f1f9zsvm",Jx5sug:"f1ub80pn",Hzyzrh:"f1e7twep"},wave:{De3pzq:"f1gjxg63",Br128sd:["f3fo419","f6m9r4"],h62rwi:["ftnv2js","f12jzhyt"],b1kco5:["fig1c6l","f1rv5y9h"],oi31me:"f103n15n"},pulse:{Br128sd:"f171zwvm",xr36ep:"fs3pcyf",Bjyk6c5:"f1yu5riq"},translucent:{De3pzq:"f162mh4z",h62rwi:["flvf4r0","f1uek97b"]},translucentPulse:{De3pzq:"flu3bqm",Bjyk6c5:"fxucc0w"}},{d:[".f10pi13n{position:relative;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],'.f13zj6fq::after{content:"";}',".f2gz7yw::after{display:block;}",".f1mdlcz9::after{position:absolute;}",[".f1nt53hs::after{inset:0;}",{p:-1}],".f18xs7ez::after{animation-iteration-count:infinite;}",".ffm3629::after{animation-duration:3s;}",".f1f9zsvm::after{animation-timing-function:ease-in-out;}",".f1gjxg63{background-color:var(--colorNeutralStencil1);}",".f3fo419::after{animation-name:f1efwx7q;}",".f6m9r4::after{animation-name:f1kkgpz1;}",".ftnv2js::after{background-image:linear-gradient(\n        to right,\n        var(--colorNeutralStencil1) 0%,\n        var(--colorNeutralStencil2) 50%,\n        var(--colorNeutralStencil1) 100%);}",".f12jzhyt::after{background-image:linear-gradient(\n        to left,\n        var(--colorNeutralStencil1) 0%,\n        var(--colorNeutralStencil2) 50%,\n        var(--colorNeutralStencil1) 100%);}",".fig1c6l::after{transform:translate(-100%);}",".f1rv5y9h::after{transform:translate(100%);}",".f171zwvm::after{animation-name:f12o7gg6;}",".fs3pcyf::after{animation-duration:1s;}",".f1yu5riq::after{background-color:var(--colorNeutralStencil1);}",".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}",".flvf4r0::after{background-image:linear-gradient(\n      to right,\n      transparent 0%,\n      var(--colorNeutralStencil1Alpha) 50%,\n      transparent 100%);}",".f1uek97b::after{background-image:linear-gradient(\n      to left,\n      transparent 0%,\n      var(--colorNeutralStencil1Alpha) 50%,\n      transparent 100%);}",".flu3bqm{background-color:none;}",".fxucc0w::after{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1ub80pn::after{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1e7twep::after{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f103n15n::after{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes f1efwx7q{to{transform:translate(100%);}}","@keyframes f1kkgpz1{to{transform:translate(-100%);}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),g=(0,p.X)({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ff3glw6"}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",[".ff3glw6{border-radius:4px;}",{p:-1}]]}),v=(0,p.X)({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),y=(0,p.X)({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f5q2cvs"}},{d:[[".f5q2cvs{border-radius:50%;}",{p:-1}]]}),b=e=>{let{animation:t,appearance:n,size:r,shape:o}=e,a=m(),s=g(),l=v(),c=y();return e.root.className=(0,f.z)(h,a.root,"wave"===t&&a.wave,"pulse"===t&&a.pulse,"translucent"===n&&a.translucent,"pulse"===t&&"translucent"===n&&a.translucentPulse,"rectangle"===o&&s.root,"rectangle"===o&&s[r],"square"===o&&l[r],"circle"===o&&c.root,"circle"===o&&l[r],e.root.className),e},x=r.forwardRef((e,t)=>{let n=l(e,t);return b(n),d(n)});x.displayName="SkeletonItem"},39960(e,t,n){"use strict";n.d(t,{E:()=>g});var r=n(40887),o=n(45394),a=n(79847),s=n(23877);let l=(e,t)=>{let{animation:n,appearance:r}=(0,s.O)(),{animation:l=null!=n?n:"wave",appearance:c=null!=r?r:"opaque"}=e;return{animation:l,appearance:c,components:{root:"div"},root:o.Gk((0,a.g)("div",{ref:t,role:"progressbar","aria-busy":!0,...e}),{elementType:"div"})}};var c=n(68839),u=n(61955);let d=(e,t)=>((0,u.C)(e),(0,c.Y)(s.Q,{value:t.skeletonGroup,children:(0,c.Y)(e.root,{})}));var p=n(95750);let f="fui-Skeleton",h=e=>(e.root.className=(0,p.z)(f,e.root.className),e),m=e=>{let{animation:t,appearance:n}=e;return{skeletonGroup:r.useMemo(()=>({animation:t,appearance:n}),[t,n])}},g=r.forwardRef((e,t)=>{let n=l(e,t),r=m(n);return h(n),d(n,r)});g.displayName="Skeleton"},23877(e,t,n){"use strict";n.d(t,{O:()=>l,Q:()=>s});var r=n(40887);let o=r.createContext(void 0),a={},s=o.Provider,l=()=>{var e;return null!=(e=r.useContext(o))?e:a}},69850(e,t,n){"use strict";n.d(t,{A7:()=>r,BV:()=>o});let r="data-fui-focus-visible",o="data-fui-focus-within"},65729(e,t,n){"use strict";n.d(t,{r:()=>s});var r=n(40887),o=n(75480),a=n(77933);let s=()=>{let e=(0,a.p)(),{targetDocument:t}=(0,o.Y)(),n=r.useCallback((t,n)=>(null==e?void 0:e.focusable.findAll({container:t,acceptCondition:n}))||[],[e]),s=r.useCallback(t=>null==e?void 0:e.focusable.findFirst({container:t}),[e]),l=r.useCallback(t=>null==e?void 0:e.focusable.findLast({container:t}),[e]);return{findAllFocusable:n,findFirstFocusable:s,findLastFocusable:l,findNextFocusable:r.useCallback((n,r={})=>{if(!e||!t)return null;let{container:o=t.body}=r;return e.focusable.findNext({currentElement:n,container:o})},[e,t]),findPrevFocusable:r.useCallback((n,r={})=>{if(!e||!t)return null;let{container:o=t.body}=r;return e.focusable.findPrev({currentElement:n,container:o})},[e,t])}}},62794(e,t,n){"use strict";n.d(t,{Y:()=>d});var r=n(40887),o=n(75480),a=n(4582),s=n(51022),l=n(69850);function c(e,t){if(u(e))return()=>void 0;let n={current:void 0},r=(0,s.SQ)(t);function o(e){r.isNavigatingWithKeyboard()&&(0,a.s)(e)&&(n.current=e,e.setAttribute(l.A7,""))}function c(){n.current&&(n.current.removeAttribute(l.A7),n.current=void 0)}r.subscribe(e=>{e||c()});let d=e=>{c(),o(e.composedPath()[0])},p=t=>{(!t.relatedTarget||(0,a.s)(t.relatedTarget)&&!e.contains(t.relatedTarget))&&c()};return e.addEventListener(s.Oy,d),e.addEventListener("focusout",p),e.focusVisible=!0,e.contains(t.document.activeElement)&&o(t.document.activeElement),()=>{c(),e.removeEventListener(s.Oy,d),e.removeEventListener("focusout",p),delete e.focusVisible,(0,s.bd)(r)}}function u(e){return!!e&&(!!e.focusVisible||u(null==e?void 0:e.parentElement))}function d(e={}){var t;let n=(0,o.Y)(),a=r.useRef(null),s=null!=(t=e.targetDocument)?t:n.targetDocument;return r.useEffect(()=>{if((null==s?void 0:s.defaultView)&&a.current)return c(a.current,s.defaultView)},[a,s]),a}},96472(e,t,n){"use strict";n.d(t,{K:()=>s});var r=n(40887),o=n(51022),a=n(75480);function s(){let{targetDocument:e}=(0,a.Y)(),t=r.useRef(null);return r.useEffect(()=>{if(e){let n=(0,o.SQ)(e.defaultView);return t.current=n,()=>{(0,o.bd)(n),t.current=null}}},[e]),t}},20890(e,t,n){"use strict";n.d(t,{v:()=>u,y:()=>p});var r=n(30122),o=n(32196),a=n(28588),s=n(77933);let l="data-tabster-never-hide",c={[l]:""};function u(){return c}let d=e=>e.hasAttribute(l),p=(e={})=>{let{trapFocus:t,alwaysFocusable:n,legacyTrapFocus:l}=e,c=(0,s.p)();c&&((0,a.Az)(c,void 0,d),(0,a.mz)(c));let u=(0,r.Bi)("modal-",e.id);return{modalAttributes:(0,o.g)({restorer:{type:a.CP.Source},...t&&{modalizer:{id:u,isOthersAccessible:!t,isAlwaysAccessible:n,isTrapped:l&&t}}}),triggerAttributes:(0,o.g)({restorer:{type:a.CP.Target}})}}},77933(e,t,n){"use strict";n.d(t,{p:()=>c});var r=n(40887),o=n(75480),a=n(28588),s=n(56223),l=n(24681);let c=()=>{let{targetDocument:e}=(0,o.Y)(),t=(null==e?void 0:e.defaultView)||void 0,n=null==t?void 0:t.__tabsterShadowDOMAPI,c=r.useMemo(()=>t?(0,a._A)(t,{autoRoot:{},controlTab:!1,getParent:s.P,checkUncontrolledTrappingFocus:e=>{var t;return!!(null==(t=e.firstElementChild)?void 0:t.hasAttribute("data-is-focus-trap-zone-bumper"))},DOMAPI:n}):null,[t,n]);return(0,l.E)(()=>()=>{c&&(0,a.hC)(c)},[c]),c}},32196(e,t,n){"use strict";n.d(t,{g:()=>s});var r=n(28588),o=n(77933),a=n(40887);let s=e=>{(0,o.p)();let t=(0,r.U6)(e,!0);return a.useMemo(()=>({[r.h7]:t}),[t])}},57657(e,t,n){"use strict";n.d(t,{E:()=>v});var r=n(40887),o=n(45394),a=n(79847);let s=(e,t)=>{let{wrap:n,truncate:r,block:s,italic:l,underline:c,strikethrough:u,size:d,font:p,weight:f,align:h}=e;return{align:null!=h?h:"start",block:null!=s&&s,font:null!=p?p:"base",italic:null!=l&&l,size:null!=d?d:300,strikethrough:null!=u&&u,truncate:null!=r&&r,underline:null!=c&&c,weight:null!=f?f:"regular",wrap:null==n||n,components:{root:"span"},root:o.Gk((0,a.g)("span",{ref:t,...e}),{elementType:"span"})}};var l=n(68839),c=n(61955);let u=e=>((0,c.C)(e),(0,l.Y)(e.root,{}));var d=n(84782),p=n(95750);let f="fui-Text",h=(0,d.X)({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),m=e=>{let t=h();return e.root.className=(0,p.z)(f,t.root,!1===e.wrap&&t.nowrap,e.truncate&&t.truncate,e.block&&t.block,e.italic&&t.italic,e.underline&&t.underline,e.strikethrough&&t.strikethrough,e.underline&&e.strikethrough&&t.strikethroughUnderline,100===e.size&&t.base100,200===e.size&&t.base200,400===e.size&&t.base400,500===e.size&&t.base500,600===e.size&&t.base600,700===e.size&&t.hero700,800===e.size&&t.hero800,900===e.size&&t.hero900,1e3===e.size&&t.hero1000,"monospace"===e.font&&t.monospace,"numeric"===e.font&&t.numeric,"medium"===e.weight&&t.weightMedium,"semibold"===e.weight&&t.weightSemibold,"bold"===e.weight&&t.weightBold,"center"===e.align&&t.alignCenter,"end"===e.align&&t.alignEnd,"justify"===e.align&&t.alignJustify,e.root.className),e};var g=n(84388);let v=r.forwardRef((e,t)=>{let n=s(e,t);return m(n),(0,g.$e)("useTextStyles_unstable")(n),u(n)});v.displayName="Text"},98244(e,t,n){"use strict";n.d(t,{m:()=>M});var r=n(40887),o=n(20880),a=n(32992),s=n(33104),l=n(18070),c=n(75480),u=n(96472);function d(){let e=(0,u.K)();return r.useCallback(()=>{var t,n;return null!=(n=null==(t=e.current)?void 0:t.isNavigatingWithKeyboard())&&n},[e])}var p=n(51022),f=n(67613),h=n(33568),m=n(98259),g=n(45394),v=n(30122),y=n(67745),b=n(24681),x=n(41453),C=n(7666),k=n(89076),w=n(69652);let S=e=>{var t,n,u,S,_,E;let P=(0,l.n)(),I=(0,f.wR)(),{targetDocument:T}=(0,c.Y)(),[D,A]=(0,h.Z)(),{appearance:R="normal",children:N,content:B,withArrow:M=!1,positioning:F="above",onVisibleChange:O,relationship:L,showDelay:H=250,hideDelay:z=250,mountNode:V}=e,[U,j]=(0,m.i)({state:e.visible,initialState:!1}),W=r.useCallback((e,t)=>{A(),j(n=>(t.visible!==n&&(null==O||O(e,t)),t.visible))},[A,j,O]),q={withArrow:M,positioning:F,showDelay:H,hideDelay:z,relationship:L,visible:U,shouldRenderTooltip:U,appearance:R,mountNode:V,components:{content:"div"},content:g.Gk(B,{defaultProps:{role:"tooltip"},elementType:"div"})};q.content.id=(0,v.Bi)("tooltip-",q.content.id);let G={enabled:q.visible,arrowPadding:8,position:"above",align:"center",offset:4,...(0,o.P)(q.positioning)};q.withArrow&&(G.offset=(0,a.H)(G.offset,6));let{targetRef:K,containerRef:X,arrowRef:Y}=(0,s.T)(G);q.content.ref=(0,y.a)(q.content.ref,X),q.arrowRef=Y,(0,b.E)(()=>{if(U){var e;let t={hide:e=>W(void 0,{visible:!1,documentKeyboardEvent:e})};null==(e=P.visibleTooltip)||e.hide(),P.visibleTooltip=t;let n=e=>{"Escape"!==e.key||e.defaultPrevented||(t.hide(e),e.preventDefault())};return null==T||T.addEventListener("keydown",n,{capture:!0}),()=>{P.visibleTooltip===t&&(P.visibleTooltip=void 0),null==T||T.removeEventListener("keydown",n,{capture:!0})}}},[P,T,U,W]);let Q=r.useRef(!1),J=r.useCallback(e=>{if("focus"===e.type&&Q.current){Q.current=!1;return}D(()=>{W(e,{visible:!0})},P.visibleTooltip?0:q.showDelay),e.persist()},[D,W,q.showDelay,P]),Z=d(),[ee]=r.useState(()=>{let e=e=>{var t;(null==(t=e.detail)?void 0:t.isFocusedProgrammatically)&&!Z()&&(Q.current=!0)},t=null;return n=>{null==t||t.removeEventListener(p.Oy,e),null==n||n.addEventListener(p.Oy,e),t=n}}),et=r.useCallback(e=>{let t=q.hideDelay;"blur"===e.type&&(t=0,Q.current=(null==T?void 0:T.activeElement)===e.target),D(()=>{W(e,{visible:!1})},t),e.persist()},[D,W,q.hideDelay,T]);q.content.onPointerEnter=(0,x.p)(q.content.onPointerEnter,A),q.content.onPointerLeave=(0,x.p)(q.content.onPointerLeave,et),q.content.onFocus=(0,x.p)(q.content.onFocus,A),q.content.onBlur=(0,x.p)(q.content.onBlur,et);let en=(0,C.h)(N),er={},eo=(null==en||null==(t=en.props)?void 0:t["aria-haspopup"])==="menu"&&(null==en||null==(n=en.props)?void 0:n["aria-expanded"]);return"label"===L?"string"==typeof q.content.children?er["aria-label"]=q.content.children:(er["aria-labelledby"]=q.content.id,q.shouldRenderTooltip=!0):"description"===L&&(er["aria-describedby"]=q.content.id,q.shouldRenderTooltip=!0),(I||eo)&&(q.shouldRenderTooltip=!1),q.children=(0,k.L)(N,{...er,...null==en?void 0:en.props,ref:(0,y.a)(null==en?void 0:en.ref,ee,void 0===G.target?K:void 0),onPointerEnter:(0,w.D)((0,x.p)(null==en||null==(u=en.props)?void 0:u.onPointerEnter,J)),onPointerLeave:(0,w.D)((0,x.p)(null==en||null==(S=en.props)?void 0:S.onPointerLeave,et)),onFocus:(0,w.D)((0,x.p)(null==en||null==(_=en.props)?void 0:_.onFocus,J)),onBlur:(0,w.D)((0,x.p)(null==en||null==(E=en.props)?void 0:E.onBlur,et))}),q};var _=n(68839),E=n(39772),P=n(61955);let I=e=>((0,P.C)(e),(0,_.FD)(r.Fragment,{children:[e.children,e.shouldRenderTooltip&&(0,_.Y)(E.Z,{mountNode:e.mountNode,children:(0,_.FD)(e.content,{children:[e.withArrow&&(0,_.Y)("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}));var T=n(84388),D=n(84782),A=n(95750);let R="fui-Tooltip__content",N=(0,D.X)({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bzqsji",De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],[".f1bzqsji{padding:4px 11px 6px 11px;}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),B=e=>{let t=N();return e.content.className=(0,A.z)(R,t.root,"inverted"===e.appearance&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow,e},M=e=>{let t=S(e);return B(t),(0,T.$e)("useTooltipStyles_unstable")(t),I(t)};M.displayName="Tooltip",M.isFluentTriggerComponent=!0},61955(e,t,n){"use strict";function r(e){}n.d(t,{C:()=>r}),n(40887)},16149(e,t,n){"use strict";n.d(t,{Y:()=>r,o:()=>o});let r=Symbol.for("fui.slotRenderFunction"),o=Symbol.for("fui.slotElementType")},79847(e,t,n){"use strict";n.d(t,{g:()=>o}),n(40887);var r=n(36204);let o=(e,t,n)=>{var o;return(0,r._)(null!=(o=t.as)?o:e,t,n)}},45394(e,t,n){"use strict";n.d(t,{Gf:()=>l,Gk:()=>a,lq:()=>s});var r=n(40887),o=n(16149);function a(e,t){let{defaultProps:n,elementType:r}=t,a=l(e),s={...n,...a,[o.o]:r};return a&&"function"==typeof a.children&&(s[o.Y]=a.children,s.children=null==n?void 0:n.children),s}function s(e,t){if(null!==e&&(void 0!==e||t.renderByDefault))return a(e,t)}function l(e){return"string"==typeof e||"number"==typeof e||Array.isArray(e)||r.isValidElement(e)?{children:e}:e}},98259(e,t,n){"use strict";n.d(t,{i:()=>a});var r=n(40887);function o(e){return"function"==typeof e}let a=e=>{let[t,n]=r.useState(()=>void 0===e.defaultState?e.initialState:s(e.defaultState)?e.defaultState():e.defaultState),a=r.useRef(e.state);r.useEffect(()=>{a.current=e.state},[e.state]);let c=r.useCallback(e=>{o(e)&&e(a.current)},[]);return l(e.state)?[e.state,c]:[t,n]};function s(e){return"function"==typeof e}let l=e=>{let[t]=r.useState(()=>void 0!==e);return t}},69652(e,t,n){"use strict";n.d(t,{D:()=>a});var r=n(40887),o=n(24681);let a=e=>{let t=r.useRef(()=>{throw Error("Cannot call an event handler while rendering")});return(0,o.E)(()=>{t.current=e},[e]),r.useCallback((...e)=>(0,t.current)(...e),[t])}},30122(e,t,n){"use strict";n.d(t,{Bi:()=>c,LX:()=>s});var r=n(40887),o=n(67613);let a=r.createContext(void 0),s=a.Provider;function l(){return r.useContext(a)||""}function c(e="fui-",t){let n=(0,o.LM)(),a=l(),s=r.useId;if(s){let n=s(),o=r.useMemo(()=>n.replace(/:/g,""),[n]);return t||`${a}${e}${o}`}return r.useMemo(()=>t||`${a}${e}${++n.current}`,[a,e,t,n])}},24681(e,t,n){"use strict";n.d(t,{E:()=>o});var r=n(40887);let o=(0,n(67855).S)()?r.useLayoutEffect:r.useEffect},67745(e,t,n){"use strict";n.d(t,{a:()=>o});var r=n(40887);function o(...e){let t=r.useCallback(n=>{for(let r of(t.current=n,e))"function"==typeof r?r(n):r&&(r.current=n)},[...e]);return t}},18165(e,t,n){"use strict";n.d(t,{W:()=>l});var r=n(40887),o=n(69652),a=n(75480);let s=(e,t)=>!!(null==e?void 0:e.contains(t)),l=e=>{let{targetDocument:t}=(0,a.Y)(),n=null==t?void 0:t.defaultView,{refs:l,callback:u,element:p,disabled:f,disabledFocusOnIframe:h,contains:m=s}=e,g=r.useRef(void 0);d({element:p,disabled:h||f,callback:u,refs:l,contains:m});let v=r.useRef(!1),y=(0,o.D)(e=>{if(v.current){v.current=!1;return}let t=e.composedPath()[0];l.every(e=>!m(e.current||null,t))&&!f&&u(e)}),b=(0,o.D)(e=>{v.current=l.some(t=>m(t.current||null,e.target))});r.useEffect(()=>{if(f)return;let e=c(n),t=t=>{if(t===e){e=void 0;return}y(t)};return null==p||p.addEventListener("click",t,!0),null==p||p.addEventListener("touchstart",t,!0),null==p||p.addEventListener("contextmenu",t,!0),null==p||p.addEventListener("mousedown",b,!0),g.current=null==n?void 0:n.setTimeout(()=>{e=void 0},1),()=>{null==p||p.removeEventListener("click",t,!0),null==p||p.removeEventListener("touchstart",t,!0),null==p||p.removeEventListener("contextmenu",t,!0),null==p||p.removeEventListener("mousedown",b,!0),null==n||n.clearTimeout(g.current),e=void 0}},[y,p,f,b,n])},c=e=>{if(e){var t,n,r;return"object"==typeof e.window&&e.window===e?e.event:null!=(r=null==(n=e.ownerDocument)||null==(t=n.defaultView)?void 0:t.event)?r:void 0}},u="fuiframefocus",d=e=>{let{disabled:t,element:n,callback:a,contains:l=s,pollDuration:c=1e3,refs:d}=e,p=r.useRef(),f=(0,o.D)(e=>{d.every(t=>!l(t.current||null,e.target))&&!t&&a(e)});r.useEffect(()=>{if(!t)return null==n||n.addEventListener(u,f,!0),()=>{null==n||n.removeEventListener(u,f,!0)}},[n,t,f]),r.useEffect(()=>{var e;if(!t)return p.current=null==n||null==(e=n.defaultView)?void 0:e.setInterval(()=>{let e=null==n?void 0:n.activeElement;if((null==e?void 0:e.tagName)==="IFRAME"||(null==e?void 0:e.tagName)==="WEBVIEW"){let t=new CustomEvent(u,{bubbles:!0});e.dispatchEvent(t)}},c),()=>{var e;null==n||null==(e=n.defaultView)||e.clearTimeout(p.current)}},[n,t,c])}},62224(e,t,n){"use strict";n.d(t,{z:()=>a});var r=n(40887),o=n(69652);let a=e=>{let{refs:t,callback:n,element:a,disabled:s,contains:l}=e,c=(0,o.D)(e=>{let r=l||((e,t)=>!!(null==e?void 0:e.contains(t))),o=e.composedPath()[0];t.every(e=>!r(e.current||null,o))&&!s&&n(e)});r.useEffect(()=>{if(!s)return null==a||a.addEventListener("wheel",c),null==a||a.addEventListener("touchmove",c),()=>{null==a||a.removeEventListener("wheel",c),null==a||a.removeEventListener("touchmove",c)}},[c,a,s])}},33568(e,t,n){"use strict";n.d(t,{Z:()=>c});var r=n(40887);function o(e,t){let n=r.useRef(void 0),o=r.useCallback((r,o)=>(void 0!==n.current&&t(n.current),n.current=e(r,o),n.current),[t,e]),a=r.useCallback(()=>{void 0!==n.current&&(t(n.current),n.current=void 0)},[t]);return r.useEffect(()=>a,[a]),[o,a]}var a=n(75480);let s=e=>-1,l=e=>void 0;function c(){let{targetDocument:e}=(0,a.Y)(),t=null==e?void 0:e.defaultView;return o(t?t.setTimeout:s,t?t.clearTimeout:l)}},67613(e,t,n){"use strict";n.d(t,{LM:()=>l,wR:()=>c});var r=n(40887),o=n(67855);let a={current:0},s=r.createContext(void 0);function l(){var e;return null!=(e=r.useContext(s))?e:a}function c(){let e=l()!==a,[t,n]=r.useState(e);return(0,o.S)()&&e&&r.useLayoutEffect(()=>{n(!1)},[]),t}},67855(e,t,n){"use strict";function r(){return"u">typeof window&&!!(window.document&&window.document.createElement)}n.d(t,{S:()=>r})},89076(e,t,n){"use strict";n.d(t,{L:()=>a});var r=n(40887),o=n(37662);function a(e,t){return"function"==typeof e?e(t):e?s(e,t):e||null}function s(e,t){if(!r.isValidElement(e)||e.type===r.Fragment)throw Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(!(0,o.Z)(e))return r.cloneElement(e,t);{let n=s(e.props.children,t);return r.cloneElement(e,void 0,n)}}},7666(e,t,n){"use strict";n.d(t,{h:()=>a});var r=n(40887),o=n(37662);function a(e){return r.isValidElement(e)?(0,o.Z)(e)?a(e.props.children):e:null}},37662(e,t,n){"use strict";function r(e){return!!e.type.isFluentTriggerComponent}n.d(t,{Z:()=>r}),n(40887)},36204(e,t,n){"use strict";n.d(t,{n:()=>w,_:()=>k}),n(40887);let r=(...e)=>{let t={};for(let n of e)for(let e of Array.isArray(n)?n:Object.keys(n))t[e]=1;return t},o=r(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),a=r(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),s=r(["itemID","itemProp","itemRef","itemScope","itemType"]),l=r(a,o,s),c=r(l,["form"]),u=r(l,["height","loop","muted","preload","src","width"]),d=r(u,["poster"]),p=r(l,["start"]),f=r(l,["value"]),h=r(l,["download","href","hrefLang","media","rel","target","type"]),m=r(l,["dateTime"]),g=r(l,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),v=r(g,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),y=r(g,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),b=r(g,["form","multiple","required"]);function x(e,t,n){let r=Array.isArray(t),o={};for(let a of Object.keys(e))(!r&&t[a]||r&&t.indexOf(a)>=0||0===a.indexOf("data-")||0===a.indexOf("aria-"))&&(!n||(null==n?void 0:n.indexOf(a))===-1)&&(o[a]=e[a]);return o}let C={label:c,audio:u,video:d,ol:p,li:f,a:h,button:g,input:v,textarea:y,select:b,option:r(l,["selected","value"]),table:r(l,["cellPadding","cellSpacing"]),tr:l,th:r(l,["colSpan","rowSpan","scope"]),td:r(l,["colSpan","headers","rowSpan","scope"]),colGroup:r(l,["span"]),col:r(l,["span"]),fieldset:r(l,["disabled","form"]),form:r(l,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframe:r(l,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),img:r(l,["alt","crossOrigin","height","src","srcSet","useMap","width"]),time:m,dialog:r(l,["open","onCancel","onClose"])};function k(e,t,n){let r=e&&C[e]||l;return r.as=1,x(t,r,n)}let w=({primarySlotTagName:e,props:t,excludedPropNames:n})=>({root:{style:t.style,className:t.className},primary:k(e,t,[...n||[],"style","className"])})},4582(e,t,n){"use strict";function r(e,t){var n,r;let o=e;return!!((null==o||null==(n=o.ownerDocument)?void 0:n.defaultView)&&o instanceof o.ownerDocument.defaultView[null!=(r=null==t?void 0:t.constructorName)?r:"HTMLElement"])}n.d(t,{s:()=>r})},41453(e,t,n){"use strict";function r(e,t){return(...n)=>{null==e||e(...n),null==t||t(...n)}}n.d(t,{p:()=>r})},1594(e,t,n){"use strict";n.d(t,{s:()=>o});var r=n(56223);function o(e,t){if(!e||!t)return!1;if(e===t)return!0;{let n=new WeakSet;for(;t;){let o=(0,r.P)(t,{skipVirtual:n.has(t)});if(n.add(t),o===e)return!0;t=o}}return!1}},56223(e,t,n){"use strict";function r(e){return e&&!!e._virtual}function o(e){return r(e)&&e._virtual.parent||null}function a(e,t={}){if(!e)return null;if(!t.skipVirtual){let t=o(e);if(t)return t}let n=e.parentNode;return n&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n.host:n}n.d(t,{P:()=>a})},16104(e,t,n){"use strict";n.d(t,{ZY:()=>s,_0:()=>o,ox:()=>a});var r=n(40887),o=r.createContext({window:"object"==typeof window?window:void 0}),a=function(){return r.useContext(o).window},s=function(){var e;return null==(e=r.useContext(o).window)?void 0:e.document}},75171(e,t,n){"use strict";n.d(t,{A:()=>r});var r={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13}},99050(e,t,n){"use strict";n.d(t,{r:()=>m});var r=n(55478),o=n(40887),a=n(39326),s=n(38161),l=n(1965),c=n(82540),u=n(4825),d=n(46511),p="40px",f="0 4px",h=(0,u.J9)(function(e,t){var n,r,o,a=(0,d.$)(e),s={root:{padding:f,height:p,color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent",selectors:((n={})[c.up]={borderColor:"Window"},n)},rootHovered:{color:e.palette.themePrimary,selectors:((r={})[c.up]={color:"Highlight"},r)},iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:{color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent",selectors:((o={})[c.up]={color:"GrayText"},o)},rootChecked:{color:e.palette.black},iconChecked:{color:e.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:e.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:e.palette.neutralSecondary},textContainer:{flexGrow:0}};return(0,c.TW)(a,s,t)}),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(a.S,(0,r.__assign)({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:h(n,t),onRenderDescription:s.K}))},t=(0,r.__decorate)([(0,l.T)("ActionButton",["theme","styles"],!0)],t)}(o.Component)},99957(e,t,n){"use strict";n.d(t,{_:()=>a,o:()=>s});var r=n(4825),o=n(82540),a={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},s=(0,r.J9)(function(e,t,n,r,s,l,c,u,d,p,f){var h,m,g=(0,o.Km)(a,e||{}),v=p&&!f;return(0,o.l8)({root:[g.msButton,t.root,r,d&&["is-checked",t.rootChecked],v&&["is-expanded",t.rootExpanded,{selectors:((h={})[":hover .".concat(g.msButtonIcon)]=t.iconExpandedHovered,h[":hover .".concat(g.msButtonMenuIcon)]=t.menuIconExpandedHovered||t.rootExpandedHovered,h[":hover"]=t.rootExpandedHovered,h)}],u&&[a.msButtonHasMenu,t.rootHasMenu],c&&["is-disabled",t.rootDisabled],!c&&!v&&!d&&{selectors:((m={":hover":t.rootHovered})[":hover .".concat(g.msButtonLabel)]=t.labelHovered,m[":hover .".concat(g.msButtonIcon)]=t.iconHovered,m[":hover .".concat(g.msButtonDescription)]=t.descriptionHovered,m[":hover .".concat(g.msButtonMenuIcon)]=t.menuIconHovered,m[":focus"]=t.rootFocused,m[":active"]=t.rootPressed,m[":active .".concat(g.msButtonIcon)]=t.iconPressed,m[":active .".concat(g.msButtonDescription)]=t.descriptionPressed,m[":active .".concat(g.msButtonMenuIcon)]=t.menuIconPressed,m)},c&&d&&[t.rootCheckedDisabled],!c&&d&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},n],flexContainer:[g.msButtonFlexContainer,t.flexContainer],textContainer:[g.msButtonTextContainer,t.textContainer],icon:[g.msButtonIcon,s,t.icon,v&&t.iconExpanded,d&&t.iconChecked,c&&t.iconDisabled],label:[g.msButtonLabel,t.label,d&&t.labelChecked,c&&t.labelDisabled],menuIcon:[g.msButtonMenuIcon,l,t.menuIcon,d&&t.menuIconChecked,c&&!f&&t.menuIconDisabled,!c&&!v&&!d&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},v&&["is-expanded",t.menuIconExpanded]],description:[g.msButtonDescription,t.description,d&&t.descriptionChecked,c&&t.descriptionDisabled],screenReaderText:[g.msButtonScreenReaderText,t.screenReaderText]})})},39326(e,t,n){"use strict";n.d(t,{S:()=>O});var r=n(55478),o=n(40887),a=n(98904),s=n(4825),l=n(34534),c=n(86881),u=n(20006),d=n(25733),p=n(10059),f=n(40261),h=n(91518),m=n(77748),g=n(49787),v=n(78780),y=n(68032),b=n(50118),x=n(38161),C=n(31068),k=n(49892),w=n(80866),S=n(30217),_=n(23755),E=n(76650),P=function(e){var t=e.className,n=e.imageProps,a=(0,y.G1)(e,y.vt,["aria-label","aria-labelledby","title","aria-describedby"]),s=n.alt||e["aria-label"],c=s||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,u={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},d=c?{}:{"aria-hidden":!0};return o.createElement("div",(0,r.__assign)({},d,a,{className:(0,l.A)(E.xD,E.xW.root,E.xW.image,t)}),o.createElement(_._,(0,r.__assign)({},u,n,{alt:c?s:""})))},I=n(75171),T=n(11491),D=n(99957),A=n(82540),R=(0,s.J9)(function(e,t,n,r,o){return{root:(0,A.Zq)(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],r&&!t&&[e.splitButtonMenuButtonChecked],o&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:(0,A.Zq)(e.splitButtonContainer,!t&&r&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!r&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:(0,A.Zq)(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:(0,A.Zq)(e.splitButtonFlexContainer),divider:(0,A.Zq)(e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}}),N=n(78316),B=n(10286),M=500,F="BaseButton",O=function(e){function t(t){var n=e.call(this,t)||this;return n._buttonElement=o.createRef(),n._splitButtonContainer=o.createRef(),n._mergedRef=(0,a.K)(),n._renderedVisibleMenu=!1,n._getMemoizedMenuButtonKeytipProps=(0,s.J9)(function(e){return(0,r.__assign)((0,r.__assign)({},e),{hasMenu:!0})}),n._onRenderIcon=function(e,t){var a=n.props.iconProps;if(a&&(void 0!==a.iconName||a.imageProps)){var s=a.className,c=a.imageProps,u=(0,r.__rest)(a,["className","imageProps"]);if(a.styles)return o.createElement(w.I,(0,r.__assign)({className:(0,l.A)(n._classNames.icon,s),imageProps:c},u));if(a.iconName)return o.createElement(S.l8,(0,r.__assign)({className:(0,l.A)(n._classNames.icon,s)},u));if(c)return o.createElement(P,(0,r.__assign)({className:(0,l.A)(n._classNames.icon,s),imageProps:c},u))}return null},n._onRenderTextContents=function(){var e=n.props,t=e.text,r=e.children,a=e.secondaryText,s=void 0===a?n.props.description:a,l=e.onRenderText,c=void 0===l?n._onRenderText:l,u=e.onRenderDescription,d=void 0===u?n._onRenderDescription:u;return t||"string"==typeof r||s?o.createElement("span",{className:n._classNames.textContainer},c(n.props,n._onRenderText),d(n.props,n._onRenderDescription)):[c(n.props,n._onRenderText),d(n.props,n._onRenderDescription)]},n._onRenderText=function(){var e=n.props.text,t=n.props.children;return(void 0===e&&"string"==typeof t&&(e=t),n._hasText())?o.createElement("span",{key:n._labelId,className:n._classNames.label,id:n._labelId},e):null},n._onRenderChildren=function(){var e=n.props.children;return"string"==typeof e?null:e},n._onRenderDescription=function(e){var t=e.secondaryText,r=void 0===t?n.props.description:t;return r?o.createElement("span",{key:n._descriptionId,className:n._classNames.description,id:n._descriptionId},r):null},n._onRenderAriaDescription=function(){var e=n.props.ariaDescription;return e?o.createElement("span",{className:n._classNames.screenReaderText,id:n._ariaDescriptionId},e):null},n._onRenderMenuIcon=function(e){var t=n.props.menuIconProps;return o.createElement(S.l8,(0,r.__assign)({iconName:"ChevronDown"},t,{className:n._classNames.menuIcon}))},n._onRenderMenu=function(e){var t=n.props.menuAs?(0,B.C)(n.props.menuAs,T.l):T.l;return o.createElement(t,(0,r.__assign)({},e))},n._onDismissMenu=function(e){var t=n.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||n._dismissMenu()},n._dismissMenu=function(){n._menuShouldFocusOnMount=void 0,n._menuShouldFocusOnContainer=void 0,n.setState({menuHidden:!0})},n._openMenu=function(e,t){void 0===t&&(t=!0),n.props.menuProps&&(n._menuShouldFocusOnContainer=e,n._menuShouldFocusOnMount=t,n._renderedVisibleMenu=!0,n.setState({menuHidden:!1}))},n._onToggleMenu=function(e){var t=!0;n.props.menuProps&&!1===n.props.menuProps.shouldFocusOnMount&&(t=!1),n.state.menuHidden?n._openMenu(e,t):n._dismissMenu()},n._onSplitContainerFocusCapture=function(e){var t=n._splitButtonContainer.current;!t||e.target&&(0,c.s)(e.target,t)||t.focus()},n._onSplitButtonPrimaryClick=function(e){n.state.menuHidden||n._dismissMenu();var t=n._processingTouch&&!n.props.toggle;!t&&n.props.onClick?n.props.onClick(e):t&&n._onMenuClick(e)},n._onKeyDown=function(e){n.props.disabled&&(e.which===u.c.enter||e.which===u.c.space)?(e.preventDefault(),e.stopPropagation()):n.props.disabled||(n.props.menuProps?n._onMenuKeyDown(e):void 0!==n.props.onKeyDown&&n.props.onKeyDown(e))},n._onKeyUp=function(e){n.props.disabled||void 0===n.props.onKeyUp||n.props.onKeyUp(e)},n._onKeyPress=function(e){n.props.disabled||void 0===n.props.onKeyPress||n.props.onKeyPress(e)},n._onMouseUp=function(e){n.props.disabled||void 0===n.props.onMouseUp||n.props.onMouseUp(e)},n._onMouseDown=function(e){n.props.disabled||void 0===n.props.onMouseDown||n.props.onMouseDown(e)},n._onClick=function(e){n.props.disabled||(n.props.menuProps?n._onMenuClick(e):void 0!==n.props.onClick&&n.props.onClick(e))},n._onSplitButtonContainerKeyDown=function(e){e.which===u.c.enter||e.which===u.c.space?n._buttonElement.current&&(n._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):n._onMenuKeyDown(e)},n._onMenuKeyDown=function(e){if(!n.props.disabled){n.props.onKeyDown&&n.props.onKeyDown(e);var t,r=e.which===u.c.up,o=e.which===u.c.down;if(!e.defaultPrevented&&n._isValidMenuOpenKey(e)){var a=n.props.onMenuClick;a&&a(e,n.props),n._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}(e.which===u.c.enter||e.which===u.c.space)&&(0,d.Fy)(!0,e.target,null==(t=n.context)?void 0:t.registeredProviders),!(e.altKey||e.metaKey)&&(r||o)&&!n.state.menuHidden&&n.props.menuProps&&((void 0!==n._menuShouldFocusOnMount?n._menuShouldFocusOnMount:n.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),n._menuShouldFocusOnMount=!0,n.forceUpdate()))}},n._onTouchStart=function(){!n._isSplitButton||!n._splitButtonContainer.current||"onpointerdown"in n._splitButtonContainer.current||n._handleTouchAndPointerEvent()},n._onMenuClick=function(e){var t=n.props,r=t.onMenuClick,o=t.menuProps;r&&r(e,n.props);var a="boolean"==typeof(null==o?void 0:o.shouldFocusOnContainer)?o.shouldFocusOnContainer:"mouse"===e.nativeEvent.pointerType;e.defaultPrevented||(n._onToggleMenu(a),e.preventDefault(),e.stopPropagation())},(0,p.f)(n),n._async=new f.j(n),n._events=new h.g(n),(0,m.J)(F,t,["menuProps","onClick"],"split",n.props.split),(0,g.A)(F,t,{rootProps:void 0,description:"secondaryText",toggled:"checked"}),n._labelId=(0,v.O)(),n._descriptionId=(0,v.O)(),n._ariaDescriptionId=(0,v.O)(),n.state={menuHidden:!0},n}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this.props,n=t.ariaDescription,r=t.ariaLabel,o=t.ariaHidden,a=t.className,s=t.disabled,l=t.allowDisabledFocus,c=t.primaryDisabled,u=t.secondaryText,d=void 0===u?this.props.description:u,p=t.href,f=t.iconProps,h=t.menuIconProps,m=t.styles,g=t.checked,v=t.variantClassName,C=t.theme,k=t.toggle,w=t.getClassNames,S=t.role,_=this.state.menuHidden,E=s||c;this._classNames=w?w(C,a,v,f&&f.className,h&&h.className,E,g,!_,!!this.props.menuProps,this.props.split,!!l):(0,D.o)(C,m,a,v,f&&f.className,h&&h.className,E,!!this.props.menuProps,g,!_,this.props.split);var P=this,I=P._ariaDescriptionId,T=P._labelId,A=P._descriptionId,R=!E&&!!p,N=R?"a":"button",B=(0,y.G1)((0,b.kp)(R?{}:{type:"button"},this.props.rootProps,this.props),R?y.t0:y.uw,["disabled"]),M=r||B["aria-label"],F=void 0;n?F=I:d&&this.props.onRenderDescription!==x.K?F=A:B["aria-describedby"]&&(F=B["aria-describedby"]);var O=void 0;B["aria-labelledby"]?O=B["aria-labelledby"]:F&&!M&&(O=this._hasText()?T:void 0);var L=!1!==this.props["data-is-focusable"]&&(!s||!!l)&&!this._isSplitButton,H="menuitemcheckbox"===S||"checkbox"===S,z=H||!0===k?!!g:void 0,V=(0,b.kp)(B,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:E&&!l,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":M,"aria-labelledby":O,"aria-describedby":F,"aria-disabled":E,"data-is-focusable":L})[H?"aria-checked":"aria-pressed"]=z,e));if(o&&(V["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(N,V);if(this.props.menuProps){var U=this.props.menuProps.id,j=void 0===U?"".concat(this._labelId,"-menu"):U;(0,b.kp)(V,{"aria-expanded":!_,"aria-controls":_?null:j,"aria-haspopup":!0})}return this._onRenderContent(N,V)},t.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},t.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.focus=function(){var e,t;this._isSplitButton&&this._splitButtonContainer.current?((0,d.Fy)(!0,void 0,null==(e=this.context)?void 0:e.registeredProviders),this._splitButtonContainer.current.focus()):this._buttonElement.current&&((0,d.Fy)(!0,void 0,null==(t=this.context)?void 0:t.registeredProviders),this._buttonElement.current.focus())},t.prototype.dismissMenu=function(){this._dismissMenu()},t.prototype.openMenu=function(e,t){this._openMenu(e,t)},t.prototype._onRenderContent=function(e,t){var n=this,a=this.props,s=e,l=a.menuIconProps,c=a.menuProps,u=a.onRenderIcon,d=void 0===u?this._onRenderIcon:u,p=a.onRenderAriaDescription,f=void 0===p?this._onRenderAriaDescription:p,h=a.onRenderChildren,m=void 0===h?this._onRenderChildren:h,g=a.onRenderMenu,v=void 0===g?this._onRenderMenu:g,y=a.onRenderMenuIcon,b=void 0===y?this._onRenderMenuIcon:y,x=a.disabled,k=a.keytipProps;k&&c&&(k=this._getMemoizedMenuButtonKeytipProps(k));var w=function(e){return o.createElement(s,(0,r.__assign)({},t,e),o.createElement("span",{className:n._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},d(a,n._onRenderIcon),n._onRenderTextContents(),f(a,n._onRenderAriaDescription),m(a,n._onRenderChildren),!n._isSplitButton&&(c||l||n.props.onRenderMenuIcon)&&b(n.props,n._onRenderMenuIcon),c&&!c.doNotLayer&&n._shouldRenderMenu()&&v(n._getMenuProps(c),n._onRenderMenu)))},S=k?o.createElement(N.x,{keytipProps:this._isSplitButton?void 0:k,ariaDescribedBy:t["aria-describedby"],disabled:x},function(e){return w(e)}):w();return c&&c.doNotLayer?o.createElement(o.Fragment,null,S,this._shouldRenderMenu()&&v(this._getMenuProps(c),this._onRenderMenu)):o.createElement(o.Fragment,null,S,o.createElement(C.MO,null))},t.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,n=t.persistMenu,r=t.renderPersistedMenuHiddenOnMount;return!e||!!n&&(!!this._renderedVisibleMenu||!!r)},t.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"==typeof this.props.children)},t.prototype._getMenuProps=function(e){var t=this.props.persistMenu,n=this.state.menuHidden;return!e.ariaLabel&&!e.labelElementId&&this._hasText()&&(e=(0,r.__assign)((0,r.__assign)({},e),{labelElementId:this._labelId})),(0,r.__assign)((0,r.__assign)({id:this._labelId+"-menu",directionalHint:I.A.bottomLeftEdge},e),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:t?n:void 0,className:(0,l.A)("ms-BaseButton-menuhost",e.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},t.prototype._onRenderSplitButtonContent=function(e,t){var n=this,a=this.props,s=a.styles,l=void 0===s?{}:s,c=a.disabled,u=a.allowDisabledFocus,d=a.checked,p=a.getSplitButtonClassNames,f=a.primaryDisabled,h=a.menuProps,m=a.toggle,g=a.role,v=a.primaryActionButtonProps,x=this.props.keytipProps,C=this.state.menuHidden,w=p?p(!!c,!C,!!d,!!u):l&&R(l,!!c,!C,!!d,!!f);(0,b.kp)(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),x&&h&&(x=this._getMemoizedMenuButtonKeytipProps(x));var S=(0,y.G1)(t,[],["disabled"]);v&&(0,b.kp)(t,v);var _=function(a){return o.createElement("div",(0,r.__assign)({},S,{"data-ktp-target":a?a["data-ktp-target"]:void 0,role:g||"button","aria-disabled":c,"aria-haspopup":!0,"aria-expanded":!C,"aria-pressed":m?!!d:void 0,"aria-describedby":(0,k._)(t["aria-describedby"],a?a["aria-describedby"]:void 0),className:w&&w.splitButtonContainer,onKeyDown:n._onSplitButtonContainerKeyDown,onTouchStart:n._onTouchStart,ref:n._splitButtonContainer,"data-is-focusable":!0,onClick:c||f?void 0:n._onSplitButtonPrimaryClick,tabIndex:(c||f)&&!u?void 0:0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:n._onSplitContainerFocusCapture}),o.createElement("span",{style:{display:"flex",width:"100%"}},n._onRenderContent(e,t),n._onRenderSplitButtonMenuButton(w,a),n._onRenderSplitButtonDivider(w)))};return x?o.createElement(N.x,{keytipProps:x,disabled:c},function(e){return _(e)}):_()},t.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){var t=function(e){e.stopPropagation()};return o.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:t})}return null},t.prototype._onRenderSplitButtonMenuButton=function(e,n){var a=this.props,s=a.allowDisabledFocus,l=a.checked,c=a.disabled,u=a.splitButtonMenuProps,d=a.splitButtonAriaLabel,p=a.primaryDisabled,f=this.state.menuHidden,h=this.props.menuIconProps;void 0===h&&(h={iconName:"ChevronDown"});var m=(0,r.__assign)((0,r.__assign)({},u),{styles:e,checked:l,disabled:c,allowDisabledFocus:s,onClick:this._onMenuClick,menuProps:void 0,iconProps:(0,r.__assign)((0,r.__assign)({},h),{className:this._classNames.menuIcon}),ariaLabel:d,"aria-haspopup":!0,"aria-expanded":!f,"data-is-focusable":!1});return o.createElement(t,(0,r.__assign)({},m,{"data-ktp-execute-target":n?n["data-ktp-execute-target"]:n,onMouseDown:this._onMouseDown,tabIndex:p&&!s?0:-1}))},t.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.state.menuHidden&&e.focus()},M)},t.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&e.which===u.c.down&&(e.altKey||e.metaKey)},t.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},t.contextType=C.dM,t}(o.Component)},46511(e,t,n){"use strict";n.d(t,{$:()=>l});var r=n(4825),o=n(82540),a={outline:0},s=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},l=(0,r.J9)(function(e){var t,n,r=e.semanticColors,l=e.effects,c=e.fonts,u=r.buttonBorder,d=r.disabledBackground,p=r.disabledText,f={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[(0,o.gm)(e,{inset:1,highContrastStyle:f,borderColor:"transparent"}),e.fonts.medium,{border:"1px solid "+u,borderRadius:l.roundedCorner2,boxSizing:"border-box",cursor:"pointer",display:"inline-block",padding:"0 16px",textDecoration:"none",textAlign:"center",userSelect:"none",selectors:{":active > span":{position:"relative",left:0,top:0}}}],rootDisabled:[(0,o.gm)(e,{inset:1,highContrastStyle:f,borderColor:"transparent"}),{backgroundColor:d,borderColor:d,color:p,cursor:"default",selectors:{":hover":a,":focus":a}}],iconDisabled:{color:p,selectors:((t={})[o.up]={color:"GrayText"},t)},menuIconDisabled:{color:p,selectors:((n={})[o.up]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:s(c.mediumPlus.fontSize),menuIcon:s(c.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:o.dX}})},65012(e,t,n){"use strict";n.d(t,{p:()=>c,y:()=>l});var r=n(55478),o=n(82540),a=n(25733),s=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function l(e){var t,n,a,l,c,u=e.semanticColors,d=e.palette,p=u.buttonBackground,f=u.buttonBackgroundPressed,h=u.buttonBackgroundHovered,m=u.buttonBackgroundDisabled,g=u.buttonText,v=u.buttonTextHovered,y=u.buttonTextDisabled,b=u.buttonTextChecked,x=u.buttonTextCheckedHovered;return{root:{backgroundColor:p,color:g},rootHovered:{backgroundColor:h,color:v,selectors:((t={})[o.up]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:f,color:b},rootExpanded:{backgroundColor:f,color:b},rootChecked:{backgroundColor:f,color:b},rootCheckedHovered:{backgroundColor:f,color:x},rootDisabled:{color:y,backgroundColor:m,selectors:((n={})[o.up]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:((a={})[o.up]={border:"none"},a)},splitButtonMenuButton:{color:d.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:d.neutralLight,selectors:((l={})[o.up]={color:"Highlight"},l)}}},splitButtonMenuButtonDisabled:{backgroundColor:u.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:u.buttonBackgroundDisabled}}},splitButtonDivider:(0,r.__assign)((0,r.__assign)({},s()),{backgroundColor:d.neutralTertiaryAlt,selectors:((c={})[o.up]={backgroundColor:"WindowText"},c)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:d.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:d.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:d.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:d.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:u.buttonText},splitButtonMenuIconDisabled:{color:u.buttonTextDisabled}}}function c(e){var t,n,l,c,u,d,p,f,h,m=e.palette,g=e.semanticColors;return{root:{backgroundColor:g.primaryButtonBackground,border:"1px solid ".concat(g.primaryButtonBackground),color:g.primaryButtonText,selectors:((t={})[o.up]=(0,r.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},(0,o.Qg)()),t[".".concat(a.Y2," &:focus")]={selectors:{":after":{border:"none",outlineColor:m.white}}},t)},rootHovered:{backgroundColor:g.primaryButtonBackgroundHovered,border:"1px solid ".concat(g.primaryButtonBackgroundHovered),color:g.primaryButtonTextHovered,selectors:((n={})[o.up]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:g.primaryButtonBackgroundPressed,border:"1px solid ".concat(g.primaryButtonBackgroundPressed),color:g.primaryButtonTextPressed,selectors:((l={})[o.up]=(0,r.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},(0,o.Qg)()),l)},rootExpanded:{backgroundColor:g.primaryButtonBackgroundPressed,color:g.primaryButtonTextPressed},rootChecked:{backgroundColor:g.primaryButtonBackgroundPressed,color:g.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:g.primaryButtonBackgroundPressed,color:g.primaryButtonTextPressed},rootDisabled:{color:g.primaryButtonTextDisabled,backgroundColor:g.primaryButtonBackgroundDisabled,selectors:((c={})[o.up]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},c)},splitButtonContainer:{selectors:((u={})[o.up]={border:"none"},u)},splitButtonDivider:(0,r.__assign)((0,r.__assign)({},s()),{backgroundColor:m.white,selectors:((d={})[o.up]={backgroundColor:"Window"},d)}),splitButtonMenuButton:{backgroundColor:g.primaryButtonBackground,color:g.primaryButtonText,selectors:((p={})[o.up]={backgroundColor:"Canvas"},p[":hover"]={backgroundColor:g.primaryButtonBackgroundHovered,selectors:((f={})[o.up]={color:"Highlight"},f)},p)},splitButtonMenuButtonDisabled:{backgroundColor:g.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:g.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:g.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:g.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:g.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:g.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:g.primaryButtonText},splitButtonMenuIconDisabled:{color:m.neutralTertiary,selectors:((h={})[o.up]={color:"GrayText"},h)}}}},21175(e,t,n){"use strict";n.d(t,{c:()=>r});var r=n(99050).r},30207(e,t,n){"use strict";n.d(t,{Y:()=>v});var r=n(55478),o=n(40887),a=n(39326),s=n(38161),l=n(1965),c=n(82540),u=n(4825),d=n(46511),p=n(58643),f=n(65012),h="32px",m="80px",g=(0,u.J9)(function(e,t,n){var r=(0,d.$)(e),o=(0,p.$)(e),a={root:{minWidth:m,height:h},label:{fontWeight:c.BO.semibold}};return(0,c.TW)(r,a,n?(0,f.p)(e):(0,f.y)(e),o,t)}),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,l=e.styles,c=e.theme;return o.createElement(a.S,(0,r.__assign)({},this.props,{variantClassName:n?"ms-Button--primary":"ms-Button--default",styles:g(c,l,n),onRenderDescription:s.K}))},t=(0,r.__decorate)([(0,l.T)("DefaultButton",["theme","styles"],!0)],t)}(o.Component)},78412(e,t,n){"use strict";n.d(t,{K:()=>h});var r=n(55478),o=n(40887),a=n(39326),s=n(38161),l=n(1965),c=n(82540),u=n(4825),d=n(46511),p=n(58643),f=(0,u.J9)(function(e,t){var n,r=(0,d.$)(e),o=(0,p.$)(e),a=e.palette,s={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:a.themeDarkAlt,backgroundColor:a.neutralLighter,selectors:((n={})[c.up]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:a.themeDark,backgroundColor:a.neutralLight},rootExpanded:{color:a.themeDark,backgroundColor:a.neutralLight},rootChecked:{color:a.themeDark,backgroundColor:a.neutralLight},rootCheckedHovered:{color:a.themeDark,backgroundColor:a.neutralQuaternaryAlt},rootDisabled:{color:a.neutralTertiaryAlt}};return(0,c.TW)(r,s,o,t)}),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return o.createElement(a.S,(0,r.__assign)({},this.props,{variantClassName:"ms-Button--icon",styles:f(n,t),onRenderText:s.K,onRenderDescription:s.K}))},t=(0,r.__decorate)([(0,l.T)("IconButton",["theme","styles"],!0)],t)}(o.Component)},86643(e,t,n){"use strict";n.d(t,{j:()=>c});var r=n(55478),o=n(40887),a=n(38161),s=n(1965),l=n(30207),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){return o.createElement(l.Y,(0,r.__assign)({},this.props,{primary:!0,onRenderDescription:a.K}))},t=(0,r.__decorate)([(0,s.T)("PrimaryButton",["theme","styles"],!0)],t)}(o.Component)},58643(e,t,n){"use strict";n.d(t,{$:()=>a});var r=n(55478),o=n(82540),a=(0,n(4825).J9)(function(e,t){var n,a,s,l,c,u,d,p,f,h,m,g,v,y=e.effects,b=e.palette,x=e.semanticColors,C={left:-2,top:-2,bottom:-2,right:-2,border:"none"},k={position:"absolute",width:1,right:31,top:8,bottom:8},w={splitButtonContainer:[(0,o.gm)(e,{highContrastStyle:C,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:((n={})[o.up]=(0,r.__assign)({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},(0,o.Qg)()),n[":hover"]={border:"none"},n[":active"]={border:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:((a={})[o.up]={border:"1px solid WindowText",borderLeftWidth:"0"},a)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:((s={})[o.up]={color:"Window",backgroundColor:"Highlight"},s)},".ms-Button.is-disabled":{color:x.buttonTextDisabled,selectors:((l={})[o.up]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},l)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:((c={})[o.up]=(0,r.__assign)({color:"Window",backgroundColor:"WindowText"},(0,o.Qg)()),c)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:((u={})[o.up]=(0,r.__assign)({color:"Window",backgroundColor:"WindowText"},(0,o.Qg)()),u)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:((d={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:y.roundedCorner2,borderBottomRightRadius:y.roundedCorner2,border:"1px solid ".concat(b.neutralSecondaryAlt),borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0})[o.up]={".ms-Button-menuIcon":{color:"WindowText"}},d),splitButtonDivider:(0,r.__assign)((0,r.__assign)({},k),{selectors:((p={})[o.up]={backgroundColor:"WindowText"},p)}),splitButtonDividerDisabled:(0,r.__assign)((0,r.__assign)({},k),{selectors:((f={})[o.up]={backgroundColor:"GrayText"},f)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:((h={":hover":{cursor:"default"},".ms-Button--primary":{selectors:((m={})[o.up]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},m)},".ms-Button-menuIcon":{selectors:((g={})[o.up]={color:"GrayText"},g)}})[o.up]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},h)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:((v={})[o.up]=(0,r.__assign)({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},(0,o.Qg)()),v)},splitButtonMenuFocused:(0,r.__assign)({},(0,o.gm)(e,{highContrastStyle:C,inset:2}))};return(0,o.TW)(w,t)})},8992(e,t,n){"use strict";n.d(t,{P:()=>eU});var r,o,a=n(55478),s=n(40887),l=n(93030),c=n(75171),u=n(66647),d=n(19949),p=n(53325),f=n(76325),h=n(68032),m=n(34534),g=n(50118),v=n(43029),y=n(35523),b=n(17940),x=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function C(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var k=((r={})[c.A.topLeftEdge]=C(v.x.top,v.x.left),r[c.A.topCenter]=C(v.x.top),r[c.A.topRightEdge]=C(v.x.top,v.x.right),r[c.A.topAutoEdge]=C(v.x.top,void 0,!0),r[c.A.bottomLeftEdge]=C(v.x.bottom,v.x.left),r[c.A.bottomCenter]=C(v.x.bottom),r[c.A.bottomRightEdge]=C(v.x.bottom,v.x.right),r[c.A.bottomAutoEdge]=C(v.x.bottom,void 0,!0),r[c.A.leftTopEdge]=C(v.x.left,v.x.top),r[c.A.leftCenter]=C(v.x.left),r[c.A.leftBottomEdge]=C(v.x.left,v.x.bottom),r[c.A.rightTopEdge]=C(v.x.right,v.x.top),r[c.A.rightCenter]=C(v.x.right),r[c.A.rightBottomEdge]=C(v.x.right,v.x.bottom),r);function w(e,t){return!(e.top<t.top)&&!(e.bottom>t.bottom)&&!(e.left<t.left)&&!(e.right>t.right)}function S(e,t){var n=[];return e.top<t.top&&n.push(v.x.top),e.bottom>t.bottom&&n.push(v.x.bottom),e.left<t.left&&n.push(v.x.left),e.right>t.right&&n.push(v.x.right),n}function _(e,t){return e[v.x[t]]}function E(e,t,n){return e[v.x[t]]=n,e}function P(e,t){var n=U(t);return(_(e,n.positiveEdge)+_(e,n.negativeEdge))/2}function I(e,t){return e>0?t:-1*t}function T(e,t){return I(e,_(t,e))}function D(e,t,n){var r=_(e,n)-_(t,n);return I(n,r)}function A(e,t,n,r){void 0===r&&(r=!0);var o=_(e,t)-n,a=E(e,t,n);return r&&(a=E(e,-1*t,_(e,-1*t)-o)),a}function R(e,t,n,r){return void 0===r&&(r=0),A(e,n,_(t,n)+I(n,r))}function N(e,t,n,r){void 0===r&&(r=0);var o=I(-1*n,r);return A(e,-1*n,_(t,n)+o)}function B(e,t,n){return T(n,e)>T(n,t)}function M(e,t){for(var n=S(e,t),r=0,o=0,a=n;o<a.length;o++)r+=Math.pow(D(e,t,a[o]),2);return r}function F(e,t,n,r,o){void 0===o&&(o=0);var a,s=[v.x.left,v.x.right,v.x.bottom,v.x.top];(0,y.jI)()&&(s[0]*=-1,s[1]*=-1);for(var l=e,c=r.targetEdge,u=r.alignmentEdge,d=c,p=u,f=0;f<4;f++)if(B(l,n,c))return{elementRectangle:l,targetEdge:c,alignmentEdge:u};else{var h=M(l,n);(!a||h<a)&&(a=h,d=c,p=u),s.splice(s.indexOf(c),1),s.length>0&&(s.indexOf(-1*c)>-1?c*=-1:(u=c,c=s.slice(-1)[0]),l=V(e,t,{targetEdge:c,alignmentEdge:u},o))}return{elementRectangle:l=V(e,t,{targetEdge:d,alignmentEdge:p},o),targetEdge:d,alignmentEdge:p}}function O(e,t,n,r){var o=e.alignmentEdge,a=e.targetEdge,s=e.elementRectangle,l=-1*o;return{elementRectangle:V(s,t,{targetEdge:a,alignmentEdge:l},n,r),targetEdge:a,alignmentEdge:l}}function L(e,t,n,r,o,a,s){void 0===o&&(o=0);var l=r.alignmentEdge,c=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:l};a||s||(u=F(e,t,n,r,o));var d=S(u.elementRectangle,n),p=a?-u.targetEdge:void 0;if(d.length>0)if(c)if(u.alignmentEdge&&d.indexOf(-1*u.alignmentEdge)>-1){var f=O(u,t,o,s);if(w(f.elementRectangle,n))return f;u=H(S(f.elementRectangle,n),u,n,p)}else u=H(d,u,n,p);else u=H(d,u,n,p);return u}function H(e,t,n,r){for(var o=0,a=e;o<a.length;o++){var s=a[o],l=void 0;r&&r===-1*s?(l=A(t.elementRectangle,s,_(n,s),!1),t.forcedInBounds=!0):B(l=R(t.elementRectangle,n,s),n,-1*s)||(l=A(l,-1*s,_(n,-1*s),!1),t.forcedInBounds=!0),t.elementRectangle=l}return t}function z(e,t,n){var r=U(t).positiveEdge,o=P(e,t)-_(e,r);return A(e,r,n-o)}function V(e,t,n,r,o){void 0===r&&(r=0);var a=new x(e.left,e.right,e.top,e.bottom),s=n.alignmentEdge,l=n.targetEdge,c=o?l:-1*l;return a=o?R(a,t,l,r):N(a,t,l,r),a=s?R(a,t,s):z(a,c,P(t,l))}function U(e){return e===v.x.top||e===v.x.bottom?{positiveEdge:v.x.left,negativeEdge:v.x.right}:{positiveEdge:v.x.top,negativeEdge:v.x.bottom}}function j(e,t,n){return n&&Math.abs(D(e,n,t))>Math.abs(D(e,n,-1*t))?-1*t:t}function W(e,t,n){return void 0!==n&&_(e,t)===_(n,t)}function q(e,t,n,r,o,a,s,l){var c={},u=ee(t),d=a?n:-1*n,p=o||U(n).positiveEdge;return(!s||W(e,ec(p),r))&&(p=j(e,p,r)),c[v.x[d]]=D(e,u,d),c[v.x[p]]=D(e,u,p),l&&(c[v.x[-1*d]]=D(e,u,-1*d),c[v.x[-1*p]]=D(e,u,-1*p)),c}function G(e){return Math.sqrt(e*e*2)}function K(e,t,n){if(void 0===e&&(e=c.A.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=(0,a.__assign)({},k[e]);return(0,y.jI)()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?k[t]:r):r}function X(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=Y(e.targetEdge,t,n)),e.alignTargetEdge=o,e}function Y(e,t,n){var r=P(t,e),o=P(n,e),a=U(e),s=a.positiveEdge,l=a.negativeEdge;return r<=o?s:l}function Q(e,t,n,r,o,a,s){var l=V(e,t,r,o,s);return w(l,n)?{elementRectangle:l,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:L(l,t,n,r,o,a,s)}function J(e,t,n){var r=-1*e.targetEdge,o=new x(0,e.elementRectangle.width,0,e.elementRectangle.height),s={},l=j(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:U(r).positiveEdge,n),c=D(e.elementRectangle,e.targetRectangle,r)>Math.abs(_(t,r));return s[v.x[r]]=_(t,r),s[v.x[l]]=D(t,o,l),{elementPosition:(0,a.__assign)({},s),closestEdge:Y(e.targetEdge,t,o),targetEdge:r,hideBeak:!c}}function Z(e,t){var n=t.targetRectangle,r=U(t.targetEdge),o=r.positiveEdge,a=r.negativeEdge,s=P(n,t.targetEdge),l=new x(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),c=new x(0,e,0,e);return B(c=z(c=A(c,-1*t.targetEdge,-e/2),-1*t.targetEdge,s-T(o,t.elementRectangle)),l,o)?B(c,l,a)||(c=R(c,l,a)):c=R(c,l,o),c}function ee(e){var t=e.getBoundingClientRect();return new x(t.left,t.right,t.top,t.bottom)}function et(e){return new x(e.left,e.right,e.top,e.bottom)}function en(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new x(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=ee(t);else{var o=t,a=o.left||o.x,s=o.top||o.y,l=o.right||a,c=o.bottom||s;n=new x(a,l,s,c)}if(!w(n,e))for(var u=S(n,e),d=0,p=u;d<p.length;d++){var f=p[d];n[v.x[f]]=e[v.x[f]]}}else n=new x(0,0,0,0);return n}function er(e,t,n,r){var o=e.gapSpace?e.gapSpace:0,s=en(n,e.target),l=X(K(e.directionalHint,e.directionalHintForRTL,r),s,n,e.coverTarget,e.alignTargetEdge),c=Q(ee(t),s,n,l,o,e.directionalHintFixed,e.coverTarget);return(0,a.__assign)((0,a.__assign)({},c),{targetRectangle:s})}function eo(e,t,n,r,o){return{elementPosition:q(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function ei(e,t,n,r,o){var s=e.isBeakVisible&&e.beakWidth||0,l=G(s)/2+(e.gapSpace?e.gapSpace:0),c=e;c.gapSpace=l;var u=e.bounds?et(e.bounds):new x(0,window.innerWidth-(0,b.XJ)(),0,window.innerHeight),d=er(c,n,u,r),p=Z(s,d),f=J(d,p,u);return(0,a.__assign)((0,a.__assign)({},eo(d,t,u,e.coverTarget,o)),{beakPosition:f})}function ea(e,t,n,r){return ei(e,t,n,r,!0)}function es(e,t,n,r){return ei(e,t,n,r)}function el(e,t,n,r){return ea(e,t,n,r)}function ec(e){return -1*e}function eu(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var a=e.getBoundingClientRect();r=(a.left+a.right)/2,o=(a.top+a.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var s={top:0,left:0,right:0,bottom:0,width:0,height:0},l=0,c=n;l<c.length;l++){var u=c[l];r&&u.left<=r&&u.right>=r&&o&&u.top<=o&&u.bottom>=o&&(s={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return s}function ed(e,t){return eu(e,t)}var ep=n(41072),ef=n(57273),eh=n(82540),em=n(4014),eg=n(7061),ev=n(74721),ey=n(49122),eb=n(94265),ex="CalloutContentBase",eC=((o={})[v.x.top]=eh.lw.slideUpIn10,o[v.x.bottom]=eh.lw.slideDownIn10,o[v.x.left]=eh.lw.slideLeftIn10,o[v.x.right]=eh.lw.slideRightIn10,o),ek=0,ew=0,eS={opacity:0,filter:"opacity(0)",pointerEvents:"none"},e_=["role","aria-roledescription"],eE={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:c.A.bottomAutoEdge},eP=(0,ef.Z)({disableCaching:!0});function eI(e,t,n){var r=e.bounds,o=e.minPagePadding,a=void 0===o?eE.minPagePadding:o,l=e.target,c=s.useState(!1),u=c[0],d=c[1],p=s.useRef(),f=s.useCallback(function(){if(!p.current||u){var e="function"==typeof r?n?r(l,n):void 0:r;!e&&n&&(e={top:(e=ed(t.current,n)).top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),p.current=e,u&&d(!1)}return p.current},[r,a,l,t,n,u]),h=(0,em.Y)();return(0,eg.x)(n,"resize",h.debounce(function(){d(!0)},500,{leading:!0})),f}function eT(e,t,n){var r,o=e.calloutMaxHeight,a=e.finalHeight,l=e.directionalHint,c=e.directionalHintFixed,u=e.hidden,d=s.useState(),p=d[0],f=d[1],h=null!=(r=null==n?void 0:n.elementPosition)?r:{},m=h.top,g=h.bottom;return s.useEffect(function(){var e,n,r=null!=(e=t())?e:{},a=r.top,s=r.bottom;"number"==typeof m&&s?n=s-m:"number"==typeof g&&"number"==typeof a&&s&&(n=s-a-g),!o&&!u||o&&n&&o>n?f(n):o?f(o):f(void 0)},[g,o,a,l,c,t,u,n,m]),p}function eD(e,t,n,r,o){var l=s.useState(),c=l[0],u=l[1],d=s.useRef(0),p=s.useRef(),f=(0,em.Y)(),h=e.hidden,m=e.target,g=e.finalHeight,v=e.calloutMaxHeight,y=e.onPositioned,b=e.directionalHint;return s.useEffect(function(){if(h)u(void 0),d.current=0;else{var s=f.requestAnimationFrame(function(){var s,l;if(t.current&&n){var f=(0,a.__assign)((0,a.__assign)({},e),{target:r.current,bounds:o()}),h=n.cloneNode(!0);h.style.maxHeight=v?"".concat(v):"",h.style.visibility="hidden",null==(s=n.parentElement)||s.appendChild(h);var b=p.current===m?c:void 0,x=g?el(f,t.current,h,b):es(f,t.current,h,b);null==(l=n.parentElement)||l.removeChild(h),!c&&x||c&&x&&!eM(c,x)&&d.current<5?(d.current++,u(x)):d.current>0&&(d.current=0,null==y||y(c))}},n);return p.current=m,function(){f.cancelAnimationFrame(s),p.current=void 0}}},[h,b,f,n,v,t,r,g,o,y,c,e,m]),c}function eA(e,t,n){var r=e.hidden,o=e.setInitialFocus,a=(0,em.Y)(),l=!!t;s.useEffect(function(){if(!r&&o&&l&&n){var e=a.requestAnimationFrame(function(){return(0,u.vO)(n)},n);return function(){return a.cancelAnimationFrame(e)}}},[r,l,a,n,o])}function eR(e,t,n,r,o){var a=e.hidden,l=e.onDismiss,c=e.preventDismissOnScroll,u=e.preventDismissOnResize,f=e.preventDismissOnLostFocus,h=e.dismissOnTargetClick,m=e.shouldDismissOnWindowFocus,g=e.preventDismissOnEvent,v=s.useRef(!1),y=(0,em.Y)(),b=(0,ev.d)([function(){v.current=!0},function(){v.current=!1}]),x=!!t;return s.useEffect(function(){var e=function(e){x&&!c&&b(e)},t=function(e){u||g&&g(e)||null==l||l(e)},s=function(e){f||b(e)},b=function(e){var t=e.composedPath?e.composedPath():[],a=t.length>0?t[0]:e.target,s=n.current&&!(0,d.s)(n.current,a);if(s&&v.current){v.current=!1;return}if(!r.current&&s||e.target!==o&&s&&(!r.current||"stopPropagation"in r.current||h||a!==r.current&&!(0,d.s)(r.current,a))){if(g&&g(e))return;null==l||l(e)}},C=function(e){m&&((!g||g(e))&&(g||f)||(null==o?void 0:o.document.hasFocus())||null!==e.relatedTarget||null==l||l(e))},k=new Promise(function(n){y.setTimeout(function(){if(!a&&o){var r=[(0,p.on)(o,"scroll",e,!0),(0,p.on)(o,"resize",t,!0),(0,p.on)(o.document.documentElement,"focus",s,!0),(0,p.on)(o.document.documentElement,"click",s,!0),(0,p.on)(o,"blur",C,!0)];n(function(){r.forEach(function(e){return e()})})}},0)});return function(){k.then(function(e){return e()})}},[a,y,n,r,o,l,m,h,f,u,c,x,g]),b}var eN=s.memo(s.forwardRef(function(e,t){var n=(0,f.N)(eE,e),r=n.styles,o=n.style,l=n.ariaLabel,c=n.ariaDescribedBy,u=n.ariaLabelledBy,d=n.className,p=n.isBeakVisible,g=n.children,v=n.beakWidth,y=n.calloutWidth,b=n.calloutMaxWidth,x=n.calloutMinWidth,C=n.doNotLayer,k=n.finalHeight,w=n.hideOverflow,S=void 0===w?!!k:w,_=n.backgroundColor,E=n.calloutMaxHeight,P=n.onScroll,I=n.shouldRestoreFocus,T=void 0===I||I,D=n.target,A=n.hidden,R=n.onLayerMounted,N=n.popupProps,B=s.useRef(null),M=s.useState(null),F=M[0],O=M[1],L=s.useCallback(function(e){O(e)},[]),H=(0,ey.a)(B,t),z=(0,eb.P)(n.target,{current:F}),V=z[0],U=z[1],j=eI(n,V,U),W=eD(n,B,F,V,j),q=eT(n,j,W),G=eR(n,W,B,V,U),K=G[0],X=G[1],Y=(null==W?void 0:W.elementPosition.top)&&(null==W?void 0:W.elementPosition.bottom),Q=(0,a.__assign)((0,a.__assign)({},null==W?void 0:W.elementPosition),{maxHeight:q});if(Y&&(Q.bottom=void 0),eA(n,W,F),s.useEffect(function(){A||null==R||R()},[A]),!U)return null;var J=S,Z=p&&!!D,ee=eP(r,{theme:n.theme,className:d,overflowYHidden:J,calloutWidth:y,positions:W,beakWidth:v,backgroundColor:_,calloutMaxWidth:b,calloutMinWidth:x,doNotLayer:C}),et=(0,a.__assign)((0,a.__assign)({maxHeight:E||"100%"},o),J&&{overflowY:"hidden"}),en=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:H,className:ee.container,style:en},s.createElement("div",(0,a.__assign)({},(0,h.G1)(n,h.JM,e_),{className:(0,m.A)(ee.root,W&&W.targetEdge&&eC[W.targetEdge]),style:W?(0,a.__assign)({},Q):eS,tabIndex:-1,ref:L}),Z&&s.createElement("div",{className:ee.beak,style:eB(W)}),Z&&s.createElement("div",{className:ee.beakCurtain}),s.createElement(ep.z,(0,a.__assign)({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:c,ariaLabel:l,ariaLabelledBy:u,className:ee.calloutMain,onDismiss:n.onDismiss,onMouseDown:K,onMouseUp:X,onRestoreFocus:n.onRestoreFocus,onScroll:P,shouldRestoreFocus:T,style:et},N),g)))}),function(e,t){return!t.shouldUpdateWhenHidden&&!!e.hidden&&!!t.hidden||(0,g.ab)(e,t)});function eB(e){var t,n,r=(0,a.__assign)((0,a.__assign)({},null==(t=null==e?void 0:e.beakPosition)?void 0:t.elementPosition),{display:(null==(n=null==e?void 0:e.beakPosition)?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=ew,r.top=ek),r}function eM(e,t){return eF(e.elementPosition,t.elementPosition)&&eF(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function eF(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o||r.toFixed(2)!==o.toFixed(2))return!1}return!0}function eO(e){return{height:e,width:e}}eN.displayName=ex;var eL={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},eH=function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,a=e.calloutWidth,s=e.beakWidth,l=e.backgroundColor,c=e.calloutMaxWidth,u=e.calloutMinWidth,d=e.doNotLayer,p=(0,eh.Km)(eL,n),f=n.semanticColors,h=n.effects;return{container:[p.container,{position:"relative"}],root:[p.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:d?eh.nA.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:((t={})[eh.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},(0,eh.QN)(),r,!!a&&{width:a},!!c&&{maxWidth:c},!!u&&{minWidth:u}],beak:[p.beak,{position:"absolute",backgroundColor:f.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},eO(s),l&&{backgroundColor:l}],beakCurtain:[p.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:f.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[p.calloutMain,{backgroundColor:f.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},l&&{backgroundColor:l}]}},ez=(0,l.I)(eN,eH,void 0,{scope:"CalloutContent"}),eV=n(92225),eU=s.forwardRef(function(e,t){var n=e.layerProps,r=e.doNotLayer,o=(0,a.__rest)(e,["layerProps","doNotLayer"]),l=s.createElement(ez,(0,a.__assign)({},o,{doNotLayer:r,ref:t}));return r?l:s.createElement(eV.W,(0,a.__assign)({},n),l)});eU.displayName="Callout"},15146(e,t,n){"use strict";n.d(t,{S:()=>S});var r=n(93030),o=n(55478),a=n(40887),s=n(1369),l=n(49122),c=n(15994),u=n(57273),d=n(31068),p=n(80866),f=(0,u.Z)(),h=a.forwardRef(function(e,t){var n=e.disabled,r=e.required,u=e.inputProps,h=e.name,m=e.ariaLabel,v=e.ariaLabelledBy,y=e.ariaDescribedBy,b=e.ariaPositionInSet,x=e.ariaSetSize,C=e.title,k=e.checkmarkIconProps,w=e.styles,S=e.theme,_=e.className,E=e.boxSide,P=void 0===E?"start":E,I=(0,s.B)("checkbox-",e.id),T=a.useRef(null),D=(0,l.a)(T,t),A=a.useRef(null),R=(0,c.k)(e.checked,e.defaultChecked,e.onChange),N=R[0],B=R[1],M=(0,c.k)(e.indeterminate,e.defaultIndeterminate),F=M[0],O=M[1];(0,d.vk)(T);var L=f(w,{theme:S,className:_,disabled:n,indeterminate:F,checked:N,reversed:"start"!==P,isUsingCustomLabelRender:!!e.onRenderLabel}),H=a.useCallback(function(e){F?(B(!!N,e),O(!1)):B(!N,e)},[B,O,F,N]),z=a.useCallback(function(e){return e&&e.label?a.createElement("span",{className:L.text,title:e.title},e.label):null},[L.text]),V=a.useCallback(function(e){if(A.current){var t=!!e;A.current.indeterminate=t,O(t)}},[O]);g(e,N,F,V,A),a.useEffect(function(){return V(F)},[V,F]);var U=e.onRenderLabel||z,j=F?"mixed":void 0,W=(0,o.__assign)((0,o.__assign)({className:L.input,type:"checkbox"},u),{checked:!!N,disabled:n,required:r,name:h,id:I,title:C,onChange:H,"aria-disabled":n,"aria-label":m,"aria-labelledby":v,"aria-describedby":y,"aria-posinset":b,"aria-setsize":x,"aria-checked":j});return a.createElement("div",{className:L.root,title:C,ref:D},a.createElement("input",(0,o.__assign)({},W,{ref:A,title:C,"data-ktp-execute-target":!0})),a.createElement("label",{className:L.label,htmlFor:I},a.createElement("div",{className:L.checkbox,"data-ktp-target":!0},a.createElement(p.I,(0,o.__assign)({iconName:"CheckMark"},k,{className:L.checkmark}))),U(e,z)))});function m(e){}function g(e,t,n,r,o){a.useImperativeHandle(e.componentRef,function(){return{get checked(){return!!t},get indeterminate(){return!!n},set indeterminate(indeterminate){r(indeterminate)},focus:function(){o.current&&o.current.focus()}}},[o,t,n,r])}h.displayName="CheckboxBase";var v=n(82540),y=n(25733),b={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},x="20px",C="200ms",k="cubic-bezier(.4, 0, .23, 1)",w=function(e){var t,n,r,a,s,l,c,u,d,p,f,h,m,g,w,S,_,E,P=e.className,I=e.theme,T=e.reversed,D=e.checked,A=e.disabled,R=e.isUsingCustomLabelRender,N=e.indeterminate,B=I.semanticColors,M=I.effects,F=I.palette,O=I.fonts,L=(0,v.Km)(b,I),H=B.inputForegroundChecked,z=F.neutralSecondary,V=F.neutralPrimary,U=B.inputBackgroundChecked,j=B.inputBackgroundChecked,W=B.disabledBodySubtext,q=B.inputBorderHovered,G=B.inputBackgroundCheckedHovered,K=B.inputBackgroundChecked,X=B.inputBackgroundCheckedHovered,Y=B.inputBackgroundCheckedHovered,Q=B.inputTextHovered,J=B.disabledBodySubtext,Z=B.bodyText,ee=B.disabledText,et=[((t={content:'""',borderRadius:M.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:A?W:U,transitionProperty:"border-width, border, border-color",transitionDuration:C,transitionTimingFunction:k})[v.up]={borderColor:"WindowText"},t)];return{root:[L.root,{position:"relative",display:"flex"},T&&"reversed",D&&"is-checked",!A&&"is-enabled",A&&"is-disabled",!A&&[!D&&((n={})[":hover .".concat(L.checkbox)]=((r={borderColor:q})[v.up]={borderColor:"Highlight"},r),n[":focus .".concat(L.checkbox)]={borderColor:q},n[":hover .".concat(L.checkmark)]=((a={color:z,opacity:"1"})[v.up]={color:"Highlight"},a),n),D&&!N&&((s={})[":hover .".concat(L.checkbox)]={background:X,borderColor:Y},s[":focus .".concat(L.checkbox)]={background:X,borderColor:Y},s[v.up]=((l={})[":hover .".concat(L.checkbox)]={background:"Highlight",borderColor:"Highlight"},l[":focus .".concat(L.checkbox)]={background:"Highlight"},l[":focus:hover .".concat(L.checkbox)]={background:"Highlight"},l[":focus:hover .".concat(L.checkmark)]={color:"Window"},l[":hover .".concat(L.checkmark)]={color:"Window"},l),s),N&&((c={})[":hover .".concat(L.checkbox,", :hover .").concat(L.checkbox,":after")]=((u={borderColor:G})[v.up]={borderColor:"WindowText"},u),c[":focus .".concat(L.checkbox)]={borderColor:G},c[":hover .".concat(L.checkmark)]={opacity:"0"},c),((d={})[":hover .".concat(L.text,", :focus .").concat(L.text)]=((p={color:Q})[v.up]={color:A?"GrayText":"WindowText"},p),d)],P],input:((f={position:"absolute",background:"none",opacity:0})[".".concat(y.Y2," &:focus + label::before")]=((h={outline:"1px solid "+I.palette.neutralSecondary,outlineOffset:"2px"})[v.up]={outline:"1px solid WindowText"},h),f),label:[L.label,I.fonts.medium,{display:"flex",alignItems:R?"center":"flex-start",cursor:A?"default":"pointer",position:"relative",userSelect:"none"},T&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[L.checkbox,((m={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:x,width:x,border:"1px solid ".concat(V),borderRadius:M.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:C,transitionTimingFunction:k,overflow:"hidden",":after":N?et:null})[v.up]=(0,o.__assign)({borderColor:"WindowText"},(0,v.Qg)()),m),N&&{borderColor:U},T?{marginLeft:4}:{marginRight:4},!A&&!N&&D&&((g={background:K,borderColor:j})[v.up]={background:"Highlight",borderColor:"Highlight"},g),A&&((w={borderColor:W})[v.up]={borderColor:"GrayText"},w),D&&A&&((S={background:J,borderColor:W})[v.up]={background:"Window"},S)],checkmark:[L.checkmark,((_={opacity:D&&!N?"1":"0",color:H})[v.up]=(0,o.__assign)({color:A?"GrayText":"Window"},(0,v.Qg)()),_)],text:[L.text,((E={color:A?ee:Z,fontSize:O.medium.fontSize,lineHeight:"20px"})[v.up]=(0,o.__assign)({color:A?"GrayText":"WindowText"},(0,v.Qg)()),E),T?{marginRight:4}:{marginLeft:4}]}},S=(0,r.I)(h,w,void 0,{scope:"Checkbox"})},42006(e,t,n){"use strict";n.d(t,{n:()=>Q});var r=n(93030),o=n(55478),a=n(40887),s=n(82602),l=n(57273),c=n(36428),u=n(25733),d=n(68032),p=n(31068),f=n(23755),h=n(80866),m=n(76325),g=n(60498),v=n(34534),y=(0,l.Z)(),b=71,x={imageSize:{width:32,height:32}},C=function(e){var t=(0,m.N)((0,o.__assign)((0,o.__assign)({},x),{key:e.itemKey}),e),n=t.ariaLabel,r=t.focused,s=t.required,l=t.theme,c=t.iconProps,u=t.imageSrc,p=t.imageSize,C=t.disabled,k=t.checked,w=t.id,S=t.styles,_=t.name,E=(0,o.__rest)(t,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name"]),P=y(S,{theme:l,hasIcon:!!c,hasImage:!!u,checked:k,disabled:C,imageIsLarge:!!u&&(p.width>b||p.height>b),imageSize:p,focused:r}),I=(0,d.G1)(E,d.QQ),T=I.className,D=(0,o.__rest)(I,["className"]),A=function(){return a.createElement("span",{id:t.labelId,className:"ms-ChoiceFieldLabel"},t.text)},R=function(){var e=t.imageAlt,n=void 0===e?"":e,r=t.selectedImageSrc,s=(t.onRenderLabel?(0,g.j)(t.onRenderLabel,A):A)((0,o.__assign)((0,o.__assign)({},t),{key:t.itemKey}));return a.createElement("label",{htmlFor:w,className:P.field},u&&a.createElement("div",{className:P.innerField},a.createElement("div",{className:P.imageWrapper},a.createElement(f._,(0,o.__assign)({src:u,alt:n},p))),a.createElement("div",{className:P.selectedImageWrapper},a.createElement(f._,(0,o.__assign)({src:r,alt:n},p)))),c&&a.createElement("div",{className:P.innerField},a.createElement("div",{className:P.iconWrapper},a.createElement(h.I,(0,o.__assign)({},c)))),u||c?a.createElement("div",{className:P.labelWrapper},s):s)},N=t.onRenderField,B=void 0===N?R:N,M=function(e){var n;null==(n=t.onChange)||n.call(t,e,(0,o.__assign)((0,o.__assign)({},t),{key:t.itemKey}))},F=function(e){var n;null==(n=t.onBlur)||n.call(t,e)},O=function(e){var n;null==(n=t.onFocus)||n.call(t,e,(0,o.__assign)((0,o.__assign)({},t),{key:t.itemKey}))};return a.createElement("div",{className:P.root},a.createElement("div",{className:P.choiceFieldWrapper},a.createElement("input",(0,o.__assign)({"aria-label":n,id:w,className:(0,v.A)(P.input,T),type:"radio",name:_,disabled:C,checked:k,required:s},D,{onChange:M,onFocus:O,onBlur:F})),B((0,o.__assign)((0,o.__assign)({},t),{key:t.itemKey}),R)))};C.displayName="ChoiceGroupOption";var k=n(82540),w={root:"ms-ChoiceField",choiceFieldWrapper:"ms-ChoiceField-wrapper",input:"ms-ChoiceField-input",field:"ms-ChoiceField-field",innerField:"ms-ChoiceField-innerField",imageWrapper:"ms-ChoiceField-imageWrapper",iconWrapper:"ms-ChoiceField-iconWrapper",labelWrapper:"ms-ChoiceField-labelWrapper",checked:"is-checked"},S=15,_=32,E=32,P=20,I="200ms",T="cubic-bezier(.4, 0, .23, 1)",D=3,A=5;function R(e,t){var n,r;return["is-inFocus",{selectors:((n={})[".".concat(u.Y2," &")]={position:"relative",outline:"transparent",selectors:{"::-moz-focus-inner":{border:0},":after":{content:'""',top:-2,right:-2,bottom:-2,left:-2,pointerEvents:"none",border:"1px solid ".concat(e),position:"absolute",selectors:((r={})[k.up]={borderColor:"WindowText",borderWidth:t?1:2},r)}}},n)}]}function N(e,t,n){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:I,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(n?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var B=function(e){var t,n,r,a,s,l=e.theme,c=e.hasIcon,u=e.hasImage,d=e.checked,p=e.disabled,f=e.imageIsLarge,h=e.focused,m=e.imageSize,g=l.palette,v=l.semanticColors,y=l.fonts,b=(0,k.Km)(w,l),x=g.neutralPrimary,C=v.inputBorderHovered,B=v.inputBackgroundChecked,M=g.themeDark,F=v.disabledBodySubtext,O=v.bodyBackground,L=g.neutralSecondary,H=v.inputBackgroundChecked,z=g.themeDark,V=v.disabledBodySubtext,U=g.neutralDark,j=v.focusBorder,W=v.inputBorderHovered,q=v.inputBackgroundChecked,G=g.themeDark,K=g.neutralLighter,X={selectors:{".ms-ChoiceFieldLabel":{color:U},":before":{borderColor:d?M:C},":after":[!c&&!u&&!d&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:L},d&&{borderColor:z,background:z}]}},Y={borderColor:d?G:W,selectors:{":before":{opacity:1,borderColor:d?M:C}}},Q=[{content:'""',display:"inline-block",backgroundColor:O,borderWidth:1,borderStyle:"solid",borderColor:x,width:P,height:P,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:I,transitionTimingFunction:T,borderRadius:"50%"},p&&{borderColor:F,selectors:((t={})[k.up]=(0,o.__assign)({borderColor:"GrayText",background:"Window"},(0,k.Qg)()),t)},d&&{borderColor:p?F:B,selectors:((n={})[k.up]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},n)},(c||u)&&{top:D,right:D,left:"auto",opacity:+!!d}],J=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:P/2,right:0,transitionProperty:"border-width",transitionDuration:I,transitionTimingFunction:T,boxSizing:"border-box"},d&&{borderWidth:5,borderStyle:"solid",borderColor:p?V:H,background:H,left:5,top:5,width:10,height:10,selectors:((r={})[k.up]={borderColor:"Highlight",forcedColorAdjust:"none"},r)},d&&(c||u)&&{top:D+A,right:D+A,left:"auto"}];return{root:[b.root,l.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:v.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!c&&!u&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},u&&"ms-ChoiceField--image",c&&"ms-ChoiceField--icon",(c||u)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:K,height:"100%"}],choiceFieldWrapper:[b.choiceFieldWrapper,h&&R(j,c||u)],input:[b.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},p&&"is-disabled"],field:[b.field,d&&b.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!p&&X,":focus":!p&&X,":before":Q,":after":J}},c&&"ms-ChoiceField--icon",u&&"ms-ChoiceField-field--image",(c||u)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:I,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},d&&{borderColor:q},(c||u)&&!p&&{selectors:{":hover":Y,":focus":Y}},p&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:v.disabledBodyText,selectors:((a={})[k.up]=(0,o.__assign)({color:"GrayText"},(0,k.Qg)()),a)}}},d&&p&&{borderColor:K}],innerField:[b.innerField,u&&{height:m.height,width:m.width},(c||u)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(c||u)&&f&&{paddingLeft:24,paddingRight:24},(c||u)&&p&&{opacity:.25,selectors:((s={})[k.up]={color:"GrayText",opacity:1},s)}],imageWrapper:N(!1,b.imageWrapper,d),selectedImageWrapper:N(!0,b.imageWrapper,d),iconWrapper:[b.iconWrapper,{fontSize:E,lineHeight:E,height:E}],labelWrapper:[b.labelWrapper,y.medium,(c||u)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:_,lineHeight:S,maxWidth:2*m.width,overflow:"hidden",whiteSpace:"pre-wrap"}]}},M=(0,r.I)(C,B,void 0,{scope:"ChoiceGroupOption"}),F=n(1369),O=n(15994),L=n(49122),H=(0,l.Z)(),z=function(e,t){return"".concat(t,"-").concat(e.key)},V=function(e,t){return void 0===t?void 0:(0,c.I6)(e,function(e){return e.key===t})},U=function(e,t,n,r){var o=V(e,t)||e.filter(function(e){return!e.disabled})[0],a=o&&document.getElementById(z(o,n));a&&(a.focus(),(0,u.Fy)(!0,a,r))},j=function(e){return e.relatedTarget instanceof HTMLElement&&"true"===e.relatedTarget.dataset.isFocusTrapZoneBumper},W=function(e,t,n,r,o){a.useImperativeHandle(r,function(){return{get checkedOption(){return V(e,t)},focus:function(){U(e,t,n,o)}}},[e,t,n,o])},q="ChoiceGroup",G=a.forwardRef(function(e,t){var n=e.className,r=e.theme,l=e.styles,c=e.options,u=void 0===c?[]:c,f=e.label,h=e.required,m=e.disabled,g=e.name,v=e.defaultSelectedKey,y=e.componentRef,b=e.onChange,x=(0,F.B)("ChoiceGroup"),C=(0,F.B)("ChoiceGroupLabel"),k=(0,d.G1)(e,d.JM,["onChange","className","required"]),w=H(l,{theme:r,className:n,optionsContainIconOrImage:u.some(function(e){return!!(e.iconProps||e.imageSrc)})}),S=e.ariaLabelledBy||(f?C:e["aria-labelledby"]),_=(0,O.k)(e.selectedKey,v),E=_[0],P=_[1],I=a.useState(),T=I[0],D=I[1],A=a.useRef(null),R=(0,L.a)(A,t),N=a.useContext(p.dM);W(u,E,x,y,null==N?void 0:N.registeredProviders),(0,p.vk)(A);var B=a.useCallback(function(e,t){var n;t&&(D(t.itemKey),null==(n=t.onFocus)||n.call(t,e))},[]),q=a.useCallback(function(e,t){var n;D(void 0),null==(n=null==t?void 0:t.onBlur)||n.call(t,e)},[]),G=a.useCallback(function(e,t){var n;t&&(P(t.itemKey),null==(n=t.onChange)||n.call(t,e),null==b||b(e,V(u,t.itemKey)))},[b,u,P]),K=a.useCallback(function(e){j(e)&&U(u,E,x,null==N?void 0:N.registeredProviders)},[u,E,x,N]);return a.createElement("div",(0,o.__assign)({className:w.root},k,{ref:R}),a.createElement("div",(0,o.__assign)({role:"radiogroup"},S&&{"aria-labelledby":S},{onFocus:K}),f&&a.createElement(s.J,{className:w.label,required:h,id:C,disabled:m},f),a.createElement("div",{className:w.flexContainer},u.map(function(e){return a.createElement(M,(0,o.__assign)({itemKey:e.key},e,{key:e.key,onBlur:q,onFocus:B,onChange:G,focused:e.key===T,checked:e.key===E,disabled:e.disabled||m,id:z(e,x),labelId:e.labelId||"".concat(C,"-").concat(e.key),name:g||x,required:h}))}))))});function K(e){}G.displayName=q;var X={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},Y=function(e){var t=e.className,n=e.optionsContainIconOrImage,r=e.theme,o=(0,k.Km)(X,r);return{root:[t,o.root,r.fonts.medium,{display:"block"}],flexContainer:[o.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}},Q=(0,r.I)(G,Y,void 0,{scope:"ChoiceGroup"})},11491(e,t,n){"use strict";n.d(t,{l:()=>eQ});var r=n(55478),o=n(40887),a=n(93030),s=n(60498),l=n(10177),c=n(75171),u=n(33428),d=n(71827),p=n(57273),f=n(4825),h=n(35523),m=n(50118),g=n(93367),v=n(20006),y=n(66647),b=n(97337),x=n(85889),C=n(76325),k=n(68032),w=n(34534),S=n(31068);function _(e){return e.canCheck?!!(e.isChecked||e.checked):"boolean"==typeof e.isChecked?e.isChecked:"boolean"==typeof e.checked?e.checked:null}function E(e){return!!(e.subMenuProps||e.items)}function P(e){return!!(e.isDisabled||e.disabled)}function I(e){return null!==_(e)?"menuitemcheckbox":"menuitem"}var T=n(8992),D=n(10059),A=n(80866),R=function(e){var t=e.item,n=e.classNames,a=t.iconProps;return o.createElement(A.I,(0,r.__assign)({},a,{className:n.icon}))},N=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,R):R(e):null},B=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,a=_(n);if(t){var s=function(e){return t(n,e)};return o.createElement(A.I,{iconName:!1!==n.canCheck&&a?"CheckMark":"",className:r.checkmarkIcon,onClick:s})}return null},M=function(e){var t=e.item,n=e.classNames;return t.text||t.name?o.createElement("span",{className:n.label},t.text||t.name):null},F=function(e){var t=e.item,n=e.classNames;return t.secondaryText?o.createElement("span",{className:n.secondaryText},t.secondaryText):null},O=function(e){var t=e.item,n=e.classNames,a=e.theme;return E(t)?o.createElement(A.I,(0,r.__assign)({iconName:(0,h.jI)(a)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},L=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var a=o();E(t)&&r&&a&&r(t,a)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;E(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},(0,D.f)(n),n}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,r=t.onRenderContent||this._renderLayout;return o.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:B,renderItemIcon:N,renderItemName:M,renderSecondaryText:F,renderSubMenuIcon:O}))},t.prototype._renderLayout=function(e,t){return o.createElement(o.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(o.Component),H=n(82540),z=(0,f.J9)(function(e){return(0,H.l8)({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),V=36,U=(0,H.L6)(0,H.mm),j=(0,f.J9)(function(e){var t,n,o,a,s,l=e.semanticColors,c=e.fonts,u=e.palette,d=l.menuItemBackgroundHovered,p=l.menuItemTextHovered,f=l.menuItemBackgroundPressed,h=l.bodyDivider,m={item:[c.medium,{color:l.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:h,position:"relative"},root:[(0,H.gm)(e),c.medium,{color:l.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:V,lineHeight:V,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:l.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:((t={})[H.up]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:d,color:p,selectors:{".ms-ContextualMenu-icon":{color:u.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootFocused:{backgroundColor:u.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:u.neutralPrimary}}},rootPressed:{backgroundColor:f,selectors:{".ms-ContextualMenu-icon":{color:u.themeDark},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootExpanded:{backgroundColor:f,color:l.bodyTextChecked,selectors:((n={".ms-ContextualMenu-submenuIcon":((o={})[H.up]={color:"inherit"},o)})[H.up]=(0,r.__assign)({},(0,H.Qg)()),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:V,fontSize:H.fF.medium,width:H.fF.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:((a={})[U]={fontSize:H.fF.large,width:H.fF.large},a)},iconColor:{color:l.menuIcon},iconDisabled:{color:l.disabledBodyText},checkmarkIcon:{color:l.bodySubtext},subMenuIcon:{height:V,lineHeight:V,color:u.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:H.fF.small,selectors:((s={":hover":{color:u.neutralPrimary},":active":{color:u.neutralPrimary}})[U]={fontSize:H.fF.medium},s)},splitButtonFlexContainer:[(0,H.gm)(e),{display:"flex",height:V,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return(0,H.TW)(m)}),W=n(25733),q="28px",G=(0,H.L6)(0,H.mm),K=(0,f.J9)(function(e){var t;return(0,H.l8)(z(e),{wrapper:{position:"absolute",right:28,selectors:((t={})[G]={right:32},t)},divider:{height:16,width:1}})}),X={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},Y=(0,f.J9)(function(e,t,n,r,o,a,s,l,c,u,d,p){var f,h,m,g,v=j(e),y=(0,H.Km)(X,e);return(0,H.l8)({item:[y.item,v.item,s],divider:[y.divider,v.divider,l],root:[y.root,v.root,r&&[y.isChecked,v.rootChecked],o&&v.anchorLink,n&&[y.isExpanded,v.rootExpanded],t&&[y.isDisabled,v.rootDisabled],!t&&!n&&[{selectors:((f={":hover":v.rootHovered,":active":v.rootPressed})[".".concat(W.Y2," &:focus, .").concat(W.Y2," &:focus:hover")]=v.rootFocused,f[".".concat(W.Y2," &:hover")]={background:"inherit;"},f)}],p],splitPrimary:[v.root,{width:"calc(100% - ".concat(q,")")},r&&["is-checked",v.rootChecked],(t||d)&&["is-disabled",v.rootDisabled],!(t||d)&&!r&&[{selectors:((h={":hover":v.rootHovered})[":hover ~ .".concat(y.splitMenu)]=v.rootHovered,h[":active"]=v.rootPressed,h[".".concat(W.Y2," &:focus, .").concat(W.Y2," &:focus:hover")]=v.rootFocused,h[".".concat(W.Y2," &:hover")]={background:"inherit;"},h)}]],splitMenu:[y.splitMenu,v.root,{flexBasis:"0",padding:"0 8px",minWidth:q},n&&["is-expanded",v.rootExpanded],t&&["is-disabled",v.rootDisabled],!t&&!n&&[{selectors:((m={":hover":v.rootHovered,":active":v.rootPressed})[".".concat(W.Y2," &:focus, .").concat(W.Y2," &:focus:hover")]=v.rootFocused,m[".".concat(W.Y2," &:hover")]={background:"inherit;"},m)}]],anchorLink:v.anchorLink,linkContent:[y.linkContent,v.linkContent],linkContentMenu:[y.linkContentMenu,v.linkContent,{justifyContent:"center"}],icon:[y.icon,a&&v.iconColor,v.icon,c,t&&[y.isDisabled,v.iconDisabled]],iconColor:v.iconColor,checkmarkIcon:[y.checkmarkIcon,a&&v.checkmarkIcon,v.icon,c],subMenuIcon:[y.subMenuIcon,v.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[v.iconDisabled]],label:[y.label,v.label],secondaryText:[y.secondaryText,v.secondaryText],splitContainer:[v.splitButtonFlexContainer,!t&&!r&&[{selectors:((g={})[".".concat(W.Y2," &:focus, .").concat(W.Y2," &:focus:hover")]=v.rootFocused,g)}]],screenReaderText:[y.screenReaderText,v.screenReaderText,H.dX,{visibility:"hidden"}]})}),Q=function(e){return Y(e.theme,e.disabled,e.expanded,e.checked,e.isAnchorLink,e.knownIcon,e.itemClassName,e.dividerClassName,e.iconClassName,e.subMenuClassName,e.primaryDisabled,e.className)},J=(0,a.I)(L,Q,void 0,{scope:"ContextualMenuItem"}),Z=n(78780),ee=n(49892),et=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,r=t.item,o=t.onItemMouseLeave;o&&o(r,e)},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;o&&o(r,e)},n._onItemMouseMove=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,e.currentTarget)},n._getSubmenuTarget=function(){},(0,D.f)(n),n}return(0,r.__extends)(t,e),t.prototype.shouldComponentUpdate=function(e){return!(0,m.ab)(e,this.props)},t}(o.Component),en=n(78316),er=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=o.createRef(),t._getMemoizedMenuButtonKeytipProps=(0,f.J9)(function(e){return(0,r.__assign)((0,r.__assign)({},e),{hasMenu:!0})}),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClick;o&&o(r,e)},t._renderAriaDescription=function(e,n){return e?o.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,a=t.classNames,s=t.index,l=t.focusableElementIndex,c=t.totalItemCount,u=t.hasCheckmarks,d=t.hasIcons,p=t.contextualMenuItemAs,f=void 0===p?J:p,h=t.expandedMenuItemKey,m=t.onItemClick,g=t.openSubMenu,v=t.dismissSubMenu,y=t.dismissMenu,b=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(b=b||"nofollow noopener noreferrer");var x=E(n),C=(0,k.G1)(n,k.t0),w=P(n),S=n.itemProps,_=n.ariaDescription,I=n.keytipProps;I&&x&&(I=this._getMemoizedMenuButtonKeytipProps(I)),_&&(this._ariaDescriptionId=(0,Z.O)());var T=(0,ee._)(n.ariaDescribedBy,_?this._ariaDescriptionId:void 0,C["aria-describedby"]),D={"aria-describedby":T};return o.createElement("div",null,o.createElement(en.x,{keytipProps:n.keytipProps,ariaDescribedBy:T,disabled:w},function(t){return o.createElement("a",(0,r.__assign)({},D,C,t,{ref:e._anchor,href:n.href,target:n.target,rel:b,className:a.root,role:"menuitem","aria-haspopup":x||void 0,"aria-expanded":x?n.key===h:void 0,"aria-posinset":l+1,"aria-setsize":c,"aria-disabled":P(n),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:x?e._onItemKeyDown:void 0}),o.createElement(f,(0,r.__assign)({componentRef:n.componentRef,item:n,classNames:a,index:s,onCheckmarkClick:u&&m?m:void 0,hasIcons:d,openSubMenu:g,dismissSubMenu:v,dismissMenu:y,getSubmenuTarget:e._getSubmenuTarget},S)),e._renderAriaDescription(_,a.screenReaderText))}))},t}(et),eo=n(40261),ei=n(91518),ea=function(e){var t=e.theme,n=e.getClassNames,r=e.className;if(!t)throw Error("Theme is undefined or null.");if(n){var o=n(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},r],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},es=(0,p.Z)(),el=o.forwardRef(function(e,t){var n=es(e.styles,{theme:e.theme,getClassNames:e.getClassNames,className:e.className});return o.createElement("span",{className:n.wrapper,ref:t},o.createElement("span",{className:n.divider}))});el.displayName="VerticalDividerBase";var ec=(0,a.I)(el,ea,void 0,{scope:"VerticalDivider"}),eu=500,ed=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=(0,f.J9)(function(e){return(0,r.__assign)((0,r.__assign)({},e),{hasMenu:!0})}),n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;e.which===v.c.enter?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(r,e)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(e,t){return e?o.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemMouseEnterPrimary=function(e){var t=n.props,o=t.item,a=t.onItemMouseEnter;a&&a((0,r.__assign)((0,r.__assign)({},o),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,o=t.item,a=t.onItemMouseMove;a&&a((0,r.__assign)((0,r.__assign)({},o),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,r=t.item,o=t.executeItemClick,a=t.onItemClick;if(!r.disabled&&!r.isDisabled){if(n._processingTouch&&!r.canCheck&&a)return a(r,e);o&&o(r,e)}},n._onTouchStart=function(e){!n._splitButton||"onpointerdown"in n._splitButton||n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new eo.j(n),n._events=new ei.g(n),n._dismissLabelId=(0,Z.O)(),n}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e,t=this,n=this.props,a=n.item,s=n.classNames,l=n.index,c=n.focusableElementIndex,u=n.totalItemCount,d=n.hasCheckmarks,p=n.hasIcons,f=n.onItemMouseLeave,h=n.expandedMenuItemKey,m=E(a),g=a.keytipProps;g&&(g=this._getMemoizedMenuButtonKeytipProps(g));var v=a.ariaDescription;v&&(this._ariaDescriptionId=(0,Z.O)());var y=null!=(e=_(a))?e:void 0;return o.createElement(en.x,{keytipProps:g,disabled:P(a)},function(e){return o.createElement("div",{"data-ktp-target":e["data-ktp-target"],ref:function(e){return t._splitButton=e},role:I(a),"aria-label":a.ariaLabel,className:s.splitContainer,"aria-disabled":P(a),"aria-expanded":m?a.key===h:void 0,"aria-haspopup":!0,"aria-describedby":(0,ee._)(a.ariaDescribedBy,v?t._ariaDescriptionId:void 0,e["aria-describedby"]),"aria-checked":y,"aria-posinset":c+1,"aria-setsize":u,onMouseEnter:t._onItemMouseEnterPrimary,onMouseLeave:f?f.bind(t,(0,r.__assign)((0,r.__assign)({},a),{subMenuProps:null,items:null})):void 0,onMouseMove:t._onItemMouseMovePrimary,onKeyDown:t._onItemKeyDown,onClick:t._executeItemClick,onTouchStart:t._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":a["aria-roledescription"]},t._renderSplitPrimaryButton(a,s,l,d,p),t._renderSplitDivider(a),t._renderSplitIconButton(a,s,l,e),t._renderAriaDescription(v,s.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(e,t,n,a,s){var l=this.props,c=l.contextualMenuItemAs,u=void 0===c?J:c,d=l.onItemClick,p={key:e.key,disabled:P(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,id:this._dismissLabelId,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},f=e.itemProps;return o.createElement("button",(0,r.__assign)({},(0,k.G1)(p,k.uw)),o.createElement(u,(0,r.__assign)({"data-is-focusable":!1,item:p,classNames:t,index:n,onCheckmarkClick:a&&d?d:void 0,hasIcons:s},f)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||K;return o.createElement(ec,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,a){var s=this.props,l=s.contextualMenuItemAs,c=void 0===l?J:l,u=s.onItemMouseLeave,d=s.onItemMouseDown,p=s.openSubMenu,f=s.dismissSubMenu,h=s.dismissMenu,m={onClick:this._onIconItemClick,disabled:P(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key,"aria-labelledby":this._dismissLabelId},g=(0,r.__assign)((0,r.__assign)({},(0,k.G1)(m,k.uw)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,e):void 0,onMouseDown:function(t){return d?d(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":a["data-ktp-execute-target"],"aria-haspopup":!0}),v=e.itemProps;return o.createElement("button",(0,r.__assign)({},g),o.createElement(c,(0,r.__assign)({componentRef:e.componentRef,item:m,classNames:t,index:n,hasIcons:!1,openSubMenu:p,dismissSubMenu:f,dismissMenu:h,getSubmenuTarget:this._getSubmenuTarget},v)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0},eu)},t}(et),ep=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=o.createRef(),t._getMemoizedMenuButtonKeytipProps=(0,f.J9)(function(e){return(0,r.__assign)((0,r.__assign)({},e),{hasMenu:!0})}),t._renderAriaDescription=function(e,n){return e?o.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,a=t.classNames,s=t.index,l=t.focusableElementIndex,c=t.totalItemCount,u=t.hasCheckmarks,d=t.hasIcons,p=t.contextualMenuItemAs,f=void 0===p?J:p,h=t.expandedMenuItemKey,m=t.onItemMouseDown,g=t.onItemClick,v=t.openSubMenu,y=t.dismissSubMenu,b=t.dismissMenu,x=_(n),C=null!==x,w=I(n),S=E(n),T=n.itemProps,D=n.ariaLabel,A=n.ariaDescription,R=(0,k.G1)(n,k.uw);delete R.disabled;var N=n.role||w;A&&(this._ariaDescriptionId=(0,Z.O)());var B=(0,ee._)(n.ariaDescribedBy,A?this._ariaDescriptionId:void 0,R["aria-describedby"]),M={className:a.root,onClick:this._onItemClick,onKeyDown:S?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return m?m(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":D,"aria-describedby":B,"aria-haspopup":S||void 0,"aria-expanded":S?n.key===h:void 0,"aria-posinset":l+1,"aria-setsize":c,"aria-disabled":P(n),"aria-checked":("menuitemcheckbox"===N||"menuitemradio"===N)&&C?!!x:void 0,"aria-selected":"menuitem"===N&&C?!!x:void 0,role:N,style:n.style},F=n.keytipProps;return F&&S&&(F=this._getMemoizedMenuButtonKeytipProps(F)),o.createElement(en.x,{keytipProps:F,ariaDescribedBy:B,disabled:P(n)},function(t){return o.createElement("button",(0,r.__assign)({ref:e._btn},R,M,t),o.createElement(f,(0,r.__assign)({componentRef:n.componentRef,item:n,classNames:a,index:s,onCheckmarkClick:u&&g?g:void 0,hasIcons:d,openSubMenu:v,dismissSubMenu:y,dismissMenu:b,getSubmenuTarget:e._getSubmenuTarget},T)),e._renderAriaDescription(A,a.screenReaderText))})},t}(et),ef=n(98041),eh=n(1369),em=n(97204),eg=n(4014);function ev(e){}var ey=n(94265),eb=n(52540),ex=n(93147),eC=o.createContext({}),ek=(0,p.Z)(),ew=(0,p.Z)(),eS={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:c.A.bottomAutoEdge,beakWidth:16};function e_(e){for(var t=0,n=0,r=e;n<r.length;n++){var o=r[n];o.itemType!==l.G.Divider&&o.itemType!==l.G.Header&&(t+=o.customOnRenderListLength?o.customOnRenderListLength:1)}return t}function eE(e,t){var n=null==t?void 0:t.target,o=e.subMenuProps?e.subMenuProps.items:e.items;if(o){for(var a=[],s=0,l=o;s<l.length;s++){var c=l[s];if(c.preferMenuTargetAsEventTarget){var u=c.onClick,d=(0,r.__rest)(c,["onClick"]);a.push((0,r.__assign)((0,r.__assign)({},d),{onClick:eq(u,n)}))}else a.push(c)}return a}}function eP(e){return e.some(function(e){return!!(e.canCheck||e.sectionProps&&e.sectionProps.items.some(function(e){return!0===e.canCheck}))})}var eI=250,eT="ContextualMenu",eD=(0,f.J9)(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return H.pB.apply(void 0,(0,r.__spreadArray)([t,Q],e,!1))}});function eA(e,t){var n=e.hidden,r=void 0!==n&&n,a=e.onMenuDismissed,s=e.onMenuOpened,l=(0,ef.Z)(r),c=o.useRef(s),u=o.useRef(a),d=o.useRef(e);c.current=s,u.current=a,d.current=e,o.useEffect(function(){var e,t;r&&!1===l?null==(e=u.current)||e.call(u,d.current):r||!1===l||null==(t=c.current)||t.call(c,d.current)},[r,l]),o.useEffect(function(){return function(){var e;return null==(e=u.current)?void 0:e.call(u,d.current)}},[])}function eR(e,t){var n=e.hidden,r=e.items,a=e.theme,s=e.className,l=e.id,u=e.target,d=o.useState(),p=d[0],f=d[1],g=o.useState(),v=g[0],y=g[1],b=o.useState(),x=b[0],C=b[1],k=(0,eh.B)(eT,l),w=o.useCallback(function(){C(void 0),f(void 0),y(void 0)},[]),S=o.useCallback(function(e,t,n){var r=e.key;p!==r&&(t.focus(),C(n),f(r),y(t))},[p]);o.useEffect(function(){n&&w()},[n,w]);var _=eO(t,w),E=function(){var e=eW(p,r),t=null;if(e&&(t={items:eE(e,{target:u}),target:v,onDismiss:_,isSubMenu:!0,id:k,shouldFocusOnMount:!0,shouldFocusOnContainer:x,directionalHint:(0,h.jI)(a)?c.A.leftTopEdge:c.A.rightTopEdge,className:s,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&(0,m.kp)(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)){var n=e.onItemClick;t.onItemClick=eq(n,u)}return t};return[p,S,E,_]}function eN(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,r=o.useRef(!t),a=o.useRef(!1);o.useEffect(function(){r.current=!t,a.current=!n&&!t&&a.current},[t,n]);var s=o.useCallback(function(){t&&(r.current=!1)},[t]);return[r,a,s]}function eB(e,t,n){var r=e.hidden,a=e.onRestoreFocus,s=o.useRef(),l=o.useCallback(function(e){var t,n;a?a(e):(null==e?void 0:e.documentContainsFocus)&&(null==(n=null==(t=s.current)?void 0:t.focus)||n.call(t))},[a]);return(0,em.E)(function(){var e,o;if(r)s.current&&(l({originalElement:s.current,containsFocus:!0,documentContainsFocus:(null==(o=(0,g.Y)())?void 0:o.hasFocus())||!1}),s.current=void 0);else{var a=null==t?void 0:t.document.activeElement;(null==(e=n.current)?void 0:e.contains(a))||"BODY"===a.tagName||(s.current=a)}},[r,null==t?void 0:t.document.activeElement,l,n]),[l]}function eM(e,t,n,r){var a=e.theme,s=e.isSubMenu,l=e.focusZoneProps,c=void 0===l?{}:l,d=c.checkForNoWrap,p=c.direction,f=void 0===p?u.E.vertical:p,m=o.useRef(),g=function(e,n,r){var o=!1;return n(e)&&(t(e,r),e.preventDefault(),e.stopPropagation(),o=!0),o},C=function(e){var t=(0,h.jI)(a)?v.c.right:v.c.left;return e.which===t&&!!s&&!!(f===u.E.vertical||d&&!(0,y._l)(e.target,"data-no-horizontal-wrap"))},k=function(e){return e.which===v.c.escape||C(e)||e.which===v.c.up&&(e.altKey||e.metaKey)},w=function(e){m.current=eV(e);var t=e.which===v.c.escape&&((0,b.c)()||(0,x.u)());return g(e,k,t)},S=function(e){var t=m.current&&eV(e);return m.current=!1,!!t&&!((0,x.u)()||(0,b.c)())},_=function(e){if(!w(e)&&n.current){var t=!!(e.altKey||e.metaKey),r=e.which===v.c.up,o=e.which===v.c.down;if(!t&&(r||o)){var a=r?(0,y.dm)(n.current,n.current.lastChild,!0):(0,y.j5)(n.current,n.current.firstChild,!0);a&&(a.focus(),e.preventDefault(),e.stopPropagation())}}};return[w,function(e){return g(e,S,!0)},_,function(e,t){var n=(0,h.jI)(a)?v.c.left:v.c.right;!e.disabled&&(t.which===n||t.which===v.c.enter||t.which===v.c.down&&(t.altKey||t.metaKey))&&(r(e,t.currentTarget),t.preventDefault())}]}function eF(e){var t=o.useRef(!0),n=o.useRef();return[function(){t.current||void 0===n.current?t.current=!1:(e.clearTimeout(n.current),n.current=void 0),n.current=e.setTimeout(function(){t.current=!0},eI)},t]}function eO(e,t){var n=o.useRef(!1);return o.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),function(r,o){o?e(r,o):n.current&&t()}}function eL(e,t){var n=e.subMenuHoverDelay,r=void 0===n?eI:n,a=o.useRef(void 0),s=function(){void 0!==a.current&&(t.clearTimeout(a.current),a.current=void 0)},l=function(e){a.current=t.setTimeout(function(){e(),s()},r)};return[s,l,a]}function eH(e,t,n,r,o,a,s,l,c,u,d,p,f){var h=e.target,m=function(){return!t.current||!a.current},g=function(e,t,n){var r=n||t.currentTarget;e.key!==s&&(u(),void 0===s&&r.focus(),E(e)?(t.stopPropagation(),c(function(){r.focus(),d(e,r,!0)})):c(function(){p(t),r.focus()}))},v=function(t,n,r){var o=eE(t,{target:h});u(),E(t)||o&&o.length?t.key!==s&&d(t,r,"boolean"==typeof e.shouldFocusOnContainer?e.shouldFocusOnContainer:"mouse"===n.nativeEvent.pointerType):y(t,n),n.stopPropagation(),n.preventDefault()},y=function(t,n){if(!t.disabled&&!t.isDisabled){t.preferMenuTargetAsEventTarget&&eG(n,h);var r=!1;t.onClick?r=!!t.onClick(n,t):e.onItemClick&&(r=!!e.onItemClick(n,t)),(r||!n.defaultPrevented)&&f(n,!0)}};return[function(e,t,n){o.current&&(a.current=!0),m()||g(e,t,n)},function(e,s,l){var c=s.currentTarget;o.current&&(a.current=!0,t.current&&void 0===n.current&&c!==(null==r?void 0:r.document.activeElement)&&g(e,s,l))},function(e,t){var n;if(!m()&&(u(),void 0===s))if(l.current.setActive)try{l.current.setActive()}catch(e){}else null==(n=l.current)||n.focus()},function(e,t){v(e,t,t.currentTarget)},function(e,t){y(e,t),t.stopPropagation()},y,v]}var ez=o.memo(o.forwardRef(function(e,t){var n,a,s=(0,C.N)(eS,e),c=(s.ref,(0,r.__rest)(s,["ref"])),p=o.useRef(null),f=(0,eg.Y)(),h=(0,eh.B)(eT,c.id),m=function(e,t){var n;return null==(n=c.onDismiss)?void 0:n.call(c,e,t)},g=(0,ey.P)(c.target,p),v=g[0],y=g[1],b=eB(c,y,p)[0],x=eR(c,m),I=x[0],D=x[1],A=x[2],R=x[3],N=eN(c),B=N[0],M=N[1],F=N[2],O=eF(f),L=O[0],H=O[1],z=eL(c,f),V=z[0],U=z[1],j=z[2],W=(0,eb.z)(p,c.responsiveMode);eA(c,y);var q=eM(c,m,p,D),G=q[0],K=q[1],X=q[2],Y=q[3],Q=eH(c,H,j,y,B,M,I,p,U,V,D,R,m),Z=Q[0],ee=Q[1],et=Q[2],en=Q[3],eo=Q[4],ei=Q[5],ea=Q[6],es=function(e,t,n){var r=0,a=e.items,s=e.totalItemCount,c=e.hasCheckmarks,u=e.hasIcons;return o.createElement("ul",{className:t.list,onKeyDown:G,onKeyUp:K,role:"presentation"},a.map(function(e,n){var o=ec(e,n,r,s,c,u,t);if(e.itemType!==l.G.Divider&&e.itemType!==l.G.Header){var a=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=a}return o}))},el=function(e,t){var n=c.focusZoneAs,a=void 0===n?d.R:n;return o.createElement(a,(0,r.__assign)({},t),e)},ec=function(e,t,n,r,a,s,u){var d,p,f=[],h=e.iconProps||{iconName:"None"},m=e.getItemClassNames,g=e.itemProps,v=g?g.styles:void 0,y=e.itemType===l.G.Divider?e.className:void 0,b=e.submenuIconProps?e.submenuIconProps.className:"";if(m)p=m(c.theme,P(e),I===e.key,!!_(e),!!e.href,"None"!==h.iconName,e.className,y,h.className,b,e.primaryDisabled);else{var x={theme:c.theme,disabled:P(e),expanded:I===e.key,checked:!!_(e),isAnchorLink:!!e.href,knownIcon:"None"!==h.iconName,itemClassName:e.className,dividerClassName:y,iconClassName:h.className,subMenuClassName:b,primaryDisabled:e.primaryDisabled};p=ew(eD(null==(d=u.subComponentStyles)?void 0:d.menuItem,v),x)}switch(("-"===e.text||"-"===e.name)&&(e.itemType=l.G.Divider),e.itemType){case l.G.Divider:f.push(ev(t,p));break;case l.G.Header:f.push(ev(t,p));var C=eI(e,p,u,t,a,s);f.push(em(C,e.key||t,p,e.title));break;case l.G.Section:f.push(ef(e,p,u,t,a,s));break;default:var k=function(){return eE(e,p,t,n,r,a,s)},w=c.onRenderContextualMenuItem?c.onRenderContextualMenuItem(e,k):k();f.push(em(w,e.key||t,p,e.title))}return o.createElement(o.Fragment,{key:e.key},f)},eu=function(e,t){var n=e.index,r=e.focusableElementIndex,o=e.totalItemCount,a=e.hasCheckmarks,s=e.hasIcons;return ec(e,n,r,o,a,s,t)},ef=function(e,t,n,a,s,c){var u,d,p=e.sectionProps;if(p){if(p.title){var f=void 0,m="";if("string"==typeof p.title){var g=h+p.title.replace(/\s/g,"");f={key:"section-".concat(p.title,"-title"),itemType:l.G.Header,text:p.title,id:g},m=g}else{var v=p.title.id||h+p.title.key.replace(/\s/g,"");f=(0,r.__assign)((0,r.__assign)({},p.title),{id:v}),m=v}f&&(d={role:"group","aria-labelledby":m},u=eI(f,t,n,a,s,c))}if(p.items&&p.items.length>0){var y=0;return o.createElement("li",{role:"presentation",key:p.key||e.key||"section-".concat(a)},o.createElement("div",(0,r.__assign)({},d),o.createElement("ul",{className:n.list,role:"presentation"},p.topDivider&&ev(a,t,!0,!0),u&&em(u,e.key||a,t,e.title),p.items.map(function(e,t){var r=ec(e,t,y,e_(p.items),s,c,n);if(e.itemType!==l.G.Divider&&e.itemType!==l.G.Header){var o=e.customOnRenderListLength?e.customOnRenderListLength:1;y+=o}return r}),p.bottomDivider&&ev(a,t,!1,!0))))}}},em=function(e,t,n,r){return o.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},ev=function(e,t,n,r){return r||e>0?o.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},eE=function(e,t,n,a,s,l,u){if(e.onRender)return e.onRender((0,r.__assign)({"aria-posinset":a+1,"aria-setsize":s},e),m);var d={item:e,classNames:t,index:n,focusableElementIndex:a,totalItemCount:s,hasCheckmarks:l,hasIcons:u,contextualMenuItemAs:c.contextualMenuItemAs,onItemMouseEnter:Z,onItemMouseLeave:et,onItemMouseMove:ee,onItemMouseDown:eU,executeItemClick:ei,onItemKeyDown:Y,expandedMenuItemKey:I,openSubMenu:D,dismissSubMenu:R,dismissMenu:m};return e.href?o.createElement(er,(0,r.__assign)({},d,{onItemClick:eo})):e.split&&E(e)?o.createElement(ed,(0,r.__assign)({},d,{onItemClick:en,onItemClickBase:ea,onTap:V})):o.createElement(ep,(0,r.__assign)({},d,{onItemClick:en,onItemClickBase:ea}))},eI=function(e,t,n,a,s,l){var u=c.contextualMenuItemAs,d=void 0===u?J:u,p=e.itemProps,f=e.id,h=p&&(0,k.G1)(p,k.JM);return o.createElement("div",(0,r.__assign)({id:f,className:n.header},h,{style:e.style}),o.createElement(d,(0,r.__assign)({item:e,classNames:t,index:a,onCheckmarkClick:s?en:void 0,hasIcons:l},p)))},eO=c.isBeakVisible,ez=c.items,eV=c.labelElementId,eW=c.id,eq=c.className,eG=c.beakWidth,eK=c.directionalHint,eX=c.directionalHintForRTL,eY=c.alignTargetEdge,e$=c.gapSpace,eQ=c.coverTarget,eJ=c.ariaLabel,eZ=c.doNotLayer,e0=c.target,e1=c.bounds,e2=c.useTargetWidth,e5=c.useTargetAsMinWidth,e4=c.directionalHintFixed,e3=c.shouldFocusOnMount,e6=c.shouldFocusOnContainer,e8=c.title,e9=c.styles,e7=c.theme,te=c.calloutProps,tt=c.onRenderSubMenu,tn=void 0===tt?ej:tt,tr=c.onRenderMenuList,to=void 0===tr?function(e,t){return es(e,ts,t)}:tr,ti=c.focusZoneProps,ta=c.getMenuClassNames,ts=ta?ta(e7,eq):ek(e9,{theme:e7,className:eq}),tl=tc(ez);function tc(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.iconProps||r.itemType===l.G.Section&&r.sectionProps&&tc(r.sectionProps.items))return!0}return!1}var tu=(0,r.__assign)((0,r.__assign)({direction:u.E.vertical,handleTabKey:u.l.all,isCircularNavigation:!0},ti),{className:(0,w.A)(ts.root,null==(n=c.focusZoneProps)?void 0:n.className)}),td=eP(ez),tp=I&&!0!==c.hidden?A():null;eO=void 0===eO?W<=ex.AR.medium:eO;var tf=v.current;if((e2||e5)&&tf&&tf.offsetWidth){var th=tf.getBoundingClientRect().width-2;e2?a={width:th}:e5&&(a={minWidth:th})}if(!ez||!(ez.length>0))return null;var tm=e_(ez),tg=ts.subComponentStyles?ts.subComponentStyles.callout:void 0;return o.createElement(eC.Consumer,null,function(e){return o.createElement(T.P,(0,r.__assign)({styles:tg,onRestoreFocus:b},te,{target:e0||e.target,isBeakVisible:eO,beakWidth:eG,directionalHint:eK,directionalHintForRTL:eX,gapSpace:e$,coverTarget:eQ,doNotLayer:eZ,className:(0,w.A)("ms-ContextualMenu-Callout",te&&te.className),setInitialFocus:e3,onDismiss:c.onDismiss||e.onDismiss,onScroll:L,bounds:e1,directionalHintFixed:e4,alignTargetEdge:eY,hidden:c.hidden||e.hidden,ref:t}),o.createElement("div",{style:a,ref:p,id:eW,className:ts.container,tabIndex:e6?0:-1,onKeyDown:X,onKeyUp:K,onFocusCapture:F,"aria-label":eJ,"aria-labelledby":eV,role:"menu"},e8&&o.createElement("div",{className:ts.title}," ",e8," "),ez&&ez.length?el(to({ariaLabel:eJ,items:ez,totalItemCount:tm,hasCheckmarks:td,hasIcons:tl,defaultMenuItemRenderer:function(e){return eu(e,ts)},labelElementId:eV},function(e,t){return es(e,ts,t)}),tu):null,tp&&tn(tp,ej)),o.createElement(S.MO,null))})}),function(e,t){return!t.shouldUpdateWhenHidden&&!!e.hidden&&!!t.hidden||(0,m.ab)(e,t)});function eV(e){return e.which===v.c.alt||"Meta"===e.key}function eU(e,t){var n;null==(n=e.onMouseDown)||n.call(e,e,t)}function ej(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function eW(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.itemType===l.G.Section&&o.sectionProps){var a=eW(e,o.sectionProps.items);if(a)return a}else if(o.key&&o.key===e)return o}}function eq(e,t){return e?function(n,r){return eG(n,t),e(n,r)}:e}function eG(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}ez.displayName="ContextualMenuBase";var eK={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"},eX=function(e){var t=e.className,n=e.theme,r=(0,H.Km)(eK,n),o=n.fonts,a=n.semanticColors,s=n.effects;return{root:[n.fonts.medium,r.root,r.isopen,{backgroundColor:a.menuBackground,minWidth:"180px"},t],container:[r.container,{selectors:{":focus":{outline:0}}}],list:[r.list,r.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[r.header,o.small,{fontWeight:H.BO.semibold,color:a.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:V,lineHeight:V,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[r.title,{fontSize:o.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:a.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:s.elevation8}},menuItem:{}}}};function eY(e){return o.createElement(e$,(0,r.__assign)({},e))}var e$=(0,a.I)(ez,eX,function(e){return{onRenderSubMenu:e.onRenderSubMenu?(0,s.j)(e.onRenderSubMenu,eY):eY}},{scope:"ContextualMenu"}),eQ=e$;eQ.displayName="ContextualMenu"},10177(e,t,n){"use strict";var r;n.d(t,{G:()=>r}),function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(r||(r={}))},73671(e,t,n){"use strict";n.d(t,{m:()=>ei});var r,o,a,s,l=n(93030),c=n(55478),u=n(40887),d=n(57273),p=n(36428),f=n(86984),h=function(e){var t;return function(n){t||(t=new Set,(0,f.i)(e,{componentWillUnmount:function(){t.forEach(function(e){return cancelAnimationFrame(e)})}}));var r=requestAnimationFrame(function(){t.delete(r),n()});t.add(r)}},m=n(34534),g=n(93367),v=n(20006),y=n(66647),b=n(10059),x=n(78780),C=n(68032),k=n(49892),w=n(97337),S=n(85889),_=n(8992),E=n(75171),P=n(21175),I=n(70401),T=function(){function e(){this._size=0}return e.prototype.updateOptions=function(e){for(var t=[],n=[],r=0,o=0;o<e.length;o++){var a=e[o],s=a.itemType,l=a.hidden;s===I.W.Divider||s===I.W.Header?(t.push(o),n.push(o)):l?n.push(o):r++}this._size=r,this._displayOnlyOptionsCache=t,this._notSelectableOptionsCache=n,this._cachedOptions=(0,c.__spreadArray)([],e,!0)},Object.defineProperty(e.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!1,configurable:!0}),e.prototype.positionInSet=function(e){if(void 0!==e){for(var t=0;e>this._notSelectableOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw Error("Unexpected: Option at index ".concat(e," is not a selectable element."));if(this._notSelectableOptionsCache[t]!==e)return e-t+1}},e}(),D=n(71827),A=n(33428),R=n(80866),N=n(82602),B=n(79281),M=n(52540),F=n(93147),O=n(81862),L=n(15146),H=n(76325),z=n(98041),V=n(49122),U=(0,d.Z)(),j={options:[]};function W(e){var t,n=e.defaultSelectedKeys,r=e.selectedKeys,o=e.defaultSelectedKey,a=e.selectedKey,s=e.options,l=e.multiSelect,c=(0,z.Z)(s),d=u.useState([]),f=d[0],h=d[1],m=s!==c;t=l?m&&void 0!==n?n:r:m&&void 0!==o?o:a;var g=(0,z.Z)(t);return u.useEffect(function(){var e=function(){if(void 0===t){if(l)return n();var e=r(null);return -1!==e?[e]:[]}if(!Array.isArray(t)){var e=r(t);return -1!==e?[e]:[]}for(var o=[],a=0,s=t;a<s.length;a++){var e=r(s[a]);-1!==e&&o.push(e)}return o},n=function(){return s.map(function(e,t){return e.selected?t:-1}).filter(function(e){return -1!==e})},r=function(e){return(0,p.SL)(s,function(t){return null!=e?t.key===e:!!t.selected||!!t.isSelected})};(void 0!==t||!c)&&(t!==g||m)&&h(e())},[m,l,c,g,s,t]),[f,h]}var q=u.forwardRef(function(e,t){var n=(0,H.N)(j,e),r=u.useRef(null),o=(0,V.a)(t,r),a=(0,M.z)(r,n.responsiveMode),s=W(n),l=s[0],d=s[1];return u.createElement(G,(0,c.__assign)({},n,{responsiveMode:a,hoisted:{rootRef:o,selectedIndices:l,setSelectedIndices:d}}))});q.displayName="DropdownBase";var G=function(e){function t(t){var n=e.call(this,t)||this;n._host=u.createRef(),n._focusZone=u.createRef(),n._dropDown=u.createRef(),n._scrollIdleDelay=250,n._sizePosCache=new T,n._requestAnimationFrame=h(n),n.dismissMenu=function(){n.state.isOpen&&n.setState({isOpen:!1})},n._onChange=function(e,t,r,o,a){var s=n.props,l=s.onChange,u=s.onChanged;if(l||u){var d=a?(0,c.__assign)((0,c.__assign)({},t[r]),{selected:!o}):t[r];l&&l((0,c.__assign)((0,c.__assign)({},e),{target:n._dropDown.current}),d,r),u&&u(d,r)}},n._getPlaceholder=function(){return n.props.placeholder||n.props.placeHolder},n._getTitle=function(e,t){var r=n.props.multiSelectDelimiter,o=void 0===r?", ":r;return e.map(function(e){return e.text}).join(o)},n._onRenderTitle=function(e){return u.createElement(u.Fragment,null,n._getTitle(e))},n._onRenderPlaceholder=function(e){return n._getPlaceholder()?u.createElement(u.Fragment,null,n._getPlaceholder()):null},n._onRenderContainer=function(e){var t=e.calloutProps,r=e.panelProps,o=n.props,a=o.responsiveMode,s=o.dropdownWidth,l=a<=F.AR.medium,d={firstFocusableTarget:"#".concat(n._listId,"1")},p=n._classNames.subComponentStyles?n._classNames.subComponentStyles.panel:void 0,f=void 0,h=void 0;return"auto"===s?h=n._dropDown.current?n._dropDown.current.clientWidth:0:f=s||(n._dropDown.current?n._dropDown.current.clientWidth:0),l?u.createElement(B.Z,(0,c.__assign)({closeButtonAriaLabel:"Close",focusTrapZoneProps:d,hasCloseButton:!0,isOpen:!0,isLightDismiss:!0,onDismiss:n._onDismiss,styles:p},r),n._renderFocusableList(e)):u.createElement(_.P,(0,c.__assign)({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:E.A.bottomLeftEdge,calloutWidth:f,calloutMinWidth:h},t,{className:n._classNames.callout,target:n._dropDown.current,onDismiss:n._onDismiss,onScroll:n._onScroll,onPositioned:n._onPositioned}),n._renderFocusableList(e))},n._onRenderCaretDown=function(e){return u.createElement(R.I,{className:n._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},n._onRenderList=function(e){var t=e.onRenderItem,r=void 0===t?n._onRenderItem:t,o={items:[]},a=[],s=function(){var e=o.id?[u.createElement("div",{role:"group",key:o.id,"aria-labelledby":o.id},o.items)]:o.items;a=(0,c.__spreadArray)((0,c.__spreadArray)([],a,!0),e,!0),o={items:[]}},l=function(e,t){switch(e.itemType){case I.W.Header:o.items.length>0&&s();var a=n._id+e.key;o.items.push(r((0,c.__assign)((0,c.__assign)({id:a},e),{index:t}),n._onRenderItem)),o.id=a;break;case I.W.Divider:t>0&&o.items.push(r((0,c.__assign)((0,c.__assign)({},e),{index:t}),n._onRenderItem)),o.items.length>0&&s();break;default:o.items.push(r((0,c.__assign)((0,c.__assign)({},e),{index:t}),n._onRenderItem))}};return e.options.forEach(function(e,t){l(e,t)}),o.items.length>0&&s(),u.createElement(u.Fragment,null,a)},n._onRenderItem=function(e){switch(e.itemType){case I.W.Divider:return n._renderSeparator(e);case I.W.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._renderOption=function(e){var t,r=n.props,o=r.onRenderOption,a=void 0===o?n._onRenderOption:o,s=r.hoisted.selectedIndices,l=void 0===s?[]:s,d=void 0!==e.index&&!!l&&l.indexOf(e.index)>-1,p=e.hidden?n._classNames.dropdownItemHidden:d&&!0===e.disabled?n._classNames.dropdownItemSelectedAndDisabled:d?n._classNames.dropdownItemSelected:!0===e.disabled?n._classNames.dropdownItemDisabled:n._classNames.dropdownItem,f=e.title,h=n._listId+e.index,g=null!=(t=e.id)?t:h+"-label",v=n._classNames.subComponentStyles?n._classNames.subComponentStyles.multiSelectItem:void 0;return n.props.multiSelect?u.createElement(L.S,{id:h,key:e.key,disabled:e.disabled,onChange:n._onItemClick(e),inputProps:(0,c.__assign)({"aria-selected":d,onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option"},{"data-index":e.index,"data-is-focusable":!(e.disabled||e.hidden)}),label:e.text,title:f,onRenderLabel:n._onRenderItemLabel.bind(n,(0,c.__assign)((0,c.__assign)({},e),{id:g})),className:(0,m.A)(p,"is-multi-select"),checked:d,styles:v,ariaPositionInSet:e.hidden?void 0:n._sizePosCache.positionInSet(e.index),ariaSetSize:e.hidden?void 0:n._sizePosCache.optionSetSize,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabel?void 0:g}):u.createElement(P.c,{id:h,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:p,onClick:n._onItemClick(e),onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option","aria-selected":d?"true":"false",ariaLabel:e.ariaLabel,title:f,"aria-posinset":n._sizePosCache.positionInSet(e.index),"aria-setsize":n._sizePosCache.optionSetSize},a(e,n._onRenderOption))},n._onRenderOption=function(e){return u.createElement("span",{className:n._classNames.dropdownOptionText},e.text)},n._onRenderMultiselectOption=function(e){return u.createElement("span",{id:e.id,"aria-hidden":"true",className:n._classNames.dropdownOptionText},e.text)},n._onRenderItemLabel=function(e){var t=n.props.onRenderOption;return(void 0===t?n._onRenderMultiselectOption:t)(e,n._onRenderMultiselectOption)},n._onPositioned=function(e){n._focusZone.current&&n._requestAnimationFrame(function(){var e=n.props.hoisted.selectedIndices;if(n._focusZone.current)if(!n._hasBeenPositioned&&e&&e[0]&&!n.props.options[e[0]].disabled){var t=(0,g.Y)().getElementById("".concat(n._id,"-list").concat(e[0]));t&&n._focusZone.current.focusElement(t),n._hasBeenPositioned=!0}else n._focusZone.current.focus()}),n.state.calloutRenderEdge&&n.state.calloutRenderEdge===e.targetEdge||n.setState({calloutRenderEdge:e.targetEdge})},n._onItemClick=function(e){return function(t){!e.disabled&&(n.setSelectedIndex(t,e.index),n.props.multiSelect||n.setState({isOpen:!1}))}},n._onScroll=function(){n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=window.setTimeout(function(){n._isScrollIdle=!0},n._scrollIdleDelay)},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&n._host.current)if(n._host.current.setActive)try{n._host.current.setActive()}catch(e){}else n._host.current.focus()},n._onDismiss=function(){n.setState({isOpen:!1})},n._onDropdownBlur=function(e){n._isDisabled()||!n.state.isOpen&&(n.setState({hasFocus:!1}),n.props.onBlur&&n.props.onBlur(e))},n._onDropdownKeyDown=function(e){var t;if(!n._isDisabled()){if(n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e),n.props.onKeyDown&&(n.props.onKeyDown(e),e.defaultPrevented))return;var r=n.props.hoisted.selectedIndices.length?n.props.hoisted.selectedIndices[0]:-1,o=e.altKey||e.metaKey,a=n.state.isOpen;switch(e.which){case v.c.enter:n.setState({isOpen:!a});break;case v.c.escape:if(!a)return;n.setState({isOpen:!1});break;case v.c.up:if(o){if(a){n.setState({isOpen:!1});break}return}n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,-1,r-1,r));break;case v.c.down:o&&(e.stopPropagation(),e.preventDefault()),o&&!a||n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,1,r+1,r));break;case v.c.home:n.props.multiSelect||(t=n._moveIndex(e,1,0,r));break;case v.c.end:n.props.multiSelect||(t=n._moveIndex(e,-1,n.props.options.length-1,r));break;case v.c.space:break;default:return}t!==r&&(e.stopPropagation(),e.preventDefault())}},n._onDropdownKeyUp=function(e){if(!n._isDisabled()){var t=n._shouldHandleKeyUp(e),r=n.state.isOpen;if(!n.props.onKeyUp||(n.props.onKeyUp(e),!e.defaultPrevented)){if(e.which===v.c.space)n.setState({isOpen:!r});else{t&&r&&n.setState({isOpen:!1});return}e.stopPropagation(),e.preventDefault()}}},n._onZoneKeyDown=function(e){n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var t,r,o,a=e.altKey||e.metaKey;switch(e.which){case v.c.up:a?n.setState({isOpen:!1}):n._host.current&&(o=(0,y.dm)(n._host.current,n._host.current.lastChild,!0));break;case v.c.home:case v.c.end:case v.c.pageUp:case v.c.pageDown:break;case v.c.down:!a&&n._host.current&&(o=(0,y.j5)(n._host.current,n._host.current.firstChild,!0));break;case v.c.escape:n.setState({isOpen:!1});break;case v.c.tab:n.setState({isOpen:!1});var s=(0,g.Y)();s&&(e.shiftKey?null==(t=(0,y.yv)(s.body,n._dropDown.current,!1,!1,!0,!0))||t.focus():null==(r=(0,y.eX)(s.body,n._dropDown.current,!1,!1,!0,!0))||r.focus());break;default:return}o&&o.focus(),e.stopPropagation(),e.preventDefault()},n._onZoneKeyUp=function(e){n._shouldHandleKeyUp(e)&&n.state.isOpen&&(n.setState({isOpen:!1}),e.preventDefault())},n._onDropdownClick=function(e){if(!n.props.onClick||(n.props.onClick(e),!e.defaultPrevented)){var t=n.state.isOpen;n._isDisabled()||n._shouldOpenOnFocus()||n.setState({isOpen:!t}),n._isFocusedByClick=!1}},n._onDropdownMouseDown=function(){n._isFocusedByClick=!0},n._onFocus=function(e){if(!n._isDisabled()){n.props.onFocus&&n.props.onFocus(e);var t={hasFocus:!0};n._shouldOpenOnFocus()&&(t.isOpen=!0),n.setState(t)}},n._isDisabled=function(){var e=n.props.disabled,t=n.props.isDisabled;return void 0===e&&(e=t),e},n._onRenderLabel=function(e){var t=e.label,r=e.required,o=e.disabled,a=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?u.createElement(N.J,{className:n._classNames.label,id:n._labelId,required:r,styles:a,disabled:o},t):null},(0,b.f)(n),t.multiSelect,t.selectedKey,t.selectedKeys,t.defaultSelectedKey,t.defaultSelectedKeys;var r=t.options;return n._id=t.id||(0,x.O)("Dropdown"),n._labelId=n._id+"-label",n._listId=n._id+"-list",n._optionId=n._id+"-option",n._isScrollIdle=!0,n._hasBeenPositioned=!1,n._sizePosCache.updateOptions(r),n.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},n}return(0,c.__extends)(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props,t=e.options,n=e.hoisted.selectedIndices;return(0,O.D)(t,n)},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._hasBeenPositioned=!1,this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this._id,t=this.props,n=t.className,r=t.label,o=t.options,a=t.ariaLabel,s=t.required,l=t.errorMessage,d=t.styles,p=t.theme,f=t.panelProps,h=t.calloutProps,m=t.onRenderTitle,g=void 0===m?this._getTitle:m,v=t.onRenderContainer,y=void 0===v?this._onRenderContainer:v,b=t.onRenderCaretDown,x=void 0===b?this._onRenderCaretDown:b,w=t.onRenderLabel,S=void 0===w?this._onRenderLabel:w,_=t.onRenderItem,E=void 0===_?this._onRenderItem:_,P=t.hoisted.selectedIndices,I=this.state,T=I.isOpen,D=I.calloutRenderEdge,A=I.hasFocus,R=t.onRenderPlaceholder||t.onRenderPlaceHolder||this._getPlaceholder;o!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(o);var N=(0,O.D)(o,P),B=(0,C.G1)(t,C.JM),M=this._isDisabled(),F=e+"-errorMessage";this._classNames=U(d,{theme:p,className:n,hasError:!!(l&&l.length>0),hasLabel:!!r,isOpen:T,required:s,disabled:M,isRenderingPlaceholder:!N.length,panelClassName:f?f.className:void 0,calloutClassName:h?h.className:void 0,calloutRenderEdge:D});var L=!!l&&l.length>0;return u.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":T?this._listId:void 0},S(this.props,this._onRenderLabel),u.createElement("div",(0,c.__assign)({"data-is-focusable":!M,"data-ktp-target":!0,ref:this._dropDown,id:e,tabIndex:M?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":T?"true":"false","aria-label":a,"aria-labelledby":r&&!a?(0,k._)(this._labelId,this._optionId):void 0,"aria-describedby":L?this._id+"-errorMessage":void 0,"aria-required":s,"aria-disabled":M,"aria-controls":T?this._listId:void 0},B,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),u.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":A?"polite":void 0,"aria-atomic":!!A||void 0,"aria-invalid":L},N.length?g(N,this._onRenderTitle):R(t,this._onRenderPlaceholder)),u.createElement("span",{className:this._classNames.caretDownWrapper},x(t,this._onRenderCaretDown))),T&&y((0,c.__assign)((0,c.__assign)({},t),{onDismiss:this._onDismiss,onRenderItem:E}),this._onRenderContainer),L&&u.createElement("div",{role:"alert",id:F,className:this._classNames.errorMessage},l))},t.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var n=this.props,r=n.options,o=n.selectedKey,a=n.selectedKeys,s=n.multiSelect,l=n.notifyOnReselect,c=n.hoisted.selectedIndices,u=void 0===c?[]:c,d=!!u&&u.indexOf(t)>-1,p=[];if(t=Math.max(0,Math.min(r.length-1,t)),void 0!==o||void 0!==a)return void this._onChange(e,r,t,d,s);if(s||l||t!==u[0]){if(s)if(p=u?this._copyArray(u):[],d){var f=p.indexOf(t);f>-1&&p.splice(f,1)}else p.push(t);else p=[t];e.persist(),this.props.hoisted.setSelectedIndices(p),this._onChange(e,r,t,d,s)}},t.prototype._copyArray=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o)}return t},t.prototype._moveIndex=function(e,t,n,r){var o=this.props.options;if(r===n||0===o.length)return r;n>=o.length?n=0:n<0&&(n=o.length-1);for(var a=0;o[n].itemType===I.W.Header||o[n].itemType===I.W.Divider||o[n].disabled;){if(a>=o.length)return r;n+t<0?n=o.length:n+t>=o.length&&(n=-1),n+=t,a++}return this.setSelectedIndex(e,n),n},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,n=void 0===t?this._onRenderList:t,r=e.label,o=e.ariaLabel,a=e.multiSelect;return u.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},u.createElement(D.R,{ref:this._focusZone,direction:A.E.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":o,"aria-labelledby":r&&!o?this._labelId:void 0,"aria-multiselectable":a},n(e,this._onRenderList)))},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key,r=e.hidden?this._classNames.dropdownDividerHidden:this._classNames.dropdownDivider;return t>0?u.createElement("div",{role:"presentation",key:n,className:r}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOption:t,r=e.key,o=e.id,a=e.hidden?this._classNames.dropdownItemHeaderHidden:this._classNames.dropdownItemHeader;return u.createElement("div",{id:o,key:r,className:a},n(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){if(!this._shouldIgnoreMouseEvent()){var n=t.currentTarget;n.focus()}},t.prototype._onItemMouseMove=function(e,t){var n=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==n&&n.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._isAltOrMeta=function(e){return e.which===v.c.alt||"Meta"===e.key},t.prototype._shouldHandleKeyUp=function(e){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!((0,w.c)()||(0,S.u)())},t.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},t.defaultProps={options:[]},t}(u.Component),K=n(25733),X=n(43029),Y=n(82540),Q={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},J=32,Z=36,ee=((r={})["".concat(Y.up,", ").concat(Y.hT.replace("@media ",""))]=(0,c.__assign)({},(0,Y.Qg)()),r),et={selectors:(0,c.__assign)(((o={})[Y.up]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},o[".ms-Checkbox-checkbox"]=((a={})[Y.up]={borderColor:"HighlightText"},a),o),ee)},en={selectors:((s={})[Y.up]={borderColor:"Highlight"},s)},er=(0,Y.L6)(0,Y.O7),eo=function(e){var t,n,r,o,a,s,l,u,d,p,f,h,m=e.theme,g=e.hasError,v=e.hasLabel,y=e.className,b=e.isOpen,x=e.disabled,C=e.required,k=e.isRenderingPlaceholder,w=e.panelClassName,S=e.calloutClassName,_=e.calloutRenderEdge;if(!m)throw Error("theme is undefined or null in base Dropdown getStyles function.");var E=(0,Y.Km)(Q,m),P=m.palette,I=m.semanticColors,T=m.effects,D=m.fonts,A={color:I.menuItemTextHovered},R={color:I.menuItemText},N={borderColor:I.errorText},B=[E.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:Z,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],M=[E.dropdownItemHeader,(0,c.__assign)((0,c.__assign)({},D.medium),{fontWeight:Y.BO.semibold,color:I.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:Z,lineHeight:Z,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:((t={})[Y.up]=(0,c.__assign)({color:"GrayText"},(0,Y.Qg)()),t)})],F=I.menuItemBackgroundPressed,O=function(e){var t,n;return void 0===e&&(e=!1),{selectors:((t={"&:hover":[{color:I.menuItemTextHovered,backgroundColor:e?F:I.menuItemBackgroundHovered},et],"&.is-multi-select:hover":[{backgroundColor:e?F:"transparent"},et],"&:active:hover":[{color:I.menuItemTextHovered,backgroundColor:e?I.menuItemBackgroundHovered:I.menuItemBackgroundPressed},et]})[".".concat(K.Y2," &:focus:after")]=((n={left:0,top:0,bottom:0,right:0})[Y.up]={inset:"2px"},n),t[Y.up]={border:"none"},t)}},L=(0,c.__spreadArray)((0,c.__spreadArray)([],B,!0),[{backgroundColor:F,color:I.menuItemTextHovered},O(!0),et],!1),H=(0,c.__spreadArray)((0,c.__spreadArray)([],B,!0),[{color:I.disabledText,cursor:"default",selectors:((n={})[Y.up]={color:"GrayText",border:"none"},n)}],!1),z=_===X.x.bottom?"".concat(T.roundedCorner2," ").concat(T.roundedCorner2," 0 0"):"0 0 ".concat(T.roundedCorner2," ").concat(T.roundedCorner2),V=_===X.x.bottom?"0 0 ".concat(T.roundedCorner2," ").concat(T.roundedCorner2):"".concat(T.roundedCorner2," ").concat(T.roundedCorner2," 0 0");return{root:[E.root,y],label:E.label,dropdown:[E.dropdown,Y.S8,D.medium,{color:I.menuItemText,borderColor:I.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:((r={})["&:hover ."+E.title]=[!x&&A,{borderColor:b?P.neutralSecondary:P.neutralPrimary},en],r["&:focus ."+E.title]=[!x&&A,{selectors:((o={})[Y.up]={color:"Highlight"},o)}],r["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:x?"none":"2px solid ".concat(P.themePrimary),borderRadius:"2px",selectors:((a={})[Y.up]={color:"Highlight"},a)}],r["&:active ."+E.title]=[!x&&A,{borderColor:P.themePrimary},en],r["&:hover ."+E.caretDown]=!x&&R,r["&:focus ."+E.caretDown]=[!x&&R,{selectors:((s={})[Y.up]={color:"Highlight"},s)}],r["&:active ."+E.caretDown]=!x&&R,r["&:hover ."+E.titleIsPlaceHolder]=!x&&R,r["&:focus ."+E.titleIsPlaceHolder]=!x&&R,r["&:active ."+E.titleIsPlaceHolder]=!x&&R,r["&:hover ."+E.titleHasError]=N,r["&:active ."+E.titleHasError]=N,r)},b&&"is-open",x&&"is-disabled",C&&"is-required",C&&!v&&{selectors:((l={":before":{content:"'*'",color:I.errorText,position:"absolute",top:-5,right:-10}})[Y.up]={selectors:{":after":{right:-14}}},l)}],title:[E.title,Y.S8,{backgroundColor:I.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:I.inputBorder,borderRadius:b?z:T.roundedCorner2,cursor:"pointer",display:"block",height:J,lineHeight:J-2,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},k&&[E.titleIsPlaceHolder,{color:I.inputPlaceholderText}],g&&[E.titleHasError,N],x&&{backgroundColor:I.disabledBackground,border:"none",color:I.disabledText,cursor:"default",selectors:((u={})[Y.up]=(0,c.__assign)({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},(0,Y.Qg)()),u)}],caretDownWrapper:[E.caretDownWrapper,{height:J,lineHeight:J-2,paddingTop:1,position:"absolute",right:8,top:0},!x&&{cursor:"pointer"}],caretDown:[E.caretDown,{color:P.neutralSecondary,fontSize:D.small.fontSize,pointerEvents:"none"},x&&{color:I.disabledText,selectors:((d={})[Y.up]=(0,c.__assign)({color:"GrayText"},(0,Y.Qg)()),d)}],errorMessage:(0,c.__assign)((0,c.__assign)({color:I.errorText},m.fonts.small),{paddingTop:5}),callout:[E.callout,{boxShadow:T.elevation8,borderRadius:V,selectors:((p={})[".ms-Callout-main"]={borderRadius:V},p)},S],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[E.dropdownItems,{display:"block"}],dropdownItem:(0,c.__spreadArray)((0,c.__spreadArray)([],B,!0),[O()],!1),dropdownItemSelected:L,dropdownItemDisabled:H,dropdownItemSelectedAndDisabled:[L,H,{backgroundColor:"transparent"}],dropdownItemHidden:(0,c.__spreadArray)((0,c.__spreadArray)([],B,!0),[{display:"none"}],!1),dropdownDivider:[E.dropdownDivider,{height:1,backgroundColor:I.bodyDivider}],dropdownDividerHidden:[E.dropdownDivider,{display:"none"}],dropdownOptionText:[E.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:M,dropdownItemHeaderHidden:(0,c.__spreadArray)((0,c.__spreadArray)([],M,!0),[{display:"none"}],!1),subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:((f={})[".".concat(K.Y2," &:focus + label::before")]={outlineOffset:"0px"},f)}},panel:{root:[w],main:{selectors:((h={})[er]={width:272},h)},contentInner:{padding:"0 0 20px"}}}}},ei=(0,l.I)(q,eo,void 0,{scope:"Dropdown"});ei.displayName="Dropdown"},38667(e,t,n){"use strict";n.d(t,{Y:()=>w});var r=n(55478),o=n(40887),a=n(76325),s=n(66647),l=n(19949),c=n(53325),u=n(16044),d=n(68032),p=n(49122),f=n(98041),h=n(74721),m=n(1369),g=n(97204);function v(e){var t=o.useRef(function(){throw Error("Cannot call an event handler while rendering")});return(0,g.E)(function(){t.current=e},[e]),(0,h.d)(function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(void 0,e)}})}var y=n(72962),b=n(16104),x="FocusTrapZone",C={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},k=function(e,t,n){o.useImperativeHandle(e,function(){return{get previouslyFocusedElement(){return t},focus:n}},[n,t])},w=o.forwardRef(function(e,t){var n,g=o.useRef(null),x=o.useRef(null),S=o.useRef(null),_=(0,p.a)(g,t),E=(0,b.ZY)(),P=null==(n=(0,f.Z)(!1))||n,I=(0,a.N)(C,e),T=(0,h.d)({hasFocus:!1,focusStackId:(0,m.B)("ftz-",I.id)}),D=I.children,A=I.componentRef,R=I.disabled,N=I.disableFirstFocus,B=I.forceFocusInsideTrap,M=I.focusPreviouslyFocusedInnerElement,F=I.firstFocusableSelector,O=I.firstFocusableTarget,L=I.disableRestoreFocus,H=void 0===L?I.ignoreExternalFocusing:L,z=I.isClickableOutsideFocusTrap,V=I.enableAriaHiddenSiblings,U={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:R?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},j=o.useCallback(function(e){e!==x.current&&e!==S.current&&(0,s.lo)(e)},[]),W=v(function(){if(g.current){var e=T.previouslyFocusedElementInTrapZone;if(M&&e&&(0,l.s)(g.current,e))return void j(e);var t=null;if("string"==typeof O)t=g.current.querySelector(O);else if(O)t=O(g.current);else if(F){var n="string"==typeof F?F:F();t=g.current.querySelector("."+n)}t||(t=(0,s.eX)(g.current,g.current.firstChild,!1,!1,!1,!0)),t&&j(t)}}),q=function(e){if(!R&&g.current){var t=e===T.hasFocus?(0,s.Cm)(g.current,S.current,!0,!1):(0,s.oR)(g.current,x.current,!0,!1);t&&(t===x.current||t===S.current?W():t.focus())}},G=function(e){null==(t=I.onBlurCapture)||t.call(I,e);var t,n=e.relatedTarget;null===e.relatedTarget&&(n=E.activeElement),(0,l.s)(g.current,n)||(T.hasFocus=!1)},K=function(e){var t;null==(t=I.onFocusCapture)||t.call(I,e),e.target===x.current?q(!0):e.target===S.current&&q(!1),T.hasFocus=!0,e.target!==e.currentTarget&&e.target!==x.current&&e.target!==S.current&&(T.previouslyFocusedElementInTrapZone=e.target)},X=v(function(e){if(w.focusStack=w.focusStack.filter(function(e){return T.focusStackId!==e}),E){var t=E.activeElement;!H&&"function"==typeof(null==e?void 0:e.focus)&&((0,l.s)(g.current,t)||t===E.body)&&j(e)}}),Y=v(function(e){if(!R&&T.focusStackId===w.focusStack.slice(-1)[0]){var t=e.target;t&&!(0,l.s)(g.current,t)&&(E&&E.activeElement===E.body?setTimeout(function(){E&&E.activeElement===E.body&&(W(),T.hasFocus=!0)},0):(W(),T.hasFocus=!0),e.preventDefault(),e.stopPropagation())}});return o.useEffect(function(){var e=[];return B&&e.push((0,c.on)(window,"focus",Y,!0)),z||e.push((0,c.on)(window,"click",Y,!0)),function(){e.forEach(function(e){return e()})}},[B,z]),o.useEffect(function(){if(!R&&(P||B)&&g.current){w.focusStack.push(T.focusStackId);var e=I.elementToFocusOnDismiss||E.activeElement;return N||(0,l.s)(g.current,e)||W(),function(){return X(e)}}},[B,R]),o.useEffect(function(){if(!R&&V)return(0,u.q)(g.current)},[R,V,g]),(0,y.i)(function(){delete T.previouslyFocusedElementInTrapZone}),k(A,T.previouslyFocusedElementInTrapZone,W),o.createElement("div",(0,r.__assign)({"aria-labelledby":I.ariaLabelledBy},(0,d.G1)(I,d.JM),{ref:_,onFocusCapture:K,onBlurCapture:G}),o.createElement("div",(0,r.__assign)({},U,{ref:x})),D,o.createElement("div",(0,r.__assign)({},U,{ref:S})))});w.displayName=x,w.focusStack=[]},30217(e,t,n){"use strict";n.d(t,{l8:()=>p,ne:()=>d});var r=n(55478),o=n(40887),a=n(76650),s=n(4825),l=n(68032),c=n(34534),u=n(82540),d=(0,s.J9)(function(e){var t=(0,u.sW)(e)||{subset:{},code:void 0},n=t.code,r=t.subset;return n?{children:n,iconClassName:r.className,fontFamily:r.fontFace&&r.fontFace.fontFamily,mergeImageProps:r.mergeImageProps}:null},void 0,!0),p=function(e){var t=e.iconName,n=e.className,s=e.style,u=void 0===s?{}:s,p=d(t)||{},f=p.iconClassName,h=p.children,m=p.fontFamily,g=p.mergeImageProps,v=(0,l.G1)(e,l.vt),y=e["aria-label"]||e.title,b=e["aria-label"]||e["aria-labelledby"]||e.title?{role:g?void 0:"img"}:{"aria-hidden":!0},x=h;return g&&"object"==typeof h&&"object"==typeof h.props&&y&&(x=o.cloneElement(h,{alt:y})),o.createElement("i",(0,r.__assign)({"data-icon-name":t},b,v,g?{title:void 0,"aria-label":void 0}:{},{className:(0,c.A)(a.xD,a.xW.root,f,!t&&a.xW.placeholder,n),style:(0,r.__assign)({fontFamily:m},u)}),x)};(0,s.J9)(function(e,t,n){return p({iconName:e,className:t,"aria-label":n})})},80866(e,t,n){"use strict";n.d(t,{I:()=>g});var r=n(93030),o=n(55478),a=n(40887),s=n(91595),l=n(23755),c=n(6095),u=n(57273),d=n(68032),p=n(30217),f=(0,u.Z)({cacheSize:100}),h=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===c.P6.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return(0,o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.styles,c=e.iconName,u=e.imageErrorAs,h=e.theme,m="string"==typeof c&&0===c.length,g=!!this.props.imageProps||this.props.iconType===s.A.image||this.props.iconType===s.A.Image,v=(0,p.ne)(c)||{},y=v.iconClassName,b=v.children,x=v.mergeImageProps,C=f(r,{theme:h,className:n,iconClassName:y,isImage:g,isPlaceholder:m}),k=g?"span":"i",w=(0,d.G1)(this.props,d.vt,["aria-label"]),S=this.state.imageLoadError,_=(0,o.__assign)((0,o.__assign)({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),E=S&&u||l._,P=this.props["aria-label"]||this.props.ariaLabel,I=_.alt||P||this.props.title,T=I||this.props["aria-labelledby"]||_["aria-label"]||_["aria-labelledby"]?{role:g||x?void 0:"img","aria-label":g||x?void 0:I}:{"aria-hidden":!0},D=b;return x&&b&&"object"==typeof b&&I&&(D=a.cloneElement(b,{alt:I})),a.createElement(k,(0,o.__assign)({"data-icon-name":c},T,w,x?{title:void 0,"aria-label":void 0}:{},{className:C.root}),g?a.createElement(E,(0,o.__assign)({},_)):t||D)},t}(a.Component),m=n(76650),g=(0,r.I)(h,m.$f,void 0,{scope:"Icon"},!0);g.displayName="Icon"},76650(e,t,n){"use strict";n.d(t,{$f:()=>a,xD:()=>o,xW:()=>r});var r=(0,n(82540).l8)({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),o="ms-Icon",a=function(e){var t=e.className,n=e.iconClassName,o=e.isPlaceholder,a=e.isImage,s=e.styles;return{root:[o&&r.placeholder,r.root,a&&r.image,n,t,s&&s.root,s&&s.imageContainer]}}},91595(e,t,n){"use strict";var r;n.d(t,{A:()=>r}),function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(r||(r={}))},23755(e,t,n){"use strict";n.d(t,{_:()=>w});var r=n(93030),o=n(55478),a=n(40887),s=n(57273),l=n(68032),c=n(6095),u=n(97204),d=n(49122),p=(0,s.Z)(),f=/\.svg$/i,h="fabricImage";function m(e,t){var n=e.onLoadingStateChange,r=e.onLoad,o=e.onError,s=e.src,l=a.useState(c.P6.notLoaded),d=l[0],p=l[1];return(0,u.E)(function(){p(c.P6.notLoaded)},[s]),a.useEffect(function(){d===c.P6.notLoaded&&t.current&&(s&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&f.test(s))&&p(c.P6.loaded)}),a.useEffect(function(){null==n||n(d)},[d]),[d,a.useCallback(function(e){null==r||r(e),s&&p(c.P6.loaded)},[s,r]),a.useCallback(function(e){null==o||o(e),p(c.P6.error)},[o])]}var g=a.forwardRef(function(e,t){var n=a.useRef(),r=a.useRef(),s=m(e,r),u=s[0],f=s[1],g=s[2],y=(0,l.G1)(e,l.xM,["width","height"]),b=e.src,x=e.alt,C=e.width,k=e.height,w=e.shouldFadeIn,S=void 0===w||w,_=e.shouldStartVisible,E=e.className,P=e.imageFit,I=e.role,T=e.maximizeFrame,D=e.styles,A=e.theme,R=e.loading,N=v(e,u,r,n),B=p(D,{theme:A,className:E,width:C,height:k,maximizeFrame:T,shouldFadeIn:S,shouldStartVisible:_,isLoaded:u===c.P6.loaded||u===c.P6.notLoaded&&e.shouldStartVisible,isLandscape:N===c.Aw.landscape,isCenter:P===c.N_.center,isCenterContain:P===c.N_.centerContain,isCenterCover:P===c.N_.centerCover,isContain:P===c.N_.contain,isCover:P===c.N_.cover,isNone:P===c.N_.none,isError:u===c.P6.error,isNotImageFit:void 0===P});return a.createElement("div",{className:B.root,style:{width:C,height:k},ref:n},a.createElement("img",(0,o.__assign)({},y,{onLoad:f,onError:g,key:h+e.src||"",className:B.image,ref:(0,d.a)(r,t),src:b,alt:x,role:I,loading:R})))});function v(e,t,n,r){var o=a.useRef(t),s=a.useRef();return(void 0===s||o.current===c.P6.notLoaded&&t===c.P6.loaded)&&(s.current=y(e,t,n,r)),o.current=t,s.current}function y(e,t,n,r){var o=e.imageFit,a=e.width,s=e.height;if(void 0!==e.coverStyle)return e.coverStyle;if(t===c.P6.loaded&&(o===c.N_.cover||o===c.N_.contain||o===c.N_.centerContain||o===c.N_.centerCover)&&n.current&&r.current){var l=void 0;if(l="number"==typeof a&&"number"==typeof s&&o!==c.N_.centerContain&&o!==c.N_.centerCover?a/s:r.current.clientWidth/r.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>l)return c.Aw.landscape}return c.Aw.portrait}g.displayName="ImageBase";var b=n(82540),x=n(46330),C={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},k=function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,a=e.isLoaded,s=e.shouldFadeIn,l=e.shouldStartVisible,c=e.isLandscape,u=e.isCenter,d=e.isContain,p=e.isCover,f=e.isCenterContain,h=e.isCenterCover,m=e.isNone,g=e.isError,v=e.isNotImageFit,y=e.theme,k=(0,b.Km)(C,y),w={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},S=(0,x.z)(),_=void 0!==S&&void 0===S.navigator.msMaxTouchPoints,E=d&&c||p&&!c?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[k.root,y.fonts.medium,{overflow:"hidden"},o&&[k.rootMaximizeFrame,{height:"100%",width:"100%"}],a&&s&&!l&&b.lw.fadeIn400,(u||d||p||f||h)&&{position:"relative"},t],image:[k.image,{display:"block",opacity:0},a&&["is-loaded",{opacity:1}],u&&[k.imageCenter,w],d&&[k.imageContain,_&&{width:"100%",height:"100%",objectFit:"contain"},!_&&E,!_&&w],p&&[k.imageCover,_&&{width:"100%",height:"100%",objectFit:"cover"},!_&&E,!_&&w],f&&[k.imageCenterContain,c&&{maxWidth:"100%"},!c&&{maxHeight:"100%"},w],h&&[k.imageCenterCover,c&&{maxHeight:"100%"},!c&&{maxWidth:"100%"},w],m&&[k.imageNone,{width:"auto",height:"auto"}],v&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],c&&k.imageLandscape,!c&&k.imagePortrait,!a&&"is-notLoaded",s&&"is-fadeIn",g&&"is-error"]}},w=(0,r.I)(g,k,void 0,{scope:"Image"},!0);w.displayName="Image"},6095(e,t,n){"use strict";var r,o,a;n.d(t,{Aw:()=>o,N_:()=>r,P6:()=>a}),function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"}(r||(r={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(o||(o={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(a||(a={}))},78316(e,t,n){"use strict";n.d(t,{x:()=>y});var r=n(55478),o=n(47510),a=n(40887),s=n(74721),l=n(98041),c=n(97204),u=n(49892),d=n(45924),p=n(36428);function f(e){return e.reduce(function(e,t){return e+o.oQ+t.split("").join(o.oQ)},o.fy)}function h(e,t){var n=t.length,o=(0,r.__spreadArray)([],t,!0).pop(),a=(0,r.__spreadArray)([],e,!0);return(0,p.Ty)(a,n-1,o)}function m(e){var t=" "+o.Cm;return e.length?t+" "+f(e):t}function g(e){var t=a.useRef(),n=e.keytipProps?(0,r.__assign)({disabled:e.disabled},e.keytipProps):void 0,o=(0,s.d)(d._.getInstance()),u=(0,l.Z)(e);(0,c.E)(function(){t.current&&n&&((null==u?void 0:u.keytipProps)!==e.keytipProps||(null==u?void 0:u.disabled)!==e.disabled)&&o.update(n,t.current)}),(0,c.E)(function(){return n&&(t.current=o.register(n)),function(){n&&o.unregister(n,t.current)}},[]);var p={ariaDescribedBy:void 0,keytipId:void 0};return n&&(p=v(o,n,e.ariaDescribedBy)),p}function v(e,t,n){var o=e.addParentOverflow(t),a=(0,u._)(n,m(o.keySequences)),s=(0,r.__spreadArray)([],o.keySequences,!0);return o.overflowSetSequence&&(s=h(s,o.overflowSetSequence)),{ariaDescribedBy:a,keytipId:f(s)}}var y=function(e){var t,n=e.children,a=g((0,r.__rest)(e,["children"])),s=a.keytipId,l=a.ariaDescribedBy;return n(((t={})[o.aR]=s,t[o.er]=s,t["aria-describedby"]=l,t))}},82602(e,t,n){"use strict";n.d(t,{J:()=>p});var r=n(93030),o=n(55478),a=n(40887),s=n(68032),l=(0,n(57273).Z)({cacheSize:100}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"label":t,r=e.children,c=e.className,u=e.disabled,d=l(e.styles,{className:c,disabled:u,required:e.required,theme:e.theme});return a.createElement(n,(0,o.__assign)({},(0,s.G1)(this.props,s.JM),{className:d.root}),r)},t}(a.Component),u=n(82540),d=function(e){var t,n=e.theme,r=e.className,a=e.disabled,s=e.required,l=n.semanticColors,c=u.BO.semibold,d=l.bodyText,p=l.disabledBodyText,f=l.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:c,color:d,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},a&&{color:p,selectors:((t={})[u.up]=(0,o.__assign)({color:"GrayText"},(0,u.Qg)()),t)},s&&{selectors:{"::after":{content:"' *'",color:f,paddingRight:12}}},r]}},p=(0,r.I)(c,d,void 0,{scope:"Label"})},92225(e,t,n){"use strict";n.d(t,{W:()=>eu});var r,o=n(93030),a=n(55478),s=n(40887);let l=s.createContext(void 0),c=()=>()=>void 0;function u(){var e;return null!=(e=s.useContext(l))?e:c}l.Provider;var d=n(2029),p=n(57273),f=n(4825),h=n(35523),m=n(68032),g=n(50103),v=n(59980),y=n(68578);function b(e,t){return void 0===e&&(e={}),(C(t)?t:k(t))(e)}function x(e,t){return void 0===e&&(e={}),(C(t)?t:w(t))(e)}function C(e){return"function"==typeof e}function k(e){return function(t){return e?(0,a.__assign)((0,a.__assign)({},t),e):t}}function w(e){return void 0===e&&(e={}),function(t){var n=(0,a.__assign)({},t);for(var r in e)e.hasOwnProperty(r)&&(n[r]=(0,a.__assign)((0,a.__assign)({},t[r]),e[r]));return n}}function S(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:b(r.settings,e.settings),scopedSettings:x(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){v.X.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){v.X.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return s.createElement(y.z.Consumer,null,function(n){var r=S(e.props,n);return t&&(r=t(r)),s.createElement(y.z.Provider,{value:r},e.props.children)})},t}(s.Component),E=n(93367),P=n(95830),I=n(49122),T=(0,p.Z)(),D=(0,f.J9)(function(e,t){return(0,P.a)((0,a.__assign)((0,a.__assign)({},e),{rtl:t}))}),A=function(e){var t=e.theme,n=e.dir,r=(0,h.jI)(t)?"rtl":"ltr",o=(0,h.jI)()?"rtl":"ltr",a=n||r;return{rootDir:a!==r||a!==o?a:n,needsTheme:a!==r}},R=s.forwardRef(function(e,t){var n=e.className,r=e.theme,o=e.applyTheme,a=e.applyThemeToBody,l=T(e.styles,{theme:r,applyTheme:o,className:n}),c=s.useRef(null);return B(a,l,c),s.createElement(s.Fragment,null,N(e,l,c,t))});function N(e,t,n,r){var o=t.root,l=e.as,c=void 0===l?"div":l,u=e.dir,d=e.theme,p=(0,m.G1)(e,m.JM,["dir"]),f=A(e),h=f.rootDir,v=f.needsTheme,y=s.createElement(g.N,{providerRef:n},s.createElement(c,(0,a.__assign)({dir:h},p,{className:o,ref:(0,I.a)(n,r)})));return v&&(y=s.createElement(_,{settings:{theme:D(d,"rtl"===u)}},y)),y}function B(e,t,n){var r=t.bodyThemed;return s.useEffect(function(){if(e){var t=(0,E.Y)(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}},[r,e,n]),n}R.displayName="FabricBase";var M=n(82540),F={fontFamily:"inherit"},O={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},L=function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[(0,M.Km)(O,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":F,"& input":F,"& textarea":F},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}},H=(0,o.I)(R,L,void 0,{scope:"Fabric"}),z=n(25733),V=n(31068),U=n(74052);function j(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var a=o._virtual.children.indexOf(n);a>-1&&o._virtual.children.splice(a,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}var W=n(34534),q={},G={},K="fluent-default-layer-host",X="#".concat(K);function Y(e,t){q[e]||(q[e]=[]),q[e].push(t);var n=G[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}function Q(e,t){var n=q[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete q[e])}var o=G[e];if(o)for(var a=0,s=o;a<s.length;a++)s[a].notifyLayersChanged()}function J(e){var t=G[e];return t&&t[0]||void 0}function Z(e){var t=e.createElement("div");return t.setAttribute("id",K),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}function ee(){return X}var et=n(97204),en=(0,p.Z)(),er=function(e){return null!=e&&!!e.current&&e.current.classList.contains(z.Y2)},eo=s.forwardRef(function(e,t){var n=u(),r=s.useRef(null),o=(0,I.a)(r,t),l=s.useRef(),c=s.useRef(null),p=s.useContext(V.dM),f=s.useState(!1),h=f[0],m=f[1],v=s.useCallback(function(e){var t=er(null==p?void 0:p.providerRef);e&&t&&e.classList.add(z.Y2)},[p]),y=e.children,b=e.className,x=e.eventBubblingEnabled,C=e.fabricProps,k=e.hostId,w=e.insertFirst,S=e.onLayerDidMount,_=void 0===S?function(){}:S,P=e.onLayerMounted,T=void 0===P?function(){}:P,D=e.onLayerWillUnmount,A=e.styles,R=e.theme,N=(0,I.a)(c,null==C?void 0:C.ref,v),B=en(A,{theme:R,className:b,isNotHost:!k}),M=function(e){if(k){var t,n,r=J(k);return r?null!=(t=r.rootRef.current)?t:null:null!=(n=e.getElementById(k))?n:null}var o=ee(),a=o?e.querySelector(o):null;return a||(a=Z(e)),a},F=function(){null==D||D();var e=l.current;l.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},O=function(){var e,t=(0,E.Y)(r.current);if(t){var n=M(t);if(n){F();var o=(null!=(e=n.ownerDocument)?e:t).createElement("div");o.className=B.root,(0,U.V)(o),j(o,r.current),w?n.insertBefore(o,n.firstChild):n.appendChild(o),l.current=o,m(!0)}}};return(0,et.E)(function(){O(),k&&Y(k,O);var e=l.current?n(l.current):void 0;return function(){e&&e(),F(),k&&Q(k,O)}},[k]),s.useEffect(function(){l.current&&h&&(null==T||T(),null==_||_(),m(!1))},[h,T,_]),es(e),s.createElement("span",{className:"ms-layer",ref:o},l.current&&d.createPortal(s.createElement(g.N,{layerRoot:!0,providerRef:N},s.createElement(H,(0,a.__assign)({},!x&&ea(),C,{className:(0,W.A)(B.content,null==C?void 0:C.className),ref:N}),y)),l.current))});eo.displayName="LayerBase";var ei=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};function ea(){return r||(r={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach(function(e){return r[e]=ei})),r}function es(e){}var el={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},ec=function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=(0,M.Km)(el,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:M.nA.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}},eu=(0,o.I)(eo,ec,void 0,{scope:"Layer",fields:["hostId","theme","styles"]})},96959(e,t,n){"use strict";n.d(t,{N:()=>g});var r=n(93030),o=n(55478),a=n(40887),s=n(49122),l=n(57273),c=n(31068),u=(0,l.Z)(),d=function(e,t){var n=e.as,r=e.className,l=e.disabled,d=e.href,h=e.onClick,m=e.styles,g=e.theme,v=e.underline,y=a.useRef(null),b=(0,s.a)(y,t);p(e,y),(0,c.vk)(y);var x=u(m,{className:r,isButton:!d,isDisabled:l,isUnderlined:v,theme:g}),C=function(e){l?e.preventDefault():h&&h(e)},k=n||(d?"a":"button");return{state:{},slots:{root:k},slotProps:{root:(0,o.__assign)((0,o.__assign)({},f(k,e)),{"aria-disabled":l,className:x.root,onClick:C,ref:b})}}},p=function(e,t){a.useImperativeHandle(e.componentRef,function(){return{focus:function(){t.current&&t.current.focus()}}},[t])},f=function(e,t){t.as;var n=t.disabled,r=t.target,a=t.href,s=(t.theme,t.getStyles,t.styles,t.componentRef,t.underline,(0,o.__rest)(t,["as","disabled","target","href","theme","getStyles","styles","componentRef","underline"]));return"string"==typeof e?"a"===e?(0,o.__assign)({target:r,href:n?void 0:a},s):"button"===e?(0,o.__assign)({type:"button",disabled:n},s):(0,o.__assign)((0,o.__assign)({},s),{disabled:n}):(0,o.__assign)({target:r,href:a,disabled:n},s)},h=a.forwardRef(function(e,t){var n=d(e,t),r=n.slots,s=n.slotProps;return a.createElement(r.root,(0,o.__assign)({},s.root))});h.displayName="LinkBase";var m=n(64736),g=(0,r.I)(h,m.$,void 0,{scope:"Link"})},64736(e,t,n){"use strict";n.d(t,{$:()=>a,e:()=>o});var r=n(82540),o={root:"ms-Link"},a=function(e){var t,n,a,s,l,c,u,d=e.className,p=e.isButton,f=e.isDisabled,h=e.isUnderlined,m=e.theme,g=m.semanticColors,v=g.link,y=g.linkHovered,b=g.disabledText,x=g.focusBorder,C=(0,r.Km)(o,m);return{root:[C.root,m.fonts.medium,{color:v,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:h?"underline":"none",selectors:((t={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px ".concat(x," inset"),outline:"1px auto ".concat(x),selectors:((n={})[r.up]={outline:"1px solid WindowText"},n)}})[r.up]={borderBottom:"none"},t)},p&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:((a={})[r.up]={color:"LinkText",forcedColorAdjust:"none"},a)},!p&&{selectors:((s={})[r.up]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},s)},f&&["is-disabled",{color:b,cursor:"default"},{selectors:((l={"&:link, &:visited":{pointerEvents:"none"}})[r.up]={color:"GrayText"},l)}],!f&&{selectors:{"&:active, &:hover, &:active:hover":{color:y,textDecoration:"underline",selectors:((c={})[r.up]={color:"LinkText"},c)},"&:focus":{color:v,selectors:((u={})[r.up]={color:"LinkText"},u)}}},C.root,d]}}},77272(e,t,n){"use strict";n.d(t,{n:()=>B});var r,o,a,s,l,c=n(93030),u=n(55478),d=n(40887),p=n(57273),f=n(68032),h=n(34534),m=n(99751),g=n(78412),v=n(80866),y=n(13713),b=n(32642),x=n(1369),C=((r={})[y.H.info]="Info",r[y.H.warning]="Info",r[y.H.error]="ErrorBadge",r[y.H.blocked]="Blocked2",r[y.H.severeWarning]="Warning",r[y.H.success]="Completed",r),k="MessageBar",w=(0,p.Z)(),S=function(e){switch(e){case y.H.blocked:case y.H.error:case y.H.severeWarning:return"assertive"}return"polite"},_=function(e){switch(e){case y.H.blocked:case y.H.error:case y.H.severeWarning:return"alert"}return"status"},E=d.forwardRef(function(e,t){var n=(0,b.C)(!1),r=n[0],o=n[1].toggle,a=(0,x.B)("MessageBar"),s=e.actions,l=e.className,c=e.children,p=e.overflowButtonAriaLabel,k=e.dismissIconProps,E=e.styles,P=e.theme,I=e.messageBarType,T=void 0===I?y.H.info:I,D=e.onDismiss,A=void 0===D?void 0:D,R=e.isMultiline,N=void 0===R||R,B=e.truncated,M=e.dismissButtonAriaLabel,F=e.messageBarIconProps,O=e.role,L=e.delayedRender,H=void 0===L||L,z=e.expandButtonProps,V=(0,f.G1)(e,f.vt,["className","role"]),U=w(E,{theme:P,messageBarType:T||y.H.info,onDismiss:void 0!==A,actions:void 0!==s,truncated:B,isMultiline:N,expandSingleLine:r,className:l}),j={iconName:r?"DoubleChevronUp":"DoubleChevronDown"},W=s||A?{"aria-describedby":a,role:"region"}:{},q=s?d.createElement("div",{className:U.actions},s):null,G=A?d.createElement(g.K,{disabled:!1,className:U.dismissal,onClick:A,iconProps:k||{iconName:"Clear"},title:M,ariaLabel:M}):null;return d.createElement("div",(0,u.__assign)({ref:t,className:U.root},W),d.createElement("div",{className:U.content},d.createElement("div",{className:U.iconContainer,"aria-hidden":!0},F?d.createElement(v.I,(0,u.__assign)({},F,{className:(0,h.A)(U.icon,F.className)})):d.createElement(v.I,{iconName:C[T],className:U.icon})),d.createElement("div",{className:U.text,id:a,role:O||_(T),"aria-live":S(T)},d.createElement("span",(0,u.__assign)({className:U.innerText},V),H?d.createElement(m.P,null,d.createElement("span",null,c)):d.createElement("span",null,c))),!N&&!q&&B&&d.createElement("div",{className:U.expandSingleLine},d.createElement(g.K,(0,u.__assign)({disabled:!1,className:U.expand,onClick:o,iconProps:j,ariaLabel:p,"aria-expanded":r},z))),!N&&q,!N&&G&&d.createElement("div",{className:U.dismissSingleLine},G),N&&G),N&&q)});E.displayName=k;var P=n(82540),I={root:"ms-MessageBar",error:"ms-MessageBar--error",blocked:"ms-MessageBar--blocked",severeWarning:"ms-MessageBar--severeWarning",success:"ms-MessageBar--success",warning:"ms-MessageBar--warning",multiline:"ms-MessageBar-multiline",singleline:"ms-MessageBar-singleline",dismissalSingleLine:"ms-MessageBar-dismissalSingleLine",expandingSingleLine:"ms-MessageBar-expandingSingleLine",content:"ms-MessageBar-content",iconContainer:"ms-MessageBar-icon",text:"ms-MessageBar-text",innerText:"ms-MessageBar-innerText",dismissSingleLine:"ms-MessageBar-dismissSingleLine",expandSingleLine:"ms-MessageBar-expandSingleLine",dismissal:"ms-MessageBar-dismissal",expand:"ms-MessageBar-expand",actions:"ms-MessageBar-actions",actionsSingleline:"ms-MessageBar-actionsSingleLine"},T=((o={})[y.H.error]="errorBackground",o[y.H.blocked]="errorBackground",o[y.H.success]="successBackground",o[y.H.warning]="warningBackground",o[y.H.severeWarning]="severeWarningBackground",o[y.H.info]="infoBackground",o),D=((a={})[y.H.error]="errorIcon",a[y.H.blocked]="errorIcon",a[y.H.success]="successIcon",a[y.H.warning]="warningIcon",a[y.H.severeWarning]="severeWarningIcon",a[y.H.info]="infoIcon",a),A=((s={})[y.H.error]="#ff0000",s[y.H.blocked]="#ff0000",s[y.H.success]="#bad80a",s[y.H.warning]="#fff100",s[y.H.severeWarning]="#ff0000",s[y.H.info]="WindowText",s),R=((l={})[y.H.error]="#e81123",l[y.H.blocked]="#e81123",l[y.H.success]="#107c10",l[y.H.warning]="#966400",l[y.H.severeWarning]="#d83b01",l[y.H.info]="WindowText",l),N=function(e){var t,n,r,o,a,s,l,c,d,p,f,h=e.theme,m=e.className,g=e.onDismiss,v=e.truncated,b=e.isMultiline,x=e.expandSingleLine,C=e.messageBarType,k=void 0===C?y.H.info:C,w=h.semanticColors,S=h.fonts,_=(0,P.L6)(0,P.iD),E=(0,P.Km)(I,h),N={fontSize:P.fF.xSmall,height:10,lineHeight:"10px",color:w.messageText,selectors:((t={})[P.up]=(0,u.__assign)((0,u.__assign)({},(0,P.Qg)()),{color:"WindowText"}),t)},B=[(0,P.gm)(h,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":N,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[E.root,S.medium,k===y.H.error&&E.error,k===y.H.blocked&&E.blocked,k===y.H.severeWarning&&E.severeWarning,k===y.H.success&&E.success,k===y.H.warning&&E.warning,b?E.multiline:E.singleline,!b&&g&&E.dismissalSingleLine,!b&&v&&E.expandingSingleLine,{background:w[T[k]],boxSizing:"border-box",color:w.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:((n={".ms-Link":{color:w.messageLink,selectors:{":hover":{color:w.messageLinkHovered}}}})[P.up]=(0,u.__assign)((0,u.__assign)({},(0,P.Qg)()),{background:"transparent",border:"1px solid ".concat(A[k]),color:"WindowText"}),n[P.hT]={border:"1px solid ".concat(R[k])},n)},b&&{flexDirection:"column"},m],content:[E.content,((r={display:"flex",width:"100%",lineHeight:"normal"})[_]={display:"grid",gridTemplateColumns:"auto 1fr auto",gridTemplateRows:"1fr auto",gridTemplateAreas:'\n            "icon text close"\n            "action action action"\n          '},r)],iconContainer:[E.iconContainer,((o={fontSize:P.fF.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"})[_]={gridArea:"icon"},o)],icon:{color:w[D[k]],selectors:((a={})[P.up]=(0,u.__assign)((0,u.__assign)({},(0,P.Qg)()),{color:"WindowText"}),a)},text:[E.text,(0,u.__assign)((0,u.__assign)({minWidth:0,display:"flex",flexGrow:1,margin:8},S.small),((s={})[_]={gridArea:"text"},(l={})[P.up]=(0,u.__assign)({},(0,P.Qg)()),s.selectors=l,s)),!g&&{marginRight:12}],innerText:[E.innerText,{lineHeight:16,selectors:{"& span a:last-child":{paddingLeft:4}}},v&&{overflow:"visible",whiteSpace:"pre-wrap"},!b&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!b&&!v&&{selectors:((c={})[_]={overflow:"visible",whiteSpace:"pre-wrap"},c)},x&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:[E.dismissSingleLine,((d={})[_]={gridArea:"close"},d)],expandSingleLine:E.expandSingleLine,dismissal:[E.dismissal,B],expand:[E.expand,B],actions:[b?E.actions:E.actionsSingleline,((p={display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",flexDirection:"row-reverse",alignItems:"center",margin:"0 12px 0 8px",forcedColorAdjust:"auto",MsHighContrastAdjust:"auto"})[_]={gridArea:"action",marginRight:8,marginBottom:8},p.selectors={"& button:nth-child(n+2)":((f={marginLeft:8})[_]={marginBottom:0},f)},p),b&&{marginBottom:8},g&&!b&&{marginRight:0}]}},B=(0,c.I)(E,N,void 0,{scope:"MessageBar"})},13713(e,t,n){"use strict";var r;n.d(t,{H:()=>r}),function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"}(r||(r={}))},22450(e,t,n){"use strict";n.d(t,{a:()=>q});var r=n(93030),o=n(55478),a=n(40887),s=n(57273),l=n(76325),c=n(91518),u=n(17940),d=n(20006),p=n(19949),f=n(34534),h=n(38667),m=n(82540),g=m.cs.durationValue2,v={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},y=function(e){var t,n=e.className,r=e.containerClassName,o=e.scrollableContentClassName,a=e.isOpen,s=e.isVisible,l=e.hasBeenOpened,c=e.modalRectangleTop,u=e.theme,d=e.topOffsetFixed,p=e.isModeless,f=e.layerClassName,h=e.isDefaultDragHandle,y=e.windowInnerHeight,b=u.palette,x=u.effects,C=u.fonts,k=(0,m.Km)(v,u);return{root:[k.root,C.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity ".concat(g)},d&&"number"==typeof c&&l&&{alignItems:"flex-start"},a&&k.isOpen,s&&{opacity:1},s&&!p&&{pointerEvents:"auto"},n],main:[k.main,{boxShadow:x.elevation64,borderRadius:x.roundedCorner2,backgroundColor:b.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:p?m.nA.Layer:void 0},p&&{pointerEvents:"auto"},d&&"number"==typeof c&&l&&{top:c},h&&{cursor:"move"},r],scrollableContent:[k.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:((t={})["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:y},t)},o],layer:p&&[f,k.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:C.xLargePlus.fontSize,width:"24px"}}},b=n(48563),x=n(92225),C=n(41072),k=n(52540),w=n(93147),S=n(75171),_=n(80866),E=(0,n(4825).J9)(function(e,t){return{root:(0,m.Zq)(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),P=n(53325),I={start:"touchstart",move:"touchmove",stop:"touchend"},T={start:"mousedown",move:"mousemove",stop:"mouseup"},D=function(e){function t(t){var n=e.call(this,t)||this;return n._currentEventType=T,n._events=[],n._onMouseDown=function(e){var t=a.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=T,n._onDragStart(e)},n._onMouseUp=function(e){var t=a.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=T,n._onDragStop(e)},n._onTouchStart=function(e){var t=a.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=I,n._onDragStart(e)},n._onTouchEnd=function(e){var t=a.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=I,n._onDragStop(e)},n._onDragStart=function(e){if("number"==typeof e.button&&0!==e.button)return!1;if(!(n.props.handleSelector&&!n._matchesSelector(e.target,n.props.handleSelector)||n.props.preventDragSelector&&n._matchesSelector(e.target,n.props.preventDragSelector))){n._touchId=n._getTouchId(e);var t=n._getControlPosition(e);if(void 0!==t){var r=n._createDragDataFromPosition(t);n.props.onStart&&n.props.onStart(e,r),n.setState({isDragging:!0,lastPosition:t}),n._events=[(0,P.on)(document.body,n._currentEventType.move,n._onDrag,!0),(0,P.on)(document.body,n._currentEventType.stop,n._onDragStop,!0)]}}},n._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=n._getControlPosition(e);if(t){var r=n._createUpdatedDragData(n._createDragDataFromPosition(t)),o=r.position;n.props.onDragChange&&n.props.onDragChange(e,r),n.setState({position:o,lastPosition:t})}},n._onDragStop=function(e){if(n.state.isDragging){var t=n._getControlPosition(e);if(t){var r=n._createDragDataFromPosition(t);n.setState({isDragging:!1,lastPosition:void 0}),n.props.onStop&&n.props.onStop(e,r),n.props.position&&n.setState({position:n.props.position}),n._events.forEach(function(e){return e()})}}},n.state={isDragging:!1,position:n.props.position||{x:0,y:0},lastPosition:void 0},n}return(0,o.__extends)(t,e),t.prototype.componentDidUpdate=function(e){this.props.position&&(!e.position||this.props.position!==e.position)&&this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach(function(e){return e()})},t.prototype.render=function(){var e=a.Children.only(this.props.children),t=e.props,n=this.props.position,r=this.state,s=r.position,l=r.isDragging,c=s.x,u=s.y;return n&&!l&&(c=n.x,u=n.y),a.cloneElement(e,{style:(0,o.__assign)((0,o.__assign)({},t.style),{transform:"translate(".concat(c,"px, ").concat(u,"px)")}),className:E(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var n=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!n&&(n.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId){for(var t=0;t<e.length;t++)if(e[t].identifier===this._touchId)return e[t]}},t.prototype._createDragDataFromPosition=function(e){var t=this.state.lastPosition;return void 0===t?{delta:{x:0,y:0},lastPosition:e,position:e}:{delta:{x:e.x-t.x,y:e.y-t.y},lastPosition:t,position:e}},t.prototype._createUpdatedDragData=function(e){var t=this.state.position;return{position:{x:t.x+e.delta.x,y:t.y+e.delta.y},delta:e.delta,lastPosition:t}},t}(a.Component),A=n(16104),R=n(49122),N=n(1369),B=n(48891),M=n(32642),F=n(74721),O=n(72962),L={x:0,y:0},H={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},z=(0,s.Z)(),V=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t},U=function(e,t){a.useImperativeHandle(e.componentRef,function(){return{focus:function(){t.current&&t.current.focus()}}},[t])},j=a.forwardRef(function(e,t){var n,r,s,m,v,y=(0,l.N)(H,e),E=y.allowTouchBodyScroll,P=y.className,I=y.children,T=y.containerClassName,j=y.scrollableContentClassName,W=y.elementToFocusOnDismiss,q=y.firstFocusableSelector,G=y.focusTrapZoneProps,K=y.forceFocusInsideTrap,X=y.disableRestoreFocus,Y=void 0===X?y.ignoreExternalFocusing:X,Q=y.isBlocking,J=y.isAlert,Z=y.isClickableOutsideFocusTrap,ee=y.isDarkOverlay,et=y.onDismiss,en=y.layerProps,er=y.overlay,eo=y.isOpen,ei=y.titleAriaId,ea=y.styles,es=y.subtitleAriaId,el=y.theme,ec=y.topOffsetFixed,eu=y.responsiveMode,ed=y.onLayerDidMount,ep=y.isModeless,ef=y.dragOptions,eh=y.onDismissed,em=y.enableAriaHiddenSiblings,eg=y.popupProps,ev=a.useRef(null),ey=a.useRef(null),eb=(0,R.a)(ey,null==G?void 0:G.componentRef),ex=a.useRef(null),eC=(0,R.a)(ev,t),ek=(0,k.z)(eC),ew=(0,N.B)("ModalFocusTrapZone",null==G?void 0:G.id),eS=(0,A.ox)(),e_=(0,B.j)(),eE=e_.setTimeout,eP=e_.clearTimeout,eI=a.useState(eo),eT=eI[0],eD=eI[1],eA=a.useState(eo),eR=eA[0],eN=eA[1],eB=a.useState(L),eM=eB[0],eF=eB[1],eO=a.useState(),eL=eO[0],eH=eO[1],ez=(0,M.C)(!1),eV=ez[0],eU=ez[1],ej=eU.toggle,eW=eU.setFalse,eq=(0,F.d)(function(){return{onModalCloseTimer:0,allowTouchBodyScroll:E,scrollableContent:null,lastSetCoordinates:L,events:new c.g({})}}),eG=(ef||{}).keepInBounds,eK=null!=J?J:Q&&!ep,eX=void 0===en?"":en.className,eY=z(ea,{theme:el,className:P,containerClassName:T,scrollableContentClassName:j,isOpen:eo,isVisible:eR,hasBeenOpened:eq.hasBeenOpened,modalRectangleTop:eL,topOffsetFixed:ec,isModeless:ep,layerClassName:eX,windowInnerHeight:null==eS?void 0:eS.innerHeight,isDefaultDragHandle:ef&&!ef.dragHandleSelector}),e$=(0,o.__assign)((0,o.__assign)({eventBubblingEnabled:!1},en),{onLayerDidMount:en&&en.onLayerDidMount?en.onLayerDidMount:ed,insertFirst:(null==en?void 0:en.insertFirst)||ep,className:eY.layer}),eQ=a.useCallback(function(e){e?eq.allowTouchBodyScroll?(0,u.K0)(e,eq.events):(0,u.c8)(e,eq.events):eq.events.off(eq.scrollableContent),eq.scrollableContent=e},[eq]),eJ=function(){var e=ex.current,t=null==e?void 0:e.getBoundingClientRect();t&&(ec&&eH(t.top),eG&&(eq.minPosition={x:-t.left,y:-t.top},eq.maxPosition={x:t.left,y:t.top}))},eZ=a.useCallback(function(e,t){var n=eq.minPosition,r=eq.maxPosition;return eG&&n&&r&&(t=Math.max(n[e],t),t=Math.min(r[e],t)),t},[eG,eq]),e0=function(){var e;eq.lastSetCoordinates=L,eW(),eq.isInKeyboardMoveMode=!1,eD(!1),eF(L),null==(e=eq.disposeOnKeyUp)||e.call(eq),null==eh||eh()},e1=a.useCallback(function(){eW(),eq.isInKeyboardMoveMode=!1},[eq,eW]),e2=a.useCallback(function(e,t){eF(function(e){return{x:eZ("x",e.x+t.delta.x),y:eZ("y",e.y+t.delta.y)}})},[eZ]),e5=a.useCallback(function(){ey.current&&ey.current.focus()},[]),e4=function(){var e=function(e){if(e.altKey&&e.ctrlKey&&e.keyCode===d.c.space){e.preventDefault(),e.stopPropagation();return}var t=e.altKey||e.keyCode===d.c.escape;if(eV&&t&&eW(),eq.isInKeyboardMoveMode&&(e.keyCode===d.c.escape||e.keyCode===d.c.enter)&&(eq.isInKeyboardMoveMode=!1,e.preventDefault(),e.stopPropagation()),eq.isInKeyboardMoveMode){var n=!0,r=V(e);switch(e.keyCode){case d.c.escape:eF(eq.lastSetCoordinates);case d.c.enter:eq.lastSetCoordinates=L;break;case d.c.up:eF(function(e){return{x:e.x,y:eZ("y",e.y-r)}});break;case d.c.down:eF(function(e){return{x:e.x,y:eZ("y",e.y+r)}});break;case d.c.left:eF(function(e){return{x:eZ("x",e.x-r),y:e.y}});break;case d.c.right:eF(function(e){return{x:eZ("x",e.x+r),y:e.y}});break;default:n=!1}n&&(e.preventDefault(),e.stopPropagation())}};eq.lastSetCoordinates=eM,eW(),eq.isInKeyboardMoveMode=!0,eq.events.on(eS,"keydown",e,!0),eq.disposeOnKeyDown=function(){eq.events.off(eS,"keydown",e,!0),eq.disposeOnKeyDown=void 0}},e3=function(e){var t,n;null==(t=null==G?void 0:G.onBlur)||t.call(G,e),eq.lastSetCoordinates=L,eq.isInKeyboardMoveMode=!1,null==(n=eq.disposeOnKeyDown)||n.call(eq)},e6=function(){var e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===d.c.space&&(0,p.s)(eq.scrollableContent,e.target)&&(ej(),e.preventDefault(),e.stopPropagation())};eq.disposeOnKeyUp||(eq.events.on(eS,"keyup",e,!0),eq.disposeOnKeyUp=function(){eq.events.off(eS,"keyup",e,!0),eq.disposeOnKeyUp=void 0})};a.useEffect(function(){eP(eq.onModalCloseTimer),eo&&(requestAnimationFrame(function(){return eE(eJ,0)}),eD(!0),ef&&e6(),eq.hasBeenOpened=!0,eN(!0)),!eo&&eT&&(eq.onModalCloseTimer=eE(e0,1e3*parseFloat(g)),eN(!1))},[eT,eo]),(0,O.i)(function(){eq.events.dispose()}),U(y,ey);var e8=a.createElement(h.Y,(0,o.__assign)({},G,{id:ew,ref:ex,componentRef:eb,className:(0,f.A)(eY.main,null==G?void 0:G.className),elementToFocusOnDismiss:null!=(n=null==G?void 0:G.elementToFocusOnDismiss)?n:W,isClickableOutsideFocusTrap:null!=(r=null==G?void 0:G.isClickableOutsideFocusTrap)?r:ep||Z||!Q,disableRestoreFocus:null!=(s=null==G?void 0:G.disableRestoreFocus)?s:Y,forceFocusInsideTrap:(null!=(m=null==G?void 0:G.forceFocusInsideTrap)?m:K)&&!ep,firstFocusableSelector:(null==G?void 0:G.firstFocusableSelector)||q,focusPreviouslyFocusedInnerElement:null==(v=null==G?void 0:G.focusPreviouslyFocusedInnerElement)||v,onBlur:eq.isInKeyboardMoveMode?e3:void 0}),ef&&eq.isInKeyboardMoveMode&&a.createElement("div",{className:eY.keyboardMoveIconContainer},ef.keyboardMoveIconProps?a.createElement(_.I,(0,o.__assign)({},ef.keyboardMoveIconProps)):a.createElement(_.I,{iconName:"move",className:eY.keyboardMoveIcon})),a.createElement("div",{ref:eQ,className:eY.scrollableContent,"data-is-scrollable":!0},ef&&eV&&a.createElement(ef.menu,{items:[{key:"move",text:ef.moveMenuItemText,onClick:e4},{key:"close",text:ef.closeMenuItemText,onClick:e0}],onDismiss:eW,alignTargetEdge:!0,coverTarget:!0,directionalHint:S.A.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:eq.scrollableContent}),I));return eT&&ek>=(eu||w.AR.small)&&a.createElement(x.W,(0,o.__assign)({ref:eC},e$),a.createElement(C.z,(0,o.__assign)({role:eK?"alertdialog":"dialog",ariaLabelledBy:ei,ariaDescribedBy:es,onDismiss:et,shouldRestoreFocus:!Y,enableAriaHiddenSiblings:em,"aria-modal":!ep},eg),a.createElement("div",{className:eY.root,role:ep?void 0:"document"},!ep&&a.createElement(b.h,(0,o.__assign)({"aria-hidden":!0,isDarkThemed:ee,onClick:Q?void 0:et,allowTouchBodyScroll:E},er)),ef?a.createElement(D,{handleSelector:ef.dragHandleSelector||"#".concat(ew),preventDragSelector:"button",onStart:e1,onDragChange:e2,onStop:e5,position:eM},e8):e8)))||null});function W(e){}j.displayName="Modal";var q=(0,r.I)(j,y,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});q.displayName="Modal"},48563(e,t,n){"use strict";n.d(t,{h:()=>g});var r=n(93030),o=n(55478),a=n(40887),s=n(57273),l=n(10059),c=n(17940),u=n(68032),d=(0,s.Z)(),p=function(e){function t(t){var n=e.call(this,t)||this;(0,l.f)(n);var r=n.props.allowTouchBodyScroll;return n._allowTouchBodyScroll=void 0!==r&&r,n}return(0,o.__extends)(t,e),t.prototype.componentDidMount=function(){this._allowTouchBodyScroll||(0,c.mh)()},t.prototype.componentWillUnmount=function(){this._allowTouchBodyScroll||(0,c.fY)()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,n=e.className,r=e.theme,s=e.styles,l=(0,u.G1)(this.props,u.JM),c=d(s,{theme:r,className:n,isDark:t});return a.createElement("div",(0,o.__assign)({},l,{className:c.root}))},t}(a.Component),f=n(82540),h={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},m=function(e){var t,n=e.className,r=e.theme,o=e.isNone,a=e.isDark,s=r.palette,l=(0,f.Km)(h,r);return{root:[l.root,r.fonts.medium,{backgroundColor:s.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:((t={})[f.up]={border:"1px solid WindowText",opacity:0},t)},o&&{visibility:"hidden"},a&&[l.rootDark,{backgroundColor:s.blackTranslucent40}],n]}},g=(0,r.I)(p,m,void 0,{scope:"Overlay"})},79281(e,t,n){"use strict";n.d(t,{Z:()=>er});var r,o,a,s,l,c,u=n(93030),d=n(55478),p=n(40887),f=n(78412),h=n(92225),m=n(48563),g=n(41072),v=n(57273),y=n(17940),b=n(34534),x=n(10059),C=n(49787),k=n(78780),w=n(40261),S=n(91518),_=n(35523),E=n(68032),P=n(19949),I=n(38667),T=n(26831),D=(0,v.Z)(),A="Panel";!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(r||(r={}));var R=function(e){function t(t){var n=e.call(this,t)||this;n._panel=p.createRef(),n._animationCallback=null,n._hasCustomNavigation=!!(n.props.onRenderNavigation||n.props.onRenderNavigationContent),n.dismiss=function(e){n.props.onDismiss&&n.isActive&&n.props.onDismiss(e),e&&(!e||e.defaultPrevented)||n.close()},n._allowScrollOnPanel=function(e){e?n._allowTouchBodyScroll?(0,y.K0)(e,n._events):(0,y.c8)(e,n._events):n._events.off(n._scrollableContent),n._scrollableContent=e},n._onRenderNavigation=function(e){if(!n.props.onRenderNavigationContent&&!n.props.onRenderNavigation&&!n.props.hasCloseButton)return null;var t=n.props.onRenderNavigationContent,r=void 0===t?n._onRenderNavigationContent:t;return p.createElement("div",{className:n._classNames.navigation},r(e,n._onRenderNavigationContent))},n._onRenderNavigationContent=function(e){var t,r=e.closeButtonAriaLabel,o=e.hasCloseButton,a=e.onRenderHeader,s=void 0===a?n._onRenderHeader:a;if(o){var l=null==(t=n._classNames.subComponentStyles)?void 0:t.closeButton();return p.createElement(p.Fragment,null,!n._hasCustomNavigation&&s(n.props,n._onRenderHeader,n._headerTextId),p.createElement(f.K,{styles:l,className:n._classNames.closeButton,onClick:n._onPanelClick,ariaLabel:r,title:r,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},n._onRenderHeader=function(e,t,r){var o=e.headerText,a=e.headerTextProps,s=void 0===a?{}:a;return o?p.createElement("div",{className:n._classNames.header},p.createElement("div",(0,d.__assign)({id:r,role:"heading","aria-level":1},s,{className:(0,b.A)(n._classNames.headerText,s.className)}),o)):null},n._onRenderBody=function(e){return p.createElement("div",{className:n._classNames.content},e.children)},n._onRenderFooter=function(e){var t=n.props.onRenderFooterContent,r=void 0===t?null:t;return r?p.createElement("div",{className:n._classNames.footer},p.createElement("div",{className:n._classNames.footerInner},r())):null},n._animateTo=function(e){e===r.open&&n.props.onOpen&&n.props.onOpen(),n._animationCallback=n._async.setTimeout(function(){n.setState({visibility:e}),n._onTransitionComplete(e)},200)},n._clearExistingAnimationTimer=function(){null!==n._animationCallback&&n._async.clearTimeout(n._animationCallback)},n._onPanelClick=function(e){n.dismiss(e)},n._onTransitionComplete=function(e){n._updateFooterPosition(),e===r.open&&n.props.onOpened&&n.props.onOpened(),e===r.closed&&n.props.onDismissed&&n.props.onDismissed()};var o=n.props.allowTouchBodyScroll;return n._allowTouchBodyScroll=void 0!==o&&o,(0,x.f)(n),(0,C.A)(A,t,{ignoreExternalFocusing:"focusTrapZoneProps",forceFocusInsideTrap:"focusTrapZoneProps",firstFocusableSelector:"focusTrapZoneProps"}),n.state={isFooterSticky:!1,visibility:r.closed,id:(0,k.O)("Panel")},n}return(0,d.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:e.isOpen&&(t.visibility===r.closed||t.visibility===r.animatingClosed)?{visibility:r.animatingOpen}:e.isOpen||t.visibility!==r.open&&t.visibility!==r.animatingOpen?null:{visibility:r.animatingClosed}},t.prototype.componentDidMount=function(){this._async=new w.j(this),this._events=new S.g(this),this._events.on(window,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:r.animatingOpen})},t.prototype.componentDidUpdate=function(e,t){var n=this._shouldListenForOuterClick(this.props),o=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===r.animatingOpen?this._animateTo(r.open):this.state.visibility===r.animatingClosed&&this._animateTo(r.closed)),n&&!o?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!n&&o&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e,t=this.props,n=t.className,o=void 0===n?"":n,a=t.elementToFocusOnDismiss,s=t.firstFocusableSelector,l=t.focusTrapZoneProps,c=t.forceFocusInsideTrap,u=t.hasCloseButton,f=t.headerText,v=t.headerClassName,y=void 0===v?"":v,b=t.ignoreExternalFocusing,x=t.isBlocking,C=t.isFooterAtBottom,k=t.isLightDismiss,w=t.isHiddenOnDismiss,S=t.layerProps,P=t.overlayProps,A=t.popupProps,R=t.type,N=t.styles,B=t.theme,M=t.customWidth,F=t.onLightDismissClick,O=void 0===F?this._onPanelClick:F,L=t.onRenderNavigation,H=void 0===L?this._onRenderNavigation:L,z=t.onRenderHeader,V=void 0===z?this._onRenderHeader:z,U=t.onRenderBody,j=void 0===U?this._onRenderBody:U,W=t.onRenderFooter,q=void 0===W?this._onRenderFooter:W,G=this.state,K=G.isFooterSticky,X=G.visibility,Y=G.id,Q=R===T.H.smallFixedNear||R===T.H.customNear,J=(0,_.jI)(B)?Q:!Q,Z=R===T.H.custom||R===T.H.customNear?{width:M}:{},ee=(0,E.G1)(this.props,E.JM),et=this.isActive,en=X===r.animatingClosed||X===r.animatingOpen;if(this._headerTextId=f&&Y+"-headerText",!et&&!en&&!w)return null;this._classNames=D(N,{theme:B,className:o,focusTrapZoneClassName:l?l.className:void 0,hasCloseButton:u,headerClassName:y,isAnimating:en,isFooterSticky:K,isFooterAtBottom:C,isOnRightSide:J,isOpen:et,isHiddenOnDismiss:w,type:R,hasCustomNavigation:this._hasCustomNavigation});var er=this,eo=er._classNames,ei=er._allowTouchBodyScroll;return x&&et&&(e=p.createElement(m.h,(0,d.__assign)({className:eo.overlay,isDarkThemed:!1,onClick:k?O:void 0,allowTouchBodyScroll:ei},P))),p.createElement(h.W,(0,d.__assign)({},S),p.createElement(g.z,(0,d.__assign)({role:"dialog","aria-modal":x?"true":void 0,ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:eo.hiddenPanel,enableAriaHiddenSiblings:!!et},A),p.createElement("div",(0,d.__assign)({"aria-hidden":!et&&en},ee,{ref:this._panel,className:eo.root}),e,p.createElement(I.Y,(0,d.__assign)({ignoreExternalFocusing:b,forceFocusInsideTrap:!!x&&(!w||!!et)&&c,firstFocusableSelector:s,isClickableOutsideFocusTrap:!0},l,{className:eo.main,style:Z,elementToFocusOnDismiss:a}),p.createElement("div",{className:eo.contentInner},p.createElement("div",{ref:this._allowScrollOnPanel,className:eo.scrollableContent,"data-is-scrollable":!0},p.createElement("div",{className:eo.commands,"data-is-visible":!0},H(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!u)&&V(this.props,this._onRenderHeader,this._headerTextId),j(this.props,this._onRenderBody),q(this.props,this._onRenderFooter)))))))},t.prototype.open=function(){void 0!==this.props.isOpen||this.isActive||this.setState({visibility:r.animatingOpen})},t.prototype.close=function(){void 0!==this.props.isOpen||this.isActive&&this.setState({visibility:r.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===r.open||this.state.visibility===r.animatingOpen},enumerable:!1,configurable:!0}),t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,n=e.scrollHeight;this.setState({isFooterSticky:t<n})}},t.prototype._dismissOnOuterClick=function(e){var t=this._panel.current;this.isActive&&t&&!e.defaultPrevented&&!(0,P.s)(t,e.target)&&(this.props.onOuterClick?this.props.onOuterClick(e):this.dismiss(e))},t.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:T.H.smallFixedFar},t}(p.Component),N=n(82540),B={root:"ms-Panel",main:"ms-Panel-main",commands:"ms-Panel-commands",contentInner:"ms-Panel-contentInner",scrollableContent:"ms-Panel-scrollableContent",navigation:"ms-Panel-navigation",closeButton:"ms-Panel-closeButton ms-PanelAction-close",header:"ms-Panel-header",headerText:"ms-Panel-headerText",content:"ms-Panel-content",footer:"ms-Panel-footer",footerInner:"ms-Panel-footerInner",isOpen:"is-open",hasCloseButton:"ms-Panel--hasCloseButton",smallFluid:"ms-Panel--smFluid",smallFixedNear:"ms-Panel--smLeft",smallFixedFar:"ms-Panel--sm",medium:"ms-Panel--md",large:"ms-Panel--lg",largeFixed:"ms-Panel--fixed",extraLarge:"ms-Panel--xl",custom:"ms-Panel--custom",customNear:"ms-Panel--customLeft"},M="100%",F="auto",O=272,L=340,H=592,z=644,V=940,U="auto",j=0,W=48,q=428,G=176,K=((o={})["@media (min-width: ".concat(N.O7,"px)")]={width:L},o),X=((a={})["@media (min-width: ".concat(N.mu,"px)")]={width:H},a["@media (min-width: ".concat(N.af,"px)")]={width:z},a),Y=((s={})["@media (min-width: ".concat(N.c3,"px)")]={left:W,width:F},s["@media (min-width: ".concat(N.Ke,"px)")]={left:q},s),Q=((l={})["@media (min-width: ".concat(N.Ke,"px)")]={left:U,width:V},l),J=((c={})["@media (min-width: ".concat(N.Ke,"px)")]={left:G},c),Z=function(e){var t;switch(e){case T.H.smallFixedFar:t=(0,d.__assign)({},K);break;case T.H.medium:t=(0,d.__assign)((0,d.__assign)({},K),X);break;case T.H.large:t=(0,d.__assign)((0,d.__assign)((0,d.__assign)({},K),X),Y);break;case T.H.largeFixed:t=(0,d.__assign)((0,d.__assign)((0,d.__assign)((0,d.__assign)({},K),X),Y),Q);break;case T.H.extraLarge:t=(0,d.__assign)((0,d.__assign)((0,d.__assign)((0,d.__assign)({},K),X),Y),J)}return t},ee="44px",et={paddingLeft:"24px",paddingRight:"24px"},en=function(e){var t,n,r,o,a=e.className,s=e.focusTrapZoneClassName,l=e.hasCloseButton,c=e.headerClassName,u=e.isAnimating,p=e.isFooterSticky,f=e.isFooterAtBottom,h=e.isOnRightSide,m=e.isOpen,g=e.isHiddenOnDismiss,v=e.hasCustomNavigation,y=e.theme,b=e.type,x=void 0===b?T.H.smallFixedFar:b,C=y.effects,k=y.fonts,w=y.semanticColors,S=(0,N.Km)(B,y),_=x===T.H.custom||x===T.H.customNear;return{root:[S.root,y.fonts.medium,m&&S.isOpen,l&&S.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},_&&h&&S.custom,_&&!h&&S.customNear,a],overlay:[{pointerEvents:"auto",cursor:"pointer"},m&&u&&N.lw.fadeIn100,!m&&u&&N.lw.fadeOut100],hiddenPanel:[!m&&!u&&g&&{visibility:"hidden"}],main:[S.main,{backgroundColor:w.bodyBackground,boxShadow:C.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:U,right:j,width:M,selectors:(0,d.__assign)(((t={})[N.up]={borderLeft:"3px solid ".concat(w.variantBorder),borderRight:"3px solid ".concat(w.variantBorder)},t),Z(x))},x===T.H.smallFluid&&{left:j},x===T.H.smallFixedNear&&{left:j,right:U,width:O},x===T.H.customNear&&{right:"auto",left:0},_&&{maxWidth:"100vw"},m&&u&&!h&&N.lw.slideRightIn40,m&&u&&h&&N.lw.slideLeftIn40,!m&&u&&!h&&N.lw.slideLeftOut40,!m&&u&&h&&N.lw.slideRightOut40,s],commands:[S.commands,{backgroundColor:w.bodyBackground,paddingTop:18,selectors:((n={})["@media (min-height: ".concat(N.O7,"px)")]={position:"sticky",top:0,zIndex:1},n)},v&&{paddingTop:"inherit"}],navigation:[S.navigation,{display:"flex",justifyContent:"flex-end"},v&&{height:ee}],contentInner:[S.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[S.header,et,{alignSelf:"flex-start"},l&&!v&&{flexGrow:1},v&&{flexShrink:0}],headerText:[S.headerText,k.xLarge,{color:w.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},c],scrollableContent:[S.scrollableContent,{overflowY:"auto"},f&&{flexGrow:1,display:"inherit",flexDirection:"inherit"}],content:[S.content,et,{paddingBottom:20},f&&{selectors:((r={})["@media (min-height: ".concat(N.O7,"px)")]={flexGrow:1},r)}],footer:[S.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity ".concat(N.cs.durationValue3," ").concat(N.cs.easeFunction2),selectors:((o={})["@media (min-height: ".concat(N.O7,"px)")]={position:"sticky",bottom:0},o)},p&&{backgroundColor:w.bodyBackground,borderTopColor:w.variantBorder}],footerInner:[S.footerInner,et,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[S.closeButton,{marginRight:14,color:y.palette.neutralSecondary,fontSize:N.fF.large},v&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:y.palette.neutralPrimary}}}}},er=(0,u.I)(R,en,void 0,{scope:"Panel"})},26831(e,t,n){"use strict";var r;n.d(t,{H:()=>r}),function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(r||(r={}))},69531(e,t,n){"use strict";var r,o,a;n.d(t,{As:()=>o,WH:()=>r,f5:()=>a}),function(e){e[e.tiny=0]="tiny",e[e.extraExtraSmall=1]="extraExtraSmall",e[e.extraSmall=2]="extraSmall",e[e.small=3]="small",e[e.regular=4]="regular",e[e.large=5]="large",e[e.extraLarge=6]="extraLarge",e[e.size8=17]="size8",e[e.size10=9]="size10",e[e.size16=8]="size16",e[e.size24=10]="size24",e[e.size28=7]="size28",e[e.size32=11]="size32",e[e.size40=12]="size40",e[e.size48=13]="size48",e[e.size56=16]="size56",e[e.size72=14]="size72",e[e.size100=15]="size100",e[e.size120=18]="size120"}(r||(r={})),function(e){e[e.none=0]="none",e[e.offline=1]="offline",e[e.online=2]="online",e[e.away=3]="away",e[e.dnd=4]="dnd",e[e.blocked=5]="blocked",e[e.busy=6]="busy"}(o||(o={})),function(e){e[e.lightBlue=0]="lightBlue",e[e.blue=1]="blue",e[e.darkBlue=2]="darkBlue",e[e.teal=3]="teal",e[e.lightGreen=4]="lightGreen",e[e.green=5]="green",e[e.darkGreen=6]="darkGreen",e[e.lightPink=7]="lightPink",e[e.pink=8]="pink",e[e.magenta=9]="magenta",e[e.purple=10]="purple",e[e.black=11]="black",e[e.orange=12]="orange",e[e.red=13]="red",e[e.darkRed=14]="darkRed",e[e.transparent=15]="transparent",e[e.violet=16]="violet",e[e.lightRed=17]="lightRed",e[e.gold=18]="gold",e[e.burgundy=19]="burgundy",e[e.warmGray=20]="warmGray",e[e.coolGray=21]="coolGray",e[e.gray=22]="gray",e[e.cyan=23]="cyan",e[e.rust=24]="rust"}(a||(a={}))},46530(e,t,n){"use strict";n.d(t,{X:()=>c});var r=n(69531),o=[r.f5.lightBlue,r.f5.blue,r.f5.darkBlue,r.f5.teal,r.f5.green,r.f5.darkGreen,r.f5.lightPink,r.f5.pink,r.f5.magenta,r.f5.purple,r.f5.orange,r.f5.lightRed,r.f5.darkRed,r.f5.violet,r.f5.gold,r.f5.burgundy,r.f5.warmGray,r.f5.cyan,r.f5.rust,r.f5.coolGray],a=o.length;function s(e){var t=r.f5.blue;if(!e)return t;for(var n=0,s=e.length-1;s>=0;s--){var l=e.charCodeAt(s),c=s%8;n^=(l<<c)+(l>>8-c)}return o[n%a]}function l(e){switch(e){case r.f5.lightBlue:return"#4F6BED";case r.f5.blue:return"#0078D4";case r.f5.darkBlue:return"#004E8C";case r.f5.teal:return"#038387";case r.f5.lightGreen:case r.f5.green:return"#498205";case r.f5.darkGreen:return"#0B6A0B";case r.f5.lightPink:return"#C239B3";case r.f5.pink:return"#E3008C";case r.f5.magenta:return"#881798";case r.f5.purple:return"#5C2E91";case r.f5.orange:return"#CA5010";case r.f5.red:return"#EE1111";case r.f5.lightRed:return"#D13438";case r.f5.darkRed:return"#A4262C";case r.f5.transparent:return"transparent";case r.f5.violet:return"#8764B8";case r.f5.gold:return"#986F0B";case r.f5.burgundy:return"#750B1C";case r.f5.warmGray:return"#7A7574";case r.f5.cyan:return"#005B70";case r.f5.rust:return"#8E562E";case r.f5.coolGray:return"#69797E";case r.f5.black:return"#1D1D1D";case r.f5.gray:return"#393939"}}function c(e){var t,n=e.primaryText,r=e.text,o=e.initialsColor;return"string"==typeof o?o:l(o=void 0!==o?o:s(r||n))}},76926(e,t,n){"use strict";n.d(t,{f:()=>O});var r=n(93030),o=n(55478),a=n(40887),s=n(1369),l=n(15994),c=n(57273),u=n(55560),d=n(68032),p=n(34534),f=n(20006),h=n(35523),m=n(21175);function g(e,t){void 0===t&&(t=null);var n=function(){var e=function(e){r.ref.current!==e&&(r.cleanup&&(r.cleanup(),r.cleanup=void 0),r.ref.current=e,null!==e&&(r.cleanup=r.callback(e)))};return e.current=t,e},r=a.useRef({ref:n(),callback:e}).current;return r.callback=e,r.ref}var v=n(97204),y=n(46330),b=function(e,t){if("u">typeof ResizeObserver){var n=new ResizeObserver(t);return Array.isArray(e)?e.forEach(function(e){return n.observe(e)}):n.observe(e),function(){return n.disconnect()}}var r=function(){return t(void 0)},o=(0,y.z)(Array.isArray(e)?e[0]:e);if(!o)return function(){};var a=o.requestAnimationFrame(r);return o.addEventListener("resize",r,!1),function(){o.cancelAnimationFrame(a),o.removeEventListener("resize",r,!1)}},x=function(e){var t=e.onOverflowItemsChanged,n=e.rtl,r=e.pinnedIndex,o=a.useRef(),s=a.useRef(),l=g(function(e){var t=b(e,function(t){s.current=t?t[0].contentRect.width:e.clientWidth,o.current&&o.current()});return function(){t(),s.current=void 0}}),c=g(function(e){return l(e.parentElement),function(){return l(null)}});return(0,v.E)(function(){var e=l.current,a=c.current;if(e&&a){for(var u=[],d=0;d<e.children.length;d++){var p=e.children[d];p instanceof HTMLElement&&p!==a&&u.push(p)}var f=[],h=0;o.current=function(){var e=s.current;if(void 0!==e){for(var t=u.length-1;t>=0;t--){if(void 0===f[t]){var o=n?e-u[t].offsetLeft:u[t].offsetLeft+u[t].offsetWidth;t+1<u.length&&t+1===r&&(h=f[t+1]-o),t===u.length-2&&(h+=a.offsetWidth),f[t]=o+h}if(e>f[t])return void g(t+1)}g(0)}};var m=u.length,g=function(e){m!==e&&(m=e,t(e,u.map(function(t,n){return{ele:t,isOverflowing:n>=e&&n!==r}})))},v=void 0;if(void 0!==s.current){var b=(0,y.z)(e);if(b){var x=b.requestAnimationFrame(o.current);v=function(){return b.cancelAnimationFrame(x)}}}return function(){v&&v(),g(u.length),o.current=void 0}}}),{menuButtonRef:c}},C=n(71827),k=n(33428),w=n(75171),S=n(80866),_=n(56599),E=(0,c.Z)(),P="Pivot",I=function(e,t,n,r){return e.getTabId?e.getTabId(n,r):t+"-Tab".concat(r)},T=function(e,t){var n={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return a.Children.forEach(a.Children.toArray(e.children),function(r,a){if(D(r)){var s=r.props,l=s.linkText,c=(0,o.__rest)(s,["linkText"]),d=r.props.itemKey||a.toString();n.links.push((0,o.__assign)((0,o.__assign)({headerText:l},c),{itemKey:d})),n.keyToIndexMapping[d]=a,n.keyToTabIdMapping[d]=I(e,t,d,a)}else r&&(0,u.R)("The children of a Pivot component must be of type PivotItem to be rendered.")}),n},D=function(e){var t;return a.isValidElement(e)&&(null==(t=e.type)?void 0:t.name)===_.y.name},A=a.forwardRef(function(e,t){var n,r=a.useRef(null),c=a.useRef(null),u=(0,s.B)("Pivot"),g=(0,l.k)(e.selectedKey,e.defaultSelectedKey),v=g[0],y=g[1],b=e.componentRef,_=e.theme,P=e.linkSize,I=e.linkFormat,A=e.overflowBehavior,R=e.overflowAriaLabel,N=e.focusZoneProps,B=e.overflowButtonAs,M={"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"]},F=(0,d.G1)(e,d.JM,["aria-label","aria-labelledby"]),O=T(e,u);a.useImperativeHandle(b,function(){return{focus:function(){var e;null==(e=r.current)||e.focus()}}});var L=function(e){if(!e)return null;var t=e.itemCount,r=e.itemIcon,o=e.headerText;return a.createElement("span",{className:n.linkContent},void 0!==r&&a.createElement("span",{className:n.icon},a.createElement(S.I,{iconName:r})),void 0!==o&&a.createElement("span",{className:n.text}," ",e.headerText),void 0!==t&&a.createElement("span",{className:n.count}," (",t,")"))},H=function(e,t,r,s){var l,c=t.itemKey,u=t.headerButtonProps,d=t.onRenderItemLink,f=e.keyToTabIdMapping[c],h=r===c;l=d?d(t,L):L(t);var g=t.headerText||"";g+=t.itemCount?" ("+t.itemCount+")":"",g+=t.itemIcon?" xx":"";var v=t.role&&"tab"!==t.role?{role:t.role}:{role:"tab","aria-selected":h};return a.createElement(m.c,(0,o.__assign)({},u,v,{id:f,key:c,className:(0,p.A)(s,h&&n.linkIsSelected),onClick:function(e){return z(c,e)},onKeyDown:function(e){return V(c,e)},"aria-label":t.ariaLabel,name:t.headerText,keytipProps:t.keytipProps,"data-content":g}),l)},z=function(e,t){t.preventDefault(),U(e,t)},V=function(e,t){t.which===f.c.enter&&(t.preventDefault(),U(e))},U=function(t,n){var r;if(y(t),O=T(e,u),e.onLinkClick&&O.keyToIndexMapping[t]>=0){var o=O.keyToIndexMapping[t],s=a.Children.toArray(e.children)[o];D(s)&&e.onLinkClick(s,n)}null==(r=c.current)||r.dismissMenu()},j=function(t,r){if(e.headersOnly||!t)return null;var o=O.keyToIndexMapping[t],s=O.keyToTabIdMapping[t];return a.createElement("div",{role:"tabpanel",hidden:!r,key:t,"aria-hidden":!r,"aria-labelledby":s,className:n.itemContainer},a.Children.toArray(e.children)[o])},W=function(e){return null===e||void 0!==e&&void 0!==O.keyToIndexMapping[e]},q=function(){return W(v)?v:O.links.length?O.links[0].itemKey:void 0};n=E(e.styles,{theme:_,linkSize:P,linkFormat:I});var G=q(),K=G?O.keyToIndexMapping[G]:0,X=O.links.map(function(e){return H(O,e,G,n.link)}),Y=a.useMemo(function(){return{items:[],alignTargetEdge:!0,directionalHint:w.A.bottomRightEdge}},[]),Q=x({onOverflowItemsChanged:function(e,t){t.forEach(function(e){var t=e.ele,n=e.isOverflowing;return t.dataset.isOverflowing="".concat(n)}),Y.items=O.links.slice(e).filter(function(e){return e.itemKey!==G}).map(function(t,r){return t.role="menuitem",{key:t.itemKey||"".concat(e+r),onRender:function(){return H(O,t,G,n.linkInMenu)}}})},rtl:(0,h.jI)(_),pinnedIndex:K}).menuButtonRef,J=B||m.c;return a.createElement("div",(0,o.__assign)({ref:t},F),a.createElement(C.R,(0,o.__assign)({componentRef:r,role:"tablist"},M,{direction:k.E.horizontal},N,{className:(0,p.A)(n.root,null==N?void 0:N.className)}),X,"menu"===A&&a.createElement(J,{className:(0,p.A)(n.link,n.overflowMenuButton),elementRef:Q,componentRef:c,menuProps:Y,menuIconProps:{iconName:"More",style:{color:"inherit"}},ariaLabel:R,role:"tab"})),G&&O.links.map(function(e){return(!0===e.alwaysRender||G===e.itemKey)&&j(e.itemKey,G===e.itemKey)}))});A.displayName=P;var R=n(82540),N=n(25733),B={count:"ms-Pivot-count",icon:"ms-Pivot-icon",linkIsSelected:"is-selected",link:"ms-Pivot-link",linkContent:"ms-Pivot-linkContent",root:"ms-Pivot",rootIsLarge:"ms-Pivot--large",rootIsTabs:"ms-Pivot--tabs",text:"ms-Pivot-text",linkInMenu:"ms-Pivot-linkInMenu",overflowMenuButton:"ms-Pivot-overflowMenuButton"},M=function(e,t,n){void 0===n&&(n=!1);var r,a,s,l=e.linkSize,c=e.linkFormat,u=e.theme,d=u.semanticColors,p=u.fonts,f="large"===l,h="tabs"===c;return[p.medium,{color:d.actionLink,padding:"0 8px",position:"relative",backgroundColor:"transparent",border:0,borderRadius:0,selectors:{":hover":{backgroundColor:d.buttonBackgroundHovered,color:d.buttonTextHovered,cursor:"pointer"},":active":{backgroundColor:d.buttonBackgroundPressed,color:d.buttonTextHovered},":focus":{outline:"none"}}},!n&&[{display:"inline-block",lineHeight:44,height:44,marginRight:8,textAlign:"center",selectors:((r={})[".".concat(N.Y2," &:focus")]={outline:"1px solid ".concat(d.focusBorder)},r[".".concat(N.Y2," &:focus:after")]={content:"attr(data-content)",position:"relative",border:0},r[":before"]={backgroundColor:"transparent",bottom:0,content:'""',height:2,left:8,position:"absolute",right:8,transition:"left ".concat(R.cs.durationValue2," ").concat(R.cs.easeFunction2,",\n                        right ").concat(R.cs.durationValue2," ").concat(R.cs.easeFunction2)},r[":after"]={color:"transparent",content:"attr(data-content)",display:"block",fontWeight:R.BO.bold,height:1,overflow:"hidden",visibility:"hidden"},r)},f&&{fontSize:p.large.fontSize},h&&[{marginRight:0,height:44,lineHeight:44,backgroundColor:d.buttonBackground,padding:"0 10px",verticalAlign:"top",selectors:((a={":focus":{outlineOffset:"-2px"}})[".".concat(N.Y2," &:focus::before")]={height:"auto",background:"transparent",transition:"none"},a["&:hover, &:focus"]={color:d.buttonTextCheckedHovered},a["&:active, &:hover"]={color:d.primaryButtonText,backgroundColor:d.primaryButtonBackground},a["&.".concat(t.linkIsSelected)]={backgroundColor:d.primaryButtonBackground,color:d.primaryButtonText,fontWeight:R.BO.regular,selectors:((s={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:0},":hover":{backgroundColor:d.primaryButtonBackgroundHovered,color:d.primaryButtonText},":active":{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonText}})[R.up]=(0,o.__assign)({fontWeight:R.BO.semibold,color:"HighlightText",background:"Highlight"},(0,R.Qg)()),s)},a[".".concat(N.Y2," &.").concat(t.linkIsSelected,":focus")]={outlineColor:d.primaryButtonText},a)}]]]},F=function(e){var t,n,r,a,s=e.className,l=e.linkSize,c=e.linkFormat,u=e.theme,d=u.semanticColors,p=u.fonts,f=(0,R.Km)(B,u),h="large"===l,m="tabs"===c;return{root:[f.root,p.medium,R.S8,{position:"relative",color:d.link,whiteSpace:"nowrap"},h&&f.rootIsLarge,m&&f.rootIsTabs,s],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:(0,o.__spreadArray)((0,o.__spreadArray)([f.link],M(e,f),!0),[((t={})["&[data-is-overflowing='true']"]={display:"none"},t)],!1),overflowMenuButton:[f.overflowMenuButton,((n={visibility:"hidden",position:"absolute",right:0})[".".concat(f.link,"[data-is-overflowing='true'] ~ &")]={visibility:"visible",position:"relative"},n)],linkInMenu:(0,o.__spreadArray)((0,o.__spreadArray)([f.linkInMenu],M(e,f,!0),!0),[{textAlign:"left",width:"100%",height:36,lineHeight:36}],!1),linkIsSelected:[f.link,f.linkIsSelected,{fontWeight:R.BO.semibold,selectors:((r={":before":{backgroundColor:d.inputBackgroundChecked,selectors:((a={})[R.up]={backgroundColor:"Highlight"},a)},":hover::before":{left:0,right:0}})[R.up]={color:"Highlight"},r)}],linkContent:[f.linkContent,{flex:"0 1 100%",selectors:{"& > * ":{marginLeft:4},"& > *:first-child":{marginLeft:0}}}],text:[f.text,{display:"inline-block",verticalAlign:"top"}],count:[f.count,{display:"inline-block",verticalAlign:"top"}],icon:f.icon}},O=(0,r.I)(A,F,void 0,{scope:"Pivot"})},56599(e,t,n){"use strict";n.d(t,{y:()=>u});var r=n(55478),o=n(40887),a=n(10059),s=n(49787),l=n(68032),c="PivotItem",u=function(e){function t(t){var n=e.call(this,t)||this;return(0,a.f)(n),(0,s.A)(c,t,{linkText:"headerText"}),n}return(0,r.__extends)(t,e),t.prototype.render=function(){return o.createElement("div",(0,r.__assign)({},(0,l.G1)(this.props,l.JM)),this.props.children)},t}(o.Component)},41072(e,t,n){"use strict";n.d(t,{z:()=>C});var r=n(55478),o=n(40887),a=n(46330),s=n(93367),l=n(66647),c=n(16044),u=n(76325),d=n(20006),p=n(68032),f=n(4014),h=n(7061),m=n(49122),g=n(16104);function v(e,t){var n=(0,f.Y)(),r=o.useState(!1),a=r[0],s=r[1];return o.useEffect(function(){return n.requestAnimationFrame(function(){if(!e.style||!e.style.overflowY){var n,r=!1;if(t&&t.current&&(null==(n=t.current)?void 0:n.firstElementChild)){var o=t.current.clientHeight,l=t.current.firstElementChild.clientHeight;o>0&&l>o&&(r=l-o>1)}a!==r&&s(r)}}),function(){return n.dispose()}}),a}function y(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==(0,a.z)()&&setTimeout(function(){var e;null==(e=t.focus)||e.call(t)},0)}function b(e,t){var n=e.onRestoreFocus,r=void 0===n?y:n,a=o.useRef(),c=o.useRef(!1);o.useEffect(function(){return a.current=(0,s.Y)().activeElement,(0,l.SE)(t.current)&&(c.current=!0),function(){var e;null==r||r({originalElement:a.current,containsFocus:c.current,documentContainsFocus:(null==(e=(0,s.Y)())?void 0:e.hasFocus())||!1}),a.current=void 0}},[]),(0,h.x)(t,"focus",o.useCallback(function(){c.current=!0},[]),!0),(0,h.x)(t,"blur",o.useCallback(function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(c.current=!1)},[]),!0)}function x(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;o.useEffect(function(){if(n&&t.current){var e=(0,c.q)(t.current);return e}},[t,n])}var C=o.forwardRef(function(e,t){var n=(0,u.N)({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),a=o.useRef(),s=(0,m.a)(a,t);x(n,a),b(n,a);var l=n.role,c=n.className,f=n.ariaLabel,y=n.ariaLabelledBy,C=n.ariaDescribedBy,k=n.style,w=n.children,S=n.onDismiss,_=v(n,a),E=o.useCallback(function(e){e.which===d.c.escape&&S&&(S(e),e.preventDefault(),e.stopPropagation())},[S]),P=(0,g.ox)();return(0,h.x)(P,"keydown",E),o.createElement("div",(0,r.__assign)({ref:s},(0,p.G1)(n,p.JM),{className:c,role:l,"aria-label":f,"aria-labelledby":y,"aria-describedby":C,onKeyDown:E,style:(0,r.__assign)({overflowY:_?"scroll":void 0,outline:"none"},k)}),w)});C.displayName="Popup"},90787(e,t,n){"use strict";n.d(t,{w:()=>u});var r=n(93030),o=n(82540),a=function(e){var t,n,r=e.theme,a=e.alignContent,s=e.vertical,l=e.className,c="start"===a,u="center"===a,d="end"===a;return{root:[r.fonts.medium,{position:"relative"},a&&{textAlign:a},!a&&{textAlign:"center"},s&&(u||!a)&&{verticalAlign:"middle"},s&&c&&{verticalAlign:"top"},s&&d&&{verticalAlign:"bottom"},s&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":((t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1})[o.up]={backgroundColor:"WindowText"},t)}},!s&&{padding:"4px 0",selectors:{":before":((n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"})[o.up]={backgroundColor:"WindowText"},n)}},l],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},s&&{padding:"12px 0"}]}},s=n(40887),l=(0,n(57273).Z)(),c=s.forwardRef(function(e,t){var n=e.styles,r=e.theme,o=e.className,a=e.vertical,c=e.alignContent,u=e.children,d=l(n,{theme:r,className:o,alignContent:c,vertical:a});return s.createElement("div",{className:d.root,ref:t},s.createElement("div",{className:d.content,role:"separator","aria-orientation":a?"vertical":"horizontal"},u))}),u=(0,r.I)(c,a,void 0,{scope:"Separator"});u.displayName="Separator"},75905(e,t,n){"use strict";n.d(t,{W:()=>X});var r=n(93030),o=n(55478),a=n(82540),s=n(4825),l=n(35523),c={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},u="100%",d=(0,s.J9)(function(){return(0,a.i7)({"0%":{transform:"translateX(-".concat(u,")")},"100%":{transform:"translateX(".concat(u,")")}})}),p=(0,s.J9)(function(){return(0,a.i7)({"100%":{transform:"translateX(-".concat(u,")")},"0%":{transform:"translateX(".concat(u,")")}})});function f(e){var t,n=e.isDataLoaded,r=e.className,s=e.theme,f=e.transitionAnimationInterval,h=e.shimmerColor,m=e.shimmerWaveColor,g=e.improveCSSPerformance,v=s.semanticColors,y=(0,a.Km)(c,s),b=(0,l.jI)(s);return{root:[y.root,s.fonts.medium,{position:"relative",height:"auto"},r],shimmerWrapper:[y.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:h||v.disabledBackground,transition:"opacity ".concat(f,"ms"),selectors:((t={})[a.up]=(0,o.__assign)({background:"WindowText\n                        linear-gradient(\n                          to right,\n                          transparent 0%,\n                          Window 50%,\n                          transparent 100%)\n                        0 0 / 90% 100%\n                        no-repeat"},(0,a.Qg)()),t)},n&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"},g?{selectors:{"> div:last-child":{transform:"translateZ(0)"}}}:{selectors:{"> *":{transform:"translateZ(0)"}}}],shimmerGradient:[y.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"".concat(h||v.disabledBackground,"\n                      linear-gradient(\n                        to right,\n                        ").concat(h||v.disabledBackground," 0%,\n                        ").concat(m||v.bodyDivider," 50%,\n                        ").concat(h||v.disabledBackground," 100%)\n                      0 0 / 90% 100%\n                      no-repeat"),transform:"translateX(-".concat(u,")"),animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:b?p():d()}],dataWrapper:[y.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity ".concat(f,"ms")},n&&{opacity:"1",position:"static"}],screenReaderText:a.dX}}var h=n(40887),m=n(57273),g=n(68032),v=n(99751),y=n(26603),b=(0,m.Z)(),x=function(e){var t=e.height,n=e.styles,r=e.width,o=void 0===r?"100%":r,a=e.borderStyle,s=b(n,{theme:e.theme,height:t,borderStyle:a});return h.createElement("div",{style:{width:o,minWidth:"number"==typeof o?"".concat(o,"px"):"auto"},className:s.root},h.createElement("svg",{width:"2",height:"2",className:s.topLeftCorner},h.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),h.createElement("svg",{width:"2",height:"2",className:s.topRightCorner},h.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),h.createElement("svg",{width:"2",height:"2",className:s.bottomRightCorner},h.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),h.createElement("svg",{width:"2",height:"2",className:s.bottomLeftCorner},h.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))},C={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};function k(e){var t,n=e.height,r=e.borderStyle,o=e.theme,s=o.semanticColors,l=(0,a.Km)(C,o),c=r||{},u={position:"absolute",fill:s.bodyBackground};return{root:[l.root,o.fonts.medium,{height:"".concat(n,"px"),boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:s.bodyBackground,borderWidth:0,selectors:((t={})[a.up]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},c],topLeftCorner:[l.topLeftCorner,{top:"0",left:"0"},u],topRightCorner:[l.topRightCorner,{top:"0",right:"0"},u],bottomRightCorner:[l.bottomRightCorner,{bottom:"0",right:"0"},u],bottomLeftCorner:[l.bottomLeftCorner,{bottom:"0",left:"0"},u]}}var w=(0,r.I)(x,k,void 0,{scope:"ShimmerLine"}),S=(0,m.Z)(),_=function(e){var t=e.height,n=e.styles,r=e.width,o=void 0===r?"10px":r,a=e.borderStyle,s=S(n,{theme:e.theme,height:t,borderStyle:a});return h.createElement("div",{style:{width:o,minWidth:"number"==typeof o?"".concat(o,"px"):"auto"},className:s.root})},E={root:"ms-ShimmerGap-root"};function P(e){var t,n=e.height,r=e.borderStyle,o=e.theme,s=o.semanticColors,l=(0,a.Km)(E,o),c=r||{};return{root:[l.root,o.fonts.medium,{backgroundColor:s.bodyBackground,height:"".concat(n,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:s.bodyBackground,selectors:((t={})[a.up]={backgroundColor:"Window",borderColor:"Window"},t)},c]}}var I=(0,r.I)(_,P,void 0,{scope:"ShimmerGap"}),T={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};function D(e){var t,n,r=e.height,o=e.borderStyle,s=e.theme,l=s.semanticColors,c=(0,a.Km)(T,s),u=o||{};return{root:[c.root,s.fonts.medium,{width:"".concat(r,"px"),height:"".concat(r,"px"),minWidth:"".concat(r,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:l.bodyBackground,selectors:((t={})[a.up]={borderColor:"Window"},t)},u],svg:[c.svg,{display:"block",fill:l.bodyBackground,selectors:((n={})[a.up]={fill:"Window"},n)}]}}var A=(0,m.Z)(),R=function(e){var t=e.height,n=e.styles,r=e.borderStyle,o=A(n,{theme:e.theme,height:t,borderStyle:r});return h.createElement("div",{className:o.root},h.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:o.svg},h.createElement("path",{d:"M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"})))},N=(0,r.I)(R,D,void 0,{scope:"ShimmerCircle"}),B=(0,m.Z)(),M=function(e){var t=e.styles,n=e.width,r=void 0===n?"auto":n,o=e.shimmerElements,a=e.rowHeight,s=void 0===a?L(o||[]):a,l=e.flexWrap,c=void 0!==l&&l,u=e.theme,d=e.backgroundColor,p=B(t,{theme:u,flexWrap:c});return h.createElement("div",{style:{width:r},className:p.root},F(o,d,s))};function F(e,t,n){return e?e.map(function(e,r){var a=e.type,s=(0,o.__rest)(e,["type"]),l=O(s.verticalAlign,a,s.height,t,n);switch(e.type){case y.w.circle:return h.createElement(N,(0,o.__assign)({key:r},s,{styles:l}));case y.w.gap:return h.createElement(I,(0,o.__assign)({key:r},s,{styles:l}));case y.w.line:return h.createElement(w,(0,o.__assign)({key:r},s,{styles:l}))}}):h.createElement(w,{height:y.A.line})}var O=(0,s.J9)(function(e,t,n,r,a){var s,l=a&&n?a-n:0;if(e&&"center"!==e?e&&"top"===e?s={borderBottomWidth:"".concat(l,"px"),borderTopWidth:"0px"}:e&&"bottom"===e&&(s={borderBottomWidth:"0px",borderTopWidth:"".concat(l,"px")}):s={borderBottomWidth:"".concat(l?Math.floor(l/2):0,"px"),borderTopWidth:"".concat(l?Math.ceil(l/2):0,"px")},r)switch(t){case y.w.circle:return{root:(0,o.__assign)((0,o.__assign)({},s),{borderColor:r}),svg:{fill:r}};case y.w.gap:return{root:(0,o.__assign)((0,o.__assign)({},s),{borderColor:r,backgroundColor:r})};case y.w.line:return{root:(0,o.__assign)((0,o.__assign)({},s),{borderColor:r}),topLeftCorner:{fill:r},topRightCorner:{fill:r},bottomLeftCorner:{fill:r},bottomRightCorner:{fill:r}}}return{root:s}});function L(e){return e.map(function(e){switch(e.type){case y.w.circle:e.height||(e.height=y.A.circle);break;case y.w.line:e.height||(e.height=y.A.line);break;case y.w.gap:e.height||(e.height=y.A.gap)}return e}).reduce(function(e,t){return t.height&&t.height>e?t.height:e},0)}var H={root:"ms-ShimmerElementsGroup-root"};function z(e){var t=e.flexWrap,n=e.theme;return{root:[(0,a.Km)(H,n).root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}}var V=(0,r.I)(M,z,void 0,{scope:"ShimmerElementsGroup"}),U=n(74721),j=n(48891),W=200,q="Shimmer",G=(0,m.Z)(),K=h.forwardRef(function(e,t){var n=e.styles,r=e.shimmerElements,a=e.children,s=e.width,l=e.className,c=e.customElementsGroup,u=e.theme,d=e.ariaLabel,p=e.shimmerColors,f=e.isDataLoaded,m=void 0!==f&&f,y=e.improveCSSPerformance,b=(0,g.G1)(e,g.JM),x=G(n,{theme:u,isDataLoaded:m,className:l,transitionAnimationInterval:W,shimmerColor:p&&p.shimmer,shimmerWaveColor:p&&p.shimmerWave,improveCSSPerformance:y||!c}),C=(0,U.d)({lastTimeoutId:0}),k=(0,j.j)(),w=k.setTimeout,S=k.clearTimeout,_=h.useState(m),E=_[0],P=_[1],I={width:s||"100%"};return h.useEffect(function(){if(m!==E)if(m)return C.lastTimeoutId=w(function(){P(!0)},W),function(){return S(C.lastTimeoutId)};else P(!1)},[m]),h.createElement("div",(0,o.__assign)({},b,{className:x.root,ref:t}),!E&&h.createElement("div",{style:I,className:x.shimmerWrapper},h.createElement("div",{className:x.shimmerGradient}),c||h.createElement(V,{shimmerElements:r,backgroundColor:p&&p.background})),a&&h.createElement("div",{className:x.dataWrapper},a),d&&!m&&h.createElement("div",{role:"status","aria-live":"polite"},h.createElement(v.P,null,h.createElement("div",{className:x.screenReaderText},d))))});K.displayName=q;var X=(0,r.I)(K,f,void 0,{scope:"Shimmer"})},26603(e,t,n){"use strict";var r,o;n.d(t,{A:()=>o,w:()=>r}),function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(r||(r={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(o||(o={}))},55577(e,t,n){"use strict";n.d(t,{y:()=>y});var r=n(93030),o=n(55478),a=n(40887),s=n(83371),l=n(57273),c=n(68032),u=n(99751),d=(0,l.Z)(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,r=e.ariaLabel,l=e.ariaLive,p=e.styles,f=e.label,h=e.theme,m=e.className,g=e.labelPosition,v=r,y=(0,c.G1)(this.props,c.JM,["size"]),b=n;void 0===b&&void 0!==t&&(b=t===s.Q.large?s.H.large:s.H.medium);var x=d(p,{theme:h,size:b,className:m,labelPosition:g});return a.createElement("div",(0,o.__assign)({},y,{className:x.root}),a.createElement("div",{className:x.circle}),f&&a.createElement("div",{className:x.label},f),v&&a.createElement("div",{role:"status","aria-live":l},a.createElement(u.P,null,a.createElement("div",{className:x.screenReaderText},v))))},t.defaultProps={size:s.H.medium,ariaLive:"polite",labelPosition:"bottom"},t}(a.Component),f=n(82540),h=n(4825),m={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},g=(0,h.J9)(function(){return(0,f.i7)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),v=function(e){var t,n=e.theme,r=e.size,a=e.className,l=e.labelPosition,c=n.palette,u=(0,f.Km)(m,n);return{root:[u.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===l&&{flexDirection:"column-reverse"},"right"===l&&{flexDirection:"row"},"left"===l&&{flexDirection:"row-reverse"},a],circle:[u.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+c.themeLight,borderTopColor:c.themePrimary,animationName:g(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:((t={})[f.up]=(0,o.__assign)({borderTopColor:"Highlight"},(0,f.Qg)()),t)},r===s.H.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===s.H.small&&["ms-Spinner--small",{width:16,height:16}],r===s.H.medium&&["ms-Spinner--medium",{width:20,height:20}],r===s.H.large&&["ms-Spinner--large",{width:28,height:28}]],label:[u.label,n.fonts.small,{color:c.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===l&&{margin:"0 0 8px"},"right"===l&&{margin:"0 0 0 8px"},"left"===l&&{margin:"0 8px 0 0"}],screenReaderText:f.dX}},y=(0,r.I)(p,v,void 0,{scope:"Spinner"})},83371(e,t,n){"use strict";var r,o;n.d(t,{H:()=>r,Q:()=>o}),function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(r||(r={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(o||(o={}))},5264(e,t,n){"use strict";n.d(t,{B:()=>_});var r=n(55478),o=n(40887),a=n(89123),s=n(42921),l=n(49787),c=n(68032),u=n(34534),d=n(82540),p=n(86015),f=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},h=function(e){var t=parseFloat(e),n=isNaN(t)?0:t,r=isNaN(t)?"":t.toString();return{value:n,unit:e.substring(r.toString().length)||"px"}},m=function(e,t){if(void 0===e||""===e)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if("number"==typeof e)return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var n=e.split(" ");if(n.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===n.length)return{rowGap:h(f(n[0],t)),columnGap:h(f(n[1],t))};var r=h(f(e,t));return{rowGap:r,columnGap:r}},g=function(e,t){if(void 0===e||"number"==typeof e||""===e)return e;var n=e.split(" ");return n.length<2?f(e,t):n.reduce(function(e,n){return f(e,t)+" "+f(n,t)})},v={start:"flex-start",end:"flex-end"},y={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},b=function(e,t,n){var o,a,s,l,c,u,f,h,b,x,C,k,w,S=e.className,_=e.disableShrink,E=e.enableScopedSelectors,P=e.grow,I=e.horizontal,T=e.horizontalAlign,D=e.reversed,A=e.verticalAlign,R=e.verticalFill,N=e.wrap,B=(0,d.Km)(y,t),M=n&&n.childrenGap?n.childrenGap:e.gap,F=n&&n.maxHeight?n.maxHeight:e.maxHeight,O=n&&n.maxWidth?n.maxWidth:e.maxWidth,L=n&&n.padding?n.padding:e.padding,H=m(M,t),z=H.rowGap,V=H.columnGap,U="".concat(-.5*V.value).concat(V.unit),j="".concat(-.5*z.value).concat(z.unit),W={textOverflow:"ellipsis"},q="> "+(E?"."+y.child:"*"),G=((o={})["".concat(q,":not(.").concat(p.e.root,")")]={flexShrink:0},o);return N?{root:[B.root,{flexWrap:"wrap",maxWidth:O,maxHeight:F,width:"auto",overflow:"visible",height:"100%"},T&&((a={})[I?"justifyContent":"alignItems"]=v[T]||T,a),A&&((s={})[I?"alignItems":"justifyContent"]=v[A]||A,s),S,{display:"flex"},I&&{height:R?"100%":"auto"}],inner:[B.inner,((l={display:"flex",flexWrap:"wrap",marginLeft:U,marginRight:U,marginTop:j,marginBottom:j,overflow:"visible",boxSizing:"border-box",padding:g(L,t),width:0===V.value?"100%":"calc(100% + ".concat(V.value).concat(V.unit,")"),maxWidth:"100vw"})[q]=(0,r.__assign)({margin:"".concat(.5*z.value).concat(z.unit," ").concat(.5*V.value).concat(V.unit)},W),l),_&&G,T&&((c={})[I?"justifyContent":"alignItems"]=v[T]||T,c),A&&((u={})[I?"alignItems":"justifyContent"]=v[A]||A,u),I&&((f={flexDirection:D?"row-reverse":"row",height:0===z.value?"100%":"calc(100% + ".concat(z.value).concat(z.unit,")")})[q]={maxWidth:0===V.value?"100%":"calc(100% - ".concat(V.value).concat(V.unit,")")},f),!I&&((h={flexDirection:D?"column-reverse":"column",height:"calc(100% + ".concat(z.value).concat(z.unit,")")})[q]={maxHeight:0===z.value?"100%":"calc(100% - ".concat(z.value).concat(z.unit,")")},h)]}:{root:[B.root,((b={display:"flex",flexDirection:I?D?"row-reverse":"row":D?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:R?"100%":"auto",maxWidth:O,maxHeight:F,padding:g(L,t),boxSizing:"border-box"})[q]=W,b),_&&G,P&&{flexGrow:!0===P?1:P},T&&((x={})[I?"justifyContent":"alignItems"]=v[T]||T,x),A&&((C={})[I?"alignItems":"justifyContent"]=v[A]||A,C),I&&V.value>0&&((k={})[D?"".concat(q,":not(:last-child)"):"".concat(q,":not(:first-child)")]={marginLeft:"".concat(V.value).concat(V.unit)},k),!I&&z.value>0&&((w={})[D?"".concat(q,":not(:last-child)"):"".concat(q,":not(:first-child)")]={marginTop:"".concat(z.value).concat(z.unit)},w),S]}},x=n(28387),C=function(e){var t=e.as,n=void 0===t?"div":t,o=e.disableShrink,s=void 0!==o&&o,u=e.doNotRenderFalsyValues,d=void 0!==u&&u,p=e.enableScopedSelectors,f=void 0!==p&&p,h=e.wrap,m=(0,r.__rest)(e,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]);(0,l.A)("Stack",e,{gap:"tokens.childrenGap",maxHeight:"tokens.maxHeight",maxWidth:"tokens.maxWidth",padding:"tokens.padding"});var g=k(e.children,{disableShrink:s,enableScopedSelectors:f,doNotRenderFalsyValues:d}),v=(0,c.G1)(m,c.vt),y=(0,a.Sk)(e,{root:n,inner:"div"});return h?(0,a.WL)(y.root,(0,r.__assign)({},v),(0,a.WL)(y.inner,null,g)):(0,a.WL)(y.root,(0,r.__assign)({},v),g)};function k(e,t){var n=t.disableShrink,a=t.enableScopedSelectors,s=t.doNotRenderFalsyValues,l=o.Children.toArray(e);return o.Children.map(l,function(e){if(!e)return s?null:e;if(!o.isValidElement(e))return e;if(e.type===o.Fragment)return e.props.children?k(e.props.children,{disableShrink:n,enableScopedSelectors:a,doNotRenderFalsyValues:s}):null;var t=e,l={};w(e)&&(l={shrink:!n});var c=t.props.className;return o.cloneElement(t,(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},l),t.props),c&&{className:c}),a&&{className:(0,u.A)(y.child,c)}))})}function w(e){return!!e&&"object"==typeof e&&!!e.type&&e.type.displayName===x.a.displayName}var S={Item:x.a},_=(0,s.a)(C,{displayName:"Stack",styles:b,statics:S})},28387(e,t,n){"use strict";n.d(t,{a:()=>u});var r=n(55478),o=n(89123),a=n(42921),s=n(68032),l=n(86015),c=function(e){var t=e.children,n=(0,s.G1)(e,s.vt);if(null==t)return null;var a=(0,o.Sk)(e,{root:"div"});return(0,o.WL)(a.root,(0,r.__assign)({},n),t)},u=(0,a.a)(c,{displayName:"StackItem",styles:l.a})},86015(e,t,n){"use strict";n.d(t,{a:()=>s,e:()=>o});var r=n(82540),o={root:"ms-StackItem"},a={start:"flex-start",end:"flex-end"},s=function(e,t,n){var s=e.grow,l=e.shrink,c=e.disableShrink,u=e.align,d=e.verticalFill,p=e.order,f=e.className,h=e.basis,m=void 0===h?"auto":h,g=(0,r.Km)(o,t);return{root:[t.fonts.medium,g.root,{flexBasis:m,margin:n.margin,padding:n.padding,height:d?"100%":"auto",width:"auto"},s&&{flexGrow:!0===s?1:s},(c||!s&&!l)&&{flexShrink:0},l&&!c&&{flexShrink:1},u&&{alignSelf:a[u]||u},p&&{order:p},f]}}},46689(e,t,n){"use strict";n.d(t,{A:()=>B});var r,o=n(93030),a=n(55478),s=n(40887),l=n(82602),c=n(80866),u=n(57273),d=n(10059),p=n(40261),f=n(78780),h=n(99751);function m(e){}var g=n(55560);function v(e,t){return void 0!==e[t]&&null!==e[t]}var y=n(68032),b=n(46330),x=n(32175),C=(0,u.Z)(),k="",w="TextField",S="RedEye",_="Hide",E=function(e){function t(t){var n=e.call(this,t)||this;n._textElement=s.createRef(),n._onFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({isFocused:!0},function(){n.props.validateOnFocusIn&&n._validate(n.value)})},n._onBlur=function(e){n.props.onBlur&&n.props.onBlur(e),n.setState({isFocused:!1},function(){n.props.validateOnFocusOut&&n._validate(n.value)})},n._onRenderLabel=function(e){var t=e.label,r=e.required,o=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?s.createElement(l.J,{required:r,htmlFor:n._id,styles:o,disabled:e.disabled,id:n._labelId},e.label):null},n._onRenderDescription=function(e){return e.description?s.createElement("span",{className:n._classNames.description},e.description):null},n._onRevealButtonClick=function(e){n.setState(function(e){return{isRevealingPassword:!e.isRevealingPassword}})},n._onInputChange=function(e){var t,r,o=e.target.value,a=P(n.props,n.state)||"";if(void 0===o||o===n._lastChangeValue||o===a){n._lastChangeValue=void 0;return}n._lastChangeValue=o,null==(r=(t=n.props).onChange)||r.call(t,e,o),n._isControlled||n.setState({uncontrolledValue:o})},(0,d.f)(n),n._async=new p.j(n),n._fallbackId=(0,f.O)(w),n._descriptionId=(0,f.O)(w+"Description"),n._labelId=(0,f.O)(w+"Label"),n._prefixId=(0,f.O)(w+"Prefix"),n._suffixId=(0,f.O)(w+"Suffix"),n._warnControlledUsage();var r=t.defaultValue,o=void 0===r?k:r;return"number"==typeof o&&(o=String(o)),n.state={uncontrolledValue:n._isControlled?void 0:o,isFocused:!1,errorMessage:""},n._delayedValidate=n._async.debounce(n._validate,n.props.deferredValidationTime),n._lastValidation=0,n}return(0,a.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return P(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=(n||{}).selection,a=void 0===o?[null,null]:o,s=a[0],l=a[1];!!e.multiline!=!!r.multiline&&t.isFocused&&(this.focus(),null!==s&&null!==l&&s>=0&&l>=0&&this.setSelectionRange(s,l)),e.value!==r.value&&(this._lastChangeValue=void 0);var c=P(e,t),u=this.value;c!==u&&(this._warnControlledUsage(e),this.state.errorMessage&&!r.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),I(r)&&this._delayedValidate(u))},t.prototype.render=function(){var e=this.props,t=e.borderless,n=e.className,r=e.disabled,o=e.invalid,l=e.iconProps,u=e.inputClassName,d=e.label,p=e.multiline,f=e.required,m=e.underlined,g=e.prefix,v=e.resizable,y=e.suffix,b=e.theme,x=e.styles,k=e.autoAdjustHeight,w=e.canRevealPassword,E=e.revealPasswordAriaLabel,P=e.type,I=e.onRenderPrefix,D=void 0===I?this._onRenderPrefix:I,A=e.onRenderSuffix,R=void 0===A?this._onRenderSuffix:A,N=e.onRenderLabel,B=void 0===N?this._onRenderLabel:N,M=e.onRenderDescription,F=void 0===M?this._onRenderDescription:M,O=this.state,L=O.isFocused,H=O.isRevealingPassword,z=this._errorMessage,V="boolean"==typeof o?o:!!z,U=!!w&&"password"===P&&T(),j=this._classNames=C(x,{theme:b,className:n,disabled:r,focused:L,required:f,multiline:p,hasLabel:!!d,hasErrorMessage:V,borderless:t,resizable:v,hasIcon:!!l,underlined:m,inputClassName:u,autoAdjustHeight:k,hasRevealButton:U});return s.createElement("div",{ref:this.props.elementRef,className:j.root},s.createElement("div",{className:j.wrapper},B(this.props,this._onRenderLabel),s.createElement("div",{className:j.fieldGroup},(void 0!==g||this.props.onRenderPrefix)&&s.createElement("div",{className:j.prefix,id:this._prefixId},D(this.props,this._onRenderPrefix)),p?this._renderTextArea():this._renderInput(),l&&s.createElement(c.I,(0,a.__assign)({className:j.icon},l)),U&&s.createElement("button",{"aria-label":E,className:j.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!H,type:"button"},s.createElement("span",{className:j.revealSpan},s.createElement(c.I,{className:j.revealIcon,iconName:H?_:S}))),(void 0!==y||this.props.onRenderSuffix)&&s.createElement("div",{className:j.suffix,id:this._suffixId},R(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&s.createElement("span",{id:this._descriptionId},F(this.props,this._onRenderDescription),z&&s.createElement("div",{role:"alert"},s.createElement(h.P,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},t.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},t.prototype._warnControlledUsage=function(e){this._id,this.props,null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,(0,g.R)("Warning: 'value' prop on '".concat(w,"' should not be null. Consider using an ")+"empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return v(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(e){var t=e.prefix;return s.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderSuffix=function(e){var t=e.suffix;return s.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var e=this._errorMessage;return e?"string"==typeof e?s.createElement("p",{className:this._classNames.errorMessage},s.createElement("span",{"data-automation-id":"error-message"},e)):s.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},e):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var e=this.props.invalid,t=void 0===e?!!this._errorMessage:e,n=(0,y.G1)(this.props,y.Sh,["defaultValue"]),r=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return s.createElement("textarea",(0,a.__assign)({id:this._id},n,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":r,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":t,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var e=this.props,t=e.ariaLabel,n=e.invalid,r=void 0===n?!!this._errorMessage:n,o=e.onRenderPrefix,l=e.onRenderSuffix,c=e.prefix,u=e.suffix,d=e.type,p=void 0===d?"text":d,f=e.label,h=[];f&&h.push(this._labelId),(void 0!==c||o)&&h.push(this._prefixId),(void 0!==u||l)&&h.push(this._suffixId);var m=(0,a.__assign)((0,a.__assign)({type:this.state.isRevealingPassword?"text":p,id:this._id},(0,y.G1)(this.props,y.QQ,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(h.length>0?h.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":r,onFocus:this._onFocus,onBlur:this._onBlur}),g=function(e){return s.createElement("input",(0,a.__assign)({},e))};return(this.props.onRenderInput||g)(m,g)},t.prototype._validate=function(e){var t=this;if(!(this._latestValidateValue===e&&I(this.props))){this._latestValidateValue=e;var n=this.props.onGetErrorMessage,r=n&&n(e||"");if(void 0!==r)if("string"!=typeof r&&"then"in r){var o=++this._lastValidation;r.then(function(n){o===t._lastValidation&&t.setState({errorMessage:n}),t._notifyAfterValidate(e,n)})}else this.setState({errorMessage:r}),this._notifyAfterValidate(e,r);else this._notifyAfterValidate(e,"")}},t.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var e=this._textElement.current;e.style.height="",e.style.height=e.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(s.Component);function P(e,t){var n=e.value,r=void 0===n?t.uncontrolledValue:n;return"number"==typeof r?String(r):r}function I(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}function T(){if("boolean"!=typeof r){var e=(0,b.z)();if(null==e?void 0:e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");r=!((0,x.l)()||t)}else r=!0}return r}var D=n(82540),A={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function R(e){var t=e.underlined,n=e.disabled,r=e.focused,o=e.theme,a=o.palette,s=o.fonts;return function(){var e;return{root:[t&&n&&{color:a.neutralTertiary},t&&{fontSize:s.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:((e={})[D.up]={height:31},e)}]}}}function N(e){var t,n,r,o,s,l,c,u,d,p,f,h,m=e.theme,g=e.className,v=e.disabled,y=e.focused,b=e.required,x=e.multiline,C=e.hasLabel,k=e.borderless,w=e.underlined,S=e.hasIcon,_=e.resizable,E=e.hasErrorMessage,P=e.inputClassName,I=e.autoAdjustHeight,T=e.hasRevealButton,N=m.semanticColors,B=m.effects,M=m.fonts,F=(0,D.Km)(A,m),O={background:N.disabledBackground,color:v?N.disabledText:N.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:((t={})[D.up]={background:"Window",color:v?"GrayText":"WindowText"},t)},L=[{color:N.inputPlaceholderText,opacity:1,selectors:((n={})[D.up]={color:"GrayText"},n)}],H={color:N.disabledText,selectors:((r={})[D.up]={color:"GrayText"},r)};return{root:[F.root,M.medium,b&&F.required,v&&F.disabled,y&&F.active,x&&F.multiline,k&&F.borderless,w&&F.underlined,D.S8,{position:"relative"},g],wrapper:[F.wrapper,w&&[{display:"flex",borderBottom:"1px solid ".concat(E?N.errorText:N.inputBorder),width:"100%"},v&&{borderBottomColor:N.disabledBackground,selectors:((o={})[D.up]=(0,a.__assign)({borderColor:"GrayText"},(0,D.Qg)()),o)},!v&&{selectors:{":hover":{borderBottomColor:E?N.errorText:N.inputBorderHovered,selectors:((s={})[D.up]=(0,a.__assign)({borderBottomColor:"Highlight"},(0,D.Qg)()),s)}}},y&&[{position:"relative"},(0,D.Sq)(E?N.errorText:N.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[F.fieldGroup,D.S8,{border:"1px solid ".concat(N.inputBorder),borderRadius:B.roundedCorner2,background:N.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},x&&{minHeight:"60px",height:"auto",display:"flex"},!y&&!v&&{selectors:{":hover":{borderColor:N.inputBorderHovered,selectors:((l={})[D.up]=(0,a.__assign)({borderColor:"Highlight"},(0,D.Qg)()),l)}}},y&&!w&&(0,D.Sq)(E?N.errorText:N.inputFocusBorderAlt,B.roundedCorner2),v&&{borderColor:N.disabledBackground,selectors:((c={})[D.up]=(0,a.__assign)({borderColor:"GrayText"},(0,D.Qg)()),c),cursor:"default"},k&&{border:"none"},k&&y&&{border:"none",selectors:{":after":{border:"none"}}},w&&{flex:"1 1 0px",border:"none",textAlign:"left"},w&&v&&{backgroundColor:"transparent"},E&&!w&&{borderColor:N.errorText,selectors:{"&:hover":{borderColor:N.errorText}}},!C&&b&&{selectors:((u={":before":{content:"'*'",color:N.errorText,position:"absolute",top:-5,right:-10}})[D.up]={selectors:{":before":{color:"WindowText",right:-14}}},u)}],field:[M.medium,F.field,D.S8,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:N.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:((d={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}})[D.up]={background:"Window",color:v?"GrayText":"WindowText"},d)},(0,D.CX)(L),x&&!_&&[F.unresizable,{resize:"none"}],x&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},x&&I&&{overflow:"hidden"},S&&!T&&{paddingRight:24},x&&S&&{paddingRight:40},v&&[{backgroundColor:N.disabledBackground,color:N.disabledText,borderColor:N.disabledBackground},(0,D.CX)(H)],w&&{textAlign:"left"},y&&!k&&{selectors:((p={})[D.up]={paddingLeft:11,paddingRight:11},p)},y&&x&&!k&&{selectors:((f={})[D.up]={paddingTop:4},f)},P],icon:[x&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:D.fF.medium,lineHeight:18},v&&{color:N.disabledText}],description:[F.description,{color:N.bodySubtext,fontSize:M.xSmall.fontSize}],errorMessage:[F.errorMessage,D.lw.slideDownIn20,M.small,{color:N.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[F.prefix,O],suffix:[F.suffix,O],revealButton:[F.revealButton,"ms-Button","ms-Button--icon",(0,D.gm)(m,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:N.link,selectors:{":hover":{outline:0,color:N.primaryButtonBackgroundHovered,backgroundColor:N.buttonBackgroundHovered,selectors:((h={})[D.up]={borderColor:"Highlight",color:"Highlight"},h)},":focus":{outline:0}}},S&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:D.fF.medium,lineHeight:18},subComponentStyles:{label:R(e)}}}var B=(0,o.I)(E,N,void 0,{scope:"TextField"})},16915(e,t,n){"use strict";n.d(t,{E:()=>u});var r=n(42921),o=n(55478),a=n(89123),s=n(68032),l=function(e){if(null==e.children)return null;e.block,e.className;var t=e.as,n=void 0===t?"span":t,r=(e.variant,e.nowrap,(0,o.__rest)(e,["block","className","as","variant","nowrap"])),l=(0,a.Sk)(e,{root:n});return(0,a.WL)(l.root,(0,o.__assign)({},(0,s.G1)(r,s.vt)))},c=function(e,t){var n=e.as,r=e.className,o=e.block,a=e.nowrap,s=e.variant,l=t.fonts,c=t.semanticColors,u=l[s||"medium"];return{root:[u,{color:u.color||c.bodyText,display:o?"td"===n?"table-cell":"block":"inline",mozOsxFontSmoothing:u.MozOsxFontSmoothing,webkitFontSmoothing:u.WebkitFontSmoothing},a&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}},u=(0,r.a)(l,{displayName:"Text",styles:c})},64050(e,t,n){"use strict";n.d(t,{S:()=>A});var r,o=n(93030),a=n(55478),s=n(40887),l=n(82540),c=n(57273),u=n(78780);function d(e){return e.clientWidth<e.scrollWidth}function p(e){return e.clientHeight<e.scrollHeight}function f(e){return d(e)||p(e)}var h=n(86881),m=n(20006),g=n(10059),v=n(40261),y=n(50118),b=n(68032),x=n(66225),C=n(8992),k=n(75171),w=(0,c.Z)(),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?s.createElement("p",{className:t._classNames.subText},e.content):s.createElement("div",{className:t._classNames.subText},e.content)},t}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,o=e.directionalHintForRTL,l=e.styles,c=e.id,u=e.maxWidth,d=e.onRenderContent,p=void 0===d?this._onRenderContent:d,f=e.targetElement,h=e.theme;return this._classNames=w(l,{theme:h,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:u}),s.createElement(C.P,(0,a.__assign)({target:f,directionalHint:r,directionalHintForRTL:o},n,(0,b.G1)(this.props,b.JM,["id"]),{className:this._classNames.root}),s.createElement("div",{className:this._classNames.content,id:c,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},p(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:k.A.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(s.Component),_=function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,a=void 0===o?0:o,s=e.maxWidth,c=e.theme,u=c.semanticColors,d=c.fonts,p=c.effects,f=-(Math.sqrt(r*r/2)+a)+1/window.devicePixelRatio;return{root:["ms-Tooltip",c.fonts.medium,l.lw.fadeIn200,{background:u.menuBackground,boxShadow:p.elevation8,padding:"8px",maxWidth:s,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},t],content:["ms-Tooltip-content",d.small,{position:"relative",zIndex:1,color:u.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}},E=(0,o.I)(S,_,void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(r||(r={}));var P=(0,c.Z)(),I=function(e){function t(n){var o=e.call(this,n)||this;return o._tooltipHost=s.createRef(),o._defaultTooltipId=(0,u.O)("tooltip"),o.show=function(){o._toggleTooltip(!0)},o.dismiss=function(){o._hideTooltip()},o._getTargetElement=function(){if(o._tooltipHost.current){var e=o.props.overflowMode;if(void 0!==e)switch(e){case x.$.Parent:return o._tooltipHost.current.parentElement;case x.$.Self:}return o._tooltipHost.current}},o._onTooltipFocus=function(e){if(o._ignoreNextFocusEvent){o._ignoreNextFocusEvent=!1;return}o._onTooltipMouseEnter(e)},o._onTooltipContentFocus=function(e){t._currentVisibleTooltip&&t._currentVisibleTooltip!==o&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=o,o._clearDismissTimer(),o._clearOpenTimer()},o._onTooltipBlur=function(e){o._ignoreNextFocusEvent=(null==document?void 0:document.activeElement)===e.target,o._dismissTimerId=o._async.setTimeout(function(){o._hideTooltip()},0)},o._onTooltipMouseEnter=function(e){var n=o.props,a=n.overflowMode,s=n.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==o&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=o,void 0!==a){var l=o._getTargetElement();if(l&&!f(l))return}if(!(e.target&&(0,h.s)(e.target,o._getTargetElement())))if(o._clearDismissTimer(),o._clearOpenTimer(),s!==r.zero){var c=o._getDelayTime(s);o._openTimerId=o._async.setTimeout(function(){o._toggleTooltip(!0)},c)}else o._toggleTooltip(!0)},o._onTooltipMouseLeave=function(e){var n=o.props.closeDelay;o._clearDismissTimer(),o._clearOpenTimer(),n?o._dismissTimerId=o._async.setTimeout(function(){o._toggleTooltip(!1)},n):o._toggleTooltip(!1),t._currentVisibleTooltip===o&&(t._currentVisibleTooltip=void 0)},o._onTooltipKeyDown=function(e){(e.which===m.c.escape||e.ctrlKey)&&o.state.isTooltipVisible&&(o._hideTooltip(),e.stopPropagation())},o._clearDismissTimer=function(){o._async.clearTimeout(o._dismissTimerId)},o._clearOpenTimer=function(){o._async.clearTimeout(o._openTimerId)},o._hideTooltip=function(){o._clearOpenTimer(),o._clearDismissTimer(),o._toggleTooltip(!1)},o._toggleTooltip=function(e){o.state.isTooltipVisible!==e&&o.setState({isTooltipVisible:e},function(){return o.props.onTooltipToggle&&o.props.onTooltipToggle(e)})},o._getDelayTime=function(e){switch(e){case r.medium:return 300;case r.long:return 500;default:return 0}},(0,g.f)(o),o.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},o._async=new v.j(o),o}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,o=e.directionalHint,c=e.directionalHintForRTL,u=e.hostClassName,d=e.id,p=e.setAriaDescribedBy,f=void 0===p||p,h=e.tooltipProps,m=e.styles,g=e.theme;this._classNames=P(m,{theme:g,className:u});var v=this.state.isTooltipVisible,x=d||this._defaultTooltipId,C=(0,a.__assign)((0,a.__assign)({id:"".concat(x,"--tooltip"),content:r,targetElement:this._getTargetElement(),directionalHint:o,directionalHintForRTL:c,calloutProps:(0,y.kp)({},t,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},(0,b.G1)(this.props,b.JM,["id"])),h),k=(null==h?void 0:h.onRenderContent)?h.onRenderContent(C,function(e){return(null==e?void 0:e.content)?s.createElement(s.Fragment,null,e.content):null}):r,w=v&&!!k,S=f&&v&&k?x:void 0;return s.createElement("div",(0,a.__assign)({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":S}),n,w&&s.createElement(E,(0,a.__assign)({},C)),s.createElement("div",{hidden:!0,id:x,style:l.dX},k))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:r.medium},t}(s.Component),T={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},D=function(e){var t=e.className,n=e.theme;return{root:[(0,l.Km)(T,n).root,{display:"inline"},t]}},A=(0,o.I)(I,D,void 0,{scope:"TooltipHost"})},66225(e,t,n){"use strict";var r;n.d(t,{$:()=>r}),function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(r||(r={}))},56808(e,t,n){"use strict";n.d(t,{D:()=>r});var r=n(40887).createContext(void 0)},94662(e,t,n){"use strict";n.d(t,{N:()=>L});var r=n(40887),o=n(34534),a=n(16104),s=n(612),l=n(78780),c=n(59248),u=n(35428),d=n(66180),p=n(96547),f=0,h=function(){return f},m=function(e,t){return(0,u.L)(Array.isArray(e)?e:[e],t)},g=function(e,t){var n,r,o,a=t[0],s=t[1],l=t[2];return null==(o=null==(r=null==(n=e.get(a))?void 0:n.get(s))?void 0:r.get(l))?void 0:o.classMap},v=function(e,t,n){var r,o,a=t[0],s=t[1],l=t[2],c=null!=(r=e.get(a))?r:new Map;e.set(a,c);var u=null!=(o=c.get(s))?o:new Map;c.set(s,u),u.set(l,{classMap:n,refCount:0})};function y(e,t){var n,r,o=t[0],a=t[1],s=t[2],l=null==(r=null==(n=e.get(o))?void 0:n.get(a))?void 0:r.get(s);l&&l.refCount++}function b(e,t){var n,r,o,a,s,l,c,u,d=t[0],p=t[1],f=t[2],h=null==(r=null==(n=e.get(d))?void 0:n.get(p))?void 0:r.get(f);h&&(h.refCount--,0===h.refCount&&(null==(a=null==(o=e.get(d))?void 0:o.get(p))||a.delete(f),(null==(l=null==(s=e.get(d))?void 0:s.get(p))?void 0:l.size)===0&&(null==(c=e.get(d))||c.delete(p),(null==(u=e.get(d))?void 0:u.size)===0&&e.delete(d))))}function x(e){return"function"==typeof e}var C=function(e){var t=new Map,n=new Set,o=function(e){var r=e.currentTarget,a=r.__id__;t.delete(a),r.removeEventListener("unload",o),n.delete(a)};return function(c){void 0===c&&(c={});var u,d=c.theme,p=(0,a.ox)();p&&(p.__id__=p.__id__||(0,l.O)(),u=p.__id__,n.has(u)||(n.add(u),p.addEventListener("unload",o)));var f=(0,s.D)();d=d||f;var C=h(),k=[u,C,d],w=g(t,k);if((0,r.useEffect)(function(){return y(t,[u,C,d]),function(){return b(t,[u,C,d])}},[u,C,d]),!w){var S=x(e)?e(d):e;v(t,k,w=m(S,{targetWindow:p,rtl:!!d.rtl}))}return w}}(function(e){var t=e.semanticColors,n=e.fonts;return{body:[{color:t.bodyText,background:t.bodyBackground,fontFamily:n.medium.fontFamily,fontWeight:n.medium.fontWeight,fontSize:n.medium.fontSize,MozOsxFontSmoothing:n.medium.MozOsxFontSmoothing,WebkitFontSmoothing:n.medium.WebkitFontSmoothing}]}});function k(e,t){var n,o="body"===e.applyTo,s=null==(n=(0,a.ZY)())?void 0:n.body;r.useEffect(function(){if(o&&s){for(var e=0,n=t;e<n.length;e++){var r=n[e];r&&s.classList.add(r)}return function(){if(o&&s)for(var e=0,n=t;e<n.length;e++){var r=n[e];r&&s.classList.remove(r)}}}},[o,s,t])}function w(e){var t=C(e),n=e.className,r=e.applyTo;k(e,[t.root,t.body]),e.className=(0,o.A)(n,t.root,"element"===r&&t.body)}var S=n(55478),_=n(69104),E=n(50118),P=n(68578),I=n(50103),T=n(56808),D=function(e){var t=e.customizerContext,n=e.ref,o=e.theme,a=e.as||"div",s="string"==typeof e.as?(0,_._)(e.as,e):e.as===r.Fragment?{children:e.children}:(0,E.cJ)(e,["as"]);return r.createElement(T.D.Provider,{value:o},r.createElement(P.z.Provider,{value:t},r.createElement(I.N,{providerRef:n},r.createElement(a,(0,S.__assign)({},s)))))},A=n(96050),R=new Map,N=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var a=o[r];if(a){var s=a.id||R.get(a);s||(s=(0,l.O)(""),R.set(a,s)),n.push(s)}}return n.join("-")},B=function(e){var t=e.theme,n=(0,s.D)(),o=e.theme=r.useMemo(function(){var e=(0,A.z)(n,t);return e.id=N(n,t),e},[n,t]);e.customizerContext=r.useMemo(function(){return{customizations:{inCustomizerContext:!0,settings:{theme:o},scopedSettings:o.components||{}}}},[o]),e.theme.rtl!==n.rtl&&(e.dir=e.theme.rtl?"rtl":"ltr")},M=n(76325),F=function(e,t){var n=(0,M.N)(t,e);return B(n),{state:n,render:D}},O=n(49122),L=r.forwardRef(function(e,t){var n=F(e,{ref:(0,O.a)(t,r.useRef(null)),as:"div",applyTo:"element"}),o=n.render,a=n.state;return w(a),o(a)});L.displayName="ThemeProvider"},612(e,t,n){"use strict";n.d(t,{D:()=>c});var r=n(40887),o=n(50639),a=n(95830),s=n(56808);function l(){return(0,o.m)(["theme"]).theme}var c=function(){var e=(0,r.useContext)(s.D),t=l();return e||t||(0,a.a)({})}},93147(e,t,n){"use strict";n.d(t,{AR:()=>r,YF:()=>l,kA:()=>u}),n(40887),!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(r||(r={}));var r,o,a,s=[479,639,1023,1365,1919,0x5f5e0ff];function l(){var e;return null!=(e=null!=o?o:a)?e:r.large}function c(e){try{return e.document.documentElement.clientWidth}catch(t){return e.innerWidth}}function u(e){var t=r.small;if(e){try{for(;c(e)>s[t];)t++}catch(e){t=l()}a=t}else if(void 0!==o)t=o;else throw Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}},52540(e,t,n){"use strict";n.d(t,{z:()=>c});var r=n(40887),o=n(46330),a=n(7061),s=n(93147),l=n(16104),c=function(e,t){var n=r.useState((0,s.YF)()),c=n[0],u=n[1],d=r.useCallback(function(){var t=(0,s.kA)((0,o.z)(e.current));c!==t&&u(t)},[e,c]),p=(0,l.ox)();return(0,a.x)(p,"resize",d),r.useEffect(function(){void 0===t&&d()},[t]),null!=t?t:c}},47510(e,t,n){"use strict";n.d(t,{Cm:()=>c,aR:()=>s,er:()=>l,fy:()=>o,oQ:()=>a,uA:()=>r});var r,o="ktp",a="-",s="data-ktp-target",l="data-ktp-execute-target",c="ktp-layer-id";!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(r||(r={}))},45924(e,t,n){"use strict";n.d(t,{_:()=>l});var r=n(55478),o=n(91518),a=n(78780),s=n(47510),l=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var a=t?s.uA.PERSISTED_KEYTIP_ADDED:s.uA.KEYTIP_ADDED;o.g.raise(this,a,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),a=this.keytips[t];a&&(r.keytip.visible=a.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[a.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&o.g.raise(this,s.uA.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],n||delete this.sequenceMapping[e.keySequences.toString()];var r=n?s.uA.PERSISTED_KEYTIP_REMOVED:s.uA.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&o.g.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){o.g.raise(this,s.uA.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){o.g.raise(this,s.uA.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map(function(t){return e.keytips[t].keytip})},e.prototype.addParentOverflow=function(e){var t=(0,r.__spreadArray)([],e.keySequences,!0);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return(0,r.__assign)((0,r.__assign)({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){o.g.raise(this,s.uA.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=(0,a.O)()),{keytip:(0,r.__assign)({},e),uniqueID:t}},e._instance=new e,e}()},43029(e,t,n){"use strict";var r,o;n.d(t,{x:()=>r}),function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(r||(r={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(o||(o={}))},81862(e,t,n){"use strict";function r(e,t){for(var n=[],r=0,o=t;r<o.length;r++){var a=e[o[r]];a&&n.push(a)}return n}n.d(t,{D:()=>r})},70401(e,t,n){"use strict";var r;n.d(t,{W:()=>r}),function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.SelectAll=3]="SelectAll"}(r||(r={}))},71827(e,t,n){"use strict";n.d(t,{R:()=>L});var r,o=n(55478),a=n(40887),s=n(33428),l=n(98904),c=n(66647),u=n(10816),d=n(20006),p=n(35523),f=n(10059),h=n(78780),m=n(19949),g=n(68032),v=n(34534),y=n(17940),b=n(86881),x=n(93367),C=n(7380),k=n(82540),w="data-is-focusable",S="data-disable-click-on-enter",_="data-focuszone-id",E="tabindex",P="data-no-vertical-wrap",I="data-no-horizontal-wrap",T=0x3b9ac9ff,D=-0x3b9ac9ff,A="ms-FocusZone";function R(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}function N(){return r||(r=(0,C.Z)({selectors:{":focus":{outline:"none"}}},A)),r}var B={},M=new Set,F=["text","number","password","email","tel","url","search","textarea"],O=!1,L=function(e){function t(n){var r,o,m,g,v=this;(v=e.call(this,n)||this)._root=a.createRef(),v._mergedRef=(0,l.K)(),v._onFocus=function(e){if(!v._portalContainsElement(e.target)){var t,n=v.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,a=n.stopFocusPropagation,s=n.onFocusNotification,l=n.onFocus,d=n.shouldFocusInnerElementWhenReceivedFocus,p=n.defaultTabbableElement,f=v._isImmediateDescendantOfZone(e.target);if(f)t=e.target;else for(var h=e.target;h&&h!==v._root.current;){if((0,c.S0)(h)&&v._isImmediateDescendantOfZone(h)){t=h;break}h=(0,u.P)(h,O)}if(d&&e.target===v._root.current){var m=p&&"function"==typeof p&&v._root.current&&p(v._root.current);m&&(0,c.S0)(m)?(t=m,m.focus()):(v.focus(!0),v._activeElement&&(t=null))}var g=!v._activeElement;t&&t!==v._activeElement&&((f||g)&&v._setFocusAlignment(t,!0,!0),v._activeElement=t,g&&v._updateTabIndexes()),r&&r(v._activeElement,e),(a||o)&&e.stopPropagation(),l?l(e):s&&s()}},v._onBlur=function(){v._setParkedFocus(!1)},v._onMouseDown=function(e){if(!v._portalContainsElement(e.target)&&!v.props.disabled){for(var t=e.target,n=[];t&&t!==v._root.current;)n.push(t),t=(0,u.P)(t,O);for(;n.length&&((t=n.pop())&&(0,c.S0)(t)&&v._setActiveElement(t,!0),!(0,c.HC)(t)););}},v._onKeyDown=function(e,t){if(v._portalContainsElement(e.target))return;var n=v.props,r=n.direction,o=n.disabled,a=n.isInnerZoneKeystroke,l=n.pagingSupportDisabled,u=n.shouldEnterInnerZone;if(!o){if((v.props.onKeyDown&&v.props.onKeyDown(e),!e.isDefaultPrevented())&&(v._getDocument().activeElement!==v._root.current||!v._isInnerZone)){if((u&&u(e)||a&&a(e))&&v._isImmediateDescendantOfZone(e.target)){var f=v._getFirstInnerZone();if(f){if(!f.focus(!0))return}else if(!(0,c.Z5)(e.target))return;else if(!v.focusElement((0,c.eX)(e.target,e.target.firstChild,!0)))return}else{if(e.altKey)return;switch(e.which){case d.c.space:if(v._shouldRaiseClicksOnSpace&&v._tryInvokeClickForFocusable(e.target,e))break;return;case d.c.left:if(r!==s.E.vertical&&(v._preventDefaultWhenHandled(e),v._moveFocusLeft(t)))break;return;case d.c.right:if(r!==s.E.vertical&&(v._preventDefaultWhenHandled(e),v._moveFocusRight(t)))break;return;case d.c.up:if(r!==s.E.horizontal&&(v._preventDefaultWhenHandled(e),v._moveFocusUp()))break;return;case d.c.down:if(r!==s.E.horizontal&&(v._preventDefaultWhenHandled(e),v._moveFocusDown()))break;return;case d.c.pageDown:if(!l&&v._moveFocusPaging(!0))break;return;case d.c.pageUp:if(!l&&v._moveFocusPaging(!1))break;return;case d.c.tab:if(v.props.allowTabKey||v.props.handleTabKey===s.l.all||v.props.handleTabKey===s.l.inputOnly&&v._isElementInput(e.target)){var h=!1;if(v._processingTabKey=!0,h=r!==s.E.vertical&&v._shouldWrapFocus(v._activeElement,I)?((0,p.jI)(t)?!e.shiftKey:e.shiftKey)?v._moveFocusLeft(t):v._moveFocusRight(t):e.shiftKey?v._moveFocusUp():v._moveFocusDown(),v._processingTabKey=!1,h)break;v.props.shouldResetActiveElementWhenTabFromZone&&(v._activeElement=null)}return;case d.c.home:if(v._isContentEditableElement(e.target)||v._isElementInput(e.target)&&!v._shouldInputLoseFocus(e.target,!1))return!1;var m=v._root.current&&v._root.current.firstChild;if(v._root.current&&m&&v.focusElement((0,c.eX)(v._root.current,m,!0)))break;return;case d.c.end:if(v._isContentEditableElement(e.target)||v._isElementInput(e.target)&&!v._shouldInputLoseFocus(e.target,!0))return!1;var g=v._root.current&&v._root.current.lastChild;if(v._root.current&&v.focusElement((0,c.yv)(v._root.current,g,!0,!0,!0)))break;return;case d.c.enter:if(v._shouldRaiseClicksOnEnter&&v._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},v._getHorizontalDistanceFromCenter=function(e,t,n){var r=v._focusAlignment.left||v._focusAlignment.x||0,o=Math.floor(n.top),a=Math.floor(t.bottom),s=Math.floor(n.bottom),l=Math.floor(t.top),c=e&&o>a,u=!e&&s<l;return c||u?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):v._shouldWrapFocus(v._activeElement,P)?T:D},(0,f.f)(v),v._id=(0,h.O)("FocusZone"),v._focusAlignment={left:0,top:0},v._processingTabKey=!1;var y=null==(o=null!=(r=n.shouldRaiseClicks)?r:t.defaultProps.shouldRaiseClicks)||o;return v._shouldRaiseClicksOnEnter=null!=(m=n.shouldRaiseClicksOnEnter)?m:y,v._shouldRaiseClicksOnSpace=null!=(g=n.shouldRaiseClicksOnSpace)?g:y,v}return(0,o.__extends)(t,e),t.getOuterZones=function(){return M.size},t._onKeyDownCapture=function(e){e.which===d.c.tab&&M.forEach(function(e){return e._updateTabIndexes()})},t.prototype.componentDidMount=function(){var e=this._root.current;if(B[this._id]=this,e){for(var n=(0,u.P)(e,O);n&&n!==this._getDocument().body&&1===n.nodeType;){if((0,c.HC)(n)){this._isInnerZone=!0;break}n=(0,u.P)(n,O)}!this._isInnerZone&&(M.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!(0,m.s)(this._root.current,this._activeElement,O)||this._defaultFocusElement&&!(0,m.s)(this._root.current,this._defaultFocusElement,O))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=(0,c.nA)(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete B[this._id],!this._isInnerZone&&(M.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,s=t.rootProps,l=t.ariaDescribedBy,c=t.ariaLabelledBy,u=t.className,d=(0,g.G1)(this.props,g.vt),p=n||r||"div";this._evaluateFocusBeforeRender();var f=(0,k.O4)();return a.createElement(p,(0,o.__assign)({"aria-labelledby":c,"aria-describedby":l},d,s,{className:(0,v.A)(N(),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,f)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current)if(!e&&"true"===this._root.current.getAttribute(w)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=B[n.getAttribute(_)];return!!r&&r.focusElement(this._root.current)}}else{if(!e&&this._activeElement&&(0,m.s)(this._root.current,this._activeElement)&&(0,c.S0)(this._activeElement)&&(!t||(0,c.F2)(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement((0,c.eX)(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement((0,c.yv)(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return(!o||!!o(e))&&(!r||!!r(e))&&!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0)},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=(0,m.s)(e,n,!1);this._lastIndexPath=r?(0,c.Ep)(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&((0,c.HC)(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&((!this._focusAlignment||t)&&this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)break;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(w)&&"true"!==n.getAttribute(S))return R(n,t),!0;n=(0,u.P)(n,O)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if((0,c.HC)(e))return B[e.getAttribute(_)];for(var t=e.firstElementChild;t;){if((0,c.HC)(t))return B[t.getAttribute(_)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,a=-1,l=void 0,u=!1,d=this.props.direction===s.E.bidirectional;if(!o||!this._root.current||this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var p=d?o.getBoundingClientRect():null;do if(o=e?(0,c.eX)(this._root.current,o):(0,c.yv)(this._root.current,o),d){if(o){var f=t(p,o.getBoundingClientRect());if(-1===f&&-1===a){l=o;break}if(f>-1&&(-1===a||f<a)&&(a=f,l=o),a>=0&&f<0)break}}else{l=o;break}while(o);if(l&&l!==this._activeElement)u=!0,this.focusElement(l);else if(this.props.isCircularNavigation&&r)if(e)return this.focusElement((0,c.eX)(this._root.current,this._root.current.firstElementChild,!0));else return this.focusElement((0,c.yv)(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,function(r,o){var a=-1,s=Math.floor(o.top),l=Math.floor(r.bottom);return s<l?e._shouldWrapFocus(e._activeElement,P)?T:D:((-1===t&&s>=l||s===t)&&(t=s,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,function(r,o){var a=-1,s=Math.floor(o.bottom),l=Math.floor(o.top),c=Math.floor(r.top);return s>c?e._shouldWrapFocus(e._activeElement,P)?T:D:((-1===t&&s<=c||l===t)&&(t=l,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)})&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,I);return!!this._moveFocus((0,p.jI)(e),function(r,o){var a,l=-1;return(a=(0,p.jI)(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==s.E.vertical?l=r.right-o.right:n||(l=D),l},void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,I);return!!this._moveFocus(!(0,p.jI)(e),function(r,o){var a,l=-1;return(a=(0,p.jI)(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==s.E.vertical?l=o.left-r.left:n||(l=D),l},void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current||this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=(0,y.Hc)(n);if(!r)return!1;var o=-1,a=void 0,s=-1,l=-1,u=r.clientHeight,d=n.getBoundingClientRect();do if(n=e?(0,c.eX)(this._root.current,n):(0,c.yv)(this._root.current,n)){var p=n.getBoundingClientRect(),f=Math.floor(p.top),h=Math.floor(d.bottom),m=Math.floor(p.bottom),g=Math.floor(d.top),v=this._getHorizontalDistanceFromCenter(e,d,p),b=e&&f>h+u,x=!e&&m<g-u;if(b||x)break;v>-1&&(e&&f>s?(s=f,o=v,a=n):!e&&m<l?(l=m,o=v,a=n):(-1===o||v<=o)&&(o=v,a=n))}while(n);var C=!1;if(a&&a!==this._activeElement)C=!0,this.focusElement(a),this._setFocusAlignment(a,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement((0,c.eX)(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement((0,c.yv)(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return C},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===s.E.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,a=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:a}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=a)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=(0,u.P)(e,O);t&&t!==this._root.current&&t!==this._getDocument().body&&!(0,c.HC)(t);)t=(0,u.P)(t,O);return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!(0,m.s)(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!(0,c.S0)(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];(0,c.HC)(r)?"true"===r.getAttribute(w)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(E)&&r.setAttribute(E,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(E)&&r.setAttribute(E,"0"))):(r.getAttribute&&"false"===r.getAttribute(w)&&r.setAttribute(E,"-1"),(0,c.S0)(r)?this.props.disabled?r.setAttribute(E,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(E)&&r.setAttribute(E,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(E)&&r.setAttribute(E,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!!e&&!!e.tagName&&("input"===e.tagName.toLowerCase()||"textarea"===e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&F.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,a=e.readOnly;if(r||n>0&&!t&&!a||n!==o.length&&t&&!a||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||(0,c._l)(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&(0,b.s)(e,this._root.current)},t.prototype._getDocument=function(){return(0,x.Y)(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:s.E.bidirectional,shouldRaiseClicks:!0},t}(a.Component)},33428(e,t,n){"use strict";n.d(t,{E:()=>r,l:()=>o});var r,o={none:0,all:1,inputOnly:2};!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(r||(r={}))},95830(e,t,n){"use strict";n.d(t,{a:()=>T});var r,o,a,s,l,c={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"},u=n(55877),d={elevation4:u.f.depth4,elevation8:u.f.depth8,elevation16:u.f.depth16,elevation64:u.f.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},p=n(66180);!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(r||(r={})),function(e){e.Arabic="'".concat(r.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(r.Cyrillic,"'"),e.EastEuropean="'".concat(r.EastEuropean,"'"),e.Greek="'".concat(r.Greek,"'"),e.Hebrew="'".concat(r.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(r.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(r.Vietnamese,"'"),e.WestEuropean="'".concat(r.WestEuropean,"'"),e.Armenian="'".concat(r.Armenian,"'"),e.Georgian="'".concat(r.Georgian,"'")}(o||(o={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(a||(a={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(s||(s={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(l||(l={}));var f="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",h="'Segoe UI', '".concat(r.WestEuropean,"'"),m={ar:o.Arabic,bg:o.Cyrillic,cs:o.EastEuropean,el:o.Greek,et:o.EastEuropean,he:o.Hebrew,hi:o.Hindi,hr:o.EastEuropean,hu:o.EastEuropean,ja:o.Japanese,kk:o.EastEuropean,ko:o.Korean,lt:o.EastEuropean,lv:o.EastEuropean,pl:o.EastEuropean,ru:o.Cyrillic,sk:o.EastEuropean,"sr-latn":o.EastEuropean,th:o.Thai,tr:o.EastEuropean,uk:o.Cyrillic,vi:o.Vietnamese,"zh-hans":o.ChineseSimplified,"zh-hant":o.ChineseTraditional,hy:o.Armenian,ka:o.Georgian};function g(e){return"".concat(e,", ").concat(f)}function v(e){for(var t in m)if(m.hasOwnProperty(t)&&e&&0===t.indexOf(e))return m[t];return h}function y(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function b(e){var t=g(v(e));return{tiny:y(a.mini,s.regular,t),xSmall:y(a.xSmall,s.regular,t),small:y(a.small,s.regular,t),smallPlus:y(a.smallPlus,s.regular,t),medium:y(a.medium,s.regular,t),mediumPlus:y(a.mediumPlus,s.regular,t),large:y(a.large,s.regular,t),xLarge:y(a.xLarge,s.semibold,t),xLargePlus:y(a.xLargePlus,s.semibold,t),xxLarge:y(a.xxLarge,s.semibold,t),xxLargePlus:y(a.xxLargePlus,s.semibold,t),superLarge:y(a.superLarge,s.semibold,t),mega:y(a.mega,s.semibold,t)}}var x=n(74423),C=n(46330),k="https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets",w=b((0,x.Z)());function S(e,t,n,r){e="'".concat(e,"'");var o=void 0!==r?"local('".concat(r,"'),"):"";(0,p.n)({fontFamily:e,src:o+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function _(e,t,n,r,o){void 0===r&&(r="segoeui");var a="".concat(e,"/").concat(n,"/").concat(r);S(t,a+"-light",s.light,o&&o+" Light"),S(t,a+"-semilight",s.semilight,o&&o+" SemiLight"),S(t,a+"-regular",s.regular,o),S(t,a+"-semibold",s.semibold,o&&o+" SemiBold"),S(t,a+"-bold",s.bold,o&&o+" Bold")}!function(e){if(e){var t="".concat(e,"/fonts");_(t,r.Thai,"leelawadeeui-thai","leelawadeeui"),_(t,r.Arabic,"segoeui-arabic"),_(t,r.Cyrillic,"segoeui-cyrillic"),_(t,r.EastEuropean,"segoeui-easteuropean"),_(t,r.Greek,"segoeui-greek"),_(t,r.Hebrew,"segoeui-hebrew"),_(t,r.Vietnamese,"segoeui-vietnamese"),_(t,r.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),_(t,o.Selawik,"selawik","selawik"),_(t,r.Armenian,"segoeui-armenian"),_(t,r.Georgian,"segoeui-georgian"),S("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),s.light),S("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),s.semibold)}}(function(){var e,t,n=null==(e=(0,C.z)())?void 0:e.FabricConfig;return null!=(t=null==n?void 0:n.fontBaseUrl)?t:k}());var E=n(96050),P={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},I=n(27789);function T(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted,r={palette:c,effects:d,fonts:w,spacing:P,isInverted:n,disableGlobalClassNames:!1,semanticColors:(0,I.b)(c,d,void 0,n,t),rtl:void 0};return(0,E.z)(r,e)}},55877(e,t,n){"use strict";var r;n.d(t,{f:()=>r}),function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(r||(r={}))},96050(e,t,n){"use strict";n.d(t,{z:()=>a});var r=n(40449),o=n(27789);function a(e,t){void 0===t&&(t={});var n,a,s,l=(0,r.h)({},e,t,{semanticColors:(0,o.B)(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null==(n=t.palette)?void 0:n.themePrimary)&&!(null==(a=t.palette)?void 0:a.accent)&&(l.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var c=0,u=Object.keys(l.fonts);c<u.length;c++){var d=u[c];l.fonts[d]=(0,r.h)(l.fonts[d],t.defaultFontStyle,null==(s=null==t?void 0:t.fonts)?void 0:s[d])}return l}},27789(e,t,n){"use strict";n.d(t,{B:()=>a,b:()=>o});var r=n(55478);function o(e,t,n,o,l){return void 0===l&&(l=!1),s(a(e,t,(0,r.__assign)({primaryButtonBorder:"transparent",errorText:o?"#F1707B":"#a4262c",messageText:o?"#F3F2F1":"#323130",messageLink:o?"#6CB8F6":"#005A9E",messageLinkHovered:o?"#82C7FF":"#004578",infoIcon:o?"#C8C6C4":"#605e5c",errorIcon:o?"#F1707B":"#A80000",blockingIcon:o?"#442726":"#FDE7E9",warningIcon:o?"#C8C6C4":"#797775",severeWarningIcon:o?"#FCE100":"#D83B01",successIcon:o?"#92C353":"#107C10",infoBackground:o?"#323130":"#f3f2f1",errorBackground:o?"#442726":"#FDE7E9",blockingBackground:o?"#442726":"#FDE7E9",warningBackground:o?"#433519":"#FFF4CE",severeWarningBackground:o?"#4F2A0F":"#FED9CC",successBackground:o?"#393D1B":"#DFF6DD",warningHighlight:o?"#fff100":"#ffb900",successText:o?"#92c353":"#107C10"},n),o),l)}function a(e,t,n,o,a){void 0===a&&(a=!1);var s={},l=e||{},c=l.white,u=l.black,d=l.themePrimary,p=l.themeDark,f=l.themeDarker,h=l.themeDarkAlt,m=l.themeLighter,g=l.neutralLight,v=l.neutralLighter,y=l.neutralDark,b=l.neutralQuaternary,x=l.neutralQuaternaryAlt,C=l.neutralPrimary,k=l.neutralSecondary,w=l.neutralSecondaryAlt,S=l.neutralTertiary,_=l.neutralTertiaryAlt,E=l.neutralLighterAlt,P=l.accent;return c&&(s.bodyBackground=c,s.bodyFrameBackground=c,s.accentButtonText=c,s.buttonBackground=c,s.primaryButtonText=c,s.primaryButtonTextHovered=c,s.primaryButtonTextPressed=c,s.inputBackground=c,s.inputForegroundChecked=c,s.listBackground=c,s.menuBackground=c,s.cardStandoutBackground=c),u&&(s.bodyTextChecked=u,s.buttonTextCheckedHovered=u),d&&(s.link=d,s.primaryButtonBackground=d,s.inputBackgroundChecked=d,s.inputIcon=d,s.inputFocusBorderAlt=d,s.menuIcon=d,s.menuHeader=d,s.accentButtonBackground=d),p&&(s.primaryButtonBackgroundPressed=p,s.inputBackgroundCheckedHovered=p,s.inputIconHovered=p),f&&(s.linkHovered=f),h&&(s.primaryButtonBackgroundHovered=h),m&&(s.inputPlaceholderBackgroundChecked=m),g&&(s.bodyBackgroundChecked=g,s.bodyFrameDivider=g,s.bodyDivider=g,s.variantBorder=g,s.buttonBackgroundCheckedHovered=g,s.buttonBackgroundPressed=g,s.listItemBackgroundChecked=g,s.listHeaderBackgroundPressed=g,s.menuItemBackgroundPressed=g,s.menuItemBackgroundChecked=g),v&&(s.bodyBackgroundHovered=v,s.buttonBackgroundHovered=v,s.buttonBackgroundDisabled=v,s.buttonBorderDisabled=v,s.primaryButtonBackgroundDisabled=v,s.disabledBackground=v,s.listItemBackgroundHovered=v,s.listHeaderBackgroundHovered=v,s.menuItemBackgroundHovered=v),b&&(s.primaryButtonTextDisabled=b,s.disabledSubtext=b),x&&(s.listItemBackgroundCheckedHovered=x),S&&(s.disabledBodyText=S,s.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||S,s.buttonTextDisabled=S,s.inputIconDisabled=S,s.disabledText=S),C&&(s.bodyText=C,s.actionLink=C,s.buttonText=C,s.inputBorderHovered=C,s.inputText=C,s.listText=C,s.menuItemText=C),E&&(s.bodyStandoutBackground=E,s.defaultStateBackground=E),y&&(s.actionLinkHovered=y,s.buttonTextHovered=y,s.buttonTextChecked=y,s.buttonTextPressed=y,s.inputTextHovered=y,s.menuItemTextHovered=y),k&&(s.bodySubtext=k,s.focusBorder=k,s.inputBorder=k,s.smallInputBorder=k,s.inputPlaceholderText=k),w&&(s.buttonBorder=w),_&&(s.disabledBodySubtext=_,s.disabledBorder=_,s.buttonBackgroundChecked=_,s.menuDivider=_),P&&(s.accentButtonBackground=P),(null==t?void 0:t.elevation4)&&(s.cardShadow=t.elevation4),!o&&(null==t?void 0:t.elevation8)?s.cardShadowHovered=t.elevation8:s.variantBorderHovered&&(s.cardShadowHovered="0 0 1px "+s.variantBorderHovered),s=(0,r.__assign)((0,r.__assign)({},s),n)}function s(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}},57289(e,t,n){"use strict";n.d(t,{v:()=>a});var r={},o=void 0;try{o=window}catch(e){}function a(e,t){if(void 0!==o){var n=o.__packages__=o.__packages__||{};n[e]&&r[e]||(r[e]=t,(n[e]=n[e]||[]).push(t))}}a("@fluentui/set-version","6.0.0")},82540(e,t,n){"use strict";n.d(t,{Ke:()=>eb,gm:()=>eE,mu:()=>ev,pB:()=>tf.p,TW:()=>tp.T,QN:()=>eI,hT:()=>em,O7:()=>eg,lw:()=>ea,Km:()=>eN,CX:()=>e9,dX:()=>eD,EQ:()=>e4,K1:()=>ti,hJ:()=>ta,fF:()=>l,c3:()=>ek,Zq:()=>d.Z,L6:()=>ew,iD:()=>ex,sQ:()=>ef,BO:()=>s,O4:()=>e5,l8:()=>th.l,oA:()=>e8,up:()=>eh,Qg:()=>eS,S8:()=>e6,s:()=>a,Dm:()=>ee,i7:()=>f.i,mm:()=>eC,cs:()=>Z,pD:()=>tm,sW:()=>tl,af:()=>ey,nA:()=>c,Sq:()=>eT,aH:()=>ts});var r,o,a,s,l,c,u,d=n(7380);function p(e){var t={},n=function(n){if(e.hasOwnProperty(n)){var r;Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=(0,d.Z)(e[n]).toString()),r},enumerable:!0,configurable:!0})}};for(var r in e)n(r);return t}var f=n(96547),h="cubic-bezier(.1,.9,.2,1)",m="cubic-bezier(.1,.25,.75,.9)",g="0.167s",v="0.267s",y="0.367s",b="0.467s",x=(0,f.i)({from:{opacity:0},to:{opacity:1}}),C=(0,f.i)({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),k=en(-10),w=en(-20),S=en(-40),_=en(-400),E=en(10),P=en(20),I=en(40),T=en(400),D=er(10),A=er(20),R=er(-10),N=er(-20),B=eo(10),M=eo(20),F=eo(40),O=eo(400),L=eo(-10),H=eo(-20),z=eo(-40),V=eo(-400),U=ei(-10),j=ei(-20),W=ei(10),q=ei(20),G=(0,f.i)({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),K=(0,f.i)({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),X=(0,f.i)({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Y=(0,f.i)({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Q=(0,f.i)({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),J=(0,f.i)({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),Z={easeFunction1:h,easeFunction2:m,durationValue1:g,durationValue2:v,durationValue3:y,durationValue4:b},ee={slideRightIn10:et("".concat(x,",").concat(k),y,h),slideRightIn20:et("".concat(x,",").concat(w),y,h),slideRightIn40:et("".concat(x,",").concat(S),y,h),slideRightIn400:et("".concat(x,",").concat(_),y,h),slideLeftIn10:et("".concat(x,",").concat(E),y,h),slideLeftIn20:et("".concat(x,",").concat(P),y,h),slideLeftIn40:et("".concat(x,",").concat(I),y,h),slideLeftIn400:et("".concat(x,",").concat(T),y,h),slideUpIn10:et("".concat(x,",").concat(D),y,h),slideUpIn20:et("".concat(x,",").concat(A),y,h),slideDownIn10:et("".concat(x,",").concat(R),y,h),slideDownIn20:et("".concat(x,",").concat(N),y,h),slideRightOut10:et("".concat(C,",").concat(B),y,h),slideRightOut20:et("".concat(C,",").concat(M),y,h),slideRightOut40:et("".concat(C,",").concat(F),y,h),slideRightOut400:et("".concat(C,",").concat(O),y,h),slideLeftOut10:et("".concat(C,",").concat(L),y,h),slideLeftOut20:et("".concat(C,",").concat(H),y,h),slideLeftOut40:et("".concat(C,",").concat(z),y,h),slideLeftOut400:et("".concat(C,",").concat(V),y,h),slideUpOut10:et("".concat(C,",").concat(U),y,h),slideUpOut20:et("".concat(C,",").concat(j),y,h),slideDownOut10:et("".concat(C,",").concat(W),y,h),slideDownOut20:et("".concat(C,",").concat(q),y,h),scaleUpIn100:et("".concat(x,",").concat(G),y,h),scaleDownIn100:et("".concat(x,",").concat(X),y,h),scaleUpOut103:et("".concat(C,",").concat(Y),g,m),scaleDownOut98:et("".concat(C,",").concat(K),g,m),fadeIn100:et(x,g,m),fadeIn200:et(x,v,m),fadeIn400:et(x,y,m),fadeIn500:et(x,b,m),fadeOut100:et(C,g,m),fadeOut200:et(C,v,m),fadeOut400:et(C,y,m),fadeOut500:et(C,b,m),rotate90deg:et(Q,"0.1s",m),rotateN90deg:et(J,"0.1s",m)};function et(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function en(e){return(0,f.i)({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function er(e){return(0,f.i)({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function eo(e){return(0,f.i)({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function ei(e){return(0,f.i)({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}var ea=p(ee);!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(r||(r={})),function(e){e.Arabic="'".concat(r.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(r.Cyrillic,"'"),e.EastEuropean="'".concat(r.EastEuropean,"'"),e.Greek="'".concat(r.Greek,"'"),e.Hebrew="'".concat(r.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(r.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(r.Vietnamese,"'"),e.WestEuropean="'".concat(r.WestEuropean,"'"),e.Armenian="'".concat(r.Armenian,"'"),e.Georgian="'".concat(r.Georgian,"'")}(o||(o={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(a||(a={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(s||(s={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(l||(l={}));var es="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",el="'Segoe UI', '".concat(r.WestEuropean,"'"),ec={ar:o.Arabic,bg:o.Cyrillic,cs:o.EastEuropean,el:o.Greek,et:o.EastEuropean,he:o.Hebrew,hi:o.Hindi,hr:o.EastEuropean,hu:o.EastEuropean,ja:o.Japanese,kk:o.EastEuropean,ko:o.Korean,lt:o.EastEuropean,lv:o.EastEuropean,pl:o.EastEuropean,ru:o.Cyrillic,sk:o.EastEuropean,"sr-latn":o.EastEuropean,th:o.Thai,tr:o.EastEuropean,uk:o.Cyrillic,vi:o.Vietnamese,"zh-hans":o.ChineseSimplified,"zh-hant":o.ChineseTraditional,hy:o.Armenian,ka:o.Georgian};function eu(e){return"".concat(e,", ").concat(es)}function ed(e){for(var t in ec)if(ec.hasOwnProperty(t)&&e&&0===t.indexOf(e))return ec[t];return el}function ep(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function ef(e){var t=eu(ed(e));return{tiny:ep(a.mini,s.regular,t),xSmall:ep(a.xSmall,s.regular,t),small:ep(a.small,s.regular,t),smallPlus:ep(a.smallPlus,s.regular,t),medium:ep(a.medium,s.regular,t),mediumPlus:ep(a.mediumPlus,s.regular,t),large:ep(a.large,s.regular,t),xLarge:ep(a.xLarge,s.semibold,t),xLargePlus:ep(a.xLargePlus,s.semibold,t),xxLarge:ep(a.xxLarge,s.semibold,t),xxLargePlus:ep(a.xxLargePlus,s.semibold,t),superLarge:ep(a.superLarge,s.semibold,t),mega:ep(a.mega,s.semibold,t)}}var eh="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",em="@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)",eg=480,ev=640,ey=1024,eb=1366,ex=479,eC=639,ek=768;function ew(e,t){var n="number"==typeof e?" and (min-width: ".concat(e,"px)"):"",r="number"==typeof t?" and (max-width: ".concat(t,"px)"):"";return"@media only screen".concat(n).concat(r)}function eS(){return{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}}var e_=n(25733);function eE(e,t,n,r,o,a,s,l){return"number"!=typeof t&&t?eP(e,t):eP(e,{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:a,isFocusedOnly:s,borderRadius:l})}function eP(e,t){void 0===t&&(t={});var n,r,o=t.borderRadius,a=t.inset,s=void 0===a?0:a,l=t.width,u=void 0===l?1:l,d=t.position,p=void 0===d?"relative":d,f=t.highContrastStyle,h=t.borderColor,m=void 0===h?e.palette.white:h,g=t.outlineColor,v=void 0===g?e.palette.neutralSecondary:g,y=t.isFocusedOnly,b=void 0===y||y,x=t.pointerEvents;return{outline:"transparent",position:p,selectors:((n={"::-moz-focus-inner":{border:"0"}})[".".concat(e_.Y2," &").concat(b?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:x,left:s+1,top:s+1,bottom:s+1,right:s+1,border:"".concat(u,"px solid ").concat(m),outline:"".concat(u,"px solid ").concat(v),zIndex:c.FocusStyle,borderRadius:o,selectors:((r={})[eh]=f,r)},n)}}function eI(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(c||(c={}));var eT=function(e,t,n,r){void 0===n&&(n="border"),void 0===r&&(r=-1);var o,a,s,l="borderBottom"===n;return{borderColor:e,selectors:{":after":((o={pointerEvents:"none",content:"''",position:"absolute",left:l?0:r,top:r,bottom:r,right:l?0:r})[n]="2px solid ".concat(e),o.borderRadius=t,o.width="borderBottom"===n?"100%":void 0,(a={})[eh]=((s={})["border"===n?"borderColor":"borderBottomColor"]="Highlight",s),o.selectors=a,o)}}},eD={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},eA=n(59248),eR=(0,n(4825).J9)(function(e,t){var n=eA.n.getInstance();return t?Object.keys(e).reduce(function(t,r){return t[r]=n.getClassName(e[r]),t},{}):e});function eN(e,t,n){return eR(e,void 0!==n?n:t.disableGlobalClassNames)}var eB=n(55478),eM=n(46330),eF=n(59980),eO=n(81157),eL={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(u||(u={}));var eH={elevation4:u.depth4,elevation8:u.depth8,elevation16:u.depth16,elevation64:u.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},ez=n(66180),eV=n(74423),eU="https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets",ej=ef((0,eV.Z)());function eW(e,t,n,r){e="'".concat(e,"'");var o=void 0!==r?"local('".concat(r,"'),"):"";(0,ez.n)({fontFamily:e,src:o+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function eq(e,t,n,r,o){void 0===r&&(r="segoeui");var a="".concat(e,"/").concat(n,"/").concat(r);eW(t,a+"-light",s.light,o&&o+" Light"),eW(t,a+"-semilight",s.semilight,o&&o+" SemiLight"),eW(t,a+"-regular",s.regular,o),eW(t,a+"-semibold",s.semibold,o&&o+" SemiBold"),eW(t,a+"-bold",s.bold,o&&o+" Bold")}!function(e){if(e){var t="".concat(e,"/fonts");eq(t,r.Thai,"leelawadeeui-thai","leelawadeeui"),eq(t,r.Arabic,"segoeui-arabic"),eq(t,r.Cyrillic,"segoeui-cyrillic"),eq(t,r.EastEuropean,"segoeui-easteuropean"),eq(t,r.Greek,"segoeui-greek"),eq(t,r.Hebrew,"segoeui-hebrew"),eq(t,r.Vietnamese,"segoeui-vietnamese"),eq(t,r.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),eq(t,o.Selawik,"selawik","selawik"),eq(t,r.Armenian,"segoeui-armenian"),eq(t,r.Georgian,"segoeui-georgian"),eW("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),s.light),eW("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),s.semibold)}}(function(){var e,t,n=null==(e=(0,eM.z)())?void 0:e.FabricConfig;return null!=(t=null==n?void 0:n.fontBaseUrl)?t:eU}());var eG=n(40449);function eK(e,t,n,r,o){return void 0===o&&(o=!1),eY(eX(e,t,(0,eB.__assign)({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function eX(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,f=s.themeDarkAlt,h=s.themeLighter,m=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,x=s.neutralPrimary,C=s.neutralSecondary,k=s.neutralSecondaryAlt,w=s.neutralTertiary,S=s.neutralTertiaryAlt,_=s.neutralLighterAlt,E=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),p&&(a.linkHovered=p),f&&(a.primaryButtonBackgroundHovered=f),h&&(a.inputPlaceholderBackgroundChecked=h),m&&(a.bodyBackgroundChecked=m,a.bodyFrameDivider=m,a.bodyDivider=m,a.variantBorder=m,a.buttonBackgroundCheckedHovered=m,a.buttonBackgroundPressed=m,a.listItemBackgroundChecked=m,a.listHeaderBackgroundPressed=m,a.menuItemBackgroundPressed=m,a.menuItemBackgroundChecked=m),g&&(a.bodyBackgroundHovered=g,a.buttonBackgroundHovered=g,a.buttonBackgroundDisabled=g,a.buttonBorderDisabled=g,a.primaryButtonBackgroundDisabled=g,a.disabledBackground=g,a.listItemBackgroundHovered=g,a.listHeaderBackgroundHovered=g,a.menuItemBackgroundHovered=g),y&&(a.primaryButtonTextDisabled=y,a.disabledSubtext=y),b&&(a.listItemBackgroundCheckedHovered=b),w&&(a.disabledBodyText=w,a.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||w,a.buttonTextDisabled=w,a.inputIconDisabled=w,a.disabledText=w),x&&(a.bodyText=x,a.actionLink=x,a.buttonText=x,a.inputBorderHovered=x,a.inputText=x,a.listText=x,a.menuItemText=x),_&&(a.bodyStandoutBackground=_,a.defaultStateBackground=_),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),C&&(a.bodySubtext=C,a.focusBorder=C,a.inputBorder=C,a.smallInputBorder=C,a.inputPlaceholderText=C),k&&(a.buttonBorder=k),S&&(a.disabledBodySubtext=S,a.disabledBorder=S,a.buttonBackgroundChecked=S,a.menuDivider=S),E&&(a.accentButtonBackground=E),(null==t?void 0:t.elevation4)&&(a.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?a.cardShadowHovered=t.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=(0,eB.__assign)((0,eB.__assign)({},a),n)}function eY(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}function e$(e,t){void 0===t&&(t={});var n,r,o,a=(0,eG.h)({},e,t,{semanticColors:eX(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null==(n=t.palette)?void 0:n.themePrimary)&&!(null==(r=t.palette)?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s<l.length;s++){var c=l[s];a.fonts[c]=(0,eG.h)(a.fonts[c],t.defaultFontStyle,null==(o=null==t?void 0:t.fonts)?void 0:o[c])}return a}var eQ={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function eJ(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return e$({palette:eL,effects:eH,fonts:ej,spacing:eQ,isInverted:n,disableGlobalClassNames:!1,semanticColors:eK(eL,eH,void 0,n,t),rtl:void 0},e)}var eZ=eJ({}),e0=[],e1="theme";function e2(){var e,t,n,r=(0,eM.z)();(null==(t=null==r?void 0:r.FabricConfig)?void 0:t.legacyTheme)?e4(r.FabricConfig.legacyTheme):eF.X.getSettings([e1]).theme||((null==(n=null==r?void 0:r.FabricConfig)?void 0:n.theme)&&(eZ=eJ(r.FabricConfig.theme)),eF.X.applySettings(((e={})[e1]=eZ,e)))}function e5(e){return void 0===e&&(e=!1),!0===e&&(eZ=eJ({},e)),eZ}function e4(e,t){var n;return void 0===t&&(t=!1),eZ=eJ(e,t),(0,eO.EQ)((0,eB.__assign)((0,eB.__assign)((0,eB.__assign)((0,eB.__assign)({},eZ.palette),eZ.semanticColors),eZ.effects),e3(eZ))),eF.X.applySettings(((n={})[e1]=eZ,n)),e0.forEach(function(e){try{e(eZ)}catch(e){}}),eZ}function e3(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],a=e.fonts[o],s=0,l=Object.keys(a);s<l.length;s++){var c=l[s],u=o+c.charAt(0).toUpperCase()+c.slice(1),d=a[c];"fontSize"===c&&"number"==typeof d&&(d+="px"),t[u]=d}return t}e2();var e6={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},e8={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function e9(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}var e7=n(91219),te=n(55560),tt="icons",tn=e7.h.getValue(tt,{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),tr=eA.n.getInstance();tr&&tr.onReset&&tr.onReset(function(){for(var e in tn)tn.hasOwnProperty(e)&&tn[e].subset&&(tn[e].subset.className=void 0)});var to=function(e){return e.toLowerCase()};function ti(e,t){var n=(0,eB.__assign)((0,eB.__assign)({},e),{isRegistered:!1,className:void 0}),r=e.icons;for(var o in t=t?(0,eB.__assign)((0,eB.__assign)({},tn.__options),t):tn.__options,r)if(r.hasOwnProperty(o)){var a=r[o],s=to(o);tn[s]?td(o):tn[s]={code:a,subset:n}}}function ta(e){for(var t=tn.__options,n=function(e){var n=to(e);tn[n]?delete tn[n]:t.disableWarnings||(0,te.R)('The icon "'.concat(e,'" tried to unregister but was not registered.')),tn.__remapped[n]&&delete tn.__remapped[n],Object.keys(tn.__remapped).forEach(function(e){tn.__remapped[e]===n&&delete tn.__remapped[e]})},r=0,o=e;r<o.length;r++)n(o[r])}function ts(e,t){tn.__remapped[to(e)]=to(t)}function tl(e){var t=void 0,n=tn.__options;if(e=e?to(e):"",e=tn.__remapped[e]||e)if(t=tn[e]){var r=t.subset;r&&r.fontFace&&(r.isRegistered||((0,ez.n)(r.fontFace),r.isRegistered=!0),r.className||(r.className=(0,d.Z)(r.style,{fontFamily:r.fontFace.fontFamily,fontWeight:r.fontFace.fontWeight||"normal",fontStyle:r.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&(0,te.R)('The icon "'.concat(e,'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.'));return t}var tc=[],tu=void 0;function td(e){var t=tn.__options,n=2e3,r=10;t.disableWarnings||(tc.push(e),void 0===tu&&(tu=setTimeout(function(){(0,te.R)("Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: \n"+tc.slice(0,r).join(", ")+(tc.length>r?" (+ ".concat(tc.length-r," more)"):"")),tu=void 0,tc=[]},n)))}var tp=n(86482),tf=n(8754),th=n(35428),tm="https://res.cdn.office.net/files/fabric-cdn-prod_20230815.002";(0,n(57289).v)("@fluentui/style-utilities","8.9.18"),e2()},64597(e,t,n){"use strict";n.d(t,{a:()=>H});var r,o,a={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(r||(r={}));var s={elevation4:r.depth4,elevation8:r.depth8,elevation16:r.depth16,elevation64:r.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},l=n(22086),c=n(48890),u=n(68311);function d(e){var t=c.n.getInstance(),n=(0,u.bz)((0,l.Iy)(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{"+n+"}",!0),t.cacheClassName(r,n,[],["font-face",n])}}var p=n(55201),f="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",h="'Segoe UI', '"+p.Dn.WestEuropean+"'",m={ar:p.bi.Arabic,bg:p.bi.Cyrillic,cs:p.bi.EastEuropean,el:p.bi.Greek,et:p.bi.EastEuropean,he:p.bi.Hebrew,hi:p.bi.Hindi,hr:p.bi.EastEuropean,hu:p.bi.EastEuropean,ja:p.bi.Japanese,kk:p.bi.EastEuropean,ko:p.bi.Korean,lt:p.bi.EastEuropean,lv:p.bi.EastEuropean,pl:p.bi.EastEuropean,ru:p.bi.Cyrillic,sk:p.bi.EastEuropean,"sr-latn":p.bi.EastEuropean,th:p.bi.Thai,tr:p.bi.EastEuropean,uk:p.bi.Cyrillic,vi:p.bi.Vietnamese,"zh-hans":p.bi.ChineseSimplified,"zh-hant":p.bi.ChineseTraditional,hy:p.bi.Armenian,ka:p.bi.Georgian};function g(e){return e+", "+f}function v(e){for(var t in m)if(m.hasOwnProperty(t)&&e&&0===t.indexOf(e))return m[t];return h}function y(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function b(e){var t=g(v(e));return{tiny:y(p.s.mini,p.BO.regular,t),xSmall:y(p.s.xSmall,p.BO.regular,t),small:y(p.s.small,p.BO.regular,t),smallPlus:y(p.s.smallPlus,p.BO.regular,t),medium:y(p.s.medium,p.BO.regular,t),mediumPlus:y(p.s.mediumPlus,p.BO.regular,t),large:y(p.s.large,p.BO.regular,t),xLarge:y(p.s.xLarge,p.BO.semibold,t),xLargePlus:y(p.s.xLargePlus,p.BO.semibold,t),xxLarge:y(p.s.xxLarge,p.BO.semibold,t),xxLargePlus:y(p.s.xxLargePlus,p.BO.semibold,t),superLarge:y(p.s.superLarge,p.BO.semibold,t),mega:y(p.s.mega,p.BO.semibold,t)}}function x(){return"u">typeof window&&!!(window.document&&window.document.createElement)}function C(e){if(x()&&!("u"<typeof document)){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var k=void 0;try{k=window}catch(e){}function w(e){if(x()&&void 0!==k){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:k}}function S(e){var t=null;try{var n=w();t=n?n.localStorage.getItem(e):null}catch(e){}return t}function _(e){var t=null;try{var n=w();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}var E="language",P="https://static2.sharepointonline.com/files/fabric/assets",I=b(function e(e){if(void 0===e&&(e="sessionStorage"),void 0===o){var t=C(),n="localStorage"===e?S(E):"sessionStorage"===e?_(E):void 0;n&&(o=n),void 0===o&&t&&(o=t.documentElement.getAttribute("lang")),void 0===o&&(o="en")}return o}());function T(e,t,n,r){d({fontFamily:e="'"+e+"'",src:(void 0!==r?"local('"+r+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function D(e,t,n,r,o){void 0===r&&(r="segoeui");var a=e+"/"+n+"/"+r;T(t,a+"-light",p.BO.light,o&&o+" Light"),T(t,a+"-semilight",p.BO.semilight,o&&o+" SemiLight"),T(t,a+"-regular",p.BO.regular,o),T(t,a+"-semibold",p.BO.semibold,o&&o+" SemiBold"),T(t,a+"-bold",p.BO.bold,o&&o+" Bold")}function A(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)R(e||{},o[r]);return e}function R(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!=typeof o||null===o||Array.isArray(o))e[r]=o;else{var a=n.indexOf(o)>-1;e[r]=a?o:R(e[r]||{},o,n)}}return n.pop(),e}!function(e){if(e){var t=e+"/fonts";D(t,p.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),D(t,p.Dn.Arabic,"segoeui-arabic"),D(t,p.Dn.Cyrillic,"segoeui-cyrillic"),D(t,p.Dn.EastEuropean,"segoeui-easteuropean"),D(t,p.Dn.Greek,"segoeui-greek"),D(t,p.Dn.Hebrew,"segoeui-hebrew"),D(t,p.Dn.Vietnamese,"segoeui-vietnamese"),D(t,p.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),D(t,p.bi.Selawik,"selawik","selawik"),D(t,p.Dn.Armenian,"segoeui-armenian"),D(t,p.Dn.Georgian,"segoeui-georgian"),T("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",p.BO.light),T("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",p.BO.semibold)}}(function(){var e,t,n=null==(e=w())?void 0:e.FabricConfig;return null!=(t=null==n?void 0:n.fontBaseUrl)?t:P}());var N=n(55478);function B(e,t,n,r,o){return void 0===o&&(o=!1),F(M(e,t,(0,N.__assign)({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function M(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,p=s.themeDarker,f=s.themeDarkAlt,h=s.themeLighter,m=s.neutralLight,g=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,b=s.neutralQuaternaryAlt,x=s.neutralPrimary,C=s.neutralSecondary,k=s.neutralSecondaryAlt,w=s.neutralTertiary,S=s.neutralTertiaryAlt,_=s.neutralLighterAlt,E=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),p&&(a.linkHovered=p),f&&(a.primaryButtonBackgroundHovered=f),h&&(a.inputPlaceholderBackgroundChecked=h),m&&(a.bodyBackgroundChecked=m,a.bodyFrameDivider=m,a.bodyDivider=m,a.variantBorder=m,a.buttonBackgroundCheckedHovered=m,a.buttonBackgroundPressed=m,a.listItemBackgroundChecked=m,a.listHeaderBackgroundPressed=m,a.menuItemBackgroundPressed=m,a.menuItemBackgroundChecked=m),g&&(a.bodyBackgroundHovered=g,a.buttonBackgroundHovered=g,a.buttonBackgroundDisabled=g,a.buttonBorderDisabled=g,a.primaryButtonBackgroundDisabled=g,a.disabledBackground=g,a.listItemBackgroundHovered=g,a.listHeaderBackgroundHovered=g,a.menuItemBackgroundHovered=g),y&&(a.primaryButtonTextDisabled=y,a.disabledSubtext=y),b&&(a.listItemBackgroundCheckedHovered=b),w&&(a.disabledBodyText=w,a.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||w,a.buttonTextDisabled=w,a.inputIconDisabled=w,a.disabledText=w),x&&(a.bodyText=x,a.actionLink=x,a.buttonText=x,a.inputBorderHovered=x,a.inputText=x,a.listText=x,a.menuItemText=x),_&&(a.bodyStandoutBackground=_,a.defaultStateBackground=_),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),C&&(a.bodySubtext=C,a.focusBorder=C,a.inputBorder=C,a.smallInputBorder=C,a.inputPlaceholderText=C),k&&(a.buttonBorder=k),S&&(a.disabledBodySubtext=S,a.disabledBorder=S,a.buttonBackgroundChecked=S,a.menuDivider=S),E&&(a.accentButtonBackground=E),(null==t?void 0:t.elevation4)&&(a.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?a.cardShadowHovered=t.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=(0,N.__assign)((0,N.__assign)({},a),n)}function F(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}function O(e,t){void 0===t&&(t={});var n,r,o,a=A({},e,t,{semanticColors:M(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null==(n=t.palette)?void 0:n.themePrimary)&&!(null==(r=t.palette)?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,l=Object.keys(a.fonts);s<l.length;s++){var c=l[s];a.fonts[c]=A(a.fonts[c],t.defaultFontStyle,null==(o=null==t?void 0:t.fonts)?void 0:o[c])}return a}var L={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function H(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return O({palette:a,effects:s,fonts:I,spacing:L,isInverted:n,disableGlobalClassNames:!1,semanticColors:B(a,s,void 0,n,t),rtl:void 0},e)}},55201(e,t,n){"use strict";var r,o,a,s,l;n.d(t,{BO:()=>s,Dn:()=>r,bi:()=>o,fF:()=>l,s:()=>a}),function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(r||(r={})),function(e){e.Arabic="'"+r.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+r.Cyrillic+"'",e.EastEuropean="'"+r.EastEuropean+"'",e.Greek="'"+r.Greek+"'",e.Hebrew="'"+r.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+r.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+r.Vietnamese+"'",e.WestEuropean="'"+r.WestEuropean+"'",e.Armenian="'"+r.Armenian+"'",e.Georgian="'"+r.Georgian+"'"}(o||(o={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(a||(a={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(s||(s={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(l||(l={}))},22086(e,t,n){"use strict";var r;function o(){return void 0===r&&(r="u">typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),r}function a(){return{rtl:o()}}n.d(t,{Iy:()=>a}),r=o()},48890(e,t,n){"use strict";n.d(t,{n:()=>p});var r,o=n(55478),a=0,s=1,l=2,c="__stylesheet__",u="u">typeof navigator&&/rv:11.0/.test(navigator.userAgent),d={};try{d=window||{}}catch(e){}var p=function(){function e(e,t){var n,r,l,c,u,d;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,o.__assign)({injectionMode:"u"<typeof document?a:s,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!=(n=null==t?void 0:t.classNameToArgs)?n:this._classNameToArgs,this._counter=null!=(r=null==t?void 0:t.counter)?r:this._counter,this._keyToClassName=null!=(c=null!=(l=this._config.classNameCache)?l:null==t?void 0:t.keyToClassName)?c:this._keyToClassName,this._preservedRules=null!=(u=null==t?void 0:t.preservedRules)?u:this._preservedRules,this._rules=null!=(d=null==t?void 0:t.rules)?d:this._rules}return e.getInstance=function(){if(!(r=d[c])||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var t=(null==d?void 0:d.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);r=n,d[c]=n}return r},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=(0,o.__assign)((0,o.__assign)({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter(function(t){return t!==e})}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter(function(t){return t!==e})}},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=n!==a?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case s:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case l:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach(function(e){return e()})},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(e){return e()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return!this._styleElement&&"u">typeof document&&(this._styleElement=this._createStyleElement(),u||window.requestAnimationFrame(function(){e._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}()},68311(e,t,n){"use strict";n.d(t,{bz:()=>A});var r,o,a={};function s(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=a[n]=a[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}function l(){var e;if(!r){var t="u">typeof document?document:void 0,n="u">typeof navigator?navigator:void 0,o=null==(e=null==n?void 0:n.userAgent)?void 0:e.toLowerCase();r=t?{isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(o&&o.indexOf("firefox")>-1),isOpera:!!(o&&o.indexOf("opera")>-1),isMs:!!(n&&(/rv:11.0/i.test(n.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return r}var c={"user-select":1};function u(e,t){var n=l(),r=e[t];if(c[r]){var o=e[t+1];c[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var d=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function p(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=d.indexOf(n)>-1,a=n.indexOf("--")>-1,s=o||a?"":"px";e[t+1]=""+r+s}}var f="left",h="right",m="@noflip",g=((o={})[f]=h,o[h]=f,o),v={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function y(e,t,n){if(e.rtl){var r=t[n];if(r){var o=t[n+1];if("string"==typeof o&&o.indexOf(m)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(f)>=0)t[n]=r.replace(f,h);else if(r.indexOf(h)>=0)t[n]=r.replace(h,f);else if(String(o).indexOf(f)>=0)t[n+1]=o.replace(f,h);else if(String(o).indexOf(h)>=0)t[n+1]=o.replace(h,f);else if(g[r])t[n]=g[r];else if(v[o])t[n+1]=v[o];else switch(r){case"margin":case"padding":t[n+1]=x(o);break;case"box-shadow":t[n+1]=b(o,0)}}}}function b(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}function x(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}var C="displayName";function k(e){var t=e&&e["&"];return t?t.displayName:void 0}var w=/\:global\((.+?)\)/g;function S(e){if(!w.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map(function(e){return":global("+e.trim()+")"}).join(", ")]);return t.reverse().reduce(function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)},e)}function _(e,t){return e.indexOf(":global(")>=0?e.replace(w,"$1"):0===e.indexOf(":")?t+e:0>e.indexOf("&")?t+" "+e:e}function E(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?P([r],t,n=n+"{"+e):n.indexOf(",")>-1?S(n).split(",").map(function(e){return e.trim()}).forEach(function(n){return P([r],t,_(n,e))}):P([r],t,_(n,e))}function P(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=Stylesheet.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,s=e;a<s.length;a++){var l=s[a];if("string"==typeof l){var c=r.argsFromClassName(l);c&&P(c,t,n)}else if(Array.isArray(l))P(l,t,n);else for(var u in l)if(l.hasOwnProperty(u)){var d=l[u];if("selectors"===u){var p=l.selectors;for(var f in p)p.hasOwnProperty(f)&&E(n,t,f,p[f])}else"object"==typeof d?null!==d&&E(n,t,u,d):void 0!==d&&("margin"===u||"padding"===u?I(o,u,d):o[u]=d)}}return t}function I(e,t,n){var r="string"==typeof n?tokenizeWithParentheses(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map(function(e){return e+" !important"})),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function T(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,a=t.__order;o<a.length;o++){var s=a[o];n.push(s);var l=t[s];for(var c in l)l.hasOwnProperty(c)&&void 0!==l[c]&&(r=!0,n.push(c,l[c]))}return r?n.join(""):void 0}function D(e,t){return t<=0?"":1===t?e:e+D(e,t-1)}function A(e,t){if(!t)return"";var n=[];for(var r in t)t.hasOwnProperty(r)&&r!==C&&void 0!==t[r]&&n.push(r,t[r]);for(var o=0;o<n.length;o+=2)s(n,o),p(n,o),y(e,n,o),u(n,o);for(var o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}},93635(e,t,n){"use strict";n.d(t,{L:()=>r});let r={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackground3Static:"var(--colorBrandBackground3Static)",colorBrandBackground4Static:"var(--colorBrandBackground4Static)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralCardBackground:"var(--colorNeutralCardBackground)",colorNeutralCardBackgroundHover:"var(--colorNeutralCardBackgroundHover)",colorNeutralCardBackgroundPressed:"var(--colorNeutralCardBackgroundPressed)",colorNeutralCardBackgroundSelected:"var(--colorNeutralCardBackgroundSelected)",colorNeutralCardBackgroundDisabled:"var(--colorNeutralCardBackgroundDisabled)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerBackground3Hover:"var(--colorStatusDangerBackground3Hover)",colorStatusDangerBackground3Pressed:"var(--colorStatusDangerBackground3Pressed)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)",zIndexBackground:"var(--zIndexBackground, 0)",zIndexContent:"var(--zIndexContent, 1)",zIndexOverlay:"var(--zIndexOverlay, 1000)",zIndexPopup:"var(--zIndexPopup, 2000)",zIndexMessages:"var(--zIndexMessages, 3000)",zIndexFloating:"var(--zIndexFloating, 4000)",zIndexPriority:"var(--zIndexPriority, 5000)",zIndexDebug:"var(--zIndexDebug, 6000)"}},40261(e,t,n){"use strict";n.d(t,{j:()=>o});var r=n(46330),o=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout(function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._logError(e)}},t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,o=0,a=(0,r.z)(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var s=function(){try{n._immediateIds&&delete n._immediateIds[o],e.apply(n._parent)}catch(e){n._logError(e)}};o=a.setTimeout(s,0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(e,t){var n=(0,r.z)(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval(function(){try{e.apply(n._parent)}catch(e){n._logError(e)}},t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r,o,a=this;if(this._isDisposed)return this._noop;var s=t||0,l=!0,c=!0,u=0,d=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing);var p=function(t){var n=Date.now(),f=n-u,h=l?s-f:s;return f>=s&&(!t||l)?(u=n,d&&(a.clearTimeout(d),d=null),r=e.apply(a._parent,o)):null===d&&c&&(d=a.setTimeout(p,h)),r};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,p(!0)}},e.prototype.debounce=function(e,t,n){var r,o,a=this;if(this._isDisposed){var s=function(){};return s.cancel=function(){},s.flush=function(){return null},s.pending=function(){return!1},s}var l=t||0,c=!1,u=!0,d=null,p=0,f=Date.now(),h=null;n&&"boolean"==typeof n.leading&&(c=n.leading),n&&"boolean"==typeof n.trailing&&(u=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(d=n.maxWait);var m=function(e){h&&(a.clearTimeout(h),h=null),f=e},g=function(t){m(t),r=e.apply(a._parent,o)},v=function(e){var t=Date.now(),n=!1;e&&(c&&t-p>=l&&(n=!0),p=t);var o=t-p,s=l-o,m=t-f,y=!1;return null!==d&&(m>=d&&h?y=!0:s=Math.min(s,d-m)),o>=l||y||n?g(t):(null===h||!e)&&u&&(h=a.setTimeout(v,s)),r},y=function(){return!!h},b=function(){return y()&&g(Date.now()),r},x=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,v(!0)};return x.cancel=function(){y()&&m(Date.now())},x.flush=b,x.pending=y,x},e.prototype.requestAnimationFrame=function(e,t){var n=this,o=0,a=(0,r.z)(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var s=function(){try{n._animationFrameIds&&delete n._animationFrameIds[o],e.apply(n._parent)}catch(e){n._logError(e)}};o=a.requestAnimationFrame?a.requestAnimationFrame(s):a.setTimeout(s,0),this._animationFrameIds[o]=!0}return o},e.prototype.cancelAnimationFrame=function(e,t){var n=(0,r.z)(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}()},38161(e,t,n){"use strict";n.d(t,{K:()=>f});var r=n(55478),o=n(40887),a=n(40261),s=n(91518),l=n(77748),c=n(23471),u=n(49787);function d(e,t,n){for(var r=0,o=n.length;r<o;r++)p(e,t,n[r])}function p(e,t,n){var r=e[n],o=t[n];(r||o)&&(e[n]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o&&(e=o.apply(this,t)),r!==o&&(e=r.apply(this,t)),e})}function f(){return null}!function(e){function t(n,r){var o=e.call(this,n,r)||this;return d(o,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),o}(0,r.__extends)(t,e),t.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new a.j(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new s.g(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){(0,u.A)(this.className,this.props,e)},t.prototype._warnMutuallyExclusive=function(e){(0,c.Y)(this.className,this.props,e)},t.prototype._warnConditionallyRequiredProps=function(e,t,n){(0,l.J)(this.className,this.props,e,t,n)},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"==typeof e&&e(t),"object"==typeof e&&(e.current=t))}}(o.Component)},99751(e,t,n){"use strict";n.d(t,{P:()=>s});var r=n(55478),o=n(40887),a=n(46330),s=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:void 0===(0,a.z)()},n}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout(function(){e.setState({isRendered:!0})},t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?o.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(o.Component)},91518(e,t,n){"use strict";n.d(t,{g:()=>o});var r=n(50118),o=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,o,a){var s;if(e._isElement(t)){if("u">typeof document&&document.createEvent){var l=document.createEvent("HTMLEvents");l.initEvent(n,a||!1,!0),(0,r.kp)(l,o),s=t.dispatchEvent(l)}else if("u">typeof document&&document.createEventObject){var c=document.createEventObject(o);t.fireEvent("on"+n,c)}}else for(;t&&!1!==s;){var u=t.__events__,d=u?u[n]:null;if(d){for(var p in d)if(d.hasOwnProperty(p))for(var f=d[p],h=0;!1!==s&&h<f.length;h++){var m=f[h];m.objectCallback&&(s=m.objectCallback.call(m.parent,o))}}t=a?t.parent:null}return s},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"u">typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var a=this;if(n.indexOf(",")>-1)for(var s=n.split(/[ ,]+/),l=0;l<s.length;l++)this.on(t,s[l],r,o);else{var c=this._parent,u={target:t,eventName:n,parent:c,callback:r,options:o},s=t.__events__=t.__events__||{};if(s[n]=s[n]||{count:0},s[n][this._id]=s[n][this._id]||[],s[n][this._id].push(u),s[n].count++,e._isElement(t)){var d=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!a._isDisposed){try{if(e=r.apply(c,t),!1===e&&t[0]){var o=t[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(e){}return e}};u.elementCallback=d,t.addEventListener?t.addEventListener(n,d,o):t.attachEvent&&t.attachEvent("on"+n,d)}else u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!a._isDisposed)return r.apply(c,e)};this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var a=this._eventRecords[o];if((!e||e===a.target)&&(!t||t===a.eventName)&&(!n||n===a.callback)&&("boolean"!=typeof r||r===a.options)){var s=a.target.__events__,l=s[a.eventName],c=l?l[this._id]:null;c&&(1!==c.length&&n?(l.count--,c.splice(c.indexOf(a),1)):(l.count-=c.length,delete s[a.eventName][this._id]),l.count||delete s[a.eventName]),a.elementCallback&&(a.target.removeEventListener?a.target.removeEventListener(a.eventName,a.elementCallback,a.options):a.target.detachEvent&&a.target.detachEvent("on"+a.eventName,a.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}()},50103(e,t,n){"use strict";n.d(t,{N:()=>a});var r=n(40887),o=n(31068),a=function(e){var t=e.providerRef,n=e.layerRoot,a=r.useState([])[0],s=r.useContext(o.dM),l=void 0!==s&&!n,c=r.useMemo(function(){return l?void 0:{providerRef:t,registeredProviders:a,registerProvider:function(e){a.push(e),null==s||s.registerProvider(e)},unregisterProvider:function(e){null==s||s.unregisterProvider(e);var t=a.indexOf(e);t>=0&&a.splice(t,1)}}},[t,a,s,l]);return(r.useEffect(function(){if(c)return c.registerProvider(c.providerRef),function(){return c.unregisterProvider(c.providerRef)}},[c]),c)?r.createElement(o.dM.Provider,{value:c},e.children):r.createElement(r.Fragment,null,e.children)}},91219(e,t,n){"use strict";n.d(t,{h:()=>l});var r=n(46330),o="__globalSettings__",a="__callbacks__",s=0,l=function(){function e(){}return e.getValue=function(e,t){var n=c();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=c(),r=n[a],o=n[e];if(t!==o){n[e]=t;var s={oldValue:o,value:t,key:e};for(var l in r)r.hasOwnProperty(l)&&r[l](s)}return t},e.addChangeListener=function(e){var t=e.__id__,n=u();t||(t=e.__id__=String(s++)),n[t]=e},e.removeChangeListener=function(e){var t=u();delete t[e.__id__]},e}();function c(){var e,t=(0,r.z)()||{};return t[o]||(t[o]=((e={})[a]={},e)),t[o]}function u(){return c()[a]}},20006(e,t,n){"use strict";n.d(t,{c:()=>r});var r={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222}},49892(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(function(e){return e}).join(" ").trim();return""===n?void 0:n}n.d(t,{_:()=>r})},36428(e,t,n){"use strict";function r(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function o(e,t){var n=r(e,t);if(!(n<0))return e[n]}function a(e,t,n){var r=e.slice();return r.splice(t,0,n),r}function s(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n.d(t,{I6:()=>o,SL:()=>r,Ty:()=>a,r1:()=>s})},57273(e,t,n){"use strict";n.d(t,{Z:()=>f});var r=n(59248),o=n(35428),a=n(35523),s=n(46330),l=50,c=5,u=0,d=r.n.getInstance();d&&d.onReset&&d.onReset(function(){return u++});var p="__retval__";function f(e){void 0===e&&(e={});var t=new Map,n=0,r=0,d=u;return function(f,h){if(void 0===h&&(h={}),e.useStaticStyles&&"function"==typeof f&&f.__noStyleOverride__)return f(h);r++;var g,v=t,y=h.theme,b=y&&void 0!==y.rtl?y.rtl:(0,a.jI)(),x=e.disableCaching;if(d!==u&&(d=u,t=new Map,n=0),e.disableCaching||(v=m(t,f),v=m(v,h)),(x||!v[p])&&(void 0===f?v[p]={}:v[p]=(0,o.L)(["function"==typeof f?f(h):f],{rtl:!!b,specificityMultiplier:e.useStaticStyles?c:void 0}),!x&&n++),n>(e.cacheSize||l)){var C=(0,s.z)();(null==(g=null==C?void 0:C.FabricConfig)?void 0:g.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),t.clear(),n=0,e.disableCaching=!0}return v[p]}}function h(e,t){return t=g(t),e.has(t)||e.set(t,new Map),e.get(t)}function m(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=h(e,r[n]);else e=h(e,t);else if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=h(e,t[o]));return e}function g(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}},10286(e,t,n){"use strict";n.d(t,{C:()=>c});var r=n(55478),o=n(40887),a=n(4825);function s(e){var t=e;return(0,a.J5)(function(n){if(e===n)throw Error("Attempted to compose a component with itself.");var s=n,l=(0,a.J5)(function(e){return function(t){return o.createElement(s,(0,r.__assign)({},t,{defaultRender:e}))}});return function(e){var n=e.defaultRender;return o.createElement(t,(0,r.__assign)({},e,{defaultRender:n?l(n):s}))}})}var l=(0,a.J5)(s);function c(e,t){return l(e)(t)}},98904(e,t,n){"use strict";n.d(t,{K:()=>a});var r=n(36428),o=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(t):o&&(o.current=t)}}},a=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&(0,r.r1)(t.refs,e)||(t.resolver=o(t)),t.refs=e,t.resolver}}},34534(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var a=o[r];if(a)if("string"==typeof a)n.push(a);else if(a.hasOwnProperty("toString")&&"function"==typeof a.toString)n.push(a.toString());else for(var s in a)a[s]&&n.push(s)}return n.join(" ")}n.d(t,{A:()=>r})},59980(e,t,n){"use strict";n.d(t,{X:()=>u});var r=n(55478),o=n(91219),a="customizations",s={settings:{},scopedSettings:{},inCustomizerContext:!1},l=o.h.getValue(a,{settings:{},scopedSettings:{},inCustomizerContext:!1}),c=[],u=function(){function e(){}return e.reset=function(){l.settings={},l.scopedSettings={}},e.applySettings=function(t){l.settings=(0,r.__assign)((0,r.__assign)({},l.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){l.scopedSettings[t]=(0,r.__assign)((0,r.__assign)({},l.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=s);for(var r={},o=t&&n.scopedSettings[t]||{},a=t&&l.scopedSettings[t]||{},c=0,u=e;c<u.length;c++){var d=u[c];r[d]=o[d]||n.settings[d]||a[d]||l.settings[d]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){c.push(e)},e.unobserve=function(e){c=c.filter(function(t){return t!==e})},e._raiseChange=function(){e._suppressUpdates||c.forEach(function(e){return e()})},e}()},68578(e,t,n){"use strict";n.d(t,{z:()=>r});var r=n(40887).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},1965(e,t,n){"use strict";n.d(t,{T:()=>u});var r=n(55478),o=n(40887),a=n(59980);function s(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var l=n(68578),c=n(86482);function u(e,t,n){return function(u){var d,p=((d=function(s){function d(e){var t=s.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return(0,r.__extends)(d,s),d.prototype.componentDidMount=function(){a.X.observe(this._onSettingChanged)},d.prototype.componentWillUnmount=function(){a.X.unobserve(this._onSettingChanged)},d.prototype.render=function(){var s=this;return o.createElement(l.z.Consumer,null,function(l){var d=a.X.getSettings(t,e,l.customizations),p=s.props;if(d.styles&&"function"==typeof d.styles&&(d.styles=d.styles((0,r.__assign)((0,r.__assign)({},d),p))),n&&d.styles){if(s._styleCache.default!==d.styles||s._styleCache.component!==p.styles){var f=(0,c.T)(d.styles,p.styles);s._styleCache.default=d.styles,s._styleCache.component=p.styles,s._styleCache.merged=f}return o.createElement(u,(0,r.__assign)({},d,p,{styles:s._styleCache.merged}))}return o.createElement(u,(0,r.__assign)({},d,p))})},d.prototype._onSettingChanged=function(){this.forceUpdate()},d}(o.Component)).displayName="Customized"+e,d);return s(u,p)}}},50639(e,t,n){"use strict";n.d(t,{m:()=>s});var r=n(40887),o=n(59980),a=n(68578);function s(e,t){var n=l(),s=r.useContext(a.z).customizations,c=s.inCustomizerContext;return r.useEffect(function(){return c||o.X.observe(n),function(){c||o.X.unobserve(n)}},[c]),o.X.getSettings(e,t,s)}function l(){var e=r.useState(0)[1];return function(){return e(function(e){return++e})}}},9585(e,t,n){"use strict";function r(){return"u">typeof window&&!!(window.document&&window.document.createElement)}n.d(t,{S:()=>r})},93367(e,t,n){"use strict";n.d(t,{Y:()=>o});var r=n(9585);function o(e){if((0,r.S)()&&!("u"<typeof document)){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}},46330(e,t,n){"use strict";n.d(t,{z:()=>a});var r=n(9585),o=void 0;try{o=window}catch(e){}function a(e){if((0,r.S)()&&void 0!==o){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:o}}},53325(e,t,n){"use strict";function r(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}n.d(t,{on:()=>r})},86984(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach(function(t){return t&&t.apply(e,n)})}}function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=r(e,e[n],t[n]))}n.d(t,{i:()=>o})},66647(e,t,n){"use strict";n.d(t,{F2:()=>k,lo:()=>T,HC:()=>S,_l:()=>P,yv:()=>b,Ep:()=>A,vO:()=>y,j5:()=>h,dm:()=>m,Cm:()=>v,oR:()=>g,SE:()=>E,eX:()=>x,Z5:()=>_,nA:()=>D,S0:()=>w});var r=n(29989);function o(e,t){var n=(0,r.w)(e,function(e){return e.hasAttribute(t)});return n&&n.getAttribute(t)}var a=n(19949),s=n(10816),l=n(46330),c=n(93367),u="data-is-focusable",d="data-is-visible",p="data-focuszone-id",f="data-is-sub-focuszone";function h(e,t,n){return x(e,t,!0,!1,!1,n)}function m(e,t,n){return b(e,t,!0,!1,!0,n)}function g(e,t,n,r){return void 0===r&&(r=!0),x(e,t,r,!1,!1,n,!1,!0)}function v(e,t,n,r){return void 0===r&&(r=!0),b(e,t,r,!1,!0,n,!1,!0)}function y(e,t){var n=x(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(T(n),!0)}function b(e,t,n,r,o,a,s,l){if(!t||!s&&t===e)return null;var c=C(t);if(o&&c&&(a||!(S(t)||_(t)))){var u=b(e,t.lastElementChild,!0,!0,!0,a,s,l);if(u){if(l&&w(u,!0)||!l)return u;var d=b(e,u.previousElementSibling,!0,!0,!0,a,s,l);if(d)return d;for(var p=u.parentElement;p&&p!==t;){var f=b(e,p.previousElementSibling,!0,!0,!0,a,s,l);if(f)return f;p=p.parentElement}}}if(n&&c&&w(t,l))return t;var h=b(e,t.previousElementSibling,!0,!0,!0,a,s,l);return h||(r?null:b(e,t.parentElement,!0,!1,!1,a,s,l))}function x(e,t,n,r,o,a,s,l,c){if(!t||t===e&&o&&!s)return null;var u=(c?k:C)(t);if(n&&u&&w(t,l))return t;if(!o&&u&&(a||!(S(t)||_(t)))){var d=x(e,t.firstElementChild,!0,!0,!1,a,s,l,c);if(d)return d}if(t===e)return null;var p=x(e,t.nextElementSibling,!0,!0,!1,a,s,l,c);return p||(r?null:x(e,t.parentElement,!1,!1,!0,a,s,l,c))}function C(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(d);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function k(e){return!!e&&C(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function w(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute(u):null,a=null!==r&&n>=0,s=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||a);return t?-1!==n&&s:s}function S(e){return!!(e&&e.getAttribute&&e.getAttribute(p))}function _(e){return!!(e&&e.getAttribute&&"true"===e.getAttribute(f))}function E(e){var t=(0,c.Y)(e),n=t&&t.activeElement;return!!(n&&(0,a.s)(e,n))}function P(e,t){return"true"!==o(e,t)}var I=void 0;function T(e){if(e){var t=(0,l.z)(e);t&&(void 0!==I&&t.cancelAnimationFrame(I),I=t.requestAnimationFrame(function(){e&&e.focus(),I=void 0}))}}function D(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var a=o[r],s=n.children[Math.min(a,n.children.length-1)];if(!s)break;n=s}return w(n)&&C(n)?n:x(e,n,!0)||b(e,n)}function A(e,t){for(var n=[];t&&e&&t!==e;){var r=(0,s.P)(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}},78780(e,t,n){"use strict";n.d(t,{O:()=>u});var r=n(46330),o=n(59248),a="__currentId__",s="id__",l=(0,r.z)()||{};void 0===l[a]&&(l[a]=0);var c=!1;function u(e){if(!c){var t=o.n.getInstance();t&&t.onReset&&t.onReset(d),c=!0}return(void 0===e?s:e)+l[a]++}function d(e){void 0===e&&(e=0),l[a]=e}},69104(e,t,n){"use strict";n.d(t,{_:()=>a});var r=n(68032),o={label:r.q6,audio:r.Sg,video:r.Fo,ol:r.p3,li:r.P4,a:r.t0,button:r.uw,input:r.QQ,textarea:r.Sh,select:r.Cq,option:r.tK,table:r.al,tr:r.g0,th:r.cr,td:r.k3,colGroup:r.lA,col:r.Qf,form:r.Gp,iframe:r.Cs,img:r.xM};function a(e,t,n){var a=e&&o[e]||r.vt;return(0,r.G1)(t,a,n)}},76325(e,t,n){"use strict";n.d(t,{N:()=>o});var r=n(55478);function o(e,t){for(var n=(0,r.__assign)({},t),o=0,a=Object.keys(e);o<a.length;o++){var s=a[o];void 0===n[s]&&(n[s]=e[s])}return n}},32175(e,t,n){"use strict";n.d(t,{l:()=>o});var r=n(46330),o=function(){var e,t=(0,r.z)();return!!(null==(e=null==t?void 0:t.navigator)?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}},10059(e,t,n){"use strict";n.d(t,{f:()=>o});var r=n(86984);function o(e){(0,r.i)(e,{componentDidMount:a,componentDidUpdate:s,componentWillUnmount:l})}function a(){c(this.props.componentRef,this)}function s(e){e.componentRef!==this.props.componentRef&&(c(e.componentRef,null),c(this.props.componentRef,this))}function l(){c(this.props.componentRef,null)}function c(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}},6056(e,t,n){"use strict";n.d(t,{I:()=>d});var r=/[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g,o=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,a=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,s=/\s+/g,l=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function c(e,t){var n="",r=e.split(" ");return(2===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[1].charAt(0).toUpperCase()):3===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[2].charAt(0).toUpperCase()):0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),t&&n.length>1)?n.charAt(1)+n.charAt(0):n}function u(e){return(e=(e=(e=e.replace(r,"")).replace(o,"")).replace(s," ")).trim()}function d(e,t,n){return e?(e=u(e),l.test(e)||!n&&a.test(e))?"":c(e,t):""}},74423(e,t,n){"use strict";n.d(t,{Z:()=>u});var r,o=n(93367),a=n(46330);function s(e){var t=null;try{var n=(0,a.z)();t=n?n.localStorage.getItem(e):null}catch(e){}return t}var l=n(11804),c="language";function u(e){if(void 0===e&&(e="sessionStorage"),void 0===r){var t=(0,o.Y)(),n="localStorage"===e?s(c):"sessionStorage"===e?l.G(c):void 0;n&&(r=n),void 0===r&&t&&(r=t.documentElement.getAttribute("lang")),void 0===r&&(r="en")}return r}},4825(e,t,n){"use strict";n.d(t,{J5:()=>p,J9:()=>d});var r=n(59248),o=!1,a=0,s={empty:!0},l={},c="u"<typeof WeakMap?null:WeakMap;function u(){a++}function d(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!c)return e;if(!o){var s,l=r.n.getInstance();l&&l.onReset&&r.n.getInstance().onReset(u),o=!0}var d=0,p=a;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var l=s;(void 0===s||p!==a||t>0&&d>t)&&(s=h(),d=0,p=a),l=s;for(var c=0;c<r.length;c++){var u=f(r[c]);l.map.has(u)||l.map.set(u,h()),l=l.map.get(u)}return!l.hasOwnProperty("value")&&(l.value=e.apply(void 0,r),d++),n&&(null===l.value||void 0===l.value)&&(l.value=e.apply(void 0,r)),l.value}}function p(e){if(!c)return e;var t=new c;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function f(e){return e?"object"==typeof e||"function"==typeof e?e:(l[e]||(l[e]={val:e}),l[e]):s}function h(){return{map:c?new c:null}}},40449(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,a=t;r<a.length;r++)o(e||{},a[r]);return e}function o(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var a=t[r];if("object"!=typeof a||null===a||Array.isArray(a))e[r]=a;else{var s=n.indexOf(a)>-1;e[r]=s?a:o(e[r]||{},a,n)}}return n.pop(),e}n.d(t,{h:()=>r})},85889(e,t,n){"use strict";n.d(t,{u:()=>r});var r=function(){return!!window&&!!window.navigator&&!!window.navigator.userAgent&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)}},16044(e,t,n){"use strict";n.d(t,{q:()=>a});var r=n(93367),o=["TEMPLATE","STYLE","SCRIPT"];function a(e){var t=(0,r.Y)(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var a=0,l=e.parentElement.children;a<l.length;a++){var c=l[a],u=c.getAttribute("aria-hidden");c!==e&&(null==u?void 0:u.toLowerCase())!=="true"&&-1===o.indexOf(c.tagName)&&n.push([c,u])}e=e.parentElement}return n.forEach(function(e){e[0].setAttribute("aria-hidden","true")}),function(){s(n),n=[]}}function s(e){e.forEach(function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")})}},50118(e,t,n){"use strict";function r(e,t){if(!e||!t)return!e&&!t;for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return a.apply(this,[null,e].concat(t))}function a(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,a=n;o<a.length;o++){var s=a[o];if(s)for(var l in s)s.hasOwnProperty(l)&&(!e||e(l))&&(t[l]=s[l])}return t}function s(e,t){var n={};for(var r in e)-1===t.indexOf(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}n.d(t,{ab:()=>r,cJ:()=>s,kp:()=>o})},97337(e,t,n){"use strict";n.d(t,{c:()=>a});var r,o=n(46330);function a(e){var t;if(void 0===r||e){var n=(0,o.z)(),a=null==(t=null==n?void 0:n.navigator)?void 0:t.userAgent;r=!!a&&-1!==a.indexOf("Macintosh")}return!!r}},68032(e,t,n){"use strict";n.d(t,{Cq:()=>v,Cs:()=>E,Fo:()=>u,G1:()=>T,Gp:()=>_,JM:()=>I,P4:()=>p,QQ:()=>m,Qf:()=>S,Sg:()=>c,Sh:()=>g,al:()=>b,cr:()=>C,g0:()=>x,k3:()=>k,lA:()=>w,p3:()=>d,q6:()=>l,t0:()=>f,tK:()=>y,uw:()=>h,vt:()=>s,xM:()=>P});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var a=o[r],s=Array.isArray(a)?a:Object.keys(a),l=0,c=s;l<c.length;l++)n[c[l]]=1;return n},o=r(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),a=r(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),s=r(a,o),l=r(s,["form"]),c=r(s,["height","loop","muted","preload","src","width"]),u=r(c,["poster"]),d=r(s,["start"]),p=r(s,["value"]),f=r(s,["download","href","hrefLang","media","rel","target","type"]),h=r(s,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),m=r(h,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),g=r(h,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),v=r(h,["form","multiple","required"]),y=r(s,["selected","value"]),b=r(s,["cellPadding","cellSpacing"]),x=s,C=r(s,["rowSpan","scope"]),k=r(s,["colSpan","headers","rowSpan","scope"]),w=r(s,["span"]),S=r(s,["span"]),_=r(s,["acceptCharset","action","encType","encType","method","noValidate","target"]),E=r(s,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),P=r(s,["alt","crossOrigin","height","src","srcSet","useMap","width"]),I=s;function T(e,t,n){for(var r=Array.isArray(t),o={},a=Object.keys(e),s=0,l=a;s<l.length;s++){var c=l[s];(!r&&t[c]||r&&t.indexOf(c)>=0||0===c.indexOf("data-")||0===c.indexOf("aria-"))&&(!n||(null==n?void 0:n.indexOf(c))===-1)&&(o[c]=e[c])}return o}},60498(e,t,n){"use strict";n.d(t,{j:()=>s});var r=n(4825);function o(e){return(0,r.J5)(function(t){var n=(0,r.J5)(function(e){return function(n){return t(n,e)}});return function(r,o){return e(r,o?n(o):t)}})}var a=(0,r.J5)(o);function s(e,t){return a(e)(t)}},35523(e,t,n){"use strict";n.d(t,{SM:()=>p,jI:()=>u});var r,o=n(20006),a=n(93367),s=n(11804),l=n(58600),c="isRTL";function u(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===r){var t=(0,s.G)(c);null!==t&&d(r="1"===t);var n=(0,a.Y)();void 0===r&&n&&(r="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")),(0,l.DU)(r))}return!!r}function d(e,t){void 0===t&&(t=!1);var n=(0,a.Y)();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&(0,s.S)(c,e?"1":"0"),r=e,(0,l.DU)(r)}function p(e,t){return void 0===t&&(t={}),u(t)&&(e===o.c.left?e=o.c.right:e===o.c.right&&(e=o.c.left)),e}},17940(e,t,n){"use strict";n.d(t,{Hc:()=>v,K0:()=>p,XJ:()=>g,c8:()=>d,fY:()=>m,mh:()=>h});var r,o=n(93367),a=n(7380),s=n(46330),l=0,c=(0,a.Z)({overflow:"hidden !important"}),u="data-is-scrollable",d=function(e,t){if(e){var n=0,r=null,o=function(e){1===e.targetTouches.length&&(n=e.targetTouches[0].clientY)},a=function(e){if(1===e.targetTouches.length&&(e.stopPropagation(),r)){var t=e.targetTouches[0].clientY-n,o=v(e.target);o&&(r=o),0===r.scrollTop&&t>0&&e.preventDefault(),r.scrollHeight-Math.ceil(r.scrollTop)<=r.clientHeight&&t<0&&e.preventDefault()}};t.on(e,"touchstart",o,{passive:!1}),t.on(e,"touchmove",a,{passive:!1}),r=e}},p=function(e,t){if(e){var n=function(e){e.stopPropagation()};t.on(e,"touchmove",n,{passive:!1})}},f=function(e){e.preventDefault()};function h(){var e=(0,o.Y)();e&&e.body&&!l&&(e.body.classList.add(c),e.body.addEventListener("touchmove",f,{passive:!1,capture:!1})),l++}function m(){if(l>0){var e=(0,o.Y)();e&&e.body&&1===l&&(e.body.classList.remove(c),e.body.removeEventListener("touchmove",f)),l--}}function g(){if(void 0===r){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),r=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return r}function v(e){for(var t=e,n=(0,o.Y)(e);t&&t!==n.body;){if("true"===t.getAttribute(u))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(u)){var r=getComputedStyle(t),a=r?r.getPropertyValue("overflow-y"):"";if(a&&("scroll"===a||"auto"===a))return t}t=t.parentElement}return t&&t!==n.body||(t=(0,s.z)(e)),t}},11804(e,t,n){"use strict";n.d(t,{G:()=>o,S:()=>a});var r=n(46330);function o(e){var t=null;try{var n=(0,r.z)();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function a(e,t){var n;try{null==(n=(0,r.z)())||n.sessionStorage.setItem(e,t)}catch(e){}}},25733(e,t,n){"use strict";n.d(t,{Fy:()=>l,Y2:()=>o});var r=n(46330),o="ms-Fabric--isFocusVisible",a="ms-Fabric--isFocusHidden";function s(e,t){e&&(e.classList.add(t?o:a),e.classList.remove(t?a:o))}function l(e,t,n){var o;n?n.forEach(function(t){return s(t.current,e)}):s(null==(o=(0,r.z)(t))?void 0:o.document.body,e)}},93030(e,t,n){"use strict";n.d(t,{I:()=>c});var r=n(55478),o=n(40887),a=n(8754),s=n(50639),l=["theme","styles"];function c(e,t,n,c,u){var d=(c=c||{scope:"",fields:void 0}).scope,p=c.fields,f=void 0===p?l:p,h=o.forwardRef(function(l,c){var u=o.useRef(),p=(0,s.m)(f,d),h=p.styles,m=(p.dir,(0,r.__rest)(p,["styles","dir"])),g=n?n(l):void 0,v=u.current&&u.current.__cachedInputs__||[],y=l.styles;if(!u.current||h!==v[1]||y!==v[2]){var b=function(e){return(0,a.p)(e,t,h,y)};b.__cachedInputs__=[t,h,y],b.__noStyleOverride__=!h&&!y,u.current=b}return o.createElement(e,(0,r.__assign)({ref:c},m,g,l,{styles:u.current}))});h.displayName="Styled".concat(e.displayName||e.name);var m=u?o.memo(h):h;return h.displayName&&(m.displayName=h.displayName),m}},31068(e,t,n){"use strict";n.d(t,{vk:()=>g,MO:()=>v,dM:()=>m});var r,o=n(40887),a=n(46330),s=n(20006),l=((r={})[s.c.up]=1,r[s.c.down]=1,r[s.c.left]=1,r[s.c.right]=1,r[s.c.home]=1,r[s.c.end]=1,r[s.c.tab]=1,r[s.c.pageUp]=1,r[s.c.pageDown]=1,r);function c(e){return!!l[e]}var u=n(25733),d=new WeakMap,p=new WeakMap;function f(e,t){var n,r=d.get(e);return n=r?r+t:1,d.set(e,n),n}function h(e){var t=p.get(e);return t||(t={onMouseDown:function(t){return y(t,e.registeredProviders)},onPointerDown:function(t){return b(t,e.registeredProviders)},onKeyDown:function(t){return x(t,e.registeredProviders)},onKeyUp:function(t){return C(t,e.registeredProviders)}},p.set(e,t)),t}var m=o.createContext(void 0);function g(e){var t=o.useContext(m);o.useEffect(function(){var n,r,o,s,l,c,u,d,p=(0,a.z)(null==e?void 0:e.current);if(p&&(null==(n=p.FabricConfig)?void 0:n.disableFocusRects)!==!0){var m=p;if((null==(r=null==t?void 0:t.providerRef)?void 0:r.current)&&(null==(s=null==(o=null==t?void 0:t.providerRef)?void 0:o.current)?void 0:s.addEventListener)){m=t.providerRef.current;var g=h(t);l=g.onMouseDown,c=g.onPointerDown,u=g.onKeyDown,d=g.onKeyUp}else l=y,c=b,u=x,d=C;var v=f(m,1);return v<=1&&(m.addEventListener("mousedown",l,!0),m.addEventListener("pointerdown",c,!0),m.addEventListener("keydown",u,!0),m.addEventListener("keyup",d,!0)),function(){var e;p&&(null==(e=p.FabricConfig)?void 0:e.disableFocusRects)!==!0&&0===(v=f(m,-1))&&(m.removeEventListener("mousedown",l,!0),m.removeEventListener("pointerdown",c,!0),m.removeEventListener("keydown",u,!0),m.removeEventListener("keyup",d,!0))}}},[t,e])}var v=function(e){return g(e.rootRef),null};function y(e,t){(0,u.Fy)(!1,e.target,t)}function b(e,t){"mouse"!==e.pointerType&&(0,u.Fy)(!1,e.target,t)}function x(e,t){c(e.which)&&(0,u.Fy)(!0,e.target,t)}function C(e,t){c(e.which)&&(0,u.Fy)(!0,e.target,t)}},97204(e,t,n){"use strict";n.d(t,{E:()=>o});var r=n(40887),o=(0,n(9585).S)()?r.useLayoutEffect:r.useEffect},55560(e,t,n){"use strict";n.d(t,{R:()=>r});function r(e){console&&console.warn&&console.warn(e)}},77748(e,t,n){"use strict";function r(e,t,n,r,o){}n.d(t,{J:()=>r})},49787(e,t,n){"use strict";function r(e,t,n){}n.d(t,{A:()=>r})},23471(e,t,n){"use strict";function r(e,t,n){}n.d(t,{Y:()=>r})},3542(e,t,n){"use strict";n.d(t,{X:()=>a});var r=n(27471),o=n(27055);function a(e,t,n=r.A){let s=n(),l=null,c=null;return function(n){let{dir:r,renderer:a}=n,u="ltr"===r;return u?null===l&&(l=(0,o.N)(e,r)):null===c&&(c=(0,o.N)(e,r)),s(a,t),u?l:c}}},1487(e,t,n){"use strict";n.d(t,{EJ:()=>l,Ut:()=>d,ed:()=>s,k1:()=>a,qw:()=>u,wn:()=>c});let r="u"<typeof window?n.g:window,o="@griffel/",a=function e(e,t){return r[Symbol.for(o+e)]||(r[Symbol.for(o+e)]=t),r[Symbol.for(o+e)]}("DEFINITION_LOOKUP_TABLE",{}),s="data-make-styles-bucket",l="data-priority",c=10,u={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},d="DO_NOT_USE_DIRECTLY: @griffel/reset-value"},27471(e,t,n){"use strict";n.d(t,{A:()=>r});let r=()=>{let e={};return function(t,n){void 0===e[t.id]&&(t.insertCSSRules(n),e[t.id]=!0)}}},95750(e,t,n){"use strict";n.d(t,{z:()=>l});var r=n(1487),o=n(98896),a=n(27055);let s={};function l(){let e=null,t="",n="",l=Array(arguments.length);for(let e=0;e<arguments.length;e++){let o=arguments[e];if("string"==typeof o&&""!==o){let a=o.indexOf("___");if(-1===a)t+=o+" ";else{let s=o.substr(a,r.wn);a>0&&(t+=o.slice(0,a)),n+=s,l[e]=s}}}if(""===n)return t.slice(0,-1);let c=s[n];if(void 0!==c)return t+c;let u=[];for(let t=0;t<arguments.length;t++){let n=l[t];if(n){let t=r.k1[n];t&&(u.push(t[0]),e=t[1])}}let d=Object.assign.apply(Object,[{}].concat(u)),[p,f]=(0,a.z)(d,e),h=(0,o.G)(f,e,l),m=h+" "+p;return s[n]=m,r.k1[h]=[d,e],t+m}},27055(e,t,n){"use strict";n.d(t,{N:()=>s,z:()=>a});var r=n(1487),o=n(98896);function a(e,t){let n="",r="";for(let o in e){let a=e[o];if(0===a){r+=o+" ";continue}let s=Array.isArray(a),l="rtl"===t?(s?a[1]:a)+" ":(s?a[0]:a)+" ";n+=l,r+=l}return[n.slice(0,-1),r.slice(0,-1)]}function s(e,t){let n={};for(let s in e){let[l,c]=a(e[s],t);if(""===c){n[s]="";continue}let u=(0,o.G)(c,t),d=u+(""===l?"":" "+l);r.k1[u]=[e[s],t],n[s]=d}return n}},98896(e,t,n){"use strict";n.d(t,{G:()=>a});var r=n(79284);function o(e){let t=e.length;if(7===t)return e;for(let n=t;n<7;n++)e+="0";return e}function a(e,t,n=[]){return"___"+o((0,r.A)(e+t))}},1180(e,t,n){"use strict";function r(e){return Array.isArray(e)?e:[e]}n.d(t,{J:()=>y});var o=n(1487);function a(e,t,n,r){let a=[];if(r[o.ed]=t,r[o.EJ]=String(n),e)for(let t in r)e.setAttribute(t,r[t]);return{elementAttributes:r,insertRule:function(t){return(null==e?void 0:e.sheet)?e.sheet.insertRule(t,e.sheet.cssRules.length):a.push(t)},element:e,bucketName:t,cssRules:()=>(null==e?void 0:e.sheet)?Array.from(e.sheet.cssRules).map(e=>e.cssText):a}}let s=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((e,t,n)=>(e[t]=n,e),{});function l(e,t,n){return("m"===e?e+t:e)+n}function c(e,t,n,r,o={}){var s,u;let p="m"===e,f=null!=(s=o.m)?s:"0",h=null!=(u=o.p)?u:0,m=l(e,f,h);if(!r.stylesheets[m]){let s=t&&t.createElement("style"),l=a(s,e,h,Object.assign({},r.styleElementAttributes,p&&{media:f}));r.stylesheets[m]=l,t&&s&&t.head.insertBefore(s,d(t,n,e,r,o))}return r.stylesheets[m]}function u(e,t,n){var r,a;return t+(null!=(r=n.m)?r:"")===e.getAttribute(o.ed)+(null!=(a=e.media)?a:"")}function d(e,t,n,r,a={}){var l,c;let p=s[n],f=null!=(l=a.m)?l:"",h=null!=(c=a.p)?c:0,m=e=>p-s[e.getAttribute(o.ed)],g=e.head.querySelectorAll(`[${o.ed}]`);if("m"===n){let t=e.head.querySelectorAll(`[${o.ed}="${n}"]`);t.length&&(g=t,m=e=>r.compareMediaQueries(f,e.media))}let v=e=>u(e,n,a)?h-Number(e.getAttribute("data-priority")):m(e),y=g.length,b=y-1;for(;b>=0;){let e=g.item(b);if(v(e)>0)return e.nextSibling;b--}return y>0?g.item(0):t?t.nextSibling:null}function p(e,t){try{e.insertRule(t)}catch(e){}}let f=0,h=(e,t)=>e<t?-1:+(e>t);function m(e="u"<typeof document?void 0:document,t={}){let{classNameHashSalt:n,unstable_filterCSSRule:o,insertionPoint:a,styleElementAttributes:s,compareMediaQueries:l=h}=t,u={classNameHashSalt:n,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(s),compareMediaQueries:l,id:`d${f++}`,insertCSSRules(t){for(let n in t){let s=t[n];for(let t=0,l=s.length;t<l;t++){let[l,d]=r(s[t]),f=c(n,e,a||null,u,d);!u.insertionCache[l]&&(u.insertionCache[l]=n,o?o(l)&&p(f,l):p(f,l))}}}};return u}var g=n(40887);let v=g.createContext(m());function y(){return g.useContext(v)}},16609(e,t,n){"use strict";n.d(t,{e:()=>a,m:()=>s});var r=n(40887);let o=r.createContext("ltr"),a=({children:e,dir:t})=>r.createElement(o.Provider,{value:t},e);function s(){return r.useContext(o)}},9625(e,t,n){"use strict";n.d(t,{y:()=>c});var r=n(27471);function o(e,t,n,a=r.A){let s=a();return function(r){let{dir:o,renderer:a}=r,l="ltr"===o?e:t||e;return s(a,Array.isArray(n)?{r:n}:n),l}}var a=n(35437),s=n(1180),l=n(16609);function c(e,t,n){let r=o(e,t,n,a.A);return function(){return r({dir:(0,l.m)(),renderer:(0,s.J)()})}}},84782(e,t,n){"use strict";n.d(t,{X:()=>l});var r=n(3542),o=n(35437),a=n(1180),s=n(16609);function l(e,t){let n=(0,r.X)(e,t,o.A);return function(){return n({dir:(0,s.m)(),renderer:(0,a.J)()})}}},35437(e,t,n){"use strict";function r(){return"u">typeof window&&!!(window.document&&window.document.createElement)}n.d(t,{A:()=>s});var o=n(40887);let a=o.useInsertionEffect?o.useInsertionEffect:void 0,s=()=>{let e={};return function(t,n){a&&r()?a(()=>{t.insertCSSRules(n)},[t,n]):void 0===e[t.id]&&(t.insertCSSRules(n),e[t.id]=!0)}}},88869(e,t,n){"use strict";n.d(t,{n:()=>t_});var r=n(27471),o=n(79284);function a(e){return e.reduce(function(e,t){var n=t[0],r=t[1];return e[n]=r,e[r]=n,e},{})}function s(e){return"boolean"==typeof e}function l(e){return"function"==typeof e}function c(e){return"number"==typeof e}function u(e){return null==e}function d(e){return e&&"object"==typeof e}function p(e){return"string"==typeof e}function f(e,t){return -1!==e.indexOf(t)}function h(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function m(e,t,n,r){return t+h(n)+r}function g(e){var t=e.indexOf(".");if(-1===t)e=100-parseFloat(e)+"%";else{var n=e.length-t-2;e=(e=100-parseFloat(e)).toFixed(n)+"%"}return e}function v(e){return e.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,t){var n=e.list,r=e.state,o=(t.match(/\(/g)||[]).length,a=(t.match(/\)/g)||[]).length;return r.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+t:n.push(t),r.parensDepth+=o-a,{list:n,state:r}},{list:[],state:{parensDepth:0}}).list}function y(e){var t=v(e);if(t.length<=3||t.length>4)return e;var n=t[0],r=t[1],o=t[2];return[n,t[3],o,r].join(" ")}function b(e){return!s(e)&&!u(e)}function x(e){for(var t=[],n=0,r=0,o=!1;r<e.length;)o||","!==e[r]?("("===e[r]?o=!0:")"===e[r]&&(o=!1),r++):(t.push(e.substring(n,r).trim()),n=++r);return n!=r&&t.push(e.substring(n,r+1)),t}var C={padding:function(e){var t=e.value;return c(t)?t:y(t)},textShadow:function(e){return x(e.value).map(function(e){return e.replace(/(^|\s)(-*)([.|\d]+)/,function(e,t,n,r){return"0"===r?e:""+t+(""===n?"-":"")+r})}).join(",")},borderColor:function(e){return y(e.value)},borderRadius:function(e){var t=e.value;if(c(t))return t;if(f(t,"/")){var n=t.split("/"),r=n[0],o=n[1];return C.borderRadius({value:r.trim()})+" / "+C.borderRadius({value:o.trim()})}var a=v(t);switch(a.length){case 2:return a.reverse().join(" ");case 4:var s=a[0],l=a[1],u=a[2];return[l,s,a[3],u].join(" ");default:return t}},background:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,o=e.bgImgDirectionRegex,a=e.bgPosDirectionRegex;if(c(t))return t;var s=t.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return t=t.replace(s,C.backgroundPosition({value:s,valuesToConvert:n,isRtl:r,bgPosDirectionRegex:a})),C.backgroundImage({value:t,valuesToConvert:n,bgImgDirectionRegex:o})},backgroundImage:function(e){var t=e.value,n=e.valuesToConvert,r=e.bgImgDirectionRegex;return f(t,"url(")||f(t,"linear-gradient(")?t.replace(r,function(e,t,r){return e.replace(r,n[r])}):t},backgroundPosition:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,o=e.bgPosDirectionRegex;return t.replace(r?/^((-|\d|\.)+%)/:null,function(e,t){return g(t)}).replace(o,function(e){return n[e]})},backgroundPositionX:function(e){var t=e.value,n=e.valuesToConvert,r=e.isRtl,o=e.bgPosDirectionRegex;return c(t)?t:C.backgroundPosition({value:t,valuesToConvert:n,isRtl:r,bgPosDirectionRegex:o})},transition:function(e){var t=e.value,n=e.propertiesToConvert;return t.split(/,\s*/g).map(function(e){var t=e.split(" ");return t[0]=n[t[0]]||t[0],t.join(" ")}).join(", ")},transitionProperty:function(e){var t=e.value,n=e.propertiesToConvert;return t.split(/,\s*/g).map(function(e){return n[e]||e}).join(", ")},transform:function(e){var t=e.value,n="[^\\u0020-\\u007e]",r="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",o="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|")+r+")"+("(?:[_a-z0-9-]|"+n+"|")+r)+")")+"*)?)|(?:inherit|auto))",a=RegExp("(translateX\\s*\\(\\s*)"+o+"(\\s*\\))","gi"),s=RegExp("(translate\\s*\\(\\s*)"+o+"((?:\\s*,\\s*"+o+"){0,1}\\s*\\))","gi"),l=RegExp("(translate3d\\s*\\(\\s*)"+o+"((?:\\s*,\\s*"+o+"){0,2}\\s*\\))","gi"),c=RegExp("(rotate[ZY]?\\s*\\(\\s*)"+o+"(\\s*\\))","gi");return t.replace(a,m).replace(s,m).replace(l,m).replace(c,m)}};C.objectPosition=C.backgroundPosition,C.margin=C.padding,C.borderWidth=C.padding,C.boxShadow=C.textShadow,C.webkitBoxShadow=C.boxShadow,C.mozBoxShadow=C.boxShadow,C.WebkitBoxShadow=C.boxShadow,C.MozBoxShadow=C.boxShadow,C.borderStyle=C.borderColor,C.webkitTransform=C.transform,C.mozTransform=C.transform,C.WebkitTransform=C.transform,C.MozTransform=C.transform,C.transformOrigin=C.backgroundPosition,C.webkitTransformOrigin=C.transformOrigin,C.mozTransformOrigin=C.transformOrigin,C.WebkitTransformOrigin=C.transformOrigin,C.MozTransformOrigin=C.transformOrigin,C.webkitTransition=C.transition,C.mozTransition=C.transition,C.WebkitTransition=C.transition,C.MozTransition=C.transition,C.webkitTransitionProperty=C.transitionProperty,C.mozTransitionProperty=C.transitionProperty,C.WebkitTransitionProperty=C.transitionProperty,C.MozTransitionProperty=C.transitionProperty,C["text-shadow"]=C.textShadow,C["border-color"]=C.borderColor,C["border-radius"]=C.borderRadius,C["background-image"]=C.backgroundImage,C["background-position"]=C.backgroundPosition,C["background-position-x"]=C.backgroundPositionX,C["object-position"]=C.objectPosition,C["border-width"]=C.padding,C["box-shadow"]=C.textShadow,C["-webkit-box-shadow"]=C.textShadow,C["-moz-box-shadow"]=C.textShadow,C["border-style"]=C.borderColor,C["-webkit-transform"]=C.transform,C["-moz-transform"]=C.transform,C["transform-origin"]=C.transformOrigin,C["-webkit-transform-origin"]=C.transformOrigin,C["-moz-transform-origin"]=C.transformOrigin,C["-webkit-transition"]=C.transition,C["-moz-transition"]=C.transition,C["transition-property"]=C.transitionProperty,C["-webkit-transition-property"]=C.transitionProperty,C["-moz-transition-property"]=C.transitionProperty;var k=a([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),w=["content"],S=a([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),_=RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),E=RegExp("(left)|(right)");function P(e){return Object.keys(e).reduce(function(t,n){var r=e[n];if(p(r)&&(r=r.trim()),f(w,n))return t[n]=r,t;var o=I(n,r),a=o.key,s=o.value;return t[a]=s,t},Array.isArray(e)?[]:{})}function I(e,t){var n=/\/\*\s?@noflip\s?\*\//.test(t),r=n?e:T(e),o=n?t:D(r,t);return{key:r,value:o}}function T(e){return k[e]||e}function D(e,t){if(!b(t))return t;if(d(t))return P(t);var n,r=c(t),o=l(t),a=r||o?t:t.replace(/ !important.*?$/,""),s=!r&&a.length!==t.length,u=C[e];return(n=u?u({value:a,valuesToConvert:S,propertiesToConvert:k,isRtl:!0,bgImgDirectionRegex:_,bgPosDirectionRegex:E}):S[a]||a,s)?n+" !important":n}var A=n(1487);let R=/[A-Z]/g,N=/^ms-/,B={};function M(e){return"-"+e.toLowerCase()}function F(e){if(Object.prototype.hasOwnProperty.call(B,e))return B[e];if("--"===e.substr(0,2))return e;let t=e.replace(R,M);return B[e]=N.test(t)?"-"+t:t}function O(e){return"&"===e.charAt(0)?e.slice(1):e}var L="-moz-",H="-webkit-",z="comm",V="rule",U="decl",j="@media",W="@import",q="@supports",G="@keyframes",K="@layer",X=Math.abs,Y=String.fromCharCode,Q=Object.assign;function J(e,t){return 45^er(e,0)?(((t<<2^er(e,0))<<2^er(e,1))<<2^er(e,2))<<2^er(e,3):0}function Z(e){return e.trim()}function ee(e,t){return(e=t.exec(e))?e[0]:e}function et(e,t,n){return e.replace(t,n)}function en(e,t,n){return e.indexOf(t,n)}function er(e,t){return 0|e.charCodeAt(t)}function eo(e,t,n){return e.slice(t,n)}function ei(e){return e.length}function ea(e){return e.length}function es(e,t){return t.push(e),e}function el(e,t){return e.map(t).join("")}function ec(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function eu(e,t,n,r){switch(e.type){case K:if(e.children.length)break;case W:case U:return e.return=e.return||e.value;case z:return"";case G:return e.return=e.value+"{"+ec(e.children,r)+"}";case V:if(!ei(e.value=e.props.join(",")))return""}return ei(n=ec(e.children,r))?e.return=e.value+"{"+n+"}":""}var ed=1,ep=1,ef=0,eh=0,em=0,eg="";function ev(e,t,n,r,o,a,s,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:ed,column:ep,length:s,return:"",siblings:l}}function ey(e,t){return Q(ev("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function eb(){return em}function ex(){return em=eh>0?er(eg,--eh):0,ep--,10===em&&(ep=1,ed--),em}function eC(){return em=eh<ef?er(eg,eh++):0,ep++,10===em&&(ep=1,ed++),em}function ek(){return er(eg,eh)}function ew(){return eh}function eS(e,t){return eo(eg,e,t)}function e_(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eE(e){return ed=ep=1,ef=ei(eg=e),eh=0,[]}function eP(e){return eg="",e}function eI(e){return Z(eS(eh-1,eN(91===e?e+2:40===e?e+1:e)))}function eT(e){return eP(eA(eE(e)))}function eD(e){for(;em=ek();)if(em<33)eC();else break;return e_(e)>2||e_(em)>3?"":" "}function eA(e){for(;eC();)switch(e_(em)){case 0:es(eM(eh-1),e);break;case 2:es(eI(em),e);break;default:es(Y(em),e)}return e}function eR(e,t){for(;--t&&eC()&&!(em<48)&&!(em>102)&&(!(em>57)||!(em<65))&&(!(em>70)||!(em<97)););return eS(e,ew()+(t<6&&32==ek()&&32==eC()))}function eN(e){for(;eC();)switch(em){case e:return eh;case 34:case 39:34!==e&&39!==e&&eN(em);break;case 40:41===e&&eN(e);break;case 92:eC()}return eh}function eB(e,t){for(;eC();)if(e+em===57)break;else if(e+em===84&&47===ek())break;return"/*"+eS(t,eh-1)+"*"+Y(47===e?e:eC())}function eM(e){for(;!e_(ek());)eC();return eS(e,eh)}function eF(e){return eP(eO("",null,null,null,[""],e=eE(e),0,[0],e))}function eO(e,t,n,r,o,a,s,l,c){for(var u=0,d=0,p=s,f=0,h=0,m=0,g=1,v=1,y=1,b=0,x="",C=o,k=a,w=r,S=x;v;)switch(m=b,b=eC()){case 40:if(108!=m&&58==er(S,p-1)){-1!=en(S+=et(eI(b),"&","&\f"),"&\f",X(u?l[u-1]:0))&&(y=-1);break}case 34:case 39:case 91:S+=eI(b);break;case 9:case 10:case 13:case 32:S+=eD(m);break;case 92:S+=eR(ew()-1,7);continue;case 47:switch(ek()){case 42:case 47:es(eH(eB(eC(),ew()),t,n,c),c);break;default:S+="/"}break;case 123*g:l[u++]=ei(S)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+d:-1==y&&(S=et(S,/\f/g,"")),h>0&&ei(S)-p&&es(h>32?ez(S+";",r,n,p-1,c):ez(et(S," ","")+";",r,n,p-2,c),c);break;case 59:S+=";";default:if(es(w=eL(S,t,n,u,d,o,l,x,C=[],k=[],p,a),a),123===b)if(0===d)eO(S,t,w,w,C,a,p,l,k);else switch(99===f&&110===er(S,3)?100:f){case 100:case 108:case 109:case 115:eO(e,w,w,r&&es(eL(e,w,w,0,0,o,l,x,o,C=[],p,k),k),o,k,p,l,r?C:k);break;default:eO(S,w,w,w,[""],k,0,l,k)}}u=d=h=0,g=y=1,x=S="",p=s;break;case 58:p=1+ei(S),h=m;default:if(g<1){if(123==b)--g;else if(125==b&&0==g++&&125==ex())continue}switch(S+=Y(b),b*g){case 38:y=d>0?1:(S+="\f",-1);break;case 44:l[u++]=(ei(S)-1)*y,y=1;break;case 64:45===ek()&&(S+=eI(eC())),f=ek(),d=p=ei(x=S+=eM(ew())),b++;break;case 45:45===m&&2==ei(S)&&(g=0)}}return a}function eL(e,t,n,r,o,a,s,l,c,u,d,p){for(var f=o-1,h=0===o?a:[""],m=ea(h),g=0,v=0,y=0;g<r;++g)for(var b=0,x=eo(e,f+1,f=X(v=s[g])),C=e;b<m;++b)(C=Z(v>0?h[b]+" "+x:et(x,/&\f/g,h[b])))&&(c[y++]=C);return ev(e,t,n,0===o?V:l,c,u,d,p)}function eH(e,t,n,r){return ev(e,t,n,z,Y(eb()),eo(e,2,-2),0,r)}function ez(e,t,n,r,o){return ev(e,t,n,U,eo(e,0,r),eo(e,r+1,-1),r,o)}function eV(e){var t=ea(e);return function(n,r,o,a){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,a)||"";return s}}function eU(e){return function(t){!t.root&&(t=t.return)&&e(t)}}let ej=e=>{e.type===V&&"string"!=typeof e.props&&(e.props=e.props.map(e=>-1===e.indexOf(":global(")?e:eT(e).reduce((e,t,n,r)=>{if(""===t)return e;if(":"===t&&"global"===r[n+1]){let t=r[n+2].slice(1,-1)+" ";return e.unshift(t),r[n+1]="",r[n+2]="",e}return e.push(t),e},[]).join("")))};function eW(e,t,n){switch(J(e,t)){case 5103:return H+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return H+e+e;case 4215:if(102===er(e,9)||116===er(e,t+1))return H+e+e;break;case 4789:return L+e+e;case 5349:case 4246:case 6968:return H+e+L+e+e;case 6187:if(!ee(e,/grab/))return et(et(et(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return et(e,/(image-set\([^]*)/,H+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return et(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ei(e)-1-t>6)switch(er(e,t+1)){case 102:if(108===er(e,t+3))return et(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+L+(108==er(e,t+3)?"$3":"$2-$3"))+e;case 115:return~en(e,"stretch")?eW(et(e,"stretch","fill-available"),t)+e:e}}return e}function eq(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=eW(e.value,e.length);break;case V:if(e.length)return el(e.props,function(t){switch(ee(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ec([ey(e,{props:[et(t,/:(read-\w+)/,":"+L+"$1")]})],r);case"::placeholder":return ec([ey(e,{props:[et(t,/:(plac\w+)/,":"+H+"input-$1")]}),ey(e,{props:[et(t,/:(plac\w+)/,":"+L+"$1")]})],r)}return""})}}function eG(e){switch(e.type){case"@container":case j:case q:case K:return!0}return!1}let eK=e=>{eG(e)&&Array.isArray(e.children)&&e.children.sort((e,t)=>e.props[0]>t.props[0]?1:-1)};function eX(){}function eY(e,t){let n=[];return ec(eF(e),eV([ej,t?eK:eX,eq,eu,eU(e=>n.push(e))])),n}let e$=/,( *[^ &])/g;function eQ(e){return"&"+O(e.replace(e$,",&$1"))}function eJ(e,t,n){let r=t;return n.length>0&&(r=n.reduceRight((e,t)=>`${eQ(t)} { ${e} }`,t)),`${e}{${r}}`}function eZ(e,t){let{className:n,selectors:r,property:o,rtlClassName:a,rtlProperty:s,rtlValue:l,value:c}=e,{container:u,layer:d,media:p,supports:f}=t,h=eJ(`.${n}`,Array.isArray(c)?`${c.map(e=>`${F(o)}: ${e}`).join(";")};`:`${F(o)}: ${c};`,r);return s&&a&&(h+=eJ(`.${a}`,Array.isArray(l)?`${l.map(e=>`${F(s)}: ${e}`).join(";")};`:`${F(s)}: ${l};`,r)),p&&(h=`@media ${p} { ${h} }`),d&&(h=`@layer ${d} { ${h} }`),f&&(h=`@supports ${f} { ${h} }`),u&&(h=`@container ${u} { ${h} }`),eY(h,!0)}function e0(e){let t="";for(let n in e){let r=e[n];if("string"==typeof r||"number"==typeof r){t+=F(n)+":"+r+";";continue}if(Array.isArray(r))for(let e of r)t+=F(n)+":"+e+";"}return t}function e1(e){let t="";for(let n in e)t+=`${n}{${e0(e[n])}}`;return t}function e2(e,t){let n=[];return ec(eF(`@keyframes ${e} {${t}}`),eV([eu,eq,eU(e=>n.push(e))])),n}let e5={animation:[-1,["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimeline","animationTimingFunction"]],animationRange:[-1,["animationRangeEnd","animationRangeStart"]],background:[-2,["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]],backgroundPosition:[-1,["backgroundPositionX","backgroundPositionY"]],border:[-2,["borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth"]],borderBottom:[-1,["borderBottomColor","borderBottomStyle","borderBottomWidth"]],borderImage:[-1,["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"]],borderLeft:[-1,["borderLeftColor","borderLeftStyle","borderLeftWidth"]],borderRadius:[-1,["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"]],borderRight:[-1,["borderRightColor","borderRightStyle","borderRightWidth"]],borderTop:[-1,["borderTopColor","borderTopStyle","borderTopWidth"]],caret:[-1,["caretColor","caretShape"]],columnRule:[-1,["columnRuleColor","columnRuleStyle","columnRuleWidth"]],columns:[-1,["columnCount","columnWidth"]],containIntrinsicSize:[-1,["containIntrinsicHeight","containIntrinsicWidth"]],container:[-1,["containerName","containerType"]],flex:[-1,["flexBasis","flexGrow","flexShrink"]],flexFlow:[-1,["flexDirection","flexWrap"]],font:[-1,["fontFamily","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","lineHeight"]],gap:[-1,["columnGap","rowGap"]],grid:[-1,["columnGap","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumnGap","gridRowGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","rowGap"]],gridArea:[-1,["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"]],gridColumn:[-1,["gridColumnEnd","gridColumnStart"]],gridRow:[-1,["gridRowEnd","gridRowStart"]],gridTemplate:[-1,["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"]],inset:[-1,["bottom","left","right","top"]],insetBlock:[-1,["insetBlockEnd","insetBlockStart"]],insetInline:[-1,["insetInlineEnd","insetInlineStart"]],listStyle:[-1,["listStyleImage","listStylePosition","listStyleType"]],margin:[-1,["marginBottom","marginLeft","marginRight","marginTop"]],marginBlock:[-1,["marginBlockEnd","marginBlockStart"]],marginInline:[-1,["marginInlineEnd","marginInlineStart"]],mask:[-1,["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize"]],maskBorder:[-1,["maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth"]],offset:[-1,["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"]],outline:[-1,["outlineColor","outlineStyle","outlineWidth"]],overflow:[-1,["overflowX","overflowY"]],overscrollBehavior:[-1,["overscrollBehaviorX","overscrollBehaviorY"]],padding:[-1,["paddingBottom","paddingLeft","paddingRight","paddingTop"]],paddingBlock:[-1,["paddingBlockEnd","paddingBlockStart"]],paddingInline:[-1,["paddingInlineEnd","paddingInlineStart"]],placeContent:[-1,["alignContent","justifyContent"]],placeItems:[-1,["alignItems","justifyItems"]],placeSelf:[-1,["alignSelf","justifySelf"]],scrollMargin:[-1,["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"]],scrollMarginBlock:[-1,["scrollMarginBlockEnd","scrollMarginBlockStart"]],scrollMarginInline:[-1,["scrollMarginInlineEnd","scrollMarginInlineStart"]],scrollPadding:[-1,["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"]],scrollPaddingBlock:[-1,["scrollPaddingBlockEnd","scrollPaddingBlockStart"]],scrollPaddingInline:[-1,["scrollPaddingInlineEnd","scrollPaddingInlineStart"]],scrollTimeline:[-1,["scrollTimelineAxis","scrollTimelineName"]],textDecoration:[-1,["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"]],textEmphasis:[-1,["textEmphasisColor","textEmphasisStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function e4(e,t){return 0===e.length?t:`${e} and ${t}`}function e3(e){return"@media"===e.substr(0,6)}function e6(e){return"@layer"===e.substr(0,6)}let e8=/^(:|\[|>|&)/;function e9(e){return e8.test(e)}function e7(e){return"@supports"===e.substr(0,9)}function te(e){return"@container"===e.substring(0,10)}function tt(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}let tn={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function tr(e,t){if(t.media)return"m";if(t.layer||t.supports)return"t";if(t.container)return"c";if(e.length>0){let t=e[0].trim();if(58===t.charCodeAt(0))return tn[t.slice(4,8)]||tn[t.slice(3,5)]||"d"}return"d"}function to(e,t){return e?t+e:e}function ti(e){return to(e.container,"c")+to(e.media,"m")+to(e.layer,"l")+to(e.supports,"s")}function ta(e,t,n){let r=e+ti(n)+t,a=(0,o.A)(r),s=a.charCodeAt(0);return s>=48&&s<=57?String.fromCharCode(s+17)+a.slice(1):a}function ts({property:e,selector:t,salt:n,value:r},a){return"f"+(0,o.A)(n+t+ti(a)+e+r.trim())}function tl(e){return e===A.Ut}function tc(e){return e.replace(/>\s+/g,">")}function tu(){}function td(e,t){}function tp(e,t){[`@griffel/react: You are using unsupported shorthand CSS property "${e}". Please check your "makeStyles" calls, there *should not* be following:`," ".repeat(2)+"makeStyles({"," ".repeat(4)+`[slot]: { ${e}: "${t}" }`," ".repeat(2)+"})","\nLearn why CSS shorthands are not supported: https://aka.ms/griffel-css-shorthands"].join("\n")}function tf(e){return e5[e]}function th(e){var t;return null!=(t=null==e?void 0:e[0])?t:0}function tm(e,t,n,r){e[t]=r?[n,r]:n}function tg(e,t){return t.length>0?[e,Object.fromEntries(t)]:e}function tv(e,t,n,r,o,a){var s;let l=[];0!==a&&l.push(["p",a]),"m"===t&&o&&l.push(["m",o]),null!=(s=e[t])||(e[t]=[]),n&&e[t].push(tg(n,l)),r&&e[t].push(tg(r,l))}function ty(e,t="",n=[],r={container:"",layer:"",media:"",supports:""},a={},s={},l){for(let c in e){if(A.qw.hasOwnProperty(c)){tp(c,e[c]);continue}let u=e[c];if(null!=u){if(tl(u)){tm(a,ta(tc(n.join("")),c,r),0,void 0);continue}if("string"==typeof u||"number"==typeof u){let e=tc(n.join("")),o=tf(c);o&&ty(Object.fromEntries(o[1].map(e=>[e,A.Ut])),t,n,r,a,s);let d=ta(e,c,r),p=ts({value:u.toString(),salt:t,selector:e,property:c},r),f=l&&{key:c,value:l}||I(c,u),h=f.key!==c||f.value!==u,m=h?ts({value:f.value.toString(),property:f.key,salt:t,selector:e},r):void 0,g=h?{rtlClassName:m,rtlProperty:f.key,rtlValue:f.value}:void 0,v=tr(n,r),[y,b]=eZ(Object.assign({className:p,selectors:n,property:c,value:u},g),r);tm(a,d,p,m),tv(s,v,y,b,r.media,th(o))}else if("animationName"===c){let e=Array.isArray(u)?u:[u],l=[],c=[];for(let t of e){let e,n=e1(t),a=e1(P(t)),u="f"+(0,o.A)(n),d=e2(u,n),p=[];n===a?e=u:p=e2(e="f"+(0,o.A)(a),a);for(let e=0;e<d.length;e++)tv(s,"k",d[e],p[e],r.media,0);l.push(u),c.push(e)}ty({animationName:l.join(", ")},t,n,r,a,s,c.join(", "))}else if(Array.isArray(u)){if(0===u.length)continue;let e=tc(n.join("")),o=tf(c);o&&ty(Object.fromEntries(o[1].map(e=>[e,A.Ut])),t,n,r,a,s);let l=ta(e,c,r),d=ts({value:u.map(e=>(null!=e?e:"").toString()).join(";"),salt:t,selector:e,property:c},r),p=u.map(e=>I(c,e));if(p.some(e=>e.key!==p[0].key))continue;let f=p[0].key!==c||p.some((e,t)=>e.value!==u[t]),h=f?ts({value:p.map(e=>{var t;return(null!=(t=null==e?void 0:e.value)?t:"").toString()}).join(";"),salt:t,property:p[0].key,selector:e},r):void 0,m=f?{rtlClassName:h,rtlProperty:p[0].key,rtlValue:p.map(e=>e.value)}:void 0,g=tr(n,r),[v,y]=eZ(Object.assign({className:d,selectors:n,property:c,value:u},m),r);tm(a,l,d,h),tv(s,g,v,y,r.media,th(o))}else if(tt(u))if(e9(c))ty(u,t,n.concat(O(c)),r,a,s);else if(e3(c)){let e=e4(r.media,c.slice(6).trim());ty(u,t,n,Object.assign({},r,{media:e}),a,s)}else if(e6(c)){let e=(r.layer?`${r.layer}.`:"")+c.slice(6).trim();ty(u,t,n,Object.assign({},r,{layer:e}),a,s)}else if(e7(c)){let e=e4(r.supports,c.slice(9).trim());ty(u,t,n,Object.assign({},r,{supports:e}),a,s)}else te(c)?ty(u,t,n,Object.assign({},r,{container:c.slice(10).trim()}),a,s):td(c,u)}}return[a,s]}function tb(e,t=""){let n={},r={};for(let o in e){let[a,s]=ty(e[o],t);n[o]=a,Object.keys(s).forEach(e=>{r[e]=(r[e]||[]).concat(s[e])})}return[n,r]}var tx=n(27055);function tC(e,t=r.A){let n=t(),o=null,a=null,s=null,l=null;return function(t){let{dir:r,renderer:c}=t;null===o&&([o,a]=tb(e,c.classNameHashSalt));let u="ltr"===r;return u?null===s&&(s=(0,tx.N)(o,r)):null===l&&(l=(0,tx.N)(o,r)),n(c,a),u?s:l}}var tk=n(35437),tw=n(1180),tS=n(16609);function t_(e){let t=tC(e,tk.A);return function(){return t({dir:(0,tS.m)(),renderer:(0,tw.J)()})}}},27245(e,t,n){"use strict";n.d(t,{J$:()=>h,KU:()=>f,OR:()=>p,QV:()=>l,Wy:()=>u,_1:()=>o,bA:()=>a,hW:()=>r,s6:()=>c,vR:()=>s,zi:()=>d});var r="function",o="object",a="undefined",s="prototype",l="hasOwnProperty",c=Object,u=c[s],d=c.assign,p=c.create,f=c.defineProperty,h=u[l]},29381(e,t,n){"use strict";n.d(t,{AQ:()=>l,mS:()=>a,zk:()=>s});var r=n(27245),o=null;function a(e){void 0===e&&(e=!0);var t=!1===e?null:o;return t||(typeof globalThis!==r.bA&&(t=globalThis),t||typeof self===r.bA||(t=self),t||typeof window===r.bA||(t=window),t||typeof n.g===r.bA||(t=n.g),o=t),t}function s(e){throw TypeError(e)}function l(e){var t=r.OR;if(t)return t(e);if(null==e)return{};var n=typeof e;function o(){}return n!==r._1&&n!==r.hW&&s("Object prototype may only be an Object:"+e),o[r.vR]=e,new o}},80212(e,t,n){"use strict";n.d(t,{Im:()=>s,qU:()=>c,vz:()=>u});var r=n(27245),o=n(29381),a=(((0,o.mS)()||{}).Symbol,((0,o.mS)()||{}).Reflect,function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])r.Wy[r.QV].call(t,a)&&(e[a]=t[a]);return e}),s=r.zi||a,l=function(e,t){return(l=r.s6.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[r.QV](n)&&(e[n]=t[n])})(e,t)};function c(e,t){function n(){this.constructor=e}typeof t!==r.hW&&null!==t&&(0,o.zk)("Class extends value "+String(t)+" is not a constructor or null"),l(e,t),e[r.vR]=null===t?(0,o.AQ)(t):(n[r.vR]=t[r.vR],new n)}function u(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}},81157(e,t,n){"use strict";n.d(t,{EQ:()=>g,hN:()=>p});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o="u"<typeof window?n.g:window,a=o&&o.CSPSettings&&o.CSPSettings.nonce,s=d(),l=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,c=function(){return"u">typeof performance&&performance.now?performance.now():Date.now()};function u(e){var t=c();e();var n=c();s.perf.duration+=n-t}function d(){var e=o.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=r(r({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=r(r({},e),{registeredThemableStyles:[]})),o.__themeState__=e,e}function p(e,t){void 0===t&&(t=!1),u(function(){var n=Array.isArray(e)?e:C(e),r=s.runState,o=r.mode,a=r.buffer,l=r.flushTimer;t||1===o?(a.push(n),l||(s.runState.flushTimer=h())):m(n)})}function f(){u(function(){var e=s.runState.buffer.slice();s.runState.buffer=[];var t=[].concat.apply([],e);t.length>0&&m(t)})}function h(){return setTimeout(function(){s.runState.flushTimer=0,f()},0)}function m(e,t){s.loadStyles?s.loadStyles(x(e).styleString,e):k(e)}function g(e){s.theme=e,b()}function v(e){void 0===e&&(e=3),(3===e||2===e)&&(y(s.registeredStyles),s.registeredStyles=[]),(3===e||1===e)&&(y(s.registeredThemableStyles),s.registeredThemableStyles=[])}function y(e){e.forEach(function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)})}function b(){if(s.theme){for(var e=[],t=0,n=s.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(v(1),m([].concat.apply([],e)))}}function x(e){var t=s.theme,n=!1;return{styleString:(e||[]).map(function(e){var r=e.theme;if(!r)return e.rawString;n=!0;var o=t?t[r]:void 0,a=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"u">typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+a+'".'),o||a}).join(""),themable:n}}function C(e){var t=[];if(e){for(var n=0,r=void 0;r=l.exec(e);){var o=r.index;o>n&&t.push({rawString:e.substring(n,o)}),t.push({theme:r[1],defaultValue:r[2]}),n=l.lastIndex}t.push({rawString:e.substring(n)})}return t}function k(e){if("u">typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=x(e),o=r.styleString,l=r.themable;n.setAttribute("data-load-themed-styles","true"),a&&n.setAttribute("nonce",a),n.appendChild(document.createTextNode(o)),s.perf.count++,t.appendChild(n);var c=document.createEvent("HTMLEvents");c.initEvent("styleinsert",!0,!1),c.args={newStyle:n},document.dispatchEvent(c);var u={styleElement:n,themableStyle:e};l?s.registeredThemableStyles.push(u):s.registeredStyles.push(u)}}},80849(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefetchUrlByRoute=t.getPrefetchUrl=t.addingQueryParams=t.createInputForArray=t.extraData=t.createInput=void 0;var r=n(9274);t.createInput=function(e,t,n){var r=document.createElement("input");return r.name=e,r.type="hidden",r.value=t?JSON.stringify(t):null!=n?n:"",r},t.extraData=function(e){return{usePurchaseSdk:!0,clientType:e}};var o=function(e,n,r){if(e&&r&&(null==r?void 0:r.length)>0){var o=0;r.forEach(function(r){e.appendChild((0,t.createInput)(n+"["+o+"]",void 0,r)),o++})}};t.createInputForArray=o,t.addingQueryParams=function(e,t){if(t&&t.length>0)if((null==e?void 0:e.indexOf("?"))>-1)return e+"&"+t;else return e+"?"+t;return e};var a=function(e,n){var r=new URLSearchParams;return n?(n.market&&r.append("market",n.market),n.locale&&r.append("locale",n.locale),n.clientType&&r.append("clientType",n.clientType),n.cssOverride&&r.append("cssOverride",n.cssOverride),n.optionalAssets&&r.append("optional",n.optionalAssets),(0,t.addingQueryParams)(e,r.toString())):e};t.getPrefetchUrl=a,t.getPrefetchUrlByRoute=function(e){return e.indexOf("cart")>-1||e.indexOf("checkout")>-1?r.prefetchURLTemplate.replace("{0}",r.purchaseUIAppName).replace("{1}",e):r.prefetchURLTemplate.replace("{0}",r.buyNowUIAppName).replace("{1}",e)}},14850(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimeToInvokeMarkFromArgsOrNewMetric=t.getTimeToInvokeMark=t.clearPerfMarks=void 0;var n=function(e){performance&&performance.mark&&performance.mark(e)},r=function(e){return performance&&performance.getEntriesByName?performance.getEntriesByName(e):[]},o=function(e){var t=r(e);return t.length>0?t[0].startTime:-1};t.clearPerfMarks=function(){performance&&performance.clearMarks&&performance.clearMarks()},t.getTimeToInvokeMark=function(e){return n(e),o(e)};var a=function(e,n){return n&&n>0?n:(0,t.getTimeToInvokeMark)(e)};t.getTimeToInvokeMarkFromArgsOrNewMetric=a},49760(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return c([e,t])}}function c(a){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(t,"__esModule",{value:!0}),t.makeWindowListener=t.prefetchBuyNow=t.invokeBuyNowInFrame=void 0;var s=n(80849),l=n(14850),c=n(12571),u=n(9274),d=n(35026);t.invokeBuyNowInFrame=function(e,t){var n;return o(this,void 0,void 0,function(){var o;return a(this,function(a){switch(a.label){case 0:if(!e.name)throw Error('purchase-sdk: target iframe must have unique "name" attribute set');return(o=document.createElement("form")).target=e.name,o.action=(0,d.constructBuyNowUrl)(t),o.method="post",(0,d.createInputForBuyNowUI)(o,r(r(r(r({market:t.market,cV:encodeURIComponent(t.cV),locale:t.locale,authToken:t.authToken,xToken:t.xToken,pageFormat:null!=(n=t.pageFormat)?n:"full",products:t.products},t.campaignOptions),{urlRef:document.referrer?document.referrer:window.location.href}),t.onBehalfOfOptions),{catalogClientType:t.catalogClientType,clientType:t.clientType,clientVersion:t.clientVersion,osVersion:t.osVersion,purchaseAppVersion:t.purchaseAppVersion,layout:t.layout,cssOverride:t.cssOverride,theme:t.theme,uuid:t.uuid,isAddAsyncPIFailed:t.isAddAsyncPIFailed,selectEnv:t.selectEnv,scenario:t.scenario||"",attachRecordId:t.attachRecordId,fulfillmentData:t.fulfillmentData,deviceContext:t.deviceContext,deviceSerialNumber:t.deviceSerialNumber,suppressGiftThankYouPage:t.suppressGiftThankYouPage,isTelemetryEnabled:t.isTelemetryEnabled,clientDebugInfo:t.clientDebugInfo,disableBuyNowFocusTrap:t.disableBuyNowFocusTrap,gifteeType:t.gifteeType,gifteeValue:t.gifteeValue,gamertagImageUrl:t.gamertagImageUrl,modernGamertag:t.modernGamertag,showProductImage:t.showProductImage,optionalAssets:t.optionalAssets,timeToInvokeIframe:(0,l.getTimeToInvokeMarkFromArgsOrNewMetric)("buyNowInvoke",t.timeToInvokeIframe),sdkVersion:c.LIB_VERSION})),e.appendChild(o),o.submit(),[4,(0,d.attachingMessageHandler)(o,t)];case 1:return a.sent(),[2,!0]}})})},t.prefetchBuyNow=function(e,t){e.src=(0,s.getPrefetchUrl)(u.BUYNOW_PREFETCH_URL,t)},t.makeWindowListener=function(e){return function(t){if(t.origin===u.TARGET_ORIGIN){var n,r,o,a,s=t.data;switch(s.message){case"done":e.done(s);break;case"openUrl":e.openUrl?e.openUrl(s):window.location.href=s.url;break;case"stageChanged":null==(n=e.stageChanged)||n.call(e,s);break;case"status":null==(r=e.status)||r.call(e,s);break;case"sizeChanged":null==(o=e.sizeChanged)||o.call(e,s);break;case"pageMessage":null==(a=e.pageMessage)||a.call(e,s)}}}}},35026(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInputForBuyNowUI=t.attachingMessageHandler=t.constructBuyNowUrl=void 0;var r=n(80849),o=n(9274);t.constructBuyNowUrl=function(e){return""+o.TARGET_ORIGIN+o.BASE_BUYNOWUI_URL+"/buynow?ms-cv="+encodeURIComponent(e.cV)+"&noCanonical=true&market="+e.market+"&locale="+e.locale+"&clientName="+e.clientType},t.attachingMessageHandler=function(e,t){return new Promise(function(n){return window.addEventListener("message",function(r){var a,s;if(r.origin===o.TARGET_ORIGIN){if((null==(s=null==(a=t.campaignOptions)?void 0:a.flights)?void 0:s.indexOf("sc_pidl.piselect"))!==-1){var l=null;try{l=r.data.message}catch(e){}l&&"selectPiLoaded"===l&&n()}else"ReactPurchaseReadyToRender"===r.data&&n();e&&e.remove()}},!0)})};var a={usePurchaseSdk:!0};t.createInputForBuyNowUI=function(e,t){var n=Object.keys(t);e.appendChild((0,r.createInput)("data",void 0,JSON.stringify(a))),n.forEach(function(n){if(n&&t[n])if("authToken"===n)e.appendChild((0,r.createInput)("msaTicket",void 0,t.authToken));else if("xToken"===n)e.appendChild((0,r.createInput)("xToken",void 0,t.xToken));else if("flights"===n)(0,r.createInputForArray)(e,"flights",t.flights);else if("products"===n)e.appendChild((0,r.createInput)("products",t.products));else{var o=t[n];e.appendChild((0,r.createInput)(n,void 0,o))}})}},9274(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.appRoutes=t.buyNowUIAppName=t.purchaseUIAppName=t.prefetchURLTemplate=t.GPC_DataSharingOptInKey=t.windowTargetCurrent=t.REDEEMNOW_PREFETCH_URL=t.BUYNOW_PREFETCH_URL=t.BASE_BUYNOWUI_URL=t.BASE_PURCHASEUI_URL=t.TARGET_ORIGIN=void 0,t.TARGET_ORIGIN="https://www.microsoft.com",t.BASE_PURCHASEUI_URL="/store/purchase/purchaseui/",t.BASE_BUYNOWUI_URL="/store/purchase/buynowui",t.BUYNOW_PREFETCH_URL="https://www.microsoft.com/store/purchase/buynowui/prefetch/buynow",t.REDEEMNOW_PREFETCH_URL="https://www.microsoft.com/store/purchase/buynowui/prefetch/redeemnow",t.windowTargetCurrent="current",t.GPC_DataSharingOptInKey="GPC_DataSharingOptIn",t.prefetchURLTemplate="https://www.microsoft.com/store/purchase/{0}/prefetch/{1}",t.purchaseUIAppName="purchaseui",t.buyNowUIAppName="buynowui",t.appRoutes={cart:"cart",checkout:"checkout",buyNow:"buynow",redeem:"redeem",deviceRepair:"device-repair",guestOrderLookup:"guest-order-lookup",aadSignIn:"aad-signin",commercialCheckout:"commercial-checkout"}},12571(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION="VERSION_PLACEHOLDER"},2176(e,t,n){"use strict";function r(e){a.length||(o(),s=!0),a[a.length]=e}e.exports=r;var o,a=[],s=!1,l=0,c=1024;function u(){for(;l<a.length;){var e=l;if(l+=1,a[e].call(),l>c){for(var t=0,n=a.length-l;t<n;t++)a[t]=a[t+l];a.length-=l,l=0}}a.length=0,l=0,s=!1}var d=void 0!==n.g?n.g:self,p=d.MutationObserver||d.WebKitMutationObserver;function f(e){var t=1,n=new p(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){r.data=t=-t}}function h(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}r.requestFlush=o="function"==typeof p?f(u):h(u),r.makeRequestCallFromTimer=h},7991(e,t){"use strict";t.byteLength=u,t.toByteArray=p,t.fromByteArray=m;for(var n=[],r=[],o="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)n[s]=a[s],r[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return(n+r)*3/4-r}function d(e,t,n){return(t+n)*3/4-n}function p(e){var t,n,a=c(e),s=a[0],l=a[1],u=new o(d(e,s,l)),p=0,f=l>0?s-4:s;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[p++]=t>>16&255,u[p++]=t>>8&255,u[p++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[p++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[p++]=t>>8&255,u[p++]=255&t),u}function f(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function h(e,t,n){for(var r=[],o=t;o<n;o+=3)r.push(f((e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2])));return r.join("")}function m(e){for(var t,r=e.length,o=r%3,a=[],s=16383,l=0,c=r-o;l<c;l+=s)a.push(h(e,l,l+s>c?c:l+s));return 1===o?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")}r[45]=62,r[95]=63},76272(e){var t=4,n=.001,r=1e-7,o=10,a=11,s=.1,l="function"==typeof Float32Array;function c(e,t){return 1-3*t+3*e}function u(e,t){return 3*t-6*e}function d(e){return 3*e}function p(e,t,n){return((c(t,n)*e+u(t,n))*e+d(t))*e}function f(e,t,n){return 3*c(t,n)*e*e+2*u(t,n)*e+d(t)}function h(e,t,n,a,s){var l,c,u=0;do(l=p(c=t+(n-t)/2,a,s)-e)>0?n=c:t=c;while(Math.abs(l)>r&&++u<o);return c}function m(e,n,r,o){for(var a=0;a<t;++a){var s=f(n,r,o);if(0===s)break;var l=p(n,r,o)-e;n-=l/s}return n}function g(e){return e}e.exports=function(e,t,r,o){if(!(0<=e&&e<=1&&0<=r&&r<=1))throw Error("bezier x values must be in [0, 1] range");if(e===t&&r===o)return g;for(var c=l?new Float32Array(a):Array(a),u=0;u<a;++u)c[u]=p(u*s,e,r);function d(t){for(var o=0,l=1,u=a-1;l!==u&&c[l]<=t;++l)o+=s;var d=o+(t-c[--l])/(c[l+1]-c[l])*s,p=f(d,e,r);return p>=n?m(t,d,e,r):0===p?d:h(t,o,o+s,e,r)}return function(e){return 0===e?0:1===e?1:p(d(e),t,o)}}},1048(e,t,n){"use strict";var r=n(7991),o=n(39318),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=C,t.INSPECT_MAX_BYTES=50;var s=0x7fffffff;function l(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function c(e){if(e>s)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return d(e,t,n)}function d(e,t,n){if("string"==typeof e)return m(e,t);if(ArrayBuffer.isView(e))return v(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return y(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var o=b(e);if(o)return o;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function p(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function f(e,t,n){return(p(e),e<=0)?c(e):void 0!==t?"string"==typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}function h(e){return p(e),c(e<0?0:0|x(e))}function m(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!u.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|k(e,t),r=c(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}function g(e){for(var t=e.length<0?0:0|x(e.length),n=c(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function v(e){if(Z(e,Uint8Array)){var t=new Uint8Array(e);return y(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function y(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),u.prototype),r}function b(e){if(u.isBuffer(e)){var t=0|x(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||ee(e.length)?c(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}function x(e){if(e>=s)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function C(e){return+e!=e&&(e=0),u.alloc(+e)}function k(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(o)return r?-1:K(e).length;t=(""+t).toLowerCase(),o=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return F(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return R(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,t,n);default:if(r)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function S(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,o){if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),ee(n*=1)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(o)return -1;else n=e.length-1;else if(n<0)if(!o)return -1;else n=0;if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,o);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return E(e,[t],n,r,o)}throw TypeError("val must be string, number or Buffer")}function E(e,t,n,r,o){var a,s=1,l=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;s=2,l/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var d=-1;for(a=n;a<l;a++)if(u(e,a)===u(t,-1===d?0:a-d)){if(-1===d&&(d=a),a-d+1===c)return d*s}else -1!==d&&(a-=a-d),d=-1}else for(n+c>l&&(n=l-c),a=n;a>=0;a--){for(var p=!0,f=0;f<c;f++)if(u(e,a+f)!==u(t,f)){p=!1;break}if(p)return a}return -1}function P(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var a=t.length;r>a/2&&(r=a/2);for(var s=0;s<r;++s){var l=parseInt(t.substr(2*s,2),16);if(ee(l))break;e[n+s]=l}return s}function I(e,t,n,r){return J(K(t,e.length-n),e,n,r)}function T(e,t,n,r){return J(X(t),e,n,r)}function D(e,t,n,r){return J(Q(t),e,n,r)}function A(e,t,n,r){return J(Y(t,e.length-n),e,n,r)}function R(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function N(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var a,s,l,c,u=e[o],d=null,p=u>239?4:u>223?3:u>191?2:1;if(o+p<=n)switch(p){case 1:u<128&&(d=u);break;case 2:(192&(a=e[o+1]))==128&&(c=(31&u)<<6|63&a)>127&&(d=c);break;case 3:a=e[o+1],s=e[o+2],(192&a)==128&&(192&s)==128&&(c=(15&u)<<12|(63&a)<<6|63&s)>2047&&(c<55296||c>57343)&&(d=c);break;case 4:a=e[o+1],s=e[o+2],l=e[o+3],(192&a)==128&&(192&s)==128&&(192&l)==128&&(c=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&l)>65535&&c<1114112&&(d=c)}null===d?(d=65533,p=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),o+=p}return M(r)}t.kMaxLength=0x7fffffff,u.TYPED_ARRAY_SUPPORT=l(),!u.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return f(e,t,n)},u.allocUnsafe=function(e){return h(e)},u.allocUnsafeSlow=function(e){return h(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(Z(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o<a;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:+(r<n)},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(Z(a,Uint8Array))o+a.length>r.length?u.from(a).copy(r,o):Uint8Array.prototype.set.call(r,a,o);else if(u.isBuffer(a))a.copy(r,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=a.length}return r},u.byteLength=k,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?N(this,0,e):w.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,o){if(Z(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var a=o-r,s=n-t,l=Math.min(a,s),c=this.slice(r,o),d=e.slice(t,n),p=0;p<l;++p)if(c[p]!==d[p]){a=c[p],s=d[p];break}return a<s?-1:+(s<a)},u.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return P(this,e,t,n);case"utf8":case"utf-8":return I(this,e,t,n);case"ascii":case"latin1":case"binary":return T(this,e,t,n);case"base64":return D(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(a)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function M(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=B));return n}function F(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",a=t;a<n;++a)o+=et[e[a]];return o}function H(e,t,n){for(var r=e.slice(t,n),o="",a=0;a<r.length-1;a+=2)o+=String.fromCharCode(r[a]+256*r[a+1]);return o}function z(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function V(e,t,n,r,o,a){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function U(e,t,n,r,o,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function j(e,t,n,r,a){return t*=1,n>>>=0,a||U(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,a){return t*=1,n>>>=0,a||U(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);for(var r=t,o=1,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return(e>>>=0,t||z(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;V(this,e,t,n,o,0)}var a=1,s=0;for(this[t]=255&e;++s<n&&(a*=256);)this[t+s]=e/a&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;V(this,e,t,n,o,0)}var a=n-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||V(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||V(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||V(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||V(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||V(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var a=0,s=1,l=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=(e/s|0)-l&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var a=n-1,s=1,l=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=(e/s|0)-l&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||V(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||V(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||V(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||V(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||V(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var o,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=u.isBuffer(e)?e:u.from(e,r),l=s.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=s[o%l]}return this};var q=/[^+/0-9A-Za-z-_]/g;function G(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function K(e,t){t=t||1/0;for(var n,r=e.length,o=null,a=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319||s+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Y(e,t){for(var n,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o.push(n%256),o.push(r);return o}function Q(e){return r.toByteArray(G(e))}function J(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function ee(e){return e!=e}var et=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},99870(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&e.push(s)}}else if("object"===a)if(o.toString===Object.prototype.toString)for(var l in o)t.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()},60100(e,t,n){n(94356),n(74874),e.exports=n(20863).Array.from},71056(e,t,n){n(79683),n(19948),n(69399),n(99521),n(92360),n(48851),n(10356),n(78598),n(39749),n(84969),n(40811),n(54465),n(85028),n(99629),n(262),n(92221),n(83040),n(59161),n(34089),n(78370),n(75947),n(93249),n(57931),n(44318),n(11368),n(42411),n(79988),n(15556),n(89459),n(95677),n(29416),n(77007),n(60277),n(11823),n(39170),n(21555),n(38931),n(9111),n(30724),n(29408),n(17306),n(85146),n(18845),n(21417),n(74874),n(37210),n(52651),n(68450),n(96211),n(38415),n(68875),n(25400),n(1569),n(44436),n(97905),n(51214),n(24493),n(30935),n(98140),n(54),n(48249),n(95790),n(96104),n(98799),n(17626),n(84766),n(66542),n(78366),n(94298),n(10614),n(52138),n(73309),n(96656),n(2313),n(37362),n(45364),n(11257),n(68291),n(11505),n(23999),n(8565),n(79964),n(65917),n(98304),n(28882),n(30488),n(7680),n(9098),n(12735),n(85794),n(94356),n(13043),n(63354),n(75234),n(55729),n(34042),n(55724),n(16138),n(93645),n(17114),n(28939),n(69412),n(174),n(67764),n(81152),n(93831),n(9223),n(34237),n(9020),n(28443),n(99180),n(18238),n(20884),n(85661),n(63286),n(34125),n(82489),n(45971),n(67156),n(21299),n(56460),n(19958),n(44609),n(33782),n(71493),n(98172),n(59541),n(27842),n(16526),n(10589),n(74573),n(22232),n(26832),n(8080),n(61447),n(55994),n(12281),n(32418),n(56767),n(22217),n(97041),n(84131),n(97976),n(96152),n(58948),n(5974),n(84667),n(5858),n(35495),n(55983),n(37729),n(33111),n(95372),n(52558),n(37239),n(68265),n(8033),n(88389),n(5218),n(23025),n(68982),n(73643),n(86186),n(13365),n(44236),n(33986),n(29225),n(43801),n(25432),n(83166),n(41546),n(86852),n(65827),n(27150),n(64931),n(54710),n(66e3),n(88155),n(34391),n(14825),n(49852),n(55587),n(11511),n(18568),n(28075),n(75437),n(21180),n(52757),n(12181),n(8118),n(32637),n(87220),n(62932),n(13849),n(88947),n(22747),n(90872),n(88457),n(52709),n(99148),n(38170),n(82945),n(74057),n(84252),n(1017),e.exports=n(20863)},44785(e,t,n){n(68450),n(21555),n(79683),n(19948),n(69399),n(99521),n(92360),n(48851),n(10356),n(78598),n(39749),n(84969),n(40811),n(54465),n(85028),n(99629),n(262),n(56767),n(84667),e.exports=n(20863).Symbol},63225(e,t,n){e.exports=n(60100)},63896(e,t,n){var r=n(44785);n(47346),n(23211),n(12681),n(59704),n(48416),e.exports=r},86954(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},12834(e,t,n){var r=n(41634);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},75845(e,t,n){var r=n(73683),o=n(42104),a=n(76587),s=r("unscopables"),l=Array.prototype;void 0==l[s]&&a(l,s,o(null)),e.exports=function(e){l[s][e]=!0}},97157(e,t,n){"use strict";var r=n(14775).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},42135(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},50151(e,t,n){var r=n(41634);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},48180(e,t,n){"use strict";var r,o=n(95180),a=n(54523),s=n(41634),l=n(6838),c=n(47611),u=n(76587),d=n(33874),p=n(78449).f,f=n(17763),h=n(27943),m=n(73683),g=n(76048),v=a.DataView,y=v&&v.prototype,b=a.Int8Array,x=b&&b.prototype,C=a.Uint8ClampedArray,k=C&&C.prototype,w=b&&f(b),S=x&&f(x),_=Object.prototype,E=_.isPrototypeOf,P=m("toStringTag"),I=g("TYPED_ARRAY_TAG"),T=!!(a.ArrayBuffer&&v),D=T&&!!h&&"Opera"!==c(a.opera),A=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N=function(e){var t=c(e);return"DataView"===t||l(R,t)},B=function(e){return s(e)&&l(R,c(e))},M=function(e){if(B(e))return e;throw TypeError("Target is not a typed array")},F=function(e){if(h){if(E.call(w,e))return e}else for(var t in R)if(l(R,r)){var n=a[t];if(n&&(e===n||E.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},O=function(e,t,n){if(o){if(n)for(var r in R){var s=a[r];s&&l(s.prototype,e)&&delete s.prototype[e]}(!S[e]||n)&&d(S,e,n?t:D&&x[e]||t)}},L=function(e,t,n){var r,s;if(o){if(h){if(n)for(r in R)(s=a[r])&&l(s,e)&&delete s[e];if(w[e]&&!n)return;try{return d(w,e,n?t:D&&b[e]||t)}catch(e){}}for(r in R)(s=a[r])&&(!s[e]||n)&&d(s,e,t)}};for(r in R)a[r]||(D=!1);if((!D||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},D))for(r in R)a[r]&&h(a[r],w);if((!D||!S||S===_)&&(S=w.prototype,D))for(r in R)a[r]&&h(a[r].prototype,S);if(D&&f(k)!==S&&h(k,S),o&&!l(S,P))for(r in A=!0,p(S,P,{get:function(){return s(this)?this[I]:void 0}}),R)a[r]&&u(a[r],I,r);T&&h&&f(y)!==_&&h(y,_),e.exports={NATIVE_ARRAY_BUFFER:T,NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:A&&I,aTypedArray:M,aTypedArrayConstructor:F,exportTypedArrayMethod:O,exportTypedArrayStaticMethod:L,isView:N,isTypedArray:B,TypedArray:w,TypedArrayPrototype:S}},16330(e,t,n){"use strict";var r=n(54523),o=n(95180),a=n(48180).NATIVE_ARRAY_BUFFER,s=n(76587),l=n(37564),c=n(84543),u=n(42135),d=n(9846),p=n(55966),f=n(60192),h=n(15498),m=n(29712).f,g=n(78449).f,v=n(34453),y=n(6143),b=n(14317),x=b.get,C=b.set,k="ArrayBuffer",w="DataView",S="prototype",_="Wrong length",E="Wrong index",P=r[k],I=P,T=r[w],D=r.RangeError,A=h.pack,R=h.unpack,N=function(e){return[255&e]},B=function(e){return[255&e,e>>8&255]},M=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},F=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},O=function(e){return A(e,23,4)},L=function(e){return A(e,52,8)},H=function(e,t){g(e[S],t,{get:function(){return x(this)[t]}})},z=function(e,t,n,r){var o=f(n),a=x(e);if(o+t>a.byteLength)throw D(E);var s=x(a.buffer).bytes,l=o+a.byteOffset,c=s.slice(l,l+t);return r?c:c.reverse()},V=function(e,t,n,r,o,a){var s=f(n),l=x(e);if(s+t>l.byteLength)throw D(E);for(var c=x(l.buffer).bytes,u=s+l.byteOffset,d=r(+o),p=0;p<t;p++)c[u+p]=d[a?p:t-p-1]};if(a){if(!c(function(){P(1)})||!c(function(){new P(-1)})||c(function(){return new P,new P(1.5),new P(NaN),P.name!=k})){for(var U,j=(I=function(e){return u(this,I),new P(f(e))})[S]=P[S],W=m(P),q=0;W.length>q;)(U=W[q++])in I||s(I,U,P[U]);j.constructor=I}var G=new T(new I(2)),K=T[S].setInt8;G.setInt8(0,0x80000000),G.setInt8(1,0x80000001),(G.getInt8(0)||!G.getInt8(1))&&l(T[S],{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},{unsafe:!0})}else I=function(e){u(this,I,k);var t=f(e);C(this,{bytes:v.call(Array(t),0),byteLength:t}),o||(this.byteLength=t)},T=function(e,t,n){u(this,T,w),u(e,I,w);var r=x(e).byteLength,a=d(t);if(a<0||a>r)throw D("Wrong offset");if(n=void 0===n?r-a:p(n),a+n>r)throw D(_);C(this,{buffer:e,byteLength:n,byteOffset:a}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},o&&(H(I,"byteLength"),H(T,"buffer"),H(T,"byteLength"),H(T,"byteOffset")),l(T[S],{getInt8:function(e){return z(this,1,e)[0]<<24>>24},getUint8:function(e){return z(this,1,e)[0]},getInt16:function(e){var t=z(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=z(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return F(z(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return F(z(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return R(z(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return R(z(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){V(this,1,e,N,t)},setUint8:function(e,t){V(this,1,e,N,t)},setInt16:function(e,t){V(this,2,e,B,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){V(this,2,e,B,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){V(this,4,e,M,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){V(this,4,e,M,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){V(this,4,e,O,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){V(this,8,e,L,t,arguments.length>2?arguments[2]:void 0)}});y(I,k),y(T,w),e.exports={ArrayBuffer:I,DataView:T}},52485(e,t,n){"use strict";var r=n(70581),o=n(47418),a=n(55966),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),l=a(n.length),c=o(e,l),u=o(t,l),d=arguments.length>2?arguments[2]:void 0,p=s((void 0===d?l:o(d,l))-u,l-c),f=1;for(u<c&&c<u+p&&(f=-1,u+=p-1,c+=p-1);p-- >0;)u in n?n[c]=n[u]:delete n[c],c+=f,u+=f;return n}},34453(e,t,n){"use strict";var r=n(70581),o=n(47418),a=n(55966);e.exports=function(e){for(var t=r(this),n=a(t.length),s=arguments.length,l=o(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,u=void 0===c?n:o(c,n);u>l;)t[l++]=e;return t}},13371(e,t,n){"use strict";var r=n(32077).forEach;e.exports=n(31057)("forEach")?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},47996(e,t,n){"use strict";var r=n(38497),o=n(70581),a=n(43167),s=n(45745),l=n(55966),c=n(69904),u=n(30787);e.exports=function(e){var t,n,d,p,f,h=o(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,b=0,x=u(h);if(y&&(v=r(v,g>2?arguments[2]:void 0,2)),void 0==x||m==Array&&s(x))for(n=new m(t=l(h.length));t>b;b++)c(n,b,y?v(h[b],b):h[b]);else for(f=(p=x.call(h)).next,n=new m;!(d=f.call(p)).done;b++)c(n,b,y?a(p,v,[d.value,b],!0):d.value);return n.length=b,n}},42753(e,t,n){var r=n(20853),o=n(55966),a=n(47418),s=function(e){return function(t,n,s){var l,c=r(t),u=o(c.length),d=a(s,u);if(e&&n!=n){for(;u>d;)if((l=c[d++])!=l)return!0}else for(;u>d;d++)if((e||d in c)&&c[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},32077(e,t,n){var r=n(38497),o=n(70191),a=n(70581),s=n(55966),l=n(40797),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,d=4==e,p=6==e,f=5==e||p;return function(h,m,g,v){for(var y,b,x=a(h),C=o(x),k=r(m,g,3),w=s(C.length),S=0,_=v||l,E=t?_(h,w):n?_(h,0):void 0;w>S;S++)if((f||S in C)&&(b=k(y=C[S],S,x),e)){if(t)E[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:c.call(E,y)}else if(d)return!1}return p?-1:u||d?d:E}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},4667(e,t,n){"use strict";var r=n(20853),o=n(9846),a=n(55966),s=n(31057),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf");e.exports=u||d?function(e){if(u)return c.apply(this,arguments)||0;var t=r(this),n=a(t.length),s=n-1;for(arguments.length>1&&(s=l(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return -1}:c},17445(e,t,n){var r=n(84543),o=n(73683),a=n(87759),s=o("species");e.exports=function(e){return a>=51||!r(function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},47262(e,t,n){var r=n(86954),o=n(70581),a=n(70191),s=n(55966),l=function(e){return function(t,n,l,c){r(n);var u=o(t),d=a(u),p=s(u.length),f=e?p-1:0,h=e?-1:1;if(l<2)for(;;){if(f in d){c=d[f],f+=h;break}if(f+=h,e?f<0:p<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:p>f;f+=h)f in d&&(c=n(c,d[f],f,u));return c}};e.exports={left:l(!1),right:l(!0)}},40797(e,t,n){var r=n(41634),o=n(36872),a=n(73683)("species");e.exports=function(e,t){var n;return o(e)&&("function"==typeof(n=e.constructor)&&(n===Array||o(n.prototype))?n=void 0:r(n)&&null===(n=n[a])&&(n=void 0)),new(void 0===n?Array:n)(0===t?0:t)}},38497(e,t,n){var r=n(86954);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,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},43167(e,t,n){var r=n(50151);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},10668(e,t,n){var r=n(73683)("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},96032(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},47611(e,t,n){var r=n(13644),o=n(96032),a=n(73683)("toStringTag"),s="Arguments"==o(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(e){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),a))?n:s?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},82394(e,t,n){"use strict";var r=n(78449).f,o=n(42104),a=n(37564),s=n(38497),l=n(42135),c=n(83308),u=n(70122),d=n(39089),p=n(95180),f=n(98907).fastKey,h=n(14317),m=h.set,g=h.getterFor;e.exports={getConstructor:function(e,t,n,u){var d=e(function(e,r){l(e,d,t),m(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),p||(e.size=0),void 0!=r&&c(r,e[u],e,n)}),h=g(t),v=function(e,t,n){var r,o,a=h(e),s=y(e,t);return s?s.value=n:(a.last=s={index:o=f(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),p?a.size++:e.size++,"F"!==o&&(a.index[o]=s)),e},y=function(e,t){var n,r=h(e),o=f(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(d.prototype,{clear:function(){for(var e=this,t=h(e),n=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,p?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=y(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),p?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=h(this),r=s(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),a(d.prototype,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&r(d.prototype,"size",{get:function(){return h(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),a=g(r);u(e,t,function(e,t){m(this,{type:r,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),d(t)}}},48137(e,t,n){"use strict";var r=n(37564),o=n(98907).getWeakData,a=n(50151),s=n(41634),l=n(42135),c=n(83308),u=n(32077),d=n(6838),p=n(14317),f=p.set,h=p.getterFor,m=u.find,g=u.findIndex,v=0,y=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},x=function(e,t){return m(e.entries,function(e){return e[0]===t})};b.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,u){var p=e(function(e,r){l(e,p,t),f(e,{type:t,id:v++,frozen:void 0}),void 0!=r&&c(r,e[u],e,n)}),m=h(t),g=function(e,t,n){var r=m(e),s=o(a(t),!0);return!0===s?y(r).set(t,n):s[r.id]=n,e};return r(p.prototype,{delete:function(e){var t=m(this);if(!s(e))return!1;var n=o(e);return!0===n?y(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!s(e))return!1;var n=o(e);return!0===n?y(t).has(e):n&&d(n,t.id)}}),r(p.prototype,n?{get:function(e){var t=m(this);if(s(e)){var n=o(e);return!0===n?y(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),p}}},50196(e,t,n){"use strict";var r=n(76566),o=n(54523),a=n(14396),s=n(33874),l=n(98907),c=n(83308),u=n(42135),d=n(41634),p=n(84543),f=n(10668),h=n(6143),m=n(3103);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),y=g?"set":"add",b=o[e],x=b&&b.prototype,C=b,k={},w=function(e){var t=x[e];s(x,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return(!v||!!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!d(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return(!v||!!d(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof b||!(v||x.forEach&&!p(function(){new b().entries().next()}))))C=n.getConstructor(t,e,g,y),l.REQUIRED=!0;else if(a(e,!0)){var S=new C,_=S[y](v?{}:-0,1)!=S,E=p(function(){S.has(1)}),P=f(function(e){new b(e)}),I=!v&&p(function(){for(var e=new b,t=5;t--;)e[y](t,t);return!e.has(-0)});P||((C=t(function(t,n){u(t,C,e);var r=m(new b,t,C);return void 0!=n&&c(n,r[y],r,g),r})).prototype=x,x.constructor=C),(E||I)&&(w("delete"),w("has"),g&&w("get")),(I||_)&&w(y),v&&x.clear&&delete x.clear}return k[e]=C,r({global:!0,forced:C!=b},k),h(C,e),v||n.setStrong(C,e,g),C}},20812(e,t,n){var r=n(6838),o=n(37527),a=n(89763),s=n(78449);e.exports=function(e,t){for(var n=o(t),l=s.f,c=a.f,u=0;u<n.length;u++){var d=n[u];r(e,d)||l(e,d,c(t,d))}}},16412(e,t,n){var r=n(73683)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},30099(e,t,n){e.exports=!n(84543)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},28696(e,t,n){var r=n(69286),o=/"/g;e.exports=function(e,t,n,a){var s=String(r(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+String(a).replace(o,"&quot;")+'"'),l+">"+s+"</"+t+">"}},59714(e,t,n){"use strict";var r=n(80793).IteratorPrototype,o=n(42104),a=n(6372),s=n(6143),l=n(47869),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=o(r,{next:a(1,n)}),s(e,u,!1,!0),l[u]=c,e}},76587(e,t,n){var r=n(95180),o=n(78449),a=n(6372);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},6372(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},69904(e,t,n){"use strict";var r=n(39113),o=n(78449),a=n(6372);e.exports=function(e,t,n){var s=r(t);s in e?o.f(e,s,a(0,n)):e[s]=n}},39756(e,t,n){"use strict";var r=n(84543),o=n(10613).start,a=Math.abs,s=Date.prototype,l=s.getTime,c=s.toISOString;e.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-5e13-1))})||!r(function(){c.call(new Date(NaN))})?function(){if(!isFinite(l.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+o(a(t),r?6:4,0)+"-"+o(e.getUTCMonth()+1,2,0)+"-"+o(e.getUTCDate(),2,0)+"T"+o(e.getUTCHours(),2,0)+":"+o(e.getUTCMinutes(),2,0)+":"+o(e.getUTCSeconds(),2,0)+"."+o(n,3,0)+"Z"}:c},49096(e,t,n){"use strict";var r=n(50151),o=n(39113);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},70122(e,t,n){"use strict";var r=n(76566),o=n(59714),a=n(17763),s=n(27943),l=n(6143),c=n(76587),u=n(33874),d=n(73683),p=n(7051),f=n(47869),h=n(80793),m=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,v=d("iterator"),y="keys",b="values",x="entries",C=function(){return this};e.exports=function(e,t,n,d,h,k,w){o(n,t,d);var S,_,E,P=function(e){if(e===h&&R)return R;if(!g&&e in D)return D[e];switch(e){case y:case b:case x:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",T=!1,D=e.prototype,A=D[v]||D["@@iterator"]||h&&D[h],R=!g&&A||P(h),N="Array"==t&&D.entries||A;if(N&&(S=a(N.call(new e)),m!==Object.prototype&&S.next&&(p||a(S)===m||(s?s(S,m):"function"!=typeof S[v]&&c(S,v,C)),l(S,I,!0,!0),p&&(f[I]=C))),h==b&&A&&A.name!==b&&(T=!0,R=function(){return A.call(this)}),(!p||w)&&D[v]!==R&&c(D,v,R),f[t]=R,h)if(_={values:P(b),keys:k?R:P(y),entries:P(x)},w)for(E in _)!g&&!T&&E in D||u(D,E,_[E]);else r({target:t,proto:!0,forced:g||T},_);return _}},84887(e,t,n){var r=n(20863),o=n(6838),a=n(59327),s=n(78449).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||s(t,e,{value:a.f(e)})}},95180(e,t,n){e.exports=!n(84543)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},62679(e,t,n){var r=n(54523),o=n(41634),a=r.document,s=o(a)&&o(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},90792(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},28471(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76566(e,t,n){var r=n(54523),o=n(89763).f,a=n(76587),s=n(33874),l=n(45156),c=n(20812),u=n(14396);e.exports=function(e,t){var n,d,p,f,h,m=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[m]||l(m,{}):(r[m]||{}).prototype)for(d in t){if(f=t[d],p=e.noTargetGet?(h=o(n,d))&&h.value:n[d],!u(g?d:m+(v?".":"#")+d,e.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(e.sham||p&&p.sham)&&a(f,"sham",!0),s(n,d,f,e)}}},84543(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},1644(e,t,n){"use strict";var r=n(76587),o=n(33874),a=n(84543),s=n(73683),l=n(8779),c=s("species"),u=!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d=!a(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]});e.exports=function(e,t,n,p){var f=s(e),h=!a(function(){var t={};return t[f]=function(){return 7},7!=""[e](t)}),m=h&&!a(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t});if(!h||!m||"replace"===e&&!u||"split"===e&&!d){var g=/./[f],v=n(f,""[e],function(e,t,n,r,o){return t.exec===l?h&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),y=v[0],b=v[1];o(String.prototype,e,y),o(RegExp.prototype,f,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)}),p&&r(RegExp.prototype[f],"sham",!0)}}},39635(e,t,n){"use strict";var r=n(36872),o=n(55966),a=n(38497),s=function(e,t,n,l,c,u,d,p){for(var f,h=c,m=0,g=!!d&&a(d,p,3);m<l;){if(m in n){if(f=g?g(n[m],m,t):n[m],u>0&&r(f))h=s(e,t,f,o(f.length),h,u-1)-1;else{if(h>=0x1fffffffffffff)throw TypeError("Exceed the acceptable array length");e[h]=f}h++}m++}return h};e.exports=s},86748(e,t,n){"use strict";var r=n(7051),o=n(54523),a=n(84543);e.exports=r||!a(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete o[e]})},98031(e,t,n){var r=n(84543);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},64008(e,t,n){var r=n(84543),o=n(98908),a="​\x85᠎";e.exports=function(e){return r(function(){return!!o[e]()||a[e]()!=a||o[e].name!==e})}},95240(e,t,n){e.exports=!n(84543)(function(){return Object.isExtensible(Object.preventExtensions({}))})},53958(e,t,n){"use strict";var r=n(86954),o=n(41634),a=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";s[t]=Function("C,a","return new C("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?l(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(s.prototype=t.prototype),s}},47735(e,t,n){var r=n(20863),o=n(54523),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},30787(e,t,n){var r=n(47611),o=n(47869),a=n(73683)("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||o[r(e)]}},36417(e,t,n){var r=n(50151),o=n(30787);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},54523(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||Function("return this")()},6838(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},65525(e){e.exports={}},43781(e,t,n){var r=n(54523);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},22093(e,t,n){e.exports=n(47735)("document","documentElement")},59053(e,t,n){var r=n(95180),o=n(84543),a=n(62679);e.exports=!r&&!o(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},15498(e){var t=1/0,n=Math.abs,r=Math.pow,o=Math.floor,a=Math.log,s=Math.LN2;e.exports={pack:function(e,l,c){var u,d,p,f=Array(c),h=8*c-l-1,m=(1<<h)-1,g=m>>1,v=23===l?r(2,-24)-r(2,-77):0,y=+(e<0||0===e&&1/e<0),b=0;for((e=n(e))!=e||e===t?(d=+(e!=e),u=m):(u=o(a(e)/s),e*(p=r(2,-u))<1&&(u--,p*=2),u+g>=1?e+=v/p:e+=v*r(2,1-g),e*p>=2&&(u++,p/=2),u+g>=m?(d=0,u=m):u+g>=1?(d=(e*p-1)*r(2,l),u+=g):(d=e*r(2,g-1)*r(2,l),u=0));l>=8;f[b++]=255&d,d/=256,l-=8);for(u=u<<l|d,h+=l;h>0;f[b++]=255&u,u/=256,h-=8);return f[--b]|=128*y,f},unpack:function(e,n){var o,a=e.length,s=8*a-n-1,l=(1<<s)-1,c=l>>1,u=s-7,d=a-1,p=e[d--],f=127&p;for(p>>=7;u>0;f=256*f+e[d],d--,u-=8);for(o=f&(1<<-u)-1,f>>=-u,u+=n;u>0;o=256*o+e[d],d--,u-=8);if(0===f)f=1-c;else{if(f===l)return o?NaN:p?-t:t;o+=r(2,n),f-=c}return(p?-1:1)*o*r(2,f-n)}}},70191(e,t,n){var r=n(84543),o=n(96032),a="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},3103(e,t,n){var r=n(41634),o=n(27943);e.exports=function(e,t,n){var a,s;return o&&"function"==typeof(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},56842(e,t,n){var r=n(43965),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},98907(e,t,n){var r=n(65525),o=n(41634),a=n(6838),s=n(78449).f,l=n(76048),c=n(95240),u=l("meta"),d=0,p=Object.isExtensible||function(){return!0},f=function(e){s(e,u,{value:{objectID:"O"+ ++d,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,u)){if(!p(e))return"F";if(!t)return"E";f(e)}return e[u].objectID},getWeakData:function(e,t){if(!a(e,u)){if(!p(e))return!0;if(!t)return!1;f(e)}return e[u].weakData},onFreeze:function(e){return c&&h.REQUIRED&&p(e)&&!a(e,u)&&f(e),e}};r[u]=!0},14317(e,t,n){var r,o,a,s=n(36303),l=n(54523),c=n(41634),u=n(76587),d=n(6838),p=n(99847),f=n(65525),h=l.WeakMap,m=function(e){return a(e)?o(e):r(e,{})},g=function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(s){var v=new h,y=v.get,b=v.has,x=v.set;r=function(e,t){return x.call(v,e,t),t},o=function(e){return y.call(v,e)||{}},a=function(e){return b.call(v,e)}}else{var C=p("state");f[C]=!0,r=function(e,t){return u(e,C,t),t},o=function(e){return d(e,C)?e[C]:{}},a=function(e){return d(e,C)}}e.exports={set:r,get:o,has:a,enforce:m,getterFor:g}},45745(e,t,n){var r=n(73683),o=n(47869),a=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[a]===e)}},36872(e,t,n){var r=n(96032);e.exports=Array.isArray||function(e){return"Array"==r(e)}},14396(e,t,n){var r=n(84543),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},219(e,t,n){var r=n(41634),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},58168(e,t,n){var r=n(79175);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},41634(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},7051(e){e.exports=!1},82388(e,t,n){var r=n(41634),o=n(96032),a=n(73683)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},83308(e,t,n){var r=n(50151),o=n(45745),a=n(55966),s=n(38497),l=n(30787),c=n(43167),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,d,p){var f,h,m,g,v,y,b,x=s(t,n,d?2:1);if(p)f=e;else{if("function"!=typeof(h=l(e)))throw TypeError("Target is not iterable");if(o(h)){for(m=0,g=a(e.length);g>m;m++)if((v=d?x(r(b=e[m])[0],b[1]):x(e[m]))&&v instanceof u)return v;return new u(!1)}f=h.call(e)}for(y=f.next;!(b=y.call(f)).done;)if("object"==typeof(v=c(f,x,b.value,d))&&v&&v instanceof u)return v;return new u(!1)}).stop=function(e){return new u(!0,e)}},80793(e,t,n){"use strict";var r,o,a,s=n(17763),l=n(76587),c=n(6838),u=n(73683),d=n(7051),p=u("iterator"),f=!1,h=function(){return this};[].keys&&("next"in(a=[].keys())?(o=s(s(a)))!==Object.prototype&&(r=o):f=!0),void 0==r&&(r={}),d||c(r,p)||l(r,p,h),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},47869(e){e.exports={}},86978(e){var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||22025.465794806718>t(10)||-2e-17!=t(-2e-17)?function(e){return 0==(e*=1)?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:t},50721(e,t,n){var r=n(99382),o=Math.abs,a=Math.pow,s=a(2,-52),l=a(2,-23),c=a(2,127)*(2-l),u=a(2,-126),d=function(e){return e+1/s-1/s};e.exports=Math.fround||function(e){var t,n,a=o(e),p=r(e);return a<u?p*d(a/u/l)*u*l:(n=(t=(1+l/s)*a)-(t-a))>c||n!=n?1/0*p:p*n}},41468(e){var t=Math.log;e.exports=Math.log1p||function(e){return(e*=1)>-1e-8&&e<1e-8?e-e*e/2:t(1+e)}},99382(e){e.exports=Math.sign||function(e){return 0==(e*=1)||e!=e?e:e<0?-1:1}},13555(e,t,n){var r,o,a,s,l,c,u,d,p=n(54523),f=n(89763).f,h=n(96032),m=n(60921).set,g=n(58168),v=p.MutationObserver||p.WebKitMutationObserver,y=p.process,b=p.Promise,x="process"==h(y),C=f(p,"queueMicrotask"),k=C&&C.value;k||(r=function(){var e,t;for(x&&(e=y.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?s():a=void 0,e}}a=void 0,e&&e.enter()},x?s=function(){y.nextTick(r)}:v&&!g?(l=!0,c=document.createTextNode(""),new v(r).observe(c,{characterData:!0}),s=function(){c.data=l=!l}):b&&b.resolve?(d=(u=b.resolve(void 0)).then,s=function(){d.call(u,r)}):s=function(){m.call(p,r)}),e.exports=k||function(e){var t={fn:e,next:void 0};a&&(a.next=t),o||(o=t,s()),a=t}},22790(e,t,n){e.exports=n(54523).Promise},5456(e,t,n){var r=n(84543);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},38659(e,t,n){var r=n(84543),o=n(73683),a=n(7051),s=o("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}),a&&!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[s]||"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})},36303(e,t,n){var r=n(54523),o=n(56842),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(o(a))},89579(e,t,n){"use strict";var r=n(86954),o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},10495(e,t,n){var r=n(82388);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},96952(e,t,n){var r=n(54523).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},83957(e,t,n){"use strict";var r=n(95180),o=n(84543),a=n(22528),s=n(32981),l=n(40005),c=n(70581),u=n(70191),d=Object.assign,p=Object.defineProperty;e.exports=!d||o(function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=d({},e)[n]||a(d({},t)).join("")!=o})?function(e,t){for(var n=c(e),o=arguments.length,d=1,p=s.f,f=l.f;o>d;)for(var h,m=u(arguments[d++]),g=p?a(m).concat(p(m)):a(m),v=g.length,y=0;v>y;)h=g[y++],(!r||f.call(m,h))&&(n[h]=m[h]);return n}:d},42104(e,t,n){var r=n(50151),o=n(98337),a=n(28471),s=n(65525),l=n(22093),c=n(62679),u=n(99847)("IE_PROTO"),d="prototype",p=function(){},f=function(){var e,t=c("iframe"),n=a.length,r="<",o="script",s=">",u="java"+o+":";for(t.style.display="none",l.appendChild(t),t.src=String(u),(e=t.contentWindow.document).open(),e.write(r+o+s+"document.F=Object"+r+"/"+o+s),e.close(),f=e.F;n--;)delete f[d][a[n]];return f()};e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=r(e),n=new p,p[d]=null,n[u]=e):n=f(),void 0===t?n:o(n,t)},s[u]=!0},98337(e,t,n){var r=n(95180),o=n(78449),a=n(50151),s=n(22528);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),l=r.length,c=0;l>c;)o.f(e,n=r[c++],t[n]);return e}},78449(e,t,n){var r=n(95180),o=n(59053),a=n(50151),s=n(39113),l=Object.defineProperty;t.f=r?l:function(e,t,n){if(a(e),t=s(t,!0),a(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},89763(e,t,n){var r=n(95180),o=n(40005),a=n(6372),s=n(20853),l=n(39113),c=n(6838),u=n(59053),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t,!0),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!o.f.call(e,t),e[t])}},23834(e,t,n){var r=n(20853),o=n(29712).f,a={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(e){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==a.call(e)?l(e):o(r(e))}},29712(e,t,n){var r=n(1156),o=n(28471).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},32981(e,t){t.f=Object.getOwnPropertySymbols},17763(e,t,n){var r=n(6838),o=n(70581),a=n(99847),s=n(30099),l=a("IE_PROTO"),c=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return r(e=o(e),l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},1156(e,t,n){var r=n(6838),o=n(20853),a=n(42753).indexOf,s=n(65525);e.exports=function(e,t){var n,l=o(e),c=0,u=[];for(n in l)!r(s,n)&&r(l,n)&&u.push(n);for(;t.length>c;)r(l,n=t[c++])&&(~a(u,n)||u.push(n));return u}},22528(e,t,n){var r=n(1156),o=n(28471);e.exports=Object.keys||function(e){return r(e,o)}},40005(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},27943(e,t,n){var r=n(50151),o=n(12834);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return r(n),o(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},5221(e,t,n){var r=n(95180),o=n(22528),a=n(20853),s=n(40005).f,l=function(e){return function(t){for(var n,l=a(t),c=o(l),u=c.length,d=0,p=[];u>d;)n=c[d++],(!r||s.call(l,n))&&p.push(e?[n,l[n]]:l[n]);return p}};e.exports={entries:l(!0),values:l(!1)}},83419(e,t,n){"use strict";var r=n(13644),o=n(47611);e.exports=r?({}).toString:function(){return"[object "+o(this)+"]"}},37527(e,t,n){var r=n(47735),o=n(29712),a=n(32981),s=n(50151);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?t.concat(n(e)):t}},43510(e,t,n){var r=n(54523),o=n(78906).trim,a=n(98908),s=r.parseFloat;e.exports=1/s(a+"-0")!=-1/0?function(e){var t=o(String(e)),n=s(t);return 0===n&&"-"==t.charAt(0)?-0:n}:s},20809(e,t,n){var r=n(54523),o=n(78906).trim,a=n(98908),s=r.parseInt,l=/^[+-]?0[Xx]/;e.exports=8!==s(a+"08")||22!==s(a+"0x16")?function(e,t){var n=o(String(e));return s(n,t>>>0||(l.test(n)?16:10))}:s},20863(e,t,n){e.exports=n(54523)},28111(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},66302(e,t,n){var r=n(50151),o=n(41634),a=n(89579);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},80863(e){"use strict";var t=0x7fffffff,n=36,r=1,o=26,a=38,s=700,l=72,c=128,u="-",d=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,f="Overflow: input needs wider integers to process",h=35,m=Math.floor,g=String.fromCharCode,v=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var a=e.charCodeAt(n++);(64512&a)==56320?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),n--)}else t.push(o)}return t},y=function(e){return e+22+75*(e<26)},b=function(e,t,r){var l=0;for(e=r?m(e/s):e>>1,e+=m(e/t);e>h*o>>1;l+=n)e=m(e/h);return m(l+(h+1)*e/(e+a))},x=function(e){var a,s,d=[],p=(e=v(e)).length,h=c,x=0,C=l;for(a=0;a<e.length;a++)(s=e[a])<128&&d.push(g(s));var k=d.length,w=k;for(k&&d.push(u);w<p;){var S=t;for(a=0;a<e.length;a++)(s=e[a])>=h&&s<S&&(S=s);var _=w+1;if(S-h>m((t-x)/_))throw RangeError(f);for(x+=(S-h)*_,h=S,a=0;a<e.length;a++){if((s=e[a])<h&&++x>t)throw RangeError(f);if(s==h){for(var E=x,P=n;;P+=n){var I=P<=C?r:P>=C+o?o:P-C;if(E<I)break;var T=E-I,D=n-I;d.push(g(y(I+T%D))),E=m(T/D)}d.push(g(y(E))),C=b(x,_,w==k),x=0,++w}}++x,++h}return d.join("")};e.exports=function(e){var t,n,r=[],o=e.toLowerCase().replace(p,".").split(".");for(t=0;t<o.length;t++)n=o[t],r.push(d.test(n)?"xn--"+x(n):n);return r.join(".")}},37564(e,t,n){var r=n(33874);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},33874(e,t,n){var r=n(54523),o=n(76587),a=n(6838),s=n(45156),l=n(56842),c=n(14317),u=c.get,d=c.enforce,p=String(String).split("String");(e.exports=function(e,t,n,l){var c=!!l&&!!l.unsafe,u=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;("function"==typeof n&&("string"!=typeof t||a(n,"name")||o(n,"name",t),d(n).source=p.join("string"==typeof t?t:"")),e===r)?u?e[t]=n:s(t,n):(c?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:o(e,t,n))})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||l(this)})},96010(e,t,n){var r=n(96032),o=n(8779);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},8779(e,t,n){"use strict";var r=n(34315),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(s=function(e){var t,n,s,u,d=this;return c&&(n=RegExp("^"+d.source+"$(?!\\s)",r.call(d))),l&&(t=d.lastIndex),s=o.call(d,e),l&&s&&(d.lastIndex=d.global?s.index+s[0].length:t),c&&s&&s.length>1&&a.call(s[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s}),e.exports=s},34315(e,t,n){"use strict";var r=n(50151);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},69286(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},53550(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},45156(e,t,n){var r=n(54523),o=n(76587);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},39089(e,t,n){"use strict";var r=n(47735),o=n(78449),a=n(73683),s=n(95180),l=a("species");e.exports=function(e){var t=r(e),n=o.f;s&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},6143(e,t,n){var r=n(78449).f,o=n(6838),a=n(73683)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},99847(e,t,n){var r=n(39441),o=n(76048),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},43965(e,t,n){var r=n(54523),o=n(45156),a="__core-js_shared__";e.exports=r[a]||o(a,{})},39441(e,t,n){var r=n(7051),o=n(43965);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.5.0",mode:r?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},31057(e,t,n){"use strict";var r=n(84543);e.exports=function(e,t){var n=[][e];return!n||!r(function(){n.call(null,t||function(){throw 1},1)})}},98581(e,t,n){var r=n(50151),o=n(86954),a=n(73683)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[a])?t:o(n)}},14775(e,t,n){var r=n(9846),o=n(69286),a=function(e){return function(t,n){var a,s,l=String(o(t)),c=r(n),u=l.length;return c<0||c>=u?e?"":void 0:(a=l.charCodeAt(c))<55296||a>56319||c+1===u||(s=l.charCodeAt(c+1))<56320||s>57343?e?l.charAt(c):a:e?l.slice(c,c+2):(a-55296<<10)+(s-56320)+65536}};e.exports={codeAt:a(!1),charAt:a(!0)}},10613(e,t,n){var r=n(55966),o=n(12077),a=n(69286),s=Math.ceil,l=function(e){return function(t,n,l){var c,u,d=String(a(t)),p=d.length,f=void 0===l?" ":String(l),h=r(n);return h<=p||""==f?d:(c=h-p,(u=o.call(f,s(c/f.length))).length>c&&(u=u.slice(0,c)),e?d+u:u+d)}};e.exports={start:l(!1),end:l(!0)}},12077(e,t,n){"use strict";var r=n(9846),o=n(69286);e.exports="".repeat||function(e){var t=String(o(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},78906(e,t,n){var r=n(69286),o="["+n(98908)+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),l=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},60921(e,t,n){var r,o,a,s=n(54523),l=n(84543),c=n(96032),u=n(38497),d=n(22093),p=n(62679),f=n(58168),h=s.location,m=s.setImmediate,g=s.clearImmediate,v=s.process,y=s.MessageChannel,b=s.Dispatch,x=0,C={},k="onreadystatechange",w=function(e){if(C.hasOwnProperty(e)){var t=C[e];delete C[e],t()}},S=function(e){return function(){w(e)}},_=function(e){w(e.data)},E=function(e){s.postMessage(e+"",h.protocol+"//"+h.host)};m&&g||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return C[++x]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(x),x},g=function(e){delete C[e]},"process"==c(v)?r=function(e){v.nextTick(S(e))}:b&&b.now?r=function(e){b.now(S(e))}:y&&!f?(a=(o=new y).port2,o.port1.onmessage=_,r=u(a.postMessage,a,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||l(E)?r=k in p("script")?function(e){d.appendChild(p("script"))[k]=function(){d.removeChild(this),w(e)}}:function(e){setTimeout(S(e),0)}:(r=E,s.addEventListener("message",_,!1))),e.exports={set:m,clear:g}},43048(e,t,n){var r=n(96032);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},47418(e,t,n){var r=n(9846),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},60192(e,t,n){var r=n(9846),o=n(55966);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},20853(e,t,n){var r=n(70191),o=n(69286);e.exports=function(e){return r(o(e))}},9846(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e*=1)?0:(e>0?n:t)(e)}},55966(e,t,n){var r=n(9846),o=Math.min;e.exports=function(e){return e>0?o(r(e),0x1fffffffffffff):0}},70581(e,t,n){var r=n(69286);e.exports=function(e){return Object(r(e))}},79829(e,t,n){var r=n(79526);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},79526(e,t,n){var r=n(9846);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},39113(e,t,n){var r=n(41634);e.exports=function(e,t){var n,o;if(!r(e))return e;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e))||"function"==typeof(n=e.valueOf)&&!r(o=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},13644(e,t,n){var r=n(73683)("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},90799(e,t,n){"use strict";var r=n(76566),o=n(54523),a=n(95180),s=n(82133),l=n(48180),c=n(16330),u=n(42135),d=n(6372),p=n(76587),f=n(55966),h=n(60192),m=n(79829),g=n(39113),v=n(6838),y=n(47611),b=n(41634),x=n(42104),C=n(27943),k=n(29712).f,w=n(89843),S=n(32077).forEach,_=n(39089),E=n(78449),P=n(89763),I=n(14317),T=n(3103),D=I.get,A=I.set,R=E.f,N=P.f,B=Math.round,M=o.RangeError,F=c.ArrayBuffer,O=c.DataView,L=l.NATIVE_ARRAY_BUFFER_VIEWS,H=l.TYPED_ARRAY_TAG,z=l.TypedArray,V=l.TypedArrayPrototype,U=l.aTypedArrayConstructor,j=l.isTypedArray,W="BYTES_PER_ELEMENT",q="Wrong length",G=function(e,t){for(var n=0,r=t.length,o=new(U(e))(r);r>n;)o[n]=t[n++];return o},K=function(e,t){R(e,t,{get:function(){return D(this)[t]}})},X=function(e){var t;return e instanceof F||"ArrayBuffer"==(t=y(e))||"SharedArrayBuffer"==t},Y=function(e,t){return j(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Q=function(e,t){return Y(e,t=g(t,!0))?d(2,e[t]):N(e,t)},J=function(e,t,n){return Y(e,t=g(t,!0))&&b(n)&&v(n,"value")&&!v(n,"get")&&!v(n,"set")&&!n.configurable&&(!v(n,"writable")||n.writable)&&(!v(n,"enumerable")||n.enumerable)?(e[t]=n.value,e):R(e,t,n)};a?(L||(P.f=Q,E.f=J,K(V,"buffer"),K(V,"byteOffset"),K(V,"byteLength"),K(V,"length")),r({target:"Object",stat:!0,forced:!L},{getOwnPropertyDescriptor:Q,defineProperty:J}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,d="set"+e,g=o[l],v=g,y=v&&v.prototype,E={},P=function(e,t){var n=D(e);return n.view[c](t*a+n.byteOffset,!0)},I=function(e,t,r){var o=D(e);n&&(r=(r=B(r))<0?0:r>255?255:255&r),o.view[d](t*a+o.byteOffset,r,!0)},N=function(e,t){R(e,t,{get:function(){return P(this,t)},set:function(e){return I(this,t,e)},enumerable:!0})};L?s&&(v=t(function(e,t,n,r){return u(e,v,l),T(function(){return b(t)?X(t)?void 0!==r?new g(t,m(n,a),r):void 0!==n?new g(t,m(n,a)):new g(t):j(t)?G(v,t):w.call(v,t):new g(h(t))}(),e,v)}),C&&C(v,z),S(k(g),function(e){e in v||p(v,e,g[e])}),v.prototype=y):(v=t(function(e,t,n,r){u(e,v,l);var o,s,c,d=0,p=0;if(b(t))if(X(t)){o=t,p=m(n,a);var g=t.byteLength;if(void 0===r){if(g%a||(s=g-p)<0)throw M(q)}else if((s=f(r)*a)+p>g)throw M(q);c=s/a}else if(j(t))return G(v,t);else return w.call(v,t);else o=new F(s=(c=h(t))*a);for(A(e,{buffer:o,byteOffset:p,byteLength:s,length:c,view:new O(o)});d<c;)N(e,d++)}),C&&C(v,z),y=v.prototype=x(V)),y.constructor!==v&&p(y,"constructor",v),H&&p(y,H,l),E[l]=v,r({global:!0,forced:v!=g,sham:!L},E),W in v||p(v,W,a),W in y||p(y,W,a),_(l)}):e.exports=function(){}},89843(e,t,n){var r=n(70581),o=n(55966),a=n(30787),s=n(45745),l=n(38497),c=n(48180).aTypedArrayConstructor;e.exports=function(e){var t,n,u,d,p,f,h=r(e),m=arguments.length,g=m>1?arguments[1]:void 0,v=void 0!==g,y=a(h);if(void 0!=y&&!s(y))for(f=(p=y.call(h)).next,h=[];!(d=f.call(p)).done;)h.push(d.value);for(v&&m>2&&(g=l(g,arguments[2],2)),n=o(h.length),u=new(c(this))(n),t=0;n>t;t++)u[t]=v?g(h[t],t):h[t];return u}},82133(e,t,n){var r=n(54523),o=n(84543),a=n(10668),s=n(48180).NATIVE_ARRAY_BUFFER_VIEWS,l=r.ArrayBuffer,c=r.Int8Array;e.exports=!s||!o(function(){c(1)})||!o(function(){new c(-1)})||!a(function(e){new c,new c(null),new c(1.5),new c(e)},!0)||o(function(){return 1!==new c(new l(2),1,void 0).length})},76048(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},2496(e,t,n){e.exports=n(5456)&&!Symbol.sham&&"symbol"==typeof Symbol()},79175(e,t,n){e.exports=n(47735)("navigator","userAgent")||""},87759(e,t,n){var r,o,a=n(54523),s=n(79175),l=a.process,c=l&&l.versions,u=c&&c.v8;u?o=(r=u.split("."))[0]+r[1]:s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},34197(e,t,n){var r=n(79175);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},73683(e,t,n){var r=n(54523),o=n(39441),a=n(6838),s=n(76048),l=n(5456),c=n(2496),u=o("wks"),d=r.Symbol,p=c?d:s;e.exports=function(e){return a(u,e)||(l&&a(d,e)?u[e]=d[e]:u[e]=p("Symbol."+e)),u[e]}},98908(e){e.exports="	\n\v\f\r \xa0              　\u2028\u2029\uFEFF"},59327(e,t,n){t.f=n(73683)},37239(e,t,n){"use strict";var r=n(76566),o=n(54523),a=n(16330),s=n(39089),l="ArrayBuffer",c=a[l];r({global:!0,forced:o[l]!==c},{ArrayBuffer:c}),s(l)},68265(e,t,n){var r=n(76566),o=n(48180);r({target:"ArrayBuffer",stat:!0,forced:!o.NATIVE_ARRAY_BUFFER_VIEWS},{isView:o.isView})},8033(e,t,n){"use strict";var r=n(76566),o=n(84543),a=n(16330),s=n(50151),l=n(47418),c=n(55966),u=n(98581),d=a.ArrayBuffer,p=a.DataView,f=d.prototype.slice;r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o(function(){return!new d(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(void 0!==f&&void 0===t)return f.call(s(this),e);for(var n=s(this).byteLength,r=l(e,n),o=l(void 0===t?n:t,n),a=new(u(this,d))(c(o-r)),h=new p(this),m=new p(a),g=0;r<o;)m.setUint8(g++,h.getUint8(r++));return a}})},68450(e,t,n){"use strict";var r=n(76566),o=n(84543),a=n(36872),s=n(41634),l=n(70581),c=n(55966),u=n(69904),d=n(40797),p=n(17445),f=n(73683),h=n(87759),m=f("isConcatSpreadable"),g=0x1fffffffffffff,v="Maximum allowed index exceeded",y=h>=51||!o(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),b=p("concat"),x=function(e){if(!s(e))return!1;var t=e[m];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!y||!b},{concat:function(e){var t,n,r,o,a,s=l(this),p=d(s,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(a=-1===t?s:arguments[t],x(a)){if(f+(o=c(a.length))>g)throw TypeError(v);for(n=0;n<o;n++,f++)n in a&&u(p,f,a[n])}else{if(f>=g)throw TypeError(v);u(p,f++,a)}return p.length=f,p}})},96211(e,t,n){var r=n(76566),o=n(52485),a=n(75845);r({target:"Array",proto:!0},{copyWithin:o}),a("copyWithin")},38415(e,t,n){"use strict";var r=n(76566),o=n(32077).every;r({target:"Array",proto:!0,forced:n(31057)("every")},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},68875(e,t,n){var r=n(76566),o=n(34453),a=n(75845);r({target:"Array",proto:!0},{fill:o}),a("fill")},25400(e,t,n){"use strict";var r=n(76566),o=n(32077).filter,a=n(84543),s=n(17445)("filter"),l=s&&!a(function(){[].filter.call({length:-1,0:1},function(e){throw e})});r({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},44436(e,t,n){"use strict";var r=n(76566),o=n(32077).findIndex,a=n(75845),s="findIndex",l=!0;s in[]&&[,][s](function(){l=!1}),r({target:"Array",proto:!0,forced:l},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},1569(e,t,n){"use strict";var r=n(76566),o=n(32077).find,a=n(75845),s="find",l=!0;s in[]&&[,][s](function(){l=!1}),r({target:"Array",proto:!0,forced:l},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},51214(e,t,n){"use strict";var r=n(76566),o=n(39635),a=n(70581),s=n(55966),l=n(86954),c=n(40797);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=s(n.length);return l(e),(t=c(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},97905(e,t,n){"use strict";var r=n(76566),o=n(39635),a=n(70581),s=n(55966),l=n(9846),c=n(40797);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=s(t.length),r=c(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:l(e)),r}})},24493(e,t,n){"use strict";var r=n(76566),o=n(13371);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},74874(e,t,n){var r=n(76566),o=n(47996);r({target:"Array",stat:!0,forced:!n(10668)(function(e){Array.from(e)})},{from:o})},30935(e,t,n){"use strict";var r=n(76566),o=n(42753).includes,a=n(75845);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},98140(e,t,n){"use strict";var r=n(76566),o=n(42753).indexOf,a=n(31057),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=a("indexOf");r({target:"Array",proto:!0,forced:l||c},{indexOf:function(e){return l?s.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},37210(e,t,n){n(76566)({target:"Array",stat:!0},{isArray:n(36872)})},96656(e,t,n){"use strict";var r=n(20853),o=n(75845),a=n(47869),s=n(14317),l=n(70122),c="Array Iterator",u=s.set,d=s.getterFor(c);e.exports=l(Array,"Array",function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})},function(){var e=d(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},54(e,t,n){"use strict";var r=n(76566),o=n(70191),a=n(20853),s=n(31057),l=[].join,c=o!=Object,u=s("join",",");r({target:"Array",proto:!0,forced:c||u},{join:function(e){return l.call(a(this),void 0===e?",":e)}})},48249(e,t,n){var r=n(76566),o=n(4667);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},95790(e,t,n){"use strict";var r=n(76566),o=n(32077).map,a=n(84543),s=n(17445)("map"),l=s&&!a(function(){[].map.call({length:-1,0:1},function(e){throw e})});r({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},52651(e,t,n){"use strict";var r=n(76566),o=n(84543),a=n(69904);r({target:"Array",stat:!0,forced:o(function(){function e(){}return!(Array.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)a(n,e,arguments[e++]);return n.length=t,n}})},98799(e,t,n){"use strict";var r=n(76566),o=n(47262).right;r({target:"Array",proto:!0,forced:n(31057)("reduceRight")},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},96104(e,t,n){"use strict";var r=n(76566),o=n(47262).left;r({target:"Array",proto:!0,forced:n(31057)("reduce")},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},17626(e,t,n){"use strict";var r=n(76566),o=n(36872),a=[].reverse,s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a.call(this)}})},84766(e,t,n){"use strict";var r=n(76566),o=n(41634),a=n(36872),s=n(47418),l=n(55966),c=n(20853),u=n(69904),d=n(17445),p=n(73683)("species"),f=[].slice,h=Math.max;r({target:"Array",proto:!0,forced:!d("slice")},{slice:function(e,t){var n,r,d,m=c(this),g=l(m.length),v=s(e,g),y=s(void 0===t?g:t,g);if(a(m)&&("function"==typeof(n=m.constructor)&&(n===Array||a(n.prototype))?n=void 0:o(n)&&null===(n=n[p])&&(n=void 0),n===Array||void 0===n))return f.call(m,v,y);for(d=0,r=new(void 0===n?Array:n)(h(y-v,0));v<y;v++,d++)v in m&&u(r,d,m[v]);return r.length=d,r}})},66542(e,t,n){"use strict";var r=n(76566),o=n(32077).some;r({target:"Array",proto:!0,forced:n(31057)("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},78366(e,t,n){"use strict";var r=n(76566),o=n(86954),a=n(70581),s=n(84543),l=n(31057),c=[],u=c.sort,d=s(function(){c.sort(void 0)}),p=s(function(){c.sort(null)}),f=l("sort");r({target:"Array",proto:!0,forced:d||!p||f},{sort:function(e){return void 0===e?u.call(a(this)):u.call(a(this),o(e))}})},10614(e,t,n){n(39089)("Array")},94298(e,t,n){"use strict";var r=n(76566),o=n(47418),a=n(9846),s=n(55966),l=n(70581),c=n(40797),u=n(69904),d=n(17445),p=Math.max,f=Math.min,h=0x1fffffffffffff,m="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d("splice")},{splice:function(e,t){var n,r,d,g,v,y,b=l(this),x=s(b.length),C=o(e,x),k=arguments.length;if(0===k?n=r=0:1===k?(n=0,r=x-C):(n=k-2,r=f(p(a(t),0),x-C)),x+n-r>h)throw TypeError(m);for(g=0,d=c(b,r);g<r;g++)(v=C+g)in b&&u(d,g,b[v]);if(d.length=r,n<r){for(g=C;g<x-r;g++)v=g+r,y=g+n,v in b?b[y]=b[v]:delete b[y];for(g=x;g>x-r+n;g--)delete b[g-1]}else if(n>r)for(g=x-r;g>C;g--)v=g+r-1,y=g+n-1,v in b?b[y]=b[v]:delete b[y];for(g=0;g<n;g++)b[g+C]=arguments[g+2];return b.length=x-r+n,d}})},73309(e,t,n){n(75845)("flatMap")},52138(e,t,n){n(75845)("flat")},88389(e,t,n){var r=n(76566),o=n(16330);r({global:!0,forced:!n(48180).NATIVE_ARRAY_BUFFER},{DataView:o.DataView})},97041(e,t,n){n(76566)({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},97976(e,t,n){var r=n(76566),o=n(39756);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},84131(e,t,n){"use strict";var r=n(76566),o=n(84543),a=n(70581),s=n(39113);r({target:"Date",proto:!0,forced:o(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(e){var t=a(this),n=s(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},58948(e,t,n){var r=n(76587),o=n(49096),a=n(73683)("toPrimitive"),s=Date.prototype;a in s||r(s,a,o)},96152(e,t,n){var r=n(33874),o=Date.prototype,a="Invalid Date",s="toString",l=o[s],c=o.getTime;new Date(NaN)+""!=a&&r(o,s,function(){var e=c.call(this);return e==e?l.call(this):a})},17306(e,t,n){n(76566)({target:"Function",proto:!0},{bind:n(53958)})},18845(e,t,n){"use strict";var r=n(41634),o=n(78449),a=n(17763),s=n(73683)("hasInstance"),l=Function.prototype;s in l||o.f(l,s,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=a(e);)if(this.prototype===e)return!0;return!1}})},85146(e,t,n){var r=n(95180),o=n(78449).f,a=Function.prototype,s=a.toString,l=/^\s*function ([^ (]*)/,c="name";!r||c in a||o(a,c,{configurable:!0,get:function(){try{return s.call(this).match(l)[1]}catch(e){return""}}})},21417(e,t,n){n(76566)({global:!0},{globalThis:n(54523)})},5974(e,t,n){var r=n(76566),o=n(47735),a=n(84543),s=o("JSON","stringify"),l=/[\uD800-\uDFFF]/g,c=/^[\uD800-\uDBFF]$/,u=/^[\uDC00-\uDFFF]$/,d=function(e,t,n){var r=n.charAt(t-1),o=n.charAt(t+1);return c.test(e)&&!u.test(o)||u.test(e)&&!c.test(r)?"\\u"+e.charCodeAt(0).toString(16):e},p=a(function(){return'"\\udf06\\ud834"'!==s("\uDF06\uD834")||'"\\udead"'!==s("\uDEAD")});s&&r({target:"JSON",stat:!0,forced:p},{stringify:function(e,t,n){var r=s.apply(null,arguments);return"string"==typeof r?r.replace(l,d):r}})},84667(e,t,n){var r=n(54523);n(6143)(r.JSON,"JSON",!0)},37729(e,t,n){"use strict";e.exports=n(50196)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(82394))},44609(e,t,n){var r=n(76566),o=n(41468),a=Math.acosh,s=Math.log,l=Math.sqrt,c=Math.LN2;r({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(e){return(e*=1)<1?NaN:e>94906265.62425156?s(e)+c:o(e-1+l(e-1)*l(e+1))}})},33782(e,t,n){var r=n(76566),o=Math.asinh,a=Math.log,s=Math.sqrt;function l(e){return isFinite(e*=1)&&0!=e?e<0?-l(-e):a(e+s(e*e+1)):e}r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:l})},71493(e,t,n){var r=n(76566),o=Math.atanh,a=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){return 0==(e*=1)?e:a((1+e)/(1-e))/2}})},98172(e,t,n){var r=n(76566),o=n(99382),a=Math.abs,s=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){return o(e*=1)*s(a(e),1/3)}})},59541(e,t,n){var r=n(76566),o=Math.floor,a=Math.log,s=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-o(a(e+.5)*s):32}})},27842(e,t,n){var r=n(76566),o=n(86978),a=Math.cosh,s=Math.abs,l=Math.E;r({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(e){var t=o(s(e)-1)+1;return l/2*(t+1/(t*l*l))}})},16526(e,t,n){var r=n(76566),o=n(86978);r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},10589(e,t,n){n(76566)({target:"Math",stat:!0},{fround:n(50721)})},74573(e,t,n){var r=n(76566),o=Math.hypot,a=Math.abs,s=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,l=0,c=arguments.length,u=0;l<c;)n=a(arguments[l++]),u<n?(o=o*(r=u/n)*r+1,u=n):n>0?o+=(r=n/u)*r:o+=n;return u===1/0?1/0:u*s(o)}})},22232(e,t,n){var r=n(76566),o=n(84543),a=Math.imul;r({target:"Math",stat:!0,forced:o(function(){return -5!=a(0xffffffff,5)||2!=a.length})},{imul:function(e,t){var n=+e,r=+t,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},26832(e,t,n){var r=n(76566),o=Math.log,a=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(e){return o(e)*a}})},8080(e,t,n){n(76566)({target:"Math",stat:!0},{log1p:n(41468)})},61447(e,t,n){var r=n(76566),o=Math.log,a=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/a}})},55994(e,t,n){n(76566)({target:"Math",stat:!0},{sign:n(99382)})},12281(e,t,n){var r=n(76566),o=n(84543),a=n(86978),s=Math.abs,l=Math.exp,c=Math.E;r({target:"Math",stat:!0,forced:o(function(){return -2e-17!=Math.sinh(-2e-17)})},{sinh:function(e){return 1>s(e*=1)?(a(e)-a(-e))/2:(l(e-1)-l(-e-1))*(c/2)}})},32418(e,t,n){var r=n(76566),o=n(86978),a=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=o(e*=1),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(a(e)+a(-e))}})},56767(e,t,n){n(6143)(Math,"Math",!0)},22217(e,t,n){var r=n(76566),o=Math.ceil,a=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?a:o)(e)}})},99180(e,t,n){"use strict";var r=n(95180),o=n(54523),a=n(14396),s=n(33874),l=n(6838),c=n(96032),u=n(3103),d=n(39113),p=n(84543),f=n(42104),h=n(29712).f,m=n(89763).f,g=n(78449).f,v=n(78906).trim,y="Number",b=o[y],x=b.prototype,C=c(f(x))==y,k=function(e){var t,n,r,o,a,s,l,c,u=d(e,!1);if("string"==typeof u&&u.length>2){if(43===(t=(u=v(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(l=0,s=(a=u.slice(2)).length;l<s;l++)if((c=a.charCodeAt(l))<48||c>o)return NaN;return parseInt(a,r)}}return+u};if(a(y,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var w,S=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof S&&(C?p(function(){x.valueOf.call(n)}):c(n)!=y)?u(new b(k(t)),n,S):k(t)},_=r?h(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;_.length>E;E++)l(b,w=_[E])&&!l(S,w)&&g(S,w,m(b,w));S.prototype=x,x.constructor=S,s(o,y,S)}},18238(e,t,n){n(76566)({target:"Number",stat:!0},{EPSILON:2220446049250313e-31})},20884(e,t,n){n(76566)({target:"Number",stat:!0},{isFinite:n(96952)})},85661(e,t,n){n(76566)({target:"Number",stat:!0},{isInteger:n(219)})},63286(e,t,n){n(76566)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},34125(e,t,n){var r=n(76566),o=n(219),a=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&0x1fffffffffffff>=a(e)}})},82489(e,t,n){n(76566)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:0x1fffffffffffff})},45971(e,t,n){n(76566)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-0x1fffffffffffff})},67156(e,t,n){var r=n(76566),o=n(43510);r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},21299(e,t,n){var r=n(76566),o=n(20809);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},56460(e,t,n){"use strict";var r=n(76566),o=n(9846),a=n(43048),s=n(12077),l=n(84543),c=1..toFixed,u=Math.floor,d=function(e,t,n){return 0===t?n:t%2==1?d(e,t-1,n*e):d(e*e,t/2,n)},p=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t};r({target:"Number",proto:!0,forced:!l(function(){c.call({})})},{toFixed:function(e){var t,n,r,l,c=a(this),f=o(e),h=[0,0,0,0,0,0],m="",g="0",v=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*h[n],h[n]=r%1e7,r=u(r/1e7)},y=function(e){for(var t=6,n=0;--t>=0;)n+=h[t],h[t]=u(n/e),n=n%e*1e7},b=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==h[e]){var n=String(h[e]);t=""===t?n:t+s.call("0",7-n.length)+n}return t};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(n=((t=p(c*d(2,69,1))-69)<0?c*d(2,-t,1):c/d(2,t,1))*0x10000000000000,(t=52-t)>0){for(v(0,n),r=f;r>=7;)v(1e7,0),r-=7;for(v(d(10,r,1),0),r=t-1;r>=23;)y(8388608),r-=23;y(1<<r),v(1,1),y(2),g=b()}else v(0,n),v(1<<-t,0),g=b()+s.call("0",f);return f>0?m+((l=g.length)<=f?"0."+s.call("0",f-l)+g:g.slice(0,l-f)+"."+g.slice(l-f)):m+g}})},19958(e,t,n){"use strict";var r=n(76566),o=n(84543),a=n(43048),s=1..toPrecision;r({target:"Number",proto:!0,forced:o(function(){return"1"!==s.call(1,void 0)})||!o(function(){s.call({})})},{toPrecision:function(e){return void 0===e?s.call(a(this)):s.call(a(this),e)}})},92221(e,t,n){var r=n(76566),o=n(83957);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},83040(e,t,n){n(76566)({target:"Object",stat:!0,sham:!n(95180)},{create:n(42104)})},38931(e,t,n){"use strict";var r=n(76566),o=n(95180),a=n(86748),s=n(70581),l=n(86954),c=n(78449);o&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){c.f(s(this),e,{get:l(t),enumerable:!0,configurable:!0})}})},34089(e,t,n){var r=n(76566),o=n(95180);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(98337)})},59161(e,t,n){var r=n(76566),o=n(95180);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(78449).f})},9111(e,t,n){"use strict";var r=n(76566),o=n(95180),a=n(86748),s=n(70581),l=n(86954),c=n(78449);o&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){c.f(s(this),e,{set:l(t),enumerable:!0,configurable:!0})}})},78370(e,t,n){var r=n(76566),o=n(5221).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},75947(e,t,n){var r=n(76566),o=n(95240),a=n(84543),s=n(41634),l=n(98907).onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:a(function(){c(1)}),sham:!o},{freeze:function(e){return c&&s(e)?c(l(e)):e}})},93249(e,t,n){var r=n(76566),o=n(83308),a=n(69904);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,function(e,n){a(t,e,n)},void 0,!0),t}})},57931(e,t,n){var r=n(76566),o=n(84543),a=n(20853),s=n(89763).f,l=n(95180),c=o(function(){s(1)});r({target:"Object",stat:!0,forced:!l||c,sham:!l},{getOwnPropertyDescriptor:function(e,t){return s(a(e),t)}})},44318(e,t,n){var r=n(76566),o=n(95180),a=n(37527),s=n(20853),l=n(89763),c=n(69904);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=s(e),o=l.f,u=a(r),d={},p=0;u.length>p;)void 0!==(n=o(r,t=u[p++]))&&c(d,t,n);return d}})},11368(e,t,n){var r=n(76566),o=n(84543),a=n(23834).f;r({target:"Object",stat:!0,forced:o(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:a})},42411(e,t,n){var r=n(76566),o=n(84543),a=n(70581),s=n(17763),l=n(30099);r({target:"Object",stat:!0,forced:o(function(){s(1)}),sham:!l},{getPrototypeOf:function(e){return s(a(e))}})},15556(e,t,n){var r=n(76566),o=n(84543),a=n(41634),s=Object.isExtensible;r({target:"Object",stat:!0,forced:o(function(){s(1)})},{isExtensible:function(e){return!!a(e)&&(!s||s(e))}})},89459(e,t,n){var r=n(76566),o=n(84543),a=n(41634),s=Object.isFrozen;r({target:"Object",stat:!0,forced:o(function(){s(1)})},{isFrozen:function(e){return!a(e)||!!s&&s(e)}})},95677(e,t,n){var r=n(76566),o=n(84543),a=n(41634),s=Object.isSealed;r({target:"Object",stat:!0,forced:o(function(){s(1)})},{isSealed:function(e){return!a(e)||!!s&&s(e)}})},79988(e,t,n){n(76566)({target:"Object",stat:!0},{is:n(53550)})},29416(e,t,n){var r=n(76566),o=n(70581),a=n(22528);r({target:"Object",stat:!0,forced:n(84543)(function(){a(1)})},{keys:function(e){return a(o(e))}})},30724(e,t,n){"use strict";var r=n(76566),o=n(95180),a=n(86748),s=n(70581),l=n(39113),c=n(17763),u=n(89763).f;o&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(e){var t,n=s(this),r=l(e,!0);do if(t=u(n,r))return t.get;while(n=c(n))}})},29408(e,t,n){"use strict";var r=n(76566),o=n(95180),a=n(86748),s=n(70581),l=n(39113),c=n(17763),u=n(89763).f;o&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(e){var t,n=s(this),r=l(e,!0);do if(t=u(n,r))return t.set;while(n=c(n))}})},77007(e,t,n){var r=n(76566),o=n(41634),a=n(98907).onFreeze,s=n(95240),l=n(84543),c=Object.preventExtensions;r({target:"Object",stat:!0,forced:l(function(){c(1)}),sham:!s},{preventExtensions:function(e){return c&&o(e)?c(a(e)):e}})},60277(e,t,n){var r=n(76566),o=n(41634),a=n(98907).onFreeze,s=n(95240),l=n(84543),c=Object.seal;r({target:"Object",stat:!0,forced:l(function(){c(1)}),sham:!s},{seal:function(e){return c&&o(e)?c(a(e)):e}})},11823(e,t,n){n(76566)({target:"Object",stat:!0},{setPrototypeOf:n(27943)})},21555(e,t,n){var r=n(13644),o=n(33874),a=n(83419);r||o(Object.prototype,"toString",a,{unsafe:!0})},39170(e,t,n){var r=n(76566),o=n(5221).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},28443(e,t,n){var r=n(76566),o=n(43510);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},9020(e,t,n){var r=n(76566),o=n(20809);r({global:!0,forced:parseInt!=o},{parseInt:o})},35495(e,t,n){"use strict";var r=n(76566),o=n(86954),a=n(89579),s=n(28111),l=n(83308);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,u=s(function(){var n=o(t.resolve),a=[],s=0,c=1;l(e,function(e){var o=s++,l=!1;a.push(void 0),c++,n.call(t,e).then(function(e){!l&&(l=!0,a[o]={status:"fulfilled",value:e},--c||r(a))},function(e){!l&&(l=!0,a[o]={status:"rejected",reason:e},--c||r(a))})}),--c||r(a)});return u.error&&c(u.value),n.promise}})},55983(e,t,n){"use strict";var r=n(76566),o=n(7051),a=n(22790),s=n(84543),l=n(47735),c=n(98581),u=n(66302),d=n(33874);r({target:"Promise",proto:!0,real:!0,forced:!!a&&s(function(){a.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=c(this,l("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then(function(){return n})}:e,n?function(n){return u(t,e()).then(function(){throw n})}:e)}}),o||"function"!=typeof a||a.prototype.finally||d(a.prototype,"finally",l("Promise").prototype.finally)},5858(e,t,n){"use strict";var r,o,a,s,l=n(76566),c=n(7051),u=n(54523),d=n(47735),p=n(22790),f=n(33874),h=n(37564),m=n(6143),g=n(39089),v=n(41634),y=n(86954),b=n(42135),x=n(96032),C=n(56842),k=n(83308),w=n(10668),S=n(98581),_=n(60921).set,E=n(13555),P=n(66302),I=n(43781),T=n(89579),D=n(28111),A=n(14317),R=n(14396),N=n(73683),B=n(87759),M=N("species"),F="Promise",O=A.get,L=A.set,H=A.getterFor(F),z=p,V=u.TypeError,U=u.document,j=u.process,W=d("fetch"),q=T.f,G=q,K="process"==x(j),X=!!(U&&U.createEvent&&u.dispatchEvent),Y="unhandledrejection",Q="rejectionhandled",J=0,Z=1,ee=2,et=1,en=2,er=R(F,function(){if(C(z)===String(z)&&(66===B||!K&&"function"!=typeof PromiseRejectionEvent)||c&&!z.prototype.finally)return!0;if(B>=51&&/native code/.test(z))return!1;var e=z.resolve(1),t=function(e){e(function(){},function(){})};return(e.constructor={})[M]=t,!(e.then(function(){})instanceof t)}),eo=er||!w(function(e){z.all(e).catch(function(){})}),ei=function(e){var t;return!!v(e)&&"function"==typeof(t=e.then)&&t},ea=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;E(function(){for(var o=t.value,a=t.state==Z,s=0;r.length>s;){var l,c,u,d=r[s++],p=a?d.ok:d.fail,f=d.resolve,h=d.reject,m=d.domain;try{p?(a||(t.rejection===en&&eu(e,t),t.rejection=et),!0===p?l=o:(m&&m.enter(),l=p(o),m&&(m.exit(),u=!0)),l===d.promise?h(V("Promise-chain cycle")):(c=ei(l))?c.call(l,f,h):f(l)):h(o)}catch(e){m&&!u&&m.exit(),h(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&el(e,t)})}},es=function(e,t,n){var r,o;X?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(o=u["on"+e])?o(r):e===Y&&I("Unhandled promise rejection",n)},el=function(e,t){_.call(u,function(){var n,r=t.value;if(ec(t)&&(n=D(function(){K?j.emit("unhandledRejection",r,e):es(Y,e,r)}),t.rejection=K||ec(t)?en:et,n.error))throw n.value})},ec=function(e){return e.rejection!==et&&!e.parent},eu=function(e,t){_.call(u,function(){K?j.emit("rejectionHandled",e):es(Q,e,t.value)})},ed=function(e,t,n,r){return function(o){e(t,n,o,r)}},ep=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=ee,ea(e,t,!0))},ef=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw V("Promise can't be resolved itself");var o=ei(n);o?E(function(){var r={done:!1};try{o.call(n,ed(ef,e,r,t),ed(ep,e,r,t))}catch(n){ep(e,r,n,t)}}):(t.value=n,t.state=Z,ea(e,t,!1))}catch(n){ep(e,{done:!1},n,t)}}};er&&(z=function(e){b(this,z,F),y(e),r.call(this);var t=O(this);try{e(ed(ef,this,t),ed(ep,this,t))}catch(e){ep(this,t,e)}},(r=function(e){L(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:J,value:void 0})}).prototype=h(z.prototype,{then:function(e,t){var n=H(this),r=q(S(this,z));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=K?j.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=J&&ea(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=O(e);this.promise=e,this.resolve=ed(ef,e,t),this.reject=ed(ep,e,t)},T.f=q=function(e){return e===z||e===a?new o(e):G(e)},c||"function"!=typeof p||(s=p.prototype.then,f(p.prototype,"then",function(e,t){var n=this;return new z(function(e,t){s.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof W&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return P(z,W.apply(u,arguments))}}))),l({global:!0,wrap:!0,forced:er},{Promise:z}),m(z,F,!1,!0),g(F),a=d(F),l({target:F,stat:!0,forced:er},{reject:function(e){var t=q(this);return t.reject.call(void 0,e),t.promise}}),l({target:F,stat:!0,forced:c||er},{resolve:function(e){return P(c&&this===a?z:this,e)}}),l({target:F,stat:!0,forced:eo},{all:function(e){var t=this,n=q(t),r=n.resolve,o=n.reject,a=D(function(){var n=y(t.resolve),a=[],s=0,l=1;k(e,function(e){var c=s++,u=!1;a.push(void 0),l++,n.call(t,e).then(function(e){!u&&(u=!0,a[c]=e,--l||r(a))},o)}),--l||r(a)});return a.error&&o(a.value),n.promise},race:function(e){var t=this,n=q(t),r=n.reject,o=D(function(){var o=y(t.resolve);k(e,function(e){o.call(t,e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}})},62932(e,t,n){var r=n(76566),o=n(47735),a=n(86954),s=n(50151),l=n(84543),c=o("Reflect","apply"),u=Function.apply;r({target:"Reflect",stat:!0,forced:!l(function(){c(function(){})})},{apply:function(e,t,n){return a(e),s(n),c?c(e,t,n):u.call(e,t,n)}})},13849(e,t,n){var r=n(76566),o=n(47735),a=n(86954),s=n(50151),l=n(41634),c=n(42104),u=n(53958),d=n(84543),p=o("Reflect","construct"),f=d(function(){function e(){}return!(p(function(){},[],e)instanceof e)}),h=!d(function(){p(function(){})}),m=f||h;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){a(e),s(t);var n=arguments.length<3?e:a(arguments[2]);if(h&&!f)return p(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var o=n.prototype,d=c(l(o)?o:Object.prototype),m=Function.apply.call(e,d,t);return l(m)?m:d}})},88947(e,t,n){var r=n(76566),o=n(95180),a=n(50151),s=n(39113),l=n(78449);r({target:"Reflect",stat:!0,forced:n(84543)(function(){Reflect.defineProperty(l.f({},1,{value:1}),1,{value:2})}),sham:!o},{defineProperty:function(e,t,n){a(e);var r=s(t,!0);a(n);try{return l.f(e,r,n),!0}catch(e){return!1}}})},22747(e,t,n){var r=n(76566),o=n(50151),a=n(89763).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=a(o(e),t);return(!n||!!n.configurable)&&delete e[t]}})},88457(e,t,n){var r=n(76566),o=n(95180),a=n(50151),s=n(89763);r({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return s.f(a(e),t)}})},52709(e,t,n){var r=n(76566),o=n(50151),a=n(17763);r({target:"Reflect",stat:!0,sham:!n(30099)},{getPrototypeOf:function(e){return a(o(e))}})},90872(e,t,n){var r=n(76566),o=n(41634),a=n(50151),s=n(6838),l=n(89763),c=n(17763);function u(e,t){var n,r,d=arguments.length<3?e:arguments[2];return a(e)===d?e[t]:(n=l.f(e,t))?s(n,"value")?n.value:void 0===n.get?void 0:n.get.call(d):o(r=c(e))?u(r,t,d):void 0}r({target:"Reflect",stat:!0},{get:u})},99148(e,t,n){n(76566)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},38170(e,t,n){var r=n(76566),o=n(50151),a=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),!a||a(e)}})},82945(e,t,n){n(76566)({target:"Reflect",stat:!0},{ownKeys:n(37527)})},74057(e,t,n){var r=n(76566),o=n(47735),a=n(50151);r({target:"Reflect",stat:!0,sham:!n(95240)},{preventExtensions:function(e){a(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},1017(e,t,n){var r=n(76566),o=n(50151),a=n(12834),s=n(27943);s&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),a(t);try{return s(e,t),!0}catch(e){return!1}}})},84252(e,t,n){var r=n(76566),o=n(50151),a=n(41634),s=n(6838),l=n(84543),c=n(78449),u=n(89763),d=n(17763),p=n(6372);function f(e,t,n){var r,l,h=arguments.length<4?e:arguments[3],m=u.f(o(e),t);if(!m){if(a(l=d(e)))return f(l,t,n,h);m=p(0)}if(s(m,"value")){if(!1===m.writable||!a(h))return!1;if(r=u.f(h,t)){if(r.get||r.set||!1===r.writable)return!1;r.value=n,c.f(h,t,r)}else c.f(h,t,p(0,n));return!0}return void 0!==m.set&&(m.set.call(h,n),!0)}r({target:"Reflect",stat:!0,forced:l(function(){var e=c.f({},"a",{configurable:!0});return!1!==Reflect.set(d(e),"a",1,e)})},{set:f})},81152(e,t,n){var r=n(95180),o=n(54523),a=n(14396),s=n(3103),l=n(78449).f,c=n(29712).f,u=n(82388),d=n(34315),p=n(33874),f=n(84543),h=n(39089),m=n(73683)("match"),g=o.RegExp,v=g.prototype,y=/a/g,b=/a/g,x=new g(y)!==y;if(r&&a("RegExp",!x||f(function(){return b[m]=!1,g(y)!=y||g(b)==b||"/a/i"!=g(y,"i")}))){for(var C=function(e,t){var n=this instanceof C,r=u(e),o=void 0===t;return!n&&r&&e.constructor===C&&o?e:s(x?new g(r&&!o?e.source:e,t):g((r=e instanceof C)?e.source:e,r&&o?d.call(e):t),n?this:v,C)},k=function(e){e in C||l(C,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},w=c(g),S=0;w.length>S;)k(w[S++]);v.constructor=C,C.prototype=v,p(o,"RegExp",C)}h("RegExp")},93831(e,t,n){"use strict";var r=n(76566),o=n(8779);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},9223(e,t,n){var r=n(95180),o=n(78449),a=n(34315);r&&"g"!=/./g.flags&&o.f(RegExp.prototype,"flags",{configurable:!0,get:a})},34237(e,t,n){"use strict";var r=n(33874),o=n(50151),a=n(84543),s=n(34315),l="toString",c=RegExp.prototype,u=c[l],d=a(function(){return"/a/b"!=u.call({source:"a",flags:"b"})}),p=u.name!=l;(d||p)&&r(RegExp.prototype,l,function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?s.call(e):n)},{unsafe:!0})},33111(e,t,n){"use strict";e.exports=n(50196)("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(82394))},13043(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},63354(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("big")},{big:function(){return o(this,"big","","")}})},75234(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("blink")},{blink:function(){return o(this,"blink","","")}})},55729(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("bold")},{bold:function(){return o(this,"b","","")}})},45364(e,t,n){"use strict";var r=n(76566),o=n(14775).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},11257(e,t,n){"use strict";var r=n(76566),o=n(89763).f,a=n(55966),s=n(10495),l=n(69286),c=n(16412),u=n(7051),d="".endsWith,p=Math.min,f=c("endsWith");r({target:"String",proto:!0,forced:!(!u&&!f&&function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}())&&!f},{endsWith:function(e){var t=String(l(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),o=void 0===n?r:p(a(n),r),c=String(e);return d?d.call(t,c,o):t.slice(o-c.length,o)===c}})},34042(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("fixed")},{fixed:function(){return o(this,"tt","","")}})},55724(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},16138(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},2313(e,t,n){var r=n(76566),o=n(47418),a=String.fromCharCode,s=String.fromCodePoint;r({target:"String",stat:!0,forced:!!s&&1!=s.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,s=0;r>s;){if(t=+arguments[s++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(((t-=65536)>>10)+55296,t%1024+56320))}return n.join("")}})},68291(e,t,n){"use strict";var r=n(76566),o=n(10495),a=n(69286);r({target:"String",proto:!0,forced:!n(16412)("includes")},{includes:function(e){return!!~String(a(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},93645(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("italics")},{italics:function(){return o(this,"i","","")}})},94356(e,t,n){"use strict";var r=n(14775).charAt,o=n(14317),a=n(70122),s="String Iterator",l=o.set,c=o.getterFor(s);a(String,"String",function(e){l(this,{type:s,string:String(e),index:0})},function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})})},17114(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("link")},{link:function(e){return o(this,"a","href",e)}})},23999(e,t,n){"use strict";var r=n(76566),o=n(59714),a=n(69286),s=n(55966),l=n(86954),c=n(50151),u=n(96032),d=n(82388),p=n(34315),f=n(76587),h=n(84543),m=n(73683),g=n(98581),v=n(97157),y=n(14317),b=n(7051),x=m("matchAll"),C="RegExp String",k=C+" Iterator",w=y.set,S=y.getterFor(k),_=RegExp.prototype,E=_.exec,P="".matchAll,I=!!P&&!h(function(){"a".matchAll(/./)}),T=function(e,t){var n,r=e.exec;if("function"==typeof r){if("object"!=typeof(n=r.call(e,t)))throw TypeError("Incorrect exec result");return n}return E.call(e,t)},D=o(function(e,t,n,r){w(this,{type:k,regexp:e,string:t,global:n,unicode:r,done:!1})},C,function(){var e=S(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,r=T(t,n);return null===r?{value:void 0,done:e.done=!0}:(e.global?""==String(r[0])&&(t.lastIndex=v(n,s(t.lastIndex),e.unicode)):e.done=!0,{value:r,done:!1})}),A=function(e){var t,n,r,o,a,l,u=c(this),d=String(e);return t=g(u,RegExp),void 0===(n=u.flags)&&u instanceof RegExp&&!("flags"in _)&&(n=p.call(u)),r=void 0===n?"":String(n),o=new t(t===RegExp?u.source:u,r),a=!!~r.indexOf("g"),l=!!~r.indexOf("u"),o.lastIndex=s(u.lastIndex),new D(o,d,a,l)};r({target:"String",proto:!0,forced:I},{matchAll:function(e){var t,n,r,o=a(this);if(null!=e){if(d(e)&&!~String(a("flags"in _?e.flags:p.call(e))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(I)return P.apply(o,arguments);if(void 0===(n=e[x])&&b&&"RegExp"==u(e)&&(n=A),null!=n)return l(n).call(e,o)}else if(I)return P.apply(o,arguments);return t=String(o),r=RegExp(e,"g"),b?A.call(r,t):r[x](t)}}),b||x in _||f(_,x,A)},11505(e,t,n){"use strict";var r=n(1644),o=n(50151),a=n(55966),s=n(69286),l=n(97157),c=n(96010);r("match",1,function(e,t,n){return[function(t){var n=s(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r,s=n(t,e,this);if(s.done)return s.value;var u=o(e),d=String(this);if(!u.global)return c(u,d);var p=u.unicode;u.lastIndex=0;for(var f=[],h=0;null!==(r=c(u,d));){var m=String(r[0]);f[h]=m,""===m&&(u.lastIndex=l(d,a(u.lastIndex),p)),h++}return 0===h?null:f}]})},8565(e,t,n){"use strict";var r=n(76566),o=n(10613).end;r({target:"String",proto:!0,forced:n(34197)},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},79964(e,t,n){"use strict";var r=n(76566),o=n(10613).start;r({target:"String",proto:!0,forced:n(34197)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},37362(e,t,n){var r=n(76566),o=n(20853),a=n(55966);r({target:"String",stat:!0},{raw:function(e){for(var t=o(e.raw),n=a(t.length),r=arguments.length,s=[],l=0;n>l;)s.push(String(t[l++])),l<r&&s.push(String(arguments[l]));return s.join("")}})},65917(e,t,n){n(76566)({target:"String",proto:!0},{repeat:n(12077)})},98304(e,t,n){"use strict";var r=n(1644),o=n(50151),a=n(70581),s=n(55966),l=n(9846),c=n(69286),u=n(97157),d=n(96010),p=Math.max,f=Math.min,h=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,v=function(e){return void 0===e?e:String(e)};r("replace",2,function(e,t,n){return[function(n,r){var o=c(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,r):t.call(String(o),n,r)},function(e,a){var c=n(t,e,this,a);if(c.done)return c.value;var h=o(e),m=String(this),g="function"==typeof a;g||(a=String(a));var y=h.global;if(y){var b=h.unicode;h.lastIndex=0}for(var x=[];;){var C=d(h,m);if(null===C||(x.push(C),!y))break;""===String(C[0])&&(h.lastIndex=u(m,s(h.lastIndex),b))}for(var k="",w=0,S=0;S<x.length;S++){for(var _=String((C=x[S])[0]),E=p(f(l(C.index),m.length),0),P=[],I=1;I<C.length;I++)P.push(v(C[I]));var T=C.groups;if(g){var D=[_].concat(P,E,m);void 0!==T&&D.push(T);var A=String(a.apply(void 0,D))}else A=r(_,m,E,P,T,a);E>=w&&(k+=m.slice(w,E)+A,w=E+_.length)}return k+m.slice(w)}];function r(e,n,r,o,s,l){var c=r+e.length,u=o.length,d=g;return void 0!==s&&(s=a(s),d=m),t.call(l,d,function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":l=s[a.slice(1,-1)];break;default:var d=+a;if(0===d)return t;if(d>u){var p=h(d/10);if(0===p)return t;if(p<=u)return void 0===o[p-1]?a.charAt(1):o[p-1]+a.charAt(1);return t}l=o[d-1]}return void 0===l?"":l})}})},28882(e,t,n){"use strict";var r=n(1644),o=n(50151),a=n(69286),s=n(53550),l=n(96010);r("search",1,function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),c=String(this),u=a.lastIndex;s(u,0)||(a.lastIndex=0);var d=l(a,c);return s(a.lastIndex,u)||(a.lastIndex=u),null===d?-1:d.index}]})},28939(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("small")},{small:function(){return o(this,"small","","")}})},30488(e,t,n){"use strict";var r=n(1644),o=n(82388),a=n(50151),s=n(69286),l=n(98581),c=n(97157),u=n(55966),d=n(96010),p=n(8779),f=n(84543),h=[].push,m=Math.min,g=0xffffffff,v=!f(function(){return!RegExp(g,"y")});r("split",2,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,a,l,c=String(s(this)),u=void 0===n?g:n>>>0;if(0===u)return[];if(void 0===e)return[c];if(!o(e))return t.call(c,e,u);for(var d=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=RegExp(e.source,f+"g");(r=p.call(v,c))&&(!((a=v.lastIndex)>m)||(d.push(c.slice(m,r.index)),r.length>1&&r.index<c.length&&h.apply(d,r.slice(1)),l=r[0].length,m=a,!(d.length>=u)));)v.lastIndex===r.index&&v.lastIndex++;return m===c.length?(l||!v.test(""))&&d.push(""):d.push(c.slice(m)),d.length>u?d.slice(0,u):d}:"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 o=s(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,o,n):r.call(String(o),t,n)},function(e,o){var s=n(r,e,this,o,r!==t);if(s.done)return s.value;var p=a(e),f=String(this),h=l(p,RegExp),y=p.unicode,b=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(v?"y":"g"),x=new h(v?p:"^(?:"+p.source+")",b),C=void 0===o?g:o>>>0;if(0===C)return[];if(0===f.length)return null===d(x,f)?[f]:[];for(var k=0,w=0,S=[];w<f.length;){x.lastIndex=v?w:0;var _,E=d(x,v?f:f.slice(w));if(null===E||(_=m(u(x.lastIndex+(v?0:w)),f.length))===k)w=c(f,w,y);else{if(S.push(f.slice(k,w)),S.length===C)return S;for(var P=1;P<=E.length-1;P++)if(S.push(E[P]),S.length===C)return S;w=k=_}}return S.push(f.slice(k)),S}]},!v)},7680(e,t,n){"use strict";var r=n(76566),o=n(89763).f,a=n(55966),s=n(10495),l=n(69286),c=n(16412),u=n(7051),d="".startsWith,p=Math.min,f=c("startsWith");r({target:"String",proto:!0,forced:!(!u&&!f&&function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}())&&!f},{startsWith:function(e){var t=String(l(this));s(e);var n=a(p(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},69412(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("strike")},{strike:function(){return o(this,"strike","","")}})},174(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("sub")},{sub:function(){return o(this,"sub","","")}})},67764(e,t,n){"use strict";var r=n(76566),o=n(28696);r({target:"String",proto:!0,forced:n(98031)("sup")},{sup:function(){return o(this,"sup","","")}})},85794(e,t,n){"use strict";var r=n(76566),o=n(78906).end,a=n(64008)("trimEnd"),s=a?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:a},{trimEnd:s,trimRight:s})},12735(e,t,n){"use strict";var r=n(76566),o=n(78906).start,a=n(64008)("trimStart"),s=a?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:a},{trimStart:s,trimLeft:s})},9098(e,t,n){"use strict";var r=n(76566),o=n(78906).trim;r({target:"String",proto:!0,forced:n(64008)("trim")},{trim:function(){return o(this)}})},19948(e,t,n){n(84887)("asyncIterator")},69399(e,t,n){"use strict";var r=n(76566),o=n(95180),a=n(54523),s=n(6838),l=n(41634),c=n(78449).f,u=n(20812),d=a.Symbol;if(o&&"function"==typeof d&&(!("description"in d.prototype)||void 0!==d().description)){var p={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new d(e):void 0===e?d():d(e);return""===e&&(p[t]=!0),t};u(f,d);var h=f.prototype=d.prototype;h.constructor=f;var m=h.toString,g="Symbol(test)"==String(d("test")),v=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var e=l(this)?this.valueOf():this,t=m.call(e);if(s(p,e))return"";var n=g?t.slice(7,-1):t.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},99521(e,t,n){n(84887)("hasInstance")},92360(e,t,n){n(84887)("isConcatSpreadable")},48851(e,t,n){n(84887)("iterator")},79683(e,t,n){"use strict";var r=n(76566),o=n(54523),a=n(47735),s=n(7051),l=n(95180),c=n(5456),u=n(2496),d=n(84543),p=n(6838),f=n(36872),h=n(41634),m=n(50151),g=n(70581),v=n(20853),y=n(39113),b=n(6372),x=n(42104),C=n(22528),k=n(29712),w=n(23834),S=n(32981),_=n(89763),E=n(78449),P=n(40005),I=n(76587),T=n(33874),D=n(39441),A=n(99847),R=n(65525),N=n(76048),B=n(73683),M=n(59327),F=n(84887),O=n(6143),L=n(14317),H=n(32077).forEach,z=A("hidden"),V="Symbol",U="prototype",j=B("toPrimitive"),W=L.set,q=L.getterFor(V),G=Object[U],K=o.Symbol,X=a("JSON","stringify"),Y=_.f,Q=E.f,J=w.f,Z=P.f,ee=D("symbols"),et=D("op-symbols"),en=D("string-to-symbol-registry"),er=D("symbol-to-string-registry"),eo=D("wks"),ei=o.QObject,ea=!ei||!ei[U]||!ei[U].findChild,es=l&&d(function(){return 7!=x(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=Y(G,t);r&&delete G[t],Q(e,t,n),r&&e!==G&&Q(G,t,r)}:Q,el=function(e,t){var n=ee[e]=x(K[U]);return W(n,{type:V,tag:e,description:t}),l||(n.description=t),n},ec=c&&"symbol"==typeof K.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof K},eu=function(e,t,n){e===G&&eu(et,t,n),m(e);var r=y(t,!0);return(m(n),p(ee,r))?(n.enumerable?(p(e,z)&&e[z][r]&&(e[z][r]=!1),n=x(n,{enumerable:b(0,!1)})):(p(e,z)||Q(e,z,b(1,{})),e[z][r]=!0),es(e,r,n)):Q(e,r,n)},ed=function(e,t){m(e);var n=v(t);return H(C(n).concat(eg(n)),function(t){(!l||ef.call(n,t))&&eu(e,t,n[t])}),e},ep=function(e,t){return void 0===t?x(e):ed(x(e),t)},ef=function(e){var t=y(e,!0),n=Z.call(this,t);return(!(this===G&&p(ee,t))||!!p(et,t))&&(!(n||!p(this,t)||!p(ee,t)||p(this,z)&&this[z][t])||n)},eh=function(e,t){var n=v(e),r=y(t,!0);if(!(n===G&&p(ee,r))||p(et,r)){var o=Y(n,r);return o&&p(ee,r)&&!(p(n,z)&&n[z][r])&&(o.enumerable=!0),o}},em=function(e){var t=J(v(e)),n=[];return H(t,function(e){p(ee,e)||p(R,e)||n.push(e)}),n},eg=function(e){var t=e===G,n=J(t?et:v(e)),r=[];return H(n,function(e){p(ee,e)&&(!t||p(G,e))&&r.push(ee[e])}),r};!c&&(T((K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=N(e),n=function(e){this===G&&n.call(et,e),p(this,z)&&p(this[z],t)&&(this[z][t]=!1),es(this,t,b(1,e))};return l&&ea&&es(G,t,{configurable:!0,set:n}),el(t,e)})[U],"toString",function(){return q(this).tag}),P.f=ef,E.f=eu,_.f=eh,k.f=w.f=em,S.f=eg,l&&(Q(K[U],"description",{configurable:!0,get:function(){return q(this).description}}),s||T(G,"propertyIsEnumerable",ef,{unsafe:!0}))),u||(M.f=function(e){return el(B(e),e)}),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:K}),H(C(eo),function(e){F(e)}),r({target:V,stat:!0,forced:!c},{for:function(e){var t=String(e);if(p(en,t))return en[t];var n=K(t);return en[t]=n,er[n]=t,n},keyFor:function(e){if(!ec(e))throw TypeError(e+" is not a symbol");if(p(er,e))return er[e]},useSetter:function(){ea=!0},useSimple:function(){ea=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!l},{create:ep,defineProperty:eu,defineProperties:ed,getOwnPropertyDescriptor:eh}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:em,getOwnPropertySymbols:eg}),r({target:"Object",stat:!0,forced:d(function(){S.f(1)})},{getOwnPropertySymbols:function(e){return S.f(g(e))}}),X&&r({target:"JSON",stat:!0,forced:!c||d(function(){var e=K();return"[null]"!=X([e])||"{}"!=X({a:e})||"{}"!=X(Object(e))})},{stringify:function(e,t,n){for(var r,o=[e],a=1;arguments.length>a;)o.push(arguments[a++]);if(r=t,!(!h(t)&&void 0===e||ec(e)))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ec(t))return t}),o[1]=t,X.apply(null,o)}}),K[U][j]||I(K[U],j,K[U].valueOf),O(K,V),R[z]=!0},78598(e,t,n){n(84887)("matchAll")},10356(e,t,n){n(84887)("match")},39749(e,t,n){n(84887)("replace")},84969(e,t,n){n(84887)("search")},40811(e,t,n){n(84887)("species")},54465(e,t,n){n(84887)("split")},85028(e,t,n){n(84887)("toPrimitive")},99629(e,t,n){n(84887)("toStringTag")},262(e,t,n){n(84887)("unscopables")},83166(e,t,n){"use strict";var r=n(48180),o=n(52485),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",function(e,t){return o.call(a(this),e,t,arguments.length>2?arguments[2]:void 0)})},41546(e,t,n){"use strict";var r=n(48180),o=n(32077).every,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},86852(e,t,n){"use strict";var r=n(48180),o=n(34453),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",function(e){return o.apply(a(this),arguments)})},65827(e,t,n){"use strict";var r=n(48180),o=n(32077).filter,a=n(98581),s=r.aTypedArray,l=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("filter",function(e){for(var t=o(s(this),e,arguments.length>1?arguments[1]:void 0),n=a(this,this.constructor),r=0,c=t.length,u=new(l(n))(c);c>r;)u[r]=t[r++];return u})},64931(e,t,n){"use strict";var r=n(48180),o=n(32077).findIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},27150(e,t,n){"use strict";var r=n(48180),o=n(32077).find,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},33986(e,t,n){n(90799)("Float32",function(e){return function(t,n,r){return e(this,t,n,r)}})},29225(e,t,n){n(90799)("Float64",function(e){return function(t,n,r){return e(this,t,n,r)}})},54710(e,t,n){"use strict";var r=n(48180),o=n(32077).forEach,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",function(e){o(a(this),e,arguments.length>1?arguments[1]:void 0)})},43801(e,t,n){"use strict";var r=n(82133);(0,n(48180).exportTypedArrayStaticMethod)("from",n(89843),r)},66e3(e,t,n){"use strict";var r=n(48180),o=n(42753).includes,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},88155(e,t,n){"use strict";var r=n(48180),o=n(42753).indexOf,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},73643(e,t,n){n(90799)("Int16",function(e){return function(t,n,r){return e(this,t,n,r)}})},13365(e,t,n){n(90799)("Int32",function(e){return function(t,n,r){return e(this,t,n,r)}})},5218(e,t,n){n(90799)("Int8",function(e){return function(t,n,r){return e(this,t,n,r)}})},34391(e,t,n){"use strict";var r=n(54523),o=n(48180),a=n(96656),s=n(73683)("iterator"),l=r.Uint8Array,c=a.values,u=a.keys,d=a.entries,p=o.aTypedArray,f=o.exportTypedArrayMethod,h=l&&l.prototype[s],m=!!h&&("values"==h.name||void 0==h.name),g=function(){return c.call(p(this))};f("entries",function(){return d.call(p(this))}),f("keys",function(){return u.call(p(this))}),f("values",g,!m),f(s,g,!m)},14825(e,t,n){"use strict";var r=n(48180),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=[].join;a("join",function(e){return s.apply(o(this),arguments)})},49852(e,t,n){"use strict";var r=n(48180),o=n(4667),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",function(e){return o.apply(a(this),arguments)})},55587(e,t,n){"use strict";var r=n(48180),o=n(32077).map,a=n(98581),s=r.aTypedArray,l=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",function(e){return o(s(this),e,arguments.length>1?arguments[1]:void 0,function(e,t){return new(l(a(e,e.constructor)))(t)})})},25432(e,t,n){"use strict";var r=n(48180),o=n(82133),a=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",function(){for(var e=0,t=arguments.length,n=new(a(this))(t);t>e;)n[e]=arguments[e++];return n},o)},18568(e,t,n){"use strict";var r=n(48180),o=n(47262).right,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",function(e){return o(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)})},11511(e,t,n){"use strict";var r=n(48180),o=n(47262).left,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",function(e){return o(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)})},28075(e,t,n){"use strict";var r=n(48180),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=Math.floor;a("reverse",function(){for(var e,t=this,n=o(t).length,r=s(n/2),a=0;a<r;)e=t[a],t[a++]=t[--n],t[n]=e;return t})},75437(e,t,n){"use strict";var r=n(48180),o=n(55966),a=n(79829),s=n(70581),l=n(84543),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",function(e){c(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=s(e),l=o(r.length),u=0;if(l+t>n)throw RangeError("Wrong length");for(;u<l;)this[t+u]=r[u++]},l(function(){new Int8Array(1).set({})}))},21180(e,t,n){"use strict";var r=n(48180),o=n(98581),a=n(84543),s=r.aTypedArray,l=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod,u=[].slice;c("slice",function(e,t){for(var n=u.call(s(this),e,t),r=o(this,this.constructor),a=0,c=n.length,d=new(l(r))(c);c>a;)d[a]=n[a++];return d},a(function(){new Int8Array(1).slice()}))},52757(e,t,n){"use strict";var r=n(48180),o=n(32077).some,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)})},12181(e,t,n){"use strict";var r=n(48180),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=[].sort;a("sort",function(e){return s.call(o(this),e)})},8118(e,t,n){"use strict";var r=n(48180),o=n(55966),a=n(47418),s=n(98581),l=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",function(e,t){var n=l(this),r=n.length,c=a(e,r);return new(s(n,n.constructor))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,o((void 0===t?r:a(t,r))-c))})},32637(e,t,n){"use strict";var r=n(54523),o=n(48180),a=n(84543),s=r.Int8Array,l=o.aTypedArray,c=o.exportTypedArrayMethod,u=[].toLocaleString,d=[].slice,p=!!s&&a(function(){u.call(new s(1))});c("toLocaleString",function(){return u.apply(p?d.call(l(this)):l(this),arguments)},a(function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()})||!a(function(){s.prototype.toLocaleString.call([1,2])}))},87220(e,t,n){"use strict";var r=n(48180).exportTypedArrayMethod,o=n(84543),a=n(54523).Uint8Array,s=a&&a.prototype||{},l=[].toString,c=[].join;o(function(){l.call({})})&&(l=function(){return c.call(this)});var u=s.toString!=l;r("toString",l,u)},86186(e,t,n){n(90799)("Uint16",function(e){return function(t,n,r){return e(this,t,n,r)}})},44236(e,t,n){n(90799)("Uint32",function(e){return function(t,n,r){return e(this,t,n,r)}})},23025(e,t,n){n(90799)("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}})},68982(e,t,n){n(90799)("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},95372(e,t,n){"use strict";var r,o=n(54523),a=n(37564),s=n(98907),l=n(50196),c=n(48137),u=n(41634),d=n(14317).enforce,p=n(36303),f=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=l("WeakMap",m,c);if(p&&f){r=c.getConstructor(m,"WeakMap",!0),s.REQUIRED=!0;var v=g.prototype,y=v.delete,b=v.has,x=v.get,C=v.set;a(v,{delete:function(e){if(u(e)&&!h(e)){var t=d(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.delete(e)}return y.call(this,e)},has:function(e){if(u(e)&&!h(e)){var t=d(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(u(e)&&!h(e)){var t=d(this);return t.frozen||(t.frozen=new r),b.call(this,e)?x.call(this,e):t.frozen.get(e)}return x.call(this,e)},set:function(e,t){if(u(e)&&!h(e)){var n=d(this);n.frozen||(n.frozen=new r),b.call(this,e)?C.call(this,e,t):n.frozen.set(e,t)}else C.call(this,e,t);return this}})}},52558(e,t,n){"use strict";n(50196)("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(48137))},47346(e,t,n){n(84887)("asyncDispose")},23211(e,t,n){n(84887)("dispose")},12681(e,t,n){n(84887)("observable")},59704(e,t,n){n(84887)("patternMatch")},48416(e,t,n){n(84887)("replaceAll")},22892(e,t,n){var r=n(54523),o=n(90792),a=n(13371),s=n(76587);for(var l in o){var c=r[l],u=c&&c.prototype;if(u&&u.forEach!==a)try{s(u,"forEach",a)}catch(e){u.forEach=a}}},45993(e,t,n){var r=n(54523),o=n(90792),a=n(96656),s=n(76587),l=n(73683),c=l("iterator"),u=l("toStringTag"),d=a.values;for(var p in o){var f=r[p],h=f&&f.prototype;if(h){if(h[c]!==d)try{s(h,c,d)}catch(e){h[c]=d}if(h[u]||s(h,u,p),o[p]){for(var m in a)if(h[m]!==a[m])try{s(h,m,a[m])}catch(e){h[m]=a[m]}}}}},11304(e,t,n){var r=n(76566),o=n(54523),a=n(60921);r({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:a.set,clearImmediate:a.clear})},95578(e,t,n){var r=n(76566),o=n(54523),a=n(13555),s=n(96032),l=o.process,c="process"==s(l);r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=c&&l.domain;a(t?t.bind(e):e)}})},78527(e,t,n){var r=n(76566),o=n(54523),a=n(79175),s=[].slice,l=/MSIE .\./.test(a),c=function(e){return function(t,n){var r=arguments.length>2,o=r?s.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};r({global:!0,bind:!0,forced:l},{setTimeout:c(o.setTimeout),setInterval:c(o.setInterval)})},28344(e,t,n){"use strict";n(96656);var r=n(76566),o=n(47735),a=n(38659),s=n(33874),l=n(37564),c=n(6143),u=n(59714),d=n(14317),p=n(42135),f=n(6838),h=n(38497),m=n(47611),g=n(50151),v=n(41634),y=n(42104),b=n(6372),x=n(36417),C=n(30787),k=n(73683),w=o("fetch"),S=o("Headers"),_=k("iterator"),E="URLSearchParams",P=E+"Iterator",I=d.set,T=d.getterFor(E),D=d.getterFor(P),A=/\+/g,R=[,,,,],N=function(e){return R[e-1]||(R[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},B=function(e){try{return decodeURIComponent(e)}catch(t){return e}},M=function(e){var t=e.replace(A," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(N(n--),B);return t}},F=/[!'()~]|%20/g,O={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},L=function(e){return O[e]},H=function(e){return encodeURIComponent(e).replace(F,L)},z=function(e,t){if(t)for(var n,r,o=t.split("&"),a=0;a<o.length;)(n=o[a++]).length&&(r=n.split("="),e.push({key:M(r.shift()),value:M(r.join("="))}))},V=function(e){this.entries.length=0,z(this.entries,e)},U=function(e,t){if(e<t)throw TypeError("Not enough arguments")},j=u(function(e,t){I(this,{type:P,iterator:x(T(e).entries),kind:t})},"Iterator",function(){var e=D(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),W=function(){p(this,W,E);var e,t,n,r,o,a,s,l,c,u=arguments.length>0?arguments[0]:void 0,d=this,h=[];if(I(d,{type:E,entries:h,updateURL:function(){},updateSearchParams:V}),void 0!==u)if(v(u))if("function"==typeof(e=C(u)))for(n=(t=e.call(u)).next;!(r=n.call(t)).done;){if((s=(a=(o=x(g(r.value))).next).call(o)).done||(l=a.call(o)).done||!a.call(o).done)throw TypeError("Expected sequence with length 2");h.push({key:s.value+"",value:l.value+""})}else for(c in u)f(u,c)&&h.push({key:c,value:u[c]+""});else z(h,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},q=W.prototype;l(q,{append:function(e,t){U(arguments.length,2);var n=T(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){U(arguments.length,1);for(var t=T(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){U(arguments.length,1);for(var t=T(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){U(arguments.length,1);for(var t=T(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){U(arguments.length,1);for(var t=T(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){U(arguments.length,1);for(var n,r=T(this),o=r.entries,a=!1,s=e+"",l=t+"",c=0;c<o.length;c++)(n=o[c]).key===s&&(a?o.splice(c--,1):(a=!0,n.value=l));a||o.push({key:s,value:l}),r.updateURL()},sort:function(){var e,t,n,r=T(this),o=r.entries,a=o.slice();for(n=0,o.length=0;n<a.length;n++){for(t=0,e=a[n];t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=T(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new j(this,"keys")},values:function(){return new j(this,"values")},entries:function(){return new j(this,"entries")}},{enumerable:!0}),s(q,_,q.entries),s(q,"toString",function(){for(var e,t=T(this).entries,n=[],r=0;r<t.length;)n.push(H((e=t[r++]).key)+"="+H(e.value));return n.join("&")},{enumerable:!0}),c(W,E),r({global:!0,forced:!a},{URLSearchParams:W}),a||"function"!=typeof w||"function"!=typeof S||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,o=[e];return arguments.length>1&&(t=arguments[1],v(t)&&m(n=t.body)===E&&((r=t.headers?new S(t.headers):new S).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=y(t,{body:b(0,String(n)),headers:b(0,r)})),o.push(t)),w.apply(this,o)}}),e.exports={URLSearchParams:W,getState:T}},25152(e,t,n){"use strict";n(94356);var r,o=n(76566),a=n(95180),s=n(38659),l=n(54523),c=n(98337),u=n(33874),d=n(42135),p=n(6838),f=n(83957),h=n(47996),m=n(14775).codeAt,g=n(80863),v=n(6143),y=n(28344),b=n(14317),x=l.URL,C=y.URLSearchParams,k=y.getState,w=b.set,S=b.getterFor("URL"),_=Math.floor,E=Math.pow,P="Invalid authority",I="Invalid scheme",T="Invalid host",D="Invalid port",A=/[A-Za-z]/,R=/[\d+\-.A-Za-z]/,N=/\d/,B=/^(0x|0X)/,M=/^[0-7]+$/,F=/^\d+$/,O=/^[\dA-Fa-f]+$/,L=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,H=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,z=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,V=/[\u0009\u000A\u000D]/g,U=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1)||!(n=W(t.slice(1,-1))))return T;e.host=n}else if(ee(e)){if(t=g(t),L.test(t)||null===(n=j(t)))return T;e.host=n}else{if(H.test(t))return T;for(o=0,n="",r=h(t);o<r.length;o++)n+=J(r[o],K);e.host=n}},j=function(e){var t,n,r,o,a,s,l,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(r=0,n=[];r<t;r++){if(""==(o=c[r]))return e;if(a=10,o.length>1&&"0"==o.charAt(0)&&(a=B.test(o)?16:8,o=o.slice(8==a?1:2)),""===o)s=0;else{if(!(10==a?F:8==a?M:O).test(o))return e;s=parseInt(o,a)}n.push(s)}for(r=0;r<t;r++)if(s=n[r],r==t-1){if(s>=E(256,5-t))return null}else if(s>255)return null;for(r=0,l=n.pop();r<n.length;r++)l+=n[r]*E(256,3-r);return l},W=function(e){var t,n,r,o,a,s,l,c=[0,0,0,0,0,0,0,0],u=0,d=null,p=0,f=function(){return e.charAt(p)};if(":"==f()){if(":"!=e.charAt(1))return;p+=2,d=++u}for(;f();){if(8==u)return;if(":"==f()){if(null!==d)return;p++,d=++u;continue}for(t=n=0;n<4&&O.test(f());)t=16*t+parseInt(f(),16),p++,n++;if("."==f()){if(0==n||(p-=n,u>6))return;for(r=0;f();){if(o=null,r>0)if("."!=f()||!(r<4))return;else p++;if(!N.test(f()))return;for(;N.test(f());){if(a=parseInt(f(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;p++}c[u]=256*c[u]+o,(2==++r||4==r)&&u++}if(4!=r)return;break}if(":"==f()){if(p++,!f())return}else if(f())return;c[u++]=t}if(null!==d)for(s=u-d,u=7;0!=u&&s>0;)l=c[u],c[u--]=c[d+s-1],c[d+--s]=l;else if(8!=u)return;return c},q=function(e){for(var t=null,n=1,r=null,o=0,a=0;a<8;a++)0!==e[a]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=a),++o);return o>n&&(t=r,n=o),t},G=function(e){var t,n,r,o;if("number"==typeof e){for(n=0,t=[];n<4;n++)t.unshift(e%256),e=_(e/256);return t.join(".")}if("object"==typeof e){for(n=0,t="",r=q(e);n<8;n++)(!o||0!==e[n])&&(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},K={},X=f({},K,{" ":1,'"':1,"<":1,">":1,"`":1}),Y=f({},X,{"#":1,"?":1,"{":1,"}":1}),Q=f({},Y,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),J=function(e,t){var n=m(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ee=function(e){return p(Z,e.scheme)},et=function(e){return""!=e.username||""!=e.password},en=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},er=function(e,t){var n;return 2==e.length&&A.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},eo=function(e){var t;return e.length>1&&er(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ei=function(e){var t=e.path,n=t.length;n&&("file"!=e.scheme||1!=n||!er(t[0],!0))&&t.pop()},ea=function(e){return"."===e||"%2e"===e.toLowerCase()},es=function(e){return".."===(e=e.toLowerCase())||"%2e."===e||".%2e"===e||"%2e%2e"===e},el={},ec={},eu={},ed={},ep={},ef={},eh={},em={},eg={},ev={},ey={},eb={},ex={},eC={},ek={},ew={},eS={},e_={},eE={},eP={},eI={},eT=function(e,t,n,o){var a,s,l,c,u=n||el,d=0,f="",m=!1,g=!1,v=!1;for(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(z,"")),a=h(t=t.replace(V,""));d<=a.length;){switch(s=a[d],u){case el:if(s&&A.test(s))f+=s.toLowerCase(),u=ec;else{if(n)return I;u=eu;continue}break;case ec:if(s&&(R.test(s)||"+"==s||"-"==s||"."==s))f+=s.toLowerCase();else if(":"==s){if(n&&(ee(e)!=p(Z,f)||"file"==f&&(et(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n){ee(e)&&Z[e.scheme]==e.port&&(e.port=null);return}f="","file"==e.scheme?u=eC:ee(e)&&o&&o.scheme==e.scheme?u=ed:ee(e)?u=em:"/"==a[d+1]?(u=ep,d++):(e.cannotBeABaseURL=!0,e.path.push(""),u=eE)}else{if(n)return I;f="",u=eu,d=0;continue}break;case eu:if(!o||o.cannotBeABaseURL&&"#"!=s)return I;if(o.cannotBeABaseURL&&"#"==s){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,u=eI;break}u="file"==o.scheme?eC:ef;continue;case ed:if("/"==s&&"/"==a[d+1])u=eg,d++;else{u=ef;continue}break;case ep:if("/"==s){u=ev;break}u=e_;continue;case ef:if(e.scheme=o.scheme,s==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==s||"\\"==s&&ee(e))u=eh;else if("?"==s)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",u=eP;else if("#"==s)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=eI;else{e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),u=e_;continue}break;case eh:if(ee(e)&&("/"==s||"\\"==s))u=eg;else if("/"==s)u=ev;else{e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,u=e_;continue}break;case em:if(u=eg,"/"!=s||"/"!=f.charAt(d+1))continue;d++;break;case eg:if("/"!=s&&"\\"!=s){u=ev;continue}break;case ev:if("@"==s){m&&(f="%40"+f),m=!0,l=h(f);for(var y=0;y<l.length;y++){var b=l[y];if(":"==b&&!v){v=!0;continue}var x=J(b,Q);v?e.password+=x:e.username+=x}f=""}else if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&ee(e)){if(m&&""==f)return P;d-=h(f).length+1,f="",u=ey}else f+=s;break;case ey:case eb:if(n&&"file"==e.scheme){u=ew;continue}if(":"!=s||g)if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&ee(e)){if(ee(e)&&""==f)return T;if(n&&""==f&&(et(e)||null!==e.port))return;if(c=U(e,f))return c;if(f="",u=eS,n)return;continue}else"["==s?g=!0:"]"==s&&(g=!1),f+=s;else{if(""==f)return T;if(c=U(e,f))return c;if(f="",u=ex,n==eb)return}break;case ex:if(N.test(s))f+=s;else{if(!(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&ee(e))&&!n)return D;if(""!=f){var C=parseInt(f,10);if(C>65535)return D;e.port=ee(e)&&C===Z[e.scheme]?null:C,f=""}if(n)return;u=eS;continue}break;case eC:if(e.scheme="file","/"==s||"\\"==s)u=ek;else if(o&&"file"==o.scheme)if(s==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==s)e.host=o.host,e.path=o.path.slice(),e.query="",u=eP;else if("#"==s)e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=eI;else{eo(a.slice(d).join(""))||(e.host=o.host,e.path=o.path.slice(),ei(e)),u=e_;continue}else{u=e_;continue}break;case ek:if("/"==s||"\\"==s){u=ew;break}o&&"file"==o.scheme&&!eo(a.slice(d).join(""))&&(er(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),u=e_;continue;case ew:if(s==r||"/"==s||"\\"==s||"?"==s||"#"==s){if(!n&&er(f))u=e_;else if(""==f){if(e.host="",n)return;u=eS}else{if(c=U(e,f))return c;if("localhost"==e.host&&(e.host=""),n)return;f="",u=eS}continue}f+=s;break;case eS:if(ee(e)){if(u=e_,"/"!=s&&"\\"!=s)continue}else if(n||"?"!=s)if(n||"#"!=s){if(s!=r&&(u=e_,"/"!=s))continue}else e.fragment="",u=eI;else e.query="",u=eP;break;case e_:if(s==r||"/"==s||"\\"==s&&ee(e)||!n&&("?"==s||"#"==s)){if(es(f)?(ei(e),"/"==s||"\\"==s&&ee(e)||e.path.push("")):ea(f)?"/"==s||"\\"==s&&ee(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&er(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(s==r||"?"==s||"#"==s))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==s?(e.query="",u=eP):"#"==s&&(e.fragment="",u=eI)}else f+=J(s,Y);break;case eE:"?"==s?(e.query="",u=eP):"#"==s?(e.fragment="",u=eI):s!=r&&(e.path[0]+=J(s,K));break;case eP:n||"#"!=s?s!=r&&("'"==s&&ee(e)?e.query+="%27":"#"==s?e.query+="%23":e.query+=J(s,K)):(e.fragment="",u=eI);break;case eI:s!=r&&(e.fragment+=J(s,X))}d++}},eD=function(e){var t,n,r=d(this,eD,"URL"),o=arguments.length>1?arguments[1]:void 0,s=String(e),l=w(r,{type:"URL"});if(void 0!==o){if(o instanceof eD)t=S(o);else if(n=eT(t={},String(o)))throw TypeError(n)}if(n=eT(l,s,null,t))throw TypeError(n);var c=l.searchParams=new C,u=k(c);u.updateSearchParams(l.query),u.updateURL=function(){l.query=String(c)||null},a||(r.href=eR.call(r),r.origin=eN.call(r),r.protocol=eB.call(r),r.username=eM.call(r),r.password=eF.call(r),r.host=eO.call(r),r.hostname=eL.call(r),r.port=eH.call(r),r.pathname=ez.call(r),r.search=eV.call(r),r.searchParams=eU.call(r),r.hash=ej.call(r))},eA=eD.prototype,eR=function(){var e=S(this),t=e.scheme,n=e.username,r=e.password,o=e.host,a=e.port,s=e.path,l=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",et(e)&&(u+=n+(r?":"+r:"")+"@"),u+=G(o),null!==a&&(u+=":"+a)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==l&&(u+="?"+l),null!==c&&(u+="#"+c),u},eN=function(){var e=S(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&ee(e)?t+"://"+G(e.host)+(null!==n?":"+n:""):"null"},eB=function(){return S(this).scheme+":"},eM=function(){return S(this).username},eF=function(){return S(this).password},eO=function(){var e=S(this),t=e.host,n=e.port;return null===t?"":null===n?G(t):G(t)+":"+n},eL=function(){var e=S(this).host;return null===e?"":G(e)},eH=function(){var e=S(this).port;return null===e?"":String(e)},ez=function(){var e=S(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},eV=function(){var e=S(this).query;return e?"?"+e:""},eU=function(){return S(this).searchParams},ej=function(){var e=S(this).fragment;return e?"#"+e:""},eW=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&c(eA,{href:eW(eR,function(e){var t=S(this),n=eT(t,String(e));if(n)throw TypeError(n);k(t.searchParams).updateSearchParams(t.query)}),origin:eW(eN),protocol:eW(eB,function(e){eT(S(this),String(e)+":",el)}),username:eW(eM,function(e){var t=S(this),n=h(String(e));if(!en(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=J(n[r],Q)}}),password:eW(eF,function(e){var t=S(this),n=h(String(e));if(!en(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=J(n[r],Q)}}),host:eW(eO,function(e){var t=S(this);t.cannotBeABaseURL||eT(t,String(e),ey)}),hostname:eW(eL,function(e){var t=S(this);t.cannotBeABaseURL||eT(t,String(e),eb)}),port:eW(eH,function(e){var t=S(this);en(t)||(""==(e=String(e))?t.port=null:eT(t,e,ex))}),pathname:eW(ez,function(e){var t=S(this);t.cannotBeABaseURL||(t.path=[],eT(t,e+"",eS))}),search:eW(eV,function(e){var t=S(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",eT(t,e,eP)),k(t.searchParams).updateSearchParams(t.query)}),searchParams:eW(eU),hash:eW(ej,function(e){var t=S(this);if(""==(e=String(e))){t.fragment=null;return}"#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",eT(t,e,eI)})}),u(eA,"toJSON",function(){return eR.call(this)},{enumerable:!0}),u(eA,"toString",function(){return eR.call(this)},{enumerable:!0}),x){var eq=x.createObjectURL,eG=x.revokeObjectURL;eq&&u(eD,"createObjectURL",function(e){return eq.apply(x,arguments)}),eG&&u(eD,"revokeObjectURL",function(e){return eG.apply(x,arguments)})}v(eD,"URL"),o({global:!0,forced:!s,sham:!a},{URL:eD})},66952(e,t,n){"use strict";n(76566)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},20827(e,t,n){n(71056),n(76950),e.exports=n(20863)},76950(e,t,n){n(22892),n(45993),n(11304),n(95578),n(78527),n(25152),n(66952),n(28344),e.exports=n(20863)},46598(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(72201),n(22989),n(30953),n(94768))}(0,function(e){return!function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],a=[],s=[],l=[],c=[],u=[],d=[],p=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var m=r^r<<1^r<<2^r<<3^r<<4;m=m>>>8^255&m^99,o[n]=m,a[m]=n;var g=e[n],v=e[g],y=e[v],b=257*e[m]^0x1010100*m;s[n]=b<<24|b>>>8,l[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,u[n]=b;var b=0x1010101*y^65537*v^257*g^0x1010100*n;d[m]=b<<24|b>>>8,p[m]=b<<16|b>>>16,f[m]=b<<8|b>>>24,h[m]=b,n?(n=g^e[e[e[y^g]]],r^=e[e[r]]):n=r=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e,t=this._keyPriorReset=this._key,n=t.words,r=t.sigBytes/4,a=this._nRounds=r+6,s=(a+1)*4,l=this._keySchedule=[],c=0;c<s;c++)c<r?l[c]=n[c]:(e=l[c-1],c%r?r>6&&c%r==4&&(e=o[e>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[255&e]):e=(o[(e=e<<8|e>>>24)>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[255&e])^m[c/r|0]<<24,l[c]=l[c-r]^e);for(var u=this._invKeySchedule=[],g=0;g<s;g++){var c=s-g;if(g%4)var e=l[c];else var e=l[c-4];g<4||c<=4?u[g]=e:u[g]=d[o[e>>>24]]^p[o[e>>>16&255]]^f[o[e>>>8&255]]^h[o[255&e]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,l,c,u,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,p,f,h,a);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,a,s,l){for(var c=this._nRounds,u=e[t]^n[0],d=e[t+1]^n[1],p=e[t+2]^n[2],f=e[t+3]^n[3],h=4,m=1;m<c;m++){var g=r[u>>>24]^o[d>>>16&255]^a[p>>>8&255]^s[255&f]^n[h++],v=r[d>>>24]^o[p>>>16&255]^a[f>>>8&255]^s[255&u]^n[h++],y=r[p>>>24]^o[f>>>16&255]^a[u>>>8&255]^s[255&d]^n[h++],b=r[f>>>24]^o[u>>>16&255]^a[d>>>8&255]^s[255&p]^n[h++];u=g,d=v,p=y,f=b}var g=(l[u>>>24]<<24|l[d>>>16&255]<<16|l[p>>>8&255]<<8|l[255&f])^n[h++],v=(l[d>>>24]<<24|l[p>>>16&255]<<16|l[f>>>8&255]<<8|l[255&u])^n[h++],y=(l[p>>>24]<<24|l[f>>>16&255]<<16|l[u>>>8&255]<<8|l[255&d])^n[h++],b=(l[f>>>24]<<24|l[u>>>16&255]<<16|l[d>>>8&255]<<8|l[255&p])^n[h++];e[t]=g,e[t+1]=v,e[t+2]=y,e[t+3]=b},keySize:8});t.AES=n._createHelper(g)}(),e.AES})},87035(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(72201),n(22989),n(30953),n(94768))}(0,function(e){return!function(){var t=e,n=t.lib.BlockCipher,r=t.algo;let o=16,a=[0x243f6a88,0x85a308d3,0x13198a2e,0x3707344,0xa4093822,0x299f31d0,0x82efa98,0xec4e6c89,0x452821e6,0x38d01377,0xbe5466cf,0x34e90c6c,0xc0ac29b7,0xc97c50dd,0x3f84d5b5,0xb5470917,0x9216d5d9,0x8979fb1b],s=[[0xd1310ba6,0x98dfb5ac,0x2ffd72db,0xd01adfb7,0xb8e1afed,0x6a267e96,0xba7c9045,0xf12c7f99,0x24a19947,0xb3916cf7,0x801f2e2,0x858efc16,0x636920d8,0x71574e69,0xa458fea3,0xf4933d7e,0xd95748f,0x728eb658,0x718bcd58,0x82154aee,0x7b54a41d,0xc25a59b5,0x9c30d539,0x2af26013,0xc5d1b023,0x286085f0,0xca417918,0xb8db38ef,0x8e79dcb0,0x603a180e,0x6c9e0e8b,0xb01e8a3e,0xd71577c1,0xbd314b27,0x78af2fda,0x55605c60,0xe65525f3,0xaa55ab94,0x57489862,0x63e81440,0x55ca396a,0x2aab10b6,0xb4cc5c34,0x1141e8ce,0xa15486af,0x7c72e993,0xb3ee1411,0x636fbc2a,0x2ba9c55d,0x741831f6,0xce5c3e16,0x9b87931e,0xafd6ba33,0x6c24cf5c,0x7a325381,0x28958677,0x3b8f4898,0x6b4bb9af,0xc4bfe81b,0x66282193,0x61d809cc,0xfb21a991,0x487cac60,0x5dec8032,0xef845d5d,0xe98575b1,0xdc262302,0xeb651b88,0x23893e81,0xd396acc5,0xf6d6ff3,0x83f44239,0x2e0b4482,0xa4842004,0x69c8f04a,0x9e1f9b5e,0x21c66842,0xf6e96c9a,0x670c9c61,0xabd388f0,0x6a51a0d2,0xd8542f68,0x960fa728,0xab5133a3,0x6eef0b6c,0x137a3be4,0xba3bf050,0x7efb2a98,0xa1f1651d,0x39af0176,0x66ca593e,0x82430e88,0x8cee8619,0x456f9fb4,0x7d84a5c3,0x3b8b5ebe,0xe06f75d8,0x85c12073,0x401a449f,0x56c16aa6,0x4ed3aa62,0x363f7706,0x1bfedf72,0x429b023d,0x37d0d724,0xd00a1248,0xdb0fead3,0x49f1c09b,0x75372c9,0x80991b7b,0x25d479d8,0xf6e8def7,0xe3fe501a,0xb6794c3b,0x976ce0bd,0x4c006ba,0xc1a94fb6,0x409f60c4,0x5e5c9ec2,0x196a2463,0x68fb6faf,0x3e6c53b5,0x1339b2eb,0x3b52ec6f,0x6dfc511f,0x9b30952c,0xcc814544,0xaf5ebd09,0xbee3d004,0xde334afd,0x660f2807,0x192e4bb3,0xc0cba857,0x45c8740f,0xd20b5f39,0xb9d3fbdb,0x5579c0bd,0x1a60320a,0xd6a100c6,0x402c7279,0x679f25fe,0xfb1fa3cc,0x8ea5e9f8,0xdb3222f8,0x3c7516df,0xfd616b15,0x2f501ec8,0xad0552ab,0x323db5fa,0xfd238760,0x53317b48,0x3e00df82,0x9e5c57bb,0xca6f8ca0,0x1a87562e,0xdf1769db,0xd542a8f6,0x287effc3,0xac6732c6,0x8c4f5573,0x695b27b0,0xbbca58c8,0xe1ffa35d,0xb8f011a0,0x10fa3d98,0xfd2183b8,0x4afcb56c,0x2dd1d35b,0x9a53e479,0xb6f84565,0xd28e49bc,0x4bfb9790,0xe1ddf2da,0xa4cb7e33,0x62fb1341,0xcee4c6e8,0xef20cada,0x36774c01,0xd07e9efe,0x2bf11fb4,0x95dbda4d,0xae909198,0xeaad8e71,0x6b93d5a0,0xd08ed1d0,0xafc725e0,0x8e3c5b2f,0x8e7594b7,0x8ff6e2fb,0xf2122b64,0x8888b812,0x900df01c,0x4fad5ea0,0x688fc31c,0xd1cff191,0xb3a8c1ad,0x2f2f2218,0xbe0e1777,0xea752dfe,0x8b021fa1,0xe5a0cc0f,0xb56f74e8,0x18acf3d6,0xce89e299,0xb4a84fe0,0xfd13e0b7,0x7cc43b81,0xd2ada8d9,0x165fa266,0x80957705,0x93cc7314,0x211a1477,0xe6ad2065,0x77b5fa86,0xc75442f5,0xfb9d35cf,0xebcdaf0c,0x7b3e89a0,0xd6411bd3,0xae1e7e49,2428461,0x2071b35e,0x226800bb,0x57b8e0af,0x2464369b,0xf009b91e,0x5563911d,0x59dfa6aa,0x78c14389,0xd95a537f,0x207d5ba2,0x2e5b9c5,0x83260376,0x6295cfa9,0x11c81968,0x4e734a41,0xb3472dca,0x7b14a94a,0x1b510052,0x9a532915,0xd60f573f,0xbc9bc6e4,0x2b60a476,0x81e67400,0x8ba6fb5,0x571be91f,0xf296ec6b,0x2a0dd915,0xb6636521,0xe7b9f9b6,0xff34052e,0xc5855664,0x53b02d5d,0xa99f8fa1,0x8ba4799,0x6e85076a],[0x4b7a70e9,0xb5b32944,0xdb75092e,0xc4192623,290971e4,0x49a7df7d,0x9cee60b8,0x8fedb266,0xecaa8c71,0x699a17ff,0x5664526c,0xc2b19ee1,0x193602a5,0x75094c29,0xa0591340,0xe4183a3e,0x3f54989a,0x5b429d65,0x6b8fe4d6,0x99f73fd6,0xa1d29c07,0xefe830f5,0x4d2d38e6,0xf0255dc1,0x4cdd2086,0x8470eb26,0x6382e9c6,0x21ecc5e,0x9686b3f,0x3ebaefc9,0x3c971814,0x6b6a70a1,0x687f3584,0x52a0e286,0xb79c5305,0xaa500737,0x3e07841c,0x7fdeae5c,0x8e7d44ec,0x5716f2b8,0xb03ada37,0xf0500c0d,0xf01c1f04,0x200b3ff,0xae0cf51a,0x3cb574b2,0x25837a58,0xdc0921bd,0xd19113f9,0x7ca92ff6,0x94324773,0x22f54701,0x3ae5e581,0x37c2dadc,0xc8b57634,0x9af3dda7,0xa9446146,0xfd0030e,0xecc8c73e,0xa4751e41,0xe238cd99,0x3bea0e2f,0x3280bba1,0x183eb331,0x4e548b38,0x4f6db908,0x6f420d03,0xf60a04bf,0x2cb81290,0x24977c79,0x5679b072,0xbcaf89af,0xde9a771f,0xd9930810,0xb38bae12,0xdccf3f2e,0x5512721f,0x2e6b7124,0x501adde6,0x9f84cd87,0x7a584718,0x7408da17,0xbc9f9abc,0xe94b7d8c,0xec7aec3a,0xdb851dfa,0x63094366,0xc464c3d2,0xef1c1847,0x3215d908,0xdd433b37,0x24c2ba16,0x12a14d43,0x2a65c451,0x50940002,0x133ae4dd,0x71dff89e,0x10314e55,0x81ac77d6,0x5f11199b,0x43556f1,0xd7a3c76b,0x3c11183b,0x5924a509,0xf28fe6ed,0x97f1fbfa,0x9ebabf2c,0x1e153c6e,0x86e34570,0xeae96fb1,0x860e5e0a,0x5a3e2ab3,0x771fe71c,0x4e3d06fa,0x2965dcb9,0x99e71d0f,0x803e89d6,0x5266c825,0x2e4cc978,0x9c10b36a,0xc6150eba,0x94e2ea78,0xa5fc3c53,0x1e0a2df4,0xf2f74ea7,0x361d2b3d,0x1939260f,0x19c27960,0x5223a708,0xf71312b6,0xebadfe6e,0xeac31f66,0xe3bc4595,0xa67bc883,0xb17f37d1,0x18cff28,0xc332ddef,0xbe6c5aa5,0x65582185,0x68ab9802,0xeecea50f,0xdb2f953b,0x2aef7dad,0x5b6e2f84,0x1521b628,0x29076170,0xecdd4775,0x619f1510,0x13cca830,0xeb61bd96,0x334fe1e,0xaa0363cf,0xb5735c90,0x4c70a239,0xd59e9e0b,0xcbaade14,0xeecc86bc,0x60622ca7,0x9cab5cab,0xb2f3846e,0x648b1eaf,0x19bdf0ca,0xa02369b9,0x655abb50,0x40685a32,0x3c2ab4b3,0x319ee9d5,0xc021b8f7,0x9b540b19,0x875fa099,0x95f7997e,0x623d7da8,0xf837889a,0x97e32d77,0x11ed935f,0x16681281,0xe358829,0xc7e61fd6,0x96dedfa1,0x7858ba99,0x57f584a5,0x1b227263,0x9b83c3ff,0x1ac24696,0xcdb30aeb,0x532e3054,0x8fd948e4,0x6dbc3128,0x58ebf2ef,0x34c6ffea,0xfe28ed61,0xee7c3c73,0x5d4a14d9,0xe864b7e3,0x42105d14,0x203e13e0,0x45eee2b6,0xa3aaabea,0xdb6c4f15,0xfacb4fd0,0xc742f442,0xef6abbb5,0x654f3b1d,0x41cd2105,0xd81e799e,0x86854dc7,0xe44b476a,0x3d816250,0xcf62a1f2,0x5b8d2646,0xfc8883a0,0xc1c7b6a3,0x7f1524c3,0x69cb7492,0x47848a0b,0x5692b285,0x95bbf00,0xad19489d,0x1462b174,0x23820e00,0x58428d2a,0xc55f5ea,0x1dadf43e,0x233f7061,0x3372f092,0x8d937e41,0xd65fecf1,0x6c223bdb,0x7cde3759,0xcbee7460,0x4085f2a7,0xce77326e,0xa6078084,0x19f8509e,0xe8efd855,0x61d99735,0xa969a7aa,0xc50c06c2,0x5a04abfc,0x800bcadc,0x9e447a2e,0xc3453484,0xfdd56705,0xe1e9ec9,0xdb73dbd3,0x105588cd,0x675fda79,0xe3674340,0xc5c43465,0x713e38d8,0x3d28f89e,0xf16dff20,0x153e21e7,0x8fb03d4a,0xe6e39f2b,0xdb83adf7],[0xe93d5a68,0x948140f7,0xf64c261c,0x94692934,0x411520f7,0x7602d4f7,0xbcf46b2e,0xd4a20068,0xd4082471,0x3320f46a,0x43b7d4b7,0x500061af,0x1e39f62e,0x97244546,0x14214f74,0xbf8b8840,0x4d95fc1d,0x96b591af,0x70f4ddd3,0x66a02f45,0xbfbc09ec,0x3bd9785,0x7fac6dd0,0x31cb8504,0x96eb27b3,0x55fd3941,0xda2547e6,0xabca0a9a,0x28507825,0x530429f4,0xa2c86da,0xe9b66dfb,0x68dc1462,0xd7486900,0x680ec0a4,0x27a18dee,0x4f3ffea2,0xe887ad8c,0xb58ce006,0x7af4d6b6,0xaace1e7c,0xd3375fec,0xce78a399,0x406b2a42,0x20fe9e35,0xd9f385b9,0xee39d7ab,0x3b124e8b,0x1dc9faf7,0x4b6d1856,0x26a36631,0xeae397b2,0x3a6efa74,0xdd5b4332,0x6841e7f7,0xca7820fb,0xfb0af54e,0xd8feb397,0x454056ac,0xba489527,0x55533a3a,0x20838d87,0xfe6ba9b7,0xd096954b,0x55a867bc,0xa1159a58,0xcca92963,0x99e1db33,0xa62a4a56,0x3f3125f9,0x5ef47e1c,0x9029317c,0xfdf8e802,0x4272f70,0x80bb155c,0x5282ce3,0x95c11548,0xe4c66d22,0x48c1133f,0xc70f86dc,0x7f9c9ee,0x41041f0f,0x404779a4,0x5d886e17,0x325f51eb,0xd59bc0d1,0xf2bcc18f,0x41113564,0x257b7834,0x602a9c60,0xdff8e8a3,0x1f636c1b,0xe12b4c2,0x2e1329e,0xaf664fd1,0xcad18115,0x6b2395e0,0x333e92e1,0x3b240b62,0xeebeb922,0x85b2a20e,0xe6ba0d99,0xde720c8c,0x2da2f728,0xd0127845,0x95b794fd,0x647d0862,0xe7ccf5f0,0x5449a36f,0x877d48fa,0xc39dfd27,0xf33e8d1e,0xa476341,0x992eff74,0x3a6f6eab,0xf4f8fd37,0xa812dc60,0xa1ebddf8,0x991be14c,0xdb6e6b0d,0xc67b5510,0x6d672c37,0x2765d43b,0xdcd0e804,0xf1290dc7,0xcc00ffa3,0xb5390f92,0x690fed0b,0x667b9ffb,0xcedb7d9c,0xa091cf0b,0xd9155ea3,0xbb132f88,0x515bad24,0x7b9479bf,0x763bd6eb,0x37392eb3,0xcc115979,0x8026e297,0xf42e312d,0x6842ada7,0xc66a2b3b,0x12754ccc,0x782ef11c,0x6a124237,0xb79251e7,0x6a1bbe6,0x4bfb6350,0x1a6b1018,0x11caedfa,0x3d25bdd8,0xe2e1c3c9,0x44421659,0xa121386,0xd90cec6e,0xd5abea2a,0x64af674e,0xda86a85f,0xbebfe988,0x64e4c3fe,0x9dbc8057,0xf0f7c086,0x60787bf8,0x6003604d,0xd1fd8346,0xf6381fb0,0x7745ae04,0xd736fccc,0x83426b33,0xf01eab71,0xb0804187,0x3c005e5f,0x77a057be,0xbde8ae24,0x55464299,0xbf582e61,0x4e58f48f,0xf2ddfda2,0xf474ef38,0x8789bdc2,0x5366f9c3,0xc8b38e74,0xb475f255,0x46fcd9b9,0x7aeb2661,0x8b1ddf84,0x846a0e79,0x915f95e2,0x466e598e,0x20b45770,0x8cd55591,0xc902de4c,0xb90bace1,0xbb8205d0,0x11a86248,0x7574a99e,0xb77f19b6,0xe0a9dc09,0x662d09a1,0xc4324633,0xe85a1f02,0x9f0be8c,0x4a99a025,0x1d6efe10,0x1ab93d1d,0xba5a4df,0xa186f20f,0x2868f169,0xdcb7da83,0x573906fe,0xa1e2ce9b,0x4fcd7f52,0x50115e01,0xa70683fa,0xa002b5c4,0xde6d027,0x9af88c27,0x773f8641,0xc3604c06,0x61a806b5,0xf0177a28,0xc0f586e0,6314154,0x30dc7d62,0x11e69ed7,0x2338ea63,0x53c2dd94,0xc2c21634,0xbbcbee56,0x90bcb6de,0xebfc7da1,0xce591d76,0x6f05e409,0x4b7c0188,0x39720a3d,0x7c927c24,0x86e3725f,0x724d9db9,0x1ac15bb4,0xd39eb8fc,0xed545578,0x8fca5b5,0xd83d7cd3,0x4dad0fc4,0x1e50ef5e,0xb161e6f8,0xa28514d9,0x6c51133c,0x6fd5c7e7,0x56e14ec4,0x362abfce,0xddc6c837,0xd79a3234,0x92638212,0x670efa8e,0x406000e0],[0x3a39ce37,0xd3faf5cf,0xabc27737,0x5ac52d1b,0x5cb0679e,0x4fa33742,0xd3822740,0x99bc9bbe,0xd5118e9d,0xbf0f7315,0xd62d1c7e,0xc700c47b,0xb78c1b6b,0x21a19045,0xb26eb1be,0x6a366eb4,0x5748ab2f,0xbc946e79,0xc6a376d2,0x6549c2c8,0x530ff8ee,0x468dde7d,0xd5730a1d,0x4cd04dc6,0x2939bbdb,0xa9ba4650,0xac9526e8,0xbe5ee304,0xa1fad5f0,0x6a2d519a,0x63ef8ce2,0x9a86ee22,0xc089c2b8,0x43242ef6,0xa51e03aa,0x9cf2d0a4,0x83c061ba,0x9be96a4d,0x8fe51550,0xba645bd6,0x2826a2f9,0xa73a3ae1,0x4ba99586,0xef5562e9,0xc72fefd3,0xf752f7da,0x3f046f69,0x77fa0a59,0x80e4a915,0x87b08601,0x9b09e6ad,0x3b3ee593,0xe990fd5a,0x9e34d797,0x2cf0b7d9,0x22b8b51,0x96d5ac3a,0x17da67d,0xd1cf3ed6,0x7c7d2d28,0x1f9f25cf,0xadf2b89b,0x5ad6b472,0x5a88f54c,0xe029ac71,0xe019a5e6,0x47b0acfd,0xed93fa9b,0xe8d3c48d,0x283b57cc,0xf8d56629,0x79132e28,0x785f0191,0xed756055,0xf7960e44,0xe3d35e8c,0x15056dd4,0x88f46dba,0x3a16125,0x564f0bd,0xc3eb9e15,0x3c9057a2,0x97271aec,0xa93a072a,0x1b3f6d9b,0x1e6321f5,0xf59c66fb,0x26dcf319,0x7533d928,0xb155fdf5,0x3563482,0x8aba3cbb,0x28517711,0xc20ad9f8,0xabcc5167,0xccad925f,0x4de81751,0x3830dc8e,0x379d5862,0x9320f991,0xea7a90c2,0xfb3e7bce,0x5121ce64,0x774fbe32,0xa8b6e37e,0xc3293d46,0x48de5369,0x6413e680,0xa2ae0810,0xdd6db224,0x69852dfd,0x9072166,0xb39a460a,0x6445c0dd,0x586cdecf,0x1c20c8ae,0x5bbef7dd,0x1b588d40,0xccd2017f,0x6bb4e3bb,0xdda26a7e,0x3a59ff45,0x3e350a44,0xbcb4cdd5,0x72eacea8,0xfa6484bb,0x8d6612ae,0xbf3c6f47,0xd29be463,0x542f5d9e,0xaec2771b,0xf64e6370,0x740e0d8d,0xe75b1357,0xf8721671,0xaf537d5d,0x4040cb08,0x4eb4e2cc,0x34d2466a,0x115af84,3786409e3,0x95983a1d,0x6b89fb4,0xce6ea048,0x6f3f3b82,0x3520ab82,0x11a1d4b,0x277227f8,0x611560b1,0xe7933fdc,0xbb3a792b,0x344525bd,0xa08839e1,0x51ce794b,0x2f32c9b7,0xa01fbac9,0xe01cc87e,0xbcc7d1f6,0xcf0111c3,0xa1e8aac7,0x1a908749,0xd44fbd9a,0xd0dadecb,0xd50ada38,0x339c32a,0xc6913667,0x8df9317c,0xe0b12b4f,0xf79e59b7,0x43f5bb3a,0xf2d519ff,0x27d9459c,0xbf97222c,0x15e6fc2a,0xf91fc71,0x9b941525,0xfae59361,0xceb69ceb,0xc2a86459,0x12baa8d1,0xb6c1075e,0xe3056a0c,0x10d25065,0xcb03a442,0xe0ec6e0e,0x1698db3b,0x4c98a0be,0x3278e964,0x9f1f9532,0xe0d392df,0xd3a0342b,0x8971f21e,0x1b0a7441,0x4ba3348c,0xc5be7120,0xc37632d8,0xdf359f8d,0x9b992f2e,0xe60b6f47,0xfe3f11d,0xe54cda54,0x1edad891,0xce6279cf,0xcd3e7e6f,0x1618b166,0xfd2c1d05,0x848fd2c5,0xf6fb2299,0xf523f357,0xa6327623,0x93a83531,0x56cccd02,0xacf08162,0x5a75ebb5,0x6e163697,0x88d273cc,0xde966292,0x81b949d0,0x4c50901b,0x71c65614,0xe6c6c7bd,0x327a140a,0x45e1d006,0xc3f27b9a,0xc9aa53fd,0x62a80f00,0xbb25bfe2,0x35bdd2f6,0x71126905,0xb2040222,0xb6cbcf7c,0xcd769c2b,0x53113ec0,0x1640e3d3,0x38abbd60,0x2547adf0,0xba38209c,0xf746ce76,0x77afa1c5,0x20756060,0x85cbfe4e,0x8ae88dd8,0x7aaaf9b0,0x4cf9aa7e,0x1948c25c,0x2fb8a8c,0x1c36ae4,0xd6ebe1f9,0x90d4f869,0xa65cdea0,0x3f09252d,0xc208e69f,0xb74e6132,0xce77e25b,0x578fdfe3,0x3ac372e6]];var l={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,a=255&t,s=e.sbox[0][n]+e.sbox[1][r];return s^=e.sbox[2][o],s+=e.sbox[3][a]}function u(e,t,n){let r,a=t,s=n;for(let t=0;t<o;++t)a^=e.pbox[t],s=c(e,a)^s,r=a,a=s,s=r;return r=a,a=s,s=r^e.pbox[o],{left:a^=e.pbox[o+1],right:s}}function d(e,t,n){let r,a=t,s=n;for(let t=o+1;t>1;--t)a^=e.pbox[t],s=c(e,a)^s,r=a,a=s,s=r;return r=a,a=s,s=r^e.pbox[1],{left:a^=e.pbox[0],right:s}}function p(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=s[t][n]}let r=0;for(let s=0;s<o+2;s++)e.pbox[s]=a[s]^t[r],++r>=n&&(r=0);let l=0,c=0,d=0;for(let t=0;t<o+2;t+=2)l=(d=u(e,l,c)).left,c=d.right,e.pbox[t]=l,e.pbox[t+1]=c;for(let t=0;t<4;t++)for(let n=0;n<256;n+=2)l=(d=u(e,l,c)).left,c=d.right,e.sbox[t][n]=l,e.sbox[t][n+1]=c;return!0}var f=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;p(l,t,n)}},encryptBlock:function(e,t){var n=u(l,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=d(l,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(f)}(),e.Blowfish})},94768(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(30953))}(0,function(e){e.lib.Cipher||function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=t.enc;s.Utf8;var l=s.Base64,c=t.algo.EvpKDF,u=n.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:v}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=t.mode={},p=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=d.CBC=function(){var e=p.extend();function t(e,t,n){var r,o=this._iv;o?(r=o,this._iv=void 0):r=this._prevBlock;for(var a=0;a<n;a++)e[t+a]^=r[a]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,a=e.slice(n,n+o);r.decryptBlock(e,n),t.call(this,e,n,o),this._prevBlock=a}}),e}(),h=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,a=r<<24|r<<16|r<<8|r,s=[],l=0;l<r;l+=4)s.push(a);var c=o.create(s,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:h}),reset:function(){u.reset.call(this);var e,t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(t.format={}).OpenSSL={stringify:function(e){var t,n=e.ciphertext,r=e.salt;return(t=r?o.create([0x53616c74,0x65645f5f]).concat(r).concat(n):n).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 0x53616c74==r[0]&&0x65645f5f==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},v=n.SerializableCipher=r.extend({cfg:r.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),a=o.finalize(t),s=o.cfg;return m.create({ciphertext:a,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,r,a){if(r||(r=o.random(8)),a)var s=c.create({keySize:t+n,hasher:a}).compute(e,r);else var s=c.create({keySize:t+n}).compute(e,r);var l=o.create(s.words.slice(t),4*n);return s.sigBytes=4*t,m.create({key:s,iv:l,salt:r})}},b=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var a=v.encrypt.call(this,e,t,o.key,r);return a.mixIn(o),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,v.decrypt.call(this,e,t,o.key,r)}})}()})},10518(e,t,n){!function(n,r){e.exports=t=r()}(0,function(){var e=e||function(e,t){if("u">typeof window&&window.crypto&&(r=window.crypto),"u">typeof self&&self.crypto&&(r=self.crypto),"u">typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"u">typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(30891)}catch(e){}var r,o=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},l=s.lib={},c=l.Base=function(){return{extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=l.WordArray=c.extend({init:function(e,n){e=this.words=e||[],t!=n?this.sigBytes=n:this.sigBytes=4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<o;a++){var s=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=s<<24-(r+a)%4*8}else for(var l=0;l<o;l+=4)t[r+l>>>2]=n[l>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=0xffffffff<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new u.init(t,e)}}),d=s.enc={},p=d.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},f=d.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},h=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},m=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,a=r.sigBytes,s=this.blockSize,l=a/(4*s),c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*s,d=e.min(4*c,a);if(c){for(var p=0;p<c;p+=s)this._doProcessBlock(o,p);n=o.splice(0,c),r.sigBytes-=d}return new u.init(n,d)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});l.Hasher=m.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}});var g=s.algo={};return s}(Math);return e})},72201(e,t,n){!function(r,o){e.exports=t=o(n(10518))}(0,function(e){return!function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],a=0,s=0;s<t;s++)if(s%4){var l=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[a>>>2]|=l<<24-a%4*8,a++}return n.create(o,a)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var s=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<n;l++)o.push(r.charAt(s>>>6*(3-l)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<n.length;a++)o[n.charCodeAt(a)]=a}var s=n.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(t=l)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64})},11332(e,t,n){!function(r,o){e.exports=t=o(n(10518))}(0,function(e){return!function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],a=0,s=0;s<t;s++)if(s%4){var l=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[a>>>2]|=l<<24-a%4*8,a++}return n.create(o,a)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var a=[],s=0;s<r;s+=3)for(var l=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<r;c++)a.push(o.charAt(l>>>6*(3-c)&63));var u=o.charAt(64);if(u)for(;a.length%4;)a.push(u);return a.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var s=0;s<o.length;s++)a[o.charCodeAt(s)]=s}var l=o.charAt(64);if(l){var c=e.indexOf(l);-1!==c&&(n=c)}return r(e,n,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url})},7894(e,t,n){!function(r,o){e.exports=t=o(n(10518))}(0,function(e){return!function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&0xff00ff00|e>>>8&0xff00ff}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var a=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a<n;a+=2){var s=o(t[a>>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,r=[],a=0;a<t;a++)r[a>>>1]|=o(e.charCodeAt(a)<<16-a%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16})},30953(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(60648),n(46002))}(0,function(e){return!function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,a=t.algo,s=a.MD5,l=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,a=r.hasher.create(),s=o.create(),l=s.words,c=r.keySize,u=r.iterations;l.length<c;){n&&a.update(n),n=a.update(e).finalize(t),a.reset();for(var d=1;d<u;d++)n=a.finalize(n),a.reset();s.concat(n)}return s.sigBytes=4*c,s}});t.EvpKDF=function(e,t,n){return l.create(n).compute(e,t)}}(),e.EvpKDF})},85770(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return!function(t){var n=e,r=n.lib.CipherParams,o=n.enc.Hex;n.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return r.create({ciphertext:t})}}}(),e.format.Hex})},46002(e,t,n){!function(r,o){e.exports=t=o(n(10518))}(0,function(e){!function(){var t=e,n=t.lib.Base,r=t.enc.Utf8;t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),s=this._iKey=t.clone(),l=a.words,c=s.words,u=0;u<n;u++)l[u]^=0x5c5c5c5c,c[u]^=0x36363636;a.sigBytes=s.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}()})},88705(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(65703),n(31253),n(7894),n(72201),n(11332),n(22989),n(60648),n(72110),n(88623),n(71759),n(72078),n(36882),n(56261),n(46002),n(3604),n(30953),n(94768),n(91330),n(18944),n(59071),n(43974),n(91561),n(46782),n(73846),n(13673),n(83622),n(89805),n(85770),n(46598),n(13865),n(73556),n(33537),n(86333),n(87035))}(0,function(e){return e})},31253(e,t,n){!function(r,o){e.exports=t=o(n(10518))}(0,function(e){return!function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,r=n.WordArray,o=r.init,a=r.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"u">typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;r<t;r++)n[r>>>2]|=e[r]<<24-r%4*8;o.call(this,n,t)}else o.apply(this,arguments)};a.prototype=r}}(),e.lib.WordArray})},22989(e,t,n){!function(r,o){e.exports=t=o(n(10518))}(0,function(e){return!function(t){var n=e,r=n.lib,o=r.WordArray,a=r.Hasher,s=n.algo,l=[];!function(){for(var e=0;e<64;e++)l[e]=0x100000000*t.abs(t.sin(e+1))|0}();var c=s.MD5=a.extend({_doReset:function(){this._hash=new o.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=(o<<8|o>>>24)&0xff00ff|(o<<24|o>>>8)&0xff00ff00}var a=this._hash.words,s=e[t+0],c=e[t+1],h=e[t+2],m=e[t+3],g=e[t+4],v=e[t+5],y=e[t+6],b=e[t+7],x=e[t+8],C=e[t+9],k=e[t+10],w=e[t+11],S=e[t+12],_=e[t+13],E=e[t+14],P=e[t+15],I=a[0],T=a[1],D=a[2],A=a[3];I=u(I,T,D,A,s,7,l[0]),A=u(A,I,T,D,c,12,l[1]),D=u(D,A,I,T,h,17,l[2]),T=u(T,D,A,I,m,22,l[3]),I=u(I,T,D,A,g,7,l[4]),A=u(A,I,T,D,v,12,l[5]),D=u(D,A,I,T,y,17,l[6]),T=u(T,D,A,I,b,22,l[7]),I=u(I,T,D,A,x,7,l[8]),A=u(A,I,T,D,C,12,l[9]),D=u(D,A,I,T,k,17,l[10]),T=u(T,D,A,I,w,22,l[11]),I=u(I,T,D,A,S,7,l[12]),A=u(A,I,T,D,_,12,l[13]),D=u(D,A,I,T,E,17,l[14]),T=u(T,D,A,I,P,22,l[15]),I=d(I,T,D,A,c,5,l[16]),A=d(A,I,T,D,y,9,l[17]),D=d(D,A,I,T,w,14,l[18]),T=d(T,D,A,I,s,20,l[19]),I=d(I,T,D,A,v,5,l[20]),A=d(A,I,T,D,k,9,l[21]),D=d(D,A,I,T,P,14,l[22]),T=d(T,D,A,I,g,20,l[23]),I=d(I,T,D,A,C,5,l[24]),A=d(A,I,T,D,E,9,l[25]),D=d(D,A,I,T,m,14,l[26]),T=d(T,D,A,I,x,20,l[27]),I=d(I,T,D,A,_,5,l[28]),A=d(A,I,T,D,h,9,l[29]),D=d(D,A,I,T,b,14,l[30]),T=d(T,D,A,I,S,20,l[31]),I=p(I,T,D,A,v,4,l[32]),A=p(A,I,T,D,x,11,l[33]),D=p(D,A,I,T,w,16,l[34]),T=p(T,D,A,I,E,23,l[35]),I=p(I,T,D,A,c,4,l[36]),A=p(A,I,T,D,g,11,l[37]),D=p(D,A,I,T,b,16,l[38]),T=p(T,D,A,I,k,23,l[39]),I=p(I,T,D,A,_,4,l[40]),A=p(A,I,T,D,s,11,l[41]),D=p(D,A,I,T,m,16,l[42]),T=p(T,D,A,I,y,23,l[43]),I=p(I,T,D,A,C,4,l[44]),A=p(A,I,T,D,S,11,l[45]),D=p(D,A,I,T,P,16,l[46]),T=p(T,D,A,I,h,23,l[47]),I=f(I,T,D,A,s,6,l[48]),A=f(A,I,T,D,b,10,l[49]),D=f(D,A,I,T,E,15,l[50]),T=f(T,D,A,I,v,21,l[51]),I=f(I,T,D,A,S,6,l[52]),A=f(A,I,T,D,m,10,l[53]),D=f(D,A,I,T,k,15,l[54]),T=f(T,D,A,I,c,21,l[55]),I=f(I,T,D,A,x,6,l[56]),A=f(A,I,T,D,P,10,l[57]),D=f(D,A,I,T,y,15,l[58]),T=f(T,D,A,I,_,21,l[59]),I=f(I,T,D,A,g,6,l[60]),A=f(A,I,T,D,w,10,l[61]),D=f(D,A,I,T,h,15,l[62]),T=f(T,D,A,I,C,21,l[63]),a[0]=a[0]+I|0,a[1]=a[1]+T|0,a[2]=a[2]+D|0,a[3]=a[3]+A|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var a=t.floor(r/0x100000000),s=r;n[(o+64>>>9<<4)+15]=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00,n[(o+64>>>9<<4)+14]=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00,e.sigBytes=(n.length+1)*4,this._process();for(var l=this._hash,c=l.words,u=0;u<4;u++){var d=c[u];c[u]=(d<<8|d>>>24)&0xff00ff|(d<<24|d>>>8)&0xff00ff00}return l},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,o,a,s){var l=e+(t&n|~t&r)+o+s;return(l<<a|l>>>32-a)+t}function d(e,t,n,r,o,a,s){var l=e+(t&r|n&~r)+o+s;return(l<<a|l>>>32-a)+t}function p(e,t,n,r,o,a,s){var l=e+(t^n^r)+o+s;return(l<<a|l>>>32-a)+t}function f(e,t,n,r,o,a,s){var l=e+(n^(t|~r))+o+s;return(l<<a|l>>>32-a)+t}n.MD5=a._createHelper(c),n.HmacMD5=a._createHmacHelper(c)}(Math),e.MD5})},91330(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,a=this._iv;a?(o=a.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var s=0;s<n;s++)e[t+s]^=o[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,a=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=a}}),t}(),e.mode.CFB})},59071(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if((e>>24&255)==255){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0+(t<<16)+(n<<8)+r}else e+=0x1000000;return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,a=this._iv,s=this._counter;a&&(s=this._counter=a.slice(0),this._iv=void 0),r(s);var l=s.slice(0);n.encryptBlock(l,0);for(var c=0;c<o;c++)e[t+c]^=l[c]}});return t.Decryptor=o,t}(),e.mode.CTRGladman})},18944(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0);var s=a.slice(0);n.encryptBlock(s,0),a[r-1]=a[r-1]+1|0;for(var l=0;l<r;l++)e[t+l]^=s[l]}});return t.Decryptor=n,t}(),e.mode.CTR})},91561(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})},43974(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._keystream;o&&(a=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var s=0;s<r;s++)e[t+s]^=a[s]}});return t.Decryptor=n,t}(),e.mode.OFB})},46782(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,a=n+o-1;e.clamp(),e.words[a>>>2]|=o<<24-a%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923})},73846(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126})},13673(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([0x80000000],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})},89805(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},83622(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(94768))}(0,function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1,n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding})},3604(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(72110),n(46002))}(0,function(e){return!function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,a=t.algo,s=a.SHA256,l=a.HMAC,c=a.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=l.create(n.hasher,e),a=o.create(),s=o.create([1]),c=a.words,u=s.words,d=n.keySize,p=n.iterations;c.length<d;){var f=r.update(t).finalize(s);r.reset();for(var h=f.words,m=h.length,g=f,v=1;v<p;v++){g=r.finalize(g),r.reset();for(var y=g.words,b=0;b<m;b++)h[b]^=y[b]}a.concat(f),u[0]++}return a.sigBytes=4*d,a}});t.PBKDF2=function(e,t,n){return c.create(n).compute(e,t)}}(),e.PBKDF2})},86333(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(72201),n(22989),n(30953),n(94768))}(0,function(e){return!function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],a=[],s=[],l=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,0xffff0000&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,0xffff0000&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,0xffff0000&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,0xffff0000&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(var o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var a=t.words,s=a[0],l=a[1],u=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00,d=(l<<8|l>>>24)&0xff00ff|(l<<24|l>>>8)&0xff00ff00,p=u>>>16|0xffff0000&d,f=d<<16|65535&u;r[0]^=u,r[1]^=p,r[2]^=d,r[3]^=f,r[4]^=u,r[5]^=p,r[6]^=d,r[7]^=f;for(var o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=(o[r]<<8|o[r]>>>24)&0xff00ff|(o[r]<<24|o[r]>>>8)&0xff00ff00,e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+0x4d34d34d+this._b|0,t[1]=t[1]+0xd34d34d3+ +(t[0]>>>0<a[0]>>>0)|0,t[2]=t[2]+0x34d34d34+ +(t[1]>>>0<a[1]>>>0)|0,t[3]=t[3]+0x4d34d34d+ +(t[2]>>>0<a[2]>>>0)|0,t[4]=t[4]+0xd34d34d3+ +(t[3]>>>0<a[3]>>>0)|0,t[5]=t[5]+0x34d34d34+ +(t[4]>>>0<a[4]>>>0)|0,t[6]=t[6]+0x4d34d34d+ +(t[5]>>>0<a[5]>>>0)|0,t[7]=t[7]+0xd34d34d3+ +(t[6]>>>0<a[6]>>>0)|0,this._b=+(t[7]>>>0<a[7]>>>0);for(var n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,l=r>>>16,c=((o*o>>>17)+o*l>>>15)+l*l,u=((0xffff0000&r)*r|0)+((65535&r)*r|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=n._createHelper(l)}(),e.RabbitLegacy})},33537(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(72201),n(22989),n(30953),n(94768))}(0,function(e){return!function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],a=[],s=[],l=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=(e[n]<<8|e[n]>>>24)&0xff00ff|(e[n]<<24|e[n]>>>8)&0xff00ff00;var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,0xffff0000&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,0xffff0000&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,0xffff0000&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,0xffff0000&e[3]|65535&e[0]];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var a=t.words,s=a[0],l=a[1],u=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00,d=(l<<8|l>>>24)&0xff00ff|(l<<24|l>>>8)&0xff00ff00,p=u>>>16|0xffff0000&d,f=d<<16|65535&u;o[0]^=u,o[1]^=p,o[2]^=d,o[3]^=f,o[4]^=u,o[5]^=p,o[6]^=d,o[7]^=f;for(var n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=(o[r]<<8|o[r]>>>24)&0xff00ff|(o[r]<<24|o[r]>>>8)&0xff00ff00,e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+0x4d34d34d+this._b|0,t[1]=t[1]+0xd34d34d3+ +(t[0]>>>0<a[0]>>>0)|0,t[2]=t[2]+0x34d34d34+ +(t[1]>>>0<a[1]>>>0)|0,t[3]=t[3]+0x4d34d34d+ +(t[2]>>>0<a[2]>>>0)|0,t[4]=t[4]+0xd34d34d3+ +(t[3]>>>0<a[3]>>>0)|0,t[5]=t[5]+0x34d34d34+ +(t[4]>>>0<a[4]>>>0)|0,t[6]=t[6]+0x4d34d34d+ +(t[5]>>>0<a[5]>>>0)|0,t[7]=t[7]+0xd34d34d3+ +(t[6]>>>0<a[6]>>>0)|0,this._b=+(t[7]>>>0<a[7]>>>0);for(var n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,l=r>>>16,c=((o*o>>>17)+o*l>>>15)+l*l,u=((0xffff0000&r)*r|0)+((65535&r)*r|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=n._createHelper(l)}(),e.Rabbit})},73556(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(72201),n(22989),n(30953),n(94768))}(0,function(e){return!function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;for(var o=0,a=0;o<256;o++){var s=o%n,l=t[s>>>2]>>>24-s%4*8&255;a=(a+r[o]+l)%256;var c=r[o];r[o]=r[a],r[a]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}t.RC4=n._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=n._createHelper(s)}(),e.RC4})},56261(e,t,n){!function(r,o){e.exports=t=o(n(10518))}(0,function(e){return!function(t){var n=e,r=n.lib,o=r.WordArray,a=r.Hasher,s=n.algo,l=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=o.create([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),f=o.create([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]),h=s.RIPEMD160=a.extend({_doReset:function(){this._hash=o.create([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function(e,t){for(var n,r,o,a,s,h,C,k,w,S,_,E=0;E<16;E++){var P=t+E,I=e[P];e[P]=(I<<8|I>>>24)&0xff00ff|(I<<24|I>>>8)&0xff00ff00}var T=this._hash.words,D=p.words,A=f.words,R=l.words,N=c.words,B=u.words,M=d.words;h=n=T[0],C=r=T[1],k=o=T[2],w=a=T[3],S=s=T[4];for(var E=0;E<80;E+=1)_=n+e[t+R[E]]|0,E<16?_+=m(r,o,a)+D[0]:E<32?_+=g(r,o,a)+D[1]:E<48?_+=v(r,o,a)+D[2]:E<64?_+=y(r,o,a)+D[3]:_+=b(r,o,a)+D[4],_|=0,_=(_=x(_,B[E]))+s|0,n=s,s=a,a=x(o,10),o=r,r=_,_=h+e[t+N[E]]|0,E<16?_+=b(C,k,w)+A[0]:E<32?_+=y(C,k,w)+A[1]:E<48?_+=v(C,k,w)+A[2]:E<64?_+=g(C,k,w)+A[3]:_+=m(C,k,w)+A[4],_|=0,_=(_=x(_,M[E]))+S|0,h=S,S=w,w=x(k,10),k=C,C=_;_=T[1]+o+w|0,T[1]=T[2]+a+S|0,T[2]=T[3]+s+h|0,T[3]=T[4]+n+C|0,T[4]=T[0]+r+k|0,T[0]=_},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=(n<<8|n>>>24)&0xff00ff|(n<<24|n>>>8)&0xff00ff00,e.sigBytes=(t.length+1)*4,this._process();for(var o=this._hash,a=o.words,s=0;s<5;s++){var l=a[s];a[s]=(l<<8|l>>>24)&0xff00ff|(l<<24|l>>>8)&0xff00ff00}return o},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function m(e,t,n){return e^t^n}function g(e,t,n){return e&t|~e&n}function v(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function x(e,t){return e<<t|e>>>32-t}n.RIPEMD160=a._createHelper(h),n.HmacRIPEMD160=a._createHmacHelper(h)}(Math),e.RIPEMD160})},60648(e,t,n){!function(r,o){e.exports=t=o(n(10518))}(0,function(e){return!function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,s=[],l=a.SHA1=o.extend({_doReset:function(){this._hash=new r.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],l=n[3],c=n[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var d=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=d<<1|d>>>31}var p=(r<<5|r>>>27)+c+s[u];u<20?p+=(o&a|~o&l)+0x5a827999:u<40?p+=(o^a^l)+0x6ed9eba1:u<60?p+=(o&a|o&l|a&l)-0x70e44324:p+=(o^a^l)-0x359d3e2a,c=l,l=a,a=o<<30|o>>>2,o=r,r=p}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+l|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/0x100000000),t[(r+64>>>9<<4)+15]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(l),t.HmacSHA1=o._createHmacHelper(l)}(),e.SHA1})},88623(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(72110))}(0,function(e){return!function(){var t=e,n=t.lib.WordArray,r=t.algo,o=r.SHA256,a=r.SHA224=o.extend({_doReset:function(){this._hash=new n.init([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(a),t.HmacSHA224=o._createHmacHelper(a)}(),e.SHA224})},72110(e,t,n){!function(r,o){e.exports=t=o(n(10518))}(0,function(e){return!function(t){var n=e,r=n.lib,o=r.WordArray,a=r.Hasher,s=n.algo,l=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return(e-(0|e))*0x100000000|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(l[o]=n(t.pow(r,.5))),c[o]=n(t.pow(r,1/3)),o++),r++}();var u=[],d=s.SHA256=a.extend({_doReset:function(){this._hash=new o.init(l.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],d=n[5],p=n[6],f=n[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var m=u[h-15],g=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,v=u[h-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[h]=g+u[h-7]+y+u[h-16]}var b=l&d^~l&p,x=r&o^r&a^o&a,C=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),k=f+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+b+c[h]+u[h],w=C+x;f=p,p=d,d=l,l=s+k|0,s=a,a=o,o=r,r=k+w|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+d|0,n[6]=n[6]+p|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[(o+64>>>9<<4)+14]=t.floor(r/0x100000000),n[(o+64>>>9<<4)+15]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(d),n.HmacSHA256=a._createHmacHelper(d)}(Math),e.SHA256})},36882(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(65703))}(0,function(e){return!function(t){var n=e,r=n.lib,o=r.WordArray,a=r.Hasher,s=n.x64.Word,l=n.algo,c=[],u=[],d=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,o=(2*e+3*t)%5;e=r,t=o}for(var e=0;e<5;e++)for(var t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,l=0;l<24;l++){for(var p=0,f=0,h=0;h<7;h++){if(1&a){var m=(1<<h)-1;m<32?f^=1<<m:p^=1<<m-32}128&a?a=a<<1^113:a<<=1}d[l]=s.create(p,f)}}();var p=[];!function(){for(var e=0;e<25;e++)p[e]=s.create()}();var f=l.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var a=e[t+2*o],s=e[t+2*o+1];a=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00,s=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00;var l=n[o];l.high^=s,l.low^=a}for(var f=0;f<24;f++){for(var h=0;h<5;h++){for(var m=0,g=0,v=0;v<5;v++){var l=n[h+5*v];m^=l.high,g^=l.low}var y=p[h];y.high=m,y.low=g}for(var h=0;h<5;h++)for(var b=p[(h+4)%5],x=p[(h+1)%5],C=x.high,k=x.low,m=b.high^(C<<1|k>>>31),g=b.low^(k<<1|C>>>31),v=0;v<5;v++){var l=n[h+5*v];l.high^=m,l.low^=g}for(var w=1;w<25;w++){var m,g,l=n[w],S=l.high,_=l.low,E=c[w];E<32?(m=S<<E|_>>>32-E,g=_<<E|S>>>32-E):(m=_<<E-32|S>>>64-E,g=S<<E-32|_>>>64-E);var P=p[u[w]];P.high=m,P.low=g}var I=p[0],T=n[0];I.high=T.high,I.low=T.low;for(var h=0;h<5;h++)for(var v=0;v<5;v++){var w=h+5*v,l=n[w],D=p[w],A=p[(h+1)%5+5*v],R=p[(h+2)%5+5*v];l.high=D.high^~A.high&R.high,l.low=D.low^~A.low&R.low}var l=n[0],N=d[f];l.high^=N.high,l.low^=N.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,l=this.cfg.outputLength/8,c=l/8,u=[],d=0;d<c;d++){var p=s[d],f=p.high,h=p.low;f=(f<<8|f>>>24)&0xff00ff|(f<<24|f>>>8)&0xff00ff00,h=(h<<8|h>>>24)&0xff00ff|(h<<24|h>>>8)&0xff00ff00,u.push(h),u.push(f)}return new o.init(u,l)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=a._createHelper(f),n.HmacSHA3=a._createHmacHelper(f)}(Math),e.SHA3})},72078(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(65703),n(71759))}(0,function(e){return!function(){var t=e,n=t.x64,r=n.Word,o=n.WordArray,a=t.algo,s=a.SHA512,l=a.SHA384=s.extend({_doReset:function(){this._hash=new o.init([new r.init(0xcbbb9d5d,0xc1059ed8),new r.init(0x629a292a,0x367cd507),new r.init(0x9159015a,0x3070dd17),new r.init(0x152fecd8,0xf70e5939),new r.init(0x67332667,0xffc00b31),new r.init(0x8eb44a87,0x68581511),new r.init(0xdb0c2e0d,0x64f98fa7),new r.init(0x47b5481d,0xbefa4fa4)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=s._createHelper(l),t.HmacSHA384=s._createHmacHelper(l)}(),e.SHA384})},71759(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(65703))}(0,function(e){return!function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,a=r.WordArray,s=t.algo;function l(){return o.create.apply(o,arguments)}var c=[l(0x428a2f98,0xd728ae22),l(0x71374491,0x23ef65cd),l(0xb5c0fbcf,0xec4d3b2f),l(0xe9b5dba5,0x8189dbbc),l(0x3956c25b,0xf348b538),l(0x59f111f1,0xb605d019),l(0x923f82a4,0xaf194f9b),l(0xab1c5ed5,0xda6d8118),l(0xd807aa98,0xa3030242),l(0x12835b01,0x45706fbe),l(0x243185be,0x4ee4b28c),l(0x550c7dc3,0xd5ffb4e2),l(0x72be5d74,0xf27b896f),l(0x80deb1fe,0x3b1696b1),l(0x9bdc06a7,0x25c71235),l(0xc19bf174,0xcf692694),l(0xe49b69c1,0x9ef14ad2),l(0xefbe4786,0x384f25e3),l(0xfc19dc6,0x8b8cd5b5),l(0x240ca1cc,0x77ac9c65),l(0x2de92c6f,0x592b0275),l(0x4a7484aa,0x6ea6e483),l(0x5cb0a9dc,0xbd41fbd4),l(0x76f988da,0x831153b5),l(0x983e5152,0xee66dfab),l(0xa831c66d,0x2db43210),l(0xb00327c8,0x98fb213f),l(0xbf597fc7,0xbeef0ee4),l(0xc6e00bf3,0x3da88fc2),l(0xd5a79147,0x930aa725),l(0x6ca6351,0xe003826f),l(0x14292967,0xa0e6e70),l(0x27b70a85,0x46d22ffc),l(0x2e1b2138,0x5c26c926),l(0x4d2c6dfc,0x5ac42aed),l(0x53380d13,0x9d95b3df),l(0x650a7354,0x8baf63de),l(0x766a0abb,0x3c77b2a8),l(0x81c2c92e,0x47edaee6),l(0x92722c85,0x1482353b),l(0xa2bfe8a1,0x4cf10364),l(0xa81a664b,0xbc423001),l(0xc24b8b70,0xd0f89791),l(0xc76c51a3,0x654be30),l(0xd192e819,0xd6ef5218),l(0xd6990624,0x5565a910),l(0xf40e3585,0x5771202a),l(0x106aa070,0x32bbd1b8),l(0x19a4c116,0xb8d2d0c8),l(0x1e376c08,0x5141ab53),l(0x2748774c,0xdf8eeb99),l(0x34b0bcb5,0xe19b48a8),l(0x391c0cb3,0xc5c95a63),l(0x4ed8aa4a,0xe3418acb),l(0x5b9cca4f,0x7763e373),l(0x682e6ff3,0xd6b2b8a3),l(0x748f82ee,0x5defb2fc),l(0x78a5636f,0x43172f60),l(0x84c87814,0xa1f0ab72),l(0x8cc70208,0x1a6439ec),l(0x90befffa,0x23631e28),l(0xa4506ceb,0xde82bde9),l(0xbef9a3f7,0xb2c67915),l(0xc67178f2,0xe372532b),l(0xca273ece,0xea26619c),l(0xd186b8c7,0x21c0c207),l(0xeada7dd6,0xcde0eb1e),l(0xf57d4f7f,0xee6ed178),l(0x6f067aa,0x72176fba),l(0xa637dc5,0xa2c898a6),l(0x113f9804,0xbef90dae),l(0x1b710b35,0x131c471b),l(0x28db77f5,0x23047d84),l(0x32caab7b,0x40c72493),l(0x3c9ebe0a,0x15c9bebc),l(0x431d67c4,0x9c100d4c),l(0x4cc5d4be,0xcb3e42b6),l(0x597f299c,0xfc657e2a),l(0x5fcb6fab,0x3ad6faec),l(0x6c44198c,0x4a475817)],u=[];!function(){for(var e=0;e<80;e++)u[e]=l()}();var d=s.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new o.init(0x6a09e667,0xf3bcc908),new o.init(0xbb67ae85,0x84caa73b),new o.init(0x3c6ef372,0xfe94f82b),new o.init(0xa54ff53a,0x5f1d36f1),new o.init(0x510e527f,0xade682d1),new o.init(0x9b05688c,0x2b3e6c1f),new o.init(0x1f83d9ab,0xfb41bd6b),new o.init(0x5be0cd19,0x137e2179)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],d=n[5],p=n[6],f=n[7],h=r.high,m=r.low,g=o.high,v=o.low,y=a.high,b=a.low,x=s.high,C=s.low,k=l.high,w=l.low,S=d.high,_=d.low,E=p.high,P=p.low,I=f.high,T=f.low,D=h,A=m,R=g,N=v,B=y,M=b,F=x,O=C,L=k,H=w,z=S,V=_,U=E,j=P,W=I,q=T,G=0;G<80;G++){var K,X,Y=u[G];if(G<16)X=Y.high=0|e[t+2*G],K=Y.low=0|e[t+2*G+1];else{var Q=u[G-15],J=Q.high,Z=Q.low,ee=(J>>>1|Z<<31)^(J>>>8|Z<<24)^J>>>7,et=(Z>>>1|J<<31)^(Z>>>8|J<<24)^(Z>>>7|J<<25),en=u[G-2],er=en.high,eo=en.low,ei=(er>>>19|eo<<13)^(er<<3|eo>>>29)^er>>>6,ea=(eo>>>19|er<<13)^(eo<<3|er>>>29)^(eo>>>6|er<<26),es=u[G-7],el=es.high,ec=es.low,eu=u[G-16],ed=eu.high,ep=eu.low;X=ee+el+ +((K=et+ec)>>>0<et>>>0),K+=ea,X=X+ei+ +(K>>>0<ea>>>0),K+=ep,Y.high=X=X+ed+ +(K>>>0<ep>>>0),Y.low=K}var ef=L&z^~L&U,eh=H&V^~H&j,em=D&R^D&B^R&B,eg=A&N^A&M^N&M,ev=(D>>>28|A<<4)^(D<<30|A>>>2)^(D<<25|A>>>7),ey=(A>>>28|D<<4)^(A<<30|D>>>2)^(A<<25|D>>>7),eb=(L>>>14|H<<18)^(L>>>18|H<<14)^(L<<23|H>>>9),ex=(H>>>14|L<<18)^(H>>>18|L<<14)^(H<<23|L>>>9),eC=c[G],ek=eC.high,ew=eC.low,eS=q+ex,e_=W+eb+ +(eS>>>0<q>>>0),eS=eS+eh,e_=e_+ef+ +(eS>>>0<eh>>>0),eS=eS+ew,e_=e_+ek+ +(eS>>>0<ew>>>0),eS=eS+K,e_=e_+X+ +(eS>>>0<K>>>0),eE=ey+eg,eP=ev+em+ +(eE>>>0<ey>>>0);W=U,q=j,U=z,j=V,z=L,V=H,L=F+e_+ +((H=O+eS|0)>>>0<O>>>0)|0,F=B,O=M,B=R,M=N,R=D,N=A,D=e_+eP+ +((A=eS+eE|0)>>>0<eS>>>0)|0}m=r.low=m+A,r.high=h+D+ +(m>>>0<A>>>0),v=o.low=v+N,o.high=g+R+ +(v>>>0<N>>>0),b=a.low=b+M,a.high=y+B+ +(b>>>0<M>>>0),C=s.low=C+O,s.high=x+F+ +(C>>>0<O>>>0),w=l.low=w+H,l.high=k+L+ +(w>>>0<H>>>0),_=d.low=_+V,d.high=S+z+ +(_>>>0<V>>>0),P=p.low=P+j,p.high=E+U+ +(P>>>0<j>>>0),T=f.low=T+q,f.high=I+W+ +(T>>>0<q>>>0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[(r+128>>>10<<5)+30]=Math.floor(n/0x100000000),t[(r+128>>>10<<5)+31]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(d),t.HmacSHA512=n._createHmacHelper(d)}(),e.SHA512})},13865(e,t,n){!function(r,o,a){e.exports=t=o(n(10518),n(72201),n(22989),n(30953),n(94768))}(0,function(e){return!function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,a=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,0x10000000:32768,0x20000000:8421378,0x30000000:2,0x40000000:512,0x50000000:8421890,0x60000000:8389122,0x70000000:8388608,0x80000000:514,0x90000000:8389120,0xa0000000:33280,0xb0000000:8421376,0xc0000000:32770,0xd0000000:8388610,0xe0000000:0,0xf0000000:33282,0x8000000:0,0x18000000:8421890,0x28000000:33282,0x38000000:32768,0x48000000:8421888,0x58000000:512,0x68000000:8421378,0x78000000:2,0x88000000:8389120,0x98000000:33280,0xa8000000:8421376,0xb8000000:8389122,0xc8000000:8388610,0xd8000000:32770,0xe8000000:514,0xf8000000:8388608,1:32768,0x10000001:2,0x20000001:8421888,0x30000001:8388608,0x40000001:8421378,0x50000001:33280,0x60000001:512,0x70000001:8389122,0x80000001:8421890,0x90000001:8421376,0xa0000001:8388610,0xb0000001:33282,0xc0000001:514,0xd0000001:8389120,0xe0000001:32770,0xf0000001:0,0x8000001:8421890,0x18000001:8421376,0x28000001:8388608,0x38000001:512,0x48000001:32768,0x58000001:8388610,0x68000001:2,0x78000001:33282,0x88000001:32770,0x98000001:8389122,0xa8000001:514,0xb8000001:8421888,0xc8000001:8389120,0xd8000001:0,0xe8000001:33280,0xf8000001:8421378},{0:0x40084010,0x1000000:16384,0x2000000:524288,0x3000000:0x40080010,0x4000000:0x40000010,0x5000000:0x40084000,0x6000000:0x40004000,0x7000000:16,0x8000000:540672,0x9000000:0x40004010,0xa000000:0x40000000,0xb000000:540688,0xc000000:524304,0xd000000:0,0xe000000:16400,0xf000000:0x40080000,8388608:0x40004000,0x1800000:540688,0x2800000:16,0x3800000:0x40004010,0x4800000:0x40084010,0x5800000:0x40000000,0x6800000:524288,0x7800000:0x40080010,0x8800000:524304,0x9800000:0,0xa800000:16384,0xb800000:0x40080000,0xc800000:0x40000010,0xd800000:540672,0xe800000:0x40084000,0xf800000:16400,0x10000000:0,0x11000000:0x40080010,0x12000000:0x40004010,0x13000000:0x40084000,0x14000000:0x40080000,0x15000000:16,0x16000000:540688,0x17000000:16384,0x18000000:16400,0x19000000:524288,0x1a000000:524304,0x1b000000:0x40000010,0x1c000000:540672,0x1d000000:0x40004000,0x1e000000:0x40000000,0x1f000000:0x40084010,0x10800000:540688,0x11800000:524288,0x12800000:0x40080000,0x13800000:16384,0x14800000:0x40004000,0x15800000:0x40084010,0x16800000:16,0x17800000:0x40000000,0x18800000:0x40084000,0x19800000:0x40000010,0x1a800000:0x40004010,0x1b800000:524304,0x1c800000:0,0x1d800000:16400,0x1e800000:0x40080010,0x1f800000:540672},{0:260,1048576:0,2097152:0x4000100,3145728:65796,4194304:65540,5242880:0x4000004,6291456:0x4010104,7340032:0x4010000,8388608:0x4000000,9437184:0x4010100,0xa00000:65792,0xb00000:0x4010004,0xc00000:0x4000104,0xd00000:65536,0xe00000:4,0xf00000:256,524288:0x4010100,1572864:0x4010004,2621440:0,3670016:0x4000100,4718592:0x4000004,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,0xa80000:0x4010000,0xb80000:65796,0xc80000:65792,0xd80000:0x4000104,0xe80000:0x4010104,0xf80000:0x4000000,0x1000000:0x4010100,0x1100000:65540,0x1200000:65536,0x1300000:0x4000100,0x1400000:256,0x1500000:0x4010104,0x1600000:0x4000004,0x1700000:0,0x1800000:0x4000104,0x1900000:0x4000000,0x1a00000:4,0x1b00000:65792,0x1c00000:0x4010000,0x1d00000:260,0x1e00000:65796,0x1f00000:0x4010004,0x1080000:0x4000000,0x1180000:260,0x1280000:0x4010100,0x1380000:0,0x1480000:65540,0x1580000:0x4000100,0x1680000:256,0x1780000:0x4010004,0x1880000:65536,0x1980000:0x4010104,0x1a80000:65796,0x1b80000:0x4000004,0x1c80000:0x4000104,0x1d80000:0x4010000,0x1e80000:4,0x1f80000:65792},{0:0x80401000,65536:0x80001040,131072:4198464,196608:0x80400000,262144:0,327680:4198400,393216:0x80000040,458752:4194368,524288:0x80000000,589824:4194304,655360:64,720896:0x80001000,786432:0x80400040,851968:4160,917504:4096,983040:0x80401040,32768:0x80001040,98304:64,163840:0x80400040,229376:0x80001000,294912:4198400,360448:0x80401040,425984:0,491520:0x80400000,557056:4096,622592:0x80401000,688128:4194304,753664:4160,819200:0x80000000,884736:4194368,950272:4198464,1015808:0x80000040,1048576:4194368,1114112:4198400,1179648:0x80000040,1245184:0,1310720:4160,1376256:0x80400040,1441792:0x80401000,1507328:0x80001040,1572864:0x80401040,1638400:0x80000000,1703936:0x80400000,1769472:4198464,1835008:0x80001000,1900544:4194304,1966080:64,2031616:4096,1081344:0x80400000,1146880:0x80401040,1212416:0,1277952:4198400,1343488:4194368,1409024:0x80000000,1474560:0x80001040,1540096:64,1605632:0x80000040,1671168:4096,1736704:0x80001000,1802240:0x80400040,1867776:4160,1933312:0x80401000,1998848:4194304,2064384:4198464},{0:128,4096:0x1040000,8192:262144,12288:0x20000000,16384:0x20040080,20480:0x1000080,24576:0x21000080,28672:262272,32768:0x1000000,36864:0x20040000,40960:0x20000080,45056:0x21040080,49152:0x21040000,53248:0,57344:0x1040080,61440:0x21000000,2048:0x1040080,6144:0x21000080,10240:128,14336:0x1040000,18432:262144,22528:0x20040080,26624:0x21040000,30720:0x20000000,34816:0x20040000,38912:0,43008:0x21040080,47104:0x1000080,51200:0x20000080,55296:0x21000000,59392:0x1000000,63488:262272,65536:262144,69632:128,73728:0x20000000,77824:0x21000080,81920:0x1000080,86016:0x21040000,90112:0x20040080,94208:0x1000000,98304:0x21040080,102400:0x21000000,106496:0x1040000,110592:0x20040000,114688:262272,118784:0x20000080,122880:0,126976:0x1040080,67584:0x21000080,71680:0x1000000,75776:0x1040000,79872:0x20040080,83968:0x20000000,88064:0x1040080,92160:128,96256:0x21040000,100352:262272,104448:0x21040080,108544:0,112640:0x21000000,116736:0x1000080,120832:262144,124928:0x20040000,129024:0x20000080},{0:0x10000008,256:8192,512:0x10200000,768:0x10202008,1024:0x10002000,1280:2097152,1536:2097160,1792:0x10000000,2048:0,2304:0x10002008,2560:2105344,2816:8,3072:0x10200008,3328:2105352,3584:8200,3840:0x10202000,128:0x10200000,384:0x10202008,640:8,896:2097152,1152:2105352,1408:0x10000008,1664:0x10002000,1920:8200,2176:2097160,2432:8192,2688:0x10002008,2944:0x10200008,3200:0,3456:0x10202000,3712:2105344,3968:0x10000000,4096:0x10002000,4352:0x10200008,4608:0x10202008,4864:8200,5120:2097152,5376:0x10000000,5632:0x10000008,5888:2105344,6144:2105352,6400:0,6656:8,6912:0x10200000,7168:8192,7424:0x10002008,7680:0x10202000,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:0x10000008,5248:0x10002000,5504:8200,5760:0x10202008,6016:0x10200000,6272:0x10202000,6528:0x10200008,6784:8192,7040:2105352,7296:2097160,7552:0,7808:0x10000000,8064:0x10002008},{0:1048576,16:0x2000401,32:1024,48:1049601,64:0x2100401,80:0,96:1,112:0x2100001,128:0x2000400,144:1048577,160:0x2000001,176:0x2100400,192:0x2100000,208:1025,224:1049600,240:0x2000000,8:0x2100001,24:0,40:0x2000401,56:0x2100400,72:1048576,88:0x2000001,104:0x2000000,120:1025,136:1049601,152:0x2000400,168:0x2100000,184:1048577,200:1024,216:0x2100401,232:1,248:1049600,256:0x2000000,272:1048576,288:0x2000401,304:0x2100001,320:1048577,336:0x2000400,352:0x2100400,368:1049601,384:1025,400:0x2100401,416:1049600,432:1,448:0,464:0x2100000,480:0x2000001,496:1024,264:1049600,280:0x2000401,296:0x2100001,312:1,328:0x2000000,344:1048576,360:1025,376:0x2100400,392:0x2000001,408:0x2100000,424:0,440:0x2100401,456:1049601,472:1024,488:0x2000400,504:1048577},{0:0x8000820,1:131072,2:0x8000000,3:32,4:131104,5:0x8020820,6:0x8020800,7:2048,8:0x8020000,9:0x8000800,10:133120,11:0x8020020,12:2080,13:0,14:0x8000020,15:133152,0x80000000:2048,0x80000001:0x8020820,0x80000002:0x8000820,0x80000003:0x8000000,0x80000004:0x8020000,0x80000005:133120,0x80000006:133152,0x80000007:32,0x80000008:0x8000020,0x80000009:2080,0x8000000a:131104,0x8000000b:0x8020800,0x8000000c:0,0x8000000d:0x8020020,0x8000000e:0x8000800,0x8000000f:131072,16:133152,17:0x8020800,18:32,19:2048,20:0x8000800,21:0x8000020,22:0x8020020,23:131072,24:0,25:131104,26:0x8020000,27:0x8000820,28:0x8020820,29:133120,30:2080,31:0x8000000,0x80000010:131072,0x80000011:2048,0x80000012:0x8020020,0x80000013:133152,0x80000014:32,0x80000015:0x8020000,0x80000016:0x8000000,0x80000017:0x8000820,0x80000018:0x8020820,0x80000019:0x8000020,0x8000001a:0x8000800,0x8000001b:0,0x8000001c:133120,0x8000001d:2080,0x8000001e:131104,0x8000001f:0x8020800}],d=[0xf8000001,0x1f800000,0x1f80000,2064384,129024,8064,504,0x8000001f],p=a.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],a=0;a<16;a++){for(var u=o[a]=[],d=c[a],n=0;n<24;n++)u[n/6|0]|=t[(l[n]-1+d)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(l[n+24]-1+d)%28]<<31-n%6;u[0]=u[0]<<1|u[0]>>>31;for(var n=1;n<7;n++)u[n]=u[n]>>>(n-1)*4+3;u[7]=u[7]<<5|u[7]>>>27}for(var p=this._invSubKeys=[],n=0;n<16;n++)p[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,0xf0f0f0f),f.call(this,16,65535),h.call(this,2,0x33333333),h.call(this,8,0xff00ff),f.call(this,1,0x55555555);for(var r=0;r<16;r++){for(var o=n[r],a=this._lBlock,s=this._rBlock,l=0,c=0;c<8;c++)l|=u[c][((s^o[c])&d[c])>>>0];this._lBlock=s,this._rBlock=a^l}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,f.call(this,1,0x55555555),h.call(this,8,0xff00ff),h.call(this,2,0x33333333),f.call(this,16,65535),f.call(this,4,0xf0f0f0f),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(p);var m=a.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=p.createEncryptor(r.create(t)),this._des2=p.createEncryptor(r.create(n)),this._des3=p.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(m)}(),e.TripleDES})},65703(e,t,n){!function(r,o){e.exports=t=o(n(10518))}(0,function(e){return!function(t){var n=e,r=n.lib,o=r.Base,a=r.WordArray,s=n.x64={};s.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=o.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),e})},20124(e,t,n){"use strict";var r=n(39907);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function s(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),this.useColors){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)}}function l(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}function c(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}function u(){try{return localStorage}catch(e){}}t.log=function e(){var e;return("u"<typeof console?"undefined":o(console))==="object"&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=s,t.save=l,t.load=c,t.useColors=a,t.storage=u(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(27891)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},27891(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function s(){if(s.enabled){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var a=s,l=Number(new Date),c=l-(n||l);a.diff=c,a.prev=n,a.curr=l,n=l,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return e;u++;var o=r.formatters[n];if("function"==typeof o){var s=t[u];e=o.call(a,s),t.splice(u,1),u--}return e}),r.formatArgs.call(a,t);var d=a.log||r.log;d.apply(a,t)}}return s.namespace=e,s.enabled=r.enabled(e),s.useColors=r.useColors(),s.color=t(e),s.destroy=o,s.extend=a,"function"==typeof r.init&&r.init(s),r.instances.push(s),s}function o(){var e=r.instances.indexOf(this);return -1!==e&&(r.instances.splice(e,1),!0)}function a(e,t){return r(this.namespace+(void 0===t?":":t)+e)}function s(e){r.save(e),r.names=[],r.skips=[];var t,n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t<o;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(RegExp("^"+e.substr(1)+"$")):r.names.push(RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var a=r.instances[t];a.enabled=r.enabled(a.namespace)}}function l(){r.enable("")}function c(e){var t,n;if("*"===e[e.length-1])return!0;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}return r.debug=r,r.default=r,r.coerce=u,r.disable=l,r.enable=s,r.enabled=c,r.humanize=n(27250),Object.keys(e).forEach(function(t){r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},57221(e,t,n){"use strict";e.exports=n(27875).polyfill()},27875(e,t,n){var r=n(39907);!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var o=void 0,a=o=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=0,l=void 0,c=void 0,u=function(e,t){w[s]=e,w[s+1]=t,2===(s+=2)&&(c?c(S):E())};function d(e){c=e}function p(e){u=e}var f="u">typeof window?window:void 0,h=f||{},m=h.MutationObserver||h.WebKitMutationObserver,g="u"<typeof self&&void 0!==r&&"[object process]"===({}).toString.call(r),v="u">typeof Uint8ClampedArray&&"u">typeof importScripts&&"u">typeof MessageChannel;function y(){return function(){return r.nextTick(S)}}function b(){return void 0!==l?function(){l(S)}:k()}function x(){var e=0,t=new m(S),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function C(){var e=new MessageChannel;return e.port1.onmessage=S,function(){return e.port2.postMessage(0)}}function k(){var e=setTimeout;return function(){return e(S,1)}}var w=Array(1e3);function S(){for(var e=0;e<s;e+=2)(0,w[e])(w[e+1]),w[e]=void 0,w[e+1]=void 0;s=0}function _(){try{var e=Function("return this")().require("vertx");return l=e.runOnLoop||e.runOnContext,b()}catch(e){return k()}}var E=void 0;function P(e,t){var n=this,r=new this.constructor(D);void 0===r[T]&&Q(r);var o=n._state;if(o){var a=arguments[o-1];u(function(){return G(o,r,a,n._result)})}else W(n,r,e,t);return r}function I(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(D);return z(n,e),n}E=g?y():m?x():v?C():void 0===f?_():k();var T=Math.random().toString(36).substring(2);function D(){}var A=void 0,R=1,N=2;function B(){return TypeError("You cannot resolve a promise with itself")}function M(){return TypeError("A promises callback cannot return that same promise.")}function F(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function O(e,t,n){u(function(e){var r=!1,o=F(n,t,function(n){r||(r=!0,t!==n?z(e,n):U(e,n))},function(t){r||(r=!0,j(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,j(e,o))},e)}function L(e,t){t._state===R?U(e,t._result):t._state===N?j(e,t._result):W(t,void 0,function(t){return z(e,t)},function(t){return j(e,t)})}function H(e,n,r){n.constructor===e.constructor&&r===P&&n.constructor.resolve===I?L(e,n):void 0===r?U(e,n):t(r)?O(e,n,r):U(e,n)}function z(t,n){if(t===n)j(t,B());else if(e(n)){var r=void 0;try{r=n.then}catch(e){j(t,e);return}H(t,n,r)}else U(t,n)}function V(e){e._onerror&&e._onerror(e._result),q(e)}function U(e,t){e._state===A&&(e._result=t,e._state=R,0!==e._subscribers.length&&u(q,e))}function j(e,t){e._state===A&&(e._state=N,e._result=t,u(V,e))}function W(e,t,n,r){var o=e._subscribers,a=o.length;e._onerror=null,o[a]=t,o[a+R]=n,o[a+N]=r,0===a&&e._state&&u(q,e)}function q(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,a=e._result,s=0;s<t.length;s+=3)r=t[s],o=t[s+n],r?G(n,r,o,a):o(a);e._subscribers.length=0}}function G(e,n,r,o){var a=t(r),s=void 0,l=void 0,c=!0;if(a){try{s=r(o)}catch(e){c=!1,l=e}if(n===s)return void j(n,M())}else s=o;n._state!==A||(a&&c?z(n,s):!1===c?j(n,l):e===R?U(n,s):e===N&&j(n,s))}function K(e,t){try{t(function(t){z(e,t)},function(t){j(e,t)})}catch(t){j(e,t)}}var X=0;function Y(){return X++}function Q(e){e[T]=X++,e._state=void 0,e._result=void 0,e._subscribers=[]}function J(){return Error("Array Methods must be provided an Array")}var Z=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(D),this.promise[T]||Q(this.promise),a(t)?(this.length=t.length,this._remaining=t.length,this._result=Array(this.length),0===this.length?U(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&U(this.promise,this._result))):j(this.promise,J())}return e.prototype._enumerate=function(e){for(var t=0;this._state===A&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===I){var o=void 0,a=void 0,s=!1;try{o=e.then}catch(e){s=!0,a=e}if(o===P&&e._state!==A)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===ei){var l=new n(D);s?j(l,a):H(l,e,o),this._willSettleAt(l,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===A&&(this._remaining--,e===N?j(r,n):this._result[t]=n),0===this._remaining&&U(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;W(e,void 0,function(e){return n._settledAt(R,t,e)},function(e){return n._settledAt(N,t,e)})},e}();function ee(e){return new Z(this,e).promise}function et(e){var t=this;return new t(a(e)?function(n,r){for(var o=e.length,a=0;a<o;a++)t.resolve(e[a]).then(n,r)}:function(e,t){return t(TypeError("You must pass an array to race."))})}function en(e){var t=this,n=new t(D);return j(n,e),n}function er(){throw TypeError("You must pass a resolver function as the first argument to the promise constructor")}function eo(){throw TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ei=function(){function e(t){this[T]=Y(),this._result=this._state=void 0,this._subscribers=[],D!==t&&("function"!=typeof t&&er(),this instanceof e?K(this,t):eo())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=this,r=n.constructor;return t(e)?n.then(function(t){return r.resolve(e()).then(function(){return t})},function(t){return r.resolve(e()).then(function(){throw t})}):n.then(e,e)},e}();function ea(){var e=void 0;if(void 0!==n.g)e=n.g;else if("u">typeof self)e=self;else try{e=Function("return this")()}catch(e){throw Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=ei}return ei.prototype.then=P,ei.all=ee,ei.race=et,ei.resolve=I,ei.reject=en,ei._setScheduler=d,ei._setAsap=p,ei._asap=u,ei.polyfill=ea,ei.Promise=ei,ei})},75985(e,t,n){"use strict";var r=n(524),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?l:c[e.$$typeof]||o}c[r.ForwardRef]=s,c[r.Memo]=l;var d=Object.defineProperty,p=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;function v(e,t,n){if("string"!=typeof t){if(g){var r=m(t);r&&r!==g&&v(e,r,n)}var o=p(t);f&&(o=o.concat(f(t)));for(var s=u(e),l=u(t),c=0;c<o.length;++c){var y=o[c];if(!a[y]&&!(n&&n[y])&&!(l&&l[y])&&!(s&&s[y])){var b=h(t,y);try{d(e,y,b)}catch(e){}}}}return e}e.exports=v},39318(e,t){t.read=function(e,t,n,r,o){var a,s,l=8*o-r-1,c=(1<<l)-1,u=c>>1,d=-7,p=n?o-1:0,f=n?-1:1,h=e[t+p];for(p+=f,a=h&(1<<-d)-1,h>>=-d,d+=l;d>0;a=256*a+e[t+p],p+=f,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=r;d>0;s=256*s+e[t+p],p+=f,d-=8);if(0===a)a=1-u;else{if(a===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),a-=u}return(h?-1:1)*s*Math.pow(2,a-r)},t.write=function(e,t,n,r,o,a){var s,l,c,u=8*a-o-1,d=(1<<u)-1,p=d>>1,f=5960464477539062e-23*(23===o),h=r?0:a-1,m=r?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(l=+!!isNaN(t),s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+p>=1?t+=f/c:t+=f*Math.pow(2,1-p),t*c>=2&&(s++,c/=2),s+p>=d?(l=0,s=d):s+p>=1?(l=(t*c-1)*Math.pow(2,o),s+=p):(l=t*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;e[n+h]=255&l,h+=m,l/=256,o-=8);for(s=s<<o|l,u+=o;u>0;e[n+h]=255&s,h+=m,s/=256,u-=8);e[n+h-m]|=128*g}},66870(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var e=function(e){for(var t=e,n=o(t);n;)n=o(t=n.ownerDocument);return t}(window.document),t=[],n=null,r=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?g(e,n):h(),t.forEach(function(e){e._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,r=null},s.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!(e&&1==e.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},s.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},s.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},s.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,a=null,s=null;if(this.POLL_INTERVAL?a=n.setInterval(r,this.POLL_INTERVAL):(u(n,"resize",r,!0),u(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),d(e,"resize",r,!0)),d(t,"scroll",r,!0),s&&s.disconnect()}),t!=(this.root&&this.root.ownerDocument||e)){var l=o(t);l&&this._monitorIntersections(l.ownerDocument)}}},s.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&this.root.ownerDocument||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var a=o(n);if((n=a&&a.ownerDocument)==t)return!0}return!1})){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var s=o(t);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},s.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():h();this._observationTargets.forEach(function(r){var o=r.element,s=f(o),c=this._rootContainsTarget(o),u=r.entry,d=e&&c&&this._computeTargetAndRootIntersection(o,s,t),p=r.entry=new a({time:l(),target:o,boundingClientRect:s,rootBounds:n&&!this.root?null:t,intersectionRect:d});u?e&&c?this._hasCrossedThreshold(u,p)&&this._queuedEntries.push(p):u&&u.isIntersecting&&this._queuedEntries.push(p):this._queuedEntries.push(p)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(t,o,a){if("none"!=window.getComputedStyle(t).display){for(var s=o,l=y(t),c=!1;!c&&l;){var u=null,d=1==l.nodeType?window.getComputedStyle(l):{};if("none"==d.display)return null;if(l==this.root||9==l.nodeType)if(c=!0,l==this.root||l==e)n&&!this.root?r&&(0!=r.width||0!=r.height)?u=r:(l=null,u=null,s=null):u=a;else{var h=y(l),m=h&&f(h),v=h&&this._computeTargetAndRootIntersection(h,m,a);m&&v?(l=h,u=g(m,v)):(l=null,s=null)}else{var b=l.ownerDocument;l!=b.body&&l!=b.documentElement&&"visible"!=d.overflow&&(u=f(l))}if(u&&(s=p(u,s)),!s)break;l=l&&y(l)}return s}},s.prototype._getRootRect=function(){var t;if(this.root)t=f(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},s.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var a=this.thresholds[o];if(a==n||a==r||a<n!=a<r)return!0}},s.prototype._rootIsInDom=function(){return!this.root||v(e,this.root)},s.prototype._rootContainsTarget=function(t){return v(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},s.prototype._registerInstance=function(){0>t.indexOf(this)&&t.push(this)},s.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=a}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function a(e){this.time=e.time,this.target=e.target,this.rootBounds=m(e.rootBounds),this.boundingClientRect=m(e.boundingClientRect),this.intersectionRect=m(e.intersectionRect||h()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;n?this.intersectionRatio=Number((o/n).toFixed(4)):this.intersectionRatio=+!!this.isIntersecting}function s(e,t){var n=t||{};if("function"!=typeof e)throw Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw Error("root must be an Element");this._checkForIntersections=c(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function l(){return window.performance&&performance.now&&performance.now()}function c(e,t){var n=null;return function(){n||(n=setTimeout(function(){e(),n=null},t))}}function u(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function d(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function p(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),o=Math.max(e.left,t.left),a=Math.min(e.right,t.right),s=a-o,l=r-n;return s>=0&&l>=0&&{top:n,bottom:r,left:o,right:a,width:s,height:l}||null}function f(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function m(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function g(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function v(e,t){for(var n=t;n;){if(n==e)return!0;n=y(n)}return!1}function y(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?o(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}}()},78958(e){"use strict";e.exports=function(e,t,n,r,o,a,s,l){if(!e){var c;if(void 0===t)c=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,s,l],d=0;(c=Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},34651(e){!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw Error("jQuery requires a window with a document");return n(e)}:n(t)}("u">typeof window?window:this,function(e,t){"use strict";var n=[],r=Object.getPrototypeOf,o=n.slice,a=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,l=n.indexOf,c={},u=c.toString,d=c.hasOwnProperty,p=d.toString,f=p.call(Object),h={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},v=e.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,o,a=(n=n||v).createElement("script");if(a.text=e,t)for(r in y)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,o);n.head.appendChild(a).parentNode.removeChild(a)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e}var C="3.6.3",k=function(e,t){return new k.fn.init(e,t)};function w(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!(m(e)||g(e))&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:C,constructor:k,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},k.extend=k.fn.extend=function(){var e,t,n,r,o,a,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[l]||{},l++),"object"==typeof s||m(s)||(s={}),l===c&&(s=this,l--);l<c;l++)if(null!=(e=arguments[l]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(u&&r&&(k.isPlainObject(r)||(o=Array.isArray(r)))?(n=s[t],a=o&&!Array.isArray(n)?[]:o||k.isPlainObject(n)?n:{},o=!1,s[t]=k.extend(u,a,r)):void 0!==r&&(s[t]=r));return s},k.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!!e&&"[object Object]"===u.call(e)&&(!(t=r(e))||"function"==typeof(n=d.call(t,"constructor")&&t.constructor)&&p.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(w(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(w(Object(e))?k.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,a=e.length,s=!n;o<a;o++)!t(e[o],o)!==s&&r.push(e[o]);return r},map:function(e,t,n){var r,o,s=0,l=[];if(w(e))for(r=e.length;s<r;s++)null!=(o=t(e[s],s,n))&&l.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&l.push(o);return a(l)},guid:1,support:h}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=n[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});var S=function(e){var t,n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C="sizzle"+ +new Date,k=e.document,w=0,S=0,_=eu(),E=eu(),P=eu(),I=eu(),T=function(e,t){return e===t&&(p=!0),0},D={}.hasOwnProperty,A=[],R=A.pop,N=A.push,B=A.push,M=A.slice,F=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",H="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+L+"*("+H+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+L+"*\\]",V=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",U=RegExp(L+"+","g"),j=RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),W=RegExp("^"+L+"*,"+L+"*"),q=RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),G=RegExp(L+"|>"),K=new RegExp(V),X=RegExp("^"+H+"$"),Y={ID:RegExp("^#("+H+")"),CLASS:RegExp("^\\.("+H+")"),TAG:RegExp("^("+H+"|[*])"),ATTR:RegExp("^"+z),PSEUDO:RegExp("^"+V),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:RegExp("^(?:"+O+")$","i"),needsContext:RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,en=/[+~]/,er=RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),eo=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ei=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ea=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},es=function(){f()},el=ek(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{B.apply(A=M.call(k.childNodes),k.childNodes),A[k.childNodes.length].nodeType}catch(e){B={apply:A.length?function(e,t){N.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ec(e,t,r,o){var a,l,u,d,p,m,y,b=t&&t.ownerDocument,k=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==k&&9!==k&&11!==k)return r;if(!o&&(f(t),t=t||h,g)){if(11!==k&&(p=et.exec(e))){if(a=p[1]){if(9===k){if(!(u=t.getElementById(a)))return r;else if(u.id===a)return r.push(u),r}else if(b&&(u=b.getElementById(a))&&x(t,u)&&u.id===a)return r.push(u),r}else if(p[2])return B.apply(r,t.getElementsByTagName(e)),r;else if((a=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return B.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!I[e+" "]&&(!v||!v.test(e))&&(1!==k||"object"!==t.nodeName.toLowerCase())){if(y=e,b=t,1===k&&(G.test(e)||q.test(e))){for((b=en.test(e)&&eb(t.parentNode)||t)===t&&n.scope||((d=t.getAttribute("id"))?d=d.replace(ei,ea):t.setAttribute("id",d=C)),l=(m=s(e)).length;l--;)m[l]=(d?"#"+d:":scope")+" "+eC(m[l]);y=m.join(",")}try{if(n.cssSupportsSelector&&!CSS.supports("selector(:is("+y+"))"))throw Error();return B.apply(r,b.querySelectorAll(y)),r}catch(t){I(e,!0)}finally{d===C&&t.removeAttribute("id")}}}return c(e.replace(j,"$1"),t,r,o)}function eu(){var e=[];function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}return t}function ed(e){return e[C]=!0,e}function ep(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ef(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function eh(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n){for(;n=n.nextSibling;)if(n===t)return -1}return e?1:-1}function em(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function eg(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ev(e){return function(t){if("form"in t){if(t.parentNode&&!1===t.disabled){if("label"in t)if("label"in t.parentNode)return t.parentNode.disabled===e;else return t.disabled===e;return t.isDisabled===e||!e!==t.isDisabled&&el(t)===e}return t.disabled===e}return"label"in t&&t.disabled===e}}function ey(e){return ed(function(t){return t*=1,ed(function(n,r){for(var o,a=e([],n.length,t),s=a.length;s--;)n[o=a[s]]&&(n[o]=!(r[o]=n[o]))})})}function eb(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ec.support={},a=ec.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},f=ec.setDocument=function(e){var t,o,s=e?e.ownerDocument||e:k;return s!=h&&9===s.nodeType&&s.documentElement&&(m=(h=s).documentElement,g=!a(h),k!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",es,!1):o.attachEvent&&o.attachEvent("onunload",es)),n.scope=ep(function(e){return m.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.cssSupportsSelector=ep(function(){return CSS.supports("selector(*)")&&h.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}),n.attributes=ep(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ep(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=ee.test(h.getElementsByClassName),n.getById=ep(function(e){return m.appendChild(e).id=C,!h.getElementsByName||!h.getElementsByName(C).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(er,eo);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(er,eo);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,o,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(o=t.getElementsByName(e),r=0;a=o[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[o++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=ee.test(h.querySelectorAll))&&(ep(function(e){var t;m.appendChild(e).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+L+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+C+"-]").length||v.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ep(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=ee.test(b=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ep(function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),y.push("!=",V)}),n.cssSupportsSelector||v.push(":has"),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),x=(t=ee.test(m.compareDocumentPosition))||ee.test(m.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!!(r&&1===r.nodeType&&(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t){for(;t=t.parentNode;)if(t===e)return!0}return!1},T=t?function(e,t){if(e===t)return p=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==k&&x(k,e)?-1:t==h||t.ownerDocument==k&&x(k,t)?1:d?F(d,e)-F(d,t):0:4&r?-1:1}:function(e,t){if(e===t)return p=!0,0;var n,r=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(!o||!a)return e==h?-1:t==h?1:o?-1:a?1:d?F(d,e)-F(d,t):0;if(o===a)return eh(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;s[r]===l[r];)r++;return r?eh(s[r],l[r]):s[r]==k?-1:+(l[r]==k)}),h},ec.matches=function(e,t){return ec(e,null,null,t)},ec.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&g&&!I[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=b.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){I(t,!0)}return ec(t,h,null,[e]).length>0},ec.contains=function(e,t){return(e.ownerDocument||e)!=h&&f(e),x(e,t)},ec.attr=function(e,t){(e.ownerDocument||e)!=h&&f(e);var o=r.attrHandle[t.toLowerCase()],a=o&&D.call(r.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==a?a:n.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},ec.escape=function(e){return(e+"").replace(ei,ea)},ec.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ec.uniqueSort=function(e){var t,r=[],o=0,a=0;if(p=!n.detectDuplicates,d=!n.sortStable&&e.slice(0),e.sort(T),p){for(;t=e[a++];)t===e[a]&&(o=r.push(a));for(;o--;)e.splice(r[o],1)}return d=null,e},o=ec.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a)if("string"==typeof e.textContent)return e.textContent;else for(e=e.firstChild;e;e=e.nextSibling)n+=o(e);else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=ec.selectors={cacheLength:50,createPseudo:ed,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(er,eo),e[3]=(e[3]||e[4]||e[5]||"").replace(er,eo),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ec.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ec.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&K.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(er,eo).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=ec.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var a="nth"!==e.slice(0,3),s="last"!==e.slice(-4),l="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var u,d,p,f,h,m,g=a!==s?"nextSibling":"previousSibling",v=t.parentNode,y=l&&t.nodeName.toLowerCase(),b=!c&&!l,x=!1;if(v){if(a){for(;g;){for(f=t;f=f[g];)if(l?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;m=g="only"===e&&!m&&"nextSibling"}return!0}if(m=[s?v.firstChild:v.lastChild],s&&b){for(x=(h=(u=(d=(p=(f=v)[C]||(f[C]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===w&&u[1])&&u[2],f=h&&v.childNodes[h];f=++h&&f&&f[g]||(x=h=0)||m.pop();)if(1===f.nodeType&&++x&&f===t){d[e]=[w,h,x];break}}else if(b&&(x=h=(u=(d=(p=(f=t)[C]||(f[C]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===w&&u[1]),!1===x)for(;(f=++h&&f&&f[g]||(x=h=0)||m.pop())&&(!((l?f.nodeName.toLowerCase()===y:1===f.nodeType)&&++x)||(b&&((d=(p=f[C]||(f[C]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]=[w,x]),f!==t)););return(x-=o)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ec.error("unsupported pseudo: "+e);return o[C]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ed(function(e,n){for(var r,a=o(e,t),s=a.length;s--;)r=F(e,a[s]),e[r]=!(n[r]=a[s])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ed(function(e){var t=[],n=[],r=l(e.replace(j,"$1"));return r[C]?ed(function(e,t,n,o){for(var a,s=r(e,null,o,[]),l=e.length;l--;)(a=s[l])&&(e[l]=!(t[l]=a))}):function(e,o,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:ed(function(e){return function(t){return ec(e,t).length>0}}),contains:ed(function(e){return e=e.replace(er,eo),function(t){return(t.textContent||o(t)).indexOf(e)>-1}}),lang:ed(function(e){return X.test(e||"")||ec.error("unsupported lang: "+e),e=e.replace(er,eo).toLowerCase(),function(t){var n;do if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ev(!1),disabled:ev(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ey(function(){return[0]}),last:ey(function(e,t){return[t-1]}),eq:ey(function(e,t,n){return[n<0?n+t:n]}),even:ey(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ey(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ey(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ey(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=em(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=eg(t);function ex(){}function eC(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ek(e,t,n){var r=t.dir,o=t.next,a=o||r,s=n&&"parentNode"===a,l=S++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,o);return!1}:function(t,n,c){var u,d,p,f=[w,l];if(c){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(d=(p=t[C]||(t[C]={}))[t.uniqueID]||(p[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=d[a])&&u[0]===w&&u[1]===l)return f[2]=u[2];if(d[a]=f,f[2]=e(t,n,c))return!0}return!1}}function ew(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function eS(e,t,n){for(var r=0,o=t.length;r<o;r++)ec(e,t[r],n);return n}function e_(e,t,n,r,o){for(var a,s=[],l=0,c=e.length,u=null!=t;l<c;l++)(a=e[l])&&(!n||n(a,r,o))&&(s.push(a),u&&t.push(l));return s}function eE(e,t,n,r,o,a){return r&&!r[C]&&(r=eE(r)),o&&!o[C]&&(o=eE(o,a)),ed(function(a,s,l,c){var u,d,p,f=[],h=[],m=s.length,g=a||eS(t||"*",l.nodeType?[l]:l,[]),v=e&&(a||!t)?e_(g,f,e,l,c):g,y=n?o||(a?e:m||r)?[]:s:v;if(n&&n(v,y,l,c),r)for(u=e_(y,h),r(u,[],l,c),d=u.length;d--;)(p=u[d])&&(y[h[d]]=!(v[h[d]]=p));if(a){if(o||e){if(o){for(u=[],d=y.length;d--;)(p=y[d])&&u.push(v[d]=p);o(null,y=[],u,c)}for(d=y.length;d--;)(p=y[d])&&(u=o?F(a,p):f[d])>-1&&(a[u]=!(s[u]=p))}}else y=e_(y===s?y.splice(m,y.length):y),o?o(null,s,y,c):B.apply(s,y)})}function eP(e){for(var t,n,o,a=e.length,s=r.relative[e[0].type],l=s||r.relative[" "],c=+!!s,d=ek(function(e){return e===t},l,!0),p=ek(function(e){return F(t,e)>-1},l,!0),f=[function(e,n,r){var o=!s&&(r||n!==u)||((t=n).nodeType?d(e,n,r):p(e,n,r));return t=null,o}];c<a;c++)if(n=r.relative[e[c].type])f=[ek(ew(f),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[C]){for(o=++c;o<a&&!r.relative[e[o].type];o++);return eE(c>1&&ew(f),c>1&&eC(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(j,"$1"),n,c<o&&eP(e.slice(c,o)),o<a&&eP(e=e.slice(o)),o<a&&eC(e))}f.push(n)}return ew(f)}function eI(e,t){var n=t.length>0,o=e.length>0,a=function(a,s,l,c,d){var p,m,v,y=0,b="0",x=a&&[],C=[],k=u,S=a||o&&r.find.TAG("*",d),_=w+=null==k?1:Math.random()||.1,E=S.length;for(d&&(u=s==h||s||d);b!==E&&null!=(p=S[b]);b++){if(o&&p){for(m=0,s||p.ownerDocument==h||(f(p),l=!g);v=e[m++];)if(v(p,s||h,l)){c.push(p);break}d&&(w=_)}n&&((p=!v&&p)&&y--,a&&x.push(p))}if(y+=b,n&&b!==y){for(m=0;v=t[m++];)v(x,C,s,l);if(a){if(y>0)for(;b--;)x[b]||C[b]||(C[b]=R.call(c));C=e_(C)}B.apply(c,C),d&&!a&&C.length>0&&y+t.length>1&&ec.uniqueSort(c)}return d&&(w=_,u=k),x};return n?ed(a):a}return ex.prototype=r.filters=r.pseudos,r.setFilters=new ex,s=ec.tokenize=function(e,t){var n,o,a,s,l,c,u,d=E[e+" "];if(d)return t?0:d.slice(0);for(l=e,c=[],u=r.preFilter;l;){for(s in(!n||(o=W.exec(l)))&&(o&&(l=l.slice(o[0].length)||l),c.push(a=[])),n=!1,(o=q.exec(l))&&(n=o.shift(),a.push({value:n,type:o[0].replace(j," ")}),l=l.slice(n.length)),r.filter)(o=Y[s].exec(l))&&(!u[s]||(o=u[s](o)))&&(n=o.shift(),a.push({value:n,type:s,matches:o}),l=l.slice(n.length));if(!n)break}return t?l.length:l?ec.error(e):E(e,c).slice(0)},l=ec.compile=function(e,t){var n,r=[],o=[],a=P[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=eP(t[n]))[C]?r.push(a):o.push(a);(a=P(e,eI(o,r))).selector=e}return a},c=ec.select=function(e,t,n,o){var a,c,u,d,p,f="function"==typeof e&&e,h=!o&&s(e=f.selector||e);if(n=n||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&9===t.nodeType&&g&&r.relative[c[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(er,eo),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(a=Y.needsContext.test(e)?0:c.length;a--&&(u=c[a],!r.relative[d=u.type]);)if((p=r.find[d])&&(o=p(u.matches[0].replace(er,eo),en.test(c[0].type)&&eb(t.parentNode)||t))){if(c.splice(a,1),!(e=o.length&&eC(c)))return B.apply(n,o),n;break}}return(f||l(e,h))(o,t,!g,n,!t||en.test(e)&&eb(t.parentNode)||t),n},n.sortStable=C.split("").sort(T).join("")===C,n.detectDuplicates=!!p,f(),n.sortDetached=ep(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),ep(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ef("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ep(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ef("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ep(function(e){return null==e.getAttribute("disabled")})||ef(O,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ec}(e);k.find=S,k.expr=S.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=S.uniqueSort,k.text=S.getText,k.isXMLDoc=S.isXML,k.contains=S.contains,k.escapeSelector=S.escape;var _=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&k(e).is(n))break;r.push(e)}return r},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},P=k.expr.match.needsContext;function I(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return m(t)?k.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?k.grep(e,function(e){return e===t!==n}):"string"!=typeof t?k.grep(e,function(e){return l.call(t,e)>-1!==n}):k.filter(t,e,n)}k.filter=function(e,t,n){var r=t[0];return(n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType)?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<r;t++)if(k.contains(o[t],this))return!0}));for(t=0,n=this.pushStack([]);t<r;t++)k.find(e,o[t],n);return r>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&P.test(e)?k(e):e||[],!1).length}});var A,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||A,"string"==typeof e){if((r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e))&&(r[1]||!t))if(!r[1])return(o=v.getElementById(r[2]))&&(this[0]=o,this.length=1),this;else{if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),T.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e)}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,A=k(v);var N=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,a=[],s="string"!=typeof e&&k(e);if(!P.test(e)){for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){a.push(n);break}}return this.pushStack(a.length>1?k.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?l.call(k(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return _(e,"parentNode")},parentsUntil:function(e,t,n){return _(e,"parentNode",n)},next:function(e){return M(e,"nextSibling")},prev:function(e){return M(e,"previousSibling")},nextAll:function(e){return _(e,"nextSibling")},prevAll:function(e){return _(e,"previousSibling")},nextUntil:function(e,t,n){return _(e,"nextSibling",n)},prevUntil:function(e,t,n){return _(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(I(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(e,t){k.fn[e]=function(n,r){var o=k.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=k.filter(r,o)),this.length>1&&(B[e]||k.uniqueSort(o),N.test(e)&&o.reverse()),this.pushStack(o)}});var F=/[^\x20\t\r\n\f]+/g;function O(e){var t={};return k.each(e.match(F)||[],function(e,n){t[n]=!0}),t}function L(e){return e}function H(e){throw e}function z(e,t,n,r){var o;try{e&&m(o=e.promise)?o.call(e).done(t).fail(n):e&&m(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?O(e):k.extend({},e);var t,n,r,o,a=[],s=[],l=-1,c=function(){for(o=o||e.once,r=t=!0;s.length;l=-1)for(n=s.shift();++l<a.length;)!1===a[l].apply(n[0],n[1])&&e.stopOnFalse&&(l=a.length,n=!1);e.memory||(n=!1),t=!1,o&&(a=n?[]:"")},u={add:function(){return a&&(n&&!t&&(l=a.length-1,s.push(n)),!function t(n){k.each(n,function(n,r){m(r)?e.unique&&u.has(r)||a.push(r):r&&r.length&&"string"!==x(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;(n=k.inArray(t,a,n))>-1;)a.splice(n,1),n<=l&&l--}),this},has:function(e){return e?k.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=s=[],n||t||(a=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return!o&&(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},k.extend({Deferred:function(t){var n=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return k.Deferred(function(t){k.each(n,function(n,r){var o=m(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=o&&o.apply(this,arguments);e&&m(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,r,o){var a=0;function s(t,n,r,o){return function(){var l=this,c=arguments,u=function(){var e,u;if(!(t<a)){if(e=r.apply(l,c),e===n.promise())throw TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(u)?o?u.call(e,s(a,n,L,o),s(a,n,H,o)):(a++,u.call(e,s(a,n,L,o),s(a,n,H,o),s(a,n,L,n.notifyWith))):(r!==L&&(l=void 0,c=[e]),(o||n.resolveWith)(l,c))}},d=o?u:function(){try{u()}catch(e){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(e,d.stackTrace),t+1>=a&&(r!==H&&(l=void 0,c=[e]),n.rejectWith(l,c))}};t?d():(k.Deferred.getStackHook&&(d.stackTrace=k.Deferred.getStackHook()),e.setTimeout(d))}}return k.Deferred(function(e){n[0][3].add(s(0,e,m(o)?o:L,e.notifyWith)),n[1][3].add(s(0,e,m(t)?t:L)),n[2][3].add(s(0,e,m(r)?r:H))}).promise()},promise:function(e){return null!=e?k.extend(e,o):o}},a={};return k.each(n,function(e,t){var s=t[2],l=t[5];o[t[1]]=s.add,l&&s.add(function(){r=l},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=s.fireWith}),o.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),a=o.call(arguments),s=k.Deferred(),l=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?o.call(arguments):n,--t||s.resolveWith(r,a)}};if(t<=1&&(z(e,s.done(l(n)).resolve,s.reject,!t),"pending"===s.state()||m(a[n]&&a[n].then)))return s.then();for(;n--;)z(a[n],l(n),s.reject);return s.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&V.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},k.readyException=function(t){e.setTimeout(function(){throw t})};var U=k.Deferred();function j(){v.removeEventListener("DOMContentLoaded",j),e.removeEventListener("load",j),k.ready()}k.fn.ready=function(e){return U.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||U.resolveWith(v,[k]))}}),k.ready.then=U.then,"complete"!==v.readyState&&("loading"===v.readyState||v.documentElement.doScroll)?(v.addEventListener("DOMContentLoaded",j),e.addEventListener("load",j)):e.setTimeout(k.ready);var W=function(e,t,n,r,o,a,s){var l=0,c=e.length,u=null==n;if("object"===x(n))for(l in o=!0,n)W(e,t,l,n[l],!0,a,s);else if(void 0!==r&&(o=!0,m(r)||(s=!0),u&&(s?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(k(e),n)})),t))for(;l<c;l++)t(e[l],n,s?r:r.call(e[l],l,t(e[l],n)));return o?e:u?t.call(e):c?t(e[0],n):a},q=/^-ms-/,G=/-([a-z])/g;function K(e,t){return t.toUpperCase()}function X(e){return e.replace(q,"ms-").replace(G,K)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=k.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return!t&&(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[X(t)]=n;else for(r in t)o[X(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t)for(n=(t=Array.isArray(t)?t.map(X):((t=X(t))in r)?[t]:t.match(F)||[]).length;n--;)delete r[t[n]];(void 0===t||k.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var J=new Q,Z=new Q,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function en(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}function er(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(et,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=en(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return Z.hasData(e)||J.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,r,o,a=this[0],s=a&&a.attributes;if(void 0===e){if(this.length&&(o=Z.get(a),1===a.nodeType&&!J.get(a,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&er(a,r=X(r.slice(5)),o[r]);J.set(a,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Z.set(this,e)}):W(this,function(t){var n;if(a&&void 0===t)return void 0!==(n=Z.get(a,e))||void 0!==(n=er(a,e))?n:void 0;this.each(function(){Z.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,o=n.shift(),a=k._queueHooks(e,t),s=function(){k.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete a.stop,o.call(e,s,a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:k.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(e,t){var n=2;return("string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n)?k.queue(this[0],e):void 0===t?this:this.each(function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=k.Deferred(),a=this,s=this.length,l=function(){--r||o.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=J.get(a[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(l));return l(),o.promise(t)}});var eo=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ei=RegExp("^(?:([+-])=|)("+eo+")([a-z%]*)$","i"),ea=["Top","Right","Bottom","Left"],es=v.documentElement,el=function(e){return k.contains(e.ownerDocument,e)},ec={composed:!0};es.getRootNode&&(el=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ec)===e.ownerDocument});var eu=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&el(e)&&"none"===k.css(e,"display")};function ed(e,t,n,r){var o,a,s=20,l=r?function(){return r.cur()}:function(){return k.css(e,t,"")},c=l(),u=n&&n[3]||(k.cssNumber[t]?"":"px"),d=e.nodeType&&(k.cssNumber[t]||"px"!==u&&+c)&&ei.exec(k.css(e,t));if(d&&d[3]!==u){for(c/=2,u=u||d[3],d=+c||1;s--;)k.style(e,t,d+u),(1-a)*(1-(a=l()/c||.5))<=0&&(s=0),d/=a;d*=2,k.style(e,t,d+u),n=n||[]}return n&&(d=+d||+c||0,o=n[1]?d+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=d,r.end=o)),o}var ep={};function ef(e){var t,n=e.ownerDocument,r=e.nodeName,o=ep[r];return o||(t=n.body.appendChild(n.createElement(r)),o=k.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),ep[r]=o),o}function eh(e,t){for(var n,r,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(o[a]=J.get(r,"display")||null,o[a]||(r.style.display="")),""===r.style.display&&eu(r)&&(o[a]=ef(r))):"none"!==n&&(o[a]="none",J.set(r,"display",n)));for(a=0;a<s;a++)null!=o[a]&&(e[a].style.display=o[a]);return e}k.fn.extend({show:function(){return eh(this,!0)},hide:function(){return eh(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){eu(this)?k(this).show():k(this).hide()})}});var em=/^(?:checkbox|radio)$/i,eg=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ev=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=v.createDocumentFragment().appendChild(v.createElement("div")),t=v.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",h.option=!!e.lastChild}();var ey={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function eb(e,t){var n;return(n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&I(e,t))?k.merge([e],n):n}function ex(e,t){for(var n=0,r=e.length;n<r;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}ey.tbody=ey.tfoot=ey.colgroup=ey.caption=ey.thead,ey.th=ey.td,h.option||(ey.optgroup=ey.option=[1,"<select multiple='multiple'>","</select>"]);var eC=/<|&#?\w+;/;function ek(e,t,n,r,o){for(var a,s,l,c,u,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((a=e[f])||0===a)if("object"===x(a))k.merge(p,a.nodeType?[a]:a);else if(eC.test(a)){for(s=s||d.appendChild(t.createElement("div")),l=ey[(eg.exec(a)||["",""])[1].toLowerCase()]||ey._default,s.innerHTML=l[1]+k.htmlPrefilter(a)+l[2],u=l[0];u--;)s=s.lastChild;k.merge(p,s.childNodes),(s=d.firstChild).textContent=""}else p.push(t.createTextNode(a));for(d.textContent="",f=0;a=p[f++];){if(r&&k.inArray(a,r)>-1){o&&o.push(a);continue}if(c=el(a),s=eb(d.appendChild(a),"script"),c&&ex(s),n)for(u=0;a=s[u++];)ev.test(a.type||"")&&n.push(a)}return d}var ew=/^([^.]*)(?:\.(.+)|)/;function eS(){return!0}function e_(){return!1}function eE(e,t){return e===eP()==("focus"===t)}function eP(){try{return v.activeElement}catch(e){}}function eI(e,t,n,r,o,a){var s,l;if("object"==typeof t){for(l in"string"!=typeof n&&(r=r||n,n=void 0),t)eI(e,l,n,r,t[l],a);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=e_;else if(!o)return e;return 1===a&&(s=o,(o=function(e){return k().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=k.guid++)),e.each(function(){k.event.add(this,t,o,r,n)})}function eT(e,t,n){if(!n){void 0===J.get(e,t)&&k.event.add(e,t,eS);return}J.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var r,a,s=J.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=o.call(arguments),J.set(this,t,s),r=n(this,t),this[t](),s!==(a=J.get(this,t))||r?J.set(this,t,!1):a={},s!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}else s.length&&(J.set(this,t,{value:k.event.trigger(k.extend(s[0],k.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})}k.event={global:{},add:function(e,t,n,r,o){var a,s,l,c,u,d,p,f,h,m,g,v=J.get(e);if(Y(e))for(n.handler&&(n=(a=n).handler,o=a.selector),o&&k.find.matchesSelector(es,o),n.guid||(n.guid=k.guid++),(c=v.events)||(c=v.events=Object.create(null)),(s=v.handle)||(s=v.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(F)||[""]).length;u--;)h=g=(l=ew.exec(t[u])||[])[1],m=(l[2]||"").split(".").sort(),h&&(p=k.event.special[h]||{},h=(o?p.delegateType:p.bindType)||h,p=k.event.special[h]||{},d=k.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:m.join(".")},a),(f=c[h])||((f=c[h]=[]).delegateCount=0,(!p.setup||!1===p.setup.call(e,r,m,s))&&e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,d):f.push(d),k.event.global[h]=!0)},remove:function(e,t,n,r,o){var a,s,l,c,u,d,p,f,h,m,g,v=J.hasData(e)&&J.get(e);if(v&&(c=v.events)){for(t=(t||"").match(F)||[""],u=t.length;u--;){if(h=g=(l=ew.exec(t[u])||[])[1],m=(l[2]||"").split(".").sort(),!h){for(h in c)k.event.remove(e,h+t[u],n,r,!0);continue}for(p=k.event.special[h]||{},f=c[h=(r?p.delegateType:p.bindType)||h]||[],l=l[2]&&RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=f.length;a--;)d=f[a],(o||g===d.origType)&&(!n||n.guid===d.guid)&&(!l||l.test(d.namespace))&&(!r||r===d.selector||"**"===r&&d.selector)&&(f.splice(a,1),d.selector&&f.delegateCount--,p.remove&&p.remove.call(e,d));s&&!f.length&&(p.teardown&&!1!==p.teardown.call(e,m,v.handle)||k.removeEvent(e,h,v.handle),delete c[h])}k.isEmptyObject(c)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,a,s,l=Array(arguments.length),c=k.event.fix(e),u=(J.get(this,"events")||Object.create(null))[c.type]||[],d=k.event.special[c.type]||{};for(t=1,l[0]=c;t<arguments.length;t++)l[t]=arguments[t];if(c.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,c)){for(s=k.event.handlers.call(this,c,u),t=0;(o=s[t++])&&!c.isPropagationStopped();)for(c.currentTarget=o.elem,n=0;(a=o.handlers[n++])&&!c.isImmediatePropagationStopped();)(!c.rnamespace||!1===a.namespace||c.rnamespace.test(a.namespace))&&(c.handleObj=a,c.data=a.data,void 0!==(r=((k.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,l))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,o,a,s,l=[],c=t.delegateCount,u=e.target;if(c&&u.nodeType&&!("click"===e.type&&e.button>=1)){for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(n=0,a=[],s={};n<c;n++)void 0===s[o=(r=t[n]).selector+" "]&&(s[o]=r.needsContext?k(o,this).index(u)>-1:k.find(o,this,null,[u]).length),s[o]&&a.push(r);a.length&&l.push({elem:u,handlers:a})}}return u=this,c<t.length&&l.push({elem:u,handlers:t.slice(c)}),l},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return em.test(t.type)&&t.click&&I(t,"input")&&eT(t,"click",eS),!1},trigger:function(e){var t=this||e;return em.test(t.type)&&t.click&&I(t,"input")&&eT(t,"click"),!0},_default:function(e){var t=e.target;return em.test(t.type)&&t.click&&I(t,"input")&&J.get(t,"click")||I(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?eS:e_,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:e_,isPropagationStopped:e_,isImmediatePropagationStopped:e_,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=eS,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=eS,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=eS,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(e,t){k.event.special[e]={setup:function(){return eT(this,e,eE),!1},trigger:function(){return eT(this,e),!0},_default:function(t){return J.get(t.target,e)},delegateType:t}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,a=e.handleObj;return o&&(o===r||k.contains(r,o))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),k.fn.extend({on:function(e,t,n,r){return eI(this,e,t,n,r)},one:function(e,t,n,r){return eI(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return(!1===t||"function"==typeof t)&&(n=t,t=void 0),!1===n&&(n=e_),this.each(function(){k.event.remove(this,e,n,t)})}});var eD=/<script|<style|<link/i,eA=/checked\s*(?:[^=]|=\s*.checked.)/i,eR=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function eN(e,t){return I(e,"table")&&I(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function eB(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function eM(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function eF(e,t){var n,r,o,a,s,l;if(1===t.nodeType){if(J.hasData(e)&&(l=J.get(e).events))for(o in J.remove(t,"handle events"),l)for(n=0,r=l[o].length;n<r;n++)k.event.add(t,o,l[o][n]);Z.hasData(e)&&(a=Z.access(e),s=k.extend({},a),Z.set(t,s))}}function eO(e,t){var n=t.nodeName.toLowerCase();"input"===n&&em.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function eL(e,t,n,r){t=a(t);var o,s,l,c,u,d,p=0,f=e.length,g=f-1,v=t[0],y=m(v);if(y||f>1&&"string"==typeof v&&!h.checkClone&&eA.test(v))return e.each(function(o){var a=e.eq(o);y&&(t[0]=v.call(this,o,a.html())),eL(a,t,n,r)});if(f&&(s=(o=ek(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=s),s||r)){for(c=(l=k.map(eb(o,"script"),eB)).length;p<f;p++)u=o,p!==g&&(u=k.clone(u,!0,!0),c&&k.merge(l,eb(u,"script"))),n.call(e[p],u,p);if(c)for(d=l[l.length-1].ownerDocument,k.map(l,eM),p=0;p<c;p++)u=l[p],ev.test(u.type||"")&&!J.access(u,"globalEval")&&k.contains(d,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},d):b(u.textContent.replace(eR,""),u,d))}return e}function eH(e,t,n){for(var r,o=t?k.filter(t,e):e,a=0;null!=(r=o[a]);a++)n||1!==r.nodeType||k.cleanData(eb(r)),r.parentNode&&(n&&el(r)&&ex(eb(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,a,s,l=e.cloneNode(!0),c=el(e);if(!h.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!k.isXMLDoc(e))for(r=0,s=eb(l),o=(a=eb(e)).length;r<o;r++)eO(a[r],s[r]);if(t)if(n)for(r=0,a=a||eb(e),s=s||eb(l),o=a.length;r<o;r++)eF(a[r],s[r]);else eF(e,l);return(s=eb(l,"script")).length>0&&ex(s,!c&&eb(e,"script")),l},cleanData:function(e){for(var t,n,r,o=k.event.special,a=0;void 0!==(n=e[a]);a++)if(Y(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)o[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),k.fn.extend({detach:function(e){return eH(this,e,!0)},remove:function(e){return eH(this,e)},text:function(e){return W(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return eL(this,arguments,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&eN(this,e).appendChild(e)})},prepend:function(){return eL(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=eN(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return eL(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return eL(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(eb(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return W(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!eD.test(e)&&!ey[(eg.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(k.cleanData(eb(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return eL(this,arguments,function(t){var n=this.parentNode;0>k.inArray(this,e)&&(k.cleanData(eb(this)),n&&n.replaceChild(t,this))},e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){k.fn[e]=function(e){for(var n,r=[],o=k(e),a=o.length-1,l=0;l<=a;l++)n=l===a?this:this.clone(!0),k(o[l])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var ez=RegExp("^("+eo+")(?!px)[a-z%]+$","i"),eV=/^--/,eU=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},ej=function(e,t,n){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=a[o];return r},eW=RegExp(ea.join("|"),"i"),eq="[\\x20\\t\\r\\n\\f]",eG=RegExp("^"+eq+"+|((?:^|[^\\\\])(?:\\\\.)*)"+eq+"+$","g");function eK(e,t,n){var r,o,a,s,l=eV.test(t),c=e.style;return(n=n||eU(e))&&(s=n.getPropertyValue(t)||n[t],l&&s&&(s=s.replace(eG,"$1")||void 0),""!==s||el(e)||(s=k.style(e,t)),!h.pixelBoxStyles()&&ez.test(s)&&eW.test(t)&&(r=c.width,o=c.minWidth,a=c.maxWidth,c.minWidth=c.maxWidth=c.width=s,s=n.width,c.width=r,c.minWidth=o,c.maxWidth=a)),void 0!==s?s+"":s}function eX(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){function t(){if(d){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",es.appendChild(u).appendChild(d);var t=e.getComputedStyle(d);r="1%"!==t.top,c=12===n(t.marginLeft),d.style.right="60%",s=36===n(t.right),o=36===n(t.width),d.style.position="absolute",a=12===n(d.offsetWidth/3),es.removeChild(u),d=null}}function n(e){return Math.round(parseFloat(e))}var r,o,a,s,l,c,u=v.createElement("div"),d=v.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===d.style.backgroundClip,k.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),c},scrollboxSize:function(){return t(),a},reliableTrDimensions:function(){var t,n,r,o;return null==l&&(t=v.createElement("table"),n=v.createElement("tr"),r=v.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",es.appendChild(t).appendChild(n).appendChild(r),l=parseInt((o=e.getComputedStyle(n)).height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===n.offsetHeight,es.removeChild(t)),l}}))}();var eY=["Webkit","Moz","ms"],e$=v.createElement("div").style,eQ={};function eJ(e){for(var t=e[0].toUpperCase()+e.slice(1),n=eY.length;n--;)if((e=eY[n]+t)in e$)return e}function eZ(e){var t=k.cssProps[e]||eQ[e];return t||(e in e$?e:eQ[e]=eJ(e)||e)}var e0=/^(none|table(?!-c[ea]).+)/,e1={position:"absolute",visibility:"hidden",display:"block"},e2={letterSpacing:"0",fontWeight:"400"};function e5(e,t,n){var r=ei.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function e4(e,t,n,r,o,a){var s=+("width"===t),l=0,c=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=k.css(e,n+ea[s],!0,o)),r?("content"===n&&(c-=k.css(e,"padding"+ea[s],!0,o)),"margin"!==n&&(c-=k.css(e,"border"+ea[s]+"Width",!0,o))):(c+=k.css(e,"padding"+ea[s],!0,o),"padding"!==n?c+=k.css(e,"border"+ea[s]+"Width",!0,o):l+=k.css(e,"border"+ea[s]+"Width",!0,o));return!r&&a>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-c-l-.5))||0),c}function e3(e,t,n){var r=eU(e),o=(!h.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),a=o,s=eK(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(ez.test(s)){if(!n)return s;s="auto"}return(!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&I(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===k.css(e,"boxSizing",!1,r),(a=l in e)&&(s=e[l])),(s=parseFloat(s)||0)+e4(e,t,n||(o?"border":"content"),a,r,s)+"px"}function e6(e,t,n,r,o){return new e6.prototype.init(e,t,n,r,o)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=eK(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=X(t),c=eV.test(t),u=e.style;if(c||(t=eZ(l)),s=k.cssHooks[t]||k.cssHooks[l],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,r))?o:u[t];if("string"==(a=typeof n)&&(o=ei.exec(n))&&o[1]&&(n=ed(e,t,o),a="number"),null!=n&&n==n)"number"!==a||c||(n+=o&&o[3]||(k.cssNumber[l]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(c?u.setProperty(t,n):u[t]=n)}},css:function(e,t,n,r){var o,a,s,l=X(t);return(eV.test(t)||(t=eZ(l)),(s=k.cssHooks[t]||k.cssHooks[l])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=eK(e,t,r)),"normal"===o&&t in e2&&(o=e2[t]),""===n||n)?(a=parseFloat(o),!0===n||isFinite(a)?a||0:o):o}}),k.each(["height","width"],function(e,t){k.cssHooks[t]={get:function(e,n,r){if(n)return!e0.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?e3(e,t,r):ej(e,e1,function(){return e3(e,t,r)})},set:function(e,n,r){var o,a=eU(e),s=!h.scrollboxSize()&&"absolute"===a.position,l=(s||r)&&"border-box"===k.css(e,"boxSizing",!1,a),c=r?e4(e,t,r,l,a):0;return l&&s&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-e4(e,t,"border",!1,a)-.5)),c&&(o=ei.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),e5(e,n,c)}}}),k.cssHooks.marginLeft=eX(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(eK(e,"marginLeft"))||e.getBoundingClientRect().left-ej(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(e,t){k.cssHooks[e+t]={expand:function(n){for(var r=0,o={},a="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ea[r]+t]=a[r]||a[r-2]||a[0];return o}},"margin"!==e&&(k.cssHooks[e+t].set=e5)}),k.fn.extend({css:function(e,t){return W(this,function(e,t,n){var r,o,a={},s=0;if(Array.isArray(t)){for(r=eU(e),o=t.length;s<o;s++)a[t[s]]=k.css(e,t[s],!1,r);return a}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,arguments.length>1)}}),k.Tween=e6,e6.prototype={constructor:e6,init:function(e,t,n,r,o,a){this.elem=e,this.prop=n,this.easing=o||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(k.cssNumber[n]?"":"px")},cur:function(){var e=e6.propHooks[this.prop];return e&&e.get?e.get(this):e6.propHooks._default.get(this)},run:function(e){var t,n=e6.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):e6.propHooks._default.set(this),this}},e6.prototype.init.prototype=e6.prototype,e6.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1===e.elem.nodeType&&(k.cssHooks[e.prop]||null!=e.elem.style[eZ(e.prop)])?k.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},e6.propHooks.scrollTop=e6.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=e6.prototype.init,k.fx.step={};var e8,e9,e7=/^(?:toggle|show|hide)$/,te=/queueHooks$/;function tt(){e9&&(!1===v.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(tt):e.setTimeout(tt,k.fx.interval),k.fx.tick())}function tn(){return e.setTimeout(function(){e8=void 0}),e8=Date.now()}function tr(e,t){var n,r=0,o={height:e};for(t=+!!t;r<4;r+=2-t)o["margin"+(n=ea[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function to(e,t,n){for(var r,o=(ts.tweeners[t]||[]).concat(ts.tweeners["*"]),a=0,s=o.length;a<s;a++)if(r=o[a].call(n,t,e))return r}function ti(e,t,n){var r,o,a,s,l,c,u,d,p="width"in t||"height"in t,f=this,h={},m=e.style,g=e.nodeType&&eu(e),v=J.get(e,"fxshow");for(r in n.queue||(null==(s=k._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,k.queue(e,"fx").length||s.empty.fire()})})),t)if(o=t[r],e7.test(o)){if(delete t[r],a=a||"toggle"===o,o===(g?"hide":"show"))if("show"!==o||!v||void 0===v[r])continue;else g=!0;h[r]=v&&v[r]||k.style(e,r)}if(!(!(c=!k.isEmptyObject(t))&&k.isEmptyObject(h)))for(r in p&&1===e.nodeType&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],null==(u=v&&v.display)&&(u=J.get(e,"display")),"none"===(d=k.css(e,"display"))&&(u?d=u:(eh([e],!0),u=e.style.display||u,d=k.css(e,"display"),eh([e]))),("inline"===d||"inline-block"===d&&null!=u)&&"none"===k.css(e,"float")&&(c||(f.done(function(){m.display=u}),null==u&&(u="none"===(d=m.display)?"":d)),m.display="inline-block")),n.overflow&&(m.overflow="hidden",f.always(function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]})),c=!1,h)c||(v?"hidden"in v&&(g=v.hidden):v=J.access(e,"fxshow",{display:u}),a&&(v.hidden=!g),g&&eh([e],!0),f.done(function(){for(r in g||eh([e]),J.remove(e,"fxshow"),h)k.style(e,r,h[r])})),c=to(g?v[r]:0,r,f),r in v||(v[r]=c.start,g&&(c.end=c.start,c.start=0))}function ta(e,t){var n,r,o,a,s;for(n in e)if(o=t[r=X(n)],Array.isArray(a=e[n])&&(o=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(s=k.cssHooks[r])&&"expand"in s)for(n in a=s.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=o);else t[r]=o}function ts(e,t,n){var r,o,a=0,s=ts.prefilters.length,l=k.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var t=e8||tn(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),a=0,s=u.tweens.length;a<s;a++)u.tweens[a].run(r);return(l.notifyWith(e,[u,r,n]),r<1&&s)?n:(s||l.notifyWith(e,[u,1,0]),l.resolveWith(e,[u]),!1)},u=l.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:e8||tn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=k.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)u.tweens[n].run(1);return t?(l.notifyWith(e,[u,1,0]),l.resolveWith(e,[u,t])):l.rejectWith(e,[u,t]),this}}),d=u.props;for(ta(d,u.opts.specialEasing);a<s;a++)if(r=ts.prefilters[a].call(u,e,d,u.opts))return m(r.stop)&&(k._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return k.map(d,to,u),m(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),k.fx.timer(k.extend(c,{elem:e,anim:u,queue:u.opts.queue})),u}k.Animation=k.extend(ts,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ed(n.elem,e,ei.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(F);for(var n,r=0,o=e.length;r<o;r++)n=e[r],ts.tweeners[n]=ts.tweeners[n]||[],ts.tweeners[n].unshift(t)},prefilters:[ti],prefilter:function(e,t){t?ts.prefilters.unshift(e):ts.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),(null==r.queue||!0===r.queue)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(eu).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=k.isEmptyObject(e),a=k.speed(t,n,r),s=function(){var t=ts(this,k.extend({},e),a);(o||J.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===a.queue?this.each(s):this.queue(a.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",a=k.timers,s=J.get(this);if(o)s[o]&&s[o].stop&&r(s[o]);else for(o in s)s[o]&&s[o].stop&&te.test(o)&&r(s[o]);for(o=a.length;o--;)a[o].elem===this&&(null==e||a[o].queue===e)&&(a[o].anim.stop(n),t=!1,a.splice(o,1));(t||!n)&&k.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=J.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],a=k.timers,s=r?r.length:0;for(n.finish=!0,k.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),k.each(["toggle","show","hide"],function(e,t){var n=k.fn[t];k.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(tr(t,!0),e,r,o)}}),k.each({slideDown:tr("show"),slideUp:tr("hide"),slideToggle:tr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){k.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(e8=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),e8=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){e9||(e9=!0,tt())},k.fx.stop=function(){e9=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(t,n){return t=k.fx&&k.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var o=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(o)}})},function(){var e=v.createElement("input"),t=v.createElement("select").appendChild(v.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=v.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var tl,tc=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return W(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?k.prop(e,t,n):(1===a&&k.isXMLDoc(e)||(o=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?tl:void 0)),void 0!==n)?null===n?void k.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:(r=k.find.attr(e,t),null==r?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&I(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(F);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),tl={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var n=tc[t]||k.find.attr;tc[t]=function(e,t,r){var o,a,s=t.toLowerCase();return r||(a=tc[s],tc[s]=o,o=null!=n(e,t,r)?s:null,tc[s]=a),o}});var tu=/^(?:input|select|textarea|button)$/i,td=/^(?:a|area)$/i;function tp(e){return(e.match(F)||[]).join(" ")}function tf(e){return e.getAttribute&&e.getAttribute("class")||""}function th(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(F)||[]}k.fn.extend({prop:function(e,t){return W(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return(1===a&&k.isXMLDoc(e)||(t=k.propFix[t]||t,o=k.propHooks[t]),void 0!==n)?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):tu.test(e.nodeName)||td.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,n,r,o,a,s;return m(e)?this.each(function(t){k(this).addClass(e.call(this,t,tf(this)))}):(t=th(e)).length?this.each(function(){if(r=tf(this),n=1===this.nodeType&&" "+tp(r)+" "){for(a=0;a<t.length;a++)o=t[a],0>n.indexOf(" "+o+" ")&&(n+=o+" ");r!==(s=tp(n))&&this.setAttribute("class",s)}}):this},removeClass:function(e){var t,n,r,o,a,s;return m(e)?this.each(function(t){k(this).removeClass(e.call(this,t,tf(this)))}):arguments.length?(t=th(e)).length?this.each(function(){if(r=tf(this),n=1===this.nodeType&&" "+tp(r)+" "){for(a=0;a<t.length;a++)for(o=t[a];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r!==(s=tp(n))&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,o,a,s=typeof e,l="string"===s||Array.isArray(e);return m(e)?this.each(function(n){k(this).toggleClass(e.call(this,n,tf(this),t),t)}):"boolean"==typeof t&&l?t?this.addClass(e):this.removeClass(e):(n=th(e),this.each(function(){if(l)for(o=0,a=k(this);o<n.length;o++)r=n[o],a.hasClass(r)?a.removeClass(r):a.addClass(r);else(void 0===e||"boolean"===s)&&((r=tf(this))&&J.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":J.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+tp(tf(n))+" ").indexOf(t)>-1)return!0;return!1}});var tm=/\r/g;k.fn.extend({val:function(e){var t,n,r,o=this[0];if(!arguments.length)return o?(t=k.valHooks[o.type]||k.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(tm,""):null==n?"":n:void 0;return r=m(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,k(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=k.map(o,function(e){return null==e?"":e+""})),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:tp(k.text(e))}},select:{get:function(e){var t,n,r,o=e.options,a=e.selectedIndex,s="select-one"===e.type,l=s?null:[],c=s?a+1:o.length;for(r=a<0?c:s?a:0;r<c;r++)if(((n=o[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!I(n.parentNode,"optgroup"))){if(t=k(n).val(),s)return t;l.push(t)}return l},set:function(e,t){for(var n,r,o=e.options,a=k.makeArray(t),s=o.length;s--;)((r=o[s]).selected=k.inArray(k.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},h.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var tg=/^(?:focusinfocus|focusoutblur)$/,tv=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(t,n,r,o){var a,s,l,c,u,p,f,h,y=[r||v],b=d.call(t,"type")?t.type:t,x=d.call(t,"namespace")?t.namespace.split("."):[];if((s=h=l=r=r||v,!(3===r.nodeType||8===r.nodeType||tg.test(b+k.event.triggered)))&&(b.indexOf(".")>-1&&(b=(x=b.split(".")).shift(),x.sort()),u=0>b.indexOf(":")&&"on"+b,(t=t[k.expando]?t:new k.Event(b,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:k.makeArray(n,[t]),f=k.event.special[b]||{},o||!f.trigger||!1!==f.trigger.apply(r,n))){if(!o&&!f.noBubble&&!g(r)){for(c=f.delegateType||b,tg.test(c+b)||(s=s.parentNode);s;s=s.parentNode)y.push(s),l=s;l===(r.ownerDocument||v)&&y.push(l.defaultView||l.parentWindow||e)}for(a=0;(s=y[a++])&&!t.isPropagationStopped();)h=s,t.type=a>1?c:f.bindType||b,(p=(J.get(s,"events")||Object.create(null))[t.type]&&J.get(s,"handle"))&&p.apply(s,n),(p=u&&s[u])&&p.apply&&Y(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=b,!o&&!t.isDefaultPrevented()&&(!f._default||!1===f._default.apply(y.pop(),n))&&Y(r)&&u&&m(r[b])&&!g(r)&&((l=r[u])&&(r[u]=null),k.event.triggered=b,t.isPropagationStopped()&&h.addEventListener(b,tv),r[b](),t.isPropagationStopped()&&h.removeEventListener(b,tv),k.event.triggered=void 0,l&&(r[u]=l)),t.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),h.focusin||k.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=J.access(r,t);o||r.addEventListener(e,n,!0),J.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=J.access(r,t)-1;o?J.access(r,t,o):(r.removeEventListener(e,n,!0),J.remove(r,t))}}});var ty=e.location,tb={guid:Date.now()},tx=/\?/;k.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=new e.DOMParser().parseFromString(t,"text/xml")}catch(e){}return r=n&&n.getElementsByTagName("parsererror")[0],(!n||r)&&k.error("Invalid XML: "+(r?k.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var tC=/\[\]$/,tk=/\r?\n/g,tw=/^(?:submit|button|image|reset|file)$/i,tS=/^(?:input|select|textarea|keygen)/i;function t_(e,t,n,r){var o;if(Array.isArray(t))k.each(t,function(t,o){n||tC.test(e)?r(e,o):t_(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==x(t))r(e,t);else for(o in t)t_(e+"["+o+"]",t[o],n,r)}k.param=function(e,t){var n,r=[],o=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){o(this.name,this.value)});else for(n in e)t_(n,e[n],t,o);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&tS.test(this.nodeName)&&!tw.test(e)&&(this.checked||!em.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(tk,"\r\n")}}):{name:t.name,value:n.replace(tk,"\r\n")}}).get()}});var tE=/%20/g,tP=/#.*$/,tI=/([?&])_=[^&]*/,tT=/^(.*?):[ \t]*([^\r\n]*)$/mg,tD=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,tA=/^(?:GET|HEAD)$/,tR=/^\/\//,tN={},tB={},tM="*/".concat("*"),tF=v.createElement("a");function tO(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,a=t.toLowerCase().match(F)||[];if(m(n))for(;r=a[o++];)"+"===r[0]?(e[r=r.slice(1)||"*"]=e[r]||[]).unshift(n):(e[r]=e[r]||[]).push(n)}}function tL(e,t,n,r){var o={},a=e===tB;function s(l){var c;return o[l]=!0,k.each(e[l]||[],function(e,l){var u=l(t,n,r);return"string"!=typeof u||a||o[u]?a?!(c=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),c}return s(t.dataTypes[0])||!o["*"]&&s("*")}function tH(e,t){var n,r,o=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}function tz(e,t,n){for(var r,o,a,s,l=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r){for(o in l)if(l[o]&&l[o].test(r)){c.unshift(o);break}}if(c[0]in n)a=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){a=o;break}s||(s=o)}a=a||s}if(a)return a!==c[0]&&c.unshift(a),n[a]}function tV(e,t,n,r){var o,a,s,l,c,u={},d=e.dataTypes.slice();if(d[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(a=d.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=d.shift()){if("*"===a)a=c;else if("*"!==c&&c!==a){if(!(s=u[c+" "+a]||u["* "+a])){for(o in u)if((l=o.split(" "))[1]===a&&(s=u[c+" "+l[0]]||u["* "+l[0]])){!0===s?s=u[o]:!0!==u[o]&&(a=l[0],d.unshift(l[1]));break}}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+c+" to "+a}}}}return{state:"success",data:t}}tF.href=ty.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ty.href,type:"GET",isLocal:tD.test(ty.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":tM,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?tH(tH(e,k.ajaxSettings),t):tH(k.ajaxSettings,e)},ajaxPrefilter:tO(tN),ajaxTransport:tO(tB),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,o,a,s,l,c,u,d,p,f,h=k.ajaxSetup({},n),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?k(m):k.event,y=k.Deferred(),b=k.Callbacks("once memory"),x=h.statusCode||{},C={},w={},S="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=tT.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?a:null},setRequestHeader:function(e,t){return null==u&&(C[e=w[e.toLowerCase()]=w[e.toLowerCase()]||e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)_.always(e[_.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||S;return r&&r.abort(t),E(0,t),this}};if(y.promise(_),h.url=((t||h.url||ty.href)+"").replace(tR,ty.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(F)||[""],null==h.crossDomain){c=v.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=tF.protocol+"//"+tF.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),tL(tN,h,n,_),u)return _;for(p in(d=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!tA.test(h.type),o=h.url.replace(tP,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(tE,"+")):(f=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(tx.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(tI,"$1"),f=(tx.test(o)?"&":"?")+"_="+tb.guid+++f),h.url=o+f),h.ifModified&&(k.lastModified[o]&&_.setRequestHeader("If-Modified-Since",k.lastModified[o]),k.etag[o]&&_.setRequestHeader("If-None-Match",k.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&_.setRequestHeader("Content-Type",h.contentType),_.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+tM+"; q=0.01":""):h.accepts["*"]),h.headers)_.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(m,_,h)||u))return _.abort();if(S="abort",b.add(h.complete),_.done(h.success),_.fail(h.error),r=tL(tB,h,n,_)){if(_.readyState=1,d&&g.trigger("ajaxSend",[_,h]),u)return _;h.async&&h.timeout>0&&(l=e.setTimeout(function(){_.abort("timeout")},h.timeout));try{u=!1,r.send(C,E)}catch(e){if(u)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,s,c){var p,f,v,C,w,S=n;!u&&(u=!0,l&&e.clearTimeout(l),r=void 0,a=c||"",_.readyState=4*(t>0),p=t>=200&&t<300||304===t,s&&(C=tz(h,_,s)),!p&&k.inArray("script",h.dataTypes)>-1&&0>k.inArray("json",h.dataTypes)&&(h.converters["text script"]=function(){}),C=tV(h,C,_,p),p?(h.ifModified&&((w=_.getResponseHeader("Last-Modified"))&&(k.lastModified[o]=w),(w=_.getResponseHeader("etag"))&&(k.etag[o]=w)),204===t||"HEAD"===h.type?S="nocontent":304===t?S="notmodified":(S=C.state,f=C.data,p=!(v=C.error))):(v=S,(t||!S)&&(S="error",t<0&&(t=0))),_.status=t,_.statusText=(n||S)+"",p?y.resolveWith(m,[f,S,_]):y.rejectWith(m,[_,S,v]),_.statusCode(x),x=void 0,d&&g.trigger(p?"ajaxSuccess":"ajaxError",[_,h,p?f:v]),b.fireWith(m,[_,S]),d&&(g.trigger("ajaxComplete",[_,h]),--k.active||k.event.trigger("ajaxStop")))}return _},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,t){k[t]=function(e,n,r,o){return m(n)&&(o=o||r,r=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:o,data:n,success:r},k.isPlainObject(e)&&e))}}),k.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return m(e)?this.each(function(t){k(this).wrapInner(e.call(this,t))}):this.each(function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m(e);return this.each(function(n){k(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var tU={0:200,1223:204},tj=k.ajaxSettings.xhr();h.cors=!!tj&&"withCredentials"in tj,h.ajax=tj=!!tj,k.ajaxTransport(function(t){var n,r;if(h.cors||tj&&!t.crossDomain)return{send:function(o,a){var s,l=t.xhr();if(l.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)l[s]=t.xhrFields[s];for(s in t.mimeType&&l.overrideMimeType&&l.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)l.setRequestHeader(s,o[s]);n=function(e){return function(){n&&(n=r=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===e?l.abort():"error"===e?"number"!=typeof l.status?a(0,"error"):a(l.status,l.statusText):a(tU[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=n(),r=l.onerror=l.ontimeout=n("error"),void 0!==l.onabort?l.onabort=r:l.onreadystatechange=function(){4===l.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{l.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,o){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}}});var tW=[],tq=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tW.pop()||k.expando+"_"+tb.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(t,n,r){var o,a,s,l=!1!==t.jsonp&&(tq.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tq.test(t.data)&&"data");if(l||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,l?t[l]=t[l].replace(tq,"$1"+o):!1!==t.jsonp&&(t.url+=(tx.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||k.error(o+" was not called"),s[0]},t.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},r.always(function(){void 0===a?k(e).removeProp(o):e[o]=a,t[o]&&(t.jsonpCallback=n.jsonpCallback,tW.push(o)),s&&m(a)&&a(s[0]),s=a=void 0}),"script"}),h.createHTMLDocument=function(){var e=v.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),k.parseHTML=function(e,t,n){var r,o,a;return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(r)):t=v),o=T.exec(e),a=!n&&[],o)?[t.createElement(o[1])]:(o=ek([e],t,a),a&&a.length&&k(a).remove(),k.merge([],o.childNodes))},k.fn.load=function(e,t,n){var r,o,a,s=this,l=e.indexOf(" ");return l>-1&&(r=tp(e.slice(l)),e=e.slice(0,l)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&k.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){a=arguments,s.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(e,t,n){var r,o,a,s,l,c,u=k.css(e,"position"),d=k(e),p={};"static"===u&&(e.style.position="relative"),l=d.offset(),a=k.css(e,"top"),c=k.css(e,"left"),("absolute"===u||"fixed"===u)&&(a+c).indexOf("auto")>-1?(s=(r=d.position()).top,o=r.left):(s=parseFloat(a)||0,o=parseFloat(c)||0),m(t)&&(t=t.call(e,n,k.extend({},l))),null!=t.top&&(p.top=t.top-l.top+s),null!=t.left&&(p.left=t.left-l.left+o),"using"in t?t.using.call(e,p):d.css(p)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&(o=k(e).offset(),o.top+=k.css(e,"borderTopWidth",!0),o.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-k.css(r,"marginTop",!0),left:t.left-o.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||es})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;k.fn[e]=function(r){return W(this,function(e,r,o){var a;if(g(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===o)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:o,n?o:a.pageYOffset):e[r]=o},e,r,arguments.length)}}),k.each(["top","left"],function(e,t){k.cssHooks[t]=eX(h.pixelPosition,function(e,n){if(n)return n=eK(e,t),ez.test(n)?k(e).position()[t]+"px":n})}),k.each({Height:"height",Width:"width"},function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){k.fn[r]=function(o,a){var s=arguments.length&&(n||"boolean"!=typeof o),l=n||(!0===o||!0===a?"margin":"border");return W(this,function(t,n,o){var a;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===o?k.css(t,n,l):k.style(t,n,o,l)},t,s?o:void 0,s)}})}),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1==arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var tG=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=o.call(arguments,2),(a=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||k.guid++,a},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=I,k.isFunction=m,k.isWindow=g,k.camelCase=X,k.type=x,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(tG,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var tK=e.jQuery,tX=e.$;return k.noConflict=function(t){return e.$===k&&(e.$=tX),t&&e.jQuery===k&&(e.jQuery=tK),k},void 0===t&&(e.jQuery=e.$=k),k})},94e3(e,t,n){var r=n(20124)("jsonp");e.exports=s;var o=0;function a(){}function s(e,t,n){"function"==typeof t&&(n=t,t={}),t||(t={});var s,l,c=t.prefix||"__jp",u=t.name||c+o++,d=t.param||"callback",p=null!=t.timeout?t.timeout:6e4,f=encodeURIComponent,h=document.getElementsByTagName("script")[0]||document.head;function m(){s.parentNode&&s.parentNode.removeChild(s),window[u]=a,l&&clearTimeout(l)}function g(){window[u]&&m()}return p&&(l=setTimeout(function(){m(),n&&n(Error("Timeout"))},p)),window[u]=function(e){r("jsonp got",e),m(),n&&n(null,e)},e+=(~e.indexOf("?")?"&":"?")+d+"="+f(u),r('jsonp req "%s"',e=e.replace("?&","?")),(s=document.createElement("script")).src=e,h.parentNode.insertBefore(s,h),g}},51022(e,t,n){"use strict";n.d(t,{Oy:()=>a,RY:()=>s,SQ:()=>v,bd:()=>y,kG:()=>u});var r="u">typeof WeakRef,o=class{constructor(e){r&&"object"==typeof e?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,t;let n;return this._weakRef?(n=null==(e=this._weakRef)?void 0:e.deref())||delete this._weakRef:(null==(t=null==(n=this._instance)?void 0:n.isDisposed)?void 0:t.call(n))&&delete this._instance,n}},a="keyborg:focusin",s="keyborg:focusout";function l(e){let t=e.HTMLElement,n=t.prototype.focus,r=!1;return t.prototype.focus=function(){r=!0},e.document.createElement("button").focus(),t.prototype.focus=n,r}var c=!1;function u(e){let t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function d(e){let t=e;c||(c=l(t));let n=t.HTMLElement.prototype.focus;if(n.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=h;let r=new Set,u=e=>{let t=e.target;if(!t)return;let n=new CustomEvent(s,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:e}});t.dispatchEvent(n)},d=e=>{let t=e.target;if(!t)return;let n=e.composedPath()[0],o=new Set;for(;n;)n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(o.add(n),n=n.host):n=n.parentNode;for(let e of r){let t=e.deref();t&&o.has(t)||(r.delete(e),t&&(t.removeEventListener("focusin",d,!0),t.removeEventListener("focusout",u,!0)))}p(t,e.relatedTarget||void 0)},p=(e,t,n)=>{var s;let l=e.shadowRoot;if(l){for(let e of r)if(e.deref()===l)return;l.addEventListener("focusin",d,!0),l.addEventListener("focusout",u,!0),r.add(new o(l));return}let p={relatedTarget:t,originalEvent:n},h=new CustomEvent(a,{cancelable:!0,bubbles:!0,composed:!0,detail:p});h.details=p,(c||f.lastFocusedProgrammatically)&&(p.isFocusedProgrammatically=e===(null==(s=f.lastFocusedProgrammatically)?void 0:s.deref()),f.lastFocusedProgrammatically=void 0),e.dispatchEvent(h)},f=t.__keyborgData={focusInHandler:d,focusOutHandler:u,shadowTargets:r};function h(){let e=t.__keyborgData;return e&&(e.lastFocusedProgrammatically=new o(this)),n.apply(this,arguments)}t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0),t.document.addEventListener("focusout",t.__keyborgData.focusOutHandler,!0);let m=t.document.activeElement;for(;m&&m.shadowRoot;)p(m),m=m.shadowRoot.activeElement;h.__keyborgNativeFocus=n}function p(e){let t=e,n=t.HTMLElement.prototype,r=n.focus.__keyborgNativeFocus,o=t.__keyborgData;if(o){for(let e of(t.document.removeEventListener("focusin",o.focusInHandler,!0),t.document.removeEventListener("focusout",o.focusOutHandler,!0),o.shadowTargets)){let t=e.deref();t&&(t.removeEventListener("focusin",o.focusInHandler,!0),t.removeEventListener("focusout",o.focusOutHandler,!0))}o.shadowTargets.clear(),delete t.__keyborgData}r&&(n.focus=r)}var f=500,h=0,m=class{constructor(e,t){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=e=>{if(this._isMouseOrTouchUsedTimer||this.isNavigatingWithKeyboard)return;let t=e.detail;!t.relatedTarget||t.isFocusedProgrammatically||void 0===t.isFocusedProgrammatically||(this.isNavigatingWithKeyboard=!0)},this._onMouseDown=e=>{0!==e.buttons&&(0!==e.clientX||0!==e.clientY||0!==e.screenX||0!==e.screenY)&&this._onMouseOrTouch()},this._onMouseOrTouch=()=>{let e=this._win;e&&(this._isMouseOrTouchUsedTimer&&e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=e.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=e=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(e)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(e)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++h,this._win=e;const n=e.document;if(t){const e=t.triggerKeys,n=t.dismissKeys;(null==e?void 0:e.length)&&(this._triggerKeys=new Set(e)),(null==n?void 0:n.length)&&(this._dismissKeys=new Set(n))}n.addEventListener(a,this._onFocusIn,!0),n.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),n.addEventListener("touchstart",this._onMouseOrTouch,!0),n.addEventListener("touchend",this._onMouseOrTouch,!0),n.addEventListener("touchcancel",this._onMouseOrTouch,!0),d(e)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(e){this._isNavigatingWithKeyboard_DO_NOT_USE!==e&&(this._isNavigatingWithKeyboard_DO_NOT_USE=e,this.update())}dispose(){let e=this._win;if(e){this._isMouseOrTouchUsedTimer&&(e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),p(e);let t=e.document;t.removeEventListener(a,this._onFocusIn,!0),t.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener("touchstart",this._onMouseOrTouch,!0),t.removeEventListener("touchend",this._onMouseOrTouch,!0),t.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var e,t;let n=null==(t=null==(e=this._win)?void 0:e.__keyborg)?void 0:t.refs;if(n)for(let e of Object.keys(n))g.update(n[e],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(e){var t;if("Tab"===e.key)return!0;let n=null==(t=this._win)?void 0:t.document.activeElement,r=!this._triggerKeys||this._triggerKeys.has(e.keyCode),o=n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable);return r&&!o}_shouldDismissKeyboardNavigation(e){var t;return null==(t=this._dismissKeys)?void 0:t.has(e.keyCode)}_scheduleDismiss(){let e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);let t=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;let n=e.document.activeElement;t&&n&&t===n&&(this.isNavigatingWithKeyboard=!1)},f)}}},g=class e{constructor(e,t){this._cb=[],this._id="k"+ ++h,this._win=e;const n=e.__keyborg;n?(this._core=n.core,n.refs[this._id]=this):(this._core=new m(e,t),e.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,n){return new e(t,n)}static dispose(e){e.dispose()}static update(e,t){e._cb.forEach(e=>e(t))}dispose(){var e;let t=null==(e=this._win)?void 0:e.__keyborg;null!=t&&t.refs[this._id]&&(delete t.refs[this._id],0===Object.keys(t.refs).length&&(t.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var e;return!!(null==(e=this._core)?void 0:e.isNavigatingWithKeyboard)}subscribe(e){this._cb.push(e)}unsubscribe(e){let t=this._cb.indexOf(e);t>=0&&this._cb.splice(t,1)}setVal(e){this._core&&(this._core.isNavigatingWithKeyboard=e)}};function v(e,t){return g.create(e,t)}function y(e){g.dispose(e)}},33103(e,t,n){e.exports=n(94715)(n(78942),"DataView")},25098(e,t,n){var r=n(23305),o=n(39361),a=n(11112),s=n(25276),l=n(57452);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},1386(e,t,n){var r=n(12393),o=n(62049),a=n(7144),s=n(7452),l=n(13964);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},19770(e,t,n){e.exports=n(94715)(n(78942),"Map")},68250(e,t,n){var r=n(49753),o=n(5681),a=n(80088),s=n(54732),l=n(59068);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},89413(e,t,n){e.exports=n(94715)(n(78942),"Promise")},64512(e,t,n){e.exports=n(94715)(n(78942),"Set")},23212(e,t,n){var r=n(68250),o=n(1877),a=n(8006);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=o,s.prototype.has=a,e.exports=s},51340(e,t,n){var r=n(1386),o=n(64103),a=n(21779),s=n(34162),l=n(7462),c=n(96638);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=s,u.prototype.has=l,u.prototype.set=c,e.exports=u},65650(e,t,n){e.exports=n(78942).Symbol},31623(e,t,n){e.exports=n(78942).Uint8Array},19270(e,t,n){e.exports=n(94715)(n(78942),"WeakMap")},2228(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[o++]=s)}return a}},10358(e,t,n){var r=n(26137),o=n(3283),a=n(53142),s=n(75853),l=n(69632),c=n(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&o(e),p=!n&&!d&&s(e),f=!n&&!d&&!p&&c(e),h=n||d||p||f,m=h?r(e.length,String):[],g=m.length;for(var v in e)(t||u.call(e,v))&&!(h&&("length"==v||p&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,g)))&&m.push(v);return m}},11129(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},36465(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},97034(e,t,n){var r=n(46285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1}},90313(e,t,n){var r=n(11129),o=n(20714);function a(e,t,n,s,l){var c=-1,u=e.length;for(n||(n=o),l||(l=[]);++c<u;){var d=e[c];t>0&&n(d)?t>1?a(d,t-1,n,s,l):r(l,d):s||(l[l.length]=d)}return l}e.exports=a},48244(e,t,n){var r=n(11129),o=n(53142);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},87379(e,t,n){var r=n(65650),o=n(8870),a=n(29005),s="[object Null]",l="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?l:s:c&&c in Object(e)?o(e):a(e)}},56027(e,t,n){var r=n(87379),o=n(80547),a="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==a}},94687(e,t,n){var r=n(90353),o=n(80547);function a(e,t,n,s,l){return e===t||(null!=e&&null!=t&&(o(e)||o(t))?r(e,t,n,s,a,l):e!=e&&t!=t)}e.exports=a},90353(e,t,n){var r=n(51340),o=n(33934),a=n(88861),s=n(31182),l=n(28486),c=n(53142),u=n(75853),d=n(8666),p=1,f="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,b){var x=c(e),C=c(t),k=x?h:l(e),w=C?h:l(t);k=k==f?m:k,w=w==f?m:w;var S=k==m,_=w==m,E=k==w;if(E&&u(e)){if(!u(t))return!1;x=!0,S=!1}if(E&&!S)return b||(b=new r),x||d(e)?o(e,t,n,v,y,b):a(e,t,k,n,v,y,b);if(!(n&p)){var P=S&&g.call(e,"__wrapped__"),I=_&&g.call(t,"__wrapped__");if(P||I){var T=P?e.value():e,D=I?t.value():t;return b||(b=new r),y(T,D,n,v,b)}}return!!E&&(b||(b=new r),s(e,t,n,v,y,b))}},89624(e,t,n){var r=n(93655),o=n(64759),a=n(41580),s=n(64066),l=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,u=Object.prototype,d=Function.prototype.toString,p=u.hasOwnProperty,f=RegExp("^"+d.call(p).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?f:c).test(s(e))}},70674(e,t,n){var r=n(87379),o=n(65387),a=n(80547),s="[object Arguments]",l="[object Array]",c="[object Boolean]",u="[object Date]",d="[object Error]",p="[object Function]",f="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object WeakMap]",x="[object ArrayBuffer]",C="[object DataView]",k="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",_="[object Int32Array]",E="[object Uint8Array]",P="[object Uint8ClampedArray]",I="[object Uint16Array]",T="[object Uint32Array]",D={};D["[object Float32Array]"]=D[k]=D[w]=D[S]=D[_]=D[E]=D[P]=D[I]=D[T]=!0,D[s]=D[l]=D[x]=D[c]=D[C]=D[u]=D[d]=D[p]=D[f]=D[h]=D[m]=D[g]=D[v]=D[y]=D[b]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!D[r(e)]}},195(e,t,n){var r=n(84882),o=n(98121),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},26137(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},86403(e,t,n){var r=n(62945),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},49460(e){e.exports=function(e){return function(t){return e(t)}}},65568(e){e.exports=function(e,t){return e.has(t)}},41950(e,t,n){e.exports=n(78942)["__core-js_shared__"]},33934(e,t,n){var r=n(23212),o=n(36465),a=n(65568),s=1,l=2;e.exports=function(e,t,n,c,u,d){var p=n&s,f=e.length,h=t.length;if(f!=h&&!(p&&h>f))return!1;var m=d.get(e),g=d.get(t);if(m&&g)return m==t&&g==e;var v=-1,y=!0,b=n&l?new r:void 0;for(d.set(e,t),d.set(t,e);++v<f;){var x=e[v],C=t[v];if(c)var k=p?c(C,x,v,t,e,d):c(x,C,v,e,t,d);if(void 0!==k){if(k)continue;y=!1;break}if(b){if(!o(t,function(e,t){if(!a(b,t)&&(x===e||u(x,e,n,c,d)))return b.push(t)})){y=!1;break}}else if(!(x===C||u(x,C,n,c,d))){y=!1;break}}return d.delete(e),d.delete(t),y}},88861(e,t,n){var r=n(65650),o=n(31623),a=n(46285),s=n(33934),l=n(95894),c=n(49828),u=1,d=2,p="[object Boolean]",f="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",v="[object RegExp]",y="[object Set]",b="[object String]",x="[object Symbol]",C="[object ArrayBuffer]",k="[object DataView]",w=r?r.prototype:void 0,S=w?w.valueOf:void 0;e.exports=function(e,t,n,r,w,_,E){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case C:if(e.byteLength!=t.byteLength||!_(new o(e),new o(t)))break;return!0;case p:case f:case g:return a(+e,+t);case h:return e.name==t.name&&e.message==t.message;case v:case b:return e==t+"";case m:var P=l;case y:var I=r&u;if(P||(P=c),e.size!=t.size&&!I)break;var T=E.get(e);if(T)return T==t;r|=d,E.set(e,t);var D=s(P(e),P(t),r,w,_,E);return E.delete(e),D;case x:if(S)return S.call(e)==S.call(t)}return!1}},31182(e,t,n){var r=n(80393),o=1,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,s,l,c){var u=n&o,d=r(e),p=d.length;if(p!=r(t).length&&!u)return!1;for(var f=p;f--;){var h=d[f];if(!(u?h in t:a.call(t,h)))return!1}var m=c.get(e),g=c.get(t);if(m&&g)return m==t&&g==e;var v=!0;c.set(e,t),c.set(t,e);for(var y=u;++f<p;){var b=e[h=d[f]],x=t[h];if(s)var C=u?s(x,b,h,t,e,c):s(b,x,h,e,t,c);if(!(void 0===C?b===x||l(b,x,n,s,c):C)){v=!1;break}y||(y="constructor"==h)}if(v&&!y){var k=e.constructor,w=t.constructor;k!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof k&&k instanceof k&&"function"==typeof w&&w instanceof w)&&(v=!1)}return c.delete(e),c.delete(t),v}},74967(e,t,n){e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},80393(e,t,n){var r=n(48244),o=n(77979),a=n(81211);e.exports=function(e){return r(e,a,o)}},44700(e,t,n){var r=n(79067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},94715(e,t,n){var r=n(89624),o=n(20155);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},8870(e,t,n){var r=n(65650),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[l]=n:delete e[l]),o}},77979(e,t,n){var r=n(2228),o=n(99306),a=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;e.exports=s?function(e){return null==e?[]:r(s(e=Object(e)),function(t){return a.call(e,t)})}:o},28486(e,t,n){var r=n(33103),o=n(19770),a=n(89413),s=n(64512),l=n(19270),c=n(87379),u=n(64066),d="[object Map]",p="[object Object]",f="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",v=u(r),y=u(o),b=u(a),x=u(s),C=u(l),k=c;(r&&k(new r(new ArrayBuffer(1)))!=g||o&&k(new o)!=d||a&&k(a.resolve())!=f||s&&k(new s)!=h||l&&k(new l)!=m)&&(k=function(e){var t=c(e),n=t==p?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case v:return g;case y:return d;case b:return f;case x:return h;case C:return m}return t}),e.exports=k},20155(e){e.exports=function(e,t){return null==e?void 0:e[t]}},23305(e,t,n){var r=n(94497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},39361(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},11112(e,t,n){var r=n(94497),o="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return a.call(t,e)?t[e]:void 0}},25276(e,t,n){var r=n(94497),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},57452(e,t,n){var r=n(94497),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?o:t,this}},20714(e,t,n){var r=n(65650),o=n(3283),a=n(53142),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(s&&e&&e[s])}},69632(e){var t=0x1fffffffffffff,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var o=typeof e;return!!(r=null==r?t:r)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<r}},79067(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},64759(e,t,n){var r=n(41950),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},84882(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},12393(e){e.exports=function(){this.__data__=[],this.size=0}},62049(e,t,n){var r=n(97034),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},7144(e,t,n){var r=n(97034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7452(e,t,n){var r=n(97034);e.exports=function(e){return r(this.__data__,e)>-1}},13964(e,t,n){var r=n(97034);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},49753(e,t,n){var r=n(25098),o=n(1386),a=n(19770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},5681(e,t,n){var r=n(44700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=!!t,t}},80088(e,t,n){var r=n(44700);e.exports=function(e){return r(this,e).get(e)}},54732(e,t,n){var r=n(44700);e.exports=function(e){return r(this,e).has(e)}},59068(e,t,n){var r=n(44700);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=+(n.size!=o),this}},95894(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},94497(e,t,n){e.exports=n(94715)(Object,"create")},98121(e,t,n){e.exports=n(3766)(Object.keys,Object)},2306(e,t,n){e=n.nmd(e);var r=n(74967),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l},29005(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766(e){e.exports=function(e,t){return function(n){return e(t(n))}}},78942(e,t,n){var r=n(74967),o="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||o||Function("return this")()},1877(e){var t="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,t),this}},8006(e){e.exports=function(e){return this.__data__.has(e)}},49828(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},64103(e,t,n){var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},21779(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},34162(e){e.exports=function(e){return this.__data__.get(e)}},7462(e){e.exports=function(e){return this.__data__.has(e)}},96638(e,t,n){var r=n(1386),o=n(19770),a=n(68250),s=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var l=n.__data__;if(!o||l.length<s-1)return l.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(l)}return n.set(e,t),this.size=n.size,this}},64066(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},62945(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},46285(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},75857(e,t,n){var r=n(90313);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},3283(e,t,n){var r=n(56027),o=n(80547),a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable;e.exports=r(function(){return arguments}())?r:function(e){return o(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},53142(e){e.exports=Array.isArray},36529(e,t,n){var r=n(93655),o=n(65387);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},75853(e,t,n){e=n.nmd(e);var r=n(78942),o=n(34772),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,l=s&&s.exports===a?r.Buffer:void 0,c=(l?l.isBuffer:void 0)||o;e.exports=c},3514(e,t,n){var r=n(195),o=n(28486),a=n(3283),s=n(53142),l=n(36529),c=n(75853),u=n(84882),d=n(8666),p="[object Map]",f="[object Set]",h=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(l(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||d(e)||a(e)))return!e.length;var t=o(e);if(t==p||t==f)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(h.call(e,n))return!1;return!0}},46343(e,t,n){var r=n(94687);e.exports=function(e,t){return r(e,t)}},93655(e,t,n){var r=n(87379),o=n(41580),a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",c="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==s||t==l||t==a||t==c}},80013(e,t,n){var r=n(67642);e.exports=function(e){return"number"==typeof e&&e==r(e)}},65387(e){var t=0x1fffffffffffff;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}},41580(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},80547(e){e.exports=function(e){return null!=e&&"object"==typeof e}},35054(e,t,n){var r=n(80013),o=0x1fffffffffffff;e.exports=function(e){return r(e)&&e>=-o&&e<=o}},51187(e,t,n){var r=n(87379),o=n(80547),a="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==a}},8666(e,t,n){var r=n(70674),o=n(49460),a=n(2306),s=a&&a.isTypedArray;e.exports=s?o(s):r},81211(e,t,n){var r=n(10358),o=n(195),a=n(36529);e.exports=function(e){return a(e)?r(e):o(e)}},99306(e){e.exports=function(){return[]}},34772(e){e.exports=function(){return!1}},43301(e,t,n){var r=n(6131),o=1/0,a=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*a:e==e?e:0:0===e?e:0}},67642(e,t,n){var r=n(43301);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},6131(e,t,n){var r=n(86403),o=n(41580),a=n(51187),s=0/0,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return s;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||u.test(e)?d(e.slice(2),n?2:8):l.test(e)?s:+e}},77356(module,exports){"u">typeof navigator&&function(e,t){module.exports=t()}(0,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,o=e.length;for(n=0;n<o;n+=1)for(var a in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,a)&&(t.prototype[a]=r[a])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(!this._isMuted*this._volume)}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var n,r=0,o=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)o.push(n);return o}function t(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var subframeEnabled=!0,expressionsPlugin=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,n){var r,o,a,s,l,c,u,d;switch(s=Math.floor(6*e),l=6*e-s,c=n*(1-t),u=n*(1-l*t),d=n*(1-(1-l)*t),s%6){case 0:r=n,o=d,a=c;break;case 1:r=u,o=n,a=c;break;case 2:r=c,o=n,a=d;break;case 3:r=c,o=u,a=n;break;case 4:r=d,o=c,a=n;break;case 5:r=n,o=c,a=u}return[r,o,a]}function RGBtoHSV(e,t,n){var r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o-a,l=0===o?0:s/o,c=o/255;switch(o){case a:r=0;break;case e:r=(t-n+6*(t<n)*s)/(6*s);break;case t:r=(n-e+2*s)/(6*s);break;case n:r=(e-t+4*s)/(6*s)}return[r,l,c]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var dataManager=function(){var e,t,n=1,r=[],o={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){o.onmessage({data:e})}};function s(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"});return new Worker(URL.createObjectURL(n))}return e=t,o}function l(){t||((t=s(function(e){function t(){function e(t,n){var s,l,c,u,d,p,h=t.length;for(l=0;l<h;l+=1)if("ks"in(s=t[l])&&!s.completed){if(s.completed=!0,s.tt&&(t[l-1].td=s.tt),s.hasMask){var m=s.masksProperties;for(c=0,u=m.length;c<u;c+=1)if(m[c].pt.k.i)a(m[c].pt.k);else for(d=0,p=m[c].pt.k.length;d<p;d+=1)m[c].pt.k[d].s&&a(m[c].pt.k[d].s[0]),m[c].pt.k[d].e&&a(m[c].pt.k[d].e[0])}0===s.ty?(s.layers=r(s.refId,n),e(s.layers,n)):4===s.ty?o(s.shapes):5===s.ty&&f(s)}}function t(t,n){if(t){var o=0,a=t.length;for(o=0;o<a;o+=1)1===t[o].t&&(t[o].data.layers=r(t[o].data.refId,n),e(t[o].data.layers,n))}}function n(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}function r(e,t){var r=n(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function o(e){var t,n,r;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)a(e[t].ks.k);else for(n=0,r=e[t].ks.k.length;n<r;n+=1)e[t].ks.k[n].s&&a(e[t].ks.k[n].s[0]),e[t].ks.k[n].e&&a(e[t].ks.k[n].e[0]);else"gr"===e[t].ty&&o(e[t].it)}function a(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function s(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var l=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(s(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),c=function(){var e=[4,7,99];return function(t){if(t.chars&&!s(e,t.v)){var n,r=t.chars.length;for(n=0;n<r;n+=1){var a=t.chars[n];a.data&&a.data.shapes&&(o(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[n].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),u=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(s(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),d=function(){var e=[4,1,9];function t(e){var n,r,o,a=e.length;for(n=0;n<a;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(r=0,o=e[n].c.k.length;r<o;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(s(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),p=function(){var e=[4,4,18];function t(e){var n,r,o;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(r=0,o=e[n].ks.k.length;r<o;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,o,a,s,l,c=e.length;for(r=0;r<c;r+=1){if((n=e[r]).hasMask){var u=n.masksProperties;for(o=0,a=u.length;o<a;o+=1)if(u[o].pt.k.i)u[o].pt.k.c=u[o].cl;else for(s=0,l=u[o].pt.k.length;s<l;s+=1)u[o].pt.k[s].s&&(u[o].pt.k[s].s[0].c=u[o].cl),u[o].pt.k[s].e&&(u[o].pt.k[s].e[0].c=u[o].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(s(e,t.v)&&(n(t.layers),t.assets)){var r,o=t.assets.length;for(r=0;r<o;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function f(e){0===e.t.a.length&&e.t.p}var h={};return h.completeData=function(n){n.__complete||(d(n),l(n),c(n),u(n),p(n),e(n.layers,n.assets),t(n.chars,n.assets),n.__complete=!0)},h.checkColors=d,h.checkChars=c,h.checkPathProperties=u,h.checkShapes=p,h.completeLayers=e,h}if(a.dataManager||(a.dataManager=t()),a.assetLoader||(a.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,r,o){var a,s=new XMLHttpRequest;try{s.responseType="json"}catch(e){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)r(a=e(s));else try{a=e(s),r(a)}catch(e){o&&o(e)}};try{s.open("GET",t,!0)}catch(e){s.open("GET",n+"/"+t,!0)}s.send()}}}()),"loadAnimation"===e.data.type)a.assetLoader.load(e.data.path,e.data.fullPath,function(t){a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})},function(){a.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var n=e.data.animation;a.dataManager.completeData(n),a.postMessage({id:e.data.id,payload:n,status:"success"})}else"loadData"===e.data.type&&a.assetLoader.load(e.data.path,e.data.fullPath,function(t){a.postMessage({id:e.data.id,payload:t,status:"success"})},function(){a.postMessage({id:e.data.id,status:"error"})})})).onmessage=function(e){var t=e.data,n=t.id,o=r[n];r[n]=null,"success"===t.status?o.onComplete(t.payload):o.onError&&o.onError()})}function c(e,t){var o="processId_"+(n+=1);return r[o]={onComplete:e,onError:t},o}return{loadAnimation:function(e,n,r){l();var o=c(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:o})},loadData:function(e,n,r){l();var o=c(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:o})},completeAnimation:function(e,n,r){l();var o=c(n,r);t.postMessage({type:"complete",animation:e,id:o})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var o=e.p;-1!==o.indexOf("images/")&&(o=o.split("/")[1]),r=t+o}else r=n+(e.u?e.u:"")+e.p;return r}function o(e){var t=0,n=setInterval((function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}).bind(this),50)}function a(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,(function(e){t.img=e,this._footageLoaded()}).bind(this),(function(){t.img={},this._footageLoaded()}).bind(this)),t}function s(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(e,t){this.imagesLoadedCb=t;var n,r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=r(t,this.assetsPath,this.path),o=createTag("img");o.crossOrigin="anonymous",o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",(function(){a.img=e,this._imageLoaded()}).bind(this),!1),o.src=n;var a={img:o,assetData:t};return a},createImageData:function(t){var n=r(t,this.assetsPath,this.path),o=createNS("image");isSafari?this.testImageLoaded(o):o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",(function(){a.img=e,this._imageLoaded()}).bind(this),!1),o.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(o):this._elementHelper.appendChild(o);var a={img:o,assetData:t};return a},imageLoaded:t,footageLoaded:n,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},s}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),(function(){this.removeEventListener(e,t)}).bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},o=0,a=0;a<n.length;a+=1)2===(t=n[a].split(":")).length&&(r[t[0]]=t[1].trim(),o+=1);if(0===o)throw Error();return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var o=t[r],a={time:o.tm,duration:o.dr};try{a.payload=JSON.parse(t[r].cm)}catch(n){try{a.payload=e(t[r].cm)}catch(e){a.payload={name:t[r].cm}}}n.push(a)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function _typeof$4(e){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var o=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===o?n.loop=!1:"true"===o?n.loop=!0:""!==o&&(n.loop=parseInt(o,10)),n.autoplay="false"!==(r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value),n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,o=r.length,a=e.layers,s=a.length;for(n=0;n<s;n+=1)for(t=0;t<o;){if(r[t].id===a[n].id){r[t]=a[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(t=0,o=e.assets.length;t<o;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){(!e||this.name===e)&&!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,t=0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){(!e||this.name===e)&&this.renderer&&(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path+(e.u?e.u:"")+e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,o=0,a=!0,s=!1;function l(e){for(var n=0,o=e.target;n<r;)t[n].animation===o&&(t.splice(n,1),n-=1,r-=1,o.isPaused||p()),n+=1}function c(e,n){if(!e)return null;for(var o=0;o<r;){if(t[o].elem===e&&null!==t[o].elem)return t[o].animation;o+=1}var a=new AnimationItem;return f(a,e),a.setData(e,n),a}function u(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r}function d(){o+=1,P()}function p(){o-=1}function f(e,n){e.addEventListener("destroy",l),e.addEventListener("_active",d),e.addEventListener("_idle",p),t.push({elem:n,animation:e}),r+=1}function h(e){var t=new AnimationItem;return f(t,null),t.setParams(e),t}function m(e,n){var o;for(o=0;o<r;o+=1)t[o].animation.setSpeed(e,n)}function g(e,n){var o;for(o=0;o<r;o+=1)t[o].animation.setDirection(e,n)}function v(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)}function y(e){var l,c=e-n;for(l=0;l<r;l+=1)t[l].animation.advanceTime(c);n=e,o&&!s?window.requestAnimationFrame(y):a=!0}function b(e){n=e,window.requestAnimationFrame(y)}function x(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)}function C(e,n,o){var a;for(a=0;a<r;a+=1)t[a].animation.goToAndStop(e,n,o)}function k(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)}function w(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)}function S(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)}function _(e,t,n){var r,o=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=o.length;for(r=0;r<a;r+=1)n&&o[r].setAttribute("data-bm-type",n),c(o[r],e);if(t&&0===a){n||(n="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var l=createTag("div");l.style.width="100%",l.style.height="100%",l.setAttribute("data-bm-type",n),s.appendChild(l),c(l,e)}}function E(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()}function P(){!s&&o&&a&&(window.requestAnimationFrame(b),a=!1)}function I(){s=!0}function T(){s=!1,P()}function D(e,n){var o;for(o=0;o<r;o+=1)t[o].animation.setVolume(e,n)}function A(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)}function R(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)}return e.registerAnimation=c,e.loadAnimation=h,e.setSpeed=m,e.setDirection=g,e.play=v,e.pause=x,e.stop=k,e.togglePause=w,e.searchAnimations=_,e.resize=E,e.goToAndStop=C,e.destroy=S,e.freeze=I,e.unfreeze=T,e.setVolume=D,e.mute=A,e.unmute=R,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=n;var t={};function n(e,n,r,o,a){var s=a||("bez_"+e+"_"+n+"_"+r+"_"+o).replace(/\./g,"p");if(t[s])return t[s];var l=new y([e,n,r,o]);return t[s]=l,l}var r=4,o=.001,a=1e-7,s=10,l=11,c=.1,u="function"==typeof Float32Array;function d(e,t){return 1-3*t+3*e}function p(e,t){return 3*t-6*e}function f(e){return 3*e}function h(e,t,n){return((d(t,n)*e+p(t,n))*e+f(t))*e}function m(e,t,n){return 3*d(t,n)*e*e+2*p(t,n)*e+f(t)}function g(e,t,n,r,o){var l,c,u=0;do(l=h(c=t+(n-t)/2,r,o)-e)>0?n=c:t=c;while(Math.abs(l)>a&&++u<s);return c}function v(e,t,n,o){for(var a=0;a<r;++a){var s=m(t,n,o);if(0===s)break;var l=h(t,n,o)-e;t-=l/s}return t}function y(e){this._p=e,this._mSampleValues=u?new Float32Array(l):Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],o=this._p[3];return(this._precomputed||this._precompute(),t===n&&r===o)?e:0===e?0:1===e?1:h(this._getTForX(e),n,o)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,(e!==t||n!==r)&&this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<l;++n)this._mSampleValues[n]=h(n*c,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],r=this._mSampleValues,a=0,s=1,u=l-1;s!==u&&r[s]<=e;++s)a+=c;var d=a+(e-r[--s])/(r[s+1]-r[s])*c,p=m(d,t,n);return p>=o?v(e,d,t,n):0===p?d:g(e,a,a+c,t,n)}},e}(),pooling=function(){return{double:function(e){return e.concat(createSizedArray(e.length))}}}(),poolFactory=function(){return function(e,t,n){var r=0,o=e,a=createSizedArray(o);return{newElement:function(){var e;return r?(r-=1,e=a[r]):e=t(),e},release:function(e){r===o&&(a=pooling.double(a),o*=2),n&&n(e),a[r]=e,r+=1}}}}(),bezierLengthPool=function(){return poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})}(),segmentsLengthPool=function(){return poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0})}();function bezFunction(){var e=Math;function t(e,t,n,r,o,a){var s=e*r+t*o+n*a-o*r-a*e-n*t;return s>-.001&&s<.001}function n(n,r,o,a,s,l,c,u,d){if(0===o&&0===l&&0===d)return t(n,r,a,s,c,u);var p,f=e.sqrt(e.pow(a-n,2)+e.pow(s-r,2)+e.pow(l-o,2)),h=e.sqrt(e.pow(c-n,2)+e.pow(u-r,2)+e.pow(d-o,2)),m=e.sqrt(e.pow(c-a,2)+e.pow(u-s,2)+e.pow(d-l,2));return(p=f>h?f>m?f-h-m:m-h-f:m>h?m-h-f:h-f-m)>-1e-4&&p<1e-4}var r=function(){return function(e,t,n,r){var o,a,s,l,c,u,d=getDefaultCurveSegments(),p=0,f=[],h=[],m=bezierLengthPool.newElement();for(o=0,s=n.length;o<d;o+=1){for(a=0,c=o/(d-1),u=0;a<s;a+=1)l=bmPow(1-c,3)*e[a]+3*bmPow(1-c,2)*c*n[a]+3*(1-c)*bmPow(c,2)*r[a]+bmPow(c,3)*t[a],f[a]=l,null!==h[a]&&(u+=bmPow(f[a]-h[a],2)),h[a]=f[a];u&&(p+=u=bmSqrt(u)),m.percents[o]=c,m.lengths[o]=p}return m.addedLength=p,m}}();function o(e){var t,n=segmentsLengthPool.newElement(),o=e.c,a=e.v,s=e.o,l=e.i,c=e._length,u=n.lengths,d=0;for(t=0;t<c-1;t+=1)u[t]=r(a[t],a[t+1],s[t],l[t+1]),d+=u[t].addedLength;return o&&c&&(u[t]=r(a[t],a[0],s[t],l[0]),d+=u[t].addedLength),n.totalLength=d,n}function a(e){this.segmentLength=0,this.points=Array(e)}function s(e,t){this.partialLength=e,this.point=t}var l=function(){var e={};return function(n,r,o,l){var c=(n[0]+"_"+n[1]+"_"+r[0]+"_"+r[1]+"_"+o[0]+"_"+o[1]+"_"+l[0]+"_"+l[1]).replace(/\./g,"p");if(!e[c]){var u,d,p,f,h,m,g,v=getDefaultCurveSegments(),y=0,b=null;2===n.length&&(n[0]!==r[0]||n[1]!==r[1])&&t(n[0],n[1],r[0],r[1],n[0]+o[0],n[1]+o[1])&&t(n[0],n[1],r[0],r[1],r[0]+l[0],r[1]+l[1])&&(v=2);var x=new a(v);for(u=0,p=o.length;u<v;u+=1){for(d=0,g=createSizedArray(p),h=u/(v-1),m=0;d<p;d+=1)f=bmPow(1-h,3)*n[d]+3*bmPow(1-h,2)*h*(n[d]+o[d])+3*(1-h)*bmPow(h,2)*(r[d]+l[d])+bmPow(h,3)*r[d],g[d]=f,null!==b&&(m+=bmPow(g[d]-b[d],2));y+=m=bmSqrt(m),x.points[u]=new s(m,g),b=g}x.segmentLength=y,e[c]=x}return e[c]}}();function c(e,t){var n=t.percents,r=t.lengths,o=n.length,a=bmFloor((o-1)*e),s=e*t.addedLength,l=0;if(a===o-1||0===a||s===r[a])return n[a];for(var c=r[a]>s?-1:1,u=!0;u;)if(r[a]<=s&&r[a+1]>s?(l=(s-r[a])/(r[a+1]-r[a]),u=!1):a+=c,a<0||a>=o-1){if(a===o-1)return n[a];u=!1}return n[a]+(n[a+1]-n[a])*l}function u(t,n,r,o,a,s){var l=c(a,s),u=1-l;return[e.round((u*u*u*t[0]+(l*u*u+u*l*u+u*u*l)*r[0]+(l*l*u+u*l*l+l*u*l)*o[0]+l*l*l*n[0])*1e3)/1e3,e.round((u*u*u*t[1]+(l*u*u+u*l*u+u*u*l)*r[1]+(l*l*u+u*l*l+l*u*l)*o[1]+l*l*l*n[1])*1e3)/1e3]}var d=createTypedArray("float32",8);return{getSegmentsLength:o,getNewSegment:function(t,n,r,o,a,s,l){a<0?a=0:a>1&&(a=1);var u,p=c(a,l),f=c(s=s>1?1:s,l),h=t.length,m=1-p,g=1-f,v=m*m*m,y=p*m*m*3,b=p*p*m*3,x=p*p*p,C=m*m*g,k=p*m*g+m*p*g+m*m*f,w=p*p*g+m*p*f+p*m*f,S=p*p*f,_=m*g*g,E=p*g*g+m*f*g+m*g*f,P=p*f*g+m*f*f+p*g*f,I=p*f*f,T=g*g*g,D=f*g*g+g*f*g+g*g*f,A=f*f*g+g*f*f+f*g*f,R=f*f*f;for(u=0;u<h;u+=1)d[4*u]=e.round((v*t[u]+y*r[u]+b*o[u]+x*n[u])*1e3)/1e3,d[4*u+1]=e.round((C*t[u]+k*r[u]+w*o[u]+S*n[u])*1e3)/1e3,d[4*u+2]=e.round((_*t[u]+E*r[u]+P*o[u]+I*n[u])*1e3)/1e3,d[4*u+3]=e.round((T*t[u]+D*r[u]+A*o[u]+R*n[u])*1e3)/1e3;return d},getPointInSegment:u,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:n}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function n(e,t){var n,s,l,c,u,d=this.offsetTime;"multidimensional"===this.propType&&(x=createTypedArray("float32",this.pv.length));for(var p=t.lastIndex,f=p,h=this.keyframes.length-1,m=!0;m;){if(C=this.keyframes[f],k=this.keyframes[f+1],f===h-1&&e>=k.t-d){C.h&&(C=k),p=0;break}if(k.t-d>e){p=f;break}f<h-1?f+=1:(p=0,m=!1)}w=this.keyframesMetadata[f]||{};var g=k.t-d,v=C.t-d;if(C.to){w.bezierData||(w.bezierData=bez.buildBezierData(C.s,k.s||C.e,C.to,C.ti));var y=w.bezierData;if(e>=g||e<v){var b=e>=g?y.points.length-1:0;for(S=0,_=y.points[b].point.length;S<_;S+=1)x[S]=y.points[b].point[S]}else{w.__fnct?I=w.__fnct:w.__fnct=I=BezierFactory.getBezierEasing(C.o.x,C.o.y,C.i.x,C.i.y,C.n).get;var x,C,k,w,S,_,E,P,I,T,D,A=I((e-v)/(g-v)),R=y.segmentLength*A,N=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(P=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,m=!0,E=y.points.length;m;){if(N+=y.points[P].partialLength,0===R||0===A||P===y.points.length-1){for(S=0,_=y.points[P].point.length;S<_;S+=1)x[S]=y.points[P].point[S];break}if(R>=N&&R<N+y.points[P+1].partialLength){for(S=0,D=(R-N)/y.points[P+1].partialLength,_=y.points[P].point.length;S<_;S+=1)x[S]=y.points[P].point[S]+(y.points[P+1].point[S]-y.points[P].point[S])*D;break}P<E-1?P+=1:m=!1}t._lastPoint=P,t._lastAddedLength=N-y.points[P].partialLength,t._lastKeyframeIndex=f}}else if(h=C.s.length,T=k.s||C.e,this.sh&&1!==C.h)e>=g?(x[0]=T[0],x[1]=T[1],x[2]=T[2]):e<=v?(x[0]=C.s[0],x[1]=C.s[1],x[2]=C.s[2]):o(x,r(a(C.s),a(T),(e-v)/(g-v)));else for(f=0;f<h;f+=1)1!==C.h&&(e>=g?A=1:e<v?A=0:(C.o.x.constructor===Array?(w.__fnct||(w.__fnct=[]),w.__fnct[f]?I=w.__fnct[f]:(n=void 0===C.o.x[f]?C.o.x[0]:C.o.x[f],s=void 0===C.o.y[f]?C.o.y[0]:C.o.y[f],l=void 0===C.i.x[f]?C.i.x[0]:C.i.x[f],c=void 0===C.i.y[f]?C.i.y[0]:C.i.y[f],I=BezierFactory.getBezierEasing(n,s,l,c).get,w.__fnct[f]=I)):w.__fnct?I=w.__fnct:(n=C.o.x,s=C.o.y,l=C.i.x,c=C.i.y,I=BezierFactory.getBezierEasing(n,s,l,c).get,C.keyframeMetadata=I),A=I((e-v)/(g-v)))),T=k.s||C.e,u=1===C.h?C.s[f]:C.s[f]+(T[f]-C.s[f])*A,"multidimensional"===this.propType?x[f]=u:x=u;return t.lastIndex=p,x}function r(e,t,n){var r,o,a,s,l,c=[],u=e[0],d=e[1],p=e[2],f=e[3],h=t[0],m=t[1],g=t[2],v=t[3];return(o=u*h+d*m+p*g+f*v)<0&&(o=-o,h=-h,m=-m,g=-g,v=-v),1-o>1e-6?(a=Math.sin(r=Math.acos(o)),s=Math.sin((1-n)*r)/a,l=Math.sin(n*r)/a):(s=1-n,l=n),c[0]=s*u+l*h,c[1]=s*d+l*m,c[2]=s*p+l*g,c[3]=s*f+l*v,c}function o(e,t){var n=t[0],r=t[1],o=t[2],a=t[3],s=Math.atan2(2*r*a-2*n*o,1-2*r*r-2*o*o),l=Math.asin(2*n*r+2*o*a),c=Math.atan2(2*n*a-2*r*o,1-2*n*n-2*o*o);e[0]=s/degToRads,e[1]=l/degToRads,e[2]=c/degToRads}function a(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,o=Math.cos(t/2),a=Math.cos(n/2),s=Math.cos(r/2),l=Math.sin(t/2),c=Math.sin(n/2),u=Math.sin(r/2),d=o*a*s-l*c*u;return[l*c*s+o*a*u,l*a*s+o*c*u,o*c*s-l*a*u,d]}function s(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<n&&t<n))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var o=this.interpolateValue(t,this._caching);this.pv=o}return this._caching.lastFrame=t,this.pv}function l(e){var n;if("unidimensional"===this.propType)n=e*this.mult,t(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,o=this.v.length;r<o;)n=e[r]*this.mult,t(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function c(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function u(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function d(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.addEffect=u}function p(e,t,n,r){this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o,a=t.k.length;for(o=0,this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a);o<a;o+=1)this.v[o]=t.k[o]*this.mult,this.pv[o]=t.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=c,this.setVValue=l,this.addEffect=u}function f(t,r,o,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=o||1,this.elem=t,this.container=a,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.effectsSequence=[s.bind(this)],this.addEffect=u}function h(t,r,o,a){this.propType="multidimensional";var d,p,f,h,m,g=r.k.length;for(d=0;d<g-1;d+=1)r.k[d].to&&r.k[d].s&&r.k[d+1]&&r.k[d+1].s&&(p=r.k[d].s,f=r.k[d+1].s,h=r.k[d].to,m=r.k[d].ti,(2===p.length&&(p[0]!==f[0]||p[1]!==f[1])&&bez.pointOnLine2D(p[0],p[1],f[0],f[1],p[0]+h[0],p[1]+h[1])&&bez.pointOnLine2D(p[0],p[1],f[0],f[1],f[0]+m[0],f[1]+m[1])||3===p.length&&(p[0]!==f[0]||p[1]!==f[1]||p[2]!==f[2])&&bez.pointOnLine3D(p[0],p[1],p[2],f[0],f[1],f[2],p[0]+h[0],p[1]+h[1],p[2]+h[2])&&bez.pointOnLine3D(p[0],p[1],p[2],f[0],f[1],f[2],f[0]+m[0],f[1]+m[1],f[2]+m[2]))&&(r.k[d].to=null,r.k[d].ti=null),p[0]===f[0]&&p[1]===f[1]&&0===h[0]&&0===h[1]&&0===m[0]&&0===m[1]&&(2===p.length||p[2]===f[2]&&0===h[2]&&0===m[2])&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[s.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=o||1,this.elem=t,this.container=a,this.comp=t.comp,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.frameId=-1;var v=r.k[0].s.length;for(d=0,this.v=createTypedArray("float32",v),this.pv=createTypedArray("float32",v);d<v;d+=1)this.v[d]=e,this.pv[d]=e;this._caching={lastFrame:e,lastIndex:0,value:createTypedArray("float32",v)},this.addEffect=u}return{getProp:function(e,t,n,r,o){var a;if(t.k.length)if("number"==typeof t.k[0])a=new p(e,t,r,o);else switch(n){case 0:a=new f(e,t,r,o);break;case 1:a=new h(e,t,r,o)}else a=new d(e,t,r,o);return a.effectsSequence.length&&o.addDynamicProperty(a),a}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var e,t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){return poolFactory(8,function(){return createTypedArray("float32",2)})}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,o){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}a[r]&&(!a[r]||o)||(a[r]=pointPool.newElement()),a[r][0]=e,a[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,o,a,s,l){this.setXYAt(e,t,"v",s,l),this.setXYAt(n,r,"o",s,l),this.setXYAt(o,a,"i",s,l)},ShapePath.prototype.reverse=function(){var e,t=new ShapePath;t.setPathData(this.c,this._length);var n=this.v,r=this.o,o=this.i,a=0;this.c&&(t.setTripleAt(n[0][0],n[0][1],o[0][0],o[0][1],r[0][0],r[0][1],0,!1),a=1);var s=this._length-1,l=this._length;for(e=a;e<l;e+=1)t.setTripleAt(n[s][0],n[s][1],o[s][0],o[s][1],r[s][0],r[s][1],e,!1),s-=1;return t};var shapePool=function(){function e(e){var n,r=t.newElement(),o=void 0===e._length?e.v.length:e._length;for(r.setLength(o),r.c=e.c,n=0;n<o;n+=1)r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],n);return r}var t=poolFactory(4,function(){return new ShapePath},function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1});return t.clone=e,t}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:o,release:a},t=0,n=4,r=createSizedArray(4);function o(){var e;return t?(t-=1,e=r[t]):e=new ShapeCollection,e}function a(e){var o,a=e._length;for(o=0;o<a;o+=1)shapePool.release(e.shapes[o]);e._length=0,t===n&&(r=pooling.double(r),n*=2),r[t]=e,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,n){var r=n.lastIndex,o=this.keyframes;if(e<o[0].t-this.offsetTime)a=o[0].s[0],l=!0,r=0;else if(e>=o[o.length-1].t-this.offsetTime)a=o[o.length-1].s?o[o.length-1].s[0]:o[o.length-2].e[0],l=!0;else{for(var a,s,l,c,u,d,p,f,h,m,g,v,y,b=r,x=o.length-1,C=!0;C&&(m=o[b],!((g=o[b+1]).t-this.offsetTime>e));)b<x-1?b+=1:C=!1;v=this.keyframesMetadata[b]||{},l=1===m.h,r=b,l||(e>=g.t-this.offsetTime?f=1:e<m.t-this.offsetTime?f=0:(v.__fnct?y=v.__fnct:v.__fnct=y=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,f=y((e-(m.t-this.offsetTime))/(g.t-this.offsetTime-(m.t-this.offsetTime)))),s=g.s?g.s[0]:m.e[0]),a=m.s[0]}for(c=0,d=t._length,p=a.i[0].length,n.lastIndex=r;c<d;c+=1)for(u=0;u<p;u+=1)h=l?a.i[c][u]:a.i[c][u]+(s.i[c][u]-a.i[c][u])*f,t.i[c][u]=h,h=l?a.o[c][u]:a.o[c][u]+(s.o[c][u]-a.o[c][u])*f,t.o[c][u]=h,h=l?a.v[c][u]:a.v[c][u]+(s.v[c][u]-a.v[c][u])*f,t.v[c][u]=h}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,o=this._caching.lastFrame;return o!==e&&(o<n&&t<n||o>r&&t>r)||(this._caching.lastIndex=o<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function o(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0}function a(e){o(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var e,t,n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var o=3===n?t.pt.k:t.ks.k;this.v=shapePool.clone(o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function c(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function u(t,o,a){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===a?o.pt.k:o.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}l.prototype.interpolateShape=t,l.prototype.getValue=s,l.prototype.setVValue=a,l.prototype.addEffect=c,u.prototype.getValue=s,u.prototype.interpolateShape=t,u.prototype.setVValue=a,u.prototype.addEffect=c;var d=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,o=this.s.v[1]/2,a=3!==this.d,s=this.v;s.v[0][0]=t,s.v[0][1]=n-o,s.v[1][0]=a?t+r:t-r,s.v[1][1]=n,s.v[2][0]=t,s.v[2][1]=n+o,s.v[3][0]=a?t-r:t+r,s.v[3][1]=n,s.i[0][0]=a?t-r*e:t+r*e,s.i[0][1]=n-o,s.i[1][0]=a?t+r:t-r,s.i[1][1]=n-o*e,s.i[2][0]=a?t+r*e:t-r*e,s.i[2][1]=n+o,s.i[3][0]=a?t-r:t+r,s.i[3][1]=n+o*e,s.o[0][0]=a?t+r*e:t-r*e,s.o[0][1]=n-o,s.o[1][0]=a?t+r:t-r,s.o[1][1]=n+o*e,s.o[2][0]=a?t-r*e:t+r*e,s.o[2][1]=n+o,s.o[3][0]=a?t-r:t+r,s.o[3][1]=n-o*e}},extendPrototype([DynamicPropertyContainer],t),t}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,o=2*Math.floor(this.pt.v),a=2*Math.PI/o,s=!0,l=this.or.v,c=this.ir.v,u=this.os.v,d=this.is.v,p=2*Math.PI*l/(2*o),f=2*Math.PI*c/(2*o),h=-Math.PI/2;h+=this.r.v;var m=3===this.data.d?-1:1;for(e=0,this.v._length=0;e<o;e+=1){t=s?l:c,n=s?u:d,r=s?p:f;var g=t*Math.cos(h),v=t*Math.sin(h),y=0===g&&0===v?0:v/Math.sqrt(g*g+v*v),b=0===g&&0===v?0:-g/Math.sqrt(g*g+v*v);g+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(g,v,g-y*r*n*m,v-b*r*n*m,g+y*r*n*m,v+b*r*n*m,e,!0),s=!s,h+=a*m}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,o=this.os.v,a=2*Math.PI*r/(4*t),s=-(.5*Math.PI),l=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var c=r*Math.cos(s),u=r*Math.sin(s),d=0===c&&0===u?0:u/Math.sqrt(c*c+u*u),p=0===c&&0===u?0:-c/Math.sqrt(c*c+u*u);c+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(c,u,c-d*a*o*l,u-p*a*o*l,c+d*a*o*l,u+p*a*o*l,e,!0),s+=n*l}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),f=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,o=bmMin(n,r,this.r.v),a=o*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+o,e+n,t-r+o,e+n,t-r+a,0,!0),this.v.setTripleAt(e+n,t+r-o,e+n,t+r-a,e+n,t+r-o,1,!0),0!==o?(this.v.setTripleAt(e+n-o,t+r,e+n-o,t+r,e+n-a,t+r,2,!0),this.v.setTripleAt(e-n+o,t+r,e-n+a,t+r,e-n+o,t+r,3,!0),this.v.setTripleAt(e-n,t+r-o,e-n,t+r-o,e-n,t+r-a,4,!0),this.v.setTripleAt(e-n,t-r+o,e-n,t-r+a,e-n,t-r+o,5,!0),this.v.setTripleAt(e-n+o,t-r,e-n+o,t-r,e-n+a,t-r,6,!0),this.v.setTripleAt(e+n-o,t-r,e+n-a,t-r,e+n-o,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+a,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+a,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+o,e+n,t-r+a,e+n,t-r+o,0,!0),0!==o?(this.v.setTripleAt(e+n-o,t-r,e+n-o,t-r,e+n-a,t-r,1,!0),this.v.setTripleAt(e-n+o,t-r,e-n+a,t-r,e-n+o,t-r,2,!0),this.v.setTripleAt(e-n,t-r+o,e-n,t-r+o,e-n,t-r+a,3,!0),this.v.setTripleAt(e-n,t+r-o,e-n,t+r-a,e-n,t+r-o,4,!0),this.v.setTripleAt(e-n+o,t+r,e-n+o,t+r,e-n+a,t+r,5,!0),this.v.setTripleAt(e+n-o,t+r,e+n-a,t+r,e+n-o,t+r,6,!0),this.v.setTripleAt(e+n,t+r-o,e+n,t+r-o,e+n,t+r-a,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+a,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-a,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-a,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}();function h(){return l}function m(){return u}var g={};return g.getShapeProp=function(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new u(e,t,n):new l(e,t,n):5===n?r=new f(e,t):6===n?r=new d(e,t):7===n&&(r=new p(e,t)),r.k&&e.addDynamicProperty(r),r},g.getConstructorFunction=h,g.getKeyframedConstructorFunction=m,g}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function s(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(1,0,0,0,0,r,-o,0,0,o,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,0,o,0,0,1,0,0,-o,0,r,0,0,0,0,1)}function c(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function d(e,t){return this.shear(n(e),n(t))}function p(r,o){var a=e(o),s=t(o);return this._t(a,s,0,0,-s,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(a,-s,0,0,s,a,0,0,0,0,1,0,0,0,0,1)}function f(e,t,n){return(n||0===n||(n=1),1===e&&1===t&&1===n)?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function h(e,t,n,r,o,a,s,l,c,u,d,p,f,h,m,g){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=o,this.props[5]=a,this.props[6]=s,this.props[7]=l,this.props[8]=c,this.props[9]=u,this.props[10]=d,this.props[11]=p,this.props[12]=f,this.props[13]=h,this.props[14]=m,this.props[15]=g,this}function m(e,t,n){return(n=n||0,0!==e||0!==t||0!==n)?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function g(e,t,n,r,o,a,s,l,c,u,d,p,f,h,m,g){var v=this.props;if(1===e&&0===t&&0===n&&0===r&&0===o&&1===a&&0===s&&0===l&&0===c&&0===u&&1===d&&0===p)return v[12]=v[12]*e+v[15]*f,v[13]=v[13]*a+v[15]*h,v[14]=v[14]*d+v[15]*m,v[15]*=g,this._identityCalculated=!1,this;var y=v[0],b=v[1],x=v[2],C=v[3],k=v[4],w=v[5],S=v[6],_=v[7],E=v[8],P=v[9],I=v[10],T=v[11],D=v[12],A=v[13],R=v[14],N=v[15];return v[0]=y*e+b*o+x*c+C*f,v[1]=y*t+b*a+x*u+C*h,v[2]=y*n+b*s+x*d+C*m,v[3]=y*r+b*l+x*p+C*g,v[4]=k*e+w*o+S*c+_*f,v[5]=k*t+w*a+S*u+_*h,v[6]=k*n+w*s+S*d+_*m,v[7]=k*r+w*l+S*p+_*g,v[8]=E*e+P*o+I*c+T*f,v[9]=E*t+P*a+I*u+T*h,v[10]=E*n+P*s+I*d+T*m,v[11]=E*r+P*l+I*p+T*g,v[12]=D*e+A*o+R*c+N*f,v[13]=D*t+A*a+R*u+N*h,v[14]=D*n+A*s+R*d+N*m,v[15]=D*r+A*l+R*p+N*g,this._identityCalculated=!1,this}function v(){return this._identityCalculated||(this._identity=1===this.props[0]&&0===this.props[1]&&0===this.props[2]&&0===this.props[3]&&0===this.props[4]&&1===this.props[5]&&0===this.props[6]&&0===this.props[7]&&0===this.props[8]&&0===this.props[9]&&1===this.props[10]&&0===this.props[11]&&0===this.props[12]&&0===this.props[13]&&0===this.props[14]&&1===this.props[15],this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function x(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function C(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function k(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function w(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function S(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function _(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,o=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,l=new Matrix;return l.props[0]=t,l.props[1]=n,l.props[4]=r,l.props[5]=o,l.props[12]=a,l.props[13]=s,l}function E(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function P(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=E(e[t]);return r}function I(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var o=this.props[0],a=this.props[1],s=this.props[4],l=this.props[5],c=this.props[12],u=this.props[13];r[0]=e[0]*o+e[1]*s+c,r[1]=e[0]*a+e[1]*l+u,r[2]=t[0]*o+t[1]*s+c,r[3]=t[0]*a+t[1]*l+u,r[4]=n[0]*o+n[1]*s+c,r[5]=n[0]*a+n[1]*l+u}return r}function T(e,t,n){var r;return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function D(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round((e*n[0]+t*n[4]+n[12])*100)/100+","+Math.round((e*n[1]+t*n[5]+n[13])*100)/100}function A(){for(var e=0,t=this.props,n="matrix3d(",o=1e4;e<16;)n+=r(t[e]*o)/o,n+=15===e?")":",",e+=1;return n}function R(e){var t=1e4;return e<1e-6&&e>0||e>-1e-6&&e<0?r(e*t)/t:e}function N(){var e=this.props;return"matrix("+R(e[0])+","+R(e[1])+","+R(e[4])+","+R(e[5])+","+R(e[12])+","+R(e[13])+")"}return function(){this.reset=o,this.rotate=a,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=d,this.skewFromAxis=p,this.shear=u,this.scale=f,this.setTransform=h,this.translate=m,this.transform=g,this.applyToPoint=C,this.applyToX=k,this.applyToY=w,this.applyToZ=S,this.applyToPointArray=T,this.applyToTriplePoints=I,this.applyToPointStringified=D,this.toCSS=A,this.to2dCSS=N,this.clone=b,this.cloneFromProps=x,this.equals=y,this.inversePoints=P,this.inversePoint=E,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"u">typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.6";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"===_typeof$3(exports)||"function"==typeof define&&define.amd||(window.bodymovin=lottie)}catch(err){}var ShapeModifiers=function(){var e={},t={};function n(e,n,r){return new t[e](n,r)}return e.registerModifier=function e(e,n){t[e]||(t[e]=n)},e.getModifier=n,e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,o){var a,s,l,c=[];t<=1?c.push({s:e,e:t}):e>=1?c.push({s:e-1,e:t-1}):(c.push({s:e,e:1}),c.push({s:0,e:t-1}));var u=[],d=c.length;for(a=0;a<d;a+=1)(s=c[a]).e*o<r||s.s*o>r+n||(l=s.s*o<=r?0:(s.s*o-r)/n,u.push([l,s.e*o>=r+n?1:(s.e*o-r)/n]));return u.length||u.push([0,0]),u},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){if(this._mdf||e){var t=this.o.v%360/360;if(t<0&&(t+=1),(a=this.s.v>1?1+t:this.s.v<0?0+t:this.s.v+t)>(s=this.e.v>1?1+t:this.e.v<0?0+t:this.e.v+t)){var n=a;a=s,s=n}a=1e-4*Math.round(1e4*a),s=1e-4*Math.round(1e4*s),this.sValue=a,this.eValue=s}else a=this.sValue,s=this.eValue;var r=this.shapes.length,o=0;if(s===a)for(c=0;c<r;c+=1)this.shapes[c].localShapeCollection.releaseShapes(),this.shapes[c].shape._mdf=!0,this.shapes[c].shape.paths=this.shapes[c].localShapeCollection,this._mdf&&(this.shapes[c].pathsData.length=0);else if((1!==s||0!==a)&&(0!==s||1!==a)){var a,s,l,c,u,d,p,f,h,m,g,v,y=[];for(c=0;c<r;c+=1)if((m=this.shapes[c]).shape._mdf||this._mdf||e||2===this.m){if(d=(l=m.shape.paths)._length,h=0,!m.shape._mdf&&m.pathsData.length)h=m.totalShapeLength;else{for(u=0,p=this.releasePathsData(m.pathsData);u<d;u+=1)f=bez.getSegmentsLength(l.shapes[u]),p.push(f),h+=f.totalLength;m.totalShapeLength=h,m.pathsData=p}o+=h,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var b=a,x=s,C=0;for(c=r-1;c>=0;c-=1)if((m=this.shapes[c]).shape._mdf){for((g=m.localShapeCollection).releaseShapes(),2===this.m&&r>1?(v=this.calculateShapeEdges(a,s,m.totalShapeLength,C,o),C+=m.totalShapeLength):v=[[b,x]],d=v.length,u=0;u<d;u+=1){b=v[u][0],x=v[u][1],y.length=0,x<=1?y.push({s:m.totalShapeLength*b,e:m.totalShapeLength*x}):b>=1?y.push({s:m.totalShapeLength*(b-1),e:m.totalShapeLength*(x-1)}):(y.push({s:m.totalShapeLength*b,e:m.totalShapeLength}),y.push({s:0,e:m.totalShapeLength*(x-1)}));var k=this.addShapes(m,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var w=k.pop();this.addPaths(k,g),k=this.addShapes(m,y[1],w)}else this.addPaths(k,g),k=this.addShapes(m,y[1]);this.addPaths(k,g)}}m.shape.paths=g}}else if(this._mdf)for(c=0;c<r;c+=1)this.shapes[c].pathsData.length=0,this.shapes[c].shape._mdf=!0},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,o,a,s){o.setXYAt(t[0],t[1],"o",a),o.setXYAt(n[0],n[1],"i",a+1),s&&o.setXYAt(e[0],e[1],"v",a),o.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,o,a,s,l,c,u,d,p=e.pathsData,f=e.shape.paths.shapes,h=e.shape.paths._length,m=0,g=[],v=!0;for(n?(l=n._length,d=n._length):(n=shapePool.newElement(),l=0,d=0),g.push(n),r=0;r<h;r+=1){for(o=1,c=p[r].lengths,n.c=f[r].c,a=f[r].c?c.length:c.length+1;o<a;o+=1)if(m+(s=c[o-1]).addedLength<t.s)m+=s.addedLength,n.c=!1;else if(m>t.e){n.c=!1;break}else t.s<=m&&t.e>=m+s.addedLength?(this.addSegment(f[r].v[o-1],f[r].o[o-1],f[r].i[o],f[r].v[o],n,l,v),v=!1):(u=bez.getNewSegment(f[r].v[o-1],f[r].v[o],f[r].o[o-1],f[r].i[o],(t.s-m)/s.addedLength,(t.e-m)/s.addedLength,c[o-1]),this.addSegmentFromArray(u,n,l,v),v=!1,n.c=!1),m+=s.addedLength,l+=1;if(f[r].c&&c.length){if(s=c[o-1],m<=t.e){var y=c[o-1].addedLength;t.s<=m&&t.e>=m+y?(this.addSegment(f[r].v[o-1],f[r].o[o-1],f[r].i[0],f[r].v[0],n,l,v),v=!1):(u=bez.getNewSegment(f[r].v[o-1],f[r].v[0],f[r].o[o-1],f[r].i[0],(t.s-m)/y,(t.e-m)/y,c[o-1]),this.addSegmentFromArray(u,n,l,v),v=!1,n.c=!1)}else n.c=!1;m+=s.addedLength,l+=1}if(n._length&&(n.setXYAt(n.v[d][0],n.v[d][1],"i",d),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),m>t.e)break;r<h-1&&(n=shapePool.newElement(),v=!0,g.push(n),l=0)}return g},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n,r,o,a,s,l,c=t/100,u=[0,0],d=e._length,p=0;for(p=0;p<d;p+=1)u[0]+=e.v[p][0],u[1]+=e.v[p][1];u[0]/=d,u[1]/=d;var f=shapePool.newElement();for(p=0,f.c=e.c;p<d;p+=1)n=e.v[p][0]+(u[0]-e.v[p][0])*c,r=e.v[p][1]+(u[1]-e.v[p][1])*c,o=e.o[p][0]+-((u[0]-e.o[p][0])*c),a=e.o[p][1]+-((u[1]-e.o[p][1])*c),s=e.i[p][0]+-((u[0]-e.i[p][0])*c),l=e.i[p][1]+-((u[1]-e.i[p][1])*c),f.setTripleAt(n,r,o,a,s,l,p);return f},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,o,a,s,l=this.shapes.length,c=this.amount.v;if(0!==c)for(n=0;n<l;n+=1){if(s=(a=this.shapes[n]).localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!e))for(s.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,o=a.shape.paths._length,r=0;r<o;r+=1)s.addShape(this.processPath(t[r],c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0}function n(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,o=t.or.k.length;for(r=0;r<o;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return n.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),o=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),o=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,o=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){var r=[],o=[],a=this.px,s=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),r[1]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),o[0]=a.getValueAtTime(a.keyframes[0].t/n,0),o[1]=s.getValueAtTime(s.keyframes[0].t/n,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),r[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),o[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0),o[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0)):(r=[a.pv,s.pv],o[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime),o[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime))}else r=o=e;this.v.rotate(-Math.atan2(r[1]-o[1],r[0]-o[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k){if(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk)if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;else this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],n),n.prototype.addDynamicProperty=t,n.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,t,r){return new n(e,t,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",o=t.length,a=0;a<o;a+=1)switch(t[a].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,o,a){var s=a?-1:1,l=r.s.v[0]+(1-r.s.v[0])*(1-o),c=r.s.v[1]+(1-r.s.v[1])*(1-o);e.translate(r.p.v[0]*s*o,r.p.v[1]*s*o,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*s*o),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(a?1/l:l,a?1/c:c),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t=!1;if(this._mdf||e){var n,r,o,a,s,l,c,u,d=Math.ceil(this.c.v);if(this._groups.length<d){for(;this._groups.length<d;){var p={it:this.cloneElements(this._elements),ty:"gr"};p.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,p),this._groups.splice(0,0,p),this._currentCopies+=1}this.elem.reloadShapes(),t=!0}for(o=0,s=0;o<=this._groups.length-1;o+=1){if(l=s<d,this._groups[o]._render=l,this.changeGroupRender(this._groups[o].it,l),!l){var f=this.elemsData[o].it,h=f[f.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}s+=1}this._currentCopies=d;var m=this.o.v,g=m%1,v=m>0?Math.floor(m):Math.ceil(m),y=this.pMatrix.props,b=this.rMatrix.props,x=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var C=0;if(m>0){for(;C<v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,g,!1),C+=g)}else if(m<0){for(;C>v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-g,!0),C-=g)}for(o=1===this.data.m?0:this._currentCopies-1,a=1===this.data.m?1:-1,s=this._currentCopies;s;){if(u=(r=(n=this.elemsData[o].it)[n.length-1].transform.mProps.v.props).length,n[n.length-1].transform.mProps._mdf=!0,n[n.length-1].transform.op._mdf=!0,n[n.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(o/(this._currentCopies-1)),0!==C){for((0!==o&&1===a||o!==this._currentCopies-1&&-1===a)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),c=0;c<u;c+=1)r[c]=this.matrix.props[c];this.matrix.reset()}else for(this.matrix.reset(),c=0;c<u;c+=1)r[c]=this.matrix.props[c];C+=1,s-=1,o+=a}}else for(s=this._currentCopies,o=0,a=1;s;)r=(n=this.elemsData[o].it)[n.length-1].transform.mProps.v.props,n[n.length-1].transform.mProps._mdf=!1,n[n.length-1].transform.op._mdf=!1,s-=1,o+=a;return t},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,r,o,a,s,l,c,u,d,p,f,h,m,g=shapePool.newElement();g.c=e.c;var v=e._length,y=0;for(n=0;n<v;n+=1)r=e.v[n],a=e.o[n],o=e.i[n],r[0]===a[0]&&r[1]===a[1]&&r[0]===o[0]&&r[1]===o[1]?0!==n&&n!==v-1||e.c?(s=0===n?e.v[v-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=h=r[0]+(s[0]-r[0])*c,d=m=r[1]-(r[1]-s[1])*c,p=u-(u-r[0])*roundCorner,f=d-(d-r[1])*roundCorner,g.setTripleAt(u,d,p,f,h,m,y),y+=1,s=n===v-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=p=r[0]+(s[0]-r[0])*c,d=f=r[1]+(s[1]-r[1])*c,h=u-(u-r[0])*roundCorner,m=d-(d-r[1])*roundCorner,g.setTripleAt(u,d,p,f,h,m,y)):g.setTripleAt(r[0],r[1],a[0],a[1],o[0],o[1],y):g.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],y),y+=1;return g},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,o,a,s,l=this.shapes.length,c=this.rd.v;if(0!==c)for(n=0;n<l;n+=1){if(s=(a=this.shapes[n]).localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!e))for(s.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,o=a.shape.paths._length,r=0;r<o;r+=1)s.addShape(this.processPath(t[r],c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],o=[65039,8205];function a(e){var t,n=e.split(","),r=n.length,o=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&o.push(n[t]);return o.join(",")}function s(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var o=r.offsetWidth;return r.style.fontFamily=a(e)+", "+t,{node:r,w:o,parent:n}}function l(){var t,n,r,o=this.fonts.length,a=o;for(t=0;t<o;t+=1)this.fonts[t].loaded?a-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(n=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,n.offsetWidth!==r?(a-=1,this.fonts[t].loaded=!0):(n=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,n.offsetWidth!==r&&(a-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==a&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function c(e,t){var n,r=document.body&&t?"svg":"canvas",o=getFontProperties(e);if("svg"===r){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",e.fFamily),a.setAttribute("font-style",o.style),a.setAttribute("font-weight",o.weight),a.textContent="1",e.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",e.fClass)):a.style.fontFamily=e.fFamily,t.appendChild(a),n=a}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=o.style+" "+o.weight+" 100px "+e.fFamily,n=s}return{measureText:function(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}}}function u(e,t){if(!e){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=e.list;return}if(!document.body){this.isLoaded=!0,e.list.forEach(function(e){e.helper=c(e),e.cache={}}),this.fonts=e.list;return}var n=e.list,r=n.length,o=r;for(a=0;a<r;a+=1){var a,l,u,d=!0;if(n[a].loaded=!1,n[a].monoCase=s(n[a].fFamily,"monospace"),n[a].sansCase=s(n[a].fFamily,"sans-serif"),n[a].fPath){if("p"===n[a].fOrigin||3===n[a].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[a].fFamily+'"], style[f-origin="3"][f-family="'+n[a].fFamily+'"]')).length>0&&(d=!1),d){var p=createTag("style");p.setAttribute("f-forigin",n[a].fOrigin),p.setAttribute("f-origin",n[a].origin),p.setAttribute("f-family",n[a].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+n[a].fFamily+"; font-style: normal; src: url('"+n[a].fPath+"');}",t.appendChild(p)}}else if("g"===n[a].fOrigin||1===n[a].origin){for(u=0,l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');u<l.length;u+=1)-1!==l[u].href.indexOf(n[a].fPath)&&(d=!1);if(d){var f=createTag("link");f.setAttribute("f-forigin",n[a].fOrigin),f.setAttribute("f-origin",n[a].origin),f.type="text/css",f.rel="stylesheet",f.href=n[a].fPath,document.body.appendChild(f)}}else if("t"===n[a].fOrigin||2===n[a].origin){for(u=0,l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');u<l.length;u+=1)n[a].fPath===l[u].src&&(d=!1);if(d){var h=createTag("link");h.setAttribute("f-forigin",n[a].fOrigin),h.setAttribute("f-origin",n[a].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",n[a].fPath),t.appendChild(h)}}}else n[a].loaded=!0,o-=1;n[a].helper=c(n[a],t),n[a].cache={},this.fonts.push(n[a])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function d(e){if(e){this.chars||(this.chars=[]);var t,n,r,o=e.length,a=this.chars.length;for(t=0;t<o;t+=1){for(n=0,r=!1;n<a;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),a+=1)}}}function p(e,n,r){for(var o=0,a=this.chars.length;o<a;){if(this.chars[o].ch===e&&this.chars[o].style===n&&this.chars[o].fFamily===r)return this.chars[o];o+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,n,r)),t}function f(e,t,n){var r=this.getFontByName(t),o=e.charCodeAt(0);if(!r.cache[o+1]){var a=r.helper;if(" "===e){var s=a.measureText("|"+e+"|"),l=a.measureText("||");r.cache[o+1]=(s-l)/100}else r.cache[o+1]=a.measureText(e)/100}return r.cache[o+1]*n}function h(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]}function m(e,t){return t?e===o[0]&&t===o[1]:e===o[1]}function g(e){return -1!==n.indexOf(e)}function v(){this.isLoaded=!0}var y=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return y.isModifier=function(e,t){var n=e.toString(16)+t.toString(16);return -1!==r.indexOf(n)},y.isZeroWidthJoiner=m,y.isCombinedCharacter=g,y.prototype={addChars:d,addFonts:u,getCharData:p,getFontByName:h,measureText:f,checkLoadedFonts:l,setIsLoaded:v},y}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,r=createSizedArray(t.viewData.length),o=t.viewData.length;for(n=0;n<o;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<o;){if(t.masksProperties[n].nm===e)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var o="";o="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var a="unidimensional"===n?new Number(o):Object.assign({},o);return a.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,a.value="unidimensional"===n?o[0]:o,a},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(t){t&&"pv"in t||(t=e);var r=1/t.mult,o=t.pv*r,a=new Number(o);return a.value=o,n(a,t,"unidimensional"),function(){return t.k&&t.getValue(),o=t.v*r,a.value!==o&&((a=new Number(o)).value=o,n(a,t,"unidimensional")),a}}function o(e){e&&"pv"in e||(e=t);var r=1/e.mult,o=e.data&&e.data.l||e.pv.length,a=createTypedArray("float32",o),s=createTypedArray("float32",o);return a.value=s,n(a,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<o;t+=1)s[t]=e.v[t]*r,a[t]=s[t];return a}}function a(){return e}return function(e){return e?"unidimensional"===e.propType?r(e):o(e):a}}(),TransformExpressionInterface=function(){return function(e){var t,n,r,o;function a(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return a.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return a.rotation;case"ADBE Rotate X":return a.xRotation;case"ADBE Rotate Y":return a.yRotation;case"position":case"Position":case"ADBE Position":case 2:return a.position;case"ADBE Position_0":return a.xPosition;case"ADBE Position_1":return a.yPosition;case"ADBE Position_2":return a.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return a.anchorPoint;case"opacity":case"Opacity":case 11:return a.opacity;default:return null}}return Object.defineProperty(a,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(a,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(a,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(a,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(a,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?o=ExpressionPropertyInterface(e.p):(t=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(r=ExpressionPropertyInterface(e.pz))),Object.defineProperty(a,"position",{get:function(){return e.p?o():[t(),n(),r?r():0]}}),Object.defineProperty(a,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(a,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(a,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(a,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(a,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(a,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(a,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(a,"orientation",{get:ExpressionPropertyInterface(e.or)}),a}}(),LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function o(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function s(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function l(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function c(){return[1,1,1,1]}return function(u){function d(e){f.mask=new MaskManagerInterface(e,u)}function p(e){f.effect=e}function f(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return f.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return h;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return f.effect;case"ADBE Text Properties":return f.textInterface;default:return null}}f.getMatrix=e,f.invertPoint=s,f.applyPoint=a,f.toWorld=n,f.toWorldVec=t,f.fromWorld=o,f.fromWorldVec=r,f.toComp=n,f.fromComp=l,f.sampleImage=c,f.sourceRectAtTime=u.sourceRectAtTime.bind(u),f._elem=u;var h=TransformExpressionInterface(u.finalTransform.mProp),m=getDescriptor(h,"anchorPoint");return Object.defineProperties(f,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:m,anchor_point:m,transform:{get:function(){return h}},active:{get:function(){return u.isInRange}}}),f.startTime=u.data.st,f.index=u.data.ind,f.source=u.data.refId,f.height=0===u.data.ty?u.data.h:100,f.width=0===u.data.ty?u.data.w:100,f.inPoint=u.data.ip/u.comp.globalData.frameRate,f.outPoint=u.data.op/u.comp.globalData.frameRate,f._name=u.data.nm,f.registerMaskInterface=d,f.registerEffectsInterface=p,f}}(),propertyGroupFactory=function(){return function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}}}(),PropertyInterface=function(){return function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}}}(),EffectsExpressionInterface=function(){function e(n,r,o,a){function s(e){for(var t=n.ef,r=0,o=t.length;r<o;){if(e===t[r].nm||e===t[r].mn||e===t[r].ix){if(5===t[r].ty)return u[r];return u[r]()}r+=1}throw Error()}var l,c=propertyGroupFactory(s,o),u=[],d=n.ef.length;for(l=0;l<d;l+=1)5===n.ef[l].ty?u.push(e(n.ef[l],r.effectElements[l],r.effectElements[l].propertyGroup,a)):u.push(t(r.effectElements[l],n.ef[l].ty,a,c));return"ADBE Color Control"===n.mn&&Object.defineProperty(s,"color",{get:function(){return u[0]()}}),Object.defineProperties(s,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:c}}),s.enabled=0!==n.en,s.active=s.enabled,s}function t(e,t,n,r){var o=ExpressionPropertyInterface(e.p);function a(){return 10===t?n.comp.compInterface(e.p.v):o()}return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),a}return{createEffectsInterface:function(t,n){if(t.effectsManager){var r,o=[],a=t.data.ef,s=t.effectsManager.effectElements.length;for(r=0;r<s;r+=1)o.push(e(a[r],t.effectsManager.effectElements[r],n,t));var l=t.data.ef||[],c=function(e){for(r=0,s=l.length;r<s;){if(e===l[r].nm||e===l[r].mn||e===l[r].ix)return o[r];r+=1}return null};return Object.defineProperty(c,"numProperties",{get:function(){return l.length}}),c}return null}}}(),CompExpressionInterface=function(){return function(e){function t(t){for(var n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}(),ShapePathInterface=function(){return function(e,t,n){var r=t.sh;function o(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?o.path:null}var a=propertyGroupFactory(o,n);return r.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(o,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),o}}(),ShapeExpressionInterface=function(){function e(e,t,c){var m,g=[],v=e?e.length:0;for(m=0;m<v;m+=1)"gr"===e[m].ty?g.push(n(e[m],t[m],c)):"fl"===e[m].ty?g.push(r(e[m],t[m],c)):"st"===e[m].ty?g.push(s(e[m],t[m],c)):"tm"===e[m].ty?g.push(l(e[m],t[m],c)):"tr"===e[m].ty||("el"===e[m].ty?g.push(u(e[m],t[m],c)):"sr"===e[m].ty?g.push(d(e[m],t[m],c)):"sh"===e[m].ty?g.push(ShapePathInterface(e[m],t[m],c)):"rc"===e[m].ty?g.push(p(e[m],t[m],c)):"rd"===e[m].ty?g.push(f(e[m],t[m],c)):"rp"===e[m].ty?g.push(h(e[m],t[m],c)):"gf"===e[m].ty?g.push(o(e[m],t[m],c)):g.push(a(e[m],t[m],c)));return g}function t(t,n,r){var o,a=function(e){for(var t=0,n=o.length;t<n;){if(o[t]._name===e||o[t].mn===e||o[t].propertyIndex===e||o[t].ix===e||o[t].ind===e)return o[t];t+=1}return"number"==typeof e?o[e-1]:null};a.propertyGroup=propertyGroupFactory(a,r),o=e(t.it,n.it,a.propertyGroup),a.numProperties=o.length;var s=c(t.it[t.it.length-1],n.it[n.it.length-1],a.propertyGroup);return a.transform=s,a.propertyIndex=t.cix,a._name=t.nm,a}function n(e,n,r){var o=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return o.content;default:return o.transform}};o.propertyGroup=propertyGroupFactory(o,r);var a=t(e,n,o.propertyGroup),s=c(e.it[e.it.length-1],n.it[n.it.length-1],o.propertyGroup);return o.content=a,o.transform=s,Object.defineProperty(o,"_name",{get:function(){return e.nm}}),o.numProperties=e.np,o.propertyIndex=e.ix,o.nm=e.nm,o.mn=e.mn,o}function r(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function o(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function a(){return function(){return null}}function s(e,t,n){var r,o=propertyGroupFactory(u,n),a=propertyGroupFactory(c,o);function s(n){Object.defineProperty(c,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var l=e.d?e.d.length:0,c={};for(r=0;r<l;r+=1)s(r),t.d.dataProps[r].p.setGroupProperty(a);function u(e){return"Color"===e||"color"===e?u.color:"Opacity"===e||"opacity"===e?u.opacity:"Stroke Width"===e||"stroke width"===e?u.strokeWidth:null}return Object.defineProperties(u,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return c}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",o)),t.o.setGroupProperty(PropertyInterface("Opacity",o)),t.w.setGroupProperty(PropertyInterface("Stroke Width",o)),u}function l(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var o=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",o)),t.e.setGroupProperty(PropertyInterface("End",o)),t.o.setGroupProperty(PropertyInterface("Offset",o)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var o=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",o)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",o)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",o)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",o)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",o)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",o)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",o))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",o)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function u(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var o=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var a="tm"===t.sh.ty?t.sh.prop:t.sh;return a.s.setGroupProperty(PropertyInterface("Size",o)),a.p.setGroupProperty(PropertyInterface("Position",o)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function d(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:e.ir&&(e.ir.ix===t||"ADBE Vector Star Inner Radius"===t)?r.innerRadius:e.is&&e.is.ix===t?r.innerRoundness:null}var o=propertyGroupFactory(r,n),a="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",o)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",o)),a.pt.setGroupProperty(PropertyInterface("Points",o)),a.p.setGroupProperty(PropertyInterface("Position",o)),a.r.setGroupProperty(PropertyInterface("Rotation",o)),e.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",o)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",o))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function p(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var o=propertyGroupFactory(r,n),a="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,a.p.setGroupProperty(PropertyInterface("Position",o)),a.s.setGroupProperty(PropertyInterface("Size",o)),a.r.setGroupProperty(PropertyInterface("Rotation",o)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function f(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var o=propertyGroupFactory(r,n),a=t;return r.propertyIndex=e.ix,a.rd.setGroupProperty(PropertyInterface("Radius",o)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function h(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var o=propertyGroupFactory(r,n),a=t;return r.propertyIndex=e.ix,a.c.setGroupProperty(PropertyInterface("Copies",o)),a.o.setGroupProperty(PropertyInterface("Offset",o)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var o;function a(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?r:o[e-1];for(var t=0,n=o.length;t<n;){if(o[t]._name===e)return o[t];t+=1}return null}return a.propertyGroup=propertyGroupFactory(a,function(){return r}),o=e(t,n,a.propertyGroup),a.numProperties=o.length,a._name="Contents",a}}(),TextExpressionInterface=function(){return function(e){var t,n;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return r!==t&&(e.textProperty.currentData.t=t,(n=new String(r)).value=r||new String(r)),n}}),r}}(),getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r,o=e.ef||[];this.effectElements=[];var a=o.length;for(n=0;n<a;n+=1)r=new GroupEffect(o[n],t),this.effectElements.push(r)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function _typeof$2(e){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,r,o=this.data.ef.length,a=this.data.ef;for(n=0;n<o;n+=1){switch(r=null,a[n].ty){case 0:r=new SliderEffect(a[n],t,this);break;case 1:r=new AngleEffect(a[n],t,this);break;case 2:r=new ColorEffect(a[n],t,this);break;case 3:r=new PointEffect(a[n],t,this);break;case 4:case 7:r=new CheckboxEffect(a[n],t,this);break;case 10:r=new LayerIndexEffect(a[n],t,this);break;case 11:r=new MaskIndexEffect(a[n],t,this);break;case 5:r=new EffectsManager(a[n],t,this);break;default:r=new NoValueEffect(a[n],t,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var e=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(e),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}};var FootageInterface=function(){var e=function(e){var t="",n=e.getFootageData();function r(e){if(n[e])return(t=e,n=n[e],"object"===_typeof$2(n))?r:n;var o=e.indexOf(t);return -1!==o?(n=n[parseInt(e.substr(o+t.length),10)],"object"===_typeof$2(n))?r:n:""}return function(){return t="",n=e.getFootageData(),r}},t=function(t){function n(e){return"Outline"===e?n.outlineInterface():null}return n._name="Outline",n.outlineInterface=e(t),n};return function(e){function n(e){return"Data"===e?n.dataInterface:null}return n._name="Data",n.dataInterface=t(e),n}}();function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var a=this.masksProperties,s=0,l=[],c=createElementID(),u="clipPath",d="clip-path";for(p=0;p<o;p+=1)if(("a"!==a[p].mode&&"n"!==a[p].mode||a[p].inv||100!==a[p].o.k||a[p].o.x)&&(u="mask",d="mask"),("s"===a[p].mode||"i"===a[p].mode)&&0===s?((m=createNS("rect")).setAttribute("fill","#ffffff"),m.setAttribute("width",this.element.comp.data.w||0),m.setAttribute("height",this.element.comp.data.h||0),l.push(m)):m=null,f=createNS("path"),"n"===a[p].mode)this.viewData[p]={op:PropertyFactory.getProp(this.element,a[p].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[p],3),elem:f,lastPath:""},r.appendChild(f);else{if(s+=1,f.setAttribute("fill","s"===a[p].mode?"#000000":"#ffffff"),f.setAttribute("clip-rule","nonzero"),0!==a[p].x.k?(u="mask",d="mask",y=PropertyFactory.getProp(this.element,a[p].x,0,null,this.element),b=createElementID(),(g=createNS("filter")).setAttribute("id",b),(v=createNS("feMorphology")).setAttribute("operator","erode"),v.setAttribute("in","SourceGraphic"),v.setAttribute("radius","0"),g.appendChild(v),r.appendChild(g),f.setAttribute("stroke","s"===a[p].mode?"#000000":"#ffffff")):(v=null,y=null),this.storedData[p]={elem:f,x:y,expan:v,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===a[p].mode){var p,f,h,m,g,v,y,b,x=l.length,C=createNS("g");for(h=0;h<x;h+=1)C.appendChild(l[h]);var k=createNS("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",c+"_"+s),k.appendChild(f),r.appendChild(k),C.setAttribute("mask","url("+getLocationHref()+"#"+c+"_"+s+")"),l.length=0,l.push(C)}else l.push(f);a[p].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[p]={elem:f,lastPath:"",op:PropertyFactory.getProp(this.element,a[p].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[p],3),invRect:m},this.viewData[p].prop.k||this.drawPath(a[p],this.viewData[p].prop.v,this.viewData[p])}for(p=0,this.maskElement=createNS(u),o=l.length;p<o;p+=1)this.maskElement.appendChild(l[p]);s>0&&(this.maskElement.setAttribute("id",c),this.element.maskedElement.setAttribute(d,"url("+getLocationHref()+"#"+c+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)!this.elements[t]&&(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,n,r=e.length,o=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<o;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,o=this.layers,a=0,s=o.length;a<s;)o[a].ind==t&&(r[a]&&!0!==r[a]?(n.push(r[a]),r[a].setAsParent(),void 0!==o[a].parent?this.buildElementParenting(e,o[a].parent,n):e.setHierarchy(n)):(this.buildItem(a),this.addPendingElement(e))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift();if("number"==typeof t)n=this.elements[t];else{var n,r,o=this.elements.length;for(r=0;r<o;r+=1)if(this.elements[r].data.nm===t){n=this.elements[r];break}}return 0===e.length?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp.v.props,t.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var t,n,r=[];r.push(this.finalTransform);for(var o=!0,a=this.comp;o;)a.finalTransform?(a.data.hasMask&&r.splice(0,0,a.finalTransform),a=a.comp):o=!1;var s=r.length;for(t=0;t<s;t+=1)n=r[t].mat.applyToPointArray(0,0,0),e=[e[0]-n[0],e[1]-n[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var o=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),o.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+(" h"+this.globalData.compSize.w+" v"+this.globalData.compSize.h+" h-"+this.globalData.compSize.w+(" v-"+this.globalData.compSize.h)+" ")},MaskElement.prototype.drawPath=function(e,t,n){var r,o,a=" M"+t.v[0][0]+","+t.v[0][1];for(r=1,o=t._length;r<o;r+=1)a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&o>1&&(a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==a){var s="";n.elem&&(t.c&&(s=e.inv?this.solidPath+a:a),n.elem.setAttribute("d",s)),n.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};function t(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),e}return e.createFilter=function e(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},e.createAlphaToLuminanceFilter=t,e}(),featureSupport=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",o=e.data.ef?e.data.ef.length:0,a=createElementID(),s=filtersFactory.createFilter(a,!0),l=0;for(t=0,this.filters=[];t<o;t+=1){n=null;var c=e.data.ef[t].ty;registeredEffects[c]&&(n=new registeredEffects[c].effect(s,e.effectsManager.effectElements[t],e,idPrefix+l,r),r=idPrefix+l,registeredEffects[c].countsAsEffect&&(l+=1)),n&&this.filters.push(n)}l&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t,n){registeredEffects[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e,t,n,r=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var o=createNS("mask");o.setAttribute("id",this.layerId),o.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),o.appendChild(this.layerElement),r=o,this.globalData.defs.appendChild(o),featureSupport.maskType||1!=this.data.td||(o.setAttribute("mask-type","luminance"),e=createElementID(),t=filtersFactory.createFilter(e),this.globalData.defs.appendChild(t),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(this.layerElement),r=n,o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2==this.data.td){var a=createNS("mask");a.setAttribute("id",this.layerId),a.setAttribute("mask-type","alpha");var s=createNS("g");a.appendChild(s),e=createElementID(),t=filtersFactory.createFilter(e);var l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),t.appendChild(l);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),l.appendChild(c),this.globalData.defs.appendChild(t);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),s.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),s.appendChild(u),s.appendChild(this.layerElement),r=s,featureSupport.maskType||(a.setAttribute("mask-type","luminance"),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),s.appendChild(u),n.appendChild(this.layerElement),r=n,s.appendChild(n)),this.globalData.defs.appendChild(a)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var d=createNS("clipPath"),p=createNS("path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var f=createElementID();if(d.setAttribute("id",f),d.appendChild(p),this.globalData.defs.appendChild(d),this.checkMasks()){var h=createNS("g");h.setAttribute("clip-path","url("+getLocationHref()+"#"+f+")"),h.appendChild(this.layerElement),this.transformedElement=h,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+f+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},function(){extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement)}(),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=0,n=this.shapeModifiers.length;t<n;)if(this.shapeModifiers[t].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(t=this.shapeModifiers.length,e=t-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e){n[r].pos=t;return}n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,o=e.length;r<o;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,r){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var o,a,s=t.length||0;for(o=0;o<s;o+=1)a=PropertyFactory.getProp(e,t[o].v,0,0,this),this.k=a.k||this.k,this.dataProps[o]={n:t[o].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,o=4*this.data.p;for(t=0;t<o;t+=1)n=t%4==0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(o=this.prop.v.length,t=4*this.data.p;t<o;t+=1)n=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n,r,o,a=createElementID(),s=createNS(1===t.t?"linearGradient":"radialGradient");s.setAttribute("id",a),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var l=[];for(r=0,o=4*t.g.p;r<o;r+=4)n=createNS("stop"),s.appendChild(n),l.push(n);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),this.gf=s,this.cst=l},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,o,a=createNS("mask"),s=createNS("path");a.appendChild(s);var l=createElementID(),c=createElementID();a.setAttribute("id",c);var u=createNS(1===e.t?"linearGradient":"radialGradient");u.setAttribute("id",l),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(r=4*e.g.p;r<o;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),d.push(n);s.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),"gs"===e.ty&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=a,this.ost=d,this.maskId=c,t.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var o,a=e.o,s=e.i,l=e.v,c=" M"+r.applyToPointStringified(l[0][0],l[0][1]);for(o=1;o<t;o+=1)c+=" C"+r.applyToPointStringified(a[o-1][0],a[o-1][1])+" "+r.applyToPointStringified(s[o][0],s[o][1])+" "+r.applyToPointStringified(l[o][0],l[o][1]);return n&&t&&(c+=" C"+r.applyToPointStringified(a[o-1][0],a[o-1][1])+" "+r.applyToPointStringified(s[0][0],s[0][1])+" "+r.applyToPointStringified(l[0][0],l[0][1])+"z"),c},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function o(n,r,o){var a,s,l,c,u,d,p,f,h,m,g,v=r.styles.length,y=r.lvl;for(d=0;d<v;d+=1){if(c=r.sh._mdf||o,r.styles[d].lvl<y){for(f=t.reset(),m=y-r.styles[d].lvl,g=r.transformers.length-1;!c&&m>0;)c=r.transformers[g].mProps._mdf||c,m-=1,g-=1;if(c)for(m=y-r.styles[d].lvl,g=r.transformers.length-1;m>0;)h=r.transformers[g].mProps.v.props,f.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),m-=1,g-=1}else f=e;if(s=(p=r.sh.paths)._length,c){for(a=0,l="";a<s;a+=1)(u=p.shapes[a])&&u._length&&(l+=buildShapeString(u,u._length,u.c,f));r.caches[d]=l}else l=r.caches[d];r.styles[d].d+=!0===n.hd?"":l,r.styles[d]._mdf=c||r.styles[d]._mdf}}function a(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,n){l(e,t,n),c(e,t,n)}function l(e,t,n){var r,o,a,s,l,c=t.gf,u=t.g._hasOpacity,d=t.s.v,p=t.e.v;if(t.o._mdf||n){var f="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(f,t.o.v)}if(t.s._mdf||n){var h=1===e.t?"x1":"cx",m="x1"===h?"y1":"cy";c.setAttribute(h,d[0]),c.setAttribute(m,d[1]),u&&!t.g._collapsable&&(t.of.setAttribute(h,d[0]),t.of.setAttribute(m,d[1]))}if(t.g._cmdf||n){r=t.cst;var g=t.g.c;for(o=0,a=r.length;o<a;o+=1)(s=r[o]).setAttribute("offset",g[4*o]+"%"),s.setAttribute("stop-color","rgb("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+")")}if(u&&(t.g._omdf||n)){var v=t.g.o;for(o=0,a=(r=t.g._collapsable?t.cst:t.ost).length;o<a;o+=1)s=r[o],t.g._collapsable||s.setAttribute("offset",v[2*o]+"%"),s.setAttribute("stop-opacity",v[2*o+1])}if(1===e.t)(t.e._mdf||n)&&(c.setAttribute("x2",p[0]),c.setAttribute("y2",p[1]),u&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||n)&&(l=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)),c.setAttribute("r",l),u&&!t.g._collapsable&&t.of.setAttribute("r",l)),t.e._mdf||t.h._mdf||t.a._mdf||n){l||(l=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)));var y=Math.atan2(p[1]-d[1],p[0]-d[0]),b=t.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var x=l*b,C=Math.cos(y+t.a.v)*x+d[0],k=Math.sin(y+t.a.v)*x+d[1];c.setAttribute("fx",C),c.setAttribute("fy",k),u&&!t.g._collapsable&&(t.of.setAttribute("fx",C),t.of.setAttribute("fy",k))}}function c(e,t,n){var r=t.style,o=t.d;o&&(o._mdf||n)&&o.dashStr&&(r.pElem.setAttribute("stroke-dasharray",o.dashStr),r.pElem.setAttribute("stroke-dashoffset",o.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return l;case"gs":return s;case"st":return c;case"sh":case"el":case"rc":case"sr":return o;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,o,a){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=o,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,o=this.shapes.length,a=this.stylesList.length,s=[],l=!1;for(n=0;n<a;n+=1){for(e=0,r=this.stylesList[n],l=!1,s.length=0;e<o;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(s.push(t),l=t._isAnimated||l);s.length>1&&l&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),o=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),o.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),("st"===e.ty||"gs"===e.ty)&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),o.setAttribute("fill-opacity","0"),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var o=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,o,a,s){var l,c,u,d,p,f,h=[].concat(a),m=e.length-1,g=[],v=[];for(l=m;l>=0;l-=1){if((f=this.searchProcessedElement(e[l]))?t[l]=n[f-1]:e[l]._render=s,"fl"===e[l].ty||"st"===e[l].ty||"gf"===e[l].ty||"gs"===e[l].ty||"no"===e[l].ty)f?t[l].style.closed=!1:t[l]=this.createStyleElement(e[l],o),e[l]._render&&t[l].style.pElem.parentNode!==r&&r.appendChild(t[l].style.pElem),g.push(t[l].style);else if("gr"===e[l].ty){if(f)for(c=0,u=t[l].it.length;c<u;c+=1)t[l].prevViewData[c]=t[l].it[c];else t[l]=this.createGroupElement(e[l]);this.searchShapes(e[l].it,t[l].it,t[l].prevViewData,t[l].gr,o+1,h,s),e[l]._render&&t[l].gr.parentNode!==r&&r.appendChild(t[l].gr)}else"tr"===e[l].ty?(f||(t[l]=this.createTransformElement(e[l],r)),d=t[l].transform,h.push(d)):"sh"===e[l].ty||"rc"===e[l].ty||"el"===e[l].ty||"sr"===e[l].ty?(f||(t[l]=this.createShapeElement(e[l],h,o)),this.setElementStyles(t[l])):"tm"===e[l].ty||"rd"===e[l].ty||"ms"===e[l].ty||"pb"===e[l].ty?(f?(p=t[l]).closed=!1:((p=ShapeModifiers.getModifier(e[l].ty)).init(this,e[l]),t[l]=p,this.shapeModifiers.push(p)),v.push(p)):"rp"===e[l].ty&&(f?(p=t[l]).closed=!0:(p=ShapeModifiers.getModifier(e[l].ty),t[l]=p,p.init(this,e,l,t),this.shapeModifiers.push(p),s=!1),v.push(p));this.addProcessedElement(e[l],l+1)}for(l=0,m=g.length;l<m;l+=1)g[l].closed=!0;for(l=0,m=v.length;l<m;l+=1)v[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,r,o,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,s=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,s=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,s=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,s=!0),s},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t,n=this.currentData,r=this.keysIndex;if(this.lock)return void this.setCurrentData(this.currentData);this.lock=!0,this._mdf=!1;var o=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(t=0;t<o;t+=1)a=r!==this.keysIndex?this.effectsSequence[t](a,a.t):this.effectsSequence[t](this.currentData,a.t);n!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&n!==r-1&&!(e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],o=0,a=e.length,s=!1;o<a;)t=e.charCodeAt(o),FontManager.isCombinedCharacter(t)?r[r.length-1]+=e.charAt(o):t>=55296&&t<=56319?(n=e.charCodeAt(o+1))>=56320&&n<=57343?(s||FontManager.isModifier(t,n)?(r[r.length-1]+=e.substr(o,2),s=!1):r.push(e.substr(o,2)),o+=1):r.push(e.charAt(o)):t>56319?(n=e.charCodeAt(o+1),FontManager.isZeroWidthJoiner(t,n)?(s=!0,r[r.length-1]+=e.substr(o,2),o+=1):r.push(e.charAt(o))):FontManager.isZeroWidthJoiner(t)?(r[r.length-1]+=e.charAt(o),s=!0):r.push(e.charAt(o)),o+=1;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,n=this.data,r=[],o=0,a=n.m.g,s=0,l=0,c=0,u=[],d=0,p=0,f=t.getFontByName(e.f),h=0,m=getFontProperties(f);e.fWeight=m.weight,e.fStyle=m.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),y=e.finalText.length,e.finalLineHeight=e.lh;var g=e.tr/1e3*e.finalSize;if(e.sz)for(var v,y,b,x,C,k,w,S,_,E,P=!0,I=e.sz[0],T=e.sz[1];P;){E=this.buildFinalText(e.t),_=0,d=0,y=E.length,g=e.tr/1e3*e.finalSize;var D=-1;for(v=0;v<y;v+=1)S=E[v].charCodeAt(0),b=!1," "===E[v]?D=v:(13===S||3===S)&&(d=0,b=!0,_+=e.finalLineHeight||1.2*e.finalSize),t.chars?(w=t.getCharData(E[v],f.fStyle,f.fFamily),h=b?0:w.w*e.finalSize/100):h=t.measureText(E[v],e.f,e.finalSize),d+h>I&&" "!==E[v]?(-1===D?y+=1:v=D,_+=e.finalLineHeight||1.2*e.finalSize,E.splice(v,+(D===v),"\r"),D=-1,d=0):(d+=h,d+=g);_+=f.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&T<_?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=E,y=e.finalText.length,P=!1)}d=-g,h=0;var A=0;for(v=0;v<y;v+=1)if(b=!1,13===(S=(B=e.finalText[v]).charCodeAt(0))||3===S?(A=0,u.push(d),p=d>p?d:p,d=-2*g,x="",b=!0,c+=1):x=B,t.chars?(w=t.getCharData(B,f.fStyle,t.getFontByName(e.f).fFamily),h=b?0:w.w*e.finalSize/100):h=t.measureText(x,e.f,e.finalSize)," "===B?A+=h+g:(d+=h+g+A,A=0),r.push({l:h,an:h,add:s,n:b,anIndexes:[],val:x,line:c,animatorJustifyOffset:0}),2==a){if(s+=h,""===x||" "===x||v===y-1){for((""===x||" "===x)&&(s-=h);l<=v;)r[l].an=s,r[l].ind=o,r[l].extra=h,l+=1;o+=1,s=0}}else if(3==a){if(s+=h,""===x||v===y-1){for(""===x&&(s-=h);l<=v;)r[l].an=s,r[l].ind=o,r[l].extra=h,l+=1;s=0,o+=1}}else r[o].ind=o,r[o].extra=0,o+=1;if(e.l=r,p=d>p?d:p,u.push(d),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=p,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=u;var R=n.a;k=R.length;var N=[];for(C=0;C<k;C+=1){for((M=R[C]).a.sc&&(e.strokeColorAnim=!0),M.a.sw&&(e.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(e.fillColorAnim=!0),L=0,O=M.s.b,v=0;v<y;v+=1)(F=r[v]).anIndexes[C]=L,(1==O&&""!==F.val||2==O&&""!==F.val&&" "!==F.val||3==O&&(F.n||" "==F.val||v==y-1)||4==O&&(F.n||v==y-1))&&(1===M.s.rn&&N.push(L),L+=1);n.a[C].s.totalChars=L;var B,M,F,O,L,H,z=-1;if(1===M.s.rn)for(v=0;v<y;v+=1)z!=(F=r[v]).anIndexes[C]&&(z=F.anIndexes[C],H=N.splice(Math.floor(Math.random()*N.length),1)[0]),F.anIndexes[C]=H}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=f.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),"e"in t?this.e=PropertyFactory.getProp(e,t.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,a=0,s=1,l=1;this.ne.v>0?o=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:l=1+this.xe.v/100;var c=BezierFactory.getBezierEasing(o,a,s,l).get,u=0,d=this.finalS,p=this.finalE,f=this.data.sh;if(2===f)u=c(u=p===d?+(r>=p):e(0,t(.5/(p-d)+(r-d)/(p-d),1)));else if(3===f)u=c(u=p===d?r>=p?0:1:1-e(0,t(.5/(p-d)+(r-d)/(p-d),1)));else if(4===f)p===d?u=0:(u=e(0,t(.5/(p-d)+(r-d)/(p-d),1)))<.5?u*=2:u=1-2*(u-.5),u=c(u);else if(5===f){if(p===d)u=0;else{var h=p-d,m=-h/2+(r=t(e(0,r+.5-d),p-d)),g=h/2;u=Math.sqrt(1-m*m/(g*g))}u=c(u)}else 6===f?u=c(u=p===d?0:(1+Math.cos(Math.PI+2*Math.PI*(r=t(e(0,r+.5-d),p-d))/(p-d)))/2):(r>=n(d)&&(u=r-d<0?e(0,t(t(p,1)-(d-r),1)):e(0,t(p-r,1))),u=c(u));if(100!==this.sm.v){var v=.01*this.sm.v;0===v&&(v=1e-8);var y=.5-.5*v;u<y?u=0:(u=(u-y)/v)>1&&(u=1)}return u*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,o=this.e.v/t+n;if(r>o){var a=r;r=o,o=a}this.finalS=r,this.finalE=o}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},o=PropertyFactory.getProp,a=t.a;this.a={r:a.r?o(e,a.r,0,degToRads,n):r,rx:a.rx?o(e,a.rx,0,degToRads,n):r,ry:a.ry?o(e,a.ry,0,degToRads,n):r,sk:a.sk?o(e,a.sk,0,degToRads,n):r,sa:a.sa?o(e,a.sa,0,degToRads,n):r,s:a.s?o(e,a.s,1,.01,n):r,a:a.a?o(e,a.a,1,0,n):r,o:a.o?o(e,a.o,0,.01,n):r,p:a.p?o(e,a.p,1,0,n):r,sw:a.sw?o(e,a.sw,0,0,n):r,sc:a.sc?o(e,a.sc,1,0,n):r,fc:a.fc?o(e,a.fc,1,0,n):r,fh:a.fh?o(e,a.fh,0,0,n):r,fs:a.fs?o(e,a.fs,0,.01,n):r,fb:a.fb?o(e,a.fb,0,.01,n):r,t:a.t?o(e,a.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C=this._moreOptions.alignment.v,k=this._animatorsData,w=this._textData,S=this.mHelper,_=this._renderType,E=this.renderedLetters.length,P=e.l;if(this._hasMaskedPath){if(G=this._pathData.m,!this._pathData.n||this._pathData._mdf){var I,T,D,A,R,N,B,M,F,O,L,H,z,V,U,j,W,q,G,K,X=G.v;for(this._pathData.r.v&&(X=X.reverse()),R={tLength:0,segments:[]},A=X._length-1,j=0,D=0;D<A;D+=1)K=bez.buildBezierData(X.v[D],X.v[D+1],[X.o[D][0]-X.v[D][0],X.o[D][1]-X.v[D][1]],[X.i[D+1][0]-X.v[D+1][0],X.i[D+1][1]-X.v[D+1][1]]),R.tLength+=K.segmentLength,R.segments.push(K),j+=K.segmentLength;D=A,G.v.c&&(K=bez.buildBezierData(X.v[D],X.v[0],[X.o[D][0]-X.v[D][0],X.o[D][1]-X.v[D][1]],[X.i[0][0]-X.v[0][0],X.i[0][1]-X.v[0][1]]),R.tLength+=K.segmentLength,R.segments.push(K),j+=K.segmentLength),this._pathData.pi=R}if(R=this._pathData.pi,N=this._pathData.f.v,L=0,O=1,M=0,F=!0,V=R.segments,N<0&&G.v.c)for(R.tLength<Math.abs(N)&&(N=-Math.abs(N)%R.tLength),L=V.length-1,O=(z=V[L].points).length-1;N<0;)N+=z[O].partialLength,(O-=1)<0&&(L-=1,O=(z=V[L].points).length-1);H=(z=V[L].points)[O-1],U=(B=z[O]).partialLength}A=P.length,I=0,T=0;var Y=1.2*e.finalSize*.714,Q=!0;a=k.length;var J=-1,Z=N,ee=L,et=O,en=-1,er="",eo=this.defaultPropsArray;if(2===e.j||1===e.j){var ei=0,ea=0,es=2===e.j?-.5:-1,el=0,ec=!0;for(D=0;D<A;D+=1)if(P[D].n){for(ei&&(ei+=ea);el<D;)P[el].animatorJustifyOffset=ei,el+=1;ei=0,ec=!0}else{for(o=0;o<a;o+=1)(n=k[o].a).t.propType&&(ec&&2===e.j&&(ea+=n.t.v*es),(l=(r=k[o].s).getMult(P[D].anIndexes[o],w.a[o].s.totalChars)).length?ei+=n.t.v*l[0]*es:ei+=n.t.v*l*es);ec=!1}for(ei&&(ei+=ea);el<D;)P[el].animatorJustifyOffset=ei,el+=1}for(D=0;D<A;D+=1){if(S.reset(),p=1,P[D].n)I=0,T+=e.yOffset,T+=+!!Q,N=Z,Q=!1,this._hasMaskedPath&&(L=ee,O=et,H=(z=V[L].points)[O-1],U=(B=z[O]).partialLength,M=0),er="",b="",v="",x="",eo=this.defaultPropsArray;else{if(this._hasMaskedPath){if(en!==P[D].line){switch(e.j){case 1:N+=j-e.lineWidths[P[D].line];break;case 2:N+=(j-e.lineWidths[P[D].line])/2}en=P[D].line}J!==P[D].ind&&(P[J]&&(N+=P[J].extra),N+=P[D].an/2,J=P[D].ind),N+=C[0]*P[D].an*.005;var eu=0;for(o=0;o<a;o+=1)(n=k[o].a).p.propType&&((l=(r=k[o].s).getMult(P[D].anIndexes[o],w.a[o].s.totalChars)).length?eu+=n.p.v[0]*l[0]:eu+=n.p.v[0]*l),n.a.propType&&((l=(r=k[o].s).getMult(P[D].anIndexes[o],w.a[o].s.totalChars)).length?eu+=n.a.v[0]*l[0]:eu+=n.a.v[0]*l);for(F=!0,this._pathData.a.v&&(N=.5*P[0].an+(j-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*J/(A-1)+this._pathData.f.v);F;)M+U>=N+eu||!z?(W=(N+eu-M)/B.partialLength,u=H.point[0]+(B.point[0]-H.point[0])*W,d=H.point[1]+(B.point[1]-H.point[1])*W,S.translate(-C[0]*P[D].an*.005,-(.01*(C[1]*Y))),F=!1):z&&(M+=B.partialLength,(O+=1)>=z.length&&(O=0,V[L+=1]?z=V[L].points:G.v.c?(O=0,z=V[L=0].points):(M-=B.partialLength,z=null)),z&&(H=B,U=(B=z[O]).partialLength));c=P[D].an/2-P[D].add,S.translate(-c,0,0)}else c=P[D].an/2-P[D].add,S.translate(-c,0,0),S.translate(-C[0]*P[D].an*.005,-C[1]*Y*.01,0);for(o=0;o<a;o+=1)(n=k[o].a).t.propType&&(l=(r=k[o].s).getMult(P[D].anIndexes[o],w.a[o].s.totalChars),(0!==I||0!==e.j)&&(this._hasMaskedPath?l.length?N+=n.t.v*l[0]:N+=n.t.v*l:l.length?I+=n.t.v*l[0]:I+=n.t.v*l));for(e.strokeWidthAnim&&(h=e.sw||0),e.strokeColorAnim&&(f=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(m=[e.fc[0],e.fc[1],e.fc[2]]),o=0;o<a;o+=1)(n=k[o].a).a.propType&&((l=(r=k[o].s).getMult(P[D].anIndexes[o],w.a[o].s.totalChars)).length?S.translate(-n.a.v[0]*l[0],-n.a.v[1]*l[1],n.a.v[2]*l[2]):S.translate(-n.a.v[0]*l,-n.a.v[1]*l,n.a.v[2]*l));for(o=0;o<a;o+=1)(n=k[o].a).s.propType&&((l=(r=k[o].s).getMult(P[D].anIndexes[o],w.a[o].s.totalChars)).length?S.scale(1+(n.s.v[0]-1)*l[0],1+(n.s.v[1]-1)*l[1],1):S.scale(1+(n.s.v[0]-1)*l,1+(n.s.v[1]-1)*l,1));for(o=0;o<a;o+=1){if(n=k[o].a,l=(r=k[o].s).getMult(P[D].anIndexes[o],w.a[o].s.totalChars),n.sk.propType&&(l.length?S.skewFromAxis(-n.sk.v*l[0],n.sa.v*l[1]):S.skewFromAxis(-n.sk.v*l,n.sa.v*l)),n.r.propType&&(l.length?S.rotateZ(-n.r.v*l[2]):S.rotateZ(-n.r.v*l)),n.ry.propType&&(l.length?S.rotateY(n.ry.v*l[1]):S.rotateY(n.ry.v*l)),n.rx.propType&&(l.length?S.rotateX(n.rx.v*l[0]):S.rotateX(n.rx.v*l)),n.o.propType&&(l.length?p+=(n.o.v*l[0]-p)*l[0]:p+=(n.o.v*l-p)*l),e.strokeWidthAnim&&n.sw.propType&&(l.length?h+=n.sw.v*l[0]:h+=n.sw.v*l),e.strokeColorAnim&&n.sc.propType)for(g=0;g<3;g+=1)l.length?f[g]+=(n.sc.v[g]-f[g])*l[0]:f[g]+=(n.sc.v[g]-f[g])*l;if(e.fillColorAnim&&e.fc){if(n.fc.propType)for(g=0;g<3;g+=1)l.length?m[g]+=(n.fc.v[g]-m[g])*l[0]:m[g]+=(n.fc.v[g]-m[g])*l;n.fh.propType&&(m=l.length?addHueToRGB(m,n.fh.v*l[0]):addHueToRGB(m,n.fh.v*l)),n.fs.propType&&(m=l.length?addSaturationToRGB(m,n.fs.v*l[0]):addSaturationToRGB(m,n.fs.v*l)),n.fb.propType&&(m=l.length?addBrightnessToRGB(m,n.fb.v*l[0]):addBrightnessToRGB(m,n.fb.v*l))}}for(o=0;o<a;o+=1)(n=k[o].a).p.propType&&(l=(r=k[o].s).getMult(P[D].anIndexes[o],w.a[o].s.totalChars),this._hasMaskedPath?l.length?S.translate(0,n.p.v[1]*l[0],-n.p.v[2]*l[1]):S.translate(0,n.p.v[1]*l,-n.p.v[2]*l):l.length?S.translate(n.p.v[0]*l[0],n.p.v[1]*l[1],-n.p.v[2]*l[2]):S.translate(n.p.v[0]*l,n.p.v[1]*l,-n.p.v[2]*l));if(e.strokeWidthAnim&&(v=h<0?0:h),e.strokeColorAnim&&(y="rgb("+Math.round(255*f[0])+","+Math.round(255*f[1])+","+Math.round(255*f[2])+")"),e.fillColorAnim&&e.fc&&(b="rgb("+Math.round(255*m[0])+","+Math.round(255*m[1])+","+Math.round(255*m[2])+")"),this._hasMaskedPath){if(S.translate(0,-e.ls),S.translate(0,C[1]*Y*.01+T,0),this._pathData.p.v){var ed=180*Math.atan(q=(B.point[1]-H.point[1])/(B.point[0]-H.point[0]))/Math.PI;B.point[0]<H.point[0]&&(ed+=180),S.rotate(-ed*Math.PI/180)}S.translate(u,d,0),N-=C[0]*P[D].an*.005,P[D+1]&&J!==P[D+1].ind&&(N+=P[D].an/2,N+=.001*e.tr*e.finalSize)}else{switch(S.translate(I,T,0),e.ps&&S.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:S.translate(P[D].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[D].line]),0,0);break;case 2:S.translate(P[D].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[D].line])/2,0,0)}S.translate(0,-e.ls),S.translate(c,0,0),S.translate(C[0]*P[D].an*.005,C[1]*Y*.01,0),I+=P[D].l+.001*e.tr*e.finalSize}"html"===_?er=S.toCSS():"svg"===_?er=S.to2dCSS():eo=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],x=p}E<=D?(s=new LetterProps(x,v,y,b,er,eo),this.renderedLetters.push(s),E+=1,this.lettersChangedFlag=!0):(s=this.renderedLetters[D],this.lettersChangedFlag=s.update(x,v,y,b,er,eo)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var n,r,o=t.length,a="";for(n=0;n<o;n+=1)"sh"===t[n].ty&&(a+=buildShapeString(r=t[n].ks.k,r.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,o){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,o,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),o=createElementID();r.setAttribute("id",o),r.textContent=t.title,this.svgElement.appendChild(r),n+=o}if(t&&t.description){var a=createNS("desc"),s=createElementID();a.setAttribute("id",s),a.textContent=t.description,this.svgElement.appendChild(a),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;var e,t=15;for(e=0,this.savedOp=createTypedArray("float32",t);e<t;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=t}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,r=this.masksProperties.length,o=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(o=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o,a,s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var l=n.length;for(o=0;o<l;o+=1)n[o].closed||(a={transforms:r.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(a),n[o].elements.push(a))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CanvasRendererBase(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var o,a=e.ks.or.k.length;for(o=0;o<a;o+=1)e.ks.or.k[o].to=null,e.ks.or.k[o].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],o="";t<n;)"\r"===e[t]||"\x03"===e[t]?(r.push(o),o=""):o+=e[t],t+=1;return r.push(o),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e?e.l.length:0),e.fc?this.layerElement.setAttribute("fill",this.buildColor(e.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),e.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(e.sc)),this.layerElement.setAttribute("stroke-width",e.sw)),this.layerElement.setAttribute("font-size",e.finalSize);var t=this.globalData.fontManager.getFontByName(e.f);if(t.fClass)this.layerElement.setAttribute("class",t.fClass);else{this.layerElement.setAttribute("font-family",t.fFamily);var n=e.fWeight,r=e.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",e.t);var o=e.l||[],a=!!this.globalData.fontManager.chars;v=o.length;var s=this.mHelper,l="",c=this.data.singleShape,u=0,d=0,p=!0,f=.001*e.tr*e.finalSize;if(!c||a||e.sz){var h=this.textSpans.length;for(g=0;g<v;g+=1){if(this.textSpans[g]||(this.textSpans[g]={span:null,childSpan:null,glyph:null}),!a||!c||0===g){if(y=h>g?this.textSpans[g].span:createNS(a?"g":"text"),h<=g){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[g].span=y,a){var m=createNS("g");y.appendChild(m),this.textSpans[g].childSpan=m}this.textSpans[g].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(s.reset(),c&&(o[g].n&&(u=-f,d+=e.yOffset,d+=+!!p,p=!1),this.applyTextPropertiesToMatrix(e,s,o[g].line,u,d),u+=o[g].l||0,u+=f),a){if(1===(b=this.globalData.fontManager.getCharData(e.finalText[g],t.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily)).t)x=new SVGCompElement(b.data,this.globalData,this);else{var g,v,y,b,x,C=emptyShapeData;b.data&&b.data.shapes&&(C=this.buildShapeData(b.data,e.finalSize)),x=new SVGShapeElement(C,this.globalData,this)}if(this.textSpans[g].glyph){var k=this.textSpans[g].glyph;this.textSpans[g].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[g].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[g].childSpan.appendChild(x.layerElement),1===b.t&&this.textSpans[g].childSpan.setAttribute("transform","scale("+e.finalSize/100+","+e.finalSize/100+")")}else c&&y.setAttribute("transform","translate("+s.props[12]+","+s.props[13]+")"),y.textContent=o[g].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&y&&y.setAttribute("d",l)}else{var w=this.textContainer,S="start";switch(e.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}w.setAttribute("text-anchor",S),w.setAttribute("letter-spacing",f);var _=this.buildTextContents(e.finalText);for(g=0,v=_.length,d=e.ps?e.ps[1]+e.ascent:0;g<v;g+=1)(y=this.textSpans[g].span||createNS("tspan")).textContent=_[g],y.setAttribute("x",0),y.setAttribute("y",d),y.style.display="inherit",w.appendChild(y),this.textSpans[g]||(this.textSpans[g]={span:null,glyph:null}),this.textSpans[g].span=y,d+=e.finalLineHeight;this.layerElement.appendChild(w)}for(;g<this.textSpans.length;)this.textSpans[g].span.style.display="none",g+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(e=0,this.renderedFrame=this.comp.renderedFrame;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,n,r,o,a=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(e=0,t=s.length;e<t;e+=1)!s[e].n&&(n=a[e],r=this.textSpans[e].span,(o=this.textSpans[e].glyph)&&o.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var o=createElementID();n.setAttribute("id",o),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt&&(this.elements[e-1]&&!0!==this.elements[e-1]?n.setMatte(t[e-1].layerId):(this.buildItem(e-1),this.addPendingElement(n)))}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){e.setMatte(this.elements[t-1].layerId);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n,r=e.getBaseElement();if(r){for(var o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement()&&(n=this.elements[o].getBaseElement()),o+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t,n=this.tm.v;n===this.data.op&&(n=this.data.op-1),this.renderedFrame=n}var r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&(this.elements[t].prepareFrame(this.renderedFrame-this.layers[t].st),this.elements[t]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(t);var n=0;for(n=this._length;n<e;n+=1)this.saved[n]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var o=this.sequences[r];return o||(o={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=o,this.sequenceList.push(o)),o},processSequence:function(e,t){for(var n,r=0,o=e.transforms.length,a=t;r<o&&!t;){if(e.transforms[r].transform.mProps._mdf){a=!0;break}r+=1}if(a)for(e.finalTransform.reset(),r=o-1;r>=0;r-=1)n=e.transforms[r].transform.mProps.v.props,e.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]);e._mdf=a},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,n=this.masksProperties.length;for(t.beginPath(),r=0;r<n;r+=1)if("n"!==this.masksProperties[r].mode){this.masksProperties[r].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),s=this.viewData[r].v,o=e.applyToPointArray(s.v[0][0],s.v[0][1],0),t.moveTo(o[0],o[1]);var r,o,a,s,l,c=s._length;for(l=1;l<c;l+=1)a=e.applyToTriplePoints(s.o[l-1],s.i[l],s.v[l]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=e.applyToTriplePoints(s.o[l-1],s.i[0],s.v[0]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var e=0===this.data.ty;this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(e),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};return"fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):("gf"===e.ty||"gs"===e.ty)&&(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty?(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d&&(r.d=new DashProperty(this,e.d,"canvas",this),r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0]))):n.r=2===e.r?"evenodd":"nonzero",this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,o){var a,s,l,c,u,d,p=e.length-1,f=[],h=[],m=[].concat(o);for(a=p;a>=0;a-=1){if((c=this.searchProcessedElement(e[a]))?t[a]=n[c-1]:e[a]._shouldRender=r,"fl"===e[a].ty||"st"===e[a].ty||"gf"===e[a].ty||"gs"===e[a].ty)c?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],m),f.push(t[a].style);else if("gr"===e[a].ty){if(c)for(s=0,l=t[a].it.length;s<l;s+=1)t[a].prevViewData[s]=t[a].it[s];else t[a]=this.createGroupElement(e[a]);this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,r,m)}else"tr"===e[a].ty?(c||(d=this.createTransformElement(e[a]),t[a]=d),m.push(t[a]),this.addTransformToStyleList(t[a])):"sh"===e[a].ty||"rc"===e[a].ty||"el"===e[a].ty||"sr"===e[a].ty?c||(t[a]=this.createShapeElement(e[a])):"tm"===e[a].ty||"rd"===e[a].ty||"pb"===e[a].ty?(c?(u=t[a]).closed=!1:((u=ShapeModifiers.getModifier(e[a].ty)).init(this,e[a]),t[a]=u,this.shapeModifiers.push(u)),h.push(u)):"rp"===e[a].ty&&(c?(u=t[a]).closed=!0:(u=ShapeModifiers.getModifier(e[a].ty),t[a]=u,u.init(this,e,a,t),this.shapeModifiers.push(u),r=!1),h.push(u));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),p=h.length,a=0;a<p;a+=1)h[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,r,o,a,s,l,c,u=this.stylesList.length,d=this.globalData.renderer,p=this.globalData.canvasContext;for(e=0;e<u;e+=1)if(!(("st"===(l=(c=this.stylesList[e]).type)||"gs"===l)&&0===c.wi||!c.data._shouldRender||0===c.coOp||0===this.globalData.currentGlobalAlpha)){for(d.save(),a=c.elements,"st"===l||"gs"===l?(p.strokeStyle="st"===l?c.co:c.grd,p.lineWidth=c.wi,p.lineCap=c.lc,p.lineJoin=c.lj,p.miterLimit=c.ml||0):p.fillStyle="fl"===l?c.co:c.grd,d.ctxOpacity(c.coOp),"st"!==l&&"gs"!==l&&p.beginPath(),d.ctxTransform(c.preTransforms.finalTransform.props),n=a.length,t=0;t<n;t+=1){for(("st"===l||"gs"===l)&&(p.beginPath(),c.da&&(p.setLineDash(c.da),p.lineDashOffset=c.do)),o=(s=a[t].trNodes).length,r=0;r<o;r+=1)"m"===s[r].t?p.moveTo(s[r].p[0],s[r].p[1]):"c"===s[r].t?p.bezierCurveTo(s[r].pts[0],s[r].pts[1],s[r].pts[2],s[r].pts[3],s[r].pts[4],s[r].pts[5]):p.closePath();("st"===l||"gs"===l)&&(p.stroke(),c.da&&p.setLineDash(this.dashResetter))}"st"!==l&&"gs"!==l&&p.fill(c.r),d.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var o,a,s=t.length-1;for(a=e,o=s;o>=0;o-=1)"tr"===t[o].ty?(a=n[o].transform,this.renderShapeTransform(e,a)):"sh"===t[o].ty||"el"===t[o].ty||"rc"===t[o].ty||"sr"===t[o].ty?this.renderPath(t[o],n[o]):"fl"===t[o].ty?this.renderFill(t[o],n[o],a):"st"===t[o].ty?this.renderStroke(t[o],n[o],a):"gf"===t[o].ty||"gs"===t[o].ty?this.renderGradientFill(t[o],n[o],a):"gr"===t[o].ty?this.renderShape(a,t[o].it,n[o].it):t[o].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,o,a=e.trNodes,s=t.paths,l=s._length;a.length=0;var c=e.transforms.finalTransform;for(o=0;o<l;o+=1){var u=s.shapes[o];if(u&&u.v){for(n=1,r=u._length;n<r;n+=1)1===n&&a.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),a.push({t:"c",pts:c.applyToTriplePoints(u.o[n-1],u.i[n],u.v[n])});1===r&&a.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&r&&(a.push({t:"c",pts:c.applyToTriplePoints(u.o[n-1],u.i[0],u.v[0])}),a.push({t:"z"}))}}e.trNodes=a}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r=t.style;if(!r.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var o,a,s=this.globalData.canvasContext,l=t.s.v,c=t.e.v;if(1===e.t)o=s.createLinearGradient(l[0],l[1],c[0],c[1]);else{var u=Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)),d=Math.atan2(c[1]-l[1],c[0]-l[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var f=u*p,h=Math.cos(d+t.a.v)*f+l[0],m=Math.sin(d+t.a.v)*f+l[1];o=s.createRadialGradient(h,m,0,l[0],l[1],u)}var g=e.g.p,v=t.g.c,y=1;for(a=0;a<g;a+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*a+1]),o.addColorStop(v[4*a]/100,"rgba("+v[4*a+1]+","+v[4*a+2]+","+v[4*a+3]+","+y+")");r.grd=o}r.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,o=t.d;o&&(o._mdf||this._isFirstFrame)&&(r.da=o.dashArray,r.do=o.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e,t,n,r,o,a,s,l,c,u,d,p,f=this.textProperty.currentData;this.renderedLetters=createSizedArray(f.l?f.l.length:0);var h=!1;f.fc?(h=!0,this.values.fill=this.buildColor(f.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=h;var m=!1;f.sc&&(m=!0,this.values.stroke=this.buildColor(f.sc),this.values.sWidth=f.sw);var g=this.globalData.fontManager.getFontByName(f.f),v=f.l,y=this.mHelper;this.stroke=m,this.values.fValue=f.finalSize+"px "+this.globalData.fontManager.getFontByName(f.f).fFamily,t=f.finalText.length;var b=this.data.singleShape,x=.001*f.tr*f.finalSize,C=0,k=0,w=!0,S=0;for(e=0;e<t;e+=1){r=(n=this.globalData.fontManager.getCharData(f.finalText[e],g.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily))&&n.data||{},y.reset(),b&&v[e].n&&(C=-x,k+=f.yOffset,k+=+!!w,w=!1),c=(s=r.shapes?r.shapes[0].it:[]).length,y.scale(f.finalSize/100,f.finalSize/100),b&&this.applyTextPropertiesToMatrix(f,y,v[e].line,C,k),d=createSizedArray(c-1);var _=0;for(l=0;l<c;l+=1)if("sh"===s[l].ty){for(o=1,a=s[l].ks.k.i.length,u=s[l].ks.k,p=[];o<a;o+=1)1===o&&p.push(y.applyToX(u.v[0][0],u.v[0][1],0),y.applyToY(u.v[0][0],u.v[0][1],0)),p.push(y.applyToX(u.o[o-1][0],u.o[o-1][1],0),y.applyToY(u.o[o-1][0],u.o[o-1][1],0),y.applyToX(u.i[o][0],u.i[o][1],0),y.applyToY(u.i[o][0],u.i[o][1],0),y.applyToX(u.v[o][0],u.v[o][1],0),y.applyToY(u.v[o][0],u.v[o][1],0));p.push(y.applyToX(u.o[o-1][0],u.o[o-1][1],0),y.applyToY(u.o[o-1][0],u.o[o-1][1],0),y.applyToX(u.i[0][0],u.i[0][1],0),y.applyToY(u.i[0][0],u.i[0][1],0),y.applyToX(u.v[0][0],u.v[0][1],0),y.applyToY(u.v[0][0],u.v[0][1],0)),d[_]=p,_+=1}b&&(C+=v[e].l,C+=x),this.textSpans[S]?this.textSpans[S].elem=d:this.textSpans[S]={elem:d},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,r,o,a,s,l,c,u=this.canvasContext;u.font=this.values.fValue,u.lineCap="butt",u.lineJoin="miter",u.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var d=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;t=p.length;var f=null,h=null,m=null;for(e=0;e<t;e+=1)if(!p[e].n){if((s=d[e])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(s.p),this.globalData.renderer.ctxOpacity(s.o)),this.fill){for(s&&s.fc?f!==s.fc&&(f=s.fc,u.fillStyle=s.fc):f!==this.values.fill&&(f=this.values.fill,u.fillStyle=this.values.fill),r=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(a=(c=l[n]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),o=2;o<a;o+=6)this.globalData.canvasContext.bezierCurveTo(c[o],c[o+1],c[o+2],c[o+3],c[o+4],c[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(s&&s.sw?m!==s.sw&&(m=s.sw,u.lineWidth=s.sw):m!==this.values.sWidth&&(m=this.values.sWidth,u.lineWidth=this.values.sWidth),s&&s.sc?h!==s.sc&&(h=s.sc,u.strokeStyle=s.sc):h!==this.values.stroke&&(h=this.values.stroke,u.strokeStyle=this.values.stroke),r=(l=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(a=(c=l[n]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),o=2;o<a;o+=6)this.globalData.canvasContext.bezierCurveTo(c[o],c[o+1],c[o+2],c[o+3],c[o+4],c[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e,t,n=createTag("canvas");n.width=this.assetData.w,n.height=this.assetData.h;var r=n.getContext("2d"),o=this.img.width,a=this.img.height,s=o/a,l=this.assetData.w/this.assetData.h,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>l&&"xMidYMid slice"===c||s<l&&"xMidYMid slice"!==c?e=(t=a)*l:t=(e=o)/l,r.drawImage(this.img,(o-e)/2,(a-t)/2,e,t,0,0,this.assetData.w,this.assetData.h),this.img=n}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){if(1!==e[0]||0!==e[1]||0!==e[4]||1!==e[5]||0!==e[12]||0!==e[13]){if(!this.renderConfig.clearCanvas)return void this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13]);this.transformMat.cloneFromProps(e);var t=this.contextData.cTr.props;this.transformMat.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var n=this.contextData.cTr.props;this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])}},CanvasRendererBase.prototype.ctxOpacity=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.globalAlpha*=e<0?0:e,this.globalData.currentGlobalAlpha=this.contextData.cO;return}this.contextData.cO*=e<0?0:e,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(e){if(!this.renderConfig.clearCanvas)return void this.canvasContext.save();e&&this.canvasContext.save();var t,n=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var r=this.contextData.saved[this.contextData.cArrPos];for(t=0;t<16;t+=1)r[t]=n[t];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas)return void this.canvasContext.restore();e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var t,n=this.contextData.saved[this.contextData.cArrPos],r=this.contextData.cTr.props;for(t=0;t<16;t+=1)r[t]=n[t];this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),n=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=n,this.globalData.currentGlobalAlpha!==n&&(this.canvasContext.globalAlpha=n,this.globalData.currentGlobalAlpha=n)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(){if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",e*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",t*this.renderConfig.dpr)):(e=this.canvasContext.canvas.width*this.renderConfig.dpr,t=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var e,t,n,r,o=this.renderConfig.preserveAspectRatio.split(" "),a=o[1]||"meet",s=o[0]||"xMidYMid",l=s.substr(0,4),c=s.substr(4);n=e/t,(r=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===a||r<n&&"slice"===a?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)),"xMid"===l&&(r<n&&"meet"===a||r>n&&"slice"===a)?this.transformCanvas.tx=(e-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(r<n&&"meet"===a||r>n&&"slice"===a)?this.transformCanvas.tx=(e-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,"YMid"===c&&(r>n&&"meet"===a||r<n&&"slice"===a)?this.transformCanvas.ty=(t-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(r>n&&"meet"===a||r<n&&"slice"===a)?this.transformCanvas.ty=(t-this.transformCanvas.h*(e/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=0;n<r;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,r,o,a,s,l=e.sh.v,c=e.transformers,u=l._length;if(!(u<=1)){for(n=0;n<u-1;n+=1)r=this.getTransformedPoint(c,l.v[n]),o=this.getTransformedPoint(c,l.o[n]),a=this.getTransformedPoint(c,l.i[n+1]),s=this.getTransformedPoint(c,l.v[n+1]),this.checkBounds(r,o,a,s,t);l.c&&(r=this.getTransformedPoint(c,l.v[n]),o=this.getTransformedPoint(c,l.o[n]),a=this.getTransformedPoint(c,l.i[0]),s=this.getTransformedPoint(c,l.v[0]),this.checkBounds(r,o,a,s,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,o){this.getBoundsOfCurve(e,t,n,r);var a=this.shapeBoundingBox;o.x=bmMin(a.left,o.x),o.xMax=bmMax(a.right,o.xMax),o.y=bmMin(a.top,o.y),o.yMax=bmMax(a.bottom,o.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var o,a,s,l,c,u,d,p=[[e[0],r[0]],[e[1],r[1]]],f=0;f<2;++f)a=6*e[f]-12*t[f]+6*n[f],o=-3*e[f]+9*t[f]-9*n[f]+3*r[f],s=3*t[f]-3*e[f],a|=0,s|=0,0==(o|=0)&&0===a||(0===o?(l=-s/a)>0&&l<1&&p[f].push(this.calculateF(l,e,t,n,r,f)):(c=a*a-4*s*o)>=0&&((u=(-a+bmSqrt(c))/(2*o))>0&&u<1&&p[f].push(this.calculateF(u,e,t,n,r,f)),(d=(-a-bmSqrt(c))/(2*o))>0&&d<1&&p[f].push(this.calculateF(d,e,t,n,r,f))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,o,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*n[a]+3*(1-e)*bmPow(e,2)*r[a]+bmPow(e,3)*o[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var o=e.keyframes[r].s;o>n&&(n=o)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=999999,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,!this.currentBoxContains(e)){var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=o,r.webkitTransform=o}}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",r.fClass)this.innerElem.className=r.fClass;else{t.fontFamily=r.fFamily;var o=e.fWeight;t.fontStyle=e.fStyle,t.fontWeight=o}var a=e.l;d=a.length;var s=this.mHelper,l="",c=0;for(u=0;u<d;u+=1){if(this.globalData.fontManager.chars?(this.textPaths[c]?p=this.textPaths[c]:((p=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),p.setAttribute("stroke-linejoin",lineJoinEnum[2]),p.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[c]?h=(f=this.textSpans[c]).children[0]:((f=createTag("div")).style.lineHeight=0,(h=createNS("svg")).appendChild(p),styleDiv(f)))):this.isMasked?p=this.textPaths[c]?this.textPaths[c]:createNS("text"):this.textSpans[c]?(f=this.textSpans[c],p=this.textPaths[c]):(styleDiv(f=createTag("span")),styleDiv(p=createTag("span")),f.appendChild(p)),this.globalData.fontManager.chars){var u,d,p,f,h,m,g,v=this.globalData.fontManager.getCharData(e.finalText[u],r.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=v?v.data:null,s.reset(),g&&g.shapes&&g.shapes.length&&(m=g.shapes[0].it,s.scale(e.finalSize/100,e.finalSize/100),l=this.createPathShape(s,m),p.setAttribute("d",l)),this.isMasked)this.innerElem.appendChild(p);else{if(this.innerElem.appendChild(f),g&&g.shapes){document.body.appendChild(h);var y=h.getBBox();h.setAttribute("width",y.width+2),h.setAttribute("height",y.height+2),h.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=h.style,x="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=x,b.webkitTransform=x,a[u].yOffset=y.y-1}else h.setAttribute("width",1),h.setAttribute("height",1);f.appendChild(h)}}else if(p.textContent=a[u].val,p.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(p);else{this.innerElem.appendChild(f);var C=p.style,k="translate3d(0,"+-e.finalSize/1.2+"px,0)";C.transform=k,C.webkitTransform=k}this.isMasked?this.textSpans[c]=p:this.textSpans[c]=f,this.textSpans[c].style.display="block",this.textPaths[c]=p,c+=1}for(;c<this.textSpans.length;)this.textSpans[c].style.display="none",c+=1},HTextElement.prototype.renderInnerContent=function(){if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH);var e,t,n,r,o,a=this.svgElement.style,s="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";a.transform=s,a.webkitTransform=s}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var l=0,c=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;for(e=0,t=u.length;e<t;e+=1)u[e].n?l+=1:(r=this.textSpans[e],o=this.textPaths[e],n=c[l],l+=1,n._mdf.m&&(this.isMasked?r.setAttribute("transform",n.m):(r.style.webkitTransform=n.m,r.style.transform=n.m)),r.style.opacity=n.o,n.sw&&n._mdf.sw&&o.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&o.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(o.setAttribute("fill",n.fc),o.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var d=this.innerElem.getBBox();this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height));var p=1;if(this.currentBBox.w!==d.width+2*p||this.currentBBox.h!==d.height+2*p||this.currentBBox.x!==d.x-p||this.currentBBox.y!==d.y-p){this.currentBBox.w=d.width+2*p,this.currentBBox.h=d.height+2*p,this.currentBBox.x=d.x-p,this.currentBBox.y=d.y-p,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),a=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=f,a.webkitTransform=f}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,r,o=this.comp.threeDElements.length;for(e=0;e<o;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,r=t.container.style;var a=this.pe.v+"px",s="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=a,n.webkitPerspective=a,r.transformOrigin=s,r.mozTransformOrigin=s,r.webkitTransformOrigin=s,n.transform=l,n.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame;if(this.hierarchy)for(n=0,r=this.hierarchy.length;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(n=r=this.hierarchy.length-1;n>=0;n-=1){var t=this.hierarchy[n].finalTransform.mProp;this.mat.translate(-t.p.v[0],-t.p.v[1],t.p.v[2]),this.mat.rotateX(-t.or.v[0]).rotateY(-t.or.v[1]).rotateZ(t.or.v[2]),this.mat.rotateX(-t.rx.v).rotateY(-t.ry.v).rotateZ(t.rz.v),this.mat.scale(1/t.s.v[0],1/t.s.v[1],1/t.s.v[2]),this.mat.translate(t.a.v[0],t.a.v[1],t.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n,r,o=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]],a=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),s=[o[0]/a,o[1]/a,o[2]/a],l=Math.sqrt(s[2]*s[2]+s[0]*s[0]),c=Math.atan2(s[1],l),u=Math.atan2(s[0],-s[2]);this.mat.rotateY(u).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){for(n=0,r=this.comp.threeDElements.length;n<r;n+=1)if("3d"===(p=this.comp.threeDElements[n]).type){if(d){var p,f,h,m=this.mat.toCSS();(h=p.container.style).transform=m,h.webkitTransform=m}this.pe._mdf&&((f=p.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var o,a,s=0;s<t;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s],o=(this.layers[s].ddd?this.getThreeDContainerByPos(s):a.getBaseElement())||o),s+=1;o?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,o):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,o=createTag("div");styleDiv(o);var a=createTag("div");if(styleDiv(a),"3d"===t){(n=o.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var s="50% 50%";n.webkitTransformOrigin=s,n.mozTransformOrigin=s,n.transformOrigin=s;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=a.style).transform=l,r.webkitTransform=l}o.appendChild(a);var c={container:a,perspectiveElem:o,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?"3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")):"2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e);for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var o,a=this.threeDElements[n].startPos;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a].getBaseElement()),a+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var a=createNS("defs");o.appendChild(a),this.data=e,this.setupGlobalData(e,o),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,n,r,o=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,s=o/a;this.globalData.compSize.w/this.globalData.compSize.h>s?(e=o/this.globalData.compSize.w,t=o/this.globalData.compSize.w,n=0,r=(a-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(e=a/this.globalData.compSize.h,t=a/this.globalData.compSize.h,n=(o-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,r=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var o=this.threeDElements[e].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var o=this.createComp(e[t],r,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var Expressions=function(){var e={};return e.initExpressions=function e(e){var t=0,n=[];function r(){t+=1}function o(){0==(t-=1)&&s()}function a(e){-1===n.indexOf(e)&&n.push(e)}function s(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=r,e.renderer.globalData.popExpression=o,e.renderer.globalData.registerExpressionProperty=a},e}();function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function seedRandom(e,t){var n,r=this,o=256,a=6,s=52,l="random",c=t.pow(o,a),u=t.pow(2,s),d=2*u,p=o-1;function f(n,r,s){var p=[],f=v(g((r=!0===r?{entropy:!0}:r||{}).entropy?[n,b(e)]:null===n?y():n,3),p),x=new h(p),C=function(){for(var e=x.g(a),t=c,n=0;e<u;)e=(e+n)*o,t*=o,n=x.g(1);for(;e>=d;)e/=2,t/=2,n>>>=1;return(e+n)/t};return C.int32=function(){return 0|x.g(4)},C.quick=function(){return x.g(4)/0x100000000},C.double=C,v(b(x.S),e),(r.pass||s||function(e,n,r,o){return(o&&(o.S&&m(o,x),e.state=function(){return m(x,{})}),r)?(t[l]=e,n):e})(C,f,"global"in r?r.global:this==t,r.state)}function h(e){var t,n=e.length,r=this,a=0,s=r.i=r.j=0,l=r.S=[];for(n||(e=[n++]);a<o;)l[a]=a++;for(a=0;a<o;a++)l[a]=l[s=p&s+e[a%n]+(t=l[a])],l[s]=t;r.g=function(e){for(var t,n=0,a=r.i,s=r.j,l=r.S;e--;)t=l[a=p&a+1],n=n*o+l[p&(l[a]=l[s=p&s+t])+(l[s]=t)];return r.i=a,r.j=s,n}}function m(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function g(e,t){var n,r=[],o=_typeof$1(e);if(t&&"object"==o)for(n in e)try{r.push(g(e[n],t-1))}catch(e){}return r.length?r:"string"==o?e:e+"\0"}function v(e,t){for(var n,r=e+"",o=0;o<r.length;)t[p&o]=p&(n^=19*t[p&o])+r.charCodeAt(o++);return b(t)}function y(){try{if(n)return b(n.randomBytes(o));var t=new Uint8Array(o);return(r.crypto||r.msCrypto).getRandomValues(t),b(t)}catch(t){var a=r.navigator,s=a&&a.plugins;return[+new Date,r,s,r.screen,b(e)]}}function b(e){return String.fromCharCode.apply(0,e)}t["seed"+l]=f,v(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,o=[];for(n=0;n<r;n+=1)o[n]=-e[n];return o}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof(e),r=_typeof(t);if("string"===n||"string"===r||isNumerable(n,e)&&isNumerable(r,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,a=e.length,s=t.length,l=[];o<a||o<s;)("number"==typeof e[o]||e[o]instanceof Number)&&("number"==typeof t[o]||t[o]instanceof Number)?l[o]=e[o]+t[o]:l[o]=void 0===t[o]?e[o]:e[o]||t[o],o+=1;return l}return 0}var add=sum;function sub(e,t){var n=_typeof(e),r=_typeof(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,a=e.length,s=t.length,l=[];o<a||o<s;)("number"==typeof e[o]||e[o]instanceof Number)&&("number"==typeof t[o]||t[o]instanceof Number)?l[o]=e[o]-t[o]:l[o]=void 0===t[o]?e[o]:e[o]||t[o],o+=1;return l}return 0}function mul(e,t){var n,r,o,a=_typeof(e),s=_typeof(t);if(isNumerable(a,e)&&isNumerable(s,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(r=0,n=createTypedArray("float32",o=e.length);r<o;r+=1)n[r]=e[r]*t;return n}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(r=0,n=createTypedArray("float32",o=t.length);r<o;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,o,a=_typeof(e),s=_typeof(t);if(isNumerable(a,e)&&isNumerable(s,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(r=0,n=createTypedArray("float32",o=e.length);r<o;r+=1)n[r]=e[r]/t;return n}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(r=0,n=createTypedArray("float32",o=t.length);r<o;r+=1)n[r]=e/t[r];return n}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var n,r=Math.min(e.length,t.length),o=0;for(n=0;n<r;n+=1)o+=Math.pow(t[n]-e[n],2);return Math.sqrt(o)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],o=e[1],a=e[2],s=Math.max(r,o,a),l=Math.min(r,o,a),c=(s+l)/2;if(s===l)t=0,n=0;else{var u=s-l;switch(n=c>.5?u/(2-s-l):u/(s+l),s){case r:t=(o-a)/u+6*(o<a);break;case o:t=(a-r)/u+2;break;case a:t=(r-o)/u+4}t/=6}return[t,n,c,e[3]]}function hue2rgb(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,o=e[0],a=e[1],s=e[2];if(0===a)t=s,r=s,n=s;else{var l=s<.5?s*(1+a):s+a-s*a,c=2*s-l;t=hue2rgb(c,l,o+1/3),n=hue2rgb(c,l,o),r=hue2rgb(c,l,o-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,o){if((void 0===r||void 0===o)&&(r=t,o=n,t=0,n=1),n<t){var a,s=n;n=t,t=s}if(e<=t)return r;if(e>=n)return o;var l=n===t?0:(e-t)/(n-t);if(!r.length)return r+(o-r)*l;var c=r.length,u=createTypedArray("float32",c);for(a=0;a<c;a+=1)u[a]=r[a]+(o[a]-r[a])*l;return u}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var o=createTypedArray("float32",r),a=BMMath.random();for(n=0;n<r;n+=1)o[n]=e[n]+a*(t[n]-e[n]);return o}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var o,a,s,l=e.length,c=shapePool.newElement();c.setPathData(!!r,l);var u=[0,0];for(o=0;o<l;o+=1)a=t&&t[o]?t[o]:u,s=n&&n[o]?n[o]:u,c.setTripleAt(e[o][0],e[o][1],s[0]+e[o][0],s[1]+e[o][1],a[0]+e[o][0],a[1]+e[o][1],o,!0);return c}function initiateExpression(elem,data,property){var transform,$bm_transform,content,effect,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,time,velocity,value,text,textIndex,textTotal,selectorValue,parent,val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=(function(e,t){var n,r,o=this.pv.length?this.pv.length:1,a=createTypedArray("float32",o);e=5;var s=Math.floor(time*e);for(n=0,r=0;n<s;){for(r=0;r<o;r+=1)a[r]+=-t+2*t*BMMath.random();n+=1}var l=time*e,c=l-Math.floor(l),u=createTypedArray("float32",o);if(o>1){for(r=0;r<o;r+=1)u[r]=this.pv[r]+a[r]+(-t+2*t*BMMath.random())*c;return u}return this.pv+a[0]+(-t+2*t*BMMath.random())*c}).bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loop_in=loopIn=thisProperty.loopIn.bind(thisProperty)),thisProperty.loopOut&&(loop_out=loopOut=thisProperty.loopOut.bind(thisProperty)),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,o){return applyEase(easeOutBez,e,t,n,r,o)}function easeIn(e,t,n,r,o){return applyEase(easeInBez,e,t,n,r,o)}function ease(e,t,n,r,o){return applyEase(easeInOutBez,e,t,n,r,o)}function applyEase(e,t,n,r,o,a){void 0===o?(o=n,a=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(o)){var l,c=o.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=(a[l]-o[l])*s+o[l];return u}return(a-o)*s+o}function nearestKey(e){var t,n,r,o=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<o-1;t+=1)if(e===data.k[t].t){n=t+1,r=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var a={};return a.index=n,a.time=r/elem.comp.globalData.frameRate,a}function key(e){if(!data.k.length||"number"==typeof data.k[0])throw Error("The property has no keyframe at index "+e);e-=1;var t,n,r={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]},o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(t=0,n=o.length;t<n;t+=1)r[t]=o[t],r.value[t]=o[t];return r}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return(value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType)?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),!transform&&($bm_transform=transform=elem.layerInterface("ADBE Transform Group"),transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!!(elem.hierarchy&&elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers=function(){return{searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t,n=-.01,r=this.getValueAtTime(e),o=this.getValueAtTime(e+n),a=0;if(r.length){for(t=0;t<r.length;t+=1)a+=Math.pow(o[t]-r[t],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=-.001,o=this.getValueAtTime(e),a=this.getValueAtTime(e+r);if(o.length)for(n=0,t=createTypedArray("float32",o.length);n<o.length;n+=1)t[n]=(a[n]-o[n])/r;else t=(a-o)/r;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}}}();function addPropertyDecorator(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,o,a,s,l,c=this.comp.renderedFrame,u=this.keyframes,d=u[u.length-1].t;if(c<=d)return this.pv;if(n?(r=t?Math.abs(d-this.elem.comp.globalData.frameRate*t):Math.max(0,d-this.elem.data.ip),o=d-r):((!t||t>u.length-1)&&(t=u.length-1),r=d-(o=u[u.length-1-t].t)),"pingpong"===e){if(Math.floor((c-o)/r)%2!=0)return this.getValueAtTime((r-(c-o)%r+o)/this.comp.globalData.frameRate,0)}else if("offset"===e){var p=this.getValueAtTime(o/this.comp.globalData.frameRate,0),f=this.getValueAtTime(d/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((c-o)%r+o)/this.comp.globalData.frameRate,0),m=Math.floor((c-o)/r);if(this.pv.length){for(a=0,s=(l=Array(p.length)).length;a<s;a+=1)l[a]=(f[a]-p[a])*m+h[a];return l}return(f-p)*m+h}else if("continue"===e){var g=this.getValueAtTime(d/this.comp.globalData.frameRate,0),v=this.getValueAtTime((d-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=0,s=(l=Array(g.length)).length;a<s;a+=1)l[a]=g[a]+(g[a]-v[a])*((c-d)/this.comp.globalData.frameRate)/5e-4;return l}return g+(c-d)/.001*(g-v)}return this.getValueAtTime(((c-o)%r+o)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,o,a,s,l,c=this.comp.renderedFrame,u=this.keyframes,d=u[0].t;if(c>=d)return this.pv;if(n?(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-d),o=d+r):((!t||t>u.length-1)&&(t=u.length-1),r=(o=u[t].t)-d),"pingpong"===e){if(Math.floor((d-c)/r)%2==0)return this.getValueAtTime(((d-c)%r+d)/this.comp.globalData.frameRate,0)}else if("offset"===e){var p=this.getValueAtTime(d/this.comp.globalData.frameRate,0),f=this.getValueAtTime(o/this.comp.globalData.frameRate,0),h=this.getValueAtTime((r-(d-c)%r+d)/this.comp.globalData.frameRate,0),m=Math.floor((d-c)/r)+1;if(this.pv.length){for(a=0,s=(l=Array(p.length)).length;a<s;a+=1)l[a]=h[a]-(f[a]-p[a])*m;return l}return h-(f-p)*m}else if("continue"===e){var g=this.getValueAtTime(d/this.comp.globalData.frameRate,0),v=this.getValueAtTime((d+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=0,s=(l=Array(g.length)).length;a<s;a+=1)l[a]=g[a]+(g[a]-v[a])*(d-c)/.001;return l}return g+(g-v)*(d-c)/.001}return this.getValueAtTime((r-((d-c)%r+d))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k||(e=.5*(e||.4),(t=Math.floor(t||5))<=1))return this.pv;var n,r,o=this.comp.renderedFrame/this.comp.globalData.frameRate,a=o-e,s=o+e,l=t>1?(s-a)/(t-1):1,c=0,u=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;c<t;){if(r=this.getValueAtTime(a+c*l),this.pv.length)for(u=0;u<this.pv.length;u+=1)n[u]+=r[u];else n+=r;c+=1}if(this.pv.length)for(u=0;u<this.pv.length;u+=1)n[u]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var o=this.sk.getValueAtTime(e),a=this.sa.getValueAtTime(e);t.skewFromAxis(-o*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var s=this.r.getValueAtTime(e);t.rotate(-s*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var l=this.rz.getValueAtTime(e),c=this.ry.getValueAtTime(e),u=this.rx.getValueAtTime(e),d=this.or.getValueAtTime(e);t.rotateZ(-l*this.rz.mult).rotateY(c*this.ry.mult).rotateX(u*this.rx.mult).rotateZ(-d[2]*this.or.mult).rotateY(d[1]*this.or.mult).rotateX(d[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(e),f=this.py.getValueAtTime(e);if(this.data.p.z){var h=this.pz.getValueAtTime(e);t.translate(p*this.px.mult,f*this.py.mult,-h*this.pz.mult)}else t.translate(p*this.px.mult,f*this.py.mult,0)}else{var m=this.p.getValueAtTime(e);t.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return t}function o(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var s=a(e,t,n);return s.dynamicProperties.length?s.getValueAtTime=r.bind(s):s.getValueAtTime=o.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s};var s=PropertyFactory.getProp;function l(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}PropertyFactory.getProp=function(r,o,a,l,c){var u=s(r,o,a,l,c);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=e,u.loopIn=t,u.smooth=n,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=1===o.a?o.k.length:0,u.propertyIndex=o.ix;var d=0;return 0!==a&&(d=createTypedArray("float32",1===o.a?o.k[0].s.length:o.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(r,o,u),u.k&&c.addDynamicProperty(u),u};var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function d(){}d.prototype={vertices:function(e,t){this.k&&this.getValue();var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var o=r._length,a=r[e],s=r.v,l=createSizedArray(o);for(n=0;n<o;n+=1)"i"===e||"o"===e?l[n]=[a[n][0]-s[n][0],a[n][1]-s[n][1]]:l[n]=[a[n][0],a[n][1]];return l},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var o=this._segmentsLength,a=o.lengths,s=o.totalLength*e,l=0,c=a.length,u=0;l<c;){if(u+a[l].addedLength>s){var d=l,p=r.c&&l===c-1?0:l+1,f=(s-u)/a[l].addedLength;n=bez.getPointInSegment(r.v[d],r.v[p],r.o[d],r.i[p],f,a[l]);break}u+=a[l].addedLength,l+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),o=this.pointOnPath(e+.001,t),a=o[0]-r[0],s=o[1]-r[1],l=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));return 0===l?[0,0]:"tangent"===n?[a/l,s/l]:[-s/l,a/l]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([d],c),extendPrototype([d],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,r,o){var a=p(e,t,n,r,o);return a.propertyIndex=t.ix,a.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,a):4===n&&expressionHelpers.searchExpressions(e,t.ks,a),a.k&&e.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(e,t,n,r,o){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),a.setAttribute("result",r+"_tint_1"),e.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",r+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var s=this.createMergeNode(r,[o,r+"_tint_1",r+"_tint_2"]);e.appendChild(s)}function SVGFillFilter(e,t,n,r){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",r),e.appendChild(o),this.matrixFilter=o}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(o);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),this.matrixFilter=a;var s=createNS("feFuncR");s.setAttribute("type","table"),a.appendChild(s),this.feFuncR=s;var l=createNS("feFuncG");l.setAttribute("type","table"),a.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),a.appendChild(c),this.feFuncB=c,e.appendChild(a)}function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var o=this.filterManager.effectElements,a=createNS("feComponentTransfer");(o[10].p.k||0!==o[10].p.v||o[11].p.k||1!==o[11].p.v||o[12].p.k||1!==o[12].p.v||o[13].p.k||0!==o[13].p.v||o[14].p.k||1!==o[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(o[17].p.k||0!==o[17].p.v||o[18].p.k||1!==o[18].p.v||o[19].p.k||1!==o[19].p.v||o[20].p.k||0!==o[20].p.v||o[21].p.k||1!==o[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(o[24].p.k||0!==o[24].p.v||o[25].p.k||1!==o[25].p.v||o[26].p.k||1!==o[26].p.v||o[27].p.k||0!==o[27].p.v||o[28].p.k||1!==o[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(o[31].p.k||0!==o[31].p.v||o[32].p.k||1!==o[32].p.v||o[33].p.k||1!==o[33].p.v||o[34].p.k||0!==o[34].p.v||o[35].p.k||1!==o[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(o[3].p.k||0!==o[3].p.v||o[4].p.k||1!==o[4].p.v||o[5].p.k||1!==o[5].p.v||o[6].p.k||0!==o[6].p.v||o[7].p.k||1!==o[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(e,t,n,r,o){var a=t.container.globalData.renderConfig.filterSize,s=t.data.fs||a;e.setAttribute("x",s.x||a.x),e.setAttribute("y",s.y||a.y),e.setAttribute("width",s.width||a.width),e.setAttribute("height",s.height||a.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",r+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",r+"_drop_shadow_1"),c.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var d=createNS("feComposite");d.setAttribute("in",r+"_drop_shadow_3"),d.setAttribute("in2",r+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(d);var p=this.createMergeNode(r,[r+"_drop_shadow_4",o]);e.appendChild(p)}SVGComposableEffect.prototype={createMergeNode:function(e,t){var n,r,o=createNS("feMerge");for(o.setAttribute("result",e),r=0;r<t.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",t[r]),o.appendChild(n),o.appendChild(n);return o}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=(n=this.filterManager.effectElements[0].p.v-1)+1,(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),s=createElementID();a.setAttribute("id",s),a.setAttribute("mask-type","alpha"),a.appendChild(t),this.elem.globalData.defs.appendChild(a);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+s+")");o[0];)l.appendChild(o[0]);this.elem.layerElement.appendChild(l),this.masker=a,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t=this.paths.length;for(n=0;n<t;n+=1)if(-1!==this.paths[n].m&&(r=this.elem.maskManager.viewData[this.paths[n].m],o=this.paths[n].p,(e||this.filterManager._mdf||r.prop._mdf)&&o.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var n,r,o,a,s,l=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),c=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),u=o.getTotalLength();a="0 0 0 "+u*l+" ";var d=Math.floor(u*(c-l)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(s=0;s<d;s+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*u+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;o.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,o=r[0]+" "+n[0]+" "+t[0],a=r[1]+" "+n[1]+" "+t[1],s=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",s)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,o){for(var a,s,l=0,c=256,u=Math.min(e,t),d=Math.max(e,t),p=Array.call(null,{length:256}),f=0,h=o-r,m=t-e;l<=256;)s=(a=l/256)<=u?m<0?o:r:a>=d?m<0?r:o:r+h*Math.pow((a-e)/m,1/n),p[f]=s,f+=1,l+=256/(c-1);return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=n*Math.cos(r),a=n*Math.sin(r);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("result",r),e.appendChild(o),this.feGaussianBlur=o}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n,r=e.layerElement.parentNode;if(r){for(var o=r.children,a=0,s=o.length;a<s&&o[a]!==e.layerElement;)a+=1;a<=s-2&&(n=o[a+1]);var l=createNS("use");l.setAttribute("href","#"+t),n?r.insertBefore(l,n):r.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var o=e.globalData.defs;o.appendChild(r);var a=createNS("symbol");a.setAttribute("id",n),this.replaceInParent(t,n),a.appendChild(t.layerElement),o.appendChild(a);var s=createNS("use");s.setAttribute("href","#"+n),r.appendChild(s),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,n=this.filterManager.effectElements[0].p.v*t,r=this.filterManager.effectElements[1].p.v,o=3==r?0:n,a=2==r?0:n;this.feGaussianBlur.setAttribute("stdDeviation",o+" "+a);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),setExpressionsPlugin(Expressions),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie})},27250(e){var t=1e3,n=6e4,r=36e5,o=864e5,a=6048e5,s=315576e5;function l(e){if(!((e=String(e)).length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(l){var c=parseFloat(l[1]),u=(l[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function c(e){var a=Math.abs(e);return a>=o?Math.round(e/o)+"d":a>=r?Math.round(e/r)+"h":a>=n?Math.round(e/n)+"m":a>=t?Math.round(e/t)+"s":e+"ms"}function u(e){var a=Math.abs(e);return a>=o?d(e,a,o,"day"):a>=r?d(e,a,r,"hour"):a>=n?d(e,a,n,"minute"):a>=t?d(e,a,t,"second"):e+" ms"}function d(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return l(e);if("number"===n&&isFinite(e))return t.long?u(e):c(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},61513(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};if("abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},o)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,a){for(var s,l,c=o(e),u=1;u<arguments.length;u++){for(var d in s=Object(arguments[u]))n.call(s,d)&&(c[d]=s[d]);if(t){l=t(s);for(var p=0;p<l.length;p++)r.call(s,l[p])&&(c[l[p]]=s[l[p]])}}return c}:Object.assign},85341(e){"use strict";var t={};function n(e){var n;return t[e]?e:t[n=e.toLowerCase().replace("_","-")]||t[n=n.split("-")[0]]?n:null}function r(e){var r=n(e);return t[r]?t[r].c:null}function o(e,r){var o=n(e);if(!o)return -1;if(!t[o].cFn)return 0;var a=String(r),s=0>a.indexOf(".")?"":a.split(".")[1],l=s.length,c=+r,u=+a.split(".")[0],d=0===s.length?0:+s.replace(/0+$/,"");return t[o].cFn(c,u,l,+s,d)}function a(e){var r=n(e);return t[r]?t[r].o:null}function s(e,r){var o=n(e);if(!o)return -1;if(!t[o].oFn)return 0;var a=String(r),s=0>a.indexOf(".")?"":a.split(".")[1],l=s.length,c=+r,u=+a.split(".")[0],d=0===s.length?0:+s.replace(/0+$/,"");return t[o].oFn(c,u,l,+s,d)}function l(e,r){var o=n(e);return t[o]?t[o].o[s(o,r)]:null}e.exports=function(e,r){var a=n(e);return a?t[a].c[o(a,r)]:null},e.exports.indexOf=o,e.exports.forms=r,e.exports.ordinal=l,e.exports.ordinal.indexOf=s,e.exports.ordinal.forms=a;var c=["zero","one","two","few","many","other"];function u(e){return c[e]}function d(e,n){var r;for(r=0,n.c=n.c?n.c.map(u):["other"],n.o=n.o?n.o.map(u):["other"];r<e.length;r++)t[e[r]]=n}function p(e,t,n){return e<=n&&n<=t&&n%1==0}function f(e,t){return e.indexOf(t)>=0}d(["af","an","asa","bem","bez","bg","brx","ce","cgg","chr","ckb","dv","ee","el","eo","es","eu","fo","fur","gsw","ha","haw","jgo","jmc","kaj","kcg","kkj","kl","ks","ksb","ku","ky","lb","lg","mas","mgo","ml","mn","nah","nb","nd","nn","nnh","no","nr","ny","nyn","om","os","pap","ps","rm","rof","rwk","saq","sd","sdh","seh","sn","so","ss","ssy","st","syr","ta","te","teo","tig","tn","tr","ts","ug","uz","ve","vo","vun","wae","xh","xog"],{c:[1,5],cFn:function(e){return+(1!==e)}}),d(["ak","bho","guw","ln","mg","nso","pa","ti","wa"],{c:[1,5],cFn:function(e){return+!p(0,1,e)}}),d(["am","fa","kn","zu"],{c:[1,5],cFn:function(e,t){return+(0!==t&&1!==e)}}),d(["ar","ars"],{c:[0,1,2,3,4,5],cFn:function(e){var t=e%100;return 0===e?0:1===e?1:2===e?2:p(3,10,t)?3:p(11,99,t)?4:5}}),d(["as","bn"],{c:[1,5],cFn:function(e,t){return+(0!==t&&1!==e)},o:[1,2,3,4,5],oFn:function(e){return f([1,5,7,8,9,10],e)?0:f([2,3],e)?1:4===e?2:6===e?3:4}}),d(["ast","de","et","fi","fy","gl","ia","io","ji","nl","pt-pt","sw","ur","yi"],{c:[1,5],cFn:function(e,t,n){return+(1!==t||0!==n)}}),d(["az"],{c:[1,5],cFn:function(e){return+(1!==e)},o:[1,3,4,5],oFn:function(e,t){var n=t%10,r=t%100,o=t%1e3;return f([1,2,5,7,8],n)||f([20,50,70,80],r)?0:f([3,4],n)||f([100,200,300,400,500,600,700,800,900],o)?1:0===t||6===n||f([40,60,90],r)?2:3}}),d(["be"],{c:[1,3,4,5],cFn:function(e){var t=e%10,n=e%100;return 1===t&&11!==n?0:p(2,4,t)&&!p(12,14,n)?1:0===t||p(5,9,t)||p(11,14,n)?2:3},o:[3,5],oFn:function(e){var t=e%10,n=e%100;return f([2,3],t)&&!f([12,13],n)?0:1}}),d(["bm","bo","dz","id","ig","ii","in","ja","jbo","jv","jw","kde","kea","km","ko","lkt","my","nqo","osa","root","sah","ses","sg","su","th","to","wo","yo","yue","zh"],{}),d(["br"],{c:[1,2,3,4,5],cFn:function(e){var t=e%10,n=e%100,r=e%1e6;return 1!==t||f([11,71,91],n)?2!==t||f([12,72,92],n)?!p(3,4,t)&&9!==t||p(10,19,n)||p(70,79,n)||p(90,99,n)?0!==e&&0===r?3:4:2:1:0}}),d(["bs","hr","sh","sr"],{c:[1,3,5],cFn:function(e,t,n,r){var o=t%10,a=t%100,s=r%10,l=r%100;return 0===n&&1===o&&11!==a||1===s&&11!==l?0:0===n&&p(2,4,o)&&!p(12,14,a)||p(2,4,s)&&!p(12,14,l)?1:2}}),d(["ca"],{c:[1,5],cFn:function(e,t,n){return+(1!==t||0!==n)},o:[1,2,3,5],oFn:function(e){return f([1,3],e)?0:2===e?1:4===e?2:3}}),d(["ceb"],{c:[1,5],cFn:function(e,t,n,r){var o=t%10,a=r%10;return 0===n&&f([1,2,3],t)||0===n&&!f([4,6,9],o)||0!==n&&!f([4,6,9],a)?0:1}}),d(["cs","sk"],{c:[1,3,4,5],cFn:function(e,t,n){return 1===t&&0===n?0:p(2,4,t)&&0===n?1:0!==n?2:3}}),d(["cy"],{c:[0,1,2,3,4,5],cFn:function(e){return 0===e?0:1===e?1:2===e?2:3===e?3:6===e?4:5},o:[0,1,2,3,4,5],oFn:function(e){return f([0,7,8,9],e)?0:1===e?1:2===e?2:f([3,4],e)?3:f([5,6],e)?4:5}}),d(["da"],{c:[1,5],cFn:function(e,t,n,r,o){return 1===e||0!==o&&f([0,1],t)?0:1}}),d(["dsb","hsb"],{c:[1,2,3,5],cFn:function(e,t,n,r){var o=t%100,a=r%100;return 0===n&&1===o||1===a?0:0===n&&2===o||2===a?1:0===n&&p(3,4,o)||p(3,4,a)?2:3}}),d(["en"],{c:[1,5],cFn:function(e,t,n){return+(1!==t||0!==n)},o:[1,2,3,5],oFn:function(e){var t=e%10,n=e%100;return 1===t&&11!==n?0:2===t&&12!==n?1:3===t&&13!==n?2:3}}),d(["ff","kab"],{c:[1,5],cFn:function(e,t){return+!f([0,1],t)}}),d(["fil","tl"],{c:[1,5],cFn:function(e,t,n,r){var o=t%10,a=r%10;return 0===n&&f([1,2,3],t)||0===n&&!f([4,6,9],o)||0!==n&&!f([4,6,9],a)?0:1},o:[1,5],oFn:function(e){return+(1!==e)}}),d(["fr","hy"],{c:[1,5],cFn:function(e,t){return+!f([0,1],t)},o:[1,5],oFn:function(e){return+(1!==e)}}),d(["ga"],{c:[1,2,3,4,5],cFn:function(e){return 1===e?0:2===e?1:p(3,6,e)?2:p(7,10,e)?3:4},o:[1,5],oFn:function(e){return+(1!==e)}}),d(["gd"],{c:[1,2,3,5],cFn:function(e){return f([1,11],e)?0:f([2,12],e)?1:p(3,10,e)||p(13,19,e)?2:3},o:[1,2,3,5],oFn:function(e){return f([1,11],e)?0:f([2,12],e)?1:f([3,13],e)?2:3}}),d(["gu","hi"],{c:[1,5],cFn:function(e,t){return+(0!==t&&1!==e)},o:[1,2,3,4,5],oFn:function(e){return 1===e?0:f([2,3],e)?1:4===e?2:6===e?3:4}}),d(["gv"],{c:[1,2,3,4,5],cFn:function(e,t,n){var r=t%10,o=t%100;return 0===n&&1===r?0:0===n&&2===r?1:0===n&&f([0,20,40,60,80],o)?2:0!==n?3:4}}),d(["he","iw"],{c:[1,2,4,5],cFn:function(e,t,n){var r=e%10;return 1===t&&0===n?0:2===t&&0===n?1:0!==n||p(0,10,e)||0!==r?3:2}}),d(["hu"],{c:[1,5],cFn:function(e){return+(1!==e)},o:[1,5],oFn:function(e){return+!f([1,5],e)}}),d(["is"],{c:[1,5],cFn:function(e,t,n,r,o){var a=t%10,s=t%100;return+((0!==o||1!==a||11===s)&&0===o)}}),d(["it","sc","scn"],{c:[1,5],cFn:function(e,t,n){return+(1!==t||0!==n)},o:[4,5],oFn:function(e){return+!f([11,8,80,800],e)}}),d(["iu","naq","se","sma","smi","smj","smn","sms"],{c:[1,2,5],cFn:function(e){return 1===e?0:2===e?1:2}}),d(["ka"],{c:[1,5],cFn:function(e){return+(1!==e)},o:[1,4,5],oFn:function(e,t){var n=t%100;return 1===t?0:0===t||p(2,20,n)||40===n||60===n||80===n?1:2}}),d(["kk"],{c:[1,5],cFn:function(e){return+(1!==e)},o:[4,5],oFn:function(e){var t=e%10;return+(6!==t&&9!==t&&(0!==t||0===e))}}),d(["ksh"],{c:[0,1,5],cFn:function(e){return 0===e?0:1===e?1:2}}),d(["kw"],{c:[0,1,2,3,4,5],cFn:function(e){var t=e%100,n=e%1e3,r=e%1e5,o=e%1e6;return 0===e?0:1===e?1:f([2,22,42,62,82],t)||0===n&&(p(1e3,2e4,r)||4e4===r||6e4===r||8e4===r)||0!==e&&1e5===o?2:f([3,23,43,63,83],t)?3:1!==e&&f([1,21,41,61,81],t)?4:5},o:[1,4,5],oFn:function(e){var t=e%100;return p(1,4,e)||p(1,4,t)||p(21,24,t)||p(41,44,t)||p(61,64,t)||p(81,84,t)?0:5===e||5===t?1:2}}),d(["lag"],{c:[0,1,5],cFn:function(e,t){return 0===e?0:f([0,1],t)&&0!==e?1:2}}),d(["lo","ms","vi"],{o:[1,5],oFn:function(e){return+(1!==e)}}),d(["lt"],{c:[1,3,4,5],cFn:function(e,t,n,r){var o=e%10,a=e%100;return 1!==o||p(11,19,a)?p(2,9,o)&&!p(11,19,a)?1:0!==r?2:3:0}}),d(["lv","prg"],{c:[0,1,5],cFn:function(e,t,n,r){var o=e%10,a=e%100,s=r%100,l=r%10;return 0===o||p(11,19,a)||2===n&&p(11,19,s)?0:1===o&&11!==a||2===n&&1===l&&11!==s||2!==n&&1===l?1:2}}),d(["mk"],{c:[1,5],cFn:function(e,t,n,r){var o=t%10,a=t%100,s=r%10,l=r%100;return+((0!==n||1!==o||11===a)&&(1!==s||11===l))},o:[1,2,4,5],oFn:function(e,t){var n=t%10,r=t%100;return 1===n&&11!==r?0:2===n&&12!==r?1:f([7,8],n)&&!f([17,18],r)?2:3}}),d(["mo","ro"],{c:[1,3,5],cFn:function(e,t,n){var r=e%100;return 1===t&&0===n?0:0!==n||0===e||p(2,19,r)?1:2},o:[1,5],oFn:function(e){return+(1!==e)}}),d(["mr"],{c:[1,5],cFn:function(e){return+(1!==e)},o:[1,2,3,5],oFn:function(e){return 1===e?0:f([2,3],e)?1:4===e?2:3}}),d(["mt"],{c:[1,3,4,5],cFn:function(e){var t=e%100;return 1===e?0:0===e||p(2,10,t)?1:p(11,19,t)?2:3}}),d(["ne"],{c:[1,5],cFn:function(e){return+(1!==e)},o:[1,5],oFn:function(e){return+!p(1,4,e)}}),d(["or"],{c:[1,5],cFn:function(e){return+(1!==e)},o:[1,2,3,4,5],oFn:function(e){return 1===e||5===e||p(7,9,e)?0:f([2,3],e)?1:4===e?2:6===e?3:4}}),d(["pl"],{c:[1,3,4,5],cFn:function(e,t,n){var r=t%10,o=t%100;return 1===t&&0===n?0:0===n&&p(2,4,r)&&!p(12,14,o)?1:0===n&&1!==t&&p(0,1,r)||0===n&&p(5,9,r)||0===n&&p(12,14,o)?2:3}}),d(["pt"],{c:[1,5],cFn:function(e,t){return+!p(0,1,t)}}),d(["ru"],{c:[1,3,4,5],cFn:function(e,t,n){var r=t%10,o=t%100;return 0===n&&1===r&&11!==o?0:0===n&&p(2,4,r)&&!p(12,14,o)?1:0===n&&0===r||0===n&&p(5,9,r)||0===n&&p(11,14,o)?2:3}}),d(["shi"],{c:[1,3,5],cFn:function(e,t){return 0===t||1===e?0:p(2,10,e)?1:2}}),d(["si"],{c:[1,5],cFn:function(e,t,n,r){return f([0,1],e)||0===t&&1===r?0:1}}),d(["sl"],{c:[1,2,3,5],cFn:function(e,t,n){var r=t%100;return 0===n&&1===r?0:0===n&&2===r?1:0===n&&p(3,4,r)||0!==n?2:3}}),d(["sq"],{c:[1,5],cFn:function(e){return+(1!==e)},o:[1,4,5],oFn:function(e){var t=e%10,n=e%100;return 1===e?0:4===t&&14!==n?1:2}}),d(["sv"],{c:[1,5],cFn:function(e,t,n){return+(1!==t||0!==n)},o:[1,5],oFn:function(e){var t=e%10,n=e%100;return f([1,2],t)&&!f([11,12],n)?0:1}}),d(["tk"],{c:[1,5],cFn:function(e){return+(1!==e)},o:[3,5],oFn:function(e){return f([6,9],e%10)||10===e?0:1}}),d(["tzm"],{c:[1,5],cFn:function(e){return p(0,1,e)||p(11,99,e)?0:1}}),d(["uk"],{c:[1,3,4,5],cFn:function(e,t,n){var r=t%10,o=t%100;return 0===n&&1===r&&11!==o?0:0===n&&p(2,4,r)&&!p(12,14,o)?1:0===n&&0===r||0===n&&p(5,9,r)||0===n&&p(11,14,o)?2:3},o:[3,5],oFn:function(e){var t=e%10,n=e%100;return+(3!==t||13===n)}})},39907(e){var t,n,r,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function c(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u=[],d=!1,p=-1;function f(){d&&r&&(d=!1,r.length?u=r.concat(u):p=-1,u.length&&h())}function h(){if(!d){var e=l(f);d=!0;for(var t=u.length;t;){for(r=u,u=[];++p<t;)r&&r[p].run();p=-1,t=u.length}r=null,d=!1,c(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new m(e,t)),1!==u.length||d||l(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},14916(e,t,n){"use strict";var r=n(2176);function o(){}var a=null,s={};function l(e){try{return e.then}catch(e){return a=e,s}}function c(e,t){try{return e(t)}catch(e){return a=e,s}}function u(e,t,n){try{e(t,n)}catch(e){return a=e,s}}function d(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");if("function"!=typeof e)throw TypeError("Promise constructor's argument is not a function");this._U=0,this._V=0,this._W=null,this._X=null,e!==o&&b(e,this)}function p(e,t,n){return new e.constructor(function(r,a){var s=new d(o);s.then(r,a),f(e,new y(t,n,s))})}function f(e,t){for(;3===e._V;)e=e._W;if(d._Y&&d._Y(e),0===e._V){if(0===e._U){e._U=1,e._X=t;return}if(1===e._U){e._U=2,e._X=[e._X,t];return}e._X.push(t);return}h(e,t)}function h(e,t){r(function(){var n=1===e._V?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._V?m(t.promise,e._W):g(t.promise,e._W));var r=c(n,e._W);r===s?g(t.promise,a):m(t.promise,r)})}function m(e,t){if(t===e)return g(e,TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=l(t);if(n===s)return g(e,a);if(n===e.then&&t instanceof d){e._V=3,e._W=t,v(e);return}if("function"==typeof n)return void b(n.bind(t),e)}e._V=1,e._W=t,v(e)}function g(e,t){e._V=2,e._W=t,d._Z&&d._Z(e,t),v(e)}function v(e){if(1===e._U&&(f(e,e._X),e._X=null),2===e._U){for(var t=0;t<e._X.length;t++)f(e,e._X[t]);e._X=null}}function y(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function b(e,t){var n=!1,r=u(e,function(e){n||(n=!0,m(t,e))},function(e){n||(n=!0,g(t,e))});n||r!==s||(n=!0,g(t,a))}e.exports=d,d._Y=null,d._Z=null,d._0=o,d.prototype.then=function(e,t){if(this.constructor!==d)return p(this,e,t);var n=new d(o);return f(this,new y(e,t,n)),n}},85156(e,t,n){"use strict";var r=n(14916);e.exports=r;var o=d(!0),a=d(!1),s=d(null),l=d(void 0),c=d(0),u=d("");function d(e){var t=new r(r._0);return t._V=1,t._W=e,t}r.resolve=function(e){if(e instanceof r)return e;if(null===e)return s;if(void 0===e)return l;if(!0===e)return o;if(!1===e)return a;if(0===e)return c;if(""===e)return u;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new r(t.bind(e))}catch(e){return new r(function(t,n){n(e)})}return d(e)};var p=function(e){return"function"==typeof Array.from?(p=Array.from,Array.from(e)):(p=function(e){return Array.prototype.slice.call(e)},Array.prototype.slice.call(e))};r.all=function(e){var t=p(e);return new r(function(e,n){if(0===t.length)return e([]);var o=t.length;function a(s,l){if(l&&("object"==typeof l||"function"==typeof l))if(l instanceof r&&l.then===r.prototype.then){for(;3===l._V;)l=l._W;return 1===l._V?a(s,l._W):(2===l._V&&n(l._W),void l.then(function(e){a(s,e)},n))}else{var c=l.then;if("function"==typeof c)return void new r(c.bind(l)).then(function(e){a(s,e)},n)}t[s]=l,0==--o&&e(t)}for(var s=0;s<t.length;s++)a(s,t[s])})},r.reject=function(e){return new r(function(t,n){n(e)})},r.race=function(e){return new r(function(t,n){p(e).forEach(function(e){r.resolve(e).then(t,n)})})},r.prototype.catch=function(e){return this.then(null,e)}},71688(e,t,n){"use strict";var r=n(14916),o=[ReferenceError,TypeError,RangeError],a=!1;function s(){a=!1,r._Y=null,r._Z=null}function l(e){e=e||{},a&&s(),a=!0;var t=0,n=0,l={};function d(t){(e.allRejections||u(l[t].error,e.whitelist||o))&&(l[t].displayId=n++,e.onUnhandled?(l[t].logged=!0,e.onUnhandled(l[t].displayId,l[t].error)):(l[t].logged=!0,c(l[t].displayId,l[t].error)))}function p(t){l[t].logged&&(e.onHandled?e.onHandled(l[t].displayId,l[t].error):l[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[t].displayId+"):"),console.warn('  This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[t].displayId+".")))}r._Y=function(e){2===e._V&&l[e._1]&&(l[e._1].logged?p(e._1):clearTimeout(l[e._1].timeout),delete l[e._1])},r._Z=function(e,n){0===e._U&&(e._1=t++,l[e._1]={displayId:null,error:n,timeout:setTimeout(d.bind(null,e._1),u(n,o)?100:2e3),logged:!1})}}function c(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach(function(e){console.warn("  "+e)})}function u(e,t){return t.some(function(t){return e instanceof t})}t.disable=s,t.enable=l},36999(e,t,n){"use strict";var r=n(36848);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,s){if(s!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},39067(e,t,n){e.exports=n(36999)()},36848(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},54901(e,t,n){"use strict";"u"<typeof Promise&&(n(71688).enable(),self.Promise=n(85156)),"u">typeof window&&n(16603),Object.assign=n(61513),n(63896),n(63225)},17094(e,t,n){"use strict";n(20827),n(68989)},47400(e,t,n){"use strict";var r,o,a,s,l,c=n(40887),u=n(61513),d=n(97967);function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!c)throw Error(p(227));function f(e,t,n,r,o,a,s,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var h=!1,m=null,g=!1,v=null,y={onError:function(e){h=!0,m=e}};function b(e,t,n,r,o,a,s,l,c){h=!1,m=null,f.apply(y,arguments)}function x(e,t,n,r,o,a,s,l,c){if(b.apply(this,arguments),h){if(h){var u=m;h=!1,m=null}else throw Error(p(198));g||(g=!0,v=u)}}var C=null,k=null,w=null;function S(e,t,n){var r=e.type||"unknown-event";e.currentTarget=w(n),x(r,t,void 0,e),e.currentTarget=null}var _=null,E={};function P(){if(_)for(var e in E){var t=E[e],n=_.indexOf(e);if(!(-1<n))throw Error(p(96,e));if(!T[n]){if(!t.extractEvents)throw Error(p(97,e));for(var r in T[n]=t,n=t.eventTypes){var o=void 0,a=n[r],s=t,l=r;if(D.hasOwnProperty(l))throw Error(p(99,l));D[l]=a;var c=a.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&I(c[o],s,l);o=!0}else a.registrationName?(I(a.registrationName,s,l),o=!0):o=!1;if(!o)throw Error(p(98,r,e))}}}}function I(e,t,n){if(A[e])throw Error(p(100,e));A[e]=t,R[e]=t.eventTypes[n].dependencies}var T=[],D={},A={},R={};function N(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!E.hasOwnProperty(t)||E[t]!==r){if(E[t])throw Error(p(102,t));E[t]=r,n=!0}}n&&P()}var B="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,M=null,F=null,O=null;function L(e){if(e=k(e)){if("function"!=typeof M)throw Error(p(280));var t=e.stateNode;t&&(t=C(t),M(e.stateNode,e.type,t))}}function H(e){F?O?O.push(e):O=[e]:F=e}function z(){if(F){var e=F,t=O;if(O=F=null,L(e),t)for(e=0;e<t.length;e++)L(t[e])}}function V(e,t){return e(t)}function U(e,t,n,r,o){return e(t,n,r,o)}function j(){}var W=V,q=!1,G=!1;function K(){(null!==F||null!==O)&&(j(),z())}function X(e,t,n){if(G)return e(t,n);G=!0;try{return W(e,t,n)}finally{G=!1,K()}}var Y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Q=Object.prototype.hasOwnProperty,J={},Z={};function ee(e){return!!Q.call(Z,e)||!Q.call(J,e)&&(Y.test(e)?Z[e]=!0:(J[e]=!0,!1))}function et(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;return"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return!1}}function en(e,t,n,r){if(null==t||et(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function er(e,t,n,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var eo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){eo[e]=new er(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];eo[t]=new er(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){eo[e]=new er(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){eo[e]=new er(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){eo[e]=new er(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){eo[e]=new er(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){eo[e]=new er(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){eo[e]=new er(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){eo[e]=new er(e,5,!1,e.toLowerCase(),null,!1)});var ei=/[\-:]([a-z])/g;function ea(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ei,ea);eo[t]=new er(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ei,ea);eo[t]=new er(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ei,ea);eo[t]=new er(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){eo[e]=new er(e,1,!1,e.toLowerCase(),null,!1)}),eo.xlinkHref=new er("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){eo[e]=new er(e,1,!1,e.toLowerCase(),null,!0)});var es=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function el(e,t,n,r){var o=eo.hasOwnProperty(t)?eo[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(en(t,n,o,r)&&(n=null),r||null===o?ee(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}es.hasOwnProperty("ReactCurrentDispatcher")||(es.ReactCurrentDispatcher={current:null}),es.hasOwnProperty("ReactCurrentBatchConfig")||(es.ReactCurrentBatchConfig={suspense:null});var ec=/^(.*)[\\\/]/,eu="function"==typeof Symbol&&Symbol.for,ed=eu?Symbol.for("react.element"):60103,ep=eu?Symbol.for("react.portal"):60106,ef=eu?Symbol.for("react.fragment"):60107,eh=eu?Symbol.for("react.strict_mode"):60108,em=eu?Symbol.for("react.profiler"):60114,eg=eu?Symbol.for("react.provider"):60109,ev=eu?Symbol.for("react.context"):60110,ey=eu?Symbol.for("react.concurrent_mode"):60111,eb=eu?Symbol.for("react.forward_ref"):60112,ex=eu?Symbol.for("react.suspense"):60113,eC=eu?Symbol.for("react.suspense_list"):60120,ek=eu?Symbol.for("react.memo"):60115,ew=eu?Symbol.for("react.lazy"):60116,eS=eu?Symbol.for("react.block"):60121,e_="function"==typeof Symbol&&Symbol.iterator;function eE(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=e_&&e[e_]||e["@@iterator"])?e:null}function eP(e){if(-1===e._status){e._status=0;var t=e._ctor;e._result=t=t(),t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}}function eI(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ef:return"Fragment";case ep:return"Portal";case em:return"Profiler";case eh:return"StrictMode";case ex:return"Suspense";case eC:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ev:return"Context.Consumer";case eg:return"Context.Provider";case eb:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ek:return eI(e.type);case eS:return eI(e.render);case ew:if(e=1===e._status?e._result:null)return eI(e)}return null}function eT(e){var t="";do{switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break;default:var r=e._debugOwner,o=e._debugSource,a=eI(e.type);n=null,r&&(n=eI(r.type)),r=a,a="",o?a=" (at "+o.fileName.replace(ec,"")+":"+o.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+a}t+=n,e=e.return}while(e);return t}function eD(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function eA(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function eR(e){var t=eA(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eN(e){e._valueTracker||(e._valueTracker=eR(e))}function eB(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eA(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function eM(e,t){var n=t.checked;return u({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function eF(e,t){var n=null==t.defaultValue?"":t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:n=eD(null!=t.value?t.value:n),controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function eO(e,t){null!=(t=t.checked)&&el(e,"checked",t,!1)}function eL(e,t){eO(e,t);var n=eD(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ez(e,t.type,n):t.hasOwnProperty("defaultValue")&&ez(e,t.type,eD(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function eH(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&(void 0===t.value||null===t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ez(e,t,n){("number"!==t||e.ownerDocument.activeElement!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function eV(e){var t="";return c.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}function eU(e,t){return e=u({children:void 0},t),(t=eV(t.children))&&(e.children=t),e}function ej(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(o=0,n=""+eD(n),t=null;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function eW(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(p(91));return u({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eq(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(p(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(p(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:eD(n)}}function eG(e,t){var n=eD(t.value),r=eD(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function eK(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var eX="http://www.w3.org/1999/xhtml",eY="http://www.w3.org/2000/svg";function e$(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eQ(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?e$(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var eJ,eZ=function(e){return"u">typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!==eY||"innerHTML"in e)e.innerHTML=t;else{for((eJ=eJ||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eJ.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function e0(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}function e1(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var e2={animationend:e1("Animation","AnimationEnd"),animationiteration:e1("Animation","AnimationIteration"),animationstart:e1("Animation","AnimationStart"),transitionend:e1("Transition","TransitionEnd")},e5={},e4={};function e3(e){if(e5[e])return e5[e];if(!e2[e])return e;var t,n=e2[e];for(t in n)if(n.hasOwnProperty(t)&&t in e4)return e5[e]=n[t];return e}B&&(e4=document.createElement("div").style,"AnimationEvent"in window||(delete e2.animationend.animation,delete e2.animationiteration.animation,delete e2.animationstart.animation),"TransitionEvent"in window||delete e2.transitionend.transition);var e6=e3("animationend"),e8=e3("animationiteration"),e9=e3("animationstart"),e7=e3("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),tt=new("function"==typeof WeakMap?WeakMap:Map);function tn(e){var t=tt.get(e);return void 0===t&&(t=new Map,tt.set(e,t)),t}function tr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function to(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function ti(e){if(tr(e)!==e)throw Error(p(188))}function ta(e){var t=e.alternate;if(!t){if(null===(t=tr(e)))throw Error(p(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return ti(o),e;if(a===r)return ti(o),t;a=a.sibling}throw Error(p(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(p(189))}}if(n.alternate!==r)throw Error(p(190))}if(3!==n.tag)throw Error(p(188));return n.stateNode.current===n?e:t}function ts(e){if(!(e=ta(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function tl(e,t){if(null==t)throw Error(p(30));return null==e?t:Array.isArray(e)?(Array.isArray(t)?e.push.apply(e,t):e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function tc(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var tu=null;function td(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)S(e,t[r],n[r]);else t&&S(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function tp(e){if(null!==e&&(tu=tl(tu,e)),e=tu,tu=null,e){if(tc(e,td),tu)throw Error(p(95));if(g)throw e=v,g=!1,v=null,e}}function tf(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function th(e){if(!B)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var tm=[];function tg(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>tm.length&&tm.push(e)}function tv(e,t,n,r){if(tm.length){var o=tm.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ty(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=nI(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=tf(e.nativeEvent);r=e.topLevelType;var a=e.nativeEvent,s=e.eventSystemFlags;0===n&&(s|=64);for(var l=null,c=0;c<T.length;c++){var u=T[c];u&&(u=u.extractEvents(r,t,a,o,s))&&(l=tl(l,u))}tp(l)}}function tb(e,t,n){if(!n.has(e)){switch(e){case"scroll":t1(t,"scroll",!0);break;case"focus":case"blur":t1(t,"focus",!0),t1(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":th(e)&&t1(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(e)&&t0(e,t)}n.set(e,null)}}var tx,tC,tk,tw=!1,tS=[],t_=null,tE=null,tP=null,tI=new Map,tT=new Map,tD=[],tA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),tR="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function tN(e,t){var n=tn(t);tA.forEach(function(e){tb(e,t,n)}),tR.forEach(function(e){tb(e,t,n)})}function tB(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function tM(e,t){switch(e){case"focus":case"blur":t_=null;break;case"dragenter":case"dragleave":tE=null;break;case"mouseover":case"mouseout":tP=null;break;case"pointerover":case"pointerout":tI.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tT.delete(t.pointerId)}}function tF(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e=tB(t,n,r,o,a),null!==t&&null!==(t=nT(t))&&tC(t)):e.eventSystemFlags|=r,e}function tO(e,t,n,r,o){switch(t){case"focus":return t_=tF(t_,e,t,n,r,o),!0;case"dragenter":return tE=tF(tE,e,t,n,r,o),!0;case"mouseover":return tP=tF(tP,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return tI.set(a,tF(tI.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,tT.set(a,tF(tT.get(a)||null,e,t,n,r,o)),!0}return!1}function tL(e){var t=nI(e.target);if(null!==t){var n=tr(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=to(n))){e.blockedOn=t,d.unstable_runWithPriority(e.priority,function(){tk(n)});return}}else if(3===t&&n.stateNode.hydrate){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tH(e){if(null!==e.blockedOn)return!1;var t=t3(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=nT(t);return null!==n&&tC(n),e.blockedOn=t,!1}return!0}function tz(e,t,n){tH(e)&&n.delete(t)}function tV(){for(tw=!1;0<tS.length;){var e=tS[0];if(null!==e.blockedOn){null!==(e=nT(e.blockedOn))&&tx(e);break}var t=t3(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:tS.shift()}null!==t_&&tH(t_)&&(t_=null),null!==tE&&tH(tE)&&(tE=null),null!==tP&&tH(tP)&&(tP=null),tI.forEach(tz),tT.forEach(tz)}function tU(e,t){e.blockedOn===t&&(e.blockedOn=null,tw||(tw=!0,d.unstable_scheduleCallback(d.unstable_NormalPriority,tV)))}function tj(e){function t(t){return tU(t,e)}if(0<tS.length){tU(tS[0],e);for(var n=1;n<tS.length;n++){var r=tS[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==t_&&tU(t_,e),null!==tE&&tU(tE,e),null!==tP&&tU(tP,e),tI.forEach(t),tT.forEach(t),n=0;n<tD.length;n++)(r=tD[n]).blockedOn===e&&(r.blockedOn=null);for(;0<tD.length&&null===(n=tD[0]).blockedOn;)tL(n),null===n.blockedOn&&tD.shift()}var tW={},tq=new Map,tG=new Map,tK=["abort","abort",e6,"animationEnd",e8,"animationIteration",e9,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",e7,"transitionEnd","waiting","waiting"];function tX(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],a="on"+(o[0].toUpperCase()+o.slice(1));a={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[r],eventPriority:t},tG.set(r,t),tq.set(r,a),tW[o]=a}}tX("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),tX("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),tX(tK,2);for(var tY="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),t$=0;t$<tY.length;t$++)tG.set(tY[t$],0);var tQ=d.unstable_UserBlockingPriority,tJ=d.unstable_runWithPriority,tZ=!0;function t0(e,t){t1(t,e,!1)}function t1(e,t,n){var r=tG.get(t);switch(void 0===r?2:r){case 0:r=t2.bind(null,t,1,e);break;case 1:r=t5.bind(null,t,1,e);break;default:r=t4.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function t2(e,t,n,r){q||j();var o=t4,a=q;q=!0;try{U(o,e,t,n,r)}finally{(q=a)||K()}}function t5(e,t,n,r){tJ(tQ,t4.bind(null,e,t,n,r))}function t4(e,t,n,r){if(tZ)if(0<tS.length&&-1<tA.indexOf(e))e=tB(null,e,t,n,r),tS.push(e);else{var o=t3(e,t,n,r);if(null===o)tM(e,r);else if(-1<tA.indexOf(e))e=tB(o,e,t,n,r),tS.push(e);else if(!tO(o,e,t,n,r)){tM(e,r),e=tv(e,r,null,t);try{X(ty,e)}finally{tg(e)}}}}function t3(e,t,n,r){if(null!==(n=nI(n=tf(r)))){var o=tr(n);if(null===o)n=null;else{var a=o.tag;if(13===a){if(null!==(n=to(o)))return n;n=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=tv(e,r,n,t);try{X(ty,e)}finally{tg(e)}return null}var t6={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},t8=["Webkit","ms","Moz","O"];function t9(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||t6.hasOwnProperty(e)&&t6[e]?(""+t).trim():t+"px"}function t7(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=t9(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(t6).forEach(function(e){t8.forEach(function(t){t6[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=t6[e]})});var ne=u({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nt(e,t){if(t){if(ne[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(p(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(p(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(p(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(p(62,""))}}function nn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nr=eX;function no(e,t){var n=tn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=R[t];for(var r=0;r<t.length;r++)tb(t[r],e,n)}function ni(){}function na(e){if(void 0===(e=e||("u">typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ns(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nl(e,t){var n,r=ns(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ns(r)}}function nc(e,t){return!!e&&!!t&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nc(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nu(){for(var e=window,t=na();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=na(e.document)}return t}function nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var np="$",nf="/$",nh="$?",nm="$!",ng=null,nv=null;function ny(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function nb(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var nx="function"==typeof setTimeout?setTimeout:void 0,nC="function"==typeof clearTimeout?clearTimeout:void 0;function nk(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function nw(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===np||n===nm||n===nh){if(0===t)return e;t--}else n===nf&&t++}e=e.previousSibling}return null}var nS=Math.random().toString(36).slice(2),n_="__reactInternalInstance$"+nS,nE="__reactEventHandlers$"+nS,nP="__reactContainere$"+nS;function nI(e){var t=e[n_];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nP]||n[n_]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=nw(e);null!==e;){if(n=e[n_])return n;e=nw(e)}return t}n=(e=n).parentNode}return null}function nT(e){return(e=e[n_]||e[nP])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function nD(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(p(33))}function nA(e){return e[nE]||null}function nR(e){do e=e.return;while(e&&5!==e.tag);return e||null}function nN(e,t){var n=e.stateNode;if(!n)return null;var r=C(n);if(!r)return null;switch(n=r[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r="button"!==(e=e.type)&&"input"!==e&&"select"!==e&&"textarea"!==e),e=!r;break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(p(231,t,typeof n));return n}function nB(e,t,n){(t=nN(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=tl(n._dispatchListeners,t),n._dispatchInstances=tl(n._dispatchInstances,e))}function nM(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=nR(t);for(t=n.length;0<t--;)nB(n[t],"captured",e);for(t=0;t<n.length;t++)nB(n[t],"bubbled",e)}}function nF(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=nN(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=tl(n._dispatchListeners,t),n._dispatchInstances=tl(n._dispatchInstances,e))}function nO(e){e&&e.dispatchConfig.registrationName&&nF(e._targetInst,null,e)}function nL(e){tc(e,nM)}var nH=null,nz=null,nV=null;function nU(){if(nV)return nV;var e,t,n=nz,r=n.length,o="value"in nH?nH.value:nH.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[a-t];t++);return nV=o.slice(e,1<t?1-t:void 0)}function nj(){return!0}function nW(){return!1}function nq(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?nj:nW,this.isPropagationStopped=nW,this}function nG(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function nK(e){if(!(e instanceof this))throw Error(p(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function nX(e){e.eventPool=[],e.getPooled=nG,e.release=nK}u(nq.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nj)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nj)},persist:function(){this.isPersistent=nj},isPersistent:nW,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=nW,this._dispatchInstances=this._dispatchListeners=null}}),nq.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},nq.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return u(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=u({},r.Interface,e),n.extend=r.extend,nX(n),n},nX(nq);var nY=nq.extend({data:null}),n$=nq.extend({data:null}),nQ=[9,13,27,32],nJ=B&&"CompositionEvent"in window,nZ=null;B&&"documentMode"in document&&(nZ=document.documentMode);var n0=B&&"TextEvent"in window&&!nZ,n1=B&&(!nJ||nZ&&8<nZ&&11>=nZ),n2=" ",n5={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},n4=!1;function n3(e,t){switch(e){case"keyup":return -1!==nQ.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function n6(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var n8=!1;function n9(e,t){switch(e){case"compositionend":return n6(t);case"keypress":if(32!==t.which)return null;return n4=!0,n2;case"textInput":return(e=t.data)===n2&&n4?null:e;default:return null}}function n7(e,t){if(n8)return"compositionend"===e||!nJ&&n3(e,t)?(e=nU(),nV=nz=nH=null,n8=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return n1&&"ko"!==t.locale?null:t.data}}var re={eventTypes:n5,extractEvents:function(e,t,n,r){var o;if(nJ)t:{switch(e){case"compositionstart":var a=n5.compositionStart;break t;case"compositionend":a=n5.compositionEnd;break t;case"compositionupdate":a=n5.compositionUpdate;break t}a=void 0}else n8?n3(e,n)&&(a=n5.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=n5.compositionStart);return a?(n1&&"ko"!==n.locale&&(n8||a!==n5.compositionStart?a===n5.compositionEnd&&n8&&(o=nU()):(nz="value"in(nH=r)?nH.value:nH.textContent,n8=!0)),a=nY.getPooled(a,t,n,r),o?a.data=o:null!==(o=n6(n))&&(a.data=o),nL(a),o=a):o=null,(e=n0?n9(e,n):n7(e,n))?((t=n$.getPooled(n5.beforeInput,t,n,r)).data=e,nL(t)):t=null,null===o?t:null===t?o:[o,t]}},rt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!rt[e.type]:"textarea"===t}var rr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function ro(e,t,n){return(e=nq.getPooled(rr.change,e,t,n)).type="change",H(n),nL(e),e}var ri=null,ra=null;function rs(e){tp(e)}function rl(e){if(eB(nD(e)))return e}function rc(e,t){if("change"===e)return t}var ru=!1;function rd(){ri&&(ri.detachEvent("onpropertychange",rp),ra=ri=null)}function rp(e){if("value"===e.propertyName&&rl(ra))if(e=ro(ra,e,tf(e)),q)tp(e);else{q=!0;try{V(rs,e)}finally{q=!1,K()}}}function rf(e,t,n){"focus"===e?(rd(),ri=t,ra=n,ri.attachEvent("onpropertychange",rp)):"blur"===e&&rd()}function rh(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return rl(ra)}function rm(e,t){if("click"===e)return rl(t)}function rg(e,t){if("input"===e||"change"===e)return rl(t)}B&&(ru=th("input")&&(!document.documentMode||9<document.documentMode));var rv={eventTypes:rr,_isInputEventSupported:ru,extractEvents:function(e,t,n,r){var o=t?nD(t):window,a=o.nodeName&&o.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===o.type)var s=rc;else if(rn(o))if(ru)s=rg;else{s=rh;var l=rf}else(a=o.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(s=rm);if(s&&(s=s(e,t)))return ro(s,n,r);l&&l(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&ez(o,"number",o.value)}},ry=nq.extend({view:null,detail:null}),rb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=rb[e])&&!!t[e]}function rC(){return rx}var rk=0,rw=0,rS=!1,r_=!1,rE=ry.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:rC,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=rk;return rk=e.screenX,rS?"mousemove"===e.type?e.screenX-t:0:(rS=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=rw;return rw=e.screenY,r_?"mousemove"===e.type?e.screenY-t:0:(r_=!0,0)}}),rP=rE.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),rI={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},rT={eventTypes:rI,extractEvents:function(e,t,n,r,o){var a="mouseover"===e||"pointerover"===e,s="mouseout"===e||"pointerout"===e;if(a&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!s&&!a)return null;if(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,s){if(s=t,null!==(t=(t=n.relatedTarget||n.toElement)?nI(t):null)){var l=tr(t);(t!==l||5!==t.tag&&6!==t.tag)&&(t=null)}}else s=null;if(s===t)return null;if("mouseout"===e||"mouseover"===e)var c=rE,u=rI.mouseLeave,d=rI.mouseEnter,p="mouse";else("pointerout"===e||"pointerover"===e)&&(c=rP,u=rI.pointerLeave,d=rI.pointerEnter,p="pointer");if(e=null==s?a:nD(s),a=null==t?a:nD(t),(u=c.getPooled(u,s,n,r)).type=p+"leave",u.target=e,u.relatedTarget=a,(n=c.getPooled(d,t,n,r)).type=p+"enter",n.target=a,n.relatedTarget=e,r=s,p=t,r&&p)e:{for(c=r,d=p,s=0,e=c;e;e=nR(e))s++;for(e=0,t=d;t;t=nR(t))e++;for(;0<s-e;)c=nR(c),s--;for(;0<e-s;)d=nR(d),e--;for(;s--;){if(c===d||c===d.alternate)break e;c=nR(c),d=nR(d)}c=null}else c=null;for(d=c,c=[];r&&r!==d&&(null===(s=r.alternate)||s!==d);)c.push(r),r=nR(r);for(r=[];p&&p!==d&&(null===(s=p.alternate)||s!==d);)r.push(p),p=nR(p);for(p=0;p<c.length;p++)nF(c[p],"bubbled",u);for(p=r.length;0<p--;)nF(r[p],"captured",n);return 0==(64&o)?[u]:[u,n]}};function rD(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var rA="function"==typeof Object.is?Object.is:rD,rR=Object.prototype.hasOwnProperty;function rN(e,t){if(rA(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!rR.call(t,n[r])||!rA(e[n[r]],t[n[r]]))return!1;return!0}var rB=B&&"documentMode"in document&&11>=document.documentMode,rM={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},rF=null,rO=null,rL=null,rH=!1;function rz(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return rH||null==rF||rF!==na(n)?null:(n="selectionStart"in(n=rF)&&nd(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},rL&&rN(rL,n)?null:(rL=n,(e=nq.getPooled(rM.select,rO,e,t)).type="select",e.target=rF,nL(e),e))}var rV={eventTypes:rM,extractEvents:function(e,t,n,r,o,a){if(!(a=!(o=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=tn(o),a=R.onSelect;for(var s=0;s<a.length;s++)if(!o.has(a[s])){o=!1;break e}o=!0}a=!o}if(a)return null;switch(o=t?nD(t):window,e){case"focus":(rn(o)||"true"===o.contentEditable)&&(rF=o,rO=t,rL=null);break;case"blur":rL=rO=rF=null;break;case"mousedown":rH=!0;break;case"contextmenu":case"mouseup":case"dragend":return rH=!1,rz(n,r);case"selectionchange":if(rB)break;case"keydown":case"keyup":return rz(n,r)}return null}},rU=nq.extend({animationName:null,elapsedTime:null,pseudoElement:null}),rj=nq.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rW=ry.extend({relatedTarget:null});function rq(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var rG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rK={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},rX=ry.extend({key:function(e){if(e.key){var t=rG[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rq(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?rK[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:rC,charCode:function(e){return"keypress"===e.type?rq(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rq(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),rY=rE.extend({dataTransfer:null}),r$=ry.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:rC}),rQ=nq.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),rJ=rE.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),rZ={eventTypes:tW,extractEvents:function(e,t,n,r){var o=tq.get(e);if(!o)return null;switch(e){case"keypress":if(0===rq(n))return null;case"keydown":case"keyup":e=rX;break;case"blur":case"focus":e=rW;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=rE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=rY;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=r$;break;case e6:case e8:case e9:e=rU;break;case e7:e=rQ;break;case"scroll":e=ry;break;case"wheel":e=rJ;break;case"copy":case"cut":case"paste":e=rj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=rP;break;default:e=nq}return nL(t=e.getPooled(o,t,n,r)),t}};if(_)throw Error(p(101));_=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),P();var r0=nT;C=nA,k=r0,w=nD,N({SimpleEventPlugin:rZ,EnterLeaveEventPlugin:rT,ChangeEventPlugin:rv,SelectEventPlugin:rV,BeforeInputEventPlugin:re});var r1=[],r2=-1;function r5(e){0>r2||(e.current=r1[r2],r1[r2]=null,r2--)}function r4(e,t){r1[++r2]=e.current,e.current=t}var r3={},r6={current:r3},r8={current:!1},r9=r3;function r7(e,t){var n=e.type.contextTypes;if(!n)return r3;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function oe(e){return null!=(e=e.childContextTypes)}function ot(){r5(r8),r5(r6)}function on(e,t,n){if(r6.current!==r3)throw Error(p(168));r4(r6,t),r4(r8,n)}function or(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(p(108,eI(t)||"Unknown",o));return u({},n,{},r)}function oo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||r3,r9=r6.current,r4(r6,e),r4(r8,r8.current),!0}function oi(e,t,n){var r=e.stateNode;if(!r)throw Error(p(169));n?(r.__reactInternalMemoizedMergedChildContext=e=or(e,t,r9),r5(r8),r5(r6),r4(r6,e)):r5(r8),r4(r8,n)}var oa=d.unstable_runWithPriority,os=d.unstable_scheduleCallback,ol=d.unstable_cancelCallback,oc=d.unstable_requestPaint,ou=d.unstable_now,od=d.unstable_getCurrentPriorityLevel,op=d.unstable_ImmediatePriority,of=d.unstable_UserBlockingPriority,oh=d.unstable_NormalPriority,om=d.unstable_LowPriority,og=d.unstable_IdlePriority,ov={},oy=d.unstable_shouldYield,ob=void 0!==oc?oc:function(){},ox=null,oC=null,ok=!1,ow=ou(),oS=1e4>ow?ou:function(){return ou()-ow};function o_(){switch(od()){case op:return 99;case of:return 98;case oh:return 97;case om:return 96;case og:return 95;default:throw Error(p(332))}}function oE(e){switch(e){case 99:return op;case 98:return of;case 97:return oh;case 96:return om;case 95:return og;default:throw Error(p(332))}}function oP(e,t){return oa(e=oE(e),t)}function oI(e,t,n){return os(e=oE(e),t,n)}function oT(e){return null===ox?(ox=[e],oC=os(op,oA)):ox.push(e),ov}function oD(){if(null!==oC){var e=oC;oC=null,ol(e)}oA()}function oA(){if(!ok&&null!==ox){ok=!0;var e=0;try{var t=ox;oP(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(null!==n)}}),ox=null}catch(t){throw null!==ox&&(ox=ox.slice(e+1)),os(op,oD),t}finally{ok=!1}}}function oR(e,t,n){return 0x3ffffffd-(((0x3ffffffd-e+t/10)/(n/=10)|0)+1)*n}function oN(e,t){if(e&&e.defaultProps)for(var n in t=u({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var oB={current:null},oM=null,oF=null,oO=null;function oL(){oO=oF=oM=null}function oH(e){var t=oB.current;r5(oB),e.type._context._currentValue=t}function oz(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else if(null!==n&&n.childExpirationTime<t)n.childExpirationTime=t;else break;e=e.return}}function oV(e,t){oM=e,oO=oF=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(i6=!0),e.firstContext=null)}function oU(e,t){if(oO!==e&&!1!==t&&0!==t)if(("number"!=typeof t||0x3fffffff===t)&&(oO=e,t=0x3fffffff),t={context:e,observedBits:t,next:null},null===oF){if(null===oM)throw Error(p(308));oF=t,oM.dependencies={expirationTime:0,firstContext:t,responders:null}}else oF=oF.next=t;return e._currentValue}var oj=!1;function oW(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function oq(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function oG(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function oK(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function oX(e,t){var n=e.alternate;null!==n&&oq(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function oY(e,t,n,r){var o=e.updateQueue;oj=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,o.shared.pending=null,null!==(l=e.alternate)&&null!==(l=l.updateQueue)&&(l.baseQueue=s)}if(null!==a){l=a.next;var c=o.baseState,d=0,p=null,f=null,h=null;if(null!==l)for(var m=l;;){if((s=m.expirationTime)<r){var g={expirationTime:m.expirationTime,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null};null===h?(f=h=g,p=c):h=h.next=g,s>d&&(d=s)}else{null!==h&&(h=h.next={expirationTime:0x3fffffff,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null}),sw(s,m.suspenseConfig);e:{var v=e,y=m;switch(s=t,g=n,y.tag){case 1:if("function"==typeof(v=y.payload)){c=v.call(g,c,s);break e}c=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null==(s="function"==typeof(v=y.payload)?v.call(g,c,s):v))break e;c=u({},c,s);break e;case 2:oj=!0}}null!==m.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[m]:s.push(m))}if(null===(m=m.next)||m===l)if(null===(s=o.shared.pending))break;else m=a.next=s.next,s.next=l,o.baseQueue=a=s,o.shared.pending=null}null===h?p=c:h.next=f,o.baseState=p,o.baseQueue=h,sS(d),e.expirationTime=d,e.memoizedState=c}}function o$(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(p(191,r));r.call(o)}}}var oQ=es.ReactCurrentBatchConfig,oJ=(new c.Component).refs;function oZ(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var o0={isMounted:function(e){return!!(e=e._reactInternalFiber)&&tr(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=sc(),o=oQ.suspense;(o=oG(r=su(r,e,o),o)).payload=t,null!=n&&(o.callback=n),oK(e,o),sd(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=sc(),o=oQ.suspense;(o=oG(r=su(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),oK(e,o),sd(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=sc(),r=oQ.suspense;(r=oG(n=su(n,e,r),r)).tag=2,null!=t&&(r.callback=t),oK(e,r),sd(e,n)}};function o1(e,t,n,r,o,a,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,s):!t.prototype||!t.prototype.isPureReactComponent||!rN(n,r)||!rN(o,a)}function o2(e,t,n){var r=!1,o=r3,a=t.contextType;return"object"==typeof a&&null!==a?a=oU(a):(o=oe(t)?r9:r6.current,a=(r=null!=(r=t.contextTypes))?r7(e,o):r3),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=o0,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function o5(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&o0.enqueueReplaceState(t,t.state,null)}function o4(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=oJ,oW(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=oU(a):o.context=r7(e,a=oe(t)?r9:r6.current),oY(e,n,o,r),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(oZ(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&o0.enqueueReplaceState(o,o.state,null),oY(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var o3=Array.isArray;function o6(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(p(309));var r=n.stateNode}if(!r)throw Error(p(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===oJ&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(p(284));if(!n._owner)throw Error(p(290,e))}return e}function o8(e,t){if("textarea"!==e.type)throw Error(p(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function o9(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=sG(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=sY(n,e.mode,r)).return=e:(t=o(t,n)).return=e,t}function c(e,t,n,r){return null!==t&&t.elementType===n.type?(r=o(t,n.props)).ref=o6(e,t,n):(r=sK(n.type,n.key,n.props,null,e.mode,r)).ref=o6(e,t,n),r.return=e,r}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=s$(n,e.mode,r)).return=e:(t=o(t,n.children||[])).return=e,t}function d(e,t,n,r,a){return null===t||7!==t.tag?(t=sX(n,e.mode,r,a)).return=e:(t=o(t,n)).return=e,t}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=sY(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ed:return(n=sK(t.type,t.key,t.props,null,e.mode,n)).ref=o6(e,null,t),n.return=e,n;case ep:return(t=s$(t,e.mode,n)).return=e,t}if(o3(t)||eE(t))return(t=sX(t,e.mode,n,null)).return=e,t;o8(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ed:return n.key===o?n.type===ef?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case ep:return n.key===o?u(e,t,n,r):null}if(o3(n)||eE(n))return null!==o?null:d(e,t,n,r,null);o8(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ed:return e=e.get(null===r.key?n:r.key)||null,r.type===ef?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case ep:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(o3(r)||eE(r))return d(t,e=e.get(n)||null,r,o,null);o8(t,r)}return null}function g(o,s,l,c){for(var u=null,d=null,p=s,g=s=0,v=null;null!==p&&g<l.length;g++){p.index>g?(v=p,p=null):v=p.sibling;var y=h(o,p,l[g],c);if(null===y){null===p&&(p=v);break}e&&p&&null===y.alternate&&t(o,p),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y,p=v}if(g===l.length)return n(o,p),u;if(null===p){for(;g<l.length;g++)null!==(p=f(o,l[g],c))&&(s=a(p,s,g),null===d?u=p:d.sibling=p,d=p);return u}for(p=r(o,p);g<l.length;g++)null!==(v=m(p,o,g,l[g],c))&&(e&&null!==v.alternate&&p.delete(null===v.key?g:v.key),s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&p.forEach(function(e){return t(o,e)}),u}function v(o,s,l,c){var u=eE(l);if("function"!=typeof u)throw Error(p(150));if(null==(l=u.call(l)))throw Error(p(151));for(var d=u=null,g=s,v=s=0,y=null,b=l.next();null!==g&&!b.done;v++,b=l.next()){g.index>v?(y=g,g=null):y=g.sibling;var x=h(o,g,b.value,c);if(null===x){null===g&&(g=y);break}e&&g&&null===x.alternate&&t(o,g),s=a(x,s,v),null===d?u=x:d.sibling=x,d=x,g=y}if(b.done)return n(o,g),u;if(null===g){for(;!b.done;v++,b=l.next())null!==(b=f(o,b.value,c))&&(s=a(b,s,v),null===d?u=b:d.sibling=b,d=b);return u}for(g=r(o,g);!b.done;v++,b=l.next())null!==(b=m(g,o,v,b.value,c))&&(e&&null!==b.alternate&&g.delete(null===b.key?v:b.key),s=a(b,s,v),null===d?u=b:d.sibling=b,d=b);return e&&g.forEach(function(e){return t(o,e)}),u}return function(e,r,a,l){var c="object"==typeof a&&null!==a&&a.type===ef&&null===a.key;c&&(a=a.props.children);var u="object"==typeof a&&null!==a;if(u)switch(a.$$typeof){case ed:e:{for(u=a.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(a.type===ef){n(e,c.sibling),(r=o(c,a.props.children)).return=e,e=r;break e}}else if(c.elementType===a.type){n(e,c.sibling),(r=o(c,a.props)).ref=o6(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===ef?((r=sX(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=sK(a.type,a.key,a.props,null,e.mode,l)).ref=o6(e,r,a),l.return=e,e=l)}return s(e);case ep:e:{for(c=a.key;null!==r;){if(r.key===c)if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}else{n(e,r);break}t(e,r),r=r.sibling}(r=s$(a,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e):(n(e,r),(r=sY(a,e.mode,l)).return=e),s(e=r);if(o3(a))return g(e,r,a,l);if(eE(a))return v(e,r,a,l);if(u&&o8(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:throw Error(p(152,(e=e.type).displayName||e.name||"Component"))}return n(e,r)}}var o7=o9(!0),ie=o9(!1),it={},ir={current:it},io={current:it},ii={current:it};function ia(e){if(e===it)throw Error(p(174));return e}function is(e,t){switch(r4(ii,t),r4(io,e),r4(ir,it),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eQ(null,"");break;default:t=eQ(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}r5(ir),r4(ir,t)}function il(){r5(ir),r5(io),r5(ii)}function ic(e){ia(ii.current);var t=ia(ir.current),n=eQ(t,e.type);t!==n&&(r4(io,e),r4(ir,n))}function iu(e){io.current===e&&(r5(ir),r5(io))}var id={current:0};function ip(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===nh||n.data===nm))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ih(e,t){return{responder:e,props:t}}var im=es.ReactCurrentDispatcher,ig=es.ReactCurrentBatchConfig,iv=0,iy=null,ib=null,ix=null,iC=!1;function ik(){throw Error(p(321))}function iw(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rA(e[n],t[n]))return!1;return!0}function iS(e,t,n,r,o,a){if(iv=a,iy=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,im.current=null===e||null===e.memoizedState?iK:iX,e=n(r,o),t.expirationTime===iv){a=0;do{if(t.expirationTime=0,!(25>a))throw Error(p(301));a+=1,ix=ib=null,t.updateQueue=null,im.current=iY,e=n(r,o)}while(t.expirationTime===iv)}if(im.current=iG,t=null!==ib&&null!==ib.next,iv=0,ix=ib=iy=null,iC=!1,t)throw Error(p(300));return e}function i_(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ix?iy.memoizedState=ix=e:ix=ix.next=e,ix}function iE(){if(null===ib){var e=iy.alternate;e=null!==e?e.memoizedState:null}else e=ib.next;var t=null===ix?iy.memoizedState:ix.next;if(null!==t)ix=t,ib=e;else{if(null===e)throw Error(p(310));e={memoizedState:(ib=e).memoizedState,baseState:ib.baseState,baseQueue:ib.baseQueue,queue:ib.queue,next:null},null===ix?iy.memoizedState=ix=e:ix=ix.next=e}return ix}function iP(e,t){return"function"==typeof t?t(e):t}function iI(e){var t=iE(),n=t.queue;if(null===n)throw Error(p(311));n.lastRenderedReducer=e;var r=ib,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=a=null,c=o;do{var u=c.expirationTime;if(u<iv){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,u>iy.expirationTime&&(iy.expirationTime=u,sS(u))}else null!==l&&(l=l.next={expirationTime:0x3fffffff,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),sw(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,rA(r,t.memoizedState)||(i6=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function iT(e){var t=iE(),n=t.queue;if(null===n)throw Error(p(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do a=e(a,s.action),s=s.next;while(s!==o);rA(a,t.memoizedState)||(i6=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function iD(e){var t=i_();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:iP,lastRenderedState:e}).dispatch=iq.bind(null,iy,e),[t.memoizedState,e]}function iA(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=iy.updateQueue)?(t={lastEffect:null},iy.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function iR(){return iE().memoizedState}function iN(e,t,n,r){var o=i_();iy.effectTag|=e,o.memoizedState=iA(1|t,n,void 0,void 0===r?null:r)}function iB(e,t,n,r){var o=iE();r=void 0===r?null:r;var a=void 0;if(null!==ib){var s=ib.memoizedState;if(a=s.destroy,null!==r&&iw(r,s.deps))return void iA(t,n,a,r)}iy.effectTag|=e,o.memoizedState=iA(1|t,n,a,r)}function iM(e,t){return iN(516,4,e,t)}function iF(e,t){return iB(516,4,e,t)}function iO(e,t){return iB(4,2,e,t)}function iL(e,t){return"function"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(t.current=e=e(),function(){t.current=null}):void 0}function iH(e,t,n){return n=null!=n?n.concat([e]):null,iB(4,2,iL.bind(null,t,e),n)}function iz(){}function iV(e,t){return i_().memoizedState=[e,void 0===t?null:t],e}function iU(e,t){var n=iE();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&iw(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ij(e,t){var n=iE();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&iw(t,r[1])?r[0]:(n.memoizedState=[e=e(),t],e)}function iW(e,t,n){var r=o_();oP(98>r?98:r,function(){e(!0)}),oP(97<r?97:r,function(){var r=ig.suspense;ig.suspense=void 0===t?null:t;try{e(!1),n()}finally{ig.suspense=r}})}function iq(e,t,n){var r=sc(),o=oQ.suspense;o={expirationTime:r=su(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===iy||null!==a&&a===iy)iC=!0,o.expirationTime=iv,iy.expirationTime=iv;else{if(0===e.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,rA(l,s))return}catch(e){}finally{}sd(e,r)}}var iG={readContext:oU,useCallback:ik,useContext:ik,useEffect:ik,useImperativeHandle:ik,useLayoutEffect:ik,useMemo:ik,useReducer:ik,useRef:ik,useState:ik,useDebugValue:ik,useResponder:ik,useDeferredValue:ik,useTransition:ik},iK={readContext:oU,useCallback:iV,useContext:oU,useEffect:iM,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,iN(4,2,iL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return iN(4,2,e,t)},useMemo:function(e,t){return t=void 0===t?null:t,i_().memoizedState=[e=e(),t],e},useReducer:function(e,t,n){var r=i_();return r.memoizedState=r.baseState=t=void 0!==n?n(t):t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=iq.bind(null,iy,e),[r.memoizedState,e]},useRef:function(e){return i_().memoizedState={current:e}},useState:iD,useDebugValue:iz,useResponder:ih,useDeferredValue:function(e,t){var n=iD(e),r=n[0],o=n[1];return iM(function(){var n=ig.suspense;ig.suspense=void 0===t?null:t;try{o(e)}finally{ig.suspense=n}},[e,t]),r},useTransition:function(e){var t=iD(!1),n=t[0];return t=t[1],[iV(iW.bind(null,t,e),[t,e]),n]}},iX={readContext:oU,useCallback:iU,useContext:oU,useEffect:iF,useImperativeHandle:iH,useLayoutEffect:iO,useMemo:ij,useReducer:iI,useRef:iR,useState:function(){return iI(iP)},useDebugValue:iz,useResponder:ih,useDeferredValue:function(e,t){var n=iI(iP),r=n[0],o=n[1];return iF(function(){var n=ig.suspense;ig.suspense=void 0===t?null:t;try{o(e)}finally{ig.suspense=n}},[e,t]),r},useTransition:function(e){var t=iI(iP),n=t[0];return t=t[1],[iU(iW.bind(null,t,e),[t,e]),n]}},iY={readContext:oU,useCallback:iU,useContext:oU,useEffect:iF,useImperativeHandle:iH,useLayoutEffect:iO,useMemo:ij,useReducer:iT,useRef:iR,useState:function(){return iT(iP)},useDebugValue:iz,useResponder:ih,useDeferredValue:function(e,t){var n=iT(iP),r=n[0],o=n[1];return iF(function(){var n=ig.suspense;ig.suspense=void 0===t?null:t;try{o(e)}finally{ig.suspense=n}},[e,t]),r},useTransition:function(e){var t=iT(iP),n=t[0];return t=t[1],[iU(iW.bind(null,t,e),[t,e]),n]}},i$=null,iQ=null,iJ=!1;function iZ(e,t){var n=sj(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function i0(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function i1(e){if(iJ){var t=iQ;if(t){var n=t;if(!i0(e,t)){if(!(t=nk(n.nextSibling))||!i0(e,t)){e.effectTag=-1025&e.effectTag|2,iJ=!1,i$=e;return}iZ(i$,n)}i$=e,iQ=nk(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,iJ=!1,i$=e}}function i2(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;i$=e}function i5(e){if(e!==i$)return!1;if(!iJ)return i2(e),iJ=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!nb(t,e.memoizedProps))for(t=iQ;t;)iZ(e,t),t=nk(t.nextSibling);if(i2(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(p(317));e:{for(t=0,e=e.nextSibling;e;){if(8===e.nodeType){var n=e.data;if(n===nf){if(0===t){iQ=nk(e.nextSibling);break e}t--}else n!==np&&n!==nm&&n!==nh||t++}e=e.nextSibling}iQ=null}}else iQ=i$?nk(e.stateNode.nextSibling):null;return!0}function i4(){iQ=i$=null,iJ=!1}var i3=es.ReactCurrentOwner,i6=!1;function i8(e,t,n,r){t.child=null===e?ie(t,null,n,r):o7(t,e.child,n,r)}function i9(e,t,n,r,o){n=n.render;var a=t.ref;return(oV(t,o),r=iS(e,t,n,r,a,o),null===e||i6)?(t.effectTag|=1,i8(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),ad(e,t,o))}function i7(e,t,n,r,o,a){if(null===e){var s=n.type;return"function"!=typeof s||sW(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=sK(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,ae(e,t,s,r,o,a))}return(s=e.child,o<a&&(o=s.memoizedProps,(n=null!==(n=n.compare)?n:rN)(o,r)&&e.ref===t.ref))?ad(e,t,a):(t.effectTag|=1,(e=sG(s,r)).ref=t.ref,e.return=t,t.child=e)}function ae(e,t,n,r,o,a){return null!==e&&rN(e.memoizedProps,r)&&e.ref===t.ref&&(i6=!1,o<a)?(t.expirationTime=e.expirationTime,ad(e,t,a)):an(e,t,n,r,a)}function at(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function an(e,t,n,r,o){var a=oe(n)?r9:r6.current;return(a=r7(t,a),oV(t,o),n=iS(e,t,n,r,a,o),null===e||i6)?(t.effectTag|=1,i8(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),ad(e,t,o))}function ar(e,t,n,r,o){if(oe(n)){var a=!0;oo(t)}else a=!1;if(oV(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),o2(t,n,r),o4(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,l=t.memoizedProps;s.props=l;var c=s.context,u=n.contextType;u="object"==typeof u&&null!==u?oU(u):r7(t,u=oe(n)?r9:r6.current);var d=n.getDerivedStateFromProps,p="function"==typeof d||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==r||c!==u)&&o5(t,s,r,u),oj=!1;var f=t.memoizedState;s.state=f,oY(t,r,s,o),c=t.memoizedState,l!==r||f!==c||r8.current||oj?("function"==typeof d&&(oZ(t,n,d,r),c=t.memoizedState),(l=oj||o1(t,n,l,r,f,c,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=u,r=l):("function"==typeof s.componentDidMount&&(t.effectTag|=4),r=!1)}else s=t.stateNode,oq(e,t),l=t.memoizedProps,s.props=t.type===t.elementType?l:oN(t.type,l),c=s.context,u="object"==typeof(u=n.contextType)&&null!==u?oU(u):r7(t,u=oe(n)?r9:r6.current),(p="function"==typeof(d=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==r||c!==u)&&o5(t,s,r,u),oj=!1,c=t.memoizedState,s.state=c,oY(t,r,s,o),f=t.memoizedState,l!==r||c!==f||r8.current||oj?("function"==typeof d&&(oZ(t,n,d,r),f=t.memoizedState),(d=oj||o1(t,n,l,r,c,f,u))?(p||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,u),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,u)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=u,r=d):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return ao(e,t,n,r,a,o)}function ao(e,t,n,r,o,a){at(e,t);var s=0!=(64&t.effectTag);if(!r&&!s)return o&&oi(t,n,!1),ad(e,t,a);r=t.stateNode,i3.current=t;var l=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&s?(t.child=o7(t,e.child,null,a),t.child=o7(t,null,l,a)):i8(e,t,l,a),t.memoizedState=r.state,o&&oi(t,n,!0),t.child}function ai(e){var t=e.stateNode;t.pendingContext?on(e,t.pendingContext,t.pendingContext!==t.context):t.context&&on(e,t.context,!1),is(e,t.containerInfo)}var aa={dehydrated:null,retryTime:0};function as(e,t,n){var r,o=t.mode,a=t.pendingProps,s=id.current,l=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&s)&&(null===e||null!==e.memoizedState)),r?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(s|=1),r4(id,1&s),null===e){if(void 0!==a.fallback&&i1(t),l){if(l=a.fallback,(a=sX(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=sX(l,o,n,null)).return=t,a.sibling=n,t.memoizedState=aa,t.child=a,n}return o=a.children,t.memoizedState=null,t.child=ie(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,l){if(a=a.fallback,(n=sG(e,e.pendingProps)).return=t,0==(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;return(o=sG(o,a)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=aa,t.child=n,o}return n=o7(t,e.child,a.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=a.fallback,(a=sX(null,o,0,null)).return=t,a.child=e,null!==e&&(e.return=a),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=sX(l,o,n,null)).return=t,a.sibling=n,n.effectTag|=2,a.childExpirationTime=0,t.memoizedState=aa,t.child=a,n}return t.memoizedState=null,t.child=o7(t,e,a.children,n)}function al(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),oz(e.return,t)}function ac(e,t,n,r,o,a){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:a}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailExpiration=0,s.tailMode=o,s.lastEffect=a)}function au(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(i8(e,t,r.children,n),0!=(2&(r=id.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&al(e,n);else if(19===e.tag)al(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(r4(id,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(o=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===ip(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ac(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ip(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ac(t,!0,n,null,a,t.lastEffect);break;case"together":ac(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ad(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&sS(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(p(153));if(null!==t.child){for(n=sG(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=sG(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ap(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function af(e,t,n){var l=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return oe(t.type)&&ot(),null;case 3:return il(),r5(r8),r5(r6),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&i5(t)&&(t.effectTag|=4),o(t),null;case 5:iu(t),n=ia(ii.current);var c=t.type;if(null!==e&&null!=t.stateNode)a(e,t,c,l,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!l){if(null===t.stateNode)throw Error(p(166));return null}if(e=ia(ir.current),i5(t)){l=t.stateNode,c=t.type;var d=t.memoizedProps;switch(l[n_]=t,l[nE]=d,c){case"iframe":case"object":case"embed":t0("load",l);break;case"video":case"audio":for(e=0;e<te.length;e++)t0(te[e],l);break;case"source":t0("error",l);break;case"img":case"image":case"link":t0("error",l),t0("load",l);break;case"form":t0("reset",l),t0("submit",l);break;case"details":t0("toggle",l);break;case"input":eF(l,d),t0("invalid",l),no(n,"onChange");break;case"select":l._wrapperState={wasMultiple:!!d.multiple},t0("invalid",l),no(n,"onChange");break;case"textarea":eq(l,d),t0("invalid",l),no(n,"onChange")}for(var f in nt(c,d),e=null,d)if(d.hasOwnProperty(f)){var h=d[f];"children"===f?"string"==typeof h?l.textContent!==h&&(e=["children",h]):"number"==typeof h&&l.textContent!==""+h&&(e=["children",""+h]):A.hasOwnProperty(f)&&null!=h&&no(n,f)}switch(c){case"input":eN(l),eH(l,d,!0);break;case"textarea":eN(l),eK(l);break;case"select":case"option":break;default:"function"==typeof d.onClick&&(l.onclick=ni)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(f=9===n.nodeType?n:n.ownerDocument,e===nr&&(e=e$(c)),e===nr?"script"===c?((e=f.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=f.createElement(c,{is:l.is}):(e=f.createElement(c),"select"===c&&(f=e,l.multiple?f.multiple=!0:l.size&&(f.size=l.size))):e=f.createElementNS(e,c),e[n_]=t,e[nE]=l,r(e,t,!1,!1),t.stateNode=e,f=nn(c,l),c){case"iframe":case"object":case"embed":t0("load",e),h=l;break;case"video":case"audio":for(h=0;h<te.length;h++)t0(te[h],e);h=l;break;case"source":t0("error",e),h=l;break;case"img":case"image":case"link":t0("error",e),t0("load",e),h=l;break;case"form":t0("reset",e),t0("submit",e),h=l;break;case"details":t0("toggle",e),h=l;break;case"input":eF(e,l),h=eM(e,l),t0("invalid",e),no(n,"onChange");break;case"option":h=eU(e,l);break;case"select":e._wrapperState={wasMultiple:!!l.multiple},h=u({},l,{value:void 0}),t0("invalid",e),no(n,"onChange");break;case"textarea":eq(e,l),h=eW(e,l),t0("invalid",e),no(n,"onChange");break;default:h=l}nt(c,h);var m=h;for(d in m)if(m.hasOwnProperty(d)){var g=m[d];"style"===d?t7(e,g):"dangerouslySetInnerHTML"===d?null!=(g=g?g.__html:void 0)&&eZ(e,g):"children"===d?"string"==typeof g?("textarea"!==c||""!==g)&&e0(e,g):"number"==typeof g&&e0(e,""+g):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(A.hasOwnProperty(d)?null!=g&&no(n,d):null!=g&&el(e,d,g,f))}switch(c){case"input":eN(e),eH(e,l,!1);break;case"textarea":eN(e),eK(e);break;case"option":null!=l.value&&e.setAttribute("value",""+eD(l.value));break;case"select":e.multiple=!!l.multiple,null!=(n=l.value)?ej(e,!!l.multiple,n,!1):null!=l.defaultValue&&ej(e,!!l.multiple,l.defaultValue,!0);break;default:"function"==typeof h.onClick&&(e.onclick=ni)}ny(c,l)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)s(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error(p(166));n=ia(ii.current),ia(ir.current),i5(t)?(n=t.stateNode,l=t.memoizedProps,n[n_]=t,n.nodeValue!==l&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(l))[n_]=t,t.stateNode=n)}return null;case 13:if(r5(id),l=t.memoizedState,0!=(64&t.effectTag))return t.expirationTime=n,t;return n=null!==l,l=!1,null===e?void 0!==t.memoizedProps.fallback&&i5(t):(l=null!==(c=e.memoizedState),n||null===c||null!==(c=e.child.sibling)&&(null!==(d=t.firstEffect)?(t.firstEffect=c,c.nextEffect=d):(t.firstEffect=t.lastEffect=c,c.nextEffect=null),c.effectTag=8)),n&&!l&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&id.current)?aZ===aj&&(aZ=aG):((aZ===aj||aZ===aG)&&(aZ=aK),0!==a4&&null!==a$&&(sZ(a$,aJ),s0(a$,a4)))),(n||l)&&(t.effectTag|=4),null;case 4:return il(),o(t),null;case 10:return oH(t),null;case 19:if(r5(id),null===(l=t.memoizedState))return null;if(c=0!=(64&t.effectTag),null===(d=l.rendering)){if(c)ap(l,!1);else if(aZ!==aj||null!==e&&0!=(64&e.effectTag))for(d=t.child;null!==d;){if(null!==(e=ip(d))){for(t.effectTag|=64,ap(l,!1),null!==(c=e.updateQueue)&&(t.updateQueue=c,t.effectTag|=4),null===l.lastEffect&&(t.firstEffect=null),t.lastEffect=l.lastEffect,l=t.child;null!==l;)c=l,d=n,c.effectTag&=2,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null,null===(e=c.alternate)?(c.childExpirationTime=0,c.expirationTime=d,c.child=null,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null):(c.childExpirationTime=e.childExpirationTime,c.expirationTime=e.expirationTime,c.child=e.child,c.memoizedProps=e.memoizedProps,c.memoizedState=e.memoizedState,c.updateQueue=e.updateQueue,d=e.dependencies,c.dependencies=null===d?null:{expirationTime:d.expirationTime,firstContext:d.firstContext,responders:d.responders}),l=l.sibling;return r4(id,1&id.current|2),t.child}d=d.sibling}}else{if(!c)if(null!==(e=ip(d))){if(t.effectTag|=64,c=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),ap(l,!0),null===l.tail&&"hidden"===l.tailMode&&!d.alternate)return null!==(t=t.lastEffect=l.lastEffect)&&(t.nextEffect=null),null}else 2*oS()-l.renderingStartTime>l.tailExpiration&&1<n&&(t.effectTag|=64,c=!0,ap(l,!1),t.expirationTime=t.childExpirationTime=n-1);l.isBackwards?(d.sibling=t.child,t.child=d):(null!==(n=l.last)?n.sibling=d:t.child=d,l.last=d)}return null!==l.tail?(0===l.tailExpiration&&(l.tailExpiration=oS()+500),n=l.tail,l.rendering=n,l.tail=n.sibling,l.lastEffect=t.lastEffect,l.renderingStartTime=oS(),n.sibling=null,t=id.current,r4(id,c?1&t|2:1&t),n):null}throw Error(p(156,t.tag))}function ah(e){switch(e.tag){case 1:oe(e.type)&&ot();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(il(),r5(r8),r5(r6),0!=(64&(t=e.effectTag)))throw Error(p(285));return e.effectTag=-4097&t|64,e;case 5:return iu(e),null;case 13:return r5(id),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return r5(id),null;case 4:return il(),null;case 10:return oH(e),null;default:return null}}function am(e,t){return{value:e,source:t,stack:eT(t)}}r=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},o=function(){},a=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,l,c=t.stateNode;switch(ia(ir.current),e=null,n){case"input":a=eM(c,a),r=eM(c,r),e=[];break;case"option":a=eU(c,a),r=eU(c,r),e=[];break;case"select":a=u({},a,{value:void 0}),r=u({},r,{value:void 0}),e=[];break;case"textarea":a=eW(c,a),r=eW(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=ni)}for(s in nt(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in c=a[s])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(A.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var d=r[s];if(c=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&d!==c&&(null!=d||null!=c))if("style"===s)if(c){for(l in c)!c.hasOwnProperty(l)||d&&d.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in d)d.hasOwnProperty(l)&&c[l]!==d[l]&&(n||(n={}),n[l]=d[l])}else n||(e||(e=[]),e.push(s,n)),n=d;else"dangerouslySetInnerHTML"===s?(d=d?d.__html:void 0,c=c?c.__html:void 0,null!=d&&c!==d&&(e=e||[]).push(s,d)):"children"===s?c===d||"string"!=typeof d&&"number"!=typeof d||(e=e||[]).push(s,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(A.hasOwnProperty(s)?(null!=d&&no(o,s),e||c===d||(e=[])):(e=e||[]).push(s,d))}n&&(e=e||[]).push("style",n),(t.updateQueue=o=e)&&(t.effectTag|=4)}},s=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var ag="function"==typeof WeakSet?WeakSet:Set;function av(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=eT(n)),null!==n&&eI(n.type),t=t.value,null!==e&&1===e.tag&&eI(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function ay(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){sF(e,t)}}function ab(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){sF(e,t)}else t.current=null}function ax(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:oN(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(p(163))}function aC(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ak(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function aw(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:ak(3,n);return;case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:oN(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}null!==(t=n.updateQueue)&&o$(n,t,e);return;case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}o$(n,t,e)}return;case 5:e=n.stateNode,null===t&&4&n.effectTag&&ny(n.type,n.memoizedProps)&&e.focus();return;case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:null===n.memoizedState&&null!==(n=n.alternate)&&null!==(n=n.memoizedState)&&null!==(n=n.dehydrated)&&tj(n);return}throw Error(p(163))}function aS(e,t,n){switch("function"==typeof sz&&sz(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;oP(97<n?97:n,function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){sF(o,e)}}e=e.next}while(e!==r)})}break;case 1:ab(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&ay(t,n);break;case 5:ab(t);break;case 4:aD(e,t,n)}}function a_(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&a_(t)}function aE(e){return 5===e.tag||3===e.tag||4===e.tag}function aP(e){e:{for(var t=e.return;null!==t;){if(aE(t)){var n=t;break e}t=t.return}throw Error(p(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(p(161))}16&n.effectTag&&(e0(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||aE(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag||null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?aI(e,n,t):aT(e,n,t)}function aI(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ni));else if(4!==r&&null!==(e=e.child))for(aI(e,t,n),e=e.sibling;null!==e;)aI(e,t,n),e=e.sibling}function aT(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(aT(e,t,n),e=e.sibling;null!==e;)aT(e,t,n),e=e.sibling}function aD(e,t,n){for(var r,o,a=t,s=!1;;){if(!s){s=a.return;e:for(;;){if(null===s)throw Error(p(160));switch(r=s.stateNode,s.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}s=s.return}s=!0}if(5===a.tag||6===a.tag){e:for(var l=e,c=a,u=n,d=c;;)if(aS(l,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(l=r,c=a.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,o=!0,a.child.return=a,a=a.child;continue}}else if(aS(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(s=!1)}a.sibling.return=a.return,a=a.sibling}}function aA(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:aC(3,t);return;case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[nE]=r,"input"===e&&"radio"===r.type&&null!=r.name&&eO(n,r),nn(e,o),t=nn(e,r),o=0;o<a.length;o+=2){var s=a[o],l=a[o+1];"style"===s?t7(n,l):"dangerouslySetInnerHTML"===s?eZ(n,l):"children"===s?e0(n,l):el(n,s,l,t)}switch(e){case"input":eL(n,r);break;case"textarea":eG(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?ej(n,!!r.multiple,e,!1):!!r.multiple!==t&&(null!=r.defaultValue?ej(n,!!r.multiple,r.defaultValue,!0):ej(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(p(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:(t=t.stateNode).hydrate&&(t.hydrate=!1,tj(t.containerInfo));return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,a6=oS()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,r?"function"==typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,a.style.display=t9("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(a=e.child.sibling).return=e,e=a;continue}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}aR(t);return;case 19:aR(t);return}throw Error(p(163))}function aR(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ag),t.forEach(function(t){var r=sL.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}var aN="function"==typeof WeakMap?WeakMap:Map;function aB(e,t,n){(n=oG(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){a7||(a7=!0,se=r),av(e,t)},n}function aM(e,t,n){(n=oG(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return av(e,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===st?st=new Set([this]):st.add(this),av(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var aF=Math.ceil,aO=es.ReactCurrentDispatcher,aL=es.ReactCurrentOwner,aH=0,az=8,aV=16,aU=32,aj=0,aW=1,aq=2,aG=3,aK=4,aX=5,aY=0,a$=null,aQ=null,aJ=0,aZ=0,a0=null,a1=0x3fffffff,a2=0x3fffffff,a5=null,a4=0,a3=!1,a6=0,a8=500,a9=null,a7=!1,se=null,st=null,sn=!1,sr=null,so=90,si=null,sa=0,ss=null,sl=0;function sc(){return(aY&(aV|aU))!==aH?0x3ffffffd-(oS()/10|0):0!==sl?sl:sl=0x3ffffffd-(oS()/10|0)}function su(e,t,n){if(0==(2&(t=t.mode)))return 0x3fffffff;var r=o_();if(0==(4&t))return 99===r?0x3fffffff:0x3ffffffe;if((aY&aV)!==aH)return aJ;if(null!==n)e=oR(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=0x3fffffff;break;case 98:e=oR(e,150,100);break;case 97:case 96:e=oR(e,5e3,250);break;case 95:e=2;break;default:throw Error(p(326))}return null!==a$&&e===aJ&&--e,e}function sd(e,t){if(50<sa)throw sa=0,ss=null,Error(p(185));if(null!==(e=sp(e,t))){var n=o_();0x3fffffff===t?(aY&az)!==aH&&(aY&(aV|aU))===aH?sg(e):(sh(e),aY===aH&&oD()):sh(e),(4&aY)===aH||98!==n&&99!==n||(null===si?si=new Map([[e,t]]):(void 0===(n=si.get(e))||n>t)&&si.set(e,t))}}function sp(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(a$===o&&(sS(t),aZ===aK&&sZ(o,aJ)),s0(o,t)),o}function sf(e){var t=e.lastExpiredTime;if(0!==t||(t=e.firstPendingTime,!sJ(e,t)))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function sh(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=0x3fffffff,e.callbackPriority=99,e.callbackNode=oT(sg.bind(null,e));else{var t=sf(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=sc();if(r=0x3fffffff===t?99:1===t||2===t?95:0>=(r=10*(0x3ffffffd-t)-10*(0x3ffffffd-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==ov&&ol(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=0x3fffffff===t?oT(sg.bind(null,e)):oI(r,sm.bind(null,e),{timeout:10*(0x3ffffffd-t)-oS()}),e.callbackNode=t}}}function sm(e,t){if(sl=0,t)return s1(e,t=sc()),sh(e),null;var n=sf(e);if(0!==n){if(t=e.callbackNode,(aY&(aV|aU))!==aH)throw Error(p(327));if(sN(),e===a$&&n===aJ||sx(e,n),null!==aQ){var r=aY;aY|=aV;for(var o=sk();;)try{sE();break}catch(t){sC(e,t)}if(oL(),aY=r,aO.current=o,aZ===aW)throw t=a0,sx(e,n),sZ(e,n),sh(e),t;if(null===aQ)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,a$=null,r=aZ){case aj:case aW:throw Error(p(345));case aq:s1(e,2<n?2:n);break;case aG:if(sZ(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=sT(o)),0x3fffffff===a1&&10<(o=a6+a8-oS())){if(a3){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,sx(e,n);break}}if(0!==(a=sf(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=nx(sD.bind(null,e),o);break}sD(e);break;case aK:if(sZ(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=sT(o)),a3&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,sx(e,n);break}if(0!==(o=sf(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(0x3fffffff!==a2?r=10*(0x3ffffffd-a2)-oS():0x3fffffff===a1?r=0:(r=10*(0x3ffffffd-a1)-5e3,n=10*(0x3ffffffd-n)-(o=oS()),0>(r=o-r)&&(r=0),n<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*aF(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=nx(sD.bind(null,e),r);break}sD(e);break;case aX:if(0x3fffffff!==a1&&null!==a5){a=a1;var s=a5;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(a=oS()-(10*(0x3ffffffd-a)-(0|s.timeoutMs||5e3)))<=o?0:o+r-a),10<r){sZ(e,n),e.timeoutHandle=nx(sD.bind(null,e),r);break}}sD(e);break;default:throw Error(p(329))}if(sh(e),e.callbackNode===t)return sm.bind(null,e)}}return null}function sg(e){var t=e.lastExpiredTime;if(t=0!==t?t:0x3fffffff,(aY&(aV|aU))!==aH)throw Error(p(327));if(sN(),e===a$&&t===aJ||sx(e,t),null!==aQ){var n=aY;aY|=aV;for(var r=sk();;)try{s_();break}catch(t){sC(e,t)}if(oL(),aY=n,aO.current=r,aZ===aW)throw n=a0,sx(e,t),sZ(e,t),sh(e),n;if(null!==aQ)throw Error(p(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,a$=null,sD(e),sh(e)}return null}function sv(){if(null!==si){var e=si;si=null,e.forEach(function(e,t){s1(t,e),sh(t)}),oD()}}function sy(e,t){var n=aY;aY|=1;try{return e(t)}finally{(aY=n)===aH&&oD()}}function sb(e,t){var n=aY;aY&=-2,aY|=az;try{return e(t)}finally{(aY=n)===aH&&oD()}}function sx(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,nC(n)),null!==aQ)for(n=aQ.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&ot();break;case 3:il(),r5(r8),r5(r6);break;case 5:iu(r);break;case 4:il();break;case 13:case 19:r5(id);break;case 10:oH(r)}n=n.return}a$=e,aQ=sG(e.current,null),aJ=t,aZ=aj,a0=null,a2=a1=0x3fffffff,a5=null,a4=0,a3=!1}function sC(e,t){for(;;){try{if(oL(),im.current=iG,iC)for(var n=iy.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(iv=0,ix=ib=iy=null,iC=!1,null===aQ||null===aQ.return)return aZ=aW,a0=t,aQ=null;e:{var o=e,a=aQ.return,s=aQ,l=t;if(t=aJ,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c,u=l;if(0==(2&s.mode)){var d=s.alternate;d?(s.updateQueue=d.updateQueue,s.memoizedState=d.memoizedState,s.expirationTime=d.expirationTime):(s.updateQueue=null,s.memoizedState=null)}var p=0!=(1&id.current),f=a;do{if(c=13===f.tag){var h=f.memoizedState;if(null!==h)c=null!==h.dehydrated;else{var m=f.memoizedProps;c=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!p)}}if(c){var g=f.updateQueue;if(null===g){var v=new Set;v.add(u),f.updateQueue=v}else g.add(u);if(0==(2&f.mode)){if(f.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=oG(0x3fffffff,null);y.tag=2,oK(s,y)}s.expirationTime=0x3fffffff;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new aN,l=new Set,b.set(u,l)):(l=b.get(u),void 0===l&&(l=new Set,b.set(u,l))),!l.has(s)){l.add(s);var x=sO.bind(null,o,u,s);u.then(x,x)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);l=Error((eI(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+eT(s))}aZ!==aX&&(aZ=aq),l=am(l,s),f=a;do{switch(f.tag){case 3:u=l,f.effectTag|=4096,f.expirationTime=t;var C=aB(f,u,t);oX(f,C);break e;case 1:u=l;var k=f.type,w=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof k.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===st||!st.has(w)))){f.effectTag|=4096,f.expirationTime=t;var S=aM(f,u,t);oX(f,S);break e}}f=f.return}while(null!==f)}aQ=sI(aQ)}catch(e){t=e;continue}break}}function sk(){var e=aO.current;return aO.current=iG,null===e?iG:e}function sw(e,t){e<a1&&2<e&&(a1=e),null!==t&&e<a2&&2<e&&(a2=e,a5=t)}function sS(e){e>a4&&(a4=e)}function s_(){for(;null!==aQ;)aQ=sP(aQ)}function sE(){for(;null!==aQ&&!oy();)aQ=sP(aQ)}function sP(e){var t=l(e.alternate,e,aJ);return e.memoizedProps=e.pendingProps,null===t&&(t=sI(e)),aL.current=null,t}function sI(e){aQ=e;do{var t=aQ.alternate;if(e=aQ.return,0==(2048&aQ.effectTag)){if(t=af(t,aQ,aJ),1===aJ||1!==aQ.childExpirationTime){for(var n=0,r=aQ.child;null!==r;){var o=r.expirationTime,a=r.childExpirationTime;o>n&&(n=o),a>n&&(n=a),r=r.sibling}aQ.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=aQ.firstEffect),null!==aQ.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=aQ.firstEffect),e.lastEffect=aQ.lastEffect),1<aQ.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=aQ:e.firstEffect=aQ,e.lastEffect=aQ))}else{if(null!==(t=ah(aQ)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=aQ.sibling))return t;aQ=e}while(null!==aQ);return aZ===aj&&(aZ=aX),null}function sT(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function sD(e){return oP(99,sA.bind(null,e,o_())),null}function sA(e,t){do sN();while(null!==sr);if((aY&(aV|aU))!==aH)throw Error(p(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(p(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=sT(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===a$&&(aQ=a$=null,aJ=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var a=aY;aY|=aU,aL.current=null,ng=tZ;var s=nu();if(nd(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u,d=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{l.nodeType,f.nodeType}catch(e){l=null;break e}var h=0,m=-1,g=-1,v=0,y=0,b=s,x=null;t:for(;;){for(;b!==l||0!==d&&3!==b.nodeType||(m=h+d),b!==f||0!==c&&3!==b.nodeType||(g=h+c),3===b.nodeType&&(h+=b.nodeValue.length),null!==(u=b.firstChild);)x=b,b=u;for(;;){if(b===s)break t;if(x===l&&++v===d&&(m=h),x===f&&++y===c&&(g=h),null!==(u=b.nextSibling))break;x=(b=x).parentNode}b=u}l=-1===m||-1===g?null:{start:m,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;nv={activeElementDetached:null,focusedElem:s,selectionRange:l},tZ=!1,a9=o;do try{sR()}catch(e){if(null===a9)throw Error(p(330));sF(a9,e),a9=a9.nextEffect}while(null!==a9);a9=o;do try{for(s=e,l=t;null!==a9;){var C=a9.effectTag;if(16&C&&e0(a9.stateNode,""),128&C){var k=a9.alternate;if(null!==k){var w=k.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&C){case 2:aP(a9),a9.effectTag&=-3;break;case 6:aP(a9),a9.effectTag&=-3,aA(a9.alternate,a9);break;case 1024:a9.effectTag&=-1025;break;case 1028:a9.effectTag&=-1025,aA(a9.alternate,a9);break;case 4:aA(a9.alternate,a9);break;case 8:d=a9,aD(s,d,l),a_(d)}a9=a9.nextEffect}}catch(e){if(null===a9)throw Error(p(330));sF(a9,e),a9=a9.nextEffect}while(null!==a9);if(w=nv,k=nu(),C=w.focusedElem,l=w.selectionRange,k!==C&&C&&C.ownerDocument&&nc(C.ownerDocument.documentElement,C)){for(null!==l&&nd(C)&&(k=l.start,void 0===(w=l.end)&&(w=k),("selectionStart"in C)?(C.selectionStart=k,C.selectionEnd=Math.min(w,C.value.length)):(w=(k=C.ownerDocument||document)&&k.defaultView||window).getSelection&&(w=w.getSelection(),d=C.textContent.length,s=Math.min(l.start,d),l=void 0===l.end?s:Math.min(l.end,d),!w.extend&&s>l&&(d=l,l=s,s=d),d=nl(C,s),f=nl(C,l),d&&f&&(1!==w.rangeCount||w.anchorNode!==d.node||w.anchorOffset!==d.offset||w.focusNode!==f.node||w.focusOffset!==f.offset)&&((k=k.createRange()).setStart(d.node,d.offset),w.removeAllRanges(),s>l?(w.addRange(k),w.extend(f.node,f.offset)):(k.setEnd(f.node,f.offset),w.addRange(k))))),k=[],w=C;w=w.parentNode;)1===w.nodeType&&k.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C<k.length;C++)(w=k[C]).element.scrollLeft=w.left,w.element.scrollTop=w.top}tZ=!!ng,nv=ng=null,e.current=n,a9=o;do try{for(C=e;null!==a9;){var S=a9.effectTag;if(36&S&&aw(C,a9.alternate,a9),128&S){k=void 0;var _=a9.ref;if(null!==_){var E=a9.stateNode;a9.tag,k=E,"function"==typeof _?_(k):_.current=k}}a9=a9.nextEffect}}catch(e){if(null===a9)throw Error(p(330));sF(a9,e),a9=a9.nextEffect}while(null!==a9);a9=null,ob(),aY=a}else e.current=n;if(sn)sn=!1,sr=e,so=t;else for(a9=o;null!==a9;)t=a9.nextEffect,a9.nextEffect=null,a9=t;if(0===(t=e.firstPendingTime)&&(st=null),0x3fffffff===t?e===ss?sa++:(sa=0,ss=e):sa=0,"function"==typeof sH&&sH(n.stateNode,r),sh(e),a7)throw a7=!1,e=se,se=null,e;return(aY&az)!==aH||oD(),null}function sR(){for(;null!==a9;){var e=a9.effectTag;0!=(256&e)&&ax(a9.alternate,a9),0==(512&e)||sn||(sn=!0,oI(97,function(){return sN(),null})),a9=a9.nextEffect}}function sN(){if(90!==so){var e=97<so?97:so;return so=90,oP(e,sB)}}function sB(){if(null===sr)return!1;var e=sr;if(sr=null,(aY&(aV|aU))!==aH)throw Error(p(331));var t=aY;for(aY|=aU,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:aC(5,n),ak(5,n)}}catch(t){if(null===e)throw Error(p(330));sF(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return aY=t,oD(),!0}function sM(e,t,n){t=aB(e,t=am(n,t),0x3fffffff),oK(e,t),null!==(e=sp(e,0x3fffffff))&&sh(e)}function sF(e,t){if(3===e.tag)sM(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){sM(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===st||!st.has(r))){e=aM(n,e=am(t,e),0x3fffffff),oK(n,e),null!==(n=sp(n,0x3fffffff))&&sh(n);break}}n=n.return}}function sO(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),a$===e&&aJ===n?aZ===aK||aZ===aG&&0x3fffffff===a1&&oS()-a6<a8?sx(e,aJ):a3=!0:sJ(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,sh(e)))}function sL(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=su(t=sc(),e,null)),null!==(e=sp(e,t))&&sh(e)}l=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||r8.current)i6=!0;else{if(r<n){switch(i6=!1,t.tag){case 3:ai(t),i4();break;case 5:if(ic(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:oe(t.type)&&oo(t);break;case 4:is(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,r4(oB,(o=t.type._context)._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState){if(0!==(r=t.child.childExpirationTime)&&r>=n)return as(e,t,n);return r4(id,1&id.current),null!==(t=ad(e,t,n))?t.sibling:null}r4(id,1&id.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return au(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),r4(id,id.current),!r)return null}return ad(e,t,n)}i6=!1}}else i6=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=r7(t,r6.current),oV(t,n),o=iS(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,oe(r)){var a=!0;oo(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,oW(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&oZ(t,r,s,e),o.updater=o0,t.stateNode=o,o._reactInternalFiber=t,o4(t,r,e,n),t=ao(null,t,r,!0,a,n)}else t.tag=0,i8(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,eP(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,a=t.tag=sq(o),e=oN(o,e),a){case 0:t=an(null,t,o,e,n);break e;case 1:t=ar(null,t,o,e,n);break e;case 11:t=i9(null,t,o,e,n);break e;case 14:t=i7(null,t,o,oN(o.type,e),r,n);break e}throw Error(p(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:oN(r,o),an(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:oN(r,o),ar(e,t,r,o,n);case 3:if(ai(t),r=t.updateQueue,null===e||null===r)throw Error(p(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,oq(e,t),oY(t,r,null,n),(r=t.memoizedState.element)===o)i4(),t=ad(e,t,n);else{if((o=t.stateNode.hydrate)&&(iQ=nk(t.stateNode.containerInfo.firstChild),i$=t,o=iJ=!0),o)for(n=ie(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else i8(e,t,r,n),i4();t=t.child}return t;case 5:return ic(t),null===e&&i1(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,nb(r,o)?s=null:null!==a&&nb(r,a)&&(t.effectTag|=16),at(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(i8(e,t,s,n),t=t.child),t;case 6:return null===e&&i1(t),null;case 13:return as(e,t,n);case 4:return is(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=o7(t,null,r,n):i8(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:oN(r,o),i9(e,t,r,o,n);case 7:return i8(e,t,t.pendingProps,n),t.child;case 8:case 12:return i8(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value;var l=t.type._context;if(r4(oB,l._currentValue),l._currentValue=a,null!==s)if(0==(a=rA(l=s.value,a)?0:("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,a):0x3fffffff)|0)){if(s.children===o.children&&!r8.current){t=ad(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&a)){1===l.tag&&((u=oG(n,null)).tag=2,oK(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),oz(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}i8(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(a=t.pendingProps).children,oV(t,n),r=r(o=oU(o,a.unstable_observedBits)),t.effectTag|=1,i8(e,t,r,n),t.child;case 14:return a=oN(o=t.type,t.pendingProps),a=oN(o.type,a),i7(e,t,o,a,r,n);case 15:return ae(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:oN(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,oe(r)?(e=!0,oo(t)):e=!1,oV(t,n),o2(t,r,o),o4(t,r,o,n),ao(null,t,r,!0,e,n);case 19:return au(e,t,n)}throw Error(p(156,t.tag))};var sH=null,sz=null;function sV(e){if("u"<typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);sH=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},sz=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}return!0}function sU(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function sj(e,t,n,r){return new sU(e,t,n,r)}function sW(e){return!(!(e=e.prototype)||!e.isReactComponent)}function sq(e){if("function"==typeof e)return+!!sW(e);if(null!=e){if((e=e.$$typeof)===eb)return 11;if(e===ek)return 14}return 2}function sG(e,t){var n=e.alternate;return null===n?((n=sj(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sK(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)sW(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ef:return sX(n.children,o,a,t);case ey:s=8,o|=7;break;case eh:s=8,o|=1;break;case em:return(e=sj(12,n,t,8|o)).elementType=em,e.type=em,e.expirationTime=a,e;case ex:return(e=sj(13,n,t,o)).type=ex,e.elementType=ex,e.expirationTime=a,e;case eC:return(e=sj(19,n,t,o)).elementType=eC,e.expirationTime=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case eg:s=10;break e;case ev:s=9;break e;case eb:s=11;break e;case ek:s=14;break e;case ew:s=16,r=null;break e;case eS:s=22;break e}throw Error(p(130,null==e?e:typeof e,""))}return(t=sj(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=a,t}function sX(e,t,n,r){return(e=sj(7,e,r,t)).expirationTime=n,e}function sY(e,t,n){return(e=sj(6,e,null,t)).expirationTime=n,e}function s$(e,t,n){return(t=sj(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sQ(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function sJ(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function sZ(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function s0(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function s1(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function s2(e,t,n,r){var o=t.current,a=sc(),s=oQ.suspense;a=su(a,o,s);e:if(n){n=n._reactInternalFiber;t:{if(tr(n)!==n||1!==n.tag)throw Error(p(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(oe(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(p(171))}if(1===n.tag){var c=n.type;if(oe(c)){n=or(n,c,l);break e}}n=l}else n=r3;return null===t.context?t.context=n:t.pendingContext=n,(t=oG(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),oK(o,t),sd(o,a),a}function s5(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function s4(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function s3(e,t){s4(e,t),(e=e.alternate)&&s4(e,t)}function s6(e,t,n){var r=new sQ(e,t,n=null!=n&&!0===n.hydrate),o=sj(3,null,null,2===t?7:3*(1===t));r.current=o,o.stateNode=r,oW(o),e[nP]=r.current,n&&0!==t&&tN(e,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function s8(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function s9(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new s6(e,0,t?{hydrate:!0}:void 0)}function s7(e,t,n,r,o){var a=n._reactRootContainer;if(a){var s=a._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=s5(s);l.call(e)}}s2(t,s,e,o)}else{if(s=(a=n._reactRootContainer=s9(n,r))._internalRoot,"function"==typeof o){var c=o;o=function(){var e=s5(s);c.call(e)}}sb(function(){s2(t,s,e,o)})}return s5(s)}function le(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ep,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function lt(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!s8(t))throw Error(p(200));return le(e,t,null,n)}s6.prototype.render=function(e){s2(e,this._internalRoot,null,null)},s6.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;s2(null,e,null,function(){t[nP]=null})},tx=function(e){if(13===e.tag){var t=oR(sc(),150,100);sd(e,t),s3(e,t)}},tC=function(e){13===e.tag&&(sd(e,3),s3(e,3))},tk=function(e){if(13===e.tag){var t=sc();t=su(t,e,null),sd(e,t),s3(e,t)}},M=function(e,t,n){switch(t){case"input":if(eL(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=nA(r);if(!o)throw Error(p(90));eB(r),eL(r,o)}}}break;case"textarea":eG(e,n);break;case"select":null!=(t=n.value)&&ej(e,!!n.multiple,t,!1)}},V=sy,U=function(e,t,n,r,o){var a=aY;aY|=4;try{return oP(98,e.bind(null,t,n,r,o))}finally{(aY=a)===aH&&oD()}},j=function(){(aY&(1|aV|aU))===aH&&(sv(),sN())},W=function(e,t){var n=aY;aY|=2;try{return e(t)}finally{(aY=n)===aH&&oD()}};var ln={Events:[nT,nD,nA,N,D,nL,function(e){tc(e,nO)},H,z,t4,tp,sN,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;sV(u({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:es.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ts(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:nI,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ln,t.createPortal=lt,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(p(188));throw Error(p(268,Object.keys(e)))}return null===(e=ts(t))?null:e.stateNode},t.flushSync=function(e,t){if((aY&(aV|aU))!==aH)throw Error(p(187));var n=aY;aY|=1;try{return oP(99,e.bind(null,t))}finally{aY=n,oD()}},t.hydrate=function(e,t,n){if(!s8(t))throw Error(p(200));return s7(null,e,t,!0,n)},t.render=function(e,t,n){if(!s8(t))throw Error(p(200));return s7(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!s8(e))throw Error(p(40));return!!e._reactRootContainer&&(sb(function(){s7(null,null,e,!1,function(){e._reactRootContainer=null,e[nP]=null})}),!0)},t.unstable_batchedUpdates=sy,t.unstable_createPortal=function(e,t){return lt(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!s8(n))throw Error(p(200));if(null==e||void 0===e._reactInternalFiber)throw Error(p(38));return s7(e,t,n,!1,r)},t.version="16.14.0"},43144(e,t,n){"use strict";function r(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(47400)},90320(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,C=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case p:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case g:case c:return e;default:return t}}case o:return t}}}function w(e){return k(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||k(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===f},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===v},t.isMemo=function(e){return k(e)===g},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===l},t.isStrictMode=function(e){return k(e)===s},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===x||e.$$typeof===C||e.$$typeof===y)},t.typeOf=k},524(e,t,n){"use strict";e.exports=n(90320)},83857(e,t,n){"use strict";n.d(t,{Ng:()=>X,Kq:()=>h});var r=n(40887),o=n.n(r);n(39067);var a=o().createContext(null),s=function(e){e()},l=function(e){return s=e},c=function(){return s};function u(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var d={notify:function(){},get:function(){return[]}};function p(e,t){var n,r=d;function o(){s.onStateChange&&s.onStateChange()}function a(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=u())}var s={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return!!n},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=d)},getListeners:function(){return r}};return s}var f="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;let h=function e(e){var t=e.store,n=e.context,s=e.children,l=(0,r.useMemo)(function(){var e=p(t);return{store:t,subscription:e}},[t]),c=(0,r.useMemo)(function(){return t.getState()},[t]);f(function(){var e=l.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[l,c]);var u=n||a;return o().createElement(u.Provider,{value:l},s)};function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var v=n(75985),y=n.n(v),b=n(31524),x=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],C=["reactReduxForwardedRef"],k=[],w=[null,null];function S(e,t){var n=e[1];return[t.payload,n+1]}function _(e,t,n){f(function(){return e.apply(void 0,t)},n)}function E(e,t,n,r,o,a,s){e.current=r,t.current=o,n.current=!1,a.current&&(a.current=null,s())}function P(e,t,n,r,o,a,s,l,c,u){if(e){var d=!1,p=null,f=function(){if(!d){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,p=e}n||(p=null),e===a.current?s.current||c():(a.current=e,l.current=e,s.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();var h=function(){if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p};return h}}var I=function(){return[null,0]};function T(e,t){void 0===t&&(t={});var n=t,s=n.getDisplayName,l=void 0===s?function(e){return"ConnectAdvanced("+e+")"}:s,c=n.methodName,u=void 0===c?"connectAdvanced":c,d=n.renderCountProp,f=void 0===d?void 0:d,h=n.shouldHandleStateChanges,v=void 0===h||h,T=n.storeKey,D=void 0===T?"store":T,A=(n.withRef,n.forwardRef),R=void 0!==A&&A,N=n.context,B=void 0===N?a:N,M=g(n,x),F=B;return function(t){var n=t.displayName||t.name||"Component",a=l(n),s=m({},M,{getDisplayName:l,methodName:u,renderCountProp:f,shouldHandleStateChanges:v,storeKey:D,displayName:a,wrappedComponentName:n,WrappedComponent:t}),c=M.pure;function d(t){return e(t.dispatch,s)}var h=c?r.useMemo:function(e){return e()};function x(e){var n=(0,r.useMemo)(function(){var t=e.reactReduxForwardedRef,n=g(e,C);return[e.context,t,n]},[e]),a=n[0],s=n[1],l=n[2],c=(0,r.useMemo)(function(){return a&&a.Consumer&&(0,b.isContextConsumer)(o().createElement(a.Consumer,null))?a:F},[a,F]),u=(0,r.useContext)(c),f=!!e.store&&!!e.store.getState&&!!e.store.dispatch;u&&u.store;var y=f?e.store:u.store,x=(0,r.useMemo)(function(){return d(y)},[y]),T=(0,r.useMemo)(function(){if(!v)return w;var e=p(y,f?null:u.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[y,f,u]),D=T[0],A=T[1],R=(0,r.useMemo)(function(){return f?u:m({},u,{subscription:D})},[f,u,D]),N=(0,r.useReducer)(S,k,I),B=N[0][0],M=N[1];if(B&&B.error)throw B.error;var O=(0,r.useRef)(),L=(0,r.useRef)(l),H=(0,r.useRef)(),z=(0,r.useRef)(!1),V=h(function(){return H.current&&l===L.current?H.current:x(y.getState(),l)},[y,B,l]);_(E,[L,O,z,l,V,H,A]),_(P,[v,y,D,x,L,O,z,H,A,M],[y,D,x]);var U=(0,r.useMemo)(function(){return o().createElement(t,m({},V,{ref:s}))},[s,t,V]);return(0,r.useMemo)(function(){return v?o().createElement(c.Provider,{value:R},U):U},[c,U,R])}var T=c?o().memo(x):x;if(T.WrappedComponent=t,T.displayName=x.displayName=a,R){var A=o().forwardRef(function(e,t){return o().createElement(T,m({},e,{reactReduxForwardedRef:t}))});return A.displayName=a,A.WrappedComponent=t,y()(A,t)}return y()(T,t)}}function D(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function A(e,t){if(D(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!D(e[n[o]],t[n[o]]))return!1;return!0}function R(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}function N(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function B(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function M(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=B(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=B(o),o=r(t,n)),o},r}}let F=[function(e){return"function"==typeof e?M(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:N(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?N(function(t){return R(e,t)}):void 0}],O=[function(e){return"function"==typeof e?M(e,"mapStateToProps"):void 0},function(e){return e?void 0:N(function(){return{}})}];function L(e,t,n){return m({},n,e,t)}function H(e){return function(t,n){n.displayName;var r,o=n.pure,a=n.areMergedPropsEqual,s=!1;return function(t,n,l){var c=e(t,n,l);return s?o&&a(c,r)||(r=c):(s=!0,r=c),r}}}let z=[function(e){return"function"==typeof e?H(e):void 0},function(e){return e?void 0:function(){return L}}];var V=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function U(e,t,n,r){return function(o,a){return n(e(o,a),t(r,a),a)}}function j(e,t,n,r,o){var a,s,l,c,u,d=o.areStatesEqual,p=o.areOwnPropsEqual,f=o.areStatePropsEqual,h=!1;function m(o,d){return l=e(a=o,s=d),c=t(r,s),u=n(l,c,s),h=!0,u}function g(){return l=e(a,s),t.dependsOnOwnProps&&(c=t(r,s)),u=n(l,c,s)}function v(){return e.dependsOnOwnProps&&(l=e(a,s)),t.dependsOnOwnProps&&(c=t(r,s)),u=n(l,c,s)}function y(){var t=e(a,s),r=!f(t,l);return l=t,r&&(u=n(l,c,s)),u}function b(e,t){var n=!p(t,s),r=!d(e,a);return(a=e,s=t,n&&r)?g():n?v():r?y():u}return function(e,t){return h?b(e,t):m(e,t)}}function W(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,a=g(t,V),s=n(e,a),l=r(e,a),c=o(e,a);return(a.pure?j:U)(s,l,c,e,a)}var q=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function G(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function K(e,t){return e===t}let X=function(e){var t={},n=t.connectHOC,r=void 0===n?T:n,o=t.mapStateToPropsFactories,a=void 0===o?O:o,s=t.mapDispatchToPropsFactories,l=void 0===s?F:s,c=t.mergePropsFactories,u=void 0===c?z:c,d=t.selectorFactory,p=void 0===d?W:d;return function(e,t,n,o){void 0===o&&(o={});var s=o,c=s.pure,d=void 0===c||c,f=s.areStatesEqual,h=void 0===f?K:f,v=s.areOwnPropsEqual,y=void 0===v?A:v,b=s.areStatePropsEqual,x=void 0===b?A:b,C=s.areMergedPropsEqual,k=void 0===C?A:C,w=g(s,q),S=G(e,a,"mapStateToProps"),_=G(t,l,"mapDispatchToProps"),E=G(n,u,"mergeProps");return r(p,m({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:!!e,initMapStateToProps:S,initMapDispatchToProps:_,initMergeProps:E,pure:d,areStatesEqual:h,areOwnPropsEqual:y,areStatePropsEqual:x,areMergedPropsEqual:k},w))}}();l(n(2029).unstable_batchedUpdates)},84104(e,t){"use strict";var n,r=60103,o=60106,a=60107,s=60108,l=60114,c=60109,u=60110,d=60112,p=60113,f=60120,h=60115,m=60116,g=60121,v=60122,y=60117,b=60129,x=60131;if("function"==typeof Symbol&&Symbol.for){var C=Symbol.for;r=C("react.element"),o=C("react.portal"),a=C("react.fragment"),s=C("react.strict_mode"),l=C("react.profiler"),c=C("react.provider"),u=C("react.context"),d=C("react.forward_ref"),p=C("react.suspense"),f=C("react.suspense_list"),h=C("react.memo"),m=C("react.lazy"),g=C("react.block"),v=C("react.server.block"),y=C("react.fundamental"),b=C("react.debug_trace_mode"),x=C("react.legacy_hidden")}function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case l:case s:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case h:case c:return e;default:return t}}case o:return t}}}var w=c,S=r,_=d,E=a,P=m,I=h,T=o,D=l,A=s,R=p;n=u,n=w,n=S,n=_,n=E,n=P,n=I,n=T,n=D,n=A,n=R,n=function(){return!1},n=function(){return!1},t.isContextConsumer=function(e){return k(e)===u},n=function(e){return k(e)===c},n=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},n=function(e){return k(e)===d},n=function(e){return k(e)===a},n=function(e){return k(e)===m},n=function(e){return k(e)===h},n=function(e){return k(e)===o},n=function(e){return k(e)===l},n=function(e){return k(e)===s},n=function(e){return k(e)===p}},31524(e,t,n){"use strict";e.exports=n(84104)},46813(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.r(t),n.d(t,{Router:()=>ey,Redirect:()=>eP,Prompt:()=>eC,Route:()=>eB,MemoryRouter:()=>eb,useHistory:()=>eq,StaticRouter:()=>eV,matchPath:()=>eR,withRouter:()=>ej,BrowserRouter:()=>e2,Switch:()=>eU,Link:()=>te,NavLink:()=>to,generatePath:()=>eE,useParams:()=>eK,useLocation:()=>eG,HashRouter:()=>e5,useRouteMatch:()=>eX});var a=n(40887),s=n.n(a),l=n(39067),c=n.n(l);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e){return"/"===e.charAt(0)}function p(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}let f=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&d(e),s=t&&d(t),l=a||s;if(e&&d(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var c=o[o.length-1];n="."===c||".."===c||""===c}else n=!1;for(var u=0,f=o.length;f>=0;f--){var h=o[f];"."===h?p(o,f):".."===h?(p(o,f),u++):u&&(p(o,f),u--)}if(!l)for(;u--;)o.unshift("..");!l||""===o[0]||o[0]&&d(o[0])||o.unshift("");var m=o.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function h(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function m(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return m(e,t[n])});if("object"==typeof e||"object"==typeof t){var n=h(e),r=h(t);return n!==e||r!==t?m(n,r):Object.keys(Object.assign({},e,t)).every(function(n){return m(e[n],t[n])})}return!1}let g=m;var v=!0,y="Invariant failed";let b=function(e,t){if(!e){if(v)throw Error(y);throw Error(y+": "+(t||""))}};function x(e){return"/"===e.charAt(0)?e:"/"+e}function C(e){return"/"===e.charAt(0)?e.substr(1):e}function k(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}function w(e,t){return k(e,t)?e.substr(t.length):e}function S(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function _(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return -1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function E(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function P(e,t,n,r){var o;"string"==typeof e?(o=_(e)).state=t:(void 0===(o=u({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){if(e instanceof URIError)throw URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.');throw e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=f(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function I(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&g(e.state,t.state)}function T(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}var D=!!("u">typeof window&&window.document&&window.document.createElement);function A(e,t){t(window.confirm(e))}function R(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}function N(){return -1===window.navigator.userAgent.indexOf("Trident")}function B(){return -1===window.navigator.userAgent.indexOf("Firefox")}function M(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}var F="popstate",O="hashchange";function L(){try{return window.history.state||{}}catch(e){return{}}}function H(e){void 0===e&&(e={}),D||b(!1);var t=window.history,n=R(),r=!N(),o=e,a=o.forceRefresh,s=void 0!==a&&a,l=o.getUserConfirmation,c=void 0===l?A:l,d=o.keyLength,p=void 0===d?6:d,f=e.basename?S(x(e.basename)):"";function h(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return f&&(a=w(a,f)),P(a,r,n)}function m(){return Math.random().toString(36).substr(2,p)}var g=T();function v(e){u(J,e),J.length=t.length,g.notifyListeners(J.location,J.action)}function y(e){M(e)||_(h(e.state))}function C(){_(h(L()))}var k=!1;function _(e){if(k)k=!1,v();else{var t="POP";g.confirmTransitionTo(e,t,c,function(n){n?v({action:t,location:e}):I(e)})}}function I(e){var t=J.location,n=H.indexOf(t.key);-1===n&&(n=0);var r=H.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(k=!0,j(o))}var B=h(L()),H=[B.key];function z(e){return f+E(e)}function V(e,r){var o="PUSH",a=P(e,r,m(),J.location);g.confirmTransitionTo(a,o,c,function(e){if(e){var r=z(a),l=a.key,c=a.state;if(n)if(t.pushState({key:l,state:c},null,r),s)window.location.href=r;else{var u=H.indexOf(J.location.key),d=H.slice(0,u+1);d.push(a.key),H=d,v({action:o,location:a})}else window.location.href=r}})}function U(e,r){var o="REPLACE",a=P(e,r,m(),J.location);g.confirmTransitionTo(a,o,c,function(e){if(e){var r=z(a),l=a.key,c=a.state;if(n)if(t.replaceState({key:l,state:c},null,r),s)window.location.replace(r);else{var u=H.indexOf(J.location.key);-1!==u&&(H[u]=a.key),v({action:o,location:a})}else window.location.replace(r)}})}function j(e){t.go(e)}function W(){j(-1)}function q(){j(1)}var G=0;function K(e){1===(G+=e)&&1===e?(window.addEventListener(F,y),r&&window.addEventListener(O,C)):0===G&&(window.removeEventListener(F,y),r&&window.removeEventListener(O,C))}var X=!1;function Y(e){void 0===e&&(e=!1);var t=g.setPrompt(e);return X||(K(1),X=!0),function(){return X&&(X=!1,K(-1)),t()}}function Q(e){var t=g.appendListener(e);return K(1),function(){K(-1),t()}}var J={length:t.length,action:"POP",location:B,createHref:z,push:V,replace:U,go:j,goBack:W,goForward:q,block:Y,listen:Q};return J}var z="hashchange",V={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+C(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:C,decodePath:x},slash:{encodePath:x,decodePath:x}};function U(e){var t=e.indexOf("#");return -1===t?e:e.slice(0,t)}function j(){var e=window.location.href,t=e.indexOf("#");return -1===t?"":e.substring(t+1)}function W(e){window.location.hash=e}function q(e){window.location.replace(U(window.location.href)+"#"+e)}function G(e){void 0===e&&(e={}),D||b(!1);var t=window.history;B();var n=e,r=n.getUserConfirmation,o=void 0===r?A:r,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?S(x(e.basename)):"",c=V[s],d=c.encodePath,p=c.decodePath;function f(){var e=p(j());return l&&(e=w(e,l)),P(e)}var h=T();function m(e){u(ee,e),ee.length=t.length,h.notifyListeners(ee.location,ee.action)}var g=!1,v=null;function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}function C(){var e=j(),t=d(e);if(e!==t)q(t);else{var n=f(),r=ee.location;if(!g&&y(r,n)||v===E(n))return;v=null,k(n)}}function k(e){if(g)g=!1,m();else{var t="POP";h.confirmTransitionTo(e,t,o,function(n){n?m({action:t,location:e}):_(e)})}}function _(e){var t=ee.location,n=M.lastIndexOf(E(t));-1===n&&(n=0);var r=M.lastIndexOf(E(e));-1===r&&(r=0);var o=n-r;o&&(g=!0,H(o))}var I=j(),R=d(I);I!==R&&q(R);var N=f(),M=[E(N)];function F(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=U(window.location.href)),n+"#"+d(l+E(e))}function O(e,t){var n="PUSH",r=P(e,void 0,void 0,ee.location);h.confirmTransitionTo(r,n,o,function(e){if(e){var t=E(r),o=d(l+t),a=j()!==o;if(a){v=t,W(o);var s=M.lastIndexOf(E(ee.location)),c=M.slice(0,s+1);c.push(t),M=c,m({action:n,location:r})}else m()}})}function L(e,t){var n="REPLACE",r=P(e,void 0,void 0,ee.location);h.confirmTransitionTo(r,n,o,function(e){if(e){var t=E(r),o=d(l+t),a=j()!==o;a&&(v=t,q(o));var s=M.indexOf(E(ee.location));-1!==s&&(M[s]=t),m({action:n,location:r})}})}function H(e){t.go(e)}function G(){H(-1)}function K(){H(1)}var X=0;function Y(e){1===(X+=e)&&1===e?window.addEventListener(z,C):0===X&&window.removeEventListener(z,C)}var Q=!1;function J(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return Q||(Y(1),Q=!0),function(){return Q&&(Q=!1,Y(-1)),t()}}function Z(e){var t=h.appendListener(e);return Y(1),function(){Y(-1),t()}}var ee={length:t.length,action:"POP",location:N,createHref:F,push:O,replace:L,go:H,goBack:G,goForward:K,block:J,listen:Z};return ee}function K(e,t,n){return Math.min(Math.max(e,t),n)}function X(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,d=T();function p(e){u(_,e),_.length=_.entries.length,d.notifyListeners(_.location,_.action)}function f(){return Math.random().toString(36).substr(2,c)}var h=K(s,0,o.length-1),m=o.map(function(e){return"string"==typeof e?P(e,void 0,f()):P(e,void 0,e.key||f())}),g=E;function v(e,t){var r="PUSH",o=P(e,t,f(),_.location);d.confirmTransitionTo(o,r,n,function(e){if(e){var t=_.index,n=t+1,a=_.entries.slice(0);a.length>n?a.splice(n,a.length-n,o):a.push(o),p({action:r,location:o,index:n,entries:a})}})}function y(e,t){var r="REPLACE",o=P(e,t,f(),_.location);d.confirmTransitionTo(o,r,n,function(e){e&&(_.entries[_.index]=o,p({action:r,location:o}))})}function b(e){var t=K(_.index+e,0,_.entries.length-1),r="POP",o=_.entries[t];d.confirmTransitionTo(o,r,n,function(e){e?p({action:r,location:o,index:t}):p()})}function x(){b(-1)}function C(){b(1)}function k(e){var t=_.index+e;return t>=0&&t<_.entries.length}function w(e){return void 0===e&&(e=!1),d.setPrompt(e)}function S(e){return d.appendListener(e)}var _={length:m.length,action:"POP",location:m[h],index:h,entries:m,createHref:g,push:v,replace:y,go:b,goBack:x,goForward:C,canGo:k,block:w,listen:S};return _}function Y(e,t){return(Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Q(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Y(e,t)}var J=0x3fffffff,Z="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==n.g?n.g:{};function ee(){var e="__global_unique_id__";return Z[e]=(Z[e]||0)+1}function et(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function en(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter(function(t){return t!==e})},get:function(){return e},set:function(n,r){e=n,t.forEach(function(t){return t(e,r)})}}}function er(e){return Array.isArray(e)?e[0]:e}function eo(e,t){var n,r,o="__create-react-context-"+ee()+"__",s=function(e){function n(){var t;return t=e.apply(this,arguments)||this,t.emitter=en(t.props.value),t}Q(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;et(r,o)?n=0:0!=(n=("function"==typeof t?t(r,o):J)|0)&&this.emitter.set(e.value,n)}},r.render=function(){return this.props.children},n}(a.Component);(n={})[o]=c().object.isRequired,s.childContextTypes=n;var l=function(t){function n(){var e;return e=t.apply(this,arguments)||this,e.state={value:e.getValue()},e.onUpdate=function(t,n){(e.observedBits&n)!=0&&e.setState({value:e.getValue()})},e}Q(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?J:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?J:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return er(this.props.children)(this.state.value)},n}(a.Component);return(r={})[o]=c().object,l.contextTypes=r,{Provider:s,Consumer:l}}let ei=s().createContext||eo;var ea=!0,es="Invariant failed";let el=function(e,t){if(!e){if(ea)throw Error(es);throw Error(es+": "+(t||""))}};function ec(){return(ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var eu=n(82402),ed=n.n(eu);function ep(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n(524);var ef=n(75985),eh=n.n(ef),em=function(e){var t=ei();return t.displayName=e,t},eg=em("Router-History"),ev=em("Router"),ey=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e})),n}o(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return s().createElement(ev.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},s().createElement(eg.Provider,{children:this.props.children||null,value:this.props.history}))},t}(s().Component),eb=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=X(t.props),t}return o(t,e),t.prototype.render=function(){return s().createElement(ey,{history:this.history,children:this.props.children})},t}(s().Component),ex=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(s().Component);function eC(e){var t=e.message,n=e.when,r=void 0===n||n;return s().createElement(ev.Consumer,null,function(e){if(e||el(!1),!r||e.staticContext)return null;var n=e.history.block;return s().createElement(ex,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})})}var ek={},ew=1e4,eS=0;function e_(e){if(ek[e])return ek[e];var t=ed().compile(e);return eS<ew&&(ek[e]=t,eS++),t}function eE(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:e_(e)(t,{pretty:!0})}function eP(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return s().createElement(ev.Consumer,null,function(e){e||el(!1);var r=e.history,a=e.staticContext,l=o?r.push:r.replace,c=P(t?"string"==typeof n?eE(n,t.params):ec({},n,{pathname:eE(n.pathname,t.params)}):n);return a?(l(c),null):s().createElement(ex,{onMount:function(){l(c)},onUpdate:function(e,t){var n=P(t.to);I(n,ec({},c,{key:n.key}))||l(c)},to:n})})}var eI={},eT=1e4,eD=0;function eA(e,t){var n=""+t.end+t.strict+t.sensitive,r=eI[n]||(eI[n]={});if(r[e])return r[e];var o=[],a={regexp:ed()(e,o,t),keys:o};return eD<eT&&(r[e]=a,eD++),a}function eR(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,a=void 0!==o&&o,s=n.strict,l=void 0!==s&&s,c=n.sensitive,u=void 0!==c&&c;return[].concat(r).reduce(function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=eA(n,{end:a,strict:l,sensitive:u}),o=r.regexp,s=r.keys,c=o.exec(e);if(!c)return null;var d=c[0],p=c.slice(1),f=e===d;return a&&!f?null:{path:n,url:"/"===n&&""===d?"/":d,isExact:f,params:s.reduce(function(e,t,n){return e[t.name]=p[n],e},{})}},null)}function eN(e){return 0===s().Children.count(e)}var eB=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return s().createElement(ev.Consumer,null,function(t){t||el(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?eR(n.pathname,e.props):t.match,o=ec({},t,{location:n,match:r}),a=e.props,l=a.children,c=a.component,u=a.render;return Array.isArray(l)&&eN(l)&&(l=null),s().createElement(ev.Provider,{value:o},o.match?l?"function"==typeof l?l(o):l:c?s().createElement(c,o):u?u(o):null:"function"==typeof l?l(o):null)})},t}(s().Component);function eM(e){return"/"===e.charAt(0)?e:"/"+e}function eF(e,t){return e?ec({},t,{pathname:eM(e)+t.pathname}):t}function eO(e,t){if(!e)return t;var n=eM(e);return 0!==t.pathname.indexOf(n)?t:ec({},t,{pathname:t.pathname.substr(n.length)})}function eL(e){return"string"==typeof e?e:E(e)}function eH(e){return function(){el(!1)}}function ez(){}var eV=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return ez},t.handleBlock=function(){return ez},t}o(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,o=void 0===r?"":r,a=n.context,s=void 0===a?{}:a;s.action=t,s.location=eF(o,P(e)),s.url=eL(s.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,o=void 0===r?{}:r,a=e.location,l=void 0===a?"/":a,c=ep(e,["basename","context","location"]),u={createHref:function(e){return eM(n+eL(e))},action:"POP",location:eO(n,P(l)),push:this.handlePush,replace:this.handleReplace,go:eH("go"),goBack:eH("goBack"),goForward:eH("goForward"),listen:this.handleListen,block:this.handleBlock};return s().createElement(ey,ec({},c,{history:u,staticContext:o}))},t}(s().Component),eU=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this;return s().createElement(ev.Consumer,null,function(t){t||el(!1);var n,r,o=e.props.location||t.location;return s().Children.forEach(e.props.children,function(e){if(null==r&&s().isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?eR(o.pathname,ec({},e.props,{path:a})):t.match}}),r?s().cloneElement(n,{location:o,computedMatch:r}):null})},t}(s().Component);function ej(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=ep(t,["wrappedComponentRef"]);return s().createElement(ev.Consumer,null,function(t){return t||el(!1),s().createElement(e,ec({},r,t,{ref:n}))})};return n.displayName=t,n.WrappedComponent=e,eh()(n,e)}var eW=s().useContext;function eq(){return eW(eg)}function eG(){return eW(ev).location}function eK(){var e=eW(ev).match;return e?e.params:{}}function eX(e){var t=eG(),n=eW(ev).match;return e?eR(t.pathname,e):n}function eY(e,t){return(eY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function e$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,eY(e,t)}function eQ(){return(eQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function eJ(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var eZ=!0,e0="Invariant failed";let e1=function(e,t){if(!e){if(eZ)throw Error(e0);throw Error(e0+": "+(t||""))}};var e2=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=H(t.props),t}return e$(t,e),t.prototype.render=function(){return s().createElement(ey,{history:this.history,children:this.props.children})},t}(s().Component),e5=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=G(t.props),t}return e$(t,e),t.prototype.render=function(){return s().createElement(ey,{history:this.history,children:this.props.children})},t}(s().Component),e4=function(e,t){return"function"==typeof e?e(t):e},e3=function(e,t){return"string"==typeof e?P(e,null,null,t):e},e6=function(e){return e},e8=s().forwardRef;function e9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}void 0===e8&&(e8=e6);var e7=e8(function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=eJ(e,["innerRef","navigate","onClick"]),l=a.target,c=eQ({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||e9(e)||(e.preventDefault(),r())}});return e6!==e8?c.ref=t||n:c.ref=n,s().createElement("a",c)}),te=e8(function(e,t){var n=e.component,r=void 0===n?e7:n,o=e.replace,a=e.to,l=e.innerRef,c=eJ(e,["component","replace","to","innerRef"]);return s().createElement(ev.Consumer,null,function(e){e||e1(!1);var n=e.history,u=e3(e4(a,e.location),e.location),d=u?n.createHref(u):"",p=eQ({},c,{href:d,navigate:function(){var t=e4(a,e.location),r=E(e.location)===E(e3(t));(o||r?n.replace:n.push)(t)}});return e6!==e8?p.ref=t||l:p.innerRef=l,s().createElement(r,p)})}),tt=function(e){return e},tn=s().forwardRef;function tr(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ")}void 0===tn&&(tn=tt);var to=tn(function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,a=void 0===o?"active":o,l=e.activeStyle,c=e.className,u=e.exact,d=e.isActive,p=e.location,f=e.sensitive,h=e.strict,m=e.style,g=e.to,v=e.innerRef,y=eJ(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return s().createElement(ev.Consumer,null,function(e){e||e1(!1);var n=p||e.location,o=e3(e4(g,n),n),b=o.pathname,x=b&&b.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),C=x?eR(n.pathname,{path:x,exact:u,sensitive:f,strict:h}):null,k=!!(d?d(C,n):C),w="function"==typeof c?c(k):c,S="function"==typeof m?m(k):m;k&&(w=tr(w,a),S=eQ({},S,l));var _=eQ({"aria-current":k&&r||null,className:w,style:S,to:o},y);return tt!==tn?_.ref=t||v:_.innerRef=v,s().createElement(te,_)})})},93150(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},82402(e,t,n){var r=n(93150);e.exports=x,e.exports.parse=a,e.exports.compile=l,e.exports.tokensToFunction=d,e.exports.tokensToRegExp=b;var o=RegExp("(\\\\.)|([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))","g");function a(e,t){for(var n,r=[],a=0,l=0,c="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],h=n.index;if(c+=e.slice(l,h),l=h+d.length,p){c+=p[1];continue}var m=e[l],g=n[2],v=n[3],y=n[4],b=n[5],x=n[6],C=n[7];c&&(r.push(c),c="");var k=null!=g&&null!=m&&m!==g,w="+"===x||"*"===x,S="?"===x||"*"===x,_=g||u,E=y||b,P=g||("string"==typeof r[r.length-1]?r[r.length-1]:"");r.push({name:v||a++,prefix:g||"",delimiter:_,optional:S,repeat:w,partial:k,asterisk:!!C,pattern:E?f(E):C?".*":s(_,P)})}return l<e.length&&(c+=e.substr(l)),c&&r.push(c),r}function s(e,t){return!t||t.indexOf(e)>-1?"[^"+p(e)+"]+?":p(t)+"|(?:(?!"+p(t)+")[^"+p(e)+"])+?"}function l(e,t){return d(a(e,t),t)}function c(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function u(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function d(e,t){for(var n=Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=RegExp("^(?:"+e[o].pattern+")$",m(t)));return function(t,o){for(var a="",s=t||{},l=(o||{}).pretty?c:encodeURIComponent,d=0;d<e.length;d++){var p,f=e[d];if("string"==typeof f){a+=f;continue}var h=s[f.name];if(null==h)if(f.optional){f.partial&&(a+=f.prefix);continue}else throw TypeError('Expected "'+f.name+'" to be defined');if(r(h)){if(!f.repeat)throw TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length)if(f.optional)continue;else throw TypeError('Expected "'+f.name+'" to not be empty');for(var m=0;m<h.length;m++){if(p=l(h[m]),!n[d].test(p))throw TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(p)+"`");a+=(0===m?f.prefix:f.delimiter)+p}continue}if(p=f.asterisk?u(h):l(h),!n[d].test(p))throw TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+p+'"');a+=f.prefix+p}return a}}function p(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function f(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function h(e,t){return e.keys=t,e}function m(e){return e&&e.sensitive?"":"i"}function g(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return h(e,t)}function v(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(x(e[o],t,n).source);return h(RegExp("(?:"+r.join("|")+")",m(n)),t)}function y(e,t,n){return b(a(e,n),t,n)}function b(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,a=!1!==n.end,s="",l=0;l<e.length;l++){var c=e[l];if("string"==typeof c)s+=p(c);else{var u=p(c.prefix),d="(?:"+c.pattern+")";t.push(c),c.repeat&&(d+="(?:"+u+d+")*"),s+=d=c.optional?c.partial?u+"("+d+")?":"(?:"+u+"("+d+"))?":u+"("+d+")"}}var f=p(n.delimiter||"/"),g=s.slice(-f.length)===f;return o||(s=(g?s.slice(0,-f.length):s)+"(?:"+f+"(?=$))?"),a?s+="$":s+=o&&g?"":"(?="+f+"|$)",h(RegExp("^"+s,m(n)),t)}function x(e,t,n){return(r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp)?g(e,t):r(e)?v(e,t,n):y(e,t,n)}},73335(e,t,n){"use strict";var r=n(40887),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,d=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(d=t.ref),t)l.call(t,r)&&!c.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:d,props:a,_owner:s.current}}t.jsx=u,t.jsxs=u},14304(e,t,n){"use strict";var r=n(61513),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,s=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,d=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x={};function C(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||b}function k(){}function w(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||b}C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=C.prototype;var S=w.prototype=new k;S.constructor=w,r(S,C.prototype),S.isPureReactComponent=!0;var _={current:null},E=Object.prototype.hasOwnProperty,P={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,n){var r,o={},s=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(s=""+t.key),t)E.call(t,r)&&!P.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var u=Array(c),d=0;d<c;d++)u[d]=arguments[d+2];o.children=u}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:a,type:e,key:s,ref:l,props:o,_owner:_.current}}function T(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}function A(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}var R=/\/+/g,N=[];function B(e,t,n,r){if(N.length){var o=N.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function M(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>N.length&&N.push(e)}function F(e,t,n,r){var o=typeof e;("undefined"===o||"boolean"===o)&&(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case s:l=!0}}if(l)return n(r,e,""===t?"."+L(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=t+L(o=e[c],c);l+=F(o,u,n,r)}else if("function"==typeof(u=null===e||"object"!=typeof e?null:"function"==typeof(u=v&&e[v]||e["@@iterator"])?u:null))for(e=u.call(e),c=0;!(o=e.next()).done;)u=t+L(o=o.value,c++),l+=F(o,u,n,r);else if("object"===o)throw Error(y(31,"[object Object]"==(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return l}function O(e,t,n){return null==e?0:F(e,"",t,n)}function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?A(e.key):t.toString(36)}function H(e,t){e.func.call(e.context,t,e.count++)}function z(e,t,n){var r=e.result,o=e.keyPrefix;Array.isArray(e=e.func.call(e.context,t,e.count++))?V(e,r,n,function(e){return e}):null!=e&&(D(e)&&(e=T(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(R,"$&/")+"/")+n)),r.push(e))}function V(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(R,"$&/")+"/"),O(e,z,t=B(t,a,r,o)),M(t)}var U={current:null};function j(){var e=U.current;if(null===e)throw Error(y(321));return e}var W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return V(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;O(e,H,t=B(null,null,t,n)),M(t)},count:function(e){return O(e,function(){return null},null)},toArray:function(e){var t=[];return V(e,t,null,function(e){return e}),t},only:function(e){if(!D(e))throw Error(y(143));return e}},t.Component=C,t.Fragment=l,t.Profiler=u,t.PureComponent=w,t.StrictMode=c,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,t.cloneElement=function(e,t,n){if(null==e)throw Error(y(267,e));var o=r({},e.props),s=e.key,l=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,c=_.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(d in t)E.call(t,d)&&!P.hasOwnProperty(d)&&(o[d]=void 0===t[d]&&void 0!==u?u[d]:t[d])}var d=arguments.length-2;if(1===d)o.children=n;else if(1<d){u=Array(d);for(var p=0;p<d;p++)u[p]=arguments[p+2];o.children=u}return{$$typeof:a,type:e.type,key:s,ref:l,props:o,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:d,_context:e},e.Consumer=e},t.createElement=I,t.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=D,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return j().useCallback(e,t)},t.useContext=function(e,t){return j().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return j().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return j().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return j().useLayoutEffect(e,t)},t.useMemo=function(e,t){return j().useMemo(e,t)},t.useReducer=function(e,t,n){return j().useReducer(e,t,n)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().useState(e)},t.version="16.14.0"},14041(e,t,n){"use strict";e.exports=n(14304)},31085(e,t,n){"use strict";e.exports=n(73335)},82419(e,t,n){"use strict";function r(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.d(t,{HY:()=>d,Zz:()=>p,y$:()=>c});var o=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}(),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function c(e,t,n){if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error(r(1));return n(c)(e,t)}if("function"!=typeof e)throw Error(r(2));var a,u=e,d=t,p=[],f=p,h=!1;function m(){f===p&&(f=p.slice())}function g(){if(h)throw Error(r(3));return d}function v(e){if("function"!=typeof e)throw Error(r(4));if(h)throw Error(r(5));var t=!0;return m(),f.push(e),function(){if(t){if(h)throw Error(r(6));t=!1,m();var n=f.indexOf(e);f.splice(n,1),p=null}}}function y(e){if(!l(e))throw Error(r(7));if(void 0===e.type)throw Error(r(8));if(h)throw Error(r(9));try{h=!0,d=u(d,e)}finally{h=!1}for(var t=p=f,n=0;n<t.length;n++)(0,t[n])();return e}function b(e){if("function"!=typeof e)throw Error(r(10));u=e,y({type:s.REPLACE})}function x(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(r(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[o]=function(){return this},e}return y({type:s.INIT}),(a={dispatch:y,subscribe:v,getState:g,replaceReducer:b})[o]=x,a}function u(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw Error(r(12));if(void 0===n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw Error(r(13))})}function d(e){for(var t,n=Object.keys(e),o={},a=0;a<n.length;a++){var s=n[a];"function"==typeof e[s]&&(o[s]=e[s])}var l=Object.keys(o);try{u(o)}catch(e){t=e}return function(e,n){if(void 0===e&&(e={}),t)throw t;for(var a=!1,s={},c=0;c<l.length;c++){var u=l[c],d=o[u],p=e[u],f=d(p,n);if(void 0===f)throw n&&n.type,Error(r(14));s[u]=f,a=a||f!==p}return(a=a||l.length!==Object.keys(e).length)?s:e}}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}},68989(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=Object.create((t&&t.prototype instanceof v?t:v).prototype);return o._invoke=E(e,n,new D(r||[])),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function b(){}var x={};c(x,a,function(){return this});var C=Object.getPrototypeOf,k=C&&C(C(A([])));k&&k!==n&&r.call(k,a)&&(x=k);var w=b.prototype=v.prototype=Object.create(x);function S(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function _(e,t){var n;function o(n,a,s,l){var c=d(e[n],e,a);if("throw"===c.type)l(c.arg);else{var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then(function(e){o("next",e,s,l)},function(e){o("throw",e,s,l)}):t.resolve(p).then(function(e){u.value=e,s(u)},function(e){return o("throw",e,s,l)})}}function a(e,r){function a(){return new t(function(t,n){o(e,r,t,n)})}return n=n?n.then(a,a):a()}this._invoke=a}function E(e,t,n){var r=p;return function(o,a){if(r===h)throw Error("Generator is already running");if(r===m){if("throw"===o)throw a;return R()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=P(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=d(e,t,n);if("normal"===c.type){if(r=n.done?m:f,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=m,n.method="throw",n.arg=c.arg)}}}function P(e,n){var r=e.iterator[n.method];if(t===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method))return g;n.method="throw",n.arg=TypeError("The iterator does not provide a 'throw' method")}return g}var o=d(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function A(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,s=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:R}}function R(){return{value:t,done:!0}}return y.prototype=b,c(w,"constructor",b),c(b,"constructor",y),y.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},S(_.prototype),c(_.prototype,s,function(){return this}),e.AsyncIterator=_,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var s=new _(u(t,n,r,o),a);return e.isGeneratorFunction(n)?s:s.next().then(function(e){return e.done?e.value:s.next()})},S(w),c(w,l,"Generator"),c(w,a,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a],l=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),u=r.call(s,"finallyLoc");if(c&&u){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);else if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else if(u){if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else throw Error("try statement without catch or finally")}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return(s.type=e,s.arg=t,a)?(this.method="next",this.next=a.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},96991(e,t){"use strict";function n(e,t){return e===t}function r(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=null,a=null;return function(){return r(t,o,arguments)||(a=e.apply(null,arguments)),o=arguments,a}}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e}))throw Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+t.map(function(e){return typeof e}).join(", ")+"]");return t}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),s=0;s<t;s++)r[s]=arguments[s];var l=0,c=r.pop(),u=a(r),d=e.apply(void 0,[function(){return l++,c.apply(null,arguments)}].concat(n)),p=o(function(){for(var e=[],t=u.length,n=0;n<t;n++)e.push(u[n].apply(null,arguments));return d.apply(null,e)});return p.resultFunc=c,p.recomputations=function(){return l},p.resetRecomputations=function(){return l=0},p}}l=!0,l=o,l=s;var l=u,c=t.createSelector=s(o);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if("object"!=typeof e)throw Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t,r){return e[n[r]]=t,e},{})})}},72568(e,t){"use strict";if("u"<typeof window||"function"!=typeof MessageChannel){var n,r,o,a,s,l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(u,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,f=window.Date,h=window.setTimeout,m=window.clearTimeout;if("u">typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var v=f.now();t.unstable_now=function(){return f.now()-v}}var y=!1,b=null,x=-1,C=5,k=0;a=function(){return t.unstable_now()>=k},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):C=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,S=w.port2;w.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();k=e+C;try{b(!0,e)?S.postMessage(null):(y=!1,b=null)}catch(e){throw S.postMessage(null),e}}else y=!1},n=function(e){b=e,y||(y=!0,S.postMessage(null))},r=function(e,n){x=h(function(){e(t.unstable_now())},n)},o=function(){m(x),x=-1}}function _(e,t){var n=e.length;for(e.push(t);;){var r=n-1>>>1,o=e[r];if(void 0!==o&&0<I(o,t))e[r]=t,e[n]=o,n=r;else break}}function E(e){return void 0===(e=e[0])?null:e}function P(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,s=e[a],l=a+1,c=e[l];if(void 0!==s&&0>I(s,n))void 0!==c&&0>I(c,s)?(e[r]=c,e[l]=n,r=l):(e[r]=s,e[a]=n,r=a);else if(void 0!==c&&0>I(c,n))e[r]=c,e[l]=n,r=l;else break}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],D=[],A=1,R=null,N=3,B=!1,M=!1,F=!1;function O(e){for(var t=E(D);null!==t;){if(null===t.callback)P(D);else if(t.startTime<=e)P(D),t.sortIndex=t.expirationTime,_(T,t);else break;t=E(D)}}function L(e){if(F=!1,O(e),!M)if(null!==E(T))M=!0,n(H);else{var t=E(D);null!==t&&r(L,t.startTime-e)}}function H(e,n){M=!1,F&&(F=!1,o()),B=!0;var s=N;try{for(O(n),R=E(T);null!==R&&(!(R.expirationTime>n)||e&&!a());){var l=R.callback;if(null!==l){R.callback=null,N=R.priorityLevel;var c=l(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?R.callback=c:R===E(T)&&P(T),O(n)}else P(T);R=E(T)}if(null!==R)var u=!0;else{var d=E(D);null!==d&&r(L,d.startTime-n),u=!1}return u}finally{R=null,N=s,B=!1}}function z(e){switch(e){case 1:return -1;case 2:return 250;case 5:return 0x3fffffff;case 4:return 1e4;default:return 5e3}}var V=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||B||(M=!0,n(H))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return E(T)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,a,s){var l=t.unstable_now();if("object"==typeof s&&null!==s){var c=s.delay;c="number"==typeof c&&0<c?l+c:l,s="number"==typeof s.timeout?s.timeout:z(e)}else s=z(e),c=l;return s=c+s,e={id:A++,callback:a,priorityLevel:e,startTime:c,expirationTime:s,sortIndex:-1},c>l?(e.sortIndex=c,_(D,e),null===E(T)&&e===E(D)&&(F?o():F=!0,r(L,c-l))):(e.sortIndex=s,_(T,e),M||B||(M=!0,n(H))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();O(e);var n=E(T);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},97967(e,t,n){"use strict";e.exports=n(72568)},28588(e,t,n){"use strict";let r;n.d(t,{$d:()=>nA,Az:()=>nN,CP:()=>T,GD:()=>H,K9:()=>R,LF:()=>N,S:()=>nR,U6:()=>e4,VB:()=>eo,_A:()=>nD,gm:()=>ei,h7:()=>a,hC:()=>nM,iA:()=>D,mz:()=>nB,uH:()=>A});var o=n(51022);let a="data-tabster",s="data-tabster-dummy",l="a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), *[tabindex], *[contenteditable], details > summary, audio[controls], video[controls]",c=1,u=2,d=3,p=0,f=1,h=2,m=0,g=1,v=2,y=3,b=0,x=1,C=2,k=3,w=4,S=0,_=1,E=0,P=1,I=2,T={Source:0,Target:1},D={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},A={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},R={Unlimited:0,Limited:1,LimitedTrapFocus:2},N={Enter:1,Escape:2},B=2;function M(e,t){var n;return null==(n=e.storageEntry(t))?void 0:n.tabster}function F(e,t,n){var r,o;let s,l=n||e._noop?void 0:t.getAttribute(a),c=e.storageEntry(t);if(l)if(l===(null==(r=null==c?void 0:c.attr)?void 0:r.string))return;else try{let e=JSON.parse(l);if("object"!=typeof e)throw Error(`Value is not a JSON object, got '${l}'.`);s={string:l,object:e}}catch(e){}else if(!c)return;c||(c=e.storageEntry(t,!0)),c.tabster||(c.tabster={});let u=c.tabster||{},d=(null==(o=c.attr)?void 0:o.object)||{},p=(null==s?void 0:s.object)||{};for(let n of Object.keys(d))if(!p[n]){if("root"===n){let t=u[n];t&&e.root.onRoot(t,!0)}switch(n){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":let r=u[n];r&&(r.dispose(),delete u[n]);break;case"observed":delete u[n],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete u[n]}}for(let n of Object.keys(p)){let r=p.sys;switch(n){case"deloser":u.deloser?u.deloser.setProps(p.deloser):e.deloser&&(u.deloser=e.deloser.createDeloser(t,p.deloser));break;case"root":u.root?u.root.setProps(p.root):u.root=e.root.createRoot(t,p.root,r),e.root.onRoot(u.root);break;case"modalizer":u.modalizer?u.modalizer.setProps(p.modalizer):e.modalizer&&(u.modalizer=e.modalizer.createModalizer(t,p.modalizer,r));break;case"restorer":u.restorer?u.restorer.setProps(p.restorer):e.restorer&&p.restorer&&(u.restorer=e.restorer.createRestorer(t,p.restorer));break;case"focusable":u.focusable=p.focusable;break;case"groupper":u.groupper?u.groupper.setProps(p.groupper):e.groupper&&(u.groupper=e.groupper.createGroupper(t,p.groupper,r));break;case"mover":u.mover?u.mover.setProps(p.mover):e.mover&&(u.mover=e.mover.createMover(t,p.mover,r));break;case"observed":e.observedElement&&(u.observed=p.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":u.uncontrolled=p.uncontrolled;break;case"outline":e.outline&&(u.outline=p.outline);break;case"sys":u.sys=p.sys;break;default:console.error(`Unknown key '${n}' in data-tabster attribute value.`)}}s?c.attr=s:(0===Object.keys(u).length&&(delete c.tabster,delete c.attr),e.storageEntry(t,!1))}let O="tabster:focusin",L="tabster:focusout",H="tabster:movefocus",z="tabster:deloser:focus-lost",V="tabster:deloser:restore-focus",U="tabster:modalizer:active",j="tabster:modalizer:inactive",W="tabster:mover:state",q="tabster:mover:movefocus",G="tabster:mover:memorized-element",K="tabster:groupper:movefocus",X="tabster:restorer:restore-focus",Y="tabster:root:focus",Q="tabster:root:blur",J="u">typeof CustomEvent?CustomEvent:function(){};class Z extends J{constructor(e,t){super(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t}),this.details=t}}class ee extends Z{constructor(e){super(O,e)}}class et extends Z{constructor(e){super(L,e)}}class en extends Z{constructor(e){super(H,e)}}class er extends Z{constructor(e){super(W,e)}}class eo extends Z{constructor(e){super(q,e)}}class ei extends Z{constructor(e){super(K,e)}}class ea extends Z{constructor(e){super(U,e)}}class es extends Z{constructor(e){super(j,e)}}class el extends Z{constructor(e){super(z,e)}}class ec extends Z{constructor(){super(X)}}class eu extends Z{constructor(e){super(Y,e)}}class ed extends Z{constructor(e){super(Q,e)}}let ep={createMutationObserver:e=>new MutationObserver(e),createTreeWalker:(e,t,n,r)=>e.createTreeWalker(t,n,r),getParentNode:e=>e?e.parentNode:null,getParentElement:e=>e?e.parentElement:null,nodeContains:(e,t)=>!!(t&&(null==e?void 0:e.contains(t))),getActiveElement:e=>e.activeElement,querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),getElementById:(e,t)=>e.getElementById(t),getFirstChild:e=>(null==e?void 0:e.firstChild)||null,getLastChild:e=>(null==e?void 0:e.lastChild)||null,getNextSibling:e=>(null==e?void 0:e.nextSibling)||null,getPreviousSibling:e=>(null==e?void 0:e.previousSibling)||null,getFirstElementChild:e=>(null==e?void 0:e.firstElementChild)||null,getLastElementChild:e=>(null==e?void 0:e.lastElementChild)||null,getNextElementSibling:e=>(null==e?void 0:e.nextElementSibling)||null,getPreviousElementSibling:e=>(null==e?void 0:e.previousElementSibling)||null,appendChild:(e,t)=>e.appendChild(t),insertBefore:(e,t,n)=>e.insertBefore(t,n),getSelection:e=>{var t;return(null==(t=e.ownerDocument)?void 0:t.getSelection())||null},getElementsByName:(e,t)=>e.ownerDocument.getElementsByName(t)};function ef(e){for(let t of Object.keys(e))ep[t]=e[t]}let eh="u">typeof DOMRect?DOMRect:class{constructor(e,t,n,r){this.left=e||0,this.top=t||0,this.right=(e||0)+(n||0),this.bottom=(t||0)+(r||0)}},em=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),r=!1}catch(e){r=!0}let eg=100;function ev(e){let t=e(),n=t.__tabsterInstanceContext;return n||(n={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=n),n}function ey(e){let t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function eb(e){let t=e.__tabsterInstanceContext;return new((null==t?void 0:t.basics.WeakMap)||WeakMap)}function ex(e){return!!e.querySelector(l)}class eC{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,t){return!e._target||!(!t&&eO(e._target.ownerDocument,e._target))&&(delete e._target,!0)}}class ek{constructor(e,t,n){let r;const o=ev(e);o.WeakRef?r=new o.WeakRef(t):(r=new eC(t),o.fakeWeakRefs.push(r)),this._ref=r,this._data=n}get(){let e,t=this._ref;return t&&((e=t.deref())||delete this._ref),e}getData(){return this._data}}function ew(e,t){let n=ev(e);n.fakeWeakRefs=n.fakeWeakRefs.filter(e=>!eC.cleanup(e,t))}function eS(e){let t=ev(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=ez(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,ew(e),eS(e)},12e4))}function e_(e){let t=ev(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function eE(e,t,n){if(t.nodeType!==Node.ELEMENT_NODE)return;let o=r?n:{acceptNode:n};return ep.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,o,!1)}function eP(e,t){let n=t.__tabsterCacheId,r=ev(e),o=n?r.containerBoundingRectCache[n]:void 0;if(o)return o.rect;let a=t.ownerDocument&&t.ownerDocument.documentElement;if(!a)return new eh;let s=0,l=0,c=a.clientWidth,u=a.clientHeight;if(t!==a){let e=t.getBoundingClientRect();s=Math.max(s,e.left),l=Math.max(l,e.top),c=Math.min(c,e.right),u=Math.min(u,e.bottom)}let d=new eh(s<c?s:-1,l<u?l:-1,s<c?c-s:0,l<u?u-l:0);return n||(t.__tabsterCacheId=n="r-"+ ++r.lastContainerBoundingRectCacheId),r.containerBoundingRectCache[n]={rect:d,element:t},r.containerBoundingRectCacheTimer||(r.containerBoundingRectCacheTimer=window.setTimeout(()=>{for(let e of(r.containerBoundingRectCacheTimer=void 0,Object.keys(r.containerBoundingRectCache)))delete r.containerBoundingRectCache[e].element.__tabsterCacheId;r.containerBoundingRectCache={}},50)),d}function eI(e,t,n){let r=eD(t);if(!r)return!1;let o=eP(e,r),a=t.getBoundingClientRect(),s=a.height*(1-n),l=Math.max(0,o.top-a.top)+Math.max(0,a.bottom-o.bottom);return 0===l||l<=s}function eT(e,t,n){let r=eD(t);if(r){let o=eP(e,r),a=t.getBoundingClientRect();n?r.scrollTop+=a.top-o.top:r.scrollTop+=a.bottom-o.bottom}}function eD(e){let t=e.ownerDocument;if(t){for(let t=ep.getParentElement(e);t;t=ep.getParentElement(t))if(t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight)return t;return t.documentElement}return null}function eA(e){e.__shouldIgnoreFocus=!0}function eR(e){return!!e.__shouldIgnoreFocus}function eN(e){let t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let e=0;e<t.length;e++)t[e]=0xffffffff*Math.random();let n=[];for(let e=0;e<t.length;e++)n.push(t[e].toString(36));return n.push("|"),n.push((++em).toString(36)),n.push("|"),n.push(Date.now().toString(36)),n.join("")}function eB(e,t){let n=ev(e),r=t.__tabsterElementUID;return r||(r=t.__tabsterElementUID=eN(e())),!n.elementByUId[r]&&eO(t.ownerDocument,t)&&(n.elementByUId[r]=new ek(e,t)),r}function eM(e){let t=e.__tabsterCrossOriginWindowUID;return t||(t=e.__tabsterCrossOriginWindowUID=eN(e)),t}function eF(e,t){let n=ev(e);for(let e of Object.keys(n.elementByUId)){let r=n.elementByUId[e],o=r&&r.get();(!o||!t||ep.nodeContains(t,o))&&delete n.elementByUId[e]}}function eO(e,t){return ep.nodeContains(null==e?void 0:e.body,t)}function eL(e,t){let n=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return n&&n.call(e,t)}function eH(e){let t=ev(e);if(t.basics.Promise)return t.basics.Promise;throw Error("No Promise defined.")}function ez(e){return e.basics.WeakRef}let eV=0;class eU{constructor(e,t,n){const r=e.getWindow;this._tabster=e,this._element=new ek(r,t),this._props={...n},this.id="i"+ ++eV}getElement(){return this._element.get()}getProps(){return this._props}setProps(e){this._props={...e}}}class ej{constructor(e,t,n,r,a){var l;this._focusIn=e=>{if(this._fixedTarget){let e=this._fixedTarget.get();e&&(0,o.kG)(e);return}let t=this.input;if(this.onFocusIn&&t){let n=e.relatedTarget;this.onFocusIn(this,this._isBackward(!0,t,n),n)}},this._focusOut=e=>{if(this._fixedTarget)return;this.useDefaultAction=!1;let t=this.input;if(this.onFocusOut&&t){let n=e.relatedTarget;this.onFocusOut(this,this._isBackward(!1,t,n),n)}};const c=e(),u=c.document.createElement("i");u.tabIndex=0,u.setAttribute("role","none"),u.setAttribute(s,""),u.setAttribute("aria-hidden","true");const d=u.style;d.position="fixed",d.width=d.height="1px",d.opacity="0.001",d.zIndex="-1",d.setProperty("content-visibility","hidden"),eA(u),this.input=u,this.isFirst=n.isFirst,this.isOutside=t,this._isPhantom=null!=(l=n.isPhantom)&&l,this._fixedTarget=a,u.addEventListener("focusin",this._focusIn),u.addEventListener("focusout",this._focusOut),u.__tabsterDummyContainer=r,this._isPhantom&&(this._disposeTimer=c.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(c.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();let t=this.input;t&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,t.removeEventListener("focusin",this._focusIn),t.removeEventListener("focusout",this._focusOut),delete t.__tabsterDummyContainer,null==(e=ep.getParentNode(t))||e.removeChild(t))}setTopLeft(e,t){var n;let r=null==(n=this.input)?void 0:n.style;r&&(r.top=`${e}px`,r.left=`${t}px`)}_isBackward(e,t,n){return e&&!n?!this.isFirst:!!(n&&t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}}let eW=1,eq=2,eG=3,eK=4;class eX{constructor(e,t,n,r,o,a){this._element=t,this._instance=new e$(e,t,this,n,r,o,a)}_setHandlers(e,t){this._onFocusIn=e,this._onFocusOut=t}moveOut(e){var t;null==(t=this._instance)||t.moveOut(e)}moveOutWithDefaultAction(e,t){var n;null==(n=this._instance)||n.moveOutWithDefaultAction(e,t)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){var t;null==(t=this._instance)||t.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,t,n,r,a){let s=new ej(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(s){let l,c;if("BODY"===t.tagName)l=t,c=n&&r||!n&&!r?ep.getFirstElementChild(t):null;else{let o,a;n&&(!r||r&&!e.focusable.isFocusable(t,!1,!0,!0))?(l=t,c=r?t.firstElementChild:null):(l=ep.getParentElement(t),c=n&&r||!n&&!r?t:ep.getNextElementSibling(t));do(a=e5(o=n&&r||!n&&!r?ep.getPreviousElementSibling(c):c))===t?c=n&&r||!n&&!r?o:ep.getNextElementSibling(o):a=null;while(a)}(null==l?void 0:l.dispatchEvent(new en({by:"root",owner:l,next:null,relatedEvent:a})))&&(ep.insertBefore(l,s,c),(0,o.kG)(s))}}static addPhantomDummyWithTarget(e,t,n,r){let o=new ej(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new ek(e.getWindow,r)).input;if(o){let e,r;ex(t)&&!n?(e=t,r=ep.getFirstElementChild(t)):(e=ep.getParentElement(t),r=n?t:ep.getNextElementSibling(t)),e&&ep.insertBefore(e,o,r)}}}class eY{constructor(e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=e=>{var t;this._changedParents.has(e)||(this._changedParents.add(e),this._updateDummyInputsTimer||(this._updateDummyInputsTimer=null==(t=this._win)?void 0:t.call(this).setTimeout(()=>{for(let e of(delete this._updateDummyInputsTimer,this._dummyElements)){let t=e.get();if(t){let e=this._dummyCallbacks.get(t);if(e){let n=ep.getParentNode(t);(!n||this._changedParents.has(n))&&e()}}}this._changedParents=new WeakSet},eg)))},this._win=e}add(e,t){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new ek(this._win,e)),this._dummyCallbacks.set(e,t),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(t=>{let n=t.get();return n&&n!==e}),this._dummyCallbacks.delete(e),0===this._dummyElements.length&&delete this.domChanged}dispose(){var e;let t=null==(e=this._win)?void 0:e.call(this);this._updateTimer&&(null==t||t.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(null==t||t.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var e;this._updateTimer||(this._updateTimer=null==(e=this._win)?void 0:e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+eg<=Date.now()){let e=new Map,t=[];for(let n of this._updateQueue)t.push(n(e));for(let e of(this._updateQueue.clear(),t))e();e.clear()}else this._scheduledUpdatePositions()},eg))}}class e${constructor(e,t,n,r,a,s,l){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(e,t,n)=>{this._onFocus(!0,e,t,n)},this._onFocusOut=(e,t,n)=>{this._onFocus(!1,e,t,n)},this.moveOut=e=>{var t;let n=this._firstDummy,r=this._lastDummy;if(n&&r){this._ensurePosition();let a=n.input,s=r.input,l=null==(t=this._element)?void 0:t.get();if(a&&s&&l){let t;e?(a.tabIndex=0,t=a):(s.tabIndex=0,t=s),t&&(0,o.kG)(t)}}},this.moveOutWithDefaultAction=(e,t)=>{var n;let r=this._firstDummy,a=this._lastDummy;if(r&&a){this._ensurePosition();let s=r.input,l=a.input,c=null==(n=this._element)?void 0:n.get();if(s&&l&&c){let n;e?!r.isOutside&&this._tabster.focusable.isFocusable(c,!0,!0,!0)?n=c:(r.useDefaultAction=!0,s.tabIndex=0,n=s):(a.useDefaultAction=!0,l.tabIndex=0,n=l),n&&c.dispatchEvent(new en({by:"root",owner:c,next:null,relatedEvent:t}))&&(0,o.kG)(n)}}},this.setTabbable=(e,t)=>{var n,r;for(let n of this._wrappers)if(n.manager===e){n.tabbable=t;break}let o=this._getCurrent();if(o){let e=o.tabbable?0:-1,t=null==(n=this._firstDummy)?void 0:n.input;t&&(t.tabIndex=e),(t=null==(r=this._lastDummy)?void 0:r.input)&&(t.tabIndex=e)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=e=>{var t,n;let r=(null==(t=this._firstDummy)?void 0:t.input)||(null==(n=this._lastDummy)?void 0:n.input),o=this._transformElements,a=new Set,s=0,l=0,c=this._getWindow();for(let t=r;t&&t.nodeType===Node.ELEMENT_NODE;t=ep.getParentElement(t)){let n=e.get(t);if(void 0===n){let r=c.getComputedStyle(t).transform;r&&"none"!==r&&(n={scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),e.set(t,n||null)}n&&(a.add(t),o.has(t)||t.addEventListener("scroll",this._addTransformOffsets),s+=n.scrollTop,l+=n.scrollLeft)}for(let e of o)a.has(e)||e.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=a,()=>{var e,t;null==(e=this._firstDummy)||e.setTopLeft(s,l),null==(t=this._lastDummy)||t.setTopLeft(s,l)}};const c=t.get();if(!c)throw Error("No element");this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=l;const u=c.__tabsterDummy;if((u||this)._wrappers.push({manager:n,priority:r,tabbable:!0}),u)return u;c.__tabsterDummy=this;const d=null==a?void 0:a.dummyInputsPosition,p=c.tagName;this._isOutside=d?d===B:(s||"UL"===p||"OL"===p||"TABLE"===p)&&"LI"!==p&&"TD"!==p&&"TH"!==p,this._firstDummy=new ej(this._getWindow,this._isOutside,{isFirst:!0},t),this._lastDummy=new ej(this._getWindow,this._isOutside,{isFirst:!1},t);const f=this._firstDummy.input;f&&e._dummyObserver.add(f,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=t,this._addDummyInputs()}dispose(e,t){var n,r,o,a;if(0===(this._wrappers=this._wrappers.filter(n=>n.manager!==e&&!t)).length){for(let e of(delete(null==(n=this._element)?void 0:n.get()).__tabsterDummy,this._transformElements))e.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();let e=this._getWindow();this._addTimer&&(e.clearTimeout(this._addTimer),delete this._addTimer);let t=null==(r=this._firstDummy)?void 0:r.input;t&&this._tabster._dummyObserver.remove(t),null==(o=this._firstDummy)||o.dispose(),null==(a=this._lastDummy)||a.dispose()}}_onFocus(e,t,n,r){var o;let a=this._getCurrent();a&&(!t.useDefaultAction||this._callForDefaultAction)&&(null==(o=a.manager.getHandler(e))||o(t,n,r))}_getCurrent(){return this._wrappers.sort((e,t)=>e.tabbable!==t.tabbable?e.tabbable?-1:1:e.priority-t.priority),this._wrappers[0]}_ensurePosition(){var e,t,n;let r=null==(e=this._element)?void 0:e.get(),o=null==(t=this._firstDummy)?void 0:t.input,a=null==(n=this._lastDummy)?void 0:n.input;if(r&&o&&a)if(this._isOutside){let e=ep.getParentNode(r);if(e){let t=ep.getNextSibling(r);t!==a&&ep.insertBefore(e,a,t),ep.getPreviousElementSibling(r)!==o&&ep.insertBefore(e,o,r)}}else{ep.getLastElementChild(r)!==a&&ep.appendChild(r,a);let e=ep.getFirstElementChild(r);e&&e!==o&&e.parentNode&&ep.insertBefore(e.parentNode,o,e)}}}function eQ(e){let t=null;for(let n=ep.getLastElementChild(e);n;n=ep.getLastElementChild(n))t=n;return t||void 0}function eJ(e,t){let n=e,r=null;for(;n&&!r;)r=t?ep.getPreviousElementSibling(n):ep.getNextElementSibling(n),n=ep.getParentElement(n);return r||void 0}function eZ(e,t,n,r){let o=e.storageEntry(t,!0),a=!1;if(!o.aug){if(void 0===r)return a;o.aug={}}if(void 0===r){if(n in o.aug){let e=o.aug[n];delete o.aug[n],null===e?t.removeAttribute(n):t.setAttribute(n,e),a=!0}}else{let e;n in o.aug||(e=t.getAttribute(n)),void 0!==e&&e!==r&&(o.aug[n]=e,null===r?t.removeAttribute(n):t.setAttribute(n,r),a=!0)}return void 0===r&&0===Object.keys(o.aug).length&&(delete o.aug,e.storageEntry(t,!1)),a}function e0(e){var t,n;let r=e.ownerDocument,o=null==(t=r.defaultView)?void 0:t.getComputedStyle(e);return null===e.offsetParent&&r.body!==e&&(null==o?void 0:o.position)!=="fixed"||(null==o?void 0:o.visibility)==="hidden"||(null==o?void 0:o.position)==="fixed"&&("none"===o.display||(null==(n=e.parentElement)?void 0:n.offsetParent)===null&&r.body!==e.parentElement)||!1}function e1(e){return"INPUT"===e.tagName&&!!e.name&&"radio"===e.type}function e2(e){let t;if(!e1(e))return;let n=e.name,r=Array.from(ep.getElementsByName(e,n));return{name:n,buttons:new Set(r=r.filter(e=>!!e1(e)&&(e.checked&&(t=e),!0))),checked:t}}function e5(e){var t;return(null==(t=null==e?void 0:e.__tabsterDummyContainer)?void 0:t.get())||null}function e4(e,t){let n=JSON.stringify(e);return!0===t?n:{[a]:n}}function e3(e,t){for(let n of Object.keys(t)){let r=t[n];r?e[n]=r:delete e[n]}}function e6(e,t,n){let r;if(n){let t=e.getAttribute(a);if(t)try{r=JSON.parse(t)}catch(e){}}r||(r={}),e3(r,t),Object.keys(r).length>0?e.setAttribute(a,e4(r,!0)):e.removeAttribute(a)}class e8 extends eX{constructor(e,t,n,r){super(e,t,eW,r,void 0,!0),this._onDummyInputFocus=e=>{var t;if(e.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);let n=this._element.get();if(n){this._setFocused(!0);let t=this._tabster.focusedElement.getFirstOrLastTabbable(e.isFirst,{container:n,ignoreAccessibility:!0});if(t)return void(0,o.kG)(t)}null==(t=e.input)||t.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=n}}class e9 extends eU{constructor(e,t,n,r,a){super(e,t,r),this._isFocused=!1,this._setFocused=e=>{var t;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===e)return;let n=this._element.get();n&&(e?(this._isFocused=!0,null==(t=this._dummyManager)||t.setTabbable(!1),n.dispatchEvent(new eu({element:n}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var e;delete this._setFocusedTimer,this._isFocused=!1,null==(e=this._dummyManager)||e.setTabbable(!0),n.dispatchEvent(new ed({element:n}))},0))},this._onFocusIn=e=>{let t=this._tabster.getParent,n=this._element.get(),r=e.composedPath()[0];do{if(r===n)return void this._setFocused(!0);r=r&&t(r)}while(r)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=n;const s=e.getWindow;this.uid=eB(s,t),this._sys=a,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const l=s().document;l.addEventListener(o.Oy,this._onFocusIn),l.addEventListener(o.RY,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new e8(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);let t=this._tabster.getWindow(),n=t.document;n.removeEventListener(o.Oy,this._onFocusIn),n.removeEventListener(o.RY,this._onFocusOut),this._setFocusedTimer&&(t.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),null==(e=this._dummyManager)||e.dispose(),this._remove()}moveOutWithDefaultAction(e,t){let n=this._dummyManager;if(n)n.moveOutWithDefaultAction(e,t);else{let n=this.getElement();n&&e8.moveWithPhantomDummy(this._tabster,n,!0,e,t)}}_add(){}_remove(){}}class e7{constructor(e,t){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var e;let t=this._win().document,n=t.body;if(n){this._autoRootUnwait(t);let r=this._autoRoot;if(r)return e6(n,{root:r},!0),F(this._tabster,n),null==(e=M(this._tabster,n))?void 0:e.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,t.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=e=>{delete this._roots[e.id]},this._tabster=e,this._win=e.getWindow,this._autoRoot=t,e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){let e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(e=>{this._roots[e]&&(this._roots[e].dispose(),delete this._roots[e])}),this.rootById={}}createRoot(e,t,n){let r=new e9(this._tabster,e,this._onRootDispose,t,n);return this._roots[r.id]=r,this._forceDummy&&r.addDummyInputs(),r}addDummyInputs(){this._forceDummy=!0;let e=this._roots;for(let t of Object.keys(e))e[t].addDummyInputs()}static getRootByUId(e,t){let n=e().__tabsterInstance;return n&&n.root.rootById[t]}static getTabsterContext(e,t,n){var r,o,a,s;let l,c,u,d,p,f,h,m;if(void 0===n&&(n={}),!t.ownerDocument)return;let{checkRtl:g,referenceElement:v}=n,y=e.getParent;e.drainInitQueue();let b=!1,x=v||t,C={};for(;x&&(!l||g);){let n=M(e,x);if(g&&void 0===h){let e=x.dir;e&&(h="rtl"===e.toLowerCase())}if(!n){x=y(x);continue}let s=x.tagName;(n.uncontrolled||"IFRAME"===s||"WEBVIEW"===s)&&(m=x),!d&&(null==(r=n.focusable)?void 0:r.excludeFromMover)&&!u&&(b=!0);let v=n.modalizer,k=n.groupper,w=n.mover;!c&&v&&(c=v),!u&&k&&(!c||v)&&(c?(!k.isActive()&&k.getProps().tabbability&&c.userId!==(null==(o=e.modalizer)?void 0:o.activeId)&&(c=void 0,u=k),f=k):u=k),!d&&w&&(!c||v)&&(!k||x!==t)&&x.contains(t)&&(d=w,p=!!u&&u!==k),n.root&&(l=n.root),(null==(a=n.focusable)?void 0:a.ignoreKeydown)&&Object.assign(C,n.focusable.ignoreKeydown),x=y(x)}if(!l){let n=e.root;n._autoRoot&&(null==(s=t.ownerDocument)?void 0:s.body)&&(l=n._autoRootCreate())}u&&!d&&(p=!0);let k=e=>!!C[e.key];return l?{root:l,modalizer:c,groupper:u,mover:d,groupperBeforeMover:p,modalizerInGroupper:f,rtl:g?!!h:void 0,uncontrolled:m,excludedFromMover:b,ignoreKeydown:k}:void 0}static getRoot(e,t){var n;let r=e.getParent;for(let o=t;o;o=r(o)){let t=null==(n=M(e,o))?void 0:n.root;if(t)return t}}onRoot(e,t){t?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}let te=10;class tt{}class tn extends tt{constructor(e,t){super(),this.uid=t.uid,this._tabster=e,this._deloser=t}belongsTo(e){return e===this._deloser}unshift(e){this._deloser.unshift(e)}async focusAvailable(){let e=this._deloser.findAvailable(),t=this._deloser.getElement();return!!e&&!!t&&(t.dispatchEvent(new en({by:"deloser",owner:t,next:e}))?this._tabster.focusedElement.focus(e):null)}async resetFocus(){return eH(this._tabster.getWindow).resolve(this._deloser.resetFocus())}}class tr{constructor(e,t){this._history=[],this._tabster=e,this.rootUId=t}getLength(){return this._history.length}removeDeloser(e){this._history=this._history.filter(t=>!t.belongsTo(e))}hasDeloser(e){return this._history.some(t=>t.belongsTo(e))}}class to extends tr{unshiftToDeloser(e,t){let n;for(let t=0;t<this._history.length;t++)if(this._history[t].belongsTo(e)){n=this._history[t],this._history.splice(t,1);break}n||(n=new tn(this._tabster,e)),n.unshift(t),this._history.unshift(n),this._history.splice(te,this._history.length-te)}async focusAvailable(e){let t=!!e;for(let n of this._history)if(e&&n.belongsTo(e)&&(t=!1),!t){let e=await n.focusAvailable();if(e||null===e)return e}return!1}async resetFocus(e){let t=!!e,n={};for(let r of this._history)e&&r.belongsTo(e)&&(t=!1),t||n[r.uid]||(n[r.uid]=r);for(let e of Object.keys(n))if(await n[e].resetFocus())return!0;return!1}}class ti{constructor(e){this._history=[],this._tabster=e}dispose(){this._history=[]}process(e){var t;let n=e7.getTabsterContext(this._tabster,e),r=n&&n.root.uid,o=tc.getDeloser(this._tabster,e);if(!r||!o)return;let a=this.make(r,()=>new to(this._tabster,r));return(!n||!n.modalizer||(null==(t=n.modalizer)?void 0:t.isActive()))&&a.unshiftToDeloser(o,e),o}make(e,t){let n;for(let t=0;t<this._history.length;t++){let r=this._history[t];if(r.rootUId===e){n=r,this._history.splice(t,1);break}}return n||(n=t()),this._history.unshift(n),this._history.splice(te,this._history.length-te),n}removeDeloser(e){this._history.forEach(t=>{t.removeDeloser(e)}),this._history=this._history.filter(e=>e.getLength()>0)}async focusAvailable(e){let t=!!e;for(let n of this._history)if(e&&n.hasDeloser(e)&&(t=!1),!t){let t=await n.focusAvailable(e);if(t||null===t)return t}return!1}async resetFocus(e){let t=!!e;for(let n of this._history)if(e&&n.hasDeloser(e)&&(t=!1),!t&&await n.resetFocus(e))return!0;return!1}}function ta(e,t,n){let r,o=[],a=/(:|\.|\[|\]|,|=|@)/g,s="\\$1",l=e.getAttribute("id");l&&o.push("#"+l.replace(a,s)),!1!==t&&e.className&&e.className.split(" ").forEach(e=>{(e=e.trim())&&o.push("."+e.replace(a,s))});let c=0;if(!1!==n&&0===o.length){for(r=e;r;)c++,r=r.previousElementSibling;o.unshift(":nth-child("+c+")")}return o.unshift(e.tagName.toLowerCase()),o.join("")}function ts(e){if(!eO(e.ownerDocument,e))return;let t=[ta(e)],n=ep.getParentNode(e);for(;n&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;){if(n.nodeType===Node.ELEMENT_NODE){let e="BODY"===n.tagName;if(t.unshift(ta(n,!1,!e)),e)break}n=ep.getParentNode(n)}return t.join(" ")}class tl extends eU{constructor(e,t,n,r){super(e,t,r),this._isActive=!1,this._history=[[]],this._snapshotIndex=0,this.isActive=()=>this._isActive,this.setSnapshot=e=>{this._snapshotIndex=e,this._history.length>e+1&&this._history.splice(e+1,this._history.length-e-1),this._history[e]||(this._history[e]=[])},this.focusFirst=()=>{let e=this._element.get();return!!e&&this._tabster.focusedElement.focusFirst({container:e})},this.focusDefault=()=>{let e=this._element.get();return!!e&&this._tabster.focusedElement.focusDefault(e)},this.resetFocus=()=>{let e=this._element.get();return!!e&&this._tabster.focusedElement.resetFocus(e)},this.clearHistory=e=>{let t=this._element.get();if(!t){this._history[this._snapshotIndex]=[];return}this._history[this._snapshotIndex]=this._history[this._snapshotIndex].filter(n=>{let r=n.get();return!!r&&!!e&&ep.nodeContains(t,r)})},this.uid=eB(e.getWindow,t),this.strategy=r.strategy||S,this._onDispose=n}dispose(){this._remove(),this._onDispose(this),this._isActive=!1,this._snapshotIndex=0,this._props={},this._history=[]}setActive(e){this._isActive=e}getActions(){return{focusDefault:this.focusDefault,focusFirst:this.focusFirst,resetFocus:this.resetFocus,clearHistory:this.clearHistory,setSnapshot:this.setSnapshot,isActive:this.isActive}}unshift(e){let t=this._history[this._snapshotIndex];for((t=this._history[this._snapshotIndex]=t.filter(t=>{let n=t.get();return n&&n!==e})).unshift(new ek(this._tabster.getWindow,e,ts(e)));t.length>te;)t.pop()}findAvailable(){let e=this._element.get();if(!e||!this._tabster.focusable.isVisible(e))return null;let t=this._props.restoreFocusOrder,n=null,r=e7.getTabsterContext(this._tabster,e);if(!r)return null;let o=r.root,a=o.getElement();if(!a)return null;if(void 0===t&&(t=o.getProps().restoreFocusOrder),t===C&&(n=this._tabster.focusable.findDefault({container:a})),n||t!==w||(n=this._findFirst(a)),n)return n;let s=this._findInHistory();if(s&&t===b)return s;let l=this._tabster.focusable.findDefault({container:e});if(l&&t===x)return l;let c=this._findFirst(e);return c&&t===k?c:l||s||c||null}customFocusLostHandler(e){return e.dispatchEvent(new el(this.getActions()))}_findInHistory(){let e=this._history[this._snapshotIndex].slice(0);this.clearHistory(!0);for(let t=0;t<e.length;t++){let n=e[t],r=n.get(),o=this._element.get();if(r&&o&&ep.nodeContains(o,r)){if(this._tabster.focusable.isFocusable(r))return r}else if(!this._props.noSelectorCheck){let e=n.getData();if(e&&o){let t;try{t=ep.querySelectorAll(o.ownerDocument,e)}catch(e){continue}for(let e=0;e<t.length;e++){let n=t[e];if(n&&this._tabster.focusable.isFocusable(n))return n}}}}return null}_findFirst(e){if(this._tabster.keyboardNavigation.isNavigatingWithKeyboard()){let t=this._tabster.focusable.findFirst({container:e,useActiveModalizer:!0});if(t)return t}return null}_remove(){}}class tc{constructor(e,t){this._inDeloser=!1,this._isRestoringFocus=!1,this._isPaused=!1,this._onRestoreFocus=e=>{var t;let n=e.composedPath()[0];if(n){let r=null==(t=tc.getDeloser(this._tabster,n))?void 0:t.findAvailable();r&&this._tabster.focusedElement.focus(r),e.stopImmediatePropagation()}},this._onFocus=e=>{if(this._restoreFocusTimer&&(this._win().clearTimeout(this._restoreFocusTimer),this._restoreFocusTimer=void 0),!e)return void this._scheduleRestoreFocus();let t=this._history.process(e);t?this._activate(t):this._deactivate()},this._onDeloserDispose=e=>{this._history.removeDeloser(e),e.isActive()&&this._scheduleRestoreFocus()},this._tabster=e,this._win=e.getWindow,this._history=new ti(e),e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus);let e=this._win().document;e.addEventListener(V,this._onRestoreFocus);let t=ep.getActiveElement(e);t&&t!==e.body&&this._onFocus(t)});const n=null==t?void 0:t.autoDeloser;n&&(this._autoDeloser=n)}dispose(){let e=this._win();this._restoreFocusTimer&&(e.clearTimeout(this._restoreFocusTimer),this._restoreFocusTimer=void 0),this._autoDeloserInstance&&(this._autoDeloserInstance.dispose(),delete this._autoDeloserInstance,delete this._autoDeloser),this._tabster.focusedElement.unsubscribe(this._onFocus),e.document.removeEventListener(V,this._onRestoreFocus),this._history.dispose(),delete this._curDeloser}createDeloser(e,t){var n;let r=new tl(this._tabster,e,this._onDeloserDispose,t);return ep.nodeContains(e,null!=(n=this._tabster.focusedElement.getFocusedElement())?n:null)&&this._activate(r),r}getActions(e){for(let t=e;t;t=ep.getParentElement(t)){let e=M(this._tabster,t);if(e&&e.deloser)return e.deloser.getActions()}}pause(){this._isPaused=!0,this._restoreFocusTimer&&(this._win().clearTimeout(this._restoreFocusTimer),this._restoreFocusTimer=void 0)}resume(e){this._isPaused=!1,e&&this._scheduleRestoreFocus()}_activate(e){let t=this._curDeloser;t!==e&&(this._inDeloser=!0,null==t||t.setActive(!1),e.setActive(!0),this._curDeloser=e)}_deactivate(){var e;this._inDeloser=!1,null==(e=this._curDeloser)||e.setActive(!1),this._curDeloser=void 0}_scheduleRestoreFocus(e){if(this._isPaused||this._isRestoringFocus)return;let t=async()=>{this._restoreFocusTimer=void 0;let t=this._tabster.focusedElement.getLastFocusedElement();if(!e&&(this._isRestoringFocus||!this._inDeloser||t&&!e0(t)))return;let n=this._curDeloser,r=!1;if(n){if(t&&n.customFocusLostHandler(t))return;if(n.strategy===_)r=!0;else{let e=n.getElement(),t=n.findAvailable();if(t&&(!(null==e?void 0:e.dispatchEvent(new en({by:"deloser",owner:e,next:t})))||this._tabster.focusedElement.focus(t)))return}}this._deactivate(),r||(this._isRestoringFocus=!0,await this._history.focusAvailable(null)===!1&&await this._history.resetFocus(null),this._isRestoringFocus=!1)};e?t():this._restoreFocusTimer=this._win().setTimeout(t,100)}static getDeloser(e,t){var n;let r;for(let n=t;n;n=ep.getParentElement(n)){let t=M(e,n);if(t){r||(r=t.root);let e=t.deloser;if(e)return e}}let o=e.deloser&&e.deloser;if(o){if(o._autoDeloserInstance)return o._autoDeloserInstance;let a=o._autoDeloser;if(r&&!o._autoDeloserInstance&&a){let r=null==(n=t.ownerDocument)?void 0:n.body;r&&(o._autoDeloserInstance=new tl(e,r,e.deloser._onDeloserDispose,a))}return o._autoDeloserInstance}}static getHistory(e){return e._history}static forceRestoreFocus(e){e._scheduleRestoreFocus(!0)}}class tu{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(e){let t=this._callbacks;0>t.indexOf(e)&&t.push(e)}subscribeFirst(e){let t=this._callbacks,n=t.indexOf(e);n>=0&&t.splice(n,1),t.unshift(e)}unsubscribe(e){let t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}setVal(e,t){this._val!==e&&(this._val=e,this._callCallbacks(e,t))}getVal(){return this._val}trigger(e,t){this._callCallbacks(e,t)}_callCallbacks(e,t){this._callbacks.forEach(n=>n(e,t))}}let td=1500,tp=3e3,tf="up",th=1,tm=2,tg=3,tv=4,ty=5,tb=6;class tx extends tt{constructor(e,t,n){super(),this._deloser=t,this._transactions=n}belongsTo(e){return e.deloserUId===this._deloser.deloserUId}async focusAvailable(){let e={...this._deloser,reset:!1};return this._transactions.beginTransaction(tN,e).then(e=>!!e)}async resetFocus(){let e={...this._deloser,reset:!0};return this._transactions.beginTransaction(tN,e).then(e=>!!e)}}class tC extends tr{constructor(e,t,n){super(e,t),this._transactions=n}unshift(e){let t;for(let n=0;n<this._history.length;n++)if(this._history[n].belongsTo(e)){t=this._history[n],this._history.splice(n,1);break}t||(t=new tx(this._tabster,e,this._transactions)),this._history.unshift(t),this._history.splice(10,this._history.length-10)}async focusAvailable(){for(let e of this._history)if(await e.focusAvailable())return!0;return!1}async resetFocus(){for(let e of this._history)if(await e.resetFocus())return!0;return!1}}class tk{constructor(e,t,n,r,o,a,s,l){this._inProgress={},this._isDone=!1,this._isSelfResponding=!1,this._sentCount=0,this.tabster=e,this.owner=t,this.ownerId=eM(t()),this.id=eN(t()),this.beginData=r,this._knownTargets=n,this._sentTo=a||{[this.ownerId]:!0},this.targetId=s,this.sendUp=l,this.timeout=o,this._promise=new(eH(t))((e,t)=>{this._resolve=e,this._reject=t})}getTargets(e){return this.targetId===tf?this.sendUp?{[tf]:{send:this.sendUp}}:null:this.targetId?e[this.targetId]?{[this.targetId]:{send:e[this.targetId].send}}:null:0===Object.keys(e).length&&this.sendUp?{[tf]:{send:this.sendUp}}:Object.keys(e).length>0?e:null}begin(e){let t=this.getTargets(this._knownTargets),n={...this._sentTo};if(t)for(let e of Object.keys(t))n[e]=!0;let r={transaction:this.id,type:this.type,isResponse:!1,timestamp:Date.now(),owner:this.ownerId,sentto:n,timeout:this.timeout,beginData:this.beginData};if(this.targetId&&(r.target=this.targetId),e&&(this._isSelfResponding=!0,e(r).then(e=>{this._isSelfResponding=!1,void 0===e||this.endData||(this.endData=e),(this.endData||0===this._sentCount)&&this.end()})),t)for(let e of Object.keys(t))e in this._sentTo||this._send(t[e].send,e,r);return 0!==this._sentCount||this._isSelfResponding||this.end(),this._promise}_send(e,t,n){void 0===this._inProgress[t]&&(this._inProgress[t]=!0,this._sentCount++,e(n))}end(e){!this._isDone&&(this._isDone=!0,void 0===this.endData&&e?this._reject&&this._reject(e):this._resolve&&this._resolve(this.endData))}onResponse(e){let t=e.endData;void 0===t||this.endData||(this.endData=t);let n=e.target===tf?tf:e.owner;this._inProgress[n]&&(this._inProgress[n]=!1,this._sentCount--,(this.endData||0===this._sentCount&&!this._isSelfResponding)&&this.end())}}class tw extends tk{constructor(){super(...arguments),this.type=th}static shouldForward(){return!1}static async makeResponse(e){return{isNavigatingWithKeyboard:e.keyboardNavigation.isNavigatingWithKeyboard()}}}class tS extends tk{constructor(){super(...arguments),this.type=tm}static shouldSelfRespond(){return!0}static shouldForward(e,t,n){let r=tR.findElement(e,n,t.beginData);return!r||!e.focusable.isFocusable(r)}static async makeResponse(e,t,n,r,o,a){let s=tR.findElement(e,n,t.beginData);return!!s&&e.focusedElement.focus(s,!0)||!!await a}}let t_=1,tE=2,tP=3,tI=4,tT=5,tD=6;class tA extends tk{constructor(){super(...arguments),this.type=tg}static shouldSelfRespond(e,t){return t.state!==tI&&t.state!==tT}static async makeResponse(e,t,n,r,o,a,s){let l=t.timestamp,c=t.beginData;if(l&&c)switch(c.state){case t_:return tA._makeFocusedResponse(e,l,c,o,s);case tE:return tA._makeBlurredResponse(e,l,c,o.ctx);case tP:return tA._makeObservedResponse(e,c);case tI:return tA._makeDeadWindowResponse(e,c,o,a);case tT:return tA._makeKeyboardNavigationResponse(e,o.ctx,c.isNavigatingWithKeyboard);case tD:return tA._makeOutlineResponse(e,o.ctx,c.outline)}return!0}static createElement(e,t){return t.uid?new tF(e,t.uid,t.ownerUId,t.id,t.rootUId,t.observedName,t.observedDetails):null}static async _makeFocusedResponse(e,t,n,r,o){let a=tA.createElement(e,n);if(n&&n.ownerUId&&a){if(r.ctx.focusOwner=n.ownerUId,r.ctx.focusOwnerTimestamp=t,!o&&n.rootUId&&n.deloserUId){let t=e.deloser;if(t){let o=tc.getHistory(t),a={ownerUId:n.ownerUId,deloserUId:n.deloserUId,rootUId:n.rootUId};o.make(n.rootUId,()=>new tC(e,a.rootUId,r)).unshift(a)}}tO.setVal(e.crossOrigin.focusedElement,a,{isFocusedProgrammatically:n.isFocusedProgrammatically})}return!0}static async _makeBlurredResponse(e,t,n,r){return n&&(n.ownerUId===r.focusOwner||n.force)&&(!r.focusOwnerTimestamp||r.focusOwnerTimestamp<t)&&tO.setVal(e.crossOrigin.focusedElement,void 0,{}),!0}static async _makeObservedResponse(e,t){let n=t.observedName,r=tA.createElement(e,t);return n&&r&&tL.trigger(e.crossOrigin.observedElement,r,{names:[n],details:t.observedDetails}),!0}static async _makeDeadWindowResponse(e,t,n,r){let o=t&&t.ownerUId;return o&&n.removeTarget(o),r.then(()=>{if(o===n.ctx.focusOwner){let t=e.deloser;t&&tc.forceRestoreFocus(t)}return!0})}static async _makeKeyboardNavigationResponse(e,t,n){return void 0!==n&&e.keyboardNavigation.isNavigatingWithKeyboard()!==n&&(t.ignoreKeyboardNavigationStateUpdate=!0,e.keyboardNavigation.setNavigatingWithKeyboard(n),t.ignoreKeyboardNavigationStateUpdate=!1),!0}static async _makeOutlineResponse(e,t,n){return t.origOutlineSetup&&t.origOutlineSetup.call(e.outline,n),!0}}class tR extends tk{constructor(){super(...arguments),this.type=tv}static shouldSelfRespond(){return!0}static findElement(e,t,n){let r;if(n&&(!n.ownerId||n.ownerId===eM(t())))if(n.id){if((r=ep.getElementById(t().document,n.id))&&n.rootId){let t=e7.getTabsterContext(e,r);if(!t||t.root.uid!==n.rootId)return null}}else if(n.uid){let e=ev(t).elementByUId[n.uid];r=e&&e.get()}else n.observedName&&(r=e.observedElement.getElement(n.observedName,n.accessibility));return r||null}static getElementData(e,t,n,r,o){let a=tc.getDeloser(e,t),s=e7.getTabsterContext(e,t),l=M(e,t),c=l&&l.observed;return{uid:eB(n,t),ownerUId:o,id:t.id||void 0,rootUId:s?s.root.uid:void 0,deloserUId:a?tH(n,r,a):void 0,observedName:c&&c.names&&c.names[0],observedDetails:c&&c.details}}static async makeResponse(e,t,n,r,o,a){let s,l,c=t.beginData;if(void 0===c?s=e.focusedElement.getFocusedElement():c&&(s=tR.findElement(e,n,c)||void 0),!s&&c){let r=c.observedName,o=t.timeout,u=c.accessibility;if(r&&o){let t=await new(eH(n))(t=>{let n=!1,s=!1,l=!1;e.observedElement.waitElement(r,o,u).result.then(e=>{n=!0,!l&&(e||s)&&(l=!0,t({element:e}))}),a.then(e=>{s=!0,!l&&(e||n)&&(l=!0,t({crossOrigin:e}))})});t.element?s=t.element:t.crossOrigin&&(l=t.crossOrigin)}}return s?tR.getElementData(e,s,n,o.ctx,r):l}}class tN extends tk{constructor(){super(...arguments),this.type=ty}static async makeResponse(e,t,n,r,o,a){let s=await a,l=!s&&t.beginData,c=l&&l.deloserUId,u=c&&o.ctx.deloserByUId[c],d=e.deloser;if(l&&u&&d){let e=tc.getHistory(d);return l.reset?e.resetFocus(u):e.focusAvailable(u)}return!!s}}class tB extends tk{constructor(){super(...arguments),this.type=tb}static shouldForward(){return!1}static async makeResponse(){return!0}}class tM{constructor(e,t,n){this._knownTargets={},this._transactions={},this._isDefaultSendUp=!1,this.isSetUp=!1,this._onMessage=e=>{let t;if(e.data.owner===this._ownerUId||!this._tabster)return;let n=e.data;if(!n||!(t=n.transaction)||!n.type||!n.timestamp||!n.owner||!n.sentto)return;let r=this._knownTargets[n.owner];if(!r&&e.send&&n.owner!==this._ownerUId&&(r=this._knownTargets[n.owner]={send:e.send}),r&&(r.last=Date.now()),n.isResponse){let e=this._transactions[t];e&&e.transaction&&e.transaction.type===n.type&&e.transaction.onResponse(n)}else{let t=this._getTransactionClass(n.type),r=this.forwardTransaction(n);t&&e.send&&t.makeResponse(this._tabster,n,this._owner,this._ownerUId,this,r,!1).then(t=>{let r={transaction:n.transaction,type:n.type,isResponse:!0,timestamp:Date.now(),owner:this._ownerUId,timeout:n.timeout,sentto:{},target:n.target===tf?tf:n.owner,endData:t};e.send(r)})}},this._onPageHide=()=>{this._dead()},this._onBrowserMessage=e=>{if(e.source===this._owner())return;let t=t=>{e.source&&e.source.postMessage&&e.source.postMessage(JSON.stringify(t),"*")};try{this._onMessage({data:JSON.parse(e.data),send:t})}catch(e){}},this._tabster=e,this._owner=t,this._ownerUId=eM(t()),this.ctx=n}setup(e){return this.isSetUp||(this.isSetUp=!0,this.setSendUp(e),this._owner().addEventListener("pagehide",this._onPageHide),this._ping()),this._onMessage}setSendUp(e){if(!this.isSetUp)throw Error("CrossOrigin is not set up.");this.sendUp=e||void 0;let t=this._owner();return void 0===e?!this._isDefaultSendUp&&t.document&&(this._isDefaultSendUp=!0,t.parent&&t.parent!==t&&t.parent.postMessage&&(this.sendUp=e=>{t.parent.postMessage(JSON.stringify(e),"*")}),t.addEventListener("message",this._onBrowserMessage)):this._isDefaultSendUp&&(t.removeEventListener("message",this._onBrowserMessage),this._isDefaultSendUp=!1),this._onMessage}async dispose(){let e=this._owner();for(let t of(this._pingTimer&&(e.clearTimeout(this._pingTimer),this._pingTimer=void 0),e.removeEventListener("message",this._onBrowserMessage),e.removeEventListener("pagehide",this._onPageHide),await this._dead(),delete this._deadPromise,Object.keys(this._transactions))){let n=this._transactions[t];n.timer&&(e.clearTimeout(n.timer),delete n.timer),n.transaction.end()}this._knownTargets={},delete this.sendUp}beginTransaction(e,t,n,r,o,a){let s;if(!this._owner)return eH(this._owner).reject();let l=new e(this._tabster,this._owner,this._knownTargets,t,n,r,o,this.sendUp);return e.shouldSelfRespond&&e.shouldSelfRespond(this._tabster,t,this._owner,this._ownerUId)&&(s=t=>e.makeResponse(this._tabster,t,this._owner,this._ownerUId,this,eH(this._owner).resolve(void 0),!0)),this._beginTransaction(l,n,s,a)}removeTarget(e){delete this._knownTargets[e]}_beginTransaction(e,t,n,r){let o=this._owner(),a={transaction:e,timer:o.setTimeout(()=>{delete a.timer,e.end("Cross origin transaction timed out.")},td+(t||0))};this._transactions[e.id]=a;let s=e.begin(n);return s.catch(()=>{}).finally(()=>{a.timer&&o.clearTimeout(a.timer),delete this._transactions[e.id]}),s.then(e=>e,r?void 0:()=>void 0)}forwardTransaction(e){let t=this._owner,n=e.target;if(n===this._ownerUId)return eH(t).resolve();let r=this._getTransactionClass(e.type);if(r)if(!(void 0===r.shouldForward||r.shouldForward(this._tabster,e,t,this._ownerUId)))return eH(t).resolve();else{let o=e.sentto;return n===tf&&(n=void 0,o[this._ownerUId]=!0),delete o[tf],this._beginTransaction(new r(this._tabster,t,this._knownTargets,e.beginData,e.timeout,o,n,this.sendUp),e.timeout)}return eH(t).reject(`Unknown transaction type ${e.type}`)}_getTransactionClass(e){switch(e){case th:return tw;case tm:return tS;case tg:return tA;case tv:return tR;case ty:return tN;case tb:return tB;default:return null}}async _dead(){this._deadPromise||this.ctx.focusOwner!==this._ownerUId||(this._deadPromise=this.beginTransaction(tA,{ownerUId:this._ownerUId,state:tI})),this._deadPromise&&await this._deadPromise}async _ping(){let e;if(this._pingTimer)return;let t=Date.now(),n=Object.keys(this._knownTargets).filter(e=>t-(this._knownTargets[e].last||0)>tp);if(this.sendUp&&n.push(tf),n.length&&await eH(this._owner).all(n.map(t=>this.beginTransaction(tB,void 0,void 0,void 0,t,!0).then(()=>!0,()=>(t!==tf&&(e||(e={}),e[t]=!0,delete this._knownTargets[t]),!1)))),e&&!await this.beginTransaction(tR,void 0)&&this.ctx.focusOwner&&this.ctx.focusOwner in e){await this.beginTransaction(tA,{ownerUId:this._ownerUId,state:tE,force:!0});let e=this._tabster.deloser;e&&tc.forceRestoreFocus(e)}this._pingTimer=this._owner().setTimeout(()=>{this._pingTimer=void 0,this._ping()},tp)}}class tF{constructor(e,t,n,r,o,a,s){this._tabster=e,this.uid=t,this.ownerId=n,this.id=r,this.rootId=o,this.observedName=a,this.observedDetails=s}focus(e,t){return this._tabster.crossOrigin.focusedElement.focus(this,e,t)}}class tO extends tu{constructor(e){super(),this._transactions=e}async focus(e,t,n){return this._focus({uid:e.uid,id:e.id,rootId:e.rootId,ownerId:e.ownerId,observedName:e.observedName},t,n)}async focusById(e,t,n,r){return this._focus({id:e,rootId:t},n,r)}async focusByObservedName(e,t,n,r,o){return this._focus({observedName:e,rootId:n},r,o,t)}async _focus(e,t,n,r){return this._transactions.beginTransaction(tS,{...e,noFocusedProgrammaticallyFlag:t,noAccessibleCheck:n},r).then(e=>!!e)}static setVal(e,t,n){e.setVal(t,n)}}class tL extends tu{constructor(e,t){super(),this._lastRequestFocusId=0,this._tabster=e,this._transactions=t}async getElement(e,t){return this.waitElement(e,0,t)}async waitElement(e,t,n){return this._transactions.beginTransaction(tR,{observedName:e,accessibility:n},t).then(e=>e?tA.createElement(this._tabster,e):null)}async requestFocus(e,t){let n=++this._lastRequestFocusId;return this.waitElement(e,t,h).then(e=>this._lastRequestFocusId===n&&!!e&&this._tabster.crossOrigin.focusedElement.focus(e,!0))}static trigger(e,t,n){e.trigger(t,n)}}function tH(e,t,n){let r=n.getElement();if(r){let o=eB(e,r);return t.deloserByUId[o]||(t.deloserByUId[o]=n),o}}class tz{constructor(e){this._tabster=e}dispose(){}getProps(e){let t=M(this._tabster,e);return t&&t.focusable||{}}isFocusable(e,t,n,r){return!!eL(e,l)&&(!!t||-1!==e.tabIndex)&&(n||this.isVisible(e))&&(r||this.isAccessible(e))}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE||e0(e))return!1;let t=e.ownerDocument.body.getBoundingClientRect();return 0!==t.width||0!==t.height}isAccessible(e){var t;for(let n=e;n;n=ep.getParentElement(n)){let e=M(this._tabster,n);if(this._isHidden(n)||!(null==(t=null==e?void 0:e.focusable)?void 0:t.ignoreAriaDisabled)&&this._isDisabled(n))return!1}return!0}_isDisabled(e){return e.hasAttribute("disabled")}_isHidden(e){var t;let n=e.getAttribute("aria-hidden");return!(!n||"true"!==n.toLowerCase()||(null==(t=this._tabster.modalizer)?void 0:t.isAugmented(e)))}findFirst(e,t){return this.findElement({...e},t)}findLast(e,t){return this.findElement({isBackward:!0,...e},t)}findNext(e,t){return this.findElement({...e},t)}findPrev(e,t){return this.findElement({...e,isBackward:!0},t)}findDefault(e,t){return this.findElement({...e,acceptCondition:t=>this.isFocusable(t,e.includeProgrammaticallyFocusable)&&!!this.getProps(t).isDefault},t)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,t){let n=this._findElements(!1,e,t);return n?n[0]:n}_findElements(e,t,n){var r,o,a;let{container:s,currentElement:l=null,includeProgrammaticallyFocusable:c,useActiveModalizer:u,ignoreAccessibility:d,modalizerId:p,isBackward:f,onElement:h}=t;n||(n={});let m=[],{acceptCondition:g}=t,v=!!g;if(!s)return null;g||(g=e=>this.isFocusable(e,c,!1,d));let y={container:s,modalizerUserId:void 0===p&&u?null==(r=this._tabster.modalizer)?void 0:r.activeId:p||(null==(a=null==(o=e7.getTabsterContext(this._tabster,s))?void 0:o.modalizer)?void 0:a.userId),from:l||s,isBackward:f,isFindAll:e,acceptCondition:g,hasCustomCondition:v,includeProgrammaticallyFocusable:c,ignoreAccessibility:d,cachedGrouppers:{},cachedRadioGroups:{}},b=eE(s.ownerDocument,s,e=>this._acceptElement(e,y));if(!b)return null;let x=t=>{var r,o;let a=null!=(r=y.foundElement)?r:y.foundBackward;return(a&&m.push(a),e)?(!a||(y.found=!1,delete y.foundElement,delete y.foundBackward,delete y.fromCtx,y.from=a,!h||!!h(a)))&&!!(a||t):(a&&n&&(n.uncontrolled=null==(o=e7.getTabsterContext(this._tabster,a))?void 0:o.uncontrolled),!!(t&&!a))};if(l||(n.outOfDOMOrder=!0),l&&ep.nodeContains(s,l))b.currentNode=l;else if(f){let e=eQ(s);if(!e)return null;if(this._acceptElement(e,y)===NodeFilter.FILTER_ACCEPT&&!x(!0))return y.skippedFocusable&&(n.outOfDOMOrder=!0),m;b.currentNode=e}do f?b.previousNode():b.nextNode();while(x());return y.skippedFocusable&&(n.outOfDOMOrder=!0),m.length?m:null}_acceptElement(e,t){var n,r,o;let a;if(t.found)return NodeFilter.FILTER_ACCEPT;let s=t.foundBackward;if(s&&(e===s||!ep.nodeContains(s,e)))return t.found=!0,t.foundElement=s,NodeFilter.FILTER_ACCEPT;let l=t.container;if(e===l)return NodeFilter.FILTER_SKIP;if(!ep.nodeContains(l,e)||e5(e)||ep.nodeContains(t.rejectElementsFrom,e))return NodeFilter.FILTER_REJECT;let c=t.currentCtx=e7.getTabsterContext(this._tabster,e);if(!c)return NodeFilter.FILTER_SKIP;if(eR(e))return this.isFocusable(e,void 0,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!t.hasCustomCondition&&("IFRAME"===e.tagName||"WEBVIEW"===e.tagName))if((null==(n=c.modalizer)?void 0:n.userId)===(null==(r=this._tabster.modalizer)?void 0:r.activeId))return t.found=!0,t.rejectElementsFrom=t.foundElement=e,NodeFilter.FILTER_ACCEPT;else return NodeFilter.FILTER_REJECT;if(!t.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let u=t.fromCtx;u||(u=t.fromCtx=e7.getTabsterContext(this._tabster,t.from));let d=null==u?void 0:u.mover,p=c.groupper,f=c.mover;if(void 0!==(a=null==(o=this._tabster.modalizer)?void 0:o.acceptElement(e,t))&&(t.skippedFocusable=!0),void 0===a&&(p||f||d)){let n=null==p?void 0:p.getElement(),r=null==d?void 0:d.getElement(),o=null==f?void 0:f.getElement();o&&ep.nodeContains(r,o)&&ep.nodeContains(l,r)&&(!n||!f||ep.nodeContains(r,n))&&(f=d,o=r),n&&(n===l||!ep.nodeContains(l,n))&&(p=void 0),o&&!ep.nodeContains(l,o)&&(f=void 0),p&&f&&(o&&n&&!ep.nodeContains(n,o)?f=void 0:p=void 0),p&&(a=p.acceptElement(e,t)),f&&(a=f.acceptElement(e,t))}if(void 0===a&&(a=t.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP)===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0),a===NodeFilter.FILTER_ACCEPT&&!t.found){if(!t.isFindAll&&e1(e)&&!e.checked){let n=e.name,r=t.cachedRadioGroups[n];if(!r&&(r=e2(e))&&(t.cachedRadioGroups[n]=r),(null==r?void 0:r.checked)&&r.checked!==e)return NodeFilter.FILTER_SKIP}t.isBackward?(t.foundBackward=e,a=NodeFilter.FILTER_SKIP):(t.found=!0,t.foundElement=e)}return a}}let tV="Tab",tU="Enter",tj="Escape",tW="PageUp",tq="PageDown",tG="End",tK="Home",tX="ArrowLeft",tY="ArrowUp",t$="ArrowRight",tQ="ArrowDown";function tJ(e,t){var n;let r=e.getParent,o=t;do{let t=null==(n=M(e,o))?void 0:n.uncontrolled;if(t&&e.uncontrolled.isUncontrolledCompletely(o,!!t.completely))return o;o=r(o)}while(o)}let tZ={[u]:0,[d]:1,[c]:2};class t0 extends tu{constructor(e,t){super(),this._init=()=>{let e=this._win(),t=e.document;t.addEventListener(o.Oy,this._onFocusIn,!0),t.addEventListener(o.RY,this._onFocusOut,!0),e.addEventListener("keydown",this._onKeyDown,!0);let n=ep.getActiveElement(t);n&&n!==t.body&&this._setFocusedElement(n),this.subscribe(this._onChanged)},this._onFocusIn=e=>{let t=e.composedPath()[0];t&&this._setFocusedElement(t,e.detail.relatedTarget,e.detail.isFocusedProgrammatically)},this._onFocusOut=e=>{var t;this._setFocusedElement(void 0,null==(t=e.detail)?void 0:t.originalEvent.relatedTarget)},this._validateFocusedElement=e=>{},this._onKeyDown=e=>{if(e.key!==tV||e.ctrlKey)return;let t=this.getVal();if(!t||!t.ownerDocument||"true"===t.contentEditable)return;let n=this._tabster,r=n.controlTab,a=e7.getTabsterContext(n,t);if(!a||a.ignoreKeydown(e))return;let s=e.shiftKey,l=t0.findNextTabbable(n,a,void 0,t,void 0,s,!0),c=a.root.getElement();if(!c)return;let u=null==l?void 0:l.element,d=tJ(n,t);if(u){let p=l.uncontrolled;if(a.uncontrolled||ep.nodeContains(p,t)){if(!l.outOfDOMOrder&&p===a.uncontrolled||d&&!ep.nodeContains(d,u))return;eX.addPhantomDummyWithTarget(n,t,s,u);return}if(p||"IFRAME"===u.tagName){c.dispatchEvent(new en({by:"root",owner:c,next:u,relatedEvent:e}))&&eX.moveWithPhantomDummy(this._tabster,null!=p?p:u,!1,s,e);return}(r||(null==l?void 0:l.outOfDOMOrder))&&c.dispatchEvent(new en({by:"root",owner:c,next:u,relatedEvent:e}))&&(e.preventDefault(),e.stopImmediatePropagation(),(0,o.kG)(u))}else!d&&c.dispatchEvent(new en({by:"root",owner:c,next:null,relatedEvent:e}))&&a.root.moveOutWithDefaultAction(s,e)},this._onChanged=(e,t)=>{var n,r;if(e)e.dispatchEvent(new ee(t));else{let e=null==(n=this._lastVal)?void 0:n.get();if(e){let n={...t},o=e7.getTabsterContext(this._tabster,e),a=null==(r=null==o?void 0:o.modalizer)?void 0:r.userId;a&&(n.modalizerId=a),e.dispatchEvent(new et(n))}}},this._tabster=e,this._win=t,e.queueInit(this._init)}dispose(){super.dispose();let e=this._win(),t=e.document;t.removeEventListener(o.Oy,this._onFocusIn,!0),t.removeEventListener(o.RY,this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);let n=this._asyncFocus;n&&(e.clearTimeout(n.timeout),delete this._asyncFocus),delete t0._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,t){var n,r;let o=t0._lastResetElement,a=o&&o.get();a&&ep.nodeContains(t,a)&&delete t0._lastResetElement,(a=null==(r=null==(n=e._nextVal)?void 0:n.element)?void 0:r.get())&&ep.nodeContains(t,a)&&delete e._nextVal,(a=(o=e._lastVal)&&o.get())&&ep.nodeContains(t,a)&&delete e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var e;let t=null==(e=this._lastVal)?void 0:e.get();return t&&(!t||eO(t.ownerDocument,t))||(this._lastVal=t=void 0),t}focus(e,t,n,r){return!!this._tabster.focusable.isFocusable(e,t,!1,n)&&(e.focus({preventScroll:r}),!0)}focusDefault(e){let t=this._tabster.focusable.findDefault({container:e});return!!t&&(this._tabster.focusedElement.focus(t),!0)}getFirstOrLastTabbable(e,t){var n;let r,{container:o,ignoreAccessibility:a}=t;if(o){let t=e7.getTabsterContext(this._tabster,o);t&&(r=null==(n=t0.findNextTabbable(this._tabster,t,o,void 0,void 0,!e,a))?void 0:n.element)}return r&&!ep.nodeContains(o,r)&&(r=void 0),r||void 0}_focusFirstOrLast(e,t){let n=this.getFirstOrLastTabbable(e,t);return!!n&&(this.focus(n,!1,!0),!0)}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{let t=e.getAttribute("tabindex"),n=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),t0._lastResetElement=new ek(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",t),this._setOrRemoveAttribute(e,"aria-hidden",n)}return!0}requestAsyncFocus(e,t,n){let r=this._tabster.getWindow(),o=this._asyncFocus;if(o){if(tZ[e]>tZ[o.source])return;r.clearTimeout(o.timeout)}this._asyncFocus={source:e,callback:t,timeout:r.setTimeout(()=>{this._asyncFocus=void 0,t()},n)}}cancelAsyncFocus(e){let t=this._asyncFocus;(null==t?void 0:t.source)===e&&(this._tabster.getWindow().clearTimeout(t.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(e,t,n){null===n?e.removeAttribute(t):e.setAttribute(t,n)}_setFocusedElement(e,t,n){var r,o;if(this._tabster._noop)return;let a={relatedTarget:t};if(e){let t=null==(r=t0._lastResetElement)?void 0:r.get();if(t0._lastResetElement=void 0,t===e||eR(e))return;a.isFocusedProgrammatically=n;let s=e7.getTabsterContext(this._tabster,e),l=null==(o=null==s?void 0:s.modalizer)?void 0:o.userId;l&&(a.modalizerId=l)}let s=this._nextVal={element:e?new ek(this._win,e):void 0,detail:a};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===s&&this.setVal(e,a),this._nextVal=void 0}setVal(e,t){super.setVal(e,t),e&&(this._lastVal=new ek(this._win,e))}static findNextTabbable(e,t,n,r,o,a,s){let l=n||t.root.getElement();if(!l)return null;let c=null,u=t0._isTabbingTimer,d=e.getWindow();u&&d.clearTimeout(u),t0.isTabbing=!0,t0._isTabbingTimer=d.setTimeout(()=>{delete t0._isTabbingTimer,t0.isTabbing=!1},0);let p=t.modalizer,f=t.groupper,h=t.mover,m=t=>{if(c=t.findNextTabbable(r,o,a,s),r&&!(null==c?void 0:c.element)){let o=t!==p&&ep.getParentElement(t.getElement());if(o){let l=e7.getTabsterContext(e,r,{referenceElement:o});if(l){let r=t.getElement(),u=a?r:r&&eQ(r)||r;u&&(c=t0.findNextTabbable(e,l,n,u,o,a,s))&&(c.outOfDOMOrder=!0)}}}};if(f&&h)m(t.groupperBeforeMover?f:h);else if(f)m(f);else if(h)m(h);else if(p)m(p);else{let t={container:l,currentElement:r,referenceElement:o,ignoreAccessibility:s,useActiveModalizer:!0},n={};c={element:e.focusable[a?"findPrev":"findNext"](t,n),outOfDOMOrder:n.outOfDOMOrder,uncontrolled:n.uncontrolled}}return c}}t0.isTabbing=!1;class t1 extends eX{constructor(e,t,n,r){super(n,e,eK,r,!0),this._setHandlers((r,a,s)=>{var l,c;let u=e.get(),d=r.input;if(u&&d){let e=e7.getTabsterContext(n,d);if(e){let p;(p=null==(l=t.findNextTabbable(s||void 0,void 0,a,!0))?void 0:l.element)||(p=null==(c=t0.findNextTabbable(n,e,void 0,r.isOutside?d:eJ(u,!a),void 0,a,!0))?void 0:c.element),p&&(0,o.kG)(p)}}})}}class t2 extends eU{constructor(e,t,n,r,o){super(e,t,r),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=n,e.controlTab||(this.dummyManager=new t1(this._element,this,e,o))}dispose(){var e;this._onDispose(this),this._element.get(),null==(e=this.dummyManager)||e.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(e,t,n,r){let o,a=this.getElement();if(!a)return null;let s=e5(e)===a;if(!this._shouldTabInside&&e&&ep.nodeContains(a,e)&&!s)return{element:void 0,outOfDOMOrder:!0};let l=this.getFirst(!0);if(!e||!ep.nodeContains(a,e)||s)return{element:l,outOfDOMOrder:!0};let c=this._tabster,u=null,d=!1;if(this._shouldTabInside&&l){let s={container:a,currentElement:e,referenceElement:t,ignoreAccessibility:r,useActiveModalizer:!0},l={};u=c.focusable[n?"findPrev":"findNext"](s,l),d=!!l.outOfDOMOrder,u||this._props.tabbability!==R.LimitedTrapFocus||(u=c.focusable[n?"findLast":"findFirst"]({container:a,ignoreAccessibility:r,useActiveModalizer:!0},l),d=!0),o=l.uncontrolled}return{element:u,uncontrolled:o,outOfDOMOrder:d}}makeTabbable(e){this._shouldTabInside=e||!this._props.tabbability}isActive(e){var t;let n=this.getElement()||null,r=!0;for(let e=ep.getParentElement(n);e;e=ep.getParentElement(e)){let n=null==(t=M(this._tabster,e))?void 0:t.groupper;n&&!n._shouldTabInside&&(r=!1)}let o=r?!!this._props.tabbability&&this._shouldTabInside:void 0;if(o&&e){let e=this._tabster.focusedElement.getFocusedElement();e&&(o=e!==this.getFirst(!0))}return o}getFirst(e){var t;let n,r=this.getElement();if(r){if(e&&this._tabster.focusable.isFocusable(r))return r;!(n=null==(t=this._first)?void 0:t.get())&&(n=this._tabster.focusable.findFirst({container:r,useActiveModalizer:!0})||void 0)&&this.setFirst(n)}return n}setFirst(e){e?this._first=new ek(this._tabster.getWindow,e):delete this._first}acceptElement(e,t){let n,r=t.cachedGrouppers,o=ep.getParentElement(this.getElement()),a=o&&e7.getTabsterContext(this._tabster,o),s=null==a?void 0:a.groupper,l=(null==a?void 0:a.groupperBeforeMover)?s:void 0,c=e=>{let t,n=r[e.id];return n?t=n.isActive:(t=this.isActive(!0),n=r[e.id]={isActive:t}),t};if(l&&(n=l.getElement(),!c(l)&&n&&t.container!==n&&ep.nodeContains(t.container,n)))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;let u=c(this),d=this.getElement();if(d&&!0!==u){let o;if(d===e&&s&&(n||(n=s.getElement()),n&&!c(s)&&ep.nodeContains(t.container,n)&&n!==t.container)||d!==e&&ep.nodeContains(d,e))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;let a=r[this.id];if((o="first"in a?a.first:a.first=this.getFirst(!0))&&t.acceptCondition(o))return(t.rejectElementsFrom=d,t.skippedFocusable=!0,o!==t.from)?(t.found=!0,t.foundElement=o,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class t5{constructor(e,t){this._current={},this._grouppers={},this._init=()=>{let e=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus);let t=e.document,n=ep.getActiveElement(t);n&&this._onFocus(n),t.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),e.addEventListener(K,this._onMoveFocus)},this._onGroupperDispose=e=>{delete this._grouppers[e.id]},this._onFocus=e=>{e&&this._updateCurrent(e)},this._onMouseDown=e=>{let t=e.target;for(;t&&!this._tabster.focusable.isFocusable(t);)t=this._tabster.getParent(t);t&&this._updateCurrent(t)},this._onKeyDown=e=>{if(e.key!==tU&&e.key!==tj||e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)return;let t=this._tabster.focusedElement.getFocusedElement();t&&this.handleKeyPress(t,e)},this._onMoveFocus=e=>{var t;let n=e.composedPath()[0],r=null==(t=e.detail)?void 0:t.action;n&&void 0!==r&&!e.defaultPrevented&&(r===N.Enter?this._enterGroupper(n):this._escapeGroupper(n),e.stopImmediatePropagation())},this._tabster=e,this._win=t,e.queueInit(this._init)}dispose(){let e=this._win();this._tabster.focusedElement.cancelAsyncFocus(c),this._current={},this._updateTimer&&(e.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),e.document.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),e.removeEventListener(K,this._onMoveFocus),Object.keys(this._grouppers).forEach(e=>{this._grouppers[e]&&(this._grouppers[e].dispose(),delete this._grouppers[e])})}createGroupper(e,t,n){let r=this._tabster,o=new t2(r,e,this._onGroupperDispose,t,n);this._grouppers[o.id]=o;let a=r.focusedElement.getFocusedElement();return a&&ep.nodeContains(e,a)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,a===r.focusedElement.getFocusedElement()&&this._updateCurrent(a)},0)),o}forgetCurrentGrouppers(){this._current={}}_updateCurrent(e){var t;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);let n=this._tabster,r={};for(let o=n.getParent(e);o;o=n.getParent(o)){let a=null==(t=M(n,o))?void 0:t.groupper;if(a){r[a.id]=!0,this._current[a.id]=a;let t=a.isActive()||e!==o&&(!a.getProps().delegated||a.getFirst(!1)!==e);a.makeTabbable(t)}}for(let e of Object.keys(this._current)){let t=this._current[e];t.id in r||(t.makeTabbable(!1),t.setFirst(void 0),delete this._current[e])}}_enterGroupper(e,t){let n=this._tabster,r=e7.getTabsterContext(n,e),o=(null==r?void 0:r.groupper)||(null==r?void 0:r.modalizerInGroupper),a=null==o?void 0:o.getElement();if(o&&a&&(e===a||o.getProps().delegated&&e===o.getFirst(!1))){let r=n.focusable.findNext({container:a,currentElement:e,useActiveModalizer:!0});if(r&&(!t||t&&a.dispatchEvent(new en({by:"groupper",owner:a,next:r,relatedEvent:t}))))return t&&(t.preventDefault(),t.stopImmediatePropagation()),r.focus(),r}return null}_escapeGroupper(e,t,n){let r=this._tabster,o=e7.getTabsterContext(r,e),a=(null==o?void 0:o.groupper)||(null==o?void 0:o.modalizerInGroupper),s=null==a?void 0:a.getElement();if(a&&s&&ep.nodeContains(s,e)){let o;if(e!==s||n)o=a.getFirst(!0);else{let e=ep.getParentElement(s),t=e?e7.getTabsterContext(r,e):void 0;o=null==(a=null==t?void 0:t.groupper)?void 0:a.getFirst(!0)}if(o&&(!t||t&&s.dispatchEvent(new en({by:"groupper",owner:s,next:o,relatedEvent:t}))))return a&&a.makeTabbable(!1),o.focus(),o}return null}moveFocus(e,t){return t===N.Enter?this._enterGroupper(e):this._escapeGroupper(e)}handleKeyPress(e,t,n){let r=this._tabster,o=e7.getTabsterContext(r,e);if(o&&((null==o?void 0:o.groupper)||(null==o?void 0:o.modalizerInGroupper))){if(r.focusedElement.cancelAsyncFocus(c),o.ignoreKeydown(t))return;if(t.key===tU)this._enterGroupper(e,t);else if(t.key===tj){let o=r.focusedElement.getFocusedElement();r.focusedElement.requestAsyncFocus(c,()=>{(o===r.focusedElement.getFocusedElement()||(!n||o)&&n)&&this._escapeGroupper(e,t,n)},0)}}}}class t4 extends tu{constructor(e){super(),this._onChange=e=>{this.setVal(e,void 0)},this._keyborg=(0,o.SQ)(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),(0,o.bd)(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(e){var t;null==(t=this._keyborg)||t.setVal(e)}isNavigatingWithKeyboard(){var e;return!!(null==(e=this._keyborg)?void 0:e.isNavigatingWithKeyboard())}}let t3=0,t6="aria-hidden";class t8 extends eX{constructor(e,t,n){super(t,e,eq,n),this._setHandlers((n,r)=>{var a,s;let l,c=e.get(),u=c&&(null==(a=e7.getRoot(t,c))?void 0:a.getElement()),d=n.input;if(u&&d){let e=e5(d),n=e7.getTabsterContext(t,e||d);n&&(l=null==(s=t0.findNextTabbable(t,n,u,d,void 0,r,!0))?void 0:s.element),l&&(0,o.kG)(l)}})}}class t9 extends eU{constructor(e,t,n,r,o,a){super(e,t,r),this._wasFocused=0,this.userId=r.id,this._onDispose=n,this._activeElements=a,e.controlTab||(this.dummyManager=new t8(this._element,e,o))}makeActive(e){if(this._isActive!==e){this._isActive=e;let t=this.getElement();if(t){let n=this._activeElements,r=n.map(e=>e.get()).indexOf(t);e?r<0&&n.push(new ek(this._tabster.getWindow,t)):r>=0&&n.splice(r,1)}this._dispatchEvent(e)}}focused(e){return e||(this._wasFocused=++t3),this._wasFocused}setProps(e){e.id&&(this.userId=e.id),this._props={...e}}dispose(){var e;this.makeActive(!1),this._onDispose(this),null==(e=this.dummyManager)||e.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(e){return ep.nodeContains(this.getElement(),e)}findNextTabbable(e,t,n,r){var o,a;let s;if(!this.getElement())return null;let l=this._tabster,c=null,u=!1,d=e&&(null==(o=e7.getRoot(l,e))?void 0:o.getElement());if(d){let o={container:d,currentElement:e,referenceElement:t,ignoreAccessibility:r,useActiveModalizer:!0},p={};!(c=l.focusable[n?"findPrev":"findNext"](o,p))&&this._props.isTrapped&&(null==(a=l.modalizer)?void 0:a.activeId)?(null===(c=l.focusable[n?"findLast":"findFirst"]({container:d,ignoreAccessibility:r,useActiveModalizer:!0},p))&&(c=e),u=!0):u=!!p.outOfDOMOrder,s=p.uncontrolled}return{element:c,uncontrolled:s,outOfDOMOrder:u}}_dispatchEvent(e,t){let n=this.getElement(),r=!1;if(n){for(let o of t?this._activeElements.map(e=>e.get()):[n])if(o){let t={id:this.userId,element:n},a=e?new ea(t):new es(t);o.dispatchEvent(a),a.defaultPrevented&&(r=!0)}}return r}_remove(){}}class t7{constructor(e,t,n){this._onModalizerDispose=e=>{let t=e.id,n=e.userId,r=this._parts[n];if(delete this._modalizers[t],r&&(delete r[t],0===Object.keys(r).length)){let e;delete this._parts[n];let t=this._activationHistory,r=[];for(let o=t.length;o--;){let a=t[o];a!==n&&a!==e&&(e=a,(a||r.length>0)&&r.unshift(a))}if(this._activationHistory=r,this.activeId===n){let e=r[0],t=e?Object.values(this._parts[e])[0]:void 0;this.setActive(t)}}},this._onKeyDown=e=>{var t;if(e.key!==tj)return;let n=this._tabster,r=n.focusedElement.getFocusedElement();if(r){let o=e7.getTabsterContext(n,r),a=null==o?void 0:o.modalizer;if(o&&!o.groupper&&(null==a?void 0:a.isActive())&&!o.ignoreKeydown(e)){let r=a.userId;if(r){let o=this._parts[r];if(o){let r=Object.keys(o).map(e=>{var t;let r,a=o[e],s=a.getElement();return s&&(r=null==(t=M(n,s))?void 0:t.groupper),a&&s&&r?{el:s,focusedSince:a.focused(!0)}:{focusedSince:0}}).filter(e=>e.focusedSince>0).sort((e,t)=>e.focusedSince>t.focusedSince?-1:+(e.focusedSince<t.focusedSince));if(r.length){let o=r[0].el;o&&(null==(t=n.groupper)||t.handleKeyPress(o,e,!0))}}}}}},this._onFocus=(e,t)=>{var n;let r=this._tabster,o=e&&e7.getTabsterContext(r,e);if(!o||!e)return;let a=this._augMap;for(let t=e;t;t=r.getParent(t))a.has(t)&&(a.delete(t),eZ(r,t,t6));let s=o.modalizer,l=M(r,e),c=null==l?void 0:l.modalizer;if(c&&(c.focused(),c.userId===this.activeId&&l.groupper)){let t=r.getParent(e),o=t&&(null==(n=e7.getTabsterContext(r,t))?void 0:n.modalizer);if(!o)return void this.setActive(void 0);s=o}if(null==s||s.focused(),(null==s?void 0:s.userId)===this.activeId){this.currentIsOthersAccessible=null==s?void 0:s.getProps().isOthersAccessible;return}if(t.isFocusedProgrammatically||this.currentIsOthersAccessible||(null==s?void 0:s.getProps().isAlwaysAccessible))this.setActive(s);else{let t=this._win();t.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=t.setTimeout(()=>this._restoreModalizerFocus(e),100)}},this._tabster=e,this._win=e.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=t,this._accessibleCheck=n,this._activationHistory=[],this.activeElements=[],e.controlTab||e.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){let e=this._win();e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(e=>{this._modalizers[e]&&(this._modalizers[e].dispose(),delete this._modalizers[e])}),e.clearTimeout(this._restoreModalizerFocusTimer),e.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(e,t,n){var r;let o=new t9(this._tabster,e,this._onModalizerDispose,t,n,this.activeElements),a=o.id,s=t.id;this._modalizers[a]=o;let l=this._parts[s];l||(l=this._parts[s]={}),l[a]=o;let c=null!=(r=this._tabster.focusedElement.getFocusedElement())?r:null;return e!==c&&ep.nodeContains(e,c)&&(s!==this.activeId?this.setActive(o):o.makeActive(!0)),o}isAugmented(e){return this._augMap.has(e)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(e){let t=null==e?void 0:e.userId,n=this.activeId;if(n===t)return;if(this.activeId=t,n){let e=this._parts[n];if(e)for(let t of Object.keys(e))e[t].makeActive(!1)}if(t){let e=this._parts[t];if(e)for(let t of Object.keys(e))e[t].makeActive(!0)}this.currentIsOthersAccessible=null==e?void 0:e.getProps().isOthersAccessible,this.hiddenUpdate();let r=this._activationHistory;r[0]!==t&&(void 0!==t||r.length>0)&&r.unshift(t)}focus(e,t,n){let r=this._tabster,o=e7.getTabsterContext(r,e),a=null==o?void 0:o.modalizer;if(a){this.setActive(a);let e=a.getProps(),o=a.getElement();if(o){if(void 0===t&&(t=e.isNoFocusFirst),!t&&r.keyboardNavigation.isNavigatingWithKeyboard()&&r.focusedElement.focusFirst({container:o})||(void 0===n&&(n=e.isNoFocusDefault),!n&&r.focusedElement.focusDefault(o)))return!0;r.focusedElement.resetFocus(o)}}return!1}activate(e){var t;let n=e?null==(t=e7.getTabsterContext(this._tabster,e))?void 0:t.modalizer:void 0;return(!e||!!n)&&(this.setActive(n),!0)}acceptElement(e,t){var n;let r=t.modalizerUserId,o=null==(n=t.currentCtx)?void 0:n.modalizer;if(r)for(let t of this.activeElements){let n=t.get();if(n&&(ep.nodeContains(e,n)||n===e))return NodeFilter.FILTER_SKIP}let a=r===(null==o?void 0:o.userId)||!r&&(null==o?void 0:o.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return void 0!==a&&(t.skippedFocusable=!0),a}_hiddenUpdate(){var e;let t=this._tabster,n=t.getWindow().document.body,r=this.activeId,o=this._parts,a=[],s=[],l=this._alwaysAccessibleSelector,c=l?Array.from(ep.querySelectorAll(n,l)):[],u=[];for(let e of Object.keys(o)){let t=o[e];for(let n of Object.keys(t)){let o=t[n],l=o.getElement(),d=o.getProps().isAlwaysAccessible;l&&(e===r?(u.push(l),this.currentIsOthersAccessible||a.push(l)):d?c.push(l):s.push(l))}}let d=this._augMap,p=a.length>0?[...a,...c]:void 0,f=[],h=new WeakMap,m=(e,n)=>{var r;let o=e.tagName;if("SCRIPT"===o||"STYLE"===o)return;let a=!1;d.has(e)?n?a=!0:(d.delete(e),eZ(t,e,t6)):n&&!(null==(r=this._accessibleCheck)?void 0:r.call(this,e,u))&&eZ(t,e,t6,"true")&&(d.set(e,!0),a=!0),a&&(f.push(new ek(t.getWindow,e)),h.set(e,!0))},g=e=>{var n;for(let r=ep.getFirstElementChild(e);r;r=ep.getNextElementSibling(r)){let e=!1,o=!1,a=!1;if(p){let s=t.getParent(r);for(let t of p){if(r===t){e=!0;break}if(ep.nodeContains(r,t)){o=!0;break}ep.nodeContains(t,s)&&(a=!0)}o||(null==(n=r.__tabsterElementFlags)?void 0:n.noDirectAriaHidden)?g(r):e||a||m(r,!0)}else m(r,!1)}};p||c.forEach(e=>m(e,!1)),s.forEach(e=>m(e,!0)),n&&g(n),null==(e=this._aug)||e.map(e=>e.get()).forEach(e=>{e&&!h.get(e)&&m(e,!1)}),this._aug=f,this._augMap=h}_restoreModalizerFocus(e){let t=null==e?void 0:e.ownerDocument;if(!e||!t)return;let n=this._tabster,r=e7.getTabsterContext(n,e),o=null==r?void 0:r.modalizer,a=this.activeId;if(!o&&!a||o&&a===o.userId)return;let s=null==r?void 0:r.root.getElement();if(s){let t=n.focusable.findFirst({container:s,useActiveModalizer:!0});if(t){if(e.compareDocumentPosition(t)&document.DOCUMENT_POSITION_PRECEDING&&!(t=n.focusable.findLast({container:s,useActiveModalizer:!0})))throw Error("Something went wrong.");n.focusedElement.focus(t);return}}e.blur()}}let ne="input, textarea, *[contenteditable]";class nt extends eX{constructor(e,t,n,r){super(t,e,eG,r),this._onFocusDummyInput=e=>{var t,n;let r=this._element.get(),a=e.input;if(r&&a){let s,l=e7.getTabsterContext(this._tabster,r);l&&(s=null==(t=t0.findNextTabbable(this._tabster,l,void 0,a,void 0,!e.isFirst,!0))?void 0:t.element);let c=null==(n=this._getMemorized())?void 0:n.get();c&&this._tabster.focusable.isFocusable(c)&&(s=c),s&&(0,o.kG)(s)}},this._tabster=t,this._getMemorized=n,this._setHandlers(this._onFocusDummyInput)}}let nn=1,nr=2,no=3;class ni extends eU{constructor(e,t,n,r,o){var a;super(e,t,r),this._visible={},this._onIntersection=e=>{for(let t of e){let e,n=t.target,r=eB(this._win,n),o=this._fullyVisible;if(t.intersectionRatio>=.25?(e=t.intersectionRatio>=.75?I:P)===I&&(o=r):e=E,this._visible[r]!==e){void 0===e?(delete this._visible[r],o===r&&delete this._fullyVisible):(this._visible[r]=e,this._fullyVisible=o);let t=this.getState(n);t&&n.dispatchEvent(new er(t))}}},this._win=e.getWindow,this.visibilityTolerance=null!=(a=r.visibilityTolerance)?a:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=n;const s=()=>r.memorizeCurrent?this._current:void 0;e.controlTab||(this.dummyManager=new nt(this._element,e,s,o))}dispose(){var e;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);let t=this._win();this._setCurrentTimer&&(t.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),null==(e=this.dummyManager)||e.dispose(),delete this.dummyManager}setCurrent(e){e?this._current=new ek(this._win,e):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var e;delete this._setCurrentTimer;let t=[];for(let n of(this._current!==this._prevCurrent&&(t.push(this._current),t.push(this._prevCurrent),this._prevCurrent=this._current),t)){let t=null==n?void 0:n.get();if(t&&(null==(e=this._allElements)?void 0:e.get(t))===this){let e=this._props;if(t&&(void 0!==e.visibilityAware||e.trackState)){let e=this.getState(t);e&&t.dispatchEvent(new er(e))}}}}))}getCurrent(){var e;return(null==(e=this._current)?void 0:e.get())||null}findNextTabbable(e,t,n,r){let o,a=this.getElement(),s=a&&e5(e)===a;if(!a)return null;let l=null,c=!1;if(this._props.tabbable||s||e&&!ep.nodeContains(a,e)){let s={currentElement:e,referenceElement:t,container:a,ignoreAccessibility:r,useActiveModalizer:!0},u={};l=this._tabster.focusable[n?"findPrev":"findNext"](s,u),c=!!u.outOfDOMOrder,o=u.uncontrolled}return{element:l,uncontrolled:o,outOfDOMOrder:c}}acceptElement(e,t){var n,r;if(!t0.isTabbing)return(null==(n=t.currentCtx)?void 0:n.excludedFromMover)?NodeFilter.FILTER_REJECT:void 0;let{memorizeCurrent:o,visibilityAware:a,hasDefault:s=!0}=this._props,l=this.getElement();if(l&&(o||a||s)&&(!ep.nodeContains(l,t.from)||e5(t.from)===l)){let e;if(o){let n=null==(r=this._current)?void 0:r.get();n&&t.acceptCondition(n)&&(e=n)}if(!e&&s&&(e=this._tabster.focusable.findDefault({container:l,useActiveModalizer:!0})),!e&&a&&(e=this._tabster.focusable.findElement({container:l,useActiveModalizer:!0,isBackward:t.isBackward,acceptCondition:e=>{var n;let r=eB(this._win,e),o=this._visible[r];return l!==e&&!!(null==(n=this._allElements)?void 0:n.get(e))&&t.acceptCondition(e)&&(o===I||o===P&&(a===P||!this._fullyVisible))}})),e)return t.found=!0,t.foundElement=e,t.rejectElementsFrom=l,t.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){let e=this.getElement();if(this._unobserve||!e||"u"<typeof MutationObserver)return;let t=this._win(),n=this._allElements=new WeakMap,r=this._tabster.focusable,o=this._updateQueue=[],a=ep.createMutationObserver(e=>{for(let t of e){let e=t.target,n=t.removedNodes,r=t.addedNodes;if("attributes"===t.type)"tabindex"===t.attributeName&&o.push({element:e,type:nr});else{for(let e=0;e<n.length;e++)o.push({element:n[e],type:no});for(let e=0;e<r.length;e++)o.push({element:r[e],type:nn})}}d()}),s=(e,t)=>{var r,o;let a=n.get(e);a&&t&&(null==(r=this._intersectionObserver)||r.unobserve(e),n.delete(e)),a||t||(n.set(e,this),null==(o=this._intersectionObserver)||o.observe(e))},l=e=>{let t=r.isFocusable(e);n.get(e)?t||s(e,!0):t&&s(e)},c=e=>{let{mover:n}=p(e);if(n&&n!==this)if(!(n.getElement()===e&&r.isFocusable(e)))return;else s(e);let o=eE(t.document,e,e=>{let{mover:t,groupper:n}=p(e);if(t&&t!==this)return NodeFilter.FILTER_REJECT;let o=null==n?void 0:n.getFirst(!0);return n&&n.getElement()!==e&&o&&o!==e?NodeFilter.FILTER_REJECT:(r.isFocusable(e)&&s(e),NodeFilter.FILTER_SKIP)});if(o)for(o.currentNode=e;o.nextNode(););},u=e=>{n.get(e)&&s(e,!0);for(let t=ep.getFirstElementChild(e);t;t=ep.getNextElementSibling(t))u(t)},d=()=>{!this._updateTimer&&o.length&&(this._updateTimer=t.setTimeout(()=>{for(let{element:e,type:t}of(delete this._updateTimer,o))switch(t){case nr:l(e);break;case nn:c(e);break;case no:u(e)}o=this._updateQueue=[]},0))},p=e=>{let t={};for(let n=e;n;n=ep.getParentElement(n)){let e=M(this._tabster,n);if(e&&(e.groupper&&!t.groupper&&(t.groupper=e.groupper),e.mover)){t.mover=e.mover;break}}return t};o.push({element:e,type:nn}),d(),a.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{a.disconnect()}}getState(e){let t=eB(this._win,e);if(t in this._visible){let n=this._visible[t]||E;return{isCurrent:this._current?this._current.get()===e:void 0,visibility:n}}}}function na(e,t,n,r,o,a,s,l){let c=n<o?o-n:s<e?e-s:0,u=r<a?a-r:l<t?t-l:0;return 0===c?u:0===u?c:Math.sqrt(c*c+u*u)}class ns{constructor(e,t){this._init=()=>{let e=this._win();e.addEventListener("keydown",this._onKeyDown,!0),e.addEventListener(q,this._onMoveFocus),e.addEventListener(G,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=e=>{delete this._movers[e.id]},this._onFocus=e=>{var t;let n=e,r=e;for(let o=ep.getParentElement(e);o;o=ep.getParentElement(o)){let e=null==(t=M(this._tabster,o))?void 0:t.mover;e&&(e.setCurrent(r),n=void 0),!n&&this._tabster.focusable.isFocusable(o)&&(n=r=o)}},this._onKeyDown=async e=>{var t;let n;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),null==(t=this._ignoredInputResolve)||t.call(this,!1),e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)return;let r=e.key;if(r===tQ?n=A.ArrowDown:r===t$?n=A.ArrowRight:r===tY?n=A.ArrowUp:r===tX?n=A.ArrowLeft:r===tq?n=A.PageDown:r===tW?n=A.PageUp:r===tK?n=A.Home:r===tG&&(n=A.End),!n)return;let o=this._tabster.focusedElement.getFocusedElement();!o||await this._isIgnoredInput(o,r)||this._moveFocus(o,n,e)},this._onMoveFocus=e=>{var t;let n=e.composedPath()[0],r=null==(t=e.detail)?void 0:t.key;n&&void 0!==r&&!e.defaultPrevented&&(this._moveFocus(n,r),e.stopImmediatePropagation())},this._onMemorizedElement=e=>{var t;let n=e.composedPath()[0],r=null==(t=e.detail)?void 0:t.memorizedElement;if(n){let t=e7.getTabsterContext(this._tabster,n),o=null==t?void 0:t.mover;o&&(r&&!ep.nodeContains(o.getElement(),r)&&(r=void 0),o.setCurrent(r),e.stopImmediatePropagation())}},this._tabster=e,this._win=t,this._movers={},e.queueInit(this._init)}dispose(){var e;let t=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),null==(e=this._ignoredInputResolve)||e.call(this,!1),this._ignoredInputTimer&&(t.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(q,this._onMoveFocus),t.removeEventListener(G,this._onMemorizedElement),Object.keys(this._movers).forEach(e=>{this._movers[e]&&(this._movers[e].dispose(),delete this._movers[e])})}createMover(e,t,n){let r=new ni(this._tabster,e,this._onMoverDispose,t,n);return this._movers[r.id]=r,r}moveFocus(e,t){return this._moveFocus(e,t)}_moveFocus(e,t,n){var r,a;let s,l,c,u=this._tabster,d=e7.getTabsterContext(u,e,{checkRtl:!0});if(!d||!d.mover||d.excludedFromMover||n&&d.ignoreKeydown(n))return null;let p=d.mover,f=p.getElement();if(d.groupperBeforeMover){let e=d.groupper;if(!e||e.isActive(!0))return null;for(let t=ep.getParentElement(e.getElement());t&&t!==f;t=ep.getParentElement(t))if(null==(a=null==(r=M(u,t))?void 0:r.groupper)?void 0:a.isActive(!0))return null}if(!f)return null;let h=u.focusable,m=p.getProps(),g=m.direction||D.Both,v=g===D.Both,y=v||g===D.Vertical,b=v||g===D.Horizontal,x=g===D.GridLinear,C=x||g===D.Grid,k=m.cyclic,w=0,S=0;if(C&&(w=Math.ceil((c=e.getBoundingClientRect()).left),S=Math.floor(c.right)),d.rtl&&(t===A.ArrowRight?t=A.ArrowLeft:t===A.ArrowLeft&&(t=A.ArrowRight)),t===A.ArrowDown&&y||t===A.ArrowRight&&(b||C))if((s=h.findNext({currentElement:e,container:f,useActiveModalizer:!0}))&&C){let e=Math.ceil(s.getBoundingClientRect().left);!x&&S>e&&(s=void 0)}else!s&&k&&(s=h.findFirst({container:f,useActiveModalizer:!0}));else if(t===A.ArrowUp&&y||t===A.ArrowLeft&&(b||C))if((s=h.findPrev({currentElement:e,container:f,useActiveModalizer:!0}))&&C){let e=Math.floor(s.getBoundingClientRect().right);!x&&e>w&&(s=void 0)}else!s&&k&&(s=h.findLast({container:f,useActiveModalizer:!0}));else if(t===A.Home)C?h.findElement({container:f,currentElement:e,useActiveModalizer:!0,isBackward:!0,acceptCondition:t=>{var n;if(!h.isFocusable(t))return!1;let r=Math.ceil(null!=(n=t.getBoundingClientRect().left)?n:0);return t!==e&&w<=r||(s=t,!1)}}):s=h.findFirst({container:f,useActiveModalizer:!0});else if(t===A.End)C?h.findElement({container:f,currentElement:e,useActiveModalizer:!0,acceptCondition:t=>{var n;if(!h.isFocusable(t))return!1;let r=Math.ceil(null!=(n=t.getBoundingClientRect().left)?n:0);return t!==e&&w>=r||(s=t,!1)}}):s=h.findLast({container:f,useActiveModalizer:!0});else if(t===A.PageUp){if(h.findElement({currentElement:e,container:f,useActiveModalizer:!0,isBackward:!0,acceptCondition:e=>!!h.isFocusable(e)&&(!eI(this._win,e,p.visibilityTolerance)||(s=e,!1))}),C&&s){let e=Math.ceil(s.getBoundingClientRect().left);h.findElement({currentElement:s,container:f,useActiveModalizer:!0,acceptCondition:t=>{if(!h.isFocusable(t))return!1;let n=Math.ceil(t.getBoundingClientRect().left);return w<n||e>=n||(s=t,!1)}})}l=!1}else if(t===A.PageDown){if(h.findElement({currentElement:e,container:f,useActiveModalizer:!0,acceptCondition:e=>!!h.isFocusable(e)&&(!eI(this._win,e,p.visibilityTolerance)||(s=e,!1))}),C&&s){let e=Math.ceil(s.getBoundingClientRect().left);h.findElement({currentElement:s,container:f,useActiveModalizer:!0,isBackward:!0,acceptCondition:t=>{if(!h.isFocusable(t))return!1;let n=Math.ceil(t.getBoundingClientRect().left);return w>n||e<=n||(s=t,!1)}})}l=!0}else if(C){let n,r,o=t===A.ArrowUp,a=w,l=Math.ceil(c.top),u=S,d=Math.floor(c.bottom),p=0;h.findAll({container:f,currentElement:e,isBackward:o,onElement:e=>{let t=e.getBoundingClientRect(),s=Math.ceil(t.left),c=Math.ceil(t.top),f=Math.floor(t.right),h=Math.floor(t.bottom);if(o&&l<h||!o&&d>c)return!0;let m=Math.ceil(Math.min(u,f))-Math.floor(Math.max(a,s)),g=Math.ceil(Math.min(u-a,f-s));if(m>0&&g>=m){let t=m/g;t>p&&(n=e,p=t)}else if(0===p){let t=na(a,l,u,d,s,c,f,h);(void 0===r||t<r)&&(r=t,n=e)}else if(p>0)return!1;return!0}}),s=n}return s&&(!n||n&&f.dispatchEvent(new en({by:"mover",owner:f,next:s,relatedEvent:n})))?(void 0!==l&&eT(this._win,s,l),n&&(n.preventDefault(),n.stopImmediatePropagation()),(0,o.kG)(s),s):null}async _isIgnoredInput(e,t){if("true"===e.getAttribute("aria-expanded")&&e.hasAttribute("aria-activedescendant"))return!0;if(eL(e,ne)){let n,r=0,o=0,a=0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName){let n=e.type;if(a=(e.value||"").length,"email"===n||"number"===n){if(a){let n=ep.getSelection(e);if(n){let e=n.toString().length,r=t===tX||t===tY;if(n.modify("extend",r?"backward":"forward","character"),e!==n.toString().length)return n.modify("extend",r?"forward":"backward","character"),!0;a=0}}}else{let t=e.selectionStart;if(null===t)return"hidden"===n;r=t||0,o=e.selectionEnd||0}}else"true"===e.contentEditable&&(n=new(eH(this._win))(t=>{this._ignoredInputResolve=e=>{delete this._ignoredInputResolve,t(e)};let n=this._win();this._ignoredInputTimer&&n.clearTimeout(this._ignoredInputTimer);let{anchorNode:s,focusNode:l,anchorOffset:c,focusOffset:u}=ep.getSelection(e)||{};this._ignoredInputTimer=n.setTimeout(()=>{var t,n,d;delete this._ignoredInputTimer;let{anchorNode:p,focusNode:f,anchorOffset:h,focusOffset:m}=ep.getSelection(e)||{};if(p!==s||f!==l||h!==c||m!==u){null==(t=this._ignoredInputResolve)||t.call(this,!1);return}if(r=h||0,o=m||0,a=(null==(n=e.textContent)?void 0:n.length)||0,p&&f&&ep.nodeContains(e,p)&&ep.nodeContains(e,f)&&p!==e){let t=!1,n=e=>{if(e===p)t=!0;else if(e===f)return!0;let a=e.textContent;if(a&&!ep.getFirstChild(e)){let e=a.length;t?f!==p&&(o+=e):(r+=e,o+=e)}let s=!1;for(let t=ep.getFirstChild(e);t&&!s;t=t.nextSibling)s=n(t);return s};n(e)}null==(d=this._ignoredInputResolve)||d.call(this,!0)},0)}));if(n&&!await n||r!==o||r>0&&(t===tX||t===tY||t===tK)||r<a&&(t===t$||t===tQ||t===tG))return!0}return!1}}function nl(e,t,n,r){let o;if("u"<typeof MutationObserver)return()=>{};let s=t.getWindow,l=e=>{var r,o,s,l,u;let d=new Set;for(let u of e){let e=u.target,p=u.removedNodes,f=u.addedNodes;if("attributes"===u.type)u.attributeName!==a||d.has(e)||n(t,e);else{for(let n=0;n<p.length;n++){let a=p[n];d.add(a),c(a,!0),null==(o=(r=t._dummyObserver).domChanged)||o.call(r,e)}for(let n=0;n<f.length;n++)c(f[n]),null==(l=(s=t._dummyObserver).domChanged)||l.call(s,e)}}d.clear(),null==(u=t.modalizer)||u.hiddenUpdate()};function c(t,n){o||(o=ev(s).elementByUId),u(t,n);let r=eE(e,t,e=>u(e,n));if(r)for(;r.nextNode(););}function u(e,r){var l;if(!e.getAttribute)return NodeFilter.FILTER_SKIP;let c=e.__tabsterElementUID;return c&&o&&(r?delete o[c]:null!=(l=o[c])||(o[c]=new ek(s,e))),(M(t,e)||e.hasAttribute(a))&&n(t,e,r),NodeFilter.FILTER_SKIP}let d=ep.createMutationObserver(l);return r&&c(s().document.body),d.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[a]}),()=>{d.disconnect()}}let nc=100;class nu extends tu{constructor(e){super(),this._waiting={},this._lastRequestFocusId=0,this._observedById={},this._observedByName={},this._currentRequestTimestamp=0,this._onFocus=e=>{if(e){let e=this._currentRequest;e&&Date.now()-this._currentRequestTimestamp>=300&&(delete this._currentRequest,e.cancel())}},this.onObservedElementUpdate=e=>{var t;let n=null==(t=M(this._tabster,e))?void 0:t.observed,r=eB(this._win,e),o=this._observedById[r];if(n&&eO(e.ownerDocument,e)){o||(o=this._observedById[r]={element:new ek(this._win,e)}),n.names.sort();let t=n.names,a=o.prevNames;this._isObservedNamesUpdated(t,a)&&(a&&a.forEach(e=>{let t=this._observedByName[e];t&&t[r]&&(Object.keys(t).length>1?delete t[r]:delete this._observedByName[e])}),o.prevNames=t),t.forEach(e=>{let t=this._observedByName[e];t||(t=this._observedByName[e]={}),t[r]=o,this._waitConditional(e)})}else if(o){let e=o.prevNames;e&&e.forEach(e=>{let t=this._observedByName[e];t&&t[r]&&(Object.keys(t).length>1?delete t[r]:delete this._observedByName[e])}),delete this._observedById[r]}},this._tabster=e,this._win=e.getWindow,e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){for(let e of(this._tabster.focusedElement.unsubscribe(this._onFocus),Object.keys(this._waiting)))this._rejectWaiting(e);this._observedById={},this._observedByName={}}_rejectWaiting(e,t){let n=this._waiting[e];if(n){let r=this._win();n.timer&&r.clearTimeout(n.timer),n.conditionTimer&&r.clearTimeout(n.conditionTimer),!t&&n.reject?n.reject():t&&n.resolve&&n.resolve(null),delete this._waiting[e]}}_isObservedNamesUpdated(e,t){if(!t||e.length!==t.length)return!0;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!0;return!1}getElement(e,t){let n=this._observedByName[e];if(n)for(let e of Object.keys(n)){let r=n[e].element.get()||null;return r?(t!==f||this._tabster.focusable.isAccessible(r))&&(t!==h||this._tabster.focusable.isFocusable(r,!0))||(r=null):(delete n[e],delete this._observedById[e]),r}return null}waitElement(e,t,n){let r,o=this.getElement(e,n);if(o)return{result:eH(this._win).resolve(o),cancel:()=>{},status:g};let a=(r=n===f?"a":n===h?"f":"_")+e,s=this._waiting[a];if(s&&s.request)return s.request;s=this._waiting[a]={timer:this._win().setTimeout(()=>{s.conditionTimer&&this._win().clearTimeout(s.conditionTimer),delete this._waiting[a],s.request&&(s.request.status=y),s.resolve&&s.resolve(null)},t)};let l={result:new(eH(this._win))((e,t)=>{s.resolve=e,s.reject=t}),cancel:()=>{l.status===m&&(l.status=v),this._rejectWaiting(a,!0)},status:m};return s.request=l,n&&this.getElement(e)&&this._waitConditional(e),l}requestFocus(e,t,n){void 0===n&&(n={});let r=++this._lastRequestFocusId,o=this._currentRequest;o&&o.cancel();let a=this.waitElement(e,t,h);this._currentRequest=a,this._currentRequestTimestamp=Date.now();let s={result:a.result.then(e=>this._lastRequestFocusId===r&&!!e&&this._tabster.focusedElement.focus(e,!0,void 0,n.preventScroll)),cancel:()=>{a.cancel()},status:a.status};return a.result.finally(()=>{this._currentRequest===a&&delete this._currentRequest,s.status=a.status}),s}_waitConditional(e){let t="_"+e,n="a"+e,r="f"+e,o=this._waiting[t],a=this._waiting[n],s=this._waiting[r],l=this._win(),c=(t,n,r,o)=>{var a;let s=null==(a=M(this._tabster,t))?void 0:a.observed;s&&s.names.includes(e)&&(r.timer&&l.clearTimeout(r.timer),delete this._waiting[n],r.request&&(r.request.status=g),r.resolve&&r.resolve(t),this.trigger(t,{names:[e],details:s.details,accessibility:o}))};if(o){let n=this.getElement(e);n&&eO(n.ownerDocument,n)&&c(n,t,o,p)}if(a&&!a.conditionTimer){let t=()=>{let r=this.getElement(e);r&&eO(r.ownerDocument,r)&&this._tabster.focusable.isAccessible(r)?c(r,n,a,f):a.conditionTimer=l.setTimeout(t,nc)};t()}if(s&&!s.conditionTimer){let t=()=>{let n=this.getElement(e);n&&eO(n.ownerDocument,n)&&this._tabster.focusable.isFocusable(n,!0)?c(n,r,s,h):s.conditionTimer=l.setTimeout(t,nc)};t()}}}let nd=null,np=null;class nf{constructor(e,t,n,r){this.left=e,this.top=t,this.right=n,this.bottom=r}equalsTo(e){return this.left===e.left&&this.top===e.top&&this.right===e.right&&this.bottom===e.bottom}clone(){return new nf(this.left,this.top,this.right,this.bottom)}}class nh{constructor(e){this._isVisible=!1,this._allOutlineElements=[],this._init=()=>{this._tabster.keyboardNavigation.subscribe(this._onKeyboardNavigationStateChanged),this._tabster.focusedElement.subscribe(this._onFocus);let e=this._win();e.addEventListener("scroll",this._onScroll,!0),this._fullScreenEventName&&e.document.addEventListener(this._fullScreenEventName,this._onFullScreenChanged)},this._onFullScreenChanged=e=>{if(!this._fullScreenElementName||!e.target)return;let t=e.target.body||e.target,n=this._getDOM(t);if(t.ownerDocument&&n){let e=t.ownerDocument[this._fullScreenElementName];e?(e.appendChild(n.container),this._fullScreenElement=e):(t.ownerDocument.body.appendChild(n.container),this._fullScreenElement=void 0)}},this._onKeyboardNavigationStateChanged=()=>{this._onFocus(this._tabster.focusedElement.getFocusedElement())},this._onFocus=e=>{!this._updateElement(e)&&this._isVisible&&this._setVisibility(!1)},this._onScroll=e=>{this._outlinedElement&&nh._isParentChild(e.target,this._outlinedElement)&&(this._curPos=void 0,this._setOutlinePosition())},this._tabster=e,this._win=e.getWindow,e.queueInit(this._init),"u">typeof document&&("onfullscreenchange"in document?(this._fullScreenEventName="fullscreenchange",this._fullScreenElementName="fullscreenElement"):"onwebkitfullscreenchange"in document?(this._fullScreenEventName="webkitfullscreenchange",this._fullScreenElementName="webkitFullscreenElement"):"onmozfullscreenchange"in document?(this._fullScreenEventName="mozfullscreenchange",this._fullScreenElementName="mozFullScreenElement"):"onmsfullscreenchange"in document&&(this._fullScreenEventName="msfullscreenchange",this._fullScreenElementName="msFullscreenElement"))}setup(e){np={...np,...e};let t=this._win();t.__tabsterOutline||(t.__tabsterOutline={}),t.__tabsterOutline.style||(t.__tabsterOutline.style=nm(t.document,np)),e&&e.areaClass?t.document.body.classList.remove(nd.areaClass):t.document.body.classList.add(nd.areaClass)}dispose(){let e=this._win();this._updateTimer&&(e.clearTimeout(this._updateTimer),this._updateTimer=void 0),this._tabster.keyboardNavigation.unsubscribe(this._onKeyboardNavigationStateChanged),this._tabster.focusedElement.unsubscribe(this._onFocus),e.removeEventListener("scroll",this._onScroll,!0),this._fullScreenEventName&&e.document.removeEventListener(this._fullScreenEventName,this._onFullScreenChanged),this._allOutlineElements.forEach(e=>this._removeDOM(e.container)),this._allOutlineElements=[],delete this._outlinedElement,delete this._curPos,delete this._curOutlineElements,delete this._fullScreenElement}_shouldShowCustomOutline(e){let t=M(this._tabster,e);if(t&&t.outline&&t.outline.isIgnored)return!1;for(let t=e;t;t=t.parentElement)if(t.classList&&t.classList.contains(np.areaClass))return!0;return!1}_updateElement(e){if(this._outlinedElement=void 0,this._updateTimer&&(this._win().clearTimeout(this._updateTimer),this._updateTimer=void 0),this._curPos=void 0,!this._tabster.keyboardNavigation.isNavigatingWithKeyboard())return!1;if(e){if("INPUT"===e.tagName){if(!(e.type in{button:!0,checkbox:!0,file:!0,image:!0,radio:!0,range:!0,reset:!0,submit:!0}))return!1}else if("TEXTAREA"===e.tagName||"true"===e.contentEditable||"IFRAME"===e.tagName)return!1;return!!this._shouldShowCustomOutline(e)&&(this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&(this._outlinedElement=e,this._updateOutline()),!0)}return!1}_updateOutline(){this._setOutlinePosition(),this._updateTimer&&(this._win().clearTimeout(this._updateTimer),this._updateTimer=void 0),this._outlinedElement&&(this._updateTimer=this._win().setTimeout(()=>{this._updateTimer=void 0,this._updateOutline()},30))}_setVisibility(e){this._isVisible=e,this._curOutlineElements&&(e?this._curOutlineElements.container.classList.add(`${np.outlineClass}_visible`):(this._curOutlineElements.container.classList.remove(`${np.outlineClass}_visible`),this._curPos=void 0))}_setOutlinePosition(){if(!this._outlinedElement)return;let e=eP(this._win,this._outlinedElement),t=new nf(e.left,e.top,e.right,e.bottom);if(this._curPos&&t.equalsTo(this._curPos))return;let n=this._getDOM(this._outlinedElement),r=this._outlinedElement.ownerDocument&&this._outlinedElement.ownerDocument.defaultView;if(!n||!r)return;this._curOutlineElements!==n&&(this._setVisibility(!1),this._curOutlineElements=n),this._curPos=t;let o=t.clone(),a=!1,s=!1,l=n.container,c=l&&l.ownerDocument&&l.ownerDocument.scrollingElement;if(!c)return;for(let t=this._outlinedElement.parentElement;t&&t.nodeType===Node.ELEMENT_NODE&&t!==this._fullScreenElement;t=t.parentElement){e=eP(this._win,t);let n=t.ownerDocument&&t.ownerDocument.defaultView;if(!n)return;let r=n.getComputedStyle(t),l=r.position;"absolute"===l?a=!0:("fixed"===l||"sticky"===l)&&(s=!0),"visible"!==r.overflow&&((a||s)&&"hidden"!==r.overflow||(e.left>o.left&&(o.left=e.left),e.top>o.top&&(o.top=e.top),e.right<o.right&&(o.right=e.right),e.bottom<o.bottom&&(o.bottom=e.bottom)))}let u=eP(this._win,c),d=u.left+u.right,p=u.top+u.bottom,f=np.outlineWidth;o.left=o.left>f?o.left-f:0,o.top=o.top>f?o.top-f:0,o.right=o.right<d-f?o.right+f:d,o.bottom=o.bottom<p-f?o.bottom+f:p;let h=o.right-o.left,m=o.bottom-o.top;if(h>2*f&&m>2*f){let e=n.left,t=n.top,a=n.right,c=n.bottom,u=this._fullScreenElement||s?0:r.pageXOffset,d=this._fullScreenElement||s?0:r.pageYOffset;l.style.position=s?"fixed":"absolute",l.style.background=np.outlineColor,e.style.width=a.style.width=t.style.height=c.style.height=np.outlineWidth+"px",e.style.left=t.style.left=c.style.left=o.left+u+"px",a.style.left=o.left+u+h-f+"px",e.style.top=a.style.top=t.style.top=o.top+d+"px",c.style.top=o.top+d+m-f+"px",e.style.height=a.style.height=m+"px",t.style.width=c.style.width=h+"px",this._setVisibility(!0)}else this._setVisibility(!1)}_getDOM(e){let t=e.ownerDocument,n=t&&t.defaultView;if(t&&n&&n.__tabsterOutline){if(n.__tabsterOutline.style||(n.__tabsterOutline.style=nm(t,np)),!n.__tabsterOutline.elements){let e={container:t.createElement("div"),left:t.createElement("div"),top:t.createElement("div"),right:t.createElement("div"),bottom:t.createElement("div")};e.container.className=np.outlineClass,e.left.className=`${np.outlineClass}__left`,e.top.className=`${np.outlineClass}__top`,e.right.className=`${np.outlineClass}__right`,e.bottom.className=`${np.outlineClass}__bottom`,e.container.appendChild(e.left),e.container.appendChild(e.top),e.container.appendChild(e.right),e.container.appendChild(e.bottom),t.body.appendChild(e.container),n.__tabsterOutline.elements=e,this._allOutlineElements.push(e)}return n.__tabsterOutline.elements}}_removeDOM(e){let t=e.ownerDocument&&e.ownerDocument.defaultView,n=t&&t.__tabsterOutline;if(!n)return;n.style&&n.style.parentNode&&(n.style.parentNode.removeChild(n.style),delete n.style);let r=n&&n.elements;r&&(r.container.parentNode&&r.container.parentNode.removeChild(r.container),delete n.elements)}static _isParentChild(e,t){return t===e||!!(e.compareDocumentPosition(t)&document.DOCUMENT_POSITION_CONTAINED_BY)}}function nm(e,t){let n=e.createElement("style");return n.type="text/css",n.appendChild(e.createTextNode(ng(t))),e.head.appendChild(n),n}function ng(e){return`
.${e.areaClass} *, .${e.areaClass} *:focus {
outline: none !important;
}

.${e.outlineClass} {
display: none;
position: absolute;
width: 0;
height: 0;
left: 0;
top: 0;
z-index: ${e.zIndex};
}

.${e.outlineClass}.${e.outlineClass}_visible {
display: block;
}

.${e.outlineClass}__left,
.${e.outlineClass}__top,
.${e.outlineClass}__right,
.${e.outlineClass}__bottom {
position: absolute;
background: inherit;
}`}class nv{constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,t){var n;let r=null==(n=this._isUncontrolledCompletely)?void 0:n.call(this,e,t);return void 0===r?t:r}}class ny extends eU{constructor(e,t,n){var r;if(super(e,t,n),this._hasFocus=!1,this._onFocusOut=e=>{var t;let n=null==(t=this._element)?void 0:t.get();n&&null===e.relatedTarget&&n.dispatchEvent(new ec),n&&!ep.nodeContains(n,e.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===T.Source){const e=null==(r=this._element)?void 0:r.get();null==e||e.addEventListener("focusout",this._onFocusOut),null==e||e.addEventListener("focusin",this._onFocusIn),this._hasFocus=ep.nodeContains(e,e&&ep.getActiveElement(e.ownerDocument))}}dispose(){var e;if(this._props.type===T.Source){let t=null==(e=this._element)?void 0:e.get();null==t||t.removeEventListener("focusout",this._onFocusOut),null==t||t.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&this._tabster.getWindow().document.body.dispatchEvent(new ec)}}}class nb{constructor(e){this._stack=[],this._getWindow=e}push(e){var t;(null==(t=this._stack[this._stack.length-1])?void 0:t.get())!==e&&(this._stack.length>nb.DEPTH&&this._stack.shift(),this._stack.push(new ek(this._getWindow,e)))}pop(e){var t;void 0===e&&(e=()=>!0);let n=this._getWindow().document;for(let r=this._stack.length-1;r>=0;r--){let r=null==(t=this._stack.pop())?void 0:t.get();if(r&&ep.nodeContains(n.body,ep.getParentElement(r))&&e(r))return r}}}nb.DEPTH=10;class nx{constructor(e){this._onRestoreFocus=e=>{var t,n;this._focusedElementState.cancelAsyncFocus(u);let r=e.composedPath()[0];if(r){let e=null==(n=null==(t=M(this._tabster,r))?void 0:t.restorer)?void 0:n.getProps().id;this._focusedElementState.requestAsyncFocus(u,()=>this._restoreFocus(r,e),0)}},this._onFocusIn=e=>{var t;if(!e)return;let n=M(this._tabster,e);(null==(t=null==n?void 0:n.restorer)?void 0:t.getProps().type)===T.Target&&this._history.push(e)},this._restoreFocus=(e,t)=>{var n;let r=this._getWindow().document;if(ep.getActiveElement(r)!==r.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&ep.nodeContains(r.body,e))return;let o=e=>{var t,n;return null==(n=null==(t=M(this._tabster,e))?void 0:t.restorer)?void 0:n.getProps().id};null==(n=this._history.pop(e=>t===o(e)))||n.focus()},this._tabster=e,this._getWindow=e.getWindow,this._getWindow().addEventListener(X,this._onRestoreFocus),this._history=new nb(this._getWindow),this._keyboardNavState=e.keyboardNavigation,this._focusedElementState=e.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){let e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(u),e.removeEventListener(X,this._onRestoreFocus)}createRestorer(e,t){let n=new ny(this._tabster,e,t);return t.type===T.Target&&ep.getActiveElement(e.ownerDocument)===e&&this._history.push(e),n}}function nC(e,t){var n,r;if(!e||!t)return!1;let o=t;for(;o;){if(o===e)return!0;o="function"!=typeof o.assignedElements&&(null==(n=o.assignedSlot)?void 0:n.parentNode)?null==(r=o.assignedSlot)?void 0:r.parentNode:o.nodeType===document.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode}return!1}function nk(e){return e?!e.lastChild&&e.shadowRoot?nk(e.shadowRoot):e.lastChild:null}function nw(e){var t;if(!e)return null;let n=e.previousSibling;return!n&&(null==(t=e.parentElement)?void 0:t.shadowRoot)&&(n=nk(e.parentElement.shadowRoot)),n}function nS(e){let t=nk(e);for(;t&&t.nodeType!==Node.ELEMENT_NODE;)t=nw(t);return t}function n_(e){let t=null;for(let n=nS(e);n;n=nS(n))t=n;return t||void 0}class nE{static _overrideAttachShadow(e){let t=e.Element.prototype.attachShadow;t.__origAttachShadow||(Element.prototype.attachShadow=function(e){let n=t.call(this,e);for(let e of nE._shadowObservers)e._addSubObserver(n);return n},Element.prototype.attachShadow.__origAttachShadow=t)}constructor(e){this._isObserving=!1,this._callbackWrapper=(e,t)=>{for(let t of e)if("childList"===t.type){let e=t.removedNodes,n=t.addedNodes;for(let t=0;t<e.length;t++)this._walkShadows(e[t],!0);for(let e=0;e<n.length;e++)this._walkShadows(n[e])}this._callback(e,t)},this._callback=e,this._observer=new MutationObserver(this._callbackWrapper),this._subObservers=new Map}_addSubObserver(e){if(!(!this._options||!this._callback||this._subObservers.has(e))&&this._options.subtree&&nC(this._root,e)){let t=new MutationObserver(this._callbackWrapper);this._subObservers.set(e,t),this._isObserving&&t.observe(e,this._options),this._walkShadows(e)}}disconnect(){for(let e of(this._isObserving=!1,delete this._options,nE._shadowObservers.delete(this),this._subObservers.values()))e.disconnect();this._subObservers.clear(),this._observer.disconnect()}observe(e,t){let n=e.nodeType===Node.DOCUMENT_NODE?e:e.ownerDocument,r=null==n?void 0:n.defaultView;n&&r&&(nE._overrideAttachShadow(r),nE._shadowObservers.add(this),this._root=e,this._options=t,this._isObserving=!0,this._observer.observe(e,t),this._walkShadows(e))}_walkShadows(e,t){let n=e.nodeType===Node.DOCUMENT_NODE?e:e.ownerDocument;if(n){if(e===n)e=n.body;else{let t=e.shadowRoot;if(t)return void this._addSubObserver(t)}n.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{if(e.nodeType===Node.ELEMENT_NODE)if(t){let t=this._subObservers.get(e);t&&(t.disconnect(),this._subObservers.delete(e))}else{let t=e.shadowRoot;t&&this._addSubObserver(t)}return NodeFilter.FILTER_SKIP}}).nextNode()}}takeRecords(){let e=this._observer.takeRecords();for(let t of this._subObservers.values())e.push(...t.takeRecords());return e}}function nP(e,t,n){let r=[];return o(e,t),r;function o(e,t){let a=null;document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{if(e.nodeType===Node.ELEMENT_NODE){if(e.matches(t))return a=e,r.push(a),n?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT;let s=e.shadowRoot;if(s)return o(s,t),!n&&r.length?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_SKIP}}).nextNode()}}nE._shadowObservers=new Set;class nI{constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}}class nT{constructor(e,t){var n,r;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.5.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw Error("Using disposed Tabster.");return this._win},this._storage=eb(e),this._win=e;const o=this.getWindow;(null==t?void 0:t.DOMAPI)&&ef({...t.DOMAPI}),this.keyboardNavigation=new t4(o),this.focusedElement=new t0(this,o),this.focusable=new tz(this),this.root=new e7(this,null==t?void 0:t.autoRoot),this.uncontrolled=new nv((null==t?void 0:t.checkUncontrolledCompletely)||(null==t?void 0:t.checkUncontrolledTrappingFocus)),this.controlTab=null==(n=null==t?void 0:t.controlTab)||n,this.rootDummyInputs=!!(null==t?void 0:t.rootDummyInputs),this._dummyObserver=new eY(o),this.getParent=null!=(r=null==t?void 0:t.getParent)?r:ep.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:e=>{if(!this._unobserve){let t=o().document;this._unobserve=nl(t,this,F,e)}}},eS(o),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){var t;e&&(this.getParent=null!=(t=e.getParent)?t:this.getParent)}createTabster(e,t){let n=new nI(this);return e||this._wrappers.add(n),this._mergeProps(t),n}disposeTabster(e,t){t?this._wrappers.clear():this._wrappers.delete(e),0===this._wrappers.size&&this.dispose()}dispose(){var e,t,n,r,o,a,s,l;this.internal.stopObserver();let c=this._win;null==c||c.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],c&&this._forgetMemorizedTimer&&(c.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),null==(e=this.outline)||e.dispose(),null==(t=this.crossOrigin)||t.dispose(),null==(n=this.deloser)||n.dispose(),null==(r=this.groupper)||r.dispose(),null==(o=this.mover)||o.dispose(),null==(a=this.modalizer)||a.dispose(),null==(s=this.observedElement)||s.dispose(),null==(l=this.restorer)||l.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),e_(this.getWindow),eF(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),c&&(ey(c),delete c.__tabsterInstance,delete this._win)}storageEntry(e,t){let n=this._storage,r=n.get(e);return r?!1===t&&0===Object.keys(r).length&&n.delete(e):!0===t&&(r={},n.set(e,r)),r}forceCleanup(){!this._win||(this._forgetMemorizedElements.push(this._win.document.body),this._forgetMemorizedTimer||(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())eF(this.getWindow,e),t0.forgetMemorized(this.focusedElement,e)},0),ew(this.getWindow,!0)))}queueInit(e){var t;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=null==(t=this._win)?void 0:t.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;let e=this._initQueue;this._initQueue=[],e.forEach(e=>e())}}function nD(e,t){let n=nF(e);return n?n.createTabster(!1,t):(n=new nT(e,t),e.__tabsterInstance=n,n.createTabster())}function nA(e){let t=e.core;return t.groupper||(t.groupper=new t5(t,t.getWindow)),t.groupper}function nR(e){let t=e.core;return t.mover||(t.mover=new ns(t,t.getWindow)),t.mover}function nN(e,t,n){let r=e.core;return r.modalizer||(r.modalizer=new t7(r,t,n)),r.modalizer}function nB(e){let t=e.core;return t.restorer||(t.restorer=new nx(t)),t.restorer}function nM(e,t){e.core.disposeTabster(e,t)}function nF(e){return e.__tabsterInstance}},55478(e,t,n){"use strict";n.r(t),n.d(t,{__assign:()=>a,__asyncDelegator:()=>k,__asyncGenerator:()=>C,__asyncValues:()=>w,__await:()=>x,__awaiter:()=>d,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>T,__createBinding:()=>f,__decorate:()=>l,__exportStar:()=>h,__extends:()=>o,__generator:()=>p,__importDefault:()=>P,__importStar:()=>E,__makeTemplateObject:()=>S,__metadata:()=>u,__param:()=>c,__read:()=>g,__rest:()=>s,__spread:()=>v,__spreadArray:()=>b,__spreadArrays:()=>y,__values:()=>m});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])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function l(e,t,n,r){var o,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(a<3?o(s):a>3?o(t,n,s):o(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function p(e,t){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return c([e,t])}}function c(a){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}var f=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,l=a.length;s<l;s++,o++)r[o]=a[s];return r}function b(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function C(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||l(e,t)})})}function l(e,t){try{c(o[e](t))}catch(e){p(a[0][3],e)}}function c(e){e.value instanceof x?Promise.resolve(e.value.v).then(u,d):p(a[0][2],e)}function u(e){l("next",e)}function d(e){l("throw",e)}function p(e,t){e(t),a.shift(),a.length&&l(a[0][0],a[0][1])}}function k(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:x(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,a){o(r,a,(t=e[n](t)).done,t.value)})}}function o(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var _=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return _(t,e),t}function P(e){return e&&e.__esModule?e:{default:e}}function I(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function T(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},16603(e,t,n){"use strict";n.r(t),n.d(t,{DOMException:()=>P,Headers:()=>p,Request:()=>k,Response:()=>_,fetch:()=>I});var r="u">typeof globalThis&&globalThis||"u">typeof self&&self||void 0!==r&&r,o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(e){return e&&DataView.prototype.isPrototypeOf(e)}if(o.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o.iterable&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function m(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function g(e){var t=new FileReader,n=h(t);return t.readAsText(e),n}function v(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o.arrayBuffer&&o.blob&&a(e)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){if(!this._bodyArrayBuffer)return this.blob().then(m);var e=f(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}),this.text=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return g(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(v(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},o.formData&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=u(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),d(e)},p.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},p.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d(e)},o.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(e){var t=e.toUpperCase();return x.indexOf(t)>-1?t:e}function k(e,t){if(!(this instanceof k))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof k){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new p(t.headers)),this.method=C(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}function w(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function S(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function _(e,t){if(!(this instanceof _))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},b.call(k.prototype),b.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];_.redirect=function(e,t){if(-1===E.indexOf(t))throw RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})};var P=r.DOMException;try{new P}catch(e){(P=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),P.prototype.constructor=P}function I(e,t){return new Promise(function(n,a){var s=new k(e,t);if(s.signal&&s.signal.aborted)return a(new P("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}function d(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}l.onload=function(){var e={status:l.status,statusText:l.statusText,headers:S(l.getAllResponseHeaders()||"")};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;setTimeout(function(){n(new _(t,e))},0)},l.onerror=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},l.ontimeout=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},l.onabort=function(){setTimeout(function(){a(new P("Aborted","AbortError"))},0)},l.open(s.method,d(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(o.blob?l.responseType="blob":o.arrayBuffer&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof p?s.headers.forEach(function(e,t){l.setRequestHeader(t,e)}):Object.getOwnPropertyNames(t.headers).forEach(function(e){l.setRequestHeader(e,u(t.headers[e]))}),s.signal&&(s.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",c)}),l.send(void 0===s._bodyInit?null:s._bodyInit)})}I.polyfill=!0,r.fetch||(r.fetch=I,r.Headers=p,r.Request=k,r.Response=_)},84891(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a,s,l,c,u,d,p,f,h=function(e,t){return(h=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])})(e,t)};function m(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function v(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function y(e,t){var n,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=l(0),s.throw=l(1),s.return=l(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return c([e,t])}}function c(l){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function b(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.EWallet="ewallet"}(r||(r={})),function(e){e.ApplePay="applepay",e.GooglePay="googlepay"}(o||(o={})),function(e){e.ApplePay="ewallet.applepay",e.GooglePay="ewallet.googlepay"}(a||(a={})),function(e){e.Supports3DS="supports3DS",e.SupportsCredit="supportsCredit",e.SupportsDebit="supportsDebit",e.SupportsEMV="supportsEMV"}(s||(s={})),t.SetupContext=void 0,function(e){e.SingleDomain="singleDomain",e.TopDomain="topDomain",e.IframeDomain="iframeDomain"}(t.SetupContext||(t.SetupContext={})),function(e){e.PostProviderSession="POST PaymentAgentProviderSession",e.PostToken="POST PaymentAgentToken",e.GetConfig="GET PaymentAgentConfig"}(l||(l={})),function(e){e.chrome="chrome",e.edge="edge",e.safari="safari"}(c||(c={})),function(e){e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute"}(u||(u={}));var x={PIDLConfig:{"SelectResource.PaymentInstrument":{actions:{"ewallet.applepay.default":["PaymentInstrumentHandler.ClientSupported"],"ewallet.googlepay.default":["PaymentInstrumentHandler.ClientSupported"]}},HandlePaymentChallenge:{actions:{"ewallet.applepay.default":["PaymentInstrumentHandler.CollectPaymentToken"],"ewallet.googlepay.default":["PaymentInstrumentHandler.CollectPaymentToken"]}}},PaymentInstrumentHandlers:[{allowedAuthMethods:["PAN_ONLY"],protocolVersion:"ECv2",publicKey:"BBMH2x40787Ayspaqg2My43ZkLb4QvHPuDfE/VhQeGKzHy6JIcKPMyHifOe9Rav4bHWJG4W+aJpi0eKQbRlWY5M=",merchantName:"Microsoft",merchantId:"BCR2DN4TZ244PH2A",apiMajorVersion:"2",apiMinorVersion:"0",assuranceDetailsRequired:!0,publicKeyVersion:"1",enableGPayIframeForAllBrowsers:!1,enableBillingAddress:!0,paymentMethodFamily:"ewallet",paymentMethodType:"googlepay",piid:"cdc85313-9b57-4052-81fb-dea336132cbf",integrationType:"DIRECT",allowedAuthMethodsPerCountry:{us:["AMEX","DISCOVER","MASTERCARD","VISA"],ca:["AMEX","DISCOVER","MASTERCARD","VISA"]},clientSupported:{supportedBrowsers:{chrome:"100",edge:"100"},supportedOS:{ios:"16.0",android:"16.0",windows:"16.0"},additionalAPIsCheck:["canMakePayment"]}},{merchantCapabilities:[s.Supports3DS,s.SupportsEMV],displayName:"Microsoft",initiative:"Web",initiativeContext:"mystore.example.com",merchantIdentifier:"merchant.com.microsoft.paymicrosoft.prod",enableBillingAddress:!0,applePayVersion:"3",paymentMethodFamily:"ewallet",paymentMethodType:"applepay",piid:"be4de87d-7e38-4b2d-8836-9237eb32848e",integrationType:"DIRECT",allowedAuthMethodsPerCountry:{us:["AMEX","DISCOVER","MASTERCARD","VISA"],ca:["AMEX","DISCOVER","MASTERCARD","VISA"]},clientSupported:{supportedBrowsers:{safari:"16.1"},supportedOS:{ios:"15.0"},additionalAPIsCheck:["canMakePaymentWithActiveCard"],paymentProxyRequired:{safari:"16.5"}}}]};!function(e){e.error="error",e.click="click",e.apiCalled="apiCalled",e.fetchCallCompleted="fetchCallCompleted",e.paymentAgentInitialized="paymentAgentInitialized",e.paymentAgentSetupComplete="paymentAgentSetupComplete",e.paymentAgentDeviceCheck="paymentAgentDeviceCheck",e.fallBackToDefaultPaymentConfiguration="fallBackToDefaultPaymentConfiguration",e.paymentSheetClosed="paymentSheetClosed",e.paymentSheetTokenReceived="paymentSheetTokenReceived",e.paymentAgentConfigLoadModeSetLocal="paymentAgentConfigLoadModeSetLocal",e.setupIframeCompleted="setupIframeCompleted",e.checkIFrameForEligibility="checkIFrameForEligibility",e.getDeviceSupportStatus="getDeviceSupportStatus",e.deviceCheckPaymentRequestExistingCheck="deviceCheck",e.deviceCheckCanMakePaymentCheckCompleted="deviceCheckCanMakePaymentCheckCompleted",e.deviceCheckShouldCheckIframeFallBackCompleted="deviceCheckShouldCheckIframeFallBackCompleted"}(d||(d={}));var C={getType:function(e){return Object.prototype.toString.call(e)},isObject:function(e){return e&&"[object Object]"===C.getType(e)},isFunction:function(e){return e&&"[object Function]"===C.getType(e)}},k="gPayFrame",w="gpay.channelSetup",S="readyToPay",_="gpay.isReadyToPay",E="tokenReference",P="error",I="RecurringTransaction",T="chinaUnionPay",D=8e3,A=8e3,R=8e3,N=function(e,t,n,r,o,a){return void 0===o&&(o={method:"GET"}),void 0===a&&(a=3),v(void 0,void 0,void 0,function(){var n,s,l,c;return y(this,function(u){switch(u.label){case 0:n=a,s=Date.now(),l=function(){var l,c,u,p,f,h;return y(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),l=new AbortController,c=setTimeout(function(){return l.abort()},D),[4,fetch(r,g(g({},o),{signal:l.signal}))];case 1:if(u=m.sent(),clearTimeout(c),p={isSuccess:u.ok,timeTaken:Date.now()-s,statusCode:u.status,headers:u.headers},f=B(r,a,n,o,u,e),!u.ok)throw 1===n&&t.logEvent(d.error,{httpRequestTelemetryData:M(f,p)}),Error("Failed to fetch: ".concat(u.status," ").concat(u.statusText));return t.logEvent(d.fetchCallCompleted,{httpRequestTelemetryData:M(f,p)}),[2,{value:u.json()}];case 2:if(h=m.sent(),--n>0)console.warn("Fetch failed, retrying...");else throw t.logEvent(d.error,{message:"fetch failure",debugMessage:JSON.stringify(h),error:h,operationName:e,url:r}),h;return[3,3];case 3:return[2]}})},u.label=1;case 1:if(!(n>0))return[3,3];return[5,l()];case 2:if("object"==typeof(c=u.sent()))return[2,c.value];return[3,1];case 3:return[2]}})})},B=function(e,t,n,r,o,a){return{url:e,type:r.method,retryCount:t-n,headers:o.headers,payload:"",dataType:"",contentType:"application/json",currentOperationName:"PaymentAgent Fetch",operationName:a,operationVersion:"1.0.0",serviceName:"paymentAgent",includeCredentials:!1,retryOnServerError:!1,serverErrorCount:0,getRequest:function(){throw Error("Function not implemented.")}}},M=function(e,t){var n=e.url,r=e.type,o=e.contentType,a=e.currentOperationName,s=e.operationName,l=e.operationVersion,c=e.serviceName,u=e.retryCount,d=t.isSuccess,p=t.statusCode,f=t.headers,h=t.failureResponseText,m=t.timeTaken,g=t.serviceErrorCode,v=t.statusText,y=p?p.toString():"0",b=d||"200"===y?"":h||v,x=0;try{x=parseInt(t.headers.get("Content-Length"),10)}catch(e){}return{targetUri:n,requestMethod:r,responseContentType:o,operationName:a,dependencyOperationName:s,dependencyOperationVersion:l,serviceName:c,retryCount:u,succeeded:d,protocolStatusCode:y,failureResponse:b,contentLength:isNaN(x)?0:x,latencyMs:m,serviceErrorCode:g,headers:f}},F={prod:"https://paymentinstruments.mp.microsoft.com",ppe:"https://paymentinstruments-int.mp.microsoft.com",feature:"https://st-pifd-prod-wcus.azurewebsites.net",int:"https://pifd.cp.microsoft-int.com"},O={prod:"https://tokenization.cp.microsoft.com/tokens/{type}/getToken",ppe:"https://tokenization.cp.microsoft.com/tokens/{type}/getToken",feature:"https://tokenization.cp.microsoft.com/tokens/{type}/getToken",int:"https://tokenization.cp.microsoft-int.com/tokens/{type}/getToken"},L={prod:"https://pmservices.cp.microsoft.com",feature:"https://pmservices.cp.microsoft.com",ppe:"https://pmservices.cp.microsoft-int.com",int:"https://pmservices.cp.microsoft-int.com"},H="v7.0/getWalletConfig",z="v7.0/setupWalletProviderSession",V=function(){return(null==navigator?void 0:navigator.userAgent)?navigator.userAgent:""},U=function(){return(null==navigator?void 0:navigator.maxTouchPoints)?navigator.maxTouchPoints:0},j=function(e,t){var n=t.exec(e);return n&&n.length>1?n[1]:""},W=function(){return K(V())},q=function(){return G(V())},G=function(e){return((null==e?void 0:e.includes("Chrome/"))||(null==e?void 0:e.includes("CriOS/")))&&!(null==e?void 0:e.includes("Version/"))&&!W()},K=function(e){return(null==e?void 0:e.includes("Edg/"))||(null==e?void 0:e.includes("EdgiOS/"))||(null==e?void 0:e.includes("EdgA/"))},X=function(e){return(null==e?void 0:e.includes("Safari/"))&&(null==e?void 0:e.includes("Version/"))&&!W()},Y=function(e){return K(e)?c.edge:G(e)?c.chrome:X(e)?c.safari:"NA"},Q=function(){return X(V())},J=function(){var e=!1;try{window.parent.location.href}catch(t){e=!0}return e},Z=function(){return function(e,t){var n=this;this.getUserAgent=function(){return(null==navigator?void 0:navigator.userAgent)?navigator.userAgent:""},this.getDeviceSupportStatus=function(e,t,r){var o=!0,a=n.getPiHandlerConfig(e,t,r);n.containsValidDeviceSupportedConfig(a)&&(o=a.deviceSupportStatus.result);var s=Y(V());return n.telemetryLogger.logEvent(d.getDeviceSupportStatus,{paymentMethodFamily:t,paymentMethodType:r,result:o,maxTouchPoints:U(),browser:s},n.telemetryOptions),o},this.getPiHandlerConfig=function(e,t,n){var r;return null==(r=null==e?void 0:e.PaymentInstrumentHandlers)?void 0:r.find(function(e){return e.paymentMethodFamily===t&&e.paymentMethodType===n})},this.containsValidDeviceSupportedConfig=function(e){var t=null==e?void 0:e.deviceSupportStatus;return t&&(!0===t.result||!1===t.result)},this.telemetryLogger=e,this.telemetryOptions=t}}(),ee=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a.iframeLoaded=!1,a.fallbackToGPayIframe=!1,a.useFallback=!1,a.setupPaymentIframe=function(e){return new Promise(function(t,n){if(!document.getElementById(k)){var r=setTimeout(function(){a.telemetryLogger.logEvent(d.error,{message:"Payment Iframe failed to load"}),document.body.removeChild(s),t(!1)},A),o=new MessageChannel,s=document.createElement("iframe"),l="prod"===e?"prod":"int";s.id=k,s.style.display="none",s.src="".concat(L[e],"/staticresourceservice/resources/gpay/").concat(l,"/googlepay.html"),s.allow="payment https://pmservices.cp.microsoft-int.com https://pmservices.cp.microsoft.com",s.onload=function(){var n;a.iframeLoaded||(clearTimeout(r),a.iframeLoaded=!0,null==(n=s.contentWindow)||n.postMessage(w,L[e],[o.port2]),t(!0))},document.body.appendChild(s),a.iframeMessageChannel=o}})},a.collectPaymentToken=function(e,t,n,r){return v(a,void 0,void 0,function(){return y(this,function(o){switch(o.label){case 0:if(!(e.enableGPayIframeForAllBrowsers||this.fallbackToGPayIframe))return[3,2];return this.telemetryLogger.logEvent(d.deviceCheckPaymentRequestExistingCheck,{collectTokenWithGPay:!0}),[4,this.collectTokenWithGPay(e,t,n,r)];case 1:case 3:return[2,o.sent()];case 2:return this.telemetryLogger.logEvent(d.deviceCheckPaymentRequestExistingCheck,{collectTokenWithPaymentRequest:!0}),[4,this.collectTokenWithPaymentRequest(e,t,n,r)]}})})},a.collectTokenWithGPay=function(e,t,n,r){return v(a,void 0,void 0,function(){var o=this;return y(this,function(a){return[2,new Promise(function(a,s){var l,c,u=document.getElementById(k);u&&(o.iframeMessageChannel.port1.onmessage=function(e){e.data.messageType===E?a(e.data):e.data.messageType===P&&s(e.data.error)},null==(l=u.contentWindow)||l.postMessage("process_payment",{targetOrigin:L[r],delegate:"payment"}),null==(c=u.contentWindow)||c.postMessage({messageType:"gpay.loadPaymentData",paymentSessionData:t,handlerConfig:e,env:r,useTestEnv:n},L[r]))})]})})},a.collectTokenWithPaymentRequest=function(e,t,n,r){return v(a,void 0,void 0,function(){var r,o,a;return y(this,function(s){return r=this.buildSupportedPaymentMethodData(e,n,t),o=this.buildPaymentDetails(t),a={},e.enableEmail&&(a.requestPayerEmail=!0,a.requestPayerName=!0),[2,new PaymentRequest(r,o,a).show().then(function(e){e.complete("success");var t=e.toJSON();return t.details.email=e.payerEmail,Promise.resolve({paymentData:t.details})}).catch(function(e){return Promise.reject(e)})]})})},a.getPANConfigurationValues=function(e){return["PAN_ONLY"]},a.compileGPayParameters=function(e,t){var n,r,o=e.allowedAuthMethodsPerCountry,s=e.assuranceDetailsRequired,l=e.enableBillingAddress,c=o[(null==(r=(n=t.country).toLowerCase)?void 0:r.call(n))||t.country],u=!(t.hasPreOrder||t.challengeScenario===I),d={allowedAuthMethods:a.getPANConfigurationValues(t),allowedCardNetworks:c,assuranceDetailsRequired:s,allowPrepaidCards:u};return l&&(d.billingAddressRequired=!0,d.billingAddressParameters={format:"FULL"}),d},a.buildSupportedPaymentMethodData=function(e,t,n){var r,o,s=e.protocolVersion,l=e.publicKey,c=e.integrationType,u=e.merchantName,d=e.merchantId,p=e.apiMajorVersion,f=e.apiMinorVersion,h=n.amount,m=n.country,g=n.currency,v=a.compileGPayParameters(e,n);return[{supportedMethods:"https://google.com/pay",data:{environment:t?"TEST":"PRODUCTION",apiVersion:Number(p),apiVersionMinor:Number(f),merchantInfo:{merchantName:u,merchantId:d||"BCR2DN4TZ244PH2A"},allowedPaymentMethods:[{type:"CARD",parameters:v,tokenizationSpecification:{type:(null==(r=null==c?void 0:c.toUpperCase)?void 0:r.call(c))||"DIRECT",parameters:{protocolVersion:s,publicKey:l}}}],transactionInfo:{currencyCode:g,countryCode:m,totalPriceStatus:"FINAL",totalPrice:(null==(o=h.toString)?void 0:o.call(h))||h,checkoutOption:"COMPLETE_IMMEDIATE_PURCHASE"}}}]},a.buildPaymentDetails=function(e){var t,n;return{total:{amount:{currency:e.currency,value:null==(n=null==(t=e.amount)?void 0:t.toString)?void 0:n.call(t)},label:"Pay Microsoft"}}},a.getActionMap=function(){return{collectPaymentToken:a.collectPaymentToken}},a.getDeviceCheckPaymentMethodData=function(){return[{supportedMethods:"https://google.com/pay",data:{environment:"TEST",apiVersion:2,apiVersionMinor:0,merchantInfo:{merchantName:"Microsoft"},allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY"],allowedCardNetworks:["AMEX","DISCOVER","MASTERCARD","VISA"]}}]}}]},a.getDeviceCheckTransactionDetail=function(){return{id:"deviceCheck",total:{label:"total",amount:{currency:"USD",value:"1"}}}},a.deviceCheck=function(e,t){return new Promise(function(t,n){var s=a.getDeviceSupportStatus(e,r.EWallet,o.GooglePay);if(!s)return void t(s);var l=o.GooglePay,c=a.getPiHandlerConfig(e,r.EWallet,o.GooglePay);if(a.containsValidIFrameSupportedConfig(c))return void a.deviceCheckWithIframeFallbackConfig(t,c.iframeFallbackSupported);if(Q())a.checkIFrameForEligibility(t,s);else if(window.PaymentRequest){a.telemetryLogger.logEvent(d.deviceCheckPaymentRequestExistingCheck,{pmType:l,paymentRequestExisting:!0});var u=a.getDeviceCheckPaymentMethodData(),p=a.getDeviceCheckTransactionDetail();new window.PaymentRequest(u,p).canMakePayment().then(function(e){a.telemetryLogger.logEvent(d.deviceCheckCanMakePaymentCheckCompleted,{pmType:l,paymentRequestAllowed:e});var n=a.shouldCheckIFrameForEligibility(e);a.telemetryLogger.logEvent(d.deviceCheckShouldCheckIframeFallBackCompleted,{pmType:l,shouldCheckIFrameForEligibility:n}),n?a.checkIFrameForEligibility(t,s):t(s=s&&e)}).catch(function(e){var n=JSON.stringify(e);a.telemetryLogger.logEvent(d.error,{message:"Device check failed",error:n}),t(!1)})}else a.telemetryLogger.logEvent(d.deviceCheckPaymentRequestExistingCheck,{pmType:l,paymentRequestExisting:!1}),t(!1)})},a.deviceCheckWithIframeFallbackConfig=function(e,t){var n=!!window.PaymentRequest,r=o.GooglePay,s=t&&a.iframeLoaded;if(n){var l=a.getDeviceCheckPaymentMethodData(),c=a.getDeviceCheckTransactionDetail();new window.PaymentRequest(l,c).canMakePayment().then(function(t){a.telemetryLogger.logEvent(d.deviceCheckPaymentRequestExistingCheck,{pmType:r,paymentRequestAllowed:t});var n=!t&&s;n?a.checkIFrameForEligibility(e,!0):e(t),a.telemetryLogger.logEvent(d.deviceCheckPaymentRequestExistingCheck,{pmType:r,shouldCheckIFrameForEligibility:n})}).catch(function(t){var n=JSON.stringify(t);a.telemetryLogger.logEvent(d.error,{message:"Device check failed",error:n}),e(!1)})}else t?(a.checkIFrameForEligibility(e,!0),a.telemetryLogger.logEvent(d.deviceCheckPaymentRequestExistingCheck,{pmType:r,shouldCheckIFrameForEligibility:s})):e(!1);a.telemetryLogger.logEvent(d.deviceCheckPaymentRequestExistingCheck,{pmType:r,paymentRequestExisting:n})},a.shouldCheckIFrameForEligibility=function(e){var t=W()||q();return!e&&a.iframeLoaded&&t},a.checkIFrameForEligibility=function(e,t){var n=setTimeout(function(){a.telemetryLogger.logEvent(d.error,{message:"Payment Iframe eligibility check timed out"}),e(!1)},R);a.iframeLoaded?(a.useFallback=!0,a.iframeMessageChannel.port1.onmessage=function(r){var o;if((null==(o=r.data)?void 0:o.messageType)===S){clearTimeout(n);var s=!1;r.data.result?(e(s=r.data.result&&t),a.fallbackToGPayIframe=!0):e(s),a.telemetryLogger.logEvent(d.checkIFrameForEligibility,{fallbackToGPayIframe:a.fallbackToGPayIframe,iframeEligible:s})}},a.iframeMessageChannel.port1.postMessage(_)):e(!1)},a.useFallbackCheck=function(){return a.useFallback},a.containsValidIFrameSupportedConfig=function(e){var t=null==e?void 0:e.iframeFallbackSupported;return!0===t||!1===t},a}return m(t,e),t}(Z),et=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a.collectPaymentToken=function(e,t,n,r){return v(a,void 0,void 0,function(){var n=this;return y(this,function(o){return window.ApplePaySession?[2,new Promise(function(o,a){n.createSession(e,t,o,a,r).begin()})]:[2,Promise.reject()]})})},a.createSession=function(e,t,n,r,o){var s,l,c=window.ApplePaySession,u=(null==(s=null==e?void 0:e.clientSupported)?void 0:s.applePayVersion)||"1";try{(l=new c(Number(u),a.createPaymentRequest(e,t))).onvalidatemerchant=function(n){return v(a,void 0,void 0,function(){var n;return y(this,function(r){switch(r.label){case 0:return[4,this.getServerSession(e,o,t)];case 1:return n=r.sent(),l.completeMerchantValidation(n),[2]}})})},l.onpaymentauthorized=function(e){var t=e.payment;n({paymentData:t}),l.completePayment(l.STATUS_SUCCESS)},l.oncancel=function(e){r(e)}}catch(e){r(e)}return l},a.getServerSession=function(e,t,n){return v(a,void 0,void 0,function(){var r,o;return y(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,N(l.PostProviderSession,this.telemetryLogger,this.telemetryOptions,"".concat(F[t],"/").concat(z),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({piFamily:"ewallet",piType:"applepay",walletSessionData:{merchantIdentifier:e.merchantIdentifier,displayName:"Microsoft",initiative:"web",initiativeContext:null!=(o=n.initiativeContext)?o:this.formatOrigin(window.origin)}})})];case 1:return[2,(r=JSON.parse(a.sent())).sessionData||r];case 2:throw Error(a.sent());case 3:return[2]}})})},a.formatOrigin=function(e){var t=null==e?void 0:e.split("://");return t[1]||t[0]},a.addRecurringPaymentDetails=function(e,t){var n=e,r=t.recurringPaymentDetails,o={label:"Microsoft",amount:0,paymentTiming:"recurring",recurringPaymentIntervalUnit:u.month,recurringPaymentIntervalCount:1};return r.label&&(o.label=r.label),r.amount&&(o.amount=r.amount),r.frequencyUnit&&(o.recurringPaymentIntervalUnit=r.frequencyUnit),r.frequency&&(o.recurringPaymentIntervalCount=r.frequency),r.startTime&&(o.recurringPaymentStartDate=r.startTime),n.recurringPaymentRequest={paymentDescription:"Microsoft",regularBilling:o,managementURL:"https://account.microsoft.com"},n},a.createMultiTokenPaymentRequest=function(e,t,n){var r=e,o=t.authorizationGroups;return r.multiTokenContexts=null==o?void 0:o.map(function(e){return{merchantIdentifier:n.merchantIdentifier,externalIdentifier:n.merchantIdentifier,merchantName:a.createGroupMessage(e),amount:e.totalAmount}}),r},a.createBasePaymentRequest=function(e,t){var n=e.merchantCapabilities,r=e.allowedAuthMethodsPerCountry,o=e.enableBillingAddress,a=e.enableEmail,l=t.amount,c=t.country,u=t.currency,d=r[null==c?void 0:c.toLowerCase()]||[],p=[s.Supports3DS];if(0===d.length)throw Error("No supported payment methods");(null==d?void 0:d.includes(T))&&(p=n),(t.hasPreOrder||t.challengeScenario===I)&&(p.push(s.SupportsCredit),p.push(s.SupportsDebit));var f={countryCode:c,currencyCode:u,merchantCapabilities:p,supportedNetworks:d,total:{label:"Microsoft",type:"final",amount:l}};return a&&(f.requiredShippingContactFields=["email"]),o&&(f.requiredBillingContactFields=["postalAddress"]),f},a.createPaymentRequest=function(e,t){var n=a.createBasePaymentRequest(e,t);return t.authorizationGroups&&t.authorizationGroups.length>1?n=a.createMultiTokenPaymentRequest(n,t,e):t.challengeScenario===I&&(n=a.addRecurringPaymentDetails(n,t)),n},a.deviceCheck=function(e,t){if(window.ApplePaySession){var n=window.ApplePaySession.canMakePayments(),s=o.ApplePay;return a.telemetryLogger.logEvent(d.deviceCheckCanMakePaymentCheckCompleted,{pmType:s,canMakePayment:n}),n&&(n=a.getDeviceSupportStatus(e,r.EWallet,o.ApplePay)),Promise.resolve(n)}return Promise.resolve(!1)},a}return m(t,e),t.prototype.createGroupMessage=function(e){var t=e.itemTitles,n=45;if(t&&t.length>1){var r=t[0],o=r&&r.length>n?"".concat(r.substring(0,n),"..."):r;return"".concat(o||"Microsoft"," (+").concat(t.length-1,")")}return t&&1===t.length&&t[0]||"Microsoft"},t}(Z);!function(e){e.Config="config",e.Token="token",e.HandleChallenge="handleChallenge",e.Error="Error"}(p||(p={})),function(e){e.Local="local",e.Remote="remote"}(f||(f={}));var en=function(){function e(e,t,n,s){var c=this;this.initializing=!1,this.initialized=!1,this.setupComplete=!1,this.configLoadMode=f.Local,this.isCrossOrigin=!1,this.handlerFactory=function(e){switch(e){case o.ApplePay:return c.applePayHandler;case o.GooglePay:return c.googlePayHandler;default:return null}},this.buildLoadConfigQueryParams=function(e,t){return new URLSearchParams({partner:e,client:JSON.stringify({isCrossOrigin:t})}).toString()},this.paymentAgentDeviceCheckDetail=function(e,t,n){return{paymentMethodFamily:r.EWallet,type:e,result:t,usedFallback:n}},this.paymentDeviceEligibilityCheck=function(e,t){return"ewallet"===e&&"applepay"===t?c.getApplePayEligible():"ewallet"!==e||"googlepay"!==t||c.getGooglePayEligible()},this.tokenizeData=function(e,t,n,r){return v(c,void 0,void 0,function(){var r;return y(this,function(a){switch(a.label){case 0:r={data:JSON.stringify(e)},t===o.GooglePay&&(r.publicKeyVersion=n),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,N(l.PostToken,this.telemetryLogger,this.telemetryOptions,"".concat(O[this.environment].replace("{type}",this.mapType(t))),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({data:JSON.stringify(r)})})];case 2:return[2,a.sent()];case 3:throw Error(a.sent());case 4:return[2]}})})},this.sanitizeTokenData=function(e,t,n){var r,a,s,l=e;return n.paymentMethodType===o.GooglePay&&(null==(a=null==(r=null==l?void 0:l.paymentData)?void 0:r.paymentMethodData)?void 0:a.tokenizationData)?l.paymentData.paymentMethodData.tokenizationData.token=t.data:n.paymentMethodType===o.ApplePay&&(null==(s=null==l?void 0:l.paymentData)?void 0:s.token)&&(l.paymentData.token.token=t.data,delete l.paymentData.token.paymentData),l},this.mapType=function(e){switch(e){case"applepay":return"apay";case"googlepay":return"gpay";default:return e}},this.getHandlerConfig=function(e,t){return e?e.PaymentInstrumentHandlers.find(function(e){return e.piid===t.piid||e.paymentMethodFamily===t.paymentMethodFamily&&e.paymentMethodType===t.paymentMethodType}):null},this.handleChallenge=function(e,t){return v(c,void 0,void 0,function(){var n=this;return y(this,function(r){switch(r.label){case 0:return[4,new Promise(function(r,o){var a=n.getConfiguration();if(a){var s=n.getHandlerConfig(a,e),l=n.handlerFactory(null==s?void 0:s.paymentMethodType);if(l&&s){var c="".concat(s.paymentMethodFamily,".").concat(s.paymentMethodType,".default"),u=a.PIDLConfig.HandlePaymentChallenge.actions[c],p={paymentMethodFamily:null==s?void 0:s.paymentMethodFamily,paymentMethodType:null==s?void 0:s.paymentMethodType};if(u.length&&"PaymentInstrumentHandler.CollectPaymentToken"===u[0]){var f=null==t?void 0:t.includes("px-use-google-apple-pay-test-env");l.collectPaymentToken(s,e,f,n.environment).then(function(e){return v(n,void 0,void 0,function(){var t,n;return y(this,function(o){switch(o.label){case 0:if(this.telemetryLogger.logEvent(d.paymentSheetTokenReceived,{paymentSheetLogDetails:p}),!e.tokenReference)return[3,1];return t=e.tokenReference,[3,3];case 1:return[4,this.tokenizeData(e.paymentData,s.paymentMethodType,s.publicKeyVersion,this.telemetryLogger)];case 2:t=o.sent(),o.label=3;case 3:return e=this.sanitizeTokenData(e,t,s),n={tokenReference:t.data,integrationType:s.integrationType,family:s.paymentMethodFamily,type:s.paymentMethodType,paymentData:JSON.stringify(e.paymentData)},this.telemetryLogger.logEvent(d.paymentSheetClosed,{paymentSheetLogDetails:p,success:!0}),r(n),[2]}})})}).catch(function(e){n.telemetryLogger.logEvent(d.paymentSheetClosed,{paymentSheetLogDetails:p,success:!1,error:JSON.stringify(e)}),o(e)})}}else o("setup error")}else o("setup error")})];case 1:return[2,r.sent()]}})})},this.isPaymentAgentSupportedPI=function(e){var t=e.piid.startsWith("cw_gpay")||e.piid.startsWith("cw_apay");return"cdc85313-9b57-4052-81fb-dea336132cbf"===e.piid||"be4de87d-7e38-4b2d-8836-9237eb32848e"===e.piid||t},this.clientSupported=function(e){var t=e,n=c.getApplePayEligible();return c.getGooglePayEligible()||(t=t.filter(function(e){return e!==a.GooglePay})),n||(t=t.filter(function(e){return e!==a.ApplePay})),t},this.getConfiguration=function(){return c.config},this.getProvisionResponseData=function(){return c.provisionResponseData},this.getPartner=function(){return c.partner},this.getPaymentAgentTelemetryLogger=function(){return c.telemetryLogger},this.isReadyToPay=function(){return c.configLoadMode===f.Remote?c.initialized:c.initialized&&c.setupComplete},this.isPaymentAgentInitialized=function(){return c.initialized},this.isPaymentAgentInitializing=function(){return c.initializing},this.getInitPromise=function(){return c.initPromise},this.getConfigLoadMode=function(){return c.configLoadMode};var u=new MessageChannel;this.hostPort=u.port1,this.messageChannel=u,this.applePayEligible=!1,this.googlePayEligible=!1,this.config=x,this.partner=e;var p=(null==s?void 0:s.toLowerCase())||"prod";p&&("prod"===p||"ppe"===p||"int"===p||"feature"===p)?this.environment=p:this.environment="prod",n&&(this.telemetryLogger=n),t&&(this.telemetryOptions=t)}return e.prototype.init=function(){var e;return v(this,void 0,void 0,function(){var t,n=this;return y(this,function(r){switch(r.label){case 0:if(!(!this.initializing&&!this.initialized))return[3,3];return this.initializing=!0,(null==(e=this.messageChannel)?void 0:e.port1)&&(this.messageChannel.port1.onmessage=function(e){return n.onHostMessage(e)}),this.initializePaymentHandlers(),[4,this.setupPayIframe()];case 1:return t=r.sent(),[4,this.deviceCheck()];case 2:r.sent(),this.initialized=!0,this.initializing=!1,r.label=3;case 3:return[2,Promise.resolve()]}})})},e.prototype.initAsync=function(){var e;return v(this,void 0,void 0,function(){var t,n=this;return y(this,function(r){return this.initPromise=Promise.resolve(),this.configLoadMode=f.Remote,this.initializing||this.initialized||(this.initializing=!0,(null==(e=this.messageChannel)?void 0:e.port1)&&(this.messageChannel.port1.onmessage=function(e){return n.onHostMessage(e)}),this.initializePaymentHandlers(),this.isCrossOrigin=J(),t=Promise.all([this.loadConfig(),this.setupPayIframe()]).then(function(e){return n.deviceCheckAsync()}).then(function(){n.initialized=!0,n.initializing=!1}).catch(function(e){n.telemetryLogger.logEvent(d.error,{message:"Payment Agent failed to initialize.",error:JSON.stringify(e)}),n.initializing=!1}),this.initPromise=t),[2,this.initPromise]})})},e.prototype.deviceCheckAsync=function(){var e=this;return Promise.all([this.applePayHandler.deviceCheck(this.config,this.partner),this.googlePayHandler.deviceCheck(this.config,this.partner)]).then(function(t){e.applePayEligible=t[0],e.googlePayEligible=t[1],e.telemetryLogger.logEvent(d.paymentAgentDeviceCheck,g({},e.paymentAgentDeviceCheckDetail(o.ApplePay,e.applePayEligible))),e.telemetryLogger.logEvent(d.paymentAgentDeviceCheck,g({},e.paymentAgentDeviceCheckDetail(o.GooglePay,e.googlePayEligible,e.googlePayHandler.useFallbackCheck())))})},e.prototype.initializePaymentHandlers=function(){this.googlePayHandler=new ee(this.telemetryLogger,this.telemetryOptions),this.applePayHandler=new et(this.telemetryLogger,this.telemetryOptions)},e.prototype.setupPayIframe=function(){var e,t;return v(this,void 0,void 0,function(){var n,r,o;return y(this,function(a){switch(a.label){case 0:return n=Date.now(),[4,null==(t=(e=this.googlePayHandler).setupPaymentIframe)?void 0:t.call(e,this.environment)];case 1:return r=a.sent(),o=Date.now()-n,this.telemetryLogger.logEvent(d.setupIframeCompleted,{message:"setupPayIframe completed",timeTaken:o}),[2,r]}})})},e.prototype.setupTopDomain=function(e,n){var r,o;if(!this.setupComplete){var a=null==(r=null==document?void 0:document.getElementsByName(e))?void 0:r[0];this.setupContext=t.SetupContext.TopDomain,this.messageChannel&&this.hostPort&&a&&(null==(o=a.contentWindow)||o.postMessage("paymentAgent.setup",n,[this.messageChannel.port2]),this.setupComplete=!0)}return Promise.resolve()},e.prototype.setupIframeDomain=function(e){return v(this,void 0,void 0,function(){var n=this;return y(this,function(r){switch(r.label){case 0:if(this.setupComplete)return[3,2];return this.setupContext=t.SetupContext.IframeDomain,this.iframePort=e.ports[0],this.iframePort.onmessage=function(e){return n.onIFrameMessage(e)},[4,this.loadConfig()];case 1:r.sent(),this.iframePort.postMessage({type:p.Config,data:this.config}),this.setupComplete=!0,r.label=2;case 2:return[2,Promise.resolve()]}})})},e.prototype.setupSingleDomain=function(){return v(this,void 0,void 0,function(){return y(this,function(e){switch(e.label){case 0:if(this.setupComplete)return[3,2];return this.setupContext=t.SetupContext.SingleDomain,[4,this.loadConfig()];case 1:e.sent(),this.setupComplete=!0,e.label=2;case 2:return[2,Promise.resolve()]}})})},e.prototype.onHostMessage=function(e){var t=e.data;t&&this.parsePostMessage(t)},e.prototype.onIFrameMessage=function(e){var t=e.data;t&&this.parsePostMessage(t)},e.prototype.parsePostMessage=function(e){switch(e.type){case p.Config:this.config=e.data;break;case p.Token:var t=e.data;this.provisionResponseData=t;break;default:this.telemetryLogger.logEvent(d.error,{message:"undefined message type"})}},e.prototype.loadConfig=function(){return v(this,void 0,void 0,function(){var e,t,n;return y(this,function(r){switch(r.label){case 0:e=this.buildLoadConfigQueryParams(this.partner,this.isCrossOrigin),r.label=1;case 1:return r.trys.push([1,3,,4]),t=this,[4,N(l.GetConfig,this.telemetryLogger,this.telemetryOptions,"".concat(F[this.environment],"/").concat(H,"?").concat(e))];case 2:return t.config=r.sent(),[3,4];case 3:return n=r.sent(),this.config=x,this.telemetryLogger.logEvent(d.fallBackToDefaultPaymentConfiguration,{message:"Failed to fetch payment config from server",debugMessage:JSON.stringify(n),error:n}),[3,4];case 4:return[2]}})})},e.prototype.deviceCheck=function(){return v(this,void 0,void 0,function(){var e,t;return y(this,function(n){switch(n.label){case 0:return e=this,[4,this.applePayHandler.deviceCheck(this.config)];case 1:return e.applePayEligible=n.sent(),t=this,[4,this.googlePayHandler.deviceCheck(this.config)];case 2:return t.googlePayEligible=n.sent(),this.telemetryLogger.logEvent(d.paymentAgentDeviceCheck,g({},this.paymentAgentDeviceCheckDetail(o.ApplePay,this.applePayEligible))),this.telemetryLogger.logEvent(d.paymentAgentDeviceCheck,g({},this.paymentAgentDeviceCheckDetail(o.GooglePay,this.googlePayEligible,this.googlePayHandler.useFallbackCheck()))),[2]}})})},e.prototype.getApplePayEligible=function(){return this.applePayEligible},e.prototype.getGooglePayEligible=function(){return this.googlePayEligible},e.prototype.getMessageChannel=function(){return this.messageChannel},e.prototype.getIframePort=function(){return this.iframePort},e.prototype.getHostPort=function(){return this.hostPort},e}(),er=function(){return function(){this.getApplicationInsights=function(){try{var e=n(14143);if(null==e?void 0:e.ApplicationInsights)return new e.ApplicationInsights}catch(e){return{initialize:function(){},trackEvent:function(){}}}},this.getCorrelationVectorPlugin=function(e){try{var t=n(96629);if(null==t?void 0:t.CorrelationVectorPlugin)return new t.CorrelationVectorPlugin(e)}catch(e){return{getCv:function(){return{count:0,increment:function(){return this.count=this.count+1,this.getValue()},getValue:function(){return"cv__"+this.count},isInit:function(){return!0}}}}}}}}(),eo=new(function(){return function(){var e=this;this.applicationInsightsInstance=null,this.cvPlugin=null,this.cvInstance=null,this.cvInitialValue=null,this.initOneDsObjects=function(){if(!e.applicationInsightsInstance)try{var t="4127950a47f84a01a75e9a7d49d79f14-b56cc96f-0faa-4455-912a-6b8df93eeac5-6769";e.cvPlugin||e.initCVPlugin(),e.oneDSService&&(e.applicationInsightsInstance=e.oneDSService.getApplicationInsights());var n={instrumentationKey:t,extensions:[e.cvPlugin],extensionConfig:[]};e.applicationInsightsInstance&&C.isFunction(e.applicationInsightsInstance.initialize)&&e.applicationInsightsInstance.initialize(n,[])}catch(e){console.error("1DS Error : Error when attempting to initialize 1DS.",e)}},this.initCVPlugin=function(){if(!e.cvPlugin){var t=void 0;e.oneDSService&&(e.cvPlugin=e.oneDSService.getCorrelationVectorPlugin(e.cvInitialValue)),e.cvPlugin&&C.isFunction(e.cvPlugin.getCv)&&(t=e.cvPlugin.getCv()),t&&C.isFunction(t.isInit)&&t.isInit()?e.cvInstance=t:e.cvPlugin&&C.isFunction(e.cvPlugin.getCv)&&(e.cvInstance=e.cvPlugin&&e.cvPlugin.getCv())}},this.getCVInstance=function(){return e.cvInstance||e.initCVPlugin(),e.cvInstance},this.reset=function(){e.cvPlugin=null,e.cvInstance=null,e.applicationInsightsInstance=null},this.getApplicationInsights=function(){return e.applicationInsightsInstance||e.initOneDsObjects(),e.applicationInsightsInstance},this.writeEvent=function(t,n,r){try{var o=e.getApplicationInsights();o&&C.isFunction(o.trackEvent)?o.trackEvent({name:t,baseData:n},r):console.error("1DS Error : ApplicationInsights is not correctly initialized")}catch(e){console.error("1DS Error : Error when attempting to track event with 1DS.",e)}},this.getIncrementedCV=function(){try{var t=e.getCVInstance();return t&&C.isFunction(t.increment)&&t.increment()}catch(e){console.error("1DS Error : There was an issue with incrementing the correlation vector",e)}},this.getCVValue=function(){try{var t=e.getCVInstance();return t&&C.isFunction(t.getValue)&&t.getValue()}catch(e){console.error("1DS Error : There is an issue with correlation vector getValue function",e)}},this.initCV=function(t){try{t&&(e.cvInitialValue=t,e.reset())}catch(e){console.error("1DS Error : There is an issue with Initializing CV",e)}},this.testHookReset=function(){e.applicationInsightsInstance=null,e.cvInstance=null},this.oneDSService||(this.oneDSService=new er)}}()),ei=function(){function e(){}return e.prototype.logEvent=function(e,t,n){"fetchCallCompleted"===t?this.logOSREvent(e,n&&n.httpRequestTelemetryData):this.logGenericEvent(e,t,n)},e.prototype.logGenericEvent=function(e,t,n){var r,o,a,s,l;try{if(C.isObject(e)){var c=((window||{}).location||{}).href||"",u={name:"Microsoft.Commerce.Payments.PidlSdk.PageEvent",partB:{pageName:(document||{}).title||"",uri:c,destUri:c,customSessionGuid:e.sessionId,impressionGuid:e.operationId,contentJsonVer:1,content:JSON.stringify({eventName:t})},partC:{sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null==(r=e.partnerContext)?void 0:r.partnerName,partnerContext:JSON.stringify(e.partnerContext),partnerContextMap:e.partnerContext,parentOperationId:(null==(o=e.partnerContext)?void 0:o.parentOperationId)||e.operationId,partnerFlowId:null==(a=e.partnerContext)?void 0:a.flowId,partnerSessionId:null==(s=e.partnerContext)?void 0:s.sessionId,partnerScenarioId:null==(l=e.partnerContext)?void 0:l.scenarioId,operationId:e.operationId,operationType:e.operationType,eventName:t,eventParameters:JSON.stringify(n),eventParametersMap:n,baseType:"Ms.Content.PageAction"}};C.isObject(e.telemetryResource)&&(u.partC.resourceType=e.telemetryResource.resourceType,u.partC.resourceParameters=JSON.stringify(e.telemetryResource.parameters),u.partC.resourceParametersMap=e.telemetryResource.parameters),eo.writeEvent(u.name,u.partB,u.partC)}}catch(e){console.error("TelemetryError",e)}},e.prototype.logOSREvent=function(e,t){var n,r,o,a,s;try{if(C.isObject(e)){var l={partner:((e.telemetryResource||{}).parameters||{}).partner,telemetryContext:e,responseHeaders:t.headers},c={name:"Ms.Webi.OutgoingRequest",partB:{operationName:t.operationName,targetUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.succeeded||!t.serviceErrorCode||isNaN(t.serviceErrorCode)?-1:t.serviceErrorCode,succeeded:t.succeeded,requestMethod:t.requestMethod,responseContentType:t.responseContentType,protocolStatusCode:t.protocolStatusCode,dependencyOperationName:t.dependencyOperationName,dependencyOperationVersion:t.dependencyOperationVersion&&t.dependencyOperationVersion.toString(),dependencyName:t.serviceName,dependencyType:"webservice",responseSizeBytes:t.contentLength},partC:{customSessionGuid:e.sessionId,impressionGuid:e.operationId,message:t.failureResponse,retryCount:t.retryCount,customData:JSON.stringify(l),sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null==(n=e.partnerContext)?void 0:n.partnerName,partnerContext:JSON.stringify(e.partnerContext),operationId:e.operationId,parentOperationId:(null==(r=e.partnerContext)?void 0:r.parentOperationId)||e.operationId,partnerFlowId:null==(o=e.partnerContext)?void 0:o.flowId,partnerSessionId:null==(a=e.partnerContext)?void 0:a.sessionId,partnerScenarioId:null==(s=e.partnerContext)?void 0:s.scenarioId,partnerContextMap:e.partnerContext,operationType:e.operationType,baseType:"Ms.Qos.OutgoingServiceRequest"}};eo.writeEvent(c.name,c.partB,c.partC)}}catch(e){console.error("TelemetryError",e)}},e}(),ea=function(){function e(e,t,n){this.partner=e,this.sdkVersion=t,this.telemetryInjectionService||(this.telemetryInjectionService=new ei),n&&eo.initCV(n)}return e.prototype.logEvent=function(e,t,n){var r,o=n||{};(null==o?void 0:o.sdkVersion)===void 0&&(o.sdkVersion=this.sdkVersion),(null==(r=null==o?void 0:o.partnerContext)?void 0:r.partnerName)===void 0&&(o.partnerContext?o.partnerContext.partnerName=this.partner:o.partnerContext={partnerName:this.partner}),this.telemetryInjectionService.logEvent(o,e,t)},e.prototype.getCorrelationId=function(){return eo.getCVValue()},e.prototype.getHttpRequestCorrelationHeader=function(){var e=eo.getIncrementedCV();if(e)return{name:"ms-cv",value:e}},e}(),es="2.9.0",el={init:function(e,t,n,r){var o,a=null==t?void 0:t.contextData,s=null==(o=null==t?void 0:t.contextData)?void 0:o.cvInitValue,l=n;return l||(l=new ea(e,es,s)),new Promise(function(n,o){l.logEvent(d.apiCalled,{message:"PaymentAgent.init"},a);var s,c,u,p,f=null==window?void 0:window.paymentAgent;!window||f||(null==(s=null==f?void 0:f.isPaymentAgentInitializing)?void 0:s.call(f))||(null==(c=null==f?void 0:f.isPaymentAgentInitialized)?void 0:c.call(f))?(null==(p=null==(u=window.paymentAgent)?void 0:u.isPaymentAgentInitialized)?void 0:p.call(u))?(l.logEvent(d.paymentAgentInitialized,{message:"Payment Agent object already exists "},a),n(!0)):(l.logEvent(d.error,{message:"Payment Agent failed to initialize."},a),o(!1)):(window.paymentAgent=new en(e,t,l,r),window.paymentAgent.init().then(function(){l.logEvent(d.paymentAgentInitialized,{},a),n(!0)}).catch(function(e){var t=JSON.stringify(e);l.logEvent(d.error,{message:"Payment Agent failed to initialize.",error:t},a),o(!1)}))})},setup:function(e,n,r,o,a){var s,l,c,u=null==o?void 0:o.contextData,p=null==window?void 0:window.paymentAgent,f=null==(s=null==o?void 0:o.contextData)?void 0:s.cvInitValue;if(p){null==(c=null==(l=p.getPaymentAgentTelemetryLogger)?void 0:l.call(p))||c.logEvent(d.apiCalled,{message:"PaymentAgent.setup",setupContext:n},u);var h=null;if(n===t.SetupContext.SingleDomain)h=p.setupSingleDomain();else if(n===t.SetupContext.TopDomain&&(null==r?void 0:r.iframeElementName)&&(null==r?void 0:r.iframeDomain))h=p.setupTopDomain(r.iframeElementName,r.iframeDomain);else if(n===t.SetupContext.IframeDomain&&(null==r?void 0:r.ports))h=p.setupIframeDomain(r);else{var m="Invalid properties passed to setup";return p.logEvent(d.error,{message:m},u),Promise.reject(m)}return h.then(function(){var e,t;return null==(t=null==(e=p.getPaymentAgentTelemetryLogger)?void 0:e.call(p))||t.logEvent(d.paymentAgentSetupComplete,{setupContext:n},u),!0}).catch(function(e){var t,n;return null==(n=null==(t=p.getPaymentAgentTelemetryLogger)?void 0:t.call(p))||n.logEvent(d.error,{message:e},u),!1})}var g=new ea(e,es,f);return(null!=a?a:g).logEvent(d.error,{message:"Payment Agent failed to setup."},u),Promise.reject("setup called before initialize")},isPaymentDeviceEligible:function(e,t,n,r,o){var a,s,l,c=null==r?void 0:r.contextData,u=null==window?void 0:window.paymentAgent,p=null==(a=null==r?void 0:r.contextData)?void 0:a.cvInitValue;if(u){var f=u.paymentDeviceEligibilityCheck(t,n);return null==(l=null==(s=u.getPaymentAgentTelemetryLogger)?void 0:s.call(u))||l.logEvent(d.apiCalled,{message:"PaymentAgent.isPaymentDeviceEligible",family:t,type:n,result:f},c),f}var h=new ea(e,es,p);return(null!=o?o:h).logEvent(d.error,{message:"isPaymentDeviceEligible called before initialize",family:t,type:n},c),!1},initAsync:function(e,t,n,r){var o,a,s,l,c,u=Date.now(),p=null==t?void 0:t.contextData,f=null==(o=null==t?void 0:t.contextData)?void 0:o.cvInitValue,h=n;h||(h=new ea(e,es,f)),h.logEvent(d.apiCalled,{message:"PaymentAgent.initAsync"},p);var m=Promise.resolve(!0),g=null==window?void 0:window.paymentAgent;if(!window||g||(null==(a=null==g?void 0:g.isPaymentAgentInitializing)?void 0:a.call(g))||(null==(s=null==g?void 0:g.isPaymentAgentInitialized)?void 0:s.call(g)))if(null==(c=null==(l=window.paymentAgent)?void 0:l.isPaymentAgentInitialized)?void 0:c.call(l)){var v=Date.now()-u;h.logEvent(d.paymentAgentInitialized,{message:"PaymentAgent.initAsync: Payment Agent object already exists",timeTaken:v},p)}else{var v=Date.now()-u;h.logEvent(d.error,{message:"PaymentAgent.initAsync: Payment Agent failed to initialize.",timeTaken:v},p),m=Promise.resolve(!1)}else window.paymentAgent=new en(e,t,h,r),m=window.paymentAgent.initAsync(e).then(function(){var e=Date.now()-u;return h.logEvent(d.paymentAgentInitialized,{message:"PaymentAgent.initAsync succeeded",timeTaken:e},p),!0}).catch(function(e){var t=JSON.stringify(e),n=Date.now()-u;return h.logEvent(d.error,{message:"PaymentAgent.initAsync: Payment Agent failed to initialize.",error:t,timeTaken:n},p),!1});return m},isPaymentDeviceEligibleAsync:function(e,t,n,r,o){return v(void 0,void 0,void 0,function(){var a,s,l,c,u,p,f;return y(this,function(h){return(a=Date.now(),s=null==r?void 0:r.contextData,l=null==window?void 0:window.paymentAgent,c=null==s?void 0:s.cvInitValue,l&&l.getInitPromise())?[2,l.getInitPromise().then(function(){var e,r,o=l.paymentDeviceEligibilityCheck(t,n),c=Date.now()-a;return null==(r=null==(e=l.getPaymentAgentTelemetryLogger)?void 0:e.call(l))||r.logEvent(d.apiCalled,{message:"isPaymentDeviceEligibleAsync: PaymentAgent.isPaymentDeviceEligibleAsync succeeded",family:t,type:n,result:o,timeTaken:c},s),Promise.resolve(o)}).catch(function(e){var t,n,r=JSON.stringify(e),o=Date.now()-a;return null==(n=null==(t=l.getPaymentAgentTelemetryLogger)?void 0:t.call(l))||n.logEvent(d.error,{message:"isPaymentDeviceEligibleAsync: Failed - Payment Agent failed to initialize.",error:r,timeTaken:o},s),Promise.resolve(!1)})]:(u=new ea(e,es,c),p=null!=o?o:u,f=Date.now()-a,p.logEvent(d.error,{message:"isPaymentDeviceEligibleAsync: it should be called after initAsync",timeTaken:f},s),[2,Promise.resolve(!1)])})})}},ec=function(){function e(e){this.pidlHooksCount=0,this.pidlHooks={},this.eventHandler=e}return e.prototype.reset=function(){this.pidlHooksCount=0,this.pidlHooks={}},e.prototype.unregisterPidlHook=function(e){delete this.pidlHooks[e]},e.prototype.registerPidlHook=function(e){var t=this;this.pidlHooks[this.pidlHooksCount]=e,e.model.setOrchestratorId(this.pidlHooksCount);var n=function(e){return function(n,r){if(t.eventHandler)return t.eventHandler(n,r,e)}};return e.addPublicEventHandler(n(this.pidlHooksCount)),this.pidlHooksCount++},e.prototype.broadcastPropertyValueUpdate=function(e,t,n,r,o){if(e<this.pidlHooksCount&&t&&t.broadcastTo){for(var a=[],s=0;s<this.pidlHooksCount;s++)if(s!==e){var l=this.pidlHooks[s];if(l&&l.model&&l.model.updatePropertyValue&&l.model.getPropertyModelElement){var c=l.model.getPropertyModelElement(t.broadcastTo);c&&a.push(l.model.updatePropertyValue(c,n,r,o,!1))}}return Promise.all(a).then(function(){})}return Promise.resolve()},e.prototype.getGlobalPropertyValue=function(e,t){if(e<this.pidlHooksCount)for(var n=0;n<e;n++){var r=this.pidlHooks[n];if(r&&r.model&&r.model.getPropertyValue){var o=r.model.getPropertyValue(t);if(void 0!==o)return o}}},e}(),eu={initializeOrchestrator:function(e){try{window.pidlOrchestrator=new ec(e)}catch(e){}},reset:function(){if(window.pidlOrchestrator)return window.pidlOrchestrator.reset()},unregisterPidlHook:function(e){window.pidlOrchestrator&&window.pidlOrchestrator.unregisterPidlHook(e)},registerPidlHook:function(e){return window.pidlOrchestrator?window.pidlOrchestrator.registerPidlHook(e):null},broadcastPropertyValueUpdate:function(e,t,n,r,o){if(window.pidlOrchestrator)return window.pidlOrchestrator.broadcastPropertyValueUpdate(e,t,n,r,o)},getGlobalPropertyValue:function(e,t){if(window.pidlOrchestrator)return window.pidlOrchestrator.getGlobalPropertyValue(e,t)}},ed={"ANDAMAN AND NICOBAR ISLAND":"AN","ANDHRA PRADESH":"AP","ARUNACHAL PRADESH":"AR",ASSAM:"AS",BIHAR:"BR",CHANDIGARH:"CH",CHHATTISGARH:"CT","DADRA AND NAGAR HAVELI":"DN","DAMAN AND DIU":"DD",DELHI:"DL",GOA:"GA",GUJARAT:"GJ",HARYANA:"HR","HIMACHAL PRADESH":"HP","JAMMU AND KASHMIR":"JK",JHARKHAND:"JH",KARNATAKA:"KA",KERALA:"KL",LAKSHADWEEP:"LD","MADHYA PRADESH":"MP",MAHARASHTRA:"MH",MANIPUR:"MN",MEGHALAYA:"ML",MIZORAM:"MZ",NAGALAND:"NL",ORISSA:"OR",PUDUCHERRY:"PY",PUNJAB:"PB",RAJASTHAN:"RJ",SIKKIM:"SK","TAMIL NADU":"TN",TELANGANA:"TG",TRIPURA:"TR","UTTAR PRADESH":"UP",UTTARAKHAND:"UT","WEST BENGAL":"WB",AN:"AN",AP:"AP",AR:"AR",AS:"AS",BR:"BR",CH:"CH",CT:"CT",DN:"DN",DD:"DD",DL:"DL",GA:"GA",GJ:"GJ",HR:"HR",HP:"HP",JK:"JK",JH:"JH",KA:"KA",KL:"KL",LD:"LD",MP:"MP",MH:"MH",MN:"MN",ML:"ML",MZ:"MZ",NL:"NL",OR:"OR",PY:"PY",PB:"PB",RJ:"RJ",SK:"SK",TN:"TN",TG:"TG",TR:"TR",UP:"UP",UT:"UT",WB:"WB"},ep={country:"pidlDocInfo.parameters.allowedCountries"};function ef(e){return Object.prototype.toString.call(e)}function eh(e){return e&&"[object Array]"===ef(e)}function em(e){return e&&"[object Object]"===ef(e)}function eg(e,t,n){if(void 0===n&&(n=!1),em(e)&&eh(t)){var r=Object.keys(e),o={};n?(t=t.map(function(e){return e.toLowerCase()}),r=r.map(function(e){var t=e.toLowerCase();return o[t]=e,t})):r.forEach(function(e){return o[e]=e});var a={};return r.forEach(function(n){t.indexOf(n)>=0&&(a[o[n]]=e[o[n]])}),a}}function ev(e){var t=null;return e&&e.partnerData&&e.partnerData.inputParameters&&e.partnerData.inputParameters.pidlDocInfo&&e.partnerData.inputParameters.pidlDocInfo.parameters&&(t=e.partnerData.inputParameters.pidlDocInfo.parameters.allowedPaymentMethods),t&&t.length&&(t=t.map(function(e){return e.toUpperCase()})),t}function ey(e,t){if(e&&e.partnerData&&e.partnerData.inputParameters&&t){var n=ep[t];if(n){var r=e.partnerData.inputParameters;return n.split(".").forEach(function(e){r=em(r)?r[e]:void 0}),r}}}function eb(e){if(!e)return null;var t=e.dataSources,n=e.partnerData;if(!t)return null;var r=t.profileResource,o=t.addressResource;return r&&r.address&&r.address.region?r.address.region:r&&r.default_address&&r.default_address.region?r.default_address.region:o&&o.serviceUsageAddress&&o.serviceUsageAddress.state?o.serviceUsageAddress.state:n&&n.prefillData&&(n.prefillData.state||n.prefillData.region)?n.prefillData.region?n.prefillData.region:n.prefillData.state:null}function ex(e,t,n){var r=t(e);return!!r&&n(r)}function eC(e){var t,n;return(null==(t=null==e?void 0:e.paymentMethod)?void 0:t.paymentMethodFamily)==="credit_card"&&(null==(n=null==e?void 0:e.details)?void 0:n.isNotSaved)}function ek(e){var t;return e&&e.paymentMethod&&"credit_card"===e.paymentMethod.paymentMethodFamily&&!(null==(t=null==e?void 0:e.details)?void 0:t.isNotSaved)}function ew(e,t,n){return e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily===t&&e.paymentMethod.paymentMethodType===n}function eS(e,t){return e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily===t}function e_(e){return ew(e,"offline_bank_transfer","check")}function eE(e){return ew(e,"credit_card","visa")}function eP(e){return ew(e,"credit_card","mc")}function eI(e){return ew(e,"credit_card","amex")}function eT(e){return ew(e,"credit_card","discover")}function eD(e){return ew(e,"credit_card","jcb")}function eA(e){return ew(e,"credit_card","hipercard")}function eR(e){return ew(e,"credit_card","elo")}function eN(e){return ew(e,"credit_card","unionpay_creditcard")}function eB(e){return ew(e,"credit_card","unionpay_debitcard")}function eM(e){return ew(e,"ewallet","paypal")}function eF(e){return eH(e)&&!eL(e)&&!!e.details.email}function eO(e){var t,n;return eH&&!eL(e)&&!(null==(t=e.details)?void 0:t.email)&&!!(null==(n=e.details)?void 0:n.userName)}function eL(e){return ew(e,"ewallet","stored_value")}function eH(e){return eS(e,"ewallet")}function ez(e){return ew(e,"direct_debit","ach")}function eV(e){return ew(e,"direct_debit","sepa")}function eU(e){return e&&e.paymentMethod&&"mobile_billing_non_sim"===e.paymentMethod.paymentMethodFamily}function ej(e){return ew(e,"mobile_billing_non_sim","spt-us-nonsim")}function eW(e){return ew(e,"mobile_billing_non_sim","vzw-us-nonsim")}function eq(e){return ew(e,"virtual","alipay")}function eG(e){return ew(e,"virtual","unionpay")}function eK(e){return ew(e,"virtual","invoice_basic")}function eX(e){return ew(e,"virtual","invoice_check")}function eY(e){return!eQ(e)}function e$(e){return e&&e.paymentMethod&&"add_new_payment_method"===e.paymentMethod.paymentMethodFamily}function eQ(e){if(e&&e.details&&ek(e)){var t=e.details,n=t.expiryMonth,r=t.expiryYear,o=void 0,a=void 0;try{o=Number(n),a=Number(r)}catch(e){return!1}var s=new Date,l=s.getMonth()+1,c=s.getFullYear();return c>a||l>o&&c>=a}return!1}function eJ(e){return e&&e.contextData}function eZ(e){if(e&&e.arguments&&e.arguments[0]&&e.dataSources&&e.dataSources.paymentInstruments&&eh(e.dataSources.paymentInstruments)){for(var t=e.arguments[0],n=e.dataSources.paymentInstruments,r=0;r<n.length;r++)if(n[r].id===t)return n[r]}}function e0(e){return e&&e.contextData&&e.contextData.primaryPaymentInstrument}function e1(e){return e&&e.contextData&&e.contextData.backupPaymentInstrument}function e2(e){return e&&e.partnerData&&e.partnerData.prefillData}function e5(e){e&&e.dataSources&&e.dataSources.billingGroups&&e.dataSources.billingGroups.value&&(e.contextData=e.dataSources.billingGroups.value);var t=e4(e);return t&&t.length>0}function e4(e){var t=[],n=null,r=ev(e);if(e&&e.partnerData&&e.partnerData.inputParameters&&e.partnerData.inputParameters.pidlDocInfo&&e.partnerData.inputParameters.pidlDocInfo.parameters&&e.partnerData.inputParameters.pidlDocInfo.parameters.filters&&(n=e.partnerData.inputParameters.pidlDocInfo.parameters.filters.allowedCurrencies),n&&n.length&&(n=n.map(function(e){return e.toUpperCase()})),e&&e.contextData&&e.contextData.length)for(var o=e.contextData,a=0;a<o.length;a++){var s=o[a],l=s.currency&&s.currency.toUpperCase();if(!(n&&n.length&&0>n.indexOf(l))){if(r&&r.length){var c=null,u=null,d=null,p=null,f=s.primaryPaymentInstrument&&s.primaryPaymentInstrument.paymentMethod;f&&(c=(f.paymentMethodFamily+"."+f.paymentMethodType).toUpperCase(),u=f.paymentMethodFamily.toUpperCase());var h=s.backupPaymentInstrument&&s.backupPaymentInstrument.paymentMethod;if(h&&(d=(h.paymentMethodFamily+"."+h.paymentMethodType).toUpperCase(),p=h.paymentMethodFamily.toUpperCase()),0>r.indexOf(c)&&0>r.indexOf(u)||h&&0>r.indexOf(d)&&0>r.indexOf(p))continue}t.push(s)}}return t}function e3(e){return"string"==typeof e}function e6(e){return"boolean"==typeof e}function e8(e){return"number"==typeof e}function e9(e){return e6(e)?e:e3(e)?"true"===e.trim().toLowerCase():!!e8(e)&&0!==e}function e7(e,t){return t[te(e.toLowerCase())]||""}function te(e){var t=e.toLowerCase();switch(t){case"mastercard":return"mc";case"americanexpress":case"american express":return"amex";default:return t||""}}function tt(e,t){for(var n,r=0,o=0;o<e.length;o++)(null==(n=e[o].paymentMethod)?void 0:n.paymentMethodFamily)==="credit_card"&&(r=o);if(r>0)for(var o=0;o<t.length;o++)e.splice(r+1,0,t[o]);else e=t.concat(e);return e}var tn={filterBillingGroups:e4,filterPaymentInstruments:function(e){var t=[],n=ev(e),r=!1,o=e&&e.partnerData&&e.partnerData.inputParameters&&e.partnerData.inputParameters.pidlDocInfo;if(o&&o.parameters&&o.parameters.filters&&(r=o.parameters.filters.filterExpiredPayment),e&&e.contextData&&e.contextData.length){var a=e.contextData;if(e.partnerData&&e.partnerData.prefillData){var s=e.partnerData.prefillData.paymentInstruments;s&&a.push.apply(a,s)}for(var l=0;l<a.length;l++){var c=a[l];if(n&&n.length&&c.paymentMethod){var u=(c.paymentMethod.paymentMethodFamily+"."+c.paymentMethod.paymentMethodType).toUpperCase(),d=c.paymentMethod.paymentMethodFamily.toUpperCase();if(0>n.indexOf(u)&&0>n.indexOf(d))continue}r&&eQ(c)||t.push(c)}}return t},filterOptions:function(e){var t=e.contextData;if(!t)return t;var n=t.propertyName,r=t.possible_values,o=t.possibleValues,a=t.possibleOptions;if(!n)return t;var s=ey(e,n);return s?(r&&(r=eg(r,s,!0)),o&&(o=eg(o,s,!0)),a&&(a=eg(a,s,!0)),{propertyName:n,possible_values:r,possibleValues:o,possibleOptions:a}):t},getBalanceInLocalCurrency:function(e){var t=e||{},n=t.contextData,r=void 0===n?{}:n,o=t.partnerData,a=void 0===o?{}:o,s=r.currency,l=r.balanceAmount;if(null!=l){var c=a&&a.inputParameters&&a.inputParameters.pidlDocInfo&&a.inputParameters.pidlDocInfo.parameters&&a.inputParameters.pidlDocInfo.parameters.language;if(s&&c){var u={style:"currency",currency:s};try{return l.toLocaleString(c,u)}catch(e){}}return l.toString&&l.toString()}return l},getIndiaPANID:function(e){var t=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n];if(r.type&&"INDIAPANID"===r.type.toUpperCase())return r.taxId}return null},getNationalIdentificationNumber:function(e){var t=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n];if(r.type&&"NATIONALIDENTIFICATIONNUMBER"===r.type.toUpperCase())return r.taxId}return null},getVatId:function(e){var t=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n];if(r.type&&"VATID"===r.type.toUpperCase())return r.taxId}return null},getIndiaGSTID:function(e){var t=eb(e),n=t&&ed[t.toUpperCase()],r=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(n&&r&&r.length)for(var o=0;o<r.length;o++){var a=r[o];if(a.state&&a.state.toUpperCase()===n&&a.type&&"GSTINID"===a.type.toUpperCase())return a.taxId}return null},hasBGBackupPI:function(e){return ex(e,e1,function(e){return!!e})},isBGBackupPICheck:function(e){return ex(e,e1,e_)},isBGBackupPICreditCard:function(e){return ex(e,e1,ek)},isBGBackupPINonCCNonCheck:function(e){return!ex(e,e1,ek)&&!ex(e,e1,e_)},isBGBackupPINonCreditCard:function(e){return!ex(e,e1,ek)},isBGPrimaryPICheck:function(e){return ex(e,e0,e_)},isBGPrimaryPICreditCard:function(e){return ex(e,e0,ek)},isBGPrimaryPINonCCNonCheck:function(e){return!ex(e,e0,ek)&&!ex(e,e0,e_)},isBGPrimaryPINonCreditCard:function(e){return!ex(e,e0,ek)},isSelectedCreditCardExpired:function(e){return ex(e,eZ,eQ)},isSelectedCreditCardAmex:function(e){return ex(e,eZ,eI)},isCreditCardExpired:function(e){return ex(e,eJ,eQ)},isCreditCardNotExpired:function(e){return ex(e,eJ,eY)},isUserPICheck:function(e){return ex(e,eJ,e_)},isUserWalletPICard:function(e){return ex(e,eJ,eC)},isUserPICreditCard:function(e){return ex(e,eJ,ek)},isUserPIValidCreditCard:function(e){return ex(e,eJ,ek)&&ex(e,eJ,eY)},isUserPINonCCNonCheck:function(e){return!ex(e,eJ,ek)&&!ex(e,eJ,e_)&&!ex(e,eJ,e$)&&!ex(e,eJ,eC)},isUserPINonCCNonCheckNonPayPal:function(e){return!ex(e,eJ,ek)&&!ex(e,eJ,e_)&&!ex(e,eJ,eM)&&!ex(e,eJ,e$)&&!ex(e,eJ,eC)},isUserPINonCCNonCheckNonUserEwallet:function(e){return!ex(e,eJ,ek)&&!ex(e,eJ,e_)&&!ex(e,eJ,eF)&&!ex(e,eJ,eO)&&!ex(e,eJ,e$)&&!ex(e,eJ,eC)},isUserPINonCCNonCheckNonPayPalNonStoredValue:function(e){return!ex(e,eJ,ek)&&!ex(e,eJ,e_)&&!ex(e,eJ,eM)&&!ex(e,eJ,eL)&&!ex(e,eJ,e$)&&!ex(e,eJ,eC)},isUserPINonCreditCard:function(e){return!ex(e,eJ,ek)},isUserPIVisa:function(e){return ex(e,eJ,eE)},isUserPIMastercard:function(e){return ex(e,eJ,eP)},isUserPIAmex:function(e){return ex(e,eJ,eI)},isUserPIDiscover:function(e){return ex(e,eJ,eT)},isUserPIJCB:function(e){return ex(e,eJ,eD)},isUserPIHipercard:function(e){return ex(e,eJ,eA)},isUserPIElo:function(e){return ex(e,eJ,eR)},isUserPIUnionPayCreditCard:function(e){return ex(e,eJ,eN)},isUserPIUnionPayDebitCard:function(e){return ex(e,eJ,eB)},isUserEwalletWithEmail:function(e){return ex(e,eJ,eF)},isUserEwalletWithUserName:function(e){return ex(e,eJ,eO)},IsEwalletPayPal:function(e){return ex(e,eJ,eM)},IsEwalletStoredValue:function(e){return ex(e,eJ,eL)},IsEwallet:function(e){return ex(e,eJ,eH)},IsEwalletNonStoredValue:function(e){return ex(e,eJ,eH)&&!ex(e,eJ,eL)},isUserPIEWalletPayPal:function(e){return ex(e,eJ,eM)},isUserPIEWalletStoredValue:function(e){return ex(e,eJ,eL)},isUserPIDirectDebitAch:function(e){return ex(e,eJ,ez)},isUserPIDirectDebitSepa:function(e){return ex(e,eJ,eV)},isUserPISptNSM:function(e){return ex(e,eJ,ej)},isUserPIVzwNSM:function(e){return ex(e,eJ,eW)},isUserPINonSimMobi:function(e){return ex(e,eJ,eU)},isUserPIVirtualAlipay:function(e){return ex(e,eJ,eq)},isUserPIVirtualUnionpay:function(e){return ex(e,eJ,eG)},isUserPIVirtualInvoiceBasic:function(e){return ex(e,eJ,eK)},isUserPIVirtualInvoiceCheck:function(e){return ex(e,eJ,eX)},showAddBGLink:function(e){return ex(e,e2,function(e){return e.showAddBillingGroupLink})},showEditBGLink:e5,showAddPILink:function(e){var t=ev(e),n=e&&e.dataSources&&e.dataSources.paymentMethods;if(n&&n.length)for(var r=0;r<n.length;r++){var o=n[r];if(o.properties&&o.properties.userManaged){var a=(o.paymentMethodFamily+"."+o.paymentMethodType).toUpperCase(),s=o.paymentMethodFamily.toUpperCase();if(null==t||t.indexOf(a)>-1||t.indexOf(s)>-1)return!0}}return!1},showLEEditLink:function(e){return ex(e,e2,function(e){return e.showEditLink})},ordersExists:function(e){return e&&e.contextData&&e.contextData.orders&&e.contextData.orders.length>0},subscriptionsExists:function(e){return e&&e.contextData&&e.contextData.subs&&e.contextData.subs.length>0},isUserCSVFilled:function(e){return e&&e.contextData&&e.contextData.details&&e.contextData.details.balance>0},isUserCSVEmpty:function(e){return e&&e.contextData&&e.contextData.details&&e.contextData.details.balance<=0},isAddNewPaymentMethodOption:function(e){return ex(e,eJ,e$)},not:function(e){return!!e&&!!e.arguments&&!!e.arguments[0]&&!e9(e.arguments[0])},or:function(e){return e&&e.arguments&&(e9(e.arguments[0])||e9(e.arguments[1]))},ternary:function(e){if(e&&e.arguments&&3===e.arguments.length)if(e9(e.arguments[0]))return e.arguments[1];else return e.arguments[2]},stringEquals:function(e){return e&&e.arguments&&e.arguments[0]&&e.arguments[1]&&e.arguments[0]===e.arguments[1]},stringEqualsIgnoreCase:function(e){return e&&e.arguments&&e.arguments[0]&&e.arguments[1]&&e.arguments[0].toLowerCase&&e.arguments[1].toLowerCase&&e.arguments[0].toLowerCase()===e.arguments[1].toLowerCase()},mergeLocalCards:function(e){var t,n,r,o;if((null==e?void 0:e.arguments.length)==3){for(var a=e.arguments[0]||[],s=e.arguments[1]||{},l=e.arguments[2]||[],c=l,u=[],d=function(e){var c=a[e],d=null==(t=c.details)?void 0:t.paymentMethodType,p={id:"Card-".concat(e),details:g(g({},c.details),{lastFourDigits:null==(r=null==(n=c.details)?void 0:n.accountToken)?void 0:r.slice(-4),isNotSaved:!0,expiryMonth:Number(null==(o=c.details)?void 0:o.expiryMonth)}),paymentMethod:{display:{name:d,logo:e7(d,s)},groupDisplayName:"Credit or debit card",paymentMethodFamily:"credit_card",paymentMethodType:te(d),paymentMethodGroup:"credit_or_debit_card"},status:"pending"};l.find(function(e){var t;return(null==(t=e.details)?void 0:t.lastFourDigits)===p.details.lastFourDigits})||u.push(p)},p=0;p<a.length;p++)d(p);return tt(c,u)}return[]},mergeAndFillLocalCards:function(e){var t,n,r,o,a,s;if((null==e?void 0:e.arguments.length)==2){for(var l=e.arguments[0]||[],c=e.arguments[1]||[],u=null==(n=null==(t=e.model)?void 0:t.pidlDocManager)?void 0:n.getLogosFromDataDescription(),d=l,p=[],f=function(e){var t=c[e],n=null==(r=t.details)?void 0:r.paymentMethodType,d={id:"Card-".concat(e),details:g(g({},t.details),{lastFourDigits:null==(a=null==(o=t.details)?void 0:o.accountToken)?void 0:a.slice(-4),isNotSaved:!0,expiryMonth:Number(null==(s=t.details)?void 0:s.expiryMonth)}),paymentMethod:{display:{name:n,logo:e7(n,u)},groupDisplayName:"Credit or debit card",paymentMethodFamily:"credit_card",paymentMethodType:te(n),paymentMethodGroup:"credit_or_debit_card"},status:"pending"};l.find(function(e){var t;return(null==(t=e.details)?void 0:t.lastFourDigits)===d.details.lastFourDigits})||p.push(d)},h=0;h<c.length;h++)f(h);return tt(d,p)}return[]},mergeLocalData:function(e){if((null==e?void 0:e.arguments.length)==2){var t=e.arguments[0]||[],n=e.arguments[1]||[];return b(b([],t,!0),n,!0)}return[]},singleDigitMonth:function(e){var t;return 10>Number(null==(t=null==e?void 0:e.arguments)?void 0:t[0])},doubleDigitMonth:function(e){var t;return Number(null==(t=null==e?void 0:e.arguments)?void 0:t[0])>=10},filterPaymentInstrumentsByCountry:function(e){var t=[];if((null==e?void 0:e.arguments.length)==2){for(var n=e.arguments[0]||[],r=(e.arguments[1]||{}).allowedCountries||[],o=0;o<r.length;o++)r[o]=r[o].toLowerCase();n.forEach(function(e){var n,o,a,s,l;(!(null==(o=null==(n=e.details)?void 0:n.address)?void 0:o.country)||r.includes(null==(l=null==(s=null==(a=e.details)?void 0:a.address)?void 0:s.country)?void 0:l.toLowerCase()))&&t.push(e)})}return t},getDataSourceCount:function(e){var t;if((null==(t=null==e?void 0:e.arguments)?void 0:t.length)===2){var n=e.arguments[0],r=e.arguments[1];if("paymentInstruments"===n){var o=r,a=null==o?void 0:o.reduce(function(e,t){var n,r=(null==(n=null==t?void 0:t.paymentMethod)?void 0:n.paymentMethodFamily)||"unknown";if("credit_card"===r){var o=null==t?void 0:t.details;(null==o?void 0:o.isNotSaved)&&(r="wallet_card")}return e[r]?e[r]++:e[r]=1,e},{});return a||{}}}return{}},add:function(e){return e&&e.arguments&&Number((Number(e.arguments[0])+Number(e.arguments[1])).toFixed(2))},minus:function(e){return e&&e.arguments&&Number(e.arguments[0])-Number(e.arguments[1])},multiply:function(e){return e&&e.arguments&&Number(e.arguments[0])*Number(e.arguments[1])},divide:function(e){return e&&e.arguments&&Number(e.arguments[0])/Number(e.arguments[1])},negate:function(e){return e&&e.arguments&&-1*Number(e.arguments[0])},numberEquals:function(e){return e&&e.arguments&&Number(e.arguments[0])===Number(e.arguments[1])}};function tr(e,t){return tn.hasOwnProperty(e)?tn[e].apply(null,[t]):null}function to(){try{window.pidlResourceHelpers={whitelistedFunctionMappings:tn,executeExtensionFunc:tr}}catch(e){}}to(),eu.initializeOrchestrator(),t.PaymentAgent=el,t.PidlOrchestrator=eu,t.executeExtensionFunc=tr,t.initializeResources=to,t.whitelistedFunctionMappings=tn},14143(e,t,n){"use strict";n.r(t),n.d(t,{PropertiesPlugin:()=>n9,Behavior:()=>l,DiagnosticLogger:()=>U.wq,WebAnalytics:()=>a1,TraceLevel:()=>B,EventsDiscardedReason:()=>V,RT_PROFILE:()=>eb,CoreUtils:()=>M.jS,BE_PROFILE:()=>eC,ApplicationInsights:()=>a4,EventLatency:()=>R,AutoCaptureHandler:()=>aG,EventPersistence:()=>N,MinChannelPriorty:()=>u,NotificationManager:()=>z,PostChannel:()=>tM,ValueKind:()=>A,ActionType:()=>n7,AppInsightsCore:()=>ev,NRT_PROFILE:()=>ex,Utils:()=>M.Aq});var r,o,a,s,l,c,u=100,d=n(80212),p=n(94552);function f(e){var t={};return(0,p.z)(e,function(e,n){t[e]=n,t[n]=e}),(0,p.ol)(t)}function h(e){var t={};return(0,p.z)(e,function(e,n){t[e]=n[1],t[n[0]]=n[1]}),(0,p.ol)(t)}var m="Failed",g=m+"MonitorAjax",v="Track",y="Start",b="Stop",x="Event",C="AuthContext",k="Exception",w="Local",S="Session",_="Storage",E="Browser",P="Cannot",I="Buffer",T="InstrumentationKey";f({CRITICAL:1,WARNING:2});var D=f(((r={})[E+"DoesNotSupport"+w+_]=0,r[E+P+"Read"+w+_]=1,r[E+P+"Read"+S+_]=2,r[E+P+"Write"+w+_]=3,r[E+P+"Write"+S+_]=4,r[E+m+"RemovalFrom"+w+_]=5,r[E+m+"RemovalFrom"+S+_]=6,r[P+"SendEmptyTelemetry"]=7,r.ClientPerformanceMathError=8,r["ErrorParsingAI"+S+"Cookie"]=9,r.ErrorPVCalc=10,r[k+"WhileLoggingError"]=11,r[m+"AddingTelemetryTo"+I]=12,r[g+"Abort"]=13,r[g+"Dur"]=14,r[g+"Open"]=15,r[g+"RSC"]=16,r[g+"Send"]=17,r[g+"GetCorrelationHeader"]=18,r[m+"ToAddHandlerForOnBeforeUnload"]=19,r[m+"ToSendQueuedTelemetry"]=20,r[m+"ToReportDataLoss"]=21,r["Flush"+m]=22,r.MessageLimitPerPVExceeded=23,r.MissingRequiredFieldSpecification=24,r.NavigationTimingNotSupported=25,r.OnError=26,r[S+"RenewalDateIsZero"]=27,r.SenderNotInitialized=28,r[y+v+x+m]=29,r[b+v+x+m]=30,r[y+v+m]=31,r[b+v+m]=32,r.TelemetrySampledAndNotSent=33,r[v+x+m]=34,r[v+k+m]=35,r[v+"Metric"+m]=36,r[v+"PV"+m]=37,r[v+"PV"+m+"Calc"]=38,r[v+"Trace"+m]=39,r["Transmission"+m]=40,r[m+"ToSet"+_+I]=41,r[m+"ToRestore"+_+I]=42,r.InvalidBackendResponse=43,r[m+"ToFixDepricatedValues"]=44,r.InvalidDurationValue=45,r.TelemetryEnvelopeInvalid=46,r.CreateEnvelopeError=47,r[P+"SerializeObject"]=48,r[P+"SerializeObjectNonSerializable"]=49,r.CircularReferenceDetected=50,r["Clear"+C+m]=51,r[k+"Truncated"]=52,r.IllegalCharsInName=53,r.ItemNotInArray=54,r.MaxAjaxPerPVExceeded=55,r.MessageTruncated=56,r.NameTooLong=57,r.SampleRateOutOfRange=58,r["Set"+C+m]=59,r["Set"+C+m+"AccountName"]=60,r.StringValueTooLong=61,r.StartCalledMoreThanOnce=62,r.StopCalledWithoutStart=63,r["TelemetryInitializer"+m]=64,r.TrackArgumentsNotSpecified=65,r.UrlTooLong=66,r[S+_+I+"Full"]=67,r[P+"AccessCookie"]=68,r.IdTooLong=69,r.InvalidEvent=70,r[g+"SetRequestHeader"]=71,r["Send"+E+"InfoOnUserInit"]=72,r["Plugin"+k]=73,r["Notification"+k]=74,r.SnippetScriptLoadFailure=99,r["Invalid"+T]=100,r[P+"ParseAiBlobValue"]=101,r.InvalidContentBlob=102,r[v+"PageAction"+x+m]=103,r[m+"AddingCustomDefinedRequestContext"]=104,r["InMemory"+_+I+"Full"]=105,r[T+"Deprecation"]=106,r)),A=f({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,Pii_IPv6ScrubLastHextets:14,Pii_DropValue:15,CustomerContent_GenericContent:32}),R=f({Normal:1,CostDeferred:2,RealTime:3,Immediate:4});f({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9});var N=f({Normal:1,Critical:2}),B=f({NONE:0,ERROR:1,WARNING:2,INFORMATION:3});(0,p.N6)((0,d.Im)((0,d.Im)({},D),f({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520})));var M=n(77414),F=n(18108),O=n(8013),L=n(62805);function H(e,t,n,r){(0,p.Iu)(e,function(e){if(e&&e[t])if(n)setTimeout(function(){return r(e)},0);else try{r(e)}catch(e){}})}var z=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,F.A)(e,this,function(e){e[O.vR]=function(t){e.listeners[O.y5](t)},e[O.TP]=function(t){for(var n=(0,p.rD)(e[O.lJ],t);n>-1;)e.listeners[O.Ic](n,1),n=(0,p.rD)(e[O.lJ],t)},e[L.fc]=function(t){H(e[O.lJ],L.fc,!0,function(e){e[L.fc](t)})},e[L.Yp]=function(t,n){H(e[O.lJ],L.Yp,!0,function(e){e[L.Yp](t,n)})},e[L.dI]=function(t,n){H(e[O.lJ],L.dI,n,function(e){e[L.dI](t,n)})},e[L.l0]=function(t){t&&(n||!t[O.Zu]())&&H(e[O.lJ],L.l0,!1,function(e){t[O.tI]?setTimeout(function(){return e[L.l0](t)},0):e[L.l0](t)})}})}return e.__ieDyn=1,e}(),V=f({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),U=n(88008),j=n(17841),W=n(57923),q=n(29381),G=n(61100),K=n(8643),X=500,Y="Channel has invalid priority - ";function Q(e,t,n){t&&(0,p.cy)(t)&&t[O.oI]>0&&(t=t.sort(function(e,t){return e[L.Vo]-t[L.Vo]}),(0,p.Iu)(t,function(e){e[L.Vo]<X&&(0,p.$8)(Y+e[O.Ju])}),e[O.y5]({queue:(0,p.N6)(t),chain:(0,G.PV)(t,n[O.GA],n)}))}function J(e,t){function n(){return(0,G.i8)(null,t[O.GA],t,null)}function r(e,t,n,r){var o=e?e[O.oI]+1:1;function a(){0==--o&&(r&&r(),r=null)}o>0&&(0,p.Iu)(e,function(e){if(e&&e.queue[O.oI]>0){var r=e.chain,s=t[O.$o](r);s[O.by](a),n(s)}else o--}),a()}var o=!1;return{identifier:"ChannelControllerPlugin",priority:X,initialize:function(t,n,r,a){o=!0,(0,p.Iu)(e,function(e){e&&e.queue[O.oI]>0&&(0,K.pI)((0,G.i8)(e.chain,t,n),r)})},isInitialized:function(){return o},processTelemetry:function(t,o){r(e,o||n(),function(e){e[O.$5](t)},function(){o[O.$5](t)})},update:function(t,n){var o=n||{reason:0};return r(e,t,function(e){e[O.$5](o)},function(){t[O.$5](o)}),!0},pause:function(){r(e,n(),function(e){e.iterate(function(e){e.pause&&e.pause()})},null)},resume:function(){r(e,n(),function(e){e.iterate(function(e){e.resume&&e.resume()})},null)},teardown:function(t,n){var a=n||{reason:0,isAsync:!1};return r(e,t,function(e){e[O.$5](a)},function(){t[O.$5](a),o=!1}),!0},getChannel:function(t){var n=null;return e&&e[O.oI]>0&&(0,p.Iu)(e,function(e){if(e&&e.queue[O.oI]>0&&((0,p.Iu)(e.queue,function(e){if(e[O.Ju]===t)return n=e,-1}),n))return -1}),n},flush:function(t,o,a,s){var l=1,c=!1,u=null;function d(){l--,c&&0===l&&(u&&(clearTimeout(u),u=null),o&&o(c),o=null)}return s=s||5e3,r(e,n(),function(e){e.iterate(function(e){if(e[O.EX]){l++;var n=!1;e[O.EX](t,function(){n=!0,d()},a)||n||(t&&null==u?u=setTimeout(function(){u=null,d()},s):d())}})},function(){c=!0,d()}),!0},_setQueue:function(t){e=t}}}function Z(e,t,n){var r=[];if(e&&(0,p.Iu)(e,function(e){return Q(r,e,n)}),t){var o=[];(0,p.Iu)(t,function(e){e[L.Vo]>X&&o[O.y5](e)}),Q(r,o,n)}return r}var ee=n(45899),et=n(93709),en=n(8106),er=n(78964),eo=function(e){function t(){var n,r,o=e.call(this)||this;function a(){n=0,r=[]}return o.identifier="TelemetryInitializerPlugin",o.priority=199,a(),(0,F.A)(t,o,function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[O.y5](t),{remove:function(){(0,p.Iu)(r,function(e,n){if(e.id===t.id)return r[O.Ic](n,1),-1})}}},e[L.qT]=function(t,n){for(var o=!1,a=r[O.oI],s=0;s<a;++s){var l=r[s];if(l)try{if(!1===l.fn[O.y9](null,[t])){o=!0;break}}catch(e){(0,U.ZP)(n[O.e4](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,p.lL)(e),{exception:(0,W.mm)(e)},!0)}}o||e[O.$5](t,n)},e[O.tn]=function(){a()}}),o}return(0,d.qU)(t,e),t.__ieDyn=1,t}(er.s),ei=n(50675),ea="Plugins must provide initialize method",es="_notificationManager",el="SDK is still unloading...",ec="SDK is not initialized",eu={loggingLevelConsole:1};function ed(e,t){return new j.NS(t)}function ep(e,t,n){var r,o=[],a={};return(0,p.Iu)(n,function(n){((0,p.hX)(n)||(0,p.hX)(n[O.mE]))&&(0,p.$8)(ea);var r=n[L.Vo],s=n[O.Ju];n&&r&&((0,p.hX)(a[r])?a[r]=s:(0,U.OG)(e,"Two extensions have same priority #"+r+" - "+a[r]+", "+s)),(!r||r<t)&&o[O.y5](n)}),(r={all:n})[L.eT]=o,r}function ef(e,t){var n=!1;return(0,p.Iu)(t,function(t){if(t===e)return n=!0,-1}),n}function eh(){var e;return(0,q.AQ)(((e={})[O.vR]=function(e){},e[O.TP]=function(e){},e[L.fc]=function(e){},e[L.Yp]=function(e,t){},e[L.dI]=function(e,t){},e))}var em=function(e){function t(){var n=e.call(this)||this;return(0,F.A)(t,n,function(e,t){function n(e){(0,p.hX)(e[O.RS])&&(r(e),(0,p.$8)("telemetry name required"))}function r(t){var n=e[O.RF]();n&&n[L.Yp]([t],2)}e[O.mE]=function(e,n,r,o){t[O.mE](e,n,r||new U.wq(e),o||new z(e))},e.track=function(o){(0,j.r2)(e[L.kI](),function(){return"AppInsightsCore:track"},function(){null===o&&(r(o),(0,p.$8)("Invalid telemetry item")),n(o),t.track(o)},function(){return{item:o}},!o.sync)}}),n}return(0,d.qU)(t,e),t.__ieDyn=1,t}(function(){function e(){var t,n,r,o,a,s,l,c,u,f,h,m,g,v,y,b,x,C,k,w,S=0,_=!1;(0,F.A)(e,this,function(e){function E(n){if(!S&&!_&&(n||e[O.Uw]&&e[O.Uw].queue[O.oI]>0)){var r=(0,p.SA)(t.diagnosticLogInterval);r&&r>0||(r=1e4),S=setInterval(function(){clearInterval(S),S=0,N()},r)}return S}function P(){n=!1,t=(0,p.CP)(!0,{},eu),e[O.GA]=t,e[O.Uw]=new U.wq(t),e[O.H7]=[],y=new eo,r=[],o=null,a=null,s=null,l=null,c=null,f=null,u=[],h=null,m=null,g=null,v=!1,b=null,x=(0,et.Z)("AIBaseCore",!0),C=(0,ei.P)(),w=null}function I(){var n=(0,G.i8)(A(),t,e);return n[O.by](E),n}function T(n){var r=ep(e[O.Uw],X,u);f=r[L.eT],c=null;var o=r.all;if(g=(0,p.N6)(Z(m,o,e)),h){var a=(0,p.rD)(o,h);-1!==a&&o[O.Ic](a,1),-1!==(a=(0,p.rD)(f,h))&&f[O.Ic](a,1),h._setQueue(g)}else h=J(g,e);o[O.y5](h),f[O.y5](h),e[O.H7]=(0,K.Xc)(o),h[O.mE](t,e,o);var s=I();(0,K.pI)(s,o),e[O.H7]=(0,p.N6)((0,K.Xc)(f||[])).slice(),n&&z(n)}function D(t){var n,r=null,o=null;return(0,p.Iu)(e[O.H7],function(e){if(e[O.Ju]===t&&e!==h&&e!==y)return o=e,-1}),!o&&h&&(o=h.getChannel(t)),o&&((n={plugin:o})[O.kt]=function(e){(0,K.Cr)(o)[L.Hr]=!e},n.isEnabled=function(){var e=(0,K.Cr)(o);return!e[O.Ik]&&!e[L.Hr]},n.remove=function(e,t){void 0===e&&(e=!0);var n,r=[o];R(r,((n={reason:1})[O.tI]=e,n),function(e){e&&T({reason:32,removed:r}),t&&t(e)})},r=n),r}function A(){if(!c){var n=(f||[]).slice();-1===(0,p.rD)(n,y)&&n[O.y5](y),c=(0,G.PV)((0,K.Xc)(n),t,e)}return c}function R(n,r,o){if(n&&n[O.oI]>0){var a=(0,G.PV)(n,t,e),s=(0,G.tS)(a,e);s[O.by](function(){var e=!1,t=[];(0,p.Iu)(u,function(r,o){ef(r,n)?e=!0:t[O.y5](r)}),u=t;var r=[];m&&((0,p.Iu)(m,function(t,o){var a=[];(0,p.Iu)(t,function(t){ef(t,n)?e=!0:a[O.y5](t)}),r[O.y5](a)}),m=r),o&&o(e),E()}),s[O.$5](r)}else o(!1)}function N(){if(e[O.Uw]&&e[O.Uw].queue){var n=e[O.Uw].queue.slice(0);e[O.Uw].queue[O.oI]=0,(0,p.Iu)(n,function(n){var r,o=((r={})[O.RS]=b||"InternalMessageId: "+n[O.JR],r.iKey=(0,p.SA)(t[O.sl]),r.time=(0,p._u)(new Date),r.baseType=U.WD.dataType,r.baseData={message:n[O.pM]},r);e.track(o)})}}function B(e,t,n,r){return h?h[O.EX](e,t,n||6,r):(t&&t(!1),!0)}function M(){var e=(0,p.SA)(t.disableDbgExt);!0===e&&k&&(o[O.TP](k),k=null),o&&!k&&!0!==e&&(k=(0,en.M)(t),o[O.vR](k))}function F(){var e=(0,p.SA)(t.enablePerfMgr);!e&&s&&(s=null),e&&(0,p.c2)(t,L.Yd,ed)}function H(){(0,p.c2)(t,L.Bw,{}).NotificationManager=o}function z(t){var n=(0,G.nU)(A(),e);n[O.by](E),e._updateHook&&!0===e._updateHook(n,t)||n[O.$5](t)}function V(t){var n=e[O.Uw];n?((0,U.ZP)(n,2,73,t),E()):(0,p.$8)(t)}P(),e[O.tZ]=function(){return n},e[O.mE]=function(r,a,s,l){v&&(0,p.$8)(el),e[O.tZ]()&&(0,p.$8)("Core should not be initialized more than once"),t=r||{},e[O.GA]=t,(0,p.hX)(r[O.sl])&&(0,p.$8)("Please provide instrumentation key"),o=l,e[es]=l,M(),F(),H(),s&&(e[O.Uw]=s);var c=(0,p.c2)(t,L.jy,[]);(u=[])[O.y5].apply(u,(0,d.vz)((0,d.vz)([],a,!1),c,!1)),m=(0,p.c2)(t,L.LZ,[]),T(null),g&&0!==g[O.oI]||(0,p.$8)("No "+L.LZ+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return g&&(0,p.Iu)(g,function(t){e[O.y5](t.queue)}),(0,p.N6)(e)},e.track=function(n){n.iKey=n.iKey||t[O.sl],n[O.fA]=n[O.fA]||(0,p._u)(new Date),n.ver=n.ver||"4.0",!v&&e[O.tZ]()?I()[O.$5](n):r[O.y5](n)},e[O.ps]=I,e[O.RF]=function(){return o||(o=eh(),e[es]=o),o},e[O.vR]=function(e){o&&o[O.vR](e)},e[O.TP]=function(e){o&&o[O.TP](e)},e.getCookieMgr=function(){return l||(l=(0,ee.xN)(t,e[O.Uw])),l},e.setCookieMgr=function(e){l=e},e[L.kI]=function(){if(!a&&!s&&(0,p.SA)(t.enablePerfMgr)){var n=(0,p.SA)(t[L.Yd]);(0,p.Tn)(n)&&(s=n(e,e[O.RF]()))}return a||s||(0,j.Z4)()},e.setPerfMgr=function(e){a=e},e.eventCnt=function(){return r[O.oI]},e.releaseQueue=function(){if(n&&r[O.oI]>0){var e=r;r=[],(0,p.Iu)(e,function(e){I()[O.$5](e)})}},e.pollInternalLogs=function(e){return b=e||null,_=!1,S&&(clearInterval(S),S=null),E(!0)},e[O.Di]=function(){_=!0,S&&(clearInterval(S),S=0,N())},(0,p.o$)(e,function(){return y},["addTelemetryInitializer"]),e.unload=function(t,r,o){void 0===t&&(t=!0),n||(0,p.$8)(ec),v&&(0,p.$8)(el);var a,s=((a={reason:50})[O.tI]=t,a.flushComplete=!1,a),l=(0,G.tS)(A(),e);function c(t){s.flushComplete=t,v=!0,C.run(l,s),e[O.Di](),l[O.$5](s)}l[O.by](function(){P(),r&&r(s)},e),N(),B(t,c,6,o)||c(!1)},e[O.AP]=D,e.addPlugin=function(e,t,n,r){if(!e){r&&r(!1),V(ea);return}var o=D(e[O.Ju]);if(o&&!t){r&&r(!1),V("Plugin ["+e[O.Ju]+"] is already loaded!");return}var a={reason:16};function s(t){u[O.y5](e),a.added=[e],T(a),r&&r(!0)}if(o){var l=[o.plugin];R(l,{reason:2,isAsync:!!n},function(e){e?(a.removed=l,a.reason|=32,s(!0)):r&&r(!1)})}else s(!1)},e.evtNamespace=function(){return x},e[O.EX]=B,e.getTraceCtx=function(e){return w||(w=(0,K.u7)()),w},e.setTraceCtx=function(e){w=e||null},(0,p.RF)(e,"addUnloadCb",function(){return C},"add")})}return e.__ieDyn=1,e}()),eg=n(47929);let ev=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,F.A)(t,n,function(e,t){e.logger&&e.logger.queue||(e.logger=new U.wq({loggingLevelConsole:1})),e.initialize=function(n,r,o,a){(0,j.r2)(e,function(){return"AppInsightsCore.initialize"},function(){var s=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=eg.S);var l=n.propertyStorageOverride;!l||l.getProperty&&l.setProperty||(0,p.$8)("Invalid property storage override passed."),n.channels&&(0,p.Iu)(n.channels,function(e){e&&(0,p.Iu)(e,function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}})})}e.getWParam=function(){return"u">typeof document||n.enableWParam?0:-1},r&&(0,p.Iu)(r,function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}}),e.pluginVersionString=s.join(";"),e.pluginVersionStringArr=s;try{t.initialize(n,r,o,a),e.pollInternalLogs("InternalLog")}catch(t){var c=e.logger,u=(0,W.mm)(t);-1!==u.indexOf("channels")&&(u+="\n - Channels must be provided through config.channels only!"),(0,U.ZP)(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+u)}},function(){return{config:n,extensions:r,logger:o,notificationManager:a}})},e.track=function(n){(0,j.r2)(e,function(){return"AppInsightsCore.track"},function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=(0,M.WB)(),(0,M.Hh)(r.latency)||(r.latency=1);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=M.xE;var a=r.baseData=r.baseData||{};a[eg._0]=a[eg._0]||{};var s=a[eg._0];s[eg.hj]=s[eg.hj]||e.pluginVersionString||eg.m5}t.track(r)},function(){return{item:n}},!n.sync)}}),n}return(0,d.qU)(t,e),t.__ieDyn=1,t}(em);var ey=n(27478),eb="REAL_TIME",ex="NEAR_REAL_TIME",eC="BEST_EFFORT",ek="",ew="POST",eS="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",e_="drop",eE="send",eP="requeue",eI="rspFail",eT="oth",eD="no-cache, no-store",eA="application/x-json-stream",eR="cache-control",eN="content-type",eB="kill-tokens",eM="kill-duration",eF="kill-duration-seconds",eO="time-delta-millis",eL="client-version",eH="client-id",ez="time-delta-to-apply-millis",eV="upload-time",eU="apikey",ej="AuthMsaDeviceTicket",eW="AuthXToken",eq="NoResponseBody",eG="msfpc",eK="trace",eX="user";function eY(e){var t=(e.ext||{}).intweb;return t&&(0,M.yD)(t[eG])?t[eG]:null}function e$(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=eY(e[n]);return t}var eQ=function(){function e(t,n){var r=n?[].concat(n):[],o=this,a=e$(r);o.iKey=function(){return t},o.Msfpc=function(){return a||ek},o.count=function(){return r.length},o.events=function(){return r},o.addEvent=function(e){return!!e&&(r.push(e),a||(a=eY(e)),!0)},o.split=function(n,o){var s;if(n<r.length){var l=r.length-n;(0,p.hX)(o)||(l=o<l?o:l),s=r.splice(n,l),a=e$(r)}return new e(t,s)}}return e.create=function(t,n){return new e(t,n)},e}();let eJ=function(){function e(){var t=!0,n=!0,r=!0,o="use-collector-delta",a=!1;(0,F.A)(e,this,function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,a||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return o},e.setClockSkew=function(e){a||(e?(o=e,n=!0,a=!0):n=!1,t=!0)}})}return e.__ieDyn=1,e}();var eZ=1e3;let e0=function(){function e(){var t={};function n(e){var t=[];return e&&(0,p.Iu)(e,function(e){t.push((0,p.EH)(e))}),t}(0,F.A)(e,this,function(e){e.setKillSwitchTenants=function(e,r){if(e&&r)try{var o=n(e.split(","));if("this-request-only"===r)return o;for(var a=parseInt(r,10)*eZ,s=0;s<o.length;++s)t[o[s]]=(0,p.x3)()+a}catch(e){}return[]},e.isTenantKilled=function(e){var n=t,r=(0,p.EH)(e);return!!(void 0!==n[r]&&n[r]>(0,p.x3)())||(delete n[r],!1)}})}return e.__ieDyn=1,e}();var e1=n(27245),e2=.8,e5=1.2,e4=3e3,e3=6e5;function e6(e){return!(e>=300&&e<500&&408!=e&&429!=e||501==e||505==e)}function e8(e){var t=0,n=e4*e2;return Math.min(t=Math.pow(2,e)*(Math.floor(Math.random()*(e4*e5-n))+n),e3)}var e9=20,e7=3984588,te=65e3,tt=2e6,tn=65e3,tr="metadata",to="f",ti=/\./,ta=function(){function e(t,n,r,o){var a="data",s="baseData",l="ext",c=!!o,u=!0,d=n,f={};(0,F.A)(e,this,function(e){function n(e,t){var n=f[e];return void 0===n&&(e.length>=7&&(n=(0,p.tG)(e,"ext.metadata")||(0,p.tG)(e,"ext.web")),f[e]=n),n}function o(e,t,a,s,l,u,f){(0,p.z)(e,function(e,h){var m=null;if(h||(0,M.yD)(h)){var g=a,v=e,y=l,b=t;if(c&&!s&&ti.test(e)){var x=e.split("."),C=x.length;if(C>1){y&&(y=y.slice());for(var k=0;k<C-1;k++){var w=x[k];b=b[w]=b[w]||{},g+="."+w,y&&y.push(w)}v=x[C-1]}}if(m=!(s&&n(g,v))&&d&&d.handleField(g,v)?d.value(g,v,h,r):(0,M.TC)(v,h,r)){var S=m.value;if(b[v]=S,u&&u(y,v,m),f&&"object"==typeof S&&!(0,p.cy)(S)){var _=y;_&&(_=_.slice()).push(v),o(h,S,g+"."+v,s,_,u,f)}}}})}e.createPayload=function(e,t,n,r,o,a){return{apiKeys:[],payloadBlob:ek,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:a,sendReason:o}},e.appendPayload=function(n,r,o){var a=n&&r&&!n.overflow;return a&&(0,j.r2)(t,function(){return"Serializer:appendPayload"},function(){for(var t=r.events(),a=n.payloadBlob,s=n.numEvents,l=!1,c=[],u=[],d=n.isBeacon,f=d?te:e7,h=d?tn:tt,m=0,g=0;m<t.length;){var v=t[m];if(v){if(s>=o){n.overflow=r.split(m);break}var y=e.getEventBlob(v);if(y&&y.length<=h){var b=y.length;if(a.length+b>f){n.overflow=r.split(m);break}a&&(a+="\n"),a+=y,++g>e9&&(a.substr(0,1),g=0),l=!0,s++}else y?c.push(v):u.push(v),t.splice(m,1),m--}m++}if(c&&c.length>0&&n.sizeExceed.push(eQ.create(r.iKey(),c)),u&&u.length>0&&n.failedEvts.push(eQ.create(r.iKey(),u)),l){n.batches.push(r),n.payloadBlob=a,n.numEvents=s;var x=r.iKey();-1===(0,p.rD)(n.apiKeys,x)&&n.apiKeys.push(x)}},function(){return{payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:o}}),a},e.getEventBlob=function(e){try{return(0,j.r2)(t,function(){return"Serializer.getEventBlob"},function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+(0,M.EO)(e.iKey);var n={},r=e[l];r&&(t[l]=n,(0,p.z)(r,function(e,t){var r=n[e]={};o(t,r,"ext."+e,!0,null,null,!0)}));var c=t[a]={};c.baseType=e.baseType;var d=c[s]={};return o(e.baseData,d,s,!1,[s],function(e,t,r){ts(n,e,t,r)},u),o(e.data,c,a,!1,[],function(e,t,r){ts(n,e,t,r)},u),JSON.stringify(t)},function(){return{item:e}})}catch(e){return null}}})}return e.__ieDyn=1,e}();function ts(e,t,n,r){if(r&&e){var o=(0,M.Go)(r.value,r.kind,r.propertyType);if(o>-1){var a=e[tr];a||(a=e[tr]={f:{}});var s=a[to];if(s||(s=a[to]={}),t)for(var l=0;l<t.length;l++){var c=t[l];s[c]||(s[c]={f:{}});var u=s[c][to];u||(u=s[c][to]={}),s=u}s=s[n]={},(0,p.cy)(r.value)?s.a={t:o}:s.t=o}}}var tl="sendAttempt",tc="&"+eq+"=true",tu=((o={})[1]=eP,o[100]=eP,o[200]="sent",o[8004]=e_,o[8003]=e_,o),td={},tp={};function tf(e,t,n){td[e]=t,!1!==n&&(tp[t]=e)}function th(e){try{return e.responseText}catch(e){}return ek}function tm(e,t){var n=!1;if(e&&t){var r=(0,p.cG)(e);if(r&&r.length>0)for(var o=t.toLowerCase(),a=0;a<r.length;a++){var s=r[a];if(s&&(0,p.mQ)(t,s)&&s.toLowerCase()===o){n=!0;break}}}return n}function tg(e,t,n,r){t&&n&&n.length>0&&(r&&td[t]?(e.hdrs[td[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function tv(e,t){return t&&((0,p.Et)(t)?e=[t].concat(e):(0,p.cy)(t)&&(e=t.concat(e))),e}tf(ej,ej,!1),tf(eL,eL),tf(eH,"Client-Id"),tf(eU,eU),tf(ez,ez),tf(eV,eV),tf(eW,eW);var ty=function(){function e(t,n,r,o,a){this._responseHandlers=[];var s,l,c,u,d,f,h,m,g,v,y="?cors=true&"+eN.toLowerCase()+"="+eA,b=new e0,x=!1,C=new eJ,k=!1,w=0,S=!0,_=[],E={},P=[],I=null,T=!1,D=!1,A=!1;(0,F.A)(e,this,function(e){var R=!0;function N(e,t){for(var n=0,r=null,o=0;null==r&&o<e.length;)1===(n=e[o])?(0,W.PV)()?r=B:(0,W.xk)()&&(r=O):2===n&&(0,W.R7)(t)&&(!t||t&&!m)?r=F:k&&3===n&&(0,W.Uf)()&&(r=H),o++;return r?{_transport:n,_isSync:t,sendPOST:r}:null}function B(e,t,n){var r=new XDomainRequest;r.open(ew,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=th(r);L(t,200,{},e),es(e)},r.onerror=function(){L(t,400,{})},r.ontimeout=function(){L(t,500,{})},r.onprogress=function(){},n?r.send(e.data):a.set(function(){r.send(e.data)},0)}function F(e,t,n){var r,o=e.urlString,s=!1,l=!1,c=((r={body:e.data,method:ew})[eS]=!0,r);n&&(c.keepalive=!0,2===e._sendReason&&(s=!0,v&&(o+=tc))),R&&(c.credentials="include"),e.headers&&(0,p.cG)(e.headers).length>0&&(c.headers=e.headers),fetch(o,c).then(function(e){var n={},r=ek,o=e.headers;o&&o.forEach(function(e,t){n[t]=e}),e.body&&e.text().then(function(e){r=e}),l||(l=!0,L(t,e.status,n,r),es(r))}).catch(function(e){l||(l=!0,L(t,0,{}))}),s&&!l&&(l=!0,L(t,200,{})),!l&&e.timeout>0&&a.set(function(){l||(l=!0,L(t,500,{}))},e.timeout)}function O(e,t,n){var r=e.urlString;function o(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=(0,p.EH)(r))}return e}function a(e){var t={};return e.getAllResponseHeaders?t=ei(e.getAllResponseHeaders()):(t=o(t,e,eO),t=o(t,e,eM),t=o(t,e,eF)),t}function s(e,n){L(t,e.status,a(e),n)}n&&e.disableXhrSync&&(n=!1);var l=(0,M.H$)(ew,r,R,!0,n,e.timeout);(0,p.z)(e.headers,function(e,t){l.setRequestHeader(e,t)}),l.onload=function(){var e=th(l);s(l,e),es(e)},l.onerror=function(){s(l)},l.ontimeout=function(){s(l)},l.send(e.data)}function L(e,t,n,r){try{e(t,n,r)}catch(e){(0,U.ZP)(l,2,518,(0,W.mm)(e))}}function H(e,t,n){var r=200,o=e._thePayload,a=e.urlString+(v?tc:ek);try{var s=(0,W.w3)();if(!s.sendBeacon(a,e.data))if(o){var c=[];(0,p.Iu)(o.batches,function(e){if(c&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!s.sendBeacon(a,I.getEventBlob(t[n]))){c.push(e.split(n));break}}else c.push(e.split(0))}),el(c,8003,o.sendType,!0)}else r=0}catch(e){(0,U.OG)(l,"Failed to send telemetry using sendBeacon API. Ex:"+(0,W.mm)(e)),r=0}finally{L(t,r,{},ek)}}function z(e){return 2===e||3===e}function V(e){return D&&z(e)&&(e=2),e}function q(){return!x&&w<n}function G(){var e=P;return P=[],e}function K(e,t,n){var r=!1;return e&&e.length>0&&!x&&c[t]&&I&&(r=0!==t||q()&&(n>0||C.allowRequestSending())),r}function X(e){var t={};return e&&(0,p.Iu)(e,function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}}),t}function Y(e,n,r,o,a){if(e&&0!==e.length){if(x)return void el(e,1,o);o=V(o);try{var s=e,d=0!==o;(0,j.r2)(u,function(){return"HttpManager:_sendBatches"},function(s){s&&(e=e.slice(0));for(var l=[],u=null,p=(0,M.WB)(),f=c[o]||(d?c[1]:c[0]),h=f&&f._transport,m=g&&(D||z(o)||3===h||f._isSync&&2===h);K(e,o,n);){var v=e.shift();v&&v.count()>0&&(b.isTenantKilled(v.iKey())?l.push(v):(u=u||I.createPayload(n,r,d,m,a,o),I.appendPayload(u,v,t)?null!==u.overflow&&(e=[u.overflow].concat(e),u.overflow=null,Z(u,p,(0,M.WB)(),a),p=(0,M.WB)(),u=null):(Z(u,p,(0,M.WB)(),a),p=(0,M.WB)(),e=[v].concat(e),u=null)))}u&&Z(u,p,(0,M.WB)(),a),e.length>0&&(P=e.concat(P)),el(l,8004,o)},function(){return{batches:X(s),retryCount:n,isTeardown:r,isSynchronous:d,sendReason:a,useSendBeacon:z(o),sendType:o}},!d)}catch(e){(0,U.ZP)(l,2,48,"Unexpected Exception sending batch: "+(0,W.mm)(e))}}}function Q(e,t){var n={url:y,hdrs:{},useHdrs:!1};t?(n.hdrs=(0,M.X$)(n.hdrs,E),n.useHdrs=(0,p.cG)(n.hdrs).length>0):(0,p.z)(E,function(e,t){tp[e]?tg(n,tp[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)}),tg(n,eH,"NO_AUTH",t),tg(n,eL,M.xE,t);var r=ek;(0,p.Iu)(e.apiKeys,function(e){r.length>0&&(r+=","),r+=e}),tg(n,eU,r,t),tg(n,eV,(0,p.x3)().toString(),t);var o=ea(e);if((0,M.yD)(o)&&(n.url+="&ext.intweb.msfpc="+o),C.shouldAddClockSkewHeaders()&&tg(n,ez,C.getClockSkewHeaderValue(),t),u.getWParam){var a=u.getWParam();a>=0&&(n.url+="&w="+a)}for(var s=0;s<_.length;s++)n.url+="&"+_[s].name+"="+_[s].value;return n}function J(e,t,n){e[t]=e[t]||{},e[t][s.identifier]=n}function Z(t,n,r,o){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var a=!!e.sendHook,s=c[t.sendType];!z(t.sendType)&&t.isBeacon&&2===t.sendReason&&(s=c[2]||c[3]||s);var d=A;(t.isBeacon||3===s._transport)&&(d=!1);var p=Q(t,d);d=d||p.useHdrs;var g=(0,M.WB)();(0,j.r2)(u,function(){return"HttpManager:_doPayloadSend"},function(){for(var c=0;c<t.batches.length;c++)for(var v=t.batches[c].events(),y=0;y<v.length;y++){var b=v[y];if(T){var x=b.timings=b.timings||{};J(x,"sendEventStart",g),J(x,"serializationStart",n),J(x,"serializationCompleted",r)}b[tl]>0?b[tl]++:b[tl]=1}el(t.batches,1e3+(o||0),t.sendType,!0);var k={data:t.payloadBlob,urlString:p.url,headers:p.hdrs,_thePayload:t,_sendReason:o,timeout:f,disableXhrSync:h,disableFetchKeepAlive:m};d&&(tm(k.headers,eR)||(k.headers[eR]=eD),tm(k.headers,eN)||(k.headers[eN]=eA));var _=null;s&&(_=function(n){C.firstRequestSent();var r=function(e,n){et(e,n,t,o)},a=t.isTeardown||t.isSync;try{s.sendPOST(n,r,a),e.sendListener&&e.sendListener(k,n,a,t.isBeacon)}catch(e){(0,U.OG)(l,"Unexpected exception sending payload. Ex:"+(0,W.mm)(e)),L(r,0,{})}}),(0,j.r2)(u,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(_)if(0===t.sendType&&w++,a&&!t.isBeacon&&3!==s._transport){var n={data:k.data,urlString:k.urlString,headers:(0,M.X$)({},k.headers),timeout:k.timeout,disableXhrSync:k.disableXhrSync,disableFetchKeepAlive:k.disableFetchKeepAlive},r=!1;(0,j.r2)(u,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{e.sendHook(n,function(e){r=!0,S||e._thePayload||(e._thePayload=e._thePayload||k._thePayload,e._sendReason=e._sendReason||k._sendReason),_(e)},t.isSync||t.isTeardown)}catch(e){r||_(k)}})}else _(k)})},function(){return{thePayload:t,serializationStart:n,serializationCompleted:r,sendReason:o}},t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&el(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&el(t.failedEvts,8002,t.sendType)}function ee(e,t){T&&(0,p.Iu)(e,function(e){J(e.timings=e.timings||{},"sendEventCompleted",t)})}function et(e,t,n,o){var a=9e3,s=null,l=!1,c=!1;try{var u=!0;if(typeof e!==e1.bA){if(t){C.setClockSkew(t[eO]);var d=t[eM]||t["kill-duration-seconds"];(0,p.Iu)(b.setKillSwitchTenants(t[eB],d),function(e){(0,p.Iu)(n.batches,function(t){if(t.iKey()===e){s=s||[];var r=t.split(0);n.numEvents-=r.count(),s.push(r)}})})}if(200==e||204==e){a=200;return}(!e6(e)||n.numEvents<=0)&&(u=!1),a=9e3+e%1e3}if(u){a=100;var f=n.retryCnt;0===n.sendType&&(f<r?(l=!0,eo(function(){0===n.sendType&&w--,Y(n.batches,f+1,n.isTeardown,D?2:n.sendType,5)},D,e8(f))):(c=!0,D&&(a=8001)))}}finally{l||(C.setClockSkew(),en(n,a,o,c)),el(s,8004,n.sendType)}}function en(t,n,r,o){try{o&&s._backOffTransmission(),200===n&&(o||t.isSync||s._clearBackOff(),er(t.batches)),el(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(w--,5!==r&&e.sendQueuedRequests(t.sendType,r))}}function er(e){if(T){var t=(0,M.WB)();(0,p.Iu)(e,function(e){e&&e.count()>0&&ee(e.events(),t)})}}function eo(e,t,n){t?e():a.set(e,n)}function ei(e){var t={};if((0,p.Kg)(e)){var n=(0,p.EH)(e).split(/[\r\n]+/);(0,p.Iu)(n,function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=(0,p.EH)(e.substring(0,n)).toLowerCase(),o=(0,p.EH)(e.substring(n+1));t[r]=o}else t[(0,p.EH)(e)]=1}})}return t}function ea(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return ek}function es(t){var n=e._responseHandlers;try{for(var r=0;r<n.length;r++)try{n[r](t)}catch(e){(0,U.ZP)(l,1,519,"Response handler failed: "+e)}if(t){var o=JSON.parse(t);(0,M.yD)(o.webResult)&&(0,M.yD)(o.webResult[eG])&&d.set("MSFPC",o.webResult[eG],31536e3)}}catch(e){}}function el(e,t,n,r){if(e&&e.length>0&&o){var a=o[ec(t)];if(a){var s=0!==n;(0,j.r2)(u,function(){return"HttpManager:_sendBatchesNotification"},function(){eo(function(){try{a.call(o,e,t,s,n)}catch(e){(0,U.ZP)(l,1,74,"send request notification failed: "+e)}},r||s,0)},function(){return{batches:X(e),reason:t,isSync:s,sendSync:r,sendType:n}},!s)}}}function ec(e){var t=tu[e];return!(0,M.yD)(t)&&(t=eT,e>=9e3&&e<=9999?t=eI:e>=8e3&&e<=8999?t=e_:e>=1e3&&e<=1999&&(t=eE)),t}e.initialize=function(e,t,n,r,o){o||(o={}),y=e+y,A=!!(0,p.b0)(o.avoidOptions)||!o.avoidOptions,u=t,d=t.getCookieMgr(),T=!u.config.disableEventTimings;var a,b=!!u.config.enableCompoundKey;l=(s=n).diagLog();var x=o.valueSanitizer,C=o.stringifyObjects;(0,p.b0)(o.enableCompoundKey)||(b=!!o.enableCompoundKey),f=o.xhrTimeout,h=!!o.disableXhrSync,m=!!o.disableFetchKeepAlive,v=!1!==o.addNoResponse,k=!(0,W.lV)(),I=new ta(u,x,C,b),(0,p.hX)(o.useSendBeacon)||(k=!!o.useSendBeacon);var w=r,_=o.alwaysUseXhrOverride?r:null,E=o.alwaysUseXhrOverride?r:null,P=[3,2];if(!r){S=!1;var D=(0,W.g$)();D&&D.protocol&&"file:"===D.protocol.toLowerCase()&&(R=!1);var B=[];(0,W.lV)()?(B=[2,1],P=[2,1,3]):B=[1,2,3],(r=N(B=tv(B,o.transports),!1))||(0,U.OG)(l,"No available transport to send events"),w=N(B,!0)}_||(_=N(P=tv(P,o.unloadTransports),!0)),g=!S&&(k&&(0,W.Uf)()||!m&&(0,W.R7)(!0)),(a={})[0]=r,a[1]=w||N([1,2,3],!0),a[2]=_||w||N([1],!0),a[3]=E||N([2,3],!0)||w||N([1],!0),c=a},e._getDbgPlgTargets=function(){return[c[0],b,I,c]},e.addQueryStringParameter=function(e,t){for(var n=0;n<_.length;n++)if(_[n].name===e){_[n].value=t;return}_.push({name:e,value:t})},e.addHeader=function(e,t){E[e]=t},e.canSendRequest=function(){return q()&&C.allowRequestSending()},e.sendQueuedRequests=function(e,t){(0,p.b0)(e)&&(e=0),D&&(e=V(e),t=2),K(P,e,0)&&Y(G(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!x&&0===w&&0===P.length},e.setUnloading=function(e){D=e},e.addBatch=function(e){if(e&&e.count()>0){if(b.isTenantKilled(e.iKey()))return!1;P.push(e)}return!0},e.teardown=function(){P.length>0&&Y(G(),0,!0,2,2)},e.pause=function(){x=!0},e.resume=function(){x=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&((0,p.hX)(t)&&(t=1),D&&(t=V(t),n=2),Y([e],0,!1,t,n||0))}})}return e.__ieDyn=1,e}();function tb(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function tx(e){clearTimeout(e)}function tC(e,t){return{set:e||tb,clear:t||tx}}var tk=.25,tw=500,tS=20,t_=6,tE=2,tP=4,tI=2,tT=1,tD="eventsDiscarded",tA="overrideInstrumentationKey",tR="maxEventRetryAttempts",tN="maxUnloadEventRetryAttempts",tB="addUnloadCb";let tM=function(e){function t(){var n,r,o,a,s,l,c,u,d=e.call(this)||this;d.identifier="PostChannel",d.priority=1011,d.version="3.2.18";var f=!1,h=[],m=null,g=!1,v=0,y=500,b=0,x=1e4,C={},k=eb,w=null,S=null,_=0,E=0,P={},I=-1,T=!0,D=!1,A=t_,R=tE;return(0,F.A)(t,d,function(e,t){function d(e){var t=e.getWParam;e.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}function N(e){"beforeunload"!==(e||(0,W.zk)().event).type&&(D=!0,o.setUnloading(D)),K(2,2)}function B(e){D=!1,o.setUnloading(D)}function F(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext[eK]&&delete e.ext[eK],e.ext&&e.ext[eX]&&e.ext[eX].id&&delete e.ext[eX].id,T&&(M.u9,e.ext=(0,p.hW)(e.ext),e.baseData&&(e.baseData=(0,p.hW)(e.baseData)),e.data&&(e.data=(0,p.hW)(e.data))),e.sync){if(_||g)e.latency=3,e.sync=!1;else if(o){T&&(e=(0,p.hW)(e)),o.sendSynchronousBatch(eQ.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);return}}var n=e.latency,r=b,a=x;4===n&&(r=v,a=y);var s=!1;if(r<a)s=!J(e,t);else{var l=1,c=tS;4===n&&(l=4,c=1),s=!0,Z(e.iKey,e.latency,l,c)&&(s=!J(e,t))}s&&ec(tD,[e],V.QueueFull)}function O(e,t,n){var r=en(e,t,n);return o.sendQueuedRequests(t,n),r}function L(){return b>0}function H(){if(I>=0&&en(I,0,l)&&o.sendQueuedRequests(0,l),v>0&&!S&&!g){var e=C[k][2];e>=0&&(S=q(function(){S=null,O(4,0,1),H()},e))}var t=C[k][1];w||m||!(t>=0)||g||(L()?w=q(function(){w=null,O(0===E?3:1,0,1),E++,E%=2,H()},t):E=0)}function z(){n=null,f=!1,h=[],m=null,g=!1,v=0,y=500,b=0,x=1e4,C={},k=eb,w=null,S=null,_=0,E=0,r=null,P={},a=void 0,s=0,I=-1,l=null,T=!0,D=!1,A=t_,R=tE,c=null,o=new ty(tw,tI,tT,{requeue:es,send:ed,sent:ep,drop:ef,rspFail:eh,oth:em},u=tC()),ea(),X(),eg()}function q(e,t){0===t&&_&&(t=1);var n=1e3;return _&&(n=e8(_-1)),u.set(e,t*n)}function G(){return null!==w&&(u.clear(w),w=null,E=0,!0)}function K(e,t){G(),m&&(u.clear(m),m=null),g||O(1,e,t)}function X(){P[4]={batches:[],iKeyMap:{}},P[3]={batches:[],iKeyMap:{}},P[2]={batches:[],iKeyMap:{}},P[1]={batches:[],iKeyMap:{}}}function Y(e,t,n){var r=P[t];r||(r=P[t=1]);var o=r.iKeyMap[e];return!o&&n&&(o=eQ.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function Q(t,n){o.canSendRequest()&&!_&&(a>0&&b>a&&(n=!0),n&&null==m&&e.flush(t,null,20))}function J(e,t){T&&(e=(0,p.hW)(e));var n=e.latency,r=Y(e.iKey,n,!0);return!!r.addEvent(e)&&(4!==n?(b++,t&&0===e.sendAttempt&&Q(!e.sync,s>0&&r.count()>=s)):v++,!0)}function Z(e,t,n,r){for(;n<=t;){var o=Y(e,t,!0);if(o&&o.count()>0){var a=o.split(0,r),s=a.count();if(s>0)return 4===n?v-=s:b-=s,eu(tD,[a],V.QueueFull),!0}n++}return ee(),!1}function ee(){for(var e=0,t=0,n=function(n){var r=P[n];r&&r.batches&&(0,p.Iu)(r.batches,function(r){4===n?e+=r.count():t+=r.count()})},r=1;r<=4;r++)n(r);b=t,v=e}function en(t,n,r){var a=!1,s=0===n;return!s||o.canSendRequest()?(0,j.r2)(e.core,function(){return"PostChannel._queueBatches"},function(){for(var e=[],n=4;n>=t;){var r=P[n];r&&r.batches&&r.batches.length>0&&((0,p.Iu)(r.batches,function(t){o.addBatch(t)?a=a||t&&t.count()>0:e=e.concat(t.events()),4===n?v-=t.count():b-=t.count()}),r.batches=[],r.iKeyMap={}),n--}e.length>0&&ec(tD,e,V.KillSwitch),a&&I>=t&&(I=-1,l=0)},function(){return{latency:t,sendType:n,sendReason:r}},!s):(I=I>=0?Math.min(I,t):t,l=Math.max(l,r)),a}function er(e,t){O(1,0,t),ee(),eo(function(){e&&e(),h.length>0?m=q(function(){m=null,er(h.shift(),t)},0):(m=null,H())})}function eo(e){o.isCompletelyIdle()?e():m=q(function(){m=null,eo(e)},tk)}function ei(){G(),ea(),k=eb,H()}function ea(){(C={})[eb]=[2,1,0],C[ex]=[6,3,0],C[eC]=[18,9,0]}function es(t,n){var r=[],o=A;D&&(o=R),(0,p.Iu)(t,function(t){t&&t.count()>0&&(0,p.Iu)(t.events(),function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?((0,M.u9)(t,e.identifier),F(t,!1)):r.push(t))})}),r.length>0&&ec(tD,r,V.NonRetryableStatus),D&&K(2,2)}function el(t,n){var r=e._notificationManager||{},o=r[t];if(o)try{o.apply(r,n)}catch(n){(0,U.ZP)(e.diagLog(),1,74,t+" notification failed: "+n)}}function ec(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&el(e,[t].concat(n))}function eu(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&(0,p.Iu)(t,function(t){t&&t.count()>0&&el(e,[t.events()].concat(n))})}function ed(e,t,n){e&&e.length>0&&el("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function ep(e,t){eu("eventsSent",e,t),H()}function ef(e,t){eu(tD,e,t>=8e3&&t<=8999?t-8e3:V.Unknown)}function eh(e){eu(tD,e,V.NonRetryableStatus),H()}function em(e,t){eu(tD,e,V.Unknown),H()}function eg(){s=n&&n.disableAutoBatchFlushLimit?0:Math.max(tw*(tI+1),x/6)}z(),e._getDbgPlgTargets=function(){return[o]},e.initialize=function(s,l,f){(0,j.r2)(l,function(){return"PostChannel:initialize"},function(){var h=l;t.initialize(s,l,f);try{l[tB],c=(0,ey.Hm)((0,et.Z)(e.identifier),l.evtNamespace&&l.evtNamespace());var m=e._getTelCtx();s.extensionConfig[e.identifier]=s.extensionConfig[e.identifier]||{},n=m.getExtCfg(e.identifier),u=tC(n.setTimeoutOverride,n.clearTimeoutOverride),T=!n.disableOptimizeObj&&(0,M.F2)(),d(h),n.eventsLimitInMem>0&&(x=n.eventsLimitInMem),n.immediateEventLimit>0&&(y=n.immediateEventLimit),n.autoFlushEventsLimit>0&&(a=n.autoFlushEventsLimit),(0,p.Et)(n[tR])&&(A=n[tR]),(0,p.Et)(n[tN])&&(R=n[tN]),eg(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(r=n.httpXHROverride),(0,M.yD)(s.anonCookieName)&&o.addQueryStringParameter("anoncknm",s.anonCookieName),o.sendHook=n.payloadPreprocessor,o.sendListener=n.payloadListener;var g=n.overrideEndpointUrl?n.overrideEndpointUrl:s.endpointUrl;e._notificationManager=l.getNotifyMgr(),o.initialize(g,e.core,e,r,n);var v=s.disablePageUnloadEvents||[];(0,ey.ee)(N,v,c),(0,ey.Fc)(N,v,c),(0,ey.oS)(B,s.disablePageShowEvents,c)}catch(t){throw e.setInitialized(!1),t}},function(){return{coreConfig:s,core:l,extensions:f}})},e.processTelemetry=function(t,r){(0,M.u9)(t,e.identifier);var o=(r=e._getTelCtx(r)).getExtCfg(e.identifier),a=!!n.disableTelemetry;o&&(a=a||!!o.disableTelemetry);var s=t;a||f||(n[tA]&&(s.iKey=n[tA]),o&&o[tA]&&(s.iKey=o[tA]),F(s,!0),D?K(2,2):H()),e.processNext(s,r)},e._doTeardown=function(e,t){K(2,2),f=!0,o.teardown(),(0,ey.Ds)(null,c),(0,ey.sq)(null,c),(0,ey.vF)(null,c),z()},e.setEventQueueLimits=function(e,t){x=e>0?e:1e4,a=t>0?t:0,eg();var n=b>e;if(!n&&s>0)for(var r=1;!n&&r<=3;r++){var o=P[r];o&&o.batches&&(0,p.Iu)(o.batches,function(e){e&&e.count()>=s&&(n=!0)})}Q(!0,n)},e.pause=function(){G(),g=!0,o.pause()},e.resume=function(){g=!1,o.resume(),H()},e.addResponseHandler=function(e){o._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){ei(),(0,p.z)(e,function(e,t){var n=t.length;if(n>=2){var r=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var o=t[0]/t[1];t[0]=Math.ceil(o)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),C[e]=t}})},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!g)if(n=n||1,e)null==m?(G(),en(1,0,n),m=q(function(){m=null,er(t,n)},0)):h.push(t);else{var r=G();O(1,1,n),null!=t&&t(),r&&H()}},e.setMsaAuthTicket=function(e){o.addHeader(ej,e)},e.hasEvents=L,e._setTransmitProfile=function(e){k!==e&&void 0!==C[e]&&(G(),k=e,H())},e._backOffTransmission=function(){_<tP&&(_++,G(),H())},e._clearBackOff=function(){_&&(_=0,G(),H())},(0,p.r)(e,"_setTimeoutOverride",function(){return u.set},function(e){u=tC(e,u.clear)}),(0,p.r)(e,"_clearTimeoutOverride",function(){return u.clear},function(e){u=tC(u.set,e)})}),d}return(0,d.qU)(t,e),t.__ieDyn=1,t}(er.s);var tF="locale",tO="ver",tL="browser",tH="browserVer",tz="popSample",tV="eventFlags",tU="name",tj="serviceName",tW=h({UserExt:[0,"user"],DeviceExt:[1,"device"],TraceExt:[2,"trace"],WebExt:[3,"web"],AppExt:[4,"app"],OSExt:[5,"os"],SdkExt:[6,"sdk"],IntWebExt:[7,"intweb"],UtcExt:[8,"utc"],LocExt:[9,"loc"],CloudExt:[10,"cloud"],DtExt:[11,"dt"]}),tq=h({id:[0,"id"],ver:[1,tO],appName:[2,tU],locale:[3,tF],expId:[4,"expId"],env:[5,"env"]}),tG=h({domain:[0,"domain"],browser:[1,tL],browserVer:[2,tH],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),tK=h({locale:[0,tF],localId:[1,"localId"],id:[2,"id"]}),tX=h({osName:[0,tU],ver:[1,tO]}),tY=h({ver:[0,tO],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),t$=h({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,tj]}),tQ=h({popSample:[0,tz],eventFlags:[1,tV]}),tJ=h({tz:[0,"tz"]}),tZ=h({sessionId:[0,"sesId"]}),t0=h({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),t1=h({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),t2=h({traceId:[0,"traceID"],traceName:[1,tU],parentId:[2,"parentID"]}),t5=h({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]}),t4=n(53683),t3=n(33156);function t6(){return void 0===a&&(a=!!t9(0)),a}function t8(){return t6()?t9(0):null}function t9(e){var t,n,r=null;try{var o=(0,q.mS)();if(!o)return null;n=new Date,(r=0===e?o.localStorage:o.sessionStorage)&&(0,p.Tn)(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(e){r=null}return r}function t7(e,t,n){var r=t8();if(null!==r)try{return r.setItem(t,n),!0}catch(t){a=!1,(0,U.ZP)(e,1,504,"Browser failed write to local storage. "+t)}return!1}function ne(e,t){var n=t8();if(null!==n)try{return n.getItem(t)}catch(t){a=!1,(0,U.ZP)(e,1,503,"Browser failed read of local storage. "+t)}return null}function nt(){return this.getId()}function nn(e){this.setId(e)}var nr=function(){function e(){(0,F.A)(e,this,function(e){e.setId=function(t){e.customId=t},e.getId=function(){return(0,p.Kg)(e.customId)?e.customId:e.automaticId}})}return e._staticInit=function(){(0,p.r)(e.prototype,"id",nt,nn)}(),e}(),no="ai_session",ni=function(){function e(t,n){var r,o,a=(0,U.y0)(t),s=(0,ee.um)(t);(0,F.A)(e,this,function(t){var l=c(n);function c(e){return{sessionRenewalMs:e.sessionRenewalMs&&function(){return e.sessionRenewalMs},sessionExpirationMs:e.sessionExpirationMs&&function(){return e.sessionExpirationMs},cookieDomain:e.cookieDomain&&function(){return e.cookieDomain},namePrefix:e.namePrefix&&function(){return e.namePrefix},sessionAsGuid:function(){return e.sessionAsGuid},idLength:function(){return e.idLength?e.idLength:22}}}function u(){var e=s.get(o());if(e&&(0,p.Tn)(e.split))d(e);else{var n=ne(a,o());n&&d(n)}t.automaticSession.getId()||f()}function d(e){var n=t.automaticSession,r=e.split("|");r.length>0&&n.setId(r[0]);try{if(r.length>1){var o=+r[1];n.acquisitionDate=+new Date(o),n.acquisitionDate=n.acquisitionDate>0?n.acquisitionDate:0}if(r.length>2){var s=+r[2];n.renewalDate=+new Date(s),n.renewalDate=n.renewalDate>0?n.renewalDate:0}}catch(e){(0,U.ZP)(a,1,510,"Error parsing ai_session cookie, session will be reset: "+e)}0===n.renewalDate&&(0,U.ZP)(a,2,517,"AI session renewal date is 0, session will be reset.")}function f(){var e=t.automaticSession,n=new Date().getTime(),r=t.config.sessionAsGuid();!(0,p.b0)(r)&&r?(0,p.Lm)(r)?e.setId((0,M.gj)()):e.setId((0,M.gj)(r)):e.setId((0,t3.Si)(l&&l.idLength?l.idLength():22)),e.acquisitionDate=n,e.renewalDate=n,h(e.getId(),e.acquisitionDate,e.renewalDate),t6()||(0,U.ZP)(a,2,505,"Browser does not support local storage. Session durations will be inaccurate.")}function h(e,n,a){var l=n+t.config.sessionExpirationMs(),c=a+t.config.sessionRenewalMs(),u=new Date,d=[e,n,a];l<c?u.setTime(l):u.setTime(c);var p=t.config.cookieDomain?t.config.cookieDomain():null;s.set(o(),d.join("|")+";expires="+u.toUTCString(),null,p),r=new Date().getTime()}function m(e,t,n){t7(a,o(),[e,t,n].join("|"))}(0,p.Tn)(n.sessionExpirationMs)||(l.sessionExpirationMs=function(){return e.acquisitionSpan}),(0,p.Tn)(n.sessionRenewalMs)||(l.sessionRenewalMs=function(){return e.renewalSpan}),t.config=l,o=function(){return t.config.namePrefix&&t.config.namePrefix()?no+t.config.namePrefix():no},t.automaticSession=new nr,t.update=function(){t.automaticSession.getId()||u();var n=t.automaticSession,o=t.config,a=new Date().getTime(),s=a-n.acquisitionDate>o.sessionExpirationMs(),l=a-n.renewalDate>o.sessionRenewalMs();if(s||l)f();else{var c=r;(!c||a-c>e.cookieUpdateInterval)&&(n.renewalDate=a,h(n.getId(),n.acquisitionDate,n.renewalDate))}},t.backup=function(){var e=t.automaticSession;m(e.getId(),e.acquisitionDate,e.renewalDate)}})}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),na=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function ns(e,t){void 0===t&&(t=na);var n=null;if(e)for(var r=e.split(","),o=0;o<r.length;o++)nl(r[o],t)&&(n?n+=","+r[o]:n=r[o]);return n}function nl(e,t){if(void 0===t&&(t=na),!e||e.length<4)return!1;for(var n=!1,r=256,o=e.substring(0,3).toString().toUpperCase(),a=0;a<t.length;a++)if(t[a]+":"===o&&e.length<=r){n=!0;break}return n}function nc(){return this.getExpId()}var nu=function(){function e(t,n){var r=null,o=na.slice(0),a="Treatments",s=(0,ee.um)(n),l=t;(0,F.A)(e,this,function(e){if((0,W.Wt)()){var n=(0,W.YE)().documentElement;n&&(e.locale=n.lang)}function c(e){var t,n={},r=(0,W.YE)();if(r){t=r&&r.querySelectorAll("meta");for(var o=0;o<t.length;o++){var a=t[o];a.name&&0===a.name.toLowerCase().indexOf(e)&&(n[a.name.replace(e,"")]=a.content)}}return n}function u(e){e!==r&&(r=ns(e,o))}function d(){return u((0,M.UM)(s,a)),r}function p(e){return u(e),r}e.env=t.env?t.env:c("awa-").env,e.getExpId=function(){return l.expId?p(l.expId):d()}})}return e.validateAppExpId=ns,e._staticInit=function(){(0,p.r)(e.prototype,"expId",nc)}(),e}(),nd=function(){return function(){}}(),np=function(){return function(){}}();function nf(){return this.getMsfpc()}function nh(){return this.getAnid()}var nm=function(){function e(t,n){var r=(0,ee.um)(n);(0,F.A)(e,this,function(e){t.serviceName&&(e.serviceName=t.serviceName),e.getMsfpc=function(){return(0,M.UM)(r,"MSFPC")},e.getAnid=function(){return(0,M.UM)(r,"ANON").slice(0,34)}})}return e._staticInit=function(){var t=e.prototype;(0,p.r)(t,"msfpc",nf),(0,p.r)(t,"anid",nh)}(),e}(),ng=function(){return function(){var e=new Date().getTimezoneOffset(),t=e%60,n=(e-t)/60,r="+";n>0&&(r="-"),n=Math.abs(n),t=Math.abs(t),this.tz=r+(n<10?"0"+n:n.toString())+":"+(t<10?"0"+t:t.toString())}}(),nv={"5.1":"XP","6.0":"Vista","6.1":"7","6.2":"8","6.3":"8.1","10.0":"10"},ny="([\\d,.]+)",nb="([\\d,_,.]+)",nx="Unknown",nC=[{r:/windows\sphone\s\d+\.\d+/i,os:"Windows Phone"},{r:/ arm;/i,os:"Windows RT"},{r:/(windows|win32)/i,os:"Windows"},{r:/(ipad|iphone|ipod)(?=.*like mac os x)/i,os:"iOS"},{r:/android/i,os:"Android"},{r:/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,os:"Linux"},{r:/CrOS/i,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:/(macintosh|mac os x)/i,os:"Mac OS X"}];function nk(e){for(var t=0;t<nC.length;t++){var n=nC[t];if(n.r&&e.match(n.r)||n.s&&-1!==e.indexOf(n.s))return n.os}return nx}function nw(e,t){return"Windows"===t?nS(e,"Windows NT"):"Android"===t?nS(e,t):"Mac OS X"===t?n_(e):"iOS"===t?nE(e):nx}function nS(e,t){var n=e.match(RegExp(t+" "+ny));return n?nv[n[1]]?nv[n[1]]:n[1]:nx}function n_(e){var t=e.match(RegExp("Mac OS X "+nb));if(t){var n=t[1].replace(/_/g,".");if(n){var r=nP(n);return r?n.split(r)[0]:n}}return nx}function nE(e){var t=e.match(RegExp("OS "+nb));if(t){var n=t[1].replace(/_/g,".");if(n){var r=nP(n);return r?n.split(r)[0]:n}}return nx}function nP(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var nI=function(){return function(e){if(e.populateOperatingSystemInfo){var t=this,n=(0,W.w3)()||{},r=e.userAgent||n.userAgent||"",o=e.userAgentData||n.userAgentData||{};if(r){var a=nk(r.toLowerCase());t.name=a,t.ver=nw(r,a)}(!t.name||t.name===nx)&&(0,p.Kg)(o.platform)&&(t.name=o.platform)}}}(),nT=n(19779),nD="MicrosoftApplicationsTelemetryDeviceId";function nA(e,t,n,r){t?t.setProperty(n,r):e.set(n,r,31536e3)}function nR(e,t,n){return t?t.getProperty(n)||"":(0,M.UM)(e,n)}var nN=function(){function e(t,n){var r=0;(0,F.A)(e,this,function(e){var o=t.propertyStorageOverride;e.seq=r,e.epoch=(0,t3.VN)(!1).toString();var a=(0,ee.um)(n,t);if(a.isEnabled()||o){var s=nR(a,o,nD);s||(s=(0,nT.aq)()),nA(a,o,nD,s),e.installId=s}else a.purge(nD);e.getSequenceId=function(){return++r}})}return e.__ieDyn=1,e}(),nB=function(){return function(e,t,n,r){var o=this;if(o.traceId=t||(0,nT.cL)(),e.enableDistributedTracing&&!n&&(n=(0,nT.cL)().substring(0,16)),o.parentId=n,e.enableApplicationInsightsTrace){o.name=r;var a=(0,W.g$)();a&&a.pathname&&(o.name=a.pathname)}}}(),nM="setLocalId";function nF(){return this.getLocalId()}function nO(e){this[nM](e)}var nL=function(){function e(t,n,r){var o,a=n,s=(0,ee.um)(r,t);(0,F.A)(e,this,function(n){if(s&&s.isEnabled()&&(h(),a.enableApplicationInsightsUser)){var r=(0,M.UM)(s,e.userCookieName);if(r){var l=r.split(e.cookieSeparator);l.length>0&&(n.id=l[0])}if(!n.id){n.id=(0,t3.Si)(t&&!(0,p.b0)(t.idLength)?t.idLength:22);var c=(0,p._u)(new Date);n.accountAcquisitionDate=c;var u=[n.id,c],d=a.cookieDomain?a.cookieDomain:void 0;s.set(e.userCookieName,u.join(e.cookieSeparator),31536e3,d)}}if("u">typeof navigator){var f=navigator;n.locale=f.userLanguage||f.language}function h(){if(!a.hashIdentifiers&&!a.dropIdentifiers){var e=(0,M.UM)(s,"MUID");e&&(o="t:"+e)}return o}n.getLocalId=function(){return o||h()},n[nM]=function(e){o=e}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=function(){(0,p.r)(e.prototype,"localId",nF,nO)}(),e}(),nH=1048576,nz=2097152,nV=4194304,nU=function(){return function(e){var t=this;t.popSample=100,t.eventFlags=0,e.hashIdentifiers&&(t.eventFlags=t.eventFlags|nH),e.dropIdentifiers&&(t.eventFlags=t.eventFlags|nz),e.scrubIpOnly&&(t.eventFlags=t.eventFlags|nV)}}(),nj=["Required","Analytics","SocialMedia","Advertising"],nW="([\\d,.]+)",nq="Unknown",nG="Edg/",nK=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:nG,b:"Edge"},{ua:"Electron",b:"Electron"},{ua:"Chrome",b:"Chrome"},{ua:"Trident",b:"MSIE"},{ua:"MSIE ",b:"MSIE"},{ua:"Firefox",b:"Firefox"},{ua:"Safari",b:"Safari"},{ua:"SkypeShell",b:"SkypeShell"}],nX=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function nY(e,t){return t.indexOf(e)>-1}function n$(e,t){for(var n=0;n<t.length;n++)if(e==t[n].brand)return t[n].version;return null}function nQ(e){if(e){for(var t=0;t<nK.length;t++)if(nY(nK[t].ua,e))return nK[t].b}return nq}function nJ(e,t){return"MSIE"===t?nZ(e):n0(t,e)}function nZ(e){var t=e.match(RegExp("MSIE "+nW));if(t)return t[1];var n=e.match(RegExp("rv:"+nW));if(n)return n[1]}function n0(e,t){"Safari"===e?e="Version":"Edge"===e&&nY(nG,t)&&(e="Edg");var n=t.match(RegExp(e+"/"+nW));return n||"Opera"===e&&(n=t.match(RegExp("OPR/"+nW)))?n[1]:nq}function n1(){var e={h:0,w:0},t=(0,W.zk)();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e}function n2(){return this.getUserConsent()}var n5=function(){function e(t,n){var r=(0,ee.um)(n),o=t||{};(0,F.A)(e,this,function(e){var t=(0,W.g$)();if(t){var n=t.hostname;n&&(e.domain="file:"===t.protocol?"local":n)}if(o.populateBrowserInfo){var a=o.userAgent,s=(o.userAgentData||{}).brands,l=(0,W.w3)();l&&(a=a||l.userAgent||"",s=s||(l.userAgentData||{}).brands),u(a,s);var c=n1();e.screenRes=c.w+"X"+c.h}function u(t,n){if((0,p.cy)(n))try{for(var r=0;r<nX.length;r++){var o=n$(nX[r].br,n);if(o){e.browser=nX[r].b,e.browserVer=o;return}}}catch(e){}if(t){var a=nQ(t);e.browser=a,e.browserVer=nJ(t,a)}}(0,p.b0)(o.gpcDataSharingOptIn)?e.gpcDataSharingOptIn=null:e.gpcDataSharingOptIn=o.gpcDataSharingOptIn,e.getUserConsent=function(){return o.userConsented||!!(0,M.UM)(r,o.userConsentCookieName||"MSCC")},e.getUserConsentDetails=function(){var t=null;try{var n=o.callback;if(n&&n.userConsentDetails){var r=n.userConsentDetails();if(r){t=o.disableConsentDetailsSanitize?r:{};for(var a=0;a<nj.length;a++){var s=nj[a];t[s]=r[s]||!1}}}var l=e.gpcDataSharingOptIn;return null!==l&&((t=t||{}).GPC_DataSharingOptIn=!!l),t?JSON.stringify(t):null}catch(e){}},(0,p.r)(e,"userConsent",e.getUserConsent)})}return e._staticInit=function(){(0,p.r)(e.prototype,"userConsent",n2)}(),e}();function n4(e,t,n,r,o){var a=t.ext[tW[e]];if(a)try{(0,p.z)(r,function(e,t){if((0,p.Kg)(t)||(0,p.Et)(t)||(0,p.Lm)(t)){var r=a[n[e]];!o&&(r||(0,p.Kg)(r)||(0,p.Et)(r)||(0,p.Lm)(r))&&(t=r),a[n[e]]=t}})}catch(e){}return a}var n3=function(){function e(t,n,r){(0,F.A)(e,this,function(e){e.app=new nu(n,r),e.cloud=new nd,e.user=new nL(t,n,r),e.os=new nI(n),e.web=new n5(n,r);var o=new nN(t,r),a=new nm(n,r),s=new nU(n);e.loc=new ng,e.device=new np;var l=new ni(r,n);e.session=new nr;var c=n6(new nB(n),f()),u=!(n||{}).eventContainExtFields;function d(){var t=e.session;if(t&&(0,p.Kg)(t.customId))return t.customId;l.update();var n=l.automaticSession;if(n){var r=n.getId();r&&(0,p.Kg)(r)&&(t.automaticId=r)}return t.automaticId}function f(){var e=c;return r&&r.getTraceCtx&&(e=r.getTraceCtx(!1)||c),e}e.getTraceCtx=function(){return c},e.getSessionId=d,e.applyApplicationContext=function(t){var n,r=e.app;n4(4,t,tq,((n={})[0]=r.id,n[1]=r.ver,n[2]=r.name,n[3]=r.locale,n[4]=r.getExpId(),n[5]=r.env,n),u)},e.applyUserContext=function(t){var n,r=e.user;n4(0,t,tK,((n={})[1]=r.getLocalId(),n[0]=r.locale,n[2]=r.id,n),u)},e.applyWebContext=function(t){var n,r=e.web;n4(3,t,tG,((n={})[0]=r.domain,n[1]=r.browser,n[2]=r.browserVer,n[3]=r.screenRes,n[5]=r.getUserConsentDetails(),n[4]=r.getUserConsent(),n),u)},e.applyOsContext=function(t){var n,r=e.os;n4(5,t,tX,((n={})[0]=r.name,n[1]=r.ver,n),u)},e.applySdkContext=function(e){var t;n4(6,e,tY,((t={})[2]=o.installId,t[1]=o.getSequenceId(),t[3]=o.epoch,t),u)},e.applyIntWebContext=function(e){var t;n4(7,e,t$,((t={})[0]=a.getMsfpc(),t[1]=a.getAnid(),t[2]=a.serviceName,t),u)},e.applyUtcContext=function(e){var t,n=((t={})[0]=s.popSample,t);s.eventFlags>0&&(n[1]=s.eventFlags),n4(8,e,tQ,n,u)},e.applyLocContext=function(t){var n;n4(9,t,tJ,((n={})[0]=e.loc.tz,n),u)},e.applySessionContext=function(e){var t;n4(4,e,tZ,((t={})[0]=d(),t),u)},e.applyDeviceContext=function(t){var n,r=e.device;n4(1,t,t0,((n={})[0]=r.localId,n[2]=r.make,n[3]=r.model,n[1]=r.deviceClass,n),u)},e.applyCloudContext=function(t){var n,r=e.cloud;n4(10,t,t1,((n={})[0]=r.role,n[1]=r.roleInstance,n[2]=r.roleVer,n),u)},e.applyAITraceContext=function(e){var t;if(n.enableApplicationInsightsTrace){var r=f();r&&n4(2,e,t2,((t={})[0]=r.getTraceId(),t[1]=r.getName(),t[2]=r.getSpanId(),t),!1)}},e.applyDistributedTraceContext=function(e){var t,n=f();if(n){var r=((t={})[0]=n.getTraceId(),t[1]=n.getSpanId(),t),o=n.getTraceFlags();(0,p.hX)(o)||(r[2]=o),n4(11,e,t5,r,!1)}}})}return e.__ieDyn=1,e}();function n6(e,t){var n=e||{};return{getName:function(){return n.name},setName:function(e){t&&t.setName(e),n.name=e},getTraceId:function(){return n.traceId},setTraceId:function(e){t&&t.setTraceId(e),(0,t4.hX)(e)&&(n.traceId=e)},getSpanId:function(){return n.parentId},setSpanId:function(e){t&&t.setSpanId(e),(0,t4.wN)(e)&&(n.parentId=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}var n8=[tW["4"],tW["0"],tW["3"],tW["5"],tW["6"],tW["7"],tW["8"],tW["9"],tW["1"],tW["2"],tW["11"],tW["10"]];let n9=function(e){function t(){var n,r,o,a=e.call(this)||this;return a.identifier="SystemPropertiesCollector",a.priority=3,a.version="3.2.18",(0,F.A)(t,a,function(e,t){function a(){n=null,r={}}function s(e,t){e&&(0,p.z)(e,function(e,n){t[e]||(t[e]=n)})}a(),e.initialize=function(r,a,s){t.initialize(r,a,s),n=new n3(r,o=e._getTelCtx().getExtCfg(e.identifier),a),a&&a.setTraceCtx&&a.setTraceCtx(n.getTraceCtx())},e.processTelemetry=function(t,a){(0,M.u9)(t,e.identifier),a=e._getTelCtx(a);var l=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},(0,p.Iu)(n8,function(e){l[e]=l[e]||{}}),n&&(n.applyUtcContext(t),n.applyApplicationContext(t),n.applyUserContext(t),n.applyWebContext(t),n.applyOsContext(t),n.applySdkContext(t),n.applyIntWebContext(t),n.applyLocContext(t),n.applySessionContext(t),n.applyDeviceContext(t),o.enableApplicationInsightsTrace&&n.applyAITraceContext(t),o.enableDistributedTracing&&n.applyDistributedTraceContext(t),n.applyCloudContext(t)),(0,p.Iu)((0,p.cG)(l),function(e){0===(0,p.cG)(l[e]).length&&delete l[e]}),s(r,t.data),e.processNext(t,a)},e.getPropertiesContext=function(){return n},e.setProperty=function(e,t){r[e]=t},e._doTeardown=function(e,t){var r=(e||{}).core();if(r&&r.getTraceCtx&&n){var o=r.getTraceCtx(!1);o&&o===n.getTraceCtx()&&r.setTraceCtx(null)}a()}}),a}return(0,d.qU)(t,e),t.__ieDyn=1,t}(er.s);var n7={CLICKLEFT:"CL",CLICKRIGHT:"CR",CLICKMIDDLE:"CM",SCROLL:"S",ZOOM:"Z",RESIZE:"R",KEYBOARDENTER:"KE",KEYBOARDSPACE:"KS",OTHER:"O"};!function(e){e[e.PAGE_ACTION=0]="PAGE_ACTION",e[e.CONTENT_UPDATE=1]="CONTENT_UPDATE"}(s||(s={})),function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.NAVIGATIONBACK=1]="NAVIGATIONBACK",e[e.NAVIGATION=2]="NAVIGATION",e[e.NAVIGATIONFORWARD=3]="NAVIGATIONFORWARD",e[e.APPLY=4]="APPLY",e[e.REMOVE=5]="REMOVE",e[e.SORT=6]="SORT",e[e.EXPAND=7]="EXPAND",e[e.REDUCE=8]="REDUCE",e[e.CONTEXTMENU=9]="CONTEXTMENU",e[e.TAB=10]="TAB",e[e.COPY=11]="COPY",e[e.EXPERIMENTATION=12]="EXPERIMENTATION",e[e.PRINT=13]="PRINT",e[e.SHOW=14]="SHOW",e[e.HIDE=15]="HIDE",e[e.MAXIMIZE=16]="MAXIMIZE",e[e.MINIMIZE=17]="MINIMIZE",e[e.BACKBUTTON=18]="BACKBUTTON",e[e.STARTPROCESS=20]="STARTPROCESS",e[e.PROCESSCHECKPOINT=21]="PROCESSCHECKPOINT",e[e.COMPLETEPROCESS=22]="COMPLETEPROCESS",e[e.SCENARIOCANCEL=23]="SCENARIOCANCEL",e[e.DOWNLOADCOMMIT=40]="DOWNLOADCOMMIT",e[e.DOWNLOAD=41]="DOWNLOAD",e[e.SEARCHAUTOCOMPLETE=60]="SEARCHAUTOCOMPLETE",e[e.SEARCH=61]="SEARCH",e[e.SEARCHINITIATE=62]="SEARCHINITIATE",e[e.TEXTBOXINPUT=63]="TEXTBOXINPUT",e[e.PURCHASE=80]="PURCHASE",e[e.ADDTOCART=81]="ADDTOCART",e[e.VIEWCART=82]="VIEWCART",e[e.ADDWISHLIST=83]="ADDWISHLIST",e[e.FINDSTORE=84]="FINDSTORE",e[e.CHECKOUT=85]="CHECKOUT",e[e.REMOVEFROMCART=86]="REMOVEFROMCART",e[e.PURCHASECOMPLETE=87]="PURCHASECOMPLETE",e[e.VIEWCHECKOUTPAGE=88]="VIEWCHECKOUTPAGE",e[e.VIEWCARTPAGE=89]="VIEWCARTPAGE",e[e.VIEWPDP=90]="VIEWPDP",e[e.UPDATEITEMQUANTITY=91]="UPDATEITEMQUANTITY",e[e.INTENTTOBUY=92]="INTENTTOBUY",e[e.PUSHTOINSTALL=93]="PUSHTOINSTALL",e[e.SIGNIN=100]="SIGNIN",e[e.SIGNOUT=101]="SIGNOUT",e[e.SOCIALSHARE=120]="SOCIALSHARE",e[e.SOCIALLIKE=121]="SOCIALLIKE",e[e.SOCIALREPLY=122]="SOCIALREPLY",e[e.CALL=123]="CALL",e[e.EMAIL=124]="EMAIL",e[e.COMMUNITY=125]="COMMUNITY",e[e.SOCIALFOLLOW=126]="SOCIALFOLLOW",e[e.VOTE=140]="VOTE",e[e.SURVEYINITIATE=141]="SURVEYINITIATE",e[e.SURVEYCOMPLETE=142]="SURVEYCOMPLETE",e[e.REPORTAPPLICATION=143]="REPORTAPPLICATION",e[e.REPORTREVIEW=144]="REPORTREVIEW",e[e.SURVEYCHECKPOINT=145]="SURVEYCHECKPOINT",e[e.CONTACT=160]="CONTACT",e[e.REGISTRATIONINITIATE=161]="REGISTRATIONINITIATE",e[e.REGISTRATIONCOMPLETE=162]="REGISTRATIONCOMPLETE",e[e.CANCELSUBSCRIPTION=163]="CANCELSUBSCRIPTION",e[e.RENEWSUBSCRIPTION=164]="RENEWSUBSCRIPTION",e[e.CHANGESUBSCRIPTION=165]="CHANGESUBSCRIPTION",e[e.REGISTRATIONCHECKPOINT=166]="REGISTRATIONCHECKPOINT",e[e.CHATINITIATE=180]="CHATINITIATE",e[e.CHATEND=181]="CHATEND",e[e.TRIALSIGNUP=200]="TRIALSIGNUP",e[e.TRIALINITIATE=201]="TRIALINITIATE",e[e.SIGNUP=210]="SIGNUP",e[e.FREESIGNUP=211]="FREESIGNUP",e[e.PARTNERREFERRAL=220]="PARTNERREFERRAL",e[e.LEARNLOWFUNNEL=230]="LEARNLOWFUNNEL",e[e.LEARNHIGHFUNNEL=231]="LEARNHIGHFUNNEL",e[e.SHOPPINGINTENT=232]="SHOPPINGINTENT",e[e.TRIALINTENT=234]="TRIALINTENT",e[e.VIDEOSTART=240]="VIDEOSTART",e[e.VIDEOPAUSE=241]="VIDEOPAUSE",e[e.VIDEOCONTINUE=242]="VIDEOCONTINUE",e[e.VIDEOCHECKPOINT=243]="VIDEOCHECKPOINT",e[e.VIDEOJUMP=244]="VIDEOJUMP",e[e.VIDEOCOMPLETE=245]="VIDEOCOMPLETE",e[e.VIDEOBUFFERING=246]="VIDEOBUFFERING",e[e.VIDEOERROR=247]="VIDEOERROR",e[e.VIDEOMUTE=248]="VIDEOMUTE",e[e.VIDEOUNMUTE=249]="VIDEOUNMUTE",e[e.VIDEOFULLSCREEN=250]="VIDEOFULLSCREEN",e[e.VIDEOUNFULLSCREEN=251]="VIDEOUNFULLSCREEN",e[e.VIDEOREPLAY=252]="VIDEOREPLAY",e[e.VIDEOPLAYERLOAD=253]="VIDEOPLAYERLOAD",e[e.VIDEOPLAYERCLICK=254]="VIDEOPLAYERCLICK",e[e.VIDEOVOLUMECONTROL=255]="VIDEOVOLUMECONTROL",e[e.VIDEOAUDIOTRACKCONTROL=256]="VIDEOAUDIOTRACKCONTROL",e[e.VIDEOCLOSEDCAPTIONCONTROL=257]="VIDEOCLOSEDCAPTIONCONTROL",e[e.VIDEOCLOSEDCAPTIONSTYLE=258]="VIDEOCLOSEDCAPTIONSTYLE",e[e.VIDEORESOLUTIONCONTROL=259]="VIDEORESOLUTIONCONTROL",e[e.VIRTUALEVENTJOIN=260]="VIRTUALEVENTJOIN",e[e.VIRTUALEVENTEND=261]="VIRTUALEVENTEND",e[e.JOINTEAMSMEETINGEVENT=262]="JOINTEAMSMEETINGEVENT",e[e.IMPRESSION=280]="IMPRESSION",e[e.CLICK=281]="CLICK",e[e.RICHMEDIACOMPLETE=282]="RICHMEDIACOMPLETE",e[e.ADBUFFERING=283]="ADBUFFERING",e[e.ADERROR=284]="ADERROR",e[e.ADSTART=285]="ADSTART",e[e.ADCOMPLETE=286]="ADCOMPLETE",e[e.ADSKIP=287]="ADSKIP",e[e.ADTIMEOUT=288]="ADTIMEOUT",e[e.OTHER=300]="OTHER"}(l||(l={}));var re=["c:","i:","w:"],rt={"microsoft.com":"c1.microsoft.com","xbox.com":"c.xbox.com","live.com":"c.live.com","microsoftstore.com":"c.microsoftstore.com","msn.com":"c.msn.com","windows.com":"c.windows.com","office.com":"c.office.com"};let rn=function(){function e(t){this.core=t;var n,r=(0,M.gj)(),o=(0,nT.cL)(),a=null,s=!1,l=(0,ee.um)(t);(0,F.A)(e,this,function(e){e.getTraceId=function(){return t&&t.getTraceCtx&&t.getTraceCtx().getTraceId()||o},e.getLastPageViewId=function(){return r},e.initializeIds=function(){s?r=(0,M.gj)():s=!0},e.getMuidUserId=function(){var e=(0,M.UM)(l,"MUID");return e&&e.length?"t:"+e:e},e.setAppUserId=function(e){if(a=null,e){for(var t=0;t<re.length;t++)if(re[t]===e.substring(0,2)){a=e;break}}},e.setDeviceClass=function(e){e&&(n=e)},e.getDeviceClass=function(){return n},e.getAppUserId=function(){return a},e.syncMuid=function(e){var t=(0,W.g$)();if(t&&e){var n=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",r=(0,W.YE)();if(r){var o=r.createElement("IMG");o.style.display="none",o.src=n,o.hidden="",o["aria-hidden"]="true",o.role="presentation"}return!0}return!1},e.getMuidHost=function(e){return rt[e]}})}return e.visitorId=function(){return(0,M.UM)((0,ee.um)(null),"MUID")},e}(),rr=function(){function e(){this._timers=[]}return e.prototype._recordTimeSpan=function(e,t){var n=new Date().getTime();if(t)return n-this._timers[e];this._timers[e]=n},e}();var ro="split",ri="length",ra="toLowerCase",rs="toString",rl="removeItem",rc="name",ru="message",rd="count",rp="stringify",rf="pathname",rh="indexOf",rm="exceptions",rg="parsedStack",rv="properties",ry="measurements",rb="sizeInBytes",rx="typeName",rC="severityLevel",rk="problemGroup",rw="isManual",rS="CreateFromInterface",r_="assembly",rE="fileName",rP="hasFullStack",rI="level",rT="method",rD="line",rA="duration",rR="receivedResponse",rN="substring",rB="sanitizeKeyAndAddUniqueness",rM="sanitizeException",rF="sanitizeProperties",rO="sanitizeMeasurements",rL="";function rH(e,t){return(void 0===t&&(t=!1),null==e)?t:"true"===e.toString()[ra]()}function rz(e){(isNaN(e)||e<0)&&(e=0);var t=rL+(e=Math.round(e))%1e3,n=rL+Math.floor(e/1e3)%60,r=rL+Math.floor(e/6e4)%60,o=rL+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t[ri]?"00"+t:2===t[ri]?"0"+t:t,n=n[ri]<2?"0"+n:n,r=r[ri]<2?"0"+r:r,(a>0?a+".":rL)+(o=o[ri]<2?"0"+o:o)+":"+r+":"+n+"."+t}function rV(e,t,n,r,o){return!o&&(0,p.Kg)(e)&&("Script error."===e||"Script error"===e)}var rU=f({LocalStorage:0,SessionStorage:1});f({AI:0,AI_AND_W3C:1,W3C:2});var rj=void 0,rW=void 0,rq="";function rG(e){try{if((0,p.hX)((0,q.mS)()))return null;var t=(new Date)[rs](),n=(0,W.EH)(e===rU.LocalStorage?"localStorage":"sessionStorage"),r=rq+t;n.setItem(r,t);var o=n.getItem(r)!==t;if(n[rl](r),!o)return n}catch(e){}return null}function rK(){return rJ()?rG(rU.SessionStorage):null}function rX(){rj=!1,rW=!1}function rY(e){rq=e||""}function r$(){rj=rQ(!0),rW=rJ(!0)}function rQ(e){return(e||void 0===rj)&&(rj=!!rG(rU.LocalStorage)),rj}function rJ(e){return(e||void 0===rW)&&(rW=!!rG(rU.SessionStorage)),rW}function rZ(e,t){var n=rK();if(null!==n)try{return n.getItem(t)}catch(t){rW=!1,(0,U.ZP)(e,2,2,"Browser failed read of session storage. "+(0,p.lL)(t),{exception:(0,W.mm)(t)})}return null}function r0(e,t,n){var r=rK();if(null!==r)try{return r.setItem(t,n),!0}catch(t){rW=!1,(0,U.ZP)(e,2,4,"Browser failed write to session storage. "+(0,p.lL)(t),{exception:(0,W.mm)(t)})}return!1}function r1(e,t){var n=rK();if(null!==n)try{return n[rl](t),!0}catch(t){rW=!1,(0,U.ZP)(e,2,6,"Browser failed removal of session storage item. "+(0,p.lL)(t),{exception:(0,W.mm)(t)})}return!1}var r2="AppInsightsPropertiesPlugin",r5="ApplicationInsightsAnalytics",r4="not_specified",r3="iKey";function r6(e,t,n){var r=t[ri],o=r8(e,t);if(o[ri]!==r){for(var a=0,s=o;void 0!==n[s];)a++,s=o[rN](0,147)+oa(a);o=s}return o}function r8(e,t){var n;return t&&(t=(0,p.EH)(t[rs]()))[ri]>150&&(n=t[rN](0,150),(0,U.ZP)(e,2,57,"name is too long.  It has been truncated to 150 characters.",{name:t},!0)),n||t}function r9(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=(0,p.EH)(t)).toString()[ri]>n&&(r=t[rs]()[rN](0,n),(0,U.ZP)(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function r7(e,t){return oi(e,t,2048,66)}function oe(e,t){var n;return t&&t[ri]>32768&&(n=t[rN](0,32768),(0,U.ZP)(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function ot(e,t){var n;if(t){var r=""+t;r[ri]>32768&&(n=r[rN](0,32768),(0,U.ZP)(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function on(e,t){if(t){var n={};(0,p.z)(t,function(t,r){if((0,p.Gv)(r)&&(0,W.Z)())try{r=(0,W.hm)()[rp](r)}catch(t){(0,U.ZP)(e,2,49,"custom property is not valid",{exception:t},!0)}r=r9(e,r,8192),t=r6(e,t,n),n[t]=r}),t=n}return t}function or(e,t){if(t){var n={};(0,p.z)(t,function(t,r){t=r6(e,t,n),n[t]=r}),t=n}return t}function oo(e,t){return t?oi(e,t,128,69)[rs]():t}function oi(e,t,n,r){var o;return t&&(t=(0,p.EH)(t))[ri]>n&&(o=t[rN](0,n),(0,U.ZP)(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function oa(e){var t="00"+e;return t.substr(t[ri]-3)}function os(e,t,n,r,o,a){n=r9(r,n)||r4,((0,p.hX)(e)||(0,p.hX)(t)||(0,p.hX)(n))&&(0,p.$8)("Input doesn't contain all required fields");var s,l="";e[r3]&&(l=e[r3],delete e[r3]);var c=((s={})[rc]=n,s.time=(0,p._u)(new Date),s.iKey=l,s.ext=a||{},s.tags=[],s.data={},s.baseType=t,s.baseData=e,s);return(0,p.hX)(o)||(0,p.z)(o,function(e,t){c.data[e]=t}),c}(c={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768})[rB]=r6,c.sanitizeKey=r8,c.sanitizeString=r9,c.sanitizeUrl=r7,c.sanitizeMessage=oe,c[rM]=ot,c[rF]=on,c[rO]=or,c.sanitizeId=oo,c.sanitizeInput=oi,c.padNumber=oa,c.trim=p.EH,function(){(function e(){}).create=os}();var ol=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[rc]=r9(e,t)||r4,o[rv]=on(e,n),o[ry]=or(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),oc=function(){function e(e,t,n,r,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;a.ver=2,t=t||r4,a[ru]=oe(e,t),a[rv]=on(e,r),a[ry]=or(e,o),n&&(a[rC]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),ou=function(){return function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}}(),od=function(){function e(e,t,n,r,o,a,s,l,c){this.aiDataContract={ver:1,metrics:1,properties:0};var u=this;u.ver=2;var d=new ou;d[rd]=r>0?r:void 0,d.max=isNaN(a)||null===a?void 0:a,d.min=isNaN(o)||null===o?void 0:o,d[rc]=r9(e,t)||r4,d.value=n,d.stdDev=isNaN(s)||null===s?void 0:s,u.metrics=[d],u[rv]=on(e,l),u[ry]=or(e,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),op=function(){function e(e,t,n,r,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var l=this;l.ver=2,l.id=oo(e,s),l.url=r7(e,n),l[rc]=r9(e,t)||r4,isNaN(r)||(l[rA]=rz(r)),l[rv]=on(e,o),l[ry]=or(e,a)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),of=function(){function e(e,t,n,r,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var l=this;l.ver=2,l.url=r7(e,n),l[rc]=r9(e,t)||r4,l[rv]=on(e,o),l[ry]=or(e,a),s&&(l.domProcessing=s.domProcessing,l[rA]=s[rA],l.networkConnect=s.networkConnect,l.perfTotal=s.perfTotal,l[rR]=s[rR],l.sentRequest=s.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),oh="<no_method>",om="error",og="stack",ov="stackDetails",oy="errorSrc",ob="message",ox="description";function oC(e,t){var n=e;return n&&!(0,p.Kg)(n)&&(JSON&&JSON[rp]?(n=JSON[rp](e),t&&(!n||"{}"===n)&&(n=(0,p.Tn)(e[rs])?e[rs]():""+e)):n=""+e+" - (Missing JSON.stringify)"),n||""}function ok(e,t){var n=e;return e&&(n&&!(0,p.Kg)(n)&&(n=e[ob]||e[ox]||n),n&&!(0,p.Kg)(n)&&(n=oC(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(n||"")[rh](t)&&(n=t+": "+n),n||""}function ow(e){try{if((0,p.Gv)(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}function oS(e){try{if((0,p.Gv)(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}function o_(e){return e&&e.src&&(0,p.Kg)(e.src)&&e.obj&&(0,p.cy)(e.obj)}function oE(e){var t=e||"";(0,p.Kg)(t)||(t=(0,p.Kg)(t[og])?t[og]:""+t);var n=t[ro]("\n");return{src:t,obj:n}}function oP(e){for(var t=[],n=e[ro]("\n"),r=0;r<n[ri];r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}function oI(e){var t=null;if(e)try{if(e[og])t=oE(e[og]);else if(e[om]&&e[om][og])t=oE(e[om][og]);else if(e.exception&&e.exception[og])t=oE(e.exception[og]);else if(o_(e))t=e;else if(o_(e[ov]))t=e[ov];else if(window&&window.opera&&e[ob])t=oP(e[ru]);else if(e.reason&&e.reason[og])t=oE(e.reason[og]);else if((0,p.Kg)(e))t=oE(e);else{var n=e[ob]||e[ox]||"";(0,p.Kg)(e[oy])&&(n&&(n+="\n"),n+=" from "+e[oy]),n&&(t=oE(n))}}catch(e){t=oE(e)}return t||{src:"",obj:null}}function oT(e){var t="";return e&&(e.obj?(0,p.Iu)(e.obj,function(e){t+=e+"\n"}):t=e.src||""),t}function oD(e){var t,n=e.obj;if(n&&n[ri]>0){t=[];var r=0,o=0;(0,p.Iu)(n,function(e){var n=e[rs]();if(oM.regex.test(n)){var a=new oM(n,r++);o+=a[rb],t.push(a)}});var a=32768;if(o>32768)for(var s=0,l=t[ri]-1,c=0,u=s,d=l;s<l;){if((c+=t[s][rb]+t[l][rb])>a){var f=d-u+1;t.splice(u,f);break}u=s,d=l,s++,l--}}return t}function oA(e){var t="";if(e&&!(t=e.typeName||e[rc]||""))try{var n=/function (.{1,200})\(/.exec(e.constructor[rs]());t=n&&n[ri]>1?n[1]:""}catch(e){}return t}function oR(e){if(e)try{if(!(0,p.Kg)(e)){var t=oA(e),n=oC(e,!1);if(n&&"{}"!==n||(e[om]&&(e=e[om],t=oA(e)),n=oC(e,!0)),0!==n[rh](t)&&"String"!==t)return t+":"+n;return n}}catch(e){}return""+(e||"")}var oN=function(){function e(e,t,n,r,o,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,oS(t)?(s[rm]=t[rm]||[],s[rv]=t[rv],s[ry]=t[ry],t[rC]&&(s[rC]=t[rC]),t.id&&(s.id=t.id),t[rk]&&(s[rk]=t[rk]),(0,p.hX)(t[rw])||(s[rw]=t[rw])):(n||(n={}),s[rm]=[new oB(e,t,n)],s[rv]=on(e,n),s[ry]=or(e,r),o&&(s[rC]=o),a&&(s.id=a))}return e.CreateAutoException=function(e,t,n,r,o,a,s,l){var c,u=oA(o||a||e);return(c={})[ru]=ok(e,u),c.url=t,c.lineNumber=n,c.columnNumber=r,c.error=oR(o||a||e),c.evt=oR(a||e),c[rx]=u,c.stackDetails=oI(s||o||a),c.errorSrc=l,c},e.CreateFromInterface=function(t,n,r,o){var a=n[rm]&&(0,p.W$)(n[rm],function(e){return oB[rS](t,e)});return new e(t,(0,d.Im)((0,d.Im)({},n),{exceptions:a}),r,o)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,o=t.measurements,a=t.severityLevel,s=t.problemGroup,l=t.id,c=t.isManual,u=n instanceof Array&&(0,p.W$)(n,function(e){return e.toInterface()})||void 0;return(e={ver:"4.0"})[rm]=u,e.severityLevel=a,e.properties=r,e.measurements=o,e.problemGroup=s,e.id=l,e.isManual=c,e},e.CreateSimpleException=function(e,t,n,r,o,a){var s;return{exceptions:[((s={})[rP]=!0,s.message=e,s.stack=o,s.typeName=t,s)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=oR,e}(),oB=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(ow(t))r[rx]=t[rx],r[ru]=t[ru],r[og]=t[og],r[rg]=t[rg]||[],r[rP]=t[rP];else{var o=t,a=o&&o.evt;(0,p.bJ)(o)||(o=o[om]||a||o),r[rx]=r9(e,oA(o))||r4,r[ru]=oe(e,ok(t||o,r[rx]))||r4;var s=t[ov]||oI(t);r[rg]=oD(s),(0,p.cy)(r[rg])&&(0,p.W$)(r[rg],function(t){t[r_]=r9(e,t[r_]),t[rE]=r9(e,t[rE])}),r[og]=ot(e,oT(s)),r.hasFullStack=(0,p.cy)(r.parsedStack)&&r.parsedStack[ri]>0,n&&(n[rx]=n[rx]||r[rx])}}return e.prototype.toInterface=function(){var e,t=this,n=t[rg]instanceof Array&&(0,p.W$)(t[rg],function(e){return e.toInterface()});return(e={id:t.id,outerId:t.outerId,typeName:t[rx],message:t[ru],hasFullStack:t[rP],stack:t[og]})[rg]=n||void 0,e},e.CreateFromInterface=function(t,n){var r=n[rg]instanceof Array&&(0,p.W$)(n[rg],function(e){return oM[rS](e)})||n[rg];return new e(t,(0,d.Im)((0,d.Im)({},n),{parsedStack:r}))},e}(),oM=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r[rb]=0,"string"==typeof t){var o=t;r[rI]=n,r[rT]=oh,r[r_]=(0,p.EH)(o),r[rE]="",r[rD]=0;var a=o.match(e.regex);a&&a[ri]>=5&&(r[rT]=(0,p.EH)(a[2])||r[rT],r[rE]=(0,p.EH)(a[4]),r[rD]=parseInt(a[5])||0)}else r[rI]=t[rI],r[rT]=t[rT],r[r_]=t[r_],r[rE]=t[rE],r[rD]=t[rD],r[rb]=0;r.sizeInBytes+=r.method[ri],r.sizeInBytes+=r.fileName[ri],r.sizeInBytes+=r.assembly[ri],r[rb]+=e.baseSize,r.sizeInBytes+=r.level.toString()[ri],r.sizeInBytes+=r.line.toString()[ri]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[rI],method:e[rT],assembly:e[r_],fileName:e[rE],line:e[rD]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}(),oF=(0,W.YE)()||{},oO=0,oL=[null,null,null,null,null];function oH(e){var t=oO,n=oL,r=n[t];return oF.createElement?n[t]||(r=n[t]=oF.createElement("a")):r={host:oz(e,!0)},r.href=e,++t>=n[ri]&&(t=0),oO=t,r}function oz(e,t){var n=oV(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[ri]>3&&(0,p.Kg)(r[2])&&r[2][ri]>0)return r[2]+(r[3]||"")}return n}function oV(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[ri]>2&&(0,p.Kg)(r[2])&&r[2][ri]>0&&(n=r[2]||"",t&&r[ri]>2)){var o=(r[1]||"")[ra](),a=r[3]||"";"http"===o&&":80"===a?a="":"https"===o&&":443"===a&&(a=""),n+=a}}return n}function oU(e,t,n,r){var o,a=r,s=r;if(t&&t[ri]>0){var l=oH(t);if(o=l.host,!a)if(null!=l[rf]){var c=0===l.pathname[ri]?"/":l[rf];"/"!==c.charAt(0)&&(c="/"+c),s=l[rf],a=r9(e,n?n+" "+c:c)}else a=r9(e,t)}else o=r,a=r;return{target:o,name:a,data:s}}function oj(e,t){var n=null;return 0===e||0===t||(0,p.hX)(e)||(0,p.hX)(t)||(n=t-e),n}function oW(e,t){var n=e||{};return{getName:function(){return n[rc]},setName:function(e){t&&t.setName(e),n[rc]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),(0,t4.hX)(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),(0,t4.wN)(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}var oq=function(){function e(e,t,n,r,o,a,s,l,c,u,d,p){void 0===c&&(c="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var f=this;f.ver=2,f.id=t,f[rA]=rz(o),f.success=a,f.resultCode=s+"",f.type=r9(e,c);var h=oU(e,n,l,r);f.data=r7(e,r)||h.data,f.target=r9(e,h.target),u&&(f.target="".concat(f.target," | ").concat(u)),f[rc]=r9(e,h[rc]),f[rv]=on(e,d),f[ry]=or(e,p)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}();function oG(e){var t=null;if((0,p.Tn)(Event))t=new Event(e);else{var n=(0,W.YE)();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}var oK="_aiHooks",oX=["req","rsp","hkErr","fnErr"];function oY(e,t){if(e)for(var n=0;n<e[O.oI]&&!t(e[n],n);n++);}function o$(e,t,n,r,o){o>=0&&o<=2&&oY(e,function(e,a){var s=e.cbks,l=s[oX[o]];if(l){t.ctx=function(){return r[a]=r[a]||{}};try{l[O.y9](t.inst,n)}catch(e){var c=t.err;try{var u=s[oX[2]];u&&(t.err=e,u[O.y9](t.inst,n))}catch(e){}finally{t.err=c}}}})}function oQ(e){return function(){var t,n=this,r=arguments,o=e.h,a=((t={})[O.RS]=e.n,t.inst=n,t.ctx=null,t.set=u,t),s=[],l=c([a],r);function c(e,t){return oY(t,function(t){e[O.y5](t)}),e}function u(e,t){(r=c([],r))[e]=t,l=c([a],r)}a.evt=(0,W.EH)("event"),o$(o,a,l,s,0);var d=e.f;if(d)try{a.rslt=d[O.y9](n,r)}catch(e){throw a.err=e,o$(o,a,l,s,3),e}return o$(o,a,l,s,1),a.rslt}}function oJ(e,t,n,r){var o=null;return e&&((0,p.mQ)(e,t)?o=e:n&&(o=oJ((0,p.fw)(e),t,r,!1))),o}function oZ(e,t,n,r){var o=n&&n[oK];if(!o){var a=oQ(o={i:0,n:t,f:n,h:[]});a[oK]=o,e[t]=a}var s={id:o.i,cbks:r,rm:function(){var e=this.id;oY(o.h,function(t,n){if(t.id===e)return o.h[O.Ic](n,1),1})}};return o.i++,o.h[O.y5](s),s}function o0(e,t,n,r,o){if(void 0===r&&(r=!0),e&&t&&n){var a=oJ(e,t,r,o);if(a){var s=a[t];if(typeof s===strShimFunction)return oZ(a,t,s,n)}}return null}function o1(e,t,n,r,o){if(e&&t&&n){var a=oJ(e,t,r,o)||e;if(a)return oZ(a,t,a[t],n)}return null}var o2="toString",o5="disableExceptionTracking",o4="autoTrackPageVisitTime",o3="overridePageViewDuration",o6="enableUnhandledPromiseRejectionTracking",o8="samplingPercentage",o9="isStorageUseDisabled",o7="isBrowserLinkTrackingEnabled",ie="enableAutoRouteTracking",it="namePrefix",ir="disableFlushOnBeforeUnload",io="core",ii="dataType",ia="envelopeType",is="diagLog",il="track",ic="trackPageView",iu="trackPreviousPageVisit",id="sendPageViewInternal",ip="sendPageViewPerformanceInternal",ih="populatePageViewPerformanceEvent",im="href",ig="sendExceptionInternal",iv="exception",iy="error",ib="_onerror",ix="errorSrc",iC="lineNumber",ik="columnNumber",iw="message",iS="CreateAutoException",i_="addTelemetryInitializer",iE="duration",iP="length",iI="isPerformanceTimingSupported",iT="getPerformanceTiming",iD="navigationStart",iA="shouldCollectDuration",iR="isPerformanceTimingDataReady",iN="getEntriesByType",iB="responseStart",iM="requestStart",iF="loadEventEnd",iO="responseEnd",iL="connectEnd",iH="pageVisitStartTime",iz=null;function iV(){if(null==iz)try{iz=!!(self&&self instanceof WorkerGlobalScope)}catch(e){iz=!1}return iz}var iU=function(){function e(t,n,r,o){(0,F.A)(e,this,function(e){var a,s=null,l=[],c=!1;function u(e){r&&r.flush(e)}function d(){s||(s=setTimeout(function(){s=null;var e=l.slice(0),t=!1;l=[],(0,p.Iu)(e,function(e){e()?t=!0:l.push(e)}),l[iP]>0&&d(),t&&u(!0)},100))}function f(e){l.push(e),d()}r&&(a=r.logger),e[ic]=function(e,r){var s,l,d=e.name;if((0,p.hX)(d)||"string"!=typeof d){var h=(0,W.YE)();d=e.name=h&&h.title||""}var m=e.uri;if((0,p.hX)(m)||"string"!=typeof m){var g=(0,W.g$)();m=e.uri=g&&g[im]||""}if(!o[iI]()){t[id](e,r),u(!0),iV()||(0,U.ZP)(a,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var v=!1,y=o[iT]()[iD];y>0&&(s=oj(y,+new Date),o[iA](s)||(s=void 0)),(0,p.hX)(r)||(0,p.hX)(r[iE])||(l=r[iE]),(n||!isNaN(l))&&(isNaN(l)&&(r||(r={}),r[iE]=s),t[id](e,r),u(!0),v=!0);var b=6e4;r||(r={}),f(function(){var n=!1;try{if(o[iR]()){n=!0;var l={name:d,uri:m};o[ih](l),l.isValid||v?(v||(r[iE]=l.durationMs,t[id](e,r)),c||(t[ip](l,r),c=!0)):(r[iE]=s,t[id](e,r))}else y>0&&oj(y,+new Date)>b&&(n=!0,v||(r[iE]=b,t[id](e,r)))}catch(e){(0,U.ZP)(a,1,38,"trackPageView failed on page load calculation: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}return n})},e.teardown=function(e,t){if(s){clearTimeout(s),s=null;var n=l.slice(0),r=!1;l=[],(0,p.Iu)(n,function(e){e()&&(r=!0)})}}})}return e.__ieDyn=1,e}(),ij=36e5,iW=["googlebot","adsbot-google","apis-google","mediapartners-google"];function iq(){var e=(0,W.FJ)();return e&&!!e.timing}function iG(){var e=(0,W.FJ)();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[iP]>0}function iK(){var e=(0,W.FJ)(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[iD]>0&&t[iB]>0&&t[iM]>0&&t[iF]>0&&t[iO]>0&&t[iL]>0&&t.domLoading>0}function iX(){return iq()?(0,W.FJ)().timing:null}function iY(){return iG()?(0,W.FJ)()[iN]("navigation")[0]:null}function i$(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=((0,W.w3)()||{}).userAgent,r=!1;if(n)for(var o=0;o<iW[iP];o++)r=r||-1!==n.toLowerCase().indexOf(iW[o]);if(r)return!1;for(var o=0;o<e[iP];o++)if(e[o]<0||e[o]>=ij)return!1;return!0}var iQ=function(){function e(t){var n=(0,U.y0)(t);(0,F.A)(e,this,function(e){e[ih]=function(t){t.isValid=!1;var r=iY(),o=iX(),a=0,s=0,l=0,c=0,u=0;(r||o)&&(r?(a=r[iE],s=0===r.startTime?r[iL]:oj(r.startTime,r[iL]),l=oj(r.requestStart,r[iB]),c=oj(r[iB],r[iO]),u=oj(r.responseEnd,r[iF])):(a=oj(o[iD],o[iF]),s=oj(o[iD],o[iL]),l=oj(o.requestStart,o[iB]),c=oj(o[iB],o[iO]),u=oj(o.responseEnd,o[iF])),0===a?(0,U.ZP)(n,2,10,"error calculating page view performance.",{total:a,network:s,request:l,response:c,dom:u}):e[iA](a,s,l,c,u)?a<Math.floor(s)+Math.floor(l)+Math.floor(c)+Math.floor(u)?(0,U.ZP)(n,2,8,"client performance math error.",{total:a,network:s,request:l,response:c,dom:u}):(t.durationMs=a,t.perfTotal=t[iE]=rz(a),t.networkConnect=rz(s),t.sentRequest=rz(l),t.receivedResponse=rz(c),t.domProcessing=rz(u),t.isValid=!0):(0,U.ZP)(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:a,network:s,request:l,response:c,dom:u}))},e[iT]=iX,e[iI]=iq,e[iR]=iK,e[iA]=i$})}return e.__ieDyn=1,e}(),iJ=function(){function e(t,n){var r="prevPageVisitData";(0,F.A)(e,this,function(e){function o(e,n){var r=null;try{r=s(),a(e,n)}catch(e){(0,U.OG)(t,"Call to restart failed: "+(0,W.mm)(e)),r=null}return r}function a(e,n){try{if(rJ()){null!=rZ(t,r)&&(0,p.$8)("Cannot call startPageVisit consecutively without first calling stopPageVisit");var o=new iZ(e,n),a=(0,W.hm)().stringify(o);r0(t,r,a)}}catch(e){(0,U.OG)(t,"Call to start failed: "+(0,W.mm)(e))}}function s(){var e=null;try{if(rJ()){var n=(0,p.x3)(),o=rZ(t,r);o&&(0,W.Z)()&&((e=(0,W.hm)().parse(o)).pageVisitTime=n-e[iH],r1(t,r))}}catch(n){(0,U.OG)(t,"Stop page visit timer failed: "+(0,W.mm)(n)),e=null}return e}e[iu]=function(e,r){try{var a=o(e,r);a&&n(a.pageName,a.pageUrl,a.pageVisitTime)}catch(e){(0,U.OG)(t,"Auto track page visit time failed, metric will not be collected: "+(0,W.mm)(e))}},(0,p.r)(e,"_logger",function(){return t}),(0,p.r)(e,"pageVisitTimeTrackingHandler",function(){return n})})}return e.__ieDyn=1,e}(),iZ=function(){return function(e,t){this[iH]=(0,p.x3)(),this.pageName=e,this.pageUrl=t}}(),i0=function(){return function(e,t){var n=this,r={};n.start=function(t){void 0!==r[t]&&(0,U.ZP)(e,2,62,"start was called more than once for this event without calling stop.",{name:t,key:t},!0),r[t]=+new Date},n.stop=function(t,o,a,s){var l=r[t];if(isNaN(l))(0,U.ZP)(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var c=oj(l,+new Date);n.action(t,o,c,a,s)}delete r[t],r[t]=void 0}}}(),i1="event";function i2(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function i5(e){if(e&&e.reason){var t=e.reason;return!(0,p.Kg)(t)&&(0,p.Tn)(t[o2])?t[o2]():(0,W.mm)(t)}return e||""}var i4=6e4;function i3(e,t){return(e=e||t)<i4&&(e=i4),e}function i6(e){return e||(e={}),e.sessionRenewalMs=i3(e.sessionRenewalMs,18e5),e.sessionExpirationMs=i3(e.sessionExpirationMs,864e5),e[o5]=rH(e[o5]),e[o4]=rH(e[o4]),e[o3]=rH(e[o3]),e[o6]=rH(e[o6]),(isNaN(e[o8])||e[o8]<=0||e[o8]>=100)&&(e[o8]=100),e[o9]=rH(e[o9]),e[o7]=rH(e[o7]),e[ie]=rH(e[ie]),e[it]=e[it]||"",e.enableDebug=rH(e.enableDebug),e[ir]=rH(e[ir]),e.disableFlushOnUnload=rH(e.disableFlushOnUnload,e[ir]),e}function i8(e){(0,p.b0)(e[o9])||(e[o9]?rX():r$())}var i9=function(e){function t(){var n,r,o,a,s,l,c,u,f,h,m,g,v,y,b,x,C,k=e.call(this)||this;k.identifier=r5,k.priority=180,k.autoRoutePVDelay=500;var w=0;return(0,F.A)(t,k,function(e,t){var k=t._addHook;function S(t){var n=(0,G.i8)(null,t,e[io]),r=e.identifier,o=i6(t),a=e.config=n.getExtCfg(r);return void 0!==o&&(0,p.z)(o,function(e,t){a[e]=n.getConfig(r,e,t),void 0===a[e]&&(a=t)}),a}function _(e,t){c=e[o7]||t[o7],P()}function E(t,n,r){var o={PageName:t,PageUrl:n};e.trackMetric({name:"PageVisitTime",average:r,max:r,min:r,sampleCount:1},o)}function P(){if(!u&&c){var t=["/browserLinkSignalR/","/__browserLink/"],n=function(e){if(c&&e.baseType===oq[ii]){var n=e.baseData;if(n){for(var r=0;r<t[iP];r++)if(n.target&&n.target.indexOf(t[r])>=0)return!1}}return!0};e[i_](n),u=!0}}function I(t,n){var r=os(t,oN[ii],oN[ia],e[is](),n);e[io][il](r)}function T(t){var n=(0,W.zk)(),r=(0,W.g$)(!0);(m=t[o5])||g||t.autoExceptionInstrumented||(k(o1(n,"onerror",{ns:C,rsp:function(t,n,r,o,a,s){m||!0===t.rslt||e[ib](oN[iS](n,r,o,a,s,t.evt))}},!1)),g=!0),N(t,n,r)}function D(e){var t=(0,W.zk)(),n=(0,W.g$)(!0);if(f=!0===e[ie],t&&f&&(0,W.tw)()){var r=(0,W.JK)();(0,p.Tn)(r.pushState)&&(0,p.Tn)(r.replaceState)&&typeof Event!==e1.bA&&R(e,t,r,n)}}function A(){var t=null;if(e[io]&&e[io].getTraceCtx&&(t=e[io].getTraceCtx(!1)),!t){var n=e[io].getPlugin(r2);if(n){var r=n.plugin.context;r&&(t=oW(r.telemetryTrace))}}return t}function R(t,n,r,o){var a=t[it]||"";function s(){f&&i2(n,oG(a+"locationchange"))}function l(){if(x&&(b=x),x=o&&o[im]||"",f){var t=A();if(t){t.setTraceId((0,nT.cL)());var n="_unknown_";o&&o.pathname&&(n=o.pathname+(o.hash||"")),t.setName(r9(e[is](),n))}setTimeout((function(t){e[ic]({refUri:t,properties:{duration:0}})}).bind(e,b),e.autoRoutePVDelay)}}h||(k(o1(r,"pushState",{ns:C,rsp:function(){f&&(i2(n,oG(a+"pushState")),i2(n,oG(a+"locationchange")))}},!0)),k(o1(r,"replaceState",{ns:C,rsp:function(){f&&(i2(n,oG(a+"replaceState")),i2(n,oG(a+"locationchange")))}},!0)),(0,ey.mB)(n,a+"popstate",s,C),(0,ey.mB)(n,a+"locationchange",l,C),h=!0)}function N(t,n,r){(v=!0===t[o6])&&!y&&(k(o1(n,"onunhandledrejection",{ns:C,rsp:function(t,n){v&&!0!==t.rslt&&e[ib](oN[iS](i5(n),r?r[im]:"",0,0,n,t.evt))}},!1)),t.autoUnhandledPromiseInstrumented=y=!0)}function B(t,n,r,o,a){e[is]().throwInternal(t,n,r,o,a)}function M(){n=null,r=null,o=null,a=null,s=null,l=null,c=!1,u=!1,f=!1,h=!1,m=!1,g=!1,v=!1,y=!1,w=0;var e=(0,W.g$)(!0);b=e&&e[im]||"",x=null,C=null}M(),e.getCookieMgr=function(){return(0,ee.um)(e[io])},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var r=os(t,ol[ii],ol[ia],e[is](),n);e[io][il](r)}catch(e){B(2,39,"trackTrace failed, trace will not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(e){B(1,29,"startTrackEvent failed, event will not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}},e.stopTrackEvent=function(e,t,r){try{n.stop(e,void 0,t,r)}catch(e){B(1,30,"stopTrackEvent failed, event will not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}},e.trackTrace=function(t,n){try{var r=os(t,oc[ii],oc[ia],e[is](),n);e[io][il](r)}catch(e){B(2,39,"trackTrace failed, trace will not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}},e.trackMetric=function(t,n){try{var r=os(t,od[ii],od[ia],e[is](),n);e[io][il](r)}catch(e){B(1,36,"trackMetric failed, metric will not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}},e[ic]=function(t,n){try{var r=t||{};o[ic](r,(0,d.Im)((0,d.Im)((0,d.Im)({},r.properties),r.measurements),n)),e.config[o4]&&s[iu](r.name,r.uri)}catch(e){B(1,37,"trackPageView failed, page view will not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}},e[id]=function(t,n,r){var o=(0,W.YE)();o&&(t.refUri=void 0===t.refUri?o.referrer:t.refUri);var a=os(t,op[ii],op[ia],e[is](),n,r);e[io][il](a),w=0},e[ip]=function(t,n,r){var o=os(t,of[ii],of[ia],e[is](),n,r);e[io][il](o)},e.trackPageViewPerformance=function(t,n){var r=t||{};try{a[ih](r),e[ip](r,n)}catch(e){B(1,37,"trackPageViewPerformance failed, page view will not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}},e.startTrackPage=function(e){try{if("string"!=typeof e){var t=(0,W.YE)();e=t&&t.title||""}r.start(e)}catch(e){B(1,31,"startTrackPage failed, page view may not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}},e.stopTrackPage=function(t,n,o,a){try{if("string"!=typeof t){var l=(0,W.YE)();t=l&&l.title||""}if("string"!=typeof n){var c=(0,W.g$)();n=c&&c[im]||""}r.stop(t,n,o,a),e.config[o4]&&s[iu](t,n)}catch(e){B(1,32,"stopTrackPage failed, page view will not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}},e[ig]=function(t,n,r){var o=t&&(t[iv]||t[iy])||(0,p.bJ)(t)&&t||{name:t&&typeof t,message:t||r4};t=t||{};var a=os(new oN(e[is](),o,t.properties||n,t.measurements,t.severityLevel,t.id).toInterface(),oN[ii],oN[ia],e[is](),n,r);e[io][il](a)},e.trackException=function(t,n){t&&!t[iv]&&t[iy]&&(t[iv]=t[iy]);try{e[ig](t,n)}catch(e){B(1,35,"trackException failed, exception will not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e)})}},e[ib]=function(t){var n=t&&t[iy],r=t&&t.evt;try{if(!r){var o=(0,W.zk)();o&&(r=o[i1])}var a=t&&t.url||((0,W.YE)()||{}).URL,s=t[ix]||"window.onerror@"+a+":"+(t[iC]||0)+":"+(t[ik]||0),l={errorSrc:s,url:a,lineNumber:t[iC]||0,columnNumber:t[ik]||0,message:t[iw]};rV(t.message,t.url,t.lineNumber,t.columnNumber,t[iy])?I(oN[iS]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",a,t[iC]||0,t[ik]||0,n,r,null,s),l):(t[ix]||(t[ix]=s),e.trackException({exception:t,severityLevel:3},l))}catch(e){var c=n?n.name+", "+n[iw]:"null";B(1,11,"_onError threw exception while logging error, error will not be collected: "+(0,p.lL)(e),{exception:(0,W.mm)(e),errorString:c})}},e[i_]=function(t){if(e[io])return e[io][i_](t);l||(l=[]),l.push(t)},e.initialize=function(c,u,d,f){if(!e.isInitialized()){(0,p.hX)(u)&&(0,p.$8)("Error initializing"),t.initialize(c,u,d,f),c.storagePrefix&&rY(c.storagePrefix);try{C=(0,ey.Hm)((0,et.Z)(e.identifier),u.evtNamespace&&u.evtNamespace()),l&&((0,p.Iu)(l,function(e){u[i_](e)}),l=null);var h=S(c);i8(h),a=new iQ(e[io]),o=new iU(e,h[o3],e[io],a),s=new iJ(e[is](),function(e,t,n){return E(e,t,n)}),_(h,c),(n=new i0(e[is](),"trackEvent")).action=function(t,n,r,o,a){o||(o={}),a||(a={}),o.duration=r[o2](),e.trackEvent({name:t,properties:o,measurements:a})},(r=new i0(e[is](),"trackPageView")).action=function(t,n,r,o,a){(0,p.hX)(o)&&(o={}),o.duration=r[o2]();var s={name:t,uri:n,properties:o,measurements:a};e[id](s,o)},(0,W.Vd)()&&(T(h),D(h))}catch(t){throw e.setInitialized(!1),t}}},e._doTeardown=function(e,t){o&&o.teardown(e,t),(0,ey.ML)(window,null,null,C),M()},(0,p.r)(e,"_pageViewManager",function(){return o}),(0,p.r)(e,"_pageViewPerformanceManager",function(){return a}),(0,p.r)(e,"_pageVisitTimeManager",function(){return s}),(0,p.r)(e,"_evtNamespace",function(){return"."+C})}),k}return(0,d.qU)(t,e),t.Version="2.8.18",t.getDefaultConfig=i6,t}(er.s),i7="data-bi-dnt",ae="data-bi-mto";function at(e,t){an(e),(0,p.Iu)(t,function(t,n){(0,p.Gv)(e[t])?an(e[t]):delete e[t]})}function an(e){(0,p.z)(e,function(t,n){(0,M.yD)(n)&&("{}"!==JSON.stringify(n)||"callback"===t)||delete e[t]})}function ar(e,t){var n=e.left,r=e.top,o=e.right,a=e.bottom,s=t.left,l=t.top;return Math.max(0,Math.min(o,t.right)-Math.max(n,s))*Math.max(0,Math.min(a,t.bottom)-Math.max(r,l))}function ao(e){return ai(e,aa)}function ai(e,t,n){var r=e;if(r){for(r=as(r);!t(r,n);)if(!(r=as(r=r.parentNode))||!r.getAttribute)return null;return r}}function aa(e){return"A"===e.nodeName}function as(e){return e}function al(e,t){return ar((e=as(e)).getBoundingClientRect(),t)>0}function ac(e,t){var n;return e&&e[t]&&(n=e[t],delete e[t]),n}function au(e){return"which"in e?3===e.which:"button"in e?2===e.button:void 0}function ad(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}function ap(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}function af(e){if("keyCode"in e)return 13===e.keyCode}function ah(e){if("keyCode"in e)return 32===e.keyCode}function am(e,t){var n=av(e,i7);return!!(0,M.yD)(n)}function ag(e,t){return!(t&&t.isAuto&&(0,M.yD)(av(e,ae))||am(e))}function av(e,t){return ai(e,ay,t)}function ay(e,t){var n=e.getAttribute(t);return(0,M.yD)(n)||""===n}function ab(e){return"["+e+"]"}function ax(e,t,n,r){var o;return function(){var a=arguments,s=function(){o=0,t&&t.apply(r,a)},l=!o;clearTimeout(o),o=setTimeout(s,n),l&&e&&e.apply(r,a)}}function aC(){var e={h:0,v:0},t=(0,W.zk)(),n=(0,W.YE)();return n&&t&&(e={h:parseInt(n.body.scrollLeft||n.documentElement.scrollLeft||t.pageXOffset,10),v:parseInt(n.body.scrollTop||n.documentElement.scrollTop||t.pageYOffset,10)}),e}function ak(){var e={h:0,w:0},t=(0,W.zk)(),n=(0,W.YE)();if(t&&n&&t.screen){var r=n.body||{},o=n.documentElement||{};e.h=t.innerHeight||r.clientHeight||o.clientHeight,e.w=t.innerWidth||r.clientWidth||o.clientWidth}return e}function aw(e){return{top:0,bottom:e.h,left:0,right:e.w}}var aS={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function a_(e){var t=e;if(t){var n=ao(t);if(n&&1===n.length){if(n[0].href)return n[0].href;else if(n[0].src)return n[0].src}}return""}function aE(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");if(!(0,M.yD)(t))return!1;if("pii"===t.toLowerCase())return!0;return!1}catch(e){return!1}}function aP(e,t){return e.coreData&&e.coreData.requestUri&&""!==e.coreData.requestUri?e.coreData.requestUri:aI(e,t)}function aI(e,t){if(!t)return null;var n=t.protocol+"//"+(t.hostname||t.host)+((0,M.yD)(t.port)?":"+t.port:"")+t.pathname;if(e.urlCollectQuery){var r=t.search;if(!r){var o=t.hash||"",a=o.indexOf("?");-1!==a&&(r=o.slice(a))}n+=r}return e.urlCollectHash&&(n+=t.hash||""),n}function aT(e,t){if(t&&t.pageName)return t.pageName;if(e.callback&&"function"==typeof e.callback.pageName)return e.callback.pageName();if(e.coreData&&e.coreData.pageName)return e.coreData.pageName;var n=((0,W.g$)()||{}).pathname||"",r=n.replace(/(^\/+|\/+$)/g,"").split("/");return r&&r[r.length-1]?r[r.length-1]:"Home"}function aD(e){return e.callback&&"function"==typeof e.callback.signedinStatus?e.callback.signedinStatus():e.isLoggedIn}function aA(e,t){var n,r="",o={},a=[],s=e.cookiesToCollect;!1===e.shareAuthStatus?a=s:(0,p.Iu)(s,function(e){"ANON"!==e&&a.push(e)});try{try{M.P$&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(a=a.concat(window.varCustomerCookies))}catch(e){(0,U.ZP)(t,1,512,"Failed to get cookies ")}(0,p.Iu)(a,function(e){!o.hasOwnProperty(e)&&(o[e]="",M.g8&&(n=decodeURIComponent(document.cookie.replace(RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1")),""!==n&&(r+=e+"="+n+";")))})}catch(e){(0,U.ZP)(t,1,512,"Failed to get cookies ")}return r}function aR(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=a_(e);break;case"INPUT":var n=e.type;if(n&&aS[n.toUpperCase()]){var r=(0,W.g$)()||{};t=e.form?e.form.action||r.pathname||"":r.pathname||""}}return t}function aN(e,t){var n=(0,ey.Hm)((0,et.Z)("onDomLoaded"),t);aB(function(){if(M.g8&&"complete"===document.readyState)e();else{var t=(0,W.zk)();t&&(0,ey.mB)(t,"load",function(){e&&e(),e=null,(0,ey.ML)(t,null,null,n)},n)}})}function aB(e){var t=(0,W.YE)()||{};/in/.test(t.readyState)?setTimeout(function(){aB(e)},100):e.call()}var aM="1.0",aF="2.0",aO=200;function aL(e,t,n){var r="";return t&&t[n]?r=t[n]:e&&(r=e[n]),r}var aH=function(){function e(e,t,n,r,o,a,s){this._webAnalyticsPlugin=e,this._config=t,this._contentHandler=n,this._id=r,this._pageTagsCallback=o,this.metaTags=a,this._traceLogger=s,this._pageTags={}}return e.prototype._setBasicProperties=function(e,t){e.ver=aM,e.id=this._id.getLastPageViewId(),(0,M.yD)(e.name)||(e.name=aT(this._config,t)),!(0,M.yD)(e.uri)&&M.P$&&(e.uri=aP(this._config,(0,W.g$)()))},e.prototype._setCommonProperties=function(e,t,n){var r=this;r._setBasicProperties(e,n),r._setPageTags(e,n),r._pageTypeMetaTag=aL(r.metaTags,r._config.coreData,"pageType"),r._marketMetaTag=aL(r.metaTags,r._config.coreData,"market"),r._behaviorMetaTag=aL(r.metaTags,r._config.coreData,"behavior"),(0,M.yD)(n.pageType)&&(e.pageType=n.pageType),(0,M.yD)(r._pageTypeMetaTag)&&!(0,M.yD)(e.pageType)&&(e.pageType=r._pageTypeMetaTag),(0,M.yD)(r._marketMetaTag)&&(e.market=r._marketMetaTag),e.isLoggedIn=aD(r._config),t.cookieEnabled=(0,ee.gi)()},e.prototype._setPageTags=function(e,t){var n=this;n._pageTags={},n.metaTags&&(n._pageTags.metaTags=n._pageTags.metaTags||{},(0,p.z)(n.metaTags,function(e,t){"behavior"!==e&&"market"!==e&&"pageType"!==e&&(n._pageTags.metaTags[e]=t)})),n._config.coreData&&n._config.coreData.pageTags&&(n._pageTags=(0,M.X$)(!0,n._pageTags,n._config.coreData.pageTags)),n._pageTagsCallback&&(n._pageTags=(0,M.X$)(!0,n._pageTags,n._pageTagsCallback())),(0,M.yD)(t.pageTags)&&(n._pageTags=(0,M.X$)(!0,n._pageTags,t.pageTags)),e.properties=e.properties||{},e.properties.pageTags=n._pageTags},e.prototype._getBehavior=function(e){var t;return e&&(0,M.yD)(e.behavior)?t=e.behavior:(0,M.yD)(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if((0,M.yD)(e)){var t=void 0,n=parseInt(e);if((t=isNaN(n)?l[e]:n)in l)return t}return 0},e.prototype._getContentFormatted=function(e){if((0,M.yD)(e))if((0,p.cy)(e))return JSON.stringify(e);else return ab(JSON.stringify(e))},e}(),az=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.qU)(t,e),t.prototype.trackContentUpdate=function(e,t){var n={};n.web={},n.web.isManual=e.isManual;var r={name:"Ms.Web.ContentUpdate",baseType:"ContentUpdateData",ext:n,data:{},baseData:{},latency:3};(0,p.Iu)(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],function(t){r.baseData[t]=e[t]}),(0,p.z)(t,function(e,t){r.data[e]||(r.data[e]=t)}),this._webAnalyticsPlugin.core.track(r)},t.prototype.captureContentUpdate=function(e,t){e=(0,M.yD)(e)?e:{};var n={},r=(0,M.yD)(t)?t:{};this._setCommonProperties(n,r,e),n.behavior=this._getBehavior(e),(0,M.yD)(e.actionType)&&(n.actionType=e.actionType);var o=ak(),a=aC();n.pageHeight=M.g8?document.body.scrollHeight:null,n.vpHeight=o.h,n.vpWidth=o.w,n.vScrollOffset=a.v,n.hScrollOffset=a.h,n.contentVer=aF,n.isManual=!e.isAuto;var s=this._getContentFormatted(e.content)||JSON.stringify(this._contentHandler.getVisibleContent());s&&(n.content=s),(0,M.yD)(e.isDomComplete)?r.isDomComplete=e.isDomComplete:r.isDomComplete=!1,this.trackContentUpdate(n,r)},t}(aH),aV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.qU)(t,e),t.prototype.trackPageAction=function(e,t){var n={};n.web={},n.web.isManual=e.isManual;var r={name:"Ms.Web.PageAction",baseType:"PageActionData",ext:n,data:{},baseData:{},latency:1};(0,p.b0)(e.sync)||(r.sync=e.sync),r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.actionType=e.actionType,r.baseData.behavior=e.behavior,r.baseData.clickCoordinates=e.clickCoordinates,r.baseData.content=e.content,r.baseData.contentVer=e.contentVer,r.baseData.targetUri=e.targetUri,(0,p.z)(t,function(e,t){r.data[e]||(r.data[e]=t)}),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageAction=function(e,t,n,r){t=(0,M.yD)(t)?t:{};var o={},a=(0,M.yD)(n)?n:{};this._setCommonProperties(o,a,t),o.isManual=!t.isAuto,o.behavior=this._getBehavior(t);var l={};if(e=as(e),r)o.behavior=9;else{var c=this._config||{};if((e&&(0,p.b0)(c.syncPageActionNavClick)||c.syncPageActionNavClick)&&(t.actionType===n7.CLICKLEFT||t.actionType===n7.KEYBOARDENTER)&&"a"===e.tagName.toLowerCase()){var u=(e.getAttribute("href")||"").toLowerCase();u&&((0,p.tG)(u,"https:")||(0,p.tG)(u,"http:")||(0,p.tG)(u,".")||(0,p.tG)(u,"/"))&&(o.sync=3)}}if(e&&(o.targetUri=aR(e),l=this._contentHandler.getElementContent(e,s.PAGE_ACTION),(l=(0,M.X$)(l,this._getCustomTags(e)))&&l.bhvr&&!(0,M.yD)(t.behavior))){var d=ac(l,"bhvr");o.behavior=this._getValidBehavior(d)}(0,M.yD)(t.actionType)&&(o.actionType=t.actionType),(0,M.yD)(t.clickCoordinateX)&&(0,M.yD)(t.clickCoordinateY)&&(o.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),(0,M.yD)(t.targetUri)&&(o.targetUri=t.targetUri),o.contentVer=aF;var f=t.content||l;if(!(0,p.cy)(f)){var h=this._config.callback.pageActionContentTags;f=(0,M.X$)(f,"function"==typeof h?h(e):{},t&&t.contentTags?t.contentTags:{})}o.content=this._getContentFormatted(f),a.timeToAction=this._getTimeToClick(),a.refUri=(0,M.yD)(t.refUri)?t.refUri:this._config.coreData.referrerUri;var m=aA(this._config,this._traceLogger);m&&(a.cookies=m),this.trackPageAction(o,a)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!aE(e)){for(var n in e.attributes)if(n&&e.attributes[n]){var r=e.attributes[n].name;r&&0===r.toLowerCase().indexOf("ms.")&&(t[r]=e.attributes[n].value)}}e=e.parentElement||e.parentNode}return t},t.prototype._getTimeToClick=function(){var e=(0,W.FJ)();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return new Date().getTime()-t}return -1},t}(aH),aU=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,null,r,{},{},o)||this;return l._webAnalyticsPlugin=t,l._config=n,l._id=r,l._traceLogger=o,l._timestamp=a,l._maxScroll=s,l}return(0,d.qU)(t,e),t.prototype.trackPageUnload=function(e,t){var n={};n.web={},n.web.isManual=e.isManual;var r={name:"Ms.Web.PageUnload",baseType:"PageUnloadData",ext:n,data:{},baseData:{},latency:3},o=this._config||{};((0,p.b0)(o.syncUnloadAction)||o.syncUnloadAction)&&(r.sync=3),r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,(0,p.z)(t,function(e,t){r.data[e]||(r.data[e]=t)}),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageUnload=function(e,t){e=(0,M.yD)(e)?e:{};var n={},r=(0,M.yD)(t)?t:{},o=M.g8?document.body.scrollHeight:0;if(this._setBasicProperties(n,e),n.isManual=!e.isAuto,r.dwellTime=this._timestamp._recordTimeSpan("dwellTime",!0),r.scrollDepth=e.scrollDepth||this._maxScroll.v.toString()+"/"+o.toString(),r.vpHeight=ak().h,r.vScrollOffset=e.vScrollOffset||this._maxScroll.v,M.P$){var a=(0,W.FJ)(),s=a?a.timing:null;s&&s.loadEventStart&&s.navigationStart&&s.loadEventStart>0&&(r.pageLoadTime=s.loadEventStart-s.navigationStart)}this.trackPageUnload(n,r)},t}(aH),aj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.qU)(t,e),t.prototype.capturePageView=function(e,t){e=(0,M.yD)(e)?e:{};var n={},r=(0,M.yD)(t)?t:{};this._setCommonProperties(n,r,e),n.refUri=(0,M.yD)(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,n.isManual=!e.isAuto;var o=aA(this._config,this._traceLogger);o&&(r.cookies=o),r.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(n,r)},t}(aH),aW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.qU)(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=(0,M.yD)(e)?e:{};var n={},r=(0,M.yD)(t)?t:{};this._setBasicProperties(n,e),this._setPageTags(n,e),n.isManual=!e.isAuto,r.behavior=this._getBehavior(e),r.vpHeight=e.vpHeight,r.vpWidth=e.vpWidth,r.framework=e.framework,r.systemTiming=e.systemTiming,r.customTiming=e.customTiming,this._webAnalyticsPlugin._populatePageViewPerformance(n),this._webAnalyticsPlugin.trackPageViewPerformance(n,r)},t}(aH),aq={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},aG=function(){function e(t,n){var r,o,a,s,l,c,u,d,p,f=this;(0,F.A)(e,this,function(e){function h(e){var t={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},n=(0,W.zk)(),o=(e=e||n.event).srcElement||e.target,a={isAuto:!0,clickCoordinateX:e.pageX,clickCoordinateY:e.pageY},s=au(e);if(s)a.actionType=n7.CLICKRIGHT;else if(ad(e))a.actionType=n7.CLICKLEFT;else if(af(e))a.actionType=n7.KEYBOARDENTER;else if(ah(e))a.actionType=n7.KEYBOARDSPACE;else{if(!ap(e))return;a.actionType=n7.CLICKMIDDLE}for(;o&&o.tagName;){if(o.control&&t[o.control.tagName.toUpperCase()]&&(o=o.control),t[o.tagName.toUpperCase()]){("INPUT"!==o.tagName.toUpperCase()||aq[o.type.toUpperCase()])&&r&&r.capturePageAction(o,a,{},s);break}o=o.parentElement||o.parentNode}}function m(){e._analyticsPlugin=null,e._traceLogger=null,r=null,o=null,a=null,l=!1,c=!1,u=!1,d=!1,p=!1}m(),r=t,o=n,a=(0,ey.Hm)((0,et.Z)("AutoCaptureHandler"),r._evtNamespace),e._analyticsPlugin=r,e._traceLogger=o,e.pageView=function(){r&&r.capturePageView({isAuto:!0})},e.onLoad=function(){r&&!p&&(aN(function(){r&&r.capturePageViewPerformance({isAuto:!0}),r&&r.captureContentUpdate({isAuto:!0,isDomComplete:!0})},a),p=!0)},e.click=function(){if(!s){var e=(0,W.zk)(),t=(0,W.YE)();if(e&&e.addEventListener){var n=-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown";(0,ey.mB)(e,n,h,a),(0,ey.mB)(e,"keyup",h,a)}else t&&t.attachEvent&&((0,ey.mB)(t,"click",h,a),(0,ey.mB)(t,"keyup",h,a));s=!0}},e.scroll=function(e){if(!l){var t=ax(null,function(){r&&r.captureContentUpdate({isAuto:!0,actionType:n7.SCROLL})},e.scroll,f);(0,ey.mB)((0,W.zk)(),"scroll",t,a),l=!0}},e.maxScroll=function(e){if(!c){var t=function(){var t=aC();e.v=e.v>t.v?e.v:t.v};(0,ey.mB)((0,W.zk)(),"scroll",t,a),c=!0}},e.resize=function(e){if(!u){var t=ax(function(){r&&r.captureContentUpdate({isAuto:!0,actionType:n7.RESIZE})},null,e.resize,f);(0,ey.mB)((0,W.zk)(),"resize",t,a),u=!0}},e.onUnload=function(){function e(){r&&r.capturePageUnload({isAuto:!0})}if(!d){var t=((r||{}).core||{}).config.disablePageUnloadEvents;(0,ey.ee)(e,t,a),(0,ey.Fc)(e,t,a),d=!0}},e.teardown=function(e,t){(0,ey.ML)((0,W.zk)(),null,null,a),(0,ey.ML)((0,W.YE)(),null,null,a),(0,ey.Ds)(null,a),(0,ey.sq)(null,a),m()},e._processClick=h})}return e.__ieDyn=1,e}(),aK={isShortNames:!1,id:"data-bi-id",areaName:"data-bi-area",slotNumber:"data-bi-slot",contentName:"data-bi-name",contentSource:"data-bi-source",templateName:"data-bi-view",productId:"data-bi-product",contentType:"data-bi-type",parentId:"data-bi-parentid",parentName:"data-bi-parentname"},aX={isShortNames:!0,id:"data-bi-id",areaName:"data-bi-an",slotNumber:"data-bi-sn",contentName:"data-bi-cn",contentSource:"data-bi-cs",templateName:"data-bi-tn",productId:"data-bi-pid",contentType:"data-bi-ct",parentId:"data-bi-pi",parentName:"data-bi-pn"},aY="parentId",a$="parentName",aQ="pI",aJ="pN",aZ=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?aX:aK}return e.prototype.getMetadata=function(){var e={},t={};return M.g8&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),(0,M.X$)(!0,t,e)},e.prototype.getVisibleContent=function(){var e=aw(ak()),t=null;M.g8&&(t=document.querySelectorAll(ab(this._contentBlobFieldNames.areaName)+","+ab(this._contentBlobFieldNames.slotNumber)+","+ab(this._config.biBlobAttributeTag)));var n=[];if(t)for(var r=0;r<t.length;r++){var o=t[r];if(!am(o)&&al(o,e)){var a=this.getElementContent(o,s.CONTENT_UPDATE);a&&n.push(a)}}return n},e.prototype.getElementContent=function(e,t){if(!e)return{};var n,r,o,a={};if(this._isTracked(e))if(this._isTrackedWithDataM(e)){r=(n=e).getAttribute(this._config.biBlobAttributeTag);try{a=JSON.parse(r)}catch(e){(0,U.ZP)(this._traceLogger,1,506,"Can not parse "+r)}}else this._isTrackedWithDataBi(e)&&(o=e,a=(0,M.X$)(a,this._populateElementContentwithDataBi(o,e)));else if((n=av(e,this._config.biBlobAttributeTag))&&(r=n.getAttribute(this._config.biBlobAttributeTag)),r)try{a=JSON.parse(r)}catch(e){(0,U.ZP)(this._traceLogger,1,506,"Can not parse "+r)}else o=ai(e,this._isTrackedWithDataBi),a=(0,M.X$)(a,this._populateElementContentwithDataBi(o,e));return an(a),this._config.autoCapture.lineage&&t===s.PAGE_ACTION&&(a=(0,M.X$)(a,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(a=(0,M.X$)(a,this._getParentDetails(n||o,a))),a},e.prototype.getLineageDetails=function(e){for(var t,n,r,o=[],a=[],s=">",l=this._config.biBlobAttributeTag,c="data-module-id";e;){var u=e.getAttribute(l)||e[l],d=e.getAttribute(c)||e[c];if(u){try{var p=JSON.parse(u)}catch(e){(0,U.ZP)(this._traceLogger,1,507,"Can not parse "+u)}p&&(n=p.cN||p.cT,r=p.id||void 0,(n||r)&&(o.push(n),d&&(t=n),a.push(r)))}else n=e.getAttribute(this._contentBlobFieldNames.contentName)||e.getAttribute(this._contentBlobFieldNames.contentType),r=e.getAttribute(this._contentBlobFieldNames.id)||void 0,(n||r)&&(o.push(n),d&&(t=n),a.push(r));e=e.parentElement}return{lineage:o.join(s),lineageById:a.join(s),lineageContainerName:t}},e.prototype._populateElementContentwithDataBi=function(e,t){var n={};if(!e)if(!this._config.useDefaultContentName)return n;else e=t;var r=av(e,this._contentBlobFieldNames.areaName),o=(0,M.X$)({},this._getAreaContent(r)),a=this._config.callback.contentName?this._config.callback.contentName(e,this._config.useDefaultContentName):"",s=this._getDefaultContentName(t,this._config.useDefaultContentName);(n={id:e.getAttribute(this._contentBlobFieldNames.id)||e.id||"",aN:o.areaName,sN:e.getAttribute(this._contentBlobFieldNames.slotNumber),cN:a||e.getAttribute(this._contentBlobFieldNames.contentName)||s||e.getAttribute("alt")||"",cS:e.getAttribute(this._contentBlobFieldNames.contentSource)||o.contentSource,tN:o.templateName,pid:e.getAttribute(this._contentBlobFieldNames.productId),cT:e.getAttribute(this._contentBlobFieldNames.contentType)||o.type,pI:e.getAttribute(this._contentBlobFieldNames.parentId),pN:e.getAttribute(this._contentBlobFieldNames.parentName)}).id&&n.aN&&n.sN&&n.cN||(0,U.ZP)(this._traceLogger,2,515,"Invalid content blob.  Missing required attributes (id, aN/area, sN/slot), cN/contentName.  Content information will still be collected!"),this._contentBlobFieldNames.isShortNames||(n={contentId:n.id,areaName:n.aN,slotNumber:n.sN,contentName:n.cN,contentSource:n.cS,templateName:n.tN,productId:n.pid,contentType:n.cT,parentId:n.pI,parentName:n.pN});for(var l,c=0;c<e.attributes.length;c++)if((l=e.attributes[c]).name!==this._contentBlobFieldNames.id&&l.name!==this._contentBlobFieldNames.areaName&&l.name!==this._contentBlobFieldNames.slotNumber&&l.name!==this._contentBlobFieldNames.contentName&&l.name!==this._contentBlobFieldNames.contentSource&&l.name!==this._contentBlobFieldNames.templateName&&l.name!==this._contentBlobFieldNames.productId&&l.name!==this._contentBlobFieldNames.contentType&&l.name!==this._contentBlobFieldNames.parentId&&l.name!==this._contentBlobFieldNames.parentName&&-1!==l.name.indexOf("data-bi-")){var u=l.name.replace("data-bi-","");n[u]=l.value}return n},e.prototype._getMetaDataFromDOM=function(e,t){var n,r={};if(M.g8){n=document.querySelectorAll("meta");for(var o=0;o<n.length;o++){var a=n[o];a.name&&0===a.name.toLowerCase().indexOf(e)&&(r[t?a.name.replace(e,""):a.name]=a.content)}}return r},e.prototype._getAreaContent=function(e){if(e=as(e))return{areaName:e.getAttribute(this._contentBlobFieldNames.areaName),templateName:e.getAttribute(this._contentBlobFieldNames.templateName),contentSource:e.getAttribute(this._contentBlobFieldNames.contentSource),product:e.getAttribute(this._contentBlobFieldNames.productId),type:e.getAttribute(this._contentBlobFieldNames.contentType)}},e.prototype._getDefaultContentName=function(e,t){if(!1===t||aE(e)||!e.tagName)return"";var n,r=(0,W.YE)()||{};switch(e.tagName){case"A":n=r.all?e.innerText||e.innerHTML:e.text||e.innerHTML;break;case"IMG":case"AREA":n=e.alt;break;default:n=e.value||e.name||e.alt||e.innerText||e.id}return n.substring(0,aO)},e.prototype._getParentDetails=function(e,t){var n=this._contentBlobFieldNames.isShortNames?aQ:aY,r=this._contentBlobFieldNames.isShortNames?aJ:a$,o=t[n],a=t[r],s={};return o||a||!e?s:this._populateParentInfo(e,n,r)},e.prototype._isTrackedWithDataM=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if("data-m"===t[n].name)return!0;return!1},e.prototype._isTrackedWithDataBi=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._isTracked=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if("data-m"===t[n].name||t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._populateParentInfo=function(e,t,n){var r,o,a={},s=this._config.biBlobAttributeTag,l=ai(e.parentElement,this._isTracked);if(l){var c=l.getAttribute(s)||e[s];if(c){try{var u=JSON.parse(c)}catch(e){(0,U.ZP)(this._traceLogger,1,507,"Can not parse "+c)}u&&(r=u.id,o=u.cN)}else r=l.getAttribute(this._contentBlobFieldNames.id),o=l.getAttribute(this._contentBlobFieldNames.contentName);r&&(a[t]=r),o&&(a[n]=o)}return a},e}();function a0(e){var t={useDefaultContentName:!0,useShortNameForContentBlob:!0,debounceMs:{scroll:600,resize:3e3},biBlobAttributeTag:"data-m",isLoggedIn:!1,shareAuthStatus:!1,cookiesToCollect:["MSFPC","ANON"],autoCapture:{pageView:!0,onLoad:!0,onUnload:!0,click:!0,scroll:!1,resize:!1,lineage:!1,jsError:!0,msTags:!0},callback:{pageName:null,pageActionPageTags:null,pageViewPageTags:null,contentUpdatePageTags:null,pageActionContentTags:null,signedinStatus:null},coreData:{referrerUri:M.g8?document.referrer:"",requestUri:"",pageName:"",pageType:"",product:"",market:"",pageTags:{}},autoPopulateParentIdAndParentName:!1,syncMuid:!1,muidDomain:"microsoft.com"},n=[];return(0,p.z)(t,function(e,t){(0,p.Gv)(t)&&n.push(e)}),at(e,n),(0,M.X$)(!0,t,e)}var a1=function(e){function t(){var n,r,o,a,s,l,c,u,d,f,h,m,g=e.call(this)||this;g.identifier="WebAnalyticsPlugin",g.version="3.2.18";var v=!1;return(0,F.A)(t,g,function(e,t){function y(){n=null,r=null,o=null,a=null,s=null,l=null,c=null,u={h:0,v:0},v=!1,d=null,f=null,h=null,m=null}function b(e){h&&(e&&(m.pageView&&h.pageView(),m.onLoad&&h.onLoad()),m.click&&h.click(),m.scroll&&h.scroll(c.debounceMs),m.resize&&h.resize(c.debounceMs),(m.onUnload||c.manualPageUnload)&&h.maxScroll(u),m.onUnload&&h.onUnload())}function x(e){var t={};return void 0!==e.isManual&&(t.web={},t.web.isManual=void 0===e.isManual||e.isManual,delete e.isManual),t}function C(){d._recordTimeSpan("dwellTime",!1),u.v=0,v=!1}y(),e.updateCoreDataConfig=function(e){c.coreData=(0,M.X$)(!0,c.coreData,e)},e.refreshMetadata=function(){var e=f.getMetadata();n.metaTags=e,o.metaTags=e,r.metaTags=e,s.metaTags=e},e.initialize=function(p,v,y){var x=v;p.extensionConfig=p.extensionConfig||[],p.extensionConfig[e.identifier]=p.extensionConfig[e.identifier]||{},e._config=c=a0(p.extensionConfig[e.identifier]),m=c.autoCapture;var C=x.getWParam;if(x.getWParam=function(){var e=0;return c.mscomCookies&&(e|=1),e|C()},p.extensionConfig[e.identifier].disableExceptionTracking=!m.jsError,t.initialize(p,v,y),f=f||new aZ(c,e.diagLog()),h=h||new aG(e,e.diagLog()),c.manageCv){for(var k=0;k<y.length;k++)if("CorrelationVectorPlugin"===y[k].identifier){c.manageCv=!0,l=y[k];break}l||((0,U.ZP)(e.diagLog(),2,508,'Automatic Cv management is set to "true" in config.  However, cv plugin is not available. Disabling automatic Cv management'),c.manageCv=!1)}e.id=new rn(v),d=new rr;var w=f.getMetadata();n=new aj(g,c,f,e.id,c.callback.pageViewPageTags,w,e.diagLog()),r=new aV(g,c,f,e.id,c.callback.pageActionPageTags,w,e.diagLog()),o=new az(g,c,f,e.id,c.callback.contentUpdatePageTags,w,e.diagLog()),a=new aU(g,c,e.id,e.diagLog(),d,u),s=new aW(g,c,f,e.id,c.callback.pageViewPageTags,w,e.diagLog()),c.syncMuid&&aN(function(){var t=e.id.getMuidHost(c.muidDomain);e.id.syncMuid(t)},e._evtNamespace),b(!0)},e.processTelemetry=function(n,r){(0,M.u9)(n,e.identifier);var o=n;"PageviewData"===o.baseType?(o.name="Ms.Web.PageView",o.latency=3):"ExceptionData"===o.baseType?(o.name="Ms.Web.ClientError",o.latency=1,delete o.baseData.aiDataContract):"PageviewPerformanceData"===o.baseType&&(o.name="Ms.Web.PageViewPerformance",o.latency=1,delete o.baseData.isValid,delete o.baseData.durationMs);var a=null;"PageviewData"!==o.baseType?c.manageCv&&(a=l.getCv())&&a.increment():c.manageCv&&((a=l.getCv())?a.seed():a=l.getCv()),t.processTelemetry(o,r)},e.trackEvent=function(t,n){t.latency=t.latency||1,t.baseData=t.baseData||{},t.data=t.data||{},(0,M.yD)(n)&&(0,p.z)(n,function(e,n){t.data[e]=n}),e.core.track(t)},e.trackPageView=function(n,r){C(),e.id.initializeIds(),n.id=e.id.getLastPageViewId(),t.sendPageViewInternal(n,r,x(n))},e.capturePageView=function(e,t){n.capturePageView(e,t)},e.trackPageViewPerformance=function(e,n){t.sendPageViewPerformanceInternal(e,n,x(e))},e.capturePageViewPerformance=function(e,t){s.capturePageViewPerformance(e,t)},e.trackException=function(e,n){e.id=e.id||(0,M.gj)(),t.sendExceptionInternal(e,n,x(e))},e.trackPageAction=function(e,t){r.trackPageAction(e,t)},e.capturePageAction=function(e,t,n,o){ag(e,t)&&r.capturePageAction(e,t,n,o)},e.trackContentUpdate=function(e,t){o.trackContentUpdate(e,t)},e.captureContentUpdate=function(e,t){o.captureContentUpdate(e,t)},e.trackPageUnload=function(e,t){v||(v=!0,a.trackPageUnload(e,t))},e.capturePageUnload=function(e,t){v||(v=!0,a.capturePageUnload(e,t))},e._populatePageViewPerformance=function(t){var n=e._pageViewPerformanceManager;n&&n.populatePageViewPerformanceEvent(t)},e.setContentHandler=function(e){f=e},e.setAutoCaptureHandler=function(e){h!==e&&(h&&h.teardown(),h=e,b(!1))},e._doTeardown=function(e,n){h&&h.teardown(e,n),t._doTeardown(e,n),y()}}),g}return(0,d.qU)(t,e),t.__ieDyn=1,t}(i9),a2=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],a5=["queue","extensions","version","sv"],a4=function(e){function t(){var n,r,o,a,s=e.call(this)||this;function l(){o=new tM,a=new n9,r=new a1}return(0,F.A)(t,s,function(e,t){l(),e.initialize=function(n,s){(0,j.r2)(e,function(){return"ApplicationInsights:initialize"},function(){var l=[a,r];if(s&&(l=l.concat(s)),n||(0,p.$8)("You must provide a config object!"),n.channels&&n.channels.length>0){for(var c=!1,u=0;u<n.channels[0].length;u++)if(n.channels[0][u].identifier===o.identifier){c=!0;break}c||n.channels[0].push(o)}else n.channels=[[o]];var d=n.extensionConfig=n.extensionConfig||[];d[o.identifier]=d[o.identifier]||n&&n.channelConfiguration||{},d[a.identifier]=d[a.identifier]||n&&n.propertyConfiguration||{},d[r.identifier]=d[r.identifier]||n&&n.webAnalyticsConfiguration||{};try{t.initialize(n,l)}catch(t){(0,U.ZP)(e.logger,1,514,"Failed to initialize SDK."+(0,W.mm)(t))}},function(){return{config:n,extensions:s}})},e._getDbgPlgTargets=function(){return[s.config]},e.getPropertyManager=function(){return a},e.getPostChannel=function(){return o},e.getWebAnalyticsExtension=function(){return r},(0,p.o$)(e,function(){return r},["trackEvent","trackPageView","trackPageAction","trackContentUpdate","trackPageUnload","trackException","trackPageViewPerformance","capturePageView","capturePageViewPerformance","capturePageAction","captureContentUpdate","capturePageUnload","_onerror"]),e.emptySnippetQueue=function(t){function r(){if(t){var r="";(0,p.hX)(n)||(r+=n),(0,p.z)(e,function(n,r){if((0,p.Kg)(n)&&!(0,p.Tn)(r)&&n&&"_"!==n[0]&&-1===(0,p.rD)(a2,n))try{t[n]=r}catch(t){(0,U.ZP)(e.logger,2,514,"Failed to set ["+n+"] during initialization."+(0,W.mm)(t))}})}}try{if(r(),(0,p.cy)(t.queue)){for(var o=t.queue.length,a=0;a<o;a++)(0,t.queue[a])();t.queue=void 0,delete t.queue}}catch(e){var s={};e&&(0,p.Tn)(e.toString)&&(s.exception=e.toString())}},e.updateSnippetDefinitions=function(e){var t=s;t.snippet=e,n=""+(e.sv||e.version||""),t.config?t.config=(0,M.X$)(!0,e.config,t.config||{}):t.config=e.config,(0,p.qz)(e,t,function(e){return e&&-1===(0,p.rD)(a2,e)&&-1===(0,p.rD)(a5,e)})},e.unload=function(e,n,r){void 0===e&&(e=!0),t.unload(e,function(e){l(),n&&n(e)},r)}}),s}return(0,d.qU)(t,e),t.__ieDyn=1,t}(ev),a3="undefined";function a6(e,t){var n=typeof console!==a3?console:null;if(n){var r="warn";n[r]||(r="log"),n[r]("Failed to initialize AppInsights JS SDK for instance "+(e||"<unknown>")+" - "+t)}}!function(){try{var e="oneDSWeb",t=(0,q.mS)();if(t)if("u">typeof JSON){if(e=t.onedsSDK||e,void 0!==t[e]){var n=t[e],r=new a4;r.updateSnippetDefinitions(n),r.initialize(n.config,n.extensions),t[e]=r,r.emptySnippetQueue(n)}}else a6(e,"Missing JSON - you must supply a JSON polyfill!");else a6(e,"Missing global/window")}catch(t){a6(e,"Unexpected Error: "+(0,W.mm)(t))}}()},47929(e,t,n){"use strict";n.d(t,{S:()=>o,_0:()=>s,hj:()=>a,m5:()=>r});var r="",o="https://browser.events.data.microsoft.com/OneCollector/1.0/",a="version",s="properties"},77414(e,t,n){"use strict";n.d(t,{Aq:()=>j,EO:()=>S,F2:()=>q,Go:()=>I,H$:()=>G,Hh:()=>E,P$:()=>k,TC:()=>P,UM:()=>N,WB:()=>F,X$:()=>M,g8:()=>C,gj:()=>B,jS:()=>W,u9:()=>V,xE:()=>m,yD:()=>w});var r,o=n(57923),a=n(94552),s=n(45899),l=n(19779),c=n(27245),u=n(27478),d=n(33156),p=n(29381),f=n(47929),h="3.2.18",m="1DS-Web-JS-"+h,g="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",v="withCredentials",y="timeout",b=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),x=null,C=!!(0,o.YE)(),k=!!(0,o.zk)();function w(e){return!(e===f.m5||(0,a.hX)(e))}function S(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return f.m5}function _(){return null===x&&(x=!(0,a.b0)(Uint8Array)&&!H()&&!(0,o.lV)()),x}function E(e){return!!(e&&(0,a.Et)(e))&&!!(e>=1)&&!!(e<=4)}function P(e,t,n){if(!t&&!w(t)||"string"!=typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||(0,a.cy)(t))t={value:t};else if("object"!==r||c.J$.call(t,"value")){if((0,a.hX)(t.value)||t.value===f.m5||!(0,a.Kg)(t.value)&&!(0,a.Et)(t.value)&&!(0,a.Lm)(t.value)&&!(0,a.cy)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0,a.cy)(t.value)&&!z(t.value))return null;if(!(0,a.hX)(t.kind)){if((0,a.cy)(t.value)||!O(t.kind))return null;t.value=t.value.toString()}return t}function I(e,t,n){var r=-1;if(!(0,a.b0)(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),L(n))-1===r&&(r=0),r|=n;else{var o=b[U(e)]||-1;-1!==r&&-1!==o?r|=o:6===o&&(r=o)}return r}function T(){(0,s.um)(null).setEnabled(!1)}function D(e,t,n){(0,s.gi)(null)&&(0,s.um)(null).set(e,t,86400*n,null,"/")}function A(e){(0,s.gi)(null)&&(0,s.um)(null).del(e)}function R(e){return(0,s.gi)(null)?N((0,s.um)(null),e):f.m5}function N(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||f.m5}function B(e){void 0===e&&(e="D");var t=(0,l.aq)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,f.m5)),t}function M(e,t,n,r,o){var s={},l=!1,u=0,d=arguments.length,p=Object[c.vR],f=arguments;for("[object Boolean]"===p.toString.call(f[0])&&(l=f[0],u++);u<d;u++){var e=f[u];(0,a.z)(e,function(e,t){l&&t&&(0,a.Gv)(t)?(0,a.cy)(t)?(s[e]=s[e]||[],(0,a.Iu)(t,function(t,n){t&&(0,a.Gv)(t)?s[e][n]=M(!0,s[e][n],t):s[e][n]=t})):s[e]=M(!0,s[e],t):s[e]=t})}return s}var F=l.UU;function O(e){return 0===e||!!(e>0)&&!!(e<=13)||32===e}function L(e){return!!(e>=0)&&!!(e<=9)}function H(){var e=(0,o.w3)();if(!(0,a.b0)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&0>t.indexOf("chrome"))return!0}return!1}function z(e){return e.length>0}function V(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=F()}function U(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===c._1&&(t=4,(0,a.cy)(e)?(t=4096,e.length>0&&(t|=U(e[0]))):c.J$.call(e,"value")&&(t=8192|U(e.value)))}return t}var j={Version:h,FullVersionString:m,strUndefined:c.bA,strObject:c._1,Undefined:c.bA,arrForEach:a.Iu,arrIndexOf:a.rD,arrMap:a.W$,arrReduce:a.KT,objKeys:a.cG,toISOString:a._u,isReactNative:o.lV,isString:a.Kg,isNumber:a.Et,isBoolean:a.Lm,isFunction:a.Tn,isArray:a.cy,isObject:a.Gv,strTrim:a.EH,isDocumentObjectAvailable:C,isWindowObjectAvailable:k,isValueAssigned:w,getTenantId:S,isBeaconsSupported:o.Uf,isUint8ArrayAvailable:_,isLatency:E,sanitizeProperty:P,getISOString:a._u,useXDomainRequest:o.PV,getCommonSchemaMetaData:I,cookieAvailable:s.gi,disallowsSameSiteNone:s.It,setCookie:D,deleteCookie:A,getCookie:R,createGuid:B,extend:M,getTime:F,isValueKind:O,isArrayValid:z,objDefineAccessors:a.r,addPageUnloadEventListener:u.ee,setProcessTelemetryTimings:V,addEventHandler:u.So,getFieldValueType:U,strEndsWith:a.Cv,objForEachKey:a.z},W={_canUseCookies:void 0,isTypeof:a.Ed,isUndefined:a.b0,isNullOrUndefined:a.hX,hasOwnProperty:a.mQ,isFunction:a.Tn,isObject:a.Gv,isDate:a.$P,isArray:a.cy,isError:a.bJ,isString:a.Kg,isNumber:a.Et,isBoolean:a.Lm,toISOString:a._u,arrForEach:a.Iu,arrIndexOf:a.rD,arrMap:a.W$,arrReduce:a.KT,strTrim:a.EH,objCreate:p.AQ,objKeys:a.cG,objDefineAccessors:a.r,addEventHandler:u.So,dateNow:a.x3,isIE:o.lT,disableCookies:T,newGuid:l.aq,perfNow:l.UU,newId:d.Si,randomValue:d.Z1,random32:d.VN,mwcRandomSeed:d.yc,mwcRandom32:d.k5,generateW3CId:l.cL};function q(){return!!(0,o.EH)("chrome")}function G(e,t,n,r,o,a){function s(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===o&&(o=!1);var l=new XMLHttpRequest;return r&&s(l,g,r),n&&s(l,v,n),l.open(e,t,!o),n&&s(l,v,n),!o&&a&&s(l,y,a),l}},96629(e,t,n){"use strict";n.r(t),n.d(t,{CorrelationVectorPlugin:()=>c,Cv:()=>a});var r=n(88008),o=function(){return function(){}}(),a=function(){function e(e,t){this._base="",this._currentElement=0,this._base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this._cv1Constants=new o,this._cv2Constants=new o,this._cvVersionAtLatestValidityCheck=2,this._traceLogger=(0,r.y0)(t),this._cv1Constants.maxCorrelationVectorLength=63,this._cv1Constants.baseLength=16,this._cv1Constants.validationPattern=RegExp("^["+this._base64CharSet+"]{"+this._cv1Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._cv2Constants.maxCorrelationVectorLength=127,this._cv2Constants.baseLength=22,this._cv2Constants.validationPattern=RegExp("^["+this._base64CharSet+"]{"+this._cv2Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._currentCvConstants=this._cv2Constants,this.init(e)}return e.prototype.isInit=function(){return this.isValid(this.storedCv())},e.prototype.storedCv=function(){return this._base.concat(".",this._currentElement.toString())},e.prototype.getValue=function(){var e=this.storedCv();if(this.isValid(e))return e},e.prototype.getRelatedCv=function(){return this._relatedCv},e.prototype.incrementExternal=function(e){if(this.isValid(e)){var t=e.split("."),n=t.length;t[n-1]=(parseInt(t[n-1],10)+1).toString();for(var r="",o=0;o<n;o++)r+=t[o],o<n-1&&(r+=".");var a=t[0].length===this._cv2Constants.baseLength?this._cv2Constants.maxCorrelationVectorLength:this._cv1Constants.maxCorrelationVectorLength;if(r.length<=a)return r}},e.prototype.canExtend=function(){var e=this.storedCv();return!!this.isValid(e)&&this._isLeqThanMaxCorrelationVectorLength(e.length+2)},e.prototype.canIncrement=function(){return!!this.isValid(this.storedCv())&&this._isLeqThanMaxCorrelationVectorLength(this._base.length+1+(this._currentElement+1+"").length)},e.prototype.setValue=function(e){if(!this.isValid(e))return(0,r.ZP)(this._traceLogger,2,516,"Cannot set invalid correlation vector value"),!1;var t=e.lastIndexOf(".");return t>1?(this._base=e.substr(0,t),this._currentElement=parseInt(e.substr(t+1),10)):(this._base=e,this._currentElement=0),!0},e.prototype.setValueLegacy=function(e){return this.setValue(e),this.getValue()},e.prototype.seed=function(){for(var e="",t=0;t<this._currentCvConstants.baseLength;t++)e+=this._base64CharSet.charAt(Math.floor(Math.random()*this._base64CharSet.length));return e},e.prototype.extend=function(){if(this.canExtend())return this._base=this._base.concat(".",this._currentElement.toString()),this._currentElement=0,this.storedCv()},e.prototype.increment=function(){if(this.canIncrement())return this._currentElement=this._currentElement+1,this.storedCv()},e.prototype.validateWithCv1=function(e){if(this._cv1Constants.validationPattern.test(e)&&e.length<=this._cv1Constants.maxCorrelationVectorLength)return!0},e.prototype.validateWithCv2=function(e){if(this._cv2Constants.validationPattern.test(e)&&e.length<=this._cv2Constants.maxCorrelationVectorLength)return!0},e.prototype.useCv1=function(){this._currentCvConstants=this._cv1Constants},e.prototype.useCv2=function(){this._currentCvConstants=this._cv2Constants},e.prototype.isValid=function(e){if(e){var t=e.split(".")[0];if(t){if(16===t.length)return this._cvVersionAtLatestValidityCheck=1,this.validateWithCv1(e);else if(22===t.length)return this._cvVersionAtLatestValidityCheck=2,this.validateWithCv2(e)}}},e.prototype.init=function(e){return e?this.setValue(e):(this._base=this.seed(),this._currentElement=0),this.getValue()},e.prototype.initLegacy=function(e){return this.init(e)},e.prototype._isLeqThanMaxCorrelationVectorLength=function(e){return 1===this._cvVersionAtLatestValidityCheck?e<=this._cv1Constants.maxCorrelationVectorLength:e<=this._cv2Constants.maxCorrelationVectorLength},e}(),s=n(80212),l=n(77414);let c=function(e){function t(t){var n=e.call(this)||this;return n.identifier="CorrelationVectorPlugin",n.priority=159,n.version="3.2.18",n._cvInitialValue=t,n._cv=n._cvInitialValue?new a(n._cvInitialValue):new a,n}return(0,s.qU)(t,e),t.prototype.initialize=function(t,n,r){e.prototype.initialize.call(this,t,n,r)},t.prototype.processTelemetry=function(e,t){(0,l.u9)(e,this.identifier),e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},!e.ext.mscv.cV&&this._cv&&this._cv.isInit()&&(e.ext.mscv.cV=this._cv.getValue()),this.processNext(e,t)},t.prototype.getCv=function(){return this._cv||(0,r.ZP)(this.diagLog(),2,513,"Correlation Vector has not been initialized."),this._cv},t}(n(78964).s)},78964(e,t,n){"use strict";n.d(t,{s:()=>d});var r=n(18108),o=n(8013),a=n(94552),s=n(62805),l=n(61100),c=n(50675),u="getPlugin",d=function(){function e(){var t,n,d,p,f,h=this;function m(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0,l.i8)(null,{},h[s.eT]);t=d&&d[u]?r[o.$o](null,d[u]):r[o.$o](null,d)}return t}function g(e,t,r){e&&(0,a.KY)(e,s.Bw,[],null,a.hX),!r&&t&&(r=t[o.ps]()[o.uR]());var c=d;d&&d[u]&&(c=d[u]()),h[s.eT]=t,n=(0,l.i8)(r,e,t,c)}function v(){t=!1,h[s.eT]=null,n=null,d=null,f=[],p=(0,c.P)()}v(),(0,r.A)(e,h,function(e){e[o.mE]=function(e,n,r,o){g(e,n,o),t=!0},e[o.Ik]=function(t,n){var r,c,h=e[s.eT];if(h&&(!t||h===t[s.eT]())){var m=!1,g=t||(0,l.tS)(null,h,d&&d[u]?d[u]():d),y=n||(r={reason:0},r[o.tI]=!1,r);return e[o.tn]&&!0===e[o.tn](g,y,b)?c=!0:b(),c}function b(){if(!m){m=!0,p.run(g,n);var e=f;f=[],(0,a.Iu)(e,function(e){e.rm()}),!0===c&&g[o.$5](y),v()}}},e[o.HC]=function(t,n){var r,a=e[s.eT];if(a&&(!t||a===t[s.eT]())){var c=!1,p=t||(0,l.nU)(null,a,d&&d[u]?d[u]():d),f=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(p,f,h)?r=!0:h(),r}function h(){c||(c=!0,g(p.getCfg(),p.core(),p[o.uR]()))}},e._addHook=function(e){e&&((0,a.cy)(e)?f=f.concat(e):f[o.y5](e))},(0,a.RF)(e,"_addUnloadCb",function(){return p},"add")}),h[o.e4]=function(e){return m(e)[o.e4]()},h[o.tZ]=function(){return t},h.setInitialized=function(e){t=e},h[o.YH]=function(e){d=e},h[o.$5]=function(e,t){t?t[o.$5](e):d&&(0,a.Tn)(d[s.qT])&&d[s.qT](e,null)},h._getTelCtx=m}return e.__ieDyn=1,e}()},45899(e,t,n){"use strict";n.d(t,{It:()=>F,gi:()=>D,um:()=>I,xN:()=>T});var r=n(8013),o=n(88008),a=n(57923),s=n(94552),l=n(62805),c="toGMTString",u="toUTCString",d="cookie",p="expires",f="enabled",h="isCookieUseDisabled",m="disableCookiesUsage",g="_ckMgr",v=null,y=null,b=null,x=(0,a.YE)(),C={},k={};function w(e,t){var n=T[g]||k[g];return n||(n=T[g]=T(e,t),k[g]=n),n}function S(e){return!e||e.isEnabled()}function _(e){var t=e[r.lK]=e[r.lK]||{};if((0,s.KY)(t,"domain",e.cookieDomain,s.Gh,s.hX),(0,s.KY)(t,"path",e.cookiePath||"/",null,s.hX),(0,s.hX)(t[f])){var n=void 0;(0,s.b0)(e[h])||(n=!e[h]),(0,s.b0)(e[m])||(n=!e[m]),t[f]=n}return t}function E(e,t){return!!(t&&e&&(0,s.cy)(e.ignoreCookies))&&-1!==e.ignoreCookies[r.Sj](t)}function P(e,t){return!!(t&&e&&(0,s.cy)(e.blockedCookies))&&-1!==e.blockedCookies[r.Sj](t)||E(e,t)}function I(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var o=t[r.lK];n=o[g]?o[g]:T(t)}return n||(n=w(t,(e||{})[r.Uw])),n}function T(e,t){var n,o=_(e||k),d=o.path||"/",h=o.domain,m=!1!==o[f],v=((n={isEnabled:function(){var e=m&&D(t),n=k[g];return e&&n&&v!==n&&(e=S(n)),e}})[r.kt]=function(e){m=!1!==e},n.set=function(e,t,n,f,m){var g=!1;if(S(v)&&!P(o,e)){var b={},x=(0,s.EH)(t||l.m5),C=x[r.Sj](";");if(-1!==C&&(x=(0,s.EH)(t[r.Re](0,C)),b=A(t[r.Re](C+1))),(0,s.KY)(b,"domain",f||h,s.zz,s.b0),!(0,s.hX)(n)){var k=(0,a.lT)();if((0,s.b0)(b[p])){var w=(0,s.x3)()+1e3*n;if(w>0){var _=new Date;_.setTime(w),(0,s.KY)(b,p,R(_,k?c:u)||R(_,k?c:u)||l.m5,s.zz)}}k||(0,s.KY)(b,"max-age",l.m5+n,null,s.b0)}var E=(0,a.g$)();E&&"https:"===E.protocol&&((0,s.KY)(b,"secure",null,null,s.b0),null===y&&(y=!F(((0,a.w3)()||{})[r.tX])),y&&(0,s.KY)(b,"SameSite","None",null,s.b0)),(0,s.KY)(b,"path",m||d,null,s.b0),(o.setCookie||M)(e,N(x,b)),g=!0}return g},n.get=function(e){var t=l.m5;return S(v)&&!E(o,e)&&(t=(o.getCookie||B)(e)),t},n.del=function(e,t){var n=!1;return S(v)&&(n=v.purge(e,t)),n},n.purge=function(e,n){var r,s=!1;if(D(t)){var c=((r={}).path=n||"/",r[p]="Thu, 01 Jan 1970 00:00:01 GMT",r);(0,a.lT)()||(c["max-age"]="0"),(o.delCookie||M)(e,N(l.m5,c)),s=!0}return s},n);return v[g]=v,v}function D(e){if(null===v){v=!1;try{var t=x||{};v=void 0!==t[d]}catch(t){(0,o.ZP)(e,2,68,"Cannot access document.cookie - "+(0,s.lL)(t),{exception:(0,a.mm)(t)})}}return v}function A(e){var t={};if(e&&e[r.oI]){var n=(0,s.EH)(e)[r.sY](";");(0,s.Iu)(n,function(e){if(e=(0,s.EH)(e||l.m5)){var n=e[r.Sj]("=");-1===n?t[e]=null:t[(0,s.EH)(e[r.Re](0,n))]=(0,s.EH)(e[r.Re](n+1))}})}return t}function R(e,t){return(0,s.Tn)(e[t])?e[t]():null}function N(e,t){var n=e||l.m5;return(0,s.z)(t,function(e,t){n+="; "+e+((0,s.hX)(t)?l.m5:"="+t)}),n}function B(e){var t=l.m5;if(x){var n=x[d]||l.m5;b!==n&&(C=A(n),b=n),t=(0,s.EH)(C[e]||l.m5)}return t}function M(e,t){x&&(x[d]=e+"="+t)}function F(e){return!!(0,s.Kg)(e)&&!!((0,s.Ju)(e,"CPU iPhone OS 12")||(0,s.Ju)(e,"iPad; CPU OS 12")||(0,s.Ju)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,s.Ju)(e,"Version/")&&(0,s.Ju)(e,"Safari")||(0,s.Ju)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,s.Cv)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||(0,s.Ju)(e,"Chrome/5")||(0,s.Ju)(e,"Chrome/6")||(0,s.Ju)(e,"UnrealEngine")&&!(0,s.Ju)(e,"Chrome")||(0,s.Ju)(e,"UCBrowser/12")||(0,s.Ju)(e,"UCBrowser/11"))}},19779(e,t,n){"use strict";n.d(t,{UU:()=>p,aq:()=>d,cL:()=>f});var r,o=n(8013),a=n(57923),s=n(94552),l=n(62805),c=n(33156),u=null;function d(){var e=f();return e[o.Re](0,8)+"-"+e[o.Re](8,12)+"-"+e[o.Re](12,16)+"-"+e[o.Re](16,20)+"-"+e[o.Re](20)}function p(){var e=(0,a.FJ)();return e&&e.now?e.now():(0,s.x3)()}function f(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=l.m5,r=0;r<4;r++)n+=t[15&(e=(0,c.VN)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var a=t[8+(3&(0,c.VN)())|0];return n[o.$4](0,8)+n[o.$4](9,4)+"4"+n[o.$4](13,3)+a+n[o.$4](16,3)+n[o.$4](19,12)}var h=null},93709(e,t,n){"use strict";n.d(t,{T:()=>v,Z:()=>g});var r=n(27245),o=n(8013),a=n(94552),s=n(62805),l=n(33156),c=r.KU,u="2.8.18",d="."+(0,l.Si)(6),p=0;function f(e,t,n){if(c)try{return c(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return!1}function h(e){return 1===e[o.re]||9===e[o.re]||!+e[o.re]}function m(e,t){var n=t[e.id];if(!n){n={};try{h(t)&&!f(t,e.id,n)&&(t[e.id]=n)}catch(e){}}return n}function g(e,t){return void 0===t&&(t=!1),(0,a.cH)(e+p+++(t?"."+u:s.m5)+d)}function v(e){var t={id:g("_aiData-"+(e||s.m5)+"."+u),accept:function(e){return h(e)},get:function(e,n,r,o){var s=e[t.id];return s?s[(0,a.cH)(n)]:(o&&((s=m(t,e))[(0,a.cH)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}},8106(e,t,n){"use strict";n.d(t,{$:()=>d,M:()=>p});var r,o=n(8013),a=n(57923),s=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],l=null;function c(e,t){return function(){var n=arguments,r=d(t);if(r){var a=r.listener;a&&a[e]&&a[e][o.y9](a,n)}}}function u(){var e=(0,a.EH)("Microsoft");return e&&(l=e.ApplicationInsights),l}function d(e){var t=l;return t||!0===e.disableDbgExt||(t=l||u()),t?t.ChromeDbgExt:null}function p(e){if(!r){r={};for(var t=0;t<s[o.oI];t++)r[s[t]]=c(s[t],e)}return r}},88008(e,t,n){"use strict";n.d(t,{OG:()=>x,WD:()=>m,ZP:()=>b,wq:()=>v,y0:()=>g});var r=n(18108),o=n(8013),a=n(8106),s=n(57923),l=n(94552),c=n(62805),u="AI (Internal): ",d="AI: ",p="AITR_";function f(e){return e?'"'+e[o.W7](/\"/g,c.m5)+'"':c.m5}function h(e,t){var n=(0,s.U5)();if(n){var r="log";n[e]&&(r=e),(0,l.Tn)(n[r])&&n[r](t)}}var m=function(){function e(e,t,n,r){void 0===n&&(n=!1);var a=this;a[o.JR]=e,a[o.pM]=(n?d:u)+e;var l=c.m5;(0,s.Z)()&&(l=(0,s.hm)().stringify(r));var p=(t?" message:"+f(t):c.m5)+(r?" props:"+f(l):c.m5);a[o.pM]+=p}return e.dataType="MessageData",e}();function g(e,t){return(e||{})[o.Uw]||new v(t)}var v=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,u,d,f,g=0,v={};(0,r.A)(e,this,function(e){function r(t,n){if(!y()){var r=!0,a=p+n[o.JR];if(v[a]?r=!1:v[a]=!0,r&&(t<=u&&(e.queue[o.y5](n),g++,b(1===t?"error":"warn",n)),g===d)){var s="Internal events throttle limit per PageView reached for this app.",l=new m(23,s,!1);e.queue[o.y5](l),1===t?e[c.Zi](s):e[c.Tj](s)}}}function y(){return g>=d}function b(e,n){var r=(0,a.$)(t||{});r&&r[o.e4]&&r[o.e4](e,n)}(function e(e){n=(0,l.SA)(e.loggingLevelConsole,0),u=(0,l.SA)(e.loggingLevelTelemetry,1),d=(0,l.SA)(e.maxMessageLimit,25),f=(0,l.SA)(e.enableDebug,(0,l.SA)(e[o.a$],!1))})(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return u},e.maxInternalMessageLimit=function(){return d},e[o.a$]=function(){return f},e.throwInternal=function(t,a,u,d,p){void 0===p&&(p=!1);var h=new m(a,u,p,d);if(f)throw(0,s.mm)(h);var g=1===t?c.Zi:c.Tj;if((0,l.b0)(h[o.pM]))b("throw"+(1===t?"Critical":"Warning"),h);else{if(p){var y=+h[o.JR];!v[y]&&n>=t&&(e[g](h[o.pM]),v[y]=!0)}else n>=t&&e[g](h[o.pM]);r(t,h)}},e[c.Tj]=function(e){h("warn",e),b("warning",e)},e[c.Zi]=function(e){h("error",e),b("error",e)},e.resetInternalMessageCount=function(){g=0,v={}},e[o.sx]=r})}return e.__ieDyn=1,e}();function y(e){return e||new v}function b(e,t,n,r,o,a){void 0===a&&(a=!1),y(e).throwInternal(t,n,r,o,a)}function x(e,t){y(e)[c.Tj](t)}},57923(e,t,n){"use strict";n.d(t,{EH:()=>T,FJ:()=>z,JK:()=>O,MY:()=>j,PV:()=>Q,R7:()=>Y,U5:()=>H,Uf:()=>X,Vd:()=>D,Wt:()=>R,YE:()=>N,Z:()=>V,g$:()=>L,hm:()=>U,iN:()=>W,lT:()=>G,lV:()=>q,mm:()=>K,tw:()=>F,w3:()=>M,xk:()=>J,zk:()=>A});var r=n(27245),o=n(29381),a=n(8013),s=n(94552),l=n(62805),c="window",u="document",d="navigator",p="history",f="location",h="console",m="performance",g="JSON",v="crypto",y="msCrypto",b="ReactNative",x="msie",C="trident/",k="XMLHttpRequest",w=null,S=null,_=!1,E=null,P=null;function I(e,t){var n=!1;if(e){try{if(!(n=t in e)){var o=e[r.vR];o&&(n=t in o)}}catch(e){}if(!n)try{var a=new e;n=!(0,s.b0)(a[t])}catch(e){}}return n}function T(e){var t=(0,o.mS)();return t&&t[e]?t[e]:e===c&&D()?window:null}function D(){return!!(typeof window===r._1&&window)}function A(){return D()?window:T(c)}function R(){return!!(typeof document===r._1&&document)}function N(){return R()?document:T(u)}function B(){return!!(typeof navigator===r._1&&navigator)}function M(){return B()?navigator:T(d)}function F(){return!!(typeof history===r._1&&history)}function O(){return F()?history:T(p)}function L(e){if(e&&_){var t=T("__mockLocation");if(t)return t}return typeof location===r._1&&location?location:T(f)}function H(){return typeof console!==r.bA?console:T(h)}function z(){return T(m)}function V(){return!!(typeof JSON===r._1&&JSON||null!==T(g))}function U(){return V()?JSON||T(g):null}function j(){return T(v)}function W(){return T(y)}function q(){var e=M();return!!e&&!!e.product&&e.product===b}function G(){var e=M();if(e&&(e[a.tX]!==S||null===w)){var t=((S=e[a.tX])||l.m5)[a.OL]();w=(0,s.Ju)(t,x)||(0,s.Ju)(t,C)}return w}function K(e){var t=Object[r.vR].toString[a.Ek](e),n=l.m5;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[a.RS]+"'":V()&&(n=U().stringify(e)),t+n}function X(){return null===P&&(P=B()&&!!M().sendBeacon),P}function Y(e){var t=!1;try{t=!!T("fetch");var n=T("Request");t&&e&&n&&(t=I(n,"keepalive"))}catch(e){}return t}function Q(){return null===E&&(E=typeof XDomainRequest!==r.bA)&&J()&&(E=E&&!I(T(k),"withCredentials")),E}function J(){var e=!1;try{e=!!T(k)}catch(e){}return e}},27478(e,t,n){"use strict";n.d(t,{Ds:()=>j,Fc:()=>W,Hm:()=>B,ML:()=>F,So:()=>O,ee:()=>U,mB:()=>M,oS:()=>G,sq:()=>q,vF:()=>K});var r=n(8013),o=n(93709),a=n(57923),s=n(94552),l=n(62805),c="on",u="attachEvent",d="addEventListener",p="detachEvent",f="removeEventListener",h="events",m="visibilitychange",g="pagehide",v="pageshow",y="unload",b="beforeunload",x=(0,o.Z)("aiEvtPageHide"),C=(0,o.Z)("aiEvtPageShow"),k=/\.[\.]+/g,w=/[\.]+$/,S=1,_=(0,o.T)("events"),E=/^([^.]*)(?:\.(.+)|)/;function P(e){return e&&e[r.W7]?e[r.W7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,l.m5):e}function I(e,t){if(t){var n,o=l.m5;(0,s.cy)(t)?(o=l.m5,(0,s.Iu)(t,function(e){(e=P(e))&&("."!==e[0]&&(e="."+e),o+=e)})):o=P(t),o&&("."!==o[0]&&(o="."+o),e=(e||l.m5)+o)}var a=E.exec(e||l.m5)||[];return(n={})[r.QM]=a[1],n.ns=(a[2]||l.m5).replace(k,".").replace(w,l.m5)[r.sY](".").sort().join("."),n}function T(e,t,n){void 0===n&&(n=!0);var r=_.get(e,h,{},n),o=r[t];return o||(o=r[t]=[]),o}function D(e,t,n,o){e&&t&&t[r.QM]&&(e[f]?e[f](t[r.QM],n,o):e[p]&&e[p](c+t[r.QM],n))}function A(e,t,n,o){var a=!1;return e&&t&&t[r.QM]&&n&&(e[d]?(e[d](t[r.QM],n,o),a=!0):e[u]&&(e[u](c+t[r.QM],n),a=!0)),a}function R(e,t,n,o){for(var a=t[r.oI];a--;){var s=t[a];s&&(!n.ns||n.ns===s.evtName.ns)&&(!o||o(s))&&(D(e,s.evtName,s[r.Yo],s.capture),t[r.Ic](a,1))}}function N(e,t,n){if(t[r.QM])R(e,T(e,t[r.QM]),t,n);else{var o=_.get(e,h,{});(0,s.z)(o,function(r,o){R(e,o,t,n)}),0===(0,s.cG)(o)[r.oI]&&_.kill(e,h)}}function B(e,t){var n;return t?I("xx",n=(0,s.cy)(t)?[e].concat(t):[e,t]).ns[r.sY]("."):e}function M(e,t,n,o,a){void 0===a&&(a=!1);var s,l=!1;if(e)try{var c=I(t,o);if((l=A(e,c,n,a))&&_.accept(e)){var u=((s={guid:S++,evtName:c})[r.Yo]=n,s.capture=a,s);T(e,c.type)[r.y5](u)}}catch(e){}return l}function F(e,t,n,o,a){if(void 0===a&&(a=!1),e)try{var s=I(t,o),l=!1;N(e,s,function(e){return(!!s.ns&&!n||e[r.Yo]===n)&&(l=!0,!0)}),l||D(e,s,n,a)}catch(e){}}function O(e,t,n){var r=!1,o=(0,a.zk)();o&&(r=M(o,e,t,n),r=M(o.body,e,t,n)||r);var s=(0,a.YE)();return s&&(r=M(s,e,t,n)||r),r}function L(e,t,n){var r=(0,a.zk)();r&&(F(r,e,t,n),F(r.body,e,t,n));var o=(0,a.YE)();o&&F(o,e,t,n)}function H(e,t,n,o){var a=!1;return t&&e&&e[r.oI]>0&&(0,s.Iu)(e,function(e){e&&(!n||-1===(0,s.rD)(n,e))&&(a=O(e,t,o)||a)}),a}function z(e,t,n,o){var a=!1;return t&&e&&(0,s.cy)(e)&&((a=H(e,t,n,o))||!n||!(n[r.oI]>0)||(a=H(e,t,null,o))),a}function V(e,t,n){e&&(0,s.cy)(e)&&(0,s.Iu)(e,function(e){e&&L(e,t,n)})}function U(e,t,n){return z([b,y,g],e,t,n)}function j(e,t){V([b,y,g],e,t)}function W(e,t,n){function r(t){var n=(0,a.YE)();e&&n&&"hidden"===n.visibilityState&&e(t)}var o=B(x,n),l=H([g],e,t,o);return t&&-1!==(0,s.rD)(t,m)||(l=H([m],r,t,o)||l),!l&&t&&(l=W(e,null,n)),l}function q(e,t){var n=B(x,t);V([g],e,n),V([m],null,n)}function G(e,t,n){function r(t){var n=(0,a.YE)();e&&n&&"visible"===n.visibilityState&&e(t)}var o=B(C,n),s=H([v],e,t,o);return(s=H([m],r,t,o)||s)||!t||(s=G(e,null,n)),s}function K(e,t){var n=B(C,t);V([v],e,n),V([m],null,n)}},94552(e,t,n){"use strict";n.d(t,{$8:()=>eS,$P:()=>Y,CP:()=>eD,Cv:()=>W,EH:()=>eu,Ed:()=>M,Et:()=>et,Gh:()=>L,Gv:()=>z,Iu:()=>ea,Ju:()=>X,KT:()=>ec,KY:()=>ex,Kg:()=>ee,Lm:()=>en,N6:()=>ev,RF:()=>eP,SA:()=>ek,Tn:()=>V,W$:()=>el,_u:()=>eo,b0:()=>F,bJ:()=>Z,c2:()=>eC,cG:()=>ef,cH:()=>U,cy:()=>Q,fw:()=>B,hW:()=>eT,hX:()=>O,lL:()=>eb,mQ:()=>H,o$:()=>eI,ol:()=>eg,qz:()=>eE,r:()=>eh,rD:()=>es,tG:()=>G,x3:()=>ey,z:()=>j,zz:()=>ew});var r=n(27245),o=n(29381),a=n(8013),s=n(62805),l="toISOString",c="endsWith",u="startsWith",d="indexOf",p="map",f="reduce",h="trim",m="toString",g="__proto__",v="constructor",y=r.KU,b=r.s6.freeze;r.s6.seal;var x=r.s6.keys,C=String[r.vR],k=C[h],w=C[c],S=C[u],_=Date[r.vR][l],E=Array.isArray,P=r.Wy[m],I=r.J$[m],T=I[a.Ek](r.s6),D=/-([a-z])/g,A=/([^\w\d_$])/g,R=/^(\d+[\w\d_$])/,N=Object.getPrototypeOf;function B(e){if(e){if(N)return N(e);var t=e[g]||e[r.vR]||e[v];if(t)return t}return null}function M(e,t){return typeof e===t}function F(e){return void 0===e||typeof e===r.bA}function O(e){return null===e||F(e)}function L(e){return!O(e)}function H(e,t){return!!(e&&r.J$[a.Ek](e,t))}function z(e){return!!(e&&typeof e===r._1)}function V(e){return!!(e&&typeof e===r.hW)}function U(e){var t=e;return t&&ee(t)&&(t=(t=(t=t[a.W7](D,function(e,t){return t.toUpperCase()}))[a.W7](A,"_"))[a.W7](R,function(e,t){return"_"+t})),t}function j(e,t){if(e)for(var n in e)r.J$[a.Ek](e,n)&&t[a.Ek](e,n,e[n])}function W(e,t){var n=!1;return!e||!t||(n=e===t)||(n=w?e[c](t):q(e,t)),n}function q(e,t){var n=!1,r=t?t[a.oI]:0,o=e?e[a.oI]:0;if(r&&o&&o>=r&&!(n=e===t)){for(var s=o-1,l=r-1;l>=0;l--){if(e[s]!=t[l])return!1;s--}n=!0}return n}function G(e,t){var n=!1;return!e||!t||(n=e===t)||(n=S?e[u](t):K(e,t)),n}function K(e,t){var n=!1,r=t?t[a.oI]:0;if(e&&r&&e[a.oI]>=r&&!(n=e===t)){for(var o=0;o<r;o++)if(e[o]!==t[o])return!1;n=!0}return n}function X(e,t){return!!e&&!!t&&-1!==e[a.Sj](t)}function Y(e){return!!(e&&"[object Date]"===P[a.Ek](e))}var Q=E||J;function J(e){return!!(e&&"[object Array]"===P[a.Ek](e))}function Z(e){return!!(e&&"[object Error]"===P[a.Ek](e))}function ee(e){return"string"==typeof e}function et(e){return"number"==typeof e}function en(e){return"boolean"==typeof e}function er(e){var t=!1;if(e&&"object"==typeof e){var n=N?N(e):B(e);n?(n[v]&&r.J$[a.Ek](n,v)&&(n=n[v]),t=typeof n===r.hW&&I[a.Ek](n)===T):t=!0}return t}function eo(e){if(e)return _?e[l]():ei(e)}function ei(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[a.oI]&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function ea(e,t,n){var r=e[a.oI];try{for(var o=0;o<r&&(!(o in e)||-1!==t[a.Ek](n||e,e[o],o,e));o++);}catch(e){}}function es(e,t,n){if(e){if(e[d])return e[d](t,n);var r=e[a.oI],o=n||0;try{for(var s=Math.max(o>=0?o:r-Math.abs(o),0);s<r;s++)if(s in e&&e[s]===t)return s}catch(e){}}return -1}function el(e,t,n){var r;if(e){if(e[p])return e[p](t,n);var o=e[a.oI],s=n||e;r=Array(o);try{for(var l=0;l<o;l++)l in e&&(r[l]=t[a.Ek](s,e[l],e))}catch(e){}}return r}function ec(e,t,n){var r;if(e){if(e[f])return e[f](t,n);var o=e[a.oI],s=0;if(arguments[a.oI]>=3)r=arguments[2];else{for(;s<o&&!(s in e);)s++;r=e[s++]}for(;s<o;)s in e&&(r=t(r,e[s],s,e)),s++}return r}function eu(e){return e&&(e=k&&e[h]?e[h]():e[a.W7]?e[a.W7](/^\s+|(?=\s)\s+$/g,s.m5):e),e}var ed=!({toString:null}).propertyIsEnumerable("toString"),ep=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function ef(e){var t=typeof e;if(t!==r.hW&&(t!==r._1||null===e)&&(0,o.zk)("objKeys called on non-object"),!ed&&x)return x(e);var n=[];for(var s in e)e&&r.J$[a.Ek](e,s)&&n[a.y5](s);if(ed)for(var l=ep[a.oI],c=0;c<l;c++)e&&r.J$[a.Ek](e,ep[c])&&n[a.y5](ep[c]);return n}function eh(e,t,n,r){if(y)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),y(e,t,o),!0}catch(e){}return!1}function em(e){return e}function eg(e){return b&&j(e,function(e,t){(Q(t)||z(t))&&b(t)}),ev(e)}var ev=b||em;function ey(){var e=Date;return e.now?e.now():new e().getTime()}function eb(e){return Z(e)?e[a.RS]:s.m5}function ex(e,t,n,r,o){var a=n;return e&&(a=e[t])!==n&&(!o||o(a))&&(!r||r(n))&&(a=n,e[t]=a),a}function eC(e,t,n){var r;return e?!(r=e[t])&&O(r)&&(r=F(n)?{}:n,e[t]=r):r=F(n)?{}:n,r}function ek(e,t){return O(e)?t:e}function ew(e){return!!e}function eS(e){throw Error(e)}function e_(e,t){var n=null,r=null;return V(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][a.y9](r,e)}}function eE(e,t,n){if(e&&t&&z(e)&&z(t)){var r=function(r){if(ee(r)){var o=t[r];V(o)?(!n||n(r,!0,t,e))&&(e[r]=e_(t,r)):(!n||n(r,!1,t,e))&&(H(e,r)&&delete e[r],eh(e,r,function(){return t[r]},function(e){t[r]=e})||(e[r]=o))}};for(var o in t)r(o)}return e}function eP(e,t,n,r,o){e&&t&&n&&(!1!==o||F(e[t]))&&(e[t]=e_(n,r))}function eI(e,t,n,r){return e&&t&&z(e)&&Q(n)&&ea(n,function(n){ee(n)&&eP(e,n,t,n,r)}),e}function eT(e){return e&&r.zi&&(e=(0,r.s6)((0,r.zi)({},e))),e}function eD(e,t,n,o,s,l){var c=arguments,u=c[0]||{},d=c[a.oI],p=!1,f=1;for(d>0&&en(u)&&(p=u,u=c[f]||{},f++),z(u)||(u={});f<d;f++){var h=c[f],m=Q(h),g=z(h);for(var v in h)if(m&&v in h||g&&r.J$[a.Ek](h,v)){var y=h[v],b=void 0;if(p&&y&&((b=Q(y))||er(y))){var x=u[v];b?Q(x)||(x=[]):er(x)||(x={}),y=eD(p,x,y)}void 0!==y&&(u[v]=y)}}return u}},62805(e,t,n){"use strict";n.d(t,{Bw:()=>c,Hr:()=>l,LZ:()=>o,Tj:()=>y,Vo:()=>p,Yd:()=>s,Yp:()=>h,Zi:()=>v,dI:()=>m,eT:()=>a,fc:()=>f,jy:()=>u,kI:()=>b,l0:()=>g,m5:()=>r,qT:()=>d});var r="",o="channels",a="core",s="createPerfMgr",l="disabled",c="extensionConfig",u="extensions",d="processTelemetry",p="priority",f="eventsSent",h="eventsDiscarded",m="eventsSendRequest",g="perfEvent",v="errorToConsole",y="warnToConsole",b="getPerfMgr"},17841(e,t,n){"use strict";n.d(t,{NS:()=>f,Z4:()=>g,r2:()=>m});var r=n(18108),o=n(8013),a=n(94552),s=n(62805),l="ctx",c="ParentContextKey",u="ChildrenContextKey",d=null,p=function(){function e(t,n,r){var s,d=this,p=!1;d.start=(0,a.x3)(),d[o.RS]=t,d[o.tI]=r,d[o.Zu]=function(){return!1},(0,a.Tn)(n)&&(p=(0,a.r)(d,"payload",function(){return!s&&(0,a.Tn)(n)&&(s=n(),n=null),s})),d[o.O_]=function(t){return t?t===e[c]||t===e[u]?d[t]:(d[l]||{})[t]:null},d[o.e_]=function(t,n){t&&(t===e[c]?(d[t]||(d[o.Zu]=function(){return!0}),d[t]=n):t===e[u]?d[t]=n:(d[l]=d[l]||{})[t]=n)},d[o.Ru]=function(){var t=0,r=d[o.O_](e[u]);if((0,a.cy)(r))for(var s=0;s<r[o.oI];s++){var l=r[s];l&&(t+=l[o.fA])}d[o.fA]=(0,a.x3)()-d.start,d.exTime=d[o.fA]-t,d[o.Ru]=function(){},!p&&(0,a.Tn)(n)&&(d.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),f=function(){function e(t){this.ctx={},(0,r.A)(e,this,function(e){e.create=function(e,t,n){return new p(e,t,n)},e.fire=function(e){e&&(e[o.Ru](),t&&(0,a.Tn)(t[s.l0])&&t[s.l0](e))},e[o.e_]=function(t,n){t&&((e[l]=e[l]||{})[t]=n)},e[o.O_]=function(t){return(e[l]||{})[t]}})}return e.__ieDyn=1,e}(),h="CoreUtils.doPerf";function m(e,t,n,r,a){if(e){var l=e;if(l[s.kI]&&(l=l[s.kI]()),l){var d=void 0,f=l[o.O_](h);try{if(d=l.create(t(),r,a)){if(f&&d[o.e_]&&(d[o.e_](p[c],f),f[o.O_]&&f[o.e_])){var m=f[o.O_](p[u]);m||(m=[],f[o.e_](p[u],m)),m[o.y5](d)}return l[o.e_](h,d),n(d)}}catch(e){d&&d[o.e_]&&d[o.e_]("exception",e)}finally{d&&l.fire(d),l[o.e_](h,f)}}}return n()}function g(){return d}},61100(e,t,n){"use strict";n.d(t,{PV:()=>x,i8:()=>v,nU:()=>b,tS:()=>y});var r=n(8013),o=n(88008),a=n(57923),s=n(94552),l=n(62805),c=n(17841),u=n(8643),d="TelemetryPluginChain",p="_hasRun",f="_getTelCtx",h=0;function m(e,t,n){for(;e;){if(e[r.AP]()===n)return e;e=e[r.uR]()}return x([n],t[r.GA]||{},t)}function g(e,t,n,c){var u=null,d=[];null!==c&&(u=c?m(e,n,c):e);var p={_next:h,ctx:{core:function(){return n},diagLog:function(){return(0,o.y0)(n,t)},getCfg:function(){return t},getExtCfg:g,getConfig:v,hasNext:function(){return!!u},getNext:function(){return u},setNext:function(e){u=e},iterate:y,onComplete:f}};function f(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];e&&d[r.y5]({func:e,self:(0,s.b0)(t)?p.ctx:t,args:n})}function h(){var e=u;if(u=e?e[r.uR]():null,!e){var t=d;t&&t[r.oI]>0&&((0,s.Iu)(t,function(e){try{e.func[r.Ek](e.self,e.args)}catch(e){(0,o.ZP)(n[r.Uw],2,73,"Unexpected Exception during onComplete - "+(0,a.mm)(e))}}),d=[])}return e}function g(e,n,r){if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o,a=t[l.Bw];a&&e&&(o=a[e])}if(o){if((0,s.Gv)(n)&&0!==r){var c=(0,s.CP)(!0,n,o);t&&2===r&&(0,s.z)(n,function(e){if((0,s.hX)(c[e])){var n=t[e];(0,s.hX)(n)||(c[e]=n)}}),o=c}}else o=n;return o}function v(e,n,r){void 0===r&&(r=!1);var o,a=g(e,null);return a&&!(0,s.hX)(a[n])?o=a[n]:t&&!(0,s.hX)(t[n])&&(o=t[n]),(0,s.hX)(o)?r:o}function y(e){for(var t;t=p._next();){var n=t[r.AP]();n&&e(n)}}return p}function v(e,t,n,o){var a=g(e,t,n,o),c=a.ctx;function u(e){var t=a._next();return t&&t[l.qT](e,c),!t}function d(e,o){return void 0===e&&(e=null),(0,s.cy)(e)&&(e=x(e,t,n,o)),v(e||c[r.uR](),t,n,o)}return c[r.$5]=u,c[r.$o]=d,c}function y(e,t,n){var o=t[r.GA]||{},a=g(e,o,t,n),l=a.ctx;function c(e){var t=a._next();return t&&t.unload(l,e),!t}function u(e,n){return void 0===e&&(e=null),(0,s.cy)(e)&&(e=x(e,o,t,n)),y(e||l[r.uR](),t,n)}return l[r.$5]=c,l[r.$o]=u,l}function b(e,t,n){var o=t[r.GA]||{},a=g(e,o,t,n).ctx;function l(e){return a.iterate(function(t){(0,s.Tn)(t[r.HC])&&t[r.HC](a,e)})}function c(e,n){return void 0===e&&(e=null),(0,s.cy)(e)&&(e=x(e,o,t,n)),b(e||a[r.uR](),t,n)}return a[r.$5]=l,a[r.$o]=c,a}function x(e,t,n,o){var a=null,c=!o;if((0,s.cy)(e)&&e[r.oI]>0){var u=null;(0,s.Iu)(e,function(e){if(c||o!==e||(c=!0),c&&e&&(0,s.Tn)(e[l.qT])){var r=C(e,t,n);a||(a=r),u&&u._setNext(r),u=r}})}return o&&!a?x([o],t,n):a}function C(e,t,n){var m,g=null,y=(0,s.Tn)(e[l.qT]),b=(0,s.Tn)(e[r.YH]),x={getPlugin:function(){return e},getNext:function(){return g},processTelemetry:w,unload:S,update:_,_id:m=e?e[r.Ju]+"-"+e[l.Vo]+"-"+h++:"Unknown-0-"+h++,_setNext:function(e){g=e}};function C(){var r;return e&&(0,s.Tn)(e[f])&&(r=e[f]()),r||(r=v(x,t,n)),r}function k(t,n,s,u,f){var h=!1,v=e?e[r.Ju]:d,y=t[p];return y||(y=t[p]={}),t.setNext(g),e&&(0,c.r2)(t[l.eT](),function(){return v+":"+s},function(){y[m]=!0;try{var e=g?g._id:l.m5;e&&(y[e]=!1),h=n(t)}catch(e){var c=!g||y[g._id];c&&(h=!0),g&&c||(0,o.ZP)(t[r.e4](),1,73,"Plugin ["+v+"] failed during "+s+" - "+(0,a.mm)(e)+", run flags: "+(0,a.mm)(y))}},u,f),h}function w(t,n){function o(n){if(!e||!y)return!1;var o=(0,u.Cr)(e);return!o[r.Ik]&&!o[l.Hr]&&(b&&e[r.YH](g),e[l.qT](t,n),!0)}k(n=n||C(),o,"processTelemetry",function(){return{item:t}},!t.sync)||n[r.$5](t)}function S(t,n){function o(){var o=!1;if(e){var a=(0,u.Cr)(e),s=e[l.eT]||a[l.eT];e&&(!s||s===t.core())&&!a[r.Ik]&&(a[l.eT]=null,a[r.Ik]=!0,a[r.tZ]=!1,e[r.Ik]&&!0===e[r.Ik](t,n)&&(o=!0))}return o}k(t,o,"unload",function(){},n[r.tI])||t[r.$5](n)}function _(t,n){function o(){var o=!1;if(e){var a=(0,u.Cr)(e),s=e[l.eT]||a[l.eT];e&&(!s||s===t.core())&&!a[r.Ik]&&e[r.HC]&&!0===e[r.HC](t,n)&&(o=!0)}return o}k(t,o,"update",function(){},!1)||t[r.$5](n)}return(0,s.N6)(x)}},33156(e,t,n){"use strict";n.d(t,{Si:()=>b,VN:()=>g,Z1:()=>m,k5:()=>y,yc:()=>v});var r=n(8013),o=n(57923),a=n(94552),s=n(62805),l=0x100000000,c=0xffffffff,u=!1,d=0x75bcd15,p=0x3ade68b1;function f(e){e<0&&(e>>>=0),d=0x75bcd15+e&c,p=0x3ade68b1-e&c,u=!0}function h(){try{var e=0x7fffffff&(0,a.x3)();f((Math.random()*l^e)+e)}catch(e){}}function m(e){return e>0?Math.floor(g()/c*(e+1))>>>0:0}function g(e){var t=0,n=(0,o.MY)()||(0,o.iN)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0,o.lT)()&&(u||h(),t=y()&c),0===t&&(t=Math.floor(l*Math.random()|0)),e||(t>>>=0),t}function v(e){e?f(e):h()}function y(e){var t=((p=36969*(65535&p)+(p>>16)&c)<<16)+(65535&(d=18e3*(65535&d)+(d>>16)&c))>>>0&c;return e||(t>>>=0),t}function b(e){void 0===e&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=g()>>>0,o=0,a=s.m5;a[r.oI]<e;)o++,a+=t.charAt(63&n),n>>>=6,5===o&&(n=(g()<<2|3&n)>>>0,o=0);return a}},8643(e,t,n){"use strict";n.d(t,{Cr:()=>u,Xc:()=>p,pI:()=>d,u7:()=>f});var r=n(8013),o=n(93709),a=n(94552),s=n(62805),l=n(53683),c=(0,o.T)("plugin");function u(e){return c.get(e,"state",{},!0)}function d(e,t){for(var n,o=[],l=null,c=e[r.uR]();c;){var d=c[r.AP]();if(d){l&&(0,a.Tn)(l[r.YH])&&(0,a.Tn)(d[s.qT])&&l[r.YH](d);var p=!1;(p=(0,a.Tn)(d[r.tZ])?d[r.tZ]():(n=u(d))[r.tZ])||o[r.y5](d),l=d,c=c[r.uR]()}}(0,a.Iu)(o,function(o){var a=e[s.eT]();o[r.mE](e.getCfg(),a,t,e[r.uR]()),n=u(o),o[s.eT]||n[s.eT]||(n[s.eT]=a),n[r.tZ]=!0,delete n[r.Ik]})}function p(e){return e.sort(function(e,t){var n=0;if(t){var r=(0,a.Tn)(t[s.qT]);(0,a.Tn)(e[s.qT])?n=r?e[s.Vo]-t[s.Vo]:1:r&&(n=-1)}else n=e?1:-1;return n})}function f(e){var t={};return{getName:function(){return t[r.RS]},setName:function(n){e&&e.setName(n),t[r.RS]=n},getTraceId:function(){return t[r.P5]},setTraceId:function(n){e&&e.setTraceId(n),(0,l.hX)(n)&&(t[r.P5]=n)},getSpanId:function(){return t[r.wi]},setSpanId:function(n){e&&e.setSpanId(n),(0,l.wN)(n)&&(t[r.wi]=n)},getTraceFlags:function(){return t[r.Rr]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.Rr]=n}}}},50675(e,t,n){"use strict";n.d(t,{P:()=>l});var r=n(8013),o=n(88008),a=n(57923),s=n(94552);function l(){var e=[];return{add:function(t){t&&e[r.y5](t)},run:function(t,n){(0,s.Iu)(e,function(e){try{e(t,n)}catch(e){(0,o.ZP)(t[r.e4](),2,73,"Unexpected error calling unload handler - "+(0,a.mm)(e))}}),e=[]}}}},53683(e,t,n){"use strict";n.d(t,{hX:()=>d,wN:()=>p});var r=n(8013),o=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,a="ff",s="00000000000000000000000000000000",l="0000000000000000";function c(e,t,n){return!!e&&e[r.oI]===t&&e!==n&&!!e.match(/^[\da-f]*$/i)}function u(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[_DYN_LENGTH]<2;)t="0"+t;return t}function d(e){return c(e,32,s)}function p(e){return c(e,16,l)}},8013(e,t,n){"use strict";n.d(t,{$4:()=>V,$5:()=>m,$o:()=>B,AP:()=>C,Di:()=>b,EX:()=>k,Ek:()=>X,GA:()=>u,H7:()=>w,HC:()=>D,Ic:()=>S,Ik:()=>_,JR:()=>E,Ju:()=>s,OL:()=>K,O_:()=>ee,P5:()=>er,QM:()=>Y,RF:()=>a,RS:()=>o,Re:()=>O,Rr:()=>ei,Ru:()=>en,Sj:()=>F,TP:()=>y,Uw:()=>p,W7:()=>W,YH:()=>N,Yo:()=>Q,Zu:()=>Z,a$:()=>q,by:()=>x,e4:()=>R,e_:()=>et,fA:()=>h,kt:()=>z,lJ:()=>J,lK:()=>M,mE:()=>r,oI:()=>f,pM:()=>P,ps:()=>g,re:()=>U,sY:()=>H,sl:()=>d,sx:()=>G,tI:()=>I,tX:()=>L,tZ:()=>c,tn:()=>T,uR:()=>A,vR:()=>v,wi:()=>eo,y5:()=>l,y9:()=>j});var r="initialize",o="name",a="getNotifyMgr",s="identifier",l="push",c="isInitialized",u="config",d="instrumentationKey",p="logger",f="length",h="time",m="processNext",g="getProcessTelContext",v="addNotificationListener",y="removeNotificationListener",b="stopPollingInternalLogs",x="onComplete",C="getPlugin",k="flush",w="_extensions",S="splice",_="teardown",E="messageId",P="message",I="isAsync",T="_doTeardown",D="update",A="getNext",R="diagLog",N="setNextPlugin",B="createNew",M="cookieCfg",F="indexOf",O="substring",L="userAgent",H="split",z="setEnabled",V="substr",U="nodeType",j="apply",W="replace",q="enableDebugExceptions",G="logInternalMessage",K="toLowerCase",X="call",Y="type",Q="handler",J="listeners",Z="isChildEvt",ee="getCtx",et="setCtx",en="complete",er="traceId",eo="spanId",ei="traceFlags"},18108(e,t,n){"use strict";n.d(t,{A:()=>W});var r,o="undefined",a="constructor",s="prototype",l="function",c="_dynInstFuncs",u="_isDynProxy",d="_dynClass",p="_dynCls$",f="_dynInstChk",h=f,m="_dfOpts",g="_unknown_",v="__proto__",y="_dyn"+v,b="__dynProto$Gbl",x="_dynInstProto",C="useBaseInst",k="setInstFuncs",w=Object,S=w.getPrototypeOf,_=w.getOwnPropertyNames,E=function(){var e;return typeof globalThis!==o&&(e=globalThis),e||typeof self===o||(e=self),e||typeof window===o||(e=window),e||typeof n.g===o||(e=n.g),e||{}}(),P=E[b]||(E[b]={o:((r={})[k]=!0,r[C]=!0,r),n:1e3});function I(e,t){return e&&w[s].hasOwnProperty.call(e,t)}function T(e){return e&&(e===w[s]||e===Array[s])}function D(e){return T(e)||e===Function[s]}function A(e){var t;if(e){if(S)return S(e);var n=e[v]||e[s]||(e[a]?e[a][s]:null);t=e[y]||n,I(e,y)||(delete e[x],t=e[y]=e[x]||e[y],e[x]=n)}return t}function R(e,t){var n=[];if(_)n=_(e);else for(var r in e)"string"==typeof r&&I(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function N(e,t,n){return t!==a&&typeof e[t]===l&&(n||I(e,t))&&t!==v&&t!==s}function B(e){throw TypeError("DynamicProto: "+e)}function M(){return Object.create?function(e){var t=Object.create;return t?t(null):{}}(0):{}}function F(e){var t=M();return R(e,function(n){!t[n]&&N(e,n,!1)&&(t[n]=e[n])}),t}function O(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function L(e,t,n,r){function o(e,t,n){var o=t[n];if(o[u]&&r){var a=e[c]||{};!1!==a[h]&&(o=(a[t[d]]||{})[n]||o)}return function(){return o.apply(e,arguments)}}var a=M();R(n,function(e){a[e]=o(t,n,e)});for(var s=A(e),l=[];s&&!D(s)&&!O(l,s);)R(s,function(e){!a[e]&&N(s,e,!S)&&(a[e]=o(t,s,e))}),l.push(s),s=A(s);return a}function H(e,t,n,r){var o=null;if(e&&I(n,d)){var a=e[c]||M();if((o=(a[n[d]]||M())[t])||B("Missing ["+t+"] "+l),!o[f]&&!1!==a[h]){for(var s=!I(e,t),u=A(e),p=[];s&&u&&!D(u)&&!O(p,u);){var m=u[t];if(m){s=m===r;break}p.push(u),u=A(u)}try{s&&(e[t]=o),o[f]=1}catch(e){a[h]=!1}}}return o}function z(e,t,n){var r=t[e];return r===n&&(r=A(t)[e]),typeof r!==l&&B("["+e+"] is not a "+l),r}function V(e,t,n,r,o){function a(e,t){var n=function(){return(H(this,t,e,n)||z(t,e,n)).apply(this,arguments)};return n[u]=1,n}if(!T(e)){var s=n[c]=n[c]||M();if(!T(s)){var l=s[t]=s[t]||M();!1!==s[h]&&(s[h]=!!o),T(l)||R(n,function(t){N(n,t,!1)&&n[t]!==r[t]&&(l[t]=n[t],delete n[t],I(e,t)&&(!e[t]||e[t][u])||(e[t]=a(e,t)))})}}}function U(e,t){if(S){for(var n=[],r=A(t);r&&!D(r)&&!O(n,r);){if(r===e)return!0;n.push(r),r=A(r)}return!1}return!0}function j(e,t){return I(e,s)?e.name||t||g:((e||{})[a]||{}).name||t||g}function W(e,t,n,r){I(e,s)||B("theClass is an invalid class definition.");var o=e[s];U(o,t)||B("["+j(e)+"] not in hierarchy of ["+j(t)+"]");var a=null;I(o,d)?a=o[d]:(a=p+j(e,"_")+"$"+P.n,P.n++,o[d]=a);var l=W[m],c=!!l[C];c&&r&&void 0!==r[C]&&(c=!!r[C]);var u=F(t),f=L(o,t,u,c);n(t,f);var h=!!S&&!!l[k];h&&r&&(h=!!r[k]),V(o,a,t,u,!1!==h)}W[m]=P.o},5165(e,t,n){"use strict";let r,o,a,s,l,c,u,d,p,f,h;var m,g,v,y,b,x,C,k,w,S,_,E,P,I,T,D,A,R,N,B,M,F,O,L,H,z,V,U,j,W,q,G,K,X,Y,Q,J,Z,ee,et,en,er,eo,ei,ea,es,el,ec,eu,ed,ep,ef,eh,em,eg,ev,ey,eb,ex,eC,ek,ew,eS,e_,eE,eP,eI,eT,eD,eA,eR,eN,eB,eM,eF,eO,eL,eH,ez,eV={};n.r(eV),n.d(eV,{hasBrowserEnv:()=>Cp,hasStandardBrowserEnv:()=>Ch,hasStandardBrowserWebWorkerEnv:()=>Cm,navigator:()=>Cf,origin:()=>Cg});var eU=n(31085);n(54901),n(17094),n(66870);var ej=n(55478),eW="!START",eq="!OK",eG="!FAIL",eK="!CANCELOK",eX="!CANCELFAIL",eY="Ms.Web.PageView",e$="Ms.Web.PageAction",eQ="Ms.Web.ContentUpdate",eJ="Ms.Web.ClientError",eZ="Ms.Qos.OutgoingServiceRequest",e0="Ms.Web.PageUnload",e1="Ms.Osgs.ExperimentTrigger",e2="Ms.Osgs.ClientReliability",e5="Ms.Webi.MeePortal.UserFeedbackV2";!function(){function e(t){var n=this;if(this.options=t,this.context={},this.maxResultLength=1024,this.serialize=function(){var t=Object.keys(n.context);if(!t.length)return"";for(var r=["v=1"],o=0,a=t;o<a.length;o++){var s=a[o],l=e.contextKeyMap[s]||encodeURIComponent(s),c=n.options.normalizePropertyValue&&n.options.normalizePropertyValue(s,n.context[s])||n.context[s];r.push("".concat(l,"=").concat(encodeURIComponent(c)))}var u=r.join(",");return u.length>n.maxResultLength?"":u},this.getProperty=function(e){return n.context[e]},this.setProperty=function(e,t){t&&(n.context[e]=t)},this.deleteProperty=function(e){return!!n.context[e]&&(delete n.context[e],!0)},!t)throw Error("options must be specified.")}e.contextKeyMap={"app-id":"ms.a.app.id","app-version":"ms.a.app.ver","device-class":"ms.a.device.deviceClass","device-id":"ms.a.device.id","partner-id":"ms.b.tel.partner","product-id":"ms.b.tel.product","scenario-id":"ms.b.tel.scenario","scenario-step":"ms.c.ust.scenarioStep","user-id":"ms.a.user.id","root-operation":"ms.b.qos.rootOperationName",market:"ms.b.tel.market"}}();var e4=n(83197),e3=n.n(e4),e6=-1,e8=1,e9=2,e7=0,te=1,tt=document.referrer,tn=document.cookie,tr=2;function to(e){var t=e||ti;return{getLocationHref:function(){return t(tv())},getRealLocationHref:function(){return t(window.location.href)},getSpaLocationHref:function(){return t(window.spaLocationHref||"")},getReferrer:function(){return t(tx())},getPageId:ty,getQueryParameter:ta,getCookie:tl,getPerformanceTiming:function(){return window.performance&&window.performance.timing||{}},getNow:function(){return new Date},isPageOptedOutFromAutoPageView:tc,setSpaLocationHref:function(e){window.spaLocationHref=e},setSpaReferrer:function(e){window.spaReferrer=e},setSpaPageId:function(e){window.spaPageId=e},setWindowLoadHandler:function(e){e3()(window).on("load",e)}}}function ti(e){return e}function ta(e){return ts(e,window.location.search)}function ts(e,t){var n=RegExp("".concat(e,"=([^&]+)"),"i"),r=t.match(n);return r&&tr===r.length?r[1]:""}function tl(e){for(var t=e.toLowerCase(),n=tn.split(";"),r=0;r<n.length;r++){var o=n[r].split("="),a=decodeURIComponent(o[0].trim().toLowerCase()),s=o.length>1?o[1]:"";if(a===t)return decodeURIComponent(s)}return""}function tc(){return!!e3()("meta[name='noAutoPageView']").length}function tu(e){var t=e.getNow().getTime(),n=e.getPerformanceTiming();return(n.domComplete||t)-(n.fetchStart||t)||0}function td(e){var t=document.createElement("a");return t.href=e,t}function tp(e){var t=e||"/";return"/"!==t[0]&&(t="/".concat(t)),t}function tf(e,t){var n=/^https:\/\/login\.live[\-\.]/i,r=/^https:\/\/login\.microsoftonline\.com/i,o=/^https:\/\/login\.windows-ppe\.net/i,a=/^http(s?):\/\/directvisit/i,s=/\brefd=([0-9a-z\.\-]+)\b/i,l=/\brefp=([0-9a-z\.\-]+)\b/i;if(e&&!n.test(e)&&!r.test(e)&&!o.test(e)&&!a.test(e)||!t)return e;var c=t.match(s);if(!c||tr!==c.length)return e;var u="https://".concat(c[1].toLowerCase(),"/"),d=t.match(l);return d&&tr===d.length&&(u+=d[1].replace("-","/").toLowerCase()),u}function th(){var e=tl("oref");return!!e&&(tt=e,tg("oref"),!0)}function tm(e,t,n,r){void 0===r&&(r="/");var o=n;o||(o=new Date).setDate(o.getDate()+1);var a="".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t),";expires=").concat(o.toUTCString(),";path=").concat(r);document.cookie=a}function tg(e){var t=new Date;t.setDate(t.getDate()-1),tm(e,"",t)}function tv(){return window.spaLocationHref||window.location.href}function ty(){return window.spaPageId||tb()||document.title}function tb(){var e=document.querySelector("html > head").getElementsByTagName("meta").namedItem("pageid");return e?e.getAttribute("content"):null}function tx(){return(window.spaReferrer||tt).split("?")[0]||""}(function e(){th(),tt=tf(tt,window.location.search)})(),!function(){function e(t,n,r,o){var a=this;if(this.options=t,this.cvManager=n,this.ccManager=r,this.qosLogger=o,this.willChangeSupportCors=!1,this.alwaysAddCvToRequestHeader=!0,this.timers={},this.mockedAjaxOps={},this.hostIdx=2,this.portIdx=3,this.minServerErrorStatusCode=500,this.maxServerErrorStatusCode=600,this.retryTimeout=50,this.cv1Length=16,this.cv2Length=22,this.base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.cv1Constants={validationPattern:new RegExp("^[".concat(this.base64CharSet,"]{").concat("16","}(.[0-9]+)+$")),maxCorrelationVectorLength:63},this.cv2Constants={validationPattern:new RegExp("^[".concat(this.base64CharSet,"]{").concat("22","}(.[0-9]+)+$")),maxCorrelationVectorLength:127},this.ajaxGet=function(e){return a.prepareRequest(e),a.flattenDataAndAppendAntiForgeryToken(e,e6),a.sendRequest(e,a.getImpl)},this.ajaxPost=function(e){return a.prepareRequest(e),a.flattenDataAndAppendAntiForgeryToken(e,e.antiforgeryTokenBehavior),a.sendRequest(e,a.postImpl)},this.ajaxPut=function(e){return a.prepareRequest(e),a.flattenDataAndAppendAntiForgeryToken(e,e.antiforgeryTokenBehavior),a.sendRequest(e,a.putImpl)},this.ajaxDelete=function(e){return a.prepareRequest(e),a.flattenDataAndAppendAntiForgeryToken(e,e.antiforgeryTokenBehavior),a.sendRequest(e,a.delImpl)},this.getAntiForgeryToken=function(e,t){for(var n=e&&typeof e==typeof window?e:window,r=t&&"string"==typeof t?"_".concat(t.toString()):"",o="__RequestVerificationToken".concat(r),a=n.document.getElementsByTagName("input"),s=0;s<a.length;s++){var l=a[s];if("hidden"===l.type&&l.name===o)return{name:o,value:l.value}}return{}},this.mockAjaxOperationResult=function(e,t){if(!e)throw Error("operationName must be specified.");if(!t)throw Error("result must be specified.");a.mockedAjaxOps[e.toLowerCase()]=t},this.clearAjaxOperationMocks=function(){a.mockedAjaxOps={}},this.targetUriOverrideCallbackFunction=function(e){return e},this.getAntiForgeryTokenForRequest=function(e){return e.token?e.token:a.getAntiForgeryToken(e.tokenWindow,e.appPath)},this.prepareRequest=function(t){if(!t.serviceName)throw Error("AjaxTelemetrySink: settings.serviceName is not set.");if(!t.operationName)throw Error("AjaxTelemetrySink: settings.operationName is not set.");if(t.currentOperationName=t.parentOperationName||t.operationName,t.additionalHeaders=t.additionalHeaders||[],t.requestedWithHeaderBehavior&&"query"!==t.requestedWithHeaderBehavior)"header"===t.requestedWithHeaderBehavior&&(t.additionalHeaders["X-Requested-With"]="XMLHttpRequest");else if(t.url){var n="X-Requested-With=XMLHttpRequest",r=td(t.url);r.search+=(r.search?"&":"?")+n,t.url=r.href}a.options.useJsll3xQuirks&&("auto"!==t.dataType?t.dataType=t.dataType||"json":delete t.dataType),a.cvManager.incrementCv(),t.cV=a.cvManager.getCurrentCvValue();var o=a.ccManager.serialize();o&&(void 0===t.addCvToRequestHeader||t.addCvToRequestHeader)&&(t.additionalHeaders["Correlation-Context"]=o),t.cache&&(t.noCacheBusting=!0),(a.options.overrideRequestQosData||t.overrideRequestQosData)&&(t.QosCallback=e.overrideRequestQosData.bind(a,a.options,t)),!t.antiforgeryTokenBehavior&&(a.isCrossDomainRequest(t)?t.antiforgeryTokenBehavior=e6:a.isJsonContentType(t)&&(t.antiforgeryTokenBehavior=e9))},this.flattenDataAndAppendAntiForgeryToken=function(e,t){var n=t||e8,r=e.data;switch(r&&"string"!=typeof r&&(r=e3().param(r)),n){case e8:a.getTokenAndExecuteCommandIfTokenIsValid(e,function(e){r=(r?"".concat(r,"&"):"")+"".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value))});break;case e9:a.getTokenAndExecuteCommandIfTokenIsValid(e,function(t){e.additionalHeaders[encodeURIComponent(t.name)]=encodeURIComponent(t.value)});break;case e6:break;default:throw Error("Unsupported AntiforgeryTokenBehavior: ".concat(n))}e.data=r},this.isJsonContentType=function(e){return!!e.contentType&&"string"==typeof e.contentType&&-1!==e.contentType.indexOf("json")},this.isCrossDomainRequest=function(e){try{t=location.href}catch(e){var t,n=document.createElement("a");n.href="",t=n.href}var r=3,o=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,s=o.exec(t.toLowerCase()),l=o.exec(e.url?e.url.toLowerCase():"");return!!(l&&l.length>r&&s&&s.length>r&&(l[1]!==s[1]||l[a.hostIdx]!==s[a.hostIdx]||(l[a.portIdx]||("http:"===l[1]?"80":"443"))!==(s[a.portIdx]||("http:"===s[1]?"80":"443"))))},this.sendRequest=function(e,t){if(e.operationName){var n=e.operationName.toLowerCase();if(a.mockedAjaxOps[n]){var r=a.mockedAjaxOps[n],o=e3().Deferred();return setTimeout(function(){r(o)}),o}}return t(e)},this.postImpl=function(e){return e.method="POST",a.makeRequest(e)},this.getImpl=function(e){return e.method="GET",a.makeRequest(e)},this.putImpl=function(e){return e.method="PUT",a.makeRequest(e)},this.delImpl=function(e){return e.method="DELETE",a.makeRequest(e)},this.makeRequest=function(e){var t=a;if("function"==typeof e3()){a.willChangeSupportCors&&(e3().support.cors=!0);var n,r=e.additionalHeaders||{},o=e.body,s=o?JSON.stringify(o):e.data||void 0,l=e.maxRetry||0,c=0,u=e.operationName||e.url,d=e.errorFormatter||function(e){return e},p={url:e.url,type:e.method,data:s,crossDomain:!0,headers:{},success:e.success,timeout:e.timeout,error:e.error,jsonp:e.jsonp,jsonpCallback:e.jsonpCallback,cache:e.cache,beforeSend:function(o){if(e.contractVersion&&o.setRequestHeader("MS-Contract-Version",e.contractVersion),(!0===e.addCvToRequestHeader||!1!==e.addCvToRequestHeader&&t.alwaysAddCvToRequestHeader)&&t.isValid(n)&&o.setRequestHeader("MS-CV",n),r)for(var a in r)r.hasOwnProperty(a)&&o.setRequestHeader(a,r[a])}};e.dataType&&(p.dataType=e.dataType),e.noCacheBusting||(p.cache=!1),e.contentType&&(p.contentType=e.contentType),e.accept&&(p.headers.Accept=e.accept),e.accepts&&(p.accepts=e.accepts),e.async&&(p.async=e.async),e.xhrFields&&(p.xhrFields=e.xhrFields),e.complete&&(p.complete=e.complete),e.contents&&(p.contents=e.contents),e.context&&(p.context=e.context),e.dataFilter&&(p.dataFilter=e.dataFilter),e.global&&(p.global=e.global),e.ifModified&&(p.ifModified=e.ifModified),e.isLocal&&(p.isLocal=e.isLocal),e.mimeType&&(p.mimeType=e.mimeType),e.password&&(p.password=e.password),e.processData&&(p.processData=e.processData),e.scriptCharset&&(p.scriptCharset=e.scriptCharset),e.statusCode&&(p.statusCode=e.statusCode),e.traditional&&(p.traditional=e.traditional),e.type&&(p.type=e.type),e.username&&(p.username=e.username),e.xhr&&(p.xhr=e.xhr),n=a.isValid(e.cV)?e.cV:a.increment();var f=function(r,o,a){var s=r.getResponseHeader("Content-Length"),l={name:"Ms.Webi.OutgoingRequest",data:{cV:n,baseData:{operationName:e.currentOperationName,targetUri:t.targetUriOverrideCallbackFunction?t.targetUriOverrideCallbackFunction(p.url):p.url,latencyMs:a,serviceErrorCode:!o&&r.responseJSON&&r.responseJSON.code&&!isNaN(r.responseJSON.code)?r.responseJSON.code:-1,succeeded:o,requestMethod:p.type,responseContentType:p.dataType,protocolStatusCode:r.status.toString(),dependencyOperationName:u,dependencyOperationVersion:e.version&&e.version.toString(),dependencyName:e.serviceName,dependencyType:"WebService",responseSizeBytes:s&&parseInt(s,10)},baseType:eZ,message:o?void 0:JSON.stringify(r.errorThrown),retryCount:c,customData:e.customDataCallBack&&"function"==typeof e.customDataCallBack?JSON.stringify(e.customDataCallBack(r)):void 0}};e.QosCallback&&"function"==typeof e.QosCallback&&e.QosCallback(r,l),t.reportEvent(l.data)},h=function(){var r="".concat(u,"_Retry_").concat(c);return t.recordTimeSpan(r,!1),e3().ajax(p).then(function(e,n,o){return f(o,!0,t.recordTimeSpan(r,!0)),o},function(o,a){f(o,!1,t.recordTimeSpan(r,!0));var s=e3().Deferred();return l>c&&(0===o.status||o.status>=t.minServerErrorStatusCode&&o.status<t.maxServerErrorStatusCode)?(c++,n=t.isValid(e.cV)?t.incrementExternal(n):t.increment(),setTimeout(function(){h().done(s.resolve).fail(s.reject)},t.retryTimeout)):s.reject(o,a),s.promise()})};return h().then(function(e,t,n){return n},function(t){return d(t,e)})}},this.isValid=function(e){if(e){var t=e.split(".")[0];if(t){if(t.length===a.cv1Length)return a.validateWithCv1(e);else if(t.length===a.cv2Length)return a.validateWithCv2(e)}}return!1},this.validateWithCv1=function(e){return!!a.cv1Constants.validationPattern.test(e)&&!!(e.length<=a.cv1Constants.maxCorrelationVectorLength)},this.validateWithCv2=function(e){return!!a.cv2Constants.validationPattern.test(e)&&!!(e.length<=a.cv2Constants.maxCorrelationVectorLength)},this.increment=function(){return a.cvManager.incrementCv(),a.cvManager.getCurrentCvValue()},this.incrementExternal=function(e){if(a.isValid(e)){var t=e.split("."),n=t.length;t[n-1]=(parseInt(t[n-1],10)+1).toString();for(var r="",o=0;o<n;o++)r+=t[o],o<n-1&&(r+=".");var s=t[0].length===a.cv2Length?a.cv2Constants.maxCorrelationVectorLength:a.cv1Constants.maxCorrelationVectorLength;if(r.length<=s)return r}return""},this.reportEvent=function(e){var t=e.baseData,n={currentOperationName:t.operationName,operationName:t.dependencyOperationName,requestUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.serviceErrorCode,isSuccess:t.succeeded,httpMethod:t.requestMethod,contentType:t.responseContentType,httpStatusCode:t.protocolStatusCode,serviceName:t.dependencyName,serviceType:t.dependencyType,operationVersion:t.dependencyOperationVersion,responseSize:t.responseSizeBytes,errorMessage:e.message,retryCount:e.retryCount,customData:e.customData,cV:e.cV};a.qosLogger.reportOutgoingApi(n)},!t)throw Error("options must be specified.");this.willChangeSupportCors=!1}e.prototype.getTokenAndExecuteCommandIfTokenIsValid=function(e,t){var n=this.getAntiForgeryTokenForRequest(e);n&&t(n)},e.overrideRequestQosData=function(e,t,n,r){if((r||r.data)&&(t.overrideRequestQosData||e.overrideRequestQosData)){var o=r.data.baseData,a=r.data,s={isSuccess:o&&o.succeeded,latencyMs:o&&o.latencyMs,httpStatusCode:o&&o.protocolStatusCode,serviceErrorCode:o&&o.serviceErrorCode,errorMessage:a&&a.message};s.responseStatus=n.status,s.requestTimeout=t.timeout;var l=e7;t.overrideRequestQosData&&(l=t.overrideRequestQosData(t,n,s)),e7===l&&e.overrideRequestQosData&&(e.overrideRequestQosData(s),l=te),te===l&&(o&&(o.succeeded=s.isSuccess,o.latencyMs=s.latencyMs,o.protocolStatusCode=s.httpStatusCode,o.serviceErrorCode=s.serviceErrorCode),a&&(a.message=s.errorMessage))}},e.prototype.recordTimeSpan=function(e,t){var n=(new Date).getTime();if(t)return n-this.timers[e];this.timers[e]=n}}();var tC=function(){return function(){var e=this;this.ajaxGet=function(t){return e.performAjaxRequest("GET",t)},this.ajaxPost=function(t){return e.performAjaxRequest("POST",t)},this.ajaxPut=function(t){return e.performAjaxRequest("PUT",t)},this.ajaxDelete=function(t){return e.performAjaxRequest("DELETE",t)},this.getAntiForgeryToken=function(e,t){return{name:"antiforgery",value:"token"}},this.mockAjaxOperationResult=function(e,t){},this.clearAjaxOperationMocks=function(){},this.performAjaxRequest=function(e,t){return $.ajax($.extend({},t,{method:e}))}}}(),tk=function(){return function(){this.serialize=function(){return""},this.getProperty=function(e){return""},this.setProperty=function(e,t){},this.deleteProperty=function(e){return!1}}}(),tw=function(){return function(){this.getCurrentCvValue=function(){return"cv.1"},this.getCorrelationVectorFormFieldName=function(){return"cv"},this.seedCv=function(e){},this.incrementCv=function(){}}}();!function(){(function e(e){var t=this;this.options=e,this.initializationAttempt=0,this.initializers=[],this.biSinks=[],this.qosSinks=[],this.perfSinks=[],this.scenariosSinks=[],this.experimentsSinks=[],this.configurationUpdateSinks=[],this.pageViewOccurred=!1,this.executeOnPageViewQueue=[],this.maxErrorStringLength=100,this.timeoutMultiplier=100,this.scenarioStartPoints={},this.useAsGlobalTelemetryProvider=function(){window.BradburyTelemetry=t.toTelemetryProvider(),t.dom.setWindowLoadHandler(t.$notifyPageLoaded)},this.toTelemetryProvider=function(){return{cv:t.cvManager,cc:t.ccManager,qos:t,perf:t,bi:t,scenarios:t,experiments:t,ajax:t.ajaxTelemetry,utilities:t.utilities,configuration:t}},this.setCorrelationVectorManager=function(e){t.cvManager=e},this.setCorrelationContextManager=function(e){t.ccManager=e},this.setUtilityFunctions=function(e){t.utilities=e},this.setAjaxTelemetrySink=function(e){t.ajaxTelemetry=e},this.registerInitializer=function(e){t.initializers.push(e)},this.registerBiSink=function(e){t.biSinks.push(e)},this.registerQosSink=function(e){t.qosSinks.push(e)},this.registerPerfSink=function(e){t.perfSinks.push(e)},this.registerScenariosSink=function(e){t.scenariosSinks.push(e)},this.registerExperimentsSink=function(e){t.experimentsSinks.push(e)},this.registerTelemetryConfigurationUpdateSink=function(e){t.configurationUpdateSinks.push(e)},this.updateFlights=function(e){t.configurationUpdateSinks.forEach(function(t){return t.updateFlights(e)})},this.updateUserPuid=function(e){t.configurationUpdateSinks.forEach(function(t){return t.updateUserPuid(e)})},this.reportOutgoingApi=function(e){t.ccManager.deleteProperty("root-operation"),t.ccManager.setProperty("root-operation",e.operationName),t.reportQosOperation(function(t){return t.reportOutgoingApi(e)})},this.reportClientError=function(e){t.reportQosOperation(function(t){return t.reportClientError(e)})},this.reportFatalError=function(e){t.reportQosOperation(function(t){return t.reportFatalError(e)})},this.reportRawEvent=function(e){t.reportQosOperation(function(t){return t.reportRawEvent(e)})},this.reportViewPerformanceMetrics=function(e,n){t.reportClientPerformance(function(t){return t.reportViewPerformanceMetrics(e,n)})},this.$notifyPageLoaded=function(){t.setExperimentData(),t.reportBiOperation(function(e){return e.$notifyPageLoaded()}),!t.options.allowAutoPageView||t.dom.isPageOptedOutFromAutoPageView()||t.reportPageView({url:t.dom.getLocationHref(),viewId:t.dom.getPageId()})},this.reportClick=function(e){t.executeAfterPageView(function(){return t.reportBiOperation(function(t){return t.reportClick(e)})})},this.reportPartialView=function(e){t.executeAfterPageView(function(){return t.reportBiOperation(function(t){return t.reportPartialView(e)})})},this.reportPageView=function(e){if(t.setExperimentData(),e.$hosted)return void t.executeAfterPageView(function(){return t.reportBiOperation(function(t){return t.reportPageView(e)})});if(t.reportBiOperation(function(t){return t.reportPageView(e)}),t.executeOnPageViewQueue.length){var n=t.executeOnPageViewQueue;t.executeOnPageViewQueue=[];for(var r=0,o=n;r<o.length;r++)(0,o[r])()}t.pageViewOccurred=!0},this.reportSpaPageView=function(e){(t.setExperimentData(),e.$hosted)?t.executeAfterPageView(function(){return t.reportSpaPageViewImpl(e)}):t.reportSpaPageViewImpl(e)},this.getDefaultPlt=function(){return tu(t.dom)},this.getCurrentLocation=function(){return t.dom.getLocationHref()},this.getCurrentReferrer=function(){return t.dom.getReferrer()},this.getCurrentPageId=function(){return t.dom.getPageId()},this.getTrafficOriginator=function(){return t.dom.getCookie("tref").toLowerCase()},this.beginScenario=function(e,n,r){return t.$beginScenario({area:e,name:n,currentStep:eW,attribution:r&&r.attribution,data:r&&r.data}),n},this.beginMultiStepScenario=function(e,n,r,o){return t.$beginScenario({area:e,name:n,currentStep:eW,nextStep:r,attribution:o&&o.attribution,data:o&&o.data}),n},this.endScenario=function(e){t.$completeStep({area:e.area,name:e.name,currentStep:eW,nextStep:t.getVirtualStepNameForTaskResult(!1,e),successful:e.isSuccess,canceled:!1,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data,timeMsec:t.calculateScenarioTime(e)})},this.cancelScenario=function(e){t.$completeStep({area:e.area,name:e.name,currentStep:eW,nextStep:t.getVirtualStepNameForTaskResult(!0,e),successful:e.isSuccess,canceled:!0,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data,timeMsec:t.calculateScenarioTime(e)})},this.endStep=function(e){t.$completeStep({area:e.area,name:e.name,isStep:!0,currentStep:e.step,nextStep:e.next,successful:e.isSuccess,canceled:!1,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data})},this.cancelStep=function(e){t.$completeStep({area:e.area,name:e.name,isStep:!0,currentStep:e.step,nextStep:e.next,successful:e.isSuccess,canceled:!0,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data})},this.endMultiStepScenario=function(e){t.$completeStep({area:e.area,name:e.name,currentStep:e.step,nextStep:t.getVirtualStepNameForTaskResult(!1,e),successful:e.isSuccess,canceled:!1,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,timeMsec:t.calculateScenarioTime(e),data:e.data})},this.cancelMultiStepScenario=function(e){t.$completeStep({area:e.area,name:e.name,currentStep:e.step,nextStep:t.getVirtualStepNameForTaskResult(!0,e),successful:e.isSuccess,canceled:!0,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,timeMsec:t.calculateScenarioTime(e),data:e.data})},this.$beginScenario=function(e){t.ccManager.deleteProperty("scenario-id"),t.ccManager.deleteProperty("scenario-step"),t.ccManager.setProperty("scenario-id",t.getCorrelationScenarioId(e)),e.nextStep&&t.ccManager.setProperty("scenario-step",e.nextStep),t.executeAfterPageView(function(){var n=t.createScenarioId(e.area,e.name);t.scenarioStartPoints[n]=t.dom.getNow().getTime(),e.attribution=t.populateScenarioAttribution(e.attribution||{}),e.market=t.options.market,e.language=t.options.language,t.reportScenarioEvent(function(t){return t.$beginScenario(e)})})},this.$completeStep=function(e){t.ccManager.deleteProperty("scenario-id"),t.ccManager.deleteProperty("scenario-step"),e.isStep&&(t.ccManager.setProperty("scenario-id",t.getCorrelationScenarioId(e)),e.nextStep&&t.ccManager.setProperty("scenario-step",e.nextStep)),t.executeAfterPageView(function(){e.attribution=t.populateScenarioAttribution(e.attribution||{}),e.market=t.options.market,e.language=t.options.language,t.reportScenarioEvent(function(t){return t.$completeStep(e)})})},this.reportExperimentTrigger=function(e){t.reportExperimentOperation(function(t){return t.reportExperimentTrigger(e)})},this.getCorrelationScenarioId=function(e){return"".concat(e.area,".").concat(e.name)},this.executeAfterPageView=function(e){t.pageViewOccurred||t.options.$ignorePageViewQueue?e():t.executeOnPageViewQueue.push(e)},this.reportBiOperation=function(e){if(!t.initializers.length||t.initializeTelemetry(function(){return t.reportBiOperation(e)}))for(var n=0,r=t.biSinks;n<r.length;n++)e(r[n])},this.reportQosOperation=function(e){if(!t.initializers.length||t.initializeTelemetry(function(){return t.reportQosOperation(e)}))for(var n=0,r=t.qosSinks;n<r.length;n++)e(r[n])},this.reportClientPerformance=function(e){if(!t.initializers.length||t.initializeTelemetry(function(){return t.reportClientPerformance(e)}))for(var n=0,r=t.perfSinks;n<r.length;n++)e(r[n])},this.reportScenarioEvent=function(e){if(!t.initializers.length||t.initializeTelemetry(function(){return t.reportScenarioEvent(e)}))for(var n=0,r=t.scenariosSinks;n<r.length;n++)e(r[n])},this.reportExperimentOperation=function(e){if(!t.initializers.length||t.initializeTelemetry(function(){return t.reportExperimentOperation(e)}))for(var n=0,r=t.experimentsSinks;n<r.length;n++)e(r[n])},this.reportSpaPageViewImpl=function(e){var n=td(t.dom.getRealLocationHref()),r=t.dom.getSpaLocationHref();t.dom.setSpaPageId(e.viewId),t.dom.setSpaLocationHref("".concat(n.protocol.toLowerCase(),"//").concat(n.host.toLowerCase()).concat(tp(e.path)).concat(n.search)),r&&t.dom.setSpaReferrer(r),t.reportPageView({url:t.dom.getLocationHref(),viewId:e.viewId,pltMsec:e.pltMsec,$internalIsSpa:!0})},this.createScenarioId=function(e,t){return"".concat(e,".").concat(t)},this.calculateScenarioTime=function(e){var n=t.createScenarioId(e.area,e.name),r=0;return t.scenarioStartPoints[n]&&(r=t.dom.getNow().getTime()-t.scenarioStartPoints[n],delete t.scenarioStartPoints[n]),r},this.getVirtualStepNameForTaskResult=function(e,t){return e?t.isSuccess?eK:eX:t.isSuccess?eq:eG},this.getSafeStepErrorCodeValue=function(e){var n=e;return(n=(n=n||"").substr(0,t.maxErrorStringLength))&&!/^[0-9a-zA-Z-_. ]+$/.test(n)&&(n="InvalidErrorCodeValue_ReadDocumentation"),n},this.populateScenarioAttribution=function(e){var n="int",r="ext",o=t.getTrafficOriginator(),a=(e.flow||t.dom.getQueryParameter("fref")).toLowerCase();return a||(a=o?r:n),o||(o=n),e.origin=o,e.flow=a,e.owner=(e.owner||"").toLowerCase(),e},this.initializeTelemetry=function(e){if(!t.initializers.length)return!0;for(var n=[],r=0,o=t.initializers;r<o.length;r++){var a=o[r];a.initialize(t.initializationAttempt)||n.push(a)}return n.length?(t.initializationAttempt++,t.initializers=n,setTimeout(e,t.initializationAttempt*t.timeoutMultiplier),!1):(t.initializers=[],!0)},this.dom=e.dom||to(e.urlScrubber),this.cvManager=new tw,this.ccManager=new tk,this.ajaxTelemetry=new tC,this.utilities={}}).prototype.setExperimentData=function(){this.reportExperimentOperation(function(e){return e.setExperimentData()})}}();var tS=n(80212),t_="undefined",tE="constructor",tP="prototype",tI="function",tT="_dynInstFuncs",tD="_isDynProxy",tA="_dynClass",tR="_dynCls$",tN="_dynInstChk",tB=tN,tM="_dfOpts",tF="_unknown_",tO="__proto__",tL="_dyn"+tO,tH="__dynProto$Gbl",tz="_dynInstProto",tV="useBaseInst",tU="setInstFuncs",tj=Object,tW=tj.getPrototypeOf,tq=tj.getOwnPropertyNames,tG=function(){var e;return typeof globalThis!==t_&&(e=globalThis),e||typeof self===t_||(e=self),e||typeof window===t_||(e=window),e||typeof n.g===t_||(e=n.g),e||{}}(),tK=tG[tH]||(tG[tH]={o:((m={})[tU]=!0,m[tV]=!0,m),n:1e3});function tX(e,t){return e&&tj[tP].hasOwnProperty.call(e,t)}function tY(e){return e&&(e===tj[tP]||e===Array[tP])}function t$(e){return tY(e)||e===Function[tP]}function tQ(e){var t;if(e){if(tW)return tW(e);var n=e[tO]||e[tP]||(e[tE]?e[tE][tP]:null);t=e[tL]||n,tX(e,tL)||(delete e[tz],t=e[tL]=e[tz]||e[tL],e[tz]=n)}return t}function tJ(e,t){var n=[];if(tq)n=tq(e);else for(var r in e)"string"==typeof r&&tX(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function tZ(e,t,n){return t!==tE&&typeof e[t]===tI&&(n||tX(e,t))}function t0(e){throw TypeError("DynamicProto: "+e)}function t1(e){var t={};return tJ(e,function(n){!t[n]&&tZ(e,n,!1)&&(t[n]=e[n])}),t}function t2(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function t5(e,t,n,r){function o(e,t,n){var o=t[n];if(o[tD]&&r){var a=e[tT]||{};!1!==a[tB]&&(o=(a[t[tA]]||{})[n]||o)}return function(){return o.apply(e,arguments)}}var a={};tJ(n,function(e){a[e]=o(t,n,e)});for(var s=tQ(e),l=[];s&&!t$(s)&&!t2(l,s);)tJ(s,function(e){!a[e]&&tZ(s,e,!tW)&&(a[e]=o(t,s,e))}),l.push(s),s=tQ(s);return a}function t4(e,t,n,r){var o=null;if(e&&tX(n,tA)){var a=e[tT]||{};if((o=(a[n[tA]]||{})[t])||t0("Missing ["+t+"] "+tI),!o[tN]&&!1!==a[tB]){for(var s=!tX(e,t),l=tQ(e),c=[];s&&l&&!t$(l)&&!t2(c,l);){var u=l[t];if(u){s=u===r;break}c.push(l),l=tQ(l)}try{s&&(e[t]=o),o[tN]=1}catch(e){a[tB]=!1}}}return o}function t3(e,t,n){var r=t[e];return r===n&&(r=tQ(t)[e]),typeof r!==tI&&t0("["+e+"] is not a "+tI),r}function t6(e,t,n,r,o){function a(e,t){var n=function(){return(t4(this,t,e,n)||t3(t,e,n)).apply(this,arguments)};return n[tD]=1,n}if(!tY(e)){var s=n[tT]=n[tT]||{},l=s[t]=s[t]||{};!1!==s[tB]&&(s[tB]=!!o),tJ(n,function(t){tZ(n,t,!1)&&n[t]!==r[t]&&(l[t]=n[t],delete n[t],tX(e,t)&&(!e[t]||e[t][tD])||(e[t]=a(e,t)))})}}function t8(e,t){if(tW){for(var n=[],r=tQ(t);r&&!t$(r)&&!t2(n,r);){if(r===e)return!0;n.push(r),r=tQ(r)}return!1}return!0}function t9(e,t){return tX(e,tP)?e.name||t||tF:((e||{})[tE]||{}).name||t||tF}function t7(e,t,n,r){tX(e,tP)||t0("theClass is an invalid class definition.");var o=e[tP];t8(o,t)||t0("["+t9(e)+"] not in hierarchy of ["+t9(t)+"]");var a=null;tX(o,tA)?a=o[tA]:(a=tR+t9(e,"_")+"$"+tK.n,tK.n++,o[tA]=a);var s=t7[tM],l=!!s[tV];l&&r&&void 0!==r[tV]&&(l=!!r[tV]);var c=t1(t),u=t5(o,t,c,l);n(t,u);var d=!!tW&&!!s[tU];d&&r&&(d=!!r[tU]),t6(o,a,t,c,!1!==d)}t7[tM]=tK.o;var ne="initialize",nt="name",nn="getNotifyMgr",nr="identifier",no="push",ni="isInitialized",na="config",ns="instrumentationKey",nl="logger",nc="length",nu="time",nd="processNext",np="getProcessTelContext",nf="addNotificationListener",nh="removeNotificationListener",nm="stopPollingInternalLogs",ng="onComplete",nv="getPlugin",ny="flush",nb="_extensions",nx="splice",nC="teardown",nk="messageId",nw="message",nS="isAsync",n_="_doTeardown",nE="update",nP="getNext",nI="diagLog",nT="setNextPlugin",nD="createNew",nA="cookieCfg",nR="indexOf",nN="substring",nB="userAgent",nM="split",nF="setEnabled",nO="substr",nL="nodeType",nH="apply",nz="replace",nV="enableDebugExceptions",nU="logInternalMessage",nj="toLowerCase",nW="call",nq="type",nG="handler",nK="listeners",nX="isChildEvt",nY="getCtx",n$="setCtx",nQ="complete",nJ="traceId",nZ="spanId",n0="traceFlags",n1="version",n2=n(27245),n5=n(29381),n4="",n3="channels",n6="core",n8="createPerfMgr",n9="disabled",n7="extensionConfig",re="extensions",rt="processTelemetry",rn="priority",rr="eventsSent",ro="eventsDiscarded",ri="eventsSendRequest",ra="perfEvent",rs="errorToConsole",rl="warnToConsole",rc="getPerfMgr",ru="toISOString",rd="endsWith",rp="startsWith",rf="indexOf",rh="map",rm="trim",rg="toString",rv="__proto__",ry="constructor",rb=n2.KU,rx=n2.s6.freeze;n2.s6.seal;var rC=n2.s6.keys,rk=String[n2.vR],rw=rk[rm],rS=rk[rd],r_=rk[rp],rE=Date[n2.vR][ru],rP=Array.isArray,rI=n2.Wy[rg],rT=n2.J$[rg],rD=rT[nW](n2.s6),rA=/-([a-z])/g,rR=/([^\w\d_$])/g,rN=/^(\d+[\w\d_$])/,rB=Object.getPrototypeOf;function rM(e){if(e){if(rB)return rB(e);var t=e[rv]||e[n2.vR]||e[ry];if(t)return t}return null}function rF(e){return void 0===e||typeof e===n2.bA}function rO(e){return null===e||rF(e)}function rL(e){return!rO(e)}function rH(e,t){return!!(e&&n2.J$[nW](e,t))}function rz(e){return!!(e&&typeof e===n2._1)}function rV(e){return!!(e&&typeof e===n2.hW)}function rU(e){var t=e;return t&&rJ(t)&&(t=(t=(t=t[nz](rA,function(e,t){return t.toUpperCase()}))[nz](rR,"_"))[nz](rN,function(e,t){return"_"+t})),t}function rj(e,t){if(e)for(var n in e)n2.J$[nW](e,n)&&t[nW](e,n,e[n])}function rW(e,t){var n=!1;return!e||!t||(n=e===t)||(n=rS?e[rd](t):rq(e,t)),n}function rq(e,t){var n=!1,r=t?t[nc]:0,o=e?e[nc]:0;if(r&&o&&o>=r&&!(n=e===t)){for(var a=o-1,s=r-1;s>=0;s--){if(e[a]!=t[s])return!1;a--}n=!0}return n}function rG(e,t){var n=!1;return!e||!t||(n=e===t)||(n=r_?e[rp](t):rK(e,t)),n}function rK(e,t){var n=!1,r=t?t[nc]:0;if(e&&r&&e[nc]>=r&&!(n=e===t)){for(var o=0;o<r;o++)if(e[o]!==t[o])return!1;n=!0}return n}function rX(e,t){return!!e&&!!t&&-1!==e[nR](t)}var rY=rP||r$;function r$(e){return!!(e&&"[object Array]"===rI[nW](e))}function rQ(e){return!!(e&&"[object Error]"===rI[nW](e))}function rJ(e){return"string"==typeof e}function rZ(e){return"number"==typeof e}function r0(e){return"boolean"==typeof e}function r1(e){var t=!1;if(e&&"object"==typeof e){var n=rB?rB(e):rM(e);n?(n[ry]&&n2.J$[nW](n,ry)&&(n=n[ry]),t=typeof n===n2.hW&&rT[nW](n)===rD):t=!0}return t}function r2(e){if(e)return rE?e[ru]():r5(e)}function r5(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[nc]&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function r4(e,t,n){var r=e[nc];try{for(var o=0;o<r&&(!(o in e)||-1!==t[nW](n||e,e[o],o,e));o++);}catch(e){}}function r3(e,t,n){if(e){if(e[rf])return e[rf](t,n);var r=e[nc],o=n||0;try{for(var a=Math.max(o>=0?o:r-Math.abs(o),0);a<r;a++)if(a in e&&e[a]===t)return a}catch(e){}}return -1}function r6(e,t,n){var r;if(e){if(e[rh])return e[rh](t,n);var o=e[nc],a=n||e;r=Array(o);try{for(var s=0;s<o;s++)s in e&&(r[s]=t[nW](a,e[s],e))}catch(e){}}return r}function r8(e){return e&&(e=rw&&e[rm]?e[rm]():e[nz]?e[nz](/^\s+|(?=\s)\s+$/g,n4):e),e}var r9=!({toString:null}).propertyIsEnumerable("toString"),r7=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function oe(e){var t=typeof e;if(t!==n2.hW&&(t!==n2._1||null===e)&&(0,n5.zk)("objKeys called on non-object"),!r9&&rC)return rC(e);var n=[];for(var r in e)e&&n2.J$[nW](e,r)&&n[no](r);if(r9)for(var o=r7[nc],a=0;a<o;a++)e&&n2.J$[nW](e,r7[a])&&n[no](r7[a]);return n}function ot(e,t,n,r){if(rb)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),rb(e,t,o),!0}catch(e){}return!1}function on(e){return e}function or(e){return rx&&rj(e,function(e,t){(rY(t)||rz(t))&&rx(t)}),oo(e)}var oo=rx||on;function oi(){var e=Date;return e.now?e.now():new e().getTime()}function oa(e){return rQ(e)?e[nt]:n4}function os(e,t,n,r,o){var a=n;return e&&(a=e[t])!==n&&(!o||o(a))&&(!r||r(n))&&(a=n,e[t]=a),a}function ol(e,t,n){var r;return e?!(r=e[t])&&rO(r)&&(r=rF(n)?{}:n,e[t]=r):r=rF(n)?{}:n,r}function oc(e,t){return rO(e)?t:e}function ou(e){return!!e}function od(e){throw Error(e)}function op(e,t){var n=null,r=null;return rV(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][nH](r,e)}}function of(e,t,n){if(e&&t&&rz(e)&&rz(t)){var r=function(r){if(rJ(r)){var o=t[r];rV(o)?(!n||n(r,!0,t,e))&&(e[r]=op(t,r)):(!n||n(r,!1,t,e))&&(rH(e,r)&&delete e[r],ot(e,r,function(){return t[r]},function(e){t[r]=e})||(e[r]=o))}};for(var o in t)r(o)}return e}function oh(e,t,n,r,o){e&&t&&n&&(!1!==o||rF(e[t]))&&(e[t]=op(n,r))}function om(e,t,n,r){return e&&t&&rz(e)&&rY(n)&&r4(n,function(n){rJ(n)&&oh(e,n,t,n,r)}),e}function og(e){return function(){return function(){var t=this;e&&rj(e,function(e,n){t[e]=n})}}()}function ov(e){return e&&n2.zi&&(e=(0,n2.s6)((0,n2.zi)({},e))),e}function oy(e,t,n,r,o,a){var s=arguments,l=s[0]||{},c=s[nc],u=!1,d=1;for(c>0&&r0(l)&&(u=l,l=s[d]||{},d++),rz(l)||(l={});d<c;d++){var p=s[d],f=rY(p),h=rz(p);for(var m in p)if(f&&m in p||h&&n2.J$[nW](p,m)){var g=p[m],v=void 0;if(u&&g&&((v=rY(g))||r1(g))){var y=l[m];v?rY(y)||(y=[]):r1(y)||(y={}),g=oy(u,y,g)}void 0!==g&&(l[m]=g)}}return l}var ob="ctx",ox="ParentContextKey",oC="ChildrenContextKey",ok=null,ow=function(){function e(t,n,r){var o,a=this,s=!1;a.start=oi(),a[nt]=t,a[nS]=r,a[nX]=function(){return!1},rV(n)&&(s=ot(a,"payload",function(){return!o&&rV(n)&&(o=n(),n=null),o})),a[nY]=function(t){return t?t===e[ox]||t===e[oC]?a[t]:(a[ob]||{})[t]:null},a[n$]=function(t,n){t&&(t===e[ox]?(a[t]||(a[nX]=function(){return!0}),a[t]=n):t===e[oC]?a[t]=n:(a[ob]=a[ob]||{})[t]=n)},a[nQ]=function(){var t=0,r=a[nY](e[oC]);if(rY(r))for(var o=0;o<r[nc];o++){var l=r[o];l&&(t+=l[nu])}a[nu]=oi()-a.start,a.exTime=a[nu]-t,a[nQ]=function(){},!s&&rV(n)&&(a.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),oS=function(){function e(t){this.ctx={},t7(e,this,function(e){e.create=function(e,t,n){return new ow(e,t,n)},e.fire=function(e){e&&(e[nQ](),t&&rV(t[ra])&&t[ra](e))},e[n$]=function(t,n){t&&((e[ob]=e[ob]||{})[t]=n)},e[nY]=function(t){return(e[ob]||{})[t]}})}return e.__ieDyn=1,e}(),o_="CoreUtils.doPerf";function oE(e,t,n,r,o){if(e){var a=e;if(a[rc]&&(a=a[rc]()),a){var s=void 0,l=a[nY](o_);try{if(s=a.create(t(),r,o)){if(l&&s[n$]&&(s[n$](ow[ox],l),l[nY]&&l[n$])){var c=l[nY](ow[oC]);c||(c=[],l[n$](ow[oC],c)),c[no](s)}return a[n$](o_,s),n(s)}}catch(e){s&&s[n$]&&s[n$]("exception",e)}finally{s&&a.fire(s),a[n$](o_,l)}}}return n()}function oP(){return ok}var oI="window",oT="document",oD="documentMode",oA="navigator",oR="history",oN="location",oB="console",oM="performance",oF="JSON",oO="crypto",oL="msCrypto",oH="ReactNative",oz="msie",oV="trident/",oU="XMLHttpRequest",oj=null,oW=null,oq=!1,oG=null,oK=null;function oX(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[n2.vR];r&&(n=t in r)}}catch(e){}if(!n)try{var o=new e;n=!rF(o[t])}catch(e){}}return n}function oY(e){var t=(0,n5.mS)();return t&&t[e]?t[e]:e===oI&&o$()?window:null}function o$(){return!!(typeof window===n2._1&&window)}function oQ(){return o$()?window:oY(oI)}function oJ(){return!!(typeof document===n2._1&&document)}function oZ(){return oJ()?document:oY(oT)}function o0(){return!!(typeof navigator===n2._1&&navigator)}function o1(){return o0()?navigator:oY(oA)}function o2(){return!!(typeof history===n2._1&&history)}function o5(){return o2()?history:oY(oR)}function o4(e){if(e&&oq){var t=oY("__mockLocation");if(t)return t}return typeof location===n2._1&&location?location:oY(oN)}function o3(){return typeof console!==n2.bA?console:oY(oB)}function o6(){return oY(oM)}function o8(){return!!(typeof JSON===n2._1&&JSON||null!==oY(oF))}function o9(){return o8()?JSON||oY(oF):null}function o7(){return oY(oO)}function ie(){return oY(oL)}function it(){var e=o1();return!!e&&!!e.product&&e.product===oH}function ir(){var e=o1();if(e&&(e[nB]!==oW||null===oj)){var t=((oW=e[nB])||n4)[nj]();oj=rX(t,oz)||rX(t,oV)}return oj}function io(e){if(void 0===e&&(e=null),!e){var t=o1()||{};e=t?(t[nB]||n4)[nj]():n4}var n=(e||n4)[nj]();if(rX(n,oz)){var r=oZ()||{};return Math.max(parseInt(n[nM](oz)[1]),r[oD]||0)}if(rX(n,oV)){var o=parseInt(n[nM](oV)[1]);if(o)return o+4}return null}function ii(e){var t=Object[n2.vR].toString[nW](e),n=n4;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[nt]+"'":o8()&&(n=o9().stringify(e)),t+n}function ia(){return null===oK&&(oK=o0()&&!!o1().sendBeacon),oK}function is(e){var t=!1;try{t=!!oY("fetch");var n=oY("Request");t&&e&&n&&(t=oX(n,"keepalive"))}catch(e){}return t}function il(){return null===oG&&(oG=typeof XDomainRequest!==n2.bA)&&ic()&&(oG=oG&&!oX(oY(oU),"withCredentials")),oG}function ic(){var e=!1;try{e=!!oY(oU)}catch(e){}return e}var iu=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],id=null;function ip(e,t){return function(){var n=arguments,r=im(t);if(r){var o=r.listener;o&&o[e]&&o[e][nH](o,n)}}}function ih(){var e=oY("Microsoft");return e&&(id=e.ApplicationInsights),id}function im(e){var t=id;return t||!0===e.disableDbgExt||(t=id||ih()),t?t.ChromeDbgExt:null}function ig(e){if(!g){g={};for(var t=0;t<iu[nc];t++)g[iu[t]]=ip(iu[t],e)}return g}var iv="AI (Internal): ",iy="AI: ",ib="AITR_";function ix(e){return e?'"'+e[nz](/\"/g,n4)+'"':n4}function iC(e,t){var n=o3();if(n){var r="log";n[e]&&(r=e),rV(n[r])&&n[r](t)}}var ik=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o[nk]=e,o[nw]=(n?iy:iv)+e;var a=n4;o8()&&(a=o9().stringify(r));var s=(t?" message:"+ix(t):n4)+(r?" props:"+ix(a):n4);o[nw]+=s}return e.dataType="MessageData",e}();function iw(e,t){return(e||{})[nl]||new iS(t)}var iS=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,r,o,a,s=0,l={};t7(e,this,function(e){function c(t,n){if(!u()){var a=!0,c=ib+n[nk];if(l[c]?a=!1:l[c]=!0,a&&(t<=r&&(e.queue[no](n),s++,d(1===t?"error":"warn",n)),s===o)){var p="Internal events throttle limit per PageView reached for this app.",f=new ik(23,p,!1);e.queue[no](f),1===t?e[rs](p):e[rl](p)}}}function u(){return s>=o}function d(e,n){var r=im(t||{});r&&r[nI]&&r[nI](e,n)}(function e(e){n=oc(e.loggingLevelConsole,0),r=oc(e.loggingLevelTelemetry,1),o=oc(e.maxMessageLimit,25),a=oc(e.enableDebug,oc(e[nV],!1))})(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return r},e.maxInternalMessageLimit=function(){return o},e[nV]=function(){return a},e.throwInternal=function(t,r,o,s,u){void 0===u&&(u=!1);var p=new ik(r,o,u,s);if(a)throw ii(p);var f=1===t?rs:rl;if(rF(p[nw]))d("throw"+(1===t?"Critical":"Warning"),p);else{if(u){var h=+p[nk];!l[h]&&n>=t&&(e[f](p[nw]),l[h]=!0)}else n>=t&&e[f](p[nw]);c(t,p)}},e[rl]=function(e){iC("warn",e),d("warning",e)},e[rs]=function(e){iC("error",e),d("error",e)},e.resetInternalMessageCount=function(){s=0,l={}},e[nU]=c})}return e.__ieDyn=1,e}();function i_(e){return e||new iS}function iE(e,t,n,r,o,a){void 0===a&&(a=!1),i_(e).throwInternal(t,n,r,o,a)}function iP(e,t){i_(e)[rl](t)}var iI=0x100000000,iT=0xffffffff,iD=!1,iA=0x75bcd15,iR=0x3ade68b1;function iN(e){e<0&&(e>>>=0),iA=0x75bcd15+e&iT,iR=0x3ade68b1-e&iT,iD=!0}function iB(){try{var e=0x7fffffff&oi();iN((Math.random()*iI^e)+e)}catch(e){}}function iM(e){var t=0,n=o7()||ie();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&iT),0===t&&ir()&&(iD||iB(),t=iF()&iT),0===t&&(t=Math.floor(iI*Math.random()|0)),e||(t>>>=0),t}function iF(e){var t=((iR=36969*(65535&iR)+(iR>>16)&iT)<<16)+(65535&(iA=18e3*(65535&iA)+(iA>>16)&iT))>>>0&iT;return e||(t>>>=0),t}function iO(e){void 0===e&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=iM()>>>0,r=0,o=n4;o[nc]<e;)r++,o+=t.charAt(63&n),n>>>=6,5===r&&(n=(iM()<<2|3&n)>>>0,r=0);return o}var iL=null;function iH(){var e=iV();return e[nN](0,8)+"-"+e[nN](8,12)+"-"+e[nN](12,16)+"-"+e[nN](16,20)+"-"+e[nN](20)}function iz(){var e=o6();return e&&e.now?e.now():oi()}function iV(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=n4,r=0;r<4;r++)n+=t[15&(e=iM())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&iM())|0];return n[nO](0,8)+n[nO](9,4)+"4"+n[nO](13,3)+o+n[nO](16,3)+n[nO](19,12)}var iU=null,ij="",iW="https://browser.events.data.microsoft.com/OneCollector/1.0/",iq="version",iG="properties",iK="1DS-Web-JS-3.2.14",iX="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",iY="withCredentials",i$="timeout",iQ=((y={})[0]=0,y[2]=6,y[1]=1,y[3]=7,y[4098]=6,y[4097]=1,y[4099]=7,y),iJ=!!oZ(),iZ=!!oQ();function i0(e){return!(e===ij||rO(e))}function i1(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return ij}function i2(e){return!!(e&&rZ(e))&&!!(e>=1)&&!!(e<=4)}function i5(e,t,n){if(!t&&!i0(t)||"string"!=typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||rY(t))t={value:t};else if("object"!==r||n2.J$.call(t,"value")){if(rO(t.value)||t.value===ij||!rJ(t.value)&&!rZ(t.value)&&!r0(t.value)&&!rY(t.value))return null}else t={value:n?JSON.stringify(t):t};if(rY(t.value)&&!at(t.value))return null;if(!rO(t.kind)){if(rY(t.value)||!i7(t.kind))return null;t.value=t.value.toString()}return t}function i4(e,t,n){var r=-1;if(!rF(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),ae(n))-1===r&&(r=0),r|=n;else{var o=iQ[ar(e)]||-1;-1!==r&&-1!==o?r|=o:6===o&&(r=o)}return r}function i3(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||ij}function i6(e){void 0===e&&(e="D");var t=iH();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,ij)),t}function i8(e,t,n,r,o){var a={},s=!1,l=0,c=arguments.length,u=Object[n2.vR],d=arguments;for("[object Boolean]"===u.toString.call(d[0])&&(s=d[0],l++);l<c;l++){var e=d[l];rj(e,function(e,t){s&&t&&rz(t)?rY(t)?(a[e]=a[e]||[],r4(t,function(t,n){t&&rz(t)?a[e][n]=i8(!0,a[e][n],t):a[e][n]=t})):a[e]=i8(!0,a[e],t):a[e]=t})}return a}var i9=iz;function i7(e){return 0===e||!!(e>0)&&!!(e<=13)||32===e}function ae(e){return!!(e>=0)&&!!(e<=9)}function at(e){return e.length>0}function an(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=i9()}function ar(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===n2._1&&(t=4,rY(e)?(t=4096,e.length>0&&(t|=ar(e[0]))):n2.J$.call(e,"value")&&(t=8192|ar(e.value)))}return t}function ao(){return!!oY("chrome")}function ai(e,t,n,r,o,a){function s(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===o&&(o=!1);var l=new XMLHttpRequest;return r&&s(l,iX,r),n&&s(l,iY,n),l.open(e,t,!o),n&&s(l,iY,n),!o&&a&&s(l,i$,a),l}var aa=n2.KU,as="2.8.16",al="."+iO(6),ac=0;function au(e,t,n){if(aa)try{return aa(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return!1}function ad(e){return 1===e[nL]||9===e[nL]||!+e[nL]}function ap(e,t){var n=t[e.id];if(!n){n={};try{ad(t)&&!au(t,e.id,n)&&(t[e.id]=n)}catch(e){}}return n}function af(e,t){return void 0===t&&(t=!1),rU(e+ac+++(t?"."+as:n4)+al)}function ah(e){var t={id:af("_aiData-"+(e||n4)+"."+as),accept:function(e){return ad(e)},get:function(e,n,r,o){var a=e[t.id];return a?a[rU(n)]:(o&&((a=ap(t,e))[rU(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}var am=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,ag="00",av="ff",ay="00000000000000000000000000000000",ab="0000000000000000";function ax(e,t,n){return!!e&&e[nc]===t&&e!==n&&!!e.match(/^[\da-f]*$/i)}function aC(e,t,n){return ax(e,t)?e:n}function ak(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[nc]<2;)t="0"+t;return t}function aw(e,t,n,r){var o;return(o={})[n1]=ax(r,2,av)?r:ag,o[nJ]=aS(e)?e:iV(),o.spanId=a_(t)?t:iV()[nO](0,16),o.traceFlags=n>=0&&n<=255?n:1,o}function aS(e){return ax(e,32,ay)}function a_(e){return ax(e,16,ab)}function aE(e){if(e){var t=ak(e[n0]);ax(t,2)||(t="01");var n=e[n1]||ag;return"00"!==n&&"ff"!==n&&(n=ag),"".concat(n.toLowerCase(),"-").concat(aC(e.traceId,32,ay).toLowerCase(),"-").concat(aC(e.spanId,16,ab).toLowerCase(),"-").concat(t.toLowerCase())}return""}var aP=ah("plugin");function aI(e){return aP.get(e,"state",{},!0)}function aT(e,t){for(var n,r=[],o=null,a=e[nP]();a;){var s=a[nv]();if(s){o&&rV(o[nT])&&rV(s[rt])&&o[nT](s);var l=!1;(l=rV(s[ni])?s[ni]():(n=aI(s))[ni])||r[no](s),o=s,a=a[nP]()}}r4(r,function(r){var o=e[n6]();r[ne](e.getCfg(),o,t,e[nP]()),n=aI(r),r[n6]||n[n6]||(n[n6]=o),n[ni]=!0,delete n[nC]})}function aD(e){return e.sort(function(e,t){var n=0;if(t){var r=rV(t[rt]);rV(e[rt])?n=r?e[rn]-t[rn]:1:r&&(n=-1)}else n=e?1:-1;return n})}function aA(e){var t={};return{getName:function(){return t[nt]},setName:function(n){e&&e.setName(n),t[nt]=n},getTraceId:function(){return t[nJ]},setTraceId:function(n){e&&e.setTraceId(n),aS(n)&&(t[nJ]=n)},getSpanId:function(){return t[nZ]},setSpanId:function(n){e&&e.setSpanId(n),a_(n)&&(t[nZ]=n)},getTraceFlags:function(){return t[n0]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[n0]=n}}}var aR="TelemetryPluginChain",aN="_hasRun",aB="_getTelCtx",aM=0;function aF(e,t,n){for(;e;){if(e[nv]()===n)return e;e=e[nP]()}return aV([n],t[na]||{},t)}function aO(e,t,n,r){var o=null,a=[];null!==r&&(o=r?aF(e,n,r):e);var s={_next:c,ctx:{core:function(){return n},diagLog:function(){return iw(n,t)},getCfg:function(){return t},getExtCfg:u,getConfig:d,hasNext:function(){return!!o},getNext:function(){return o},setNext:function(e){o=e},iterate:p,onComplete:l}};function l(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&a[no]({func:e,self:rF(t)?s.ctx:t,args:n})}function c(){var e=o;if(o=e?e[nP]():null,!e){var t=a;t&&t[nc]>0&&(r4(t,function(e){try{e.func[nW](e.self,e.args)}catch(e){iE(n[nl],2,73,"Unexpected Exception during onComplete - "+ii(e))}}),a=[])}return e}function u(e,n,r){if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o,a=t[n7];a&&e&&(o=a[e])}if(o){if(rz(n)&&0!==r){var s=oy(!0,n,o);t&&2===r&&rj(n,function(e){if(rO(s[e])){var n=t[e];rO(n)||(s[e]=n)}}),o=s}}else o=n;return o}function d(e,n,r){void 0===r&&(r=!1);var o,a=u(e,null);return a&&!rO(a[n])?o=a[n]:t&&!rO(t[n])&&(o=t[n]),rO(o)?r:o}function p(e){for(var t;t=s._next();){var n=t[nv]();n&&e(n)}}return s}function aL(e,t,n,r){var o=aO(e,t,n,r),a=o.ctx;function s(e){var t=o._next();return t&&t[rt](e,a),!t}function l(e,r){return void 0===e&&(e=null),rY(e)&&(e=aV(e,t,n,r)),aL(e||a[nP](),t,n,r)}return a[nd]=s,a[nD]=l,a}function aH(e,t,n){var r=t[na]||{},o=aO(e,r,t,n),a=o.ctx;function s(e){var t=o._next();return t&&t.unload(a,e),!t}function l(e,n){return void 0===e&&(e=null),rY(e)&&(e=aV(e,r,t,n)),aH(e||a[nP](),t,n)}return a[nd]=s,a[nD]=l,a}function az(e,t,n){var r=t[na]||{},o=aO(e,r,t,n).ctx;function a(e){return o.iterate(function(t){rV(t[nE])&&t[nE](o,e)})}function s(e,n){return void 0===e&&(e=null),rY(e)&&(e=aV(e,r,t,n)),az(e||o[nP](),t,n)}return o[nd]=a,o[nD]=s,o}function aV(e,t,n,r){var o=null,a=!r;if(rY(e)&&e[nc]>0){var s=null;r4(e,function(e){if(a||r!==e||(a=!0),a&&e&&rV(e[rt])){var l=aU(e,t,n);o||(o=l),s&&s._setNext(l),s=l}})}return r&&!o?aV([r],t,n):o}function aU(e,t,n){var r,o=null,a=rV(e[rt]),s=rV(e[nT]),l={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:d,unload:p,update:f,_id:r=e?e[nr]+"-"+e[rn]+"-"+aM++:"Unknown-0-"+aM++,_setNext:function(e){o=e}};function c(){var r;return e&&rV(e[aB])&&(r=e[aB]()),r||(r=aL(l,t,n)),r}function u(t,n,a,s,l){var c=!1,u=e?e[nr]:aR,d=t[aN];return d||(d=t[aN]={}),t.setNext(o),e&&oE(t[n6](),function(){return u+":"+a},function(){d[r]=!0;try{var e=o?o._id:n4;e&&(d[e]=!1),c=n(t)}catch(e){var s=!o||d[o._id];s&&(c=!0),o&&s||iE(t[nI](),1,73,"Plugin ["+u+"] failed during "+a+" - "+ii(e)+", run flags: "+ii(d))}},s,l),c}function d(t,n){function r(n){if(!e||!a)return!1;var r=aI(e);return!r[nC]&&!r[n9]&&(s&&e[nT](o),e[rt](t,n),!0)}u(n=n||c(),r,"processTelemetry",function(){return{item:t}},!t.sync)||n[nd](t)}function p(t,n){function r(){var r=!1;if(e){var o=aI(e),a=e[n6]||o[n6];e&&(!a||a===t.core())&&!o[nC]&&(o[n6]=null,o[nC]=!0,o[ni]=!1,e[nC]&&!0===e[nC](t,n)&&(r=!0))}return r}u(t,r,"unload",function(){},n[nS])||t[nd](n)}function f(t,n){function r(){var r=!1;if(e){var o=aI(e),a=e[n6]||o[n6];e&&(!a||a===t.core())&&!o[nC]&&e[nE]&&!0===e[nE](t,n)&&(r=!0)}return r}u(t,r,"update",function(){},!1)||t[nd](n)}return oo(l)}var aj=500,aW="Channel has invalid priority - ";function aq(e,t,n){t&&rY(t)&&t[nc]>0&&(r4(t=t.sort(function(e,t){return e[rn]-t[rn]}),function(e){e[rn]<aj&&od(aW+e[nr])}),e[no]({queue:oo(t),chain:aV(t,n[na],n)}))}function aG(e,t){function n(){return aL(null,t[na],t,null)}function r(e,t,n,r){var o=e?e[nc]+1:1;function a(){0==--o&&(r&&r(),r=null)}o>0&&r4(e,function(e){if(e&&e.queue[nc]>0){var r=e.chain,s=t[nD](r);s[ng](a),n(s)}else o--}),a()}var o=!1;return{identifier:"ChannelControllerPlugin",priority:aj,initialize:function(t,n,r,a){o=!0,r4(e,function(e){e&&e.queue[nc]>0&&aT(aL(e.chain,t,n),r)})},isInitialized:function(){return o},processTelemetry:function(t,o){r(e,o||n(),function(e){e[nd](t)},function(){o[nd](t)})},update:function(t,n){var o=n||{reason:0};return r(e,t,function(e){e[nd](o)},function(){t[nd](o)}),!0},pause:function(){r(e,n(),function(e){e.iterate(function(e){e.pause&&e.pause()})},null)},resume:function(){r(e,n(),function(e){e.iterate(function(e){e.resume&&e.resume()})},null)},teardown:function(t,n){var a=n||{reason:0,isAsync:!1};return r(e,t,function(e){e[nd](a)},function(){t[nd](a),o=!1}),!0},getChannel:function(t){var n=null;return e&&e[nc]>0&&r4(e,function(e){if(e&&e.queue[nc]>0&&(r4(e.queue,function(e){if(e[nr]===t)return n=e,-1}),n))return -1}),n},flush:function(t,o,a,s){var l=1,c=!1,u=null;function d(){l--,c&&0===l&&(u&&(clearTimeout(u),u=null),o&&o(c),o=null)}return s=s||5e3,r(e,n(),function(e){e.iterate(function(e){if(e[ny]){l++;var n=!1;e[ny](t,function(){n=!0,d()},a)||n||(t&&null==u?u=setTimeout(function(){u=null,d()},s):d())}})},function(){c=!0,d()}),!0},_setQueue:function(t){e=t}}}function aK(e,t,n){var r=[];if(e&&r4(e,function(e){return aq(r,e,n)}),t){var o=[];r4(t,function(e){e[rn]>aj&&o[no](e)}),aq(r,o,n)}return r}var aX="toGMTString",aY="toUTCString",a$="cookie",aQ="expires",aJ="enabled",aZ="isCookieUseDisabled",a0="disableCookiesUsage",a1="_ckMgr",a2=null,a5=null,a4=null,a3=oZ(),a6={},a8={};function a9(e,t){var n=so[a1]||a8[a1];return n||(n=so[a1]=so(e,t),a8[a1]=n),n}function a7(e){return!e||e.isEnabled()}function se(e){var t=e[nA]=e[nA]||{};if(os(t,"domain",e.cookieDomain,rL,rO),os(t,"path",e.cookiePath||"/",null,rO),rO(t[aJ])){var n=void 0;rF(e[aZ])||(n=!e[aZ]),rF(e[a0])||(n=!e[a0]),t[aJ]=n}return t}function st(e,t){return!!(t&&e&&rY(e.ignoreCookies))&&-1!==e.ignoreCookies[nR](t)}function sn(e,t){return!!(t&&e&&rY(e.blockedCookies))&&-1!==e.blockedCookies[nR](t)||st(e,t)}function sr(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t[nA];n=r[a1]?r[a1]:so(t)}return n||(n=a9(t,(e||{})[nl])),n}function so(e,t){var n,r=se(e||a8),o=r.path||"/",a=r.domain,s=!1!==r[aJ],l=((n={isEnabled:function(){var e=s&&si(t),n=a8[a1];return e&&n&&l!==n&&(e=a7(n)),e}})[nF]=function(e){s=!1!==e},n.set=function(e,t,n,s,c){var u=!1;if(a7(l)&&!sn(r,e)){var d={},p=r8(t||n4),f=p[nR](";");if(-1!==f&&(p=r8(t[nN](0,f)),d=sa(t[nN](f+1))),os(d,"domain",s||a,ou,rF),!rO(n)){var h=ir();if(rF(d[aQ])){var m=oi()+1e3*n;if(m>0){var g=new Date;g.setTime(m),os(d,aQ,ss(g,h?aX:aY)||ss(g,h?aX:aY)||n4,ou)}}h||os(d,"max-age",n4+n,null,rF)}var v=o4();v&&"https:"===v.protocol&&(os(d,"secure",null,null,rF),null===a5&&(a5=!sd((o1()||{})[nB])),a5&&os(d,"SameSite","None",null,rF)),os(d,"path",c||o,null,rF),(r.setCookie||su)(e,sl(p,d)),u=!0}return u},n.get=function(e){var t=n4;return a7(l)&&!st(r,e)&&(t=(r.getCookie||sc)(e)),t},n.del=function(e,t){var n=!1;return a7(l)&&(n=l.purge(e,t)),n},n.purge=function(e,n){var o,a=!1;if(si(t)){var s=((o={}).path=n||"/",o[aQ]="Thu, 01 Jan 1970 00:00:01 GMT",o);ir()||(s["max-age"]="0"),(r.delCookie||su)(e,sl(n4,s)),a=!0}return a},n);return l[a1]=l,l}function si(e){if(null===a2){a2=!1;try{var t=a3||{};a2=void 0!==t[a$]}catch(t){iE(e,2,68,"Cannot access document.cookie - "+oa(t),{exception:ii(t)})}}return a2}function sa(e){var t={};return e&&e[nc]&&r4(r8(e)[nM](";"),function(e){if(e=r8(e||n4)){var n=e[nR]("=");-1===n?t[e]=null:t[r8(e[nN](0,n))]=r8(e[nN](n+1))}}),t}function ss(e,t){return rV(e[t])?e[t]():null}function sl(e,t){var n=e||n4;return rj(t,function(e,t){n+="; "+e+(rO(t)?n4:"="+t)}),n}function sc(e){var t=n4;if(a3){var n=a3[a$]||n4;a4!==n&&(a6=sa(n),a4=n),t=r8(a6[e]||n4)}return t}function su(e,t){a3&&(a3[a$]=e+"="+t)}function sd(e){return!!rJ(e)&&!!(rX(e,"CPU iPhone OS 12")||rX(e,"iPad; CPU OS 12")||rX(e,"Macintosh; Intel Mac OS X 10_14")&&rX(e,"Version/")&&rX(e,"Safari")||rX(e,"Macintosh; Intel Mac OS X 10_14")&&rW(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||rX(e,"Chrome/5")||rX(e,"Chrome/6")||rX(e,"UnrealEngine")&&!rX(e,"Chrome")||rX(e,"UCBrowser/12")||rX(e,"UCBrowser/11"))}function sp(){var e=[];return{add:function(t){t&&e[no](t)},run:function(t,n){r4(e,function(e){try{e(t,n)}catch(e){iE(t[nI](),2,73,"Unexpected error calling unload handler - "+ii(e))}}),e=[]}}}var sf="getPlugin",sh=function(){function e(){var t,n,r,o,a,s=this;function l(e){void 0===e&&(e=null);var t=e;if(!t){var o=n||aL(null,{},s[n6]);t=r&&r[sf]?o[nD](null,r[sf]):o[nD](null,r)}return t}function c(e,t,o){e&&os(e,n7,[],null,rO),!o&&t&&(o=t[np]()[nP]());var a=r;r&&r[sf]&&(a=r[sf]()),s[n6]=t,n=aL(o,e,t,a)}function u(){t=!1,s[n6]=null,n=null,r=null,a=[],o=sp()}u(),t7(e,s,function(e){e[ne]=function(e,n,r,o){c(e,n,o),t=!0},e[nC]=function(t,n){var s,l,c=e[n6];if(c&&(!t||c===t[n6]())){var d=!1,p=t||aH(null,c,r&&r[sf]?r[sf]():r),f=n||(s={reason:0},s[nS]=!1,s);return e[n_]&&!0===e[n_](p,f,h)?l=!0:h(),l}function h(){if(!d){d=!0,o.run(p,n);var e=a;a=[],r4(e,function(e){e.rm()}),!0===l&&p[nd](f),u()}}},e[nE]=function(t,n){var o,a=e[n6];if(a&&(!t||a===t[n6]())){var s=!1,l=t||az(null,a,r&&r[sf]?r[sf]():r),u=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(l,u,d)?o=!0:d(),o}function d(){s||(s=!0,c(l.getCfg(),l.core(),l[nP]()))}},e._addHook=function(e){e&&(rY(e)?a=a.concat(e):a[no](e))},oh(e,"_addUnloadCb",function(){return o},"add")}),s[nI]=function(e){return l(e)[nI]()},s[ni]=function(){return t},s.setInitialized=function(e){t=e},s[nT]=function(e){r=e},s[nd]=function(e,t){t?t[nd](e):r&&rV(r[rt])&&r[rt](e,null)},s._getTelCtx=l}return e.__ieDyn=1,e}(),sm=function(e){function t(){var n,r,o=e.call(this)||this;function a(){n=0,r=[]}return o.identifier="TelemetryInitializerPlugin",o.priority=199,a(),t7(t,o,function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[no](t),{remove:function(){r4(r,function(e,n){if(e.id===t.id)return r[nx](n,1),-1})}}},e[rt]=function(t,n){for(var o=!1,a=r[nc],s=0;s<a;++s){var l=r[s];if(l)try{if(!1===l.fn[nH](null,[t])){o=!0;break}}catch(e){iE(n[nI](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+oa(e),{exception:ii(e)},!0)}}o||e[nd](t,n)},e[n_]=function(){a()}}),o}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(sh),sg="Plugins must provide initialize method",sv="_notificationManager",sy="SDK is still unloading...",sb="SDK is not initialized",sx={loggingLevelConsole:1};function sC(e,t){return new oS(t)}function sk(e,t,n){var r,o=[],a={};return r4(n,function(n){(rO(n)||rO(n[ne]))&&od(sg);var r=n[rn],s=n[nr];n&&r&&(rO(a[r])?a[r]=s:iP(e,"Two extensions have same priority #"+r+" - "+a[r]+", "+s)),(!r||r<t)&&o[no](n)}),(r={all:n})[n6]=o,r}function sw(e,t){var n=!1;return r4(t,function(t){if(t===e)return n=!0,-1}),n}function sS(){var e;return(0,n5.AQ)(((e={})[nf]=function(e){},e[nh]=function(e){},e[rr]=function(e){},e[ro]=function(e,t){},e[ri]=function(e,t){},e))}var s_=function(){function e(){var t,n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C,k=0,w=!1;t7(e,this,function(e){function S(n){if(!k&&!w&&(n||e[nl]&&e[nl].queue[nc]>0)){var r=oc(t.diagnosticLogInterval);r&&r>0||(r=1e4),k=setInterval(function(){clearInterval(k),k=0,A()},r)}return k}function _(){n=!1,t=oy(!0,{},sx),e[na]=t,e[nl]=new iS(t),e[nb]=[],g=new sm,r=[],o=null,a=null,s=null,l=null,c=null,d=null,u=[],p=null,f=null,h=null,m=!1,v=null,y=af("AIBaseCore",!0),b=sp(),C=null}function E(){var n=aL(T(),t,e);return n[ng](S),n}function P(n){var r=sk(e[nl],aj,u);d=r[n6],c=null;var o=r.all;if(h=oo(aK(f,o,e)),p){var a=r3(o,p);-1!==a&&o[nx](a,1),-1!==(a=r3(d,p))&&d[nx](a,1),p._setQueue(h)}else p=aG(h,e);o[no](p),d[no](p),e[nb]=aD(o),p[ne](t,e,o),aT(E(),o),e[nb]=oo(aD(d||[])).slice(),n&&F(n)}function I(t){var n,r=null,o=null;return r4(e[nb],function(e){if(e[nr]===t&&e!==p&&e!==g)return o=e,-1}),!o&&p&&(o=p.getChannel(t)),o&&((n={plugin:o})[nF]=function(e){aI(o)[n9]=!e},n.isEnabled=function(){var e=aI(o);return!e[nC]&&!e[n9]},n.remove=function(e,t){void 0===e&&(e=!0);var n,r=[o];D(r,((n={reason:1})[nS]=e,n),function(e){e&&P({reason:32,removed:r}),t&&t(e)})},r=n),r}function T(){if(!c){var n=(d||[]).slice();-1===r3(n,g)&&n[no](g),c=aV(aD(n),t,e)}return c}function D(n,r,o){if(n&&n[nc]>0){var a=aH(aV(n,t,e),e);a[ng](function(){var e=!1,t=[];r4(u,function(r,o){sw(r,n)?e=!0:t[no](r)}),u=t;var r=[];f&&(r4(f,function(t,o){var a=[];r4(t,function(t){sw(t,n)?e=!0:a[no](t)}),r[no](a)}),f=r),o&&o(e),S()}),a[nd](r)}else o(!1)}function A(){if(e[nl]&&e[nl].queue){var n=e[nl].queue.slice(0);e[nl].queue[nc]=0,r4(n,function(n){var r,o=((r={})[nt]=v||"InternalMessageId: "+n[nk],r.iKey=oc(t[ns]),r.time=r2(new Date),r.baseType=ik.dataType,r.baseData={message:n[nw]},r);e.track(o)})}}function R(e,t,n,r){return p?p[ny](e,t,n||6,r):(t&&t(!1),!0)}function N(){var e=oc(t.disableDbgExt);!0===e&&x&&(o[nh](x),x=null),o&&!x&&!0!==e&&(x=ig(t),o[nf](x))}function B(){var e=oc(t.enablePerfMgr);!e&&s&&(s=null),e&&ol(t,n8,sC)}function M(){ol(t,n7,{}).NotificationManager=o}function F(t){var n=az(T(),e);n[ng](S),e._updateHook&&!0===e._updateHook(n,t)||n[nd](t)}function O(t){var n=e[nl];n?(iE(n,2,73,t),S()):od(t)}_(),e[ni]=function(){return n},e[ne]=function(r,a,s,l){m&&od(sy),e[ni]()&&od("Core should not be initialized more than once"),t=r||{},e[na]=t,rO(r[ns])&&od("Please provide instrumentation key"),o=l,e[sv]=l,N(),B(),M(),s&&(e[nl]=s);var c=ol(t,re,[]);(u=[])[no].apply(u,(0,tS.vz)((0,tS.vz)([],a,!1),c,!1)),f=ol(t,n3,[]),P(null),h&&0!==h[nc]||od("No "+n3+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return h&&r4(h,function(t){e[no](t.queue)}),oo(e)},e.track=function(n){n.iKey=n.iKey||t[ns],n[nu]=n[nu]||r2(new Date),n.ver=n.ver||"4.0",!m&&e[ni]()?E()[nd](n):r[no](n)},e[np]=E,e[nn]=function(){return o||(o=sS(),e[sv]=o),o},e[nf]=function(e){o&&o[nf](e)},e[nh]=function(e){o&&o[nh](e)},e.getCookieMgr=function(){return l||(l=so(t,e[nl])),l},e.setCookieMgr=function(e){l=e},e[rc]=function(){if(!a&&!s&&oc(t.enablePerfMgr)){var n=oc(t[n8]);rV(n)&&(s=n(e,e[nn]()))}return a||s||oP()},e.setPerfMgr=function(e){a=e},e.eventCnt=function(){return r[nc]},e.releaseQueue=function(){if(n&&r[nc]>0){var e=r;r=[],r4(e,function(e){E()[nd](e)})}},e.pollInternalLogs=function(e){return v=e||null,w=!1,k&&(clearInterval(k),k=null),S(!0)},e[nm]=function(){w=!0,k&&(clearInterval(k),k=0,A())},om(e,function(){return g},["addTelemetryInitializer"]),e.unload=function(t,r,o){void 0===t&&(t=!0),n||od(sb),m&&od(sy);var a,s=((a={reason:50})[nS]=t,a.flushComplete=!1,a),l=aH(T(),e);function c(t){s.flushComplete=t,m=!0,b.run(l,s),e[nm](),l[nd](s)}l[ng](function(){_(),r&&r(s)},e),A(),R(t,c,6,o)||c(!1)},e[nv]=I,e.addPlugin=function(e,t,n,r){if(!e){r&&r(!1),O(sg);return}var o=I(e[nr]);if(o&&!t){r&&r(!1),O("Plugin ["+e[nr]+"] is already loaded!");return}var a={reason:16};function s(t){u[no](e),a.added=[e],P(a),r&&r(!0)}if(o){var l=[o.plugin];D(l,{reason:2,isAsync:!!n},function(e){e?(a.removed=l,a.reason|=32,s(!0)):r&&r(!1)})}else s(!1)},e.evtNamespace=function(){return y},e[ny]=R,e.getTraceCtx=function(e){return C||(C=aA()),C},e.setTraceCtx=function(e){C=e||null},oh(e,"addUnloadCb",function(){return b},"add")})}return e.__ieDyn=1,e}();function sE(e,t,n,r){r4(e,function(e){if(e&&e[t])if(n)setTimeout(function(){return r(e)},0);else try{r(e)}catch(e){}})}var sP=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;t7(e,this,function(e){e[nf]=function(t){e.listeners[no](t)},e[nh]=function(t){for(var n=r3(e[nK],t);n>-1;)e.listeners[nx](n,1),n=r3(e[nK],t)},e[rr]=function(t){sE(e[nK],rr,!0,function(e){e[rr](t)})},e[ro]=function(t,n){sE(e[nK],ro,!0,function(e){e[ro](t,n)})},e[ri]=function(t,n){sE(e[nK],ri,n,function(e){e[ri](t,n)})},e[ra]=function(t){t&&(n||!t[nX]())&&sE(e[nK],ra,!1,function(e){t[nS]?setTimeout(function(){return e[ra](t)},0):e[ra](t)})}})}return e.__ieDyn=1,e}();let sI=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],t7(t,n,function(e,t){e.logger&&e.logger.queue||(e.logger=new iS({loggingLevelConsole:1})),e.initialize=function(n,r,o,a){oE(e,function(){return"AppInsightsCore.initialize"},function(){var s=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=iW);var l=n.propertyStorageOverride;!l||l.getProperty&&l.setProperty||od("Invalid property storage override passed."),n.channels&&r4(n.channels,function(e){e&&r4(e,function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}})})}e.getWParam=function(){return"u">typeof document||n.enableWParam?0:-1},r&&r4(r,function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}}),e.pluginVersionString=s.join(";"),e.pluginVersionStringArr=s;try{t.initialize(n,r,o,a),e.pollInternalLogs("InternalLog")}catch(t){var c=e.logger,u=ii(t);-1!==u.indexOf("channels")&&(u+="\n - Channels must be provided through config.channels only!"),iE(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+u)}},function(){return{config:n,extensions:r,logger:o,notificationManager:a}})},e.track=function(n){oE(e,function(){return"AppInsightsCore.track"},function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=i9(),i2(r.latency)||(r.latency=1);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=iK;var a=r.baseData=r.baseData||{};a[iG]=a[iG]||{};var s=a[iG];s[iq]=s[iq]||e.pluginVersionString||ij}t.track(r)},function(){return{item:n}},!n.sync)}}),n}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(function(e){function t(){var n=e.call(this)||this;return t7(t,n,function(e,t){function n(e){rO(e[nt])&&(r(e),od("telemetry name required"))}function r(t){var n=e[nn]();n&&n[ro]([t],2)}e[ne]=function(e,n,r,o){t[ne](e,n,r||new iS(e),o||new sP(e))},e.track=function(o){oE(e[rc](),function(){return"AppInsightsCore:track"},function(){null===o&&(r(o),od("Invalid telemetry item")),n(o),t.track(o)},function(){return{item:o}},!o.sync)}}),n}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(s_));var sT="on",sD="attachEvent",sA="addEventListener",sR="detachEvent",sN="removeEventListener",sB="events",sM="visibilitychange",sF="pagehide",sO="pageshow",sL="unload",sH="beforeunload",sz=af("aiEvtPageHide"),sV=af("aiEvtPageShow"),sU=/\.[\.]+/g,sj=/[\.]+$/,sW=1,sq=ah("events"),sG=/^([^.]*)(?:\.(.+)|)/;function sK(e){return e&&e[nz]?e[nz](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,n4):e}function sX(e,t){if(t){var n,r=n4;rY(t)?(r=n4,r4(t,function(e){(e=sK(e))&&("."!==e[0]&&(e="."+e),r+=e)})):r=sK(t),r&&("."!==r[0]&&(r="."+r),e=(e||n4)+r)}var o=sG.exec(e||n4)||[];return(n={})[nq]=o[1],n.ns=(o[2]||n4).replace(sU,".").replace(sj,n4)[nM](".").sort().join("."),n}function sY(e,t,n){void 0===n&&(n=!0);var r=sq.get(e,sB,{},n),o=r[t];return o||(o=r[t]=[]),o}function s$(e,t,n,r){e&&t&&t[nq]&&(e[sN]?e[sN](t[nq],n,r):e[sR]&&e[sR](sT+t[nq],n))}function sQ(e,t,n,r){var o=!1;return e&&t&&t[nq]&&n&&(e[sA]?(e[sA](t[nq],n,r),o=!0):e[sD]&&(e[sD](sT+t[nq],n),o=!0)),o}function sJ(e,t,n,r){for(var o=t[nc];o--;){var a=t[o];a&&(!n.ns||n.ns===a.evtName.ns)&&(!r||r(a))&&(s$(e,a.evtName,a[nG],a.capture),t[nx](o,1))}}function sZ(e,t,n){if(t[nq])sJ(e,sY(e,t[nq]),t,n);else{var r=sq.get(e,sB,{});rj(r,function(r,o){sJ(e,o,t,n)}),0===oe(r)[nc]&&sq.kill(e,sB)}}function s0(e,t){var n;return t?sX("xx",n=rY(t)?[e].concat(t):[e,t]).ns[nM]("."):e}function s1(e,t,n,r,o){void 0===o&&(o=!1);var a,s=!1;if(e)try{var l=sX(t,r);if((s=sQ(e,l,n,o))&&sq.accept(e)){var c=((a={guid:sW++,evtName:l})[nG]=n,a.capture=o,a);sY(e,l.type)[no](c)}}catch(e){}return s}function s2(e,t,n,r,o){if(void 0===o&&(o=!1),e)try{var a=sX(t,r),s=!1;sZ(e,a,function(e){return(!!a.ns&&!n||e[nG]===n)&&(s=!0,!0)}),s||s$(e,a,n,o)}catch(e){}}function s5(e,t,n){var r=!1,o=oQ();o&&(r=s1(o,e,t,n),r=s1(o.body,e,t,n)||r);var a=oZ();return a&&(r=s1(a,e,t,n)||r),r}function s4(e,t,n){var r=oQ();r&&(s2(r,e,t,n),s2(r.body,e,t,n));var o=oZ();o&&s2(o,e,t,n)}function s3(e,t,n,r){var o=!1;return t&&e&&e[nc]>0&&r4(e,function(e){e&&(!n||-1===r3(n,e))&&(o=s5(e,t,r)||o)}),o}function s6(e,t,n,r){var o=!1;return t&&e&&rY(e)&&((o=s3(e,t,n,r))||!n||!(n[nc]>0)||(o=s3(e,t,null,r))),o}function s8(e,t,n){e&&rY(e)&&r4(e,function(e){e&&s4(e,t,n)})}function s9(e,t,n){return s6([sH,sL,sF],e,t,n)}function s7(e,t){s8([sH,sL,sF],e,t)}function le(e,t,n){function r(t){var n=oZ();e&&n&&"hidden"===n.visibilityState&&e(t)}var o=s0(sz,n),a=s3([sF],e,t,o);return t&&-1!==r3(t,sM)||(a=s3([sM],r,t,o)||a),!a&&t&&(a=le(e,null,n)),a}function lt(e,t){var n=s0(sz,t);s8([sF],e,n),s8([sM],null,n)}function ln(e,t,n){function r(t){var n=oZ();e&&n&&"visible"===n.visibilityState&&e(t)}var o=s0(sV,n),a=s3([sO],e,t,o);return(a=s3([sM],r,t,o)||a)||!t||(a=ln(e,null,n)),a}function lr(e,t){var n=s0(sV,t);s8([sO],e,n),s8([sM],null,n)}function lo(e){var t={};return rj(e,function(e,n){t[e]=n,t[n]=e}),or(t)}function li(e){var t={};return rj(e,function(e,n){t[e]=n[1],t[n[0]]=n[1]}),or(t)}var la=lo({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),ls="REAL_TIME",ll="NEAR_REAL_TIME",lc="BEST_EFFORT",lu="",ld="POST",lp="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",lf="drop",lh="send",lm="requeue",lg="rspFail",lv="oth",ly="no-cache, no-store",lb="application/x-json-stream",lx="cache-control",lC="content-type",lk="kill-tokens",lw="kill-duration",lS="kill-duration-seconds",l_="time-delta-millis",lE="client-version",lP="client-id",lI="time-delta-to-apply-millis",lT="upload-time",lD="apikey",lA="AuthMsaDeviceTicket",lR="AuthXToken",lN="NoResponseBody",lB="msfpc",lM="trace",lF="user";function lO(e){var t=(e.ext||{}).intweb;return t&&i0(t[lB])?t[lB]:null}function lL(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=lO(e[n]);return t}var lH=function(){function e(t,n){var r=n?[].concat(n):[],o=this,a=lL(r);o.iKey=function(){return t},o.Msfpc=function(){return a||lu},o.count=function(){return r.length},o.events=function(){return r},o.addEvent=function(e){return!!e&&(r.push(e),a||(a=lO(e)),!0)},o.split=function(n,o){var s;if(n<r.length){var l=r.length-n;rO(o)||(l=o<l?o:l),s=r.splice(n,l),a=lL(r)}return new e(t,s)}}return e.create=function(t,n){return new e(t,n)},e}();let lz=function(){function e(){var t=!0,n=!0,r=!0,o="use-collector-delta",a=!1;t7(e,this,function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,a||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return o},e.setClockSkew=function(e){a||(e?(o=e,n=!0,a=!0):n=!1,t=!0)}})}return e.__ieDyn=1,e}();var lV=1e3;let lU=function(){function e(){var t={};function n(e){var t=[];return e&&r4(e,function(e){t.push(r8(e))}),t}t7(e,this,function(e){e.setKillSwitchTenants=function(e,r){if(e&&r)try{var o=n(e.split(","));if("this-request-only"===r)return o;for(var a=parseInt(r,10)*lV,s=0;s<o.length;++s)t[o[s]]=oi()+a}catch(e){}return[]},e.isTenantKilled=function(e){var n=t,r=r8(e);return!!(void 0!==n[r]&&n[r]>oi())||(delete n[r],!1)}})}return e.__ieDyn=1,e}();var lj=.8,lW=1.2,lq=3e3,lG=6e5;function lK(e){return!(e>=300&&e<500&&408!=e&&429!=e||501==e||505==e)}function lX(e){var t=0,n=lq*lj;return Math.min(t=Math.pow(2,e)*(Math.floor(Math.random()*(lq*lW-n))+n),lG)}var lY=20,l$=3984588,lQ=65e3,lJ=2e6,lZ=65e3,l0="metadata",l1="f",l2=/\./,l5=function(){function e(t,n,r,o){var a="data",s="baseData",l="ext",c=!!o,u=!0,d=n,p={};t7(e,this,function(e){function n(e,t){var n=p[e];return void 0===n&&(e.length>=7&&(n=rG(e,"ext.metadata")||rG(e,"ext.web")),p[e]=n),n}function o(e,t,a,s,l,u,p){rj(e,function(e,f){var h=null;if(f||i0(f)){var m=a,g=e,v=l,y=t;if(c&&!s&&l2.test(e)){var b=e.split("."),x=b.length;if(x>1){v&&(v=v.slice());for(var C=0;C<x-1;C++){var k=b[C];y=y[k]=y[k]||{},m+="."+k,v&&v.push(k)}g=b[x-1]}}if(h=!(s&&n(m,g))&&d&&d.handleField(m,g)?d.value(m,g,f,r):i5(g,f,r)){var w=h.value;if(y[g]=w,u&&u(v,g,h),p&&"object"==typeof w&&!rY(w)){var S=v;S&&(S=S.slice()).push(g),o(f,w,m+"."+g,s,S,u,p)}}}})}e.createPayload=function(e,t,n,r,o,a){return{apiKeys:[],payloadBlob:lu,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:a,sendReason:o}},e.appendPayload=function(n,r,o){var a=n&&r&&!n.overflow;return a&&oE(t,function(){return"Serializer:appendPayload"},function(){for(var t=r.events(),a=n.payloadBlob,s=n.numEvents,l=!1,c=[],u=[],d=n.isBeacon,p=d?lQ:l$,f=d?lZ:lJ,h=0,m=0;h<t.length;){var g=t[h];if(g){if(s>=o){n.overflow=r.split(h);break}var v=e.getEventBlob(g);if(v&&v.length<=f){var y=v.length;if(a.length+y>p){n.overflow=r.split(h);break}a&&(a+="\n"),a+=v,++m>lY&&(a.substr(0,1),m=0),l=!0,s++}else v?c.push(g):u.push(g),t.splice(h,1),h--}h++}if(c&&c.length>0&&n.sizeExceed.push(lH.create(r.iKey(),c)),u&&u.length>0&&n.failedEvts.push(lH.create(r.iKey(),u)),l){n.batches.push(r),n.payloadBlob=a,n.numEvents=s;var b=r.iKey();-1===r3(n.apiKeys,b)&&n.apiKeys.push(b)}},function(){return{payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:o}}),a},e.getEventBlob=function(e){try{return oE(t,function(){return"Serializer.getEventBlob"},function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+i1(e.iKey);var n={},r=e[l];r&&(t[l]=n,rj(r,function(e,t){var r=n[e]={};o(t,r,"ext."+e,!0,null,null,!0)}));var c=t[a]={};c.baseType=e.baseType;var d=c[s]={};return o(e.baseData,d,s,!1,[s],function(e,t,r){l4(n,e,t,r)},u),o(e.data,c,a,!1,[],function(e,t,r){l4(n,e,t,r)},u),JSON.stringify(t)},function(){return{item:e}})}catch(e){return null}}})}return e.__ieDyn=1,e}();function l4(e,t,n,r){if(r&&e){var o=i4(r.value,r.kind,r.propertyType);if(o>-1){var a=e[l0];a||(a=e[l0]={f:{}});var s=a[l1];if(s||(s=a[l1]={}),t)for(var l=0;l<t.length;l++){var c=t[l];s[c]||(s[c]={f:{}});var u=s[c][l1];u||(u=s[c][l1]={}),s=u}s=s[n]={},rY(r.value)?s.a={t:o}:s.t=o}}}var l3="sendAttempt",l6="&"+lN+"=true",l8=((b={})[1]=lm,b[100]=lm,b[200]="sent",b[8004]=lf,b[8003]=lf,b),l9={},l7={};function ce(e,t,n){l9[e]=t,!1!==n&&(l7[t]=e)}function ct(e){try{return e.responseText}catch(e){}return lu}function cn(e,t){var n=!1;if(e&&t){var r=oe(e);if(r&&r.length>0)for(var o=t.toLowerCase(),a=0;a<r.length;a++){var s=r[a];if(s&&rH(t,s)&&s.toLowerCase()===o){n=!0;break}}}return n}function cr(e,t,n,r){t&&n&&n.length>0&&(r&&l9[t]?(e.hdrs[l9[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function co(e,t){return t&&(rZ(t)?e=[t].concat(e):rY(t)&&(e=t.concat(e))),e}ce(lA,lA,!1),ce(lE,lE),ce(lP,"Client-Id"),ce(lD,lD),ce(lI,lI),ce(lT,lT),ce(lR,lR);var ci=function(){function e(t,n,r,o,a){this._responseHandlers=[];var s,l,c,u,d,p,f,h,m,g,v="?cors=true&"+lC.toLowerCase()+"="+lb,y=new lU,b=!1,x=new lz,C=!1,k=0,w=!0,S=[],_={},E=[],P=null,I=!1,T=!1,D=!1;t7(e,this,function(e){var A=!0;function R(e,t){for(var n=0,r=null,o=0;null==r&&o<e.length;)1===(n=e[o])?il()?r=N:ic()&&(r=M):2===n&&is(t)&&(!t||t&&!h)?r=B:C&&3===n&&ia()&&(r=O),o++;return r?{_transport:n,_isSync:t,sendPOST:r}:null}function N(e,t,n){var r=new XDomainRequest;r.open(ld,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=ct(r);F(t,200,{},e),en(e)},r.onerror=function(){F(t,400,{})},r.ontimeout=function(){F(t,500,{})},r.onprogress=function(){},n?r.send(e.data):a.set(function(){r.send(e.data)},0)}function B(e,t,n){var r,o=e.urlString,s=!1,l=!1,c=((r={body:e.data,method:ld})[lp]=!0,r);n&&(c.keepalive=!0,2===e._sendReason&&(s=!0,g&&(o+=l6))),A&&(c.credentials="include"),e.headers&&oe(e.headers).length>0&&(c.headers=e.headers),fetch(o,c).then(function(e){var n={},r=lu,o=e.headers;o&&o.forEach(function(e,t){n[t]=e}),e.body&&e.text().then(function(e){r=e}),l||(l=!0,F(t,e.status,n,r),en(r))}).catch(function(e){l||(l=!0,F(t,0,{}))}),s&&!l&&(l=!0,F(t,200,{})),!l&&e.timeout>0&&a.set(function(){l||(l=!0,F(t,500,{}))},e.timeout)}function M(e,t,n){var r=e.urlString;function o(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=r8(r))}return e}function a(e){var t={};return e.getAllResponseHeaders?t=ee(e.getAllResponseHeaders()):(t=o(t,e,l_),t=o(t,e,lw),t=o(t,e,lS)),t}function s(e,n){F(t,e.status,a(e),n)}n&&e.disableXhrSync&&(n=!1);var l=ai(ld,r,A,!0,n,e.timeout);rj(e.headers,function(e,t){l.setRequestHeader(e,t)}),l.onload=function(){var e=ct(l);s(l,e),en(e)},l.onerror=function(){s(l)},l.ontimeout=function(){s(l)},l.send(e.data)}function F(e,t,n,r){try{e(t,n,r)}catch(e){iE(l,2,518,ii(e))}}function O(e,t,n){var r=200,o=e._thePayload,a=e.urlString+(g?l6:lu);try{var s=o1();if(!s.sendBeacon(a,e.data))if(o){var c=[];r4(o.batches,function(e){if(c&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!s.sendBeacon(a,P.getEventBlob(t[n]))){c.push(e.split(n));break}}else c.push(e.split(0))}),er(c,8003,o.sendType,!0)}else r=0}catch(e){iP(l,"Failed to send telemetry using sendBeacon API. Ex:"+ii(e)),r=0}finally{F(t,r,{},lu)}}function L(e){return 2===e||3===e}function H(e){return T&&L(e)&&(e=2),e}function z(){return!b&&k<n}function V(){var e=E;return E=[],e}function U(e,t,n){var r=!1;return e&&e.length>0&&!b&&c[t]&&P&&(r=0!==t||z()&&(n>0||x.allowRequestSending())),r}function j(e){var t={};return e&&r4(e,function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}}),t}function W(e,n,r,o,a){if(e&&0!==e.length){if(b)return void er(e,1,o);o=H(o);try{var s=e,d=0!==o;oE(u,function(){return"HttpManager:_sendBatches"},function(s){s&&(e=e.slice(0));for(var l=[],u=null,p=i9(),f=c[o]||(d?c[1]:c[0]),h=f&&f._transport,g=m&&(T||L(o)||3===h||f._isSync&&2===h);U(e,o,n);){var v=e.shift();v&&v.count()>0&&(y.isTenantKilled(v.iKey())?l.push(v):(u=u||P.createPayload(n,r,d,g,a,o),P.appendPayload(u,v,t)?null!==u.overflow&&(e=[u.overflow].concat(e),u.overflow=null,K(u,p,i9(),a),p=i9(),u=null):(K(u,p,i9(),a),p=i9(),e=[v].concat(e),u=null)))}u&&K(u,p,i9(),a),e.length>0&&(E=e.concat(E)),er(l,8004,o)},function(){return{batches:j(s),retryCount:n,isTeardown:r,isSynchronous:d,sendReason:a,useSendBeacon:L(o),sendType:o}},!d)}catch(e){iE(l,2,48,"Unexpected Exception sending batch: "+ii(e))}}}function q(e,t){var n={url:v,hdrs:{},useHdrs:!1};t?(n.hdrs=i8(n.hdrs,_),n.useHdrs=oe(n.hdrs).length>0):rj(_,function(e,t){l7[e]?cr(n,l7[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)}),cr(n,lP,"NO_AUTH",t),cr(n,lE,iK,t);var r=lu;r4(e.apiKeys,function(e){r.length>0&&(r+=","),r+=e}),cr(n,lD,r,t),cr(n,lT,oi().toString(),t);var o=et(e);if(i0(o)&&(n.url+="&ext.intweb.msfpc="+o),x.shouldAddClockSkewHeaders()&&cr(n,lI,x.getClockSkewHeaderValue(),t),u.getWParam){var a=u.getWParam();a>=0&&(n.url+="&w="+a)}for(var s=0;s<S.length;s++)n.url+="&"+S[s].name+"="+S[s].value;return n}function G(e,t,n){e[t]=e[t]||{},e[t][s.identifier]=n}function K(t,n,r,o){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var a=!!e.sendHook,s=c[t.sendType];!L(t.sendType)&&t.isBeacon&&2===t.sendReason&&(s=c[2]||c[3]||s);var d=D;(t.isBeacon||3===s._transport)&&(d=!1);var m=q(t,d);d=d||m.useHdrs;var g=i9();oE(u,function(){return"HttpManager:_doPayloadSend"},function(){for(var c=0;c<t.batches.length;c++)for(var v=t.batches[c].events(),y=0;y<v.length;y++){var b=v[y];if(I){var C=b.timings=b.timings||{};G(C,"sendEventStart",g),G(C,"serializationStart",n),G(C,"serializationCompleted",r)}b[l3]>0?b[l3]++:b[l3]=1}er(t.batches,1e3+(o||0),t.sendType,!0);var S={data:t.payloadBlob,urlString:m.url,headers:m.hdrs,_thePayload:t,_sendReason:o,timeout:p,disableXhrSync:f,disableFetchKeepAlive:h};d&&(cn(S.headers,lx)||(S.headers[lx]=ly),cn(S.headers,lC)||(S.headers[lC]=lb));var _=null;s&&(_=function(n){x.firstRequestSent();var r=function(e,n){Y(e,n,t,o)},a=t.isTeardown||t.isSync;try{s.sendPOST(n,r,a),e.sendListener&&e.sendListener(S,n,a,t.isBeacon)}catch(e){iP(l,"Unexpected exception sending payload. Ex:"+ii(e)),F(r,0,{})}}),oE(u,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(_)if(0===t.sendType&&k++,a&&!t.isBeacon&&3!==s._transport){var n={data:S.data,urlString:S.urlString,headers:i8({},S.headers),timeout:S.timeout,disableXhrSync:S.disableXhrSync,disableFetchKeepAlive:S.disableFetchKeepAlive},r=!1;oE(u,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{e.sendHook(n,function(e){r=!0,w||e._thePayload||(e._thePayload=e._thePayload||S._thePayload,e._sendReason=e._sendReason||S._sendReason),_(e)},t.isSync||t.isTeardown)}catch(e){r||_(S)}})}else _(S)})},function(){return{thePayload:t,serializationStart:n,serializationCompleted:r,sendReason:o}},t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&er(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&er(t.failedEvts,8002,t.sendType)}function X(e,t){I&&r4(e,function(e){G(e.timings=e.timings||{},"sendEventCompleted",t)})}function Y(e,t,n,o){var a=9e3,s=null,l=!1,c=!1;try{var u=!0;if(typeof e!==n2.bA){if(t){x.setClockSkew(t[l_]);var d=t[lw]||t["kill-duration-seconds"];r4(y.setKillSwitchTenants(t[lk],d),function(e){r4(n.batches,function(t){if(t.iKey()===e){s=s||[];var r=t.split(0);n.numEvents-=r.count(),s.push(r)}})})}if(200==e||204==e){a=200;return}(!lK(e)||n.numEvents<=0)&&(u=!1),a=9e3+e%1e3}if(u){a=100;var p=n.retryCnt;0===n.sendType&&(p<r?(l=!0,Z(function(){0===n.sendType&&k--,W(n.batches,p+1,n.isTeardown,T?2:n.sendType,5)},T,lX(p))):(c=!0,T&&(a=8001)))}}finally{l||(x.setClockSkew(),Q(n,a,o,c)),er(s,8004,n.sendType)}}function Q(t,n,r,o){try{o&&s._backOffTransmission(),200===n&&(o||t.isSync||s._clearBackOff(),J(t.batches)),er(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(k--,5!==r&&e.sendQueuedRequests(t.sendType,r))}}function J(e){if(I){var t=i9();r4(e,function(e){e&&e.count()>0&&X(e.events(),t)})}}function Z(e,t,n){t?e():a.set(e,n)}function ee(e){var t={};return rJ(e)&&r4(r8(e).split(/[\r\n]+/),function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=r8(e.substring(0,n)).toLowerCase(),o=r8(e.substring(n+1));t[r]=o}else t[r8(e)]=1}}),t}function et(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return lu}function en(t){var n=e._responseHandlers;try{for(var r=0;r<n.length;r++)try{n[r](t)}catch(e){iE(l,1,519,"Response handler failed: "+e)}if(t){var o=JSON.parse(t);i0(o.webResult)&&i0(o.webResult[lB])&&d.set("MSFPC",o.webResult[lB],31536e3)}}catch(e){}}function er(e,t,n,r){if(e&&e.length>0&&o){var a=o[eo(t)];if(a){var s=0!==n;oE(u,function(){return"HttpManager:_sendBatchesNotification"},function(){Z(function(){try{a.call(o,e,t,s,n)}catch(e){iE(l,1,74,"send request notification failed: "+e)}},r||s,0)},function(){return{batches:j(e),reason:t,isSync:s,sendSync:r,sendType:n}},!s)}}}function eo(e){var t=l8[e];return!i0(t)&&(t=lv,e>=9e3&&e<=9999?t=lg:e>=8e3&&e<=8999?t=lf:e>=1e3&&e<=1999&&(t=lh)),t}e.initialize=function(e,t,n,r,o){o||(o={}),v=e+v,D=!!rF(o.avoidOptions)||!o.avoidOptions,u=t,d=t.getCookieMgr(),I=!u.config.disableEventTimings;var a,y=!!u.config.enableCompoundKey;l=(s=n).diagLog();var b=o.valueSanitizer,x=o.stringifyObjects;rF(o.enableCompoundKey)||(y=!!o.enableCompoundKey),p=o.xhrTimeout,f=!!o.disableXhrSync,h=!!o.disableFetchKeepAlive,g=!1!==o.addNoResponse,C=!it(),P=new l5(u,b,x,y),rO(o.useSendBeacon)||(C=!!o.useSendBeacon);var k=r,S=o.alwaysUseXhrOverride?r:null,_=o.alwaysUseXhrOverride?r:null,E=[3,2];if(!r){w=!1;var T=o4();T&&T.protocol&&"file:"===T.protocol.toLowerCase()&&(A=!1);var N=[];it()?(N=[2,1],E=[2,1,3]):N=[1,2,3],(r=R(N=co(N,o.transports),!1))||iP(l,"No available transport to send events"),k=R(N,!0)}S||(S=R(E=co(E,o.unloadTransports),!0)),m=!w&&(C&&ia()||!h&&is(!0)),(a={})[0]=r,a[1]=k||R([1,2,3],!0),a[2]=S||k||R([1],!0),a[3]=_||R([2,3],!0)||k||R([1],!0),c=a},e._getDbgPlgTargets=function(){return[c[0],y,P,c]},e.addQueryStringParameter=function(e,t){for(var n=0;n<S.length;n++)if(S[n].name===e){S[n].value=t;return}S.push({name:e,value:t})},e.addHeader=function(e,t){_[e]=t},e.canSendRequest=function(){return z()&&x.allowRequestSending()},e.sendQueuedRequests=function(e,t){rF(e)&&(e=0),T&&(e=H(e),t=2),U(E,e,0)&&W(V(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!b&&0===k&&0===E.length},e.setUnloading=function(e){T=e},e.addBatch=function(e){if(e&&e.count()>0){if(y.isTenantKilled(e.iKey()))return!1;E.push(e)}return!0},e.teardown=function(){E.length>0&&W(V(),0,!0,2,2)},e.pause=function(){b=!0},e.resume=function(){b=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&(rO(t)&&(t=1),T&&(t=H(t),n=2),W([e],0,!1,t,n||0))}})}return e.__ieDyn=1,e}();function ca(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function cs(e){clearTimeout(e)}function cl(e,t){return{set:e||ca,clear:t||cs}}var cc=.25,cu=500,cd=20,cp=6,cf=2,ch=4,cm=2,cg=1,cv="eventsDiscarded",cy="overrideInstrumentationKey",cb="maxEventRetryAttempts",cx="maxUnloadEventRetryAttempts",cC="addUnloadCb";let ck=function(e){function t(){var n,r,o,a,s,l,c,u,d=e.call(this)||this;d.identifier="PostChannel",d.priority=1011,d.version="3.2.14";var p=!1,f=[],h=null,m=!1,g=0,v=500,y=0,b=1e4,x={},C=ls,k=null,w=null,S=0,_=0,E={},P=-1,I=!0,T=!1,D=cp,A=cf;return t7(t,d,function(e,t){function d(e){var t=e.getWParam;e.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}function R(e){"beforeunload"!==(e||oQ().event).type&&(T=!0,o.setUnloading(T)),V(2,2)}function N(e){T=!1,o.setUnloading(T)}function B(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext[lM]&&delete e.ext[lM],e.ext&&e.ext[lF]&&e.ext[lF].id&&delete e.ext[lF].id,I&&(e.ext=ov(e.ext),e.baseData&&(e.baseData=ov(e.baseData)),e.data&&(e.data=ov(e.data))),e.sync){if(S||m)e.latency=3,e.sync=!1;else if(o){I&&(e=ov(e)),o.sendSynchronousBatch(lH.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);return}}var n=e.latency,r=y,a=b;4===n&&(r=g,a=v);var s=!1;if(r<a)s=!q(e,t);else{var l=1,c=cd;4===n&&(l=4,c=1),s=!0,G(e.iKey,e.latency,l,c)&&(s=!q(e,t))}s&&en(cv,[e],la.QueueFull)}function M(e,t,n){var r=X(e,t,n);return o.sendQueuedRequests(t,n),r}function F(){return y>0}function O(){if(P>=0&&X(P,0,l)&&o.sendQueuedRequests(0,l),g>0&&!w&&!m){var e=x[C][2];e>=0&&(w=H(function(){w=null,M(4,0,1),O()},e))}var t=x[C][1];k||h||!(t>=0)||m||(F()?k=H(function(){k=null,M(0===_?3:1,0,1),_++,_%=2,O()},t):_=0)}function L(){n=null,p=!1,f=[],h=null,m=!1,g=0,v=500,y=0,b=1e4,x={},C=ls,k=null,w=null,S=0,_=0,r=null,E={},a=void 0,s=0,P=-1,l=null,I=!0,T=!1,D=cp,A=cf,c=null,o=new ci(cu,cm,cg,{requeue:ee,send:eo,sent:ei,drop:ea,rspFail:es,oth:el},u=cl()),Z(),U(),ec()}function H(e,t){0===t&&S&&(t=1);var n=1e3;return S&&(n=lX(S-1)),u.set(e,t*n)}function z(){return null!==k&&(u.clear(k),k=null,_=0,!0)}function V(e,t){z(),h&&(u.clear(h),h=null),m||M(1,e,t)}function U(){E[4]={batches:[],iKeyMap:{}},E[3]={batches:[],iKeyMap:{}},E[2]={batches:[],iKeyMap:{}},E[1]={batches:[],iKeyMap:{}}}function j(e,t,n){var r=E[t];r||(r=E[t=1]);var o=r.iKeyMap[e];return!o&&n&&(o=lH.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function W(t,n){o.canSendRequest()&&!S&&(a>0&&y>a&&(n=!0),n&&null==h&&e.flush(t,null,20))}function q(e,t){I&&(e=ov(e));var n=e.latency,r=j(e.iKey,n,!0);return!!r.addEvent(e)&&(4!==n?(y++,t&&0===e.sendAttempt&&W(!e.sync,s>0&&r.count()>=s)):g++,!0)}function G(e,t,n,r){for(;n<=t;){var o=j(e,t,!0);if(o&&o.count()>0){var a=o.split(0,r),s=a.count();if(s>0)return 4===n?g-=s:y-=s,er(cv,[a],la.QueueFull),!0}n++}return K(),!1}function K(){for(var e=0,t=0,n=function(n){var r=E[n];r&&r.batches&&r4(r.batches,function(r){4===n?e+=r.count():t+=r.count()})},r=1;r<=4;r++)n(r);y=t,g=e}function X(t,n,r){var a=!1,s=0===n;return!s||o.canSendRequest()?oE(e.core,function(){return"PostChannel._queueBatches"},function(){for(var e=[],n=4;n>=t;){var r=E[n];r&&r.batches&&r.batches.length>0&&(r4(r.batches,function(t){o.addBatch(t)?a=a||t&&t.count()>0:e=e.concat(t.events()),4===n?g-=t.count():y-=t.count()}),r.batches=[],r.iKeyMap={}),n--}e.length>0&&en(cv,e,la.KillSwitch),a&&P>=t&&(P=-1,l=0)},function(){return{latency:t,sendType:n,sendReason:r}},!s):(P=P>=0?Math.min(P,t):t,l=Math.max(l,r)),a}function Y(e,t){M(1,0,t),K(),Q(function(){e&&e(),f.length>0?h=H(function(){h=null,Y(f.shift(),t)},0):(h=null,O())})}function Q(e){o.isCompletelyIdle()?e():h=H(function(){h=null,Q(e)},cc)}function J(){z(),Z(),C=ls,O()}function Z(){(x={})[ls]=[2,1,0],x[ll]=[6,3,0],x[lc]=[18,9,0]}function ee(t,n){var r=[],o=D;T&&(o=A),r4(t,function(t){t&&t.count()>0&&r4(t.events(),function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?(an(t,e.identifier),B(t,!1)):r.push(t))})}),r.length>0&&en(cv,r,la.NonRetryableStatus),T&&V(2,2)}function et(t,n){var r=e._notificationManager||{},o=r[t];if(o)try{o.apply(r,n)}catch(n){iE(e.diagLog(),1,74,t+" notification failed: "+n)}}function en(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&et(e,[t].concat(n))}function er(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&r4(t,function(t){t&&t.count()>0&&et(e,[t.events()].concat(n))})}function eo(e,t,n){e&&e.length>0&&et("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function ei(e,t){er("eventsSent",e,t),O()}function ea(e,t){er(cv,e,t>=8e3&&t<=8999?t-8e3:la.Unknown)}function es(e){er(cv,e,la.NonRetryableStatus),O()}function el(e,t){er(cv,e,la.Unknown),O()}function ec(){s=n&&n.disableAutoBatchFlushLimit?0:Math.max(cu*(cm+1),b/6)}L(),e._getDbgPlgTargets=function(){return[o]},e.initialize=function(s,l,p){oE(l,function(){return"PostChannel:initialize"},function(){var f=l;t.initialize(s,l,p);try{l[cC],c=s0(af(e.identifier),l.evtNamespace&&l.evtNamespace());var h=e._getTelCtx();s.extensionConfig[e.identifier]=s.extensionConfig[e.identifier]||{},n=h.getExtCfg(e.identifier),u=cl(n.setTimeoutOverride,n.clearTimeoutOverride),I=!n.disableOptimizeObj&&ao(),d(f),n.eventsLimitInMem>0&&(b=n.eventsLimitInMem),n.immediateEventLimit>0&&(v=n.immediateEventLimit),n.autoFlushEventsLimit>0&&(a=n.autoFlushEventsLimit),rZ(n[cb])&&(D=n[cb]),rZ(n[cx])&&(A=n[cx]),ec(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(r=n.httpXHROverride),i0(s.anonCookieName)&&o.addQueryStringParameter("anoncknm",s.anonCookieName),o.sendHook=n.payloadPreprocessor,o.sendListener=n.payloadListener;var m=n.overrideEndpointUrl?n.overrideEndpointUrl:s.endpointUrl;e._notificationManager=l.getNotifyMgr(),o.initialize(m,e.core,e,r,n);var g=s.disablePageUnloadEvents||[];s9(R,g,c),le(R,g,c),ln(N,s.disablePageShowEvents,c)}catch(t){throw e.setInitialized(!1),t}},function(){return{coreConfig:s,core:l,extensions:p}})},e.processTelemetry=function(t,r){an(t,e.identifier);var o=(r=e._getTelCtx(r)).getExtCfg(e.identifier),a=!!n.disableTelemetry;o&&(a=a||!!o.disableTelemetry);var s=t;a||p||(n[cy]&&(s.iKey=n[cy]),o&&o[cy]&&(s.iKey=o[cy]),B(s,!0),T?V(2,2):O()),e.processNext(s,r)},e._doTeardown=function(e,t){V(2,2),p=!0,o.teardown(),s7(null,c),lt(null,c),lr(null,c),L()},e.setEventQueueLimits=function(e,t){b=e>0?e:1e4,a=t>0?t:0,ec();var n=y>e;if(!n&&s>0)for(var r=1;!n&&r<=3;r++){var o=E[r];o&&o.batches&&r4(o.batches,function(e){e&&e.count()>=s&&(n=!0)})}W(!0,n)},e.pause=function(){z(),m=!0,o.pause()},e.resume=function(){m=!1,o.resume(),O()},e.addResponseHandler=function(e){o._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){J(),rj(e,function(e,t){var n=t.length;if(n>=2){var r=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var o=t[0]/t[1];t[0]=Math.ceil(o)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),x[e]=t}})},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!m)if(n=n||1,e)null==h?(z(),X(1,0,n),h=H(function(){h=null,Y(t,n)},0)):f.push(t);else{var r=z();M(1,1,n),null!=t&&t(),r&&O()}},e.setMsaAuthTicket=function(e){o.addHeader(lA,e)},e.hasEvents=F,e._setTransmitProfile=function(e){C!==e&&void 0!==x[e]&&(z(),C=e,O())},e._backOffTransmission=function(){S<ch&&(S++,z(),O())},e._clearBackOff=function(){S&&(S=0,z(),O())},ot(e,"_setTimeoutOverride",function(){return u.set},function(e){u=cl(e,u.clear)}),ot(e,"_clearTimeoutOverride",function(){return u.clear},function(e){u=cl(u.set,e)})}),d}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(sh);var cw="locale",cS="ver",c_="browser",cE="browserVer",cP="popSample",cI="eventFlags",cT="name",cD="serviceName",cA=li({UserExt:[0,"user"],DeviceExt:[1,"device"],TraceExt:[2,"trace"],WebExt:[3,"web"],AppExt:[4,"app"],OSExt:[5,"os"],SdkExt:[6,"sdk"],IntWebExt:[7,"intweb"],UtcExt:[8,"utc"],LocExt:[9,"loc"],CloudExt:[10,"cloud"],DtExt:[11,"dt"]}),cR=li({id:[0,"id"],ver:[1,cS],appName:[2,cT],locale:[3,cw],expId:[4,"expId"],env:[5,"env"]}),cN=li({domain:[0,"domain"],browser:[1,c_],browserVer:[2,cE],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),cB=li({locale:[0,cw],localId:[1,"localId"],id:[2,"id"]}),cM=li({osName:[0,cT],ver:[1,cS]}),cF=li({ver:[0,cS],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),cO=li({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,cD]}),cL=li({popSample:[0,cP],eventFlags:[1,cI]}),cH=li({tz:[0,"tz"]}),cz=li({sessionId:[0,"sesId"]}),cV=li({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),cU=li({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),cj=li({traceId:[0,"traceID"],traceName:[1,cT],parentId:[2,"parentID"]}),cW=li({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]});function cq(){return void 0===x&&(x=!!cK(0)),x}function cG(){return cq()?cK(0):null}function cK(e){var t,n,r=null;try{var o=(0,n5.mS)();if(!o)return null;n=new Date,(r=0===e?o.localStorage:o.sessionStorage)&&rV(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(e){r=null}return r}function cX(e,t,n){var r=cG();if(null!==r)try{return r.setItem(t,n),!0}catch(t){x=!1,iE(e,1,504,"Browser failed write to local storage. "+t)}return!1}function cY(e,t){var n=cG();if(null!==n)try{return n.getItem(t)}catch(t){x=!1,iE(e,1,503,"Browser failed read of local storage. "+t)}return null}function c$(){return this.getId()}function cQ(e){this.setId(e)}var cJ=function(){function e(){t7(e,this,function(e){e.setId=function(t){e.customId=t},e.getId=function(){return rJ(e.customId)?e.customId:e.automaticId}})}return e._staticInit=function(){ot(e.prototype,"id",c$,cQ)}(),e}(),cZ="ai_session",c0=function(){function e(t,n){var r,o,a=iw(t),s=sr(t);t7(e,this,function(t){var l=c(n);function c(e){return{sessionRenewalMs:e.sessionRenewalMs&&function(){return e.sessionRenewalMs},sessionExpirationMs:e.sessionExpirationMs&&function(){return e.sessionExpirationMs},cookieDomain:e.cookieDomain&&function(){return e.cookieDomain},namePrefix:e.namePrefix&&function(){return e.namePrefix},sessionAsGuid:function(){return e.sessionAsGuid},idLength:function(){return e.idLength?e.idLength:22}}}function u(){var e=s.get(o());if(e&&rV(e.split))d(e);else{var n=cY(a,o());n&&d(n)}t.automaticSession.getId()||p()}function d(e){var n=t.automaticSession,r=e.split("|");r.length>0&&n.setId(r[0]);try{if(r.length>1){var o=+r[1];n.acquisitionDate=+new Date(o),n.acquisitionDate=n.acquisitionDate>0?n.acquisitionDate:0}if(r.length>2){var s=+r[2];n.renewalDate=+new Date(s),n.renewalDate=n.renewalDate>0?n.renewalDate:0}}catch(e){iE(a,1,510,"Error parsing ai_session cookie, session will be reset: "+e)}0===n.renewalDate&&iE(a,2,517,"AI session renewal date is 0, session will be reset.")}function p(){var e=t.automaticSession,n=new Date().getTime(),r=t.config.sessionAsGuid();!rF(r)&&r?r0(r)?e.setId(i6()):e.setId(i6(r)):e.setId(iO(l&&l.idLength?l.idLength():22)),e.acquisitionDate=n,e.renewalDate=n,f(e.getId(),e.acquisitionDate,e.renewalDate),cq()||iE(a,2,505,"Browser does not support local storage. Session durations will be inaccurate.")}function f(e,n,a){var l=n+t.config.sessionExpirationMs(),c=a+t.config.sessionRenewalMs(),u=new Date,d=[e,n,a];l<c?u.setTime(l):u.setTime(c);var p=t.config.cookieDomain?t.config.cookieDomain():null;s.set(o(),d.join("|")+";expires="+u.toUTCString(),null,p),r=new Date().getTime()}function h(e,t,n){cX(a,o(),[e,t,n].join("|"))}rV(n.sessionExpirationMs)||(l.sessionExpirationMs=function(){return e.acquisitionSpan}),rV(n.sessionRenewalMs)||(l.sessionRenewalMs=function(){return e.renewalSpan}),t.config=l,o=function(){return t.config.namePrefix&&t.config.namePrefix()?cZ+t.config.namePrefix():cZ},t.automaticSession=new cJ,t.update=function(){t.automaticSession.getId()||u();var n=t.automaticSession,o=t.config,a=new Date().getTime(),s=a-n.acquisitionDate>o.sessionExpirationMs(),l=a-n.renewalDate>o.sessionRenewalMs();if(s||l)p();else{var c=r;(!c||a-c>e.cookieUpdateInterval)&&(n.renewalDate=a,f(n.getId(),n.acquisitionDate,n.renewalDate))}},t.backup=function(){var e=t.automaticSession;h(e.getId(),e.acquisitionDate,e.renewalDate)}})}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),c1=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function c2(e,t){void 0===t&&(t=c1);var n=null;if(e)for(var r=e.split(","),o=0;o<r.length;o++)c5(r[o],t)&&(n?n+=","+r[o]:n=r[o]);return n}function c5(e,t){if(void 0===t&&(t=c1),!e||e.length<4)return!1;for(var n=!1,r=256,o=e.substring(0,3).toString().toUpperCase(),a=0;a<t.length;a++)if(t[a]+":"===o&&e.length<=r){n=!0;break}return n}function c4(){return this.getExpId()}var c3=function(){function e(t,n){var r=null,o=c1.slice(0),a="Treatments",s=sr(n),l=t;t7(e,this,function(e){if(oJ()){var n=oZ().documentElement;n&&(e.locale=n.lang)}function c(e){var t,n={},r=oZ();if(r){t=r&&r.querySelectorAll("meta");for(var o=0;o<t.length;o++){var a=t[o];a.name&&0===a.name.toLowerCase().indexOf(e)&&(n[a.name.replace(e,"")]=a.content)}}return n}function u(e){e!==r&&(r=c2(e,o))}function d(){return u(i3(s,a)),r}function p(e){return u(e),r}e.env=t.env?t.env:c("awa-").env,e.getExpId=function(){return l.expId?p(l.expId):d()}})}return e.validateAppExpId=c2,e._staticInit=function(){ot(e.prototype,"expId",c4)}(),e}(),c6=function(){return function(){}}(),c8=function(){return function(){}}();function c9(){return this.getMsfpc()}function c7(){return this.getAnid()}var ue=function(){function e(t,n){var r=sr(n);t7(e,this,function(e){t.serviceName&&(e.serviceName=t.serviceName),e.getMsfpc=function(){return i3(r,"MSFPC")},e.getAnid=function(){return i3(r,"ANON").slice(0,34)}})}return e._staticInit=function(){var t=e.prototype;ot(t,"msfpc",c9),ot(t,"anid",c7)}(),e}(),ut=function(){return function(){var e=new Date().getTimezoneOffset(),t=e%60,n=(e-t)/60,r="+";n>0&&(r="-"),n=Math.abs(n),t=Math.abs(t),this.tz=r+(n<10?"0"+n:n.toString())+":"+(t<10?"0"+t:t.toString())}}(),un={"5.1":"XP","6.0":"Vista","6.1":"7","6.2":"8","6.3":"8.1","10.0":"10"},ur="([\\d,.]+)",uo="([\\d,_,.]+)",ui="Unknown",ua=[{r:/windows\sphone\s\d+\.\d+/i,os:"Windows Phone"},{r:/ arm;/i,os:"Windows RT"},{r:/(windows|win32)/i,os:"Windows"},{r:/(ipad|iphone|ipod)(?=.*like mac os x)/i,os:"iOS"},{r:/android/i,os:"Android"},{r:/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,os:"Linux"},{r:/CrOS/i,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:/(macintosh|mac os x)/i,os:"Mac OS X"}];function us(e){for(var t=0;t<ua.length;t++){var n=ua[t];if(n.r&&e.match(n.r)||n.s&&-1!==e.indexOf(n.s))return n.os}return ui}function ul(e,t){return"Windows"===t?uc(e,"Windows NT"):"Android"===t?uc(e,t):"Mac OS X"===t?uu(e):"iOS"===t?ud(e):ui}function uc(e,t){var n=e.match(RegExp(t+" "+ur));return n?un[n[1]]?un[n[1]]:n[1]:ui}function uu(e){var t=e.match(RegExp("Mac OS X "+uo));if(t){var n=t[1].replace(/_/g,".");if(n){var r=up(n);return r?n.split(r)[0]:n}}return ui}function ud(e){var t=e.match(RegExp("OS "+uo));if(t){var n=t[1].replace(/_/g,".");if(n){var r=up(n);return r?n.split(r)[0]:n}}return ui}function up(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var uf=function(){return function(e){if(e.populateOperatingSystemInfo){var t=this,n=o1()||{},r=e.userAgent||n.userAgent||"",o=e.userAgentData||n.userAgentData||{};if(r){var a=us(r.toLowerCase());t.name=a,t.ver=ul(r,a)}(!t.name||t.name===ui)&&rJ(o.platform)&&(t.name=o.platform)}}}(),uh="MicrosoftApplicationsTelemetryDeviceId";function um(e,t,n,r){t?t.setProperty(n,r):e.set(n,r,31536e3)}function ug(e,t,n){return t?t.getProperty(n)||"":i3(e,n)}var uv=function(){function e(t,n){var r=0;t7(e,this,function(e){var o=t.propertyStorageOverride;e.seq=r,e.epoch=iM(!1).toString();var a=sr(n,t);if(a.isEnabled()||o){var s=ug(a,o,uh);s||(s=iH()),um(a,o,uh,s),e.installId=s}else a.purge(uh);e.getSequenceId=function(){return++r}})}return e.__ieDyn=1,e}(),uy=function(){return function(e,t,n,r){var o=this;if(o.traceId=t||iV(),e.enableDistributedTracing&&!n&&(n=iV().substring(0,16)),o.parentId=n,e.enableApplicationInsightsTrace){o.name=r;var a=o4();a&&a.pathname&&(o.name=a.pathname)}}}(),ub="setLocalId";function ux(){return this.getLocalId()}function uC(e){this[ub](e)}var uk=function(){function e(t,n,r){var o,a=n,s=sr(r,t);t7(e,this,function(n){if(s&&s.isEnabled()&&(f(),a.enableApplicationInsightsUser)){var r=i3(s,e.userCookieName);if(r){var l=r.split(e.cookieSeparator);l.length>0&&(n.id=l[0])}if(!n.id){n.id=iO(t&&!rF(t.idLength)?t.idLength:22);var c=r2(new Date);n.accountAcquisitionDate=c;var u=[n.id,c],d=a.cookieDomain?a.cookieDomain:void 0;s.set(e.userCookieName,u.join(e.cookieSeparator),31536e3,d)}}if("u">typeof navigator){var p=navigator;n.locale=p.userLanguage||p.language}function f(){if(!a.hashIdentifiers&&!a.dropIdentifiers){var e=i3(s,"MUID");e&&(o="t:"+e)}return o}n.getLocalId=function(){return o||f()},n[ub]=function(e){o=e}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=function(){ot(e.prototype,"localId",ux,uC)}(),e}(),uw=1048576,uS=2097152,u_=4194304,uE=function(){return function(e){var t=this;t.popSample=100,t.eventFlags=0,e.hashIdentifiers&&(t.eventFlags=t.eventFlags|uw),e.dropIdentifiers&&(t.eventFlags=t.eventFlags|uS),e.scrubIpOnly&&(t.eventFlags=t.eventFlags|u_)}}(),uP=["Required","Analytics","SocialMedia","Advertising"],uI="([\\d,.]+)",uT="Unknown",uD="Edg/",uA=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:uD,b:"Edge"},{ua:"Electron",b:"Electron"},{ua:"Chrome",b:"Chrome"},{ua:"Trident",b:"MSIE"},{ua:"MSIE ",b:"MSIE"},{ua:"Firefox",b:"Firefox"},{ua:"Safari",b:"Safari"},{ua:"SkypeShell",b:"SkypeShell"}],uR=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function uN(e,t){return t.indexOf(e)>-1}function uB(e,t){for(var n=0;n<t.length;n++)if(e==t[n].brand)return t[n].version;return null}function uM(e){if(e){for(var t=0;t<uA.length;t++)if(uN(uA[t].ua,e))return uA[t].b}return uT}function uF(e,t){return"MSIE"===t?uO(e):uL(t,e)}function uO(e){var t=e.match(RegExp("MSIE "+uI));if(t)return t[1];var n=e.match(RegExp("rv:"+uI));if(n)return n[1]}function uL(e,t){"Safari"===e?e="Version":"Edge"===e&&uN(uD,t)&&(e="Edg");var n=t.match(RegExp(e+"/"+uI));return n||"Opera"===e&&(n=t.match(RegExp("OPR/"+uI)))?n[1]:uT}function uH(){var e={h:0,w:0},t=oQ();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e}function uz(){return this.getUserConsent()}var uV=function(){function e(t,n){var r=sr(n),o=t||{};t7(e,this,function(e){var t=o4();if(t){var n=t.hostname;n&&(e.domain="file:"===t.protocol?"local":n)}if(o.populateBrowserInfo){var a=o.userAgent,s=(o.userAgentData||{}).brands,l=o1();l&&(a=a||l.userAgent||"",s=s||(l.userAgentData||{}).brands),u(a,s);var c=uH();e.screenRes=c.w+"X"+c.h}function u(t,n){if(rY(n))try{for(var r=0;r<uR.length;r++){var o=uB(uR[r].br,n);if(o){e.browser=uR[r].b,e.browserVer=o;return}}}catch(e){}if(t){var a=uM(t);e.browser=a,e.browserVer=uF(t,a)}}rF(o.gpcDataSharingOptIn)?e.gpcDataSharingOptIn=null:e.gpcDataSharingOptIn=o.gpcDataSharingOptIn,e.getUserConsent=function(){return o.userConsented||!!i3(r,o.userConsentCookieName||"MSCC")},e.getUserConsentDetails=function(){var t=null;try{var n=o.callback;if(n&&n.userConsentDetails){var r=n.userConsentDetails();if(r){t=o.disableConsentDetailsSanitize?r:{};for(var a=0;a<uP.length;a++){var s=uP[a];t[s]=r[s]||!1}}}var l=e.gpcDataSharingOptIn;return null!==l&&((t=t||{}).GPC_DataSharingOptIn=!!l),t?JSON.stringify(t):null}catch(e){}},ot(e,"userConsent",e.getUserConsent)})}return e._staticInit=function(){ot(e.prototype,"userConsent",uz)}(),e}();function uU(e,t,n,r,o){var a=t.ext[cA[e]];if(a)try{rj(r,function(e,t){if(rJ(t)||rZ(t)||r0(t)){var r=a[n[e]];!o&&(r||rJ(r)||rZ(r)||r0(r))&&(t=r),a[n[e]]=t}})}catch(e){}return a}var uj=function(){function e(t,n,r){t7(e,this,function(e){e.app=new c3(n,r),e.cloud=new c6,e.user=new uk(t,n,r),e.os=new uf(n),e.web=new uV(n,r);var o=new uv(t,r),a=new ue(n,r),s=new uE(n);e.loc=new ut,e.device=new c8;var l=new c0(r,n);e.session=new cJ;var c=uW(new uy(n),p()),u=!(n||{}).eventContainExtFields;function d(){var t=e.session;if(t&&rJ(t.customId))return t.customId;l.update();var n=l.automaticSession;if(n){var r=n.getId();r&&rJ(r)&&(t.automaticId=r)}return t.automaticId}function p(){var e=c;return r&&r.getTraceCtx&&(e=r.getTraceCtx(!1)||c),e}e.getTraceCtx=function(){return c},e.getSessionId=d,e.applyApplicationContext=function(t){var n,r=e.app;uU(4,t,cR,((n={})[0]=r.id,n[1]=r.ver,n[2]=r.name,n[3]=r.locale,n[4]=r.getExpId(),n[5]=r.env,n),u)},e.applyUserContext=function(t){var n,r=e.user;uU(0,t,cB,((n={})[1]=r.getLocalId(),n[0]=r.locale,n[2]=r.id,n),u)},e.applyWebContext=function(t){var n,r=e.web;uU(3,t,cN,((n={})[0]=r.domain,n[1]=r.browser,n[2]=r.browserVer,n[3]=r.screenRes,n[5]=r.getUserConsentDetails(),n[4]=r.getUserConsent(),n),u)},e.applyOsContext=function(t){var n,r=e.os;uU(5,t,cM,((n={})[0]=r.name,n[1]=r.ver,n),u)},e.applySdkContext=function(e){var t;uU(6,e,cF,((t={})[2]=o.installId,t[1]=o.getSequenceId(),t[3]=o.epoch,t),u)},e.applyIntWebContext=function(e){var t;uU(7,e,cO,((t={})[0]=a.getMsfpc(),t[1]=a.getAnid(),t[2]=a.serviceName,t),u)},e.applyUtcContext=function(e){var t,n=((t={})[0]=s.popSample,t);s.eventFlags>0&&(n[1]=s.eventFlags),uU(8,e,cL,n,u)},e.applyLocContext=function(t){var n;uU(9,t,cH,((n={})[0]=e.loc.tz,n),u)},e.applySessionContext=function(e){var t;uU(4,e,cz,((t={})[0]=d(),t),u)},e.applyDeviceContext=function(t){var n,r=e.device;uU(1,t,cV,((n={})[0]=r.localId,n[2]=r.make,n[3]=r.model,n[1]=r.deviceClass,n),u)},e.applyCloudContext=function(t){var n,r=e.cloud;uU(10,t,cU,((n={})[0]=r.role,n[1]=r.roleInstance,n[2]=r.roleVer,n),u)},e.applyAITraceContext=function(e){var t;if(n.enableApplicationInsightsTrace){var r=p();r&&uU(2,e,cj,((t={})[0]=r.getTraceId(),t[1]=r.getName(),t[2]=r.getSpanId(),t),!1)}},e.applyDistributedTraceContext=function(e){var t,n=p();if(n){var r=((t={})[0]=n.getTraceId(),t[1]=n.getSpanId(),t),o=n.getTraceFlags();rO(o)||(r[2]=o),uU(11,e,cW,r,!1)}}})}return e.__ieDyn=1,e}();function uW(e,t){var n=e||{};return{getName:function(){return n.name},setName:function(e){t&&t.setName(e),n.name=e},getTraceId:function(){return n.traceId},setTraceId:function(e){t&&t.setTraceId(e),aS(e)&&(n.traceId=e)},getSpanId:function(){return n.parentId},setSpanId:function(e){t&&t.setSpanId(e),a_(e)&&(n.parentId=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}var uq=[cA["4"],cA["0"],cA["3"],cA["5"],cA["6"],cA["7"],cA["8"],cA["9"],cA["1"],cA["2"],cA["11"],cA["10"]];let uG=function(e){function t(){var n,r,o,a=e.call(this)||this;return a.identifier="SystemPropertiesCollector",a.priority=3,a.version="3.2.14",t7(t,a,function(e,t){function a(){n=null,r={}}function s(e,t){e&&rj(e,function(e,n){t[e]||(t[e]=n)})}a(),e.initialize=function(r,a,s){t.initialize(r,a,s),n=new uj(r,o=e._getTelCtx().getExtCfg(e.identifier),a),a&&a.setTraceCtx&&a.setTraceCtx(n.getTraceCtx())},e.processTelemetry=function(t,a){an(t,e.identifier),a=e._getTelCtx(a);var l=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},r4(uq,function(e){l[e]=l[e]||{}}),n&&(n.applyUtcContext(t),n.applyApplicationContext(t),n.applyUserContext(t),n.applyWebContext(t),n.applyOsContext(t),n.applySdkContext(t),n.applyIntWebContext(t),n.applyLocContext(t),n.applySessionContext(t),n.applyDeviceContext(t),o.enableApplicationInsightsTrace&&n.applyAITraceContext(t),o.enableDistributedTracing&&n.applyDistributedTraceContext(t),n.applyCloudContext(t)),r4(oe(l),function(e){0===oe(l[e]).length&&delete l[e]}),s(r,t.data),e.processNext(t,a)},e.getPropertiesContext=function(){return n},e.setProperty=function(e,t){r[e]=t},e._doTeardown=function(e,t){var r=(e||{}).core();if(r&&r.getTraceCtx&&n){var o=r.getTraceCtx(!1);o&&o===n.getTraceCtx()&&r.setTraceCtx(null)}a()}}),a}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(sh);var uK=["c:","i:","w:"],uX={"microsoft.com":"c1.microsoft.com","xbox.com":"c.xbox.com","live.com":"c.live.com","microsoftstore.com":"c.microsoftstore.com","msn.com":"c.msn.com","windows.com":"c.windows.com","office.com":"c.office.com"};let uY=function(){function e(t){this.core=t;var n,r=i6(),o=iV(),a=null,s=!1,l=sr(t);t7(e,this,function(e){e.getTraceId=function(){return t&&t.getTraceCtx&&t.getTraceCtx().getTraceId()||o},e.getLastPageViewId=function(){return r},e.initializeIds=function(){s?r=i6():s=!0},e.getMuidUserId=function(){var e=i3(l,"MUID");return e&&e.length?"t:"+e:e},e.setAppUserId=function(e){if(a=null,e){for(var t=0;t<uK.length;t++)if(uK[t]===e.substring(0,2)){a=e;break}}},e.setDeviceClass=function(e){e&&(n=e)},e.getDeviceClass=function(){return n},e.getAppUserId=function(){return a},e.syncMuid=function(e){var t=o4();if(t&&e){var n=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",r=oZ();if(r){var o=r.createElement("IMG");o.style.display="none",o.src=n,o.hidden="",o["aria-hidden"]="true",o.role="presentation"}return!0}return!1},e.getMuidHost=function(e){return uX[e]}})}return e.visitorId=function(){return i3(sr(null),"MUID")},e}(),u$=function(){function e(){this._timers=[]}return e.prototype._recordTimeSpan=function(e,t){var n=new Date().getTime();if(t)return n-this._timers[e];this._timers[e]=n},e}();var uQ="split",uJ="length",uZ="toLowerCase",u0="toString",u1="removeItem",u2="name",u5="message",u4="count",u3="stringify",u6="pathname",u8="correlationHeaderExcludePatterns",u9="indexOf",u7="exceptions",de="parsedStack",dt="properties",dn="measurements",dr="sizeInBytes",di="typeName",da="severityLevel",ds="problemGroup",dl="isManual",dc="CreateFromInterface",du="assembly",dd="fileName",dp="hasFullStack",df="level",dh="method",dm="line",dg="duration",dv="receivedResponse",dy="substring",db="sanitizeKeyAndAddUniqueness",dx="sanitizeException",dC="sanitizeProperties",dk="sanitizeMeasurements",dw="";function dS(e,t){return(void 0===t&&(t=!1),null==e)?t:"true"===e.toString()[uZ]()}function d_(e){(isNaN(e)||e<0)&&(e=0);var t=dw+(e=Math.round(e))%1e3,n=dw+Math.floor(e/1e3)%60,r=dw+Math.floor(e/6e4)%60,o=dw+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t[uJ]?"00"+t:2===t[uJ]?"0"+t:t,n=n[uJ]<2?"0"+n:n,r=r[uJ]<2?"0"+r:r,(a>0?a+".":dw)+(o=o[uJ]<2?"0"+o:o)+":"+r+":"+n+"."+t}function dE(e,t,n,r,o){return!o&&rJ(e)&&("Script error."===e||"Script error"===e)}var dP=lo({LocalStorage:0,SessionStorage:1});lo({AI:0,AI_AND_W3C:1,W3C:2});var dI=void 0,dT=void 0,dD="";function dA(e){try{if(rO((0,n5.mS)()))return null;var t=(new Date)[u0](),n=oY(e===dP.LocalStorage?"localStorage":"sessionStorage"),r=dD+t;n.setItem(r,t);var o=n.getItem(r)!==t;if(n[u1](r),!o)return n}catch(e){}return null}function dR(){return dO()?dA(dP.SessionStorage):null}function dN(){dI=!1,dT=!1}function dB(e){dD=e||""}function dM(){dI=dF(!0),dT=dO(!0)}function dF(e){return(e||void 0===dI)&&(dI=!!dA(dP.LocalStorage)),dI}function dO(e){return(e||void 0===dT)&&(dT=!!dA(dP.SessionStorage)),dT}function dL(e,t){var n=dR();if(null!==n)try{return n.getItem(t)}catch(t){dT=!1,iE(e,2,2,"Browser failed read of session storage. "+oa(t),{exception:ii(t)})}return null}function dH(e,t,n){var r=dR();if(null!==r)try{return r.setItem(t,n),!0}catch(t){dT=!1,iE(e,2,4,"Browser failed write to session storage. "+oa(t),{exception:ii(t)})}return!1}function dz(e,t){var n=dR();if(null!==n)try{return n[u1](t),!0}catch(t){dT=!1,iE(e,2,6,"Browser failed removal of session storage item. "+oa(t),{exception:ii(t)})}return!1}var dV="AppInsightsPropertiesPlugin",dU="ApplicationInsightsAnalytics",dj="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",dW="https://dc.services.visualstudio.com",dq="/v2/track",dG="not_specified",dK="iKey";function dX(e,t,n){var r=t[uJ],o=dY(e,t);if(o[uJ]!==r){for(var a=0,s=o;void 0!==n[s];)a++,s=o[dy](0,147)+d4(a);o=s}return o}function dY(e,t){var n;return t&&(t=r8(t[u0]()))[uJ]>150&&(n=t[dy](0,150),iE(e,2,57,"name is too long.  It has been truncated to 150 characters.",{name:t},!0)),n||t}function d$(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=r8(t)).toString()[uJ]>n&&(r=t[u0]()[dy](0,n),iE(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function dQ(e,t){return d5(e,t,2048,66)}function dJ(e,t){var n;return t&&t[uJ]>32768&&(n=t[dy](0,32768),iE(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function dZ(e,t){var n;if(t){var r=""+t;r[uJ]>32768&&(n=r[dy](0,32768),iE(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function d0(e,t){if(t){var n={};rj(t,function(t,r){if(rz(r)&&o8())try{r=o9()[u3](r)}catch(t){iE(e,2,49,"custom property is not valid",{exception:t},!0)}r=d$(e,r,8192),t=dX(e,t,n),n[t]=r}),t=n}return t}function d1(e,t){if(t){var n={};rj(t,function(t,r){t=dX(e,t,n),n[t]=r}),t=n}return t}function d2(e,t){return t?d5(e,t,128,69)[u0]():t}function d5(e,t,n,r){var o;return t&&(t=r8(t))[uJ]>n&&(o=t[dy](0,n),iE(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function d4(e){var t="00"+e;return t.substr(t[uJ]-3)}function d3(e,t,n,r,o,a){n=d$(r,n)||dG,(rO(e)||rO(t)||rO(n))&&od("Input doesn't contain all required fields");var s,l="";e[dK]&&(l=e[dK],delete e[dK]);var c=((s={})[u2]=n,s.time=r2(new Date),s.iKey=l,s.ext=a||{},s.tags=[],s.data={},s.baseType=t,s.baseData=e,s);return rO(o)||rj(o,function(e,t){c.data[e]=t}),c}(C={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768})[db]=dX,C.sanitizeKey=dY,C.sanitizeString=d$,C.sanitizeUrl=dQ,C.sanitizeMessage=dJ,C[dx]=dZ,C[dC]=d0,C[dk]=d1,C.sanitizeId=d2,C.sanitizeInput=d5,C.padNumber=d4,C.trim=r8,function(){(function e(){}).create=d3}();var d6=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[u2]=d$(e,t)||dG,o[dt]=d0(e,n),o[dn]=d1(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),d8=function(){function e(e,t,n,r,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;a.ver=2,t=t||dG,a[u5]=dJ(e,t),a[dt]=d0(e,r),a[dn]=d1(e,o),n&&(a[da]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),d9=function(){return function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}}(),d7=function(){function e(e,t,n,r,o,a,s,l,c){this.aiDataContract={ver:1,metrics:1,properties:0};var u=this;u.ver=2;var d=new d9;d[u4]=r>0?r:void 0,d.max=isNaN(a)||null===a?void 0:a,d.min=isNaN(o)||null===o?void 0:o,d[u2]=d$(e,t)||dG,d.value=n,d.stdDev=isNaN(s)||null===s?void 0:s,u.metrics=[d],u[dt]=d0(e,l),u[dn]=d1(e,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),pe=function(){function e(e,t,n,r,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var l=this;l.ver=2,l.id=d2(e,s),l.url=dQ(e,n),l[u2]=d$(e,t)||dG,isNaN(r)||(l[dg]=d_(r)),l[dt]=d0(e,o),l[dn]=d1(e,a)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),pt=function(){function e(e,t,n,r,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var l=this;l.ver=2,l.url=dQ(e,n),l[u2]=d$(e,t)||dG,l[dt]=d0(e,o),l[dn]=d1(e,a),s&&(l.domProcessing=s.domProcessing,l[dg]=s[dg],l.networkConnect=s.networkConnect,l.perfTotal=s.perfTotal,l[dv]=s[dv],l.sentRequest=s.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),pn="<no_method>",pr="error",po="stack",pi="stackDetails",pa="errorSrc",ps="message",pl="description";function pc(e,t){var n=e;return n&&!rJ(n)&&(JSON&&JSON[u3]?(n=JSON[u3](e),t&&(!n||"{}"===n)&&(n=rV(e[u0])?e[u0]():""+e)):n=""+e+" - (Missing JSON.stringify)"),n||""}function pu(e,t){var n=e;return e&&(n&&!rJ(n)&&(n=e[ps]||e[pl]||n),n&&!rJ(n)&&(n=pc(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(n||"")[u9](t)&&(n=t+": "+n),n||""}function pd(e){try{if(rz(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}function pp(e){try{if(rz(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}function pf(e){return e&&e.src&&rJ(e.src)&&e.obj&&rY(e.obj)}function ph(e){var t=e||"";rJ(t)||(t=rJ(t[po])?t[po]:""+t);var n=t[uQ]("\n");return{src:t,obj:n}}function pm(e){for(var t=[],n=e[uQ]("\n"),r=0;r<n[uJ];r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}function pg(e){var t=null;if(e)try{if(e[po])t=ph(e[po]);else if(e[pr]&&e[pr][po])t=ph(e[pr][po]);else if(e.exception&&e.exception[po])t=ph(e.exception[po]);else if(pf(e))t=e;else if(pf(e[pi]))t=e[pi];else if(window&&window.opera&&e[ps])t=pm(e[u5]);else if(e.reason&&e.reason[po])t=ph(e.reason[po]);else if(rJ(e))t=ph(e);else{var n=e[ps]||e[pl]||"";rJ(e[pa])&&(n&&(n+="\n"),n+=" from "+e[pa]),n&&(t=ph(n))}}catch(e){t=ph(e)}return t||{src:"",obj:null}}function pv(e){var t="";return e&&(e.obj?r4(e.obj,function(e){t+=e+"\n"}):t=e.src||""),t}function py(e){var t,n=e.obj;if(n&&n[uJ]>0){t=[];var r=0,o=0;r4(n,function(e){var n=e[u0]();if(pw.regex.test(n)){var a=new pw(n,r++);o+=a[dr],t.push(a)}});var a=32768;if(o>32768)for(var s=0,l=t[uJ]-1,c=0,u=s,d=l;s<l;){if((c+=t[s][dr]+t[l][dr])>a){var p=d-u+1;t.splice(u,p);break}u=s,d=l,s++,l--}}return t}function pb(e){var t="";if(e&&!(t=e.typeName||e[u2]||""))try{var n=/function (.{1,200})\(/.exec(e.constructor[u0]());t=n&&n[uJ]>1?n[1]:""}catch(e){}return t}function px(e){if(e)try{if(!rJ(e)){var t=pb(e),n=pc(e,!1);if(n&&"{}"!==n||(e[pr]&&(e=e[pr],t=pb(e)),n=pc(e,!0)),0!==n[u9](t)&&"String"!==t)return t+":"+n;return n}}catch(e){}return""+(e||"")}var pC=function(){function e(e,t,n,r,o,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,pp(t)?(s[u7]=t[u7]||[],s[dt]=t[dt],s[dn]=t[dn],t[da]&&(s[da]=t[da]),t.id&&(s.id=t.id),t[ds]&&(s[ds]=t[ds]),rO(t[dl])||(s[dl]=t[dl])):(n||(n={}),s[u7]=[new pk(e,t,n)],s[dt]=d0(e,n),s[dn]=d1(e,r),o&&(s[da]=o),a&&(s.id=a))}return e.CreateAutoException=function(e,t,n,r,o,a,s,l){var c,u=pb(o||a||e);return(c={})[u5]=pu(e,u),c.url=t,c.lineNumber=n,c.columnNumber=r,c.error=px(o||a||e),c.evt=px(a||e),c[di]=u,c.stackDetails=pg(s||o||a),c.errorSrc=l,c},e.CreateFromInterface=function(t,n,r,o){var a=n[u7]&&r6(n[u7],function(e){return pk[dc](t,e)});return new e(t,(0,tS.Im)((0,tS.Im)({},n),{exceptions:a}),r,o)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,o=t.measurements,a=t.severityLevel,s=t.problemGroup,l=t.id,c=t.isManual,u=n instanceof Array&&r6(n,function(e){return e.toInterface()})||void 0;return(e={ver:"4.0"})[u7]=u,e.severityLevel=a,e.properties=r,e.measurements=o,e.problemGroup=s,e.id=l,e.isManual=c,e},e.CreateSimpleException=function(e,t,n,r,o,a){var s;return{exceptions:[((s={})[dp]=!0,s.message=e,s.stack=o,s.typeName=t,s)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=px,e}(),pk=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(pd(t))r[di]=t[di],r[u5]=t[u5],r[po]=t[po],r[de]=t[de]||[],r[dp]=t[dp];else{var o=t,a=o&&o.evt;rQ(o)||(o=o[pr]||a||o),r[di]=d$(e,pb(o))||dG,r[u5]=dJ(e,pu(t||o,r[di]))||dG;var s=t[pi]||pg(t);r[de]=py(s),rY(r[de])&&r6(r[de],function(t){t[du]=d$(e,t[du]),t[dd]=d$(e,t[dd])}),r[po]=dZ(e,pv(s)),r.hasFullStack=rY(r.parsedStack)&&r.parsedStack[uJ]>0,n&&(n[di]=n[di]||r[di])}}return e.prototype.toInterface=function(){var e,t=this,n=t[de]instanceof Array&&r6(t[de],function(e){return e.toInterface()});return(e={id:t.id,outerId:t.outerId,typeName:t[di],message:t[u5],hasFullStack:t[dp],stack:t[po]})[de]=n||void 0,e},e.CreateFromInterface=function(t,n){var r=n[de]instanceof Array&&r6(n[de],function(e){return pw[dc](e)})||n[de];return new e(t,(0,tS.Im)((0,tS.Im)({},n),{parsedStack:r}))},e}(),pw=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r[dr]=0,"string"==typeof t){var o=t;r[df]=n,r[dh]=pn,r[du]=r8(o),r[dd]="",r[dm]=0;var a=o.match(e.regex);a&&a[uJ]>=5&&(r[dh]=r8(a[2])||r[dh],r[dd]=r8(a[4]),r[dm]=parseInt(a[5])||0)}else r[df]=t[df],r[dh]=t[dh],r[du]=t[du],r[dd]=t[dd],r[dm]=t[dm],r[dr]=0;r.sizeInBytes+=r.method[uJ],r.sizeInBytes+=r.fileName[uJ],r.sizeInBytes+=r.assembly[uJ],r[dr]+=e.baseSize,r.sizeInBytes+=r.level.toString()[uJ],r.sizeInBytes+=r.line.toString()[uJ]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[df],method:e[dh],assembly:e[du],fileName:e[dd],line:e[dm]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}(),pS=li({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),p_=oZ()||{},pE=0,pP=[null,null,null,null,null];function pI(e){var t=pE,n=pP,r=n[t];return p_.createElement?n[t]||(r=n[t]=p_.createElement("a")):r={host:pA(e,!0)},r.href=e,++t>=n[uJ]&&(t=0),pE=t,r}function pT(e){var t,n=pI(e);return n&&(t=n.href),t}function pD(e,t){return e?e.toUpperCase()+" "+t:t}function pA(e,t){var n=pR(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[uJ]>3&&rJ(r[2])&&r[2][uJ]>0)return r[2]+(r[3]||"")}return n}function pR(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[uJ]>2&&rJ(r[2])&&r[2][uJ]>0&&(n=r[2]||"",t&&r[uJ]>2)){var o=(r[1]||"")[uZ](),a=r[3]||"";"http"===o&&":80"===a?a="":"https"===o&&":443"===a&&(a=""),n+=a}}return n}var pN=[dW+dq,"https://breeze.aimon.applicationinsights.io"+dq,"https://dc-int.services.visualstudio.com"+dq];function pB(e){return -1!==r3(pN,e[uZ]())}var pM={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[u8]){for(var r,o=0;o<e.correlationHeaderExcludePatterns[uJ];o++)if(e[u8][o].test(t))return!1}var a=pI(t).host[uZ]();if(a&&(-1!==a[u9](":443")||-1!==a[u9](":80"))&&(a=(pR(t,!0)||"")[uZ]()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;var s=e&&e.correlationHeaderDomains;if(s&&(r4(s,function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));r=r||t.test(a)}),!r))return!1;var l=e&&e.correlationHeaderExcludedDomains;if(!l||0===l[uJ])return!0;for(var o=0;o<l[uJ];o++)if(new RegExp(l[o].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(a))return!1;return a&&a[uJ]>0},getCorrelationContext:function(e){if(e){var t=pM.getCorrelationContextValue(e,pS["1"]);if(t&&t!==pM.correlationIdPrefix)return t}},getCorrelationContextValue:function(e,t){if(e)for(var n=e[uQ](","),r=0;r<n[uJ];++r){var o=n[r][uQ]("=");if(2===o[uJ]&&o[0]===t)return o[1]}}};function pF(e,t,n,r){var o,a=r,s=r;if(t&&t[uJ]>0){var l=pI(t);if(o=l.host,!a)if(null!=l[u6]){var c=0===l.pathname[uJ]?"/":l[u6];"/"!==c.charAt(0)&&(c="/"+c),s=l[u6],a=d$(e,n?n+" "+c:c)}else a=d$(e,t)}else o=r,a=r;return{target:o,name:a,data:s}}function pO(){var e=o6();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return oi()}function pL(e,t){var n=null;return 0===e||0===t||rO(e)||rO(t)||(n=t-e),n}function pH(e,t){var n=e||{};return{getName:function(){return n[u2]},setName:function(e){t&&t.setName(e),n[u2]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),aS(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),a_(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}var pz=function(){function e(e,t,n,r,o,a,s,l,c,u,d,p){void 0===c&&(c="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var f=this;f.ver=2,f.id=t,f[dg]=d_(o),f.success=a,f.resultCode=s+"",f.type=d$(e,c);var h=pF(e,n,l,r);f.data=dQ(e,r)||h.data,f.target=d$(e,h.target),u&&(f.target="".concat(f.target," | ").concat(u)),f[u2]=d$(e,h[u2]),f[dt]=d0(e,d),f[dn]=d1(e,p)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}();function pV(e){var t=null;if(rV(Event))t=new Event(e);else{var n=oZ();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}var pU="_aiHooks",pj=["req","rsp","hkErr","fnErr"];function pW(e,t){if(e)for(var n=0;n<e[nc]&&!t(e[n],n);n++);}function pq(e,t,n,r,o){o>=0&&o<=2&&pW(e,function(e,a){var s=e.cbks,l=s[pj[o]];if(l){t.ctx=function(){return r[a]=r[a]||{}};try{l[nH](t.inst,n)}catch(e){var c=t.err;try{var u=s[pj[2]];u&&(t.err=e,u[nH](t.inst,n))}catch(e){}finally{t.err=c}}}})}function pG(e){return function(){var t,n=this,r=arguments,o=e.h,a=((t={})[nt]=e.n,t.inst=n,t.ctx=null,t.set=u,t),s=[],l=c([a],r);function c(e,t){return pW(t,function(t){e[no](t)}),e}function u(e,t){(r=c([],r))[e]=t,l=c([a],r)}a.evt=oY("event"),pq(o,a,l,s,0);var d=e.f;if(d)try{a.rslt=d[nH](n,r)}catch(e){throw a.err=e,pq(o,a,l,s,3),e}return pq(o,a,l,s,1),a.rslt}}function pK(e,t,n,r){var o=null;return e&&(rH(e,t)?o=e:n&&(o=pK(rM(e),t,r,!1))),o}function pX(e,t,n){return e?p$(e[n2.vR],t,n,!1):null}function pY(e,t,n,r){var o=n&&n[pU];if(!o){var a=pG(o={i:0,n:t,f:n,h:[]});a[pU]=o,e[t]=a}var s={id:o.i,cbks:r,rm:function(){var e=this.id;pW(o.h,function(t,n){if(t.id===e)return o.h[nx](n,1),1})}};return o.i++,o.h[no](s),s}function p$(e,t,n,r,o){if(void 0===r&&(r=!0),e&&t&&n){var a=pK(e,t,r,o);if(a){var s=a[t];if(typeof s===n2.hW)return pY(a,t,s,n)}}return null}function pQ(e,t,n,r,o){if(e&&t&&n){var a=pK(e,t,r,o)||e;if(a)return pY(a,t,a[t],n)}return null}var pJ="toString",pZ="disableExceptionTracking",p0="autoTrackPageVisitTime",p1="overridePageViewDuration",p2="enableUnhandledPromiseRejectionTracking",p5="samplingPercentage",p4="isStorageUseDisabled",p3="isBrowserLinkTrackingEnabled",p6="enableAutoRouteTracking",p8="namePrefix",p9="disableFlushOnBeforeUnload",p7="core",fe="dataType",ft="envelopeType",fn="diagLog",fr="track",fo="trackPageView",fi="trackPreviousPageVisit",fa="sendPageViewInternal",fs="sendPageViewPerformanceInternal",fl="populatePageViewPerformanceEvent",fc="href",fu="sendExceptionInternal",fd="exception",fp="error",ff="_onerror",fh="errorSrc",fm="lineNumber",fg="columnNumber",fv="message",fy="CreateAutoException",fb="addTelemetryInitializer",fx="duration",fC="length",fk="isPerformanceTimingSupported",fw="getPerformanceTiming",fS="navigationStart",f_="shouldCollectDuration",fE="isPerformanceTimingDataReady",fP="getEntriesByType",fI="responseStart",fT="requestStart",fD="loadEventEnd",fA="responseEnd",fR="connectEnd",fN="pageVisitStartTime",fB=null;function fM(){if(null==fB)try{fB=!!(self&&self instanceof WorkerGlobalScope)}catch(e){fB=!1}return fB}var fF=function(){function e(t,n,r,o){t7(e,this,function(e){var a,s=null,l=[],c=!1;function u(e){r&&r.flush(e)}function d(){s||(s=setTimeout(function(){s=null;var e=l.slice(0),t=!1;l=[],r4(e,function(e){e()?t=!0:l.push(e)}),l[fC]>0&&d(),t&&u(!0)},100))}function p(e){l.push(e),d()}r&&(a=r.logger),e[fo]=function(e,r){var s,l,d=e.name;if(rO(d)||"string"!=typeof d){var f=oZ();d=e.name=f&&f.title||""}var h=e.uri;if(rO(h)||"string"!=typeof h){var m=o4();h=e.uri=m&&m[fc]||""}if(!o[fk]()){t[fa](e,r),u(!0),fM()||iE(a,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var g=!1,v=o[fw]()[fS];v>0&&(s=pL(v,+new Date),o[f_](s)||(s=void 0)),rO(r)||rO(r[fx])||(l=r[fx]),(n||!isNaN(l))&&(isNaN(l)&&(r||(r={}),r[fx]=s),t[fa](e,r),u(!0),g=!0);var y=6e4;r||(r={}),p(function(){var n=!1;try{if(o[fE]()){n=!0;var l={name:d,uri:h};o[fl](l),l.isValid||g?(g||(r[fx]=l.durationMs,t[fa](e,r)),c||(t[fs](l,r),c=!0)):(r[fx]=s,t[fa](e,r))}else v>0&&pL(v,+new Date)>y&&(n=!0,g||(r[fx]=y,t[fa](e,r)))}catch(e){iE(a,1,38,"trackPageView failed on page load calculation: "+oa(e),{exception:ii(e)})}return n})},e.teardown=function(e,t){if(s){clearTimeout(s),s=null;var n=l.slice(0),r=!1;l=[],r4(n,function(e){e()&&(r=!0)})}}})}return e.__ieDyn=1,e}(),fO=36e5,fL=["googlebot","adsbot-google","apis-google","mediapartners-google"];function fH(){var e=o6();return e&&!!e.timing}function fz(){var e=o6();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[fC]>0}function fV(){var e=o6(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[fS]>0&&t[fI]>0&&t[fT]>0&&t[fD]>0&&t[fA]>0&&t[fR]>0&&t.domLoading>0}function fU(){return fH()?o6().timing:null}function fj(){return fz()?o6()[fP]("navigation")[0]:null}function fW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(o1()||{}).userAgent,r=!1;if(n)for(var o=0;o<fL[fC];o++)r=r||-1!==n.toLowerCase().indexOf(fL[o]);if(r)return!1;for(var o=0;o<e[fC];o++)if(e[o]<0||e[o]>=fO)return!1;return!0}var fq=function(){function e(t){var n=iw(t);t7(e,this,function(e){e[fl]=function(t){t.isValid=!1;var r=fj(),o=fU(),a=0,s=0,l=0,c=0,u=0;(r||o)&&(r?(a=r[fx],s=0===r.startTime?r[fR]:pL(r.startTime,r[fR]),l=pL(r.requestStart,r[fI]),c=pL(r[fI],r[fA]),u=pL(r.responseEnd,r[fD])):(a=pL(o[fS],o[fD]),s=pL(o[fS],o[fR]),l=pL(o.requestStart,o[fI]),c=pL(o[fI],o[fA]),u=pL(o.responseEnd,o[fD])),0===a?iE(n,2,10,"error calculating page view performance.",{total:a,network:s,request:l,response:c,dom:u}):e[f_](a,s,l,c,u)?a<Math.floor(s)+Math.floor(l)+Math.floor(c)+Math.floor(u)?iE(n,2,8,"client performance math error.",{total:a,network:s,request:l,response:c,dom:u}):(t.durationMs=a,t.perfTotal=t[fx]=d_(a),t.networkConnect=d_(s),t.sentRequest=d_(l),t.receivedResponse=d_(c),t.domProcessing=d_(u),t.isValid=!0):iE(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:a,network:s,request:l,response:c,dom:u}))},e[fw]=fU,e[fk]=fH,e[fE]=fV,e[f_]=fW})}return e.__ieDyn=1,e}(),fG=function(){function e(t,n){var r="prevPageVisitData";t7(e,this,function(e){function o(e,n){var r=null;try{r=s(),a(e,n)}catch(e){iP(t,"Call to restart failed: "+ii(e)),r=null}return r}function a(e,n){try{if(dO()){null!=dL(t,r)&&od("Cannot call startPageVisit consecutively without first calling stopPageVisit");var o=new fK(e,n),a=o9().stringify(o);dH(t,r,a)}}catch(e){iP(t,"Call to start failed: "+ii(e))}}function s(){var e=null;try{if(dO()){var n=oi(),o=dL(t,r);o&&o8()&&((e=o9().parse(o)).pageVisitTime=n-e[fN],dz(t,r))}}catch(n){iP(t,"Stop page visit timer failed: "+ii(n)),e=null}return e}e[fi]=function(e,r){try{var a=o(e,r);a&&n(a.pageName,a.pageUrl,a.pageVisitTime)}catch(e){iP(t,"Auto track page visit time failed, metric will not be collected: "+ii(e))}},ot(e,"_logger",function(){return t}),ot(e,"pageVisitTimeTrackingHandler",function(){return n})})}return e.__ieDyn=1,e}(),fK=function(){return function(e,t){this[fN]=oi(),this.pageName=e,this.pageUrl=t}}(),fX=function(){return function(e,t){var n=this,r={};n.start=function(t){void 0!==r[t]&&iE(e,2,62,"start was called more than once for this event without calling stop.",{name:t,key:t},!0),r[t]=+new Date},n.stop=function(t,o,a,s){var l=r[t];if(isNaN(l))iE(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var c=pL(l,+new Date);n.action(t,o,c,a,s)}delete r[t],r[t]=void 0}}}(),fY="event";function f$(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function fQ(e){if(e&&e.reason){var t=e.reason;return!rJ(t)&&rV(t[pJ])?t[pJ]():ii(t)}return e||""}var fJ=6e4;function fZ(e,t){return(e=e||t)<fJ&&(e=fJ),e}function f0(e){return e||(e={}),e.sessionRenewalMs=fZ(e.sessionRenewalMs,18e5),e.sessionExpirationMs=fZ(e.sessionExpirationMs,864e5),e[pZ]=dS(e[pZ]),e[p0]=dS(e[p0]),e[p1]=dS(e[p1]),e[p2]=dS(e[p2]),(isNaN(e[p5])||e[p5]<=0||e[p5]>=100)&&(e[p5]=100),e[p4]=dS(e[p4]),e[p3]=dS(e[p3]),e[p6]=dS(e[p6]),e[p8]=e[p8]||"",e.enableDebug=dS(e.enableDebug),e[p9]=dS(e[p9]),e.disableFlushOnUnload=dS(e.disableFlushOnUnload,e[p9]),e}function f1(e){rF(e[p4])||(e[p4]?dN():dM())}var f2=function(e){function t(){var n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x=e.call(this)||this;x.identifier=dU,x.priority=180,x.autoRoutePVDelay=500;var C=0;return t7(t,x,function(e,t){var x=t._addHook;function k(t){var n=aL(null,t,e[p7]),r=e.identifier,o=f0(t),a=e.config=n.getExtCfg(r);return void 0!==o&&rj(o,function(e,t){a[e]=n.getConfig(r,e,t),void 0===a[e]&&(a=t)}),a}function w(e,t){c=e[p3]||t[p3],_()}function S(t,n,r){var o={PageName:t,PageUrl:n};e.trackMetric({name:"PageVisitTime",average:r,max:r,min:r,sampleCount:1},o)}function _(){if(!u&&c){var t=["/browserLinkSignalR/","/__browserLink/"],n=function(e){if(c&&e.baseType===pz[fe]){var n=e.baseData;if(n){for(var r=0;r<t[fC];r++)if(n.target&&n.target.indexOf(t[r])>=0)return!1}}return!0};e[fb](n),u=!0}}function E(t,n){var r=d3(t,pC[fe],pC[ft],e[fn](),n);e[p7][fr](r)}function P(t){var n=oQ(),r=o4(!0);(f=t[pZ])||h||t.autoExceptionInstrumented||(x(pQ(n,"onerror",{ns:b,rsp:function(t,n,r,o,a,s){f||!0===t.rslt||e[ff](pC[fy](n,r,o,a,s,t.evt))}},!1)),h=!0),A(t,n,r)}function I(e){var t=oQ(),n=o4(!0);if(d=!0===e[p6],t&&d&&o2()){var r=o5();rV(r.pushState)&&rV(r.replaceState)&&typeof Event!==n2.bA&&D(e,t,r,n)}}function T(){var t=null;if(e[p7]&&e[p7].getTraceCtx&&(t=e[p7].getTraceCtx(!1)),!t){var n=e[p7].getPlugin(dV);if(n){var r=n.plugin.context;r&&(t=pH(r.telemetryTrace))}}return t}function D(t,n,r,o){var a=t[p8]||"";function s(){d&&f$(n,pV(a+"locationchange"))}function l(){if(y&&(v=y),y=o&&o[fc]||"",d){var t=T();if(t){t.setTraceId(iV());var n="_unknown_";o&&o.pathname&&(n=o.pathname+(o.hash||"")),t.setName(d$(e[fn](),n))}setTimeout((function(t){e[fo]({refUri:t,properties:{duration:0}})}).bind(e,v),e.autoRoutePVDelay)}}p||(x(pQ(r,"pushState",{ns:b,rsp:function(){d&&(f$(n,pV(a+"pushState")),f$(n,pV(a+"locationchange")))}},!0)),x(pQ(r,"replaceState",{ns:b,rsp:function(){d&&(f$(n,pV(a+"replaceState")),f$(n,pV(a+"locationchange")))}},!0)),s1(n,a+"popstate",s,b),s1(n,a+"locationchange",l,b),p=!0)}function A(t,n,r){(m=!0===t[p2])&&!g&&(x(pQ(n,"onunhandledrejection",{ns:b,rsp:function(t,n){m&&!0!==t.rslt&&e[ff](pC[fy](fQ(n),r?r[fc]:"",0,0,n,t.evt))}},!1)),t.autoUnhandledPromiseInstrumented=g=!0)}function R(t,n,r,o,a){e[fn]().throwInternal(t,n,r,o,a)}function N(){n=null,r=null,o=null,a=null,s=null,l=null,c=!1,u=!1,d=!1,p=!1,f=!1,h=!1,m=!1,g=!1,C=0;var e=o4(!0);v=e&&e[fc]||"",y=null,b=null}N(),e.getCookieMgr=function(){return sr(e[p7])},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var r=d3(t,d6[fe],d6[ft],e[fn](),n);e[p7][fr](r)}catch(e){R(2,39,"trackTrace failed, trace will not be collected: "+oa(e),{exception:ii(e)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(e){R(1,29,"startTrackEvent failed, event will not be collected: "+oa(e),{exception:ii(e)})}},e.stopTrackEvent=function(e,t,r){try{n.stop(e,void 0,t,r)}catch(e){R(1,30,"stopTrackEvent failed, event will not be collected: "+oa(e),{exception:ii(e)})}},e.trackTrace=function(t,n){try{var r=d3(t,d8[fe],d8[ft],e[fn](),n);e[p7][fr](r)}catch(e){R(2,39,"trackTrace failed, trace will not be collected: "+oa(e),{exception:ii(e)})}},e.trackMetric=function(t,n){try{var r=d3(t,d7[fe],d7[ft],e[fn](),n);e[p7][fr](r)}catch(e){R(1,36,"trackMetric failed, metric will not be collected: "+oa(e),{exception:ii(e)})}},e[fo]=function(t,n){try{var r=t||{};o[fo](r,(0,tS.Im)((0,tS.Im)((0,tS.Im)({},r.properties),r.measurements),n)),e.config[p0]&&s[fi](r.name,r.uri)}catch(e){R(1,37,"trackPageView failed, page view will not be collected: "+oa(e),{exception:ii(e)})}},e[fa]=function(t,n,r){var o=oZ();o&&(t.refUri=void 0===t.refUri?o.referrer:t.refUri);var a=d3(t,pe[fe],pe[ft],e[fn](),n,r);e[p7][fr](a),C=0},e[fs]=function(t,n,r){var o=d3(t,pt[fe],pt[ft],e[fn](),n,r);e[p7][fr](o)},e.trackPageViewPerformance=function(t,n){var r=t||{};try{a[fl](r),e[fs](r,n)}catch(e){R(1,37,"trackPageViewPerformance failed, page view will not be collected: "+oa(e),{exception:ii(e)})}},e.startTrackPage=function(e){try{if("string"!=typeof e){var t=oZ();e=t&&t.title||""}r.start(e)}catch(e){R(1,31,"startTrackPage failed, page view may not be collected: "+oa(e),{exception:ii(e)})}},e.stopTrackPage=function(t,n,o,a){try{if("string"!=typeof t){var l=oZ();t=l&&l.title||""}if("string"!=typeof n){var c=o4();n=c&&c[fc]||""}r.stop(t,n,o,a),e.config[p0]&&s[fi](t,n)}catch(e){R(1,32,"stopTrackPage failed, page view will not be collected: "+oa(e),{exception:ii(e)})}},e[fu]=function(t,n,r){var o=t&&(t[fd]||t[fp])||rQ(t)&&t||{name:t&&typeof t,message:t||dG};t=t||{};var a=d3(new pC(e[fn](),o,t.properties||n,t.measurements,t.severityLevel,t.id).toInterface(),pC[fe],pC[ft],e[fn](),n,r);e[p7][fr](a)},e.trackException=function(t,n){t&&!t[fd]&&t[fp]&&(t[fd]=t[fp]);try{e[fu](t,n)}catch(e){R(1,35,"trackException failed, exception will not be collected: "+oa(e),{exception:ii(e)})}},e[ff]=function(t){var n=t&&t[fp],r=t&&t.evt;try{if(!r){var o=oQ();o&&(r=o[fY])}var a=t&&t.url||(oZ()||{}).URL,s=t[fh]||"window.onerror@"+a+":"+(t[fm]||0)+":"+(t[fg]||0),l={errorSrc:s,url:a,lineNumber:t[fm]||0,columnNumber:t[fg]||0,message:t[fv]};dE(t.message,t.url,t.lineNumber,t.columnNumber,t[fp])?E(pC[fy]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",a,t[fm]||0,t[fg]||0,n,r,null,s),l):(t[fh]||(t[fh]=s),e.trackException({exception:t,severityLevel:3},l))}catch(e){var c=n?n.name+", "+n[fv]:"null";R(1,11,"_onError threw exception while logging error, error will not be collected: "+oa(e),{exception:ii(e),errorString:c})}},e[fb]=function(t){if(e[p7])return e[p7][fb](t);l||(l=[]),l.push(t)},e.initialize=function(c,u,d,p){if(!e.isInitialized()){rO(u)&&od("Error initializing"),t.initialize(c,u,d,p),c.storagePrefix&&dB(c.storagePrefix);try{b=s0(af(e.identifier),u.evtNamespace&&u.evtNamespace()),l&&(r4(l,function(e){u[fb](e)}),l=null);var f=k(c);f1(f),a=new fq(e[p7]),o=new fF(e,f[p1],e[p7],a),s=new fG(e[fn](),function(e,t,n){return S(e,t,n)}),w(f,c),(n=new fX(e[fn](),"trackEvent")).action=function(t,n,r,o,a){o||(o={}),a||(a={}),o.duration=r[pJ](),e.trackEvent({name:t,properties:o,measurements:a})},(r=new fX(e[fn](),"trackPageView")).action=function(t,n,r,o,a){rO(o)&&(o={}),o.duration=r[pJ]();var s={name:t,uri:n,properties:o,measurements:a};e[fa](s,o)},o$()&&(P(f),I(f))}catch(t){throw e.setInitialized(!1),t}}},e._doTeardown=function(e,t){o&&o.teardown(e,t),s2(window,null,null,b),N()},ot(e,"_pageViewManager",function(){return o}),ot(e,"_pageViewPerformanceManager",function(){return a}),ot(e,"_pageVisitTimeManager",function(){return s}),ot(e,"_evtNamespace",function(){return"."+b})}),x}return(0,tS.qU)(t,e),t.Version="2.8.16",t.getDefaultConfig=f0,t}(sh),f5="data-bi-dnt",f4="data-bi-mto";function f3(e,t){f6(e),r4(t,function(t,n){rz(e[t])?f6(e[t]):delete e[t]})}function f6(e){rj(e,function(t,n){i0(n)&&("{}"!==JSON.stringify(n)||"callback"===t)||delete e[t]})}function f8(e,t){var n=e.left,r=e.top,o=e.right,a=e.bottom,s=t.left,l=t.top;return Math.max(0,Math.min(o,t.right)-Math.max(n,s))*Math.max(0,Math.min(a,t.bottom)-Math.max(r,l))}function f9(e){return f7(e,he)}function f7(e,t,n){var r=e;if(r){for(r=ht(r);!t(r,n);)if(!(r=ht(r=r.parentNode))||!r.getAttribute)return null;return r}}function he(e){return"A"===e.nodeName}function ht(e){return e}function hn(e,t){return f8((e=ht(e)).getBoundingClientRect(),t)>0}function hr(e,t){var n;return e&&e[t]&&(n=e[t],delete e[t]),n}function ho(e){return"which"in e?3===e.which:"button"in e?2===e.button:void 0}function hi(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}function ha(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}function hs(e){if("keyCode"in e)return 13===e.keyCode}function hl(e){if("keyCode"in e)return 32===e.keyCode}function hc(e,t){return!!i0(hd(e,f5))}function hu(e,t){return!(t&&t.isAuto&&i0(hd(e,f4))||hc(e))}function hd(e,t){return f7(e,hp,t)}function hp(e,t){var n=e.getAttribute(t);return i0(n)||""===n}function hf(e){return"["+e+"]"}function hh(e,t,n,r){var o;return function(){var a=arguments,s=function(){o=0,t&&t.apply(r,a)},l=!o;clearTimeout(o),o=setTimeout(s,n),l&&e&&e.apply(r,a)}}function hm(){var e={h:0,v:0},t=oQ(),n=oZ();return n&&t&&(e={h:parseInt(n.body.scrollLeft||n.documentElement.scrollLeft||t.pageXOffset,10),v:parseInt(n.body.scrollTop||n.documentElement.scrollTop||t.pageYOffset,10)}),e}function hg(){var e={h:0,w:0},t=oQ(),n=oZ();if(t&&n&&t.screen){var r=n.body||{},o=n.documentElement||{};e.h=t.innerHeight||r.clientHeight||o.clientHeight,e.w=t.innerWidth||r.clientWidth||o.clientWidth}return e}function hv(e){return{top:0,bottom:e.h,left:0,right:e.w}}var hy={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function hb(e){var t=e;if(t){var n=f9(t);if(n&&1===n.length){if(n[0].href)return n[0].href;else if(n[0].src)return n[0].src}}return""}function hx(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");if(!i0(t))return!1;if("pii"===t.toLowerCase())return!0;return!1}catch(e){return!1}}function hC(e,t){return e.coreData&&e.coreData.requestUri&&""!==e.coreData.requestUri?e.coreData.requestUri:hk(e,t)}function hk(e,t){if(!t)return null;var n=t.protocol+"//"+(t.hostname||t.host)+(i0(t.port)?":"+t.port:"")+t.pathname;if(e.urlCollectQuery){var r=t.search;if(!r){var o=t.hash||"",a=o.indexOf("?");-1!==a&&(r=o.slice(a))}n+=r}return e.urlCollectHash&&(n+=t.hash||""),n}function hw(e,t){if(t&&t.pageName)return t.pageName;if(e.callback&&"function"==typeof e.callback.pageName)return e.callback.pageName();if(e.coreData&&e.coreData.pageName)return e.coreData.pageName;var n=(o4()||{}).pathname||"",r=n.replace(/(^\/+|\/+$)/g,"").split("/");return r&&r[r.length-1]?r[r.length-1]:"Home"}function hS(e){return e.callback&&"function"==typeof e.callback.signedinStatus?e.callback.signedinStatus():e.isLoggedIn}function h_(e,t){var n,r="",o={},a=[],s=e.cookiesToCollect;!1===e.shareAuthStatus?a=s:r4(s,function(e){"ANON"!==e&&a.push(e)});try{try{iZ&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(a=a.concat(window.varCustomerCookies))}catch(e){iE(t,1,512,"Failed to get cookies ")}r4(a,function(e){!o.hasOwnProperty(e)&&(o[e]="",iJ&&(n=decodeURIComponent(document.cookie.replace(RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1")),""!==n&&(r+=e+"="+n+";")))})}catch(e){iE(t,1,512,"Failed to get cookies ")}return r}function hE(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=hb(e);break;case"INPUT":var n=e.type;if(n&&hy[n.toUpperCase()]){var r=o4()||{};t=e.form?e.form.action||r.pathname||"":r.pathname||""}}return t}function hP(e,t){var n=s0(af("onDomLoaded"),t);hI(function(){if(iJ&&"complete"===document.readyState)e();else{var t=oQ();t&&s1(t,"load",function(){e&&e(),e=null,s2(t,null,null,n)},n)}})}function hI(e){var t=oZ()||{};/in/.test(t.readyState)?setTimeout(function(){hI(e)},100):e.call()}var hT="1.0",hD="2.0",hA=200;function hR(e,t,n){var r="";return t&&t[n]?r=t[n]:e&&(r=e[n]),r}!function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.NAVIGATIONBACK=1]="NAVIGATIONBACK",e[e.NAVIGATION=2]="NAVIGATION",e[e.NAVIGATIONFORWARD=3]="NAVIGATIONFORWARD",e[e.APPLY=4]="APPLY",e[e.REMOVE=5]="REMOVE",e[e.SORT=6]="SORT",e[e.EXPAND=7]="EXPAND",e[e.REDUCE=8]="REDUCE",e[e.CONTEXTMENU=9]="CONTEXTMENU",e[e.TAB=10]="TAB",e[e.COPY=11]="COPY",e[e.EXPERIMENTATION=12]="EXPERIMENTATION",e[e.PRINT=13]="PRINT",e[e.SHOW=14]="SHOW",e[e.HIDE=15]="HIDE",e[e.MAXIMIZE=16]="MAXIMIZE",e[e.MINIMIZE=17]="MINIMIZE",e[e.BACKBUTTON=18]="BACKBUTTON",e[e.STARTPROCESS=20]="STARTPROCESS",e[e.PROCESSCHECKPOINT=21]="PROCESSCHECKPOINT",e[e.COMPLETEPROCESS=22]="COMPLETEPROCESS",e[e.SCENARIOCANCEL=23]="SCENARIOCANCEL",e[e.DOWNLOADCOMMIT=40]="DOWNLOADCOMMIT",e[e.DOWNLOAD=41]="DOWNLOAD",e[e.SEARCHAUTOCOMPLETE=60]="SEARCHAUTOCOMPLETE",e[e.SEARCH=61]="SEARCH",e[e.SEARCHINITIATE=62]="SEARCHINITIATE",e[e.TEXTBOXINPUT=63]="TEXTBOXINPUT",e[e.PURCHASE=80]="PURCHASE",e[e.ADDTOCART=81]="ADDTOCART",e[e.VIEWCART=82]="VIEWCART",e[e.ADDWISHLIST=83]="ADDWISHLIST",e[e.FINDSTORE=84]="FINDSTORE",e[e.CHECKOUT=85]="CHECKOUT",e[e.REMOVEFROMCART=86]="REMOVEFROMCART",e[e.PURCHASECOMPLETE=87]="PURCHASECOMPLETE",e[e.VIEWCHECKOUTPAGE=88]="VIEWCHECKOUTPAGE",e[e.VIEWCARTPAGE=89]="VIEWCARTPAGE",e[e.VIEWPDP=90]="VIEWPDP",e[e.UPDATEITEMQUANTITY=91]="UPDATEITEMQUANTITY",e[e.INTENTTOBUY=92]="INTENTTOBUY",e[e.PUSHTOINSTALL=93]="PUSHTOINSTALL",e[e.SIGNIN=100]="SIGNIN",e[e.SIGNOUT=101]="SIGNOUT",e[e.SOCIALSHARE=120]="SOCIALSHARE",e[e.SOCIALLIKE=121]="SOCIALLIKE",e[e.SOCIALREPLY=122]="SOCIALREPLY",e[e.CALL=123]="CALL",e[e.EMAIL=124]="EMAIL",e[e.COMMUNITY=125]="COMMUNITY",e[e.SOCIALFOLLOW=126]="SOCIALFOLLOW",e[e.VOTE=140]="VOTE",e[e.SURVEYINITIATE=141]="SURVEYINITIATE",e[e.SURVEYCOMPLETE=142]="SURVEYCOMPLETE",e[e.REPORTAPPLICATION=143]="REPORTAPPLICATION",e[e.REPORTREVIEW=144]="REPORTREVIEW",e[e.SURVEYCHECKPOINT=145]="SURVEYCHECKPOINT",e[e.CONTACT=160]="CONTACT",e[e.REGISTRATIONINITIATE=161]="REGISTRATIONINITIATE",e[e.REGISTRATIONCOMPLETE=162]="REGISTRATIONCOMPLETE",e[e.CANCELSUBSCRIPTION=163]="CANCELSUBSCRIPTION",e[e.RENEWSUBSCRIPTION=164]="RENEWSUBSCRIPTION",e[e.CHANGESUBSCRIPTION=165]="CHANGESUBSCRIPTION",e[e.REGISTRATIONCHECKPOINT=166]="REGISTRATIONCHECKPOINT",e[e.CHATINITIATE=180]="CHATINITIATE",e[e.CHATEND=181]="CHATEND",e[e.TRIALSIGNUP=200]="TRIALSIGNUP",e[e.TRIALINITIATE=201]="TRIALINITIATE",e[e.SIGNUP=210]="SIGNUP",e[e.FREESIGNUP=211]="FREESIGNUP",e[e.PARTNERREFERRAL=220]="PARTNERREFERRAL",e[e.LEARNLOWFUNNEL=230]="LEARNLOWFUNNEL",e[e.LEARNHIGHFUNNEL=231]="LEARNHIGHFUNNEL",e[e.SHOPPINGINTENT=232]="SHOPPINGINTENT",e[e.TRIALINTENT=234]="TRIALINTENT",e[e.VIDEOSTART=240]="VIDEOSTART",e[e.VIDEOPAUSE=241]="VIDEOPAUSE",e[e.VIDEOCONTINUE=242]="VIDEOCONTINUE",e[e.VIDEOCHECKPOINT=243]="VIDEOCHECKPOINT",e[e.VIDEOJUMP=244]="VIDEOJUMP",e[e.VIDEOCOMPLETE=245]="VIDEOCOMPLETE",e[e.VIDEOBUFFERING=246]="VIDEOBUFFERING",e[e.VIDEOERROR=247]="VIDEOERROR",e[e.VIDEOMUTE=248]="VIDEOMUTE",e[e.VIDEOUNMUTE=249]="VIDEOUNMUTE",e[e.VIDEOFULLSCREEN=250]="VIDEOFULLSCREEN",e[e.VIDEOUNFULLSCREEN=251]="VIDEOUNFULLSCREEN",e[e.VIDEOREPLAY=252]="VIDEOREPLAY",e[e.VIDEOPLAYERLOAD=253]="VIDEOPLAYERLOAD",e[e.VIDEOPLAYERCLICK=254]="VIDEOPLAYERCLICK",e[e.VIDEOVOLUMECONTROL=255]="VIDEOVOLUMECONTROL",e[e.VIDEOAUDIOTRACKCONTROL=256]="VIDEOAUDIOTRACKCONTROL",e[e.VIDEOCLOSEDCAPTIONCONTROL=257]="VIDEOCLOSEDCAPTIONCONTROL",e[e.VIDEOCLOSEDCAPTIONSTYLE=258]="VIDEOCLOSEDCAPTIONSTYLE",e[e.VIDEORESOLUTIONCONTROL=259]="VIDEORESOLUTIONCONTROL",e[e.VIRTUALEVENTJOIN=260]="VIRTUALEVENTJOIN",e[e.VIRTUALEVENTEND=261]="VIRTUALEVENTEND",e[e.JOINTEAMSMEETINGEVENT=262]="JOINTEAMSMEETINGEVENT",e[e.IMPRESSION=280]="IMPRESSION",e[e.CLICK=281]="CLICK",e[e.RICHMEDIACOMPLETE=282]="RICHMEDIACOMPLETE",e[e.ADBUFFERING=283]="ADBUFFERING",e[e.ADERROR=284]="ADERROR",e[e.ADSTART=285]="ADSTART",e[e.ADCOMPLETE=286]="ADCOMPLETE",e[e.ADSKIP=287]="ADSKIP",e[e.ADTIMEOUT=288]="ADTIMEOUT",e[e.OTHER=300]="OTHER"}(k||(k={}));var hN=function(){function e(e,t,n,r,o,a,s){this._webAnalyticsPlugin=e,this._config=t,this._contentHandler=n,this._id=r,this._pageTagsCallback=o,this.metaTags=a,this._traceLogger=s,this._pageTags={}}return e.prototype._setBasicProperties=function(e,t){e.ver=hT,e.id=this._id.getLastPageViewId(),i0(e.name)||(e.name=hw(this._config,t)),!i0(e.uri)&&iZ&&(e.uri=hC(this._config,o4()))},e.prototype._setCommonProperties=function(e,t,n){var r=this;r._setBasicProperties(e,n),r._setPageTags(e,n),r._pageTypeMetaTag=hR(r.metaTags,r._config.coreData,"pageType"),r._marketMetaTag=hR(r.metaTags,r._config.coreData,"market"),r._behaviorMetaTag=hR(r.metaTags,r._config.coreData,"behavior"),i0(n.pageType)&&(e.pageType=n.pageType),i0(r._pageTypeMetaTag)&&!i0(e.pageType)&&(e.pageType=r._pageTypeMetaTag),i0(r._marketMetaTag)&&(e.market=r._marketMetaTag),e.isLoggedIn=hS(r._config),t.cookieEnabled=si()},e.prototype._setPageTags=function(e,t){var n=this;n._pageTags={},n.metaTags&&(n._pageTags.metaTags=n._pageTags.metaTags||{},rj(n.metaTags,function(e,t){"behavior"!==e&&"market"!==e&&"pageType"!==e&&(n._pageTags.metaTags[e]=t)})),n._config.coreData&&n._config.coreData.pageTags&&(n._pageTags=i8(!0,n._pageTags,n._config.coreData.pageTags)),n._pageTagsCallback&&(n._pageTags=i8(!0,n._pageTags,n._pageTagsCallback())),i0(t.pageTags)&&(n._pageTags=i8(!0,n._pageTags,t.pageTags)),e.properties=e.properties||{},e.properties.pageTags=n._pageTags},e.prototype._getBehavior=function(e){var t;return e&&i0(e.behavior)?t=e.behavior:i0(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if(i0(e)){var t=void 0,n=parseInt(e);if((t=isNaN(n)?k[e]:n)in k)return t}return 0},e.prototype._getContentFormatted=function(e){if(i0(e))if(rY(e))return JSON.stringify(e);else return hf(JSON.stringify(e))},e}(),hB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,tS.qU)(t,e),t.prototype.trackContentUpdate=function(e,t){var n={};n.web={},n.web.isManual=e.isManual;var r={name:"Ms.Web.ContentUpdate",baseType:"ContentUpdateData",ext:n,data:{},baseData:{},latency:3};r4(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],function(t){r.baseData[t]=e[t]}),rj(t,function(e,t){r.data[e]||(r.data[e]=t)}),this._webAnalyticsPlugin.core.track(r)},t.prototype.captureContentUpdate=function(e,t){e=i0(e)?e:{};var n={},r=i0(t)?t:{};this._setCommonProperties(n,r,e),n.behavior=this._getBehavior(e),i0(e.actionType)&&(n.actionType=e.actionType);var o=hg(),a=hm();n.pageHeight=iJ?document.body.scrollHeight:null,n.vpHeight=o.h,n.vpWidth=o.w,n.vScrollOffset=a.v,n.hScrollOffset=a.h,n.contentVer=hD,n.isManual=!e.isAuto;var s=this._getContentFormatted(e.content)||JSON.stringify(this._contentHandler.getVisibleContent());s&&(n.content=s),i0(e.isDomComplete)?r.isDomComplete=e.isDomComplete:r.isDomComplete=!1,this.trackContentUpdate(n,r)},t}(hN),hM="CL",hF="CR",hO="CM",hL="S",hH="R",hz="KE",hV="KS";!function(e){e[e.PAGE_ACTION=0]="PAGE_ACTION",e[e.CONTENT_UPDATE=1]="CONTENT_UPDATE"}(w||(w={}));var hU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,tS.qU)(t,e),t.prototype.trackPageAction=function(e,t){var n={};n.web={},n.web.isManual=e.isManual;var r={name:"Ms.Web.PageAction",baseType:"PageActionData",ext:n,data:{},baseData:{},latency:1};rF(e.sync)||(r.sync=e.sync),r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.actionType=e.actionType,r.baseData.behavior=e.behavior,r.baseData.clickCoordinates=e.clickCoordinates,r.baseData.content=e.content,r.baseData.contentVer=e.contentVer,r.baseData.targetUri=e.targetUri,rj(t,function(e,t){r.data[e]||(r.data[e]=t)}),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageAction=function(e,t,n,r){t=i0(t)?t:{};var o={},a=i0(n)?n:{};this._setCommonProperties(o,a,t),o.isManual=!t.isAuto,o.behavior=this._getBehavior(t);var s={};if(e=ht(e),r)o.behavior=9;else{var l=this._config||{};if((e&&rF(l.syncPageActionNavClick)||l.syncPageActionNavClick)&&(t.actionType===hM||t.actionType===hz)&&"a"===e.tagName.toLowerCase()){var c=(e.getAttribute("href")||"").toLowerCase();c&&(rG(c,"https:")||rG(c,"http:")||rG(c,".")||rG(c,"/"))&&(o.sync=3)}}if(e&&(o.targetUri=hE(e),(s=i8(s=this._contentHandler.getElementContent(e,w.PAGE_ACTION),this._getCustomTags(e)))&&s.bhvr&&!i0(t.behavior))){var u=hr(s,"bhvr");o.behavior=this._getValidBehavior(u)}i0(t.actionType)&&(o.actionType=t.actionType),i0(t.clickCoordinateX)&&i0(t.clickCoordinateY)&&(o.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),i0(t.targetUri)&&(o.targetUri=t.targetUri),o.contentVer=hD;var d=t.content||s;if(!rY(d)){var p=this._config.callback.pageActionContentTags;d=i8(d,"function"==typeof p?p(e):{},t&&t.contentTags?t.contentTags:{})}o.content=this._getContentFormatted(d),a.timeToAction=this._getTimeToClick(),a.refUri=i0(t.refUri)?t.refUri:this._config.coreData.referrerUri;var f=h_(this._config,this._traceLogger);f&&(a.cookies=f),this.trackPageAction(o,a)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!hx(e)){for(var n in e.attributes)if(n&&e.attributes[n]){var r=e.attributes[n].name;r&&0===r.toLowerCase().indexOf("ms.")&&(t[r]=e.attributes[n].value)}}e=e.parentElement||e.parentNode}return t},t.prototype._getTimeToClick=function(){var e=o6();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return new Date().getTime()-t}return -1},t}(hN),hj=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,null,r,{},{},o)||this;return l._webAnalyticsPlugin=t,l._config=n,l._id=r,l._traceLogger=o,l._timestamp=a,l._maxScroll=s,l}return(0,tS.qU)(t,e),t.prototype.trackPageUnload=function(e,t){var n={};n.web={},n.web.isManual=e.isManual;var r={name:"Ms.Web.PageUnload",baseType:"PageUnloadData",ext:n,data:{},baseData:{},latency:3},o=this._config||{};(rF(o.syncUnloadAction)||o.syncUnloadAction)&&(r.sync=3),r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,rj(t,function(e,t){r.data[e]||(r.data[e]=t)}),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageUnload=function(e,t){e=i0(e)?e:{};var n={},r=i0(t)?t:{},o=iJ?document.body.scrollHeight:0;if(this._setBasicProperties(n,e),n.isManual=!e.isAuto,r.dwellTime=this._timestamp._recordTimeSpan("dwellTime",!0),r.scrollDepth=e.scrollDepth||this._maxScroll.v.toString()+"/"+o.toString(),r.vpHeight=hg().h,r.vScrollOffset=e.vScrollOffset||this._maxScroll.v,iZ){var a=o6(),s=a?a.timing:null;s&&s.loadEventStart&&s.navigationStart&&s.loadEventStart>0&&(r.pageLoadTime=s.loadEventStart-s.navigationStart)}this.trackPageUnload(n,r)},t}(hN),hW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,tS.qU)(t,e),t.prototype.capturePageView=function(e,t){e=i0(e)?e:{};var n={},r=i0(t)?t:{};this._setCommonProperties(n,r,e),n.refUri=i0(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,n.isManual=!e.isAuto;var o=h_(this._config,this._traceLogger);o&&(r.cookies=o),r.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(n,r)},t}(hN),hq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,tS.qU)(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=i0(e)?e:{};var n={},r=i0(t)?t:{};this._setBasicProperties(n,e),this._setPageTags(n,e),n.isManual=!e.isAuto,r.behavior=this._getBehavior(e),r.vpHeight=e.vpHeight,r.vpWidth=e.vpWidth,r.framework=e.framework,r.systemTiming=e.systemTiming,r.customTiming=e.customTiming,this._webAnalyticsPlugin._populatePageViewPerformance(n),this._webAnalyticsPlugin.trackPageViewPerformance(n,r)},t}(hN),hG={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},hK=function(){function e(t,n){var r,o,a,s,l,c,u,d,p,f=this;t7(e,this,function(e){function h(e){var t={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},n=oQ(),o=(e=e||n.event).srcElement||e.target,a={isAuto:!0,clickCoordinateX:e.pageX,clickCoordinateY:e.pageY},s=ho(e);if(s)a.actionType=hF;else if(hi(e))a.actionType=hM;else if(hs(e))a.actionType=hz;else if(hl(e))a.actionType=hV;else{if(!ha(e))return;a.actionType=hO}for(;o&&o.tagName;){if(o.control&&t[o.control.tagName.toUpperCase()]&&(o=o.control),t[o.tagName.toUpperCase()]){("INPUT"!==o.tagName.toUpperCase()||hG[o.type.toUpperCase()])&&r&&r.capturePageAction(o,a,{},s);break}o=o.parentElement||o.parentNode}}function m(){e._analyticsPlugin=null,e._traceLogger=null,r=null,o=null,a=null,l=!1,c=!1,u=!1,d=!1,p=!1}m(),r=t,o=n,a=s0(af("AutoCaptureHandler"),r._evtNamespace),e._analyticsPlugin=r,e._traceLogger=o,e.pageView=function(){r&&r.capturePageView({isAuto:!0})},e.onLoad=function(){r&&!p&&(hP(function(){r&&r.capturePageViewPerformance({isAuto:!0}),r&&r.captureContentUpdate({isAuto:!0,isDomComplete:!0})},a),p=!0)},e.click=function(){if(!s){var e=oQ(),t=oZ();e&&e.addEventListener?(s1(e,-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown",h,a),s1(e,"keyup",h,a)):t&&t.attachEvent&&(s1(t,"click",h,a),s1(t,"keyup",h,a)),s=!0}},e.scroll=function(e){if(!l){var t=hh(null,function(){r&&r.captureContentUpdate({isAuto:!0,actionType:hL})},e.scroll,f);s1(oQ(),"scroll",t,a),l=!0}},e.maxScroll=function(e){if(!c){var t=function(){var t=hm();e.v=e.v>t.v?e.v:t.v};s1(oQ(),"scroll",t,a),c=!0}},e.resize=function(e){if(!u){var t=hh(function(){r&&r.captureContentUpdate({isAuto:!0,actionType:hH})},null,e.resize,f);s1(oQ(),"resize",t,a),u=!0}},e.onUnload=function(){function e(){r&&r.capturePageUnload({isAuto:!0})}if(!d){var t=((r||{}).core||{}).config.disablePageUnloadEvents;s9(e,t,a),le(e,t,a),d=!0}},e.teardown=function(e,t){s2(oQ(),null,null,a),s2(oZ(),null,null,a),s7(null,a),lt(null,a),m()},e._processClick=h})}return e.__ieDyn=1,e}(),hX={isShortNames:!1,id:"data-bi-id",areaName:"data-bi-area",slotNumber:"data-bi-slot",contentName:"data-bi-name",contentSource:"data-bi-source",templateName:"data-bi-view",productId:"data-bi-product",contentType:"data-bi-type",parentId:"data-bi-parentid",parentName:"data-bi-parentname"},hY={isShortNames:!0,id:"data-bi-id",areaName:"data-bi-an",slotNumber:"data-bi-sn",contentName:"data-bi-cn",contentSource:"data-bi-cs",templateName:"data-bi-tn",productId:"data-bi-pid",contentType:"data-bi-ct",parentId:"data-bi-pi",parentName:"data-bi-pn"},h$="parentId",hQ="parentName",hJ="pI",hZ="pN",h0=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?hY:hX}return e.prototype.getMetadata=function(){var e={},t={};return iJ&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),i8(!0,t,e)},e.prototype.getVisibleContent=function(){var e=hv(hg()),t=null;iJ&&(t=document.querySelectorAll(hf(this._contentBlobFieldNames.areaName)+","+hf(this._contentBlobFieldNames.slotNumber)+","+hf(this._config.biBlobAttributeTag)));var n=[];if(t)for(var r=0;r<t.length;r++){var o=t[r];if(!hc(o)&&hn(o,e)){var a=this.getElementContent(o,w.CONTENT_UPDATE);a&&n.push(a)}}return n},e.prototype.getElementContent=function(e,t){if(!e)return{};var n,r,o,a={};if(this._isTracked(e))if(this._isTrackedWithDataM(e)){r=(n=e).getAttribute(this._config.biBlobAttributeTag);try{a=JSON.parse(r)}catch(e){iE(this._traceLogger,1,506,"Can not parse "+r)}}else this._isTrackedWithDataBi(e)&&(o=e,a=i8(a,this._populateElementContentwithDataBi(o,e)));else if((n=hd(e,this._config.biBlobAttributeTag))&&(r=n.getAttribute(this._config.biBlobAttributeTag)),r)try{a=JSON.parse(r)}catch(e){iE(this._traceLogger,1,506,"Can not parse "+r)}else o=f7(e,this._isTrackedWithDataBi),a=i8(a,this._populateElementContentwithDataBi(o,e));return f6(a),this._config.autoCapture.lineage&&t===w.PAGE_ACTION&&(a=i8(a,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(a=i8(a,this._getParentDetails(n||o,a))),a},e.prototype.getLineageDetails=function(e){for(var t,n,r,o=[],a=[],s=">",l=this._config.biBlobAttributeTag,c="data-module-id";e;){var u=e.getAttribute(l)||e[l],d=e.getAttribute(c)||e[c];if(u){try{var p=JSON.parse(u)}catch(e){iE(this._traceLogger,1,507,"Can not parse "+u)}p&&(n=p.cN||p.cT,r=p.id||void 0,(n||r)&&(o.push(n),d&&(t=n),a.push(r)))}else n=e.getAttribute(this._contentBlobFieldNames.contentName)||e.getAttribute(this._contentBlobFieldNames.contentType),r=e.getAttribute(this._contentBlobFieldNames.id)||void 0,(n||r)&&(o.push(n),d&&(t=n),a.push(r));e=e.parentElement}return{lineage:o.join(s),lineageById:a.join(s),lineageContainerName:t}},e.prototype._populateElementContentwithDataBi=function(e,t){var n={};if(!e)if(!this._config.useDefaultContentName)return n;else e=t;var r=hd(e,this._contentBlobFieldNames.areaName),o=i8({},this._getAreaContent(r)),a=this._config.callback.contentName?this._config.callback.contentName(e,this._config.useDefaultContentName):"",s=this._getDefaultContentName(t,this._config.useDefaultContentName);(n={id:e.getAttribute(this._contentBlobFieldNames.id)||e.id||"",aN:o.areaName,sN:e.getAttribute(this._contentBlobFieldNames.slotNumber),cN:a||e.getAttribute(this._contentBlobFieldNames.contentName)||s||e.getAttribute("alt")||"",cS:e.getAttribute(this._contentBlobFieldNames.contentSource)||o.contentSource,tN:o.templateName,pid:e.getAttribute(this._contentBlobFieldNames.productId),cT:e.getAttribute(this._contentBlobFieldNames.contentType)||o.type,pI:e.getAttribute(this._contentBlobFieldNames.parentId),pN:e.getAttribute(this._contentBlobFieldNames.parentName)}).id&&n.aN&&n.sN&&n.cN||iE(this._traceLogger,2,515,"Invalid content blob.  Missing required attributes (id, aN/area, sN/slot), cN/contentName.  Content information will still be collected!"),this._contentBlobFieldNames.isShortNames||(n={contentId:n.id,areaName:n.aN,slotNumber:n.sN,contentName:n.cN,contentSource:n.cS,templateName:n.tN,productId:n.pid,contentType:n.cT,parentId:n.pI,parentName:n.pN});for(var l,c=0;c<e.attributes.length;c++)if((l=e.attributes[c]).name!==this._contentBlobFieldNames.id&&l.name!==this._contentBlobFieldNames.areaName&&l.name!==this._contentBlobFieldNames.slotNumber&&l.name!==this._contentBlobFieldNames.contentName&&l.name!==this._contentBlobFieldNames.contentSource&&l.name!==this._contentBlobFieldNames.templateName&&l.name!==this._contentBlobFieldNames.productId&&l.name!==this._contentBlobFieldNames.contentType&&l.name!==this._contentBlobFieldNames.parentId&&l.name!==this._contentBlobFieldNames.parentName&&-1!==l.name.indexOf("data-bi-")){var u=l.name.replace("data-bi-","");n[u]=l.value}return n},e.prototype._getMetaDataFromDOM=function(e,t){var n,r={};if(iJ){n=document.querySelectorAll("meta");for(var o=0;o<n.length;o++){var a=n[o];a.name&&0===a.name.toLowerCase().indexOf(e)&&(r[t?a.name.replace(e,""):a.name]=a.content)}}return r},e.prototype._getAreaContent=function(e){if(e=ht(e))return{areaName:e.getAttribute(this._contentBlobFieldNames.areaName),templateName:e.getAttribute(this._contentBlobFieldNames.templateName),contentSource:e.getAttribute(this._contentBlobFieldNames.contentSource),product:e.getAttribute(this._contentBlobFieldNames.productId),type:e.getAttribute(this._contentBlobFieldNames.contentType)}},e.prototype._getDefaultContentName=function(e,t){if(!1===t||hx(e)||!e.tagName)return"";var n,r=oZ()||{};switch(e.tagName){case"A":n=r.all?e.innerText||e.innerHTML:e.text||e.innerHTML;break;case"IMG":case"AREA":n=e.alt;break;default:n=e.value||e.name||e.alt||e.innerText||e.id}return n.substring(0,hA)},e.prototype._getParentDetails=function(e,t){var n=this._contentBlobFieldNames.isShortNames?hJ:h$,r=this._contentBlobFieldNames.isShortNames?hZ:hQ,o=t[n],a=t[r],s={};return o||a||!e?s:this._populateParentInfo(e,n,r)},e.prototype._isTrackedWithDataM=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if("data-m"===t[n].name)return!0;return!1},e.prototype._isTrackedWithDataBi=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._isTracked=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if("data-m"===t[n].name||t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._populateParentInfo=function(e,t,n){var r,o,a={},s=this._config.biBlobAttributeTag,l=f7(e.parentElement,this._isTracked);if(l){var c=l.getAttribute(s)||e[s];if(c){try{var u=JSON.parse(c)}catch(e){iE(this._traceLogger,1,507,"Can not parse "+c)}u&&(r=u.id,o=u.cN)}else r=l.getAttribute(this._contentBlobFieldNames.id),o=l.getAttribute(this._contentBlobFieldNames.contentName);r&&(a[t]=r),o&&(a[n]=o)}return a},e}();function h1(e){var t={useDefaultContentName:!0,useShortNameForContentBlob:!0,debounceMs:{scroll:600,resize:3e3},biBlobAttributeTag:"data-m",isLoggedIn:!1,shareAuthStatus:!1,cookiesToCollect:["MSFPC","ANON"],autoCapture:{pageView:!0,onLoad:!0,onUnload:!0,click:!0,scroll:!1,resize:!1,lineage:!1,jsError:!0,msTags:!0},callback:{pageName:null,pageActionPageTags:null,pageViewPageTags:null,contentUpdatePageTags:null,pageActionContentTags:null,signedinStatus:null},coreData:{referrerUri:iJ?document.referrer:"",requestUri:"",pageName:"",pageType:"",product:"",market:"",pageTags:{}},autoPopulateParentIdAndParentName:!1,syncMuid:!1,muidDomain:"microsoft.com"},n=[];return rj(t,function(e,t){rz(t)&&n.push(e)}),f3(e,n),i8(!0,t,e)}var h2=function(e){function t(){var n,r,o,a,s,l,c,u,d,p,f,h,m=e.call(this)||this;m.identifier="WebAnalyticsPlugin",m.version="3.2.14";var g=!1;return t7(t,m,function(e,t){function v(){n=null,r=null,o=null,a=null,s=null,l=null,c=null,u={h:0,v:0},g=!1,d=null,p=null,f=null,h=null}function y(e){f&&(e&&(h.pageView&&f.pageView(),h.onLoad&&f.onLoad()),h.click&&f.click(),h.scroll&&f.scroll(c.debounceMs),h.resize&&f.resize(c.debounceMs),(h.onUnload||c.manualPageUnload)&&f.maxScroll(u),h.onUnload&&f.onUnload())}function b(e){var t={};return void 0!==e.isManual&&(t.web={},t.web.isManual=void 0===e.isManual||e.isManual,delete e.isManual),t}function x(){d._recordTimeSpan("dwellTime",!1),u.v=0,g=!1}v(),e.updateCoreDataConfig=function(e){c.coreData=i8(!0,c.coreData,e)},e.refreshMetadata=function(){var e=p.getMetadata();n.metaTags=e,o.metaTags=e,r.metaTags=e,s.metaTags=e},e.initialize=function(g,v,b){var x=v;g.extensionConfig=g.extensionConfig||[],g.extensionConfig[e.identifier]=g.extensionConfig[e.identifier]||{},e._config=c=h1(g.extensionConfig[e.identifier]),h=c.autoCapture;var C=x.getWParam;if(x.getWParam=function(){var e=0;return c.mscomCookies&&(e|=1),e|C()},g.extensionConfig[e.identifier].disableExceptionTracking=!h.jsError,t.initialize(g,v,b),p=p||new h0(c,e.diagLog()),f=f||new hK(e,e.diagLog()),c.manageCv){for(var k=0;k<b.length;k++)if("CorrelationVectorPlugin"===b[k].identifier){c.manageCv=!0,l=b[k];break}l||(iE(e.diagLog(),2,508,'Automatic Cv management is set to "true" in config.  However, cv plugin is not available. Disabling automatic Cv management'),c.manageCv=!1)}e.id=new uY(v),d=new u$;var w=p.getMetadata();n=new hW(m,c,p,e.id,c.callback.pageViewPageTags,w,e.diagLog()),r=new hU(m,c,p,e.id,c.callback.pageActionPageTags,w,e.diagLog()),o=new hB(m,c,p,e.id,c.callback.contentUpdatePageTags,w,e.diagLog()),a=new hj(m,c,e.id,e.diagLog(),d,u),s=new hq(m,c,p,e.id,c.callback.pageViewPageTags,w,e.diagLog()),c.syncMuid&&hP(function(){var t=e.id.getMuidHost(c.muidDomain);e.id.syncMuid(t)},e._evtNamespace),y(!0)},e.processTelemetry=function(n,r){an(n,e.identifier);var o=n;"PageviewData"===o.baseType?(o.name="Ms.Web.PageView",o.latency=3):"ExceptionData"===o.baseType?(o.name="Ms.Web.ClientError",o.latency=1,delete o.baseData.aiDataContract):"PageviewPerformanceData"===o.baseType&&(o.name="Ms.Web.PageViewPerformance",o.latency=1,delete o.baseData.isValid,delete o.baseData.durationMs);var a=null;"PageviewData"!==o.baseType?c.manageCv&&(a=l.getCv())&&a.increment():c.manageCv&&((a=l.getCv())?a.seed():a=l.getCv()),t.processTelemetry(o,r)},e.trackEvent=function(t,n){t.latency=t.latency||1,t.baseData=t.baseData||{},t.data=t.data||{},i0(n)&&rj(n,function(e,n){t.data[e]=n}),e.core.track(t)},e.trackPageView=function(n,r){x(),e.id.initializeIds(),n.id=e.id.getLastPageViewId(),t.sendPageViewInternal(n,r,b(n))},e.capturePageView=function(e,t){n.capturePageView(e,t)},e.trackPageViewPerformance=function(e,n){t.sendPageViewPerformanceInternal(e,n,b(e))},e.capturePageViewPerformance=function(e,t){s.capturePageViewPerformance(e,t)},e.trackException=function(e,n){e.id=e.id||i6(),t.sendExceptionInternal(e,n,b(e))},e.trackPageAction=function(e,t){r.trackPageAction(e,t)},e.capturePageAction=function(e,t,n,o){hu(e,t)&&r.capturePageAction(e,t,n,o)},e.trackContentUpdate=function(e,t){o.trackContentUpdate(e,t)},e.captureContentUpdate=function(e,t){o.captureContentUpdate(e,t)},e.trackPageUnload=function(e,t){g||(g=!0,a.trackPageUnload(e,t))},e.capturePageUnload=function(e,t){g||(g=!0,a.capturePageUnload(e,t))},e._populatePageViewPerformance=function(t){var n=e._pageViewPerformanceManager;n&&n.populatePageViewPerformanceEvent(t)},e.setContentHandler=function(e){p=e},e.setAutoCaptureHandler=function(e){f!==e&&(f&&f.teardown(),f=e,y(!1))},e._doTeardown=function(e,n){f&&f.teardown(e,n),t._doTeardown(e,n),v()}}),m}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(f2),h5=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],h4=["queue","extensions","version","sv"],h3=function(e){function t(){var n,r,o,a,s=e.call(this)||this;function l(){o=new ck,a=new uG,r=new h2}return t7(t,s,function(e,t){l(),e.initialize=function(n,s){oE(e,function(){return"ApplicationInsights:initialize"},function(){var l=[a,r];if(s&&(l=l.concat(s)),n||od("You must provide a config object!"),n.channels&&n.channels.length>0){for(var c=!1,u=0;u<n.channels[0].length;u++)if(n.channels[0][u].identifier===o.identifier){c=!0;break}c||n.channels[0].push(o)}else n.channels=[[o]];var d=n.extensionConfig=n.extensionConfig||[];d[o.identifier]=d[o.identifier]||n&&n.channelConfiguration||{},d[a.identifier]=d[a.identifier]||n&&n.propertyConfiguration||{},d[r.identifier]=d[r.identifier]||n&&n.webAnalyticsConfiguration||{};try{t.initialize(n,l)}catch(t){iE(e.logger,1,514,"Failed to initialize SDK."+ii(t))}},function(){return{config:n,extensions:s}})},e._getDbgPlgTargets=function(){return[s.config]},e.getPropertyManager=function(){return a},e.getPostChannel=function(){return o},e.getWebAnalyticsExtension=function(){return r},om(e,function(){return r},["trackEvent","trackPageView","trackPageAction","trackContentUpdate","trackPageUnload","trackException","trackPageViewPerformance","capturePageView","capturePageViewPerformance","capturePageAction","captureContentUpdate","capturePageUnload","_onerror"]),e.emptySnippetQueue=function(t){function r(){if(t){var r="";rO(n)||(r+=n),rj(e,function(n,r){if(rJ(n)&&!rV(r)&&n&&"_"!==n[0]&&-1===r3(h5,n))try{t[n]=r}catch(t){iE(e.logger,2,514,"Failed to set ["+n+"] during initialization."+ii(t))}})}}try{if(r(),rY(t.queue)){for(var o=t.queue.length,a=0;a<o;a++)(0,t.queue[a])();t.queue=void 0,delete t.queue}}catch(e){var s={};e&&rV(e.toString)&&(s.exception=e.toString())}},e.updateSnippetDefinitions=function(e){var t=s;t.snippet=e,n=""+(e.sv||e.version||""),t.config?t.config=i8(!0,e.config,t.config||{}):t.config=e.config,of(e,t,function(e){return e&&-1===r3(h5,e)&&-1===r3(h4,e)})},e.unload=function(e,n,r){void 0===e&&(e=!0),t.unload(e,function(e){l(),n&&n(e)},r)}}),s}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(sI),h6=0,h8=1,h9=2;function h7(e){try{return e.responseText}catch(e){}return""}var me=function(){function e(){}return e.prototype.makeRequest=function(e,t,n,r){var o,a=this;if(il()){var s=new XDomainRequest;s.open(n,e),s.onload=function(){r(200,h7(s),{})},s.onerror=function(){r(400,h7(s),{})},s.ontimeout=function(){r(500,h7(s),{})},s.onprogress=function(){},setTimeout(function(){s.send(t)},0)}else if(it())fetch(e,((o={body:t,method:n,credentials:"include"})[dj]=!0,o)).then(function(e){var t={};e.headers&&e.headers.forEach(function(e,n){t[n]=e}),r(e.status,JSON.stringify(e.json()),t)}).catch(function(e){r(0,e,{})});else if(ic()){var l=ai(n,e,!0,!0);l.onload=function(){r(l.status,h7(l),a._convertAllHeadersToMap(l.getAllResponseHeaders()))},l.onerror=function(){r(l.status,h7(l),a._convertAllHeadersToMap(l.getAllResponseHeaders()))},l.ontimeout=function(){r(l.status,h7(l),a._convertAllHeadersToMap(l.getAllResponseHeaders()))},l.send(t)}},e.prototype._convertAllHeadersToMap=function(e){var t={};if(e)for(var n=e.split("\n"),r=0;r<n.length;++r){var o=n[r].split(": ");t[o[0]]=o[1]}return t},e}(),mt=function(){function e(e,t,n){this._endpointUrl="",this._logger=n,this._endpointUrl=e,this._requestHandler=new me,this.setAuthType(t)}return e.prototype.setAuthType=function(e){var t="";switch(e){case h9:t="aad.js";break;case h8:t="msa.js"}this._getLoginUrlPath=this._endpointUrl+"auth/GetLoginUrl/"+t,this._signOutPath=this._endpointUrl+"auth/SignOut/"+t},e.prototype.startAuthHandshake=function(){var e=this;this._requestHandler.makeRequest(this._getLoginUrlPath,"","GET",function(t,n,r){try{var o=JSON.parse(n).webResult.authLoginUrl,a=oZ();if(a){var s=a.createElement("iframe"),l=Math.floor(Math.random()*Math.floor(1e4));s.id="telframe"+l,s.style.display="none",s.src=o,a.body.appendChild(s),e._loginIframeId=s.id}}catch(t){iE(e._logger,1,501,"Error with auth handshake process: "+t)}})},e.prototype.cleanAuthIFrame=function(){var e=oZ();if(e){var t=e.getElementById(this._loginIframeId);t&&e.body.removeChild(t)}},e.prototype.signOutAndClearCookies=function(){this._requestHandler.makeRequest(this._signOutPath,"","POST",function(e,t,n){})},e}(),mn="authBounced",mr="https://login.microsoftonline.com",mo=5e3,mi=function(e){function t(){var n,r,o,a,s,l,c,u,d=e.call(this)||this;return d.identifier="AuthPlugin",d.priority=190,d.version="3.2.14",t7(t,d,function(t,p){function f(){if(o.authType!=h6){var e=n,t=e.getWParam;e.getWParam=function(){var e=0;return(e=o.authType===h8?8|e:16|e)|(t?t():0)}}}function h(e,n){var r=oZ();if(r){var o=r.createElement("a");o.href=n;var a=o.protocol+"//"+o.hostname;if((e.origin===a||e.origin===mr)&&e.data)try{m()}catch(e){iE(t.diagLog(),1,502,"Error receiving auth redirect message: "+e)}}}function m(){s&&clearTimeout(s),r&&r.cleanAuthIFrame(),a=!1,g()}function g(){r4(c,function(e){e.ctx.processNext(e.item)}),c=[]}function v(){n=null,r=null,o=null,a=!1,s=null,l=null,c=[]}v(),t.initialize=function(t,s,c){var p=d;n=s,e.prototype.initialize.call(d,t,s,c),u=s0(af(p.identifier),s.evtNamespace&&s.evtNamespace());var m=p.identifier;o=t.extensionConfig[m]||{},t.extensionConfig[m]=o,a=!1,l=o.handShakeTimeoutMs?o.handShakeTimeoutMs:mo;var v=o.overrideAuthEndpointUrl?o.overrideAuthEndpointUrl:t.endpointUrl;function y(){g()}r=new mt(v,o.authType,p.diagLog()),f();var b=t.disablePageUnloadEvents||[];s9(y,b,u),le(y,b,u);var x=oQ();x&&s1(x,"message",function(e){h(e,v)},u)},t.processTelemetry=function(e,n){if(n=t._getTelCtx(n),an(e,t.identifier),o.authType!==h6&&o.loggedInStatusCallback&&!0===o.loggedInStatusCallback()){var u=sr(t.core);if(!i3(u,mn)){var d=1800;u.set(mn,r2(new Date),d),a=!0,s=setTimeout(function(){m()},l),r.startAuthHandshake()}}a?c.push({ctx:n,item:e}):t.processNext(e,n)},t.signOut=function(){sr(n).del(mn),r.signOutAndClearCookies(),m()},t.setAuthType=function(e){m(),o.authType=e,r.setAuthType(e),f()},t._doTeardown=function(e,t){m(),s2(oQ(),"message",null,u),s7(null,u),lt(null,u),v()},ot(t,"_authHandler",function(){return r}),ot(t,"_authConfig",function(){return o}),ot(t,"_eventQueue",function(){return c}),ot(t,"_handshakeInProgress",function(){return a}),ot(t,"_evtNamespace",function(){return"."+u})}),d}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(sh),ma=function(){return function(){}}(),ms=function(){function e(e,t){this._base="",this._currentElement=0,this._base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this._cv1Constants=new ma,this._cv2Constants=new ma,this._cvVersionAtLatestValidityCheck=2,this._traceLogger=iw(t),this._cv1Constants.maxCorrelationVectorLength=63,this._cv1Constants.baseLength=16,this._cv1Constants.validationPattern=RegExp("^["+this._base64CharSet+"]{"+this._cv1Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._cv2Constants.maxCorrelationVectorLength=127,this._cv2Constants.baseLength=22,this._cv2Constants.validationPattern=RegExp("^["+this._base64CharSet+"]{"+this._cv2Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._currentCvConstants=this._cv2Constants,this.init(e)}return e.prototype.isInit=function(){return this.isValid(this.storedCv())},e.prototype.storedCv=function(){return this._base.concat(".",this._currentElement.toString())},e.prototype.getValue=function(){var e=this.storedCv();if(this.isValid(e))return e},e.prototype.getRelatedCv=function(){return this._relatedCv},e.prototype.incrementExternal=function(e){if(this.isValid(e)){var t=e.split("."),n=t.length;t[n-1]=(parseInt(t[n-1],10)+1).toString();for(var r="",o=0;o<n;o++)r+=t[o],o<n-1&&(r+=".");var a=t[0].length===this._cv2Constants.baseLength?this._cv2Constants.maxCorrelationVectorLength:this._cv1Constants.maxCorrelationVectorLength;if(r.length<=a)return r}},e.prototype.canExtend=function(){var e=this.storedCv();return!!this.isValid(e)&&this._isLeqThanMaxCorrelationVectorLength(e.length+2)},e.prototype.canIncrement=function(){return!!this.isValid(this.storedCv())&&this._isLeqThanMaxCorrelationVectorLength(this._base.length+1+(this._currentElement+1+"").length)},e.prototype.setValue=function(e){if(!this.isValid(e))return iE(this._traceLogger,2,516,"Cannot set invalid correlation vector value"),!1;var t=e.lastIndexOf(".");return t>1?(this._base=e.substr(0,t),this._currentElement=parseInt(e.substr(t+1),10)):(this._base=e,this._currentElement=0),!0},e.prototype.setValueLegacy=function(e){return this.setValue(e),this.getValue()},e.prototype.seed=function(){for(var e="",t=0;t<this._currentCvConstants.baseLength;t++)e+=this._base64CharSet.charAt(Math.floor(Math.random()*this._base64CharSet.length));return e},e.prototype.extend=function(){if(this.canExtend())return this._base=this._base.concat(".",this._currentElement.toString()),this._currentElement=0,this.storedCv()},e.prototype.increment=function(){if(this.canIncrement())return this._currentElement=this._currentElement+1,this.storedCv()},e.prototype.validateWithCv1=function(e){if(this._cv1Constants.validationPattern.test(e)&&e.length<=this._cv1Constants.maxCorrelationVectorLength)return!0},e.prototype.validateWithCv2=function(e){if(this._cv2Constants.validationPattern.test(e)&&e.length<=this._cv2Constants.maxCorrelationVectorLength)return!0},e.prototype.useCv1=function(){this._currentCvConstants=this._cv1Constants},e.prototype.useCv2=function(){this._currentCvConstants=this._cv2Constants},e.prototype.isValid=function(e){if(e){var t=e.split(".")[0];if(t){if(16===t.length)return this._cvVersionAtLatestValidityCheck=1,this.validateWithCv1(e);else if(22===t.length)return this._cvVersionAtLatestValidityCheck=2,this.validateWithCv2(e)}}},e.prototype.init=function(e){return e?this.setValue(e):(this._base=this.seed(),this._currentElement=0),this.getValue()},e.prototype.initLegacy=function(e){return this.init(e)},e.prototype._isLeqThanMaxCorrelationVectorLength=function(e){return 1===this._cvVersionAtLatestValidityCheck?e<=this._cv1Constants.maxCorrelationVectorLength:e<=this._cv2Constants.maxCorrelationVectorLength},e}();let ml=function(e){function t(t){var n=e.call(this)||this;return n.identifier="CorrelationVectorPlugin",n.priority=159,n.version="3.2.14",n._cvInitialValue=t,n._cv=n._cvInitialValue?new ms(n._cvInitialValue):new ms,n}return(0,tS.qU)(t,e),t.prototype.initialize=function(t,n,r){e.prototype.initialize.call(this,t,n,r)},t.prototype.processTelemetry=function(e,t){an(e,this.identifier),e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},!e.ext.mscv.cV&&this._cv&&this._cv.isInit()&&(e.ext.mscv.cV=this._cv.getValue()),this.processNext(e,t)},t.prototype.getCv=function(){return this._cv||iE(this.diagLog(),2,513,"Correlation Vector has not been initialized."),this._cv},t}(sh),mc=function(){function e(t){var n=i6(),r=iV();t7(e,this,function(e){e.getTraceId=function(){return t&&t.getTraceCtx&&t.getTraceCtx().getTraceId()||r},e.getLastPageViewId=function(){return n}})}return e.__ieDyn=1,e}();function mu(e){var t="ai."+e+".";return function(e){return t+e}}var md=mu("application"),mp=mu("device"),mf=mu("location"),mh=mu("operation"),mm=mu("session"),mg=mu("user"),mv=mu("cloud"),my=mu("internal"),mb=function(e){function t(){return e.call(this)||this}return(0,tS.qU)(t,e),t}(og({applicationVersion:md("ver"),applicationBuild:md("build"),applicationTypeId:md("typeId"),applicationId:md("applicationId"),applicationLayer:md("layer"),deviceId:mp("id"),deviceIp:mp("ip"),deviceLanguage:mp("language"),deviceLocale:mp("locale"),deviceModel:mp("model"),deviceFriendlyName:mp("friendlyName"),deviceNetwork:mp("network"),deviceNetworkName:mp("networkName"),deviceOEMName:mp("oemName"),deviceOS:mp("os"),deviceOSVersion:mp("osVersion"),deviceRoleInstance:mp("roleInstance"),deviceRoleName:mp("roleName"),deviceScreenResolution:mp("screenResolution"),deviceType:mp("type"),deviceMachineName:mp("machineName"),deviceVMName:mp("vmName"),deviceBrowser:mp("browser"),deviceBrowserVersion:mp("browserVersion"),locationIp:mf("ip"),locationCountry:mf("country"),locationProvince:mf("province"),locationCity:mf("city"),operationId:mh("id"),operationName:mh("name"),operationParentId:mh("parentId"),operationRootId:mh("rootId"),operationSyntheticSource:mh("syntheticSource"),operationCorrelationVector:mh("correlationVector"),sessionId:mm("id"),sessionIsFirst:mm("isFirst"),sessionIsNew:mm("isNew"),userAccountAcquisitionDate:mg("accountAcquisitionDate"),userAccountId:mg("accountId"),userAgent:mg("userAgent"),userId:mg("id"),userStoreRegion:mg("storeRegion"),userAuthUserId:mg("authUserId"),userAnonymousUserAcquisitionDate:mg("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:mg("authUserAcquisitionDate"),cloudName:mv("name"),cloudRole:mv("role"),cloudRoleVer:mv("roleVer"),cloudRoleInstance:mv("roleInstance"),cloudEnvironment:mv("environment"),cloudLocation:mv("location"),cloudDeploymentUnit:mv("deploymentUnit"),internalNodeName:my("nodeName"),internalSdkVersion:my("sdkVersion"),internalAgentVersion:my("agentVersion"),internalSnippet:my("snippet"),internalSdkSrc:my("sdkSrc")})),mx="trace";new mb;var mC="duration",mk="properties",mw="requestUrl",mS="inst",m_="length",mE="traceID",mP="spanID",mI="traceFlags",mT="context",mD="aborted",mA="traceId",mR="spanId",mN="core",mB="includeCorrelationHeaders",mM="canIncludeCorrelationHeader",mF="getAbsoluteUrl",mO="headers",mL="requestHeaders",mH="appId",mz="setRequestHeader",mV="trackDependencyDataInternal",mU="distributedTracingMode",mj="startTime",mW="toLowerCase",mq="enableRequestHeaderTracking",mG="enableAjaxErrorStatusText",mK="enableAjaxPerfTracking",mX="maxAjaxCallsPerView",mY="enableResponseHeaderTracking",m$="excludeRequestFromAutoTrackingPatterns",mQ="addRequestContext",mJ="disableAjaxTracking",mZ="disableFetchTracking",m0="status",m1="statusText",m2="headerMap",m5="openDone",m4="sendDone",m3="requestSentTime",m6="abortDone",m8="getTraceId",m9="getTraceFlags",m7="method",ge="errorStatusText",gt="stateChangeAttached",gn="responseText",gr="responseFinishedTime",go="CreateTrackItem",gi="response",ga="getAllResponseHeaders",gs="getPartAProps",gl="getCorrelationContext",gc="perfMark",gu="ajaxPerfLookupDelay",gd="name",gp="perfTiming",gf="correlationContext",gh="ajaxTotalDuration",gm="eventTraceCtx";function gg(e,t,n){var r=0,o=e[t],a=e[n];return o&&a&&(r=pL(o,a)),r}function gv(e,t,n,r,o){var a=0,s=gg(n,r,o);return s&&(a=gy(e,t,d_(s))),a}function gy(e,t,n){var r="ajaxPerf",o=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,o=1),o}function gb(e,t){var n=e[gp],r=t[mk]||{},o=0,a="name",s="Start",l="End",c="domainLookup",u="connect",d="redirect",p="request",f="response",h="startTime",m=c+s,g=c+l,v=u+s,y=u+l,b=p+s,x=p+l,C=f+s,k=f+l,w=d+s,S=d=l,_="transferSize",E="encodedBodySize",P="decodedBodySize",I="serverTiming";if(n){o|=gv(r,d,n,w,S),o|=gv(r,c,n,m,g),o|=gv(r,u,n,v,y),o|=gv(r,p,n,b,x),o|=gv(r,f,n,C,k),o|=gv(r,"networkConnect",n,h,y),o|=gv(r,"sentRequest",n,b,k);var T=n[mC];T||(T=gg(n,h,k)||0),o|=gy(r,mC,T),o|=gy(r,"perfTotal",T);var D=n[I];if(D){var A={};r4(D,function(e,t){var n=rU(e[a]||""+t),r=A[n]||{};rj(e,function(e,t){(e!==a&&rJ(t)||rZ(t))&&(r[e]&&(t=r[e]+";"+t),(t||!rJ(t))&&(r[e]=t))}),A[n]=r}),o|=gy(r,I,A)}o|=gy(r,_,n[_]),o|=gy(r,E,n[E]),o|=gy(r,P,n[P])}else e[gc]&&(o|=gy(r,"missing",e.perfAttempts));o&&(t[mk]=r)}var gx=function(){return function(){var e=this;e[m5]=!1,e.setRequestHeaderDone=!1,e[m4]=!1,e[m6]=!1,e[gt]=!1}}(),gC=function(){function e(t,n,r,o){var a,s=this,l=r,c="responseText";s[gc]=null,s.completed=!1,s.requestHeadersSize=null,s[mL]=null,s.responseReceivingDuration=null,s.callbackDuration=null,s[gh]=null,s[mD]=0,s.pageUrl=null,s[mw]=null,s.requestSize=0,s[m7]=null,s[m0]=null,s[m3]=null,s.responseStartedTime=null,s[gr]=null,s.callbackFinishedTime=null,s.endTime=null,s.xhrMonitoringState=new gx,s.clientFailure=0,s[mE]=t,s[mP]=n,s[mI]=null==o?void 0:o.getTraceFlags(),o?s[gm]=((a={})[mA]=o[m8](),a[mR]=o.getSpanId(),a[mI]=o[m9](),a):s[gm]=null,t7(e,s,function(e){e.getAbsoluteUrl=function(){return e[mw]?pT(e[mw]):null},e.getPathName=function(){return e[mw]?dQ(l,pD(e[m7],e[mw])):null},e[go]=function(t,n,r){if(e.ajaxTotalDuration=Math.round(1e3*pL(e.requestSentTime,e.responseFinishedTime))/1e3,e[gh]<0)return null;var o,a=((o={id:"|"+e[mE]+"."+e[mP],target:e[mF]()})[gd]=e.getPathName(),o.type=t,o[mj]=null,o.duration=e[gh],o.success=+e[m0]>=200&&400>+e[m0],o.responseCode=+e[m0],o[mk]={HttpMethod:e[m7]},o),s=a[mk];if(e[mD]&&(s[mD]=!0),e[m3]&&(a[mj]=new Date,a[mj].setTime(e[m3])),gb(e,a),n&&oe(e.requestHeaders)[m_]>0&&(s[mL]=e[mL]),r){var l=r();if(l){var u=l[gf];if(u&&(a.correlationContext=u),l[m2]&&oe(l.headerMap)[m_]>0&&(s.responseHeaders=l[m2]),e[ge])if(e[m0]>=400){var d=l.type;(""===d||"text"===d)&&(s.responseText=l.responseText?l[m1]+" - "+l[c]:l[m1]),"json"===d&&(s.responseText=l.response?l[m1]+" - "+JSON.stringify(l[gi]):l[m1])}else 0===e[m0]&&(s.responseText=l[m1]||"")}}return a},e[gs]=function(){var t,n=null,r=e[gm];if(r&&(r[mA]||r[mR])){var o=(n={})[mx]=((t={})[mE]=r[mA],t.parentID=r[mR],t);rO(r[mI])||(o[mI]=r[mI])}return n}})}return e.__ieDyn=1,e}(),gk="ai.ajxmn.",gw="diagLog",gS="_ajaxData",g_="fetch",gE="Failed to monitor XMLHttpRequest",gP=", monitoring data for this ajax call ",gI=gP+"may be incorrect.",gT=gP+"won't be sent.",gD="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",gA="Failed to add custom defined request context as configured call back may missing a null check.",gR="Failed to calculate the duration of the ",gN=0;function gB(){var e=(0,n5.mS)();return!e||rO(e.Request)||rO(e.Request[n2.vR])||rO(e[g_])?null:e[g_]}var gM=null;function gF(){if(null==gM)try{gM=!!(self&&self instanceof WorkerGlobalScope)}catch(e){gM=!1}return gM}function gO(e,t){var n,r=!1;if(ic()){var o=XMLHttpRequest[n2.vR];r=!rO(o)&&!rO(o.open)&&!rO(o.send)&&!rO(o.abort)}var a=io();if(a&&a<9&&(r=!1),r)try{var s=new XMLHttpRequest,l={xh:[],i:((n={})[t]={},n)};s[gS]=l;var c=XMLHttpRequest[n2.vR].open;XMLHttpRequest[n2.vR].open=c}catch(t){r=!1,gU(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:ii(t)})}return r}var gL=function(e,t){return e&&t&&e[gS]?(e[gS].i||{})[t]:null},gH=function(e,t,n){if(e){var r=(e[gS]||{}).xh;r&&r.push({n:t,v:n})}},gz=function(e,t){var n=!1;if(e){var r=(e[gS]||{}).xh;r&&r4(r,function(e){if(e.n===t)return n=!0,-1})}return n};function gV(e,t){var n="";try{var r=gL(e,t);r&&r[mw]&&(n+="(url: '"+r[mw]+"')")}catch(e){}return n}function gU(e,t,n,r,o){iE(e[gw](),1,t,n,r,o)}function gj(e,t,n,r,o){iE(e[gw](),2,t,n,r,o)}function gW(e,t,n){return function(r){gU(e,t,n,{ajaxDiagnosticsMessage:gV(r[mS],e._ajaxDataId),exception:ii(r.err)})}}function gq(e,t){return e&&t?e.indexOf(t):-1}function gG(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){r4(e,function(t,n){if(t.id===r.id)return e.splice(n,1),-1})}}}function gK(e,t,n,r){var o=!0;return r4(t,function(t,a){try{!1===t.fn.call(null,n)&&(o=!1)}catch(t){iE(e&&e.logger,1,64,"Dependency "+r+" [#"+a+"] failed: "+oa(t),{exception:ii(t)},!0)}}),o}function gX(e,t,n,r,o,a){if(e[m_]>0){var s={core:t,xhr:r,input:o,init:a,traceId:n[mE],spanId:n[mP],traceFlags:n[mI],context:n[mT]||{},aborted:!!n[mD]};gK(t,e,s,"listener"),n[mE]=s[mA],n[mP]=s[mR],n[mI]=s[mI],n[mT]=s[mT]}}var gY="*.blob.core.",g$=or([gY+"windows.net",gY+"chinacloudapi.cn",gY+"cloudapi.de",gY+"usgovcloudapi.net"]),gQ=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i];function gJ(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:1,correlationHeaderExcludedDomains:g$,correlationHeaderDomains:void 0,correlationHeaderExcludePatterns:void 0,appId:void 0,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:void 0,addIntEndpoints:!0}}function gZ(){var e=gJ();return rj(e,function(t){e[t]=void 0}),e}var g0=function(e){function t(){var n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C,k,w,S,_,E,P=e.call(this)||this;return P.identifier=t.identifier,P.priority=120,t7(t,P,function(e,P){var I=P._addHook;function T(){var P=o4();n=!1,r=!1,o=P&&P.host&&P.host[mW](),a=t.getEmptyConfig(),s=!1,l=!1,c=0,u=null,d=!1,p=!1,f=null,h=!1,m=0,g=!1,v={},y=!1,b=!1,x=null,C=null,k=null,S=0,_=[],E=[],e._ajaxDataId=w=af("ajaxData")}function D(n){var r=aL(null,n,e[mN]);a=gZ(),rj(gJ(),function(e,n){a[e]=r.getConfig(t.identifier,e,n)});var o=a[mU];if(s=a[mq],l=a[mG],h=a[mK],m=a[mX],g=a[mY],x=[].concat(a[m$]||[],!1!==a.addIntEndpoints?gQ:[]),C=a[mQ],p=0===o||1===o,d=1===o||2===o,h){var c=n.instrumentationKey||"unkwn";f=c[m_]>5?gk+c.substring(c[m_]-5)+".":gk+c+"."}y=!!a[mJ],b=!!a[mZ]}function A(){var t=e[mN].getPlugin(dV);t&&(u=t.plugin[mT])}function R(e){var t=!0;return(e||a.ignoreHeaders)&&r4(a.ignoreHeaders,function(n){if(n[mW]()===e[mW]())return t=!1,-1}),t}function N(){var t=gB();if(t){var o=(0,n5.mS)(),a=t.polyfill;b||n?a&&I(p$(o,g_,{ns:k,req:function(e,t,n){F(null,t,n)}})):(I(p$(o,g_,{ns:k,req:function(t,o,s){var l;if(!b&&n&&!F(null,o,s)&&!(a&&r)){var c=t.ctx();l=G(o,s);var u=e[mB](l,o,s);u!==s&&t.set(1,u),c.data=l}},rsp:function(e,t){if(!b){var n=e.ctx().data;n&&(e.rslt=e.rslt.then(function(r){return X(e,(r||{})[m0],t,r,n,function(){var e={statusText:(r||{})[m1],headerMap:null,correlationContext:Y(r)};if(g&&r){var t={};r.headers.forEach(function(e,n){R(n)&&(t[n]=e)}),e[m2]=t}return e}),r}).catch(function(r){throw X(e,0,t,null,n,null,{error:r.message||ii(r)}),r}))}},hkErr:gW(e,15,"Failed to monitor Window.fetch"+gI)},!0,gF())),n=!0),a&&(o[g_].polyfill=a)}}function B(e,t,n){I(pX(e,t,n))}function M(){!gO(e,w)||y||r||(B(XMLHttpRequest,"open",{ns:k,req:function(e,t,n,r){if(!y){var o=e[mS],a=gL(o,w);!F(o,n)&&O(o,a,!0)&&(a&&a.xhrMonitoringState[m5]||(a=H(o,t,n,r)),z(o,a))}},hkErr:gW(e,15,gE+".open"+gI)}),B(XMLHttpRequest,"send",{ns:k,req:function(t,n){if(!y){var r=t[mS],o=gL(r,w);O(r,o)&&!o.xhrMonitoringState[m4]&&(W("xhr",o),o[m3]=pO(),e[mB](o,void 0,void 0,r),o.xhrMonitoringState[m4]=!0)}},hkErr:gW(e,17,gE+gI)}),B(XMLHttpRequest,"abort",{ns:k,req:function(e){if(!y){var t=e[mS],n=gL(t,w);O(t,n)&&!n.xhrMonitoringState[m6]&&(n[mD]=1,n.xhrMonitoringState[m6]=!0)}},hkErr:gW(e,13,gE+".abort"+gI)}),B(XMLHttpRequest,"setRequestHeader",{ns:k,req:function(e,t,n){if(!y){var r=e[mS],o=gL(r,w);o&&O(r,o)&&(gH(r,t,n),s&&R(t)&&o&&(o[mL][t]=n))}},hkErr:gW(e,71,gE+".setRequestHeader"+gI)}),r=!0)}function F(e,t,n){var r=!1,o=((!rJ(t)?(t||{}).url||"":t)||"")[mW]();if(r4(x,function(e){var t=e;rJ(e)&&(t=new RegExp(e)),r||(r=t.test(o))}),r)return r;var a=gq(o,"?"),s=gq(o,"#");return(-1===a||-1!==s&&s<a)&&(a=s),-1!==a&&(o=o.substring(0,a)),rO(e)?rO(t)||(r="object"==typeof t&&!0===t[dj]||!!n&&!0===n[dj]):r=!0===e[dj]||!0===o[dj],!r&&o&&pB(o)&&(r=!0),r?v[o]||(v[o]=1):v[o]&&(r=!0),r}function O(e,t,n){var o=!0,a=r;return rO(e)||(o=!0===n||!rO(t)),a&&o}function L(){var t=null;return e[mN]&&e[mN].getTraceCtx&&(t=e[mN].getTraceCtx(!1)),!t&&u&&u.telemetryTrace&&(t=pH(u.telemetryTrace)),t}function H(t,n,r,o){var a,s=L(),c=s&&s[m8]()||iV(),u=iV().substr(0,16),d=t[gS]=t[gS]||{xh:[],i:{}},p=d.i=d.i||{},f=p[w]=p[w]||new gC(c,u,e[gw](),null==(a=e.core)?void 0:a.getTraceCtx());return f[mI]=s&&s[m9](),f[m7]=n,f[mw]=r,f.xhrMonitoringState[m5]=!0,f[mL]={},f.async=o,f[ge]=l,f}function z(t,n){n.xhrMonitoringState[gt]=s1(t,"readystatechange",function(){try{t&&4===t.readyState&&O(t,n)&&U(t)}catch(n){var r=ii(n);r&&-1!==gq(r[mW](),"c00c023f")||gU(e,16,gE+" 'readystatechange' event handler"+gI,{ajaxDiagnosticsMessage:gV(t,w),exception:r})}},k)}function V(e){try{var t=e.responseType;if(""===t||"text"===t)return e[gn]}catch(e){}return null}function U(t){var n=gL(t,w);function r(n,r){var o=r||{};o.ajaxDiagnosticsMessage=gV(t,w),n&&(o.exception=ii(n)),gj(e,14,gR+"ajax call"+gT,o)}n[gr]=pO(),n[m0]=t[m0],q("xmlhttprequest",n,function(){try{var o=n[go]("Ajax",s,function(){var e={statusText:t[m1],headerMap:null,correlationContext:j(t),type:t.responseType,responseText:V(t),response:t[gi]};if(g){var n=t[ga]();if(n){var r=r8(n).split(/[\r\n]+/),o={};r4(r,function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");R(n)&&(o[n]=r)}),e[m2]=o}}return e}),a=void 0;try{C&&(a=C({status:t[m0],xhr:t}))}catch(t){gj(e,104,gA)}if(o){void 0!==a&&(o[mk]=(0,tS.Im)((0,tS.Im)({},o.properties),a));var l=n[gs]();Q(E,e[mN],n,o,null,l)}else r(null,{requestSentTime:n[m3],responseFinishedTime:n[gr]})}finally{try{var c=(t[gS]||{i:{}}).i||{};c[w]&&(c[w]=null)}catch(e){}}},function(e){r(e,null)})}function j(t){try{var n=t[ga]();if(null!==n){var r=gq(n[mW](),pS["8"]);if(-1!==r){var o=t.getResponseHeader(pS["0"]);return pM[gl](o)}}}catch(n){gj(e,18,gD,{ajaxDiagnosticsMessage:gV(t,w),exception:ii(n)})}}function W(e,t){if(t[mw]&&f&&h){var n=o6();if(n&&rV(n.mark)){gN++;var r=f+e+"#"+gN;n.mark(r);var o=n.getEntriesByName(r);o&&1===o[m_]&&(t[gc]=o[0])}}}function q(e,t,n,r){var o=t[gc],s=o6(),l=a.maxAjaxPerfLookupAttempts,c=a[gu],u=t[mw],d=0;!function a(){try{if(s&&o){d++;for(var p=null,f=s.getEntries(),h=f[m_]-1;h>=0;h--){var m=f[h];if(m){if("resource"===m.entryType)m.initiatorType===e&&(-1!==gq(m[gd],u)||-1!==gq(u,m[gd]))&&(p=m);else if("mark"===m.entryType&&m[gd]===o[gd]){t[gp]=p;break}if(m[mj]<o[mj]-1e3)break}}}!o||t[gp]||d>=l||!1===t.async?(o&&rV(s.clearMarks)&&s.clearMarks(o[gd]),t.perfAttempts=d,n()):setTimeout(a,c)}catch(e){r(e)}}()}function G(t,n){var r,o=L(),a=new gC(o&&o[m8]()||iV(),iV().substr(0,16),e[gw](),null==(r=e.core)?void 0:r.getTraceCtx());a[mI]=o&&o[m9](),a[m3]=pO(),a[ge]=l,t instanceof Request?a[mw]=t?t.url:"":a[mw]=t;var c="GET";n&&n[m7]?c=n[m7]:t&&t instanceof Request&&(c=t[m7]),a[m7]=c;var u={};return s&&new Headers((n?n[mO]:0)||t instanceof Request&&t[mO]||{}).forEach(function(e,t){R(t)&&(u[t]=e)}),a[mL]=u,W(g_,a),a}function K(t){var n="";try{rO(t)||(rJ(t)?n+="(url: '".concat(t,"')"):n+="(url: '".concat(t.url,"')"))}catch(t){gU(e,15,"Failed to grab failed fetch diagnostics message",{exception:ii(t)})}return n}function X(t,n,r,o,a,l,c){a&&(a[gr]=pO(),a[m0]=n,q(g_,a,function(){var t,c=a[go]("Fetch",s,l);try{C&&(t=C({status:n,request:r,response:o}))}catch(t){gj(e,104,gA)}if(c){void 0!==t&&(c[mk]=(0,tS.Im)((0,tS.Im)({},c.properties),t));var d=a[gs]();Q(E,e[mN],a,c,null,d)}else u(14,null,{requestSentTime:a[m3],responseFinishedTime:a[gr]})},function(e){u(18,e,null)}));function u(t,n,o){var a=o||{};a.fetchDiagnosticsMessage=K(r),n&&(a.exception=ii(n)),gj(e,t,gR+"fetch call"+gT,a)}}function Y(t){if(t&&t[mO])try{var n=t[mO].get(pS["0"]);return pM[gl](n)}catch(n){gj(e,18,gD,{fetchDiagnosticsMessage:K(t),exception:ii(n)})}}function Q(t,n,r,o,a,s){var l=!0;t[m_]>0&&(l=gK(n,t,{item:o,properties:a,sysProperties:s,context:r?r[mT]:null,aborted:!!r&&!!r[mD]},"initializer")),l&&e[mV](o,a,s)}T(),e.initialize=function(t,n,r,o){e.isInitialized()||(P.initialize(t,n,r,o),k=s0(af("ajax"),n&&n.evtNamespace&&n.evtNamespace()),D(t),M(),N(),A())},e._doTeardown=function(){T()},e.trackDependencyData=function(t,n){Q(E,e[mN],null,t,n)},e[mB]=function(t,n,r,l){var c=e._currentWindowHost||o;if(gX(_,e[mN],t,l,n,r),n||""===n){if(pM[mM](a,t[mF](),c)){r||(r={});var f=new Headers(r[mO]||n instanceof Request&&n[mO]||{});if(p){var h="|"+t[mE]+"."+t[mP];f.set(pS["3"],h),s&&(t[mL][pS["3"]]=h)}var m=a[mH]||u&&u[mH]();if(m&&(f.set(pS["0"],pS["2"]+m),s&&(t[mL][pS["0"]]=pS["2"]+m)),d){var g=t[mI];rO(g)&&(g=1);var v=aE(aw(t[mE],t[mP],g));f.set(pS["4"],v),s&&(t[mL][pS["4"]]=v)}r[mO]=f}return r}if(l){if(pM[mM](a,t[mF](),c)){if(p)if(gz(l,pS["3"]))gj(e,71,"Unable to set ["+pS["3"]+"] as it has already been set by another instance");else{var h="|"+t[mE]+"."+t[mP];l[mz](pS["3"],h),s&&(t[mL][pS["3"]]=h)}var m=a[mH]||u&&u[mH]();if(m&&(gz(l,pS["0"])?gj(e,71,"Unable to set ["+pS["0"]+"] as it has already been set by another instance"):(l[mz](pS["0"],pS["2"]+m),s&&(t[mL][pS["0"]]=pS["2"]+m))),d){var g=t[mI];if(rO(g)&&(g=1),gz(l,pS["4"]))gj(e,71,"Unable to set ["+pS["4"]+"] as it has already been set by another instance");else{var v=aE(aw(t[mE],t[mP],g));l[mz](pS["4"],v),s&&(t[mL][pS["4"]]=v)}}}return l}},e[mV]=function(t,n,r){if(-1===m||c<m){(2===a[mU]||1===a[mU])&&"string"==typeof t.id&&"."!==t.id[t.id[m_]-1]&&(t.id+="."),rO(t[mj])&&(t[mj]=new Date);var o=d3(t,pz.dataType,pz.envelopeType,e[gw](),n,r);e[mN].track(o)}else c===m&&gU(e,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++c},e.addDependencyListener=function(e){return gG(_,S++,e)},e.addDependencyInitializer=function(e){return gG(E,S++,e)}}),P}return(0,tS.qU)(t,e),t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.prototype.addDependencyInitializer=function(e){return null},t.identifier="AjaxDependencyPlugin",t.getDefaultConfig=gJ,t.getEmptyConfig=gZ,t}(sh);function g1(e){var t={},n={};return n=g5("awa-",!0),e.autoCapture&&e.autoCapture.msTags&&(t=g5("ms.",!1)),i8(!0,n,t)}function g2(e,t,n){var r=g4(e,n);return t[n]?t[n]:r}function g5(e,t){var n,r={},o=oZ();if(o){n=o.querySelectorAll("meta");for(var a=0;a<n.length;a++){var s=n[a];s.name&&0===s.name.toLowerCase().indexOf(e)&&(r[t?s.name.replace(e,""):s.name]=s.content)}}return r}function g4(e,t){var n;return e&&e[t]&&(n=e[t],delete e[t]),n}function g3(e){var t=o4()||{};return e.coreData.requestUri?e.coreData.requestUri:t.href}function g6(e){if(e.callback&&"function"==typeof e.callback.pageName)return e.callback.pageName();if(e.coreData&&e.coreData.pageName)return e.coreData.pageName;var t=(o4()||{}).pathname||"",n=t.replace(/(^\/+|\/+$)/g,"").split("/"),r=n.length;return n&&n[r-1]?n[r-1]:"Home"}function g8(e,t){g9(e),r4(t,function(t){rz(e[t])?g9(e[t]):delete e[t]})}function g9(e){rj(e,function(t,n){i0(n)&&("{}"!==JSON.stringify(n)||"callback"===t)||delete e[t]})}var g7=function(){function e(){}return e.prototype._setCommonProperties=function(e,t){i0(t.cV)&&(e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},e.ext.mscv.cV=t.cV),e.baseData.operationName=t.operationName,e.baseData.latencyMs=t.latencyMs,e.baseData.serviceErrorCode=t.serviceErrorCode||-1,e.baseData.succeeded=t.succeeded,e.baseData.requestStatus=t.requestStatus,e.baseData.requestMethod=t.requestMethod,i0(t.target)&&(e.baseData.target=t.target),i0(t.responseContentType)&&(e.baseData.responseContentType=t.responseContentType),i0(t.protocol)&&(e.baseData.protocol=t.protocol),i0(t.protocolStatusCode)&&(e.baseData.protocolStatusCode=t.protocolStatusCode)},e}(),ve=function(){function e(){this._qosEvent=new g7}return e.prototype._setQosProperties=function(e,t){this._qosEvent._setCommonProperties(e,t),i0(t.callerIpAddress)&&(e.baseData.callerIpAddress=t.callerIpAddress),i0(t.callerName)&&(e.baseData.callerName=t.callerName),i0(t.requestSizeBytes)&&(e.baseData.requestSizeBytes=t.requestSizeBytes),i0(t.operationVersion)&&(e.baseData.operationVersion=t.operationVersion)},e}(),vt=function(){function e(){this._qosEvent=new g7}return e.prototype._setQosProperties=function(e,t){this._qosEvent._setCommonProperties(e,t),e.baseData.dependencyOperationName=t.dependencyOperationName,e.baseData.dependencyName=t.dependencyName,e.baseData.dependencyType=t.dependencyType||"WebService",i0(t.dependencyOperationVersion)&&(e.baseData.dependencyOperationVersion=t.dependencyOperationVersion),i0(t.responseSizeBytes)&&(e.baseData.responseSizeBytes=t.responseSizeBytes)},e}(),vn="MS-CV";let vr=function(e){function t(){var n,r,o,a,s,l=e.call(this)||this;return l.identifier="QosPlugin",l.version="3.2.14",t7(t,l,function(e,t){function l(e){var t={enableCorsCorrelation:!1,correlationHeaderExcludedDomains:[],correlationHeaderExcludePatterns:null,disableCorrelationHeaders:!1,maxAjaxCallsPerView:-1,disableAjaxTracking:!1,disableFetchTracking:!1,enableCvHeaders:!1,appId:void 0,excludeRequestFromAutoTrackingPatterns:void 0,distributedTracingMode:1,correlationHeaderDomains:void 0,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:void 0,callback:{pageName:null,id:null},autoCapture:{msTags:!0},coreData:{requestUri:"",pageName:""}},n=[];return rj(t,function(e,t){t&&rz(t)&&n.push(e)}),g8(e,n),i8(!0,t,e)}function c(t,n){d(t,n),e.core.track(t)}function u(){n=null,a={market:"",serverImpressionGuid:""},s={},r=new vt,o=new ve}function d(e,t){i0(t)&&rj(t,function(t,n){e.data[t]=n})}u(),e.includeCorrelationHeaders=function(n,r,o,a){var l=t.includeCorrelationHeaders(n,r,o,a);if(s.enableCvHeaders){var c=e.getCv();if(c&&(r||a)){c.increment();var u=c.getValue();r?(l||(l=o||{}),l.headers&&rV(l.headers.append)||(l.headers=new Headers(l.headers||r instanceof Request&&r.headers||{})),l.headers.append(vn,u)):l.setRequestHeader(vn,u)}}return l},e.initialize=function(r,o,c){var u=r.extensionConfig=r.extensionConfig||[];u[e.identifier]=u[e.identifier]||{},s=e._qosConfig=l(u[e.identifier]),u[g0.identifier]=s,t.initialize(r,o,c);var d=g1(e._qosConfig);a.market=g2(d,s.coreData,"market"),a.serverImpressionGuid=g2(d,s.coreData,"serverImpressionGuid");var p=(o.getPlugin("CorrelationVectorPlugin")||{}).plugin,f=(o.getPlugin("WebAnalyticsPlugin")||{}).plugin;f&&f.id?e.id=f.id:e.id=new mc(o),s.enableCvHeaders&&(p?(s.enableCvHeaders=!0,n=p):(iE(e.diagLog(),2,508,'Enable cV headers it is set to "true" in config.  However, cv plugin is not available. Disabling adding Cv in dependency requests '),s.enableCvHeaders=!1))},e.processTelemetry=function(t,n){an(t,e.identifier);var r=t;r.baseType===pz.dataType&&("Ms.Qos.OutgoingServiceRequest"!==r.name&&(r.name="Ms.Web.OutgoingRequest",r.baseData=r.baseData||{},r.baseData.properties=r.baseData.properties||{},r.baseData.properties.parentId=r.baseData.properties.parentId||e.id.getLastPageViewId(),delete r.baseData.method),r.latency=1),e.processNext(r,n)},e.trackDependencyData=function(t,n){e.trackDependencyDataInternal(t,n)},e.trackDependencyDataInternal=function(n,r,o){var l=o||{},c=l[mx];if(c){var u=l.dt=l.dt||{};u.traceId=u.traceId||c.traceID,u.spanId=u.spanId||c.parentID,rO(c.traceFlags)||rZ(u.traceFlags)||(u.traceFlags=c.traceFlags)}i0(n.cV)&&(l.mscv={},l.mscv.cV=n.cV),n.id=s.callback&&s.callback.id?s.callback.id():i6(),(r=r||{}).pageName=i0(r.pageName)?r.pageName:g6(e._qosConfig),r.uri=i0(r.uri)?r.uri:g3(e._qosConfig),r.market=i0(r.market)?r.market:a.market,r.serverImpressionGuid=i0(r.serverImpressionGuid)?r.serverImpressionGuid:a.serverImpressionGuid,t.trackDependencyDataInternal(n,r,l)},e.trackServiceOutgoingQos=function(e,t){var n={name:"Ms.Qos.OutgoingServiceRequest",baseType:"RemoteDependencyData",ext:{},baseData:{},data:{},latency:3};r._setQosProperties(n,e),d(n,t),c(n)},e.trackServiceIncomingQos=function(e,t){var n={name:"Ms.Qos.IncomingServiceRequest",baseType:"RequestData",ext:{},baseData:{},data:{},latency:3};o._setQosProperties(n,e),d(n,t),c(n)},e.getCv=function(){return n?n.getCv():null},e._doTeardown=function(e,n){t._doTeardown(e,n),u()}}),l}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(g0);var vo=function(e){var t={referrerUri:vB.dom.getReferrer()};vR.capturePageView(t)},vi=function(e){if(vB.allowClickTracking){var t={content:{id:e.clickId,aN:e.pageArea,cN:e.clickId,cS:e.containerGroup||e.container||e.clickId},isAuto:!1,targetUri:e.targetUri&&vB.urlScrubber(e.targetUri)||vB.dom.getLocationHref(),pageName:vB.dom.getPageId(),refUri:vB.dom.getReferrer(),actionType:hM};vR.capturePageAction(vB.dummyElement,t)}},va={reportPageView:vo,reportClick:vi,reportPartialView:function(e){var t={behavior:k.IMPRESSION,pageName:e.viewId},n={pageLoadTime:e.pltMsec};vR.captureContentUpdate(t,n)},$notifyPageLoaded:function(){}},vs=function(e){var t={},n={errorInfo:(0,ej.__assign)({Page:e.location,PageName:e.pageId,Script:e.script,Message:e.message,LineNumber:e.lineNumber,UserAgent:e.userAgent,flights:vB.flights},e.ext),wasDisplayed:!1,uri:vB.dom.getLocationHref(),pageName:e.pageId,market:vB.market};vR.trackException(t,n)},vl=function(e){var t=e.content,n=t.baseData,r=(0,ej.__rest)(t,["baseData"]),o={name:e.name,baseType:e.baseType,data:r,baseData:n};vR.trackEvent(o)},vc=function(e){var t={latencyMs:e.latencyMs,requestMethod:e.httpMethod,succeeded:e.isSuccess,serviceErrorCode:e.serviceErrorCode,responseContentType:e.contentType,operationName:e.currentOperationName||e.operationName,responseSizeBytes:e.responseSize,protocolStatusCode:e.httpStatusCode,target:vB.urlScrubber(e.requestUri),dependencyName:e.serviceName,dependencyOperationName:e.operationName,dependencyOperationVersion:e.operationVersion},n={errorMessage:e.errorMessage,customData:e._optionalData&&JSON.stringify(e._optionalData)||e.customData,pageName:vB.dom.getPageId(),uri:vB.dom.getLocationHref(),market:vB.market,cV:e.cV};vN.trackServiceOutgoingQos(t,n)},vu={reportClientError:function(e){var t=e&&e.data&&JSON.stringify(e.data);vs({location:vB.dom.getLocationHref(),pageId:vB.dom.getPageId(),script:vB.dom.getLocationHref(),message:e&&e.message||t||"unknown",userAgent:window.navigator.userAgent||""})},reportFatalError:vs,reportRawEvent:vl,reportOutgoingApi:vc},vd="awa-",vp=function(){for(var e=document.getElementsByTagName("meta"),t={},n=0;n<e.length;n++){var r=e[n].name,o=e[n].content;r&&0===r.indexOf(vd)&&(t[r.replace(vd,"")]=o)}return t},vf=function(e){var t={name:e1,baseType:"Ms.Content.PageView",baseData:{pageTags:{flight:e,metaTags:vp()}}};vR.trackEvent(t)},vh={reportExperimentTrigger:vf,setExperimentData:function(){}},vm="window",vg="document",vv="navigator",vy="performance",vb="JSON",vx="XMLHttpRequest";function vC(e){var t=(0,n5.mS)();return t&&t[e]?t[e]:e===vm&&vk()?window:null}function vk(){return!!(typeof window===n2._1&&window)}function vw(){return vk()?window:vC(vm)}function vS(){return!!(typeof document===n2._1&&document)}function v_(){return vS()?document:vC(vg)}function vE(){return!!(typeof navigator===strShimObject&&navigator)}function vP(){return!!(typeof JSON===strShimObject&&JSON||null!==vC(vb))}var vI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.clickCaptureInputTypes={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},t.KeyCodes={GamePadA:195,GamePadMenu:207},t.ActionTypes={GamePadA:"CGA",GamePadMenu:"CGM"},t}return(0,ej.__extends)(t,e),t.prototype.click=function(){var e=this,t=vw(),n=v_();if(t&&t.addEventListener){var r=-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown";t.addEventListener(r,function(t){e._processClick(t)},!1),t.addEventListener("keydown",function(t){e._processClick(t)},!1)}else n&&n.attachEvent&&(n.attachEvent("onclick",function(t){e._processClick(t)}),n.attachEvent("keydown",function(t){e._processClick(t)}))},t.prototype._processClick=function(t){var n={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},r=vw(),o=t||(null==r?void 0:r.event),a=o.srcElement||o.target,s={isAuto:!0,clickCoordinateX:o.pageX,clickCoordinateY:o.pageY};if(o.keyCode===this.KeyCodes.GamePadA)s.actionType=this.ActionTypes.GamePadA;else{if(o.keyCode!==this.KeyCodes.GamePadMenu)return void e.prototype._processClick.call(this,t);s.actionType=this.ActionTypes.GamePadMenu}for(;a&&a.tagName;){if(a.control&&n[a.control.tagName.toUpperCase()]&&(a=a.control),n[a.tagName.toUpperCase()]){("INPUT"!==a.tagName.toUpperCase()||this.clickCaptureInputTypes[a.type.toUpperCase()])&&this._analyticsPlugin.capturePageAction(a,s,{});break}a=a.parentElement||a.parentNode}},t}(hK),vT=function(e,t){var n={alt:vA(e),vlt:Math.round(e.loadTimeMsec),data:e.components&&e.components.map(function(e){return(0,ej.__assign)((0,ej.__assign)({},e.data),{componentName:e.name,startTime:Math.round(e.started),endTime:Math.round(e.ended)})}),customData:{}};t&&t.forEach(function(e){n.customData[e.name]=e.value});var r={pageName:e.viewName||vB.dom.getPageId(),isDomComplete:!0},o={uri:vB.dom.getLocationHref(),timings:n,pageTypeForPerf:e.viewName||vB.dom.getPageId()};vR.captureContentUpdate(r,o)},vD={reportViewPerformanceMetrics:vT},vA=function(e){var t=e;return t.application?Math.round(t.application.loadTimeMsec):void 0},vR=new h3,vN=new vr,vB={},vM=[e$,eY,eQ,eJ,eZ,e1,e5,e2];function vF(e,t){var n=new mi;S=new ml(t.seedCv);var r=t.features.join("|"),o=t.urlScrubber||ti;if(vB.allowClickTracking=e.allowClickTracking,vB.flights=r,vB.urlScrubber=o,vB.dom=t.dom||to(o),vB.market=t.market,vB.dummyElement=document.createElement("div"),e.useKeydownEvent){var a=vR.getWebAnalyticsExtension(),s=new vI(a,a.diagLog());a.setAutoCaptureHandler(s)}var l={instrumentationKey:e.instrumentationKey,propertyConfiguration:{env:e.environment,populateBrowserInfo:!0,populateOperatingSystemInfo:!0,gpcDataSharingOptIn:vL(),callback:{userConsentDetails:function(){return window.siteConsent?window.siteConsent.getConsent():{Required:!0,Analytics:!1,Advertising:!1,SocialMedia:!1}}}},webAnalyticsConfiguration:{autoCapture:{pageView:!1,onLoad:!1,lineage:!0,click:e.allowClickTracking,scroll:e.allowScrollTracking,jsError:!1},coreData:{market:t.market,pageTags:{flight:r}},shareAuthStatus:!0,useDefaultContentName:!0,manageCv:!0,urlCollectHash:!0,urlCollectQuery:!0,isLoggedIn:e.isUserSignedIn},extensions:[n,S,vN],extensionConfig:[]},c={callback:{},appId:e.appId,enableCvHeaders:!0,disableAjaxTracking:!0,disableFetchTracking:!0};l.extensionConfig[vN.identifier]=c;var u={authType:h8,loggedInStatusCallback:function(){return e.isUserSignedIn||!1}};l.extensionConfig[n.identifier]=u,vR.initialize(l,[]),e.userPuid&&e.isUserSignedIn&&(vR.getPropertyManager().getPropertiesContext().user.localId="p:".concat(e.userPuid)),window.onGPCLoaded=function(){vR.getPropertyManager().getPropertiesContext().web.gpcDataSharingOptIn=vL()},vR.addTelemetryInitializer(vO)}var vO=function(e){e.baseData||(e.baseData={}),e.data||(e.data={});var t,n,r,o,a,s=vB.urlScrubber||ti;if(vM.indexOf(e.name)>-1){e.data.referrerUri=vB.dom.getReferrer(),e.data.isLoggedIn=e.baseData.isLoggedIn,e.data.isManual=e.baseData.isManual,e.baseData.pageName=vB.dom.getPageId(),e.baseData.impressionGuid=e.baseData.id;var l=e.baseData.properties.pageTags||{},c=e.baseData.pageTags||{};if(e.baseData.pageTags=(0,ej.__assign)((0,ej.__assign)((0,ej.__assign)({},c),l),{metaTags:(0,ej.__assign)((0,ej.__assign)((0,ej.__assign)((0,ej.__assign)({},c.metaTags),l.metaTags),vp()),{pageTypeForPerf:e.data.pageTypeForPerf})}),delete e.baseData.properties.pageTags,e.name===e$){e.data.refUri=s(e.data.refUri);var u=s(e.baseData.targetUri);e.baseData.targetUri=u,e.baseData.destUri=u;var d=JSON.parse(e.baseData.content||"");d=d.map(function(e){return(0,ej.__assign)((0,ej.__assign)({},e),{cN:e.cN?"REMOVED":void 0,srchq:e.srchq?"REMOVED":void 0})}),e.baseData.content=JSON.stringify(d)}else e.name===eZ?(e.baseData.targetUri=e.baseData.target,(null==(n=null==(t=e.ext)?void 0:t.mscv)?void 0:n.cV)&&e.data.overrideCv&&(e.ext.mscv.cV=e.data.overrideCv,delete e.data.overrideCv)):e.name===e1||e.name===e5?e.baseData.market=vB.market||"":e.name===eY&&(e.baseData.name=e.baseData.pageName);e.baseData.uri=vB.dom.getLocationHref()}e.name===e0&&e.baseData.uri&&(e.baseData.uri=s(e.baseData.uri)),(null==(a=null==(o=null==(r=e.ext)?void 0:r.ingest)?void 0:o.userAgent)?void 0:a.appInfo)&&delete e.ext.ingest.userAgent.appInfo},vL=function(){return!("u"<typeof GPC_DataSharingOptIn)&&GPC_DataSharingOptIn},vH=function(){var e={appId:"xs.amc.ux-reactApp",environment:"Test",isUserSignedIn:!1,allowClickTracking:!0,allowScrollTracking:!0,instrumentationKey:"key",useKeydownEvent:!1},t={allowAutoPageView:!0,market:"en-US",language:"en",flights:[],features:[],urlScrubber:function(e){return e}};window.BradburyTelemetry={bi:{getCurrentLocation:function(){return"https://location.com"},getCurrentPageId:function(){return"pageId"},getCurrentReferrer:function(){return"https://referrer.com"},reportClick:function(e){vi(e)},reportSpaPageView:function(e){vo(e)}},cv:{getCurrentCvValue:function(){return"cv123"}},experiments:{reportExperimentTrigger:function(e){vf(e)}},perf:{reportViewPerformanceMetrics:function(e,t){vT(e,t)}},qos:{reportFatalError:function(e){vs(e)},reportOutgoingApi:function(e){vc(e)},reportRawEvent:function(e){vl(e)}}},vF(e,t)},vz="awa-",vV="Ms.Osgs.Scenario",vU="s",vj="t",vW="x",vq="es",vG="ef",vK="cs",vX="cf",vY={$beginScenario:function(e){var t={name:vV,data:(0,ej.__assign)({uri:vB.dom.getLocationHref(),referrerUri:vB.dom.getReferrer(),pageName:vB.dom.getPageId(),area:e.area,name:e.name,step:e.currentStep,next:e.nextStep||"",type:vU},v$(e))};vR.trackEvent(t);var n={behavior:k.STARTPROCESS,actionType:"A",contentTags:(0,ej.__assign)({scn:e.name,scnstp:e.currentStep,scnnxtstp:e.nextStep},vQ(e.data))};vR.capturePageAction(vB.dummyElement,n)},$completeStep:function(e){var t=vG;e.canceled?t=e.successful?vK:vX:e.successful&&(t=vq);var n={name:vV,data:(0,ej.__assign)({uri:vB.dom.getLocationHref(),referrerUri:vB.dom.getReferrer(),pageName:vB.dom.getPageId(),area:e.area,name:e.name,step:e.currentStep,next:e.nextStep||"",type:e.isStep?vj:vW,result:t,tmsec:e.timeMsec||0,error:e.error},v$(e))};vR.trackEvent(n);var r=e.isStep?k.PROCESSCHECKPOINT:k.COMPLETEPROCESS;!e.isStep&&e.canceled&&(r=k.SCENARIOCANCEL);var o={behavior:r,actionType:"A",contentTags:(0,ej.__assign)({scn:e.name,scnstp:e.currentStep,scnnxtstp:e.nextStep,isSuccess:!!e.successful,isCancel:!!e.canceled,scnerror:e.error},vQ(e.data))};vR.capturePageAction(vB.dummyElement,o)}},v$=function(e){var t,n,r;return{data:e.data&&JSON.stringify(e.data),origin:null==(t=e.attribution)?void 0:t.origin,flow:null==(n=e.attribution)?void 0:n.flow,owner:null==(r=e.attribution)?void 0:r.owner,mkt:e.market,lang:e.language}},vQ=function(e){if(e){var t={};return Object.keys(e).forEach(function(n){var r=n;n.startsWith(vz)&&(r=r.replace(vz,"")),t[r]=e[n]}),t}},vJ={getCorrelationVectorFormFieldName:function(){return"MS-CV"},getCurrentCvValue:function(){return S.getCv().getValue()},incrementCv:function(){S.getCv().increment()},seedCv:function(e){return e?S.getCv().init(e):S.getCv().seed()}},vZ={updateFlights:function(e){vB.flights=e.join("|"),vR.getWebAnalyticsExtension().updateCoreDataConfig({pageTags:{flight:vB.flights}})},updateUserPuid:function(e){vR.getPropertyManager().getPropertiesContext().user.localId="p:".concat(e)}};function v0(e){var t;null==(t=window.BradburyTelemetry)||t.bi.reportClick(e)}window.OneDS={initialize:vF,BiSink:va,ClientQosSink:vu,CorrelationVectorManager:vJ,ExperimentsSink:vh,ScenarioSink:vY,PerformanceSink:vD,TelemetryConfigurationUpdateSink:vZ},window.owap=vR;var v1=document.querySelector("html > head"),v2=null;function v5(e){return v1.getElementsByTagName("meta").namedItem(e)}var v4=n(40887),v3=n.n(v4),v6=0xffffffff,v8=function(){var e=window.crypto||window.msCrypto;if(e){var t=new Uint32Array(1);return e.getRandomValues(t)[0]/(v6+1)}return Math.random()},v9=function(){return((1+v8())*65536|0).toString(16).substring(1)},v7=function(){return"".concat(v9()).concat(v9(),"-").concat(v9(),"-").concat(v9(),"-").concat(v9(),"-").concat(v9()).concat(v9()).concat(v9())},ye=function(e,t,n,r){void 0===n&&(n="default"),void 0===r&&(r=void 0);var o=null==t?void 0:t.toLowerCase(),a=Object.keys(e).find(function(e){var t=e.toLowerCase();return o===t||r&&t.indexOf(r)>-1&&t.split(r).indexOf(o)>-1});return e[null!=a?a:n]},yt=[],yn=function(e){(0,v4.useEffect)(function(){return e},yt)},yr=function(e){var t=(0,v4.useRef)(!1);t.current||(t.current=!0,e())};function yo(){var e=(0,v4.useRef)(Promise.resolve());return{enqueue:(0,v4.useCallback)(function(t){var n=e.current.then(function(){return t()},function(){return t()});return e.current=n.then(function(){},function(){}),n},[]),getCurrentQueue:(0,v4.useCallback)(function(){return e.current},[])}}var yi=function(e){if(performance){var t=performance.getEntriesByType("navigation")[0];if(t)return t.type===e}return!1},ya=function(){return!!navigator&&!navigator.cookieEnabled},ys=n(2029),yl=n.n(ys),yc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ej.__extends)(t,e),t.prototype.getSnapshotBeforeUpdate=function(e){if(!e.isUpdating&&this.props.isUpdating&&document.activeElement){var t=yl().findDOMNode(this);t&&t.contains(document.activeElement)&&(this.savedFocusElement=document.activeElement,_=this)}return null},t.prototype.componentDidUpdate=function(e){if(e.isUpdating&&!this.props.isUpdating&&this.savedFocusElement){var t=yl().findDOMNode(this);if(t&&document.activeElement===document.body&&_===this){if(t.contains(this.savedFocusElement))this.savedFocusElement.focus();else if(this.savedFocusElement.dataset.biId)if(t.tagName===this.savedFocusElement.tagName&&t.dataset.biId===this.savedFocusElement.dataset.biId)t.focus();else{var n=t.querySelector("".concat(this.savedFocusElement.tagName,'[data-bi-id="').concat(this.savedFocusElement.dataset.biId,'"]'));n&&n.focus()}}this.savedFocusElement=void 0}},t.prototype.render=function(){return this.props.children},t}(v3().Component),yu=JSON.parse('{"Q":"main-content-landing","$":"main-content-landing-react"}');function yd(e,t){var n=e;if(!n)return n;if(null!==t&&(Array.isArray(t)||"object"==typeof t))n=n.replace(/\{(\w+)\}/g,function(e,n){var r=t[n];return null==r?"":r});else{var r=null==t?"":t;n=n.replace(/\{0\}/g,r)}return n}var yp="mock-scenarios",yf=",",yh=function(e){for(var t=encodeURIComponent(e).toLowerCase(),n=document.cookie.split(";"),r=0;r<n.length;r++){var o=n[r].split("="),a=decodeURIComponent(o[0].trim().toLowerCase());o.shift();var s=o.join("=");if(a===t)return decodeURIComponent(s)}return""},ym=function(e){var t=yh(yp).split(yf);return e?t.filter(function(t){return 0===t.indexOf(e)}):t},yg=127,yv=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;function yy(e){return yv.test(e)&&!yb(e)}function yb(e){for(var t=0;t<e.length;++t)if(e.charCodeAt(t)>yg)return!0;return!1}var yx=function(e,t,n){var r=encodeURIComponent(t),o=encodeURIComponent(n),a=e.split("#"),s=a[0],l=a[1],c=s.split("?"),u=c[0],d=c[1],p=[];(null==d?void 0:d.length)>0&&(p=null==d?void 0:d.split("&"));var f=p.filter(function(e){return e.split("=")[0]!==r}),h="".concat(r,"=").concat(o),m=(0,ej.__spreadArray)((0,ej.__spreadArray)([],f,!0),[h],!1).join("&"),g="".concat(u,"?").concat(m);return(null==l?void 0:l.length)>0&&(g="".concat(g,"#").concat(l)),g},yC=function(e,t){return null!==e&&t?t.reduce(function(e,t){var n=Object.entries(t)[0];return yx(e,n[0],n[1])},e):e},yk=function(e,t){return new URLSearchParams(window.location.search.toUpperCase()).get(e.toUpperCase())===t.toUpperCase()},yw=function(e,t,n){return n?new URLSearchParams(e).get(t):new URLSearchParams(e.toUpperCase()).get(t.toUpperCase())},yS=function(e,t){return yw(window.location.search,e,t)};function y_(e,t){if(!e)throw Error("".concat(t," not found"))}var yE=n(31556);(0,ej.__assign)((0,ej.__assign)({},yE.XZ),{billingOrderFilter:1,suiteHeaderWholeHeader:10,feedBackButton:10,suiteHeaderSkipToMainContent:1e4}),n(88705),new RegExp(/.\../);var yP=864e5,yI=function(e){var t=new Date;localStorage.setItem(e,JSON.stringify(t))},yT=function(e){var t,n=localStorage.getItem(e);if(n){var r=new Date(JSON.parse(n));t=new Date(Date.now()).getTime()-r.getTime()}return t},yD=function(e){var t,n=yT(e);return n&&(t=Math.floor(n/yP)),t},yA=function(e){return(e-621355968e9)/1e4},yR=function(e){var t=864e5,n=1e4;return Math.round((Date.now()-e)/t*n)/n},yN="prod",yB="en-US",yM=function(){return(0,v4.useMemo)(function(){var e,t=document.getElementById("root");if(t){var n=yB;try{n=JSON.parse(t.dataset.areaConfig||"{}").language||n}catch(e){}return{environment:(null==(e=t.dataset.environment)?void 0:e.toLowerCase())||yN,locale:n}}return{environment:yN,locale:yB}},[])};!function(e){e.AlreadyRunning="alreadyRunning"}(E||(E={}));var yF="Scenario not started or already ended",yO=!1,yL={isReact:!0};function yH(e){var t;yO&&y8({name:"Ms.Webi.MeePortal.ScenarioErrorEvent",message:"Scenario begin called, but Scenario '".concat(e.scenario,"' is already started"),area:e.area,scenario:e.scenario,eventType:E.AlreadyRunning}),y$(e),bP(e.step),null==(t=window.BradburyTelemetry)||t.scenarios.beginMultiStepScenario(e.area,e.scenario,e.step,{attribution:e.attribution,data:(0,ej.__assign)((0,ej.__assign)((0,ej.__assign)({},e.data),yL),{scenarioStartTimestamp:Date.now()})})}function yz(e){var t;if(!yO)throw Error(yF);bP(e.step),P.push(I),null==(t=window.BradburyTelemetry)||t.scenarios.endStep(yQ(e))}function yV(e){if(!yO)throw Error(yF);if(P.length<1)throw Error("Scenario '".concat(D,"': Cannot go back from step '").concat(I.step,"'"));e&&e.step&&bP(e.step);var t,n=P.pop(),r=(0,ej.__assign)({step:n.step,data:n.data},e);null==(t=window.BradburyTelemetry)||t.scenarios.cancelStep(yQ(r))}function yU(e){if(!yO)throw Error(yF);e&&e.step&&bP(e.step);var t,n=(0,ej.__assign)({step:I.step,data:I.data},e);null==(t=window.BradburyTelemetry)||t.scenarios.cancelMultiStepScenario(yQ(n)),b_("error"),yO=!1}function yj(e){if(!yO)throw Error(yF);e&&e.step&&bP(e.step);var t,n=(0,ej.__assign)((0,ej.__assign)({},I.data),{timeElapsedFromScenarioStart:I.data&&I.data.scenarioStartTimestamp?Date.now()-I.data.scenarioStartTimestamp:null}),r=(0,ej.__assign)({step:I.step,data:n},e);null==(t=window.BradburyTelemetry)||t.scenarios.endMultiStepScenario(yQ(r)),b_("success"),yO=!1}function yW(e){if(!yO)throw Error(yF);e&&e.step&&bP(e.step);var t,n=(0,ej.__assign)((0,ej.__assign)({},e),{step:e.step||I.step});null==(t=window.BradburyTelemetry)||t.scenarios.endStep(yQ(n))}function yq(e){var t;y$(e),bP(e.step),null==(t=window.BradburyTelemetry)||t.scenarios.endStep({area:e.area,name:e.scenario,step:e.fromStep,next:e.step,isSuccess:!e.error,error:e.error,attribution:e.attribution,data:(0,ej.__assign)((0,ej.__assign)({},e.data),yL)})}function yG(e){var t;if(!yO)throw Error(yF);bP(e.step),null==(t=window.BradburyTelemetry)||t.scenarios.endStep(yQ(e)),b_("error"),yO=!1}function yK(){return yO?I.step:void 0}function yX(){return yO?D:void 0}function yY(){return yO}function y$(e){if(P=[],bE(e.scenario),!e.area)throw Error("no area specified");if(!e.scenario)throw Error("no scenario specified");if(!e.step)throw Error("Scenario '".concat(D,"': no step specified"));T=e.area,D=e.scenario,A=e.attribution,yO=!0,I={step:e.step,data:(0,ej.__assign)((0,ej.__assign)({},e.data),{scenarioStartTimestamp:Date.now()})}}function yQ(e){if(!e||!e.step)throw Error("Scenario '".concat(D,"': next step not specified"));var t=I.data||e.data?(0,ej.__assign)((0,ej.__assign)({},I.data),e.data):{},n=I.data?I.data.scenarioStartTimestamp:null,r={area:T,name:D,attribution:A,data:(0,ej.__assign)((0,ej.__assign)((0,ej.__assign)({},t),yL),{timeElapsedFromScenarioStart:n?Date.now()-n:null}),step:I.step,next:e.step,isSuccess:!e.error,error:e.error};return I={step:r.next,data:r.data},r}var yJ=function(){var e;return null==(e=window.BradburyTelemetry)?void 0:e.cv.getCurrentCvValue()},yZ=function(){var e;null==(e=window.BradburyTelemetry)||e.cv.incrementCv()},y0=n(39907),y1=function(e){var t,n,r,o={name:e2,baseType:e2,content:{}};e.data&&e.data.error&&(e.data.error.config&&delete e.data.error.config.data,"{}"===JSON.stringify(e.data.error)&&(e.data.error=e.data.error.toString()));var a=yX();try{e.data=(0,ej.__assign)((0,ej.__assign)({},e.data),{scenario:a,devServer:null!==v5("awa-devserver")}),r=JSON.stringify(e.data)}catch(e){r=JSON.stringify({isReact:!0,scenario:a,devServer:!1,errorMessage:"Unable to parse customData."})}o.content={name:e.name,uri:e.uri,referrerUri:null==(t=window.BradburyTelemetry)?void 0:t.bi.getCurrentReferrer(),pageName:e.pageName,area:e.area,result:e.result,durationMs:e.durationMs,kind:e.kind,data:r},null==(n=window.BradburyTelemetry)||n.qos.reportRawEvent(o)},y2=function(e,t){var n;null==(n=window.BradburyTelemetry)||n.perf.reportViewPerformanceMetrics(e,t)},y5=function(e,t){var n,r,o,a,s,l,c=e.httpStatusCode?e.httpStatusCode:0,u=500,d="https://request-uri-missing.com";(null==(r=null==(n=window.BradburyTelemetry)?void 0:n.utilities)?void 0:r.globalUrlScrubber)&&(d=null==(o=window.BradburyTelemetry)?void 0:o.utilities.globalUrlScrubber(e.requestUri));var p={isSuccess:void 0!==e.isSuccess?e.isSuccess:c<u,latencyMs:Math.floor(e.latency),httpStatusCode:c.toString(),serviceErrorCode:e.serviceErrorCode||-1,errorMessage:e.errorMessage,errorCode:e.errorCode,requestTimeout:e.timeout,responseStatus:c,responseDataError:e.responseDataError};y4(p,t);var f=null==(a=window.MeePortal)?void 0:a.g_userFeatures;try{e.customData=(0,ej.__assign)((0,ej.__assign)({},e.customData),{devServer:null!==v5("awa-devserver"),flight:(f||[]).join("|")}),l=JSON.stringify(e.customData)}catch(e){l="Unable to parse customData."}null==(s=window.BradburyTelemetry)||s.qos.reportOutgoingApi({cV:e.overrideCv||yJ(),currentOperationName:e.operationName,requestUri:d,latencyMs:p.latencyMs||-1,serviceErrorCode:p.serviceErrorCode,isSuccess:p.isSuccess,httpMethod:e.httpMethod,httpStatusCode:p.httpStatusCode,contentType:e.contentType,operationName:e.operationName,serviceName:e.partnerName||"MeePortal",responseSize:e.responseSize,errorMessage:p.errorMessage,operationVersion:"ReactJS",customData:l})};function y4(e,t){if(e){var n,r,o,a=e7;t&&(a=t(e)),a!==te&&(null==(o=null==(r=null==(n=window.BradburyTelemetry)?void 0:n.utilities)?void 0:r.overrideRequestQosData)||o.call(r,e))}}var y3=function(e){var t;null==(t=window.BradburyTelemetry)||t.qos.reportFatalError(e)};function y6(e,t){var n,r={path:window.location.pathname,viewId:"".concat(e,".").concat(t)};null==(n=window.BradburyTelemetry)||n.bi.reportSpaPageView(r)}function y8(e){var t,n={name:e.name,content:(0,ej.__rest)(e,["name"])};null==(t=window.BradburyTelemetry)||t.qos.reportRawEvent(n)}function y9(e){var t;null==(t=window.BradburyTelemetry)||t.experiments.reportExperimentTrigger(e)}function y7(e){var t,n,r,o,a="http://uri-missing.com";(null==(n=null==(t=window.BradburyTelemetry)?void 0:t.utilities)?void 0:n.globalUrlScrubber)&&(a=null==(r=window.BradburyTelemetry)?void 0:r.utilities.globalUrlScrubber(e)),y8({name:"Ms.Webi.MeePortal.HttpUrlEvent",url:a,page:null==(o=window.BradburyTelemetry)?void 0:o.bi.getCurrentLocation()})}function be(e,t,n){var r;y8({name:"Ms.Webi.MeePortal.ComponentErrorEvent",componentName:e,errorMessage:t,errorCount:n,page:null==(r=window.BradburyTelemetry)?void 0:r.bi.getCurrentLocation()})}function bt(e,t,n){var r,o,a;y8({name:"Ms.Webi.MeePortal.ComponentMountedEvent",componentName:t,componentId:n||"",twouiVersion:e,location:null==(r=window.BradburyTelemetry)?void 0:r.bi.getCurrentLocation(),pageId:null==(o=window.BradburyTelemetry)?void 0:o.bi.getCurrentPageId(),environment:(null==(a=null==y0?void 0:y0.env)?void 0:a.NODE_ENV)||""})}var bn="Field entirely removed due to scrub failure.",br=["identitytoolkit.googleapis.com","www.google-analytics.com","send.emailcloudplatform.com","auth.withcarrot.com"];function bo(e){for(var t,n,r,o,a,s,l,c,u=(null==(t=performance.getEntriesByType)?void 0:t.call(performance,"resource"))||[],d=null==(r=null==(n=window.BradburyTelemetry)?void 0:n.utilities)?void 0:r.globalUrlScrubber,p=null==(a=null==(o=window.BradburyTelemetry)?void 0:o.utilities)?void 0:a.resourceNameScrubber,f=null==(s=window.BradburyTelemetry)?void 0:s.bi.getCurrentPageId(),h=null==(l=window.BradburyTelemetry)?void 0:l.bi.getCurrentLocation(),m=0;m<u.length;m++){var g=u[m];try{var v=new URL(g.name),y=v.pathname.split("/"),b=y[y.length-1];if("file:"===v.protocol||br.includes(v.hostname))continue;var x=d&&d(v.href),C=p&&p(v.pathname),k=p&&p(b),w=d&&d(v.search),S={name:"Ms.Webi.MeePortal.ResourceTiming",domain:v.hostname,path:C||bn,resourceName:k||bn,fullUrl:x||bn,queryString:w||bn,size:g.transferSize,duration:Math.floor(g.duration),entryType:g.entryType,initiatorType:g.initiatorType,url:h,area:e,pageName:f};y8(S)}catch(t){var x=d&&d(g.name);y8({name:"Ms.Webi.MeePortal.ResourceTiming",fullUrl:x||bn,url:h,pageName:f,area:e,error:t.message||"unknown error"})}finally{null==(c=performance.clearResourceTimings)||c.call(performance)}}}var bi=1e3;function ba(e){try{return{beforeJSTime:(e.domContentLoadedEventStart-e.startTime)/bi,redirectTime:(e.redirectEnd-e.redirectStart)/bi,contentDownloadTime:(e.responseEnd-e.responseStart)/bi,TTFB:(e.responseStart-e.requestStart)/bi,PLT:(e.loadEventStart-e.startTime)/bi,DNS:(e.domainLookupEnd-e.domainLookupStart)/bi,TCP:(e.connectEnd-e.connectStart)/bi,SSL:(e.requestStart-e.secureConnectionStart)/bi}}catch(e){return{beforeJSTime:-1,redirectTime:-1,contentDownloadTime:-1,TTFB:-1,PLT:-1,DNS:-1,TCP:-1,SSL:-1}}}var bs="mountStart",bl="mountEnd",bc="updateStart",bu="updateEnd",bd="PreScenario",bp=bd,bf=!0,bh=function(e,t){return"".concat(e,"-").concat(t)},bm=function(e){return bh(e,bs)},bg=function(e){return bh(e,bl)},bv=function(e){return bh(e,bc)},by=function(e){return bh(e,bu)},bb=function(e){return bh(e,PerformanceMarkerTypes.onClickNewStep)},bx=bm(bd),bC=bg(bd),bk=bv(bd),bw=by(bd);function bS(e){try{return{navigationStart:e.startTime,redirectStart:e.redirectStart,redirectEnd:e.redirectEnd,responseStart:e.responseStart,responseEnd:e.responseEnd,domainLookupStart:e.domainLookupStart,domainLookupEnd:e.domainLookupEnd,connectStart:e.connectStart,connectEnd:e.connectEnd,requestStart:e.requestStart,secureConnectionStart:e.secureConnectionStart}}catch(e){return{navigationStart:-1,redirectStart:-1,redirectEnd:-1,responseStart:-1,responseEnd:-1,domainLookupStart:-1,domainLookupEnd:-1,connectStart:-1,connectEnd:-1,requestStart:-1,secureConnectionStart:-1}}}function b_(e){var t=window.performance.getEntriesByType&&window.performance.getEntriesByType("navigation");if(t&&t.length){var n=t[0],r=ba(n),o=window.performance.getEntriesByType("mark"),a=function(e){return JSON.stringify(e)},s=o.map(a).toString(),l=bS(n);y8((0,ej.__assign)((0,ej.__assign)((0,ej.__assign)({name:"Ms.Webi.MeePortal.OneNavigationPerfEvent",scenarioName:R,successStatus:e,isFirstScenarioOnPage:bf},r),l),{timeMarkers:s}))}window.performance.clearMarks&&window.performance.clearMarks(),bP(bd),bf=!1}function bE(e){if(!e)throw Error("Performance tracking begin(): no scenario specified");R=e}function bP(e){bx=bm(bp=e),bC=bg(bp),bk=bv(bp),bw=by(bp)}var bI=1,bT=2,bD=3,bA=4,bR=3e4,bN=function(e,t,n,r){var o=performance.now()-n;y2({application:{loadTimeMsec:o},loadTimeMsec:o},[{name:"area",value:t},{name:"pageName",value:"app"},{name:"result",value:e},{name:"isReact",value:!0},{name:"error",value:r&&r.message},{name:"stack",value:r&&r.stack}])},bB=function(e,t){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var n,r,o,a,s,l;return(0,ej.__generator)(this,function(c){switch(c.label){case 0:n=bI,o=performance.now(),a=!1,s=setTimeout(function(){a=!0,bN(bA,t,o)},bR),c.label=1;case 1:return c.trys.push([1,3,4,5]),[4,e()];case 2:return c.sent(),[3,5];case 3:throw l=c.sent(),n=bT,r=l,l;case 4:return a||(clearTimeout(s),bN(n,t,o,r)),[7];case 5:return[2]}})})},bM=3e4,bF=(0,v4.createContext)(null),bO=function(){var e=(0,v4.useContext)(bF);if(null===e)throw Error("ViewQosContext: Context is uninitialized. Confirm that your component is contained within a ViewQosProvider component.");return e},bL=function(e){var t=e.area,n=e.view,r=e.manualPageView,o=void 0!==r&&r,a=e.requiredComponents,s=e.autoTrackComponents,l=void 0!==s&&s,c=e.children,u=(0,v4.useRef)({requiredComponents:a.slice(),actualComponents:[],reportedViewName:"".concat(t,".").concat(n),eventSent:!1,timeoutHandle:void 0,startTime:performance.now()}).current,d=function(){var e=new Set(f());return u.requiredComponents.every(function(t){return e.has(t)})},p=function(){var e=new Set(u.actualComponents.map(function(e){return e.name}));return u.requiredComponents.every(function(t){return e.has(t)})},f=function(){return u.actualComponents.filter(function(e){return e.status===bI}).map(function(e){return e.name})},h=function(){var e=new Set(u.actualComponents.map(function(e){return e.name}));return u.requiredComponents.filter(function(t){return!e.has(t)})},m=function(){return u.actualComponents.filter(function(e){return e.status!==bI}).map(function(e){return e.name})},g=function(e){var n=performance.now()-u.startTime;C(u.reportedViewName,"page",e,n),k(e,n),bo(t)},v=function(){if(!u.eventSent&&p()){u.eventSent=!0;var e=u.actualComponents.map(function(e){return e.endTime}),n=(e.length?Math.max.apply(Math,e):performance.now())-u.startTime;d()?(C(u.reportedViewName,"page",bI,n),k(bI,n)):(C(u.reportedViewName,"page",bT,n),k(bT,n)),bo(t),clearTimeout(u.timeoutHandle)}},y=l?function(){return setTimeout(v)}:v,b=(0,v4.useCallback)(function(e){u.requiredComponents.includes(e.name)&&u.actualComponents.push(e),y()},[]),x=(0,v4.useCallback)(function(e){u.requiredComponents.includes(e)||u.requiredComponents.push(e)},[]),C=function(e,n,r,o){var a,s={};r!==bI&&(s.failedComponents=m()),(r===bA||r===bD)&&(s.missingComponents=h()),r===bA&&(s.successfulComponents=f()),y1({area:t,name:e,result:r,durationMs:o,uri:null==(a=window.BradburyTelemetry)?void 0:a.bi.getCurrentLocation(),pageName:u.reportedViewName,kind:n,data:(0,ej.__assign)((0,ej.__assign)({},s),{isReact:!0})})},k=function(e,n){var r=[{name:"area",value:t},{name:"pageName",value:u.reportedViewName},{name:"result",value:e},{name:"isReact",value:!0}];e!==bI&&r.push({name:"failedComponents",value:m()}),(e===bA||e===bD)&&r.push({name:"missingComponents",value:h()}),e===bA&&r.push({name:"successfulComponents",value:f()}),y2({loadTimeMsec:n},r)},w=(0,v4.useCallback)(function(){y6(t,n)},[t,n]);return(0,v4.useEffect)(function(){return u.timeoutHandle=setTimeout(function(){u.eventSent=!0,g(bA)},bM),y(),function(){u.eventSent||p()||(u.eventSent=!0,clearTimeout(u.timeoutHandle),g(bD))}},[]),v3().createElement(bF.Provider,{value:{area:t,view:n,sendPageViewEvent:o?w:function(){console.warn("ViewQosContext: Calling sendPageViewEvent without manualPageView. This is unsupported.")},reportComponentLoaded:b,addRequiredComponent:x,autoTrackComponents:l}},c)},bH={},bz=3e4,bV=(0,v4.createContext)(null),bU=function(){var e=(0,v4.useContext)(bV);if(null===e)throw Error("ComponentQosContext: Context is uninitialized. Confirm that your component is contained within a ComponentQosProvider component.");return e},bj=function(e){var t,n=e.children,r=bO(),o=r.area,a=r.view,s=r.addRequiredComponent,l=r.reportComponentLoaded,c=r.autoTrackComponents,u="".concat(o,".").concat(a),d=null==(t=window.BradburyTelemetry)?void 0:t.bi.getCurrentLocation(),p=function(e,t,n,r){void 0===r&&(r={});var a="".concat(e,":").concat(t);if(bH[a]){var s=performance.now(),c=s-bH[a].startTime;clearTimeout(bH[a].timeoutHandle),y1({area:o,name:"".concat(o,".").concat(e,":").concat(t),result:n,durationMs:c,uri:d,pageName:u,kind:"component",data:(0,ej.__assign)((0,ej.__assign)({},r),{isReact:!0})}),bH[a].isInit&&l({name:e,status:n,startTime:bH[a].startTime,endTime:s}),delete bH[a]}},f=function(e,t,n){var r="".concat(e,":").concat(t),o=performance.now();bH[r]||(c&&n&&s(e),bH[r]={startTime:o,timeoutHandle:setTimeout(function(){g(e,t)},bz),isInit:n})},h=function(e,t,n){p(e,t,bI,n)},m=function(e,t,n,r){p(e,t,bT,{error:n,customData:r})},g=function(e,t){p(e,t,bA)},v=function(e,t){p(e,t,bD)};return(0,v4.useEffect)(function(){return function(){Object.keys(bH).forEach(function(e){var t=e.split(":");v(t[0],t[1])})}},[]),v3().createElement(bV.Provider,{value:{startOperation:f,reportSuccess:h,reportFailure:m,reportCancel:v}},n)},bW=v3().createContext(null),bq=function(){var e=(0,v4.useContext)(bW);if(null===e)throw Error("OperationStateContext: Context is uninitialized. Confirm that your component is contained within an OperationStateContext.Provider component.");return e},bG=v3().createContext(null),bK=function(){var e=(0,v4.useContext)(bG);if(null===e)throw Error("OperationDispatchContext: Context is uninitialized. Confirm that your component is contained within an OperationDispatchContext.Provider component.");return e},bX=v3().createContext(null),bY=function(e){var t=e.children,n=(0,v4.useState)(function(){return new Map})[0],r=bq(),o=bU(),a=o.reportSuccess,s=o.reportFailure;(0,v4.useEffect)(function(){n.forEach(function(e,t){var o=r[e.operationName];if(o){var l=(0,ej.__assign)((0,ej.__assign)({},o.customData),{reportedAfterUnmount:!0});switch(o.status){case"finished":a(e.componentName,e.operationName,l),n.delete(t);break;case"update-failed":case"failed":s(e.componentName,e.operationName,o.error||Error("unspecified error"),l),n.delete(t)}}else n.delete(t)})},[r]);var l=(0,v4.useMemo)(function(){return{abandon:function(e,t){return n.set("".concat(e,":").concat(t),{componentName:e,operationName:t})},claim:function(e,t){return n.delete("".concat(e,":").concat(t))}}},[]);return v3().createElement(bX.Provider,{value:l,children:t})},b$=function(e){var t,n=bq();if(!e.updatingView)return v3().createElement(bQ,(0,ej.__assign)({},e));var r=null==(t=n[e.operationData.operationName])?void 0:t.status;return v3().createElement(yc,{isUpdating:"updating"===r},v3().createElement(bQ,(0,ej.__assign)({},e)))},bQ=function(e){var t=e.operationData,n=e.finishedView,r=e.failedView,o=void 0===r?null:r,a=e.firstLoadView,s=void 0===a?null:a,l=e.inertView,c=void 0===l?null:l,u=e.updateFailedView,d=void 0===u?o:u,p=e.updatingView,f=void 0===p?n:p,h=bq(),m=bU(),g=m.startOperation,v=m.reportSuccess,y=m.reportFailure,b=h[t.operationName],x=null==b?void 0:b.status,C=(0,v4.useRef)(x);(0,v4.useEffect)(function(){C.current=x},[x]);var k=(0,v4.useContext)(bX);if((0,v4.useEffect)(function(){return k.claim(t.componentName,t.operationName),function(){("first-load"===C.current||"updating"===C.current)&&k.abandon(t.componentName,t.operationName)}},[t.componentName,t.operationName]),!x)return"finished"===t.defaultState?n:c;switch(x){case"updating":return g(t.componentName,t.operationName,!1),f;case"first-load":return g(t.componentName,t.operationName,!0),s;case"finished":return v(t.componentName,t.operationName,b.customData),n;case"update-failed":return y(t.componentName,t.operationName,b.error||Error("unspecified error"),b.customData),d;case"failed":return y(t.componentName,t.operationName,b.error||Error("unspecified error"),b.customData),o;default:return c}},bJ=function(e){var t=e.children,n=e.shareParentOperations,r=function(e,t){var n;return(0,ej.__assign)((0,ej.__assign)({},e),((n={})[t.name]={status:t.status,error:t.error,customData:t.customData},n))},o=(0,v4.useReducer)(r,{}),a=o[0],s=o[1];return v3().createElement(v3().Fragment,null,n?v3().createElement(bj,null,t):v3().createElement(bG.Provider,{value:s},v3().createElement(bW.Provider,{value:a},v3().createElement(bj,null,v3().createElement(bY,null,t)))))},bZ=n(88400);function b0(e,t){return function(){return e.apply(t,arguments)}}var b1=n(39907);let{toString:b2}=Object.prototype,{getPrototypeOf:b5}=Object,{iterator:b4,toStringTag:b3}=Symbol,b6=(s=Object.create(null),e=>{let t=b2.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())}),b8=e=>(e=e.toLowerCase(),t=>b6(t)===e),b9=e=>t=>typeof t===e,{isArray:b7}=Array,xe=b9("undefined");function xt(e){return null!==e&&!xe(e)&&null!==e.constructor&&!xe(e.constructor)&&xi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let xn=b8("ArrayBuffer");function xr(e){let t;return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&xn(e.buffer)}let xo=b9("string"),xi=b9("function"),xa=b9("number"),xs=e=>null!==e&&"object"==typeof e,xl=e=>!0===e||!1===e,xc=e=>{if("object"!==b6(e))return!1;let t=b5(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(b3 in e)&&!(b4 in e)},xu=e=>{if(!xs(e)||xt(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},xd=b8("Date"),xp=b8("File"),xf=b8("Blob"),xh=b8("FileList"),xm=e=>xs(e)&&xi(e.pipe),xg=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||xi(e.append)&&("formdata"===(t=b6(e))||"object"===t&&xi(e.toString)&&"[object FormData]"===e.toString()))},xv=b8("URLSearchParams"),[xy,xb,xx,xC]=["ReadableStream","Request","Response","Headers"].map(b8),xk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xw(e,t,{allOwnKeys:n=!1}={}){let r,o;if(null!=e)if("object"!=typeof e&&(e=[e]),b7(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{let o;if(xt(e))return;let a=n?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;for(r=0;r<s;r++)o=a[r],t.call(null,e[o],o,e)}}function xS(e,t){let n;if(xt(e))return null;t=t.toLowerCase();let r=Object.keys(e),o=r.length;for(;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}let x_="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,xE=e=>!xe(e)&&e!==x_;function xP(){let{caseless:e,skipUndefined:t}=xE(this)&&this||{},n={},r=(r,o)=>{let a=e&&xS(n,o)||o;xc(n[a])&&xc(r)?n[a]=xP(n[a],r):xc(r)?n[a]=xP({},r):b7(r)?n[a]=r.slice():t&&xe(r)||(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&xw(arguments[e],r);return n}let xI=(e,t,n,{allOwnKeys:r}={})=>(xw(t,(t,r)=>{n&&xi(t)?e[r]=b0(t,n):e[r]=t},{allOwnKeys:r}),e),xT=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),xD=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xA=(e,t,n,r)=>{let o,a,s,l={};if(t=t||{},null==e)return t;do{for(a=(o=Object.getOwnPropertyNames(e)).length;a-- >0;)s=o[a],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=!1!==n&&b5(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},xR=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},xN=e=>{if(!e)return null;if(b7(e))return e;let t=e.length;if(!xa(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},xB=(l="u">typeof Uint8Array&&b5(Uint8Array),e=>l&&e instanceof l),xM=(e,t)=>{let n,r=(e&&e[b4]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},xF=(e,t)=>{let n,r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},xO=b8("HTMLFormElement"),xL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),xH=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xz=b8("RegExp"),xV=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};xw(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)},xU=e=>{xV(e,(t,n)=>{if(xi(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(xi(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xj=(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(b7(e)?e:String(e).split(t)),n},xW=()=>{},xq=(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t;function xG(e){return!!(e&&xi(e.append)&&"FormData"===e[b3]&&e[b4])}let xK=e=>{let t=Array(10),n=(e,r)=>{if(xs(e)){if(t.indexOf(e)>=0)return;if(xt(e))return e;if(!("toJSON"in e)){t[r]=e;let o=b7(e)?[]:{};return xw(e,(e,t)=>{let a=n(e,r+1);xe(a)||(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},xX=b8("AsyncFunction"),xY=e=>e&&(xs(e)||xi(e))&&xi(e.then)&&xi(e.catch),x$=(d="function"==typeof setImmediate,p=xi(x_.postMessage),d?setImmediate:p?(f=`axios@${Math.random()}`,h=[],x_.addEventListener("message",({source:e,data:t})=>{e===x_&&t===f&&h.length&&h.shift()()},!1),e=>{h.push(e),x_.postMessage(f,"*")}):e=>setTimeout(e)),xQ="u">typeof queueMicrotask?queueMicrotask.bind(x_):void 0!==b1&&b1.nextTick||x$,xJ=e=>null!=e&&xi(e[b4]),xZ={isArray:b7,isArrayBuffer:xn,isBuffer:xt,isFormData:xg,isArrayBufferView:xr,isString:xo,isNumber:xa,isBoolean:xl,isObject:xs,isPlainObject:xc,isEmptyObject:xu,isReadableStream:xy,isRequest:xb,isResponse:xx,isHeaders:xC,isUndefined:xe,isDate:xd,isFile:xp,isBlob:xf,isRegExp:xz,isFunction:xi,isStream:xm,isURLSearchParams:xv,isTypedArray:xB,isFileList:xh,forEach:xw,merge:xP,extend:xI,trim:xk,stripBOM:xT,inherits:xD,toFlatObject:xA,kindOf:b6,kindOfTest:b8,endsWith:xR,toArray:xN,forEachEntry:xM,matchAll:xF,isHTMLForm:xO,hasOwnProperty:xH,hasOwnProp:xH,reduceDescriptors:xV,freezeMethods:xU,toObjectSet:xj,toCamelCase:xL,noop:xW,toFiniteNumber:xq,findKey:xS,global:x_,isContextDefined:xE,isSpecCompliantForm:xG,toJSONObject:xK,isAsyncFn:xX,isThenable:xY,setImmediate:x$,asap:xQ,isIterable:xJ};function x0(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}xZ.inherits(x0,Error,{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:xZ.toJSONObject(this.config),code:this.code,status:this.status}}});let x1=x0.prototype,x2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{x2[e]={value:e}}),Object.defineProperties(x0,x2),Object.defineProperty(x1,"isAxiosError",{value:!0}),x0.from=(e,t,n,r,o,a)=>{let s=Object.create(x1);xZ.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);let l=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return x0.call(s,l,c,n,r,o),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};let x5=x0,x4=null;var x3=n(1048).Buffer;function x6(e){return xZ.isPlainObject(e)||xZ.isArray(e)}function x8(e){return xZ.endsWith(e,"[]")?e.slice(0,-2):e}function x9(e,t,n){return e?e.concat(t).map(function(e,t){return e=x8(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}function x7(e){return xZ.isArray(e)&&!e.some(x6)}let Ce=xZ.toFlatObject(xZ,{},null,function(e){return/^is[A-Z]/.test(e)}),Ct=function(e,t,n){if(!xZ.isObject(e))throw TypeError("target must be an object");t=t||new(x4||FormData);let r=(n=xZ.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!xZ.isUndefined(t[e])})).metaTokens,o=n.visitor||u,a=n.dots,s=n.indexes,l=(n.Blob||"u">typeof Blob&&Blob)&&xZ.isSpecCompliantForm(t);if(!xZ.isFunction(o))throw TypeError("visitor must be a function");function c(e){if(null===e)return"";if(xZ.isDate(e))return e.toISOString();if(xZ.isBoolean(e))return e.toString();if(!l&&xZ.isBlob(e))throw new x5("Blob is not supported. Use a Buffer instead.");return xZ.isArrayBuffer(e)||xZ.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):x3.from(e):e}function u(e,n,o){let l=e;if(e&&!o&&"object"==typeof e){if(xZ.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(xZ.isArray(e)&&x7(e)||(xZ.isFileList(e)||xZ.endsWith(n,"[]"))&&(l=xZ.toArray(e)))return n=x8(n),l.forEach(function(e,r){xZ.isUndefined(e)||null===e||t.append(!0===s?x9([n],r,a):null===s?n:n+"[]",c(e))}),!1}return!!x6(e)||(t.append(x9(o,n,a),c(e)),!1)}let d=[],p=Object.assign(Ce,{defaultVisitor:u,convertValue:c,isVisitable:x6});function f(e,n){if(!xZ.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),xZ.forEach(e,function(e,r){!0===(!(xZ.isUndefined(e)||null===e)&&o.call(t,e,xZ.isString(r)?r.trim():r,n,p))&&f(e,n?n.concat(r):[r])}),d.pop()}}if(!xZ.isObject(e))throw TypeError("data must be an object");return f(e),t};function Cn(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Cr(e,t){this._pairs=[],e&&Ct(e,this,t)}let Co=Cr.prototype;Co.append=function(e,t){this._pairs.push([e,t])},Co.toString=function(e){let t=e?function(t){return e.call(this,t,Cn)}:Cn;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let Ci=Cr;function Ca(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Cs(e,t,n){let r;if(!t)return e;let o=n&&n.encode||Ca;xZ.isFunction(n)&&(n={serialize:n});let a=n&&n.serialize;if(r=a?a(t,n):xZ.isURLSearchParams(t)?t.toString():new Ci(t,n).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}class Cl{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){xZ.forEach(this.handlers,function(t){null!==t&&e(t)})}}let Cc=Cl,Cu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cd={isBrowser:!0,classes:{URLSearchParams:"u">typeof URLSearchParams?URLSearchParams:Ci,FormData:"u">typeof FormData?FormData:null,Blob:"u">typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Cp="u">typeof window&&"u">typeof document,Cf="object"==typeof navigator&&navigator||void 0,Ch=Cp&&(!Cf||0>["ReactNative","NativeScript","NS"].indexOf(Cf.product)),Cm="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Cg=Cp&&window.location.href||"http://localhost",Cv={...eV,...Cd};function Cy(e,t){return Ct(e,new Cv.classes.URLSearchParams,{visitor:function(e,t,n,r){return Cv.isNode&&xZ.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Cb(e){return xZ.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function Cx(e){let t,n,r={},o=Object.keys(e),a=o.length;for(t=0;t<a;t++)r[n=o[t]]=e[n];return r}let CC=function(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=e.length;return(a=!a&&xZ.isArray(r)?r.length:a,l)?xZ.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n:(r[a]&&xZ.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&xZ.isArray(r[a])&&(r[a]=Cx(r[a]))),!s}if(xZ.isFormData(e)&&xZ.isFunction(e.entries)){let n={};return xZ.forEachEntry(e,(e,r)=>{t(Cb(e),r,n,0)}),n}return null};function Ck(e,t,n){if(xZ.isString(e))try{return(t||JSON.parse)(e),xZ.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}let Cw={transitional:Cu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,a=xZ.isObject(e);if(a&&xZ.isHTMLForm(e)&&(e=new FormData(e)),xZ.isFormData(e))return o?JSON.stringify(CC(e)):e;if(xZ.isArrayBuffer(e)||xZ.isBuffer(e)||xZ.isStream(e)||xZ.isFile(e)||xZ.isBlob(e)||xZ.isReadableStream(e))return e;if(xZ.isArrayBufferView(e))return e.buffer;if(xZ.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cy(e,this.formSerializer).toString();if((n=xZ.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return Ct(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),Ck(e)):e}],transformResponse:[function(e){let t=this.transitional||Cw.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(xZ.isResponse(e)||xZ.isReadableStream(e))return e;if(e&&xZ.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw x5.from(e,x5.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cv.classes.FormData,Blob:Cv.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xZ.forEach(["delete","get","head","post","put","patch"],e=>{Cw.headers[e]={}});let CS=Cw,C_=xZ.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CE=e=>{let t,n,r,o={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&C_[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)}),o},CP=Symbol("internals");function CI(e){return e&&String(e).trim().toLowerCase()}function CT(e){return!1===e||null==e?e:xZ.isArray(e)?e.map(CT):String(e)}function CD(e){let t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}let CA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function CR(e,t,n,r,o){if(xZ.isFunction(r))return r.call(this,t,n);if(o&&(t=n),xZ.isString(t)){if(xZ.isString(r))return -1!==t.indexOf(r);if(xZ.isRegExp(r))return r.test(t)}}function CN(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function CB(e,t){let n=xZ.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}class CM{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function o(e,t,n){let o=CI(t);if(!o)throw Error("header name must be a non-empty string");let a=xZ.findKey(r,o);a&&void 0!==r[a]&&!0!==n&&(void 0!==n||!1===r[a])||(r[a||t]=CT(e))}let a=(e,t)=>xZ.forEach(e,(e,n)=>o(e,n,t));if(xZ.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(xZ.isString(e)&&(e=e.trim())&&!CA(e))a(CE(e),t);else if(xZ.isObject(e)&&xZ.isIterable(e)){let n={},r,o;for(let t of e){if(!xZ.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[o=t[0]]=(r=n[o])?xZ.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=CI(e)){let n=xZ.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return CD(e);if(xZ.isFunction(t))return t.call(this,e,n);if(xZ.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=CI(e)){let n=xZ.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||CR(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function o(e){if(e=CI(e)){let o=xZ.findKey(n,e);o&&(!t||CR(n,n[o],o,t))&&(delete n[o],r=!0)}}return xZ.isArray(e)?e.forEach(o):o(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let o=t[n];(!e||CR(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){let t=this,n={};return xZ.forEach(this,(r,o)=>{let a=xZ.findKey(n,o);if(a){t[a]=CT(r),delete t[o];return}let s=e?CN(o):String(o).trim();s!==o&&delete t[o],t[s]=CT(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return xZ.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&xZ.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[CP]=this[CP]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=CI(e);t[r]||(CB(n,e),t[r]=!0)}return xZ.isArray(e)?e.forEach(r):r(e),this}}CM.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xZ.reduceDescriptors(CM.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),xZ.freezeMethods(CM);let CF=CM;function CO(e,t){let n=this||CS,r=t||n,o=CF.from(r.headers),a=r.data;return xZ.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function CL(e){return!!(e&&e.__CANCEL__)}function CH(e,t,n){x5.call(this,null==e?"canceled":e,x5.ERR_CANCELED,t,n),this.name="CanceledError"}xZ.inherits(CH,x5,{__CANCEL__:!0});let Cz=CH;function CV(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new x5("Request failed with status code "+n.status,[x5.ERR_BAD_REQUEST,x5.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function CU(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}let Cj=function(e,t){let n,r=Array(e=e||10),o=Array(e),a=0,s=0;return t=void 0!==t?t:1e3,function(l){let c=Date.now(),u=o[s];n||(n=c),r[a]=l,o[a]=c;let d=s,p=0;for(;d!==a;)p+=r[d++],d%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),c-n<t)return;let f=u&&c-u;return f?Math.round(1e3*p/f):void 0}},CW=function(e,t){let n,r,o=0,a=1e3/t,s=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{let t=Date.now(),l=t-o;l>=a?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},a-l)))},()=>n&&s(n)]},Cq=(e,t,n=3)=>{let r=0,o=Cj(50,250);return CW(n=>{let a=n.loaded,s=n.lengthComputable?n.total:void 0,l=a-r,c=o(l),u=a<=s;r=a,e({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},CG=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},CK=e=>(...t)=>xZ.asap(()=>e(...t)),CX=Cv.hasStandardBrowserEnv?(c=new URL(Cv.origin),u=Cv.navigator&&/(msie|trident)/i.test(Cv.navigator.userAgent),e=>(e=new URL(e,Cv.origin),c.protocol===e.protocol&&c.host===e.host&&(u||c.port===e.port))):()=>!0,CY=Cv.hasStandardBrowserEnv?{write(e,t,n,r,o,a){let s=[e+"="+encodeURIComponent(t)];xZ.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),xZ.isString(r)&&s.push("path="+r),xZ.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function C$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function CQ(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function CJ(e,t,n){let r=!C$(t);return e&&(r||!1==n)?CQ(e,t):t}let CZ=e=>e instanceof CF?{...e}:e;function C0(e,t){t=t||{};let n={};function r(e,t,n,r){return xZ.isPlainObject(e)&&xZ.isPlainObject(t)?xZ.merge.call({caseless:r},e,t):xZ.isPlainObject(t)?xZ.merge({},t):xZ.isArray(t)?t.slice():t}function o(e,t,n,o){return xZ.isUndefined(t)?xZ.isUndefined(e)?void 0:r(void 0,e,n,o):r(e,t,n,o)}function a(e,t){if(!xZ.isUndefined(t))return r(void 0,t)}function s(e,t){return xZ.isUndefined(t)?xZ.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(e,t,n)=>o(CZ(e),CZ(t),n,!0)};return xZ.forEach(Object.keys({...e,...t}),function(r){let a=c[r]||o,s=a(e[r],t[r],r);xZ.isUndefined(s)&&a!==l||(n[r]=s)}),n}let C1=e=>{let t=C0({},e),{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=CF.from(s),t.url=Cs(CJ(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),xZ.isFormData(n)){if(Cv.hasStandardBrowserEnv||Cv.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(xZ.isFunction(n.getHeaders)){let e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&s.set(e,n)})}}if(Cv.hasStandardBrowserEnv&&(r&&xZ.isFunction(r)&&(r=r(t)),r||!1!==r&&CX(t.url))){let e=o&&a&&CY.read(a);e&&s.set(o,e)}return t},C2="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,o,a,s,l,c=C1(e),u=c.data,d=CF.from(c.headers).normalize(),{responseType:p,onUploadProgress:f,onDownloadProgress:h}=c;function m(){s&&s(),l&&l(),c.cancelToken&&c.cancelToken.unsubscribe(r),c.signal&&c.signal.removeEventListener("abort",r)}let g=new XMLHttpRequest;function v(){if(!g)return;let r=CF.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());CV(function(e){t(e),m()},function(e){n(e),m()},{data:p&&"text"!==p&&"json"!==p?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(c.method.toUpperCase(),c.url,!0),g.timeout=c.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new x5("Request aborted",x5.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){let r=new x5(t&&t.message?t.message:"Network Error",x5.ERR_NETWORK,e,g);r.event=t||null,n(r),g=null},g.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",r=c.transitional||Cu;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new x5(t,r.clarifyTimeoutError?x5.ETIMEDOUT:x5.ECONNABORTED,e,g)),g=null},void 0===u&&d.setContentType(null),"setRequestHeader"in g&&xZ.forEach(d.toJSON(),function(e,t){g.setRequestHeader(t,e)}),xZ.isUndefined(c.withCredentials)||(g.withCredentials=!!c.withCredentials),p&&"json"!==p&&(g.responseType=c.responseType),h&&([a,l]=Cq(h,!0),g.addEventListener("progress",a)),f&&g.upload&&([o,s]=Cq(f),g.upload.addEventListener("progress",o),g.upload.addEventListener("loadend",s)),(c.cancelToken||c.signal)&&(r=t=>{g&&(n(!t||t.type?new Cz(null,e,g):t),g.abort(),g=null)},c.cancelToken&&c.cancelToken.subscribe(r),c.signal&&(c.signal.aborted?r():c.signal.addEventListener("abort",r)));let y=CU(c.url);y&&-1===Cv.protocols.indexOf(y)?n(new x5("Unsupported protocol "+y+":",x5.ERR_BAD_REQUEST,e)):g.send(u||null)})},C5=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,o=function(e){if(!n){n=!0,s();let t=e instanceof Error?e:this.reason;r.abort(t instanceof x5?t:new Cz(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,o(new x5(`timeout ${t} of ms exceeded`,x5.ETIMEDOUT))},t),s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));let{signal:l}=r;return l.unsubscribe=()=>xZ.asap(s),l}},C4=function*(e,t){let n,r=e.byteLength;if(!t||r<t)return void(yield e);let o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},C3=async function*(e,t){for await(let n of C6(e))yield*C4(n,t)},C6=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},C8=(e,t,n,r)=>{let o,a=C3(e,t),s=0,l=e=>{!o&&(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await a.next();if(t){l(),e.close();return}let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel:e=>(l(e),a.return())},{highWaterMark:2})},C9=65536,{isFunction:C7}=xZ,ke=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(xZ.global),{ReadableStream:kt,TextEncoder:kn}=xZ.global,kr=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ko=e=>{let t,{fetch:n,Request:r,Response:o}=Object.assign({},ke,e),a=C7(n),s=C7(r),l=C7(o);if(!a)return!1;let c=a&&C7(kt),u=a&&("function"==typeof kn?(t=new kn,e=>t.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer())),d=s&&c&&kr(()=>{let e=!1,t=new r(Cv.origin,{body:new kt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),p=l&&c&&kr(()=>xZ.isReadableStream(new o("").body)),f={stream:p&&(e=>e.body)};a&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{f[e]||(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new x5(`Response type '${e}' is not supported`,x5.ERR_NOT_SUPPORT,n)})})})();let h=async e=>{if(null==e)return 0;if(xZ.isBlob(e))return e.size;if(xZ.isSpecCompliantForm(e)){let t=new r(Cv.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return xZ.isArrayBufferView(e)||xZ.isArrayBuffer(e)?e.byteLength:(xZ.isURLSearchParams(e)&&(e+=""),xZ.isString(e))?(await u(e)).byteLength:void 0},m=async(e,t)=>{let n=xZ.toFiniteNumber(e.getContentLength());return null==n?h(t):n};return async e=>{let t,{url:a,method:l,data:c,signal:u,cancelToken:h,timeout:g,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:C="same-origin",fetchOptions:k}=C1(e);b=b?(b+"").toLowerCase():"text";let w=C5([u,h&&h.toAbortSignal()],g),S=null,_=w&&w.unsubscribe&&(()=>{w.unsubscribe()});try{if(y&&d&&"get"!==l&&"head"!==l&&0!==(t=await m(x,c))){let e,n=new r(a,{method:"POST",body:c,duplex:"half"});if(xZ.isFormData(c)&&(e=n.headers.get("content-type"))&&x.setContentType(e),n.body){let[e,r]=CG(t,Cq(CK(y)));c=C8(n.body,C9,e,r)}}xZ.isString(C)||(C=C?"include":"omit");let u=s&&"credentials"in r.prototype,h={...k,signal:w,method:l.toUpperCase(),headers:x.normalize().toJSON(),body:c,duplex:"half",credentials:u?C:void 0};S=s&&new r(a,h);let g=await (s?n(S,k):n(a,h)),E=p&&("stream"===b||"response"===b);if(p&&(v||E&&_)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=g[t]});let t=xZ.toFiniteNumber(g.headers.get("content-length")),[n,r]=v&&CG(t,Cq(CK(v),!0))||[];g=new o(C8(g.body,C9,n,()=>{r&&r(),_&&_()}),e)}b=b||"text";let P=await f[xZ.findKey(f,b)||"text"](g,e);return!E&&_&&_(),await new Promise((t,n)=>{CV(t,n,{data:P,headers:CF.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:S})})}catch(t){if(_&&_(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new x5("Network Error",x5.ERR_NETWORK,e,S),{cause:t.cause||t});throw x5.from(t,t&&t.code,e,S)}}},ki=new Map,ka=e=>{let t=xZ.merge.call({skipUndefined:!0},ke,e?e.env:null),{fetch:n,Request:r,Response:o}=t,a=[r,o,n],s=a.length,l,c,u=ki;for(;s--;)l=a[s],void 0===(c=u.get(l))&&u.set(l,c=s?new Map:ko(t)),u=c;return c};ka();let ks={http:x4,xhr:C2,fetch:{get:ka}};xZ.forEach(ks,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let kl=e=>`- ${e}`,kc=e=>xZ.isFunction(e)||null===e||!1===e,ku=(e,t)=>{let n,r,{length:o}=e=xZ.isArray(e)?e:[e],a={};for(let s=0;s<o;s++){let o;if(r=n=e[s],!kc(n)&&void 0===(r=ks[(o=String(n)).toLowerCase()]))throw new x5(`Unknown adapter '${o}'`);if(r&&(xZ.isFunction(r)||(r=r.get(t))))break;a[o||"#"+s]=r}if(!r){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new x5("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(kl).join("\n"):" "+kl(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function kd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cz(null,e)}function kp(e){return kd(e),e.headers=CF.from(e.headers),e.data=CO.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ku(e.adapter||CS.adapter,e)(e).then(function(t){return kd(e),t.data=CO.call(e,e.transformResponse,t),t.headers=CF.from(t.headers),t},function(t){return!CL(t)&&(kd(e),t&&t.response&&(t.response.data=CO.call(e,e.transformResponse,t.response),t.response.headers=CF.from(t.response.headers))),Promise.reject(t)})}let kf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kf[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let kh={};kf.transitional=function(e,t,n){function r(e,t){return"[Axios v1.12.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new x5(r(o," has been removed"+(t?" in "+t:"")),x5.ERR_DEPRECATED);return t&&!kh[o]&&(kh[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},kf.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let km=function(e,t,n){if("object"!=typeof e)throw new x5("options must be an object",x5.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),o=r.length;for(;o-- >0;){let a=r[o],s=t[a];if(s){let t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new x5("option "+a+" must be "+n,x5.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new x5("Unknown option "+a,x5.ERR_BAD_OPTION)}},kg=kf;class kv{constructor(e){this.defaults=e||{},this.interceptors={request:new Cc,response:new Cc}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:a,headers:s}=t=C0(this.defaults,t);void 0!==o&&km(o,{silentJSONParsing:kg.transitional(kg.boolean),forcedJSONParsing:kg.transitional(kg.boolean),clarifyTimeoutError:kg.transitional(kg.boolean)},!1),null!=a&&(xZ.isFunction(a)?t.paramsSerializer={serialize:a}:km(a,{encode:kg.function,serialize:kg.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),km(t,{baseUrl:kg.spelling("baseURL"),withXsrfToken:kg.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=s&&xZ.merge(s.common,s[t.method]);s&&xZ.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=CF.concat(l,s);let c=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,c.unshift(e.fulfilled,e.rejected))});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let p=0;if(!u){let e=[kp.bind(this),void 0];for(e.unshift(...c),e.push(...d),r=e.length,n=Promise.resolve(t);p<r;)n=n.then(e[p++],e[p++]);return n}r=c.length;let f=t;for(p=0;p<r;){let e=c[p++],t=c[p++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=kp.call(this,f)}catch(e){return Promise.reject(e)}for(p=0,r=d.length;p<r;)n=n.then(d[p++],d[p++]);return n}getUri(e){return Cs(CJ((e=C0(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}xZ.forEach(["delete","get","head","options"],function(e){kv.prototype[e]=function(t,n){return this.request(C0(n||{},{method:e,url:t,data:(n||{}).data}))}}),xZ.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(C0(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}kv.prototype[e]=t(),kv.prototype[e+"Form"]=t(!0)});let ky=kv;class kb{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Cz(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new kb(function(t){e=t}),cancel:e}}}let kx=kb;function kC(e){return function(t){return e.apply(null,t)}}function kk(e){return xZ.isObject(e)&&!0===e.isAxiosError}let kw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kw).forEach(([e,t])=>{kw[t]=e});let kS=kw;function k_(e){let t=new ky(e),n=b0(ky.prototype.request,t);return xZ.extend(n,ky.prototype,t,{allOwnKeys:!0}),xZ.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return k_(C0(e,t))},n}let kE=k_(CS);kE.Axios=ky,kE.CanceledError=Cz,kE.CancelToken=kx,kE.isCancel=CL,kE.VERSION="1.12.0",kE.toFormData=Ct,kE.AxiosError=x5,kE.Cancel=kE.CanceledError,kE.all=function(e){return Promise.all(e)},kE.spread=kC,kE.isAxiosError=kk,kE.mergeConfig=C0,kE.AxiosHeaders=CF,kE.formToJSON=e=>CC(xZ.isHTMLForm(e)?new FormData(e):e),kE.getAdapter=ku,kE.HttpStatusCode=kS,kE.default=kE;let kP=kE;n(94e3);var kI=3e4,kT="MS-CV",kD=200,kA=500,kR=2,kN=3,kB="DirectClientCall";function kM(e,t,n,r){return void 0===n&&(n={}),kU(e,n,t,r),kW("GET",e,t,n,kP.get(e,n),r)}function kF(e,t,n,r,o){return void 0===r&&(r={}),kU(e,r,t,o),kW("POST",e,t,r,kP.post(e,n,r),o)}function kO(e,t,n,r,o){return void 0===r&&(r={}),kU(e,r,t,o),kW("PUT",e,t,r,kP.put(e,n,r),o)}function kL(e,t,n,r){return void 0===n&&(n={}),kU(e,n,t,r),kW("DELETE",e,t,n,kP.delete(e,n),r)}function kH(e,t,n){return void 0===n&&(n={}),kz(e,kB,t,n)}function kz(e,t,n,r){var o={operationName:n.operation,requestUri:t,partnerName:n.partnerName,customData:n.customData},a=performance.now();return e.then(function(e){return r.errorField&&e[r.errorField]?Promise.reject(e[r.errorField]):(o.httpStatusCode=kD,Promise.resolve(e))}).catch(function(e){return o.httpStatusCode=kA,o.errorMessage=e.message?e.message.toString():e.toString(),Promise.reject(e)}).finally(function(){var e;o.latency=performance.now()-a,o.timeout=null!=(e=r.timeout)?e:kI,y5(o)})}function kV(){for(var e="__RequestVerificationToken",t=document.getElementsByTagName("input"),n=0;n<t.length;n++){var r=t[n];if("hidden"===r.type&&r.name===e)return{name:e,value:r.value}}return null}function kU(e,t,n,r){var o,a,s,l;if(void 0===t.timeout&&(t.timeout=kI),t.headers||(t.headers={}),(null==r?void 0:r.addXRequestedWithHeader)!==!1&&(t.headers["X-Requested-With"]="XMLHttpRequest"),yZ(),(null==r?void 0:r.addCVHeader)!==!1&&(t.headers[kT]=yJ()),(null==r?void 0:r.withCredentials)&&(t.withCredentials=!0),!kj(e)){var c=kV();c&&(t.headers[c.name]=c.value)}if((null==n?void 0:n.operation)&&(null==(a=null==(o=window.BradburyTelemetry)?void 0:o.cc)||a.setProperty("root-operation",null!=(s=null==n?void 0:n.operation)?s:"")),null==(l=window.BradburyTelemetry)?void 0:l.cc){var u=window.BradburyTelemetry.cc.serialize();u&&(null==r?void 0:r.addCorrelationContextHeader)!==!1&&(t.headers["Correlation-Context"]=u)}}function kj(e){try{t=location.href}catch(e){var t,n=document.createElement("a");n.href="",t=n.href}var r=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,o=r.exec(t.toLowerCase()),a=r.exec(e?e.toLowerCase():"");return!!(a&&o&&(a[1]!==o[1]||a[kR]!==o[kR]||(a[kN]||("http:"===a[1]?"80":"443"))!==(o[kN]||("http:"===o[1]?"80":"443"))))}var kW=function(e,t,n,r,o,a){var s,l={operationName:n.operation,requestUri:t,httpMethod:e,partnerName:n.partnerName,customData:n.customData,overrideCv:null==(s=r.headers)?void 0:s[kT]},c=performance.now();return o.then(function(e){return l.httpStatusCode=e.status,l.contentType=e.headers["content-type"],l.responseSize=e.headers["content-length"],e}).catch(function(e){var t,n,r,o,a,s=NaN,c="";return e.code&&(s=parseInt(e.code,10)||NaN,c=String(e.code)||""),("ECONNABORTED"===c||"ERR_NETWORK"===e.code||"ERR_CANCELED"===e.code)&&(l.customData=(0,ej.__assign)((0,ej.__assign)({},l.customData),{axiosError:e})),l.serviceErrorCode=s,l.errorCode=c,l.errorMessage=e.message,e.response&&e.response.status&&(l.httpStatusCode=e.response.status),e.response&&e.response.headers&&(l.contentType=e.response.headers["content-type"],l.responseSize=e.response.headers["content-length"]),(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.error)&&(l.responseDataError=null==(o=null==(r=e.response)?void 0:r.data)?void 0:o.error),e.config&&(e.config.headers={},e.config.data={}),e.response&&(e.response.headers={}),(null==(a=e.response)?void 0:a.config)&&(e.response.config.headers={},e.response.config.data={}),Promise.reject(e)}).finally(function(){var e;l.latency=performance.now()-c,l.timeout=null!=(e=r.timeout)?e:kI,y5(l,null==a?void 0:a.overrideRequestQosData)})},kq=n(60338),kG={top:-2,height:1,position:"absolute",overflow:"hidden"},kK=function(e){var t=e.area,n=e.view,r=e.manualPageView,o=void 0!==r&&r,a=e.requiredComponents,s=e.withoutQosTracking,l=void 0!==s&&s,c=e.shareParentOperations,u=void 0!==c&&c,d=e.scrollToTopOnNav,p=void 0===d||d,f=e.routeHeader,h=e.children,m=(0,ej.__rest)(e,["area","view","manualPageView","requiredComponents","withoutQosTracking","shareParentOperations","scrollToTopOnNav","routeHeader","children"]);return v3().createElement(kq.Route,(0,ej.__assign)({},m,{key:"".concat(t,".").concat(n)}),f?v3().createElement("div",{style:kG,"aria-live":"assertive"},f):null,v3().createElement(kQ,{area:t,view:n,manualPageView:o}),p?v3().createElement(k$,null):null,l?v3().createElement(kY,null,h):v3().createElement(kX,{area:t,view:n,manualPageView:o,requiredComponents:a,shareParentOperations:u},h))},kX=function(e){var t=e.area,n=e.view,r=e.manualPageView,o=void 0!==r&&r,a=e.shareParentOperations,s=void 0!==a&&a,l=e.requiredComponents,c=e.children;return v3().createElement(bL,{area:t,view:n,manualPageView:o,requiredComponents:l||[],autoTrackComponents:!l},v3().createElement(bJ,{shareParentOperations:s},c))},kY=function(e){var t=e.children;return v3().createElement(v3().Fragment,null,t)},k$=function(){var e=document.getElementById(yu.Q);return(0,v4.useLayoutEffect)(function(){e?e.scrollTop=0:window.scrollTo(0,0)},[]),null},kQ=function(e){var t=e.area,n=e.view,r=e.manualPageView;return(0,v4.useEffect)(function(){r?to().setSpaPageId("".concat(t,".").concat(n)):y6(t,n)},[]),v3().createElement(v3().Fragment,null)},kJ=63072e6,kZ=[],k0=[],k1=!1;function k2(e,t,n){if(!e)throw Error("CookieManager.getCookie - name argument should not be false-y");if(k8(),t&&!k3(n))return"";for(var r=e.toLowerCase(),o=document.cookie.split(";"),a=0,s=o;a<s.length;a++){var l=s[a].split("=");if(decodeURIComponent(l[0].trim().toLowerCase())===r)return l.shift(),decodeURIComponent(l.join("="))}return""}function k5(e){if(!e)throw Error("CookieManager.setCookie - cookie argument should not be false-y");if(k8(),e.requiresConsent&&!k3(e.category))return kZ=(0,ej.__spreadArray)((0,ej.__spreadArray)([],kZ,!0),[e],!1),!1;var t="";if(e.expiresOn){if(e.expiresOn.getTime()-Date.now()>kJ)throw Error("CookieManager.setCookie - cookies must expire within two years");var n=e.expiresOn.toUTCString();t=";expires=".concat(n)}var r="";e.domain&&("."!==e.domain[0]&&(e.domain=".".concat(e.domain)),r=";domain=".concat(e.domain)),e.path||(e.path="/");var o="";e.isSecure&&(o=";secure");var a=encodeURIComponent(e.name),s=encodeURIComponent(e.value),l="".concat(a,"=").concat(s).concat(t).concat(r,";path=").concat(e.path).concat(o);return document.cookie=l,e.requiresConsent&&(k0=(0,ej.__spreadArray)((0,ej.__spreadArray)([],k0,!0),[e],!1)),!0}function k4(e,t){if(!e)throw Error("CookieManager.expireCookie - name argument should not e false-y");var n=new Date;n.setDate(n.getDate()-1),k5({name:e,value:"",requiresConsent:!1,expiresOn:n,domain:t})}function k3(e){return!window.siteConsent||window.siteConsent.getConsentFor(null!=e?e:WcpConsent.consentCategories.Required)}function k6(e){var t=[],n=[];kZ.forEach(function(r){r.category===WcpConsent.consentCategories.Analytics&&e.Analytics||r.category===WcpConsent.consentCategories.Advertising&&e.Advertising||r.category===WcpConsent.consentCategories.SocialMedia&&e.SocialMedia?t.push(r):n.push(r)}),kZ=(0,ej.__spreadArray)([],n,!0);var r=[],o=[];k0.forEach(function(t){(t.category!==WcpConsent.consentCategories.Analytics||e.Analytics)&&(t.category!==WcpConsent.consentCategories.Advertising||e.Advertising)&&(t.category!==WcpConsent.consentCategories.SocialMedia||e.SocialMedia)?o.push(t):r.push(t)}),k0=(0,ej.__spreadArray)([],o,!0),t.forEach(function(e){return k5(e)}),r.forEach(function(e){k4(e.name)}),kZ=(0,ej.__spreadArray)((0,ej.__spreadArray)([],kZ,!0),r,!0),window.clarity&&e.Analytics&&window.clarity("consent")}function k8(){!k1&&window.siteConsent&&(window.siteConsent.onConsentChanged(k6),k1=!0)}function k9(e,t){void 0===t&&(t=!0);var n,r,o=e.toLowerCase(),a=(null==(n=window.MeePortal)?void 0:n.g_userFeatures)||[];r=we(o)?o.substr(0,o.length-k7.length):"".concat(o,"cf");var s=a.filter(function(e){return e.split(":")[0]===o||e.split(":")[0]===r});return s.length>0&&t&&y9(s.join("|")),a.some(function(e){return e.split(":")[0]===o})}var k7="cf",we=function(e){return e.substr(-k7.length)===k7},wt=function(){var e=k2("inflights",!1),t=k2("outflights",!1),n=e?e.split(",").map(function(e){return e.toLowerCase()}):[],r=t?t.split(",").map(function(e){return e.toLowerCase()}):[];return e||t?{inflights:n,outflights:r}:void 0},wn="GTwouiLogging",wr="ViewportProvider",wo="lowerMediaImageHeight",wi=(0,ej.__spreadArray)((0,ej.__spreadArray)([],bZ.twoUIV9FlightsReadyForConsumption,!0),bZ.twoUIV9FlightsInDevelopment,!0),wa=function(e){var t=e.areaBiId,n=e.children,r=k9(wn)?bt:void 0,o=k9(wr),a={areaBiId:t||"areaUndefined"},s=[wo],l=o?[wr]:[],c=[];wi.forEach(function(e){k9(e)&&c.push(e)});var u=(0,ej.__spreadArray)((0,ej.__spreadArray)((0,ej.__spreadArray)([],s,!0),l,!0),c,!0);return v3().createElement(bZ.TwoUITelemetryProvider,{twoUITelemetryIds:a,logComponentMountEvent:r,getCv:yJ,reportClick:v0,reportHttpUrl:y7,reportComponentValidationErrorEvent:be,externalEntities:{operationEntities:{operationDispatchContext:bG,ExternalProgressView:b$},componentQosContext:bV},twoUIFlights:u},n)},ws=function(){return{}},wl=function(e,t){if(!e)throw Error("inMemoryCache: null promiseCache sent to removePromiseCacheEntry");e[t]=null},wc=function(e,t,n,r){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var o,a,s,l;return(0,ej.__generator)(this,function(c){switch(c.label){case 0:if(!e)throw Error("inMemoryCache: null promiseCache sent to fromInMemoryCache");if(!(o=e[t]))return[3,3];if(!(null==r?void 0:r.reload))return[3,2];return[4,a=n()];case 1:c.sent(),e[t]=a,o=a,c.label=2;case 2:return[2,o];case 3:s=n(),e[t]=s,c.label=4;case 4:return c.trys.push([4,6,,7]),[4,s];case 5:return c.sent(),[3,7];case 6:throw l=c.sent(),e[t]=null,l;case 7:return[2,s]}})})},wu=401,wd=ws(),wp="get",wf="del";!function(e){e.Unauthorized="401",e.Conflict="409",e.PreconditionFailed="412",e.TooManyRequests="429",e.UnavailableForLegalReasons="451",e.BadRequest="400"}(N||(N={}));var wh=function(e){return function(t){var n=e7;return e.forEach(function(e){t.httpStatusCode===e&&(t.httpStatusCode="200",t.isSuccess=!0,n=te)}),n}};function wm(e,t,n,r){return wg("get",kM,e,t,n,{},r)}function wg(e,t,n,r,o,a,s){var l;return(0,ej.__awaiter)(this,void 0,void 0,function(){var c,u;return(0,ej.__generator)(this,function(d){switch(d.label){case 0:if(d.trys.push([0,5,,6]),c=void 0,e!==wp&&e!==wf)return[3,2];return[4,t(n,{operation:r},o||{},s||{})];case 1:return c=d.sent(),[3,4];case 2:return[4,t(n,{operation:r},a,o||{},s||{})];case 3:c=d.sent(),d.label=4;case 4:return[2,c.data];case 5:return(null==(l=(u=d.sent()).response)?void 0:l.status)===wu&&window.location.reload(),[2,Promise.reject(u)];case 6:return[2]}})})}var wv="/api/hip/challenge",wy=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:if("audio"!==e)return[3,2];return[4,kM("".concat(wv,"/audio"),{operation:"GLOBAL.HIP.GETCHALLENGE.AUDIO"})];case 1:case 3:return[2,t.sent().data];case 2:return[4,kM("".concat(wv,"/visual"),{operation:"GLOBAL.HIP.GETCHALLENGE.VISUAL"})]}})})},wb=function(e){var t=(0,v4.useState)("visual"),n=t[0],r=t[1],o=(0,v4.useState)({challengeSource:"",context:{}}),a=o[0],s=o[1],l=bK(),c=function(t){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var n,o,a;return(0,ej.__generator)(this,function(c){switch(c.label){case 0:if(c.trys.push([0,5,,6]),l({name:e.operationName,status:"first-load"}),!e.getHipChallenge)return[3,2];return[4,e.getHipChallenge(t)];case 1:return o=c.sent(),[3,4];case 2:return[4,wy(t)];case 3:o=c.sent(),c.label=4;case 4:return n=o,r(t),s(n),l({name:e.operationName,status:"finished"}),[3,6];case 5:return a=c.sent(),l({name:e.operationName,status:"update-failed",error:a}),[3,6];case 6:return[2]}})})};return(0,v4.useEffect)(function(){c(n)},[]),{mode:n,challenge:a,getNewChallenge:c}},wx="getRecurringDeletes",wC=(wh([N.Unauthorized,N.TooManyRequests]),function(e){var t;return e&&e.split("_").length>1&&(t=e.split("_")[1]),t}),wk=function(){invalidateCache(wx)},ww=(wh([N.Unauthorized]),wh([N.Unauthorized,N.TooManyRequests,N.BadRequest]),[N.Conflict]);wh([N.Unauthorized]),wh(ww),wh([N.Unauthorized,N.PreconditionFailed]),wh([N.Unauthorized]),!function(e){e.Unknown="unknown",e.Declined="declined",e.Accepted="accepted"}(B||(B={}));var wS=16,w_=404,wE="profile",wP="".concat(wE,".engaged"),wI="".concat(wE,".unengaged"),wT="mock-scenarios",wD=function(e){var t=k2(wT,!1).split(",").filter(function(t){return -1!==t.indexOf(e)});return t.length>0?t[0]:""},wA="84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa",wR=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var t,n,r;return(0,ej.__generator)(this,function(o){switch(o.label){case 0:switch(wD(wE)){case wP:return[2,{pictureStatus:"hasPicture",url:"https://account.microsoft.com/Resources/Images/testProfilePicture.png"}];case wI:return[2,{pictureStatus:"noProfilePicture",url:""}]}o.label=1;case 1:if(o.trys.push([1,3,,4]),!e.userId||"0"===e.userId)return[2,{pictureStatus:"noUserId",url:""}];return[4,kM("https://graph.microsoft.com/v1.0/users/PUID:".concat(e.userId.padStart(wS,"0"),"@").concat(wA,"/photo/$value"),{operation:"GLOBAL.MSGRAPH.GET.USER.PROFILEIMAGE"},{responseType:"blob",headers:{Authorization:"Bearer ".concat(e.accessToken)}})];case 2:return t=o.sent(),[2,{pictureStatus:"hasPicture",url:URL.createObjectURL(t.data)}];case 3:if((n=o.sent()).isAxiosError&&(null==(r=n.response)?void 0:r.status)===w_)return[2,{pictureStatus:"noProfilePicture",url:""}];throw n;case 4:return[2]}})})},wN="/auth/acquire-onbehalf-of-token",wB="GLOBAL.OAUTH.GETTOKENS",wM="/auth/verify-policy",wF="GLOBAL.OAUTH.VERIFYPOLICY",wO=ws(),wL=function(e,t){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(n){switch(n.label){case 0:return[4,kM(wM,{operation:wF},{params:{policy:e,redirectUri:t}})];case 1:return[2,n.sent().data]}})})},wH=function(e,t){return void 0===e&&(e="MSComServiceMBISSL"),void 0===t&&(t=!1),(0,ej.__awaiter)(void 0,void 0,void 0,function(){var n;return(0,ej.__generator)(this,function(r){return n=wV(e),t&&wl(wO,n),[2,wc(wO,n,function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kM(wN,{operation:wB},{params:{scopes:e}})];case 1:return[2,t.sent().data]}})})})]})})},wz=function(e){wl(wO,e)},wV=function(e){return"token_".concat(e)},wU=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var t,n;return(0,ej.__generator)(this,function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),[4,wH(e)];case 1:if(!(n=wj(t=r.sent())))return wz(wV(e)),[2,Promise.reject({message:wq(t)})];if(!(n.expiration&&!wW(n.expiration)))return[3,3];return[4,wH(e,!0)];case 2:if(!(n=wj(t=r.sent())))return[2,Promise.reject({message:"No access token after reload"})];r.label=3;case 3:return[2,Promise.resolve(n)];case 4:return[2,Promise.reject(r.sent())];case 5:return[2]}})})},wj=function(e){if(e&&e.length>0){var t=e[0].token,n=e[0].tokenExpiry;if(e[0].isSuccess&&t&&t.length>0&&n)return{token:t,expiration:n,scope:e[0].tokenName,type:"bearer"}}},wW=function(e){return new Date(e).valueOf()>new Date().valueOf()},wq=function(e){return e&&e.length>0&&!e[0].isSuccess&&e[0].errorMessage?e[0].errorMessage:"No access token"},wG=(ws(),wh([N.Unauthorized])),wK="/privacy/api",wX="PRIVACY",wY="MSAAPI",w$=wh([N.Unauthorized]),wQ=function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,wm("".concat(wK,"/msa/user-proofs"),"".concat(wX,".").concat(wY,".GETUSERPROOFS"),{},{overrideRequestQosData:w$})];case 1:return[2,e.sent()]}})})},wJ=["quotaLimitReached.AlreadyHasManageability","concurrentWritesConflict","notAllowed.EntityChangeConflict","forbidden","QuotaLimitReached.GroupMemberSizeExceedLimit","invitationDoesNotExist","quotaLimitReached.InviteLimitExceeded","quotaLimitReached.JoinLimitExceeded","itemAlreadyExists.MemberAlreadyInGroup","itemNotFound.MemberNotInGroup","networkError","notAllowed.NonAdminMemberNotAllowedToAddMember","sharingActionNotAllowed","sharingSlotsExhausted","subscriptionReachedMaxUsers","NotAllowed.UserAccountDoesNotExist","userAlreadyGuestInSubscription","userAlreadyHasSubscription","userErrorAccountClosed","userErrorAlreadyInvited","userErrorCantShareAlreadyOnSubscription","userErrorTrialShareLimit","userIsNotSharedWithSubscription","userThrottled","xboxUserErrorAdminShareThrottled","xboxUserErrorCantShareNoSpace","xboxUserErrorCountryMismatch","xboxUserErrorGuestNotInFlight","xboxUserErrorGuestShareThrottled","xboxUserErrorInvitationExpired","xboxUserErrorSubscriptionNotActive","licenseNotFound","previousRequestInProgress","orderLocked","badRequest","insufficientFunds","invalidPaymentInstrument","processorDeclined","transactionNotAllowed","expiredPaymentInstrument","amountLimitExceeded","authCaptureInProgress","riskRejected","partnerForbiddenProcessorDeclined","partnerForbiddenInsufficientFunds","unauthorized","maxStackingDurationExceeded","invalid_grant"],wZ=6e4,w0=ws(),w1="/services/api/",w2="MeePortal",w5=401,w4="178",w3="179",w6='"1"',w8='"2"',w9="os-sku",w7="os-mode";function Se(e,t,n,r,o){return(0,ej.__awaiter)(this,void 0,void 0,function(){return(0,ej.__generator)(this,function(a){switch(a.label){case 0:return e&&wl(w0,t),[4,wc(w0,t,function(){return St(n,r,o)})];case 1:return[2,a.sent()]}})})}function St(e,t,n,r){return So(function(e,t,n,r){return kM(e,t,n,r)},e,t,n,r)}function Sn(e,t,n,r,o){return Sr(kO,e,t,n,r,o)}function Sr(e,t,n,r,o,a){var s,l,c,u,d,p;return(0,ej.__awaiter)(this,void 0,void 0,function(){var f,h,m,g;return(0,ej.__generator)(this,function(v){switch(v.label){case 0:f=w1+n,v.label=1;case 1:return v.trys.push([1,3,,4]),[4,e(f,{partnerName:w2,operation:t},r,Sa(o||{}),a)];case 2:return[2,v.sent().data];case 3:return g=null==(c=null==(l=null==(s=(m=h=v.sent()).response)?void 0:s.data)?void 0:l.data)?void 0:c.signInLink,(null==(u=m.response)?void 0:u.status)===w5&&g&&(window.location.href=g),(null==(p=null==(d=m.response)?void 0:d.data)?void 0:p.error)||(m.response=m.response||{},m.response.data=m.response.data||{},m.response.data.error=Si(m)),[2,Promise.reject(h)];case 4:return[2]}})})}function So(e,t,n,r,o){var a,s,l,c,u,d;return(0,ej.__awaiter)(this,void 0,void 0,function(){var p,f,h,m;return(0,ej.__generator)(this,function(g){switch(g.label){case 0:p=w1+n,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e(p,{partnerName:w2,operation:t},Sa(r||{}),o)];case 2:return[2,g.sent().data];case 3:return m=null==(l=null==(s=null==(a=(h=f=g.sent()).response)?void 0:a.data)?void 0:s.data)?void 0:l.signInLink,(null==(c=h.response)?void 0:c.status)===w5&&m&&(window.location.href=m),(null==(d=null==(u=h.response)?void 0:u.data)?void 0:d.error)||(h.response=h.response||{},h.response.data=h.response.data||{},h.response.data.error=Si(h)),[2,Promise.reject(f)];case 4:return[2]}})})}function Si(e){var t,n,r,o="";switch(null!=(r=null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.message)?r:e.message){case"timeout of 90000ms exceeded":o="90sTimeout";break;case"timeout of 60000ms exceeded":o="60sTimeout";break;case"timeout of 30000ms exceeded":o="30sTimeout";break;case"Network Error":o="networkError"}return o}function Sa(e){var t;return e.headers=e.headers||{},e.headers["X-TzOffset"]=-new Date().getTimezoneOffset(),e.headers["X-IsCloudOS"]=Ss(),e.timeout=null!=(t=e.timeout)?t:wZ,e}function Ss(){try{if(window.external&&"getHostEnvironmentValue"in window.external){var e=window.external,t=[w4,w3],n=[w6,w8];try{var r=e.getHostEnvironmentValue(w9);if(r&&t.some(function(e){return -1!==r.indexOf(e)}))return!0}catch(e){return!1}try{var o=e.getHostEnvironmentValue(w7);if(o&&n.some(function(e){return -1!==o.indexOf(e)}))return!0}catch(e){}}}catch(e){}return!1}function Sl(){return(0,ej.__awaiter)(this,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,St("GLOBAL.SERVICES.SERVICESALERTS","services-alerts")];case 1:return[2,e.sent()]}})})}var Sc=function(e){var t,n=null!=(t=e.errorCode)?t:"";return knownAxiosUserErrors.indexOf(n)>=0?(e.isSuccess=!0,OverrideRequestQosDataResult.Decided):OverrideRequestQosDataResult.Undecided};function Su(e){return(0,ej.__awaiter)(this,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,Sn("GLOBAL.SERVICES.CREATERECURRENCE","create-recurrence",{productId:e.productId,skuId:e.skuId,availabilityId:e.availabilityId,paymentInstrumentId:e.paymentInstrumentId,backupPaymentInstrumentId:e.backupPaymentInstrumentId,market:e.market,locale:e.locale,soldToAddressId:e.soldToAddressId,soldToAddressRequired:e.soldToAddressRequired,paymentSessionId:e.paymentSessionId,challengeCompletedStatus:e.challengeCompletedStatus,consentRecord:e.consentRecord,campaignId:e.campaignId,flowId:e.flowId,referrerInfo:e.referrerInfo})];case 1:return[2,t.sent()]}})})}var Sd="svcfwi",Sp="1",Sf="getSubscriptions",Sh=null;function Sm(e){e.forEach(function(e){if(e.productRenewal){var t,n=e.productRenewal;n&&(n.immediatePrice||(n.immediatePrice=Sh),n.futurePriceV2||(n.futurePriceV2=Sh))}var r=null==(t=e.renewPaths)?void 0:t.paths;r&&r.forEach(function(e){var t=e;t.immediatePrice||(t.immediatePrice=Sh),t.futurePriceV2||(t.futurePriceV2=Sh)})})}function Sg(e){return __awaiter(this,void 0,void 0,function(){var t,n,r,o;return __generator(this,function(a){switch(a.label){case 0:return t={forceReload:!!(null==e?void 0:e.forceReload),excludeLegacySubscriptions:!!(null==e?void 0:e.excludeLegacySubscriptions),includeCmsData:!!(null==e?void 0:e.includeCmsData)},n=!1,(r=window.sessionStorage.getItem(Sd))&&(n=r===Sp),[4,getWithCache(!!t.forceReload,Sf,"GLOBAL.SERVICES.GETSUBSCRIPTIONS","subscriptions",{params:{excludeWindowsStoreInstallOptions:n,excludeLegacySubscriptions:t.excludeLegacySubscriptions,isReact:!0,includeCmsData:!1}})];case 1:return(o=a.sent()).active.forEach(function(e){e.allPossibleAddressIds=o.allPossibleAddressIds}),Sm(o.active),Sm(o.canceled),[2,o]}})})}function Sv(e,t,n){var r,o=e.active.concat(e.commercial).concat(e.canceled);return n&&(r=o.find(function(e){return e.id.toUpperCase()===n.toUpperCase()})),t&&(r=o.find(function(e){var n,r;return(null==(n=e.modelId)?void 0:n.toUpperCase())===t.toUpperCase()||(null==(r=e.productId)?void 0:r.toUpperCase())===t.toUpperCase()})),r||null}var Sy={Unknown:0,ActiveAutoRenewOn:1,InDunning:8};function Sb(e){return void 0===e&&(e=!0),(0,ej.__awaiter)(this,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,Se(e,"xbox-personalized","GLOBAL.SERVICES.PERSONALIZEDXBOXDETAILS","get-personalized-xbox-details")];case 1:return[2,t.sent()]}})})}function Sx(e,t,n){var r;return void 0===n&&(n=!1),(0,ej.__awaiter)(this,void 0,void 0,function(){return(0,ej.__generator)(this,function(o){switch(o.label){case 0:return[4,Se(n,t,"GLOBAL.SERVICES.GAMEINFOV1DUNNING","get-game-info-v1",{params:{surfaceNames:e.surfaces,gamingPlatforms:e.gamingPlatforms,picksForYouCategory:e.pfuCategory,subscriptionNames:e.subscriptionNames,minimumGamesPerSurface:1,brandId:null!=(r=e.brandId)?r:t}})];case 1:return[2,o.sent()]}})})}function SC(e){var t,n,r;return(0,ej.__awaiter)(this,void 0,void 0,function(){return(0,ej.__generator)(this,function(o){switch(o.label){case 0:return[4,St("GLOBAL.SERVICES.GAMEINFOV2","get-game-info-v2",{params:{surfaceNames:e.surfaces,subscriptionContext:e.subscriptionContext,minimumGamesPerSurface:null!=(t=e.minimumGamesPerSurface)?t:1,scenarioContext:null!=(n=e.scenarioContext)?n:"NA",brandId:null!=(r=e.brandId)?r:""}})];case 1:return[2,o.sent()]}})})}ws(),ws();var Sk="renew",Sw="services.iris.mostpopulargames.v3",SS="services.iris.recentlyaddedgames.v3",S_="services.iris.comingsoongames.v3",SE="services.iris.dunningmostpopulargames",SP="services.iris.dunningrecentlyaddedgames",SI="services.iris.dunningcomingsoongames",ST="services.iris.dunningpicksforyougames",SD=1,SA=2,SR=3,SN=4,SB=5;function SM(e){var t,n;return(0,ej.__awaiter)(this,void 0,void 0,function(){return(0,ej.__generator)(this,function(r){switch(r.label){case 0:return[4,Sn("GLOBAL.SERVICES.SWITCHRENEWALPLAN","switch-renewal-plan",{serviceId:e.service.id,serviceType:e.service.type,skuId:e.skuId,paymentInstrumentId:null!=(t=e.paymentInstrumentId)?t:null==(n=e.service.payment)?void 0:n.id,availabilityId:e.availabilityId,paymentSessionId:e.paymentSessionId,challengeCompletedStatus:e.challengeCompletedStatus,conversionPathTypes:e.conversionPathTypes,soldToAddressId:e.soldToAddressId,backupPaymentInstrumentId:e.backupPaymentInstrumentId,locale:e.service.locale,isTrial:e.service.isTrial,market:e.service.market,consentRecord:e.consentRecord,campaignId:e.campaignId,referrerInfo:e.referrer,productId:e.service.productId,flowId:e.flowId})];case 1:return[2,r.sent()]}})})}ws();var SF="/home/api",SO="/usq",SL="GLOBAL.HOME.UNIFIEDSTORAGEQUOTA",SH=ws(),Sz=401,SV=["400","403","404"],SU=function(e){return SV.includes(e.httpStatusCode)?(e.isSuccess=!0,te):e7},Sj=function(e){return void 0===e&&(e=!1),(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){return[2,wc(SH,"getUnifiedStorageQuotaInfo",function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,kM("".concat(SF).concat(SO,"/usq-details"),{operation:"".concat(SL,".GETUNIFIEDSTORAGEQUOTAINFO")},{},{overrideRequestQosData:SU})];case 1:return[2,e.sent().data]}})})},{reload:e}).catch(function(e){var t,n,r,o=e,a=null==(n=null==(t=o.response)?void 0:t.data)?void 0:n.signInLink;return(null==(r=o.response)?void 0:r.status)===Sz&&(a?window.location.href=a:window.location.reload()),Promise.reject(e)})]})})},SW=(ws(),ws(),ws(),ws(),ws(),function(e){var t=(0,v4.useState)({}),n=t[0],r=t[1],o=(0,v4.useState)("InitState"),a=o[0],s=o[1],l=bK(),c=function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var t,n,o;return(0,ej.__generator)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),e&&l({name:e,status:"first-load"}),[4,Sj()];case 1:return r(a.sent()),s("HaveResult"),e&&l({name:e,status:"finished"}),[3,3];case 2:return(n=null==(o=(t=a.sent()).response)?void 0:o.status)&&SV.includes(n.toString())?(s("NoResult"),e&&l({name:e,status:"finished"})):(s("Failed"),e&&l({name:e,status:"failed",error:t})),[3,3];case 3:return[2]}})})};return(0,v4.useEffect)(function(){c()},[]),{usq:n,usqState:a}});function Sq(e,t,n){var r=4,o=3,a=Math.log(e)/Math.log(1024),s=a>=4?n:t;return(e/Math.pow(1024,a>=4?r:o)).toFixed(2).concat(" ",s)}ws();var SG="/profile",SK="GLOBAL.HOME.PROFILE",SX=ws(),SY=function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){return[2,wc(SX,"getPersonalInfo",function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,kM("".concat(SF).concat(SG,"/personal-info"),{operation:"".concat(SK,".GETPERSONALINFO")})];case 1:return[2,e.sent().data]}})})})]})})},S$=null,SQ=(ws(),ws()),SJ=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var t;return(0,ej.__generator)(this,function(n){return t="/v1/accountstate",[2,wc(SQ,"getAccountState",function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(n){switch(n.label){case 0:return[4,kM("".concat(e.gsaServiceConfig.endpoint).concat(t),{operation:"GLOBAL.ACCOUNTSTATE.GET.ACCOUNTSTATE",customData:e.reportingData},{responseType:"json",headers:{Authorization:"Bearer ".concat(e.accessToken)}})];case 1:return[2,n.sent().data]}})})})]})})},SZ="/devices/api",S0=401;function S1(e,t,n,r,o){var a,s;return __awaiter(this,void 0,void 0,function(){var l,c;return __generator(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),l=null!=(a=null==r?void 0:r.baseURL)?a:SZ,[4,e(n,{operation:t},__assign(__assign({},r),{baseURL:l}),o)];case 1:return[2,u.sent().data];case 2:return(null==(s=(c=u.sent()).response)?void 0:s.status)===S0&&window.location.reload(),[2,Promise.reject(c)];case 3:return[2]}})})}ws();var S2=function(e){var t=e.operationName,n=e.userIds,r=bK(),o=(0,v4.useState)({}),a=o[0],s=o[1],l=function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var e,o,a,l,c,u,d,p,f,h,m,g,v,y;return(0,ej.__generator)(this,function(b){switch(b.label){case 0:return b.trys.push([0,3,,4]),r({name:t,status:"first-load"}),[4,wU("MSGraphUserRead")];case 1:for(c=0,e=b.sent(),o=[],a={},l=function(t){o.push(wR({accessToken:e.token,userId:t}).then(function(e){a[t]=e}))},u=n;c<u.length;c++)l(u[c]);return[4,Promise.all(o)];case 2:return b.sent(),s(a),r({name:t,status:"finished"}),[3,4];case 3:return p=d=b.sent(),h=null==(v=null==(g=null==(m=(f=d).response)?void 0:m.data)?void 0:g.data)?void 0:v.signInLink,(null==(y=f.response)?void 0:y.status)===S0?(r({name:t,status:"finished"}),h&&(window.location.href=h)):r({name:t,status:"update-failed",error:p}),[3,4];case 4:return[2]}})})};return(0,v4.useEffect)(function(){l()},[n]),{profilePictureData:a,reloadImages:l}},S5=(ws(),ws(),ws(),ws());function S4(e,t,n){var r;return(0,ej.__awaiter)(this,void 0,void 0,function(){var o=this;return(0,ej.__generator)(this,function(a){switch(a.label){case 0:return[4,wc(S5,"getSurvey-".concat(e,"-").concat(t),function(){return(0,ej.__awaiter)(o,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){return[2,kM("/survey/api/surveyDefinition",{partnerName:"MeePortal",operation:"Survey.GetSurveyDefinition"},{params:{surveyItemId:e}}).then(function(e){var t,r=null==(t=null==e?void 0:e.data)?void 0:t.content;return n&&r&&n(r),e})]})})})];case 1:return[2,null==(r=a.sent().data)?void 0:r.content]}})})}ws();var S3=ws(),S6=function(e,t,n){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(r){return[2,wc(S3,"getInterceptCoreDefinition-".concat(e,"-").concat(t,"-").concat(n),function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var n;return(0,ej.__generator)(this,function(r){switch(r.label){case 0:return[4,kM("/survey/api/intercept-core-definition",{partnerName:"MeePortal",operation:"Survey.GetCustomSurveyDefinition"},{params:{interceptCmsArea:e,interceptCmsItemId:t}})];case 1:return[2,null==(n=r.sent().data)?void 0:n.content]}})})})]})})},S8=401,S9=ws();!function(e){e.Unauthorized="401",e.Forbidden="403",e.NotFound="404",e.Conflict="409",e.PreconditionFailed="412",e.TooManyRequests="429",e.UnavailableForLegalReasons="451"}(M||(M={}));var S7=function(e){return function(t){var n=e7;return e.forEach(function(e){t.httpStatusCode===e&&(t.httpStatusCode="200",t.isSuccess=!0,n=te)}),n}},_e="get",_t="del";function _n(e,t,n,r){return _r("get",kM,e,t,n,{},r)}function _r(e,t,n,r,o,a,s){var l;return(0,ej.__awaiter)(this,void 0,void 0,function(){var c,u;return(0,ej.__generator)(this,function(d){switch(d.label){case 0:if(d.trys.push([0,5,,6]),c=void 0,e!==_e&&e!==_t)return[3,2];return[4,t(n,{operation:r},o||{},s||{})];case 1:return c=d.sent(),[3,4];case 2:return[4,t(n,{operation:r},a,o||{},s||{})];case 3:c=d.sent(),d.label=4;case 4:return[2,c.data];case 5:return(null==(l=(u=d.sent()).response)?void 0:l.status)===S8&&window.location.reload(),[2,Promise.reject(u)];case 6:return[2]}})})}var _o="/security/api/account-state",_i=ws(),_a=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){return[2,wc(_i,"getAccountState",function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){return[2,_n("".concat(_o,"/account-state"),"GLOBAL.SECURITY.ACCOUNTSTATE.GETACCOUNTSTATE",{},{overrideRequestQosData:S7([M.Unauthorized])})]})})})]})})},_s=(ws(),ws(),ws(),ws(),ws(),"/profile/api"),_l="noParams",_c="noParamsFromRefreshed",_u="noParamsFromBackForward",_d="noParamsFromCookiesDisabled",_p="missingId",_f="alreadyUnsubscribed",_h="topicNotFound",_m="invalidParams",_g="preconditionFailed",_v="invalidInput",_y="expiredKey90Days",_b="expiredKey120Days",_x="expiredKey180Days",_C=90,_k=120,_w=180,_S="v1/communications",__="GLOBAL.PROFILE.COMMUNICATIONS",_E=(ws(),function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var t,n,r,o;return(0,ej.__generator)(this,function(a){switch(a.label){case 0:return t={CTID:e.CTID,ECID:e.ECID,K:e.K,CMID:e.CMID||"",TID:e.TID||"",PID:e.PID||"",D:e.D||"",MK:e.MK||""},n="".concat(_s,"/").concat(_S,"/encrypted/get-permissions"),r=0,e.D&&(o=parseInt(e.D,10))&&(r=yR(yA(o))),[4,kF(n,{operation:"".concat(__,".GETTOPICS")},t,{},{overrideRequestQosData:r>_C?_P:void 0})];case 1:return[2,a.sent().data]}})})}),_P=function(e){return"412"===e.httpStatusCode?(e.httpStatusCode="200",e.isSuccess=!0,te):e7},_I=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kF("".concat(_s,"/").concat(_S,"/encrypted/set-permissions"),{operation:"".concat(__,".UPDATETOPICS")},e)];case 1:return t.sent(),[2]}})})},_T=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kF("".concat(_s,"/").concat(_S,"/encrypted/subscribe-multiple"),{operation:"".concat(__,".SUBSCRIBE")},e)];case 1:return[2,t.sent().data]}})})},_D="v1/contact-info",_A="GLOBAL.PROFILE.CONTACTINFO",_R=ws(),_N=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var t;return(0,ej.__generator)(this,function(n){return[2,wc(_R,"getTopicInfo",function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,kM("".concat(_s,"/").concat(_D),{operation:"".concat(_A,".GETCONTACTINFO")},{params:{includeEmails:!!t.includeEmails,includePhones:!!t.includePhones,includeAddresses:!!t.includeAddresses,includePermissionLink:!!t.includePermissionLink}})];case 1:return[2,e.sent().data]}})})},{reload:!!(t=e||{refreshCache:!1,includeEmails:!0,includePhones:!0,includeAddresses:!0,includePermissionLink:!0}).refreshCache})]})})},_B=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kL("".concat(_s,"/").concat(_D,"/email"),{operation:"".concat(_A,".DELETEEMAIL")},{data:{email:e}})];case 1:return t.sent(),[2]}})})},_M=function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,kL("".concat(_s,"/").concat(_D,"/mmx-phone"),{operation:"".concat(_A,".DELETEMMXPHONE")})];case 1:return e.sent(),[2]}})})},_F="v1/personal-info",_O="GLOBAL.PROFILE.PERSONALINFO",_L=ws(),_H="pictureFile",_z="image.jpg",_V=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){return[2,wc(_L,"getPersonalInfo",function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,kM("".concat(_s,"/").concat(_F),{operation:"".concat(_O,".GETPERSONALINFO")})];case 1:return[2,e.sent().data]}})})},{reload:!!(null==e?void 0:e.refreshCache)})]})})},_U=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kO("".concat(_s,"/").concat(_F,"/name"),{operation:"".concat(_O,".UPDATENAME")},e)];case 1:return[2,t.sent().data]}})})},_j=function(e){return new Promise(function(t,n){if("msToBlob"in e){var r=e.msToBlob();if(r)return void t(r);n()}else e.toBlob(function(e){e?t(e):n()})})},_W=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var t,n;return(0,ej.__generator)(this,function(r){switch(r.label){case 0:return[4,_j(e)];case 1:return t=r.sent(),(n=new FormData).append(_H,t,_z),n.append("x","0"),n.append("y","0"),n.append("height","".concat(e.height)),n.append("width","".concat(e.width)),[4,kF("".concat(_s,"/").concat(_F,"/profile-picture"),{operation:"".concat(_O,".UPLOADPROFILEPICTURE")},n)];case 2:return r.sent(),[2]}})})},_q=function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,kL("".concat(_s,"/").concat(_F,"/profile-picture"),{operation:"".concat(_O,".DELETEPROFILEPICTURE")})];case 1:return e.sent(),[2]}})})},_G=function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,kM("".concat(_s,"/").concat(_F,"/msa-profile"),{operation:"".concat(_O,".GETMSAPROFILE")})];case 1:return[2,e.sent().data]}})})},_K=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kF("".concat(_s,"/").concat(_F,"/msa-profile"),{operation:"".concat(_O,".UPDATEMSAPROFILE")},e,{},{overrideRequestQosData:_X})];case 1:return t.sent(),[2]}})})},_X=function(e){return"401"===e.httpStatusCode?(e.isSuccess=!0,e.httpStatusCode="200",te):e7},_Y={minorAccessRestriction:"minorAccessRestriction",ticketExpired:"ticketExpired",newBirthdateMinorException:"newBirthdateMinorException",hasConsentRelationshipException:"hasConsentRelationshipException"},_$="v1/lang-settings",_Q="GLOBAL.PROFILE.LANGSETTINGS",_J=function(e,t){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(n){switch(n.label){case 0:return[4,kO("".concat(_s,"/").concat(_$,"/msa-display-language"),{operation:"".concat(_Q,".SETMSADISPLAYLANGUAGE")},{localeIsoCode:e,sru:t})];case 1:return[2,n.sent().data]}})})},_Z=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kO("".concat(_s,"/").concat(_$,"/msa-translation-language"),{operation:"".concat(_Q,".SETMSATRANSLATIONLANGUAGE")},{translationLanguage:e})];case 1:return t.sent(),[2]}})})},_0=function(e,t){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(n){switch(n.label){case 0:return[4,kO("".concat(_s,"/").concat(_$,"/msa-translation-settings"),{operation:"".concat(_Q,".SETMSATRANSLATIONSETTINGS")},{translationBehavior:e,translationLanguage:t})];case 1:return n.sent(),[2]}})})},_1=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kO("".concat(_s,"/").concat(_$,"/msa-speech-language"),{operation:"".concat(_Q,".SETMSASPEECHLANGUAGE")},{speechLanguage:e})];case 1:return t.sent(),[2]}})})},_2=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kO("".concat(_s,"/").concat(_$,"/msa-preferred-languages"),{operation:"".concat(_Q,".SETMSAPREFERREDLANGUAGES")},{preferredLanguages:e})];case 1:return t.sent(),[2]}})})},_5=function(e,t,n){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(r){switch(r.label){case 0:return[4,kO("".concat(_s,"/").concat(_$,"/msa-regional-format"),{operation:"".concat(_Q,".SETMSAREGIONALFORMATS")},{regionalFormat:e,dateFormat:t,timeFormat:n})];case 1:return r.sent(),[2]}})})},_4="/msa",_3="GLOBAL.PROFILE.MSA",_6=ws(),_8=function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){return[2,wc(_6,"getCredentialInfo",function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,kM("".concat(_s).concat(_4,"/credential-info"),{operation:"".concat(_3,".GETCREDENTIALINFO")})];case 1:return[2,e.sent().data]}})})})]})})},_9=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kF("".concat(_s,"/v1/permissions-link-request"),{operation:"GLOBAL.PROFILE.PERMISSIONSLINKREQUEST"},{email:e})];case 1:return t.sent(),[2]}})})},_7="".concat(_s,"/v1/edit-name"),Ee="GLOBAL.PROFILE.EDITNAMEAPI",Et=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kM("".concat(_7,"/initial-data"),{operation:"".concat(Ee,".GETINITIALDATA")},{params:{ru:e}})];case 1:return[2,t.sent().data]}})})},En=function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,kM("".concat(_7,"/name"),{operation:"".concat(Ee,".GETNAME")})];case 1:return[2,e.sent().data]}})})},Er=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(t){switch(t.label){case 0:return[4,kO("".concat(_7,"/name"),{operation:"".concat(Ee,".EDITNAME")},e)];case 1:return[2,t.sent().data]}})})},Eo=new Set(["ERR_NETWORK","ECONNABORTED"]);function Ei(e,t){var n=[];for(var r in t)t.hasOwnProperty(r)&&n.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(t[r])));var o=e.indexOf("?")>=0,a="&";return e+(o?a:"?")+n.join(a)}var Ea=null,Es=null,El="/CmsContent/fatalError",Ec=401,Eu=ws();function Ed(e){return e.requestTimeout&&e.latencyMs&&e.latencyMs>=e.requestTimeout}var Ep=function(e){var t,n=null!=(t=e.errorCode)?t:"";return Eo.has(n)&&!Ed(e)?(e.isSuccess=!0,te):e7},Ef=function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){return[2,wc(Eu,"getFatalErrorContent",function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var e,t;return(0,ej.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,kM(El,{operation:"GetFatalErrorPageContent"},{},{overrideRequestQosData:Ep})];case 1:return[2,n.sent().data];case 2:return(null==(t=(e=n.sent()).response)?void 0:t.status)===Ec&&window.location.reload(),[2,Promise.reject(e)];case 3:return[2]}})})})]})})};ws();var Eh=function(e){var t=e.errorMessage,n=e.errorComponent,r=(0,v4.useState)({title:"",summary:""}),o=r[0],a=r[1];yr(function(){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){return(0,ej.__generator)(this,function(e){switch(e.label){case 0:return[4,Ef()];case 1:return a(e.sent()),[2]}})})});try{yj({error:"ErrorComponentWrapper_unhandledException",data:{errorMessage:t||"unhandled exception"}})}catch(e){}return n({content:o,cv:yJ()})},Em=function(e,t){var n,r=window.BradburyTelemetry.bi.getCurrentPageId()||"unknown.unknown",o=t?t.componentStack:e.stack;y3({location:null==(n=window.BradburyTelemetry)?void 0:n.bi.getCurrentLocation(),message:e?e.message:"",pageId:r,script:"",userAgent:window.navigator.userAgent||"",ext:{Area:r.split(".")[0],Stack:JSON.stringify(o),isReact:!0,devServer:null!==v5("awa-devserver")}})},Eg=(0,v4.createContext)(null),Ev=function(e){var t=e.children,n=e.errorComponent,r=(0,v4.useState)(!1),o=r[0],a=r[1],s=(0,v4.useState)(""),l=s[0],c=s[1],u=function(e){return(0,ej.__awaiter)(void 0,void 0,void 0,function(){var t;return(0,ej.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return console.error(t=n.sent()),a(!0),c(t.message),Em(t),[3,3];case 3:return[2,Promise.resolve(null)]}})})};return o?v3().createElement(Eh,{errorMessage:l,errorComponent:n}):v3().createElement(Eg.Provider,{value:{protectedOperation:u}},t)},Ey=function(e){function t(t){var n=e.call(this,t)||this;return n.resetErrorState=function(){n.setState({hasError:!1})},n.state={hasError:!1},n}return(0,ej.__extends)(t,e),t.getDerivedStateFromError=function(e){return{hasError:!0,errorMessage:null==e?void 0:e.message}},t.prototype.componentDidMount=function(){window.addEventListener("popstate",this.resetErrorState)},t.prototype.componentDidCatch=function(e,t){Em(e,t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("popstate",this.resetErrorState)},t.prototype.render=function(){return this.state.hasError?v3().createElement(Eh,{errorMessage:this.state.errorMessage,errorComponent:this.props.errorComponent}):v3().createElement(Ev,{errorComponent:this.props.errorComponent},this.props.children)},t}(v3().Component),Eb=n(48728),Ex=function(e){return"".concat(e,"/Acw.Read")},EC=function(e,t){return(EC=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])})(e,t)};function Ek(e,t){function n(){this.constructor=e}EC(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ew=function(){return(Ew=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ES(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function E_(e,t){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return c([e,t])}}function c(a){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function EE(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var a=arguments[t],s=0,l=a.length;s<l;s++,o++)r[o]=a[s];return r}var EP="msal.js.common",EI="msal",ET="https://login.microsoftonline.com/common/",ED="common",EA="adfs",ER="dstsv2",EN="https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",EB=".ciamlogin.com",EM=".onmicrosoft.com",EF="|",EO="offline_access",EL="code",EH="S256",Ez="application/x-www-form-urlencoded;charset=utf-8",EV="",EU="N/A",Ej="/",EW="http://169.254.169.254/metadata/instance/compute/location",Eq="2020-06-01",EG=2e3,EK="TryAutoDetect",EX="login.microsoft.com",EY="allowestsrnonmsi=true",E$=["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],EQ="token",EJ="id_token",EZ=240,E0="invalid_instance",E1=["openid","profile",EO],E2=EE(E1,["email"]);!function(e){e.CONTENT_TYPE="Content-Type",e.RETRY_AFTER="Retry-After",e.CCS_HEADER="X-AnchorMailbox",e.WWWAuthenticate="WWW-Authenticate",e.AuthenticationInfo="Authentication-Info",e.X_MS_REQUEST_ID="x-ms-request-id",e.X_MS_HTTP_VERSION="x-ms-httpver"}(F||(F={})),function(e){e.ID_TOKEN="idtoken",e.CLIENT_INFO="client.info",e.ADAL_ID_TOKEN="adal.idtoken",e.ERROR="error",e.ERROR_DESC="error.description",e.ACTIVE_ACCOUNT="active-account",e.ACTIVE_ACCOUNT_FILTERS="active-account-filters"}(O||(O={})),function(e){e.COMMON="common",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers"}(L||(L={})),function(e){e.CLIENT_ID="client_id",e.REDIRECT_URI="redirect_uri",e.RESPONSE_TYPE="response_type",e.RESPONSE_MODE="response_mode",e.GRANT_TYPE="grant_type",e.CLAIMS="claims",e.SCOPE="scope",e.ERROR="error",e.ERROR_DESCRIPTION="error_description",e.ACCESS_TOKEN="access_token",e.ID_TOKEN="id_token",e.REFRESH_TOKEN="refresh_token",e.EXPIRES_IN="expires_in",e.STATE="state",e.NONCE="nonce",e.PROMPT="prompt",e.SESSION_STATE="session_state",e.CLIENT_INFO="client_info",e.CODE="code",e.CODE_CHALLENGE="code_challenge",e.CODE_CHALLENGE_METHOD="code_challenge_method",e.CODE_VERIFIER="code_verifier",e.CLIENT_REQUEST_ID="client-request-id",e.X_CLIENT_SKU="x-client-SKU",e.X_CLIENT_VER="x-client-VER",e.X_CLIENT_OS="x-client-OS",e.X_CLIENT_CPU="x-client-CPU",e.X_CLIENT_CURR_TELEM="x-client-current-telemetry",e.X_CLIENT_LAST_TELEM="x-client-last-telemetry",e.X_MS_LIB_CAPABILITY="x-ms-lib-capability",e.X_APP_NAME="x-app-name",e.X_APP_VER="x-app-ver",e.POST_LOGOUT_URI="post_logout_redirect_uri",e.ID_TOKEN_HINT="id_token_hint",e.DEVICE_CODE="device_code",e.CLIENT_SECRET="client_secret",e.CLIENT_ASSERTION="client_assertion",e.CLIENT_ASSERTION_TYPE="client_assertion_type",e.TOKEN_TYPE="token_type",e.REQ_CNF="req_cnf",e.OBO_ASSERTION="assertion",e.REQUESTED_TOKEN_USE="requested_token_use",e.ON_BEHALF_OF="on_behalf_of",e.FOCI="foci",e.CCS_HEADER="X-AnchorMailbox",e.RETURN_SPA_CODE="return_spa_code",e.NATIVE_BROKER="nativebroker",e.LOGOUT_HINT="logout_hint"}(H||(H={})),function(e){e.ACCESS_TOKEN="access_token",e.XMS_CC="xms_cc"}(z||(z={}));var E5={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"};!function(e){e.ACCOUNT="account",e.SID="sid",e.LOGIN_HINT="login_hint",e.ID_TOKEN="id_token",e.DOMAIN_HINT="domain_hint",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers",e.ACCOUNT_ID="accountIdentifier",e.HOMEACCOUNT_ID="homeAccountIdentifier"}(V||(V={}));var E4="plain",E3="S256";!function(e){e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post"}(U||(U={})),function(e){e.IMPLICIT_GRANT="implicit",e.AUTHORIZATION_CODE_GRANT="authorization_code",e.CLIENT_CREDENTIALS_GRANT="client_credentials",e.RESOURCE_OWNER_PASSWORD_GRANT="password",e.REFRESH_TOKEN_GRANT="refresh_token",e.DEVICE_CODE_GRANT="device_code",e.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(j||(j={})),function(e){e.MSSTS_ACCOUNT_TYPE="MSSTS",e.ADFS_ACCOUNT_TYPE="ADFS",e.MSAV1_ACCOUNT_TYPE="MSA",e.GENERIC_ACCOUNT_TYPE="Generic"}(W||(W={})),function(e){e.CACHE_KEY_SEPARATOR="-",e.CLIENT_INFO_SEPARATOR="."}(q||(q={})),function(e){e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",e.REFRESH_TOKEN="RefreshToken"}(G||(G={})),function(e){e[e.ADFS=1001]="ADFS",e[e.MSA=1002]="MSA",e[e.MSSTS=1003]="MSSTS",e[e.GENERIC=1004]="GENERIC",e[e.ACCESS_TOKEN=2001]="ACCESS_TOKEN",e[e.REFRESH_TOKEN=2002]="REFRESH_TOKEN",e[e.ID_TOKEN=2003]="ID_TOKEN",e[e.APP_METADATA=3001]="APP_METADATA",e[e.UNDEFINED=9999]="UNDEFINED"}(K||(K={}));var E6="appmetadata",E8="client_info",E9="1",E7="authority-metadata",Pe=86400;!function(e){e.CONFIG="config",e.CACHE="cache",e.NETWORK="network",e.HARDCODED_VALUES="hardcoded_values"}(X||(X={}));var Pt=5,Pn=330,Pr=50,Po="server-telemetry",Pi="|",Pa=",",Ps="1",Pl="0",Pc="unknown_error";!function(e){e.BEARER="Bearer",e.POP="pop",e.SSH="ssh-cert"}(Y||(Y={}));var Pu=60,Pd=3600,Pp="throttling",Pf="retry-after, h429",Ph="invalid_grant",Pm="client_mismatch";!function(e){e.username="username",e.password="password"}(Q||(Q={})),function(e){e[e.httpSuccess=200]="httpSuccess",e[e.httpBadRequest=400]="httpBadRequest"}(J||(J={})),function(e){e.FAILED_AUTO_DETECTION="1",e.INTERNAL_CACHE="2",e.ENVIRONMENT_VARIABLE="3",e.IMDS="4"}(Z||(Z={})),function(e){e.CONFIGURED_MATCHES_DETECTED="1",e.CONFIGURED_NO_AUTO_DETECTION="2",e.CONFIGURED_NOT_DETECTED="3",e.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",e.AUTO_DETECTION_REQUESTED_FAILED="5"}(ee||(ee={})),function(e){e.NO_CACHE_HIT="0",e.FORCE_REFRESH="1",e.NO_CACHED_ACCESS_TOKEN="2",e.CACHED_ACCESS_TOKEN_EXPIRED="3",e.REFRESH_CACHED_ACCESS_TOKEN="4"}(et||(et={})),function(e){e.Jwt="JWT",e.Jwk="JWK",e.Pop="pop"}(en||(en={}));var Pg="invalid_grant",Pv=483,Py=600,Pb="msal",Px=30,PC="msal.js.browser",Pk="53ee284d-920a-4b59-9d30-a60315b26836",Pw="ppnbnpeolgkicgegkbkbjmhlideopiji",PS="MATS";!function(e){e.HandshakeRequest="Handshake",e.HandshakeResponse="HandshakeResponse",e.GetToken="GetToken",e.Response="Response"}(er||(er={})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage"}(eo||(eo={})),function(e){e.GET="GET",e.POST="POST"}(ei||(ei={})),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"}(ea||(ea={})),function(e){e.ACCOUNT_KEYS="msal.account.keys",e.TOKEN_KEYS="msal.token.keys"}(es||(es={})),function(e){e.WRAPPER_SKU="wrapper.sku",e.WRAPPER_VER="wrapper.version"}(el||(el={})),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"}(ec||(ec={})),function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"}(eu||(eu={})),function(e){e.Startup="startup",e.Login="login",e.Logout="logout",e.AcquireToken="acquireToken",e.SsoSilent="ssoSilent",e.HandleRedirect="handleRedirect",e.None="none"}(ed||(ed={}));var P_={scopes:E1},PE="jwk";!function(e){e.React="@azure/msal-react",e.Angular="@azure/msal-angular"}(ep||(ep={}));var PP="msal.db",PI=1,PT=PP+".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"}(ef||(ef={}));var PD=function(e,t){return(PD=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])})(e,t)};function PA(e,t){function n(){this.constructor=e}PD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var PR=function(){return(PR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},PN=function(e,t){return(PN=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])})(e,t)};function PB(e,t){function n(){this.constructor=e}PN(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var PM=function(){return(PM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function PF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function PO(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function PL(e,t){var n,r,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return c([e,t])}}function c(a){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function PH(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return s}function Pz(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(PH(arguments[t]));return e}!function(e){e.AcquireTokenByCode="acquireTokenByCode",e.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",e.AcquireTokenSilent="acquireTokenSilent",e.AcquireTokenSilentAsync="acquireTokenSilentAsync",e.AcquireTokenPopup="acquireTokenPopup",e.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",e.CryptoOptsSignJwt="cryptoOptsSignJwt",e.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",e.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",e.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",e.SsoSilent="ssoSilent",e.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",e.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",e.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",e.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",e.BrokerHandhshake="brokerHandshake",e.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",e.AcquireTokenByBroker="acquireTokenByBroker",e.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",e.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",e.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",e.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",e.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",e.AcquireTokenFromCache="acquireTokenFromCache",e.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",e.InitializeBaseRequest="initializeBaseRequest",e.InitializeSilentRequest="initializeSilentRequest",e.InitializeClientApplication="initializeClientApplication",e.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",e.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",e.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",e.SilentHandlerLoadFrame="silentHandlerLoadFrame",e.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",e.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",e.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",e.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",e.GetAuthCodeUrl="getAuthCodeUrl",e.HandleCodeResponseFromServer="handleCodeResponseFromServer",e.HandleCodeResponseFromHash="handleCodeResponseFromHash",e.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",e.AuthClientAcquireToken="authClientAcquireToken",e.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",e.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",e.AuthClientCreateQueryString="authClientCreateQueryString",e.PopTokenGenerateCnf="popTokenGenerateCnf",e.PopTokenGenerateKid="popTokenGenerateKid",e.HandleServerTokenResponse="handleServerTokenResponse",e.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",e.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",e.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",e.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",e.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",e.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",e.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",e.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",e.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",e.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",e.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",e.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",e.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",e.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",e.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",e.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",e.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake"}(eh||(eh={})),function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(em||(em={}));var PV=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]),PU="unexpected_error",Pj="Unexpected error in authentication.",PW="post_request_failed",Pq="Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details.",PG=function(e){function t(n,r,o){var a=this,s=r?n+": "+r:n;return Object.setPrototypeOf(a=e.call(this,s)||this,t.prototype),a.errorCode=n||EV,a.errorMessage=r||EV,a.subError=o||EV,a.name="AuthError",a}return Ek(t,e),t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t(PU,Pj+": "+e)},t.createPostRequestFailed=function(e){return new t(PW,Pq+": "+e)},t}(Error),PK=function(e){function t(n,r,o){var a=e.call(this,n,r,o)||this;return a.name="ServerError",Object.setPrototypeOf(a,t.prototype),a}return Ek(t,e),t}(PG),PX=["interaction_required","consent_required","login_required"],PY=["message_only","additional_action","basic_action","user_password_expired","consent_required"],P$="no_tokens_found",PQ="No refresh token found in the cache. Please sign-in.",PJ="native_account_unavailable",PZ="The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",P0=function(e){function t(n,r,o,a,s,l,c){var u=e.call(this,n,r,o)||this;return Object.setPrototypeOf(u,t.prototype),u.timestamp=a||EV,u.traceId=s||EV,u.correlationId=l||EV,u.claims=c||EV,u.name="InteractionRequiredAuthError",u}return Ek(t,e),t.isInteractionRequiredError=function(e,t,n){var r=!!e&&PX.indexOf(e)>-1,o=!!n&&PY.indexOf(n)>-1,a=!!t&&PX.some(function(e){return t.indexOf(e)>-1});return r||a||o},t.createNoTokensFoundError=function(){return new t(P$,PQ)},t.createNativeAccountUnavailableError=function(){return new t(PJ,PZ)},t}(PG),P1="missing_kid_error",P2="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.",P5="missing_alg_error",P4="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.",P3=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,t.prototype),o}return Ek(t,e),t.createMissingKidError=function(){return new t(P1,P2)},t.createMissingAlgError=function(){return new t(P5,P4)},t}(PG),P6=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 P3.createMissingKidError();if(!t.alg)throw P3.createMissingAlgError();return JSON.stringify(new e({typ:t.typ||en.Pop,kid:t.kid,alg:t.alg}))},e}(),P8=function(){function e(){}return e.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},e}(),P9=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,P8.decimalToHex(e[0])+P8.decimalToHex(e[1])+P8.decimalToHex(e[2])+P8.decimalToHex(e[3])+"-"+P8.decimalToHex(e[4])+P8.decimalToHex(e[5])+"-"+P8.decimalToHex(e[6])+P8.decimalToHex(e[7])+"-"+P8.decimalToHex(e[8])+P8.decimalToHex(e[9])+"-"+P8.decimalToHex(e[10])+P8.decimalToHex(e[11])+P8.decimalToHex(e[12])+P8.decimalToHex(e[13])+P8.decimalToHex(e[14])+P8.decimalToHex(e[15])}catch(e){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",r=0,o=EV,a=0;a<36;a++)"-"!==t[a]&&"4"!==t[a]&&(r=16*Math.random()|0),"x"===t[a]?o+=n[r]:"y"===t[a]?(r&=3,r|=8,o+=n[r]):o+=t[a];return o}},e.prototype.isGuid=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},e}(),P7=function(){function e(){}return e.stringToUtf8Arr=function(e){for(var t,n=0,r=e.length,o=0;o<r;o++)n+=(t=e.charCodeAt(o))<128?1:t<2048?2:t<65536?3:t<2097152?4:t<0x4000000?5:6;for(var a=new Uint8Array(n),s=0,l=0;s<n;l++)(t=e.charCodeAt(l))<128?a[s++]=t:(t<2048?a[s++]=192+(t>>>6):(t<65536?a[s++]=224+(t>>>12):(t<2097152?a[s++]=240+(t>>>18):(t<0x4000000?a[s++]=248+(t>>>24):(a[s++]=252+(t>>>30),a[s++]=128+(t>>>24&63)),a[s++]=128+(t>>>18&63)),a[s++]=128+(t>>>12&63)),a[s++]=128+(t>>>6&63)),a[s++]=128+(63&t));return a},e.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return t},e.utf8ArrToString=function(e){for(var t=EV,n=void 0,r=e.length,o=0;o<r;o++)t+=String.fromCharCode((n=e[o])>251&&n<254&&o+5<r?(n-252)*0x40000000+(e[++o]-128<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>247&&n<252&&o+4<r?(n-248<<24)+(e[++o]-128<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>239&&n<248&&o+3<r?(n-240<<18)+(e[++o]-128<<12)+(e[++o]-128<<6)+e[++o]-128:n>223&&n<240&&o+2<r?(n-224<<12)+(e[++o]-128<<6)+e[++o]-128:n>191&&n<224&&o+1<r?(n-192<<6)+e[++o]-128:n);return t},e.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},e}(),Ie=function(){function e(){}return e.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,EV).replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,EV).replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(e){var t=P7.stringToUtf8Arr(e);return this.base64EncArr(t)},e.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=EV,r=void 0,o=e.length,a=0,s=0;s<o;s++)r=s%3,a|=e[s]<<(16>>>r&24),(2===r||e.length-s==1)&&(n+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(63&a)),a=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}(),It=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 Error("Invalid base64 string")}var n=this.base64DecToArr(t);return P7.utf8ArrToString(n)},e.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,EV),r=n.length,o=t?Math.ceil((3*r+1>>>2)/t)*t:3*r+1>>>2,a=new Uint8Array(o),s=void 0,l=void 0,c=0,u=0,d=0;d<r;d++)if(l=3&d,c|=this.b64ToUint6(n.charCodeAt(d))<<18-6*l,3===l||r-d==1){for(s=0;s<3&&u<o;s++,u++)a[u]=c>>>(16>>>s&24)&255;c=0}return a},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:63*(47===e)},e}(),In="client_info_decoding_error",Ir="The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause.",Io="client_info_empty_error",Ii="The client info was empty. Please review the trace to determine the root cause.",Ia="token_parsing_error",Is="Token cannot be parsed. Please review stack trace to determine root cause.",Il="null_or_empty_token",Ic="The token is null or empty. Please review the trace to determine the root cause.",Iu="endpoints_resolution_error",Id="Error: could not resolve endpoints. Please check network and try again.",Ip="network_error",If="Network request failed. Please check network trace to determine root cause.",Ih="openid_config_error",Im="Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",Ig="hash_not_deserialized",Iv="The hash parameters could not be deserialized. Please review the trace to determine the root cause.",Iy="invalid_state",Ib="State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState().",Ix="state_mismatch",IC="State mismatch error. Please check your network. Continued requests may cause cache overflow.",Ik="state_not_found",Iw="State not found",IS="nonce_mismatch",I_="Nonce mismatch error. This may be caused by a race condition in concurrent requests.",IE="nonce_not_found",IP="nonce not found",II="auth_time_not_found",IT="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.",ID="max_age_transpired",IA="Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",IR="multiple_matching_tokens",IN="The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",IB="multiple_matching_accounts",IM="The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",IF="multiple_matching_appMetadata",IO="The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",IL="request_cannot_be_made",IH="Token request cannot be made without authorization code or refresh token.",Iz="cannot_append_empty_scope",IV="Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info.",IU="cannot_remove_empty_scope",Ij="Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info.",IW="cannot_append_scopeset",Iq="Cannot append ScopeSet due to error.",IG="empty_input_scopeset",IK="Empty input ScopeSet cannot be processed.",IX="device_code_polling_cancelled",IY="Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",I$="device_code_expired",IQ="Device code is expired.",IJ="device_code_unknown_error",IZ="Device code stopped polling for unknown reasons.",I0="no_account_in_silent_request",I1="Please pass an account object, silent flow is not supported without account information",I2="invalid_cache_record",I5="Cache record object was null or undefined.",I4="invalid_cache_environment",I3="Invalid environment when attempting to create cache entry",I6="no_account_found",I8="No account found in cache for given key.",I9="no cache plugin set on CacheManager",I7="ICachePlugin needs to be set before using readFromStorage or writeFromStorage",Te="no_crypto_object",Tt="No crypto object detected. This is required for the following operation: ",Tn="invalid_cache_type",Tr="Invalid cache type",To="unexpected_account_type",Ti="Unexpected account type.",Ta="unexpected_credential_type",Ts="Unexpected credential type.",Tl="invalid_assertion",Tc="Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",Tu="invalid_client_credential",Td="Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",Tp="token_refresh_required",Tf="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.",Th="user_timeout_reached",Tm="User defined timeout for device code polling reached",Tg="token_claims_cnf_required_for_signedjwt",Tv="Cannot generate a POP jwt if the token_claims are not populated",Ty="authorization_code_missing_from_server_response",Tb="Server response does not contain an authorization code to proceed",Tx="binding_key_not_removed",TC="Could not remove the credential's binding key from storage.",Tk="end_session_endpoint_not_supported",Tw="Provided authority does not support logout.",TS="key_id_missing",T_="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.",TE="no_network_connectivity",TP="No network connectivity. Check your internet connection.",TI="user_canceled",TT="User canceled the flow.",TD=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,t.prototype),o}return Ek(t,e),t.createClientInfoDecodingError=function(e){return new t(In,Ir+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(Io,""+Ii)},t.createTokenParsingError=function(e){return new t(Ia,Is+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(Il,Ic+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(Iu,Id+" Detail: "+e)},t.createNetworkError=function(e,n){return new t(Ip,If+" | Fetch client threw: "+n+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(Ih,Im+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(Ig,Iv+" Given Object: "+e)},t.createInvalidStateError=function(e,n){return new t(Iy,Ib+" Invalid State: "+e+", Root Err: "+n)},t.createStateMismatchError=function(){return new t(Ix,IC)},t.createStateNotFoundError=function(e){return new t(Ik,Iw+":  "+e)},t.createNonceMismatchError=function(){return new t(IS,I_)},t.createAuthTimeNotFoundError=function(){return new t(II,IT)},t.createMaxAgeTranspiredError=function(){return new t(ID,IA)},t.createNonceNotFoundError=function(e){return new t(IE,IP+":  "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(IR,IN+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(IB,IM)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(IF,IO)},t.createTokenRequestCannotBeMadeError=function(){return new t(IL,IH)},t.createAppendEmptyScopeToSetError=function(e){return new t(Iz,IV+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(IU,Ij+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(IW,Iq+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(IG,""+IK)},t.createDeviceCodeCancelledError=function(){return new t(IX,""+IY)},t.createDeviceCodeExpiredError=function(){return new t(I$,""+IQ)},t.createDeviceCodeUnknownError=function(){return new t(IJ,""+IZ)},t.createNoAccountInSilentRequestError=function(){return new t(I0,""+I1)},t.createNullOrUndefinedCacheRecord=function(){return new t(I2,I5)},t.createInvalidCacheEnvironmentError=function(){return new t(I4,I3)},t.createNoAccountFoundError=function(){return new t(I6,I8)},t.createCachePluginError=function(){return new t(I9,""+I7)},t.createNoCryptoObjectError=function(e){return new t(Te,""+Tt+e)},t.createInvalidCacheTypeError=function(){return new t(Tn,""+Tr)},t.createUnexpectedAccountTypeError=function(){return new t(To,""+Ti)},t.createUnexpectedCredentialTypeError=function(){return new t(Ta,""+Ts)},t.createInvalidAssertionError=function(){return new t(Tl,""+Tc)},t.createInvalidCredentialError=function(){return new t(Tu,""+Td)},t.createRefreshRequiredError=function(){return new t(Tp,Tf)},t.createUserTimeoutReachedError=function(){return new t(Th,Tm)},t.createTokenClaimsRequiredError=function(){return new t(Tg,Tv)},t.createNoAuthCodeInServerResponseError=function(){return new t(Ty,Tb)},t.createBindingKeyNotRemovedError=function(){return new t(Tx,TC)},t.createLogoutNotSupportedError=function(){return new t(Tk,Tw)},t.createKeyIdMissingError=function(){return new t(TS,T_)},t.createNoNetworkConnectivityError=function(){return new t(TE,TP)},t.createUserCanceledError=function(){return new t(TI,TT)},t}(PG),TA=function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw TD.createTokenNullOrEmptyError(t);var n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!n||n.length<4)throw TD.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));return{header:n[1],JWSPayload:n[2],JWSSig:n[3]}},e.isEmpty=function(e){return void 0===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(e){}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),o=n[0],a=n[1];o&&a&&(t[r(o)]=r(a))}}),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(e){return null}},e.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},e}(),TR="pkce_not_created",TN="The PKCE code challenge and verifier could not be generated.",TB="crypto_nonexistent",TM="The crypto object or function is not available.",TF="http_method_not_implemented",TO="The HTTP method given has not been implemented in this library.",TL="empty_navigate_uri",TH="Navigation URI is empty. Please check stack trace for more info.",Tz="hash_empty_error",TV="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.",TU="no_state_in_hash",Tj="Hash does not contain state. Please verify that the request originated from msal.",TW="hash_does_not_contain_known_properties",Tq="Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors.",TG="unable_to_parse_state",TK="Unable to parse state. Please verify that the request originated from msal.",TX="state_interaction_type_mismatch",TY="Hash contains state but the interaction type does not match the caller.",T$="interaction_in_progress",TQ="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.",TJ="popup_window_error",TZ="Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",T0="empty_window_error",T1="window.open returned null or undefined window object.",T2="user_cancelled",T5="User cancelled the flow.",T4="monitor_window_timeout",T3="Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",T6="monitor_window_timeout",T8="Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors.",T9="redirect_in_iframe",T7="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.",De="block_iframe_reload",Dt="Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors",Dn="block_nested_popups",Dr="Request was blocked inside a popup because MSAL detected it was running in a popup.",Do="iframe_closed_prematurely",Di="The iframe being monitored was closed prematurely.",Da="silent_logout_unsupported",Ds="Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",Dl="no_account_error",Dc="No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",Du="silent_prompt_value_error",Dd="The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",Dp="no_token_request_cache_error",Df="No token request found in cache.",Dh="unable_to_parse_token_request_cache_error",Dm="The cached token request could not be parsed.",Dg="no_cached_authority_error",Dv="No cached authority found.",Dy="auth_request_not_set_error",Db="Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",Dx="invalid_cache_type",DC="Invalid cache type",Dk="non_browser_environment",Dw="Login and token requests are not supported in non-browser environments.",DS="database_not_open",D_="Database is not open!",DE="no_network_connectivity",DP="No network connectivity. Check your internet connection.",DI="post_request_failed",DT="Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",DD="get_request_failed",DA="Network request failed. Please check the network trace to determine root cause.",DR="failed_to_parse_response",DN="Failed to parse network response. Check network trace.",DB="unable_to_load_token",DM="Error loading token to cache.",DF="crypto_key_not_found",DO="Cryptographic Key or Keypair not found in browser storage.",DL="auth_code_required",DH="An authorization code must be provided (as the `code` property on the request) to this flow.",Dz="auth_code_or_nativeAccountId_required",DV="An authorization code or nativeAccountId must be provided to this flow.",DU="spa_code_and_nativeAccountId_present",Dj="Request cannot contain both spa code and native account id.",DW="database_unavailable",Dq="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.",DG="unable_to_acquire_token_from_native_platform",DK="Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors.",DX="native_handshake_timeout",DY="Timed out while attempting to establish connection to browser extension",D$="native_extension_not_installed",DQ="Native extension is not installed. If you think this is a mistake call the initialize function.",DJ="native_connection_not_established",DZ="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.",D0="native_broker_called_before_initialize",D1="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.",D2="native_prompt_not_supported",D5="The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",D4=function(e){function t(n,r){var o=e.call(this,n,r)||this;return Object.setPrototypeOf(o,t.prototype),o.name="BrowserAuthError",o}return PB(t,e),t.createPkceNotGeneratedError=function(e){return new t(TR,TN+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(TB,TM+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(TF,TO+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(TL,TH)},t.createEmptyHashError=function(e){return new t(Tz,TV+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(TU,Tj)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(TW,Tq)},t.createUnableToParseStateError=function(){return new t(TG,TK)},t.createStateInteractionTypeMismatchError=function(){return new t(TX,TY)},t.createInteractionInProgressError=function(){return new t(T$,TQ)},t.createPopupWindowError=function(e){var n=TZ;return n=TA.isEmpty(e)?n:n+" Details: "+e,new t(TJ,n)},t.createEmptyWindowCreatedError=function(){return new t(T0,T1)},t.createUserCancelledError=function(){return new t(T2,T5)},t.createMonitorPopupTimeoutError=function(){return new t(T4,T3)},t.createMonitorIframeTimeoutError=function(){return new t(T6,T8)},t.createRedirectInIframeError=function(e){return new t(T9,T7+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(De,Dt)},t.createBlockAcquireTokenInPopupsError=function(){return new t(Dn,Dr)},t.createIframeClosedPrematurelyError=function(){return new t(Do,Di)},t.createSilentLogoutUnsupportedError=function(){return new t(Da,Ds)},t.createNoAccountError=function(){return new t(Dl,Dc)},t.createSilentPromptValueError=function(e){return new t(Du,Dd+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(Dh,Dm)},t.createNoTokenRequestCacheError=function(){return new t(Dp,Df)},t.createAuthRequestNotSetError=function(){return new t(Dy,Db)},t.createNoCachedAuthorityError=function(){return new t(Dg,Dv)},t.createInvalidCacheTypeError=function(){return new t(Dx,""+DC)},t.createNonBrowserEnvironmentError=function(){return new t(Dk,Dw)},t.createDatabaseNotOpenError=function(){return new t(DS,D_)},t.createNoNetworkConnectivityError=function(){return new t(DE,DP)},t.createPostRequestFailedError=function(e,n){return new t(DI,DT+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createGetRequestFailedError=function(e,n){return new t(DD,DA+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(DR,DN+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(DB,DM+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(DF,DO+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(DL,DH)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(Dz,DV)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(DU,Dj)},t.createDatabaseUnavailableError=function(){return new t(DW,Dq)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(DG,DK)},t.createNativeHandshakeTimeoutError=function(){return new t(DX,DY)},t.createNativeExtensionNotInstalledError=function(){return new t(D$,DQ)},t.createNativeConnectionNotEstablishedError=function(){return new t(DJ,DZ)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(D0,D1)},t.createNativePromptParameterNotSupportedError=function(){return new t(D2,D5)},t}(PG),D3=32,D6=function(){function e(e){this.base64Encode=new Ie,this.cryptoObj=e}return e.prototype.generateCodes=function(){return PO(this,void 0,void 0,function(){var e,t;return PL(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(D3);return this.cryptoObj.getRandomValues(e),this.base64Encode.urlEncodeArr(e)}catch(e){throw D4.createPkceNotGeneratedError(e)}},e.prototype.generateCodeChallengeFromVerifier=function(e){return PO(this,void 0,void 0,function(){var t,n;return PL(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(),D4.createPkceNotGeneratedError(n);case 3:return[2]}})})},e}(),D8=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){return[2,window.crypto.subtle.generateKey(e,t,n)]})})},e.prototype.exportKey=function(e){return PO(this,void 0,void 0,function(){return PL(this,function(t){return[2,window.crypto.subtle.exportKey(PE,e)]})})},e.prototype.importKey=function(e,t,n,r){return PO(this,void 0,void 0,function(){return PL(this,function(o){return[2,window.crypto.subtle.importKey(PE,e,t,n,r)]})})},e.prototype.sign=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){return[2,window.crypto.subtle.sign(e,t,n)]})})},e.prototype.digest=function(e,t){return PO(this,void 0,void 0,function(){return PL(this,function(n){return[2,window.crypto.subtle.digest(e,t)]})})},e}(),D9=function(){function e(){}return e.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Pz(e))},e.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]})})},e.prototype.exportKey=function(e){return PO(this,void 0,void 0,function(){return PL(this,function(t){return[2,window.msrCrypto.subtle.exportKey(PE,e)]})})},e.prototype.importKey=function(e,t,n,r){return PO(this,void 0,void 0,function(){return PL(this,function(o){return[2,window.msrCrypto.subtle.importKey(PE,e,t,n,r)]})})},e.prototype.sign=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){return[2,window.msrCrypto.subtle.sign(e,t,n)]})})},e.prototype.digest=function(e,t){return PO(this,void 0,void 0,function(){return PL(this,function(n){return[2,window.msrCrypto.subtle.digest(e,t)]})})},e}(),D7=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){return[2,new Promise(function(r,o){var a=window.msCrypto.subtle.generateKey(e,t,n);a.addEventListener("complete",function(e){r(e.target.result)}),a.addEventListener("error",function(e){o(e)})})]})})},e.prototype.exportKey=function(e){return PO(this,void 0,void 0,function(){return PL(this,function(t){return[2,new Promise(function(t,n){var r=window.msCrypto.subtle.exportKey(PE,e);r.addEventListener("complete",function(e){var r=e.target.result,o=P7.utf8ArrToString(new Uint8Array(r)).replace(/\r/g,EV).replace(/\n/g,EV).replace(/\t/g,EV).split(" ").join(EV).replace("\0",EV);try{t(JSON.parse(o))}catch(e){n(e)}}),r.addEventListener("error",function(e){n(e)})})]})})},e.prototype.importKey=function(e,t,n,r){return PO(this,void 0,void 0,function(){var o,a;return PL(this,function(s){return o=P7.getSortedObjectString(e),a=P7.stringToArrayBuffer(o),[2,new Promise(function(e,o){var s=window.msCrypto.subtle.importKey(PE,a,t,n,r);s.addEventListener("complete",function(t){e(t.target.result)}),s.addEventListener("error",function(e){o(e)})})]})})},e.prototype.sign=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){return[2,new Promise(function(r,o){var a=window.msCrypto.subtle.sign(e,t,n);a.addEventListener("complete",function(e){r(e.target.result)}),a.addEventListener("error",function(e){o(e)})})]})})},e.prototype.digest=function(e,t){return PO(this,void 0,void 0,function(){return PL(this,function(n){return[2,new Promise(function(n,r){var o=window.msCrypto.subtle.digest(e,t.buffer);o.addEventListener("complete",function(e){n(e.target.result)}),o.addEventListener("error",function(e){r(e)})})]})})},e}(),Ae="redirect_uri_empty",At="A redirect URI is required for all calls, and none has been set.",An="post_logout_uri_empty",Ar="A post logout redirect has not been set.",Ao="storage_not_supported",Ai="Given storage configuration option was not supported.",Aa="no_redirect_callbacks",As="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.",Al="stubbed_public_client_application_called",Ac="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",Au="in_mem_redirect_unavailable",Ad="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.",Ap="entropy_not_provided",Af="The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option.",Ah=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,t.prototype),o}return PB(t,e),t.createRedirectUriEmptyError=function(){return new t(Ae,At)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(An,Ar)},t.createStorageNotSupportedError=function(e){return new t(Ao,Ai+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(Aa,As)},t.createStubPcaInstanceCalledError=function(){return new t(Al,Ac)},t.createInMemoryRedirectUnavailableError=function(){return new t(Au,Ad)},t.createEntropyNotProvided=function(){return new t(Ap,Af)},t}(PG),Am="RSASSA-PKCS1-v1_5",Ag="SHA-256",Av=2048,Ay=new Uint8Array([1,0,1]),Ab=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 D8;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new D7;else if(this.hasMsrCrypto()&&(null==(n=this.cryptoOptions)?void 0:n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new D9;else 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."),D4.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(null==(r=this.cryptoOptions)?void 0:r.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),Ah.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:Am,hash:Ag,modulusLength:Av,publicExponent:Ay}}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 PO(this,void 0,void 0,function(){var t;return PL(this,function(n){return t=P7.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:Ag},t)]})})},e.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},e.prototype.generateKeyPair=function(e,t){return PO(this,void 0,void 0,function(){return PL(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},e.prototype.exportJwk=function(e){return PO(this,void 0,void 0,function(){return PL(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},e.prototype.importJwk=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]})})},e.prototype.sign=function(e,t){return PO(this,void 0,void 0,function(){return PL(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},e}(),Ax=function(){function e(){this.dbName=PP,this.version=PI,this.tableName=PT,this.dbOpen=!1}return e.prototype.open=function(){return PO(this,void 0,void 0,function(){var e=this;return PL(this,function(t){return[2,new Promise(function(t,n){var r=window.indexedDB.open(e.dbName,e.version);r.addEventListener("upgradeneeded",function(t){t.target.result.createObjectStore(e.tableName)}),r.addEventListener("success",function(n){e.db=n.target.result,e.dbOpen=!0,t()}),r.addEventListener("error",function(){return n(D4.createDatabaseUnavailableError())})})]})})},e.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return PO(this,void 0,void 0,function(){return PL(this,function(e){switch(e.label){case 0:if(this.dbOpen)return[3,2];return[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},e.prototype.getItem=function(e){return PO(this,void 0,void 0,function(){var t=this;return PL(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(D4.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).get(e);o.addEventListener("success",function(e){var r=e;t.closeConnection(),n(r.target.result)}),o.addEventListener("error",function(e){t.closeConnection(),r(e)})})]}})})},e.prototype.setItem=function(e,t){return PO(this,void 0,void 0,function(){var n=this;return PL(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(r,o){if(!n.db)return o(D4.createDatabaseNotOpenError());var a=n.db.transaction([n.tableName],"readwrite").objectStore(n.tableName).put(t,e);a.addEventListener("success",function(){n.closeConnection(),r()}),a.addEventListener("error",function(e){n.closeConnection(),o(e)})})]}})})},e.prototype.removeItem=function(e){return PO(this,void 0,void 0,function(){var t=this;return PL(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(D4.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readwrite").objectStore(t.tableName).delete(e);o.addEventListener("success",function(){t.closeConnection(),n()}),o.addEventListener("error",function(e){t.closeConnection(),r(e)})})]}})})},e.prototype.getKeys=function(){return PO(this,void 0,void 0,function(){var e=this;return PL(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(D4.createDatabaseNotOpenError());var r=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).getAllKeys();r.addEventListener("success",function(n){var r=n;e.closeConnection(),t(r.target.result)}),r.addEventListener("error",function(t){e.closeConnection(),n(t)})})]}})})},e.prototype.containsKey=function(e){return PO(this,void 0,void 0,function(){var t=this;return PL(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(D4.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).count(e);o.addEventListener("success",function(e){var r=e;t.closeConnection(),n(1===r.target.result)}),o.addEventListener("error",function(e){t.closeConnection(),r(e)})})]}})})},e.prototype.deleteDatabase=function(){return PO(this,void 0,void 0,function(){return PL(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(e,t){var n=window.indexedDB.deleteDatabase(PP);n.addEventListener("success",function(){return e(!0)}),n.addEventListener("blocked",function(){return e(!0)}),n.addEventListener("error",function(){return t(!1)})})]})})},e}(),AC=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}(),Ak=function(){function e(e,t){this.inMemoryCache=new AC,this.indexedDBCache=new Ax,this.logger=e,this.storeName=t}return e.prototype.handleDatabaseAccessError=function(e){if(e instanceof D4&&e.errorCode===DW)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},e.prototype.getItem=function(e){return PO(this,void 0,void 0,function(){var t,n;return PL(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.getItem(e))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 PO(this,void 0,void 0,function(){var n;return PL(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 PO(this,void 0,void 0,function(){var t;return PL(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 PO(this,void 0,void 0,function(){var e,t;return PL(this,function(n){switch(n.label){case 0:if(0!==(e=this.inMemoryCache.getKeys()).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 PO(this,void 0,void 0,function(){var t,n;return PL(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.containsKey(e))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 PO(this,void 0,void 0,function(){var e,t;return PL(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())&&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"}(eg||(eg={}));var Aw=function(){function e(e){this.logger=e,this.asymmetricKeys=new Ak(this.logger,eg.asymmetricKeys),this.symmetricKeys=new Ak(this.logger,eg.symmetricKeys)}return e.prototype.clear=function(){return PO(this,void 0,void 0,function(){var e;return PL(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())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}(),AS=function(){function e(e,t,n){this.logger=e,this.browserCrypto=new Ab(this.logger,n),this.b64Encode=new Ie,this.b64Decode=new It,this.guidGenerator=new P9(this.browserCrypto),this.pkceGenerator=new D6(this.browserCrypto),this.cache=new Aw(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 PO(this,void 0,void 0,function(){return PL(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},e.prototype.getPublicKeyThumbprint=function(t){var n;return PO(this,void 0,void 0,function(){var r,o,a,s,l,c,u,d;return PL(this,function(p){switch(p.label){case 0:return r=null==(n=this.performanceClient)?void 0:n.startMeasurement(eh.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return o=p.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return s={e:(a=p.sent()).e,kty:a.kty,n:a.n},l=P7.getSortedObjectString(s),[4,this.hashString(l)];case 3:return c=p.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return u=p.sent(),[4,this.browserCrypto.importJwk(u,!1,["sign"])];case 5:return d=p.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:d,publicKey:o.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return p.sent(),r&&r.endMeasurement({success:!0}),[2,c]}})})},e.prototype.removeTokenBindingKey=function(e){return PO(this,void 0,void 0,function(){return PL(this,function(t){switch(t.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return t.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return[2,!t.sent()]}})})},e.prototype.clearKeystore=function(){return PO(this,void 0,void 0,function(){return PL(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 PO(this,void 0,void 0,function(){var o,a,s,l,c,u,d,p,f,h,m,g;return PL(this,function(v){switch(v.label){case 0:return o=null==(r=this.performanceClient)?void 0:r.startMeasurement(eh.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(!(a=v.sent()))throw D4.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=v.sent(),l=P7.getSortedObjectString(s),c=this.b64Encode.urlEncode(JSON.stringify({kid:t})),u=P6.getShrHeaderString({kid:c,alg:s.alg}),d=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(l)},p=d+"."+this.b64Encode.urlEncode(JSON.stringify(e)),f=P7.stringToArrayBuffer(p),[4,this.browserCrypto.sign(a.privateKey,f)];case 3:return h=v.sent(),m=this.b64Encode.urlEncodeArr(new Uint8Array(h)),g=p+"."+m,o&&o.endMeasurement({success:!0}),[2,g]}})})},e.prototype.hashString=function(e){return PO(this,void 0,void 0,function(){var t;return PL(this,function(n){switch(n.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=new Uint8Array(n.sent()),[2,this.b64Encode.urlEncodeArr(t)]}})})},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e}();!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"}(ev||(ev={}));var A_=function(){function e(t,n,r){this.level=ev.Info;var o=function(){},a=t||e.createDefaultLoggerOptions();this.localCallback=a.loggerCallback||o,this.piiLoggingEnabled=a.piiLoggingEnabled||!1,this.level="number"==typeof a.logLevel?a.logLevel:ev.Info,this.correlationId=a.correlationId||EV,this.packageName=n||EV,this.packageVersion=r||EV}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ev.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=TA.isEmpty(t.correlationId)?TA.isEmpty(this.correlationId)?"["+r+"]":"["+r+"] : ["+this.correlationId+"]":"["+r+"] : ["+t.correlationId+"]";var o=n+" : "+this.packageName+"@"+this.packageVersion+" : "+ev[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,o,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:ev.Error,containsPii:!1,correlationId:t||EV})},e.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:ev.Error,containsPii:!0,correlationId:t||EV})},e.prototype.warning=function(e,t){this.logMessage(e,{logLevel:ev.Warning,containsPii:!1,correlationId:t||EV})},e.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:ev.Warning,containsPii:!0,correlationId:t||EV})},e.prototype.info=function(e,t){this.logMessage(e,{logLevel:ev.Info,containsPii:!1,correlationId:t||EV})},e.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:ev.Info,containsPii:!0,correlationId:t||EV})},e.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:ev.Verbose,containsPii:!1,correlationId:t||EV})},e.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:ev.Verbose,containsPii:!0,correlationId:t||EV})},e.prototype.trace=function(e,t){this.logMessage(e,{logLevel:ev.Trace,containsPii:!1,correlationId:t||EV})},e.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:ev.Trace,containsPii:!0,correlationId:t||EV})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e}(),AE=function(){function e(e,t,n,r,o,a){this.authority=t,this.libraryName=r,this.libraryVersion=o,this.applicationTelemetry=a,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 PV},e.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);return n?n.name!==e?void this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement"):n.time:void 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?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},e.prototype.addQueueMeasurement=function(e,t,n,r){if(!t)return void this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement");if(0===n)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n)return void this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);var o={eventName:e,queueTime:n,manuallyCompleted:r},a=this.queueMeasurements.get(t);if(a)a.push(o),this.queueMeasurements.set(t,a);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var s=[o];this.queueMeasurements.set(t,s)}this.preQueueTimeByCorrelationId.delete(t)},e.prototype.startMeasurement=function(e,t){var n,r,o=this,a=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+e,a);var s=this.startPerformanceMeasuremeant(e,a);s.startMeasurement();var l={eventId:this.generateId(),status:em.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a,appName:null==(n=this.applicationTelemetry)?void 0:n.appName,appVersion:null==(r=this.applicationTelemetry)?void 0:r.appVersion};return this.cacheEventByCorrelationId(l),{endMeasurement:function(e){return o.endMeasurement(Ew(Ew({},l),e),s)},discardMeasurement:function(){return o.discardMeasurements(l.correlationId)},addStaticFields:function(e){return o.addStaticFields(e,l.correlationId)},increment:function(e){return o.increment(e,l.correlationId)},measurement:s,event:l}},e.prototype.endMeasurement=function(e,t){var n,r,o=this,a=this.eventsByCorrelationId.get(e.correlationId);if(!a)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var s=e.eventId===a.eventId,l={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(l=this.getQueueInfo(e.correlationId),this.discardCache(a.correlationId)):null==(n=a.incompleteSubMeasurements)||n.delete(e.eventId),null==t||t.endMeasurement();var c=null==t?void 0:t.flushMeasurement();if(!c)return this.logger.trace("PerformanceClient: Performance measurement not taken",a.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+c+" ms",e.correlationId),!s)return a[e.name+"DurationMs"]=Math.floor(c),Ew({},a);var u=Ew(Ew({},a),e),d=0;return null==(r=u.incompleteSubMeasurements)||r.forEach(function(t){o.logger.trace("PerformanceClient: Incomplete submeasurement "+t.name+" found for "+e.name,u.correlationId),d++}),u.incompleteSubMeasurements=void 0,u=Ew(Ew({},u),{durationMs:Math.round(c),queuedTimeMs:l.totalQueueTime,queuedCount:l.totalQueueCount,queuedManuallyCompletedCount:l.manuallyCompletedCount,status:em.Completed,incompleteSubsCount:d}),this.truncateIntegralFields(u,this.getIntFields()),this.emitEvents([u],e.correlationId),u},e.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,Ew(Ew({},n),e)):this.logger.trace("PerformanceClient: Event not found for",t)},e.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(t);if(n)for(var r in e)n.hasOwnProperty(r)||(n[r]=0),n[r]+=e[r];else this.logger.trace("PerformanceClient: Event not found for",t)},e.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,Ew({},e)))},e.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var n=0,r=0,o=0;return null==t||t.forEach(function(e){n+=e.queueTime,r++,o+=+!!e.manuallyCompleted}),{totalQueueTime:n,totalQueueCount:r,manuallyCompletedCount:o}},e.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},e.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},e.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},e.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},e.prototype.emitEvents=function(e,t){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(r,o){n.logger.trace("PerformanceClient: Emitting event to callback "+o,t),r.apply(null,[e])})},e.prototype.truncateIntegralFields=function(e,t){t.forEach(function(t){t in e&&"number"==typeof e[t]&&(e[t]=Math.floor(e[t]))})},e}(),AP=function(){function e(){}return e.prototype.startMeasurement=function(){},e.prototype.endMeasurement=function(){},e.prototype.flushMeasurement=function(){return null},e}(),AI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ek(t,e),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new AP},t.prototype.startPerformanceMeasurement=function(){return new AP},t.prototype.calculateQueuedTime=function(e,t){return 0},t.prototype.addQueueMeasurement=function(e,t,n){},t.prototype.setPreQueueTime=function(e,t){},t}(AE),AT={createNewGuid:function(){var e="Crypto interface - createNewGuid() has not been implemented";throw PG.createUnexpectedError(e)},base64Decode:function(){var e="Crypto interface - base64Decode() has not been implemented";throw PG.createUnexpectedError(e)},base64Encode:function(){var e="Crypto interface - base64Encode() has not been implemented";throw PG.createUnexpectedError(e)},generatePkceCodes:function(){return ES(this,void 0,void 0,function(){var e;return E_(this,function(t){throw e="Crypto interface - generatePkceCodes() has not been implemented",PG.createUnexpectedError(e)})})},getPublicKeyThumbprint:function(){return ES(this,void 0,void 0,function(){var e;return E_(this,function(t){throw e="Crypto interface - getPublicKeyThumbprint() has not been implemented",PG.createUnexpectedError(e)})})},removeTokenBindingKey:function(){return ES(this,void 0,void 0,function(){var e;return E_(this,function(t){throw e="Crypto interface - removeTokenBindingKey() has not been implemented",PG.createUnexpectedError(e)})})},clearKeystore:function(){return ES(this,void 0,void 0,function(){var e;return E_(this,function(t){throw e="Crypto interface - clearKeystore() has not been implemented",PG.createUnexpectedError(e)})})},signJwt:function(){return ES(this,void 0,void 0,function(){var e;return E_(this,function(t){throw e="Crypto interface - signJwt() has not been implemented",PG.createUnexpectedError(e)})})},hashString:function(){return ES(this,void 0,void 0,function(){var e;return E_(this,function(t){throw e="Crypto interface - hashString() has not been implemented",PG.createUnexpectedError(e)})})}},AD=function(){function e(){}return e.prototype.generateAccountId=function(){return e.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},e.prototype.generateCredentialId=function(){return e.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},e.prototype.generateTarget=function(){return e.generateTargetForCacheKey(this.target)},e.prototype.generateCredentialKey=function(){return e.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},e.prototype.generateType=function(){switch(this.credentialType){case G.ID_TOKEN:return K.ID_TOKEN;case G.ACCESS_TOKEN:case G.ACCESS_TOKEN_WITH_AUTH_SCHEME:return K.ACCESS_TOKEN;case G.REFRESH_TOKEN:return K.REFRESH_TOKEN;default:throw TD.createUnexpectedCredentialTypeError()}},e.generateCredentialCacheKey=function(e,t,n,r,o,a,s,l,c){return[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,r,o,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(c),this.generateSchemeForCacheKey(l)].join(q.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(e,t){return[e,t].join(q.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(e,t,n,r){var o=e===G.REFRESH_TOKEN&&r||t;return[e,o,n||EV].join(q.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(e){return(e||EV).toLowerCase()},e.generateClaimsHashForCacheKey=function(e){return(e||EV).toLowerCase()},e.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==Y.BEARER.toLowerCase()?e.toLowerCase():EV},e}(),AA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ek(t,e),t.createIdTokenEntity=function(e,n,r,o,a){var s=new t;return s.credentialType=G.ID_TOKEN,s.homeAccountId=e,s.environment=n,s.clientId=o,s.secret=r,s.realm=a,s},t.isIdTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===G.ID_TOKEN},t}(AD),AR="redirect_uri_empty",AN="A redirect URI is required for all calls, and none has been set.",AB="post_logout_uri_empty",AM="A post logout redirect has not been set.",AF="claims_request_parsing_error",AO="Could not parse the given claims request object.",AL="authority_uri_insecure",AH="Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",Az="url_parse_error",AV="URL could not be parsed into appropriate segments.",AU="empty_url_error",Aj="URL was empty or null.",AW="empty_input_scopes_error",Aq="Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",AG="clientid_input_scopes_error",AK="Client ID can only be provided as a single scope.",AX="invalid_prompt_value",AY="Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'.  Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",A$="invalid_claims",AQ="Given claims parameter must be a stringified JSON object.",AJ="token_request_empty",AZ="Token request was empty and not found in cache.",A0="logout_request_empty",A1="The logout request was null or undefined.",A2="invalid_code_challenge_method",A5='code_challenge_method passed is invalid. Valid values are "plain" and "S256".',A4="pkce_params_missing",A3="Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",A6="invalid_cloud_discovery_metadata",A8="Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",A9="invalid_authority_metadata",A7="Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",Re="untrusted_authority",Rt="The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",Rn="invalid_azure_cloud_instance",Rr="Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values",Ro="missing_ssh_jwk",Ri="Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",Ra="missing_ssh_kid",Rs="Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",Rl="missing_nonce_authentication_header",Rc="Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",Ru="invalid_authentication_header",Rd="Invalid authentication header provided",Rp=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,t.prototype),o}return Ek(t,e),t.createRedirectUriEmptyError=function(){return new t(AR,AN)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(AB,AM)},t.createClaimsRequestParsingError=function(e){return new t(AF,AO+" Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t(AL,AH+" Given URI: "+e)},t.createUrlParseError=function(e){return new t(Az,AV+" Given Error: "+e)},t.createUrlEmptyError=function(){return new t(AU,Aj)},t.createEmptyScopesArrayError=function(){return new t(AW,""+Aq)},t.createClientIdSingleScopeError=function(e){return new t(AG,AK+" Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t(AX,AY+" Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t(A$,AQ)},t.createEmptyLogoutRequestError=function(){return new t(A0,A1)},t.createEmptyTokenRequestError=function(){return new t(AJ,AZ)},t.createInvalidCodeChallengeMethodError=function(){return new t(A2,A5)},t.createInvalidCodeChallengeParamsError=function(){return new t(A4,A3)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(A6,A8)},t.createInvalidAuthorityMetadataError=function(){return new t(A9,A7)},t.createUntrustedAuthorityError=function(){return new t(Re,Rt)},t.createInvalidAzureCloudInstanceError=function(){return new t(Rn,Rr)},t.createMissingSshJwkError=function(){return new t(Ro,Ri)},t.createMissingSshKidError=function(){return new t(Ra,Rs)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(Rl,Rc)},t.createInvalidAuthenticationHeaderError=function(e,n){return new t(Ru,Rd+". Invalid header: "+e+". Details: "+n)},t}(TD),Rf=function(){function e(e){var t=this,n=e?TA.trimArrayEntries(EE(e)):[],r=n?TA.removeEmptyStringsFromArray(n):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(e){return t.scopes.add(e)})}return e.fromString=function(t){return new e((t||EV).split(" "))},e.createSearchScopes=function(t){var n=new e(t);return n.containsOnlyOIDCScopes()?n.removeScope(EO):n.removeOIDCScopes(),n},e.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw Rp.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var n=new e(this.printScopesLowerCase().split(" "));return!TA.isEmpty(t)&&n.scopes.has(t.toLowerCase())},e.prototype.containsScopeSet=function(e){var t=this;return!!e&&!(e.scopes.size<=0)&&this.scopes.size>=e.scopes.size&&e.asArray().every(function(e){return t.containsScope(e)})},e.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return E2.forEach(function(n){e.containsScope(n)&&(t+=1)}),this.scopes.size===t},e.prototype.appendScope=function(e){TA.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(e){throw TD.createAppendScopeSetError(e)}},e.prototype.removeScope=function(e){if(TA.isEmpty(e))throw TD.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},e.prototype.removeOIDCScopes=function(){var e=this;E2.forEach(function(t){e.scopes.delete(t)})},e.prototype.unionScopeSets=function(e){if(!e)throw TD.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 TD.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),r=this.getScopeCount();return t.size<r+n},e.prototype.getScopeCount=function(){return this.scopes.size},e.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},e.prototype.printScopes=function(){return this.scopes?this.asArray().join(" "):EV},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e}();function Rh(e,t){if(TA.isEmpty(e))throw TD.createClientInfoEmptyError();try{var n=t.base64Decode(e);return JSON.parse(n)}catch(e){throw TD.createClientInfoDecodingError(e.message)}}function Rm(e){if(TA.isEmpty(e))throw TD.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(q.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?EV:t[1]}}!function(e){e[e.Default=0]="Default",e[e.Adfs=1]="Adfs",e[e.Dsts=2]="Dsts",e[e.Ciam=3]="Ciam"}(ey||(ey={}));var Rg=function(){function e(){}return e.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(q.CACHE_KEY_SEPARATOR).toLowerCase()},e.prototype.generateAccountKey=function(){return e.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},e.prototype.generateType=function(){switch(this.authorityType){case W.ADFS_ACCOUNT_TYPE:return K.ADFS;case W.MSAV1_ACCOUNT_TYPE:return K.MSA;case W.MSSTS_ACCOUNT_TYPE:return K.MSSTS;case W.GENERIC_ACCOUNT_TYPE:return K.GENERIC;default:throw TD.createUnexpectedAccountTypeError()}},e.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},e.generateAccountCacheKey=function(e){return[e.homeAccountId,e.environment||EV,e.tenantId||EV].join(q.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,n,r,o,a,s,l,c){var u,d,p,f,h,m,g=new e;g.authorityType=W.MSSTS_ACCOUNT_TYPE,g.clientInfo=t,g.homeAccountId=n,g.nativeAccountId=c;var v=l||o&&o.getPreferredCache();if(!v)throw TD.createInvalidCacheEnvironmentError();if(g.environment=v,g.realm=(null==(u=null==r?void 0:r.claims)?void 0:u.tid)||EV,r){g.idTokenClaims=r.claims,g.localAccountId=(null==(d=null==r?void 0:r.claims)?void 0:d.oid)||(null==(p=null==r?void 0:r.claims)?void 0:p.sub)||EV;var y=null==(f=null==r?void 0:r.claims)?void 0:f.preferred_username,b=(null==(h=null==r?void 0:r.claims)?void 0:h.emails)?r.claims.emails[0]:null;g.username=y||b||EV,g.name=null==(m=null==r?void 0:r.claims)?void 0:m.name}return g.cloudGraphHostName=a,g.msGraphHost=s,g},e.createGenericAccount=function(t,n,r,o,a,s){var l,c,u,d,p=new e;p.authorityType=r&&r.authorityType===ey.Adfs?W.ADFS_ACCOUNT_TYPE:W.GENERIC_ACCOUNT_TYPE,p.homeAccountId=t,p.realm=EV;var f=s||r&&r.getPreferredCache();if(!f)throw TD.createInvalidCacheEnvironmentError();return n&&(p.localAccountId=(null==(l=null==n?void 0:n.claims)?void 0:l.oid)||(null==(c=null==n?void 0:n.claims)?void 0:c.sub)||EV,p.username=(null==(u=null==n?void 0:n.claims)?void 0:u.upn)||EV,p.name=(null==(d=null==n?void 0:n.claims)?void 0:d.name)||EV,p.idTokenClaims=null==n?void 0:n.claims),p.environment=f,p.cloudGraphHostName=o,p.msGraphHost=a,p},e.generateHomeAccountId=function(e,t,n,r,o){var a,s=(null==(a=null==o?void 0:o.claims)?void 0:a.sub)?o.claims.sub:EV;if(t===ey.Adfs||t===ey.Dsts)return s;if(e)try{var l=Rh(e,r);if(!TA.isEmpty(l.uid)&&!TA.isEmpty(l.utid))return""+l.uid+q.CLIENT_INFO_SEPARATOR+l.utid}catch(e){}return n.verbose("No client info in response"),s},e.isAccountEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType")},e.accountInfoIsEqual=function(e,t,n){if(!e||!t)return!1;var r=!0;if(n){var o=e.idTokenClaims||{},a=t.idTokenClaims||{};r=o.iat===a.iat&&o.nonce===a.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&r},e}(),Rv=function(){function e(t,n){if(TA.isEmpty(t))throw TD.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,n)}return e.extractTokenClaims=function(e,t){var n=TA.decodeAuthToken(e);try{var r=n.JWSPayload,o=t.base64Decode(r);return JSON.parse(o)}catch(e){throw TD.createTokenParsingError(e)}},e.checkMaxAge=function(e,t){var n=3e5;if(0===t||Date.now()-n>e+t)throw TD.createMaxAgeTranspiredError()},e}(),Ry="@azure/msal-common",Rb="13.0.0",Rx=function(){function e(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(Ry,Rb)}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},[]);return n.length<1?[]:n.map(function(t){return e.getAccountInfoFromEntity(t)})},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 Rv(n.secret,this.cryptoImpl).claims),t},e.prototype.saveCacheRecord=function(e){return ES(this,void 0,void 0,function(){return E_(this,function(t){switch(t.label){case 0:if(!e)throw TD.createNullOrUndefinedCacheRecord();if(e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),!e.accessToken)return[3,2];return[4,this.saveAccessToken(e.accessToken)];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 ES(this,void 0,void 0,function(){var t,n,r,o,a=this;return E_(this,function(s){switch(s.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=Rf.fromString(e.target),o=[],n.accessToken.forEach(function(e){if(a.accessTokenKeyMatchesFilter(e,t,!1)){var n=a.getAccessTokenCredential(e);n&&a.credentialMatchesFilter(n,t)&&Rf.fromString(n.target).intersectingScopeSets(r)&&o.push(a.removeAccessToken(e))}}),[4,Promise.all(o)];case 1:return s.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 o=t.getAccount(n);!o||e.homeAccountId&&!t.matchHomeAccountId(o,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(o,e.localAccountId)||e.username&&!t.matchUsername(o,e.username)||e.environment&&!t.matchEnvironment(o,e.environment)||e.realm&&!t.matchRealm(o,e.realm)||(!e.nativeAccountId||t.matchNativeAccountId(o,e.nativeAccountId))&&r.push(o)}}),r},e.prototype.isAccountKey=function(e,t,n){return!(e.split(q.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(q.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(-1===t.indexOf(G.ID_TOKEN.toLowerCase())&&-1===t.indexOf(G.ACCESS_TOKEN.toLowerCase())&&-1===t.indexOf(G.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===t.indexOf(G.REFRESH_TOKEN.toLowerCase()))return!1;if(t.indexOf(G.REFRESH_TOKEN.toLowerCase())>-1){var n=""+G.REFRESH_TOKEN+q.CACHE_KEY_SEPARATOR+this.clientId+q.CACHE_KEY_SEPARATOR,r=""+G.REFRESH_TOKEN+q.CACHE_KEY_SEPARATOR+E9+q.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){return(!t.clientId||!!this.matchClientId(e,t.clientId))&&(!t.userAssertionHash||!!this.matchUserAssertionHash(e,t.userAssertionHash))&&("string"!=typeof t.homeAccountId||!!this.matchHomeAccountId(e,t.homeAccountId))&&(!t.environment||!!this.matchEnvironment(e,t.environment))&&(!t.realm||!!this.matchRealm(e,t.realm))&&(!t.credentialType||!!this.matchCredentialType(e,t.credentialType))&&(!t.familyId||!!this.matchFamilyId(e,t.familyId))&&(!t.target||!!this.matchTarget(e,t.target))&&(!t.requestedClaimsHash&&!e.requestedClaimsHash||e.requestedClaimsHash===t.requestedClaimsHash)&&(e.credentialType!==G.ACCESS_TOKEN_WITH_AUTH_SCHEME||(!t.tokenType||!!this.matchTokenType(e,t.tokenType))&&(t.tokenType!==Y.SSH||!t.keyId||!!this.matchKeyId(e,t.keyId)))&&!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(),o={};return r.forEach(function(r){if(n.isAppMetadata(r)){var a=n.getAppMetadata(r);!a||e&&!n.matchEnvironment(a,e)||(!t||n.matchClientId(a,t))&&(o[r]=a)}}),o},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 o=t.getAuthorityMetadata(n);o&&-1!==o.aliases.indexOf(e)&&(r=o)}}),r},e.prototype.removeAllAccounts=function(){return ES(this,void 0,void 0,function(){var e,t,n=this;return E_(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 ES(this,void 0,void 0,function(){var t;return E_(this,function(n){switch(n.label){case 0:if(!(t=this.getAccount(e)))throw TD.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}})})},e.prototype.removeAccountContext=function(e){return ES(this,void 0,void 0,function(){var t,n,r,o=this;return E_(this,function(a){switch(a.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),r=[],t.idToken.forEach(function(e){0===e.indexOf(n)&&o.removeIdToken(e)}),t.accessToken.forEach(function(e){0===e.indexOf(n)&&r.push(o.removeAccessToken(e))}),t.refreshToken.forEach(function(e){0===e.indexOf(n)&&o.removeRefreshToken(e)}),[4,Promise.all(r)];case 1:return a.sent(),[2]}})})},e.prototype.removeAccessToken=function(e){return ES(this,void 0,void 0,function(){var t,n;return E_(this,function(r){switch(r.label){case 0:if(!(t=this.getAccessTokenCredential(e)))return[2];if(t.credentialType.toLowerCase()!==G.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()||t.tokenType!==Y.POP||!(n=t.keyId))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(n)];case 2:return r.sent(),[3,4];case 3:throw r.sent(),TD.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},e.prototype.removeAppMetadata=function(){var e=this;return this.getKeys().forEach(function(t){e.isAppMetadata(t)&&e.removeItem(t)}),!0},e.prototype.readCacheRecord=function(e,t,n){var r=this.getTokenKeys(),o=this.readAccountFromCache(e),a=this.getIdToken(e,r),s=this.getAccessToken(e,t,r),l=this.getRefreshToken(e,!1,r),c=this.readAppMetadataFromCache(n);return o&&a&&(o.idTokenClaims=new Rv(a.secret,this.cryptoImpl).claims),{account:o,idToken:a,accessToken:s,refreshToken:l,appMetadata:c}},e.prototype.readAccountFromCache=function(e){var t=Rg.generateAccountCacheKey(e);return this.getAccount(t)},e.prototype.getIdToken=function(e,t){this.commonLogger.trace("CacheManager - getIdToken called");var n={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:G.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},r=this.getIdTokensByFilter(n,t),o=r.length;if(o<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(o>1)throw TD.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getIdToken - Returning id token"),r[0]},e.prototype.getIdTokensByFilter=function(e,t){var n=this,r=t&&t.idToken||this.getTokenKeys().idToken,o=[];return r.forEach(function(t){if(n.idTokenKeyMatchesFilter(t,Ew({clientId:n.clientId},e))){var r=n.getIdTokenCredential(t);r&&n.credentialMatchesFilter(r,e)&&o.push(r)}}),o},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 o=Rf.createSearchScopes(t.scopes),a=t.authenticationScheme||Y.BEARER,s=a&&a.toLowerCase()!==Y.BEARER.toLowerCase()?G.ACCESS_TOKEN_WITH_AUTH_SCHEME:G.ACCESS_TOKEN,l={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:s,clientId:this.clientId,realm:e.tenantId,target:o,tokenType:a,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},c=n&&n.accessToken||this.getTokenKeys().accessToken,u=[];c.forEach(function(e){if(r.accessTokenKeyMatchesFilter(e,l,!0)){var t=r.getAccessTokenCredential(e);t&&r.credentialMatchesFilter(t,l)&&u.push(t)}});var d=u.length;if(d<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(d>1)throw TD.createMultipleMatchingTokensInCacheError();return 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())||t.homeAccountId&&-1===r.indexOf(t.homeAccountId.toLowerCase())||t.realm&&-1===r.indexOf(t.realm.toLowerCase())||t.requestedClaimsHash&&-1===r.indexOf(t.requestedClaimsHash.toLowerCase()))return!1;if(t.target){for(var o=t.target.asArray(),a=0;a<o.length;a++)if(n&&!r.includes(o[a].toLowerCase()))return!1;else if(!n&&r.includes(o[a].toLowerCase()))break}return!0},e.prototype.getAccessTokensByFilter=function(e){var t=this,n=this.getTokenKeys(),r=[];return n.accessToken.forEach(function(n){if(t.accessTokenKeyMatchesFilter(n,e,!0)){var o=t.getAccessTokenCredential(n);o&&t.credentialMatchesFilter(o,e)&&r.push(o)}}),r},e.prototype.getRefreshToken=function(e,t,n){var r=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var o=t?E9:void 0,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:G.REFRESH_TOKEN,clientId:this.clientId,familyId:o},s=n&&n.refreshToken||this.getTokenKeys().refreshToken,l=[];return(s.forEach(function(e){if(r.refreshTokenKeyMatchesFilter(e,a)){var t=r.getRefreshTokenCredential(e);t&&r.credentialMatchesFilter(t,a)&&l.push(t)}}),l.length<1)?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])},e.prototype.refreshTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return(!t.familyId||-1!==n.indexOf(t.familyId.toLowerCase()))&&(!!t.familyId||!t.clientId||-1!==n.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==n.indexOf(t.homeAccountId.toLowerCase()))},e.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(t),r=Object.keys(n).map(function(e){return n[e]}),o=r.length;if(o<1)return null;if(o>1)throw TD.createMultipleMatchingAppMetadataInCacheError();return r[0]},e.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===E9)},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){return(e.credentialType===G.ACCESS_TOKEN||e.credentialType===G.ACCESS_TOKEN_WITH_AUTH_SCHEME)&&!!e.target&&Rf.fromString(e.target).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(E6)},e.prototype.isAuthorityMetadata=function(e){return -1!==e.indexOf(E7)},e.prototype.generateAuthorityMetadataCacheKey=function(e){return E7+"-"+this.clientId+"-"+e},e.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},e}(),RC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ek(t,e),t.prototype.setAccount=function(){var e="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getAccount=function(){var e="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.setIdTokenCredential=function(){var e="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getIdTokenCredential=function(){var e="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.setAccessTokenCredential=function(){var e="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getAccessTokenCredential=function(){var e="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.setRefreshTokenCredential=function(){var e="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getRefreshTokenCredential=function(){var e="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.setAppMetadata=function(){var e="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getAppMetadata=function(){var e="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.setServerTelemetry=function(){var e="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getServerTelemetry=function(){var e="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.setAuthorityMetadata=function(){var e="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getAuthorityMetadata=function(){var e="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getAuthorityMetadataKeys=function(){var e="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.setThrottlingCache=function(){var e="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getThrottlingCache=function(){var e="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.removeItem=function(){var e="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.containsKey=function(){var e="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getKeys=function(){var e="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getAccountKeys=function(){var e="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.getTokenKeys=function(){var e="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t.prototype.clear=function(){return ES(this,void 0,void 0,function(){var e;return E_(this,function(t){throw e="Storage interface - clear() has not been implemented for the cacheStorage interface.",PG.createUnexpectedError(e)})})},t.prototype.updateCredentialCacheKey=function(){var e="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw PG.createUnexpectedError(e)},t}(Rx),Rk=function(){function e(){}return e.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},e.isTokenExpired=function(t,n){var r=Number(t)||0;return e.nowSeconds()+n>r},e.wasClockTurnedBack=function(t){return Number(t)>e.nowSeconds()},e.delay=function(e,t){return new Promise(function(n){return setTimeout(function(){return n(t)},e)})},e}(),Rw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ek(t,e),t.createAccessTokenEntity=function(e,n,r,o,a,s,l,c,u,d,p,f,h,m,g){var v,y,b=new t;if(b.homeAccountId=e,b.credentialType=G.ACCESS_TOKEN,b.secret=r,b.cachedAt=Rk.nowSeconds().toString(),b.expiresOn=l.toString(),b.extendedExpiresOn=c.toString(),d&&(b.refreshOn=d.toString()),b.environment=n,b.clientId=o,b.realm=a,b.target=s,b.userAssertionHash=f,b.tokenType=TA.isEmpty(p)?Y.BEARER:p,m&&(b.requestedClaims=m,b.requestedClaimsHash=g),(null==(v=b.tokenType)?void 0:v.toLowerCase())!==Y.BEARER.toLowerCase())switch(b.credentialType=G.ACCESS_TOKEN_WITH_AUTH_SCHEME,b.tokenType){case Y.POP:var x=Rv.extractTokenClaims(r,u);if(!(null==(y=null==x?void 0:x.cnf)?void 0:y.kid))throw TD.createTokenClaimsRequiredError();b.keyId=x.cnf.kid;break;case Y.SSH:b.keyId=h}return b},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===G.ACCESS_TOKEN||e.credentialType===G.ACCESS_TOKEN_WITH_AUTH_SCHEME)},t}(AD),RS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ek(t,e),t.createRefreshTokenEntity=function(e,n,r,o,a,s){var l=new t;return l.clientId=o,l.credentialType=G.REFRESH_TOKEN,l.environment=n,l.homeAccountId=e,l.secret=r,l.userAssertionHash=s,a&&(l.familyId=a),l},t.isRefreshTokenEntity=function(e){return!!e&&e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===G.REFRESH_TOKEN},t}(AD),R_=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(e,t){return[E6,e,t].join(q.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,n,r){var o=new e;return o.clientId=t,o.environment=n,r&&(o.familyId=r),o},e.isAppMetadataEntity=function(e,t){return!!t&&0===e.indexOf(E6)&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment")},e}(),RE=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(e,t){var n=0===e.indexOf(Po),r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&r},e}(),RP=function(){function e(){this.expiresAt=Rk.nowSeconds()+Pe}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=Rk.nowSeconds()+Pe},e.prototype.isExpired=function(){return this.expiresAt<=Rk.nowSeconds()},e.isAuthorityMetadataEntity=function(e,t){return!!t&&0===e.indexOf(E7)&&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}(),RI=function(){function e(){}return e.isThrottlingEntity=function(e,t){var n=!1;e&&(n=0===e.indexOf(Pp));var r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),n&&r},e}(),RT=function(){function e(){}return e.setRequestState=function(t,n,r){var o=e.generateLibraryState(t,r);return TA.isEmpty(n)?o:""+o+EF+n},e.generateLibraryState=function(e,t){if(!e)throw TD.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 TD.createNoCryptoObjectError("parseRequestState");if(TA.isEmpty(t))throw TD.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(EF),r=n[0],o=n.length>1?n.slice(1).join(EF):EV,a=e.base64Decode(r),s=JSON.parse(a);return{userRequestState:TA.isEmpty(o)?EV:o,libraryState:s}}catch(e){throw TD.createInvalidStateError(t,e)}},e}();!function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"}(eb||(eb={}));var RD=function(){function e(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return e.prototype.validateWindowStorage=function(e){if(e!==eo.LocalStorage&&e!==eo.SessionStorage||!window[e])throw Ah.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}(),RA=function(){function e(t){if(this._urlString=t,TA.isEmpty(this._urlString))throw Rp.createUrlEmptyError();TA.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 TA.endsWith(t,"?")?t=t.slice(0,-1):TA.endsWith(t,"?/")&&(t=t.slice(0,-2)),TA.endsWith(t,"/")||(t+="/"),t}return e},e.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(e){throw Rp.createUrlParseError(e)}if(!e.HostNameAndPort||!e.PathSegments)throw Rp.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw Rp.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(e,t){return TA.isEmpty(t)?e:0>e.indexOf("?")?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]===L.COMMON||r[0]===L.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 Rp.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 n.PathSegments=r=r.filter(function(e){return e&&e.length>0}),!TA.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 Rp.createUrlParseError("Given url string: "+e);return n[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===Ej){var r=new e(n).getUrlComponents();return r.Protocol+"//"+r.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):EV},e.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):EV},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(TA.isEmpty(t))return{};var n=e.parseHash(t),r=TA.queryStringToObject(TA.isEmpty(n)?t:n);if(!r)throw TD.createHashNotDeserializedError(JSON.stringify(r));return r},e.getDeserializedQueryString=function(t){if(TA.isEmpty(t))return{};var n=e.parseQueryString(t),r=TA.queryStringToObject(TA.isEmpty(n)?t:n);if(!r)throw TD.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if(TA.isEmpty(t)||0>t.indexOf("="))return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e}(),RR=function(){function e(){}return e.extractBrowserRequestState=function(e,t){if(TA.isEmpty(t))return null;try{return RT.parseRequestState(e,t).libraryState.meta}catch(e){throw TD.createInvalidStateError(t,e)}},e.parseServerResponseFromHash=function(e){if(!e)return{};var t=new RA(e);return RA.getDeserializedHash(t.getHash())},e}(),RN=function(e){function t(t,n,r,o){var a=e.call(this,t,r,o)||this;return a.COOKIE_LIFE_MULTIPLIER=864e5,a.cacheConfig=n,a.logger=o,a.internalStorage=new AC,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation,a.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(a.migrateCacheEntries(),a.createKeyMaps()),a}return PB(t,e),t.prototype.setupBrowserStorage=function(e){switch(e){case eo.LocalStorage:case eo.SessionStorage:try{return new RD(e)}catch(e){this.logger.verbose(e)}}return this.cacheConfig.cacheLocation=eo.MemoryStorage,new AC},t.prototype.setupTemporaryCacheStorage=function(e,t){switch(t){case eo.LocalStorage:case eo.SessionStorage:try{return new RD(e||eo.SessionStorage)}catch(e){return this.logger.verbose(e),this.internalStorage}case eo.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,t=EI+"."+O.ID_TOKEN,n=EI+"."+O.CLIENT_INFO,r=EI+"."+O.ERROR,o=EI+"."+O.ERROR_DESC,a=[this.browserStorage.getItem(t),this.browserStorage.getItem(n),this.browserStorage.getItem(r),this.browserStorage.getItem(o)];[O.ID_TOKEN,O.CLIENT_INFO,O.ERROR,O.ERROR_DESC].forEach(function(t,n){return e.migrateCacheEntry(t,a[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(es.ACCOUNT_KEYS),n=this.getItem(es.TOKEN_KEYS+"."+this.clientId);t&&n?this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration."):this.browserStorage.getKeys().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 G.ID_TOKEN:if(AA.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 o=Rx.toObject(new AA,r),a=e.updateCredentialCacheKey(t,o);e.addTokenKey(a,G.ID_TOKEN);return}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 G.ACCESS_TOKEN:case G.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Rw.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 s=Rx.toObject(new Rw,r),a=e.updateCredentialCacheKey(t,s);e.addTokenKey(a,G.ACCESS_TOKEN);return}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 G.REFRESH_TOKEN:if(RS.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 l=Rx.toObject(new RS,r),a=e.updateCredentialCacheKey(t,l);e.addTokenKey(a,G.REFRESH_TOKEN);return}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)}}}if(e.isAccountKey(t)){var n=e.getItem(t);if(n){var c=e.validateAndParseJson(n);c&&Rg.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(e){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&&Rg.isAccountEntity(n)?Rx.toObject(new Rg,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(es.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(es.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(es.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 PO(this,void 0,void 0,function(){return PL(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,G.ID_TOKEN)},t.prototype.removeAccessToken=function(t){return PO(this,void 0,void 0,function(){return PL(this,function(n){return e.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,G.ACCESS_TOKEN),[2]})})},t.prototype.removeRefreshToken=function(t){e.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,G.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var e=this.getItem(es.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 G.ID_TOKEN:-1===n.idToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),n.idToken.push(e));break;case G.ACCESS_TOKEN:-1===n.accessToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),n.accessToken.push(e));break;case G.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),TD.createUnexpectedCredentialTypeError()}this.setItem(es.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 G.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 G.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+e+" from map");var o=n.accessToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),n.accessToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case G.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+e+" from map");var a=n.refreshToken.indexOf(e);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),n.refreshToken.splice(a,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),TD.createUnexpectedCredentialTypeError()}this.setItem(es.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,G.ID_TOKEN),null;var n=this.validateAndParseJson(t);return n&&AA.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Rx.toObject(new AA,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,G.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,G.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,G.ACCESS_TOKEN),null;var n=this.validateAndParseJson(t);return n&&Rw.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Rx.toObject(new Rw,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,G.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,G.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,G.REFRESH_TOKEN),null;var n=this.validateAndParseJson(t);return n&&RS.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Rx.toObject(new RS,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,G.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,G.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&&R_.isAppMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Rx.toObject(new R_,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&&RE.isServerTelemetryEntity(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Rx.toObject(new RE,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&&RP.isAuthorityMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Rx.toObject(new RP,n)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this;return this.internalStorage.getKeys().filter(function(t){return e.isAuthorityMetadata(t)})},t.prototype.setWrapperMetadata=function(e,t){this.internalStorage.setItem(el.WRAPPER_SKU,e),this.internalStorage.setItem(el.WRAPPER_VER,t)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(el.WRAPPER_SKU)||EV,this.internalStorage.getItem(el.WRAPPER_VER)||EV]},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(O.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(O.ACTIVE_ACCOUNT),r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var o=this.getAccountInfoByFilter({localAccountId:r})[0]||null;return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(o),o):null}var a=this.validateAndParseJson(t);return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:a.homeAccountId,localAccountId:a.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},t.prototype.setActiveAccount=function(e){var t=this.generateCacheKey(O.ACTIVE_ACCOUNT_FILTERS),n=this.generateCacheKey(O.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){return t?t===(n.idTokenClaims&&n.idTokenClaims.sid):!!e&&e===n.username});if(1===n.length)return n[0];if(n.length>1)throw TD.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&&RI.isThrottlingEntity(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Rx.toObject(new RI,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 o=this.temporaryCacheStorage.getItem(n);if(!o){if(this.cacheConfig.cacheLocation===eo.LocalStorage){var a=this.browserStorage.getItem(n);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),a}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),o},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 Pz(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return PO(this,void 0,void 0,function(){var e=this;return PL(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(EI)||-1!==t.indexOf(e.clientId))&&e.removeItem(t)}),this.internalStorage.clear(),[2]}})})},t.prototype.setItemCookie=function(e,t,n){var r=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/;SameSite=Lax;";n&&(r+="expires="+this.getCookieExpirationTime(n)+";"),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<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return EV},t.prototype.clearMsalCookies=function(){var e=this,t=EI+"."+this.clientId;document.cookie.split(";").forEach(function(n){for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t)){var r=n.split("=")[0];e.clearItemCookie(r)}})},t.prototype.clearItemCookie=function(e){this.setItemCookie(e,EV,-1)},t.prototype.getCookieExpirationTime=function(e){return new Date(new Date().getTime()+e*this.COOKIE_LIFE_MULTIPLIER).toUTCString()},t.prototype.getCache=function(){return this.browserStorage},t.prototype.setCache=function(){},t.prototype.generateCacheKey=function(e){return this.validateAndParseJson(e)?JSON.stringify(e):TA.startsWith(e,EI)||TA.startsWith(e,O.ADAL_ID_TOKEN)?e:EI+"."+this.clientId+"."+e},t.prototype.generateAuthorityKey=function(e){var t=RT.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(ea.AUTHORITY+"."+t)},t.prototype.generateNonceKey=function(e){var t=RT.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(ea.NONCE_IDTOKEN+"."+t)},t.prototype.generateStateKey=function(e){var t=RT.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(ea.REQUEST_STATE+"."+t)},t.prototype.getCachedAuthority=function(e){var t=this.generateStateKey(e),n=this.getTemporaryCache(t);if(!n)return null;var r=this.generateAuthorityKey(n);return this.getTemporaryCache(r)},t.prototype.updateCacheEntries=function(e,t,n,r,o){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var a=this.generateStateKey(e);this.setTemporaryCache(a,e,!1);var s=this.generateNonceKey(e);this.setTemporaryCache(s,t,!1);var l=this.generateAuthorityKey(e);if(this.setTemporaryCache(l,n,!1),o){var c={credential:o.homeAccountId,type:eb.HOME_ACCOUNT_ID};this.setTemporaryCache(ea.CCS_CREDENTIAL,JSON.stringify(c),!0)}else if(!TA.isEmpty(r)){var c={credential:r,type:eb.UPN};this.setTemporaryCache(ea.CCS_CREDENTIAL,JSON.stringify(c),!0)}},t.prototype.resetRequestCache=function(e){var t=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),TA.isEmpty(e)||this.getKeys().forEach(function(n){-1!==n.indexOf(e)&&t.removeItem(n)}),e&&(this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(ea.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(ea.ORIGIN_URI)),this.removeItem(this.generateCacheKey(ea.URL_HASH)),this.removeItem(this.generateCacheKey(ea.CORRELATION_ID)),this.removeItem(this.generateCacheKey(ea.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(ea.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},t.prototype.cleanRequestByState=function(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){var t=this.generateStateKey(e),n=this.temporaryCacheStorage.getItem(t);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+n),this.resetRequestCache(n||EV)}this.clearMsalCookies()},t.prototype.cleanRequestByInteractionType=function(e){var t=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(n){if(-1!==n.indexOf(ea.REQUEST_STATE)){var r=t.temporaryCacheStorage.getItem(n);if(r){var o=RR.extractBrowserRequestState(t.cryptoImpl,r);o&&o.interactionType===e&&(t.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+r),t.resetRequestCache(r))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},t.prototype.cacheCodeRequest=function(e,t){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var n=t.base64Encode(JSON.stringify(e));this.setTemporaryCache(ea.REQUEST_PARAMS,n,!0)},t.prototype.getCachedRequest=function(e,t){this.logger.trace("BrowserCacheManager.getCachedRequest called");var n=this.getTemporaryCache(ea.REQUEST_PARAMS,!0);if(!n)throw D4.createNoTokenRequestCacheError();var r=this.validateAndParseJson(t.base64Decode(n));if(!r)throw D4.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(ea.REQUEST_PARAMS)),TA.isEmpty(r.authority)){var o=this.generateAuthorityKey(e),a=this.getTemporaryCache(o);if(!a)throw D4.createNoCachedAuthorityError();r.authority=a}return r},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var e=this.getTemporaryCache(ea.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var t=this.validateAndParseJson(e);return t||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},t.prototype.isInteractionInProgress=function(e){var t=this.getInteractionInProgress();return e?t===this.clientId:!!t},t.prototype.getInteractionInProgress=function(){var e=EI+"."+ea.INTERACTION_STATUS_KEY;return this.getTemporaryCache(e,!1)},t.prototype.setInteractionInProgress=function(e){var t=EI+"."+ea.INTERACTION_STATUS_KEY;if(e)if(this.getInteractionInProgress())throw D4.createInteractionInProgressError();else this.setTemporaryCache(t,this.clientId,!1);else e||this.getInteractionInProgress()!==this.clientId||this.removeItem(t)},t.prototype.getLegacyLoginHint=function(){var e=this.getTemporaryCache(O.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(O.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var t=this.getTemporaryCache(O.ID_TOKEN,!0);t&&(this.removeItem(this.generateCacheKey(O.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var n=t||e;if(n){var r=new Rv(n,this.cryptoImpl);if(r.claims&&r.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),r.claims.preferred_username;if(r.claims&&r.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),r.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},t.prototype.updateCredentialCacheKey=function(e,t){var n=t.generateCredentialKey();if(e!==n){var r=this.getItem(e);if(r)return this.removeItem(e),this.setItem(n,r),this.logger.verbose("Updated an outdated "+t.credentialType+" cache key"),n;this.logger.error("Attempted to update an outdated "+t.credentialType+" cache key but no item matching the outdated key was found in storage")}return e},t.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(ea.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(e){this.setTemporaryCache(ea.REDIRECT_CONTEXT,e,!0)},t}(Rx),RB=function(e,t){return new RN(e,{cacheLocation:eo.MemoryStorage,temporaryCacheLocation:eo.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1},AT,t)};!function(e){e.AAD="AAD",e.OIDC="OIDC"}(ex||(ex={})),function(e){e[e.None=0]="None",e.AzurePublic="https://login.microsoftonline.com",e.AzurePpe="https://login.windows-ppe.net",e.AzureChina="https://login.chinacloudapi.cn",e.AzureGermany="https://login.microsoftonline.de",e.AzureUsGovernment="https://login.microsoftonline.us"}(eC||(eC={}));var RM={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},RF={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ev.Info,correlationId:EV},RO={sendGetRequestAsync:function(){return ES(this,void 0,void 0,function(){var e;return E_(this,function(t){throw e="Network interface - sendGetRequestAsync() has not been implemented",PG.createUnexpectedError(e)})})},sendPostRequestAsync:function(){return ES(this,void 0,void 0,function(){var e;return E_(this,function(t){throw e="Network interface - sendPostRequestAsync() has not been implemented",PG.createUnexpectedError(e)})})}},RL={sku:EP,version:Rb,cpu:EV,os:EV},RH={clientSecret:EV,clientAssertion:void 0},Rz={azureCloudInstance:eC.None,tenant:""+ED},RV={application:{appName:"",appVersion:""}};function RU(e){var t=e.authOptions,n=e.systemOptions,r=e.loggerOptions,o=e.storageInterface,a=e.networkInterface,s=e.cryptoInterface,l=e.clientCredentials,c=e.libraryInfo,u=e.telemetry,d=e.serverTelemetryManager,p=e.persistencePlugin,f=e.serializableCache,h=Ew(Ew({},RF),r);return{authOptions:Rj(t),systemOptions:Ew(Ew({},RM),n),loggerOptions:h,storageInterface:o||new RC(t.clientId,AT,new A_(h)),networkInterface:a||RO,cryptoInterface:s||AT,clientCredentials:l||RH,libraryInfo:Ew(Ew({},RL),c),telemetry:Ew(Ew({},RV),u),serverTelemetryManager:d||null,persistencePlugin:p||null,serializableCache:f||null}}function Rj(e){return Ew({clientCapabilities:[],azureCloudOptions:Rz,skipAuthorityMetadataCache:!1},e)}var RW={sendGetRequestAsync:function(){var e="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(PG.createUnexpectedError(e))},sendPostRequestAsync:function(){var e="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(PG.createUnexpectedError(e))}},Rq=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return PO(this,void 0,void 0,function(){var n,r,o;return PL(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:ei.GET,headers:this.getFetchHeaders(t)})];case 1:return n=a.sent(),[3,3];case 2:if(r=a.sent(),window.navigator.onLine)throw D4.createGetRequestFailedError(r,e);throw D4.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),o={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(o.body=a.sent(),o.status=n.status,o)];case 5:throw a.sent(),D4.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},e.prototype.sendPostRequestAsync=function(e,t){return PO(this,void 0,void 0,function(){var n,r,o,a;return PL(this,function(s){switch(s.label){case 0:n=t&&t.body||EV,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:ei.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return r=s.sent(),[3,4];case 3:if(o=s.sent(),window.navigator.onLine)throw D4.createPostRequestFailedError(o,e);throw D4.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),a={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 5:return[2,(a.body=s.sent(),a.status=r.status,a)];case 6:throw s.sent(),D4.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},e.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var n=e.headers;return Object.keys(n).forEach(function(e){t.append(e,n[e])}),t},e.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(e,n){t[n]=e}),t},e}(),RG=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return PO(this,void 0,void 0,function(){return PL(this,function(n){return[2,this.sendRequestAsync(e,ei.GET,t)]})})},e.prototype.sendPostRequestAsync=function(e,t){return PO(this,void 0,void 0,function(){return PL(this,function(n){return[2,this.sendRequestAsync(e,ei.POST,t)]})})},e.prototype.sendRequestAsync=function(e,t,n){var r=this;return new Promise(function(o,a){var s=new XMLHttpRequest;if(s.open(t,e,!0),r.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&(t===ei.POST?a(D4.createPostRequestFailedError("Failed with status "+s.status,e)):a(D4.createGetRequestFailedError("Failed with status "+s.status,e)));try{var n=JSON.parse(s.responseText),l={headers:r.getHeaderDict(s),body:n,status:s.status};o(l)}catch(t){a(D4.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?t===ei.POST?a(D4.createPostRequestFailedError("Failed with status "+s.status,e)):a(D4.createGetRequestFailedError("Failed with status "+s.status,e)):a(D4.createNoNetworkConnectivityError())},t===ei.POST&&n&&n.body)s.send(n.body);else if(t===ei.GET)s.send();else throw D4.createHttpMethodNotImplementedError(t)})},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().trim().split(/[\r\n]+/),n={};return t.forEach(function(e){var t=e.split(": "),r=t.shift(),o=t.join(": ");r&&o&&(n[r]=o)}),n},e}(),RK=function(){function e(){}return e.clearHash=function(e){e.location.hash=EV,"function"==typeof e.history.replaceState&&e.history.replaceState(null,EV,""+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("#"):EV},e.isInIframe=function(){return window.parent!==window},e.isInPopup=function(){return"u">typeof window&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf(Pb+".")},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var e=new RA(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Rq:new RG},e.blockReloadInHiddenIframes=function(){if(RA.hashContainsKnownProperties(window.location.hash)&&e.isInIframe())throw D4.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===eu.Redirect&&r&&!n)throw D4.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw D4.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(e){if(!e)throw D4.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw D4.createNativeBrokerCalledBeforeInitialize()},e.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/")>0;return t>0||n>0||r},e}(),RX=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}(),RY=6e4,R$=6e3,RQ=3e4,RJ=2e3;function RZ(e,t){var n=e.auth,r=e.cache,o=e.system,a=e.telemetry,s={clientId:EV,authority:""+ET,knownAuthorities:[],cloudDiscoveryMetadata:EV,authorityMetadata:EV,redirectUri:EV,postLogoutRedirectUri:EV,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:ex.AAD,azureCloudOptions:{azureCloudInstance:eC.None,tenant:EV},skipAuthorityMetadataCache:!1},l={cacheLocation:eo.SessionStorage,temporaryCacheLocation:eo.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!r&&r.cacheLocation===eo.LocalStorage},c={loggerCallback:function(){},logLevel:ev.Info,piiLoggingEnabled:!1},u=PM(PM({},RM),{loggerOptions:c,networkClient:t?RK.getBrowserNetworkClient():RW,navigationClient:new RX,loadFrameTimeout:0,windowHashTimeout:(null==o?void 0:o.loadFrameTimeout)||RY,iframeHashTimeout:(null==o?void 0:o.loadFrameTimeout)||R$,navigateFrameWait:t&&RK.detectIEOrEdge()?500:0,redirectNavigationTimeout:RQ,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(null==o?void 0:o.nativeBrokerHandshakeTimeout)||RJ,pollIntervalMilliseconds:Px,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),d=PM(PM({},o),{loggerOptions:(null==o?void 0:o.loggerOptions)||c}),p={application:{appName:EV,appVersion:EV}};return{auth:PM(PM({},s),n),cache:PM(PM({},l),r),system:PM(PM({},u),d),telemetry:PM(PM({},p),a)}}var R0="@azure/msal-browser",R1="2.37.0";!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"}(ek||(ek={}));var R2=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("u">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(){"u">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(){"u">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 o=this;if("u">typeof window){var a={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){o.logger.verbose("Emitting event to callback "+n+": "+e),t.apply(null,[a])})}},e.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if("object"!=typeof n||!Rg.isAccountEntity(n))return;var r=Rx.toObject(new Rg,n).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(ek.ACCOUNT_ADDED,void 0,r)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(ek.ACCOUNT_REMOVED,void 0,r))}catch(e){return}},e}(),R5=function(){function e(){}return e.generateThrottlingStorageKey=function(e){return Pp+"."+JSON.stringify(e)},e.preProcess=function(t,n){var r,o=e.generateThrottlingStorageKey(n),a=t.getThrottlingCache(o);if(a){if(a.throttleTime<Date.now())return void t.removeItem(o);throw new PK((null==(r=a.errorCodes)?void 0:r.join(" "))||EV,a.errorMessage,a.subError)}},e.postProcess=function(t,n,r){if(e.checkResponseStatus(r)||e.checkResponseForRetryAfter(r)){var o={throttleTime:e.calculateThrottleTime(parseInt(r.headers[F.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};t.setThrottlingCache(e.generateThrottlingStorageKey(n),o)}},e.checkResponseStatus=function(e){return 429===e.status||e.status>=500&&e.status<600},e.checkResponseForRetryAfter=function(e){return!!e.headers&&e.headers.hasOwnProperty(F.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||Pu),n+Pd))},e.removeThrottle=function(e,t,n,r){var o={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},a=this.generateThrottlingStorageKey(o);e.removeItem(a)},e}(),R4=function(){function e(e,t){this.networkClient=e,this.cacheManager=t}return e.prototype.sendPostRequest=function(e,t,n){return ES(this,void 0,void 0,function(){var r,o;return E_(this,function(a){switch(a.label){case 0:R5.preProcess(this.cacheManager,e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return r=a.sent(),[3,4];case 3:if((o=a.sent())instanceof PG)throw o;throw TD.createNetworkError(t,o);case 4:return R5.postProcess(this.cacheManager,e,r),[2,r]}})})},e}(),R3=function(){function e(){}return e.validateRedirectUri=function(e){if(TA.isEmpty(e))throw Rp.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var n in E5)t.push(E5[n]);if(0>t.indexOf(e))throw Rp.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(e){throw Rp.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if(TA.isEmpty(e)||TA.isEmpty(t))throw Rp.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if(0>[E4,E3].indexOf(e))throw Rp.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){return""!==e[1]}))):{}},e}(),R6=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(H.RESPONSE_TYPE,encodeURIComponent(EL))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(H.RESPONSE_TYPE,encodeURIComponent(EQ+" "+EJ))},e.prototype.addResponseMode=function(e){this.parameters.set(H.RESPONSE_MODE,encodeURIComponent(e||U.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(H.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var n=new Rf(t?EE(e||[],E1):e||[]);this.parameters.set(H.SCOPE,encodeURIComponent(n.printScopes()))},e.prototype.addClientId=function(e){this.parameters.set(H.CLIENT_ID,encodeURIComponent(e))},e.prototype.addRedirectUri=function(e){R3.validateRedirectUri(e),this.parameters.set(H.REDIRECT_URI,encodeURIComponent(e))},e.prototype.addPostLogoutRedirectUri=function(e){R3.validateRedirectUri(e),this.parameters.set(H.POST_LOGOUT_URI,encodeURIComponent(e))},e.prototype.addIdTokenHint=function(e){this.parameters.set(H.ID_TOKEN_HINT,encodeURIComponent(e))},e.prototype.addDomainHint=function(e){this.parameters.set(V.DOMAIN_HINT,encodeURIComponent(e))},e.prototype.addLoginHint=function(e){this.parameters.set(V.LOGIN_HINT,encodeURIComponent(e))},e.prototype.addCcsUpn=function(e){this.parameters.set(F.CCS_HEADER,encodeURIComponent("UPN:"+e))},e.prototype.addCcsOid=function(e){this.parameters.set(F.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},e.prototype.addSid=function(e){this.parameters.set(V.SID,encodeURIComponent(e))},e.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);R3.validateClaims(n),this.parameters.set(H.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(e){this.parameters.set(H.CLIENT_REQUEST_ID,encodeURIComponent(e))},e.prototype.addLibraryInfo=function(e){this.parameters.set(H.X_CLIENT_SKU,e.sku),this.parameters.set(H.X_CLIENT_VER,e.version),e.os&&this.parameters.set(H.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(H.X_CLIENT_CPU,e.cpu)},e.prototype.addApplicationTelemetry=function(e){(null==e?void 0:e.appName)&&this.parameters.set(H.X_APP_NAME,e.appName),(null==e?void 0:e.appVersion)&&this.parameters.set(H.X_APP_VER,e.appVersion)},e.prototype.addPrompt=function(e){R3.validatePrompt(e),this.parameters.set(""+H.PROMPT,encodeURIComponent(e))},e.prototype.addState=function(e){TA.isEmpty(e)||this.parameters.set(H.STATE,encodeURIComponent(e))},e.prototype.addNonce=function(e){this.parameters.set(H.NONCE,encodeURIComponent(e))},e.prototype.addCodeChallengeParams=function(e,t){if(R3.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(H.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(H.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw Rp.createInvalidCodeChallengeParamsError()},e.prototype.addAuthorizationCode=function(e){this.parameters.set(H.CODE,encodeURIComponent(e))},e.prototype.addDeviceCode=function(e){this.parameters.set(H.DEVICE_CODE,encodeURIComponent(e))},e.prototype.addRefreshToken=function(e){this.parameters.set(H.REFRESH_TOKEN,encodeURIComponent(e))},e.prototype.addCodeVerifier=function(e){this.parameters.set(H.CODE_VERIFIER,encodeURIComponent(e))},e.prototype.addClientSecret=function(e){this.parameters.set(H.CLIENT_SECRET,encodeURIComponent(e))},e.prototype.addClientAssertion=function(e){TA.isEmpty(e)||this.parameters.set(H.CLIENT_ASSERTION,encodeURIComponent(e))},e.prototype.addClientAssertionType=function(e){TA.isEmpty(e)||this.parameters.set(H.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},e.prototype.addOboAssertion=function(e){this.parameters.set(H.OBO_ASSERTION,encodeURIComponent(e))},e.prototype.addRequestTokenUse=function(e){this.parameters.set(H.REQUESTED_TOKEN_USE,encodeURIComponent(e))},e.prototype.addGrantType=function(e){this.parameters.set(H.GRANT_TYPE,encodeURIComponent(e))},e.prototype.addClientInfo=function(){this.parameters.set(E8,"1")},e.prototype.addExtraQueryParameters=function(e){var t=this;Object.keys(R3.sanitizeEQParams(e,this.parameters)).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(e){throw Rp.createInvalidClaimsRequestError()}else n={};return t&&t.length>0&&(n.hasOwnProperty(z.ACCESS_TOKEN)||(n[z.ACCESS_TOKEN]={}),n[z.ACCESS_TOKEN][z.XMS_CC]={values:t}),JSON.stringify(n)},e.prototype.addUsername=function(e){this.parameters.set(Q.username,encodeURIComponent(e))},e.prototype.addPassword=function(e){this.parameters.set(Q.password,encodeURIComponent(e))},e.prototype.addPopToken=function(e){TA.isEmpty(e)||(this.parameters.set(H.TOKEN_TYPE,Y.POP),this.parameters.set(H.REQ_CNF,encodeURIComponent(e)))},e.prototype.addSshJwk=function(e){TA.isEmpty(e)||(this.parameters.set(H.TOKEN_TYPE,Y.SSH),this.parameters.set(H.REQ_CNF,encodeURIComponent(e)))},e.prototype.addServerTelemetry=function(e){this.parameters.set(H.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(H.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(H.X_MS_LIB_CAPABILITY,Pf)},e.prototype.addLogoutHint=function(e){this.parameters.set(H.LOGOUT_HINT,encodeURIComponent(e))},e.prototype.createQueryString=function(){var e=[];return this.parameters.forEach(function(t,n){e.push(n+"="+t)}),e.join("&")},e}(),R8=function(){function e(e,t){this.config=RU(e),this.logger=new A_(this.config.loggerOptions,Ry,Rb),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new R4(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[F.CONTENT_TYPE]=Ez,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case eb.HOME_ACCOUNT_ID:try{var n=Rm(e.credential);t[F.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case eb.UPN:t[F.CCS_HEADER]="UPN: "+e.credential}return t},e.prototype.executePostToTokenEndpoint=function(e,t,n,r){return ES(this,void 0,void 0,function(){var o;return E_(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(r,e,{body:t,headers:n})];case 1:return o=a.sent(),this.config.serverTelemetryManager&&o.status<500&&429!==o.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}})})},e.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw TD.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},e.prototype.createTokenQueryParameters=function(e){var t=new R6;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},e}(),R9=function(){return function(e,t,n,r,o){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=r||null,this.appMetadata=o||null}}();!function(e){e.SW="sw",e.UHW="uhw"}(ew||(ew={}));var R7=function(){function e(e,t){this.cryptoUtils=e,this.performanceClient=t}return e.prototype.generateCnf=function(e){var t,n;return ES(this,void 0,void 0,function(){var r,o,a;return E_(this,function(s){switch(s.label){case 0:return null==(t=this.performanceClient)||t.addQueueMeasurement(eh.PopTokenGenerateCnf,e.correlationId),null==(n=this.performanceClient)||n.setPreQueueTime(eh.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return r=s.sent(),o=this.cryptoUtils.base64Encode(JSON.stringify(r)),a={kid:r.kid,reqCnfString:o},[4,this.cryptoUtils.hashString(o)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}})})},e.prototype.generateKid=function(e){var t;return ES(this,void 0,void 0,function(){return E_(this,function(n){switch(n.label){case 0:return null==(t=this.performanceClient)||t.addQueueMeasurement(eh.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return[2,{kid:n.sent(),xms_ksl:ew.SW}]}})})},e.prototype.signPopToken=function(e,t,n){return ES(this,void 0,void 0,function(){return E_(this,function(r){return[2,this.signPayload(e,t,n)]})})},e.prototype.signPayload=function(e,t,n,r){return ES(this,void 0,void 0,function(){var o,a,s,l,c,u;return E_(this,function(d){switch(d.label){case 0:return o=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,l=n.shrNonce,u=null==(c=a?new RA(a):void 0)?void 0:c.getUrlComponents(),[4,this.cryptoUtils.signJwt(Ew({at:e,ts:Rk.nowSeconds(),m:null==o?void 0:o.toUpperCase(),u:null==u?void 0:u.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:null==u?void 0:u.AbsolutePath,q:(null==u?void 0:u.QueryString)?[[],u.QueryString]:void 0,client_claims:s||void 0},r),t,n.correlationId)];case 1:return[2,d.sent()]}})})},e}(),Ne=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}(),Nt=function(){function e(e,t,n,r,o,a,s){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=r,this.serializableCache=o,this.persistencePlugin=a,this.performanceClient=s}return e.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?TD.createStateNotFoundError("Cached State"):TD.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw TD.createStateMismatchError();if(e.error||e.error_description||e.suberror){if(P0.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new P0(e.error||EV,e.error_description,e.suberror,e.timestamp||EV,e.trace_id||EV,e.correlation_id||EV,e.claims||EV);throw new PK(e.error||EV,e.error_description,e.suberror)}e.client_info&&Rh(e.client_info,n)},e.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(P0.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new P0(e.error,e.error_description,e.suberror,e.timestamp||EV,e.trace_id||EV,e.correlation_id||EV,e.claims||EV);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new PK(e.error,t,e.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,o,a,s,l,c,u){var d;return ES(this,void 0,void 0,function(){var p,f,h,m,g,v;return E_(this,function(y){switch(y.label){case 0:if(null==(d=this.performanceClient)||d.addQueueMeasurement(eh.HandleServerTokenResponse,t.correlation_id),t.id_token){if(p=new Rv(t.id_token||EV,this.cryptoObj),a&&!TA.isEmpty(a.nonce)&&p.claims.nonce!==a.nonce)throw TD.createNonceMismatchError();if(o.maxAge||0===o.maxAge){if(!(f=p.claims.auth_time))throw TD.createAuthTimeNotFoundError();Rv.checkMaxAge(f,o.maxAge)}}this.homeAccountIdentifier=Rg.generateHomeAccountId(t.client_info||EV,n.authorityType,this.logger,this.cryptoObj,p),a&&a.state&&(h=RT.parseRequestState(this.cryptoObj,a.state)),t.key_id=t.key_id||o.sshKid||void 0,m=this.generateCacheRecord(t,n,r,o,p,s,a),y.label=1;case 1:if(y.trys.push([1,,5,8]),!(this.persistencePlugin&&this.serializableCache))return[3,3];return this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),g=new Ne(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(g)];case 2:y.sent(),y.label=3;case 3:if(l&&!c&&m.account&&(v=m.account.generateAccountKey(),!this.cacheStorage.getAccount(v)))return 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,m,!1,o,p,h,void 0,u)];return[4,this.cacheStorage.saveCacheRecord(m)];case 4:return y.sent(),[3,8];case 5:if(!(this.persistencePlugin&&this.serializableCache&&g))return[3,7];return this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(g)];case 6:y.sent(),y.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,m,!1,o,p,h,t,u)]}})})},e.prototype.generateCacheRecord=function(e,t,n,r,o,a,s){var l,c,u=t.getPreferredCache();if(TA.isEmpty(u))throw TD.createInvalidCacheEnvironmentError();!TA.isEmpty(e.id_token)&&o&&(l=AA.createIdTokenEntity(this.homeAccountIdentifier,u,e.id_token||EV,this.clientId,o.claims.tid||EV),c=this.generateAccountEntity(e,o,t,s));var d=null;if(!TA.isEmpty(e.access_token)){var p=e.scope?Rf.fromString(e.scope):new Rf(r.scopes||[]),f=("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,h=("string"==typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,m=("string"==typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,g=n+f,v=g+h,y=m&&m>0?n+m:void 0;d=Rw.createAccessTokenEntity(this.homeAccountIdentifier,u,e.access_token||EV,this.clientId,o?o.claims.tid||EV:t.tenant,p.printScopes(),g,v,this.cryptoObj,y,e.token_type,a,e.key_id,r.claims,r.requestedClaimsHash)}var b=null;TA.isEmpty(e.refresh_token)||(b=RS.createRefreshTokenEntity(this.homeAccountIdentifier,u,e.refresh_token||EV,this.clientId,e.foci,a));var x=null;return TA.isEmpty(e.foci)||(x=R_.createAppMetadataEntity(this.clientId,u,e.foci)),new R9(c,l,d,b,x)},e.prototype.generateAccountEntity=function(e,t,n,r){var o=n.authorityType,a=r?r.cloud_graph_host_name:EV,s=r?r.msgraph_host:EV;if(o===ey.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Rg.createGenericAccount(this.homeAccountIdentifier,t,n,a,s);if(TA.isEmpty(e.client_info)&&"AAD"===n.protocolMode)throw TD.createClientInfoEmptyError();return e.client_info?Rg.createAccount(e.client_info,this.homeAccountIdentifier,t,n,a,s):Rg.createGenericAccount(this.homeAccountIdentifier,t,n,a,s)},e.generateAuthenticationResult=function(e,t,n,r,o,a,s,l,c){var u,d,p;return ES(this,void 0,void 0,function(){var f,h,m,g,v,y,b,x,C,k,w;return E_(this,function(S){switch(S.label){case 0:if(f=EV,h=[],m=null,v=EV,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==Y.POP)return[3,2];if(y=new R7(e),x=(b=n.accessToken).secret,!(C=b.keyId))throw TD.createKeyIdMissingError();return[4,y.signPopToken(x,C,o)];case 1:return f=S.sent(),[3,3];case 2:f=n.accessToken.secret,S.label=3;case 3:h=Rf.fromString(n.accessToken.target).asArray(),m=new Date(1e3*Number(n.accessToken.expiresOn)),g=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),S.label=4;case 4:return n.appMetadata&&(v=n.appMetadata.familyId===E9?E9:EV),k=(null==a?void 0:a.claims.oid)||(null==a?void 0:a.claims.sub)||EV,w=(null==a?void 0:a.claims.tid)||EV,(null==l?void 0:l.spa_accountid)&&n.account&&(n.account.nativeAccountId=null==l?void 0:l.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:k,tenantId:w,scopes:h,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:EV,idTokenClaims:a?a.claims:{},accessToken:f,fromCache:r,expiresOn:m,correlationId:o.correlationId,requestId:c||EV,extExpiresOn:g,familyId:v,tokenType:(null==(u=n.accessToken)?void 0:u.tokenType)||EV,state:s?s.userRequestState:EV,cloudGraphHostName:(null==(d=n.account)?void 0:d.cloudGraphHostName)||EV,msGraphHost:(null==(p=n.account)?void 0:p.msGraphHost)||EV,code:null==l?void 0:l.spa_code,fromNativeBroker:!1}]}})})},e}(),Nn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.includeRedirectUri=!0,r}return Ek(t,e),t.prototype.getAuthCodeUrl=function(e){var t,n;return ES(this,void 0,void 0,function(){var r;return E_(this,function(o){switch(o.label){case 0:return null==(t=this.performanceClient)||t.addQueueMeasurement(eh.GetAuthCodeUrl,e.correlationId),null==(n=this.performanceClient)||n.setPreQueueTime(eh.AuthClientCreateQueryString,e.correlationId),[4,this.createAuthCodeUrlQueryString(e)];case 1:return r=o.sent(),[2,RA.appendQueryString(this.authority.authorizationEndpoint,r)]}})})},t.prototype.acquireToken=function(e,t){var n,r,o,a,s,l;return ES(this,void 0,void 0,function(){var c,u,d,p,f,h,m=this;return E_(this,function(g){switch(g.label){case 0:if(!e||!e.code)throw TD.createTokenRequestCannotBeMadeError();return null==(n=this.performanceClient)||n.addQueueMeasurement(eh.AuthClientAcquireToken,e.correlationId),c=null==(r=this.performanceClient)?void 0:r.startMeasurement("AuthCodeClientAcquireToken",e.correlationId),this.logger.info("in acquireToken call in auth-code client"),u=Rk.nowSeconds(),null==(o=this.performanceClient)||o.setPreQueueTime(eh.AuthClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(this.authority,e)];case 1:return p=null==(a=(d=g.sent()).headers)?void 0:a[F.X_MS_REQUEST_ID],(f=null==(s=d.headers)?void 0:s[F.X_MS_HTTP_VERSION])&&(null==c||c.addStaticFields({httpVerAuthority:f})),(h=new Nt(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient)).validateTokenResponse(d.body),null==(l=this.performanceClient)||l.setPreQueueTime(eh.HandleServerTokenResponse,e.correlationId),[2,h.handleServerTokenResponse(d.body,this.authority,u,e,t,void 0,void 0,void 0,p).then(function(e){return null==c||c.endMeasurement({success:!0}),e}).catch(function(t){throw m.logger.verbose("Error in fetching token in ACC",e.correlationId),null==c||c.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t})]}})})},t.prototype.handleFragmentResponse=function(e,t){var n=new Nt(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),r=new RA(e),o=RA.getDeserializedHash(r.getHash());if(n.validateServerAuthorizationCodeResponse(o,t,this.cryptoUtils),!o.code)throw TD.createNoAuthCodeInServerResponseError();return Ew(Ew({},o),{code:o.code})},t.prototype.getLogoutUri=function(e){if(!e)throw Rp.createEmptyLogoutRequestError();var t=this.createLogoutUrlQueryString(e);return RA.appendQueryString(this.authority.endSessionEndpoint,t)},t.prototype.executeTokenRequest=function(e,t){var n,r;return ES(this,void 0,void 0,function(){var o,a,s,l,c,u,d;return E_(this,function(p){switch(p.label){case 0:return null==(n=this.performanceClient)||n.addQueueMeasurement(eh.AuthClientExecuteTokenRequest,t.correlationId),null==(r=this.performanceClient)||r.setPreQueueTime(eh.AuthClientCreateTokenRequestBody,t.correlationId),o=this.createTokenQueryParameters(t),a=RA.appendQueryString(e.tokenEndpoint,o),[4,this.createTokenRequestBody(t)];case 1:if(s=p.sent(),l=void 0,t.clientInfo)try{c=Rh(t.clientInfo,this.cryptoUtils),l={credential:""+c.uid+q.CLIENT_INFO_SEPARATOR+c.utid,type:eb.HOME_ACCOUNT_ID}}catch(e){this.logger.verbose("Could not parse client info for CCS Header: "+e)}return u=this.createTokenRequestHeaders(l||t.ccsCredential),d={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,u,d)]}})})},t.prototype.createTokenRequestBody=function(e){var t,n;return ES(this,void 0,void 0,function(){var r,o,a,s,l,c,u,d;return E_(this,function(p){switch(p.label){case 0:if(null==(t=this.performanceClient)||t.addQueueMeasurement(eh.AuthClientCreateTokenRequestBody,e.correlationId),(r=new R6).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):R3.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&&(o=this.config.clientCredentials.clientAssertion,r.addClientAssertion(o.assertion),r.addClientAssertionType(o.assertionType)),r.addGrantType(j.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme!==Y.POP)return[3,2];return a=new R7(this.cryptoUtils,this.performanceClient),null==(n=this.performanceClient)||n.setPreQueueTime(eh.PopTokenGenerateCnf,e.correlationId),[4,a.generateCnf(e)];case 1:return s=p.sent(),r.addPopToken(s.reqCnfString),[3,3];case 2:if(e.authenticationScheme===Y.SSH)if(e.sshJwk)r.addSshJwk(e.sshJwk);else throw Rp.createMissingSshJwkError();p.label=3;case 3:if(l=e.correlationId||this.config.cryptoInterface.createNewGuid(),r.addCorrelationId(l),(!TA.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),c=void 0,e.clientInfo)try{u=Rh(e.clientInfo,this.cryptoUtils),c={credential:""+u.uid+q.CLIENT_INFO_SEPARATOR+u.utid,type:eb.HOME_ACCOUNT_ID}}catch(e){this.logger.verbose("Could not parse client info for CCS Header: "+e)}else c=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case eb.HOME_ACCOUNT_ID:try{u=Rm(c.credential),r.addCcsOid(u)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case eb.UPN:r.addCcsUpn(c.credential)}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),!e.enableSpaAuthorizationCode||e.tokenBodyParameters&&e.tokenBodyParameters[H.RETURN_SPA_CODE]||r.addExtraQueryParameters(((d={})[H.RETURN_SPA_CODE]="1",d)),[2,r.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(e){var t;return ES(this,void 0,void 0,function(){var n,r,o,a,s,l,c;return E_(this,function(u){switch(u.label){case 0:if(null==(t=this.performanceClient)||t.addQueueMeasurement(eh.AuthClientCreateQueryString,e.correlationId),(n=new R6).addClientId(this.config.authOptions.clientId),r=EE(e.scopes||[],e.extraScopesToConsent||[]),n.addScopes(r),n.addRedirectUri(e.redirectUri),o=e.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(o),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!==E5.SELECT_ACCOUNT)if(e.sid&&e.prompt===E5.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)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(s);try{l=Rm(e.account.homeAccountId),n.addCcsOid(l)}catch(e){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(a&&e.prompt===E5.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(a);try{l=Rm(e.account.homeAccountId),n.addCcsOid(l)}catch(e){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{l=Rm(e.account.homeAccountId),n.addCcsOid(l)}catch(e){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");if(e.nonce&&n.addNonce(e.nonce),e.state&&n.addState(e.state),(!TA.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))return[3,2];return[4,new R7(this.cryptoUtils).generateCnf(e)];case 1:c=u.sent(),n.addPopToken(c.reqCnfHash),u.label=2;case 2:return[2,n.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(e){var t=new R6;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.sid)||null},t.prototype.extractLoginHint=function(e){var t;return(null==(t=e.idTokenClaims)?void 0:t.login_hint)||null},t}(R8);function Nr(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}var No={"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"}},Ni={"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"]}]}};function Na(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}function Ns(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}var Nl=function(){function e(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return e.prototype.detectRegion=function(t,n){var r,o,a,s;return ES(this,void 0,void 0,function(){var l,c,u,d,p;return E_(this,function(f){switch(f.label){case 0:if(null==(r=this.performanceClient)||r.addQueueMeasurement(eh.RegionDiscoveryDetectRegion,this.correlationId),l=t)return[3,8];c=e.IMDS_OPTIONS,f.label=1;case 1:return f.trys.push([1,6,,7]),null==(o=this.performanceClient)||o.setPreQueueTime(eh.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(Eq,c)];case 2:if((u=f.sent()).status===J.httpSuccess&&(l=u.body,n.region_source=Z.IMDS),u.status!==J.httpBadRequest)return[3,5];return null==(a=this.performanceClient)||a.setPreQueueTime(eh.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(c)];case 3:if(!(d=f.sent()))return n.region_source=Z.FAILED_AUTO_DETECTION,[2,null];return null==(s=this.performanceClient)||s.setPreQueueTime(eh.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(d,c)];case 4:(p=f.sent()).status===J.httpSuccess&&(l=p.body,n.region_source=Z.IMDS),f.label=5;case 5:return[3,7];case 6:return f.sent(),n.region_source=Z.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:n.region_source=Z.ENVIRONMENT_VARIABLE,f.label=9;case 9:return l||(n.region_source=Z.FAILED_AUTO_DETECTION),[2,l||null]}})})},e.prototype.getRegionFromIMDS=function(e,t){var n;return ES(this,void 0,void 0,function(){return E_(this,function(r){return null==(n=this.performanceClient)||n.addQueueMeasurement(eh.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(EW+"?api-version="+e+"&format=text",t,EG)]})})},e.prototype.getCurrentVersion=function(e){var t;return ES(this,void 0,void 0,function(){var n;return E_(this,function(r){switch(r.label){case 0:null==(t=this.performanceClient)||t.addQueueMeasurement(eh.RegionDiscoveryGetCurrentVersion,this.correlationId),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(EW+"?format=json",e)];case 2:if((n=r.sent()).status===J.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0)return[2,n.body["newest-versions"][0]];return[2,null];case 3:return r.sent(),[2,null];case 4:return[2]}})})},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e}(),Nc=function(){function e(e,t,n,r,o,a,s){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=o,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new Nl(t,this.performanceClient,this.correlationId)}return Object.defineProperty(e.prototype,"authorityType",{get:function(){if(this.canonicalAuthorityUrlComponents.HostNameAndPort.endsWith(EB))return ey.Ciam;var e=this.canonicalAuthorityUrlComponents.PathSegments;if(e.length)switch(e[0].toLowerCase()){case EA:return ey.Adfs;case ER:return ey.Dsts}return ey.Default},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 RA(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()){var e=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(e)}throw TD.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(e)}throw TD.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(e)}throw TD.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw TD.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}throw TD.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.issuer);return this.replaceTenant(e)}throw TD.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(e)}throw TD.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),e.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},e.prototype.replacePath=function(e){var t=e,n=new RA(this.metadata.canonical_authority).getUrlComponents().PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(e,r){var o=n[r];e!==o&&(t=t.replace("/"+o+"/","/"+e+"/"))}),t},Object.defineProperty(e.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===ey.Adfs||this.authorityType===ey.Dsts||this.protocolMode===ex.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 ES(this,void 0,void 0,function(){var r,o,a,s;return E_(this,function(l){switch(l.label){case 0:return null==(e=this.performanceClient)||e.addQueueMeasurement(eh.AuthorityResolveEndpointsAsync,this.correlationId),(r=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(r=new RP).updateCanonicalAuthority(this.canonicalAuthority),null==(t=this.performanceClient)||t.setPreQueueTime(eh.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(r)];case 1:return o=l.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,r.preferred_network),null==(n=this.performanceClient)||n.setPreQueueTime(eh.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(r)];case 2:return a=l.sent(),o!==X.CACHE&&a!==X.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,o,a,s;return ES(this,void 0,void 0,function(){var l,c;return E_(this,function(u){switch(u.label){case 0:if(null==(t=this.performanceClient)||t.addQueueMeasurement(eh.AuthorityUpdateEndpointMetadata,this.correlationId),l=this.getEndpointMetadataFromConfig())return e.updateEndpointMetadata(l,!1),[2,X.CONFIG];if(this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired())return[2,X.CACHE];return null==(n=this.performanceClient)||n.setPreQueueTime(eh.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()];case 1:if(!(l=u.sent()))return[3,4];if(!(null==(r=this.authorityOptions.azureRegionConfiguration)?void 0:r.azureRegion))return[3,3];return null==(o=this.performanceClient)||o.setPreQueueTime(eh.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)];case 2:l=u.sent(),u.label=3;case 3:return e.updateEndpointMetadata(l,!0),[2,X.NETWORK];case 4:if(!((c=this.getEndpointMetadataFromHardcodedValues())&&!this.authorityOptions.skipAuthorityMetadataCache))return[3,7];if(!(null==(a=this.authorityOptions.azureRegionConfiguration)?void 0:a.azureRegion))return[3,6];return null==(s=this.performanceClient)||s.setPreQueueTime(eh.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)];case 5:c=u.sent(),u.label=6;case 6:return e.updateEndpointMetadata(c,!1),[2,X.HARDCODED_VALUES];case 7:throw TD.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},e.prototype.isAuthoritySameType=function(e){return new RA(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},e.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw Rp.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var e;return ES(this,void 0,void 0,function(){var t,n;return E_(this,function(r){switch(r.label){case 0:null==(e=this.performanceClient)||e.addQueueMeasurement(eh.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[2,Nr((n=r.sent()).body)?n.body:null];case 3:return r.sent(),[2,null];case 4:return[2]}})})},e.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in No?No[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var n,r,o,a,s,l,c;return ES(this,void 0,void 0,function(){var u,d;return E_(this,function(p){switch(p.label){case 0:return null==(n=this.performanceClient)||n.addQueueMeasurement(eh.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),null==(r=this.performanceClient)||r.setPreQueueTime(eh.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion(null==(o=this.authorityOptions.azureRegionConfiguration)?void 0:o.environmentRegion,this.regionDiscoveryMetadata)];case 1:if(u=p.sent(),d=(null==(a=this.authorityOptions.azureRegionConfiguration)?void 0:a.azureRegion)===EK?u:null==(s=this.authorityOptions.azureRegionConfiguration)?void 0:s.azureRegion,(null==(l=this.authorityOptions.azureRegionConfiguration)?void 0:l.azureRegion)===EK?this.regionDiscoveryMetadata.region_outcome=u?ee.AUTO_DETECTION_REQUESTED_SUCCESSFUL:ee.AUTO_DETECTION_REQUESTED_FAILED:u?this.regionDiscoveryMetadata.region_outcome=(null==(c=this.authorityOptions.azureRegionConfiguration)?void 0:c.azureRegion)===u?ee.CONFIGURED_MATCHES_DETECTED:ee.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=ee.CONFIGURED_NO_AUTO_DETECTION,d)return this.regionDiscoveryMetadata.region_used=d,[2,e.replaceWithRegionalInformation(t,d)];return[2,t]}})})},e.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return ES(this,void 0,void 0,function(){var r,o,a;return E_(this,function(s){switch(s.label){case 0:if(null==(t=this.performanceClient)||t.addQueueMeasurement(eh.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||EU)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||EU)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||EU)),r=this.getCloudDiscoveryMetadataFromConfig())return this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(r,!1),[2,X.CONFIG];if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),o=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!o)return this.logger.verbose("Found metadata in the cache."),[2,X.CACHE];return o&&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)||n.setPreQueueTime(eh.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()];case 1:if(r=s.sent())return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(r,!0),[2,X.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())&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(a,!1),[2,X.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."),Rp.createUntrustedAuthorityError()}})})},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===ey.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(e){throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Rp.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 ES(this,void 0,void 0,function(){var n,r,o,a,s,l,c,u;return E_(this,function(d){switch(d.label){case 0:null==(t=this.performanceClient)||t.addQueueMeasurement(eh.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),n=""+EN+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},o=null,d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(n,r)];case 2:if(a=d.sent(),s=void 0,l=void 0,Na(a.body))l=(s=a.body).metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+s.tenant_discovery_endpoint);else{if(!Ns(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).error===E0)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 []"),l=[]}return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=e.getCloudDiscoveryMetadataFromNetworkResponse(l,this.hostnameAndPort),[3,4];case 3:return(c=d.sent())instanceof PG?this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: "+c.errorCode+"\nError Description: "+c.errorMessage):(u=c,this.logger.error("A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: "+u.name+"\nError Description: "+u.message)),[2,null];case 4:return o||(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."),o=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}})})},e.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Ni?Ni[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var e=this;return this.authorityOptions.knownAuthorities.filter(function(t){return RA.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort}).length>0},e.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==eC.None){var r=t.tenant?t.tenant:ED;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<e.length;n++){var r=e[n];if(r.aliases.indexOf(t)>-1)return r}return null},e.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw TD.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},e.isPublicCloudAuthority=function(e){return E$.indexOf(e)>=0},e.buildRegionalAuthorityString=function(e,t,n){var r=new RA(e);r.validateAsUri();var o=r.getUrlComponents(),a=t+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(a=t+"."+EX);var s=RA.constructAuthorityUriFromObject(Ew(Ew({},r.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},e.replaceWithRegionalInformation=function(t,n){return t.authorization_endpoint=e.buildRegionalAuthorityString(t.authorization_endpoint,n),t.token_endpoint=e.buildRegionalAuthorityString(t.token_endpoint,n,EY),t.end_session_endpoint&&(t.end_session_endpoint=e.buildRegionalAuthorityString(t.end_session_endpoint,n)),t},e.transformCIAMAuthority=function(e){var t=e.endsWith(Ej)?e:""+e+Ej,n=new RA(e).getUrlComponents();return 0===n.PathSegments.length&&n.HostNameAndPort.endsWith(EB)&&(t=""+t+n.HostNameAndPort.split(".")[0]+EM),t},e}(),Nu=function(){function e(){}return e.createDiscoveredInstance=function(t,n,r,o,a,s,l){return ES(this,void 0,void 0,function(){var c,u,d;return E_(this,function(p){switch(p.label){case 0:null==s||s.addQueueMeasurement(eh.AuthorityFactoryCreateDiscoveredInstance,l),c=Nc.transformCIAMAuthority(t),u=e.createInstance(c,n,r,o,a,s,l),p.label=1;case 1:return p.trys.push([1,3,,4]),null==s||s.setPreQueueTime(eh.AuthorityResolveEndpointsAsync,l),[4,u.resolveEndpointsAsync()];case 2:return p.sent(),[2,u];case 3:throw d=p.sent(),TD.createEndpointDiscoveryIncompleteError(d);case 4:return[2]}})})},e.createInstance=function(e,t,n,r,o,a,s){if(TA.isEmpty(e))throw Rp.createUrlEmptyError();return new Nc(e,t,n,r,o,a,s)},e}(),Nd=function(){function e(e,t){this.cacheOutcome=et.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||EV,this.wrapperVer=e.wrapperVer||EV,this.telemetryCacheKey=Po+q.CACHE_KEY_SEPARATOR+e.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Pa+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(Pa);return[Pt,[e,this.getRegionDiscoveryFields()].join(Pa),t].join(Pi)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join(Pa),o=t.errors.slice(0,n).join(Pa),a=t.errors.length,s=n<a?Ps:Pl,l=[a,s].join(Pa);return[Pt,t.cacheHits,r,o,l].join(Pi)},e.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Pr&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),TA.isEmpty(e.subError)?TA.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Pc):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 RE;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t);if(n===t.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new RE;r.failedRequests=t.failedRequests.slice(2*n),r.errors=t.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},e.maxErrorsToSend=function(e){var t,n=0,r=0,o=e.errors.length;for(t=0;t<o;t++){var a=e.failedRequests[2*t]||EV,s=e.failedRequests[2*t+1]||EV,l=e.errors[t]||EV;if((r+=a.toString().length+s.toString().length+l.length+3)<Pn)n+=1;else break}return n},e.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||EV),e.push(this.regionSource||EV),e.push(this.regionOutcome||EV),e.join(",")},e.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},e.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},e}(),Np=function(){function e(e,t,n,r,o,a,s,l,c){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=a,this.nativeMessageHandler=l,this.correlationId=c||this.browserCrypto.createNewGuid(),this.logger=r.clone(PC,R1,this.correlationId),this.performanceClient=s}return e.prototype.clearCacheOnLogout=function(e){return PO(this,void 0,void 0,function(){return PL(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Rg.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(Rg.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},e.prototype.initializeBaseRequest=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o;return PL(this,function(a){switch(a.label){case 0:if(this.performanceClient.addQueueMeasurement(eh.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),t=e.authority||this.config.auth.authority,n=Pz(e&&e.scopes||[]),(r=PM(PM({},e),{correlationId:this.correlationId,authority:t,scopes:n})).authenticationScheme){if(r.authenticationScheme===Y.SSH){if(!e.sshJwk)throw Rp.createMissingSshJwkError();if(!e.sshKid)throw Rp.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+r.authenticationScheme+'" as configured in Auth request')}else r.authenticationScheme=Y.BEARER,this.logger.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');if(!(e.claims&&!TA.isEmpty(e.claims)))return[3,2];return o=r,[4,this.browserCrypto.hashString(e.claims)];case 1:o.requestedClaimsHash=a.sent(),a.label=2;case 2:return[2,r]}})})},e.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||RK.getCurrentUri();return RA.getAbsoluteUrl(t,RK.getCurrentUri())},e.prototype.initializeServerTelemetryManager=function(e,t){return this.logger.verbose("initializeServerTelemetryManager called"),new Nd({clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]},this.browserStorage)},e.prototype.getDiscoveredAuthority=function(e){return PO(this,void 0,void 0,function(){var t;return PL(this,function(n){switch(n.label){case 0:if(this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},!e)return[3,2];return this.logger.verbose("Creating discovered authority with request authority"),[4,Nu.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 1:case 3:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,Nu.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)]}})})},e}(),Nf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return PB(t,e),t.prototype.initializeAuthorizationCodeRequest=function(e){return PO(this,void 0,void 0,function(){var t,n;return PL(this,function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(eh.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),this.logger.verbose("initializeAuthorizationRequest called",e.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return t=r.sent(),n=PM(PM({},e),{redirectUri:e.redirectUri,code:EV,codeVerifier:t.verifier}),e.codeChallenge=t.challenge,e.codeChallengeMethod=EH,[2,n]}})})},t.prototype.initializeLogoutRequest=function(e){this.logger.verbose("initializeLogoutRequest called",null==e?void 0:e.correlationId);var t=PM({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},e);if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){var n=this.getLogoutHintFromIdTokenClaims(e.account);n&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=n)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return e&&null===e.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId):e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=RA.getAbsoluteUrl(e.postLogoutRedirectUri,RK.getCurrentUri())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=RA.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,RK.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=RA.getAbsoluteUrl(RK.getCurrentUri(),RK.getCurrentUri())),t},t.prototype.getLogoutHintFromIdTokenClaims=function(e){var t=e.idTokenClaims;if(t)if(t.login_hint)return t.login_hint;else this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request");else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},t.prototype.createAuthCodeClient=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(eh.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return[2,new Nn(r.sent(),this.performanceClient)]}})})},t.prototype.getClientConfiguration=function(e,t,n){return PO(this,void 0,void 0,function(){var r,o;return PL(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(eh.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(t,n)];case 1:return r=a.sent(),o=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:r,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:o.loggerCallback,piiLoggingEnabled:o.piiLoggingEnabled,logLevel:o.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:PC,version:R1,cpu:EV,os:EV},telemetry:this.config.telemetry}]}})})},t.prototype.validateAndExtractStateFromHash=function(e,t,n){if(this.logger.verbose("validateAndExtractStateFromHash called",n),!e.state)throw D4.createHashDoesNotContainStateError();var r=RR.extractBrowserRequestState(this.browserCrypto,e.state);if(!r)throw D4.createUnableToParseStateError();if(r.interactionType!==t)throw D4.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",n),e.state},t.prototype.getDiscoveredAuthority=function(e,t){var n;return PO(this,void 0,void 0,function(){var r,o,a,s;return PL(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(eh.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),r=null==(n=this.performanceClient)?void 0:n.startMeasurement(eh.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),o={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},a=e||this.config.auth.authority,s=Nc.generateAuthority(a,t||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(eh.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,Nu.createDiscoveredInstance(s,this.config.system.networkClient,this.browserStorage,o,this.logger,this.performanceClient,this.correlationId).then(function(e){return r.endMeasurement({success:!0}),e}).catch(function(e){throw r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})];case 1:return[2,l.sent()]}})})},t.prototype.initializeAuthorizationRequest=function(e,t){return PO(this,void 0,void 0,function(){var n,r,o,a,s,l,c;return PL(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(eh.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),n=this.getRedirectUri(e.redirectUri),r={interactionType:t},o=RT.setRequestState(this.browserCrypto,e&&e.state||EV,r),this.performanceClient.setPreQueueTime(eh.InitializeBaseRequest,this.correlationId),s=[{}],[4,this.initializeBaseRequest(e)];case 1:return a=PM.apply(void 0,[PM.apply(void 0,s.concat([u.sent()])),{redirectUri:n,state:o,nonce:e.nonce||this.browserCrypto.createNewGuid(),responseMode:U.FRAGMENT}]),(l=e.account||this.browserStorage.getActiveAccount())&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+l.homeAccountId,this.correlationId),a.account=l),TA.isEmpty(a.loginHint)&&!l&&(c=this.browserStorage.getLegacyLoginHint())&&(a.loginHint=c),[2,a]}})})},t}(Np);!function(e){e.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",e.USER_CANCEL="USER_CANCEL",e.NO_NETWORK="NO_NETWORK",e.TRANSIENT_ERROR="TRANSIENT_ERROR",e.PERSISTENT_ERROR="PERSISTENT_ERROR",e.DISABLED="DISABLED",e.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"}(eS||(eS={}));var Nh="ContentError",Nm="user_switch",Ng="User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.",Nv="tokens_not_found_in_internal_memory_cache",Ny="Tokens not cached in MSAL JS internal memory, please make the WAM request",Nb=function(e){function t(n,r,o){var a=e.call(this,n,r)||this;return Object.setPrototypeOf(a,t.prototype),a.name="NativeAuthError",a.ext=o,a}return PB(t,e),t.prototype.isFatal=function(){return!!this.ext&&!!this.ext.status&&(this.ext.status===eS.PERSISTENT_ERROR||this.ext.status===eS.DISABLED)||this.errorCode===Nh},t.createError=function(e,n,r){if(r&&r.status)switch(r.status){case eS.ACCOUNT_UNAVAILABLE:return P0.createNativeAccountUnavailableError();case eS.USER_INTERACTION_REQUIRED:return new P0(e,n);case eS.USER_CANCEL:return D4.createUserCancelledError();case eS.NO_NETWORK:return D4.createNoNetworkConnectivityError()}return new t(e,n,r)},t.createUserSwitchError=function(){return new t(Nm,Ng)},t.createTokensNotFoundInCacheError=function(){return new t(Nv,Ny)},t}(PG),Nx=function(e){function t(t,n){return e.call(this,t,n)||this}return Ek(t,e),t.prototype.acquireToken=function(e){var t,n,r,o,a,s,l;return ES(this,void 0,void 0,function(){var c,u,d,p,f,h,m=this;return E_(this,function(g){switch(g.label){case 0:return null==(t=this.performanceClient)||t.addQueueMeasurement(eh.RefreshTokenClientAcquireToken,e.correlationId),c=null==(n=this.performanceClient)?void 0:n.startMeasurement(eh.RefreshTokenClientAcquireToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",e.correlationId),u=Rk.nowSeconds(),null==(r=this.performanceClient)||r.setPreQueueTime(eh.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(e,this.authority)];case 1:return p=null==(o=(d=g.sent()).headers)?void 0:o[F.X_MS_HTTP_VERSION],null==c||c.addStaticFields({refreshTokenSize:(null==(a=d.body.refresh_token)?void 0:a.length)||0}),p&&(null==c||c.addStaticFields({httpVerToken:p})),f=null==(s=d.headers)?void 0:s[F.X_MS_REQUEST_ID],(h=new Nt(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(d.body),null==(l=this.performanceClient)||l.setPreQueueTime(eh.HandleServerTokenResponse,e.correlationId),[2,h.handleServerTokenResponse(d.body,this.authority,u,e,void 0,void 0,!0,e.forceCache,f).then(function(e){return null==c||c.endMeasurement({success:!0}),e}).catch(function(t){throw m.logger.verbose("Error in fetching refresh token",e.correlationId),null==c||c.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t})]}})})},t.prototype.acquireTokenByRefreshToken=function(e){var t,n,r,o;return ES(this,void 0,void 0,function(){var a,s;return E_(this,function(l){if(!e)throw Rp.createEmptyTokenRequestError();if(null==(t=this.performanceClient)||t.addQueueMeasurement(eh.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw TD.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return null==(n=this.performanceClient)||n.setPreQueueTime(eh.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(t){if(a=t instanceof P0&&t.errorCode===P$,s=t instanceof PK&&t.errorCode===Ph&&t.subError===Pm,a||s)return null==(r=this.performanceClient)||r.setPreQueueTime(eh.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw t}return null==(o=this.performanceClient)||o.setPreQueueTime(eh.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,t){var n,r,o;return ES(this,void 0,void 0,function(){var a,s,l;return E_(this,function(c){if(null==(n=this.performanceClient)||n.addQueueMeasurement(eh.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),a=null==(r=this.performanceClient)?void 0:r.startMeasurement(eh.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",e.correlationId),!(s=this.cacheManager.getRefreshToken(e.account,t)))throw null==a||a.discardMeasurement(),P0.createNoTokensFoundError();return null==a||a.endMeasurement({success:!0}),l=Ew(Ew({},e),{refreshToken:s.secret,authenticationScheme:e.authenticationScheme||Y.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:eb.HOME_ACCOUNT_ID}}),null==(o=this.performanceClient)||o.setPreQueueTime(eh.RefreshTokenClientAcquireToken,e.correlationId),[2,this.acquireToken(l)]})})},t.prototype.executeTokenRequest=function(e,t){var n,r,o;return ES(this,void 0,void 0,function(){var a,s,l,c,u,d;return E_(this,function(p){switch(p.label){case 0:return null==(n=this.performanceClient)||n.addQueueMeasurement(eh.RefreshTokenClientExecuteTokenRequest,e.correlationId),a=null==(r=this.performanceClient)?void 0:r.startMeasurement(eh.RefreshTokenClientExecuteTokenRequest,e.correlationId),null==(o=this.performanceClient)||o.setPreQueueTime(eh.RefreshTokenClientCreateTokenRequestBody,e.correlationId),s=this.createTokenQueryParameters(e),l=RA.appendQueryString(t.tokenEndpoint,s),[4,this.createTokenRequestBody(e)];case 1:return c=p.sent(),u=this.createTokenRequestHeaders(e.ccsCredential),d={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},[2,this.executePostToTokenEndpoint(l,c,u,d).then(function(e){return null==a||a.endMeasurement({success:!0}),e}).catch(function(e){throw null==a||a.endMeasurement({success:!1}),e})]}})})},t.prototype.createTokenRequestBody=function(e){var t,n,r;return ES(this,void 0,void 0,function(){var o,a,s,l,c,u,d;return E_(this,function(p){switch(p.label){case 0:if(null==(t=this.performanceClient)||t.addQueueMeasurement(eh.RefreshTokenClientCreateTokenRequestBody,e.correlationId),o=e.correlationId,a=null==(n=this.performanceClient)?void 0:n.startMeasurement(eh.BaseClientCreateTokenRequestHeaders,o),(s=new R6).addClientId(this.config.authOptions.clientId),s.addScopes(e.scopes),s.addGrantType(j.REFRESH_TOKEN_GRANT),s.addClientInfo(),s.addLibraryInfo(this.config.libraryInfo),s.addApplicationTelemetry(this.config.telemetry.application),s.addThrottling(),this.serverTelemetryManager&&s.addServerTelemetry(this.serverTelemetryManager),s.addCorrelationId(o),s.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&s.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(l=this.config.clientCredentials.clientAssertion,s.addClientAssertion(l.assertion),s.addClientAssertionType(l.assertionType)),e.authenticationScheme!==Y.POP)return[3,2];return c=new R7(this.cryptoUtils,this.performanceClient),null==(r=this.performanceClient)||r.setPreQueueTime(eh.PopTokenGenerateCnf,e.correlationId),[4,c.generateCnf(e)];case 1:return u=p.sent(),s.addPopToken(u.reqCnfString),[3,3];case 2:if(e.authenticationScheme===Y.SSH)if(e.sshJwk)s.addSshJwk(e.sshJwk);else throw null==a||a.endMeasurement({success:!1}),Rp.createMissingSshJwkError();p.label=3;case 3:if((!TA.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&s.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case eb.HOME_ACCOUNT_ID:try{d=Rm(e.ccsCredential.credential),s.addCcsOid(d)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case eb.UPN:s.addCcsUpn(e.ccsCredential.credential)}return null==a||a.endMeasurement({success:!0}),[2,s.createQueryString()]}})})},t}(R8),NC=function(e){function t(t,n){return e.call(this,t,n)||this}return Ek(t,e),t.prototype.acquireToken=function(e){return ES(this,void 0,void 0,function(){var t;return E_(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,n.sent()];case 2:if((t=n.sent())instanceof TD&&t.errorCode===Tp)return[2,new Nx(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw t;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var t,n,r,o;return ES(this,void 0,void 0,function(){var a,s;return E_(this,function(l){switch(l.label){case 0:if(!e)throw Rp.createEmptyTokenRequestError();if(e.forceRefresh)throw null==(t=this.serverTelemetryManager)||t.setCacheOutcome(et.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),TD.createRefreshRequiredError();if(!e.account)throw TD.createNoAccountInSilentRequestError();if(a=e.authority||this.authority.getPreferredCache(),(s=this.cacheManager.readCacheRecord(e.account,e,a)).accessToken){if(Rk.wasClockTurnedBack(s.accessToken.cachedAt)||Rk.isTokenExpired(s.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null==(r=this.serverTelemetryManager)||r.setCacheOutcome(et.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),TD.createRefreshRequiredError();else if(s.accessToken.refreshOn&&Rk.isTokenExpired(s.accessToken.refreshOn,0))throw null==(o=this.serverTelemetryManager)||o.setCacheOutcome(et.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),TD.createRefreshRequiredError()}else throw null==(n=this.serverTelemetryManager)||n.setCacheOutcome(et.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),TD.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(s,e)];case 1:return[2,l.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(e,t){return ES(this,void 0,void 0,function(){var n,r;return E_(this,function(o){switch(o.label){case 0:if(e.idToken&&(n=new Rv(e.idToken.secret,this.config.cryptoInterface)),t.maxAge||0===t.maxAge){if(!(r=null==n?void 0:n.claims.auth_time))throw TD.createAuthTimeNotFoundError();Rv.checkMaxAge(r,t.maxAge)}return[4,Nt.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)];case 1:return[2,o.sent()]}})})},t}(R8),Nk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return PB(t,e),t.prototype.acquireToken=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a;return PL(this,function(s){switch(s.label){case 0:return t=this.performanceClient.startMeasurement(eh.SilentCacheClientAcquireToken,e.correlationId),n=this.initializeServerTelemetryManager(ec.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 o=s.sent(),t.endMeasurement({success:!0,fromCache:!0}),[2,o];case 4:throw(a=s.sent())instanceof D4&&a.errorCode===DF&&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 PG&&a.errorCode||void 0,subErrorCode:a instanceof PG&&a.subError||void 0,success:!1}),a;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(D4.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){switch(r.label){case 0:return this.performanceClient.setPreQueueTime(eh.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return[2,new NC(r.sent(),this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(e,t){return PO(this,void 0,void 0,function(){var n;return PL(this,function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(eh.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(eh.InitializeBaseRequest,this.correlationId),n=[PM({},e)],[4,this.initializeBaseRequest(e)];case 1:return[2,PM.apply(void 0,[PM.apply(void 0,n.concat([r.sent()])),{account:t,forceRefresh:e.forceRefresh||!1}])]}})})},t}(Nf),Nw=function(e){function t(t,n,r,o,a,s,l,c,u,d,p,f){var h=e.call(this,t,n,r,o,a,s,c,u,f)||this;return h.apiId=l,h.accountId=d,h.nativeMessageHandler=u,h.nativeStorageManager=p,h.silentCacheClient=new Nk(t,h.nativeStorageManager,r,o,a,s,c,u,f),h}return PB(t,e),t.prototype.acquireToken=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a,s,l;return PL(this,function(c){switch(c.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),t=this.performanceClient.startMeasurement(eh.NativeInteractionClientAcquireToken,e.correlationId),n=Rk.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:r=c.sent(),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,r)];case 3:return o=c.sent(),t.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,o];case 4:return c.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return a={method:er.GetToken,request:r},[4,this.nativeMessageHandler.sendMessage(a)];case 6:return s=c.sent(),l=this.validateNativeResponse(s),[2,this.handleNativeResponse(l,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:Rf.fromString(e.scope).asArray(),account:t,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,t){return PO(this,void 0,void 0,function(){var n,r;return PL(this,function(o){switch(o.label){case 0:if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),TD.createNoAccountFoundError();if(!(n=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:e})))throw TD.createNoAccountFoundError();o.label=1;case 1:return o.trys.push([1,3,,4]),r=this.createSilentCacheRequest(t,n),[4,this.silentCacheClient.acquireToken(r)];case 2:return[2,o.sent()];case 3:throw o.sent();case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a,s;return PL(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:t=l.sent(),n={method:er.GetToken,request:t},l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(n)];case 3:return r=l.sent(),this.validateNativeResponse(r),[3,5];case 4:if((o=l.sent())instanceof Nb&&o.isFatal())throw o;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ea.NATIVE_REQUEST,JSON.stringify(t),!0),a={apiId:ec.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},s=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(s,a)];case 6:return l.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return PO(this,void 0,void 0,function(){var e,t,n,r,o,a,s,l;return PL(this,function(c){switch(c.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()))return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];t=e.prompt,n=PF(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(ea.NATIVE_REQUEST)),r={method:er.GetToken,request:n},o=Rk.nowSeconds(),c.label=1;case 1:return c.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(r)];case 2:return a=c.sent(),this.validateNativeResponse(a),s=this.handleNativeResponse(a,n,o),this.browserStorage.setInteractionInProgress(!1),[2,s];case 3:throw l=c.sent(),this.browserStorage.setInteractionInProgress(!1),l;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 PO(this,void 0,void 0,function(){var r,o,a,s,l,c;return PL(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==t.accountId)throw Nb.createUserSwitchError();return[4,this.getDiscoveredAuthority(t.authority)];case 1:return o=(r=u.sent()).getPreferredCache(),a=this.createIdTokenObj(e),s=this.createHomeAccountIdentifier(e,a),l=this.createAccountEntity(e,s,a,o),[4,this.generateAuthenticationResult(e,t,a,l,r.canonicalAuthority,n)];case 2:return c=u.sent(),this.cacheAccount(l),this.cacheNativeTokens(e,t,s,a,c.accessToken,c.tenantId,n),[2,c]}})})},t.prototype.createIdTokenObj=function(e){return new Rv(e.id_token||EV,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(e,t){return Rg.generateHomeAccountId(e.client_info||EV,ey.Default,this.logger,this.browserCrypto,t)},t.prototype.createAccountEntity=function(e,t,n,r){return Rg.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?Rf.fromString(e.scope):Rf.fromString(t.scope)},t.prototype.generatePopAccessToken=function(e,t){return PO(this,void 0,void 0,function(){var n,r;return PL(this,function(o){switch(o.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 R7(this.browserCrypto),r={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce},!t.keyId)throw TD.createKeyIdMissingError();return[4,n.signPopToken(e.access_token,t.keyId,r)];case 1:return[2,o.sent()];case 2:return[2,e.access_token]}})})},t.prototype.generateAuthenticationResult=function(e,t,n,r,o,a){return PO(this,void 0,void 0,function(){var s,l,c,u,d,p,f;return PL(this,function(h){switch(h.label){case 0:return s=this.addTelemetryFromNativeResponse(e),l=e.scope?Rf.fromString(e.scope):Rf.fromString(t.scope),u=(c=e.account.properties||{}).UID||n.claims.oid||n.claims.sub||EV,d=c.TenantId||n.claims.tid||EV,[4,this.generatePopAccessToken(e,t)];case 1:return p=h.sent(),f=t.tokenType===Y.POP?Y.POP:Y.BEARER,[2,{authority:o,uniqueId:u,tenantId:d,scopes:l.asArray(),account:r.getAccountInfo(),idToken:e.id_token,idTokenClaims:n.claims,accessToken:p,fromCache:!!s&&this.isResponseFromCache(s),expiresOn:new Date(1e3*Number(a+e.expires_in)),tokenType:f,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}]}})})},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,o,a,s){var l=AA.createIdTokenEntity(n,t.authority,e.id_token||EV,t.clientId,r.claims.tid||EV);this.nativeStorageManager.setIdTokenCredential(l);var c=s+(t.tokenType===Y.POP?EZ:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0),u=this.generateScopes(e,t),d=Rw.createAccessTokenEntity(n,t.authority,o,t.clientId,a,u.printScopes(),c,0,this.browserCrypto);this.nativeStorageManager.setAccessTokenCredential(d)},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 Nb.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch(e){this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return void 0===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 PO(this,void 0,void 0,function(){var t,n,r,o,a,s,l,c,u=this;return PL(this,function(d){switch(d.label){case 0:if(this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),(t=new RA(e.authority||this.config.auth.authority)).validateAsUri(),n=e.scopes,r=PF(e,["scopes"]),(o=new Rf(n||[])).appendScopes(E1),a=function(){switch(u.apiId){case ec.ssoSilent:case ec.acquireTokenSilent_silentFlow:return u.logger.trace("initializeNativeRequest: silent request sets prompt to none"),E5.NONE}if(!e.prompt)return void u.logger.trace("initializeNativeRequest: prompt was not provided");switch(e.prompt){case E5.NONE:case E5.CONSENT:case E5.LOGIN:return u.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw u.logger.trace("initializeNativeRequest: prompt = "+e.prompt+" is not compatible with native flow"),D4.createNativePromptParameterNotSupportedError()}},s=PM(PM({},r),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:t.urlString,scope:o.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:a(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:PM(PM(PM({},e.extraQueryParameters),e.tokenQueryParameters),{telemetry:PS}),extendedExpiryToken:!1}),e.authenticationScheme!==Y.POP)return[3,2];return l={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},[4,new R7(this.browserCrypto).generateCnf(l)];case 1:c=d.sent(),s.reqCnf=c.reqCnfHash,s.keyId=c.kid,d.label=2;case 2:return[2,s]}})})},t}(Np),NS=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(eh.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(e){return PO(this,void 0,void 0,function(){var t,n=this;return PL(this,function(r){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:Pk,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 PO(this,void 0,void 0,function(){var o,a;return PL(this,function(s){switch(s.label){case 0:t.trace("NativeMessageHandler - createProvider called."),s.label=1;case 1:return s.trys.push([1,3,,5]),[4,(o=new e(t,n,r,Pw)).sendHandshakeRequest()];case 2:return s.sent(),[2,o];case 3:return s.sent(),[4,(a=new e(t,n,r)).sendHandshakeRequest()];case 4:return s.sent(),[2,a];case 5:return[2]}})})},e.prototype.sendHandshakeRequest=function(){return PO(this,void 0,void 0,function(){var e,t=this;return PL(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:Pk,extensionId:this.extensionId,responseId:this.responseId++,body:{method:er.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(D4.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===Pk&&(!t.extensionId||t.extensionId===this.extensionId)&&t.body.method===er.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(D4.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 o=t.body.method;if(o===er.Response){if(!n)return;var a=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),"Success"!==a.status)n.reject(Nb.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(Nb.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw PG.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(o===er.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(t){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+t.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(t):r&&r.reject(t)}},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:t.trace("isNativeAvailable: authenticationScheme is supported, returning true");break;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},e}(),N_=function(){function e(e,t,n,r,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=r,this.performanceClient=o}return e.prototype.handleCodeResponseFromHash=function(e,t,n,r){return PO(this,void 0,void 0,function(){var o,a,s;return PL(this,function(l){if(this.performanceClient.addQueueMeasurement(eh.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),TA.isEmpty(e))throw D4.createEmptyHashError(e);if(o=this.browserStorage.generateStateKey(t),!(a=this.browserStorage.getTemporaryCache(o)))throw TD.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(e){if(e instanceof PK&&e.subError===T2)throw D4.createUserCancelledError();throw e}return this.performanceClient.setPreQueueTime(eh.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,t,n,r)]})})},e.prototype.handleCodeResponseFromServer=function(e,t,n,r,o){return void 0===o&&(o=!0),PO(this,void 0,void 0,function(){var a,s,l,c,u,d;return PL(this,function(p){switch(p.label){case 0:if(this.performanceClient.addQueueMeasurement(eh.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(t),!(s=this.browserStorage.getTemporaryCache(a)))throw TD.createStateNotFoundError("Cached State");if(l=this.browserStorage.generateNonceKey(s),c=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=e.code,!e.cloud_instance_host_name)return[3,2];return this.performanceClient.setPreQueueTime(eh.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,r)];case 1:p.sent(),p.label=2;case 2:return o&&(e.nonce=c||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(u=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=u),this.performanceClient.setPreQueueTime(eh.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return d=p.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}})})},e.prototype.updateTokenEndpointAuthority=function(e,t,n){return PO(this,void 0,void 0,function(){var r,o;return PL(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(eh.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),r="https://"+e+"/"+t.tenant+"/",[4,Nu.createDiscoveredInstance(r,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return o=a.sent(),this.authModule.updateAuthority(o),[2]}})})},e.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(ea.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}(),NE=function(e){function t(t,n,r,o,a,s,l,c,u,d){var p=e.call(this,t,n,r,o,a,s,l,u,d)||this;return p.unloadWindow=p.unloadWindow.bind(p),p.nativeStorage=c,p}return PB(t,e),t.prototype.acquireToken=function(e){try{var t=this.generatePopupName(e.scopes||E1,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(e){return Promise.reject(e)}},t.prototype.logout=function(e){try{this.logger.verbose("logoutPopup called");var t=this.initializeLogoutRequest(e),n=this.generateLogoutPopupName(t),r=e&&e.authority,o=e&&e.mainWindowRedirectUri,a=(null==e?void 0:e.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,n,a,r,void 0,o);this.logger.verbose("asyncPopup set to false, opening popup");var s=this.openSizedPopup("about:blank",n,a);return this.logoutPopupAsync(t,n,a,r,s,o)}catch(e){return Promise.reject(e)}},t.prototype.acquireTokenPopupAsync=function(e,t,n,r){return PO(this,void 0,void 0,function(){var o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C=this;return PL(this,function(k){switch(k.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),o=this.initializeServerTelemetryManager(ec.acquireTokenPopup),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,eu.Popup)];case 1:a=k.sent(),this.browserStorage.updateCacheEntries(a.state,a.nonce,a.authority,a.loginHint||EV,a.account||null),k.label=2;case 2:return k.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(a)];case 3:return s=k.sent(),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(o,a.authority,a.azureCloudOptions)];case 4:return l=k.sent(),this.logger.verbose("Auth code client created"),c=NS.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme),u=void 0,c&&(u=this.performanceClient.startMeasurement(eh.FetchAccountIdWithNativeBroker,e.correlationId)),[4,l.getAuthCodeUrl(PM(PM({},a),{nativeBroker:c}))];case 5:return d=k.sent(),p=new N_(l,this.browserStorage,s,this.logger,this.performanceClient),f={popup:r,popupName:t,popupWindowAttributes:n},h=this.initiateAuthRequest(d,f),this.eventHandler.emitEvent(ek.POPUP_OPENED,eu.Popup,{popupWindow:h},null),[4,this.monitorPopupForHash(h)];case 6:if(m=k.sent(),g=RA.getDeserializedHash(m),v=this.validateAndExtractStateFromHash(g,eu.Popup,a.correlationId),R5.removeThrottle(this.browserStorage,this.config.auth.clientId,s),g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),u&&u.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw D4.createNativeConnectionNotEstablishedError();return y=new Nw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ec.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,g.accountId,this.nativeStorage,a.correlationId),b=RT.parseRequestState(this.browserCrypto,v).userRequestState,[2,y.acquireToken(PM(PM({},a),{state:b,prompt:void 0})).finally(function(){C.browserStorage.cleanRequestByState(v)})]}return[4,p.handleCodeResponseFromHash(m,v,l.authority,this.networkClient)];case 7:return[2,k.sent()];case 8:throw x=k.sent(),r&&r.close(),x instanceof PG&&x.setCorrelationId(this.correlationId),o.cacheFailedRequest(x),this.browserStorage.cleanRequestByState(a.state),x;case 9:return[2]}})})},t.prototype.logoutPopupAsync=function(e,t,n,r,o,a){return PO(this,void 0,void 0,function(){var s,l,c,u,d,p,f;return PL(this,function(h){switch(h.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(ek.LOGOUT_START,eu.Popup,e),s=this.initializeServerTelemetryManager(ec.logoutPopup),h.label=1;case 1:return h.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(e.account)];case 2:return h.sent(),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(s,r)];case 3:return l=h.sent(),this.logger.verbose("Auth code client created"),c=l.getLogoutUri(e),this.eventHandler.emitEvent(ek.LOGOUT_SUCCESS,eu.Popup,e),u=this.openPopup(c,{popupName:t,popupWindowAttributes:n,popup:o}),this.eventHandler.emitEvent(ek.POPUP_OPENED,eu.Popup,{popupWindow:u},null),[4,this.waitForLogoutPopup(u)];case 4:return h.sent(),a?(d={apiId:ec.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},p=RA.getAbsoluteUrl(a,RK.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=h.sent(),o&&o.close(),f instanceof PG&&f.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(ek.LOGOUT_FAILURE,eu.Popup,null,f),this.eventHandler.emitEvent(ek.LOGOUT_END,eu.Popup),s.cacheFailedRequest(f),f;case 6:return this.eventHandler.emitEvent(ek.LOGOUT_END,eu.Popup),[2]}})})},t.prototype.initiateAuthRequest=function(e,t){if(!TA.isEmpty(e))return this.logger.infoPii("Navigate to: "+e),this.openPopup(e,t);throw this.logger.error("Navigate url is empty"),D4.createEmptyNavigationUriError()},t.prototype.monitorPopupForHash=function(e){var t=this;return new Promise(function(n,r){var o=t.config.system.windowHashTimeout/t.config.system.pollIntervalMilliseconds,a=0;t.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var s=setInterval(function(){if(e.closed){t.logger.error("PopupHandler.monitorPopupForHash - window closed"),t.cleanPopup(),clearInterval(s),r(D4.createUserCancelledError());return}var l=EV,c=EV;try{l=e.location.href,c=e.location.hash}catch(e){}!TA.isEmpty(l)&&"about:blank"!==l&&(t.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),a++,c?(t.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(s),t.cleanPopup(e),RA.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(D4.createHashDoesNotContainKnownPropertiesError()))):a>o&&(t.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(s),r(D4.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 o=EV;try{o=e.location.href}catch(e){}TA.isEmpty(o)||"about:blank"===o||(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)):void 0===t.popup&&(this.logger.verbosePii("Opening popup window to: "+e),n=this.openSizedPopup(e,t.popupName,t.popupWindowAttributes)),!n)throw D4.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(e){throw this.logger.error("error opening popup "+e.message),this.browserStorage.setInteractionInProgress(!1),D4.createPopupWindowError(e.toString())}},t.prototype.openSizedPopup=function(e,t,n){var r,o,a,s,l=window.screenLeft?window.screenLeft:window.screenX,c=window.screenTop?window.screenTop:window.screenY,u=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,p=null==(r=n.popupSize)?void 0:r.width,f=null==(o=n.popupSize)?void 0:o.height,h=null==(a=n.popupPosition)?void 0:a.top,m=null==(s=n.popupPosition)?void 0:s.left;return(!p||p<0||p>u)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),p=Pv),(!f||f<0||f>d)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),f=Py),(!h||h<0||h>d)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),h=Math.max(0,d/2-Py/2+c)),(!m||m<0||m>u)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),m=Math.max(0,u/2-Pv/2+l)),window.open(e,t,"width="+p+", height="+f+", top="+h+", left="+m+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(eu.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 Pb+"."+this.config.auth.clientId+"."+e.join("-")+"."+t+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){var t=e.account&&e.account.homeAccountId;return Pb+"."+this.config.auth.clientId+"."+t+"."+this.correlationId},t}(Nf),NP=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,r,o,s)||this;return l.browserCrypto=a,l}return PB(t,e),t.prototype.initiateAuthRequest=function(e,t){return PO(this,void 0,void 0,function(){var n;return PL(this,function(r){switch(r.label){case 0:if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),TA.isEmpty(e))return[3,7];if(t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ea.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ea.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),n={apiId:ec.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1},"function"!=typeof t.onRedirectNavigate)return[3,4];if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===t.onRedirectNavigate(e))return[3,2];return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,t.navigationClient.navigateExternal(e,n)];case 1:case 5:return r.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 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),D4.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(e,t,n,r){return PO(this,void 0,void 0,function(){var o,a,s,l,c,u,d;return PL(this,function(p){switch(p.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),TA.isEmpty(e))throw D4.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),o=this.browserStorage.generateStateKey(t),!(a=this.browserStorage.getTemporaryCache(o)))throw TD.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(e){if(e instanceof PK&&e.subError===T2)throw D4.createUserCancelledError();throw e}if(l=this.browserStorage.generateNonceKey(a),c=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=s.code,!s.cloud_instance_host_name)return[3,2];return[4,this.updateTokenEndpointAuthority(s.cloud_instance_host_name,n,r)];case 1:p.sent(),p.label=2;case 2:return s.nonce=c||void 0,s.state=a,s.client_info?this.authCodeRequest.clientInfo=s.client_info:(u=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=u),[4,this.authModule.acquireToken(this.authCodeRequest,s)];case 3:return d=p.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}})})},t}(N_),NI=function(e){function t(t,n,r,o,a,s,l,c,u,d){var p=e.call(this,t,n,r,o,a,s,l,u,d)||this;return p.nativeStorage=c,p}return PB(t,e),t.prototype.acquireToken=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a,s,l,c,u,d=this;return PL(this,function(p){switch(p.label){case 0:return this.performanceClient.setPreQueueTime(eh.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,eu.Redirect)];case 1:t=p.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||EV,t.account||null),n=this.initializeServerTelemetryManager(ec.acquireTokenRedirect),r=function(e){e.persisted&&(d.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),d.browserStorage.cleanRequestByState(t.state))},p.label=2;case 2:return p.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 3:return o=p.sent(),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(n,t.authority,t.azureCloudOptions)];case 4:return a=p.sent(),this.logger.verbose("Auth code client created"),s=new NP(a,this.browserStorage,o,this.logger,this.browserCrypto,this.performanceClient),[4,a.getAuthCodeUrl(PM(PM({},t),{nativeBroker:NS.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return l=p.sent(),c=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+c),window.addEventListener("pageshow",r),[4,s.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:c,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,p.sent()];case 7:throw(u=p.sent())instanceof PG&&u.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",r),n.cacheFailedRequest(u),this.browserStorage.cleanRequestByState(t.state),u;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a,s,l,c,u,d;return PL(this,function(p){switch(p.label){case 0:t=this.initializeServerTelemetryManager(ec.handleRedirectPromise),p.label=1;case 1:if(p.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)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(eu.Redirect),[2,null];r=void 0;try{o=RA.getDeserializedHash(n),r=this.validateAndExtractStateFromHash(o,eu.Redirect),this.logger.verbose("State extracted from hash")}catch(e){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+e),this.browserStorage.cleanRequestByInteractionType(eu.Redirect),[2,null]}if(a=this.browserStorage.getTemporaryCache(ea.ORIGIN_URI,!0)||EV,!(RA.removeHashFromUrl(a)===RA.removeHashFromUrl(window.location.href)&&this.config.auth.navigateToLoginRequestUrl))return[3,3];return this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,r,t)];case 2:return s=p.sent(),a.indexOf("#")>-1&&RK.replaceHash(a),[2,s];case 3:if(this.config.auth.navigateToLoginRequestUrl)return[3,4];return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,r,t)];case 4:if(!(!RK.isInIframe()||this.config.system.allowRedirectInIframe))return[3,9];if(this.browserStorage.setTemporaryCache(ea.URL_HASH,n,!0),l={apiId:ec.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},c=!0,!(!a||"null"===a))return[3,6];return u=RK.getHomepage(),this.browserStorage.setTemporaryCache(ea.ORIGIN_URI,u,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(u,l)];case 5:return c=p.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+a),[4,this.navigationClient.navigateInternal(a,l)];case 7:c=p.sent(),p.label=8;case 8:if(!c)return[2,this.handleHash(n,r,t)];p.label=9;case 9:return[2,null];case 10:throw(d=p.sent())instanceof PG&&d.setCorrelationId(this.correlationId),t.cacheFailedRequest(d),this.browserStorage.cleanRequestByInteractionType(eu.Redirect),d;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(e){if(this.logger.verbose("getRedirectResponseHash called"),RA.hashContainsKnownProperties(e))return RK.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var t=this.browserStorage.getTemporaryCache(ea.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ea.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),t},t.prototype.handleHash=function(e,t,n){return PO(this,void 0,void 0,function(){var r,o,a,s,l,c,u=this;return PL(this,function(d){switch(d.label){case 0:if(r=this.browserStorage.getCachedRequest(t,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(o=RA.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw D4.createNativeConnectionNotEstablishedError();return a=new Nw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ec.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,o.accountId,this.browserStorage,r.correlationId),s=RT.parseRequestState(this.browserCrypto,t).userRequestState,[2,a.acquireToken(PM(PM({},r),{state:s,prompt:void 0})).finally(function(){u.browserStorage.cleanRequestByState(t)})]}if(!(l=this.browserStorage.getCachedAuthority(t)))throw D4.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(eh.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(n,l)];case 1:return c=d.sent(),this.logger.verbose("Auth code client created"),R5.removeThrottle(this.browserStorage,this.config.auth.clientId,r),[4,new NP(c,this.browserStorage,r,this.logger,this.browserCrypto,this.performanceClient).handleCodeResponseFromHash(e,t,c.authority,this.networkClient)];case 2:return[2,d.sent()]}})})},t.prototype.logout=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a,s;return PL(this,function(l){switch(l.label){case 0:this.logger.verbose("logoutRedirect called"),t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(ec.logout),l.label=1;case 1:return l.trys.push([1,10,,11]),this.eventHandler.emitEvent(ek.LOGOUT_START,eu.Redirect,e),[4,this.clearCacheOnLogout(t.account)];case 2:return l.sent(),r={apiId:ec.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(eh.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(n,e&&e.authority)];case 3:if(o=l.sent(),this.logger.verbose("Auth code client created"),a=o.getLogoutUri(t),this.eventHandler.emitEvent(ek.LOGOUT_SUCCESS,eu.Redirect,t),!(e&&"function"==typeof e.onRedirectNavigate))return[3,7];if(!1===e.onRedirectNavigate(a))return[3,5];return this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,r)];case 4:return l.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),l.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 l.sent(),[2];case 9:return[3,11];case 10:throw(s=l.sent())instanceof PG&&s.setCorrelationId(this.correlationId),n.cacheFailedRequest(s),this.eventHandler.emitEvent(ek.LOGOUT_FAILURE,eu.Redirect,null,s),this.eventHandler.emitEvent(ek.LOGOUT_END,eu.Redirect),s;case 11:return this.eventHandler.emitEvent(ek.LOGOUT_END,eu.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(e){var t=e||window.location.href;return RA.getAbsoluteUrl(t,RK.getCurrentUri())},t}(Nf),NT=function(e){function t(t,n,r,o,a,s){var l=e.call(this,t,n,r,o,s)||this;return l.navigateFrameWait=a.navigateFrameWait,l.pollIntervalMilliseconds=a.pollIntervalMilliseconds,l}return PB(t,e),t.prototype.initiateAuthRequest=function(e){return PO(this,void 0,void 0,function(){return PL(this,function(t){switch(t.label){case 0:if(this.performanceClient.addQueueMeasurement(eh.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),TA.isEmpty(e))throw this.logger.info("Navigate url is empty"),D4.createEmptyNavigationUriError();if(!this.navigateFrameWait)return[3,2];return this.performanceClient.setPreQueueTime(eh.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(e)];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(eh.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(r,o){t<R$&&n.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+t+"ms) than the default ("+R$+"ms). This may result in timeouts.");var a=window.performance.now()+t,s=setInterval(function(){if(window.performance.now()>a){n.removeHiddenIframe(e),clearInterval(s),o(D4.createMonitorIframeTimeoutError());return}var t=EV,l=e.contentWindow;try{t=l?l.location.href:EV}catch(e){}if(!TA.isEmpty(t)){var c=l?l.location.hash:EV;if(RA.hashContainsKnownProperties(c)){n.removeHiddenIframe(e),clearInterval(s),r(c);return}}},n.pollIntervalMilliseconds)})},t.prototype.loadFrame=function(e){var t=this;return this.performanceClient.addQueueMeasurement(eh.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(n,r){var o=t.createHiddenIframe();setTimeout(function(){o?(o.src=e,n(o)):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}(N_),ND=function(e){function t(t,n,r,o,a,s,l,c,u,d,p){var f=e.call(this,t,n,r,o,a,s,c,d,p)||this;return f.apiId=l,f.nativeStorage=u,f}return PB(t,e),t.prototype.acquireToken=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a;return PL(this,function(s){switch(s.label){case 0:if(this.performanceClient.addQueueMeasurement(eh.SilentIframeClientAcquireToken,e.correlationId),this.logger.verbose("acquireTokenByIframe called"),t=this.performanceClient.startMeasurement(eh.SilentIframeClientAcquireToken,e.correlationId),TA.isEmpty(e.loginHint)&&TA.isEmpty(e.sid)&&(!e.account||TA.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!==E5.NONE&&e.prompt!==E5.NO_SESSION)throw t.endMeasurement({success:!1}),D4.createSilentPromptValueError(e.prompt);return this.performanceClient.setPreQueueTime(eh.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(PM(PM({},e),{prompt:e.prompt||E5.NONE}),eu.Silent)];case 1:n=s.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||EV,n.account||null),r=this.initializeServerTelemetryManager(this.apiId),s.label=2;case 2:return s.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(r,n.authority,n.azureCloudOptions)];case 3:return o=s.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(eh.SilentIframeClientTokenHelper,e.correlationId),[4,this.silentTokenHelper(o,n).then(function(e){return t.endMeasurement({success:!0,fromCache:!1,requestId:e.requestId}),e})];case 4:return[2,s.sent()];case 5:throw(a=s.sent())instanceof PG&&a.setCorrelationId(this.correlationId),r.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(n.state),t.endMeasurement({errorCode:a instanceof PG&&a.errorCode||void 0,subErrorCode:a instanceof PG&&a.subError||void 0,success:!1}),a;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(D4.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,t){return PO(this,void 0,void 0,function(){var n,r,o,a,s,l,c,u,d,p=this;return PL(this,function(f){switch(f.label){case 0:return this.performanceClient.addQueueMeasurement(eh.SilentIframeClientTokenHelper,t.correlationId),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 1:return n=f.sent(),this.performanceClient.setPreQueueTime(eh.GetAuthCodeUrl,t.correlationId),[4,e.getAuthCodeUrl(PM(PM({},t),{nativeBroker:NS.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 2:return r=f.sent(),o=new NT(e,this.browserStorage,n,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(eh.SilentHandlerInitiateAuthRequest,t.correlationId),[4,o.initiateAuthRequest(r)];case 3:return a=f.sent(),this.performanceClient.setPreQueueTime(eh.SilentHandlerMonitorIframeForHash,t.correlationId),[4,o.monitorIframeForHash(a,this.config.system.iframeHashTimeout)];case 4:if(s=f.sent(),l=RA.getDeserializedHash(s),c=this.validateAndExtractStateFromHash(l,eu.Silent,n.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw D4.createNativeConnectionNotEstablishedError();return u=new Nw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),d=RT.parseRequestState(this.browserCrypto,c).userRequestState,[2,u.acquireToken(PM(PM({},t),{state:d,prompt:t.prompt||E5.NONE})).finally(function(){p.browserStorage.cleanRequestByState(c)})]}return this.performanceClient.setPreQueueTime(eh.HandleCodeResponseFromHash,t.correlationId),[2,o.handleCodeResponseFromHash(s,c,e.authority,this.networkClient)]}})})},t}(Nf),NA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return PB(t,e),t.prototype.acquireToken=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a,s=this;return PL(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(eh.SilentRefreshClientAcquireToken,e.correlationId),this.performanceClient.setPreQueueTime(eh.InitializeBaseRequest,e.correlationId),n=[PM({},e)],[4,this.initializeBaseRequest(e)];case 1:return t=PM.apply(void 0,n.concat([l.sent()])),r=this.performanceClient.startMeasurement(eh.SilentRefreshClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(ec.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(o,t.authority,t.azureCloudOptions)];case 2:return a=l.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(eh.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 PG&&e.setCorrelationId(s.correlationId),o.cacheFailedRequest(e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})]}})})},t.prototype.logout=function(){return Promise.reject(D4.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){switch(r.label){case 0:return this.performanceClient.setPreQueueTime(eh.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return[2,new Nx(r.sent(),this.performanceClient)]}})})},t}(Nf),NR=function(){function e(e,t,n,r){this.isBrowserEnvironment="u">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 D4.createUnableToLoadTokenError("Please ensure server response includes id token.");var r,o,a=new Rv(t.id_token,this.cryptoObj);if(e.account){var s=this.loadAccount(a,e.account.environment,void 0,void 0,e.account.homeAccountId);r=new R9(s,this.loadIdToken(a,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,s.homeAccountId,e.account.environment))}else if(e.authority){var l=Nc.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(o=new Nc(l,this.config.system.networkClient,this.storage,c,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(a,o.hostnameAndPort,n.clientInfo,o.authorityType);r=new R9(s,this.loadIdToken(a,s.homeAccountId,o.hostnameAndPort,o.tenant),this.loadAccessToken(e,t,s.homeAccountId,o.hostnameAndPort,o.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,o.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(a,o.hostnameAndPort,t.client_info,o.authorityType);r=new R9(s,this.loadIdToken(a,s.homeAccountId,o.hostnameAndPort,o.tenant),this.loadAccessToken(e,t,s.homeAccountId,o.hostnameAndPort,o.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,o.hostnameAndPort))}else throw D4.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw D4.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,a,r,o)},e.prototype.loadAccount=function(e,t,n,r,o){if(o?a=o:void 0!==r&&n&&(a=Rg.generateHomeAccountId(n,r,this.logger,this.cryptoObj,e)),!a)throw D4.createUnableToLoadTokenError("Unexpected missing homeAccountId");var a,s=n?Rg.createAccount(n,a,e,void 0,void 0,void 0,t):Rg.createGenericAccount(a,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw D4.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(e,t,n,r){var o=AA.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(o),o;throw D4.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadAccessToken=function(e,t,n,r,o,a){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw D4.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw D4.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new Rf(e.scopes).printScopes(),l=a.expiresOn||t.expires_in+new Date().getTime()/1e3,c=a.extendedExpiresOn,u=Rw.createAccessTokenEntity(n,r,t.access_token,this.config.auth.clientId,o,s,l,c,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw D4.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 o=RS.createRefreshTokenEntity(n,r,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(o),o;throw D4.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(e,t,n,r){var o,a,s,l,c=EV,u=[],d=null;(null==n?void 0:n.accessToken)&&(c=n.accessToken.secret,u=Rf.fromString(n.accessToken.target).asArray(),d=new Date(1e3*Number(n.accessToken.expiresOn)),l=new Date(1e3*Number(n.accessToken.extendedExpiresOn)));var p=(null==t?void 0:t.claims.oid)||(null==t?void 0:t.claims.sub)||EV,f=(null==t?void 0:t.claims.tid)||EV;return{authority:r?r.canonicalAuthority:EV,uniqueId:p,tenantId:f,scopes:u,account:(null==n?void 0:n.account)?n.account.getAccountInfo():null,idToken:t?t.rawToken:EV,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:d,correlationId:e.correlationId||EV,requestId:EV,extExpiresOn:l,familyId:EV,tokenType:(null==(o=null==n?void 0:n.accessToken)?void 0:o.tokenType)||EV,state:EV,cloudGraphHostName:(null==(a=null==n?void 0:n.account)?void 0:a.cloudGraphHostName)||EV,msGraphHost:(null==(s=null==n?void 0:n.account)?void 0:s.msGraphHost)||EV,code:void 0,fromNativeBroker:!1}},e}(),NN=function(e){function t(t){var n=e.call(this,t)||this;return n.includeRedirectUri=!1,n}return PB(t,e),t}(Nn),NB=function(e){function t(t,n,r,o,a,s,l,c,u,d){var p=e.call(this,t,n,r,o,a,s,c,u,d)||this;return p.apiId=l,p}return PB(t,e),t.prototype.acquireToken=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a;return PL(this,function(s){switch(s.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw D4.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(eh.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,eu.Silent)];case 1:t=s.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||EV,t.account||null),n=this.initializeServerTelemetryManager(this.apiId),s.label=2;case 2:return s.trys.push([2,4,,5]),r=PM(PM({},t),{code:e.code}),this.performanceClient.setPreQueueTime(eh.StandardInteractionClientGetClientConfiguration,e.correlationId),[4,this.getClientConfiguration(n,t.authority)];case 3:return o=new NN(s.sent()),this.logger.verbose("Auth code client created"),[2,new NT(o,this.browserStorage,r,this.logger,this.config.system,this.performanceClient).handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t.state,o.authority,this.networkClient,!1)];case 4:throw(a=s.sent())instanceof PG&&a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(t.state),a;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(D4.createSilentLogoutUnsupportedError())},t}(Nf),NM=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"u">typeof window&&void 0!==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);window.performance.getEntriesByName(r,"measure").length>0&&(window.performance.clearMeasures(r),window.performance.clearMarks(e.makeStartMark(r,t)),window.performance.clearMarks(e.makeEndMark(r,t)))})}catch(e){}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(e){}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(e){}},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(e){}return null},e}(),NF=function(e){function t(t,n,r,o,a,s,l){var c=e.call(this,t,n,r,o,a,s)||this;return c.browserCrypto=new Ab(c.logger,l),c.guidGenerator=new P9(c.browserCrypto),c}return PB(t,e),t.prototype.startPerformanceMeasuremeant=function(e,t){return new NM(e,t)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return(null==(e=document.visibilityState)?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.incompleteSubMeasurements)&&t.incompleteSubMeasurements.forEach(function(e){r.push(PM({},e))}),r.length>0&&NM.flushMeasurements(e.event.correlationId,r)},t.prototype.supportsBrowserPerformanceNow=function(){return"u">typeof window&&void 0!==window.performance&&"function"==typeof window.performance.now},t.prototype.startMeasurement=function(t,n){var r=this,o=this.getPageVisibility(),a=e.prototype.startMeasurement.call(this,t,n);return PM(PM({},a),{endMeasurement:function(e){var t=a.endMeasurement(PM({startPageVisibility:o,endPageVisibility:r.getPageVisibility()},e));return r.deleteIncompleteSubMeasurements(a),t},discardMeasurement:function(){a.discardMeasurement(),r.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},t.prototype.setPreQueueTime=function(e,t){if(!this.supportsBrowserPerformanceNow())return void this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+e);if(!t)return void this.logger.trace("BrowserPerformanceClient: correlationId for "+e+" not provided, unable to set telemetry queue time");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()})},t.prototype.addQueueMeasurement=function(t,n,r,o){if(!this.supportsBrowserPerformanceNow())return void this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t);if(!n)return void this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");var a=e.prototype.getPreQueueTime.call(this,t,n);if(a){var s=window.performance.now(),l=r||e.prototype.calculateQueuedTime.call(this,a,s);return e.prototype.addQueueMeasurement.call(this,t,n,l,o)}},t}(AE),NO=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 PB(t,e),t.prototype.loginRedirect=function(e){return PO(this,void 0,void 0,function(){var t;return PL(this,function(n){return t=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",t),[2,this.acquireTokenRedirect(PM({correlationId:t},e||P_))]})})},t.prototype.loginPopup=function(e){var t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup(PM({correlationId:t},e||P_))},t.prototype.acquireTokenSilent=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a,s,l=this;return PL(this,function(c){if(t=this.getRequestCorrelationId(e),(n=this.performanceClient.startMeasurement(eh.AcquireTokenSilent,t)).addStaticFields({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(eu.Silent),this.logger.verbose("acquireTokenSilent called",t),!(r=e.account||this.getActiveAccount()))throw D4.createNoAccountError();return(o=JSON.stringify({clientId:this.config.auth.clientId,authority:e.authority||EV,scopes:e.scopes,homeAccountIdentifier:r.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid}),void 0===(a=this.activeSilentTokenRequests.get(o)))?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t),this.performanceClient.setPreQueueTime(eh.AcquireTokenSilentAsync,t),s=this.acquireTokenSilentAsync(PM(PM({},e),{correlationId:t}),r).then(function(t){return l.activeSilentTokenRequests.delete(o),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 l.activeSilentTokenRequests.delete(o),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}),this.activeSilentTokenRequests.set(o,s),[2,s]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),n.discardMeasurement(),[2,a])})})},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 PO(this,void 0,void 0,function(){var r,o,a,s,l,c=this;return PL(this,function(u){switch(u.label){case 0:if(this.performanceClient.addQueueMeasurement(eh.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_START,eu.Silent,e),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(eh.AcquireTokenSilentAsync,e.correlationId),null==(n=this.astsAsyncMeasurement)||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),!(NS.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&t.nativeAccountId))return[3,1];return this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),o=PM(PM({},e),{account:t}),r=this.acquireTokenNative(o,ec.acquireTokenSilent_silentFlow).catch(function(t){return PO(c,void 0,void 0,function(){return PL(this,function(n){if(t instanceof Nb&&t.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(e.correlationId).acquireToken(e)];throw t})})}),[3,3];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),a=this.createSilentCacheClient(e.correlationId),this.performanceClient.setPreQueueTime(eh.InitializeSilentRequest,e.correlationId),[4,a.initializeSilentRequest(e,t)];case 2:s=u.sent(),l=PM(PM({},e),{cacheLookupPolicy:e.cacheLookupPolicy||ef.Default}),this.performanceClient.setPreQueueTime(eh.AcquireTokenFromCache,s.correlationId),r=this.acquireTokenFromCache(a,s,l).catch(function(t){if(l.cacheLookupPolicy===ef.AccessToken)throw t;return RK.blockReloadInHiddenIframes(),c.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_NETWORK_START,eu.Silent,s),c.performanceClient.setPreQueueTime(eh.AcquireTokenByRefreshToken,s.correlationId),c.acquireTokenByRefreshToken(s,l).catch(function(t){var n=t instanceof PK,r=t instanceof P0,o=t.errorCode===Pg;if((!n||!o||r||l.cacheLookupPolicy===ef.AccessTokenAndRefreshToken||l.cacheLookupPolicy===ef.RefreshToken)&&l.cacheLookupPolicy!==ef.Skip)throw t;return c.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),c.performanceClient.setPreQueueTime(eh.AcquireTokenBySilentIframe,s.correlationId),c.acquireTokenBySilentIframe(s)})}),u.label=3;case 3:return[2,r.then(function(e){var t;return c.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_SUCCESS,eu.Silent,e),null==(t=c.astsAsyncMeasurement)||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){var t;throw c.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_FAILURE,eu.Silent,null,e),null==(t=c.astsAsyncMeasurement)||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}).finally(function(){document.removeEventListener("visibilitychange",c.trackPageVisibility)})]}})})},t}(function(){function e(e){this.isBrowserEnvironment="u">typeof window,this.config=RZ(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new A_(this.config.system.loggerOptions,R0,R1),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 NF(this.config.auth.clientId,this.config.auth.authority,this.logger,R0,R1,this.config.telemetry.application,this.config.system.cryptoOptions):new AI(this.config.auth.clientId,this.config.auth.authority,this.logger,R0,R1,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new AS(this.logger,this.performanceClient,this.config.system.cryptoOptions):AT,this.eventHandler=new R2(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new RN(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):RB(this.config.auth.clientId,this.logger);var t={cacheLocation:eo.MemoryStorage,temporaryCacheLocation:eo.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1};this.nativeInternalStorage=new RN(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new NR(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return PO(this,void 0,void 0,function(){var e,t,n,r;return PL(this,function(o){switch(o.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(eh.InitializeClientApplication),this.eventHandler.emitEvent(ek.INITIALIZE_START),!e)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),n=this,[4,NS.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=o.sent(),[3,4];case 3:return r=o.sent(),this.logger.verbose(r),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(ek.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},e.prototype.handleRedirectPromise=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a,s,l=this;return PL(this,function(c){return(this.logger.verbose("handleRedirectPromise called"),RK.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment)?(n=e||EV,void 0===(r=this.redirectResponse.get(n))?(this.eventHandler.emitEvent(ek.HANDLE_REDIRECT_START,eu.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),a=void 0,o&&NS.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new Nw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ec.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId).handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),s=this.browserStorage.getTemporaryCache(ea.CORRELATION_ID,!0)||EV,a=this.createRedirectClient(s).handleRedirectPromise(e)),r=a.then(function(e){return e&&(t.length<l.getAllAccounts().length?(l.eventHandler.emitEvent(ek.LOGIN_SUCCESS,eu.Redirect,e),l.logger.verbose("handleRedirectResponse returned result, login success")):(l.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_SUCCESS,eu.Redirect,e),l.logger.verbose("handleRedirectResponse returned result, acquire token success"))),l.eventHandler.emitEvent(ek.HANDLE_REDIRECT_END,eu.Redirect),e}).catch(function(e){throw t.length>0?l.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_FAILURE,eu.Redirect,null,e):l.eventHandler.emitEvent(ek.LOGIN_FAILURE,eu.Redirect,null,e),l.eventHandler.emitEvent(ek.HANDLE_REDIRECT_END,eu.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 PO(this,void 0,void 0,function(){var t,n,r,o=this;return PL(this,function(a){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(eu.Redirect),(n=this.getAllAccounts().length>0)?this.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_START,eu.Redirect,e):this.eventHandler.emitEvent(ek.LOGIN_START,eu.Redirect,e),[2,(r=this.nativeExtensionProvider&&this.canUseNative(e)?new Nw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ec.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireTokenRedirect(e).catch(function(t){if(t instanceof Nb&&t.isFatal()){o.nativeExtensionProvider=void 0;var n=o.createRedirectClient(e.correlationId);return n.acquireToken(e)}if(t instanceof P0){o.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var n=o.createRedirectClient(e.correlationId);return n.acquireToken(e)}throw o.browserStorage.setInteractionInProgress(!1),t}):this.createRedirectClient(e.correlationId).acquireToken(e)).catch(function(e){throw n?o.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_FAILURE,eu.Redirect,null,e):o.eventHandler.emitEvent(ek.LOGIN_FAILURE,eu.Redirect,null,e),e})]})})},e.prototype.acquireTokenPopup=function(e){var t,n=this,r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(eh.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(eu.Popup)}catch(e){return Promise.reject(e)}var a=this.getAllAccounts();return a.length>0?this.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_START,eu.Popup,e):this.eventHandler.emitEvent(ek.LOGIN_START,eu.Popup,e),(t=this.canUseNative(e)?this.acquireTokenNative(e,ec.acquireTokenPopup).then(function(e){return n.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e}).catch(function(t){if(t instanceof Nb&&t.isFatal()){n.nativeExtensionProvider=void 0;var r=n.createPopupClient(e.correlationId);return r.acquireToken(e)}if(t instanceof P0){n.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var r=n.createPopupClient(e.correlationId);return r.acquireToken(e)}throw n.browserStorage.setInteractionInProgress(!1),t}):this.createPopupClient(e.correlationId).acquireToken(e)).then(function(e){return a.length<n.getAllAccounts().length?n.eventHandler.emitEvent(ek.LOGIN_SUCCESS,eu.Popup,e):n.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_SUCCESS,eu.Popup,e),o.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),o.endMeasurement({success:!0,requestId:e.requestId}),e}).catch(function(e){return a.length>0?n.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_FAILURE,eu.Popup,null,e):n.eventHandler.emitEvent(ek.LOGIN_FAILURE,eu.Popup,null,e),o.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 PO(this,void 0,void 0,function(){var n,r,o,a=this;return PL(this,function(s){return n=this.getRequestCorrelationId(e),r=PM(PM({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(eu.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(eh.SsoSilent,n),null==(t=this.ssoSilentMeasurement)||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(ek.SSO_SILENT_START,eu.Silent,r),[2,(o=this.canUseNative(r)?this.acquireTokenNative(r,ec.ssoSilent).catch(function(e){if(e instanceof Nb&&e.isFatal())return a.nativeExtensionProvider=void 0,a.createSilentIframeClient(r.correlationId).acquireToken(r);throw e}):this.createSilentIframeClient(r.correlationId).acquireToken(r)).then(function(e){var t,n;return a.eventHandler.emitEvent(ek.SSO_SILENT_SUCCESS,eu.Silent,e),null==(t=a.ssoSilentMeasurement)||t.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),null==(n=a.ssoSilentMeasurement)||n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){var t;throw a.eventHandler.emitEvent(ek.SSO_SILENT_FAILURE,eu.Silent,null,e),null==(t=a.ssoSilentMeasurement)||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}).finally(function(){document.removeEventListener("visibilitychange",a.trackPageVisibilityWithMeasurement)})]})})},e.prototype.acquireTokenByCode=function(e){return PO(this,void 0,void 0,function(){var t,n,r,o,a=this;return PL(this,function(s){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(eu.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_BY_CODE_START,eu.Silent,e),n=this.performanceClient.startMeasurement(eh.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw D4.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return r=e.code,(o=this.hybridAuthCodeResponses.get(r))?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),o=this.acquireTokenByCodeAsync(PM(PM({},e),{correlationId:t})).then(function(e){return a.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_BY_CODE_SUCCESS,eu.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(ek.ACQUIRE_TOKEN_BY_CODE_FAILURE,eu.Silent,null,e),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}),this.hybridAuthCodeResponses.set(r,o)),[2,o];if(e.nativeAccountId)if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,ec.acquireTokenByCode,e.nativeAccountId).catch(function(e){throw e instanceof Nb&&e.isFatal()&&(a.nativeExtensionProvider=void 0),e})];else throw D4.createUnableToAcquireTokenFromNativePlatformError();else throw D4.createAuthCodeOrNativeAccountIdRequiredError()}catch(e){throw this.eventHandler.emitEvent(ek.ACQUIRE_TOKEN_BY_CODE_FAILURE,eu.Silent,null,e),n.endMeasurement({errorCode:e instanceof PG&&e.errorCode||void 0,subErrorCode:e instanceof PG&&e.subError||void 0,success:!1}),e}return[2]})})},e.prototype.acquireTokenByCodeAsync=function(e){var t;return PO(this,void 0,void 0,function(){var n=this;return PL(this,function(r){switch(r.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(eh.AcquireTokenByCodeAsync,e.correlationId),null==(t=this.acquireTokenByCodeAsyncMeasurement)||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),[4,this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(function(e){var t;return null==(t=n.acquireTokenByCodeAsyncMeasurement)||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){var t;throw null==(t=n.acquireTokenByCodeAsyncMeasurement)||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}).finally(function(){document.removeEventListener("visibilitychange",n.trackPageVisibilityWithMeasurement)})];case 1:return[2,r.sent()]}})})},e.prototype.acquireTokenFromCache=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){switch(this.performanceClient.addQueueMeasurement(eh.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case ef.Default:case ef.AccessToken:case ef.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw TD.createRefreshRequiredError()}})})},e.prototype.acquireTokenByRefreshToken=function(e,t){return PO(this,void 0,void 0,function(){var n;return PL(this,function(r){switch(this.performanceClient.addQueueMeasurement(eh.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case ef.Default:case ef.AccessTokenAndRefreshToken:case ef.RefreshToken:case ef.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(eh.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw TD.createRefreshRequiredError()}})})},e.prototype.acquireTokenBySilentIframe=function(e){return PO(this,void 0,void 0,function(){var t;return PL(this,function(n){return this.performanceClient.addQueueMeasurement(eh.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(eh.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},e.prototype.logout=function(e){return PO(this,void 0,void 0,function(){var t;return PL(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(PM({correlationId:t},e))]})})},e.prototype.logoutRedirect=function(e){return PO(this,void 0,void 0,function(){var t;return PL(this,function(n){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(eu.Redirect),[2,this.createRedirectClient(t).logout(e)]})})},e.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(eu.Popup),this.createPopupClient(t).logout(e)}catch(e){return Promise.reject(e)}},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"),RK.blockNonBrowserEnvironment(this.isBrowserEnvironment),RK.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),RK.blockReloadInHiddenIframes(),RK.blockAcquireTokenInPopups(),RK.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===eu.Redirect&&this.config.cache.cacheLocation===eo.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Ah.createInMemoryRedirectUnavailableError();(e===eu.Redirect||e===eu.Popup)&&this.preflightInteractiveRequest(t)},e.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),RK.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(e,t,n){return PO(this,void 0,void 0,function(){return PL(this,function(r){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw D4.createNativeConnectionNotEstablishedError();return[2,new Nw(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).acquireToken(e)]})})},e.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!NS.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 E5.NONE:case E5.CONSENT:case E5.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 NE(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 NI(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 ND(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ec.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentCacheClient=function(e){return new Nk(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentRefreshClient=function(e){return new NA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentAuthCodeClient=function(e){return new NB(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ec.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.correlationId)?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():EV},e}()),NL="initialize",NH="name",Nz="getNotifyMgr",NV="identifier",NU="push",Nj="isInitialized",NW="config",Nq="instrumentationKey",NG="logger",NK="length",NX="time",NY="processNext",N$="getProcessTelContext",NQ="addNotificationListener",NJ="removeNotificationListener",NZ="stopPollingInternalLogs",N0="onComplete",N1="getPlugin",N2="flush",N5="_extensions",N4="splice",N3="teardown",N6="messageId",N8="message",N9="isAsync",N7="_doTeardown",Be="update",Bt="getNext",Bn="diagLog",Br="setNextPlugin",Bo="createNew",Bi="cookieCfg",Ba="indexOf",Bs="substring",Bl="userAgent",Bc="split",Bu="setEnabled",Bd="substr",Bp="nodeType",Bf="apply",Bh="replace",Bm="enableDebugExceptions",Bg="logInternalMessage",Bv="toLowerCase",By="call",Bb="type",Bx="handler",BC="listeners",Bk="isChildEvt",Bw="getCtx",BS="setCtx",B_="complete",BE="traceId",BP="spanId",BI="traceFlags",BT="",BD="channels",BA="core",BR="createPerfMgr",BN="disabled",BB="extensionConfig",BM="extensions",BF="processTelemetry",BO="priority",BL="eventsSent",BH="eventsDiscarded",Bz="eventsSendRequest",BV="perfEvent",BU="errorToConsole",Bj="warnToConsole",BW="getPerfMgr",Bq="toISOString",BG="endsWith",BK="startsWith",BX="indexOf",BY="trim",B$="toString",BQ="__proto__",BJ="constructor",BZ=n2.KU,B0=n2.s6.freeze;n2.s6.seal;var B1=n2.s6.keys,B2=String[n2.vR],B5=B2[BY],B4=B2[BG],B3=B2[BK],B6=Date[n2.vR][Bq],B8=Array.isArray,B9=n2.Wy[B$],B7=n2.J$[B$],Me=B7[By](n2.s6),Mt=/-([a-z])/g,Mn=/([^\w\d_$])/g,Mr=/^(\d+[\w\d_$])/,Mo=Object.getPrototypeOf;function Mi(e){if(e){if(Mo)return Mo(e);var t=e[BQ]||e[n2.vR]||e[BJ];if(t)return t}return null}function Ma(e){return void 0===e||typeof e===n2.bA}function Ms(e){return null===e||Ma(e)}function Ml(e){return!Ms(e)}function Mc(e,t){return!!(e&&n2.J$[By](e,t))}function Mu(e){return!!(e&&typeof e===n2._1)}function Md(e){return!!(e&&typeof e===n2.hW)}function Mp(e){var t=e;return t&&Mk(t)&&(t=(t=(t=t[Bh](Mt,function(e,t){return t.toUpperCase()}))[Bh](Mn,"_"))[Bh](Mr,function(e,t){return"_"+t})),t}function Mf(e,t){if(e)for(var n in e)n2.J$[By](e,n)&&t[By](e,n,e[n])}function Mh(e,t){var n=!1;return!e||!t||(n=e===t)||(n=B4?e[BG](t):Mm(e,t)),n}function Mm(e,t){var n=!1,r=t?t[NK]:0,o=e?e[NK]:0;if(r&&o&&o>=r&&!(n=e===t)){for(var a=o-1,s=r-1;s>=0;s--){if(e[a]!=t[s])return!1;a--}n=!0}return n}function Mg(e,t){var n=!1;return!e||!t||(n=e===t)||(n=B3?e[BK](t):Mv(e,t)),n}function Mv(e,t){var n=!1,r=t?t[NK]:0;if(e&&r&&e[NK]>=r&&!(n=e===t)){for(var o=0;o<r;o++)if(e[o]!==t[o])return!1;n=!0}return n}function My(e,t){return!!e&&!!t&&-1!==e[Ba](t)}var Mb=B8||Mx;function Mx(e){return!!(e&&"[object Array]"===B9[By](e))}function MC(e){return!!(e&&"[object Error]"===B9[By](e))}function Mk(e){return"string"==typeof e}function Mw(e){return"number"==typeof e}function MS(e){return"boolean"==typeof e}function M_(e){var t=!1;if(e&&"object"==typeof e){var n=Mo?Mo(e):Mi(e);n?(n[BJ]&&n2.J$[By](n,BJ)&&(n=n[BJ]),t=typeof n===n2.hW&&B7[By](n)===Me):t=!0}return t}function ME(e){if(e)return B6?e[Bq]():MP(e)}function MP(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[NK]&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function MI(e,t,n){var r=e[NK];try{for(var o=0;o<r&&(!(o in e)||-1!==t[By](n||e,e[o],o,e));o++);}catch(e){}}function MT(e,t,n){if(e){if(e[BX])return e[BX](t,n);var r=e[NK],o=n||0;try{for(var a=Math.max(o>=0?o:r-Math.abs(o),0);a<r;a++)if(a in e&&e[a]===t)return a}catch(e){}}return -1}function MD(e){return e&&(e=B5&&e[BY]?e[BY]():e[Bh]?e[Bh](/^\s+|(?=\s)\s+$/g,BT):e),e}var MA=!({toString:null}).propertyIsEnumerable("toString"),MR=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function MN(e){var t=typeof e;if(t!==n2.hW&&(t!==n2._1||null===e)&&(0,n5.zk)("objKeys called on non-object"),!MA&&B1)return B1(e);var n=[];for(var r in e)e&&n2.J$[By](e,r)&&n[NU](r);if(MA)for(var o=MR[NK],a=0;a<o;a++)e&&n2.J$[By](e,MR[a])&&n[NU](MR[a]);return n}function MB(e,t,n,r){if(BZ)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),BZ(e,t,o),!0}catch(e){}return!1}function MM(e){return e}function MF(e){return B0&&Mf(e,function(e,t){(Mb(t)||Mu(t))&&B0(t)}),MO(e)}var MO=B0||MM;function ML(){var e=Date;return e.now?e.now():new e().getTime()}function MH(e){return MC(e)?e[NH]:BT}function Mz(e,t,n,r,o){var a=n;return e&&(a=e[t])!==n&&(!o||o(a))&&(!r||r(n))&&(a=n,e[t]=a),a}function MV(e,t,n){var r;return e?!(r=e[t])&&Ms(r)&&(r=Ma(n)?{}:n,e[t]=r):r=Ma(n)?{}:n,r}function MU(e,t){return Ms(e)?t:e}function Mj(e){return!!e}function MW(e){throw Error(e)}function Mq(e,t){var n=null,r=null;return Md(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][Bf](r,e)}}function MG(e,t,n,r,o){e&&t&&n&&(!1!==o||Ma(e[t]))&&(e[t]=Mq(n,r))}function MK(e,t,n,r){return e&&t&&Mu(e)&&Mb(n)&&MI(n,function(n){Mk(n)&&MG(e,n,t,n,r)}),e}function MX(e){return e&&n2.zi&&(e=(0,n2.s6)((0,n2.zi)({},e))),e}function MY(e,t,n,r,o,a){var s=arguments,l=s[0]||{},c=s[NK],u=!1,d=1;for(c>0&&MS(l)&&(u=l,l=s[d]||{},d++),Mu(l)||(l={});d<c;d++){var p=s[d],f=Mb(p),h=Mu(p);for(var m in p)if(f&&m in p||h&&n2.J$[By](p,m)){var g=p[m],v=void 0;if(u&&g&&((v=Mb(g))||M_(g))){var y=l[m];v?Mb(y)||(y=[]):M_(y)||(y={}),g=MY(u,y,g)}void 0!==g&&(l[m]=g)}}return l}var M$="ctx",MQ="ParentContextKey",MJ="ChildrenContextKey",MZ=null,M0=function(){function e(t,n,r){var o,a=this,s=!1;a.start=ML(),a[NH]=t,a[N9]=r,a[Bk]=function(){return!1},Md(n)&&(s=MB(a,"payload",function(){return!o&&Md(n)&&(o=n(),n=null),o})),a[Bw]=function(t){return t?t===e[MQ]||t===e[MJ]?a[t]:(a[M$]||{})[t]:null},a[BS]=function(t,n){t&&(t===e[MQ]?(a[t]||(a[Bk]=function(){return!0}),a[t]=n):t===e[MJ]?a[t]=n:(a[M$]=a[M$]||{})[t]=n)},a[B_]=function(){var t=0,r=a[Bw](e[MJ]);if(Mb(r))for(var o=0;o<r[NK];o++){var l=r[o];l&&(t+=l[NX])}a[NX]=ML()-a.start,a.exTime=a[NX]-t,a[B_]=function(){},!s&&Md(n)&&(a.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),M1=function(){function e(t){this.ctx={},t7(e,this,function(e){e.create=function(e,t,n){return new M0(e,t,n)},e.fire=function(e){e&&(e[B_](),t&&Md(t[BV])&&t[BV](e))},e[BS]=function(t,n){t&&((e[M$]=e[M$]||{})[t]=n)},e[Bw]=function(t){return(e[M$]||{})[t]}})}return e.__ieDyn=1,e}(),M2="CoreUtils.doPerf";function M5(e,t,n,r,o){if(e){var a=e;if(a[BW]&&(a=a[BW]()),a){var s=void 0,l=a[Bw](M2);try{if(s=a.create(t(),r,o)){if(l&&s[BS]&&(s[BS](M0[MQ],l),l[Bw]&&l[BS])){var c=l[Bw](M0[MJ]);c||(c=[],l[BS](M0[MJ],c)),c[NU](s)}return a[BS](M2,s),n(s)}}catch(e){s&&s[BS]&&s[BS]("exception",e)}finally{s&&a.fire(s),a[BS](M2,l)}}}return n()}function M4(){return MZ}var M3="window",M6="document",M8="navigator",M9="location",M7="console",Fe="performance",Ft="JSON",Fn="crypto",Fr="msCrypto",Fo="ReactNative",Fi="msie",Fa="trident/",Fs="XMLHttpRequest",Fl=null,Fc=null,Fu=!1,Fd=null,Fp=null;function Ff(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[n2.vR];r&&(n=t in r)}}catch(e){}if(!n)try{var o=new e;n=!Ma(o[t])}catch(e){}}return n}function Fh(e){var t=(0,n5.mS)();return t&&t[e]?t[e]:e===M3&&Fm()?window:null}function Fm(){return!!(typeof window===n2._1&&window)}function Fg(){return Fm()?window:Fh(M3)}function Fv(){return!!(typeof document===n2._1&&document)}function Fy(){return Fv()?document:Fh(M6)}function Fb(){return!!(typeof navigator===n2._1&&navigator)}function Fx(){return Fb()?navigator:Fh(M8)}function FC(e){if(e&&Fu){var t=Fh("__mockLocation");if(t)return t}return typeof location===n2._1&&location?location:Fh(M9)}function Fk(){return typeof console!==n2.bA?console:Fh(M7)}function Fw(){return Fh(Fe)}function FS(){return!!(typeof JSON===n2._1&&JSON||null!==Fh(Ft))}function F_(){return FS()?JSON||Fh(Ft):null}function FE(){return Fh(Fn)}function FP(){return Fh(Fr)}function FI(){var e=Fx();return!!e&&!!e.product&&e.product===Fo}function FT(){var e=Fx();if(e&&(e[Bl]!==Fc||null===Fl)){var t=((Fc=e[Bl])||BT)[Bv]();Fl=My(t,Fi)||My(t,Fa)}return Fl}function FD(e){var t=Object[n2.vR].toString[By](e),n=BT;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[NH]+"'":FS()&&(n=F_().stringify(e)),t+n}function FA(){return null===Fp&&(Fp=Fb()&&!!Fx().sendBeacon),Fp}function FR(e){var t=!1;try{t=!!Fh("fetch");var n=Fh("Request");t&&e&&n&&(t=Ff(n,"keepalive"))}catch(e){}return t}function FN(){return null===Fd&&(Fd=typeof XDomainRequest!==n2.bA)&&FB()&&(Fd=Fd&&!Ff(Fh(Fs),"withCredentials")),Fd}function FB(){var e=!1;try{e=!!Fh(Fs)}catch(e){}return e}var FM=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],FF=null;function FO(e,t){return function(){var n=arguments,r=FH(t);if(r){var o=r.listener;o&&o[e]&&o[e][Bf](o,n)}}}function FL(){var e=Fh("Microsoft");return e&&(FF=e.ApplicationInsights),FF}function FH(e){var t=FF;return t||!0===e.disableDbgExt||(t=FF||FL()),t?t.ChromeDbgExt:null}function Fz(e){if(!e_){e_={};for(var t=0;t<FM[NK];t++)e_[FM[t]]=FO(FM[t],e)}return e_}var FV="AI (Internal): ",FU="AI: ",Fj="AITR_";function FW(e){return e?'"'+e[Bh](/\"/g,BT)+'"':BT}function Fq(e,t){var n=Fk();if(n){var r="log";n[e]&&(r=e),Md(n[r])&&n[r](t)}}var FG=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o[N6]=e,o[N8]=(n?FU:FV)+e;var a=BT;FS()&&(a=F_().stringify(r));var s=(t?" message:"+FW(t):BT)+(r?" props:"+FW(a):BT);o[N8]+=s}return e.dataType="MessageData",e}();function FK(e,t){return(e||{})[NG]||new FX(t)}var FX=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,r,o,a,s=0,l={};t7(e,this,function(e){function c(t,n){if(!u()){var a=!0,c=Fj+n[N6];if(l[c]?a=!1:l[c]=!0,a&&(t<=r&&(e.queue[NU](n),s++,d(1===t?"error":"warn",n)),s===o)){var p="Internal events throttle limit per PageView reached for this app.",f=new FG(23,p,!1);e.queue[NU](f),1===t?e[BU](p):e[Bj](p)}}}function u(){return s>=o}function d(e,n){var r=FH(t||{});r&&r[Bn]&&r[Bn](e,n)}(function e(e){n=MU(e.loggingLevelConsole,0),r=MU(e.loggingLevelTelemetry,1),o=MU(e.maxMessageLimit,25),a=MU(e.enableDebug,MU(e[Bm],!1))})(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return r},e.maxInternalMessageLimit=function(){return o},e[Bm]=function(){return a},e.throwInternal=function(t,r,o,s,u){void 0===u&&(u=!1);var p=new FG(r,o,u,s);if(a)throw FD(p);var f=1===t?BU:Bj;if(Ma(p[N8]))d("throw"+(1===t?"Critical":"Warning"),p);else{if(u){var h=+p[N6];!l[h]&&n>=t&&(e[f](p[N8]),l[h]=!0)}else n>=t&&e[f](p[N8]);c(t,p)}},e[Bj]=function(e){Fq("warn",e),d("warning",e)},e[BU]=function(e){Fq("error",e),d("error",e)},e.resetInternalMessageCount=function(){s=0,l={}},e[Bg]=c})}return e.__ieDyn=1,e}();function FY(e){return e||new FX}function F$(e,t,n,r,o,a){void 0===a&&(a=!1),FY(e).throwInternal(t,n,r,o,a)}function FQ(e,t){FY(e)[Bj](t)}var FJ=0x100000000,FZ=0xffffffff,F0=!1,F1=0x75bcd15,F2=0x3ade68b1;function F5(e){e<0&&(e>>>=0),F1=0x75bcd15+e&FZ,F2=0x3ade68b1-e&FZ,F0=!0}function F4(){try{var e=0x7fffffff&ML();F5((Math.random()*FJ^e)+e)}catch(e){}}function F3(e){var t=0,n=FE()||FP();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&FZ),0===t&&FT()&&(F0||F4(),t=F6()&FZ),0===t&&(t=Math.floor(FJ*Math.random()|0)),e||(t>>>=0),t}function F6(e){var t=((F2=36969*(65535&F2)+(F2>>16)&FZ)<<16)+(65535&(F1=18e3*(65535&F1)+(F1>>16)&FZ))>>>0&FZ;return e||(t>>>=0),t}function F8(e){void 0===e&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=F3()>>>0,r=0,o=BT;o[NK]<e;)r++,o+=t.charAt(63&n),n>>>=6,5===r&&(n=(F3()<<2|3&n)>>>0,r=0);return o}var F9=n2.KU,F7="2.8.12",Oe="."+F8(6),Ot=0;function On(e,t,n){if(F9)try{return F9(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return!1}function Or(e){return 1===e[Bp]||9===e[Bp]||!+e[Bp]}function Oo(e,t){var n=t[e.id];if(!n){n={};try{Or(t)&&!On(t,e.id,n)&&(t[e.id]=n)}catch(e){}}return n}function Oi(e,t){return void 0===t&&(t=!1),Mp(e+Ot+++(t?"."+F7:BT)+Oe)}function Oa(e){var t={id:Oi("_aiData-"+(e||BT)+"."+F7),accept:function(e){return Or(e)},get:function(e,n,r,o){var a=e[t.id];return a?a[Mp(n)]:(o&&((a=Oo(t,e))[Mp(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}var Os=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,Ol="ff",Oc="00000000000000000000000000000000",Ou="0000000000000000";function Od(e,t,n){return!!e&&e[NK]===t&&e!==n&&!!e.match(/^[\da-f]*$/)}function Op(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[_DYN_LENGTH]<2;)t="0"+t;return t}function Of(e){return Od(e,32,Oc)}function Oh(e){return Od(e,16,Ou)}var Om=Oa("plugin");function Og(e){return Om.get(e,"state",{},!0)}function Ov(e,t){for(var n,r=[],o=null,a=e[Bt]();a;){var s=a[N1]();if(s){o&&Md(o[Br])&&Md(s[BF])&&o[Br](s);var l=!1;(l=Md(s[Nj])?s[Nj]():(n=Og(s))[Nj])||r[NU](s),o=s,a=a[Bt]()}}MI(r,function(r){var o=e[BA]();r[NL](e.getCfg(),o,t,e[Bt]()),n=Og(r),r[BA]||n[BA]||(n[BA]=o),n[Nj]=!0,delete n[N3]})}function Oy(e){return e.sort(function(e,t){var n=0;if(t){var r=Md(t[BF]);Md(e[BF])?n=r?e[BO]-t[BO]:1:r&&(n=-1)}else n=e?1:-1;return n})}function Ob(e){var t={};return{getName:function(){return t[NH]},setName:function(n){e&&e.setName(n),t[NH]=n},getTraceId:function(){return t[BE]},setTraceId:function(n){e&&e.setTraceId(n),Of(n)&&(t[BE]=n)},getSpanId:function(){return t[BP]},setSpanId:function(n){e&&e.setSpanId(n),Oh(n)&&(t[BP]=n)},getTraceFlags:function(){return t[BI]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[BI]=n}}}var Ox="TelemetryPluginChain",OC="_hasRun",Ok="_getTelCtx",Ow=0;function OS(e,t,n){for(;e;){if(e[N1]()===n)return e;e=e[Bt]()}return OT([n],t[NW]||{},t)}function O_(e,t,n,r){var o=null,a=[];null!==r&&(o=r?OS(e,n,r):e);var s={_next:c,ctx:{core:function(){return n},diagLog:function(){return FK(n,t)},getCfg:function(){return t},getExtCfg:u,getConfig:d,hasNext:function(){return!!o},getNext:function(){return o},setNext:function(e){o=e},iterate:p,onComplete:l}};function l(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&a[NU]({func:e,self:Ma(t)?s.ctx:t,args:n})}function c(){var e=o;if(o=e?e[Bt]():null,!e){var t=a;t&&t[NK]>0&&(MI(t,function(e){try{e.func[By](e.self,e.args)}catch(e){F$(n[NG],2,73,"Unexpected Exception during onComplete - "+FD(e))}}),a=[])}return e}function u(e,n,r){if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o,a=t[BB];a&&e&&(o=a[e])}if(o){if(Mu(n)&&0!==r){var s=MY(!0,n,o);t&&2===r&&Mf(n,function(e){if(Ms(s[e])){var n=t[e];Ms(n)||(s[e]=n)}}),o=s}}else o=n;return o}function d(e,n,r){void 0===r&&(r=!1);var o,a=u(e,null);return a&&!Ms(a[n])?o=a[n]:t&&!Ms(t[n])&&(o=t[n]),Ms(o)?r:o}function p(e){for(var t;t=s._next();){var n=t[N1]();n&&e(n)}}return s}function OE(e,t,n,r){var o=O_(e,t,n,r),a=o.ctx;function s(e){var t=o._next();return t&&t[BF](e,a),!t}function l(e,r){return void 0===e&&(e=null),Mb(e)&&(e=OT(e,t,n,r)),OE(e||a[Bt](),t,n,r)}return a[NY]=s,a[Bo]=l,a}function OP(e,t,n){var r=t[NW]||{},o=O_(e,r,t,n),a=o.ctx;function s(e){var t=o._next();return t&&t.unload(a,e),!t}function l(e,n){return void 0===e&&(e=null),Mb(e)&&(e=OT(e,r,t,n)),OP(e||a[Bt](),t,n)}return a[NY]=s,a[Bo]=l,a}function OI(e,t,n){var r=t[NW]||{},o=O_(e,r,t,n).ctx;function a(e){return o.iterate(function(t){Md(t[Be])&&t[Be](o,e)})}function s(e,n){return void 0===e&&(e=null),Mb(e)&&(e=OT(e,r,t,n)),OI(e||o[Bt](),t,n)}return o[NY]=a,o[Bo]=s,o}function OT(e,t,n,r){var o=null,a=!r;if(Mb(e)&&e[NK]>0){var s=null;MI(e,function(e){if(a||r!==e||(a=!0),a&&e&&Md(e[BF])){var l=OD(e,t,n);o||(o=l),s&&s._setNext(l),s=l}})}return r&&!o?OT([r],t,n):o}function OD(e,t,n){var r,o=null,a=Md(e[BF]),s=Md(e[Br]),l={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:d,unload:p,update:f,_id:r=e?e[NV]+"-"+e[BO]+"-"+Ow++:"Unknown-0-"+Ow++,_setNext:function(e){o=e}};function c(){var r;return e&&Md(e[Ok])&&(r=e[Ok]()),r||(r=OE(l,t,n)),r}function u(t,n,a,s,l){var c=!1,u=e?e[NV]:Ox,d=t[OC];return d||(d=t[OC]={}),t.setNext(o),e&&M5(t[BA](),function(){return u+":"+a},function(){d[r]=!0;try{var e=o?o._id:BT;e&&(d[e]=!1),c=n(t)}catch(e){var s=!o||d[o._id];s&&(c=!0),o&&s||F$(t[Bn](),1,73,"Plugin ["+u+"] failed during "+a+" - "+FD(e)+", run flags: "+FD(d))}},s,l),c}function d(t,n){function r(n){if(!e||!a)return!1;var r=Og(e);return!r[N3]&&!r[BN]&&(s&&e[Br](o),e[BF](t,n),!0)}u(n=n||c(),r,"processTelemetry",function(){return{item:t}},!t.sync)||n[NY](t)}function p(t,n){function r(){var r=!1;if(e){var o=Og(e),a=e[BA]||o[BA];e&&(!a||a===t.core())&&!o[N3]&&(o[BA]=null,o[N3]=!0,o[Nj]=!1,e[N3]&&!0===e[N3](t,n)&&(r=!0))}return r}u(t,r,"unload",function(){},n[N9])||t[NY](n)}function f(t,n){function r(){var r=!1;if(e){var o=Og(e),a=e[BA]||o[BA];e&&(!a||a===t.core())&&!o[N3]&&e[Be]&&!0===e[Be](t,n)&&(r=!0)}return r}u(t,r,"update",function(){},!1)||t[NY](n)}return MO(l)}var OA=500,OR="Channel has invalid priority - ";function ON(e,t,n){t&&Mb(t)&&t[NK]>0&&(MI(t=t.sort(function(e,t){return e[BO]-t[BO]}),function(e){e[BO]<OA&&MW(OR+e[NV])}),e[NU]({queue:MO(t),chain:OT(t,n[NW],n)}))}function OB(e,t){function n(){return OE(null,t[NW],t,null)}function r(e,t,n,r){var o=e?e[NK]+1:1;function a(){0==--o&&(r&&r(),r=null)}o>0&&MI(e,function(e){if(e&&e.queue[NK]>0){var r=e.chain,s=t[Bo](r);s[N0](a),n(s)}else o--}),a()}var o=!1;return{identifier:"ChannelControllerPlugin",priority:OA,initialize:function(t,n,r,a){o=!0,MI(e,function(e){e&&e.queue[NK]>0&&Ov(OE(e.chain,t,n),r)})},isInitialized:function(){return o},processTelemetry:function(t,o){r(e,o||n(),function(e){e[NY](t)},function(){o[NY](t)})},update:function(t,n){var o=n||{reason:0};return r(e,t,function(e){e[NY](o)},function(){t[NY](o)}),!0},pause:function(){r(e,n(),function(e){e.iterate(function(e){e.pause&&e.pause()})},null)},resume:function(){r(e,n(),function(e){e.iterate(function(e){e.resume&&e.resume()})},null)},teardown:function(t,n){var a=n||{reason:0,isAsync:!1};return r(e,t,function(e){e[NY](a)},function(){t[NY](a),o=!1}),!0},getChannel:function(t){var n=null;return e&&e[NK]>0&&MI(e,function(e){if(e&&e.queue[NK]>0&&(MI(e.queue,function(e){if(e[NV]===t)return n=e,-1}),n))return -1}),n},flush:function(t,o,a,s){var l=1,c=!1,u=null;function d(){l--,c&&0===l&&(u&&(clearTimeout(u),u=null),o&&o(c),o=null)}return s=s||5e3,r(e,n(),function(e){e.iterate(function(e){if(e[N2]){l++;var n=!1;e[N2](t,function(){n=!0,d()},a)||n||(t&&null==u?u=setTimeout(function(){u=null,d()},s):d())}})},function(){c=!0,d()}),!0},_setQueue:function(t){e=t}}}function OM(e,t,n){var r=[];if(e&&MI(e,function(e){return ON(r,e,n)}),t){var o=[];MI(t,function(e){e[BO]>OA&&o[NU](e)}),ON(r,o,n)}return r}var OF="toGMTString",OO="toUTCString",OL="cookie",OH="expires",Oz="enabled",OV="isCookieUseDisabled",OU="disableCookiesUsage",Oj="_ckMgr",OW=null,Oq=null,OG=null,OK=Fy(),OX={},OY={};function O$(e,t){var n=O2[Oj]||OY[Oj];return n||(n=O2[Oj]=O2(e,t),OY[Oj]=n),n}function OQ(e){return!e||e.isEnabled()}function OJ(e){var t=e[Bi]=e[Bi]||{};if(Mz(t,"domain",e.cookieDomain,Ml,Ms),Mz(t,"path",e.cookiePath||"/",null,Ms),Ms(t[Oz])){var n=void 0;Ma(e[OV])||(n=!e[OV]),Ma(e[OU])||(n=!e[OU]),t[Oz]=n}return t}function OZ(e,t){return!!(t&&e&&Mb(e.ignoreCookies))&&-1!==e.ignoreCookies[Ba](t)}function O0(e,t){return!!(t&&e&&Mb(e.blockedCookies))&&-1!==e.blockedCookies[Ba](t)||OZ(e,t)}function O1(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t[Bi];n=r[Oj]?r[Oj]:O2(t)}return n||(n=O$(t,(e||{})[NG])),n}function O2(e,t){var n,r=OJ(e||OY),o=r.path||"/",a=r.domain,s=!1!==r[Oz],l=((n={isEnabled:function(){var e=s&&O5(t),n=OY[Oj];return e&&n&&l!==n&&(e=OQ(n)),e}})[Bu]=function(e){s=!1!==e},n.set=function(e,t,n,s,c){var u=!1;if(OQ(l)&&!O0(r,e)){var d={},p=MD(t||BT),f=p[Ba](";");if(-1!==f&&(p=MD(t[Bs](0,f)),d=O4(t[Bs](f+1))),Mz(d,"domain",s||a,Mj,Ma),!Ms(n)){var h=FT();if(Ma(d[OH])){var m=ML()+1e3*n;if(m>0){var g=new Date;g.setTime(m),Mz(d,OH,O3(g,h?OF:OO)||O3(g,h?OF:OO)||BT,Mj)}}h||Mz(d,"max-age",BT+n,null,Ma)}var v=FC();v&&"https:"===v.protocol&&(Mz(d,"secure",null,null,Ma),null===Oq&&(Oq=!O7((Fx()||{})[Bl])),Oq&&Mz(d,"SameSite","None",null,Ma)),Mz(d,"path",c||o,null,Ma),(r.setCookie||O9)(e,O6(p,d)),u=!0}return u},n.get=function(e){var t=BT;return OQ(l)&&!OZ(r,e)&&(t=(r.getCookie||O8)(e)),t},n.del=function(e,t){var n=!1;return OQ(l)&&(n=l.purge(e,t)),n},n.purge=function(e,n){var o,a=!1;if(O5(t)){var s=((o={}).path=n||"/",o[OH]="Thu, 01 Jan 1970 00:00:01 GMT",o);FT()||(s["max-age"]="0"),(r.delCookie||O9)(e,O6(BT,s)),a=!0}return a},n);return l[Oj]=l,l}function O5(e){if(null===OW){OW=!1;try{var t=OK||{};OW=void 0!==t[OL]}catch(t){F$(e,2,68,"Cannot access document.cookie - "+MH(t),{exception:FD(t)})}}return OW}function O4(e){var t={};return e&&e[NK]&&MI(MD(e)[Bc](";"),function(e){if(e=MD(e||BT)){var n=e[Ba]("=");-1===n?t[e]=null:t[MD(e[Bs](0,n))]=MD(e[Bs](n+1))}}),t}function O3(e,t){return Md(e[t])?e[t]():null}function O6(e,t){var n=e||BT;return Mf(t,function(e,t){n+="; "+e+(Ms(t)?BT:"="+t)}),n}function O8(e){var t=BT;if(OK){var n=OK[OL]||BT;OG!==n&&(OX=O4(n),OG=n),t=MD(OX[e]||BT)}return t}function O9(e,t){OK&&(OK[OL]=e+"="+t)}function O7(e){return!!Mk(e)&&!!(My(e,"CPU iPhone OS 12")||My(e,"iPad; CPU OS 12")||My(e,"Macintosh; Intel Mac OS X 10_14")&&My(e,"Version/")&&My(e,"Safari")||My(e,"Macintosh; Intel Mac OS X 10_14")&&Mh(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||My(e,"Chrome/5")||My(e,"Chrome/6")||My(e,"UnrealEngine")&&!My(e,"Chrome")||My(e,"UCBrowser/12")||My(e,"UCBrowser/11"))}function Le(){var e=[];return{add:function(t){t&&e[NU](t)},run:function(t,n){MI(e,function(e){try{e(t,n)}catch(e){F$(t[Bn](),2,73,"Unexpected error calling unload handler - "+FD(e))}}),e=[]}}}var Lt="getPlugin",Ln=function(){function e(){var t,n,r,o,a,s=this;function l(e){void 0===e&&(e=null);var t=e;if(!t){var o=n||OE(null,{},s[BA]);t=r&&r[Lt]?o[Bo](null,r[Lt]):o[Bo](null,r)}return t}function c(e,t,o){e&&Mz(e,BB,[],null,Ms),!o&&t&&(o=t[N$]()[Bt]());var a=r;r&&r[Lt]&&(a=r[Lt]()),s[BA]=t,n=OE(o,e,t,a)}function u(){t=!1,s[BA]=null,n=null,r=null,a=[],o=Le()}u(),t7(e,s,function(e){e[NL]=function(e,n,r,o){c(e,n,o),t=!0},e[N3]=function(t,n){var s,l,c=e[BA];if(c&&(!t||c===t[BA]())){var d=!1,p=t||OP(null,c,r&&r[Lt]?r[Lt]():r),f=n||(s={reason:0},s[N9]=!1,s);return e[N7]&&!0===e[N7](p,f,h)?l=!0:h(),l}function h(){if(!d){d=!0,o.run(p,n);var e=a;a=[],MI(e,function(e){e.rm()}),!0===l&&p[NY](f),u()}}},e[Be]=function(t,n){var o,a=e[BA];if(a&&(!t||a===t[BA]())){var s=!1,l=t||OI(null,a,r&&r[Lt]?r[Lt]():r),u=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(l,u,d)?o=!0:d(),o}function d(){s||(s=!0,c(l.getCfg(),l.core(),l[Bt]()))}},e._addHook=function(e){e&&(Mb(e)?a=a.concat(e):a[NU](e))},MG(e,"_addUnloadCb",function(){return o},"add")}),s[Bn]=function(e){return l(e)[Bn]()},s[Nj]=function(){return t},s.setInitialized=function(e){t=e},s[Br]=function(e){r=e},s[NY]=function(e,t){t?t[NY](e):r&&Md(r[BF])&&r[BF](e,null)},s._getTelCtx=l}return e.__ieDyn=1,e}(),Lr=function(e){function t(){var n,r,o=e.call(this)||this;function a(){n=0,r=[]}return o.identifier="TelemetryInitializerPlugin",o.priority=199,a(),t7(t,o,function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[NU](t),{remove:function(){MI(r,function(e,n){if(e.id===t.id)return r[N4](n,1),-1})}}},e[BF]=function(t,n){for(var o=!1,a=r[NK],s=0;s<a;++s){var l=r[s];if(l)try{if(!1===l.fn[Bf](null,[t])){o=!0;break}}catch(e){F$(n[Bn](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+MH(e),{exception:FD(e)},!0)}}o||e[NY](t,n)},e[N7]=function(){a()}}),o}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(Ln),Lo="Plugins must provide initialize method",Li="_notificationManager",La="SDK is still unloading...",Ls="SDK is not initialized",Ll={loggingLevelConsole:1};function Lc(e,t){return new M1(t)}function Lu(e,t,n){var r,o=[],a={};return MI(n,function(n){(Ms(n)||Ms(n[NL]))&&MW(Lo);var r=n[BO],s=n[NV];n&&r&&(Ms(a[r])?a[r]=s:FQ(e,"Two extensions have same priority #"+r+" - "+a[r]+", "+s)),(!r||r<t)&&o[NU](n)}),(r={all:n})[BA]=o,r}function Ld(e,t){var n=!1;return MI(t,function(t){if(t===e)return n=!0,-1}),n}function Lp(){var e;return(0,n5.AQ)(((e={})[NQ]=function(e){},e[NJ]=function(e){},e[BL]=function(e){},e[BH]=function(e,t){},e[Bz]=function(e,t){},e))}var Lf=function(){function e(){var t,n,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,C,k=0;t7(e,this,function(e){function w(){n=!1,t=MY(!0,{},Ll),e[NW]=t,e[NG]=new FX(t),e[N5]=[],g=new Lr,r=[],o=null,a=null,s=null,l=null,c=null,d=null,u=[],p=null,f=null,h=null,m=!1,v=null,y=Oi("AIBaseCore",!0),b=Le(),C=null}function S(){return OE(P(),t,e)}function _(n){var r=Lu(e[NG],OA,u);d=r[BA],c=null;var o=r.all;if(h=MO(OM(f,o,e)),p){var a=MT(o,p);-1!==a&&o[N4](a,1),-1!==(a=MT(d,p))&&d[N4](a,1),p._setQueue(h)}else p=OB(h,e);o[NU](p),d[NU](p),e[N5]=Oy(o),p[NL](t,e,o),Ov(S(),o),e[N5]=MO(Oy(d||[])).slice(),n&&B(n)}function E(t){var n,r=null,o=null;return MI(e[N5],function(e){if(e[NV]===t&&e!==p&&e!==g)return o=e,-1}),!o&&p&&(o=p.getChannel(t)),o&&((n={plugin:o})[Bu]=function(e){Og(o)[BN]=!e},n.isEnabled=function(){var e=Og(o);return!e[N3]&&!e[BN]},n.remove=function(e,t){void 0===e&&(e=!0);var n,r=[o];I(r,((n={reason:1})[N9]=e,n),function(e){e&&_({reason:32,removed:r}),t&&t(e)})},r=n),r}function P(){if(!c){var n=(d||[]).slice();-1===MT(n,g)&&n[NU](g),c=OT(Oy(n),t,e)}return c}function I(n,r,o){if(n&&n[NK]>0){var a=OP(OT(n,t,e),e);a[N0](function(){var e=!1,t=[];MI(u,function(r,o){Ld(r,n)?e=!0:t[NU](r)}),u=t;var r=[];f&&(MI(f,function(t,o){var a=[];MI(t,function(t){Ld(t,n)?e=!0:a[NU](t)}),r[NU](a)}),f=r),o&&o(e)}),a[NY](r)}else o(!1)}function T(){var n=e[NG]?e[NG].queue:[];n&&(MI(n,function(n){var r,o=((r={})[NH]=v||"InternalMessageId: "+n[N6],r.iKey=MU(t[Nq]),r.time=ME(new Date),r.baseType=FG.dataType,r.baseData={message:n[N8]},r);e.track(o)}),n[NK]=0)}function D(e,t,n,r){return p?p[N2](e,t,n||6,r):(t&&t(!1),!0)}function A(){var e=MU(t.disableDbgExt);!0===e&&x&&(o[NJ](x),x=null),o&&!x&&!0!==e&&(x=Fz(t),o[NQ](x))}function R(){var e=MU(t.enablePerfMgr);!e&&s&&(s=null),e&&MV(t,BR,Lc)}function N(){MV(t,BB,{}).NotificationManager=o}function B(t){var n=OI(P(),e);e._updateHook&&!0===e._updateHook(n,t)||n[NY](t)}function M(t){var n=e[NG];n?F$(n,2,73,t):MW(t)}w(),e[Nj]=function(){return n},e[NL]=function(r,a,s,l){m&&MW(La),e[Nj]()&&MW("Core should not be initialized more than once"),t=r||{},e[NW]=t,Ms(r[Nq])&&MW("Please provide instrumentation key"),o=l,e[Li]=l,A(),R(),N(),s&&(e[NG]=s);var c=MV(t,BM,[]);(u=[])[NU].apply(u,(0,tS.vz)((0,tS.vz)([],a,!1),c,!1)),f=MV(t,BD,[]),_(null),h&&0!==h[NK]||MW("No "+BD+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return h&&MI(h,function(t){e[NU](t.queue)}),MO(e)},e.track=function(n){n.iKey=n.iKey||t[Nq],n[NX]=n[NX]||ME(new Date),n.ver=n.ver||"4.0",!m&&e[Nj]()?S()[NY](n):r[NU](n)},e[N$]=S,e[Nz]=function(){return o||(o=Lp(),e[Li]=o),o},e[NQ]=function(e){o&&o[NQ](e)},e[NJ]=function(e){o&&o[NJ](e)},e.getCookieMgr=function(){return l||(l=O2(t,e[NG])),l},e.setCookieMgr=function(e){l=e},e[BW]=function(){if(!a&&!s&&MU(t.enablePerfMgr)){var n=MU(t[BR]);Md(n)&&(s=n(e,e[Nz]()))}return a||s||M4()},e.setPerfMgr=function(e){a=e},e.eventCnt=function(){return r[NK]},e.releaseQueue=function(){if(n&&r[NK]>0){var e=r;r=[],MI(e,function(e){S()[NY](e)})}},e.pollInternalLogs=function(e){v=e||null;var n=MU(t.diagnosticLogInterval);return n&&n>0||(n=1e4),k&&clearInterval(k),k=setInterval(function(){T()},n)},e[NZ]=function(){k&&(clearInterval(k),k=0,T())},MK(e,function(){return g},["addTelemetryInitializer"]),e.unload=function(t,r,o){void 0===t&&(t=!0),n||MW(Ls),m&&MW(La);var a,s=((a={reason:50})[N9]=t,a.flushComplete=!1,a),l=OP(P(),e);function c(t){s.flushComplete=t,m=!0,b.run(l,s),e[NZ](),l[NY](s)}l[N0](function(){w(),r&&r(s)},e),D(t,c,6,o)||c(!1)},e[N1]=E,e.addPlugin=function(e,t,n,r){if(!e){r&&r(!1),M(Lo);return}var o=E(e[NV]);if(o&&!t){r&&r(!1),M("Plugin ["+e[NV]+"] is already loaded!");return}var a={reason:16};function s(t){u[NU](e),a.added=[e],_(a),r&&r(!0)}if(o){var l=[o.plugin];I(l,{reason:2,isAsync:!!n},function(e){e?(a.removed=l,a.reason|=32,s(!0)):r&&r(!1)})}else s(!1)},e.evtNamespace=function(){return y},e[N2]=D,e.getTraceCtx=function(e){return C||(C=Ob()),C},e.setTraceCtx=function(e){C=e||null},MG(e,"addUnloadCb",function(){return b},"add")})}return e.__ieDyn=1,e}();function Lh(e,t,n,r){MI(e,function(e){if(e&&e[t])if(n)setTimeout(function(){return r(e)},0);else try{r(e)}catch(e){}})}var Lm=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;t7(e,this,function(e){e[NQ]=function(t){e.listeners[NU](t)},e[NJ]=function(t){for(var n=MT(e[BC],t);n>-1;)e.listeners[N4](n,1),n=MT(e[BC],t)},e[BL]=function(t){Lh(e[BC],BL,!0,function(e){e[BL](t)})},e[BH]=function(t,n){Lh(e[BC],BH,!0,function(e){e[BH](t,n)})},e[Bz]=function(t,n){Lh(e[BC],Bz,n,function(e){e[Bz](t,n)})},e[BV]=function(t){t&&(n||!t[Bk]())&&Lh(e[BC],BV,!1,function(e){t[N9]?setTimeout(function(){return e[BV](t)},0):e[BV](t)})}})}return e.__ieDyn=1,e}(),Lg=function(e){function t(){var n=e.call(this)||this;return t7(t,n,function(e,t){function n(e){Ms(e[NH])&&(r(e),MW("telemetry name required"))}function r(t){var n=e[Nz]();n&&n[BH]([t],2)}e[NL]=function(e,n,r,o){t[NL](e,n,r||new FX(e),o||new Lm(e))},e.track=function(o){M5(e[BW](),function(){return"AppInsightsCore:track"},function(){null===o&&(r(o),MW("Invalid telemetry item")),n(o),t.track(o)},function(){return{item:o}},!o.sync)}}),n}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(Lf),Lv="",Ly="https://browser.events.data.microsoft.com/OneCollector/1.0/",Lb="version",Lx="properties",LC=null;function Lk(){var e=LS();return e[Bs](0,8)+"-"+e[Bs](8,12)+"-"+e[Bs](12,16)+"-"+e[Bs](16,20)+"-"+e[Bs](20)}function Lw(){var e=Fw();return e&&e.now?e.now():ML()}function LS(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=BT,r=0;r<4;r++)n+=t[15&(e=F3())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&F3())|0];return n[Bd](0,8)+n[Bd](9,4)+"4"+n[Bd](13,3)+o+n[Bd](16,3)+n[Bd](19,12)}var L_=null,LE="1DS-Web-JS-3.2.10",LP="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",LI="withCredentials",LT="timeout",LD=((eP={})[0]=0,eP[2]=6,eP[1]=1,eP[3]=7,eP[4098]=6,eP[4097]=1,eP[4099]=7,eP);function LA(e){return!(e===Lv||Ms(e))}function LR(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return Lv}function LN(e){return!!(e&&Mw(e))&&!!(e>=1)&&!!(e<=4)}function LB(e,t,n){if(!t&&!LA(t)||"string"!=typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||Mb(t))t={value:t};else if("object"!==r||n2.J$.call(t,"value")){if(Ms(t.value)||t.value===Lv||!Mk(t.value)&&!Mw(t.value)&&!MS(t.value)&&!Mb(t.value))return null}else t={value:n?JSON.stringify(t):t};if(Mb(t.value)&&!LU(t.value))return null;if(!Ms(t.kind)){if(Mb(t.value)||!Lz(t.kind))return null;t.value=t.value.toString()}return t}function LM(e,t,n){var r=-1;if(!Ma(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),LV(n))-1===r&&(r=0),r|=n;else{var o=LD[LW(e)]||-1;-1!==r&&-1!==o?r|=o:6===o&&(r=o)}return r}function LF(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||Lv}function LO(e){void 0===e&&(e="D");var t=Lk();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,Lv)),t}function LL(e,t,n,r,o){var a={},s=!1,l=0,c=arguments.length,u=Object[n2.vR],d=arguments;for("[object Boolean]"===u.toString.call(d[0])&&(s=d[0],l++);l<c;l++){var e=d[l];Mf(e,function(e,t){s&&t&&Mu(t)?Mb(t)?(a[e]=a[e]||[],MI(t,function(t,n){t&&Mu(t)?a[e][n]=LL(!0,a[e][n],t):a[e][n]=t})):a[e]=LL(!0,a[e],t):a[e]=t})}return a}Fy(),Fg();var LH=Lw;function Lz(e){return 0===e||!!(e>0)&&!!(e<=13)||32===e}function LV(e){return!!(e>=0)&&!!(e<=9)}function LU(e){return e.length>0}function Lj(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=LH()}function LW(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===n2._1&&(t=4,Mb(e)?(t=4096,e.length>0&&(t|=LW(e[0]))):n2.J$.call(e,"value")&&(t=8192|LW(e.value)))}return t}function Lq(){return!!Fh("chrome")}function LG(e,t,n,r,o,a){function s(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===o&&(o=!1);var l=new XMLHttpRequest;return r&&s(l,LP,r),n&&s(l,LI,n),l.open(e,t,!o),n&&s(l,LI,n),!o&&a&&s(l,LT,a),l}let LK=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],t7(t,n,function(e,t){e.logger&&e.logger.queue||(e.logger=new FX({loggingLevelConsole:1})),e.initialize=function(n,r,o,a){M5(e,function(){return"AppInsightsCore.initialize"},function(){var s=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=Ly);var l=n.propertyStorageOverride;!l||l.getProperty&&l.setProperty||MW("Invalid property storage override passed."),n.channels&&MI(n.channels,function(e){e&&MI(e,function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}})})}e.getWParam=function(){return"u">typeof document||n.enableWParam?0:-1},r&&MI(r,function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}}),e.pluginVersionString=s.join(";"),e.pluginVersionStringArr=s;try{t.initialize(n,r,o,a),e.pollInternalLogs("InternalLog")}catch(t){var c=e.logger,u=FD(t);-1!==u.indexOf("channels")&&(u+="\n - Channels must be provided through config.channels only!"),F$(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+u)}},function(){return{config:n,extensions:r,logger:o,notificationManager:a}})},e.track=function(n){M5(e,function(){return"AppInsightsCore.track"},function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=LH(),LN(r.latency)||(r.latency=1);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=LE;var a=r.baseData=r.baseData||{};a[Lx]=a[Lx]||{};var s=a[Lx];s[Lb]=s[Lb]||e.pluginVersionString||Lv}t.track(r)},function(){return{item:n}},!n.sync)}}),n}return(0,tS.qU)(t,e),t.__ieDyn=1,t}(Lg);function LX(e){var t={};return Mf(e,function(e,n){t[e]=n,t[n]=e}),MF(t)}function LY(e){var t={};return Mf(e,function(e,n){t[e]=n[1],t[n[0]]=n[1]}),MF(t)}var L$="locale",LQ="ver",LJ="browser",LZ="browserVer",L0="popSample",L1="eventFlags",L2="name",L5="serviceName",L4=LY({UserExt:[0,"user"],DeviceExt:[1,"device"],TraceExt:[2,"trace"],WebExt:[3,"web"],AppExt:[4,"app"],OSExt:[5,"os"],SdkExt:[6,"sdk"],IntWebExt:[7,"intweb"],UtcExt:[8,"utc"],LocExt:[9,"loc"],CloudExt:[10,"cloud"],DtExt:[11,"dt"]}),L3=LY({id:[0,"id"],ver:[1,LQ],appName:[2,L2],locale:[3,L$],expId:[4,"expId"],env:[5,"env"]}),L6=LY({domain:[0,"domain"],browser:[1,LJ],browserVer:[2,LZ],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),L8=LY({locale:[0,L$],localId:[1,"localId"],id:[2,"id"]}),L9=LY({osName:[0,L2],ver:[1,LQ]}),L7=LY({ver:[0,LQ],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),He=LY({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,L5]}),Ht=LY({popSample:[0,L0],eventFlags:[1,L1]}),Hn=LY({tz:[0,"tz"]}),Hr=LY({sessionId:[0,"sesId"]}),Ho=LY({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),Hi=LY({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),Ha=LY({traceId:[0,"traceID"],traceName:[1,L2],parentId:[2,"parentID"]}),Hs=LY({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]});function Hl(){return void 0===eI&&(eI=!!Hu(0)),eI}function Hc(){return Hl()?Hu(0):null}function Hu(e){var t,n,r=null;try{var o=(0,n5.mS)();if(!o)return null;n=new Date,(r=0===e?o.localStorage:o.sessionStorage)&&Md(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(e){r=null}return r}function Hd(e,t,n){var r=Hc();if(null!==r)try{return r.setItem(t,n),!0}catch(t){eI=!1,F$(e,1,504,"Browser failed write to local storage. "+t)}return!1}function Hp(e,t){var n=Hc();if(null!==n)try{return n.getItem(t)}catch(t){eI=!1,F$(e,1,503,"Browser failed read of local storage. "+t)}return null}function Hf(){return this.getId()}function Hh(e){this.setId(e)}var Hm=function(){function e(){t7(e,this,function(e){e.setId=function(t){e.customId=t},e.getId=function(){return Mk(e.customId)?e.customId:e.automaticId}})}return e._staticInit=function(){MB(e.prototype,"id",Hf,Hh)}(),e}(),Hg="ai_session",Hv=function(){function e(t,n){var r,o,a=FK(t),s=O1(t);t7(e,this,function(t){var l=c(n);function c(e){return{sessionRenewalMs:e.sessionRenewalMs&&function(){return e.sessionRenewalMs},sessionExpirationMs:e.sessionExpirationMs&&function(){return e.sessionExpirationMs},cookieDomain:e.cookieDomain&&function(){return e.cookieDomain},namePrefix:e.namePrefix&&function(){return e.namePrefix},sessionAsGuid:function(){return e.sessionAsGuid},idLength:function(){return e.idLength?e.idLength:22}}}function u(){var e=s.get(o());if(e&&Md(e.split))d(e);else{var n=Hp(a,o());n&&d(n)}t.automaticSession.getId()||p()}function d(e){var n=t.automaticSession,r=e.split("|");r.length>0&&n.setId(r[0]);try{if(r.length>1){var o=+r[1];n.acquisitionDate=+new Date(o),n.acquisitionDate=n.acquisitionDate>0?n.acquisitionDate:0}if(r.length>2){var s=+r[2];n.renewalDate=+new Date(s),n.renewalDate=n.renewalDate>0?n.renewalDate:0}}catch(e){F$(a,1,510,"Error parsing ai_session cookie, session will be reset: "+e)}0===n.renewalDate&&F$(a,2,517,"AI session renewal date is 0, session will be reset.")}function p(){var e=t.automaticSession,n=new Date().getTime(),r=t.config.sessionAsGuid();!Ma(r)&&r?MS(r)?e.setId(LO()):e.setId(LO(r)):e.setId(F8(l&&l.idLength?l.idLength():22)),e.acquisitionDate=n,e.renewalDate=n,f(e.getId(),e.acquisitionDate,e.renewalDate),Hl()||F$(a,2,505,"Browser does not support local storage. Session durations will be inaccurate.")}function f(e,n,a){var l=n+t.config.sessionExpirationMs(),c=a+t.config.sessionRenewalMs(),u=new Date,d=[e,n,a];l<c?u.setTime(l):u.setTime(c);var p=t.config.cookieDomain?t.config.cookieDomain():null;s.set(o(),d.join("|")+";expires="+u.toUTCString(),null,p),r=new Date().getTime()}function h(e,t,n){Hd(a,o(),[e,t,n].join("|"))}Md(n.sessionExpirationMs)||(l.sessionExpirationMs=function(){return e.acquisitionSpan}),Md(n.sessionRenewalMs)||(l.sessionRenewalMs=function(){return e.renewalSpan}),t.config=l,o=function(){return t.config.namePrefix&&t.config.namePrefix()?Hg+t.config.namePrefix():Hg},t.automaticSession=new Hm,t.update=function(){t.automaticSession.getId()||u();var n=t.automaticSession,o=t.config,a=new Date().getTime(),s=a-n.acquisitionDate>o.sessionExpirationMs(),l=a-n.renewalDate>o.sessionRenewalMs();if(s||l)p();else{var c=r;(!c||a-c>e.cookieUpdateInterva