/*! For license information please see miniwallet.bundle.js.LICENSE.txt */ (()=>{"use strict";var e,t,i={236:(e,t)=>{if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;i("react.element"),i("react.portal"),i("react.fragment"),i("react.strict_mode"),i("react.profiler"),i("react.provider"),i("react.context"),i("react.forward_ref"),i("react.suspense"),i("react.suspense_list"),i("react.memo"),i("react.lazy"),i("react.block"),i("react.server.block"),i("react.fundamental"),i("react.debug_trace_mode"),i("react.legacy_hidden")}},732:(e,t,i)=>{i(236)},533:e=>{var t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new 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={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var a,s,l=r(e),c=1;c{var o=i(265),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;r=n("react.element"),t.Fragment=n("react.fragment")}var a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,i){var o,n={},c=null,d=null;for(o in void 0!==i&&(c=""+i),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===n[o]&&(n[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:d,props:n,_owner:a.current}}t.jsx=c,t.jsxs=c},493:(e,t,i)=>{var o=i(533),r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,E="function"==typeof Symbol&&Symbol.iterator;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;iw.length&&w.push(e)}function x(e,t,i,o){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var s=!1;if(null===e)s=!0;else switch(r){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case a:s=!0}}if(s)return i(o,e,""===t?"."+D(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l{e.exports=i(493)},668:(e,t,i)=>{e.exports=i(873)}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,r),n.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(i,o){if(1&o&&(i=this(i)),8&o)return i;if("object"==typeof i&&i){if(4&o&&i.__esModule)return i;if(16&o&&"function"==typeof i.then)return i}var n=Object.create(null);r.r(n);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&i;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,r.d(n,a),n},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{class e{createCSS(){return""}createBehavior(){}}const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(e,t)=>t});const i={configurable:!1,enumerable:!1,writable:!1};void 0===t.FAST&&Reflect.defineProperty(t,"FAST",Object.assign({value:Object.create(null)},i));const o=t.FAST;if(void 0===o.getById){const e=Object.create(null);Reflect.defineProperty(o,"getById",Object.assign({value(t,i){let o=e[t];return void 0===o&&(o=i?e[t]=i():null),o}},i))}const n=Object.freeze([]);function a(){const e=new WeakMap;return function(t){let i=e.get(t);if(void 0===i){let o=Reflect.getPrototypeOf(t);for(;void 0===i&&null!==o;)i=e.get(o),o=Reflect.getPrototypeOf(o);i=void 0===i?[]:i.slice(0),e.set(t,i)}return i}}const s=t.FAST.getById(1,(()=>{const e=[],i=[];function o(){if(i.length)throw i.shift()}function r(e){try{e.call()}catch(e){i.push(e),setTimeout(o,0)}}function n(){let t=0;for(;t1024){for(let i=0,o=e.length-t;ie});let c=l;const d=`fast-${Math.random().toString(36).substring(2,8)}`,u=`${d}{`,p=`}${d}`,h=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(c!==l)throw new Error("The HTML policy can only be set once.");c=e},createHTML:e=>c.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(d),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${d}:`,"")),createInterpolationPlaceholder:e=>`${u}${e}${p}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${d}:${e}--\x3e`,queueUpdate:s.enqueue,processUpdates:s.process,nextUpdate:()=>new Promise(s.enqueue),setAttribute(e,t,i){null==i?e.removeAttribute(t):e.setAttribute(t,i)},setBooleanAttribute(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});class f{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function g(e){return e.map((e=>e instanceof f?g(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function E(e){return e.map((e=>e instanceof f?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}f.create=(()=>{if(h.supportsAdoptedStyleSheets){const e=new Map;return t=>new N(t,e)}return e=>new O(e)})();let T=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},m=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e)))};if(h.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),T=(e,t)=>{e.adoptedStyleSheets.push(...t)},m=(e,t)=>{for(const i of t){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}class N extends f{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=E(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=g(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let i=t.get(e);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(e),t.set(e,i)),i}))}return this._styleSheets}addStylesTo(e){T(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){m(e,this.styleSheets),super.removeStylesFrom(e)}}let _=0;class O extends f{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=E(e),this.styleSheets=g(e),this.styleClass="fast-style-class-"+ ++_}addStylesTo(e){const t=this.styleSheets,i=this.styleClass;e=this.normalizeTarget(e);for(let o=0;o("string"==typeof t?this.css+=t:e.push(t),e)),[]);i.length&&(this.styles=f.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(e){this.styles&&e.$fastController.addStyles(this.styles),this.behaviors.length&&e.$fastController.addBehaviors(this.behaviors)}unbind(e){this.styles&&e.$fastController.removeStyles(this.styles),this.behaviors.length&&e.$fastController.removeBehaviors(this.behaviors)}}class C{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else-1===t.indexOf(e)&&t.push(e)}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.source;if(void 0===t){const t=this.sub1,o=this.sub2;void 0!==t&&t.handleChange(i,e),void 0!==o&&o.handleChange(i,e)}else for(let o=0,r=t.length;o{const e=/(:|&&|\|\||if)/,t=new WeakMap,i=h.queueUpdate;let o,r=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function n(e){let i=e.$fastController||t.get(e);return void 0===i&&(Array.isArray(e)?i=r(e):t.set(e,i=new v(e))),i}const s=a();class l{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==o&&o.watch(e,this.name),e[this.field]}setValue(e,t){const i=this.field,o=e[i];if(o!==t){e[i]=t;const r=e[this.callback];"function"==typeof r&&r.call(e,o,t),n(e).notify(this.name)}}}class c extends C{constructor(e,t,i=!1){super(e,t),this.binding=e,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const i=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const r=this.binding(e,t);return o=i,r}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const i=this.last,r=n(e),a=null===i?this.first:{};if(a.propertySource=e,a.propertyName=t,a.notifier=r,r.subscribe(this,t),null!==i){if(!this.needsRefresh){let t;o=void 0,t=i.propertySource[i.propertyName],o=this,e===t&&(this.needsRefresh=!0)}i.next=a}this.last=a}handleChange(){this.needsQueue&&(this.needsQueue=!1,i(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){r=e},getNotifier:n,track(e,t){void 0!==o&&o.watch(e,t)},trackVolatile(){void 0!==o&&(o.needsRefresh=!0)},notify(e,t){n(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new l(t)),s(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:s,binding(e,t,i=this.isVolatileBinding(e)){return new c(e,t,i)},isVolatileBinding:t=>e.test(t.toString())})}));function y(e,t){R.defineProperty(e,t)}const S=o.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class w{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return S.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){S.set(e)}}R.defineProperty(w.prototype,"index"),R.defineProperty(w.prototype,"length");const k=Object.seal(new w);class M{constructor(){this.targetIndex=0}}class x extends M{constructor(){super(...arguments),this.createPlaceholder=h.createInterpolationPlaceholder}}class P extends M{constructor(e,t,i){super(),this.name=e,this.behavior=t,this.options=i}createPlaceholder(e){return h.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function D(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=R.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function L(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function F(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function W(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function B(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function G(e){h.setAttribute(this.target,this.targetName,e)}function V(e){h.setBooleanAttribute(this.target,this.targetName,e)}function U(e){if(null==e&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function $(e){this.target[this.targetName]=e}function H(e){const t=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=e&&e.length){const r=e.split(/\s+/);for(let e=0,n=r.length;eh.createHTML(e(t,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=V;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=L,this.unbind=B;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=H)}}targetAtContent(){this.updateTarget=U,this.unbind=W}createBehavior(e){return new j(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class j{constructor(e,t,i,o,r,n,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=i,this.bind=o,this.unbind=r,this.updateTarget=n,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){w.setEvent(e);const t=this.binding(this.source,this.context);w.setEvent(null),!0!==t&&e.preventDefault()}}let Z=null;class Y{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){Z=this}static borrow(e){const t=Z||new Y;return t.directives=e,t.reset(),Z=null,t}}function K(e){if(1===e.length)return e[0];let t;const i=e.length,o=e.map((e=>"string"==typeof e?()=>e:(t=e.targetName||t,e.binding))),r=new z(((e,t)=>{let r="";for(let n=0;ns)),c.targetName=a.name):c=K(l),null!==c&&(t.removeAttributeNode(a),r--,n--,e.addFactory(c))}}function J(e,t,i){const o=X(e,t.textContent);if(null!==o){let r=t;for(let n=0,a=o.length;n0}const t=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),r=h.createTemplateWalker(t);let n=0,a=this.targetOffset,s=r.nextNode();for(let e=i.length;n=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function re(e,...t){const i=[];let o="";for(let r=0,n=e.length-1;re}if("function"==typeof a&&(a=new z(a)),a instanceof x){const e=oe.exec(n);null!==e&&(a.targetName=e[2])}a instanceof M?(o+=a.createPlaceholder(i.length),i.push(a)):o+=a}return o+=e[e.length-1],new ie(o,i)}const ne=e=>"function"==typeof e,ae=()=>null;function se(e){return void 0===e?ae:ne(e)?e:()=>e}function le(e,t,i){const o=ne(e)?e:()=>e,r=se(t),n=se(i);return(e,t)=>o(e,t)?r(e,t):n(e,t)}const ce=Object.freeze({locate:a()}),de={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},ue={toView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t.toString()},fromView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}};class pe{constructor(e,t,i=t.toLowerCase(),o="reflect",r){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=o,this.converter=r,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===o&&void 0===r&&(this.converter=de)}setValue(e,t){const i=e[this.fieldName],o=this.converter;void 0!==o&&(t=o.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return R.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||"fromView"===t||h.queueUpdate((()=>{i.add(e);const o=e[this.fieldName];switch(t){case"reflect":const t=this.converter;h.setAttribute(e,this.attribute,void 0!==t?t.toView(o):o);break;case"boolean":h.setBooleanAttribute(e,this.attribute,o)}i.delete(e)}))}static collect(e,...t){const i=[];t.push(ce.locate(e));for(let o=0,r=t.length;o1&&(i.property=t),ce.locate(e.constructor).push(i)}return arguments.length>1?(i={},void o(e,t)):(i=void 0===e?{}:e,o)}const fe={mode:"open"},ge={},Ee=o.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class Te{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const i=pe.collect(e,t.attributes),o=new Array(i.length),r={},n={};for(let e=0,t=i.length;e0){const t=this.boundObservables=Object.create(null);for(let i=0,r=o.length;ibe(e),define:(e,t)=>new Te(e,t).define().type});function Ae(e){return function(t){new Te(t,e).define()}}const Ce="Enter",ve=" ";var Re,ye;(ye=Re||(Re={})).Sync="edge://settings/profiles/sync",ye.RoamingSync="edge://settings/profiles/sync#Roaming",ye.Payments="edge://settings/payments",ye.WalletHub="edge://wallet",ye.walletPaymentMethodsURL="edge://wallet/paymentMethods",ye.walletPasswordsURL="edge://wallet/passwords",ye.walletPersonalInfoURL="edge://wallet/personalInfo",ye.walletEtreeURL="edge://wallet/#popup=etree",ye.EnrollCardToMSALearnMore="https://aka.ms/EdgeSaveCardFAQ",ye.UseVirtualCardLearnMore="https://aka.ms/EdgeVirtualCardFAQ",ye.WalletSettings="edge://wallet/settings",ye.microsoftRewardsDashboardURL="https://go.microsoft.com/fwlink/?linkid=2222743",ye.microsoftRewardsGiveDashboardURL="https://go.microsoft.com/fwlink/?linkid=2147443",ye.microsoftRewardsRedeemURL="https://rewards.microsoft.com/redeem/?form=edgepredeem",ye.microsoftRebatesPayoutURL="https://www.bing.com/rebates/payouts?pay=1",ye.microsoftRebatesDealsURL="https://www.bing.com/rebates",ye.PCToMobileLandingPage="https://aka.ms/emw";const Se="REDACTED",we=(window.chrome,(e,t)=>{const i=JSON.stringify({eventName:e,data:t});performance.mark(i)});window.cachedMojom||(window.cachedMojom={});const{loadTimeData:ke}=window,Me=ke;function xe(e,t,i=!1){const o=(o,r)=>{if(!r)return Me?.getString(o);try{return Me.valueExists(o)?Me.getValue(o)!==r&&((e,t)=>Me.valueExists(e)&&Me.getValue(e)===t)(e,t)?(console.warn(`Different values for key ${o}: loadtimeData: ${Me.getValue(o)}\n default: ${r}`),r):Me.getValue(o):(i||o?.toLowerCase()?.includes("crypto")||console.warn(`Missing localized string: ${o}, will use ${r}`),r)}catch(e){console.error(`Error loading loadtimeData for ${o}: ${e}`)}return r};return{getString:o,getStringF:Me?.getStringF.bind(Me),getStringFWithDefaultValue:(e,t,...i)=>{const r=o(e,t);return r?Me?.substituteString(r,...i):""},getInteger:Me?.getInteger.bind(Me),getBoolean:Me?.getBoolean.bind(Me),valueExists:Me?.valueExists.bind(Me),getValue:Me?.getValue.bind(Me),overrideValues:Me?.overrideValues.bind(Me)}}const Pe=xe("notificationTitle","Notification"),De=e=>Pe.valueExists(e)&&Pe.getBoolean(e),Le=()=>De("isWalletNotificationContentClickable"),Fe=()=>!Pe.valueExists("EdgeWalletPageHandlerVersion")||De("isWalletHomepageNotificationEnabled"),We=Fe()?import("./edge-wallet-notification.mojom-webui.js").then((e=>e?.EdgeWalletNotificationHandler?.getRemote?.())):null,Be="object"==typeof global&&global&&global.Object===Object&&global;var Ge="object"==typeof self&&self&&self.Object===Object&&self;const Ve=(Be||Ge||Function("return this")()).Symbol;var Ue=Object.prototype,$e=Ue.hasOwnProperty,He=Ue.toString,ze=Ve?Ve.toStringTag:void 0;var je=Object.prototype.toString;var Ze=Ve?Ve.toStringTag:void 0;const Ye=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ze&&Ze in Object(e)?function(e){var t=$e.call(e,ze),i=e[ze];try{e[ze]=void 0;var o=!0}catch(e){}var r=He.call(e);return o&&(t?e[ze]=i:delete e[ze]),r}(e):function(e){return je.call(e)}(e)};var Ke;!function(e){e.HISTOGRAM_LOG="histogram-log",e.HISTOGRAM_LINEAR="histogram-linear"}(Ke||(Ke={}));const qe=window?.chrome?.metricsPrivate;var Xe;!function(e){e.TOKENIZATION_MASTERCARD="TOKENIZATION_MASTERCARD",e.TOKENIZATION_VISA="TOKENIZATION_VISA",e.TOKENIZATION_NOTIFICATION_MASTERCARD="TOKENIZATION_NOTIFICATION_MASTERCARD",e.TOKENIZATION_NOTIFICATION_VISA="TOKENIZATION_NOTIFICATION_VISA"}(Xe||(Xe={}));const Qe=window?.chrome?.edgeWalletPrivate;var Je,et,tt;!function(e){e.visa="visa",e.mastercard="mastercard",e.amex="amex",e.discover="discover"}(Je||(Je={})),function(e){e.expired="expired",e.lastused="lastused",e.bestdeal="bestdeal",e.notsynced="notsynced",e.tokenized="tokenized",e.tokenizationEligible="tokenizationEligible",e.partialCard="partialCard"}(et||(et={})),function(e){e[e.NONE=0]="NONE",e[e.INVALID_NAME=1]="INVALID_NAME",e[e.INVALID_EXP_DATE=2]="INVALID_EXP_DATE",e[e.INVALID_CVV=4]="INVALID_CVV",e[e.INVALID_ADDRESS=8]="INVALID_ADDRESS",e[e.INVALID_NETWORK_TYPE=16]="INVALID_NETWORK_TYPE",e[e.UNKNOWN_ERROR=32]="UNKNOWN_ERROR",e[e.kMaxValue=32]="kMaxValue"}(tt||(tt={}));const it=e=>Je[e?.toLowerCase()],ot=e=>e?.slice(-4)||"";var rt,nt,at,st,lt,ct,dt,ut,pt,ht,ft;function gt(e,t){const{error:i}=e,o=i?.message?i?.message:i?.name,r=i?.stack;Dt.logErrorDetails(o?`${o}. Source: ${t}`:`no error message. Source: ${t}`,r??"no error callstack")}(ft=rt||(rt={})).WalletNotificationStatusMiniWallet="Microsoft.Wallet.NotificationStatus.MiniWallet",ft.WalletNotificationStatusMiniWalletWithAttraction="Microsoft.Wallet.NotificationStatus.MiniWallet.WithAttraction",ft.WalletNotificationStatusMiniWalletWithoutAttraction="Microsoft.Wallet.NotificationStatus.MiniWallet.WithoutAttraction",ft.WalletNotificationStatusAllApps="Microsoft.Wallet.NotificationStatus.AllApps",ft.WalletNotificationStatusAllAppsWithAttraction="Microsoft.Wallet.NotificationStatus.AllApps.WithAttraction",ft.WalletNotificationStatusAllAppsWithoutAttraction="Microsoft.Wallet.NotificationStatus.AllApps.WithoutAttraction",ft.WalletNotificationStatusHubHome="Microsoft.Wallet.NotificationStatus.HubHome",ft.WalletNotificationStatusHubHomeWithAttraction="Microsoft.Wallet.NotificationStatus.HubHome.WithAttraction",ft.WalletNotificationStatusHubHomeWithoutAttraction="Microsoft.Wallet.NotificationStatus.HubHome.WithoutAttraction",ft.WalletNotificationStatusHubHeader="Microsoft.Wallet.NotificationStatus.HubHeader",ft.WalletNotificationStatusHubHeaderWithAttraction="Microsoft.Wallet.NotificationStatus.HubHeader.WithAttraction",ft.WalletNotificationStatusHubHeaderWithoutAttraction="Microsoft.Wallet.NotificationStatus.HubHeader.WithoutAttraction",ft.WalletNotificationFirstBuildToFirstViewDuration="Microsoft.Wallet.Notification.Duration.FirstBuildToFirstViewInSeconds",ft.WalletNotificationFirstBuildToFirstEngagementDuration="Microsoft.Wallet.Notification.Duration.FirstBuildToFirstEngagementInSeconds",ft.WalletNotificationFirstViewToFirstEngagementDuration="Microsoft.Wallet.Notification.Duration.FirstViewToFirstEngagementInSeconds",ft.WalletNotificationCardExpiredDiffDaysOfEnagement="Microsoft.Wallet.Notification.DiffDaysOfEnagement.CardExpired",ft.WalletNotificationCardExpiringDiffDaysOfEnagement="Microsoft.Wallet.Notification.DiffDaysOfEnagement.CardExpiring",ft.NotificationFeaturePromotionStatus="Microsoft.Wallet.NotificationFeaturePromotionStatus",(ht=nt||(nt={}))[ht.NOTIFICATION_PROFILE_STATE_SHOWN=0]="NOTIFICATION_PROFILE_STATE_SHOWN",ht[ht.NOTIFICATION_PROFILE_STATE_ENGAGEMENT=1]="NOTIFICATION_PROFILE_STATE_ENGAGEMENT",ht[ht.NOTIFICATION_CARD_LOADED=2]="NOTIFICATION_CARD_LOADED",ht[ht.CARD_EXPIRED_IMPRESSION=3]="CARD_EXPIRED_IMPRESSION",ht[ht.CARD_EXPIRED_ENGAGEMENT=4]="CARD_EXPIRED_ENGAGEMENT",ht[ht.CARD_EXPIRED_ENGAGEMENT_SUCCESS=5]="CARD_EXPIRED_ENGAGEMENT_SUCCESS",ht[ht.CARD_EXPIRED_ENGAGEMENT_FAILURE=6]="CARD_EXPIRED_ENGAGEMENT_FAILURE",ht[ht.CARD_EXPIRED_SNOOZE=7]="CARD_EXPIRED_SNOOZE",ht[ht.CARD_EXPIRED_DISMISS_PERMANENTLY=8]="CARD_EXPIRED_DISMISS_PERMANENTLY",ht[ht.CARD_EXPIRING_SOON_IMPRESSION=9]="CARD_EXPIRING_SOON_IMPRESSION",ht[ht.CARD_EXPIRING_SOON_ENGAGEMENT=10]="CARD_EXPIRING_SOON_ENGAGEMENT",ht[ht.CARD_EXPIRING_SOON_ENGAGEMENT_SUCCESS=11]="CARD_EXPIRING_SOON_ENGAGEMENT_SUCCESS",ht[ht.CARD_EXPIRING_SOON_ENGAGEMENT_FAILURE=12]="CARD_EXPIRING_SOON_ENGAGEMENT_FAILURE",ht[ht.CARD_EXPIRING_SOON_SNOOZE=13]="CARD_EXPIRING_SOON_SNOOZE",ht[ht.CARD_EXPIRING_SOON_DISMISS_PERMANENTLY=14]="CARD_EXPIRING_SOON_DISMISS_PERMANENTLY",ht[ht.ROAM_CARD_IMPRESSION=15]="ROAM_CARD_IMPRESSION",ht[ht.ROAM_CARD_ENGAGEMENT=16]="ROAM_CARD_ENGAGEMENT",ht[ht.ROAM_CARD_ENGAGEMENT_SUCCESS=17]="ROAM_CARD_ENGAGEMENT_SUCCESS",ht[ht.ROAM_CARD_ENGAGEMENT_FAILURE=18]="ROAM_CARD_ENGAGEMENT_FAILURE",ht[ht.ROAM_CARD_SNOOZE=19]="ROAM_CARD_SNOOZE",ht[ht.ROAM_CARD_DISMISS_PERMANENTLY=20]="ROAM_CARD_DISMISS_PERMANENTLY",ht[ht.SIGN_UP_REBATES_IMPRESSION_DEPRECATED=21]="SIGN_UP_REBATES_IMPRESSION_DEPRECATED",ht[ht.SIGN_UP_REBATES_ENGAGEMENT_DEPRECATED=22]="SIGN_UP_REBATES_ENGAGEMENT_DEPRECATED",ht[ht.SIGN_UP_REBATES_ENGAGEMENT_SUCCESS_DEPRECATED=23]="SIGN_UP_REBATES_ENGAGEMENT_SUCCESS_DEPRECATED",ht[ht.SIGN_UP_REBATES_ENGAGEMENT_FAILURE_DEPRECATED=24]="SIGN_UP_REBATES_ENGAGEMENT_FAILURE_DEPRECATED",ht[ht.SIGN_UP_REBATES_SNOOZE_DEPRECATED=25]="SIGN_UP_REBATES_SNOOZE_DEPRECATED",ht[ht.SIGN_UP_REBATES_DISMISS_PERMANENTLY_DEPRECATED=26]="SIGN_UP_REBATES_DISMISS_PERMANENTLY_DEPRECATED",ht[ht.REBATES_PAYOUT_IMPRESSION_DEPRECATED=27]="REBATES_PAYOUT_IMPRESSION_DEPRECATED",ht[ht.REBATES_PAYOUT_ENGAGEMENT_DEPRECATED=28]="REBATES_PAYOUT_ENGAGEMENT_DEPRECATED",ht[ht.REBATES_PAYOUT_ENGAGEMENT_SUCCESS_DEPRECATED=29]="REBATES_PAYOUT_ENGAGEMENT_SUCCESS_DEPRECATED",ht[ht.REBATES_PAYOUT_ENGAGEMENT_FAILURE_DEPRECATED=30]="REBATES_PAYOUT_ENGAGEMENT_FAILURE_DEPRECATED",ht[ht.REBATES_PAYOUT_SNOOZE_DEPRECATED=31]="REBATES_PAYOUT_SNOOZE_DEPRECATED",ht[ht.REBATES_PAYOUT_DISMISS_PERMANENTLY_DEPRECATED=32]="REBATES_PAYOUT_DISMISS_PERMANENTLY_DEPRECATED",ht[ht.SIGN_UP_REWARDS_IMPRESSION_DEPRECATED=33]="SIGN_UP_REWARDS_IMPRESSION_DEPRECATED",ht[ht.SIGN_UP_REWARDS_ENGAGEMENT_DEPRECATED=34]="SIGN_UP_REWARDS_ENGAGEMENT_DEPRECATED",ht[ht.SIGN_UP_REWARDS_SNOOZE_DEPRECATED=35]="SIGN_UP_REWARDS_SNOOZE_DEPRECATED",ht[ht.SIGN_UP_REWARDS_DISMISS_PERMANENTLY_DEPRECATED=36]="SIGN_UP_REWARDS_DISMISS_PERMANENTLY_DEPRECATED",ht[ht.NOTIFICATION_CARD_ENGAGEMENT=37]="NOTIFICATION_CARD_ENGAGEMENT",ht[ht.CARD_TOKENIZATION_ELIGIBLE_IMPRESSION=38]="CARD_TOKENIZATION_ELIGIBLE_IMPRESSION",ht[ht.CARD_TOKENIZATION_ELIGIBLE_ENGAGEMENT=39]="CARD_TOKENIZATION_ELIGIBLE_ENGAGEMENT",ht[ht.CARD_TOKENIZATION_ELIGIBLE_SNOOZE=40]="CARD_TOKENIZATION_ELIGIBLE_SNOOZE",ht[ht.CARD_TOKENIZATION_ELIGIBLE_DISMISS_PERMANENTLY=41]="CARD_TOKENIZATION_ELIGIBLE_DISMISS_PERMANENTLY",ht[ht.UNSUPPORTED_TYPE=42]="UNSUPPORTED_TYPE",ht[ht.PERSONALIZED_OFFERS_AVAILABLE_IMPRESSION=43]="PERSONALIZED_OFFERS_AVAILABLE_IMPRESSION",ht[ht.PERSONALIZED_OFFERS_AVAILABLE_ENGAGEMENT=44]="PERSONALIZED_OFFERS_AVAILABLE_ENGAGEMENT",ht[ht.PERSONALIZED_OFFERS_AVAILABLE_SNOOZE=45]="PERSONALIZED_OFFERS_AVAILABLE_SNOOZE",ht[ht.PERSONALIZED_OFFERS_AVAILABLE_DISMISS_PERMANENTLY=46]="PERSONALIZED_OFFERS_AVAILABLE_DISMISS_PERMANENTLY",ht[ht.WALLET_NOTIFICATION_INTRODUCTION_FRE_IMPRESSION=47]="WALLET_NOTIFICATION_INTRODUCTION_FRE_IMPRESSION",ht[ht.WALLET_NOTIFICATION_INTRODUCTION_FRE_ENGAGEMENT=48]="WALLET_NOTIFICATION_INTRODUCTION_FRE_ENGAGEMENT",ht[ht.WALLET_NOTIFICATION_INTRODUCTION_FRE_SNOOZE=49]="WALLET_NOTIFICATION_INTRODUCTION_FRE_SNOOZE",ht[ht.WALLET_NOTIFICATION_INTRODUCTION_FRE_DISMISS_PERMANENTLY=50]="WALLET_NOTIFICATION_INTRODUCTION_FRE_DISMISS_PERMANENTLY",ht[ht.PASSWORD_LEAKAGE_IMPRESSION=51]="PASSWORD_LEAKAGE_IMPRESSION",ht[ht.PASSWORD_LEAKAGE_ENGAGEMENT=52]="PASSWORD_LEAKAGE_ENGAGEMENT",ht[ht.PASSWORD_LEAKAGE_SNOOZE=53]="PASSWORD_LEAKAGE_SNOOZE",ht[ht.PASSWORD_LEAKAGE_DISMISS_PERMANENTLY=54]="PASSWORD_LEAKAGE_DISMISS_PERMANENTLY",ht[ht.SIGN_UP_CRYPTOWALLET_IMPRESSION=55]="SIGN_UP_CRYPTOWALLET_IMPRESSION",ht[ht.SIGN_UP_CRYPTOWALLET_ENGAGEMENT=56]="SIGN_UP_CRYPTOWALLET_ENGAGEMENT",ht[ht.SIGN_UP_CRYPTOWALLET_SNOOZE=57]="SIGN_UP_CRYPTOWALLET_SNOOZE",ht[ht.SIGN_UP_CRYPTOWALLET_DISMISS_PERMANENTLY=58]="SIGN_UP_CRYPTOWALLET_DISMISS_PERMANENTLY",ht[ht.GIVE_WITH_BING_IMPRESSION_DEPRECATED=59]="GIVE_WITH_BING_IMPRESSION_DEPRECATED",ht[ht.GIVE_WITH_BING_ENGAGEMENT_DEPRECATED=60]="GIVE_WITH_BING_ENGAGEMENT_DEPRECATED",ht[ht.GIVE_WITH_BING_SNOOZE_DEPRECATED=61]="GIVE_WITH_BING_SNOOZE_DEPRECATED",ht[ht.GIVE_WITH_BING_DISMISS_PERMANENTLY_DEPRECATED=62]="GIVE_WITH_BING_DISMISS_PERMANENTLY_DEPRECATED",ht[ht.NOTIFICATION_INVALIDATED=63]="NOTIFICATION_INVALIDATED",ht[ht.UPCOMING_HOTEL_RESERVATION_IMPRESSION=64]="UPCOMING_HOTEL_RESERVATION_IMPRESSION",ht[ht.UPCOMING_HOTEL_RESERVATION_ENGAGEMENT=65]="UPCOMING_HOTEL_RESERVATION_ENGAGEMENT",ht[ht.UPCOMING_HOTEL_RESERVATION_SNOOZE=66]="UPCOMING_HOTEL_RESERVATION_SNOOZE",ht[ht.UPCOMING_HOTEL_RESERVATION_DISMISS_PERMANENTLY=67]="UPCOMING_HOTEL_RESERVATION_DISMISS_PERMANENTLY",ht[ht.NOTIFICATION_CARD_ENGAGEMENT_CTA=68]="NOTIFICATION_CARD_ENGAGEMENT_CTA",ht[ht.NOTIFICATION_CARD_ENGAGEMENT_DISMISS=69]="NOTIFICATION_CARD_ENGAGEMENT_DISMISS",ht[ht.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE=70]="NOTIFICATION_CARD_ENGAGEMENT_SNOOZE",ht[ht.NOTIFICATION_CARD_ENGAGEMENT_FROM_CONTENT=71]="NOTIFICATION_CARD_ENGAGEMENT_FROM_CONTENT",ht[ht.DONATION_SUMMARY_IMPRESSION=72]="DONATION_SUMMARY_IMPRESSION",ht[ht.DONATION_SUMMARY_ENGAGEMENT=73]="DONATION_SUMMARY_ENGAGEMENT",ht[ht.DONATION_SUMMARY_SNOOZE=74]="DONATION_SUMMARY_SNOOZE",ht[ht.DONATION_SUMMARY_DISMISS_PERMANENTLY=75]="DONATION_SUMMARY_DISMISS_PERMANENTLY",ht[ht.FEATURE_PROMOTION_IMPRESSION=76]="FEATURE_PROMOTION_IMPRESSION",ht[ht.FEATURE_PROMOTION_ENGAGEMENT=77]="FEATURE_PROMOTION_ENGAGEMENT",ht[ht.FEATURE_PROMOTION_SNOOZE=78]="FEATURE_PROMOTION_SNOOZE",ht[ht.FEATURE_PROMOTION_DISMISS_PERMANENTLY=79]="FEATURE_PROMOTION_DISMISS_PERMANENTLY",ht[ht.PACKAGE_TRACKING_IMPRESSION=80]="PACKAGE_TRACKING_IMPRESSION",ht[ht.PACKAGE_TRACKING_SNOOZE=81]="PACKAGE_TRACKING_SNOOZE",ht[ht.PACKAGE_TRACKING_DISMISS_PERMANENTLY=82]="PACKAGE_TRACKING_DISMISS_PERMANENTLY",ht[ht.PACKAGE_TRACKING_VIEW_ORDER_ENGAGEMENT=83]="PACKAGE_TRACKING_VIEW_ORDER_ENGAGEMENT",ht[ht.PACKAGE_TRACKING_TRACK_ORDER_ENGAGEMENT=84]="PACKAGE_TRACKING_TRACK_ORDER_ENGAGEMENT",ht[ht.REBATES_IMPRESSION=85]="REBATES_IMPRESSION",ht[ht.REBATES_ENGAGEMENT=86]="REBATES_ENGAGEMENT",ht[ht.REBATES_ENGAGEMENT_SUCCESS=87]="REBATES_ENGAGEMENT_SUCCESS",ht[ht.REBATES_ENGAGEMENT_FAILURE=88]="REBATES_ENGAGEMENT_FAILURE",ht[ht.REBATES_SNOOZE=89]="REBATES_SNOOZE",ht[ht.REBATES_DISMISS_PERMANENTLY=90]="REBATES_DISMISS_PERMANENTLY",ht[ht.ETREE_CAMPAIGN_IMPRESSION=91]="ETREE_CAMPAIGN_IMPRESSION",ht[ht.ETREE_CAMPAIGN_ENGAGEMENT=92]="ETREE_CAMPAIGN_ENGAGEMENT",ht[ht.ETREE_CAMPAIGN_SNOOZE=93]="ETREE_CAMPAIGN_SNOOZE",ht[ht.ETREE_CAMPAIGN_DISMISS_PERMANENTLY=94]="ETREE_CAMPAIGN_DISMISS_PERMANENTLY",ht[ht.PWA_PROMOTION_IMPRESSION=95]="PWA_PROMOTION_IMPRESSION",ht[ht.PWA_PROMOTION_ENGAGEMENT=96]="PWA_PROMOTION_ENGAGEMENT",ht[ht.PWA_PROMOTION_SNOOZE=97]="PWA_PROMOTION_SNOOZE",ht[ht.PWA_PROMOTION_DISMISS_PERMANENTLY=98]="PWA_PROMOTION_DISMISS_PERMANENTLY",ht[ht.ETREE_NORMAL_IMPRESSION=99]="ETREE_NORMAL_IMPRESSION",ht[ht.ETREE_NORMAL_ENGAGEMENT=100]="ETREE_NORMAL_ENGAGEMENT",ht[ht.ETREE_NORMAL_SNOOZE=101]="ETREE_NORMAL_SNOOZE",ht[ht.ETREE_NORMAL_DISMISS_PERMANENTLY=102]="ETREE_NORMAL_DISMISS_PERMANENTLY",ht[ht.ETREE_NORMAL_ENROLLED_IMPRESSION=103]="ETREE_NORMAL_ENROLLED_IMPRESSION",ht[ht.ETREE_NORMAL_ENROLLED_ENGAGEMENT=104]="ETREE_NORMAL_ENROLLED_ENGAGEMENT",ht[ht.ETREE_NORMAL_ENROLLED_SNOOZE=105]="ETREE_NORMAL_ENROLLED_SNOOZE",ht[ht.ETREE_NORMAL_ENROLLED_DISMISS_PERMANENTLY=106]="ETREE_NORMAL_ENROLLED_DISMISS_PERMANENTLY",ht[ht.ETREE_NORMAL_NONENROLLED_IMPRESSION=107]="ETREE_NORMAL_NONENROLLED_IMPRESSION",ht[ht.ETREE_NORMAL_NONENROLLED_ENGAGEMENT=108]="ETREE_NORMAL_NONENROLLED_ENGAGEMENT",ht[ht.ETREE_NORMAL_NONENROLLED_SNOOZE=109]="ETREE_NORMAL_NONENROLLED_SNOOZE",ht[ht.ETREE_NORMAL_NONENROLLED_DISMISS_PERMANENTLY=110]="ETREE_NORMAL_NONENROLLED_DISMISS_PERMANENTLY",ht[ht.DONATION_TREND_NPO_IMPRESSION=111]="DONATION_TREND_NPO_IMPRESSION",ht[ht.DONATION_TREND_NPO_ENGAGEMENT=112]="DONATION_TREND_NPO_ENGAGEMENT",ht[ht.DONATION_TREND_NPO_SNOOZE=113]="DONATION_TREND_NPO_SNOOZE",ht[ht.DONATION_TREND_NPO_DISMISS_PERMANENTLY=114]="DONATION_TREND_NPO_DISMISS_PERMANENTLY",ht[ht.MAX=115]="MAX",function(e){e[e.FEATURE_PROMOTION_1_IMPRESSION_WITH_ATTRACTION=0]="FEATURE_PROMOTION_1_IMPRESSION_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_1_ENGAGEMENT_WITH_ATTRACTION=1]="FEATURE_PROMOTION_1_ENGAGEMENT_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_1_SNOOZE_WITH_ATTRACTION=2]="FEATURE_PROMOTION_1_SNOOZE_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_1_DISMISS_PERMANENTLY_WITH_ATTRACTION=3]="FEATURE_PROMOTION_1_DISMISS_PERMANENTLY_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_1_IMPRESSION_WITHOUT_ATTRACTION=4]="FEATURE_PROMOTION_1_IMPRESSION_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_1_ENGAGEMENT_WITHOUT_ATTRACTION=5]="FEATURE_PROMOTION_1_ENGAGEMENT_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_1_SNOOZE_WITHOUT_ATTRACTION=6]="FEATURE_PROMOTION_1_SNOOZE_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_1_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION=7]="FEATURE_PROMOTION_1_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_2_IMPRESSION_WITH_ATTRACTION=8]="FEATURE_PROMOTION_2_IMPRESSION_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_2_ENGAGEMENT_WITH_ATTRACTION=9]="FEATURE_PROMOTION_2_ENGAGEMENT_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_2_SNOOZE_WITH_ATTRACTION=10]="FEATURE_PROMOTION_2_SNOOZE_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_2_DISMISS_PERMANENTLY_WITH_ATTRACTION=11]="FEATURE_PROMOTION_2_DISMISS_PERMANENTLY_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_2_IMPRESSION_WITHOUT_ATTRACTION=12]="FEATURE_PROMOTION_2_IMPRESSION_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_2_ENGAGEMENT_WITHOUT_ATTRACTION=13]="FEATURE_PROMOTION_2_ENGAGEMENT_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_2_SNOOZE_WITHOUT_ATTRACTION=14]="FEATURE_PROMOTION_2_SNOOZE_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_2_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION=15]="FEATURE_PROMOTION_2_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_3_IMPRESSION_WITH_ATTRACTION=16]="FEATURE_PROMOTION_3_IMPRESSION_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_3_ENGAGEMENT_WITH_ATTRACTION=17]="FEATURE_PROMOTION_3_ENGAGEMENT_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_3_SNOOZE_WITH_ATTRACTION=18]="FEATURE_PROMOTION_3_SNOOZE_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_3_DISMISS_PERMANENTLY_WITH_ATTRACTION=19]="FEATURE_PROMOTION_3_DISMISS_PERMANENTLY_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_3_IMPRESSION_WITHOUT_ATTRACTION=20]="FEATURE_PROMOTION_3_IMPRESSION_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_3_ENGAGEMENT_WITHOUT_ATTRACTION=21]="FEATURE_PROMOTION_3_ENGAGEMENT_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_3_SNOOZE_WITHOUT_ATTRACTION=22]="FEATURE_PROMOTION_3_SNOOZE_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_3_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION=23]="FEATURE_PROMOTION_3_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_4_IMPRESSION_WITH_ATTRACTION=24]="FEATURE_PROMOTION_4_IMPRESSION_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_4_ENGAGEMENT_WITH_ATTRACTION=25]="FEATURE_PROMOTION_4_ENGAGEMENT_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_4_SNOOZE_WITH_ATTRACTION=26]="FEATURE_PROMOTION_4_SNOOZE_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_4_DISMISS_PERMANENTLY_WITH_ATTRACTION=27]="FEATURE_PROMOTION_4_DISMISS_PERMANENTLY_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_4_IMPRESSION_WITHOUT_ATTRACTION=28]="FEATURE_PROMOTION_4_IMPRESSION_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_4_ENGAGEMENT_WITHOUT_ATTRACTION=29]="FEATURE_PROMOTION_4_ENGAGEMENT_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_4_SNOOZE_WITHOUT_ATTRACTION=30]="FEATURE_PROMOTION_4_SNOOZE_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_4_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION=31]="FEATURE_PROMOTION_4_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_5_IMPRESSION_WITH_ATTRACTION=32]="FEATURE_PROMOTION_5_IMPRESSION_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_5_ENGAGEMENT_WITH_ATTRACTION=33]="FEATURE_PROMOTION_5_ENGAGEMENT_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_5_SNOOZE_WITH_ATTRACTION=34]="FEATURE_PROMOTION_5_SNOOZE_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_5_DISMISS_PERMANENTLY_WITH_ATTRACTION=35]="FEATURE_PROMOTION_5_DISMISS_PERMANENTLY_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_5_IMPRESSION_WITHOUT_ATTRACTION=36]="FEATURE_PROMOTION_5_IMPRESSION_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_5_ENGAGEMENT_WITHOUT_ATTRACTION=37]="FEATURE_PROMOTION_5_ENGAGEMENT_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_5_SNOOZE_WITHOUT_ATTRACTION=38]="FEATURE_PROMOTION_5_SNOOZE_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_5_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION=39]="FEATURE_PROMOTION_5_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_6_IMPRESSION_WITH_ATTRACTION=40]="FEATURE_PROMOTION_6_IMPRESSION_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_6_ENGAGEMENT_WITH_ATTRACTION=41]="FEATURE_PROMOTION_6_ENGAGEMENT_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_6_SNOOZE_WITH_ATTRACTION=42]="FEATURE_PROMOTION_6_SNOOZE_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_6_DISMISS_PERMANENTLY_WITH_ATTRACTION=43]="FEATURE_PROMOTION_6_DISMISS_PERMANENTLY_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_6_IMPRESSION_WITHOUT_ATTRACTION=44]="FEATURE_PROMOTION_6_IMPRESSION_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_6_ENGAGEMENT_WITHOUT_ATTRACTION=45]="FEATURE_PROMOTION_6_ENGAGEMENT_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_6_SNOOZE_WITHOUT_ATTRACTION=46]="FEATURE_PROMOTION_6_SNOOZE_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_6_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION=47]="FEATURE_PROMOTION_6_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_7_IMPRESSION_WITH_ATTRACTION=48]="FEATURE_PROMOTION_7_IMPRESSION_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_7_ENGAGEMENT_WITH_ATTRACTION=49]="FEATURE_PROMOTION_7_ENGAGEMENT_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_7_SNOOZE_WITH_ATTRACTION=50]="FEATURE_PROMOTION_7_SNOOZE_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_7_DISMISS_PERMANENTLY_WITH_ATTRACTION=51]="FEATURE_PROMOTION_7_DISMISS_PERMANENTLY_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_7_IMPRESSION_WITHOUT_ATTRACTION=52]="FEATURE_PROMOTION_7_IMPRESSION_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_7_ENGAGEMENT_WITHOUT_ATTRACTION=53]="FEATURE_PROMOTION_7_ENGAGEMENT_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_7_SNOOZE_WITHOUT_ATTRACTION=54]="FEATURE_PROMOTION_7_SNOOZE_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_7_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION=55]="FEATURE_PROMOTION_7_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_8_IMPRESSION_WITH_ATTRACTION=56]="FEATURE_PROMOTION_8_IMPRESSION_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_8_ENGAGEMENT_WITH_ATTRACTION=57]="FEATURE_PROMOTION_8_ENGAGEMENT_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_8_SNOOZE_WITH_ATTRACTION=58]="FEATURE_PROMOTION_8_SNOOZE_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_8_DISMISS_PERMANENTLY_WITH_ATTRACTION=59]="FEATURE_PROMOTION_8_DISMISS_PERMANENTLY_WITH_ATTRACTION",e[e.FEATURE_PROMOTION_8_IMPRESSION_WITHOUT_ATTRACTION=60]="FEATURE_PROMOTION_8_IMPRESSION_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_8_ENGAGEMENT_WITHOUT_ATTRACTION=61]="FEATURE_PROMOTION_8_ENGAGEMENT_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_8_SNOOZE_WITHOUT_ATTRACTION=62]="FEATURE_PROMOTION_8_SNOOZE_WITHOUT_ATTRACTION",e[e.FEATURE_PROMOTION_8_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION=63]="FEATURE_PROMOTION_8_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION",e[e.MAX=64]="MAX"}(at||(at={})),(pt=st||(st={})).CardExpired="CardExpired",pt.CardExpiring="CardExpiring",pt.RoamCard="RoamCard",pt.CardTokenizationEligible="CardTokenizationEligible",pt.PasswordLeakage="PasswordLeakage",pt.PersonalizedOffersAvailable="PersonalizedOffersAvailable",pt.UpcomingHotelReservations="UpcomingHotelReservations",pt.SignupCryptoWallet="SignupCryptoWallet",pt.DonationSummary="DonationSummary",pt.FeaturePromotion="FeaturePromotion",pt.PackageTracking="PackageTracking",pt.Rebates="Rebates",pt.EtreeCampaign="EtreeCampaign",pt.Etree="Etree",pt.PWAPromotion="PWAPromotion",pt.DonationTrendNpo="DonationTrendNpo",function(e){e[e.WalletHomeBell=0]="WalletHomeBell",e[e.WalletHomeOther=1]="WalletHomeOther"}(lt||(lt={})),(ut=ct||(ct={})).MiniWallet="MiniWallet",ut.HubHomepage="HubHomepage",ut.HubHeader="HubHeader",function(e){e.Halloween="41F3EF79-FA45-4A06-B38C-F46B514817B2",e.Christmas="40B1A79D-3455-46F8-B20E-AF2568178AEA",e.NormalEnrolled="41F3EF79-FA45-4A06-B38C-F46B514817B2",e.NormalNonEnrolled="86F10C77-0F63-40E0-B1D8-086A3181F6B5"}(dt||(dt={}));const Et=[nt.CARD_EXPIRED_ENGAGEMENT,nt.ROAM_CARD_ENGAGEMENT,nt.CARD_EXPIRING_SOON_ENGAGEMENT,nt.CARD_TOKENIZATION_ELIGIBLE_ENGAGEMENT,nt.WALLET_NOTIFICATION_INTRODUCTION_FRE_ENGAGEMENT,nt.SIGN_UP_CRYPTOWALLET_ENGAGEMENT,nt.PASSWORD_LEAKAGE_ENGAGEMENT,nt.PERSONALIZED_OFFERS_AVAILABLE_ENGAGEMENT,nt.UPCOMING_HOTEL_RESERVATION_ENGAGEMENT,nt.DONATION_SUMMARY_ENGAGEMENT,nt.FEATURE_PROMOTION_ENGAGEMENT,nt.REBATES_ENGAGEMENT,nt.ETREE_CAMPAIGN_ENGAGEMENT,nt.ETREE_NORMAL_ENGAGEMENT,nt.PWA_PROMOTION_ENGAGEMENT,nt.DONATION_TREND_NPO_ENGAGEMENT,nt.CARD_EXPIRED_DISMISS_PERMANENTLY,nt.ROAM_CARD_DISMISS_PERMANENTLY,nt.CARD_EXPIRING_SOON_DISMISS_PERMANENTLY,nt.CARD_TOKENIZATION_ELIGIBLE_DISMISS_PERMANENTLY,nt.WALLET_NOTIFICATION_INTRODUCTION_FRE_DISMISS_PERMANENTLY,nt.SIGN_UP_CRYPTOWALLET_DISMISS_PERMANENTLY,nt.PASSWORD_LEAKAGE_DISMISS_PERMANENTLY,nt.PERSONALIZED_OFFERS_AVAILABLE_DISMISS_PERMANENTLY,nt.UPCOMING_HOTEL_RESERVATION_DISMISS_PERMANENTLY,nt.DONATION_SUMMARY_DISMISS_PERMANENTLY,nt.FEATURE_PROMOTION_DISMISS_PERMANENTLY,nt.REBATES_DISMISS_PERMANENTLY,nt.ETREE_CAMPAIGN_DISMISS_PERMANENTLY,nt.ETREE_NORMAL_DISMISS_PERMANENTLY,nt.PWA_PROMOTION_DISMISS_PERMANENTLY,nt.DONATION_TREND_NPO_DISMISS_PERMANENTLY,nt.CARD_EXPIRED_SNOOZE,nt.ROAM_CARD_SNOOZE,nt.CARD_EXPIRING_SOON_SNOOZE,nt.CARD_TOKENIZATION_ELIGIBLE_SNOOZE,nt.WALLET_NOTIFICATION_INTRODUCTION_FRE_SNOOZE,nt.SIGN_UP_CRYPTOWALLET_SNOOZE,nt.PASSWORD_LEAKAGE_SNOOZE,nt.PERSONALIZED_OFFERS_AVAILABLE_SNOOZE,nt.UPCOMING_HOTEL_RESERVATION_SNOOZE,nt.DONATION_SUMMARY_SNOOZE,nt.FEATURE_PROMOTION_SNOOZE,nt.REBATES_SNOOZE,nt.ETREE_CAMPAIGN_SNOOZE,nt.ETREE_NORMAL_SNOOZE,nt.PWA_PROMOTION_SNOOZE,nt.DONATION_TREND_NPO_SNOOZE],Tt=[nt.CARD_EXPIRED_IMPRESSION,nt.ROAM_CARD_IMPRESSION,nt.SIGN_UP_CRYPTOWALLET_IMPRESSION,nt.CARD_EXPIRING_SOON_IMPRESSION,nt.CARD_TOKENIZATION_ELIGIBLE_IMPRESSION,nt.WALLET_NOTIFICATION_INTRODUCTION_FRE_IMPRESSION,nt.PASSWORD_LEAKAGE_IMPRESSION,nt.PERSONALIZED_OFFERS_AVAILABLE_IMPRESSION,nt.UPCOMING_HOTEL_RESERVATION_IMPRESSION,nt.DONATION_SUMMARY_IMPRESSION,nt.FEATURE_PROMOTION_IMPRESSION,nt.REBATES_IMPRESSION,nt.ETREE_CAMPAIGN_IMPRESSION,nt.ETREE_NORMAL_IMPRESSION,nt.PWA_PROMOTION_IMPRESSION,nt.DONATION_TREND_NPO_IMPRESSION],mt=new Map([[nt.CARD_EXPIRED_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.ROAM_CARD_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.CARD_EXPIRING_SOON_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.CARD_TOKENIZATION_ELIGIBLE_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.WALLET_NOTIFICATION_INTRODUCTION_FRE_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.SIGN_UP_CRYPTOWALLET_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.PASSWORD_LEAKAGE_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.PERSONALIZED_OFFERS_AVAILABLE_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.UPCOMING_HOTEL_RESERVATION_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.DONATION_SUMMARY_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.FEATURE_PROMOTION_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.REBATES_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.ETREE_CAMPAIGN_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.ETREE_NORMAL_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.PWA_PROMOTION_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.DONATION_TREND_NPO_ENGAGEMENT,nt.NOTIFICATION_CARD_ENGAGEMENT_CTA],[nt.CARD_EXPIRED_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.ROAM_CARD_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.CARD_EXPIRING_SOON_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.CARD_TOKENIZATION_ELIGIBLE_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.WALLET_NOTIFICATION_INTRODUCTION_FRE_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.SIGN_UP_CRYPTOWALLET_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.PASSWORD_LEAKAGE_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.PERSONALIZED_OFFERS_AVAILABLE_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.UPCOMING_HOTEL_RESERVATION_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.DONATION_SUMMARY_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.FEATURE_PROMOTION_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.REBATES_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.ETREE_CAMPAIGN_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.ETREE_NORMAL_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.PWA_PROMOTION_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.DONATION_TREND_NPO_DISMISS_PERMANENTLY,nt.NOTIFICATION_CARD_ENGAGEMENT_DISMISS],[nt.CARD_EXPIRED_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.ROAM_CARD_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.CARD_EXPIRING_SOON_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.CARD_TOKENIZATION_ELIGIBLE_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.WALLET_NOTIFICATION_INTRODUCTION_FRE_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.SIGN_UP_CRYPTOWALLET_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.PASSWORD_LEAKAGE_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.PERSONALIZED_OFFERS_AVAILABLE_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.UPCOMING_HOTEL_RESERVATION_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.DONATION_SUMMARY_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.FEATURE_PROMOTION_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.REBATES_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.ETREE_CAMPAIGN_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.ETREE_NORMAL_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.PWA_PROMOTION_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE],[nt.DONATION_TREND_NPO_SNOOZE,nt.NOTIFICATION_CARD_ENGAGEMENT_SNOOZE]]),Nt="walletNotificationFunnelEnumMaxValue",_t="walletNotificationUseNewHistograms";const Ot=(e,t)=>{const i=Pe.valueExists(Nt)?parseInt(Pe.getValue(Nt),10)+1:nt.MAX;if(e>i)return void console.warn("Action enum passed in is larger than known size. Please check walletNotificationFunnelEnumMaxValue.");const o=(e=>{const t=(e=>{const t="isUserTriggeredByAttration";switch(e){case ct.MiniWallet:return!!Pe.valueExists(t)&&Pe.getValue(t);case ct.HubHeader:case ct.HubHomepage:return!1}})(e),i=[];switch(e){case ct.MiniWallet:i.push(t?rt.WalletNotificationStatusMiniWalletWithAttraction:rt.WalletNotificationStatusMiniWalletWithoutAttraction),i.push(rt.WalletNotificationStatusMiniWallet);break;case ct.HubHomepage:i.push(t?rt.WalletNotificationStatusHubHomeWithAttraction:rt.WalletNotificationStatusHubHomeWithoutAttraction),i.push(rt.WalletNotificationStatusHubHome);break;case ct.HubHeader:i.push(t?rt.WalletNotificationStatusHubHeaderWithAttraction:rt.WalletNotificationStatusHubHeaderWithoutAttraction),i.push(rt.WalletNotificationStatusHubHeader)}return i.push(t?rt.WalletNotificationStatusAllAppsWithAttraction:rt.WalletNotificationStatusAllAppsWithoutAttraction),i.push(rt.WalletNotificationStatusAllApps),i})(t);o.forEach((t=>{((e,t,i)=>{try{if(qe.recordEnumerationValue(e,t,i),Et.includes(t)){qe.recordEnumerationValue(e,nt.NOTIFICATION_CARD_ENGAGEMENT,i);const o=mt.get(t);o{Pe.valueExists(_t)&&Pe.getValue(_t)&&Ot(e,t)},It=(e,t)=>{if(Qe&&function(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=Ye(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(Qe?.triggerExperiment))try{if(e)switch(t){case Je.mastercard:Qe.triggerExperiment(Xe.TOKENIZATION_NOTIFICATION_MASTERCARD);break;case Je.visa:Qe.triggerExperiment(Xe.TOKENIZATION_NOTIFICATION_VISA)}}catch{}};function At(e,t="profileflyoutnotification"){try{const i=new URL(e);return i.searchParams.append("source",t),i.toString()}catch(e){return console.error("Error happened when appending source, redirect to default page.",e),`edge://wallet?source=${t}`}}function Ct(e,t=""){try{const i=new URL(e);return i.searchParams.append("type",t),i.toString()}catch(e){return console.error("Error happened when appending type, redirect to default page.",e),`edge://wallet?type=${t}`}}var vt=r(265);function Rt(e,t,i=!1){const o=!!e.values&&e.values.every((e=>"string"==typeof e||"number"==typeof e));let r;if(r=i||!0!==t.valueExists(e.id)?e.defaultMessage:t.getString(e.id),!e.values)return r;try{return o?r.replace(/\$(.|$|\n)/g,(function(t){return"$$"===t?"$":Number(t[1])>0?e.values?.[Number(t[1])-1]:""})):(n=r,a=e.values,function(e,t,i,o){const r=(e.match(/(\$[1-9])|(([^$]|\$([^1-9]|$))+)/g)||[]).map((t=>{if(!t.match(/^\$[1-9]$/)){if((t.match(/\$/g)||[]).length%2!=0)throw new Error(`Unescaped $ found in localized string "${e}".`);const r=t.replace(/\$\$/g,"$");return{value:i?i(r,o):r,arg:null}}return{value:(r=parseInt(t[1],10)-1,a[r]),arg:t};var r}));return vt.createElement(vt.Fragment,null,r.map(((e,t)=>vt.createElement(vt.Fragment,{key:t},e.value))))}(n,0,s,l))}catch(t){return console.error(`Error when replacing ${JSON.stringify(e)}:\r\n ${t}`),t instanceof Error&&window?.onerror?.(t.message,"_TL_Without_LoadTimeData error",1,0,t),r}var n,a,s,l}function yt(e,t,i=!1){return o=>Rt({...e,values:o},t,i)}function St(e){return Rt(e,Pe)}function wt(e){return yt(e,Pe)}const kt={msWalletNotificationCardExpired:wt({id:"msWalletNotificationCardExpired",description:"Title of wallet notification for expired payment card",defaultMessage:"Your card has expired"}),msWalletNotificationCardExpiring:wt({id:"msWalletNotificationCardExpiring",description:"Title of wallet notification for payment card that is going to expire",defaultMessage:"Your card is expiring soon"}),msWalletNotificationUpdateExpText:wt({id:"msWalletNotificationUpdateExpText",description:"Description of expiration date update, $1 is last 4 digits of the card number",defaultMessage:"Edit your card information to continue use of your card ending in $1."}),msWalletNotificationUpdateButton:wt({id:"msWalletNotificationUpdateButton",description:"Text of wallet notification update action button",defaultMessage:"Update now"}),msWalletNotificationUpdateButton1:wt({id:"msWalletNotificationUpdateButton1",description:"Text of wallet notification update action button",defaultMessage:"Update or remove card"}),msWalletNotificationUpdateButton2:wt({id:"msWalletNotificationUpdateButton2",description:"Text of wallet notification update action button",defaultMessage:"Fix it"}),msWalletNotificationSnoozeText1:wt({id:"msWalletNotificationSnoozeText1",description:"Wallet notification snooze description",defaultMessage:"Notification snoozed for $1 days"}),msWalletNotificationUpdatedCardText:wt({id:"msWalletNotificationUpdatedCardText",description:"Description of successfully updating payment card result",defaultMessage:"Card updated successfully!"}),msWalletNotificationUpdateCardFailText:wt({id:"msWalletNotificationUpdateCardFailText",description:"Description of failed payment card update result, $1 is link",defaultMessage:"Update failed. Try again in $1"}),msWalletNotificationDismissLabel:wt({id:"msWalletNotificationDismissLabel",description:"Title text for the dismiss button",defaultMessage:"Dismiss"}),msWalletNotificationSnoozeLabel:wt({id:"msWalletNotificationSnoozeLabel",description:"Title text for the snooze button",defaultMessage:"Snooze"}),msWalletNotificationCardTokenizationEligibleTitle:wt({id:"msWalletNotificationCardTokenizationEligibleTitle",description:"Title of wallet notification for card tokenization eligible",defaultMessage:"Protect your purchases with virtual cards"}),msWalletNotificationCardTokenizationEligibleDescription:wt({id:"msWalletNotificationCardTokenizationEligibleDescription",description:"Description of wallet notification for card tokenization eligible, $1 is card number(****1234)",defaultMessage:"Virtual cards are single-use payment credentials that are randomly generated each time you make an online purchase. This helps ensure your $1 is protected."}),learnMoreLinkTextShort:wt({id:"learnMoreLinkTextShort",defaultMessage:"Learn more",description:"Text of learn more link text"}),activateVirtualCardButtonText:wt({id:"activateVirtualCardButtonText",description:"Text of Activate virtual card button text",defaultMessage:"Activate virtual card"}),msWalletNotificationCardTokenizationEligibleHeader:wt({id:"msWalletNotificationCardTokenizationEligibleHeader",description:"Header of wallet notification for card tokenization eligible V2",defaultMessage:"Protect your card details"}),msWalletNotificationCardTokenizationEligibleIntroduction:wt({id:"msWalletNotificationCardTokenizationEligibleIntroduction",description:"Introduction of wallet notification for card tokenization eligible V2",defaultMessage:"Set up a virtual card to make online shopping safer and more convenient."}),msWalletNotificationCardTokenizationEligibleIntroductionForRewards:wt({id:"msWalletNotificationCardTokenizationEligibleIntroductionForRewards",description:"Introduction of wallet notification for card tokenization eligible V2 for rewards incentive",defaultMessage:"Set up a virtual card to make online shopping safer and earn 20 Microsoft Rewards points."}),msWalletNotificationCardTokenizationEligibleSetUpText:wt({id:"msWalletNotificationCardTokenizationEligibleSetUpText",description:"Text of Set up button of wallet notification for card tokenization eligible V2",defaultMessage:"Set up for $1"}),personalizedOffersCashBackDescription:wt({id:"personalizedOffersCashBackDescription",defaultMessage:"Earn $1 cash back with $2.",description:"Text of Personalized Offers available description, $1 is cash value($20), $2 is seller name(Nike),"}),personalizedOffersOfferExpiresInText:wt({id:"personalizedOffersOfferExpiresInText",description:"Text of Personalized Offers available Offer expires in text",defaultMessage:"Offer expires in"}),msWalletNotificationCryptowalletSignupTitle:wt({id:"msWalletNotificationCryptowalletSignupTitle",description:"Title of set up crypto wallet",defaultMessage:"Set up your Crypto Wallet"}),msWalletNotificationCryptowalletSignupDescription:wt({id:"msWalletNotificationCryptowalletSignupDescription",description:"Description of set up crypto wallet",defaultMessage:"Explore Web3 securely with this non-custodial wallet"}),msWalletNotificationCryptowalletJoinButton:wt({id:"msWalletNotificationCryptowalletJoinButton",description:"Text of set up crypto wallet action button",defaultMessage:"Set up"}),msWalletNotificationHotelReservationTitle:wt({id:"msWalletNotificationHotelReservationTitle",description:"The title of upcoming hotel reservation notification",defaultMessage:"Upcoming accommodation"}),msWalletNotificationHotelReservationBody:wt({id:"msWalletNotificationHotelReservationBody",description:"The body of upcoming hotel reservation notification, $1 is hotel name, $2 is checkin date, $3 is checkout date",defaultMessage:"Your booking date of $1 from $2 to $3 is upcoming."}),msWalletNotificationHotelReservationViewDetails:wt({id:"msWalletNotificationHotelReservationViewDetails",description:"The text of link to view detials in upcoming hotel reservation notification",defaultMessage:"View details"}),personalizedOffersNoThanksText:wt({id:"personalizedOffersNoThanksText",description:"Text of Personalized Offers available no thanks text",defaultMessage:"No thanks"}),msWalletNotificationDonationSummaryTitle:wt({id:"msWalletNotificationDonationSummaryTitle",description:"Title of donation summary notification",defaultMessage:"View your entire giving summary and more"}),msWalletNotificationDonationSummaryLinkText:wt({id:"msWalletNotificationDonationSummaryLinkText",description:"Text of donation summary notification link",defaultMessage:"Check it out"}),walletTitle:wt({id:"walletTitle",description:"The title of wallet page",defaultMessage:"Wallet"}),msWalletNotificationRebatesCashoutTitle:wt({id:"msWalletNotificationRebatesCashoutTitle",description:"Title of wallet notification for rebates cashout",defaultMessage:"It's time to cash out!"}),msWalletNotificationRebatesCashoutDescription:wt({id:"msWalletNotificationRebatesCashoutDescription",description:"Description of wallet notification for rebates cashout",defaultMessage:"Know more about cashback program and cashout using PayPal."}),msWalletNotificationRebatesCashoutAmountDescription:wt({id:"msWalletNotificationRebatesCashoutAmountDescription",description:"Description of wallet notification for rebates cashout. $1 is cashback amount",defaultMessage:"Congratulations you have $1 in cashback. Cashout using PayPal."}),msWalletNotificationRebatesCashoutAction:wt({id:"msWalletNotificationRebatesCashoutAction",description:"Action text of wallet notification for rebates cashout",defaultMessage:"Transfer to Paypal"}),msWalletNotificationDismissText:wt({id:"msWalletNotificationDismissText",description:"Wallet notification dismiss permanently description",defaultMessage:"You will not see this notification again"}),msWalletNotificationSnoozeText:wt({id:"msWalletNotificationSnoozeText",description:"Wallet notification snooze description",defaultMessage:"Notification snoozed for 7 days"}),msWalletNotificationDismissPermanently:wt({id:"msWalletNotificationDismissPermanently",description:"Wallet notification dismiss permanently action text",defaultMessage:"Dismiss permanently"}),msWalletNotificationPOMessage:wt({id:"msWalletNotificationPOMessage",description:"Text of Personalized Offers available description, $1 is cash value($20)",defaultMessage:"Your selected $1 Microsoft Cashback offer expires in $2"}),personalizedOffersViewOfferText:wt({id:"personalizedOffersViewOfferText",description:"Text of Personalized Offers available view offer text",defaultMessage:"View offer"}),msWalletNotificationLeakageTitle:wt({id:"msWalletNotificationLeakageTitle",description:"The title of password leakage notification",defaultMessage:"Password leakage"}),msWalletNotificationPasswordCompromiseTitle:wt({id:"msWalletNotificationPasswordCompromiseTitle",description:"The title of password leakage or compromise notification",defaultMessage:"Password compromised"}),msWalletNotificationPasswordCompromiseBody:wt({id:"msWalletNotificationPasswordCompromiseBody",description:"The content of password compromise notification, $1 is the compromised password count",defaultMessage:"$1 passwords have appeared in a data leak."}),msWalletNotificationPasswordCompromiseBodySingular:wt({id:"msWalletNotificationPasswordCompromiseBodySingular",description:"The content of password compromise notification for one password leaked",defaultMessage:"1 password has appeared in a data leak."}),msWalletNotificationOrderStatusTitle:wt({id:"msWalletNotificationOrderStatusTitle",description:"The title of your order status change notification in package tracking notification",defaultMessage:"Order status updated"}),msWalletNotificationViewDetailLink:wt({id:"msWalletNotificationViewDetailLink",description:"The text of View details link in package tracking notification",defaultMessage:"View details"}),msWalletNotificationTrackOrderTitle:wt({id:"msWalletNotificationTrackOrderTitle",description:"The title of Track your order notification in package tracking notification",defaultMessage:"Track your order"}),msWalletNotificationTrackOrderSubTitle:wt({id:"msWalletNotificationTrackOrderSubTitle",description:"The subtitle of Track your order notification in package tracking notification",defaultMessage:"Wallet helps you track your order when you buy from certain sites."}),msWalletNotificationTrackOrderLink:wt({id:"msWalletNotificationTrackOrderLink",description:"The text of Track your order link in package tracking notification",defaultMessage:"Track order"}),msWalletNotificationPOTitle:wt({id:"msWalletNotificationPOTitle",description:"The title of personalized offers notification",defaultMessage:"Offer expiring soon"}),msWalletNotificationEtreeHalloweenTitle:wt({id:"msWalletNotificationEtreeHalloweenTitle",description:"Title of Etree Halloween event notification, E-tree is term and don't need translation",defaultMessage:"Halloween event with E-tree"}),msWalletNotificationEtreeHalloweenContent:wt({id:"msWalletNotificationEtreeHalloweenContent",description:"Content of Etree Halloween event notification",defaultMessage:"Check in daily to get a special ornament and extra water drops."}),msWalletNotificationEtreeHalloweenLinkText:wt({id:"msWalletNotificationEtreeHalloweenLinkText",description:"Text of Etree Halloween event notification action link",defaultMessage:"Join the Halloween event"}),msWalletNotificationEtreeChristmasTitle:wt({id:"msWalletNotificationEtreeChristmasTitle",description:"Title of Etree Christmas event notification",defaultMessage:"Earn holiday surprises"}),msWalletNotificationEtreeChristmasContent:wt({id:"msWalletNotificationEtreeChristmasContent",description:"Content of Etree Christmas event notification",defaultMessage:"Get daily surprises and make this holiday season more magical!"}),msWalletNotificationEtreeChristmasLinkText:wt({id:"msWalletNotificationEtreeChristmasLinkText",description:"Text of Etree Christmas event notification action link",defaultMessage:"Join now"}),msWalletNotificationEtreeNonEnrolledTitleV1:wt({id:"msWalletNotificationEtreeNonEnrolledTitleV1",description:"Title of Etree notification for non-enrolled users",defaultMessage:"Plant a tree"}),msWalletNotificationEtreeNonEnrolledDescriptionV1:wt({id:"msWalletNotificationEtreeNonEnrolledDescriptionV1",description:"Description of Etree notification for non-enrolled users",defaultMessage:"Plant a virtual tree in Wallet and we’ll plant a real tree to support reforestation efforts."}),msWalletNotificationEtreeNonEnrolledLinkTextV1:wt({id:"msWalletNotificationEtreeNonEnrolledLinkTextV1",description:"Text of Etree notification action link for non-enrolled users",defaultMessage:"Start now"}),msWalletNotificationEtreeEnrolledTitleV1:wt({id:"msWalletNotificationEtreeEnrolledTitleV1",description:"Title of Etree notification for enrolled users, $1 is water drops count for next level",defaultMessage:"$1 drops to level up"}),msWalletNotificationEtreeEnrolledDescriptionV1:wt({id:"msWalletNotificationEtreeEnrolledDescriptionV1",description:"Description of Etree notification for enrolled users, , $1 is water drops count for next level",defaultMessage:"$1 drops to level up and keep growing your tree."}),msWalletNotificationEtreeEnrolledLinkTextV1:wt({id:"msWalletNotificationEtreeEnrolledLinkTextV1",description:"Text of Etree notification action link for enrolled users",defaultMessage:"Grow my tree"}),msWalletNotificationEtreeNonEnrolledTitleV2:wt({id:"msWalletNotificationEtreeNonEnrolledTitleV2",description:"Title of Etree notification for enrolled users",defaultMessage:"Let’s grow green"}),msWalletNotificationEtreeNonEnrolledDescriptionV2:wt({id:"msWalletNotificationEtreeNonEnrolledDescriptionV2",description:"Description of Etree notification for enrolled users",defaultMessage:"Collect water drops today to grow your tree."}),msWalletNotificationEtreeNonEnrolledLinkTextV2:wt({id:"msWalletNotificationEtreeNonEnrolledLinkTextV2",description:"Text of Etree notification action link for non-enrolled users",defaultMessage:"Grow my tree"}),msWalletNotificationEtreeEnrolledTitleV2:wt({id:"msWalletNotificationEtreeEnrolledTitleV2",description:"Title of Etree notification for enrolled users, E-tree is term and don't need translation",defaultMessage:"Continue the green initiative"}),msWalletNotificationEtreeEnrolledDescriptionV2:wt({id:"msWalletNotificationEtreeEnrolledDescriptionV2",description:"Description of Etree notification for enrolled users",defaultMessage:"Collect water drops today to grow your tree. More efforts, more trees."}),msWalletNotificationEtreeEnrolledLinkTextV2:wt({id:"msWalletNotificationEtreeEnrolledLinkTextV2",description:"Text of Etree notification action link for enrolled users",defaultMessage:"Grow my tree"}),msWalletNotificationDonationTrendNpoTitle:wt({id:"msWalletNotificationDonationTrendNpoTitle",description:"Title of donation notification to recommend trending non-profit organization",defaultMessage:"Make your gift go further"}),msWalletNotificationDonationTrendNpoDescription:wt({id:"msWalletNotificationDonationTrendNpoDescription",description:"Description of donation notification to recommend trending non-profit organization, $1 is NPO name",defaultMessage:"$1 is trending, your gift will make a greater impact!"}),msWalletNotificationDonationTrendNpoLink:wt({id:"msWalletNotificationDonationTrendNpoLink",description:"Text of donation notification action link to redirect to the donation page",defaultMessage:"Give now"})},Mt={featurePromotionActionLinkText:wt({id:"featurePromotionActionLinkText",description:"Text of Wallet Notification Feature Promotion Action Link",defaultMessage:"Try it now"}),passwordsPromotionTitle:wt({id:"passwordsPromotionTitle",description:"Title of Wallet Notification Password Promotion",defaultMessage:"Manage your passwords in Wallet"}),passwordsDescription:wt({id:"passwordsDescription",description:"Text of Wallet Notification Password Promotion",defaultMessage:"Try the new management experience in Wallet."}),membershipsPromotionTitle:wt({id:"membershipsPromotionTitle",description:"Title of Wallet Notification Password Promotion",defaultMessage:"Manage your memberships in Wallet"}),membershipsDescription:wt({id:"membershipsDescription",description:"Text of Wallet Notification Password Promotion",defaultMessage:"Stay organized and in control."}),rewardsPromotionTitle:wt({id:"rewardsPromotionTitle",description:"Title of Wallet Notification Rewards Promotion",defaultMessage:"Add memberships to earn Microsoft Rewards"}),rewardsPromotionDescription:wt({id:"rewardsPromotionDescription",description:"Text of Wallet Notification Rewards Promotion",defaultMessage:"Earn up to 20 rewards points by adding new memberships to wallet"}),rewardsPromotionActionLinkText:wt({id:"rewardsPromotionActionLinkText",description:"Text of Wallet Notification Rewards Promotion Action Link",defaultMessage:"Add new membership"}),msWalletNotificationRoamCardHeader:wt({id:"msWalletNotificationRoamCardHeader",description:"Header of wallet notification for roam card",defaultMessage:"Save the card to Microsoft account"}),msWalletNotificationRoamCardHeaderV2:wt({id:"msWalletNotificationRoamCardHeaderV2",description:"Header of wallet notification for roam card",defaultMessage:"Pay faster and from different devices on future purchases"}),msWalletNotificationRoamCardHeaderV3:wt({id:"msWalletNotificationRoamCardHeaderV3",description:"Header of wallet notification for roam card",defaultMessage:"Pay faster from any device"}),msWalletNotificationRoamCardAction:wt({id:"msWalletNotificationRoamCardAction",description:"Action text of wallet notification for roam card",defaultMessage:"Save the card"}),msWalletNotificationRoamCardActionV2:wt({id:"msWalletNotificationRoamCardActionV2",description:"Action text of wallet notification for roam card",defaultMessage:"Save card to Microsoft account"})},xt=["getRewardsItem","clearCurrentNotification","getNotificationsUnviewedStatus","getMultipleNotifications","getCurrentNotification","onApply","onDismiss","onSnooze","isValidNotificationFromMultipleNotifications","isValidNotification"],Pt=["setNotificationsUnviewedStatus","buildNotifications","clearCurrentNotification","onApply","onDismiss","onSnooze","isValidNotification","isValidNotificationFromMultipleNotifications"],Dt=new class{constructor(){this.instanceBase=()=>{var e,t;return this.instanceBase_||(this.instanceBase_=Fe()?(e="EdgeWalletNotificationMojomModule",t=We,new Proxy({},{get:(i,o)=>async(...i)=>{const r=window.cachedMojom;return r[e]||(r[e]="function"==typeof t?await(t?.()):await t),r[e]?.[o]?.(...i)}})):null),this.instanceBase_},this.instanceTracingProxy_=function(e,t,i,o){const r={get:function(o,r){const n=o[r],a=new Error;return(...o)=>{const s={args:0===o.length?[]:t.includes(r)?[...o.values()]:Se,status:"Success",result:Se,stack:a.stack};try{const t=n.apply(this,o);return i.includes(r)&&(s.result=t),we(e,{apiName:r,data:s}),t}catch(t){s.status="Error",we(e,{apiName:r,data:s})}}}};return o?new Proxy(o,r):null}("WalletNotification::Mojom",xt,Pt,this.instanceBase()),this.instance=()=>this.instanceTracingProxy_,this.navigateToUrl=e=>this.instance()?.navigateToUrl?.({url:e}),this.logErrorDetails=(e,t)=>{this.instance()?.logErrorDetails?.(e,t)},this.isValidNotification=e=>this.instance()?.isValidNotification?.(e),this.isValidNotificationFromMultipleNotifications=e=>this.instance()?.isValidNotificationFromMultipleNotifications?.(e),this.getCurrentNotification=()=>this.instance()?.getCurrentNotification?.(),this.getMultipleNotifications=()=>this.instance()?.getMultipleNotifications?.(),this.setNotificationsUnviewedStatus=e=>{this.instance()?.setNotificationsUnviewedStatus(e)},this.getNotificationsUnviewedStatus=()=>this.instance()?.getNotificationsUnviewedStatus?.().then((e=>e?.status)),this.buildNotifications=e=>{this.instance()?.buildNotifications(e)},this.clearCurrentNotification=()=>{this.instance()?.clearCurrentNotification?.()},this.onApply=e=>{this.instance()?.onApply?.(e)},this.onDismiss=e=>{this.instance()?.onDismiss?.(e)},this.onSnooze=e=>{this.instance()?.onSnooze?.(e)},this.getRewardsItem=()=>this.instance()?.getRewardsItem?.(),this.writeDiagnosticLog=e=>this.instance()?.writeDiagnosticLog?.(e)}};var Lt,Ft,Wt;!function(e){e.BOOLEAN="BOOLEAN",e.NUMBER="NUMBER",e.STRING="STRING",e.URL="URL",e.LIST="LIST",e.DICTIONARY="DICTIONARY"}(Lt||(Lt={})),function(e){e.DEVICE_POLICY="DEVICE_POLICY",e.USER_POLICY="USER_POLICY",e.OWNER="OWNER",e.PRIMARY_USER="PRIMARY_USER",e.EXTENSION="EXTENSION",e.PARENT="PARENT",e.CHILD_RESTRICTION="CHILD_RESTRICTION"}(Ft||(Ft={})),function(e){e.ENFORCED="ENFORCED",e.RECOMMENDED="RECOMMENDED",e.PARENT_SUPERVISED="PARENT_SUPERVISED"}(Wt||(Wt={}));const{settingsPrivate:Bt}=window?.chrome,Gt=()=>{const e={};return function(t,i){void 0===e[t.id]&&(t.insertCSSRules(i),e[t.id]=!0)}};function Vt(e){for(var t,i=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),i=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&i)+(59797*(i>>>16)<<16);switch(r){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(o)))+(59797*(i>>>16)<<16)}return(((i=1540483477*(65535&(i^=i>>>13))+(59797*(i>>>16)<<16))^i>>>15)>>>0).toString(36)}function Ut(e){return e.reduce((function(e,t){var i=t[0],o=t[1];return e[i]=o,e[o]=i,e}),{})}function $t(e){return"number"==typeof e}function Ht(e,t){return-1!==e.indexOf(t)}function zt(e,t,i,o){return t+(r=i,0===parseFloat(r)?r:"-"===r[0]?r.slice(1):"-"+r)+o;var r}function jt(e){return e.replace(/ +/g," ").split(" ").map((function(e){return e.trim()})).filter(Boolean).reduce((function(e,t){var i=e.list,o=e.state,r=(t.match(/\(/g)||[]).length,n=(t.match(/\)/g)||[]).length;return o.parensDepth>0?i[i.length-1]=i[i.length-1]+" "+t:i.push(t),o.parensDepth+=r-n,{list:i,state:o}}),{list:[],state:{parensDepth:0}}).list}function Zt(e){var t=jt(e);if(t.length<=3||t.length>4)return e;var i=t[0],o=t[1],r=t[2];return[i,t[3],r,o].join(" ")}var Yt={padding:function(e){var t=e.value;return $t(t)?t:Zt(t)},textShadow:function(e){return function(e){for(var t=[],i=0,o=0,r=!1;o0?yi(Gi,--Wi):0,Li--,10===Bi&&(Li=1,Di--),Bi}function Hi(){return Bi=Wi2||Yi(Bi)>3?"":" "}function Ji(e,t){for(;--t&&Hi()&&!(Bi<48||Bi>102||Bi>57&&Bi<65||Bi>70&&Bi<97););return Zi(e,ji()+(t<6&&32==zi()&&32==Hi()))}function eo(e){for(;Hi();)switch(Bi){case e:return Wi;case 34:case 39:34!==e&&39!==e&&eo(Bi);break;case 40:41===e&&eo(e);break;case 92:Hi()}return Wi}function to(e,t){for(;Hi()&&e+Bi!==57&&(e+Bi!==84||47!==zi()););return"/*"+Zi(t,Wi-1)+"*"+bi(47===e?e:Hi())}function io(e){for(;!Yi(zi());)Hi();return Zi(e,Wi)}function oo(e){return qi(ro("",null,null,null,[""],e=Ki(e),0,[0],e))}function ro(e,t,i,o,r,n,a,s,l){for(var c=0,d=0,u=a,p=0,h=0,f=0,g=1,E=1,T=1,m=0,N="",_=r,O=n,b=o,I=N;E;)switch(f=m,m=Hi()){case 40:if(108!=f&&58==yi(I,u-1)){-1!=Ri(I+=vi(Xi(m),"&","&\f"),"&\f")&&(T=-1);break}case 34:case 39:case 91:I+=Xi(m);break;case 9:case 10:case 13:case 32:I+=Qi(f);break;case 92:I+=Ji(ji()-1,7);continue;case 47:switch(zi()){case 42:case 47:Mi(ao(to(Hi(),ji()),t,i,l),l);break;default:I+="/"}break;case 123*g:s[c++]=wi(I)*T;case 125*g:case 59:case 0:switch(m){case 0:case 125:E=0;case 59+d:-1==T&&(I=vi(I,/\f/g,"")),h>0&&wi(I)-u&&Mi(h>32?so(I+";",o,i,u-1,l):so(vi(I," ","")+";",o,i,u-2,l),l);break;case 59:I+=";";default:if(Mi(b=no(I,t,i,c,d,r,s,N,_=[],O=[],u,n),n),123===m)if(0===d)ro(I,t,b,b,_,n,u,s,O);else switch(99===p&&110===yi(I,3)?100:p){case 100:case 108:case 109:case 115:ro(e,b,b,o&&Mi(no(e,b,b,0,0,r,s,N,r,_=[],u,O),O),r,O,u,s,o?_:O);break;default:ro(I,b,b,b,[""],O,0,s,O)}}c=d=h=0,g=T=1,N=I="",u=a;break;case 58:u=1+wi(I),h=f;default:if(g<1)if(123==m)--g;else if(125==m&&0==g++&&125==$i())continue;switch(I+=bi(m),m*g){case 38:T=d>0?1:(I+="\f",-1);break;case 44:s[c++]=(wi(I)-1)*T,T=1;break;case 64:45===zi()&&(I+=Xi(Hi())),p=zi(),d=u=wi(N=I+=io(ji())),m++;break;case 45:45===f&&2==wi(I)&&(g=0)}}return n}function no(e,t,i,o,r,n,a,s,l,c,d,u){for(var p=r-1,h=0===r?n:[""],f=ki(h),g=0,E=0,T=0;g0?h[m]+" "+N:vi(N,/&\f/g,h[m])))&&(l[T++]=_);return Vi(e,t,i,0===r?mi:s,l,c,d,u)}function ao(e,t,i,o){return Vi(e,t,i,Ti,bi(Bi),Si(e,2,-2),0,o)}function so(e,t,i,o,r){return Vi(e,t,i,Ni,Si(e,0,o),Si(e,o+1,-1),o,r)}function lo(e){var t=ki(e);return function(i,o,r,n){for(var a="",s=0;s{if(e.type===mi){if("string"==typeof e.props)return;e.props=e.props.map((e=>-1===e.indexOf(":global(")?e:function(e){return qi(function(e){for(;Hi();)switch(Yi(Bi)){case 0:Mi(io(Wi-1),e);break;case 2:Mi(Xi(Bi),e);break;default:Mi(bi(Bi),e)}return e}(Ki(e)))}(e).reduce(((e,t,i,o)=>{if(""===t)return e;if(":"===t&&"global"===o[i+1]){const t=o[i+2].slice(1,-1)+" ";return e.unshift(t),o[i+1]="",o[i+2]="",e}return e.push(t),e}),[]).join("")))}};function po(e,t,i){switch(function(e,t){return 45^yi(e,0)?(((t<<2^yi(e,0))<<2^yi(e,1))<<2^yi(e,2))<<2^yi(e,3):0}(e,t)){case 5103:return"-webkit-print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Ei+e+e;case 4789:return gi+e+e;case 5349:case 4246:case 6968:return Ei+e+gi+e+"-ms-"+e+e;case 6187:if(!Ci(e,/grab/))return vi(vi(vi(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return vi(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4095:case 3583:case 4068:case 2532:return vi(e,/(.+)-inline(.+)/,"-webkit-$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(wi(e)-1-t>6)switch(yi(e,t+1)){case 102:if(108===yi(e,t+3))return vi(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==yi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ri(e,"stretch")?po(vi(e,"stretch","fill-available"),t)+e:e}}return e}function ho(e,t,i,o){if(e.length>-1&&!e.return)switch(e.type){case Ni:return void(e.return=po(e.value,e.length));case mi:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(Ci(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xi([Ui(e,{props:[vi(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return xi([Ui(e,{props:[vi(t,/:(plac\w+)/,":-webkit-input-$1")]}),Ui(e,{props:[vi(t,/:(plac\w+)/,":-moz-$1")]}),Ui(e,{props:[vi(t,/:(plac\w+)/,"-ms-input-$1")]})],o)}return""}))}}const fo=e=>{(function(e){switch(e.type){case"@container":case"@media":case"@supports":case _i:return!0}return!1})(e)&&Array.isArray(e.children)&&e.children.sort(((e,t)=>e.props[0]>t.props[0]?1:-1))};const go=/,( *[^ &])/g;function Eo(e,t,i){let o=t;return i.length>0&&(o=i.reduceRight(((e,t)=>{return`${i=t,"&"+fi(i.replace(go,",&$1"))} { ${e} }`;var i}),t)),`${e}{${o}}`}function To(e){const{className:t,media:i,layer:o,selectors:r,support:n,property:a,rtlClassName:s,rtlProperty:l,rtlValue:c,value:d,container:u}=e;let p=Eo(`.${t}`,Array.isArray(d)?`${d.map((e=>`${hi(a)}: ${e}`)).join(";")};`:`${hi(a)}: ${d};`,r);return l&&s&&(p+=Eo(`.${s}`,Array.isArray(c)?`${c.map((e=>`${hi(l)}: ${e}`)).join(";")};`:`${hi(l)}: ${c};`,r)),i&&(p=`@media ${i} { ${p} }`),o&&(p=`@layer ${o} { ${p} }`),n&&(p=`@supports ${n} { ${p} }`),u&&(p=`@container ${u} { ${p} }`),function(e,t){const i=[];return xi(oo(e),lo([uo,fo,ho,Pi,co((e=>i.push(e)))])),i}(p)}function mo(e){let t="";for(const i in e){const o=e[i];"string"!=typeof o&&"number"!=typeof o||(t+=hi(i)+":"+o+";")}return t}function No(e){let t="";for(const i in e)t+=`${i}{${mo(e[i])}}`;return t}function _o(e,t){const i=[];return xi(oo(`@keyframes ${e} {${t}}`),lo([Pi,ho,co((e=>i.push(e)))])),i}function Oo(e,t){return 0===e.length?t:`${e} and ${t}`}function bo(e){return"@media"===e.substr(0,6)}function Io(e){return"@layer"===e.substr(0,6)}const Ao=/^(:|\[|>|&)/;function Co(e){return Ao.test(e)}function vo(e){return"@supports"===e.substr(0,9)}function Ro(e){return"@container"===e.substring(0,10)}const yo={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function So(e,t,i,o,r){if(i)return"m";if(t||o)return"t";if(r)return"c";if(e.length>0){const t=e[0].trim();if(58===t.charCodeAt(0))return yo[t.slice(4,8)]||yo[t.slice(3,5)]||"d"}return"d"}function wo({container:e,media:t,layer:i,property:o,selector:r,support:n,value:a}){return"f"+Vt(r+e+t+i+n+o+a.trim())}function ko(e,t,i,o,r){const n=Vt(e+t+i+o+r),a=n.charCodeAt(0);return a>=48&&a<=57?String.fromCharCode(a+17)+n.slice(1):n}function Mo(e){return e.replace(/>\s+/g,">")}function xo(e,t){const i=JSON.stringify(t,null,2),o=["@griffel/react: A rule was not resolved to CSS properly. Please check your `makeStyles` or `makeResetStyles` calls for following:"," ".repeat(2)+"makeStyles({"," ".repeat(4)+"[slot]: {"," ".repeat(6)+`"${e}": ${i.split("\n").map(((e,t)=>" ".repeat(0===t?0:6)+e)).join("\n")}`," ".repeat(4)+"}"," ".repeat(2)+"})",""];-1===e.indexOf("&")?(o.push("It looks that you're are using a nested selector, but it is missing an ampersand placeholder where the generated class name should be injected."),o.push(`Try to update a property to include it i.e "${e}" => "&${e}".`)):(o.push(""),o.push("If it's not obvious what triggers a problem, please report an issue at https://github.com/microsoft/griffel/issues")),o.join("\n")}function Po(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)+"})","","Learn why CSS shorthands are not supported: https://aka.ms/griffel-css-shorthands"].join("\n")}var Do=Object.defineProperty,Lo=Object.getOwnPropertySymbols,Fo=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable,Bo=(e,t,i)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Go=(e,t)=>{for(var i in t||(t={}))Fo.call(t,i)&&Bo(e,i,t[i]);if(Lo)for(var i of Lo(t))Wo.call(t,i)&&Bo(e,i,t[i]);return e};function Vo(e,t,i,o){e[t]=o?[i,o]:i}function Uo(e,t){return t?[e,t]:e}function $o(e,t,i,o,r){var n;let a;"m"===t&&r&&(a={m:r}),null!==(n=e[t])&&void 0!==n||(e[t]=[]),i&&e[t].push(Uo(i,a)),o&&e[t].push(Uo(o,a))}function Ho(e,t=[],i="",o="",r="",n="",a={},s={},l){for(const d in e){if(li.hasOwnProperty(d)){Po(d,e[d]);continue}const u=e[d];if(null!=u)if("string"==typeof u||"number"==typeof u){const e=Mo(t.join("")),c=ko(e,n,i,r,d),p=wo({container:n,media:i,layer:o,value:u.toString(),support:r,selector:e,property:d}),h=l&&{key:d,value:l}||ti(d,u),f=h.key!==d||h.value!==u,g=f?wo({container:n,value:h.value.toString(),property:h.key,selector:e,media:i,layer:o,support:r}):void 0,E=f?{rtlClassName:g,rtlProperty:h.key,rtlValue:h.value}:void 0,T=So(t,o,i,r,n),[m,N]=To(Go({className:p,media:i,layer:o,selectors:t,property:d,support:r,container:n,value:u},E));Vo(a,c,p,g),$o(s,T,m,N,i)}else if("animationName"===d){const e=Array.isArray(u)?u:[u],l=[],c=[];for(const t of e){const e=No(t),o=No(ei(t)),r="f"+Vt(e);let n;const a=_o(r,e);let d=[];e===o?n=r:(n="f"+Vt(o),d=_o(n,o));for(let e=0;e(null!=e?e:"").toString())).join(";"),support:r,selector:e,property:d}),p=u.map((e=>ti(d,e)));if(p.some((e=>e.key!==p[0].key)))continue;const h=p[0].key!==d||p.some(((e,t)=>e.value!==u[t])),f=h?wo({container:n,value:p.map((e=>{var t;return(null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"").toString()})).join(";"),property:p[0].key,selector:e,layer:o,media:i,support:r}):void 0,g=h?{rtlClassName:f,rtlProperty:p[0].key,rtlValue:p.map((e=>e.value))}:void 0,E=So(t,o,i,r,n),[T,m]=To(Go({className:c,media:i,layer:o,selectors:t,property:d,support:r,container:n,value:u},g));Vo(a,l,c,f),$o(s,E,T,m,i)}else if(null!=(c=u)&&"object"==typeof c&&!1===Array.isArray(c))if(Co(d))Ho(u,t.concat(fi(d)),i,o,r,n,a,s);else if(bo(d)){const e=Oo(i,d.slice(6).trim());Ho(u,t,e,o,r,n,a,s)}else if(Io(d)){const e=(o?`${o}.`:"")+d.slice(6).trim();Ho(u,t,i,e,r,n,a,s)}else if(vo(d)){const e=Oo(r,d.slice(9).trim());Ho(u,t,i,o,e,n,a,s)}else if(Ro(d)){const e=d.slice(10).trim();Ho(u,t,i,o,r,e,a,s)}else xo(d,u)}var c;return[a,s]}function zo(e,t,i=[]){return ai+function(e){const t=e.length;if(7===t)return e;for(let i=t;i<7;i++)e+="0";return e}(Vt(e+t))}function jo(e,t){let i="";for(const o in e){const r=e[o];if(r){const e=Array.isArray(r);i+="rtl"===t?(e?r[1]:r)+" ":(e?r[0]:r)+" "}}return i.slice(0,-1)}function Zo(e,t){const i={};for(const o in e){const r=jo(e[o],t);if(""===r){i[o]="";continue}const n=zo(r,t),a=n+" "+r;ni[n]=[e[o],t],i[o]=a}return i}const Yo=vt.useInsertionEffect?vt.useInsertionEffect:void 0,Ko=()=>{const e={};return function(t,i){Yo&&"undefined"!=typeof window&&window.document&&window.document.createElement?Yo((()=>{t.insertCSSRules(i)}),[t,i]):void 0===e[t.id]&&(t.insertCSSRules(i),e[t.id]=!0)}};var qo=Object.defineProperty,Xo=Object.getOwnPropertySymbols,Qo=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable,er=(e,t,i)=>t in e?qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,tr=(e,t)=>{for(var i in t||(t={}))Qo.call(t,i)&&er(e,i,t[i]);if(Xo)for(var i of Xo(t))Jo.call(t,i)&&er(e,i,t[i]);return e};const ir=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce(((e,t,i)=>(e[t]=i,e)),{});function or(e,t,i,o,r={}){const n="m"===e,a=n?e+r.m:e;if(!o.stylesheets[a]){const s=t&&t.createElement("style"),l=function(e,t,i){const o=[];if(i["data-make-styles-bucket"]=t,e)for(const t in i)e.setAttribute(t,i[t]);return{elementAttributes:i,insertRule:function(t){return(null==e?void 0:e.sheet)?e.sheet.insertRule(t,e.sheet.cssRules.length):o.push(t)},element:e,bucketName:t,cssRules:()=>(null==e?void 0:e.sheet)?Array.from(e.sheet.cssRules).map((e=>e.cssText)):o}}(s,e,tr(tr({},o.styleElementAttributes),n&&{media:r.m}));o.stylesheets[a]=l,t&&s&&t.head.insertBefore(s,function(e,t,i,o,r){const n=ir[i];let a=e=>n-ir[e.getAttribute("data-make-styles-bucket")],s=e.head.querySelectorAll("[data-make-styles-bucket]");if("m"===i&&r){const t=e.head.querySelectorAll(`[data-make-styles-bucket="${i}"]`);t.length&&(s=t,a=e=>o.compareMediaQueries(r.m,e.media))}const l=s.length;let c=l-1;for(;c>=0;){const e=s.item(c);if(a(e)>0)return e.nextSibling;c--}return l>0?s.item(0):t?t.nextSibling:null}(t,i,e,o,r))}return o.stylesheets[a]}function rr(e,t){try{e.insertRule(t)}catch(e){}}let nr=0;const ar=(e,t)=>et?1:0;function sr(e=("undefined"==typeof document?void 0:document),t={}){const{unstable_filterCSSRule:i,insertionPoint:o,styleElementAttributes:r,compareMediaQueries:n=ar}=t,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(r),compareMediaQueries:n,id:"d"+nr++,insertCSSRules(t){for(const n in t){const s=t[n];for(let t=0,l=s.length;t{i[e]=(i[e]||[]).concat(a[e])}))}return[t,i]}(e));const c="ltr"===s;return c?null===n&&(n=Zo(o,s)):null===a&&(a=Zo(o,s)),i(l,r),c?n:a}}(e,Ko);return function(){const e=ur(),i=cr();return t({dir:e,renderer:i})}}var hr;(hr||(hr={})).isTokenizationEnrollRewardsEnabled="isTokenizationEnrollRewardsEnabled";const fr={showContent:!0,setAppState:()=>{},appName:ct.MiniWallet},gr=(vt.createContext(fr),pr({container:{}}),["Top","Right","Bottom","Left"]);function Er(e,t,...i){const[o,r=o,n=o,a=r]=i,s=[o,r,n,a],l={};for(let i=0;it in e?br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Rr=(e,t)=>{for(var i in t||(t={}))Ar.call(t,i)&&vr(e,i,t[i]);if(Ir)for(var i of Ir(t))Cr.call(t,i)&&vr(e,i,t[i]);return e},yr=Object.defineProperty,Sr=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Mr=(e,t,i)=>t in e?yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,xr=(e,t)=>{for(var i in t||(t={}))wr.call(t,i)&&Mr(e,i,t[i]);if(Sr)for(var i of Sr(t))kr.call(t,i)&&Mr(e,i,t[i]);return e},Pr=Object.defineProperty,Dr=Object.getOwnPropertySymbols,Lr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,Wr=(e,t,i)=>t in e?Pr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Br=(e,t)=>{for(var i in t||(t={}))Lr.call(t,i)&&Wr(e,i,t[i]);if(Dr)for(var i of Dr(t))Fr.call(t,i)&&Wr(e,i,t[i]);return e},Gr=Object.defineProperty,Vr=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Hr=(e,t,i)=>t in e?Gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,zr=(e,t)=>{for(var i in t||(t={}))Ur.call(t,i)&&Hr(e,i,t[i]);if(Vr)for(var i of Vr(t))$r.call(t,i)&&Hr(e,i,t[i]);return e},jr=Object.defineProperty,Zr=Object.getOwnPropertySymbols,Yr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,qr=(e,t,i)=>t in e?jr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Xr=(e,t)=>{for(var i in t||(t={}))Yr.call(t,i)&&qr(e,i,t[i]);if(Zr)for(var i of Zr(t))Kr.call(t,i)&&qr(e,i,t[i]);return e};const Qr=e=>"number"==typeof e&&!Number.isNaN(e),Jr=e=>"auto"===e,en=["content","fit-content","max-content","min-content"],tn=e=>en.some((t=>e===t))||(e=>"string"==typeof e&&/(\d+(\w+|%))/.test(e))(e),on=/var\(.*\)/gi,rn=/^[a-zA-Z0-9\-_\\#;]+$/,nn=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|\d.*/;function an(e){return void 0!==e&&"string"==typeof e&&rn.test(e)&&!nn.test(e)}var sn=Object.defineProperty,ln=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,un=(e,t,i)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,pn=(e,t)=>{for(var i in t||(t={}))cn.call(t,i)&&un(e,i,t[i]);if(ln)for(var i of ln(t))dn.call(t,i)&&un(e,i,t[i]);return e};const hn=["-moz-initial","inherit","initial","revert","unset"];var fn=Object.defineProperty,gn=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,mn=(e,t,i)=>t in e?fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Nn=(e,t)=>{for(var i in t||(t={}))En.call(t,i)&&mn(e,i,t[i]);if(gn)for(var i of gn(t))Tn.call(t,i)&&mn(e,i,t[i]);return e};const _n=["dashed","dotted","double","solid","wavy"],On={border:function(...e){return Or(e[0])?Rr(Rr(Rr({},mr(e[0])),e[1]&&Tr(e[1])),e[2]&&Nr(e[2])):Rr(Rr(Rr({},Tr(e[0])),e[1]&&mr(e[1])),e[2]&&Nr(e[2]))},borderLeft:function(...e){return Or(e[0])?xr(xr({borderLeftStyle:e[0]},e[1]&&{borderLeftWidth:e[1]}),e[2]&&{borderLeftColor:e[2]}):xr(xr({borderLeftWidth:e[0]},e[1]&&{borderLeftStyle:e[1]}),e[2]&&{borderLeftColor:e[2]})},borderBottom:function(...e){return Or(e[0])?Br(Br({borderBottomStyle:e[0]},e[1]&&{borderBottomWidth:e[1]}),e[2]&&{borderBottomColor:e[2]}):Br(Br({borderBottomWidth:e[0]},e[1]&&{borderBottomStyle:e[1]}),e[2]&&{borderBottomColor:e[2]})},borderRight:function(...e){return Or(e[0])?zr(zr({borderRightStyle:e[0]},e[1]&&{borderRightWidth:e[1]}),e[2]&&{borderRightColor:e[2]}):zr(zr({borderRightWidth:e[0]},e[1]&&{borderRightStyle:e[1]}),e[2]&&{borderRightColor:e[2]})},borderTop:function(...e){return Or(e[0])?Xr(Xr({borderTopStyle:e[0]},e[1]&&{borderTopWidth:e[1]}),e[2]&&{borderTopColor:e[2]}):Xr(Xr({borderTopWidth:e[0]},e[1]&&{borderTopStyle:e[1]}),e[2]&&{borderTopColor:e[2]})},borderColor:Nr,borderStyle:mr,borderRadius:function(e,t=e,i=e,o=t){return{borderBottomRightRadius:i,borderBottomLeftRadius:o,borderTopRightRadius:t,borderTopLeftRadius:e}},borderWidth:Tr,flex:function(...e){const t=1===e.length,i=2===e.length,o=3===e.length;if(t){const[t]=e;if("initial"===t)return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(Jr(t))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if("none"===t)return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Qr(t))return{flexGrow:t,flexShrink:1,flexBasis:0};if(tn(t))return{flexGrow:1,flexShrink:1,flexBasis:t}}if(i){const[t,i]=e;if(Qr(i))return{flexGrow:t,flexShrink:i,flexBasis:0};if(tn(i))return{flexGrow:t,flexShrink:1,flexBasis:i}}if(o){const[t,i,o]=e;if(Qr(t)&&Qr(i)&&(Jr(o)||tn(o)))return{flexGrow:t,flexShrink:i,flexBasis:o}}return{}},gap:function(e,t=e){return{columnGap:e,rowGap:t}},gridArea:function(...e){if(e.some((e=>!function(e){return void 0===e||"number"==typeof e||"string"==typeof e&&!on.test(e)}(e))))return{};const t=void 0!==e[0]?e[0]:"auto",i=void 0!==e[1]?e[1]:an(t)?t:"auto";return{gridRowStart:t,gridColumnStart:i,gridRowEnd:void 0!==e[2]?e[2]:an(t)?t:"auto",gridColumnEnd:void 0!==e[3]?e[3]:an(i)?i:"auto"}},margin:function(...e){return Er("margin","",...e)},marginBlock:function(e,t=e){return{marginBlockStart:e,marginBlockEnd:t}},marginInline:function(e,t=e){return{marginInlineStart:e,marginInlineEnd:t}},padding:function(...e){return Er("padding","",...e)},paddingBlock:function(e,t=e){return{paddingBlockStart:e,paddingBlockEnd:t}},paddingInline:function(e,t=e){return{paddingInlineStart:e,paddingInlineEnd:t}},overflow:function(e,t=e){return{overflowX:e,overflowY:t}},inset:function(...e){const[t,i=t,o=t,r=i]=e;return{top:t,right:i,bottom:o,left:r}},outline:function(e,t,i){return pn(pn({outlineWidth:e},t&&{outlineStyle:t}),i&&{outlineColor:i})},transition:function(...e){return function(e){return 1===e.length&&hn.includes(e[0])}(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:(t=e,1===t.length&&Array.isArray(t[0])?t[0]:[t]).reduce(((e,[t,i="0s",o="0s",r="ease"],n)=>(0===n?(e.transitionProperty=t,e.transitionDuration=i,e.transitionDelay=o,e.transitionTimingFunction=r):(e.transitionProperty+=`, ${t}`,e.transitionDuration+=`, ${i}`,e.transitionDelay+=`, ${o}`,e.transitionTimingFunction+=`, ${r}`),e)),{});var t},textDecoration:function(e,...t){if(0===t.length)return function(e){return _n.includes(e)}(e)?{textDecorationStyle:e}:{textDecorationLine:e};const[i,o,r]=t;return Nn(Nn(Nn({textDecorationLine:e},i&&{textDecorationStyle:i}),o&&{textDecorationColor:o}),r&&{textDecorationThickness:r})}},bn={darkGreen2DarkBlue:"linear-gradient(113.02deg, rgba(17, 70, 47, 0.534) 0%, rgba(32, 74, 222, 0.6) 87.93%), linear-gradient(111.95deg, rgba(93, 231, 189, 0.95) -23.05%, rgba(6, 44, 120, 0.95) 118.51%)",lightGreen2LightBlue:"linear-gradient(75.54deg, #A7FBC3 9.26%, #AEE4FF 83.12%)",xLightGreeen2xLightBlue:"linear-gradient(79.5deg, rgba(235, 255, 242, 0.6) 7.26%, rgba(227, 246, 255, 0.6) 94.85%)",darkModexLightGreen2xLightBlue:"linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), linear-gradient(79.89deg, rgba(12, 243, 91, 0.1) 13.08%, rgba(26, 144, 255, 0.1) 87.46%)",green2Blue:"linear-gradient(112.65deg, #0CF35B -3.38%, #0072DC 105.35%)",orange2Yellow:"linear-gradient(236.16deg, #FE7002 6.29%, #FF6388 77.23%, #FFD98E 115.25%, #FFD98E 115.25%)",get darkRed2Yellow(){return`linear-gradient(97.07deg, rgba(114, 18, 35, 0.4) 6.18%, rgba(71, 10, 10, 0.368) 98.82%), ${this.orange2Yellow}`},blue2Green:"linear-gradient(180deg, rgba(3, 163, 214, 0.5) 0%, rgba(12, 51, 28, 0.43) 116.67%), linear-gradient(173.61deg, #0072DC 1.09%, #0CF35B 103.87%)",darkModeDarkGreen2DarkBlue:"linear-gradient(86.44deg, #00C16E 5.86%, #07C5D9 50.32%, #46A6FF 92.97%);",white2red:"linear-gradient(236.16deg, #FE7002 6.29%, #FF6388 77.23%, #FFD98E 115.25%, #FFD98E 115.25%)",lightWhite2red:"linear-gradient(236.16deg, rgba(254, 112, 2, 0.2) 6.29%, rgba(255, 99, 136, 0.2) 77.23%, rgba(255, 217, 142, 0.2) 115.25%, rgba(255, 217, 142, 0.2) 115.25%)",xLightBlue2LightBlue:"linear-gradient(106.79deg, #EFF8FF 7.25%, #E1F1FF 92.37%)",purple2green:"linear-gradient(89.79deg, #6517CB 0.19%, #3251C4 47.92%, #499FB0 99.81%)"},In="#1E4061",An=(bn.darkGreen2DarkBlue,bn.orange2Yellow,bn.darkModeDarkGreen2DarkBlue,bn.lightGreen2LightBlue,bn.green2Blue,bn.darkRed2Yellow,bn.white2red,bn.lightWhite2red,bn.green2Blue,bn.lightGreen2LightBlue,bn.blue2Green,bn.green2Blue,bn.green2Blue,bn.green2Blue,bn.green2Blue,bn.darkRed2Yellow,bn.xLightBlue2LightBlue,bn.orange2Yellow,bn.xLightGreeen2xLightBlue,bn.darkModexLightGreen2xLightBlue,bn.purple2green,{whiteBackground:"#FFFFFF",darkBackground:"#4A4A4A",darkMiniWalletBackground:"#303030",darkNotificationBackground:"#303030",blackBackground:"#000000",listItemBackground:"#F7F7F7",darkModeListItemBackground:"#575757",normalText:"#344555",darkModeNormalText:"#FFFFFF",darModeHyperText:"#D1D1D1",normalTextDarkMode:"#FFFFFF",accentTextSecondary:"#0066B4",accentTextTertiary:"#057665",textSecondary:"#44596C",textSecondaryDarkMode:"#D1D1D1",accentTextSecondaryDarkMode:"#46A6FF",accentTextTertiaryDarkMode:"#00BAAE",textDisabled:"#A19F9D",textDisabledStrokeDarkMode:"#6E6E6E",grayScale300:"#ACACAC",grayScale100:"#E1E1E1",grayScale96:"#606060",emphasizeText:In,alertCloseButtonHover:"#F2F2F2",alertCloseButtonActive:"#F7F7F7",buttonFocusBorder:"#838383",buttonText:"#0066B4",buttonTextHover:"#0060A9",buttonBackgroundHover:"#EAEAEA",darkModeButtonBackgroundHover:"#404040",buttonBackgroundDoubleHover:"#CACACA",darkButtonBackgroundDoubleHover:"#5B5B5B",darkModeButtonText:"#46A6FF",darkModeButtonTextHover:"#68AFE5",buttonTextDarkMode:"linear-gradient(86.44deg, #00C16E 5.86%, #07C5D9 50.32%, #1A90FF 92.97%)",buttonHover:In,buttonDisabledBackground:"#E5E5E5",buttonDisabledText:"#919191",errorColor:"#A3341D",errorColorDarkMode:"#D13438",toggleColor:"#20C68A",toggleUnselectIndicator:"#44596C",toggleUnselectedBorder:"#5D6873",formFieldBackground:"rgba(255, 255, 255, 0.7)",darkModeformFieldBackground:"rgba(255, 255, 255, 0.02)",formFieldHoverBackground:"rgb(247, 247, 247)",formFieldBorder:"rgba(12, 127, 192, 0.3)",formFieldHoverBorder:"rgb(144, 144, 144)",selectOption:"#262626",darkModeSelectOption:"rgba(255, 255, 255, 0.02)",selectToggleGlyph:"#262626",selectOptionSelected:"rgba(174, 212, 232, 0.3)",darkModeSelectOptionSelected:"#244666",darkModeSelectOptionDropdownBackground:"#151D24",sectionBackground:"rgba(255, 255, 255, 0.7)",darkModeSectionBackground:"rgba(21, 29, 36, 0.8)",sectionBorder:"rgba(12, 127, 192, 0.1)",toggleUnselectedBackground:"#EFEFEF",accentText:"#0A7D80",accentTextDark:"#00BAAE",hotAccentText:"#C14821",hotAccentTextDark:"#FF9D7C",lightModeTextDisabled:"#A19F9D",normalControl:"#0078D4",normalControlHover:"#006CBE",darkModeNormalControl:"#63ADE5",iconFillColorLight:"#212121",darkModeNormalBackground:"#151d24",bottomBorderGray:"#D3D3D3",highContrastDarkMode:"#1AEBFF",highContrastLightMode:"#37006E",textDescriptionHighContrastLightModeColor:"#000000",textDescriptionHighContrastDarkModeColor:"#FFFFFF",separator:"#EFEFEF",separatorDark:"#FFFFFF",dialogText:"#262626",modalBackgroundDark:"#3B3B3B",typePrimary:"#323130",typeSecondary:"#605E5C",typeDisabled:"#A19F9D",typePrimaryDarkMode:"#FFFFFF",isReskinMVPNormalText:"#1A1A1A",criticalPrimary:"#C42B1C",criticalDarkMode:"#BC2F2F",YellowAlertPrimary:"#817400",YellowAlertIconDarkMode:"#feee66",RedAlertIconDarkMode:"#D73333",redForeground:"#BC2F32",iconBackplateBackgroud:"rgba(4, 115, 206, 0.08)",iconBackplate:"rgba(3, 106, 196, 1)",iconBackplateBackgroundDarkMode:"#4C5963",iconBackplateDarkMode:"#FFFFFF",miniWalletDividerLight:"#EFEFEF",miniWalletDividerDarkMode:"#525252",packageTrackingIconLight:"#004377",packageTrackingIconDark:"#a9d3f2",compoundBrandForegroundDark:"#479ef5",compoundBrandForegroundLight:"#0f6cbd",donationIconBackgroundDark:"#3f1011",donationIconBackgroundLight:"#fdf6f6",personalizedOfferTextColorDark:"#e37d80"}),Cn="@media (prefers-color-scheme: dark)",vn=e=>`@media only screen and (min-width: ${e}px)`,Rn=(vn(1),vn(375),vn(480),vn(640),vn(1036),vn(1367),vn(1920),{paddingInlineStart:"16px",paddingInlineEnd:"16px",fontSize:"12px",lineHeight:"16px",userSelect:"none"}),yn=On.borderColor(An.errorColor),Sn={...yn,"&:hover:enabled":{...yn},"&:active:enabled":{...yn},"&:focus:enabled":{...yn}},wn=Le()?{[Cn]:{backgroundColor:An.darkNotificationBackground,":hover,:focus":{backgroundColor:An.darkModeButtonBackgroundHover}},"@media screen and (-ms-high-contrast: active)":{":hover,:focus":{"forced-color-adjust":"none",backgroundColor:"Highlight"}},":hover,:focus":{backgroundColor:An.buttonBackgroundHover},":hover .CTA":{"text-decoration":"underline"},":focus .CTA":{"text-decoration":"underline"},":focus-visible":{outlineWidth:"0px"},marginBlockEnd:"1px"}:{},kn={container:{width:"100%",backgroundColor:An.whiteBackground,[Cn]:{backgroundColor:An.darkNotificationBackground},userSelect:"none",textAlign:"start",...wn},header:{paddingBlockStart:"16px",paddingBlockEnd:"16px",paddingInlineStart:"18px",width:"252px",fontWeight:"600",wordBreak:"break-word"},image:{width:"100%"},text:{...Rn,paddingBlockStart:"12px",paddingBlockEnd:"12px"},textCompact:{...Rn},action:{paddingInlineStart:"16px",paddingBlockEnd:"16px",width:"fit-content"},actionButton:{fontWeight:"400"},agreement:{paddingInlineStart:"16px",paddingInlineEnd:"16px",fontSize:"10px",lineHeight:"13px",paddingBlockEnd:"16px"},agreementLarge:{...Rn,paddingBlockEnd:"16px"},agreementSmall:{...Rn,paddingBlockEnd:"12px"},link:{},linkLarge:{},inlineError:{color:An.errorColor,fontSize:"12px",lineHeight:"16px",fontWeight:"600"}},Mn={width:"126px",textAlign:"start",display:"grid",gridTemplateColumns:"88px 12px"};var xn,Pn,Dn,Ln,Fn,Wn,Bn,Gn,Vn,Un,$n;pr({...kn,icon:{display:"inline-block",paddingInlineStart:"18px",paddingBlockStart:"14px",color:An.normalControl},header:{...kn.header,paddingBlockStart:"12px",paddingBlockEnd:"0px",width:"220px"},title:{fontWeight:"600",lineHeight:"20px",fontSize:"14px"},text:{...kn.text,fontSize:"12px",paddingInlineStart:"18px",paddingBlockStart:"8px",paddingBlockEnd:"0px",lineHeight:"16px",width:"220px"},expDate:{paddingBlockEnd:"12px",paddingInlineStart:"16px",width:"fit-content"},expDateSelector:{width:"126px",paddingInlineEnd:"12px",display:"inline-block"},label:{paddingBlockEnd:"4px",display:"inline-block"},menuButton:Mn,menuPopover:{minWidth:"116px",height:"64px",overflowY:"scroll"},errorMenuButton:{...Sn,...Mn},iconContainer:{display:"inline-block",verticalAlign:"top"},contentContainer:{display:"inline-block"},action:{...kn.action,width:"fit-content",height:"20px",paddingInlineStart:"18px",paddingBlockStart:"8px",paddingBlockEnd:"8px"},actionButton:{display:"inline-block",...kn.actionButton,fontSize:"12px"}}),function(e){e.ClientErrors="Microsoft.Wallet.ClientError",e.TokenizationEnrollActions="Microsoft.Wallet.Tokenization.MainFunnel"}(xn||(xn={})),function(e){e[e.ExpressCheckout=0]="ExpressCheckout",e[e.WalletHub=1]="WalletHub",e[e.BNPL=2]="BNPL",e[e.MAX=3]="MAX"}(Pn||(Pn={})),($n=Dn||(Dn={})).Enroll="Enroll",$n.Autofill="Autofill",$n.EnrollInline="EnrollInline",$n.AutofillInline="AutofillInline",(Un=Ln||(Ln={})).DropdownList="DropdownList",Un.Settings="Settings",Un.EditCard="EditCard",Un.WalletCheckout="WalletCheckout",Un.PaymentList="PaymentList",Un.ProfileNotification="ProfileNotification",function(e){e.Local="Local",e.Server="Server",e.Partial="Partial",e.Unknown="Unknown"}(Fn||(Fn={})),function(e){e.VISA="Visa",e.MASTERCARD="MasterCard",e.UNKNOWN="Unknown"}(Wn||(Wn={})),(Vn=Bn||(Bn={}))[Vn.CARD_ELIGIBLE=0]="CARD_ELIGIBLE",Vn[Vn.CARD_TOKENIZED=1]="CARD_TOKENIZED",Vn[Vn.USE_TOKENIZED_CARD_TOGGLE_ON=2]="USE_TOKENIZED_CARD_TOGGLE_ON",Vn[Vn.USE_TOKENIZED_CARD_TOGGLE_OFF=3]="USE_TOKENIZED_CARD_TOGGLE_OFF",Vn[Vn.SELECT_TOKENIZED_CARD_AUTOFILL=4]="SELECT_TOKENIZED_CARD_AUTOFILL",Vn[Vn.SELECT_ORIGINAL_CARD_AUTOFILL=5]="SELECT_ORIGINAL_CARD_AUTOFILL",Vn[Vn.CLICK_ENROLL_TOGGLE=6]="CLICK_ENROLL_TOGGLE",Vn[Vn.OPEN_ENROLL_DIALOG=7]="OPEN_ENROLL_DIALOG",Vn[Vn.CLCIK_ENROALL_DIALOG_LEARN_MORE_LINK=8]="CLCIK_ENROALL_DIALOG_LEARN_MORE_LINK",Vn[Vn.CLICK_ENROLL_NOW=9]="CLICK_ENROLL_NOW",Vn[Vn.CLOSE_ENROLL_DIALOG=10]="CLOSE_ENROLL_DIALOG",Vn[Vn.OPEN_CONTACTING_BANK_DIALOG=11]="OPEN_CONTACTING_BANK_DIALOG",Vn[Vn.CLOSE_CONTACTING_BANK_DIALOG=12]="CLOSE_CONTACTING_BANK_DIALOG",Vn[Vn.REQUEST_TOKEN_STARTED=13]="REQUEST_TOKEN_STARTED",Vn[Vn.REQUEST_TOKEN_GET_HBI_FAILED=14]="REQUEST_TOKEN_GET_HBI_FAILED",Vn[Vn.REQUEST_TOKEN_SUCCESS=15]="REQUEST_TOKEN_SUCCESS",Vn[Vn.DEVICE_BINDING_REQUIRED=16]="DEVICE_BINDING_REQUIRED",Vn[Vn.DEVICE_BINDING_NOT_REQUIRED=17]="DEVICE_BINDING_NOT_REQUIRED",Vn[Vn.VERIFICATION_SUCCESS=18]="VERIFICATION_SUCCESS",Vn[Vn.DEVICE_ENROLL_REQUIRED=19]="DEVICE_ENROLL_REQUIRED",Vn[Vn.DEVICE_ENROLL_NOT_REQUIRED=20]="DEVICE_ENROLL_NOT_REQUIRED",Vn[Vn.DEVICE_ENROLL_STARTED=21]="DEVICE_ENROLL_STARTED",Vn[Vn.DEVICE_ENROLL_SUCCESS=22]="DEVICE_ENROLL_SUCCESS",Vn[Vn.REQUEST_DEVICE_BINGDING_STARTED=23]="REQUEST_DEVICE_BINGDING_STARTED",Vn[Vn.REQUEST_DEVICE_BINGDING_GET_HBI_FAILED=24]="REQUEST_DEVICE_BINGDING_GET_HBI_FAILED",Vn[Vn.REQUEST_DEVICE_BINGDING_SUCCESS=25]="REQUEST_DEVICE_BINGDING_SUCCESS",Vn[Vn.CHALLENGE_APPROVED=26]="CHALLENGE_APPROVED",Vn[Vn.CHALLENGE_REQUIRED=27]="CHALLENGE_REQUIRED",Vn[Vn.GET_CRENDETAILS_STARTED=28]="GET_CRENDETAILS_STARTED",Vn[Vn.GET_CRENDETAILS_GET_HBI_FAILED=29]="GET_CRENDETAILS_GET_HBI_FAILED",Vn[Vn.GET_CRENDETAILS_SUCCESS=30]="GET_CRENDETAILS_SUCCESS",Vn[Vn.DECRYPT_TOKEN_SUCCESS=31]="DECRYPT_TOKEN_SUCCESS",Vn[Vn.GET_TOKEN_METADATA_SUCCESS=32]="GET_TOKEN_METADATA_SUCCESS",Vn[Vn.FETCH_AUTOFILL_DATA_SUCCESS=33]="FETCH_AUTOFILL_DATA_SUCCESS",Vn[Vn.OPEN_OTP_DIALOG=34]="OPEN_OTP_DIALOG",Vn[Vn.CLOSE_OTP_DIALOG=35]="CLOSE_OTP_DIALOG",Vn[Vn.CHANGE_OTP_METHOD=36]="CHANGE_OTP_METHOD",Vn[Vn.GET_OTP_SUCCESS=37]="GET_OTP_SUCCESS",Vn[Vn.CLICK_VERIFY_OTP_BUTTON=38]="CLICK_VERIFY_OTP_BUTTON",Vn[Vn.OPEN_VERIFIED_SUCCESS_DIALOG=39]="OPEN_VERIFIED_SUCCESS_DIALOG",Vn[Vn.CLOSE_VERIFIED_SUCCESS_DIALOG=40]="CLOSE_VERIFIED_SUCCESS_DIALOG",Vn[Vn.OPEN_GENERATING_CARD_DETAILS_DIALOG=41]="OPEN_GENERATING_CARD_DETAILS_DIALOG",Vn[Vn.CLOSE_GENERATING_CARD_DETAILS_DIALOG_FROM_UI=42]="CLOSE_GENERATING_CARD_DETAILS_DIALOG_FROM_UI",Vn[Vn.CLOSE_GENERATING_CARD_DETAILS_DIALOG_FROM_NATIVE=43]="CLOSE_GENERATING_CARD_DETAILS_DIALOG_FROM_NATIVE",Vn[Vn.AUTOFILL_SUCCESS=44]="AUTOFILL_SUCCESS",Vn[Vn.SHOW_VIRTUAL_CARD_READY_FLYOUT=45]="SHOW_VIRTUAL_CARD_READY_FLYOUT",Vn[Vn.OPEN_ERROR_DIALOG=46]="OPEN_ERROR_DIALOG",Vn[Vn.GET_LOCAL_META_DATA_SUCCESS=47]="GET_LOCAL_META_DATA_SUCCESS",Vn[Vn.CLICK_ELIGIBLE_CARD=48]="CLICK_ELIGIBLE_CARD",Vn[Vn.CLICK_ELIGIBLE_CARD_TAG=49]="CLICK_ELIGIBLE_CARD_TAG",Vn[Vn.SAVE_ELIGIBLE_CARD_WITH_TOKENIZATION_CONSENT=50]="SAVE_ELIGIBLE_CARD_WITH_TOKENIZATION_CONSENT",Vn[Vn.TOKEN_WILL_BE_SUBMITTED=51]="TOKEN_WILL_BE_SUBMITTED",Vn[Vn.TOKEN_SUBMITTED_FOR_TRANSACTION=52]="TOKEN_SUBMITTED_FOR_TRANSACTION",Vn[Vn.CARD_ELIGIBLE_SHOWN_ONCE=53]="CARD_ELIGIBLE_SHOWN_ONCE",Vn[Vn.CARD_TOKENIZED_SHOWN_ONCE=54]="CARD_TOKENIZED_SHOWN_ONCE",Vn[Vn.OPEN_VERIFY_CVV_DIALOG=55]="OPEN_VERIFY_CVV_DIALOG",Vn[Vn.CLICK_VERIFY_CVV_BUTTON=56]="CLICK_VERIFY_CVV_BUTTON",Vn[Vn.CLOSE_VERIFY_CVV_DIALOG=57]="CLOSE_VERIFY_CVV_DIALOG",Vn[Vn.CLICK_ERROR_DIALOG_TRY_AGAIN_BUTTON=58]="CLICK_ERROR_DIALOG_TRY_AGAIN_BUTTON",Vn[Vn.OPEN_EDIT_CARD_PAGE=59]="OPEN_EDIT_CARD_PAGE",Vn[Vn.MAX=59]="MAX",function(e){e.impression="impression",e.engagement="engagement",e.snooze="snooze",e.dismiss="dismiss"}(Gn||(Gn={}));const Hn={[st.CardExpiring]:{[Gn.impression]:nt.CARD_EXPIRING_SOON_IMPRESSION,[Gn.engagement]:nt.CARD_EXPIRING_SOON_ENGAGEMENT,[Gn.snooze]:nt.CARD_EXPIRING_SOON_SNOOZE,[Gn.dismiss]:nt.CARD_EXPIRING_SOON_DISMISS_PERMANENTLY},[st.CardExpired]:{[Gn.impression]:nt.CARD_EXPIRED_IMPRESSION,[Gn.engagement]:nt.CARD_EXPIRED_ENGAGEMENT,[Gn.snooze]:nt.CARD_EXPIRED_SNOOZE,[Gn.dismiss]:nt.CARD_EXPIRED_DISMISS_PERMANENTLY},[st.CardTokenizationEligible]:{[Gn.impression]:nt.CARD_TOKENIZATION_ELIGIBLE_IMPRESSION,[Gn.engagement]:nt.CARD_TOKENIZATION_ELIGIBLE_ENGAGEMENT,[Gn.snooze]:nt.CARD_TOKENIZATION_ELIGIBLE_SNOOZE,[Gn.dismiss]:nt.CARD_TOKENIZATION_ELIGIBLE_DISMISS_PERMANENTLY},[st.SignupCryptoWallet]:{[Gn.impression]:nt.SIGN_UP_CRYPTOWALLET_IMPRESSION,[Gn.engagement]:nt.SIGN_UP_CRYPTOWALLET_ENGAGEMENT,[Gn.snooze]:nt.SIGN_UP_CRYPTOWALLET_SNOOZE,[Gn.dismiss]:nt.SIGN_UP_CRYPTOWALLET_DISMISS_PERMANENTLY},[st.PasswordLeakage]:{[Gn.impression]:nt.PASSWORD_LEAKAGE_IMPRESSION,[Gn.engagement]:nt.PASSWORD_LEAKAGE_ENGAGEMENT,[Gn.snooze]:nt.PASSWORD_LEAKAGE_SNOOZE,[Gn.dismiss]:nt.PASSWORD_LEAKAGE_DISMISS_PERMANENTLY},[st.UpcomingHotelReservations]:{[Gn.impression]:nt.UPCOMING_HOTEL_RESERVATION_IMPRESSION,[Gn.engagement]:nt.UPCOMING_HOTEL_RESERVATION_ENGAGEMENT,[Gn.snooze]:nt.UPCOMING_HOTEL_RESERVATION_SNOOZE,[Gn.dismiss]:nt.UPCOMING_HOTEL_RESERVATION_DISMISS_PERMANENTLY},[st.PersonalizedOffersAvailable]:{[Gn.impression]:nt.PERSONALIZED_OFFERS_AVAILABLE_IMPRESSION,[Gn.engagement]:nt.PERSONALIZED_OFFERS_AVAILABLE_ENGAGEMENT,[Gn.snooze]:nt.PERSONALIZED_OFFERS_AVAILABLE_SNOOZE,[Gn.dismiss]:nt.PERSONALIZED_OFFERS_AVAILABLE_DISMISS_PERMANENTLY},[st.RoamCard]:{[Gn.impression]:nt.ROAM_CARD_IMPRESSION,[Gn.engagement]:nt.ROAM_CARD_ENGAGEMENT,[Gn.snooze]:nt.ROAM_CARD_SNOOZE,[Gn.dismiss]:nt.ROAM_CARD_DISMISS_PERMANENTLY},[st.DonationSummary]:{[Gn.impression]:nt.DONATION_SUMMARY_IMPRESSION,[Gn.engagement]:nt.DONATION_SUMMARY_ENGAGEMENT,[Gn.snooze]:nt.DONATION_SUMMARY_SNOOZE,[Gn.dismiss]:nt.DONATION_SUMMARY_DISMISS_PERMANENTLY},[st.PackageTracking]:{[Gn.impression]:nt.PACKAGE_TRACKING_IMPRESSION,[Gn.engagement]:nt.MAX,[Gn.snooze]:nt.PACKAGE_TRACKING_SNOOZE,[Gn.dismiss]:nt.PACKAGE_TRACKING_DISMISS_PERMANENTLY},[st.Rebates]:{[Gn.impression]:nt.REBATES_IMPRESSION,[Gn.engagement]:nt.REBATES_ENGAGEMENT,[Gn.snooze]:nt.REBATES_SNOOZE,[Gn.dismiss]:nt.REBATES_DISMISS_PERMANENTLY},[st.PWAPromotion]:{[Gn.impression]:nt.PWA_PROMOTION_IMPRESSION,[Gn.engagement]:nt.PWA_PROMOTION_ENGAGEMENT,[Gn.snooze]:nt.PWA_PROMOTION_SNOOZE,[Gn.dismiss]:nt.PWA_PROMOTION_DISMISS_PERMANENTLY},[st.DonationTrendNpo]:{[Gn.impression]:nt.DONATION_TREND_NPO_IMPRESSION,[Gn.engagement]:nt.DONATION_TREND_NPO_ENGAGEMENT,[Gn.snooze]:nt.DONATION_TREND_NPO_SNOOZE,[Gn.dismiss]:nt.DONATION_TREND_NPO_DISMISS_PERMANENTLY}};pr({...kn,header:{...kn.header,display:"inline-block",paddingInlineStart:"16px",paddingBlockStart:"12px",paddingBlockEnd:"0px",width:"195px",fontWeight:"600",lineHeight:"20px",fontSize:"14px"},text:{...kn.text,paddingInlineStart:"16px",paddingBlockStart:"8px",paddingBlockEnd:"0px",lineHeight:"16px",width:"206px",fontSize:"12px"},action:{...kn.action,fontSize:"12px",width:"fit-content",paddingInlineStart:"16px",paddingBlockStart:"8px",paddingBlockEnd:"8px"},actionButton:{display:"inline-block",...kn.actionButton,fontSize:"12px"},iconContainer:{display:"inline-block",verticalAlign:"top"},icon:{paddingInlineStart:"20px",paddingBlockStart:"12px"},contentContainer:{display:"inline-block"}}),Ln.ProfileNotification;const zn=(pr({container:{...kn.container,paddingBlockEnd:"10px"},header:{paddingBlockStart:"10px",paddingBlockEnd:"8px",width:"252px",fontWeight:"600",wordBreak:"break-word",display:"flex",paddingInlineStart:"0px"},text:{...kn.text,paddingInlineStart:"62px",paddingInlineEnd:"36px",paddingBlockStart:"0px",paddingBlockEnd:"8px"},linkLarge:{...kn.linkLarge,fontSize:"12px",paddingInlineStart:"62px !important"},icon:{color:"var(--colorPaletteDarkOrangeForeground1)",[Cn]:{color:An.RedAlertIconDarkMode},paddingInlineStart:"24px"}}),pr({...kn,container__header_container:{display:"flex",paddingBlockStart:"12px",paddingInlineStart:"16px",paddingInlineEnd:"12px"},imageContainer:{width:"36px"},image:{paddingBlockStart:"5px",display:"block",maxWidth:"36px",maxHeight:"36px",width:"auto",height:"auto",objectFit:"contain"},container__header_text:{maxWidth:"198px",paddingInlineStart:"12px"},expirationTitle:{...kn.header,maxWidth:"182px",maxHeight:"50px",paddingInlineStart:"0px",paddingBlockStart:"0px",paddingBlockEnd:"0px",fontSize:"16px",lineHeight:"22px",overflowY:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical"},expirationContainer:{display:"flex",flexDirection:"row",fontSize:"12px",fontWeight:"400",lineHeight:"16px"},expiresInText:{overflowY:"hidden",textOverflow:"ellipsis",maxWidth:"198px",paddingInlineEnd:"6px"},countDownTimerText:{display:"inline-block",color:"var(--colorPaletteRedForeground1)"},action:{...kn.link,display:"flex",flexDirection:"row",justifyContent:"space-between",paddingBlockStart:"8px",width:"unset",paddingBlockEnd:"8px"},actionButton:{display:"inline-block",...kn.actionButton,fontSize:"12px",overflowY:"hidden",textOverflow:"ellipsis",maxWidth:"198px",minWidth:"132px",lineHeight:"16px",color:"#036AC4"},header:{...kn.header,paddingBlockStart:"0px",paddingInlineStart:"0px",paddingBlockEnd:"0px",width:"200px"},title:{fontWeight:"600",lineHeight:"20px",fontSize:"14px"}}),pr({...kn,header:{...kn.header,paddingInlineStart:"0px",display:"inline-block",paddingBlockStart:"12px",paddingBlockEnd:"0px",width:"195px",fontWeight:"600",lineHeight:"20px",fontSize:"14px"},textContainer:{...kn.text,paddingInlineStart:"0px",paddingBlockStart:"8px",paddingBlockEnd:"0px",display:"flex",columnGap:"8px",alignItems:"center",width:"206px"},text:{lineHeight:"18px",fontSize:"14px"},action:{...kn.action,paddingInlineStart:"0px",fontSize:"12px",width:"fit-content",paddingBlockStart:"8px",paddingBlockEnd:"8px"},actionButton:{display:"inline-block",...kn.actionButton,fontSize:"12px"},iconContainer:{display:"inline-block",verticalAlign:"top"},icon:{paddingInlineStart:"24px",paddingBlockStart:"14px",[Cn]:{fill:"white","& path":{fill:"white"}}},contentContainer:{paddingInlineStart:"18px",display:"inline-block",boxSizing:"border-box"},cardLogo:{display:"block",width:"32px",height:"auto"}}),pr({container:{...kn.container,paddingBlockEnd:"8px"},header:{display:"flex",marginInlineStart:"24px",paddingBlockStart:"12px",paddingBlockEnd:"0px",width:"240px"},icon:{color:"var(--colorCompoundBrandForeground1)",lineHeight:"20px"},headerText:{width:"220px",fontWeight:"600",wordBreak:"break-word",paddingInlineStart:"18px",lineHeight:"20px"},text:{fontSize:"12px",lineHeight:"16px",marginInlineStart:"62px",marginInlineEnd:"16px",paddingBlockStart:"8px",paddingBlockEnd:"0px",width:"200px"},action:{paddingBlockStart:"8px",marginInlineStart:"62px",width:"fit-content"},actionLink:{fontSize:"12px",lineHeight:"16px"}}),pr({container:{...kn.container,paddingBlockEnd:"8px"},header:{display:"flex",marginInlineStart:"16px",marginInlineEnd:"40px",paddingBlockStart:"12px"},icon:{width:"20px",height:"20px",...On.paddingBlock("8px"),...On.paddingInline("8px"),backgroundColor:"var(--colorPaletteRedBackground1)",color:"var(--colorPaletteRedBackground3)",...On.borderRadius("50%")},text:{fontWeight:"600",wordBreak:"break-word",marginInlineStart:"12px",lineHeight:"20px"},action:{height:"20px",marginBlockStart:"16px",paddingBlockStart:"8px",paddingBlockEnd:"4px",marginInlineStart:"64px",width:"fit-content"},actionButton:{...kn.actionButton,fontSize:"12px",lineHeight:"20px"}}),pr({container:{...kn.container,display:"flex"},iconContainer:{paddingBlockStart:"8px",paddingInlineStart:"16px",paddingInlineEnd:"12px",flexShrink:0,flexGrow:0},icon:{lineHeight:"36px",width:"36px",height:"36px"},contentContainer:{display:"flex",flexDirection:"column",marginInlineEnd:"44px"},header:{fontWeight:"600",wordBreak:"break-word",lineHeight:"20px",paddingBlockStart:"8px",paddingBlockEnd:"8px"},description:{fontSize:"12px",lineHeight:"16px"},action:{height:"20px",paddingBlockStart:"8px",paddingBlockEnd:"12px"},actionButton:{...kn.actionButton,fontSize:"12px",lineHeight:"20px"}}),Symbol("fui.slotRenderFunction")),jn=Symbol("fui.slotElementType");var Zn=Object.defineProperty,Yn=Object.defineProperties,Kn=Object.getOwnPropertyDescriptors,qn=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,Jn=(e,t,i)=>t in e?Zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ea=(e,t)=>{for(var i in t||(t={}))Xn.call(t,i)&&Jn(e,i,t[i]);if(qn)for(var i of qn(t))Qn.call(t,i)&&Jn(e,i,t[i]);return e};function ta(e,t){const{defaultProps:i,elementType:o}=t,r=function(e){return"string"==typeof e||"number"==typeof e||Array.isArray(e)||vt.isValidElement(e)?{children:e}:e}(e),n=(a=ea(ea({},i),r),Yn(a,Kn({[jn]:o})));var a;return r&&"function"==typeof r.children&&(n[zn]=r.children,n.children=null==i?void 0:i.children),n}const ia=(...e)=>{const t={};for(const i of e){const e=Array.isArray(i)?i:Object.keys(i);for(const i of e)t[i]=1}return t},oa=ia(["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"]),ra=ia(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),na=ia(["itemID","itemProp","itemRef","itemScope","itemType"]),aa=ia(ra,oa,na),sa=ia(aa,["form"]),la=ia(aa,["height","loop","muted","preload","src","width"]),ca=ia(la,["poster"]),da=ia(aa,["start"]),ua=ia(aa,["value"]),pa=ia(aa,["download","href","hrefLang","media","rel","target","type"]),ha=ia(aa,["dateTime"]),fa=ia(aa,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),ga={label:sa,audio:la,video:ca,ol:da,li:ua,a:pa,button:fa,input:ia(fa,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textarea:ia(fa,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),select:ia(fa,["form","multiple","required"]),option:ia(aa,["selected","value"]),table:ia(aa,["cellPadding","cellSpacing"]),tr:aa,th:ia(aa,["colSpan","rowSpan","scope"]),td:ia(aa,["colSpan","headers","rowSpan","scope"]),colGroup:ia(aa,["span"]),col:ia(aa,["span"]),fieldset:ia(aa,["disabled","form"]),form:ia(aa,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframe:ia(aa,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),img:ia(aa,["alt","crossOrigin","height","src","srcSet","useMap","width"]),time:ha,dialog:ia(aa,["open","onCancel","onClose"])};const Ea=(e,t,i)=>{var o;return function(e,t,i){const o=e&&ga[e]||aa;return o.as=1,function(e,t,i){const o=Array.isArray(t),r={},n=Object.keys(e);for(const a of n)!(!o&&t[a]||o&&t.indexOf(a)>=0||0===a.indexOf("data-")||0===a.indexOf("aria-"))||i&&-1!==(null==i?void 0:i.indexOf(a))||(r[a]=e[a]);return r}(t,o,i)}(null!==(o=t.as)&&void 0!==o?o:e,t,i)};var Ta=Object.defineProperty,ma=Object.getOwnPropertySymbols,Na=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,Oa=(e,t,i)=>t in e?Ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ba=(e,t)=>{for(var i in t||(t={}))Na.call(t,i)&&Oa(e,i,t[i]);if(ma)for(var i of ma(t))_a.call(t,i)&&Oa(e,i,t[i]);return e};function Ia(e){return Boolean(null==e?void 0:e.hasOwnProperty(jn))}var Aa=Object.defineProperty,Ca=Object.defineProperties,va=Object.getOwnPropertyDescriptors,Ra=Object.getOwnPropertySymbols,ya=Object.prototype.hasOwnProperty,Sa=Object.prototype.propertyIsEnumerable,wa=(e,t,i)=>t in e?Aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;function ka(e,t){return function(i,o,r,n,a){return Ia(o)?t(function(e,t){return i=((e,t)=>{for(var i in t||(t={}))ya.call(t,i)&&wa(e,i,t[i]);if(Ra)for(var i of Ra(t))Sa.call(t,i)&&wa(e,i,t[i]);return e})({},t),Ca(i,va({[jn]:e}));var i}(i,o),null,r,n,a):Ia(i)?t(i,o,r,n,a):e(i,o,r,n,a)}}r(732);var Ma=Object.getOwnPropertySymbols,xa=Object.prototype.hasOwnProperty,Pa=Object.prototype.propertyIsEnumerable,Da=e=>"symbol"==typeof e?e:e+"";function La(e){var t,i;const o=e,{as:r,[t=jn]:n,[i=zn]:a}=o,s=((e,t)=>{var i={};for(var o in e)xa.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&Ma)for(var o of Ma(e))t.indexOf(o)<0&&Pa.call(e,o)&&(i[o]=e[o]);return i})(o,["as",Da(t),Da(i)]),l=s,c="string"==typeof n&&null!=r?r:n;return"string"!=typeof c&&r&&(l.as=r),{elementType:c,props:l,renderFunction:a}}var Fa=r(668);const Wa=r.t(Fa,2);var Ba=Object.defineProperty,Ga=Object.getOwnPropertySymbols,Va=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable,$a=(e,t,i)=>t in e?Ba(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Ha=(e,t)=>{for(var i in t||(t={}))Va.call(t,i)&&$a(e,i,t[i]);if(Ga)for(var i of Ga(t))Ua.call(t,i)&&$a(e,i,t[i]);return e},za=Object.defineProperty,ja=Object.defineProperties,Za=Object.getOwnPropertyDescriptors,Ya=Object.getOwnPropertySymbols,Ka=Object.prototype.hasOwnProperty,qa=Object.prototype.propertyIsEnumerable,Xa=(e,t,i)=>t in e?za(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Qa=(e,t)=>{for(var i in t||(t={}))Ka.call(t,i)&&Xa(e,i,t[i]);if(Ya)for(var i of Ya(t))qa.call(t,i)&&Xa(e,i,t[i]);return e};const Ja=ka(Wa.jsx,((e,t,i)=>{const{elementType:o,renderFunction:r,props:n}=La(e),a=Ha(Ha({},n),t);return r?Wa.jsx(vt.Fragment,{children:r(o,a)},i):Wa.jsx(o,a,i)}));function es(e,t){const i=function(e,t,i=Gt){const o=i();let r=null,n=null;return function(i){const{dir:a,renderer:s}=i,l="ltr"===a;return l?null===r&&(r=Zo(e,a)):null===n&&(n=Zo(e,a)),o(s,t),l?r:n}}(e,t,Ko);return function(){const e=ur(),t=cr();return i({dir:e,renderer:t})}}ka(Wa.jsxs,((e,t,i)=>{const{elementType:o,renderFunction:r,props:n}=La(e),a=Qa(Qa({},n),t);return r?Wa.jsx(vt.Fragment,{children:r(o,(s=Qa({},a),l={children:Wa.jsxs(vt.Fragment,{children:a.children},void 0)},ja(s,Za(l))))},i):Wa.jsxs(o,a,i);var s,l}));const ts={};function is(){let e=null,t="",i="";const o=new Array(arguments.length);for(let e=0;e0&&(t+=r.slice(0,n)),i+=a,o[e]=a}}}if(""===i)return t.slice(0,-1);const r=ts[i];if(void 0!==r)return t+r;const n=[];for(let t=0;t{},as=(rs.Provider,vt.forwardRef(((e,t)=>{const i=((e,t)=>{const{wrap:i,truncate:o,block:r,italic:n,underline:a,strikethrough:s,size:l,font:c,weight:d,align:u}=e;return{align:null!=u?u:"start",block:null!=r&&r,font:null!=c?c:"base",italic:null!=n&&n,size:null!=l?l:300,strikethrough:null!=s&&s,truncate:null!=o&&o,underline:null!=a&&a,weight:null!=d?d:"regular",wrap:null==i||i,components:{root:"span"},root:ta(Ea("span",ba({ref:t},e)),{elementType:"span"})}})(e,t);var o,r;return(e=>{const t=os();e.root.className=is("fui-Text",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)})(i),("useTextStyles_unstable",null!==(r=null===(o=vt.useContext(rs))||void 0===o?void 0:o.useTextStyles_unstable)&&void 0!==r?r:ns)(i),(e=>Ja(e.root,{}))(i)})));as.displayName="Text";const ss=vt.createContext(void 0);ss.Provider;var ls=Object.defineProperty,cs=Object.defineProperties,ds=Object.getOwnPropertyDescriptors,us=Object.getOwnPropertySymbols,ps=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,fs=(e,t,i)=>t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,gs=(e,t)=>{for(var i in t||(t={}))ps.call(t,i)&&fs(e,i,t[i]);if(us)for(var i of us(t))hs.call(t,i)&&fs(e,i,t[i]);return e};const Es=es({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",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",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);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".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;-ms-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);}"]}),Ts=vt.forwardRef(((e,t)=>{const i=((e,t)=>{const i=vt.useContext(ss),{appearance:o="default",disabled:r=!1,disabledFocusable:n=!1,inline:a=!1}=e,s=e.as||(e.href?"a":"button"),l=(c=gs({role:"span"===s?"button":void 0,type:"button"===s?"button":void 0},e),cs(c,ds({as:s})));var c;const d={appearance:o,disabled:r,disabledFocusable:n,inline:a,components:{root:s},root:ta(Ea(s,gs({ref:t},l)),{elementType:s}),backgroundAppearance:i};return(e=>{const{disabled:t,disabledFocusable:i}=e,{onClick:o,onKeyDown:r,role:n,tabIndex:a}=e.root;"a"===e.root.as&&(e.root.href=t?void 0:e.root.href,(t||i)&&(e.root.role=n||"link")),"a"!==e.root.as&&"span"!==e.root.as||(e.root.tabIndex=null!=a?a:t&&!i?void 0:0),e.root.onClick=e=>{t||i?e.preventDefault():null==o||o(e)},e.root.onKeyDown=e=>{!t&&!i||e.key!==Ce&&e.key!==ve?null==r||r(e):(e.preventDefault(),e.stopPropagation())},e.disabled=t||i,e.root["aria-disabled"]=t||i||void 0,"button"===e.root.as&&(e.root.disabled=t&&!i)})(d),d})(e,t);return(e=>{const t=Es(),{appearance:i,disabled:o,inline:r,root:n,backgroundAppearance:a}=e;e.root.className=is("fui-Link",t.root,t.focusIndicator,"a"===n.as&&n.href&&t.href,"button"===n.as&&t.button,"subtle"===i&&t.subtle,"inverted"===a&&t.inverted,r&&t.inline,o&&t.disabled,e.root.className)})(i),(e=>Ja(e.root,{}))(i)}));Ts.displayName="Link";pr({container:{...kn.container},header:{display:"flex",marginInlineStart:"22px",paddingBlockStart:"12px",paddingBlockEnd:"0px",width:"240px"},headerText:{width:"220px",fontWeight:"600",wordBreak:"break-word",marginInlineStart:"22px",lineHeight:"20px"},action:{...On.paddingBlock("8px"),marginInlineStart:"62px",width:"fit-content"},actionLink:{fontSize:"12px",lineHeight:"16px"}}),Array.isArray;var ms=Ve?Ve.prototype:void 0;ms&&ms.toString;pr({icon:{lineHeight:"20px",width:"20px",height:"19px",paddingBlockStart:"4px"}});(e=>{if(at.MAX/8<1)throw new Error("Invalid index 1, index should not be larger than "+at.MAX/8);at.FEATURE_PROMOTION_1_IMPRESSION_WITH_ATTRACTION,at.FEATURE_PROMOTION_1_ENGAGEMENT_WITH_ATTRACTION,at.FEATURE_PROMOTION_1_SNOOZE_WITH_ATTRACTION,at.FEATURE_PROMOTION_1_DISMISS_PERMANENTLY_WITH_ATTRACTION,at.FEATURE_PROMOTION_1_IMPRESSION_WITHOUT_ATTRACTION,at.FEATURE_PROMOTION_1_ENGAGEMENT_WITHOUT_ATTRACTION,at.FEATURE_PROMOTION_1_SNOOZE_WITHOUT_ATTRACTION,at.FEATURE_PROMOTION_1_DISMISS_PERMANENTLY_WITHOUT_ATTRACTION})(),Mt.rewardsPromotionTitle(),pr({container:{...kn.container,paddingBlockEnd:"4px",marginInlineEnd:"40px",display:"flex"},iconContainer:{paddingInlineStart:"14px",paddingInlineEnd:"12px",paddingBlockStart:"10px",flexShrink:0,flexGrow:0},icon:{width:"36px",height:"30px"},contentContainer:{display:"flex",flexDirection:"column",marginInlineEnd:"40px"},header:{paddingBlockStart:"12px",paddingBlockEnd:"0px"},headerText:{fontWeight:"600",lineHeight:"20px",fontSize:"14px"},description:{fontSize:"12px",lineHeight:"16px",paddingBlockStart:"8px",paddingBlockEnd:"8px"},action:{paddingBlockEnd:"4px"},actionButton:{...kn.actionButton,fontSize:"12px",lineHeight:"16px"}}),pr({container:{...kn.container,display:"flex"},iconContainer:{paddingBlockStart:"8px",paddingInlineStart:"24px",paddingInlineEnd:"20px",flexShrink:0,flexGrow:0},icon:{lineHeight:"20px",width:"20px",height:"20px"},contentContainer:{display:"flex",flexDirection:"column",marginInlineEnd:"44px"},header:{fontWeight:"600",wordBreak:"break-word",lineHeight:"20px",paddingBlockStart:"8px",paddingBlockEnd:"8px"},description:{fontSize:"12px",lineHeight:"16px"},action:{height:"20px",paddingBlockStart:"8px",paddingBlockEnd:"12px"},actionButton:{...kn.actionButton,fontSize:"12px",lineHeight:"20px"}}),pr({container:{...kn.container,display:"flex"},iconContainer:{paddingBlockStart:"8px",paddingInlineStart:"20px",paddingInlineEnd:"16px",flexShrink:0,flexGrow:0},iconBackground:{backgroundColor:"var(--colorPaletteGreenBackground1)",display:"flex",alignItems:"center",justifyContent:"center",height:"28px",width:"28px",...On.borderRadius("200px")},icon:{lineHeight:"20px",width:"20px",height:"20px",color:"var(--colorPaletteGreenForeground1)"},contentContainer:{display:"flex",flexDirection:"column",marginInlineEnd:"44px"},header:{fontWeight:"600",wordBreak:"break-word",lineHeight:"20px",paddingBlockStart:"8px",paddingBlockEnd:"8px"},description:{fontSize:"12px",lineHeight:"16px"},action:{minHeight:"20px",paddingBlockStart:"8px",paddingBlockEnd:"12px"},actionButton:{...kn.actionButton,fontSize:"12px",lineHeight:"20px"}}),pr({container:{...kn.container,display:"flex"},iconContainer:{paddingBlockStart:"8px",paddingInlineStart:"16px",paddingInlineEnd:"12px",flexShrink:0,flexGrow:0},icon:{lineHeight:"36px",width:"36px",height:"36px"},contentContainer:{height:"108px",display:"flex",flexDirection:"column",justifyContent:"space-between",marginInlineEnd:"44px"},header:{fontWeight:"600",wordBreak:"break-word",lineHeight:"20px",paddingBlockStart:"8px"},description:{fontSize:"12px",lineHeight:"16px",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,color:"var(--colorNeutralForeground3)",...On.overflow("hidden")},action:{height:"16px",paddingBlockEnd:"12px"},actionButton:{...kn.actionButton,fontSize:"12px",lineHeight:"16px",textDecorationLine:"none"}}),st.CardExpired,nt.CARD_EXPIRED_SNOOZE,st.CardExpiring,nt.CARD_EXPIRING_SOON_SNOOZE,st.RoamCard,nt.ROAM_CARD_SNOOZE,st.SignupCryptoWallet,nt.SIGN_UP_CRYPTOWALLET_SNOOZE,st.CardTokenizationEligible,nt.CARD_TOKENIZATION_ELIGIBLE_SNOOZE,st.PasswordLeakage,nt.PASSWORD_LEAKAGE_SNOOZE,st.PersonalizedOffersAvailable,nt.PERSONALIZED_OFFERS_AVAILABLE_SNOOZE,st.UpcomingHotelReservations,nt.UPCOMING_HOTEL_RESERVATION_SNOOZE,st.DonationSummary,nt.DONATION_SUMMARY_SNOOZE,st.FeaturePromotion,nt.FEATURE_PROMOTION_SNOOZE,st.PackageTracking,nt.PACKAGE_TRACKING_SNOOZE,st.Rebates,nt.REBATES_SNOOZE,st.EtreeCampaign,nt.ETREE_CAMPAIGN_SNOOZE,st.Etree,nt.ETREE_NORMAL_SNOOZE,st.PWAPromotion,nt.PWA_PROMOTION_SNOOZE,st.DonationTrendNpo,nt.DONATION_TREND_NPO_SNOOZE,st.CardExpired,nt.CARD_EXPIRED_DISMISS_PERMANENTLY,st.CardExpiring,nt.CARD_EXPIRING_SOON_DISMISS_PERMANENTLY,st.RoamCard,nt.ROAM_CARD_DISMISS_PERMANENTLY,st.SignupCryptoWallet,nt.SIGN_UP_CRYPTOWALLET_DISMISS_PERMANENTLY,st.CardTokenizationEligible,nt.CARD_TOKENIZATION_ELIGIBLE_DISMISS_PERMANENTLY,st.PasswordLeakage,nt.PASSWORD_LEAKAGE_DISMISS_PERMANENTLY,st.PersonalizedOffersAvailable,nt.PERSONALIZED_OFFERS_AVAILABLE_DISMISS_PERMANENTLY,st.UpcomingHotelReservations,nt.UPCOMING_HOTEL_RESERVATION_DISMISS_PERMANENTLY,st.DonationSummary,nt.DONATION_SUMMARY_DISMISS_PERMANENTLY,st.FeaturePromotion,nt.FEATURE_PROMOTION_DISMISS_PERMANENTLY,st.PackageTracking,nt.PACKAGE_TRACKING_DISMISS_PERMANENTLY,st.Rebates,nt.REBATES_DISMISS_PERMANENTLY,st.EtreeCampaign,nt.ETREE_CAMPAIGN_DISMISS_PERMANENTLY,st.Etree,nt.ETREE_NORMAL_DISMISS_PERMANENTLY,st.PWAPromotion,nt.PWA_PROMOTION_DISMISS_PERMANENTLY,st.DonationTrendNpo,nt.DONATION_TREND_NPO_DISMISS_PERMANENTLY,pr({dismiss:{zIndex:"1",position:"absolute",height:"20px",top:"16px",minWidth:"20px",width:"20px",right:"8px",...On.borderWidth("0"),...On.borderRadius("0"),...On.padding("0"),backgroundColor:"transparent","&:focus-visible":{...On.borderColor("var(--colorTransparentStroke)"),...On.borderRadius("var(--borderRadiusMedium)"),outlineColor:"var(--colorTransparentStroke)",outlineStyle:"solid",outlineWidth:"var(--strokeWidthThick)",boxShadow:"var(--shadow4),0 0 0 2px var(--colorStrokeFocus2)",zIndex:"1"}},topV2:{top:"11px"}}),pr({container:{width:"100%",backgroundColor:An.whiteBackground,[Cn]:{backgroundColor:An.darkNotificationBackground},userSelect:"none",textAlign:"start",paddingBlockStart:"36px",paddingBlockEnd:"28px"},content:{textAlign:"center"},icon:{paddingInlineEnd:"8px",verticalAlign:"bottom"},text:{display:"inline-block"},link:{textAlign:"center",paddingBlockStart:"8px"}});const Ns={width:"126px",textAlign:"start",display:"grid",gridTemplateColumns:"88px 12px"};pr({...kn,icon:{display:"inline-block",paddingInlineStart:"24px",paddingBlockStart:"14px"},errorIcon:{color:An.criticalPrimary,[Cn]:{color:An.RedAlertIconDarkMode}},warningIcon:{color:An.YellowAlertPrimary,[Cn]:{color:An.YellowAlertIconDarkMode}},header:{...kn.header,paddingBlockStart:"12px",paddingBlockEnd:"0px",width:"200px"},title:{fontWeight:"600",lineHeight:"20px",fontSize:"14px"},text:{...kn.text,fontSize:"12px",paddingInlineStart:"18px",paddingBlockStart:"8px",paddingBlockEnd:"0px",lineHeight:"16px",width:"200px"},expDate:{paddingBlockEnd:"12px",paddingInlineStart:"16px",width:"fit-content"},expDateSelector:{width:"126px",paddingInlineEnd:"12px",display:"inline-block"},label:{paddingBlockEnd:"4px",display:"inline-block"},menuButton:Ns,menuPopover:{minWidth:"116px",height:"64px",overflowY:"scroll"},errorMenuButton:{...Sn,...Ns},iconContainer:{display:"inline-block",verticalAlign:"top"},contentContainer:{display:"inline-block"},action:{...kn.action,width:"fit-content",paddingInlineStart:"18px",paddingBlockStart:"8px",paddingBlockEnd:"8px"},actionButton:{display:"inline-block",...kn.actionButton,fontSize:"12px"}}),pr({container:{...kn.container,display:"flex",flexDirection:"column",...On.paddingBlock("8px"),...On.gap("8px")},header:{...kn.header,display:"flex",paddingInlineStart:"0px",...On.paddingBlock("0px")},text:{...kn.text,paddingInlineStart:"62px",paddingInlineEnd:"36px",...On.paddingBlock("0px !important")},linkLarge:{...kn.linkLarge,fontSize:"12px",...On.paddingBlock("0px"),paddingInlineStart:"62px !important"},icon:{width:"62px",color:"var(--colorPaletteBlueForeground2)"},title:{width:"195px",fontWeight:"var(--fontWeightSemibold)"}}),vt.Component,pr({notificationDivider:{...On.borderTop("1px","solid","var(--colorNeutralStroke2)")}});const _s=xe("notificationTitle","Notification");function Os(e){return yt(e,_s)}const bs={miniWalletRewardsRowRewardsPointsBalance:Os({id:"miniWalletRewardsRowRewardsPointsBalance",description:"Message to indicate the Rewards points",defaultMessage:"$1 points"}),miniWalletHeaderPaymentMethodIconTooltip:Os({id:"miniWalletHeaderPaymentMethodIconTooltip",description:"Tooltip for the payment methods icon in the mini wallet header",defaultMessage:"Open payment methods"}),miniWalletHeaderPasswordsIconTooltip:Os({id:"miniWalletHeaderPasswordsIconTooltip",description:"Tooltip for the passwords icon in the mini wallet header",defaultMessage:"Open passwords"}),miniWalletHeaderPersonalInfoIconTooltip:Os({id:"miniWalletHeaderPersonalInfoIconTooltip",description:"Tooltip for the personal info icon in the mini wallet header",defaultMessage:"Open personal info"})};var Is;!function(e){e[e.kWalletCardImpression=0]="kWalletCardImpression",e[e.kWalletCardHeaderImpression=1]="kWalletCardHeaderImpression",e[e.kWalletCardHeaderClicked=2]="kWalletCardHeaderClicked",e[e.kWalletCardPaymentMethodsIconImpression=3]="kWalletCardPaymentMethodsIconImpression",e[e.kWalletCardPaymentMethodsIconClicked=4]="kWalletCardPaymentMethodsIconClicked",e[e.kWalletCardPasswordsIconImpression=5]="kWalletCardPasswordsIconImpression",e[e.kWalletCardPasswordsIconClicked=6]="kWalletCardPasswordsIconClicked",e[e.kWalletCardPersonalInfoIconImpression=7]="kWalletCardPersonalInfoIconImpression",e[e.kWalletCardPersonalInfoIconClicked=8]="kWalletCardPersonalInfoIconClicked",e[e.kWalletCardRewardsImpression=9]="kWalletCardRewardsImpression",e[e.kWalletCardRewardsImpression_FromCache=10]="kWalletCardRewardsImpression_FromCache",e[e.kWalletCardRewardsImpression_NoCache=11]="kWalletCardRewardsImpression_NoCache",e[e.kWalletCardRewardsClicked=12]="kWalletCardRewardsClicked",e[e.kWalletCardRewardsEarnLinkImpression=13]="kWalletCardRewardsEarnLinkImpression",e[e.kWalletCardRewardsRedeemLinkImpression=14]="kWalletCardRewardsRedeemLinkImpression",e[e.kWalletCardRewardsEarnLinkClicked=15]="kWalletCardRewardsEarnLinkClicked",e[e.kWalletCardRewardsRedeemLinkClicked=16]="kWalletCardRewardsRedeemLinkClicked",e[e.kWalletCardRewardsImpression_GiveMode=17]="kWalletCardRewardsImpression_GiveMode",e[e.kWalletCardRewardsClicked_GiveMode=18]="kWalletCardRewardsClicked_GiveMode",e[e.kWalletCardRewardsImpression_NonGiveMode=19]="kWalletCardRewardsImpression_NonGiveMode",e[e.kWalletCardRewardsClicked_NonGiveMode=20]="kWalletCardRewardsClicked_NonGiveMode",e[e.kWalletCardRewardsImpression_GiveWithOrg=21]="kWalletCardRewardsImpression_GiveWithOrg",e[e.kWalletCardRewardsClicked_GiveWithOrg=22]="kWalletCardRewardsClicked_GiveWithOrg",e[e.kWalletCardRewardsImpression_GiveWithoutOrg=23]="kWalletCardRewardsImpression_GiveWithoutOrg",e[e.kWalletCardRewardsClicked_GiveWithoutOrg=24]="kWalletCardRewardsClicked_GiveWithoutOrg",e[e.kWalletCardRebatesImpression=25]="kWalletCardRebatesImpression",e[e.kWalletCardRebatesImpression_FromCache=26]="kWalletCardRebatesImpression_FromCache",e[e.kWalletCardRebatesImpression_NoCache=27]="kWalletCardRebatesImpression_NoCache",e[e.kWalletCardRebatesValueClicked=28]="kWalletCardRebatesValueClicked",e[e.kWalletCardFallbackBundleUsed=29]="kWalletCardFallbackBundleUsed",e[e.kWalletCardWalletComponentBundleUsed=30]="kWalletCardWalletComponentBundleUsed",e[e.kWalletCardEtreeImpression=31]="kWalletCardEtreeImpression",e[e.kWalletCardEtreeImpression_FromCache=32]="kWalletCardEtreeImpression_FromCache",e[e.kWalletCardEtreeImpression_NoCache=33]="kWalletCardEtreeImpression_NoCache",e[e.kWalletCardEtreeLevelLinkImpression=34]="kWalletCardEtreeLevelLinkImpression",e[e.kWalletCardEtreeCertificateLinkImpression=35]="kWalletCardEtreeCertificateLinkImpression",e[e.kWalletCardEtreeEnrollLinkImpression=36]="kWalletCardEtreeEnrollLinkImpression",e[e.kWalletCardEtreeClicked=37]="kWalletCardEtreeClicked",e[e.kWalletCardEtreeClicked_Level=38]="kWalletCardEtreeClicked_Level",e[e.kWalletCardEtreeClicked_Certificate=39]="kWalletCardEtreeClicked_Certificate",e[e.kWalletCardEtreeClicked_Enroll=40]="kWalletCardEtreeClicked_Enroll",e[e.kMaxValue=41]="kMaxValue"}(Is||(Is={}));const As=e=>{const t=_s.valueExists("walletMiniWalletUsageEnumMaxValue")?parseInt(_s.getValue("walletMiniWalletUsageEnumMaxValue"),10)+1:Is.kMaxValue;e>=t&&console.warn("MiniWalletUsage enum passed in is larger than known size. Please check walletMiniWalletUsageEnumMaxValue."),e>=0&&e_s.valueExists(e)&&_s.getBoolean(e),Rs=()=>vs("isMiniWalletCashbackEnhancementEnabled");var ys;function Ss(e){return e===ys.WalletFirstTimeShow}function ws(){return _s.valueExists("mini_wallet_data")?_s.getValue("mini_wallet_data"):null}function ks(e){return null!=e&&!isNaN(e?.rewards_points)}function Ms(e){return!isNaN(e?.available_balance)&&(e?.available_balance>0||vs("isMiniWalletCashbackAlwaysOnEnabled"))}function xs(e){return null!=e}function Ps(e){return!0===e?.is_etree_user}function Ds(e){return e?.etree_level>=10}function Ls(e){return null!=e?{event_type:e.event_type,data:e.rewards_data?.rewards_data}:null}function Fs(e){return null!=e?{event_type:e.event_type,data:e.rewards_data?.rebates_data}:null}function Ws(e){return null!=e?{event_type:e.event_type,data:e?.etree_data}:null}function Bs(){return _s.valueExists("isTest")&&_s.getBoolean("isTest")}!function(e){e.WalletFirstTimeShow="mini_wallet_first_time_show",e.WalletContentsDataUpdate="mini_wallet_contents_data_update"}(ys||(ys={}));var Gs;!function(e){e[e.paymentMethods=0]="paymentMethods",e[e.passwords=1]="passwords",e[e.personalInfo=2]="personalInfo"}(Gs||(Gs={}));const Vs=I` .walletHeaderRow { width: 100%; height: 42px; padding-inline: 14px; box-sizing: border-box; display: grid; column-gap: 2px; grid-template-columns: 1fr auto auto auto; grid-template-areas: 'label payments-icon passwords-icon personal-info-icon'; } .walletHeaderRow:hover, :focus { background-color: ${An.buttonBackgroundHover}; outline: 0px none transparent !important; } .walletEntryIcon { padding: 4px; justify-self: center; align-self: center; border: none; background-color: transparent; color: inherit; } .walletEntryIcon:focus { outline: 2px solid #80868B !important; border-radius: 4px; } .walletEntryIcon:hover { background-color: ${An.buttonBackgroundDoubleHover}; outline: 0 !important; border-radius: 4px; } @media (prefers-color-scheme: dark) { .walletHeaderRow:hover, :focus { background-color: ${An.darkModeButtonBackgroundHover}; outline: 0px none transparent !important; } .walletEntryIcon:focus { outline: 2px solid background-color: ${An.darkButtonBackgroundDoubleHover} !important; } .walletEntryIcon:hover { background-color: ${An.darkButtonBackgroundDoubleHover}; } } @media screen and (-ms-high-contrast: active) { .walletHeaderRow:hover, :focus { background-color: highlight; outline: 0; } .walletEntryIcon:hover, :focus { outline: 0; border: 2px solid buttonHighlight; } } .walletHeaderLabel { font-weight: 600; font-size: 14px; grid-area: label; justify-self: start; align-self: center; } .walletHeaderPaymentsIcon { grid-area: payments-icon; } .walletHeaderPasswordsIcon { grid-area: passwords-icon; } .walletHeaderPersonalInfoIcon { grid-area: personal-info-icon; } `,Us=re`
e.onHeaderClicked()} @keydown=${(e,t)=>e.onHeaderKeyDown(t.event)} > ${le((e=>e.isPaymentMethodsIconVisbile),re` `)} ${le((e=>e.isPasswardIconVisbile),re` `)} ${le((e=>e.isPersonalInfoVisbile),re` `)}
`;let $s=class extends Ie{constructor(){super(),Bs()&&(this.content_flags=ws()?.content_flags),As(Is.kWalletCardHeaderImpression)}connectedCallback(){super.connectedCallback(),this.isPaymentMethodsIconVisbile&&As(Is.kWalletCardPaymentMethodsIconImpression),this.isPasswardIconVisbile&&As(Is.kWalletCardPasswordsIconImpression),this.isPersonalInfoVisbile&&As(Is.kWalletCardPersonalInfoIconImpression)}set content_flags(e){this.isPasswardIconVisbile=(e&Cs.Passwords)>0,this.isPaymentMethodsIconVisbile=(e&Cs.PaymentMethods)>0,this.isPersonalInfoVisbile=(e&Cs.PersonalInfo)>0}get isPasswardIconVisbile(){return R.track(this,"isPasswardIconVisbile"),this._isPasswardIconVisbile}set isPasswardIconVisbile(e){this._isPasswardIconVisbile=e,R.notify(this,"isPasswardIconVisbile")}get isPaymentMethodsIconVisbile(){return R.track(this,"isPaymentMethodsIconVisbile"),this._isPaymentMethodsIconVisbile}set isPaymentMethodsIconVisbile(e){this._isPaymentMethodsIconVisbile=e,R.notify(this,"isPaymentMethodsIconVisbile")}get isPersonalInfoVisbile(){return R.track(this,"isPersonalInfoVisbile"),this._isPersonalInfoVisbile}set isPersonalInfoVisbile(e){this._isPersonalInfoVisbile=e,R.notify(this,"isPersonalInfoVisbile")}onHeaderClicked(){As(Is.kWalletCardHeaderClicked),Dt.navigateToUrl(Ct(At(Re.WalletHub,"profileflyout"),"MiniWalletHeader"))}onHeaderKeyDown(e){return e.key!==Ce&&e.key!==ve||this.onHeaderClicked(),!0}onEntryIconClicked(e,t){switch(e){case Gs.paymentMethods:As(Is.kWalletCardPaymentMethodsIconClicked),Dt.navigateToUrl(Ct(At(Re.walletPaymentMethodsURL,"profileflyout"),"MiniWalletPaymentIcon"));break;case Gs.passwords:As(Is.kWalletCardPasswordsIconClicked),Dt.navigateToUrl(Ct(At(Re.walletPasswordsURL,"profileflyout"),"MiniWalletPasswordIcon"));break;case Gs.personalInfo:As(Is.kWalletCardPersonalInfoIconClicked),Dt.navigateToUrl(Ct(At(Re.walletPersonalInfoURL,"profileflyout"),"MiniWalletPersonalInfoIcon"))}As(Is.kWalletCardHeaderClicked),t.stopPropagation()}};$s=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}([Ae({name:"wallet-header",template:Us,styles:Vs})],$s);const Hs=function(){};var zs=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};const js=I` .dismissNotificationStyle { padding: 10px 14px; display: grid; grid-template-rows: auto auto; grid-template-areas: 'icon' 'content'; } .dismissText { font-size: 12px; line-height: 16px; } .actionLink { font-weight: 400; color: #115ea3; text-decoration: none; } @media (prefers-color-scheme: dark) { .actionLink { color: #479ef5; } } .actionLink:hover, :focus { text-decoration: underline; } .dismiss { color: inherit; background-color: transparent; border: none; justify-self: center; align-self: center; padding: 4px; } .dismiss:hover, :focus { background-color: ${An.buttonBackgroundDoubleHover}; border-radius: 4px; } @media (prefers-color-scheme: dark) { .dismiss:hover, :focus { background-color: ${An.darkButtonBackgroundDoubleHover}; } } `,Zs=re` `,Ys=re` `,Ks=re`
${e=>e.dismissedPermanently?Ys:Zs}
${le((e=>!e.dismissedPermanently),re` `)}
`;let qs=class extends Ie{constructor(){super(),this._dismissedPermanently=!1,this.notificationType=this.getAttribute("notificationType"),this.dataKey=this.getAttribute("dataKey"),this.appName=this.getAttribute("appName")}get dismissedPermanently(){return R.track(this,"dismissedPermanently"),this._dismissedPermanently}set dismissedPermanently(e){this._dismissedPermanently=e,R.notify(this,"dismissedPermanently")}onDismissClick(){var e;this.dismissedPermanently=!0,e=this.dataKey,Dt.onDismiss(e),bt(Hn[this.notificationType][Gn.dismiss],this.appName)}onCloseClick(){this.shadowRoot.querySelector(".dismissNotificationStyle").remove()}};zs([he],qs.prototype,"notificationType",void 0),zs([he],qs.prototype,"dataKey",void 0),zs([he],qs.prototype,"appName",void 0),qs=zs([Ae({name:"dismiss-notification",template:Ks,styles:js})],qs);var Xs=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};const Qs=I` .notificationRowStyle { padding: 10px 14px; display: grid; grid-template-columns: 36px 198px 16px; grid-template-rows: auto auto; grid-template-areas: 'icon title dismiss' 'icon content dismiss'; column-gap: 10px; } .notificationRowStyle:hover, .notificationRowStyle:focus { background-color: ${An.buttonBackgroundHover}; outline: 0; text-decoration: none !important; } @media (prefers-color-scheme: dark) { .notificationRowStyle:hover, :focus { background-color: ${An.darkModeButtonBackgroundHover}; outline: 0; } } @media screen and (-ms-high-contrast: active) { .notificationRowStyle:hover, :focus { background-color: highlight; } } .noitificationIcon { grid-area: icon; display: inline-grid; padding-top: 2px; justify-content: center; } .errorIcon { fill: ${An.criticalPrimary}; } @media (prefers-color-scheme: dark) { .errorIcon { fill: ${An.RedAlertIconDarkMode}; } } .warningIcon { fill: ${An.YellowAlertPrimary}; } @media (prefers-color-scheme: dark) { .warningIcon { fill: ${An.YellowAlertIconDarkMode}; } } .blueIcon { fill: ${An.compoundBrandForegroundLight}; } @media (prefers-color-scheme: dark) { .blueIcon { fill: ${An.compoundBrandForegroundDark}; } } .notificationTitle { font-weight: 600; line-height: 20px; font-size: 14px; color: inherit; } .notificationText { font-size: 12px; line-height: 16px; padding-top: 8px; padding-bottom: 8px; } .actionLink { font-size: 12px; font-weight: 400; color: #115ea3; text-decoration: none; } @media (prefers-color-scheme: dark) { .actionLink { color: #479ef5; } } .actionLink:hover, .actionLink:focus { outline: 0; text-decoration: underline !important; } .dismiss { color: inherit; background-color: transparent; border: none; justify-self: center; align-self: center; padding: 4px; } .dismiss:focus { outline: 2px solid #80868b !important; border-radius: 4px; } .dismiss:hover { background-color: ${An.buttonBackgroundDoubleHover}; border-radius: 4px; outline: 0; } @media (prefers-color-scheme: dark) { .dismiss:focus { outline: 2px solid background-color: ${An.darkButtonBackgroundDoubleHover} !important; } .dismiss:hover { background-color: ${An.darkButtonBackgroundDoubleHover}; } } `,Js=re` ${le((e=>!e.dismiss),re`
e.onActionAreaClick(t.event)} @keydown=${(e,t)=>e.onActionAreaKeyDown(t.event)} >
`)} ${le((e=>e.dismiss),re` `)} `;let el=class extends Ie{get dismiss(){return R.track(this,"dismiss"),this._dismiss}set dismiss(e){this._dismiss=e,R.notify(this,"dismiss")}constructor(){super(),this.onActionLinkClickExtended=Hs,this.notificationType=this.getAttribute("notificationType"),this.dataKey=this.getAttribute("dataKey"),this.headerTitle=this.getAttribute("headerTitle"),this.content=this.getAttribute("content"),this.actionUrl=this.getAttribute("actionUrl"),this.actionText=this.getAttribute("actionText"),this.appName=this.getAttribute("appName"),function(e,...t){["onActionLinkClickExtended"].forEach((t=>{let i=e[t];delete e[t],Object.defineProperty(e,t,{get:()=>(R.track(e,t),i),set(o){const r=e[t];i=o,R.notify(e,t);const n=e[t+"Changed"];n&&n.call(e,o,r)}})}))}(this)}connectedCallback(){super.connectedCallback(),bt(Hn[this.notificationType][Gn.impression],this.appName)}onActionAreaClick(e){bt(nt.NOTIFICATION_CARD_ENGAGEMENT_FROM_CONTENT,this.appName),this.onActionLinkClick(e)}onActionAreaKeyDown(e){return e.key!==Ce&&e.key!==ve||this.onActionAreaClick(e),!0}onActionLinkClick(e){var t;bt(Hn[this.notificationType][Gn.engagement],this.appName),t=this.dataKey,Dt.onApply(t),this.actionUrl&&Dt.navigateToUrl(this.actionUrl),this.onActionLinkClickExtended(),e.stopPropagation()}onDismissClick(e){var t;bt(Hn[this.notificationType][Gn.snooze],this.appName),t=this.dataKey,Dt.onSnooze(t),this.dismiss=!0,e.stopPropagation()}};Xs([he],el.prototype,"iconClassName",void 0),Xs([he],el.prototype,"notificationType",void 0),Xs([he],el.prototype,"dataKey",void 0),Xs([he],el.prototype,"headerTitle",void 0),Xs([he],el.prototype,"content",void 0),Xs([he],el.prototype,"actionUrl",void 0),Xs([he],el.prototype,"actionText",void 0),Xs([he],el.prototype,"appName",void 0),el=Xs([Ae({name:"base-notification",template:Js,styles:Qs})],el);const tl=re` `,il=re` `;var ol,rl,nl,al;!function(e){e[e.PROGRAMMATIC=0]="PROGRAMMATIC",e[e.USER_ACTION=1]="USER_ACTION"}(ol||(ol={})),(al=rl||(rl={})).Tokenization="Tokenization",al.RoamCard="RoamCard",al.ErrorHandling="ErrorHandling",al.Unknown="Unknown",function(e){e.isWalletBNPLAffirmAdaptiveCheckoutEnabled="isWalletBNPLAffirmAdaptiveCheckoutEnabled",e.isTokenizationEnrollRewardsEnabled="isTokenizationEnrollRewardsEnabled",e.isWalletTokenizedAutofillEnabled="isWalletTokenizedAutofillEnabled",e.creditCardUploadEnabled="creditCardUploadEnabled",e.creditCardGlobalizationEnabled="creditCardGlobalizationEnabled",e.creditCardBetterStateTranslationEnabled="creditCardBetterStateTranslationEnabled",e.creditCardSyncCardEnabled="creditCardSyncCardEnabled",e.cardUploadErrorHandling="cardUploadErrorHandling",e.isCardRoamingLocalSaveCvvEnabled="isCardRoamingLocalSaveCvvV2Enabled",e.isCardRoamingAlwaysVerifyEnabled="isCardRoamingAlwaysVerifyEnabled",e.isCreditCardSilentUploadEnabled="creditCardSilentUpload",e.isCreditCardAutoSaveEnabled="creditCardAutoSaveEnabled",e.isWalletPartialCardEnabled="isWalletPartialCardEnabled",e.isWalletHubUXReskinEnabled="isWalletHubUXReskinEnabled",e.isWalletHubLayoutRefreshEnabled="isWalletHubLayoutRefreshEnabled",e.isWalletTokenizationCardMetadataEnabled="isWalletTokenizationCardMetadataEnabled",e.isBNPLFeedbackEnabled="isBNPLFeedbackEnabled",e.isCardRoamingSupportCrossRegionV2Enabled="isCardRoamingSupportCrossRegionV2Enabled",e.isCardRoamingSupportCrossRegionV3Enabled="isCardRoamingSupportCrossRegionV3Enabled"}(nl||(nl={}));const sl=xe("walletTitle","Wallet"),ll=(e,t,i,o,r=Dn.Enroll)=>{if(n=nl.isWalletTokenizedAutofillEnabled,!sl.valueExists(n)||!sl.getBoolean(n))return;var n;if(!(e&&t&&r&&i))return;const a=sl.valueExists("tokenizationFunnelEnumMaxValue")?parseInt(sl.getValue("tokenizationFunnelEnumMaxValue"),10)+1:-1;if(null!==o&&o>=0&&o<=a&&!isNaN(a)){const n=r===Dn.Autofill?`${xn.TokenizationEnrollActions}.${r}.${e}.${i}`:`${xn.TokenizationEnrollActions}.${r}.${e}.${i}.${t}`;qe.recordEnumerationValue(n,o,a)}};function cl(e,t){const i=e.data,o=!0===e.previewData?.isLocal||!0===i?.metadata?.isLocal,r=e.previewData?.guid??i?.guid,n=kt.msWalletNotificationCardTokenizationEligibleHeader(),a=kt.msWalletNotificationCardTokenizationEligibleIntroduction(),s=((e,t)=>Ct(At(`edge://wallet${((e,t)=>e?`/paymentMethods/cardDetails/edit#paymentInstrumentId=${t}&from=${Ln.ProfileNotification}&usage=${rl.Tokenization}`:`/paymentMethods#paymentInstrumentId=${t}&from=${Ln.ProfileNotification}&usage=${rl.Tokenization}`)(e,t)}`),"CardTokenizationEligible"))(o,r),l=function(e){const t=`${(e=>e.cardType??e.network)(e)} ****${ot(e?.cardNumber)}`;return kt.msWalletNotificationCardTokenizationEligibleSetUpText([t])}(e.previewData);var c;return ll(Ln.ProfileNotification,(e=>e?(e=>!0===e.metadata?.isLocal)(e)?Fn.Local:(e=>!0===e?.metadata?.isPartialCard)(e)?Fn.Partial:(e=>!1===e?.metadata?.isLocal)(e)?Fn.Server:Fn.Unknown:Fn.Unknown)(i),(c=i?.network,Wn[c?.toUpperCase()]??Wn.UNKNOWN),Bn.CARD_ELIGIBLE,Dn.Enroll),re` `}var dl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};const ul=I` .image { max-width: 36px; max-height: 36px; width: auto; height: auto; object-fit: contain; } .cashbackShape { height: 20px; display: inline-block; padding: 0px; position: relative; background: ${"#3267FA"}; border-radius: 4px; margin-inline-end: 10px; margin-block-start: 2px; color: ${An.whiteBackground}; } .notificationText { font-size: 12px; padding-bottom: 8px; } .cashbackShape::before { top: 10%; right: -6px; width: 16px; height: 16px; content: ''; position: absolute; transform: rotate(-45deg); background: inherit; border-radius: 4px; } .cashbackPadding { padding-inline-end: 5px; padding-inline-start: 5px; padding-block-start: 1px; position: relative; } .expireText { display: inline-block; color: ${An.redForeground}; } @media (prefers-color-scheme: dark) { .expireText { color: ${An.personalizedOfferTextColorDark}; } } `,pl=re`
${e=>re`${kt.msWalletNotificationPOMessage([`
\n
\n $\n ${e.rebateValue}\n
\n
`,`
${e.expireStr}
`])} `}
`;let hl=class extends Ie{padNumber(e){return e<10?`0${e}`:`${e}`}connectedCallback(){super.connectedCallback(),this.notificationType=this.getAttribute("notificationType");const e=Date.now()/1e3,t=this.expiration-e;if(t>0){const e=Math.floor(t/3600),i=Math.floor((t-3600*e)/60);this.expireStr=`${this.padNumber(e)}h:${this.padNumber(i)}m`}else this.expireStr="00h:00m"}};dl([y],hl.prototype,"dismiss",void 0),dl([he],hl.prototype,"notificationType",void 0),dl([he],hl.prototype,"dataKey",void 0),dl([he],hl.prototype,"actionUrl",void 0),dl([he],hl.prototype,"actionText",void 0),dl([he],hl.prototype,"expiration",void 0),dl([he],hl.prototype,"rebateValue",void 0),dl([he],hl.prototype,"imageUrl",void 0),dl([he],hl.prototype,"appName",void 0),dl([y],hl.prototype,"expireStr",void 0),hl=dl([Ae({name:"personalized-offers-notification",template:pl,styles:ul})],hl);const fl=I` .icon-background { width: 20px; height: 20px; border-radius: 50%; background-color: ${An.donationIconBackgroundLight}; padding-block-start: 10px; padding-block-end: 6px; padding-inline-start: 5px; padding-inline-end: 6px; } .icon-container { padding-inline-start: 3px; padding-block-start: 3px; } @media (prefers-color-scheme: dark) { .icon-background { background-color: ${An.donationIconBackgroundDark}; } } `,gl=re` `;let El=class extends Ie{};var Tl,ml,Nl;El=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}([Ae({name:"donation-icon",template:gl,styles:fl})],El),(Nl=Tl||(Tl={})).AddCreditCardPref="autofill.credit_card_enabled",Nl.TokenizationNumRewardsUsed="autofill.tokenization_number_rewards_used",Nl.MSPayCreditCardEnabled="autofill.mspay_credit_card_enabled",Nl.AutofillOfferToSyncCardEnabled="autofill.offer_to_sync_card_enabled",Nl.ProfileEnabled="autofill.profile_enabled",Nl.AutofillInfoEnabled="autofill.autostuff_enabled",Nl.SaveCreditCardCvvLocally="autofill.save_credit_card_cvv_locally",Nl.RoamingCardSilentlyEnabled="autofill.roaming_card_silently_enabled",Nl.MultiFactorAuthToFill="edge_wallet.multi_factor_auth_to_fill",Nl.MembershipsAutofillEnabled="autofill.memberships_enabled",Nl.PCToMobileSectionDismissed="edge_wallet.pc_to_mobile_section_dismissed",Nl.EnabledFeedbackPref="edge.feedback_allowed",Nl.ShowRewards="edge_rewards.show",Nl.EdgeWalletBNPLEnabled="edge_wallet_bnpl_enabled",Nl.ShowWalletIntroPref="edge_wallet.show_wallet_intro_section",Nl.WalletCheckoutEnabled="edge_wallet.wallet_checkout_enabled",Nl.ShoppingAssistantPref="edge_shopping_assistant_enabled",Nl.ShowOffersIntroPref="edge_wallet.show_wallet_offers_intro",Nl.ShowNewInTickets="edge_wallet.show_new_in_tickets",Nl.ShowTickets="edge_wallet.show_wallet_tickets",Nl.EdgeTippingAssistantEnabled="edge_tipping_assistant_enabled",Nl.ShoppingPackageTrackingUserConsent="shopping.package_tracking_user_consented",Nl.CredentialsEnableService="credentials_enable_service",Nl.CredentialsEnableAutofillPasswords="credentials_enable_autofill_passwords",Nl.CredentialsEnableBreachDetection="credentials_enable_breachdetection",Nl.PasswordBreachScanned="profile.password_breach_scanned",Nl.PasswordBreachLastScannedTime="profile.password_breach_last_scanned_time",Nl.PasswordBreachScanTriggeredCount="profile.password_breach_scan_triggered_count",Nl.PasswordBreachScanTriggeredPasswordCount="profile.password_breach_scan_triggered_password_count",Nl.PasswordRestrictLength="profile.edge_password_restrict_length",Nl.CredentialsEnablePasswordGeneration="credentials_enable_passwordgeneration",Nl.CredentialsEnablePasswordReveal="credentials_enable_passwordreveal",Nl.MasterPasswordAuthCriteria="profile.master_password_auth_criteria",Nl.MasterPasswordAuthFrequency="profile.master_password_auth_frequency",Nl.CredentailsEnableAutoSave="credentials_enable_autosave",Nl.CustomPrimaryPasswordHash="profile.custom_primary_password_hash",Nl.FeaturePromotionDict="edge_wallet.notification.featurePromotion.promotionDict",Nl.SettingsMigration="edge_wallet.use_as_default_t2",Nl.SettingsMigrationDismissed="edge_wallet.use_as_default_t2_dismissed",Nl.ShowWalletETree="edge_wallet.show_wallet_e_tree",Nl.WalletETreeEnabled="edge_wallet.wallet_etree_enabled",Nl.EtreeNotificationLastShow="edge_wallet.etree_notification_last_show",Nl.IsSignedInProfile="edge_wallet.isSignedInProfile",Nl.HomeFreDismissed="edge_wallet.home.fre.dismissed",Nl.HomeFrePaymentsStepCompleted="edge_wallet.home.fre.payments_step_completed",Nl.HomeFreMembershipsStepCompleted="edge_wallet.home.fre.memberships_step_completed",Nl.HomeFrePasswordsStepCompleted="edge_wallet.home.fre.passwords_step_completed",Nl.HomeFreRewardsStepCompleted="edge_wallet.home.fre.rewards_step_completed",Nl.HomeFreSavingsStepCompleted="edge_wallet.home.fre.savings_step_completed",Nl.HomeFreSigninStepCompleted="edge_wallet.home.fre.signin_step_completed",Nl.HomeFreAutosaveStepCompleted="edge_wallet.home.fre.autosave_step_completed",Nl.CryptoWalletUserEnabled="edge_wallet.crypto_wallet_user_enabled",Nl.CryptoUserFREState="edge_wallet.crypto_user_fre_state",Nl.CryptoWalletSuspended="edge_wallet.a0b1b27987ba331be1a8f2cd0d74c615c3d35ec3f298ad69506bbe21d5cb71d7",Nl.PWAPromotionDialogShownTimes="edge_wallet.pwa_promotion.dialog_shown_times",Nl.PWAPromotionDialogNextTime="edge_wallet.pwa_promotion.dialog_next_time",Nl.PWAPromotionRewardsLastReportTime="edge_wallet.pwa_promotion.rewards_last_report_time",Nl.PWAPromotionNotificationCompleted="edge_wallet.notification.pwa_promotion_completed",function(e){e.history="import_dialog_history",e.favorites="import_dialog_bookmarks",e.passwords="import_dialog_saved_passwords",e.search="import_dialog_search_engine",e.autofillFormData="import_dialog_autofill_form_data",e.payments="import_dialog_payment_info",e.cookies="import_dialog_cookies",e.homePage="import_dialog_homepage",e.settings="import_dialog_browser_settings",e.openTabs="import_dialog_open_tabs",e.extensions="import_dialog_browser_extensions"}(ml||(ml={}));var _l,Ol=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};!function(e){e.TrackOrder="TrackOrder",e.ViewOrder="ViewOrder"}(_l||(_l={}));const bl=I` .packageTrackingIcon { fill: ${An.packageTrackingIconLight}; } @media (prefers-color-scheme: dark) { .packageTrackingIcon { fill: ${An.packageTrackingIconDark}; } } `,Il=re`e.onActionLinkClickExtended} > `;let Al=class extends Ie{constructor(){super(...arguments),this.onActionLinkClickExtended=()=>{var e;this.subType===_l.ViewOrder?bt(nt.PACKAGE_TRACKING_VIEW_ORDER_ENGAGEMENT,this.appName):this.subType===_l.TrackOrder&&(bt(nt.PACKAGE_TRACKING_TRACK_ORDER_ENGAGEMENT,this.appName),e=Tl.ShoppingPackageTrackingUserConsent,!0,Bt.setPref(e,true))}}};function Cl(e){return yt(e,sl)}Ol([he],Al.prototype,"notificationType",void 0),Ol([he],Al.prototype,"dataKey",void 0),Ol([he],Al.prototype,"headerTitle",void 0),Ol([he],Al.prototype,"content",void 0),Ol([he],Al.prototype,"actionUrl",void 0),Ol([he],Al.prototype,"actionText",void 0),Ol([he],Al.prototype,"subType",void 0),Ol([he],Al.prototype,"appName",void 0),Al=Ol([Ae({name:"package-tracking",styles:bl,template:Il})],Al);const vl={cancel:Cl({id:"cancel",defaultMessage:"Cancel",description:"Text of the cancel button"}),dismiss:Cl({id:"dismiss",defaultMessage:"Dismiss",description:"Text of the dismiss button"}),learnMore:Cl({id:"learnMore",defaultMessage:"Learn more",description:"Text of the learn more button"}),close:Cl({id:"close",defaultMessage:"Close",description:"Text of the Close button"}),textOfCreateButton:Cl({id:"textOfCreateButton",description:"Text for create button",defaultMessage:"Create"}),textOfChangeButton:Cl({id:"textOfChangeButton",description:"Text for change button",defaultMessage:"Change"}),tokenizeCardEnterCode:Cl({id:"tokenizeCardEnterCode",defaultMessage:"Enter code",description:"Label for enter verification code field"}),tokenizeCardVerify:Cl({id:"tokenizeCardVerify",defaultMessage:"Verify",description:"Label for the verify button"}),tokenizeCardChallengeMethodAPPToAPP:Cl({id:"tokenizeCardChallengeMethodAPPToAPP",defaultMessage:"Mobile banking app",description:"Simple description for the verify via banking app option"}),tokenizeCardChallengeMethodCustomerService:Cl({id:"tokenizeCardChallengeMethodCustomerService",defaultMessage:"Bank customer service",description:"Simple description for the verify via customer service option"}),tokenizeCardChallengeMethodEmail:Cl({id:"tokenizeCardChallengeMethodEmail",defaultMessage:"Email",description:"Simple description for the verify via email option"}),tokenizeCardChallengeMethodOnlineBanking:Cl({id:"tokenizeCardChallengeMethodOnlineBanking",defaultMessage:"Bank account",description:"Simple description for the verify via online banking option"}),tokenizeCardChallengeMethodOutboundCall:Cl({id:"tokenizeCardChallengeMethodOutboundCall",defaultMessage:"Phone call",description:"Simple description for the verify via phone call option"}),tokenizeCardChallengeMethodSMS:Cl({id:"tokenizeCardChallengeMethodSMS",defaultMessage:"Text message",description:"Simple description for the verify via SMS option"}),tokenizeCardSelectMethodDescription:Cl({id:"tokenizeCardSelectMethodDescription",defaultMessage:"Choose one of the following verification methods:",description:"Description for choose a new method"}),tokenizeCardBack:Cl({id:"tokenizeCardBack",defaultMessage:"Back",description:"Label for the Back button"}),tokenizeCardNext:Cl({id:"tokenizeCardNext",defaultMessage:"Next",description:"Label for the Next button"}),tokenizeCardEnterCodeStepTitle:Cl({id:"tokenizeCardEnterCodeStepTitle",defaultMessage:"Let's get you verified",description:"Title for the enter verification code step"}),tokenizeCardSelectMethodStepTitle:Cl({id:"tokenizeCardSelectMethodStepTitle",defaultMessage:"Let's get you verified",description:"Title for the select method code step"}),tokenizeCardErrorStepTitle:Cl({id:"tokenizeCardErrorStepTitle",defaultMessage:"Something went wrong",description:"Title for the error step"}),tokenizeCardLoadingTitle:Cl({id:"tokenizeCardLoadingTitle",defaultMessage:"Contacting your bank…",description:"Title for the loading step"}),tokenizeCardEnterCvvStepDescription:Cl({id:"tokenizeCardEnterCvvStepDescription",defaultMessage:"Your bank requires you to verify the CVV security code associated with your $1 ending in $2.",description:"Description shows in CVV verification dialog"}),tokenizeCardCvvInvalidError:Cl({id:"tokenizeCardCvvInvalidError",defaultMessage:"Please verify your security code and try again.",description:"Error message shows when cvv is invalid"}),tokenizeCardGeneralError:Cl({id:"tokenizeCardGeneralError",defaultMessage:"Your card issuer is having issues at the moment, please try again later.",description:"Error message for the generate card error"}),tokenizationEnroll:Cl({id:"tokenizationEnroll",description:"Label for the confirmation button in verification dialog",defaultMessage:"Enroll"}),tokenizationEnrollConfirmDialogTitle:Cl({id:"tokenizationEnrollConfirmDialogTitle",defaultMessage:"Pay safely with a virtual card",description:"Title for the enroll confirmation dialog"}),tokenizationEnrollConfirmDialogTitleForRewards:Cl({id:"tokenizationEnrollConfirmDialogTitleForRewards",defaultMessage:"Set up a virtual card and earn 20 Microsoft Rewards points",description:"Title for the enroll confirmation dialog for rewards incentive"}),tokenizationEnrollConfirmModalDescription:Cl({id:"tokenizationEnrollConfirmModalDescription",description:"Description for the enroll confirm dialog",defaultMessage:"A virtual card hides your card details from merchants when you shop online. If any of them experiences a data breach, your details remain protected. $1"}),tokenizationEnrollConfirmFooterDescription:Cl({id:"tokenizationEnrollConfirmFooterDescription",description:"Description for the enroll confirm footer",defaultMessage:"Your card issuer may send a verification code or request the card's security code to verify it's you."}),tokenizationTerms:Cl({id:"tokenizationTerms",defaultMessage:"By continuing, you agree to the $1.",description:"Terms description shows in tokenization dialog"}),tokenizeCardFetchCodeError:Cl({id:"tokenizeCardFetchCodeError",defaultMessage:"Your card issuer had an issue sending the code. Request another code or use a different verification method.",description:"Error message shows when sending verification code failed"}),tokenizeCardFetchCodeErrorCustomerService:Cl({id:"tokenizeCardFetchCodeErrorCustomerService",defaultMessage:"Your card issuer had an issue generating the code. Please try a different verification method or try again later.",description:"Error message shows when issuer cannot generate verification code"}),manageYourPaymentMethodsLinkText:Cl({id:"manageYourPaymentMethodsLinkText",defaultMessage:"Manage your payment methods",description:"the link text for wallet page"}),walletDrawerLabelShowCardNumber:Cl({id:"walletDrawerLabelShowCardNumber",defaultMessage:"Show card number",description:"The label for the button to show card number"}),walletDrawerLabelCopyCardNumber:Cl({id:"walletDrawerLabelCopyCardNumber",defaultMessage:"Copy card number",description:"The label for the button to copy card number"}),walletDrawerLabelShowExpirationDate:Cl({id:"walletDrawerLabelShowExpirationDate",defaultMessage:"Copy expiration date",description:"The label for the button to copy expiration date"}),walletDrawerLabelShowCvc:Cl({id:"walletDrawerLabelShowCvc",defaultMessage:"Show CVC",description:"The label for the button to show CVC"}),walletDrawerLabelCopyCvc:Cl({id:"walletDrawerLabelCopyCvc",defaultMessage:"Copy CVC",description:"The label for the button to copy CVC"}),walletDrawerLabelCopyNameAddress:Cl({id:"walletDrawerLabelCopyNameAddress",defaultMessage:"Copy name and address",description:"The label for the button to copy name and address"}),walletFeedbackThankYouText:Cl({id:"walletFeedbackThankYouText",defaultMessage:"Thank you for your feedback. It will help us improve Wallet.",description:"Than you text after users provide feedback"}),walletMicrofeedbackPrompt:Cl({id:"walletMicrofeedbackPrompt",defaultMessage:"Satisfied with Wallet?",description:"Text to ask users to provide feedback"}),feedbackOptionAutofillDontWork:Cl({id:"feedbackOptionAutofillDontWork",defaultMessage:"Autofill did not work",description:"The string used as the first dislike option for wallet BNPL feedback."}),feedbackOptionTookTooMuchTime:Cl({id:"feedbackOptionTookTooMuchTime",defaultMessage:"Took too much time",description:"The string used as the second dislike option for wallet BNPL feedback."}),feedbackOptionOthers:Cl({id:"feedbackOptionOthers",defaultMessage:"Other",description:"The string used as the other dislike option for wallet feedback."}),walletDrawerLinkErrorMessage:Cl({id:"walletDrawerLinkErrorMessage",defaultMessage:"We are unable to link your Microsoft account to $1. Please try again later.",description:"Text of failed link account notification in Wallet EC BNPL"}),walletDrawerPayWithVirtualCard:Cl({id:"walletDrawerPayWithVirtualCard",defaultMessage:"Pay with your $1 $2 card",description:"The description to pay with your virtual card",examples:[{name:"INSTALLMENT_NAME",value:"ZIP"},{name:"CARD_BRAND",value:"Visa"}]}),walletDrawerSystemErrorHeader:Cl({id:"walletDrawerSystemErrorHeader",defaultMessage:"Uh oh",description:"Text of system failure view title"}),walletDrawerAutoFillMessage:Cl({id:"walletDrawerAutoFillMessage",defaultMessage:"We've automatically filled your card information from $1.",description:"The message when autofill succeed"}),walletDrawerAutoFillMessageWithBillingAddress:Cl({id:"walletDrawerAutoFillMessageWithBillingAddress",defaultMessage:"Your payment details from $1 have been filled in. If not, click the card and address details below to copy.",description:"The message when autofill succeed which has billing address"}),walletDrawerAutoFillMessageWithoutBillingAddress:Cl({id:"walletDrawerAutoFillMessageWithoutBillingAddress",defaultMessage:"Your payment details from $1 have been filled in. If not, click the card details below to copy. To complete this purchase, please fill in your home billing address.",description:"The message when autofill succeed which does not have billing address"}),walletDrawerAutoFillErrorMessage:Cl({id:"walletDrawerAutoFillErrorMessage",defaultMessage:"We are unable to autofill your card information from $1. Please manually enter your $1 card information during checkout.",description:"The error message when autofill fails"}),commonSubtitle:Cl({id:"commonSubtitle",defaultMessage:"See if you qualify to pay over time",description:"The common sub title of the total amount dialog"}),msPayAddCardAgreement:Cl({id:"msPayAddCardAgreement",defaultMessage:"By continuing, you agree to the $1, $2, and $3 regarding how your data is handled.",description:"Privacy statement at the save card action when the card is to be saved by uploading it to Microsoft Payments and also saved locally, $1, $2 and $3 are links"}),paymentServiceTermsLinkText:Cl({id:"paymentServiceTermsLinkText",defaultMessage:"Payment Service Terms",description:"Text for Edge terms of servcie link for the Autofill save card prompt when the card is to be saved by uploading it to Microsoft Payments and also saved locally. The prompt can be either a bubble or an infobar."}),previousButtonAriaLabel:Cl({id:"previousButtonAriaLabel",defaultMessage:"Go to previous page",description:"label for the previous button in the pagination mechanism. Clicking this button will take the user back to the previous page in the pagination."}),nextButtonAriaLabel:Cl({id:"nextButtonAriaLabel",defaultMessage:"Go to next page",description:"label for the next button in the pagination mechanism. Clicking this button will take the user to the next page in the pagination."}),paginationButtonAriaLabel:Cl({id:"paginationButtonAriaLabel",defaultMessage:"Go to page $1",description:"label for the pagination button. Clicking this button will take the user to the specific page in the pagination."}),aboutTermsOfUseLinkText:Cl({id:"aboutTermsOfUseLinkText",description:"The label of the link used to direct a user to the terms of use webpage.",defaultMessage:"Microsoft Edge Terms of Use"}),aboutPrivacyStatementLinkText:Cl({id:"aboutPrivacyStatementLinkText",description:"The label of the link used to direct a user to the privacy statement webpage",defaultMessage:"Microsoft Privacy Statement"}),walletCommonAccountCount:Cl({id:"walletCommonAccountCount",description:"For each group indicating the count of accounts, $1 is the count of accounts",defaultMessage:"$1 accounts"}),walletSeeDetailsAriaLabel:Cl({id:"walletSeeDetailsAriaLabel",description:"Aria-label for buttons that go to detail page",defaultMessage:"see details"}),walletPWAPromoTitle:Cl({id:"walletPWAPromoTitle",description:"Title of promo Wallet PWA (progressive web app) installation",defaultMessage:"Add a shortcut to Wallet"}),walletPWAPromoContent:Cl({id:"walletPWAPromoContent",description:"Content of promo Wallet PWA (progressive web app) installation, $1 is the number of reward points",defaultMessage:"Install now and earn $1 Microsoft Rewards points.",examples:[{name:"NUMBER_OF_POINTS",value:"30"}]}),walletPWACommonPromoContent:Cl({id:"walletPWACommonPromoContent",description:"Content of promo Wallet PWA (progressive web app) installation for all type od users",defaultMessage:"Install now for faster access to Wallet."}),walletPWAAddShortcut:Cl({id:"walletPWAAddShortcut",description:"Wallet PWA (progressive web app) installation button text",defaultMessage:"Add shortcut"}),walletNotInterestedText:Cl({id:"walletNotInterestedText",description:"Text for not interested action/feedback, especially for promotion",defaultMessage:"Not interested"}),feedbackLike:Cl({id:"feedbackLike",description:"Like button for mini feedback",defaultMessage:"Like"}),feedbackDislike:Cl({id:"feedbackDislike",description:"Dislike button for mini feedback",defaultMessage:"Dislike"})};function Rl(e,t){switch(e.type){case st.CardExpired:case st.CardExpiring:return function(e,t){const{guid:i,network:o,cardNumber:r}={guid:e.previewData?.guid,network:e.previewData?.network,cardNumber:e.previewData?.cardNumber},n=e.type==st.CardExpired,a=n?kt.msWalletNotificationCardExpired():kt.msWalletNotificationCardExpiring(),s=function(e,t){const i=new URL(`${Re.walletPaymentMethodsURL}/cardDetails/edit`);return e?.length>0&&(i.hash=`#paymentInstrumentId=${e}`),Ct(At(i.toString()),t?"CardExpired":"CardExpiring")}(i,n),l=kt.msWalletNotificationUpdateButton1(),c=function(e,t){return it(e)?Pe.valueExists("msWalletNotificationUpdateExpTextV2")?Pe.getStringF("msWalletNotificationUpdateExpTextV2",e,`****${ot(t)}`):kt.msWalletNotificationUpdateExpText([`****${ot(t)}`]):St({id:"msWalletNotificationUpdateExpTextV2MissingIssuer",description:"Update your card ending in $1 to continue using it.",defaultMessage:"Update your card ending in $1 to continue using it.",values:[`****${ot(t)}`]})}(o,r);return re` ${n?tl:il} `}(e,t);case st.SignupCryptoWallet:return function(e,t){const i=kt.msWalletNotificationCryptowalletSignupTitle(),o=kt.msWalletNotificationCryptowalletSignupDescription(),r=Ct(At("edge://wallet/crypto/onboard?from=notification"),"CryptoSignup"),n=kt.msWalletNotificationCryptowalletJoinButton();return re` `}(e,t);case st.CardTokenizationEligible:return cl(e,t);case st.PasswordLeakage:return function(e,t){const{LeakedPasswordCount:i}=e.previewData,o=kt.msWalletNotificationPasswordCompromiseTitle(),r=1==i?kt.msWalletNotificationPasswordCompromiseBodySingular():kt.msWalletNotificationPasswordCompromiseBody([i]),n=new URL(ke.getString("msWalletPageURL")+"/passwords/");n.hash="#filter=Leaked";const a=Ct(At(n.toString()),"PasswordLeakage"),s=St({id:"msWalletNotificationFixLeakage",description:"The text of view details link in password leakage notification",defaultMessage:"View details"});return re` `}(e,t);case st.UpcomingHotelReservations:return function(e,t){const{HotelName:i,CheckinDate:o,CheckoutDate:r}=e.previewData,n=new Date(o).toLocaleDateString(void 0,{month:"short",day:"numeric"}),a=new Date(r).toLocaleDateString(void 0,{month:"short",day:"numeric"}),s=kt.msWalletNotificationHotelReservationTitle(),l=kt.msWalletNotificationHotelReservationBody([i,n,a]),c=new URL(ke.getString("msWalletPageURL")+"/tickets/");c.hash="#tab=travelnotification";const d=Ct(At(c.toString()),"HotelReservation"),u=kt.msWalletNotificationHotelReservationViewDetails();return re` `}(e,t);case st.PersonalizedOffersAvailable:return function(e,t){const i=e.previewData?.contentUrl,o=e.previewData?.contentImageUrl,r=e.previewData?.contentRebateValue,n=e.previewData?.expireEpochTime,a=kt.personalizedOffersViewOfferText();return re` `}(e,t);case st.RoamCard:return function(e,t){const i=e.previewData?.guid,o=e.previewData?.cardNumber,r=Mt.msWalletNotificationRoamCardHeaderV3(),n=Ct(At(`edge://wallet/paymentMethods/cardDetails/edit#paymentInstrumentId=${i}&usage=${rl.RoamCard}`),"CardRoaming"),a=Mt.msWalletNotificationRoamCardActionV2(),s=`•••• •••• •••• ${ot(o)}`;return re` `}(e,t);case st.DonationSummary:return function(e,t){const i=kt.msWalletNotificationDonationSummaryTitle(),o=new URL(Pe.getString("msWalletPageURL")+"/donation/");o.hash="#tab=overviewfromnotification";const r=Ct(At(o.toString()),"DonationSummary"),n=kt.msWalletNotificationDonationSummaryLinkText();return re` `}(e,t);case st.PackageTracking:return function(e,t){const{IsShoppingPackageTrackingUserConsent:i}=e.previewData,o=i?_l.ViewOrder:_l.TrackOrder,r=o===_l.ViewOrder?kt.msWalletNotificationOrderStatusTitle():kt.msWalletNotificationTrackOrderTitle(),n=o===_l.ViewOrder?"":kt.msWalletNotificationTrackOrderSubTitle(),a=Ct(At(new URL(Pe.getString("msWalletPageURL")+"/orders/").toString()),"PackageTracking"),s=o===_l.ViewOrder?kt.msWalletNotificationViewDetailLink():kt.msWalletNotificationTrackOrderLink();return re` `}(e,t);case st.Rebates:return function(e,t){const i=kt.msWalletNotificationRebatesCashoutTitle(),{balance:o=0}=e.previewData,r=5*Math.floor(o/5),n=o<5?kt.msWalletNotificationRebatesCashoutDescription():kt.msWalletNotificationRebatesCashoutAmountDescription([`$${r}`]),a=Re.microsoftRebatesPayoutURL,s=kt.msWalletNotificationRebatesCashoutAction();return re` `}(e,t);case st.PWAPromotion:return function(e,t){const i=vl.walletPWAPromoTitle(),o=vl.walletPWACommonPromoContent(),r=Ct(At(new URL(ke.getString("msWalletPageURL")).toString()),"PWAPromotion"),n=vl.walletPWAAddShortcut();return re` `}(e,t);case st.DonationTrendNpo:return function(e,t){const i=e.data?.causeName,o=kt.msWalletNotificationDonationTrendNpoTitle(),r=kt.msWalletNotificationDonationTrendNpoDescription([i]),n=new URL(ke.getString("msWalletPageURL")+"/donation/");n.hash=i?`#tab=explore&npo=${i}`:"#tab=explore";const a=Ct(At(n.toString()),"PWAPromotion"),s=kt.msWalletNotificationDonationTrendNpoLink();return re` `}(e,t);default:return bt(nt.UNSUPPORTED_TYPE,t),null}}const yl=I``,Sl=re` ${le((e=>e.notification),re`
${e=>Rl(e.notification,e.appName)}
`)} `;let wl=class extends Ie{get notification(){return R.track(this,"notification"),this._notification}set notification(e){this._notification=e,R.notify(this,"notification")}get appName(){return R.track(this,"appName"),this._appName}set appName(e){this._appName=e,R.notify(this,"appName")}};function kl(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}wl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}([Ae({name:"notification-container",template:Sl,styles:yl})],wl);const Ml=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(i){Reflect.defineMetadata(e,t,i)}},Reflect.defineMetadata=function(e,t,i){let o=Ml.get(i);void 0===o&&Ml.set(i,o=new Map),o.set(e,t)},Reflect.getOwnMetadata=function(e,t){const i=Ml.get(t);if(void 0!==i)return i.get(e)});class xl{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,rc(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new jl(o,e,t))}}function Pl(e){const t=e.slice(),i=Object.keys(e),o=i.length;let r;for(let n=0;nnew jl(e,1,e),transient:e=>new jl(e,2,e)}),Ll=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Dl.singleton})}),Fl=new Map;function Wl(e){return t=>Reflect.getOwnMetadata(e,t)}let Bl=null;const Gl=Object.freeze({createContainer:e=>new ic(null,Object.assign({},Ll.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:Gl.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(ec,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||Gl.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new ic(e,Object.assign({},Ll.default,t,{parentLocator:Gl.findParentContainer})):Bl||(Bl=new ic(null,Object.assign({},Ll.default,t,{parentLocator:()=>null}))),getDesignParamtypes:Wl("design:paramtypes"),getAnnotationParamtypes:Wl("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=Fl.get(e);if(void 0===t){const i=e.inject;if(void 0===i){const i=Gl.getDesignParamtypes(e),o=Gl.getAnnotationParamtypes(e);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(e);t="function"==typeof i&&i!==Function.prototype?Pl(Gl.getDependencies(i)):[]}else t=Pl(o);else if(void 0===o)t=Pl(i);else{t=Pl(i);let e,r=o.length;for(let i=0;i{Gl.findResponsibleContainer(this).get(i)!==this[r]&&(this[r]=e,o.notify(t))};o.subscribe({handleChange:n},"isConnected")}}return e}})},createInterface(e,t){const i="function"==typeof e?e:t,o="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||lc,r="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),n=function(e,t,i){if(null==e||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);t?Gl.defineProperty(e,t,n,r):Gl.getOrCreateAnnotationParamTypes(e)[i]=n};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(e,t){return i(new xl(e,null!=t?t:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...e)=>function(t,i,o){if("number"==typeof o){const i=Gl.getOrCreateAnnotationParamTypes(t),r=e[0];void 0!==r&&(i[o]=r)}else if(i)Gl.defineProperty(t,i,e[0]);else{const i=o?Gl.getOrCreateAnnotationParamTypes(o.value):Gl.getOrCreateAnnotationParamTypes(t);let r;for(let t=0;t(e.register=function(t){return nc.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton:(e,t=$l)=>(e.register=function(t){return nc.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e)}),Vl=Gl.createInterface("Container");function Ul(e){return function(t){const i=function(e,t,o){Gl.inject(i)(e,t,o)};return i.$isResolver=!0,i.resolve=function(i,o){return e(t,i,o)},i}}Gl.inject;const $l={scoped:!1};function Hl(e,t,i){Gl.inject(Hl)(e,t,i)}function zl(e,t){return t.getFactory(e).construct(t)}Ul(((e,t,i)=>()=>i.get(e))),Ul(((e,t,i)=>i.has(e,!0)?i.get(e):void 0)),Hl.$isResolver=!0,Hl.resolve=()=>{},Ul(((e,t,i)=>{const o=zl(e,t),r=new jl(e,0,o);return i.registerResolver(e,r),o})),Ul(((e,t,i)=>zl(e,t)));class jl{constructor(e,t,i){this.key=e,this.strategy=t,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=e.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,i,o;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(o=null===(i=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===i?void 0:i.call(t,e))&&void 0!==o?o:null;default:return null}}}function Zl(e){return this.get(e)}function Yl(e,t){return t(e)}class Kl{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let i;return i=void 0===t?new this.Type(...this.dependencies.map(Zl,e)):new this.Type(...this.dependencies.map(Zl,e),...t),null==this.transformers?i:this.transformers.reduce(Yl,i)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const ql={$isResolver:!0,resolve:(e,t)=>t};function Xl(e){return"function"==typeof e.register}function Ql(e){return function(e){return Xl(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const Jl=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),ec="__DI_LOCATE_PARENT__",tc=new Map;class ic{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,null!==e&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(Vl,ql),e instanceof Node&&e.addEventListener(ec,(e=>{e.composedPath()[0]!==this.owner&&(e.detail.container=this,e.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let t,i,o,r,n;const a=this.context;for(let s=0,l=e.length;sthis}))}jitRegister(e,t){if("function"!=typeof e)throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(Jl.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(Xl(e)){const i=e.register(t);if(!(i instanceof Object)||null==i.resolve){const i=t.resolvers.get(e);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}}const oc=new WeakMap;function rc(e){return function(t,i,o){if(oc.has(o))return oc.get(o);const r=e(t,i,o);return oc.set(o,r),r}}const nc=Object.freeze({instance:(e,t)=>new jl(e,0,t),singleton:(e,t)=>new jl(e,1,t),transient:(e,t)=>new jl(e,2,t),callback:(e,t)=>new jl(e,3,t),cachedCallback:(e,t)=>new jl(e,3,rc(t)),aliasTo:(e,t)=>new jl(t,5,e)});function ac(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function sc(e,t,i){if(e instanceof jl&&4===e.strategy){const o=e.state;let r=o.length;const n=new Array(r);for(;r--;)n[r]=o[r].resolve(t,i);return n}return[e.resolve(t,i)]}const lc="(anonymous)";function cc(e){return"object"==typeof e&&null!==e||"function"==typeof e}const dc=function(){const e=new WeakMap;let t=!1,i="",o=0;return function(r){return t=e.get(r),void 0===t&&(i=r.toString(),o=i.length,t=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),e.set(r,t)),t}}(),uc={};function pc(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=uc[e];if(void 0!==t)return t;const i=e.length;if(0===i)return uc[e]=!1;let o=0;for(let t=0;t1||o<48||o>57)return uc[e]=!1;return uc[e]=!0}default:return!1}}function hc(e){return`${e.toLowerCase()}:presentation`}const fc=new Map,gc=Object.freeze({define(e,t,i){const o=hc(e);void 0===fc.get(o)?fc.set(o,t):fc.set(o,!1),i.register(nc.instance(o,t))},forTag(e,t){const i=hc(e),o=fc.get(i);return!1===o?Gl.findResponsibleContainer(t).get(i):o||null}});class Ec{constructor(e,t){this.template=e||null,this.styles=void 0===t?null:Array.isArray(t)?f.create(t):t instanceof f?t:f.create([t])}applyTo(e){const t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}class Tc extends Ie{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=gc.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new Nc(this===Tc?class extends Tc{}:this,e,t)}}function mc(e,t,i){return"function"==typeof e?e(t,i):e}kl([y],Tc.prototype,"template",void 0),kl([y],Tc.prototype,"styles",void 0);class Nc{constructor(e,t,i){this.type=e,this.elementDefinition=t,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){const i=this.definition,o=this.overrideDefinition,r=`${i.prefix||t.elementPrefix}-${i.baseName}`;t.tryDefineElement({name:r,type:this.type,baseClass:this.elementDefinition.baseClass,callback:e=>{const t=new Ec(mc(i.template,e,i),mc(i.styles,e,i));e.definePresentation(t);let r=mc(i.shadowOptions,e,i);e.shadowRootMode&&(r?o.shadowOptions||(r.mode=e.shadowRootMode):null!==r&&(r={mode:e.shadowRootMode})),e.defineElement({elementOptions:mc(i.elementOptions,e,i),shadowOptions:r,attributes:mc(i.attributes,e,i)})}})}}const _c=new Set(["children","localName","ref","style","className"]),Oc=Object.freeze(Object.create(null));function bc(e,t){if(!t.name){const i=Te.forType(e);if(!i)throw new Error("React wrappers must wrap a FASTElement or be configured with a name.");t.name=i.name}return t.name}function Ic(e){return e.events||(e.events={})}function Ac(e,t,i){return!_c.has(i)||(console.warn(`${bc(e,t)} contains property ${i} which is a React reserved property. It will be used by React and not set on the element.`),!1)}(function(e,t){let i=[];return{wrap:function(t,o={}){t instanceof Nc&&(i.push(t),t=t.type);class r extends e.Component{constructor(){super(...arguments),this._element=null}_updateElement(e){const t=this._element;if(null===t)return;const i=this.props,r=e||Oc,n=Ic(o);for(const e in this._elementProps){const o=i[e],a=n[e];if(void 0===a)t[e]=o;else{const i=r[e];if(o===i)continue;void 0!==i&&t.removeEventListener(a,i),void 0!==o&&t.addEventListener(a,o)}}}componentDidMount(){this._updateElement()}componentDidUpdate(e){this._updateElement(e)}render(){const i=this.props.__forwardedRef;void 0!==this._ref&&this._userRef===i||(this._ref=e=>{null===this._element&&(this._element=e),null!==i&&function(e,t){"function"==typeof e?e(t):e.current=t}(i,e),this._userRef=i});const r={ref:this._ref},n=this._elementProps={},a=function(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(Ic(t))));else{const i=new Set(Object.keys(Ic(t))),o=R.getAccessors(e.prototype);if(o.length>0)for(const r of o)Ac(e,t,r.name)&&i.add(r.name);else for(const o in e.prototype)!(o in HTMLElement.prototype)&&Ac(e,t,o)&&i.add(o);t.keys=i}return t.keys}(t,o),s=this.props;for(const e in s){const t=s[e];a.has(e)?n[e]=t:r["className"===e?"class":e]=t}return e.createElement(bc(t,o),r)}}return e.forwardRef(((t,i)=>e.createElement(r,Object.assign(Object.assign({},t),{__forwardedRef:i}),null==t?void 0:t.children)))},registry:{register(e,...t){i.forEach((i=>i.register(e,...t))),i=[]}}}})(vt).wrap(wl,{properties:["notification","appName"]});let Cc=1;const vc={},Rc={};function yc(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}window.cr=window.cr||{},window.cr.webUIResponse=function(e,t,i){const o=vc[e];delete vc[e],t?o.resolve(i):o.reject(i)},window.cr.webUIListenerCallback=function(e,t){const i=Rc[e];if(!i)return;const o=Array.prototype.slice.call(arguments,1);for(const e in i)i[e].apply(null,o)};const Sc=document.createElement("div");class wc{setProperty(e,t){h.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){h.queueUpdate((()=>this.target.removeProperty(e)))}}class kc extends wc{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class Mc extends wc{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class xc{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),R.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),h.queueUpdate((()=>{null!==this.target&&this.target.setProperty(e,t)}))}removeProperty(e){this.store.delete(e),h.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(e)}))}handleChange(e,t){const{sheet:i}=this.style;if(i){const e=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[e].style}else this.target=null}}kl([y],xc.prototype,"target",void 0);class Pc{constructor(e){this.target=e.style}setProperty(e,t){h.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){h.queueUpdate((()=>this.target.removeProperty(e)))}}class Dc{setProperty(e,t){Dc.properties[e]=t;for(const i of Dc.roots.values())Wc.getOrCreate(Dc.normalizeRoot(i)).setProperty(e,t)}removeProperty(e){delete Dc.properties[e];for(const t of Dc.roots.values())Wc.getOrCreate(Dc.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=Dc;if(!t.has(e)){t.add(e);const i=Wc.getOrCreate(this.normalizeRoot(e));for(const e in Dc.properties)i.setProperty(e,Dc.properties[e])}}static unregisterRoot(e){const{roots:t}=Dc;if(t.has(e)){t.delete(e);const i=Wc.getOrCreate(Dc.normalizeRoot(e));for(const e in Dc.properties)i.removeProperty(e)}}static normalizeRoot(e){return e===Sc?document:e}}Dc.roots=new Set,Dc.properties={};const Lc=new WeakMap,Fc=h.supportsAdoptedStyleSheets?class extends wc{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(f.create([t]))}}:xc,Wc=Object.freeze({getOrCreate(e){if(Lc.has(e))return Lc.get(e);let t;return t=e===Sc?new Dc:e instanceof Document?h.supportsAdoptedStyleSheets?new kc:new Mc:e instanceof Ie?new Fc(e):new Pc(e),Lc.set(e,t),t}});class Bc extends e{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,null!==e.cssCustomPropertyName&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=Bc.uniqueId(),Bc.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new Bc({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return"string"==typeof e.cssCustomProperty}static isDerivedDesignTokenValue(e){return"function"==typeof e}static getTokenById(e){return Bc.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=Hc.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof Bc&&(t=this.alias(t)),Hc.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),Hc.existsFor(e)&&Hc.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(Sc,e),this}subscribe(e,t){const i=this.getOrCreateSubscriberSet(t);t&&!Hc.existsFor(t)&&Hc.getOrCreate(t),i.has(e)||i.add(e)}unsubscribe(e,t){const i=this.subscribers.get(t||this);i&&i.has(e)&&i.delete(e)}notify(e){const t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((e=>e.handleChange(t))),this.subscribers.has(e)&&this.subscribers.get(e).forEach((e=>e.handleChange(t)))}alias(e){return t=>e.getValueFor(t)}}Bc.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),Bc.tokensById=new Map;class Gc{constructor(e,t,i){this.source=e,this.token=t,this.node=i,this.dependencies=new Set,this.observer=R.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,k))}}class Vc{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),R.getNotifier(this).notify(e.id))}get(e){return R.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const Uc=new WeakMap,$c=new WeakMap;class Hc{constructor(e){this.target=e,this.store=new Vc,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const i=Bc.getTokenById(t);if(i&&(i.notify(this.target),Bc.isCSSDesignToken(i))){const t=this.parent,o=this.isReflecting(i);if(t){const r=t.get(i),n=e.get(i);r===n||o?r===n&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},Uc.set(e,this),R.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof Ie?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return Uc.get(e)||new Hc(e)}static existsFor(e){return Uc.has(e)}static findParent(e){if(Sc!==e.target){let t=yc(e.target);for(;null!==t;){if(Uc.has(t))return Uc.get(t);t=yc(t)}return Hc.getOrCreate(Sc)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e))return i;i=i.parent?i.parent:i.target!==Sc?Hc.getOrCreate(Sc):null}while(null!==i);return null}get parent(){return $c.get(this)||null}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(void 0!==t)return t;const i=this.getRaw(e);return void 0!==i?(this.hydrate(e,i),this.get(e)):void 0}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):null===(t=Hc.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){Bc.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),Bc.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){const e=Hc.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){this.parent&&$c.get(this).removeChild(this)}appendChild(e){e.parent&&$c.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));$c.set(e,this),this.children.push(e),t.forEach((t=>e.appendChild(t))),R.getNotifier(this.store).subscribe(e);for(const[t,i]of this.store.all())e.hydrate(t,this.bindingObservers.has(t)?this.getRaw(t):i)}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),R.getNotifier(this.store).unsubscribe(e),e.parent===this&&$c.delete(e)}contains(e){return function(e,t){let i=t;for(;null!==i;){if(i===e)return!0;i=yc(i)}return!1}(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),Hc.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),Hc.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const i=Bc.getTokenById(t);i&&this.hydrate(i,this.getRaw(i))}hydrate(e,t){if(!this.has(e)){const i=this.bindingObservers.get(e);Bc.isDerivedDesignTokenValue(t)?i?i.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(i&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){const i=new Gc(t,e,this);return this.bindingObservers.set(e,i),i}tearDownBindingObserver(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}Hc.cssCustomPropertyReflector=new class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){const{token:t,target:i}=e;this.add(t,i)}add(e,t){Wc.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(Hc.getOrCreate(t).get(e)))}remove(e,t){Wc.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},kl([y],Hc.prototype,"children",void 0);const zc=Object.freeze({create:function(e){return Bc.from(e)},notifyConnection:e=>!(!e.isConnected||!Hc.existsFor(e)||(Hc.getOrCreate(e).bind(),0)),notifyDisconnection:e=>!(e.isConnected||!Hc.existsFor(e)||(Hc.getOrCreate(e).unbind(),0)),registerRoot(e=Sc){Dc.registerRoot(e)},unregisterRoot(e=Sc){Dc.unregisterRoot(e)}}),jc=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Zc=new Map,Yc=new Map;let Kc=null;const qc=Gl.createInterface((e=>e.cachedCallback((e=>(null===Kc&&(Kc=new Qc(null,e)),Kc))))),Xc=Object.freeze({tagFor:e=>Yc.get(e),responsibleFor(e){const t=e.$$designSystem$$;return t||Gl.findResponsibleContainer(e).get(qc)},getOrCreate(e){if(!e)return null===Kc&&(Kc=Gl.getOrCreateDOMContainer().get(qc)),Kc;const t=e.$$designSystem$$;if(t)return t;const i=Gl.getOrCreateDOMContainer(e);if(i.has(qc,!1))return i.get(qc);{const t=new Qc(e,i);return i.register(nc.instance(qc,t)),t}}});class Qc{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>jc.definitionCallbackOnly,null!==e&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const t=this.container,i=[],o=this.disambiguate,r=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(e,n,a){const s=function(e,t,i){return"string"==typeof e?{name:e,type:t,callback:i}:e}(e,n,a),{name:l,callback:c,baseClass:d}=s;let{type:u}=s,p=l,h=Zc.get(p),f=!0;for(;h;){const e=o(p,u,h);switch(e){case jc.ignoreDuplicate:return;case jc.definitionCallbackOnly:f=!1,h=void 0;break;default:p=e,h=Zc.get(p)}}f&&((Yc.has(u)||u===Tc)&&(u=class extends u{}),Zc.set(p,u),Yc.set(u,p),d&&Yc.set(d,p)),i.push(new Jc(t,p,u,r,c,f))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&zc.registerRoot(this.designTokenRoot)),t.registerWithContext(n,...e);for(const e of i)e.callback(e),e.willDefine&&null!==e.definition&&e.definition.define();return this}}class Jc{constructor(e,t,i,o,r,n){this.container=e,this.name=t,this.type=i,this.shadowRootMode=o,this.callback=r,this.willDefine=n,this.definition=null}definePresentation(e){gc.define(this.name,e,this.container)}defineElement(e){this.definition=new Te(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return Xc.tagFor(e)}}function ed(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}function td(e,t,i){return isNaN(e)||e<=t?t:e>=i?i:e}function id(e,t,i){return isNaN(e)||e<=t?0:e>=i?1:e/(i-t)}function od(e,t,i){return isNaN(e)?t:t+e*(i-t)}function rd(e){return e*(Math.PI/180)}function nd(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:t+e*(i-t)}function ad(e,t,i){if(e<=0)return t%360;if(e>=1)return i%360;const o=(t-i+360)%360;return o<=(i-t+360)%360?(t-o*e+360)%360:(t+o*e+360)%360}function sd(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}Math.PI;class ld{constructor(e,t,i,o){this.r=e,this.g=t,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(e){return!e||isNaN(e.r)||isNaN(e.g)||isNaN(e.b)?null:new ld(e.r,e.g,e.b,e.a)}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(od(this.r,0,255))},${Math.round(od(this.g,0,255))},${Math.round(od(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(od(this.r,0,255))},${Math.round(od(this.g,0,255))},${Math.round(od(this.b,0,255))},${td(this.a,0,1)})`}roundToPrecision(e){return new ld(sd(this.r,e),sd(this.g,e),sd(this.b,e),sd(this.a,e))}clamp(){return new ld(td(this.r,0,1),td(this.g,0,1),td(this.b,0,1),td(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return function(e){const t=Math.round(td(e,0,255)).toString(16);return 1===t.length?"0"+t:t}(od(e,0,255))}}const cd=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function dd(e){const t=cd.exec(e);if(null===t)return null;let i=t[1];if(3===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2);i=e.concat(e,t,t,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new ld(id((16711680&o)>>>16,0,255),id((65280&o)>>>8,0,255),id(255&o,0,255),1)}class ud extends class{constructor(e){this.listenerCache=new WeakMap,this.query=e}bind(e){const{query:t}=this,i=this.constructListener(e);i.bind(t)(),t.addListener(i),this.listenerCache.set(e,i)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeListener(t),this.listenerCache.delete(e))}}{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new ud(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!t?(e.$fastController.addStyles(i),t=o):!o&&t&&(e.$fastController.removeStyles(i),t=o)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}}const pd=ud.with(window.matchMedia("(forced-colors)"));function hd(e){return`:host([hidden]){display:none}:host{display:${e}}`}var fd,gd;ud.with(window.matchMedia("(prefers-color-scheme: dark)")),ud.with(window.matchMedia("(prefers-color-scheme: light)")),(gd=fd||(fd={})).Canvas="Canvas",gd.CanvasText="CanvasText",gd.LinkText="LinkText",gd.VisitedText="VisitedText",gd.ActiveText="ActiveText",gd.ButtonFace="ButtonFace",gd.ButtonText="ButtonText",gd.Field="Field",gd.FieldText="FieldText",gd.Highlight="Highlight",gd.HighlightText="HighlightText",gd.GrayText="GrayText";class Ed{constructor(e,t,i){this.h=e,this.s=t,this.l=i}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.l)?null:new Ed(e.h,e.s,e.l)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new Ed(sd(this.h,e),sd(this.s,e),sd(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class Td{constructor(e,t,i){this.h=e,this.s=t,this.v=i}static fromObject(e){return!e||isNaN(e.h)||isNaN(e.s)||isNaN(e.v)?null:new Td(e.h,e.s,e.v)}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new Td(sd(this.h,e),sd(this.s,e),sd(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class md{constructor(e,t,i){this.l=e,this.a=t,this.b=i}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.a)||isNaN(e.b)?null:new md(e.l,e.a,e.b)}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new md(sd(this.l,e),sd(this.a,e),sd(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}md.epsilon=216/24389,md.kappa=24389/27;class Nd{constructor(e,t,i){this.l=e,this.c=t,this.h=i}static fromObject(e){return!e||isNaN(e.l)||isNaN(e.c)||isNaN(e.h)?null:new Nd(e.l,e.c,e.h)}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new Nd(sd(this.l,e),sd(this.c,e),sd(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class _d{constructor(e,t,i){this.x=e,this.y=t,this.z=i}static fromObject(e){return!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.z)?null:new _d(e.x,e.y,e.z)}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new _d(sd(this.x,e),sd(this.y,e),sd(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function Od(e){return.2126*e.r+.7152*e.g+.0722*e.b}function bd(e){function t(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}return Od(new ld(t(e.r),t(e.g),t(e.b),1))}_d.whitePoint=new _d(.95047,1,1.08883);const Id=(e,t)=>(e+.05)/(t+.05);function Ad(e,t){const i=bd(e),o=bd(t);return i>o?Id(i,o):Id(o,i)}function Cd(e){const t=Math.max(e.r,e.g,e.b),i=Math.min(e.r,e.g,e.b),o=t-i;let r=0;0!==o&&(r=t===e.r?(e.g-e.b)/o%6*60:t===e.g?60*((e.b-e.r)/o+2):60*((e.r-e.g)/o+4)),r<0&&(r+=360);const n=(t+i)/2;let a=0;return 0!==o&&(a=o/(1-Math.abs(2*n-1))),new Ed(r,a,n)}function vd(e,t=1){const i=(1-Math.abs(2*e.l-1))*e.s,o=i*(1-Math.abs(e.h/60%2-1)),r=e.l-i/2;let n=0,a=0,s=0;return e.h<60?(n=i,a=o,s=0):e.h<120?(n=o,a=i,s=0):e.h<180?(n=0,a=i,s=o):e.h<240?(n=0,a=o,s=i):e.h<300?(n=o,a=0,s=i):e.h<360&&(n=i,a=0,s=o),new ld(n+r,a+r,s+r,t)}function Rd(e){const t=Math.max(e.r,e.g,e.b),i=t-Math.min(e.r,e.g,e.b);let o=0;0!==i&&(o=t===e.r?(e.g-e.b)/i%6*60:t===e.g?60*((e.b-e.r)/i+2):60*((e.r-e.g)/i+4)),o<0&&(o+=360);let r=0;return 0!==t&&(r=i/t),new Td(o,r,t)}function yd(e){function t(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}const i=t(e.r),o=t(e.g),r=t(e.b);return new _d(.4124564*i+.3575761*o+.1804375*r,.2126729*i+.7151522*o+.072175*r,.0193339*i+.119192*o+.9503041*r)}function Sd(e,t=1){function i(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055}const o=i(3.2404542*e.x-1.5371385*e.y-.4985314*e.z),r=i(-.969266*e.x+1.8760108*e.y+.041556*e.z),n=i(.0556434*e.x-.2040259*e.y+1.0572252*e.z);return new ld(o,r,n,t)}function wd(e){return function(e){function t(e){return e>md.epsilon?Math.pow(e,1/3):(md.kappa*e+16)/116}const i=t(e.x/_d.whitePoint.x),o=t(e.y/_d.whitePoint.y),r=t(e.z/_d.whitePoint.z);return new md(116*o-16,500*(i-o),200*(o-r))}(yd(e))}function kd(e,t=1){return Sd(function(e){const t=(e.l+16)/116,i=t+e.a/500,o=t-e.b/200,r=Math.pow(i,3),n=Math.pow(t,3),a=Math.pow(o,3);let s=0;s=r>md.epsilon?r:(116*i-16)/md.kappa;let l=0;l=e.l>md.epsilon*md.kappa?n:e.l/md.kappa;let c=0;return c=a>md.epsilon?a:(116*o-16)/md.kappa,s=_d.whitePoint.x*s,l=_d.whitePoint.y*l,c=_d.whitePoint.z*c,new _d(s,l,c)}(e),t)}function Md(e){return function(e){let t=0;(Math.abs(e.b)>.001||Math.abs(e.a)>.001)&&(t=Math.atan2(e.b,e.a)*(180/Math.PI)),t<0&&(t+=360);const i=Math.sqrt(e.a*e.a+e.b*e.b);return new Nd(e.l,i,t)}(wd(e))}function xd(e,t=1){return kd(function(e){let t=0,i=0;return 0!==e.h&&(t=Math.cos(rd(e.h))*e.c,i=Math.sin(rd(e.h))*e.c),new md(e.l,t,i)}(e),t)}function Pd(e,t,i=18){const o=Md(e);let r=o.c+t*i;return r<0&&(r=0),xd(new Nd(o.l,r,o.h))}function Dd(e,t){return e*t}function Ld(e,t){return new ld(Dd(e.r,t.r),Dd(e.g,t.g),Dd(e.b,t.b),1)}function Fd(e,t){return td(e<.5?2*t*e:1-2*(1-t)*(1-e),0,1)}function Wd(e,t){return new ld(Fd(e.r,t.r),Fd(e.g,t.g),Fd(e.b,t.b),1)}var Bd,Gd,Vd,Ud;function $d(e,t,i,o){if(isNaN(e)||e<=0)return i;if(e>=1)return o;switch(t){case Vd.HSL:return vd(function(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new Ed(ad(e,t.h,i.h),nd(e,t.s,i.s),nd(e,t.l,i.l))}(e,Cd(i),Cd(o)));case Vd.HSV:return function(e,t=1){const i=e.s*e.v,o=i*(1-Math.abs(e.h/60%2-1)),r=e.v-i;let n=0,a=0,s=0;return e.h<60?(n=i,a=o,s=0):e.h<120?(n=o,a=i,s=0):e.h<180?(n=0,a=i,s=o):e.h<240?(n=0,a=o,s=i):e.h<300?(n=o,a=0,s=i):e.h<360&&(n=i,a=0,s=o),new ld(n+r,a+r,s+r,t)}(function(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new Td(ad(e,t.h,i.h),nd(e,t.s,i.s),nd(e,t.v,i.v))}(e,Rd(i),Rd(o)));case Vd.XYZ:return Sd(function(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new _d(nd(e,t.x,i.x),nd(e,t.y,i.y),nd(e,t.z,i.z))}(e,yd(i),yd(o)));case Vd.LAB:return kd(function(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new md(nd(e,t.l,i.l),nd(e,t.a,i.a),nd(e,t.b,i.b))}(e,wd(i),wd(o)));case Vd.LCH:return xd(function(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new Nd(nd(e,t.l,i.l),nd(e,t.c,i.c),ad(e,t.h,i.h))}(e,Md(i),Md(o)));default:return function(e,t,i){return isNaN(e)||e<=0?t:e>=1?i:new ld(nd(e,t.r,i.r),nd(e,t.g,i.g),nd(e,t.b,i.b),nd(e,t.a,i.a))}(e,i,o)}}(Gd=Bd||(Bd={}))[Gd.Burn=0]="Burn",Gd[Gd.Color=1]="Color",Gd[Gd.Darken=2]="Darken",Gd[Gd.Dodge=3]="Dodge",Gd[Gd.Lighten=4]="Lighten",Gd[Gd.Multiply=5]="Multiply",Gd[Gd.Overlay=6]="Overlay",Gd[Gd.Screen=7]="Screen",(Ud=Vd||(Vd={}))[Ud.RGB=0]="RGB",Ud[Ud.HSL=1]="HSL",Ud[Ud.HSV=2]="HSV",Ud[Ud.XYZ=3]="XYZ",Ud[Ud.LAB=4]="LAB",Ud[Ud.LCH=5]="LCH";class Hd{constructor(e){if(null==e||0===e.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(e)}static createBalancedColorScale(e){if(null==e||0===e.length)throw new Error("The colors argument must be non-empty");const t=new Array(e.length);for(let i=0;i=1)return this.stops[this.stops.length-1].color;let i=0;for(let t=0;t=this.stops.length&&(o=this.stops.length-1),$d((e-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),t,this.stops[i].color,this.stops[o].color)}trim(e,t,i=Vd.RGB){if(e<0||t>1||t=e&&this.stops[i].position<=t&&o.push(this.stops[i]);if(0===o.length)return new Hd([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}]);o[0].position!==e&&o.unshift({color:this.getColor(e),position:e}),o[o.length-1].position!==t&&o.push({color:this.getColor(t),position:t});const r=t-e,n=new Array(o.length);for(let t=0;t=1&&(e=1);const a=this.getColor(e,o),s=i?0:1;if(Ad(a,this.getColor(s,o))<=t)return s;let l=i?0:e,c=i?e:0,d=s,u=0;for(;u<=n;){d=Math.abs(c-l)/2+l;const e=Ad(a,this.getColor(d,o));if(Math.abs(e-t)<=r)return d;e>t?i?l=d:c=d:i?c=d:l=d,u++}return d}clone(){const e=new Array(this.stops.length);for(let t=0;t{const i=e.position,o=t.position;return io?1:0}))}}class zd{constructor(e){this.config=Object.assign({},zd.defaultPaletteConfig,e),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=!1;for(const i in e)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(e[i])||(this.config[i]=e[i],t=!0):e[i]!==this.config[i]&&(this.config[i]=e[i],t=!0));return t&&this.updatePaletteColors(),t}updatePaletteColors(){const e=this.generatePaletteColorScale();for(let t=0;t=this.config.saturationAdjustmentCutoff&&(i=Pd(i,this.config.saturationLight),o=Pd(o,this.config.saturationDark)),0!==this.config.multiplyLight){const e=Ld(this.config.baseColor,i);i=$d(this.config.multiplyLight,this.config.interpolationMode,i,e)}if(0!==this.config.multiplyDark){const e=Ld(this.config.baseColor,o);o=$d(this.config.multiplyDark,this.config.interpolationMode,o,e)}if(0!==this.config.overlayLight){const e=Wd(this.config.baseColor,i);i=$d(this.config.overlayLight,this.config.interpolationMode,i,e)}if(0!==this.config.overlayDark){const e=Wd(this.config.baseColor,o);o=$d(this.config.overlayDark,this.config.interpolationMode,o,e)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new Hd([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new Hd([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new Hd([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new Hd([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}zd.defaultPaletteConfig={baseColor:dd("#808080"),steps:11,interpolationMode:Vd.RGB,scaleColorLight:new ld(1,1,1,1),scaleColorDark:new ld(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},zd.greyscalePaletteConfig={baseColor:dd("#808080"),steps:11,interpolationMode:Vd.RGB,scaleColorLight:new ld(1,1,1,1),scaleColorDark:new ld(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},zd.defaultPaletteConfig.scaleColorLight,zd.defaultPaletteConfig.scaleColorDark;class jd{constructor(e){this.palette=[],this.config=Object.assign({},jd.defaultPaletteConfig,e),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);const t=.14,i=new ld(t,t,t,1),o=new zd(Object.assign(Object.assign({},zd.greyscalePaletteConfig),{baseColor:i,baseScalePosition:86/94,steps:e})).palette,r=(Od(this.config.baseColor)+Cd(this.config.baseColor).l)/2,n=this.matchRelativeLuminanceIndex(r,o)/(e-1),a=this.matchRelativeLuminanceIndex(t,o)/(e-1),s=Cd(this.config.baseColor),l=vd(Ed.fromObject({h:s.h,s:s.s,l:t})),c=vd(Ed.fromObject({h:s.h,s:s.s,l:.06})),d=new Array(5);d[0]={position:0,color:new ld(1,1,1,1)},d[1]={position:n,color:this.config.baseColor},d[2]={position:a,color:l},d[3]={position:.99,color:c},d[4]={position:1,color:new ld(0,0,0,1)};const u=new Hd(d);this.palette=new Array(e);for(let t=0;tt.relativeLuminance?e:t,o=e.relativeLuminance>t.relativeLuminance?t:e;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}jd.defaultPaletteConfig={baseColor:dd("#808080"),steps:94};const Yd=Object.freeze({create:(e,t,i)=>new Kd(e,t,i),from:e=>new Kd(e.r,e.g,e.b)});class Kd extends ld{constructor(e,t,i){super(e,t,i,1),this.toColorString=this.toStringHexRGB,this.contrast=Zd.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=bd(this)}static fromObject(e){return new Kd(e.r,e.g,e.b)}}function qd(e,t,i=0,o=e.length-1){if(o===i)return e[i];const r=Math.floor((o-i)/2)+i;return t(e[r])?qd(e,t,i,r):qd(e,t,r+1,o)}const Xd=(-.1+Math.sqrt(.21))/2;function Qd(e){return function(e){return e.relativeLuminance<=Xd}(e)?-1:1}const Jd=Object.freeze({create:e=>eu.from(e)});class eu{constructor(e,t){this.closestIndexCache=new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,i,o){void 0===i&&(i=this.closestIndexOf(e));let r=this.swatches;const n=this.lastIndex;let a=i;return void 0===o&&(o=Qd(e)),-1===o&&(r=this.reversedSwatches,a=n-a),qd(r,(i=>Zd(e,i)>=t),a,n)}get(e){return this.swatches[e]||this.swatches[td(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(-1!==t)return this.closestIndexCache.set(e.relativeLuminance,t),t;const i=this.swatches.reduce(((t,i)=>Math.abs(i.relativeLuminance-e.relativeLuminance){const t=dd(e.toStringHexRGB());return Yd.create(t.r,t.g,t.b)}))))}}var tu,iu;(iu=tu||(tu={})).ltr="ltr",iu.rtl="rtl";const ou=Yd.create(1,1,1),ru=Yd.create(0,0,0),nu=Yd.create(.5,.5,.5),au=dd("#0078D4"),su=Yd.create(au.r,au.g,au.b);function lu(e){return Yd.create(e,e,e)}var cu,du;function uu(e,t,i,o,r,n){return Math.max(e.closestIndexOf(lu(t))+i,o,r,n)}(du=cu||(cu={}))[du.LightMode=1]="LightMode",du[du.DarkMode=.23]="DarkMode";const{create:pu}=zc,hu=pu("direction").withDefault(tu.ltr),fu=pu("disabled-opacity").withDefault(.3),gu=pu("base-height-multiplier").withDefault(8),Eu=pu("base-horizontal-spacing-multiplier").withDefault(3),Tu=pu("density").withDefault(0),mu=pu("design-unit").withDefault(4),Nu=pu("control-corner-radius").withDefault(4),_u=(pu("layer-corner-radius").withDefault(4),pu("stroke-width").withDefault(1)),Ou=pu("focus-stroke-width").withDefault(2),bu=pu("body-font").withDefault("Segoe UI, sans-serif"),Iu=pu("type-ramp-base-font-size").withDefault("14px"),Au=pu("type-ramp-base-line-height").withDefault("20px"),Cu=pu("type-ramp-minus-1-font-size").withDefault("12px"),vu=pu("type-ramp-minus-1-line-height").withDefault("16px"),Ru=pu("type-ramp-minus-2-font-size").withDefault("10px"),yu=pu("type-ramp-minus-2-line-height").withDefault("14px"),Su=pu("type-ramp-plus-1-font-size").withDefault("16px"),wu=pu("type-ramp-plus-1-line-height").withDefault("22px"),ku=pu("type-ramp-plus-2-font-size").withDefault("20px"),Mu=pu("type-ramp-plus-2-line-height").withDefault("28px"),xu=pu("type-ramp-plus-3-font-size").withDefault("24px"),Pu=pu("type-ramp-plus-3-line-height").withDefault("32px"),Du=pu("type-ramp-plus-4-font-size").withDefault("28px"),Lu=pu("type-ramp-plus-4-line-height").withDefault("36px"),Fu=pu("type-ramp-plus-5-font-size").withDefault("32px"),Wu=pu("type-ramp-plus-5-line-height").withDefault("40px"),Bu=pu("type-ramp-plus-6-font-size").withDefault("40px"),Gu=pu("type-ramp-plus-6-line-height").withDefault("52px"),Vu=pu("base-layer-luminance").withDefault(cu.LightMode),Uu=pu("accent-fill-rest-delta").withDefault(0),$u=pu("accent-fill-hover-delta").withDefault(4),Hu=pu("accent-fill-active-delta").withDefault(-5),zu=pu("accent-fill-focus-delta").withDefault(0),ju=pu("accent-foreground-rest-delta").withDefault(0),Zu=pu("accent-foreground-hover-delta").withDefault(6),Yu=pu("accent-foreground-active-delta").withDefault(-4),Ku=pu("accent-foreground-focus-delta").withDefault(0),qu=pu("neutral-fill-rest-delta").withDefault(7),Xu=pu("neutral-fill-hover-delta").withDefault(10),Qu=pu("neutral-fill-active-delta").withDefault(5),Ju=pu("neutral-fill-focus-delta").withDefault(0),ep=pu("neutral-fill-input-rest-delta").withDefault(0),tp=pu("neutral-fill-input-hover-delta").withDefault(0),ip=pu("neutral-fill-input-active-delta").withDefault(0),op=pu("neutral-fill-input-focus-delta").withDefault(0),rp=pu("neutral-fill-inverse-rest-delta").withDefault(0),np=pu("neutral-fill-inverse-hover-delta").withDefault(-3),ap=pu("neutral-fill-inverse-active-delta").withDefault(7),sp=pu("neutral-fill-inverse-focus-delta").withDefault(0),lp=pu("neutral-fill-layer-rest-delta").withDefault(3),cp=pu("neutral-fill-stealth-rest-delta").withDefault(0),dp=pu("neutral-fill-stealth-hover-delta").withDefault(5),up=pu("neutral-fill-stealth-active-delta").withDefault(3),pp=pu("neutral-fill-stealth-focus-delta").withDefault(0),hp=pu("neutral-fill-strong-rest-delta").withDefault(0),fp=pu("neutral-fill-strong-hover-delta").withDefault(8),gp=pu("neutral-fill-strong-active-delta").withDefault(-5),Ep=pu("neutral-fill-strong-focus-delta").withDefault(0),Tp=pu("neutral-stroke-rest-delta").withDefault(25),mp=pu("neutral-stroke-hover-delta").withDefault(40),Np=pu("neutral-stroke-active-delta").withDefault(16),_p=pu("neutral-stroke-focus-delta").withDefault(25),Op=pu("neutral-stroke-divider-rest-delta").withDefault(8),bp=pu("neutral-stroke-strong-hover-delta").withDefault(40),Ip=pu("neutral-stroke-strong-active-delta").withDefault(16),Ap=pu("neutral-stroke-strong-focus-delta").withDefault(25),Cp=pu({name:"neutral-palette",cssCustomPropertyName:null}).withDefault(Jd.create(nu)),vp=pu({name:"accent-palette",cssCustomPropertyName:null}).withDefault(Jd.create(su)),Rp=pu({name:"neutral-layer-card-container-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t,i){const o=td(e.closestIndexOf(lu(t))-i,0,e.swatches.length-1);return e.get(o+i)}(Cp.getValueFor(e),Vu.getValueFor(e),lp.getValueFor(e))}),yp=(pu("neutral-layer-card-container").withDefault((e=>Rp.getValueFor(e).evaluate(e))),pu({name:"neutral-layer-floating-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t,i){const o=e.closestIndexOf(lu(t))-i;return e.get(o-i)}(Cp.getValueFor(e),Vu.getValueFor(e),lp.getValueFor(e))})),Sp=(pu("neutral-layer-floating").withDefault((e=>yp.getValueFor(e).evaluate(e))),pu({name:"neutral-layer-1-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t){return e.get(e.closestIndexOf(lu(t)))}(Cp.getValueFor(e),Vu.getValueFor(e))})),wp=pu("neutral-layer-1").withDefault((e=>Sp.getValueFor(e).evaluate(e))),kp=pu({name:"neutral-layer-2-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>{return t=Cp.getValueFor(e),i=Vu.getValueFor(e),o=lp.getValueFor(e),r=qu.getValueFor(e),n=Xu.getValueFor(e),a=Qu.getValueFor(e),t.get(uu(t,i,o,r,n,a));var t,i,o,r,n,a}}),Mp=(pu("neutral-layer-2").withDefault((e=>kp.getValueFor(e).evaluate(e))),pu({name:"neutral-layer-3-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>{return t=Cp.getValueFor(e),i=Vu.getValueFor(e),o=lp.getValueFor(e),r=qu.getValueFor(e),n=Xu.getValueFor(e),a=Qu.getValueFor(e),t.get(uu(t,i,o,r,n,a)+o);var t,i,o,r,n,a}})),xp=(pu("neutral-layer-3").withDefault((e=>Mp.getValueFor(e).evaluate(e))),pu({name:"neutral-layer-4-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>{return t=Cp.getValueFor(e),i=Vu.getValueFor(e),o=lp.getValueFor(e),r=qu.getValueFor(e),n=Xu.getValueFor(e),a=Qu.getValueFor(e),t.get(uu(t,i,o,r,n,a)+2*o);var t,i,o,r,n,a}})),Pp=(pu("neutral-layer-4").withDefault((e=>xp.getValueFor(e).evaluate(e))),pu("fill-color").withDefault((e=>wp.getValueFor(e))));var Dp,Lp;(Lp=Dp||(Dp={}))[Lp.normal=4.5]="normal",Lp[Lp.large=7]="large";const Fp=pu({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>(Dp.normal,(e,t)=>function(e,t,i,o,r,n,a,s,l){const c=e.source,d=e.closestIndexOf(c),u=d+1*o,p=d+1*r,h=d+1*n;return{rest:e.get(d),hover:e.get(u),active:e.get(p),focus:e.get(h)}}(vp.getValueFor(e),Cp.getValueFor(e),t||Pp.getValueFor(e),$u.getValueFor(e),Hu.getValueFor(e),zu.getValueFor(e),qu.getValueFor(e),Xu.getValueFor(e),Qu.getValueFor(e)))(e,t)}),Wp=pu("accent-fill-rest").withDefault((e=>Fp.getValueFor(e).evaluate(e).rest)),Bp=pu("accent-fill-hover").withDefault((e=>Fp.getValueFor(e).evaluate(e).hover)),Gp=pu("accent-fill-active").withDefault((e=>Fp.getValueFor(e).evaluate(e).active)),Vp=pu("accent-fill-focus").withDefault((e=>Fp.getValueFor(e).evaluate(e).focus)),Up=e=>(t,i)=>function(e,t){return e.contrast(ou)>=t?ou:ru}(i||Wp.getValueFor(t),e),$p=pu({name:"foreground-on-accent-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Up(Dp.normal)(e,t)}),Hp=pu("foreground-on-accent-rest").withDefault((e=>$p.getValueFor(e).evaluate(e,Wp.getValueFor(e)))),zp=pu("foreground-on-accent-hover").withDefault((e=>$p.getValueFor(e).evaluate(e,Bp.getValueFor(e)))),jp=pu("foreground-on-accent-active").withDefault((e=>$p.getValueFor(e).evaluate(e,Gp.getValueFor(e)))),Zp=(pu("foreground-on-accent-focus").withDefault((e=>$p.getValueFor(e).evaluate(e,Vp.getValueFor(e)))),pu({name:"foreground-on-accent-large-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Up(Dp.large)(e,t)})),Yp=(pu("foreground-on-accent-rest-large").withDefault((e=>Zp.getValueFor(e).evaluate(e))),pu("foreground-on-accent-hover-large").withDefault((e=>Zp.getValueFor(e).evaluate(e,Bp.getValueFor(e)))),pu("foreground-on-accent-active-large").withDefault((e=>Zp.getValueFor(e).evaluate(e,Gp.getValueFor(e)))),pu("foreground-on-accent-focus-large").withDefault((e=>Zp.getValueFor(e).evaluate(e,Vp.getValueFor(e)))),e=>(t,i)=>function(e,t,i,o,r,n,a){const s=e.source,l=e.closestIndexOf(s),c=Qd(t),d=l+(1===c?Math.min(o,r):Math.max(c*o,c*r)),u=e.colorContrast(t,i,d,c),p=e.closestIndexOf(u),h=p+c*Math.abs(o-r);let f,g;return(1===c?oc*r)?(f=p,g=h):(f=h,g=p),{rest:e.get(f),hover:e.get(g),active:e.get(f+c*n),focus:e.get(f+c*a)}}(vp.getValueFor(t),i||Pp.getValueFor(t),e,ju.getValueFor(t),Zu.getValueFor(t),Yu.getValueFor(t),Ku.getValueFor(t))),Kp=pu({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Yp(Dp.normal)(e,t)}),qp=pu("accent-foreground-rest").withDefault((e=>Kp.getValueFor(e).evaluate(e).rest)),Xp=pu("accent-foreground-hover").withDefault((e=>Kp.getValueFor(e).evaluate(e).hover)),Qp=pu("accent-foreground-active").withDefault((e=>Kp.getValueFor(e).evaluate(e).active)),Jp=(pu("accent-foreground-focus").withDefault((e=>Kp.getValueFor(e).evaluate(e).focus)),pu({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,r,n){const a=e.closestIndexOf(t),s=a>=Math.max(i,o,r,n)?-1:1;return{rest:e.get(a+s*i),hover:e.get(a+s*o),active:e.get(a+s*r),focus:e.get(a+s*n)}}(Cp.getValueFor(e),t||Pp.getValueFor(e),qu.getValueFor(e),Xu.getValueFor(e),Qu.getValueFor(e),Ju.getValueFor(e))})),eh=pu("neutral-fill-rest").withDefault((e=>Jp.getValueFor(e).evaluate(e).rest)),th=pu("neutral-fill-hover").withDefault((e=>Jp.getValueFor(e).evaluate(e).hover)),ih=pu("neutral-fill-active").withDefault((e=>Jp.getValueFor(e).evaluate(e).active)),oh=(pu("neutral-fill-focus").withDefault((e=>Jp.getValueFor(e).evaluate(e).focus)),pu({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,r,n){const a=Qd(t),s=e.closestIndexOf(t);return{rest:e.get(s-a*i),hover:e.get(s-a*o),active:e.get(s-a*r),focus:e.get(s-a*n)}}(Cp.getValueFor(e),t||Pp.getValueFor(e),ep.getValueFor(e),tp.getValueFor(e),ip.getValueFor(e),op.getValueFor(e))})),rh=(pu("neutral-fill-input-rest").withDefault((e=>oh.getValueFor(e).evaluate(e).rest)),pu("neutral-fill-input-hover").withDefault((e=>oh.getValueFor(e).evaluate(e).hover)),pu("neutral-fill-input-focus").withDefault((e=>oh.getValueFor(e).evaluate(e).focus)),pu("neutral-fill-input-active").withDefault((e=>oh.getValueFor(e).evaluate(e).active)),pu({name:"neutral-fill-inverse-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,r,n){const a=Qd(t),s=e.closestIndexOf(e.colorContrast(t,14)),l=s+a*Math.abs(i-o);let c,d;return(1===a?ia*o)?(c=s,d=l):(c=l,d=s),{rest:e.get(c),hover:e.get(d),active:e.get(c+a*r),focus:e.get(c+a*n)}}(Cp.getValueFor(e),t||Pp.getValueFor(e),rp.getValueFor(e),np.getValueFor(e),ap.getValueFor(e),sp.getValueFor(e))})),nh=(pu("neutral-fill-inverse-rest").withDefault((e=>rh.getValueFor(e).evaluate(e).rest)),pu("neutral-fill-inverse-hover").withDefault((e=>rh.getValueFor(e).evaluate(e).hover)),pu("neutral-fill-inverse-active").withDefault((e=>rh.getValueFor(e).evaluate(e).active)),pu("neutral-fill-inverse-focus").withDefault((e=>rh.getValueFor(e).evaluate(e).focus)),pu({name:"neutral-fill-layer-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i){const o=e.closestIndexOf(t);return e.get(o-i)}(Cp.getValueFor(e),t||Pp.getValueFor(e),lp.getValueFor(e))})),ah=(pu("neutral-fill-layer-rest").withDefault((e=>nh.getValueFor(e).evaluate(e))),pu({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,r,n,a,s,l,c){const d=Math.max(i,o,r,n,a,s,l,c),u=e.closestIndexOf(t),p=u>=d?-1:1;return{rest:e.get(u+p*i),hover:e.get(u+p*o),active:e.get(u+p*r),focus:e.get(u+p*n)}}(Cp.getValueFor(e),t||Pp.getValueFor(e),cp.getValueFor(e),dp.getValueFor(e),up.getValueFor(e),pp.getValueFor(e),qu.getValueFor(e),Xu.getValueFor(e),Qu.getValueFor(e),Ju.getValueFor(e))})),sh=pu("neutral-fill-stealth-rest").withDefault((e=>ah.getValueFor(e).evaluate(e).rest)),lh=pu("neutral-fill-stealth-hover").withDefault((e=>ah.getValueFor(e).evaluate(e).hover)),ch=pu("neutral-fill-stealth-active").withDefault((e=>ah.getValueFor(e).evaluate(e).active)),dh=(pu("neutral-fill-stealth-focus").withDefault((e=>ah.getValueFor(e).evaluate(e).focus)),pu({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i,o,r,n){const a=Qd(t),s=e.closestIndexOf(e.colorContrast(t,4.5)),l=s+a*Math.abs(i-o);let c,d;return(1===a?ia*o)?(c=s,d=l):(c=l,d=s),{rest:e.get(c),hover:e.get(d),active:e.get(c+a*r),focus:e.get(c+a*n)}}(Cp.getValueFor(e),t||Pp.getValueFor(e),hp.getValueFor(e),fp.getValueFor(e),gp.getValueFor(e),Ep.getValueFor(e))})),uh=(pu("neutral-fill-strong-rest").withDefault((e=>dh.getValueFor(e).evaluate(e).rest)),pu("neutral-fill-strong-hover").withDefault((e=>dh.getValueFor(e).evaluate(e).hover)),pu("neutral-fill-strong-active").withDefault((e=>dh.getValueFor(e).evaluate(e).active)),pu("neutral-fill-strong-focus").withDefault((e=>dh.getValueFor(e).evaluate(e).focus)),pu({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t,i,o,r,n){const a=e.closestIndexOf(t),s=Qd(t),l=a+s*i,c=l+s*(o-i),d=l+s*(r-i),u=l+s*(n-i);return{rest:e.get(l),hover:e.get(c),active:e.get(d),focus:e.get(u)}}(Cp.getValueFor(e),Pp.getValueFor(e),Tp.getValueFor(e),mp.getValueFor(e),Np.getValueFor(e),_p.getValueFor(e))})),ph=pu("neutral-stroke-rest").withDefault((e=>uh.getValueFor(e).evaluate(e).rest)),hh=pu("neutral-stroke-hover").withDefault((e=>uh.getValueFor(e).evaluate(e).hover)),fh=pu("neutral-stroke-active").withDefault((e=>uh.getValueFor(e).evaluate(e).active)),gh=(pu("neutral-stroke-focus").withDefault((e=>uh.getValueFor(e).evaluate(e).focus)),pu({name:"neutral-stroke-divider-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>function(e,t,i){return e.get(e.closestIndexOf(t)+Qd(t)*i)}(Cp.getValueFor(e),t||Pp.getValueFor(e),Op.getValueFor(e))})),Eh=pu("neutral-stroke-divider-rest").withDefault((e=>gh.getValueFor(e).evaluate(e))),Th=pu({name:"neutral-stroke-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>function(e,t,i,o,r,n){const a=Qd(t),s=e.colorContrast(t,3),l=e.closestIndexOf(s);return{rest:s,hover:e.get(l+a*o),active:e.get(l+a*r),focus:e.get(l+a*n)}}(Cp.getValueFor(e),Pp.getValueFor(e),0,bp.getValueFor(e),Ip.getValueFor(e),Ap.getValueFor(e))}),mh=(pu("neutral-stroke-strong-rest").withDefault((e=>Th.getValueFor(e).evaluate(e).rest)),pu("neutral-stroke-strong-hover").withDefault((e=>Th.getValueFor(e).evaluate(e).hover)),pu("neutral-stroke-strong-active").withDefault((e=>Th.getValueFor(e).evaluate(e).active)),pu("neutral-stroke-strong-focus").withDefault((e=>Th.getValueFor(e).evaluate(e).focus)),pu({name:"focus-stroke-outer-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>{return t=Cp.getValueFor(e),i=Pp.getValueFor(e),t.colorContrast(i,3.5);var t,i}})),Nh=pu("focus-stroke-outer").withDefault((e=>mh.getValueFor(e).evaluate(e))),_h=pu({name:"focus-stroke-inner-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>{return t=vp.getValueFor(e),i=Pp.getValueFor(e),o=Nh.getValueFor(e),t.colorContrast(o,3.5,t.closestIndexOf(t.source),-1*Qd(i));var t,i,o}}),Oh=pu("focus-stroke-inner").withDefault((e=>_h.getValueFor(e).evaluate(e))),bh=pu({name:"neutral-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>{return t=Cp.getValueFor(e),i=Pp.getValueFor(e),t.colorContrast(i,14);var t,i}}),Ih=pu("neutral-foreground-rest").withDefault((e=>bh.getValueFor(e).evaluate(e))),Ah=pu({name:"neutral-foreground-hint-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>{return t=Cp.getValueFor(e),i=Pp.getValueFor(e),t.colorContrast(i,4.5);var t,i}}),Ch=(pu("neutral-foreground-hint").withDefault((e=>Ah.getValueFor(e).evaluate(e))),{toView(e){var t;return null==e?null:null===(t=e)||void 0===t?void 0:t.toColorString()},fromView(e){if(null==e)return null;const t=dd(e);return t?Yd.create(t.r,t.g,t.b):null}}),vh=I` :host { background-color: ${Pp}; color: ${Ih}; } `.withBehaviors(pd(I` :host { background-color: ${fd.Canvas}; box-shadow: 0 0 0 1px ${fd.CanvasText}; color: ${fd.CanvasText}; } `));function Rh(e){return(t,i)=>{t[i+"Changed"]=function(t,i){null!=i?e.setValueFor(this,i):e.deleteValueFor(this)}}}class yh extends Tc{constructor(){super(),this.noPaint=!1,R.getNotifier(this).subscribe({handleChange:this.noPaintChanged.bind(this)},"fillColor")}noPaintChanged(){this.noPaint||void 0===this.fillColor?this.$fastController.removeStyles(vh):this.$fastController.addStyles(vh)}accentBaseColorChanged(e,t){null!=t?vp.setValueFor(this,Jd.create(t)):vp.deleteValueFor(this)}neutralBaseColorChanged(e,t){null!=t?Cp.setValueFor(this,Jd.create(t)):Cp.deleteValueFor(this)}}ed([he({attribute:"no-paint",mode:"boolean"})],yh.prototype,"noPaint",void 0),ed([he({attribute:"fill-color",converter:Ch}),Rh(Pp)],yh.prototype,"fillColor",void 0),ed([he({attribute:"accent-base-color",converter:Ch,mode:"fromView"})],yh.prototype,"accentBaseColor",void 0),ed([he({attribute:"neutral-base-color",converter:Ch,mode:"fromView"})],yh.prototype,"neutralBaseColor",void 0),ed([y,Rh(Cp)],yh.prototype,"neutralPalette",void 0),ed([y,Rh(vp)],yh.prototype,"accentPalette",void 0),ed([he({converter:ue}),Rh(Tu)],yh.prototype,"density",void 0),ed([he({attribute:"design-unit",converter:ue}),Rh(mu)],yh.prototype,"designUnit",void 0),ed([he({attribute:"direction"}),Rh(hu)],yh.prototype,"direction",void 0),ed([he({attribute:"base-height-multiplier",converter:ue}),Rh(gu)],yh.prototype,"baseHeightMultiplier",void 0),ed([he({attribute:"base-horizontal-spacing-multiplier",converter:ue}),Rh(Eu)],yh.prototype,"baseHorizontalSpacingMultiplier",void 0),ed([he({attribute:"control-corner-radius",converter:ue}),Rh(Nu)],yh.prototype,"controlCornerRadius",void 0),ed([he({attribute:"stroke-width",converter:ue}),Rh(_u)],yh.prototype,"strokeWidth",void 0),ed([he({attribute:"focus-stroke-width",converter:ue}),Rh(Ou)],yh.prototype,"focusStrokeWidth",void 0),ed([he({attribute:"disabled-opacity",converter:ue}),Rh(fu)],yh.prototype,"disabledOpacity",void 0),ed([he({attribute:"type-ramp-minus-2-font-size"}),Rh(Ru)],yh.prototype,"typeRampMinus2FontSize",void 0),ed([he({attribute:"type-ramp-minus-2-line-height"}),Rh(yu)],yh.prototype,"typeRampMinus2LineHeight",void 0),ed([he({attribute:"type-ramp-minus-1-font-size"}),Rh(Cu)],yh.prototype,"typeRampMinus1FontSize",void 0),ed([he({attribute:"type-ramp-minus-1-line-height"}),Rh(vu)],yh.prototype,"typeRampMinus1LineHeight",void 0),ed([he({attribute:"type-ramp-base-font-size"}),Rh(Iu)],yh.prototype,"typeRampBaseFontSize",void 0),ed([he({attribute:"type-ramp-base-line-height"}),Rh(Au)],yh.prototype,"typeRampBaseLineHeight",void 0),ed([he({attribute:"type-ramp-plus-1-font-size"}),Rh(Su)],yh.prototype,"typeRampPlus1FontSize",void 0),ed([he({attribute:"type-ramp-plus-1-line-height"}),Rh(wu)],yh.prototype,"typeRampPlus1LineHeight",void 0),ed([he({attribute:"type-ramp-plus-2-font-size"}),Rh(ku)],yh.prototype,"typeRampPlus2FontSize",void 0),ed([he({attribute:"type-ramp-plus-2-line-height"}),Rh(Mu)],yh.prototype,"typeRampPlus2LineHeight",void 0),ed([he({attribute:"type-ramp-plus-3-font-size"}),Rh(xu)],yh.prototype,"typeRampPlus3FontSize",void 0),ed([he({attribute:"type-ramp-plus-3-line-height"}),Rh(Pu)],yh.prototype,"typeRampPlus3LineHeight",void 0),ed([he({attribute:"type-ramp-plus-4-font-size"}),Rh(Du)],yh.prototype,"typeRampPlus4FontSize",void 0),ed([he({attribute:"type-ramp-plus-4-line-height"}),Rh(Lu)],yh.prototype,"typeRampPlus4LineHeight",void 0),ed([he({attribute:"type-ramp-plus-5-font-size"}),Rh(Fu)],yh.prototype,"typeRampPlus5FontSize",void 0),ed([he({attribute:"type-ramp-plus-5-line-height"}),Rh(Wu)],yh.prototype,"typeRampPlus5LineHeight",void 0),ed([he({attribute:"type-ramp-plus-6-font-size"}),Rh(Bu)],yh.prototype,"typeRampPlus6FontSize",void 0),ed([he({attribute:"type-ramp-plus-6-line-height"}),Rh(Gu)],yh.prototype,"typeRampPlus6LineHeight",void 0),ed([he({attribute:"accent-fill-rest-delta",converter:ue}),Rh(Uu)],yh.prototype,"accentFillRestDelta",void 0),ed([he({attribute:"accent-fill-hover-delta",converter:ue}),Rh($u)],yh.prototype,"accentFillHoverDelta",void 0),ed([he({attribute:"accent-fill-active-delta",converter:ue}),Rh(Hu)],yh.prototype,"accentFillActiveDelta",void 0),ed([he({attribute:"accent-fill-focus-delta",converter:ue}),Rh(zu)],yh.prototype,"accentFillFocusDelta",void 0),ed([he({attribute:"accent-foreground-rest-delta",converter:ue}),Rh(ju)],yh.prototype,"accentForegroundRestDelta",void 0),ed([he({attribute:"accent-foreground-hover-delta",converter:ue}),Rh(Zu)],yh.prototype,"accentForegroundHoverDelta",void 0),ed([he({attribute:"accent-foreground-active-delta",converter:ue}),Rh(Yu)],yh.prototype,"accentForegroundActiveDelta",void 0),ed([he({attribute:"accent-foreground-focus-delta",converter:ue}),Rh(Ku)],yh.prototype,"accentForegroundFocusDelta",void 0),ed([he({attribute:"neutral-fill-rest-delta",converter:ue}),Rh(qu)],yh.prototype,"neutralFillRestDelta",void 0),ed([he({attribute:"neutral-fill-hover-delta",converter:ue}),Rh(Xu)],yh.prototype,"neutralFillHoverDelta",void 0),ed([he({attribute:"neutral-fill-active-delta",converter:ue}),Rh(Qu)],yh.prototype,"neutralFillActiveDelta",void 0),ed([he({attribute:"neutral-fill-focus-delta",converter:ue}),Rh(Ju)],yh.prototype,"neutralFillFocusDelta",void 0),ed([he({attribute:"neutral-fill-input-rest-delta",converter:ue}),Rh(ep)],yh.prototype,"neutralFillInputRestDelta",void 0),ed([he({attribute:"neutral-fill-input-hover-delta",converter:ue}),Rh(tp)],yh.prototype,"neutralFillInputHoverDelta",void 0),ed([he({attribute:"neutral-fill-input-active-delta",converter:ue}),Rh(ip)],yh.prototype,"neutralFillInputActiveDelta",void 0),ed([he({attribute:"neutral-fill-input-focus-delta",converter:ue}),Rh(op)],yh.prototype,"neutralFillInputFocusDelta",void 0),ed([he({attribute:"neutral-fill-layer-rest-delta",converter:ue}),Rh(lp)],yh.prototype,"neutralFillLayerRestDelta",void 0),ed([he({attribute:"neutral-fill-stealth-rest-delta",converter:ue}),Rh(cp)],yh.prototype,"neutralFillStealthRestDelta",void 0),ed([he({attribute:"neutral-fill-stealth-hover-delta",converter:ue}),Rh(dp)],yh.prototype,"neutralFillStealthHoverDelta",void 0),ed([he({attribute:"neutral-fill-stealth-active-delta",converter:ue}),Rh(up)],yh.prototype,"neutralFillStealthActiveDelta",void 0),ed([he({attribute:"neutral-fill-stealth-focus-delta",converter:ue}),Rh(pp)],yh.prototype,"neutralFillStealthFocusDelta",void 0),ed([he({attribute:"neutral-fill-strong-hover-delta",converter:ue}),Rh(fp)],yh.prototype,"neutralFillStrongHoverDelta",void 0),ed([he({attribute:"neutral-fill-strong-active-delta",converter:ue}),Rh(gp)],yh.prototype,"neutralFillStrongActiveDelta",void 0),ed([he({attribute:"neutral-fill-strong-focus-delta",converter:ue}),Rh(Ep)],yh.prototype,"neutralFillStrongFocusDelta",void 0),ed([he({attribute:"base-layer-luminance",converter:ue}),Rh(Vu)],yh.prototype,"baseLayerLuminance",void 0),ed([he({attribute:"neutral-stroke-divider-rest-delta",converter:ue}),Rh(Op)],yh.prototype,"neutralStrokeDividerRestDelta",void 0),ed([he({attribute:"neutral-stroke-rest-delta",converter:ue}),Rh(Tp)],yh.prototype,"neutralStrokeRestDelta",void 0),ed([he({attribute:"neutral-stroke-hover-delta",converter:ue}),Rh(mp)],yh.prototype,"neutralStrokeHoverDelta",void 0),ed([he({attribute:"neutral-stroke-active-delta",converter:ue}),Rh(Np)],yh.prototype,"neutralStrokeActiveDelta",void 0),ed([he({attribute:"neutral-stroke-focus-delta",converter:ue}),Rh(_p)],yh.prototype,"neutralStrokeFocusDelta",void 0);const Sh=yh.compose({baseName:"design-system-provider",template:re` `,styles:I` ${hd("block")} `});class wh{}kl([he({attribute:"aria-atomic"})],wh.prototype,"ariaAtomic",void 0),kl([he({attribute:"aria-busy"})],wh.prototype,"ariaBusy",void 0),kl([he({attribute:"aria-controls"})],wh.prototype,"ariaControls",void 0),kl([he({attribute:"aria-current"})],wh.prototype,"ariaCurrent",void 0),kl([he({attribute:"aria-describedby"})],wh.prototype,"ariaDescribedby",void 0),kl([he({attribute:"aria-details"})],wh.prototype,"ariaDetails",void 0),kl([he({attribute:"aria-disabled"})],wh.prototype,"ariaDisabled",void 0),kl([he({attribute:"aria-errormessage"})],wh.prototype,"ariaErrormessage",void 0),kl([he({attribute:"aria-flowto"})],wh.prototype,"ariaFlowto",void 0),kl([he({attribute:"aria-haspopup"})],wh.prototype,"ariaHaspopup",void 0),kl([he({attribute:"aria-hidden"})],wh.prototype,"ariaHidden",void 0),kl([he({attribute:"aria-invalid"})],wh.prototype,"ariaInvalid",void 0),kl([he({attribute:"aria-keyshortcuts"})],wh.prototype,"ariaKeyshortcuts",void 0),kl([he({attribute:"aria-label"})],wh.prototype,"ariaLabel",void 0),kl([he({attribute:"aria-labelledby"})],wh.prototype,"ariaLabelledby",void 0),kl([he({attribute:"aria-live"})],wh.prototype,"ariaLive",void 0),kl([he({attribute:"aria-owns"})],wh.prototype,"ariaOwns",void 0),kl([he({attribute:"aria-relevant"})],wh.prototype,"ariaRelevant",void 0),kl([he({attribute:"aria-roledescription"})],wh.prototype,"ariaRoledescription",void 0);class kh{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Mh(e){return new P("fast-ref",kh,e)}class xh{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Ph=(e,t)=>re` t.end?"end":void 0} > ${t.end||""} `,Dh=(e,t)=>re` ${t.start||""} `;function Lh(e,...t){const i=ce.locate(e);t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{"constructor"!==i&&Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i))})),ce.locate(t).forEach((e=>i.push(e)))}))}re` `,re` `;class Fh extends Tc{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{var e;null===(e=this.control)||void 0===e||e.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}kl([he],Fh.prototype,"download",void 0),kl([he],Fh.prototype,"href",void 0),kl([he],Fh.prototype,"hreflang",void 0),kl([he],Fh.prototype,"ping",void 0),kl([he],Fh.prototype,"referrerpolicy",void 0),kl([he],Fh.prototype,"rel",void 0),kl([he],Fh.prototype,"target",void 0),kl([he],Fh.prototype,"type",void 0),kl([y],Fh.prototype,"defaultSlottedContent",void 0);class Wh{}kl([he({attribute:"aria-expanded"})],Wh.prototype,"ariaExpanded",void 0),Lh(Wh,wh),Lh(Fh,xh,Wh);class Bh extends class{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=R.getAccessors(e).some((e=>e.name===t)),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(n),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Gh(e){return"string"==typeof e&&(e={property:e}),new P("fast-slotted",Bh,e)}let Vh;const Uh=function(){if("boolean"==typeof Vh)return Vh;if("undefined"==typeof window||!window.document||!window.document.createElement)return Vh=!1,Vh;const e=document.createElement("style"),t=function(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Vh=!0}catch(e){Vh=!1}finally{document.head.removeChild(e)}return Vh}()?"focus-visible":"focus",$h=(function(e,...t){const{styles:i,behaviors:o}=b(e,t);return new A(i,o)})`(${gu} + ${Tu}) * ${mu}`,Hh=(e,t)=>I` ${hd("inline-flex")} :host { font-family: ${bu}; outline: none; font-size: ${Iu}; line-height: ${Au}; height: calc(${$h} * 1px); min-width: calc(${$h} * 1px); background-color: ${eh}; color: ${Ih}; border-radius: calc(${Nu} * 1px); fill: currentcolor; cursor: pointer; } .control { background: transparent; height: inherit; flex-grow: 1; box-sizing: border-box; display: inline-flex; justify-content: center; align-items: center; padding: 0 calc((10 + (${mu} * 2 * ${Tu})) * 1px); white-space: nowrap; outline: none; text-decoration: none; border: calc(${_u} * 1px) solid transparent; color: inherit; border-radius: inherit; fill: inherit; cursor: inherit; font-family: inherit; } .control, .end, .start { font: inherit; } .control.icon-only { padding: 0; line-height: 0; } :host(:hover) { background-color: ${th}; } :host(:active) { background-color: ${ih}; } .control:${Uh} { border: calc(${_u} * 1px) solid ${Nh}; box-shadow: 0 0 0 calc((${Ou} - ${_u}) * 1px) ${Nh}; } .control::-moz-focus-inner { border: 0; } .content { pointer-events: none; } .start, .end { display: flex; pointer-events: none; } ::slotted(svg) { ${""} width: 16px; height: 16px; pointer-events: none; } .start { margin-inline-end: 11px; } .end { margin-inline-start: 11px; } `.withBehaviors(pd(I` :host, :host([appearance="neutral"]) .control { background-color: ${fd.ButtonFace}; border-color: ${fd.ButtonText}; color: ${fd.ButtonText}; fill: currentcolor; } :host(:not([disabled][href]):hover), :host([appearance="neutral"]:not([disabled]):hover) .control { forced-color-adjust: none; background-color: ${fd.Highlight}; color: ${fd.HighlightText}; } .control:${Uh}, :host([appearance="outline"]) .control:${Uh}, :host([appearance="neutral"]:${Uh}) .control { forced-color-adjust: none; background-color: ${fd.Highlight}; border-color: ${fd.ButtonText}; box-shadow: 0 0 0 calc((${Ou} - ${_u}) * 1px) ${fd.ButtonText}; color: ${fd.HighlightText}; } .control:not([disabled]):hover, :host([appearance="outline"]) .control:hover { border-color: ${fd.ButtonText}; } :host([href]) .control { border-color: ${fd.LinkText}; color: ${fd.LinkText}; } :host([href]) .control:hover, :host(.neutral[href]) .control:hover, :host(.outline[href]) .control:hover, :host([href]) .control:${Uh}{ forced-color-adjust: none; background: ${fd.ButtonFace}; border-color: ${fd.LinkText}; box-shadow: 0 0 0 1px ${fd.LinkText} inset; color: ${fd.LinkText}; fill: currentcolor; } `)),zh=I` :host([appearance='accent']) { background: ${Wp}; color: ${Hp}; } :host([appearance='accent']:hover) { background: ${Bp}; color: ${zp}; } :host([appearance='accent']:active) .control:active { background: ${Gp}; color: ${jp}; } :host([appearance="accent"]) .control:${Uh} { box-shadow: 0 0 0 calc(${Ou} * 1px) inset ${Oh}, 0 0 0 calc((${Ou} - ${_u}) * 1px) ${Nh}; } `.withBehaviors(pd(I` :host([appearance='accent']) .control { forced-color-adjust: none; background: ${fd.Highlight}; color: ${fd.HighlightText}; } :host([appearance='accent']) .control:hover, :host([appearance='accent']:active) .control:active { background: ${fd.HighlightText}; border-color: ${fd.Highlight}; color: ${fd.Highlight}; } :host([appearance="accent"]) .control:${Uh} { border-color: ${fd.ButtonText}; box-shadow: 0 0 0 2px ${fd.HighlightText} inset; } :host([appearance='accent'][href]) .control { background: ${fd.LinkText}; color: ${fd.HighlightText}; } :host([appearance='accent'][href]) .control:hover { background: ${fd.ButtonFace}; border-color: ${fd.LinkText}; box-shadow: none; color: ${fd.LinkText}; fill: currentcolor; } :host([appearance="accent"][href]) .control:${Uh} { border-color: ${fd.LinkText}; box-shadow: 0 0 0 2px ${fd.HighlightText} inset; } `)),jh=I` :host([appearance='hypertext']) { height: auto; font-size: inherit; line-height: inherit; background: transparent; min-width: 0; } :host([appearance='hypertext']) .control { display: inline; padding: 0; border: none; box-shadow: none; border-radius: 0; line-height: 1; } :host a.control:not(:link) { background-color: transparent; cursor: default; } :host([appearance='hypertext']) .control:link, :host([appearance='hypertext']) .control:visited { background: transparent; color: ${qp}; border-bottom: calc(${_u} * 1px) solid ${qp}; } :host([appearance='hypertext']) .control:hover { border-bottom-color: ${Xp}; } :host([appearance='hypertext']) .control:active { border-bottom-color: ${Qp}; } :host([appearance="hypertext"]) .control:${Uh} { border-bottom: calc(${Ou} * 1px) solid ${Nh}; margin-bottom: calc(calc(${_u} - ${Ou}) * 1px); } `.withBehaviors(pd(I` :host([appearance="hypertext"]) .control:${Uh} { color: ${fd.LinkText}; border-bottom-color: ${fd.LinkText}; } `)),Zh=I` :host([appearance='lightweight']) { background: transparent; color: ${qp}; } :host([appearance='lightweight']) .control { padding: 0; height: initial; border: none; box-shadow: none; border-radius: 0; } :host([appearance='lightweight']:hover) { color: ${Xp}; } :host([appearance='lightweight']:active) { color: ${Qp}; } :host([appearance='lightweight']) .content { position: relative; } :host([appearance='lightweight']) .content::before { content: ''; display: block; height: calc(${_u} * 1px); position: absolute; top: calc(1em + 3px); width: 100%; } :host([appearance='lightweight']:hover) .content::before { background: ${Xp}; } :host([appearance='lightweight']:active) .content::before { background: ${Qp}; } :host([appearance="lightweight"]) .control:${Uh} .content::before { background: ${Ih}; height: calc(${Ou} * 1px); } `.withBehaviors(pd(I` :host([appearance='lightweight']) { color: ${fd.ButtonText}; } :host([appearance="lightweight"]) .control:hover, :host([appearance="lightweight"]) .control:${Uh} { forced-color-adjust: none; background: ${fd.ButtonFace}; color: ${fd.Highlight}; } :host([appearance="lightweight"]) .control:hover .content::before, :host([appearance="lightweight"]) .control:${Uh} .content::before { background: ${fd.Highlight}; } :host([appearance="lightweight"][href]) .control:hover, :host([appearance="lightweight"][href]) .control:${Uh} { background: ${fd.ButtonFace}; box-shadow: none; color: ${fd.LinkText}; } :host([appearance="lightweight"][href]) .control:hover .content::before, :host([appearance="lightweight"][href]) .control:${Uh} .content::before { background: ${fd.LinkText}; } `)),Yh=I` :host([appearance='outline']) { background: transparent; border-color: ${ph}; } :host([appearance='outline']:hover) { border-color: ${hh}; } :host([appearance='outline']:active) { border-color: ${fh}; } :host([appearance='outline']) .control { border-color: inherit; } :host([appearance="outline"]) .control:${Uh} { box-shadow: 0 0 0 calc((${Ou} - ${_u}) * 1px) ${Nh}; border-color: ${Nh}; } `.withBehaviors(pd(I` :host([appearance='outline']) { border-color: ${fd.ButtonText}; } :host([appearance='outline'][href]) { border-color: ${fd.LinkText}; } `)),Kh=I` :host([appearance='stealth']) { background: ${sh}; } :host([appearance='stealth']:hover) { background: ${lh}; } :host([appearance='stealth']:active) { background: ${ch}; } `.withBehaviors(pd(I` :host([appearance='stealth']), :host([appearance='stealth']) .control { forced-color-adjust: none; background: ${fd.ButtonFace}; border-color: transparent; color: ${fd.ButtonText}; fill: currentcolor; } :host([appearance='stealth']:hover) .control { background: ${fd.Highlight}; border-color: ${fd.Highlight}; color: ${fd.HighlightText}; fill: currentcolor; } :host([appearance="stealth"]:${Uh}) .control { background: ${fd.Highlight}; box-shadow: 0 0 0 1px ${fd.Highlight}; color: ${fd.HighlightText}; fill: currentcolor; } :host([appearance='stealth'][href]) .control { color: ${fd.LinkText}; } :host([appearance="stealth"]:hover[href]) .control, :host([appearance="stealth"]:${Uh}[href]) .control { background: ${fd.LinkText}; border-color: ${fd.LinkText}; color: ${fd.HighlightText}; fill: currentcolor; } :host([appearance="stealth"]:${Uh}[href]) .control { box-shadow: 0 0 0 1px ${fd.LinkText}; } `));class qh{constructor(e,t,i){this.propertyName=e,this.value=t,this.styles=i}bind(e){R.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){R.getNotifier(e).unsubscribe(this,this.propertyName),e.$fastController.removeStyles(this.styles)}handleChange(e,t){e[t]===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}}function Xh(e,t){return new qh("appearance",e,t)}class Qh extends Fh{appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const e=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));1===e.length&&e[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}ed([he],Qh.prototype,"appearance",void 0);const Jh=Qh.compose({baseName:"anchor",baseClass:Fh,template:(e,t)=>re` ${Dh(0,t)} ${Ph(0,t)} `,styles:(e,t)=>I` ${Hh()} `.withBehaviors(Xh("accent",zh),Xh("hypertext",jh),Xh("lightweight",Zh),Xh("outline",Yh),Xh("stealth",Kh)),shadowOptions:{delegatesFocus:!0}});class ef extends Tc{constructor(){super(...arguments),this.role="separator",this.orientation="horizontal"}}kl([he],ef.prototype,"role",void 0),kl([he],ef.prototype,"orientation",void 0);const tf=ef.compose({baseName:"divider",template:(e,t)=>re` `,styles:(e,t)=>I` ${hd("block")} :host { box-sizing: content-box; height: 0; margin: calc(${mu} * 1px) 0; border: none; border-top: calc(${_u} * 1px) solid ${Eh}; } `});var of,rf;(rf=of||(of={}))[rf.alt=18]="alt",rf[rf.arrowDown=40]="arrowDown",rf[rf.arrowLeft=37]="arrowLeft",rf[rf.arrowRight=39]="arrowRight",rf[rf.arrowUp=38]="arrowUp",rf[rf.back=8]="back",rf[rf.backSlash=220]="backSlash",rf[rf.break=19]="break",rf[rf.capsLock=20]="capsLock",rf[rf.closeBracket=221]="closeBracket",rf[rf.colon=186]="colon",rf[rf.colon2=59]="colon2",rf[rf.comma=188]="comma",rf[rf.ctrl=17]="ctrl",rf[rf.delete=46]="delete",rf[rf.end=35]="end",rf[rf.enter=13]="enter",rf[rf.equals=187]="equals",rf[rf.equals2=61]="equals2",rf[rf.equals3=107]="equals3",rf[rf.escape=27]="escape",rf[rf.forwardSlash=191]="forwardSlash",rf[rf.function1=112]="function1",rf[rf.function10=121]="function10",rf[rf.function11=122]="function11",rf[rf.function12=123]="function12",rf[rf.function2=113]="function2",rf[rf.function3=114]="function3",rf[rf.function4=115]="function4",rf[rf.function5=116]="function5",rf[rf.function6=117]="function6",rf[rf.function7=118]="function7",rf[rf.function8=119]="function8",rf[rf.function9=120]="function9",rf[rf.home=36]="home",rf[rf.insert=45]="insert",rf[rf.menu=93]="menu",rf[rf.minus=189]="minus",rf[rf.minus2=109]="minus2",rf[rf.numLock=144]="numLock",rf[rf.numPad0=96]="numPad0",rf[rf.numPad1=97]="numPad1",rf[rf.numPad2=98]="numPad2",rf[rf.numPad3=99]="numPad3",rf[rf.numPad4=100]="numPad4",rf[rf.numPad5=101]="numPad5",rf[rf.numPad6=102]="numPad6",rf[rf.numPad7=103]="numPad7",rf[rf.numPad8=104]="numPad8",rf[rf.numPad9=105]="numPad9",rf[rf.numPadDivide=111]="numPadDivide",rf[rf.numPadDot=110]="numPadDot",rf[rf.numPadMinus=109]="numPadMinus",rf[rf.numPadMultiply=106]="numPadMultiply",rf[rf.numPadPlus=107]="numPadPlus",rf[rf.openBracket=219]="openBracket",rf[rf.pageDown=34]="pageDown",rf[rf.pageUp=33]="pageUp",rf[rf.period=190]="period",rf[rf.print=44]="print",rf[rf.quote=222]="quote",rf[rf.scrollLock=145]="scrollLock",rf[rf.shift=16]="shift",rf[rf.space=32]="space",rf[rf.tab=9]="tab",rf[rf.tilde=192]="tilde",rf[rf.windowsLeft=91]="windowsLeft",rf[rf.windowsOpera=219]="windowsOpera",rf[rf.windowsRight=92]="windowsRight";const nf="form-associated-proxy",af="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,sf=new WeakMap;class lf extends Tc{}class cf extends(function(e){const t=class extends e{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return af}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=e?t.concat(Array.from(e)):t;return Object.freeze(i)}return n}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),h.queueUpdate((()=>this.classList.toggle("disabled",this.disabled)))}nameChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),h.queueUpdate((()=>this.classList.toggle("required",this.required))),this.validate()}get elementInternals(){if(!af)return null;let e=sf.get(this);return e||(e=this.attachInternals(),sf.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach((e=>this.proxy.removeEventListener(e,this.stopPropagation))),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,i){this.elementInternals?this.elementInternals.setValidity(e,t,i):"string"==typeof t&&this.proxy.setCustomValidity(t)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((e=>this.proxy.addEventListener(e,this.stopPropagation))),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",nf),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",nf)),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}_keypressHandler(e){if("Enter"===e.key&&this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");null==e||e.click()}}stopPropagation(e){e.stopPropagation()}};return he({mode:"boolean"})(t.prototype,"disabled"),he({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),he({attribute:"current-value"})(t.prototype,"currentValue"),he(t.prototype,"name"),he({mode:"boolean"})(t.prototype,"required"),y(t.prototype,"value"),t}(lf)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class df extends cf{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&(null===(t=this.defaultSlottedContent)||void 0===t?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;null===(e=this.form)||void 0===e||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.addEventListener("click",this.handleClick)}))}disconnectedCallback(){var e;super.disconnectedCallback();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.removeEventListener("click",this.handleClick)}))}}kl([he({mode:"boolean"})],df.prototype,"autofocus",void 0),kl([he({attribute:"form"})],df.prototype,"formId",void 0),kl([he],df.prototype,"formaction",void 0),kl([he],df.prototype,"formenctype",void 0),kl([he],df.prototype,"formmethod",void 0),kl([he({mode:"boolean"})],df.prototype,"formnovalidate",void 0),kl([he],df.prototype,"formtarget",void 0),kl([he],df.prototype,"type",void 0),kl([y],df.prototype,"defaultSlottedContent",void 0);class uf{}kl([he({attribute:"aria-expanded"})],uf.prototype,"ariaExpanded",void 0),kl([he({attribute:"aria-pressed"})],uf.prototype,"ariaPressed",void 0),Lh(uf,wh),Lh(df,xh,uf);class pf extends df{appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const e=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));1===e.length&&e[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}ed([he],pf.prototype,"appearance",void 0);const hf=pf.compose({baseName:"button",baseClass:df,template:(e,t)=>re` `,styles:(e,t)=>I` :host([disabled]), :host([disabled]:hover), :host([disabled]:active) { opacity: ${fu}; background-color: ${eh}; cursor: ${"not-allowed"}; } ${Hh()} `.withBehaviors(pd(I` :host([disabled]), :host([disabled]:hover), :host([disabled]:active), :host([disabled]) .control, :host([disabled]) .control:hover, :host([appearance='neutral'][disabled]:hover) .control { forced-color-adjust: none; background-color: ${fd.ButtonFace}; border-color: ${fd.GrayText}; color: ${fd.GrayText}; opacity: 1; } `),Xh("accent",I` :host([appearance='accent'][disabled]), :host([appearance='accent'][disabled]:hover), :host([appearance='accent'][disabled]:active) { background: ${Wp}; } ${zh} `.withBehaviors(pd(I` :host([appearance='accent'][disabled]) .control, :host([appearance='accent'][disabled]) .control:hover { background: ${fd.ButtonFace}; border-color: ${fd.GrayText}; color: ${fd.GrayText}; } `))),Xh("lightweight",I` :host([appearance='lightweight'][disabled]:hover), :host([appearance='lightweight'][disabled]:active) { background-color: transparent; color: ${qp}; } :host([appearance='lightweight'][disabled]) .content::before, :host([appearance='lightweight'][disabled]:hover) .content::before, :host([appearance='lightweight'][disabled]:active) .content::before { background: transparent; } ${Zh} `.withBehaviors(pd(I` :host([appearance='lightweight'][disabled]) .control { forced-color-adjust: none; color: ${fd.GrayText}; } :host([appearance='lightweight'][disabled]) .control:hover .content::before { background: none; } `))),Xh("outline",I` :host([appearance='outline'][disabled]:hover), :host([appearance='outline'][disabled]:active) { background: transparent; border-color: ${ph}; } ${Yh} `.withBehaviors(pd(I` :host([appearance='outline'][disabled]) .control { border-color: ${fd.GrayText}; } `))),Xh("stealth",I` :host([appearance='stealth'][disabled]), :host([appearance='stealth'][disabled]:hover), :host([appearance='stealth'][disabled]:active) { background: ${sh}; } ${Kh} `.withBehaviors(pd(I` :host([appearance='stealth'][disabled]), :host([appearance='stealth'][disabled]:hover) { background: ${fd.ButtonFace}; } :host([appearance='stealth'][disabled]) .control { background: ${fd.ButtonFace}; border-color: transparent; color: ${fd.GrayText}; } `)))),shadowOptions:{delegatesFocus:!0}}),ff=(e,t)=>new Intl.NumberFormat(e,{style:"currency",...t}),gf=(ff("en-US",{currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}),ff(navigator.language,{currency:"USD"})),Ef=new Intl.NumberFormat;var Tf=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};const mf=I` .rewardsRowStyle { padding: 14px 14px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'icon points link'; column-gap: 12px; } .rewardsRowStyle:hover, :focus { background-color: ${An.buttonBackgroundHover}; outline: 0; text-decoration: none !important; } @media (prefers-color-scheme: dark) { .rewardsRowStyle:hover, :focus { background-color: ${An.darkModeButtonBackgroundHover}; outline: 0; } } @media screen and (-ms-high-contrast: active) { .rewardsRowStyle:hover, :focus { background-color: highlight; outline: 0; } } .rewardsIcon { grid-area: icon; width: 36px; height: 36px; border-radius: 6px; box-sizing: border-box; background-color: rgba(4, 115, 206, 0.08); display: inline-grid; justify-content: center; align-content: center; } @media (prefers-color-scheme: dark) { .rewardsIcon { background-color: rgb(76, 89, 99); } .rewardsIcon path { fill: ${An.darkModeNormalText}; } } .rewardsLabel { font-size: 12px; justify-self: start; align-self: start; } .rewardPoints { font-weight: 600; font-size: 14px; justify-self: start; align-self: end; } .rewardsLink { font-size: 12px; line-height: 16px; color: #115ea3; justify-self: end; align-self: end; text-decoration: none; } @media (prefers-color-scheme: dark) { .rewardsLink { color: #479ef5; border-bottom-color: #479ef5; } } .rewardsLink:hover, .rewardsLink:focus { background: none !important; text-decoration: underline !important; } `,Nf=re` `,_f=re` `,Of=re` ${le((e=>e.isVisible),re`
e.onActionLinkClick(t.event)} @keydown=${(e,t)=>e.onActionAreaKeyDown(t.event)} >
${e=>e.rewards?.data?.is_give_mode?_f:Nf}
`)} `;let bf=class extends Ie{constructor(){super(),this._isvisible=!1,Bs()&&(this.rewards=Ls(ws()))}get rewards(){return R.track(this,"rewards"),this._rewards}set rewards(e){this._rewards=e,R.notify(this,"rewards"),this.isVisible=ks(this._rewards?.data),this.isVisible&&(As(Is.kWalletCardRewardsImpression),Ss(this._rewards.event_type)?As(Is.kWalletCardRewardsImpression_FromCache):As(Is.kWalletCardRewardsImpression_NoCache),this._rewards?.data?.rewards_points>0?(this.actionText=_s.getString("miniWalletRewardsRedeemButtonText","Redeem"),As(Is.kWalletCardRewardsRedeemLinkImpression)):(this.actionText=_s.getString("miniWalletRewardsEarnButtonText","Earn"),As(Is.kWalletCardRewardsEarnLinkImpression)),this._rewards?.data?.is_give_mode?As(Is.kWalletCardRewardsImpression_GiveMode):As(Is.kWalletCardRewardsImpression_NonGiveMode))}get isVisible(){return R.track(this,"isVisible"),this._isvisible}set isVisible(e){this._isvisible=e,R.notify(this,"isVisible")}onActionAreaKeyDown(e){return e.key!==Ce&&e.key!==ve||this.onActionLinkClick(e),!0}onActionLinkClick(e){As(Is.kWalletCardRewardsClicked),this.rewards?.data.rewards_points>0?(As(Is.kWalletCardRewardsRedeemLinkClicked),this._rewards?.data?.is_give_mode?Dt.navigateToUrl(Re.microsoftRewardsGiveDashboardURL):Dt.navigateToUrl(Re.microsoftRewardsRedeemURL)):(As(Is.kWalletCardRewardsEarnLinkClicked),Dt.navigateToUrl(Re.microsoftRewardsDashboardURL)),this._rewards?.data?.is_give_mode?As(Is.kWalletCardRewardsClicked_GiveMode):As(Is.kWalletCardRewardsClicked_NonGiveMode),e.stopPropagation()}};Tf([y],bf.prototype,"actionText",void 0),bf=Tf([Ae({name:"rewards-row",template:Of,styles:mf})],bf);const If=I` .rebatesRowStyle { padding: 14px 14px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'icon points link'; column-gap: 12px; } .rebatesRowStyle:hover, :focus { background-color: ${An.buttonBackgroundHover}; outline: 0; text-decoration: none !important; } @media (prefers-color-scheme: dark) { .rebatesRowStyle:hover, :focus { background-color: ${An.darkModeButtonBackgroundHover}; outline: 0; } } @media screen and (-ms-high-contrast: active) { .rebatesRowStyle:hover, :focus { background-color: highlight; outline: 0; } } .rebatesIcon { grid-area: icon; width: 36px; height: 36px; border-radius: 6px; box-sizing: border-box; background-color: rgba(4, 115, 206, 0.08); display: inline-grid; justify-content: center; align-content: center; } @media (prefers-color-scheme: dark) { .rebatesIcon { background-color: rgb(76, 89, 99); } .rebatesIcon path, .pendingBalanceIcon path { fill: ${An.darkModeNormalText}; } .availableBalanceIcon path { fill: '#75FA8D'; } } .rebatesLabel { font-size: 12px; justify-self: start; align-self: start; } .rebatesPoints { font-weight: 600; font-size: 14px; justify-self: start; align-self: end; } .rebatesPointsContainer { display: flex; align-items: center; } .rebatesLink { font-size: 12px; line-height: 16px; color: #115ea3; justify-self: end; align-self: end; text-decoration: none; } @media (prefers-color-scheme: dark) { .rebatesLink { color: #479ef5; border-bottom-color: #479ef5; } } .rebatesLink:hover, .rebatesLink:focus { background: none !important; text-decoration: underline !important; } .pendingBalanceIcon, .availableBalanceIcon { width: 16px; height: 17px; gap: 5px; } .availableBalanceContainer { margin-right: 10px; display: flex; margin-top: 4px; } .pendingBalanceContainer { margin-top: 3px; display: flex; } .linkContainer { grid-area: link; display: inherit; } .linkContainerV2 { grid-area: link; display: inherit; padding-bottom: 4px; } `,Af=re` ${le((e=>e.isVisible),re`
e.onActionLinkClick(t.event)} @keydown=${(e,t)=>e.onActionAreaKeyDown(t.event)} >
${e=>e.getAvailableBalanceContent(e.rebates?.data)} ${e=>e.getPendingBalanceContent(e.rebates?.data)}
`)} `;let Cf=class extends Ie{constructor(){super(),this._isvisible=!1,Bs()&&(this.rebates=Fs(ws()))}get rebates(){return R.track(this,"rebates"),this._rebates}set rebates(e){this._rebates=e,R.notify(this,"rebates"),this.isVisible=Ms(this._rebates?.data),this.isVisible&&(As(Is.kWalletCardRebatesImpression),Ss(this._rebates.event_type)?As(Is.kWalletCardRebatesImpression_FromCache):As(Is.kWalletCardRebatesImpression_NoCache))}get isVisible(){return R.track(this,"isVisible"),this._isvisible}set isVisible(e){this._isvisible=e,R.notify(this,"isVisible")}onActionLinkClick(e){As(Is.kWalletCardRebatesValueClicked),Dt.navigateToUrl(this.rebates?.data?.available_balance>0?Re.microsoftRebatesPayoutURL:Re.microsoftRebatesDealsURL),e.stopPropagation()}onActionAreaKeyDown(e){return e.key!==Ce&&e.key!==ve||this.onActionLinkClick(e),!0}getAvailableBalanceContent(e){const t=re``;return Rs()&&e?.available_balance>0?re`
${t}
`:Rs()&&e?.pending_balance>0?void 0:t}getPendingBalanceContent(e){if(Rs()&&e?.pending_balance>0)return re`
`}};Cf=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}([Ae({name:"rebates-row",template:Af,styles:If})],Cf);var vf=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};const Rf=I` .etreeRowStyle { padding: 14px 14px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'icon points link'; column-gap: 12px; } .etreeRowStyle:hover, :focus { background-color: ${An.buttonBackgroundHover}; outline: 0; text-decoration: none !important; } @media (prefers-color-scheme: dark) { .etreeRowStyle:hover, :focus { background-color: ${An.darkModeButtonBackgroundHover}; outline: 0; } } @media screen and (-ms-high-contrast: active) { .etreeRowStyle:hover, :focus { background-color: highlight; outline: 0; } } .etreeIcon { grid-area: icon; width: 36px; height: 36px; border-radius: 6px; box-sizing: border-box; background-color: rgba(4, 115, 206, 0.08); display: inline-grid; justify-content: center; align-content: center; border-bottom: 1px solid transparent; } @media (prefers-color-scheme: dark) { .etreeIcon { background-color: rgb(76, 89, 99); } .etreeIcon path { fill: ${An.darkModeNormalText}; } } .etreeLabel { font-size: 12px; justify-self: start; align-self: start; } .etreeDescription { font-weight: 600; font-size: 14px; justify-self: start; align-self: end; } .etreeLink { font-size: 12px; line-height: 16px; color: #115ea3; justify-self: end; align-self: end; text-decoration: none; } @media (prefers-color-scheme: dark) { .etreeLink { color: #479ef5; border-bottom-color: #479ef5; } } .etreeLink:hover, .etreeLink:focus { background: none !important; text-decoration: underline !important; } `,yf=re` ${le((e=>e.isVisible),re`
e.onActionLinkClick(t.event)} @keydown=${(e,t)=>e.onActionAreaKeyDown(t.event)} >
`)} `;let Sf=class extends Ie{constructor(){super(),this._isvisible=!1,Bs()&&(this.etree=Ws(ws()))}get etree(){return R.track(this,"etree"),this._etree}set etree(e){this._etree=e,R.notify(this,"etree"),this.isVisible=xs(this._etree?.data),this.isVisible&&As(Is.kWalletCardEtreeImpression),Ps(this._etree?.data)?Ds(this._etree?.data)?(this.descriptionText=_s.getStringFWithDefaultValue("miniWalletEtreeLevelLabel","Level $1",this._etree?.data?.etree_level),this.actionText=_s.getString("miniWalletEtreeViewCertificateButtonText","View certificate"),As(Is.kWalletCardEtreeCertificateLinkImpression)):(this.descriptionText=_s.getStringFWithDefaultValue("miniWalletEtreeLevelLabel","Level $1",this._etree?.data?.etree_level),this.actionText=_s.valueExists("miniWalletEtreeGrowMyTreeButtonText")?_s.getString("miniWalletEtreeGrowMyTreeButtonText","Grow my tree"):_s.getString("miniWalletEtreeGoToPlantButtonText","Go to plant"),As(Is.kWalletCardEtreeLevelLinkImpression)):(this.descriptionText=_s.valueExists("miniWalletEtreePlantRealTreeLabel")?_s.getString("miniWalletEtreePlantRealTreeLabel","Plant a real tree"):_s.getString("miniWalletEtreeEnrollLabel","Get 10 drops"),this.actionText=_s.valueExists("miniWalletEtreeGrowMyTreeButtonText")?_s.getString("miniWalletEtreeGrowMyTreeButtonText","Grow my tree"):_s.getString("miniWalletEtreeEnrollButtonText","Get started"),As(Is.kWalletCardEtreeEnrollLinkImpression))}get isVisible(){return R.track(this,"isVisible"),this._isvisible}set isVisible(e){this._isvisible=e,R.notify(this,"isVisible")}onActionLinkClick(e){As(Is.kWalletCardEtreeClicked),Ps(this._etree?.data)?Ds(this._etree?.data)?As(Is.kWalletCardEtreeClicked_Certificate):As(Is.kWalletCardEtreeClicked_Level):As(Is.kWalletCardEtreeClicked_Enroll),Dt.navigateToUrl(Ct(At(Re.walletEtreeURL,"profileflyout"),"MiniWalletEtree")),e.stopPropagation()}onActionAreaKeyDown(e){return e.key!==Ce&&e.key!==ve||this.onActionLinkClick(e),!0}};vf([y],Sf.prototype,"actionText",void 0),vf([y],Sf.prototype,"descriptionText",void 0),Sf=vf([Ae({name:"etree-row",template:yf,styles:Rf})],Sf);Xc.getOrCreate(undefined).withPrefix("fluent").register(Sh(),Jh(),tf(),hf());const wf=e=>{e.preventDefault()},kf=I` .root { width: 298px; background-color: ${An.whiteBackground}; color: var(--neutral-foreground-rest); direction: ${ke?.valueExists("textdirection")&&"rtl"===ke.getValue("textdirection")?"rtl":"ltr"}; } .root fluent-divider { margin: 0px; } @media (prefers-color-scheme: dark) { .root { background-color: ${An.darkMiniWalletBackground}; } .root fluent-divider { border-color: ${An.miniWalletDividerDarkMode}; } } `,Mf=re`
${re`e.content_flags}> `} ${le((e=>e.isAnyRowVisible),re``)} ${re`e.rewards}> `} ${le((e=>e.isRebatesRowVisible),re`e.rebates}> `)} ${le((e=>e.isEtreeRowVisible),re`e.etree}> `)} ${le((e=>e.isNotificationVisible),re` e.notification} :appName=${e=>e.appName} >`)}
`;let xf=class extends Ie{constructor(){super(),this._isNotificationVisible=!1,this._isAnyRowVisible=!1,this._isRebatesRowVisible=!1,this._isEtreeRowVisible=!1,window.addEventListener("error",(function(e){e.error&>(e,"mini-wallet")})),this.appName=ct.MiniWallet,function(e,t){Rc[e]=Rc[e]||{};const i=Cc++;Rc[e][i]=t}("mini-wallet-data-updated",(e=>{this.parseWalletContentsData(e)})),this.parseWalletContentsData(ws())}get content_flags(){return R.track(this,"content_flags"),this._content_flags}set content_flags(e){this._content_flags=e,R.notify(this,"content_flags")}get notification(){return R.track(this,"notification"),this._notification}set notification(e){this._notification=e,R.notify(this,"notification")}get isNotificationVisible(){return R.track(this,"isNotificationVisible"),this._isNotificationVisible}set isNotificationVisible(e){this._isNotificationVisible=e,R.notify(this,"isNotificationVisible")}get rewards(){return R.track(this,"rewards"),this._rewards}set rewards(e){this._rewards=e,R.notify(this,"rewards")}get rebates(){return R.track(this,"rewards"),this._rebates}set rebates(e){this._rebates=e,R.notify(this,"rewards")}get etree(){return R.track(this,"etree"),this._etree}set etree(e){this._etree=e,R.notify(this,"etree")}get isAnyRowVisible(){return R.track(this,"isAnyRowVisible"),this._isAnyRowVisible}set isAnyRowVisible(e){this._isAnyRowVisible=e,R.notify(this,"isAnyRowVisible")}get isRebatesRowVisible(){return R.track(this,"isRebatesRowVisible"),this._isRebatesRowVisible}set isRebatesRowVisible(e){this._isRebatesRowVisible=e,R.notify(this,"isRebatesRowVisible")}get isEtreeRowVisible(){return R.track(this,"isEtreeRowVisible"),this._isEtreeRowVisible}set isEtreeRowVisible(e){this._isEtreeRowVisible=e,R.notify(this,"isEtreeRowVisible")}connectedCallback(){super.connectedCallback();const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{const t=e.matches?cu.DarkMode:cu.LightMode,i=this.shadowRoot.querySelector("fluent-design-system-provider");Vu.setValueFor(i,t)};t(e),e.addEventListener("change",t),document.addEventListener("contextmenu",wf),As(Is.kWalletCardImpression)}updateNotificationData(e){this.notification=e?.should_show_notification&&null!=e.notification_data?(e=>{const t=e.type;switch(t){case st.CardExpiring:case st.CardExpired:case st.RoamCard:case st.CardTokenizationEligible:{const i=JSON.parse(e.data);return It(!1===i.isLocal,it(i.network)),{type:t,dataKey:e.key,data:null,previewData:i}}case st.PackageTracking:case st.Rebates:case st.PasswordLeakage:case st.UpcomingHotelReservations:case st.FeaturePromotion:case st.DonationSummary:return{type:t,dataKey:e.key,previewData:JSON.parse(e.data)};case st.PersonalizedOffersAvailable:return{type:t,dataKey:e.key,data:null,previewData:JSON.parse(e.data)};case st.SignupCryptoWallet:case st.EtreeCampaign:case st.PWAPromotion:return{type:t,dataKey:e.key};case st.Etree:case st.DonationTrendNpo:return{type:t,dataKey:e.key,data:e?.data?JSON.parse(e?.data):null}}})(e.notification_data):null,this.isNotificationVisible=null!=this.notification}parseWalletContentsData(e){this.updateNotificationData(e),this.rewards=Ls(e),this.rebates=Fs(e),this.etree=Ws(e),this.content_flags=e?.content_flags,this.isRebatesRowVisible=this.shouldDisplayRebatesRow(),this.isEtreeRowVisible=this.shouldDisplayEtreeRow(),this.isAnyRowVisible=ks(this.rewards?.data)||this.isRebatesRowVisible||this.isEtreeRowVisible}shouldDisplayRebatesRow(){return!!Ms(this.rebates?.data)}shouldDisplayEtreeRow(){return!(this.isRebatesRowVisible&&this.isNotificationVisible||!xs(this.etree?.data)||(e=this.content_flags,!function(e,t){return(e&t)>0}(e,Cs.Etree)));var e}disconnectedCallback(){window.removeEventListener("error",(e=>gt(e,"mini-wallet"))),document.removeEventListener("contextmenu",wf)}};xf=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}([Ae({name:"mini-wallet",template:Mf,styles:kf})],xf)})()})();