diff --git a/next/mgt.storybook.js b/next/mgt.storybook.js index 0969dcb298..81699b1765 100644 --- a/next/mgt.storybook.js +++ b/next/mgt.storybook.js @@ -3978,7 +3978,7 @@ const ld=1,cd=2,e$1=e=>(...t)=>({_$litDirective$:e,values:t});class i{constructo `}},isWindowSegmentAware=()=>void 0!==window.getWindowSegments,Rd=[i$5` .root .scout-top{position:fixed;top:0;left:0}.root .scout-bottom{position:fixed;bottom:0;right:0}.root .flyout{display:none;position:fixed;z-index:9999999;opacity:0;box-shadow:var(--mgt-flyout-box-shadow,var(--elevation-shadow-card-rest));border-radius:8px}.root .flyout.small{overflow:hidden auto}.root.visible .flyout{display:inline-block;animation-name:fade-in;animation-duration:.3s;animation-timing-function:cubic-bezier(0.1,0.9,0.2,1);animation-fill-mode:both;transition:top .3s ease,bottom .3s ease,left .3s ease}.root.visible .flyout.small{overflow:hidden auto}@keyframes fade-in{from{opacity:0;margin-top:-10px;margin-bottom:-10px}to{opacity:1;margin-top:0;margin-bottom:0}} -`];var __decorate$s=function(e,t,a,l){var c,p=arguments.length,g=p<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,a):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(e,t,a,l);else for(var m=e.length-1;m>=0;m--)(c=e[m])&&(g=(p<3?c(g):p>3?c(t,a,g):c(t,a))||g);return p>3&&g&&Object.defineProperty(t,a,g),g},__metadata$s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const registerMgtFlyoutComponent=()=>registerComponent("flyout",MgtFlyout);class MgtFlyout extends MgtBaseTaskComponent{static get styles(){return Rd}get isOpen(){return this._isOpen}set isOpen(e){const t=this._isOpen;t!==e&&(this._isOpen=e,window.requestAnimationFrame((()=>{this.setupWindowEvents(this.isOpen);const e=this._flyout;!this.isOpen&&e&&(e.style.width=null,e.style.setProperty("--mgt-flyout-set-width",null),e.style.setProperty("--mgt-flyout-set-height",null),e.style.maxHeight=null,e.style.top=null,e.style.left=null,e.style.bottom=null)})),this.requestUpdate("isOpen",t),this.dispatchEvent(new Event(e?"opened":"closed")))}get _edgePadding(){return 24}get _flyout(){return this.renderRoot.querySelector(".flyout")}get _anchor(){return this.renderRoot.querySelector(".anchor")}get _topScout(){return this.renderRoot.querySelector(".scout-top")}get _bottomScout(){return this.renderRoot.querySelector(".scout-bottom")}constructor(){super(),this._renderedOnce=!1,this._isOpen=!1,this._smallView=!1,this.handleWindowEvent=e=>{const t=this._flyout;if(t)if(e.composedPath){const a=e.composedPath();if(a.includes(t)||"pointerdown"===e.type&&a.includes(this))return}else{let a=e.target;for(;a;)if(a=a.parentElement,a===t||"pointerdown"===e.type&&a===this)return}this.close()},this.handleResize=()=>{this.close()},this.handleKeyUp=e=>{"Escape"===e.key&&this.close()},this.handleFlyoutWheel=e=>{e.preventDefault()},this.avoidHidingAnchor=!0,this.addEventListener("expanded",(()=>{window.requestAnimationFrame((()=>{this.updateFlyout()}))}))}open(){this.isOpen=!0}close(){this.isOpen=!1}disconnectedCallback(){this.setupWindowEvents(!1),super.disconnectedCallback()}updated(e){super.updated(e),window.requestAnimationFrame((()=>{this.updateFlyout()}))}render(){const e={root:!0,visible:this.isOpen},t=this.renderAnchor();let a=null;if(this._windowHeight=window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight,this._windowHeight<250&&(this._smallView=!0),this.isOpen||this._renderedOnce){this._renderedOnce=!0;const e=dd({flyout:!0,small:this._smallView});a=vt` +`];var __decorate$s=function(e,t,a,l){var c,p=arguments.length,g=p<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,a):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(e,t,a,l);else for(var m=e.length-1;m>=0;m--)(c=e[m])&&(g=(p<3?c(g):p>3?c(t,a,g):c(t,a))||g);return p>3&&g&&Object.defineProperty(t,a,g),g},__metadata$s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const registerMgtFlyoutComponent=()=>registerComponent("flyout",MgtFlyout);class MgtFlyout extends MgtBaseTaskComponent{static get styles(){return Rd}get isOpen(){return this._isOpen}set isOpen(e){const t=this._isOpen;t!==e&&(this._isOpen=e,window.requestAnimationFrame((()=>{this.setupWindowEvents(this.isOpen);const e=this._flyout;!this.isOpen&&e&&(e.style.width=null,e.style.setProperty("--mgt-flyout-set-width",null),e.style.setProperty("--mgt-flyout-set-height",null),e.style.maxHeight=null,e.style.top=null,e.style.left=null,e.style.bottom=null)})),this.requestUpdate("isOpen",t),this.dispatchEvent(new Event(e?"opened":"closed")))}get _edgePadding(){return 24}get _flyout(){return this.renderRoot.querySelector(".flyout")}get _anchor(){return this.renderRoot.querySelector(".anchor")}get _topScout(){return this.renderRoot.querySelector(".scout-top")}get _bottomScout(){return this.renderRoot.querySelector(".scout-bottom")}constructor(){super(),this._renderedOnce=!1,this._isOpen=!1,this._smallView=!1,this.handleWindowEvent=e=>{const t=this._flyout;if(t)if(e.composedPath){const a=e.composedPath();if(a.includes(t)||"pointerdown"===e.type&&a.includes(this))return}else{let a=e.target;for(;a;)if(a=a.parentElement,a===t||"pointerdown"===e.type&&a===this)return}this.close()},this.handleResize=()=>{this.close()},this.handleKeyUp=e=>{"Escape"===e.key&&this.close()},this.handleFlyoutWheel=e=>{e.preventDefault()},this.avoidHidingAnchor=!0,this.addEventListener("expanded",(()=>{window.requestAnimationFrame((()=>{this.updateFlyout()}))})),this.addEventListener("smallView",(()=>{window.requestAnimationFrame((()=>{this.updateFlyout()}))}))}open(){this.isOpen=!0}close(){this.isOpen=!1}disconnectedCallback(){this.setupWindowEvents(!1),super.disconnectedCallback()}updated(e){super.updated(e),window.requestAnimationFrame((()=>{this.updateFlyout()}))}render(){const e={root:!0,visible:this.isOpen},t=this.renderAnchor();let a=null;if(this._windowHeight=window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight,this._windowHeight<250&&(this._smallView=!0),this.isOpen||this._renderedOnce){this._renderedOnce=!0;const e=dd({flyout:!0,small:this._smallView});a=vt`
${this.renderFlyout()}
@@ -4974,7 +4974,7 @@ const ld=1,cd=2,e$1=e=>(...t)=>({_$litDirective$:e,values:t});class i{constructo `:null;let g=this.renderTemplate("person-details",{person:this.internalPersonDetails,personImage:a});if(!g){const e=this.renderPerson(),a=this.renderContactIcons(t);g=vt` ${e} ${a} - `}const m=this.isExpanded?this.renderExpandedDetails():this.renderExpandedDetailsButton();this._windowHeight=window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight,this._windowHeight<250&&(this._smallView=!0);const y=this.lockTabNavigation?vt`
`:vt``;return vt` + `}const m=this.isExpanded?this.renderExpandedDetails():this.renderExpandedDetailsButton();this._windowHeight=window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight,this._windowHeight<250&&(this._smallView=!0,this.fireCustomEvent("smallView",null,!0));const y=this.lockTabNavigation?vt`
`:vt``;return vt`
${p} diff --git a/next/project.json b/next/project.json index 37dffe4d65..1badf3b54c 100644 --- a/next/project.json +++ b/next/project.json @@ -1 +1 @@ -{"generatedAt":1727795961480,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"monorepo":"Lerna","packageManager":{"type":"yarn","version":"4.1.0"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/web-components","storybookVersion":"7.6.17","storybookVersionSpecifier":"^7.6.17","language":"typescript","storybookPackages":{"@storybook/addon-a11y":{"version":"7.6.17"},"@storybook/addon-actions":{"version":"7.6.17"},"@storybook/addon-docs":{"version":"7.6.17"},"@storybook/addon-knobs":{"version":"7.0.2"},"@storybook/addon-links":{"version":"7.6.17"},"@storybook/addon-mdx-gfm":{"version":"7.6.17"},"@storybook/addon-storysource":{"version":"7.6.17"},"@storybook/cli":{"version":"7.6.17"},"@storybook/web-components":{"version":"7.6.17"},"@storybook/web-components-webpack5":{"version":"7.6.17"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"7.6.17"},"storybook-addon-web-components-knobs":{"version":"0.3.20"},"storybook-version":{"version":"0.1.1"}},"addons":{"$SNIP/node_modules/storybook-version":{"version":null},"$SNIP/node_modules/@storybook/addon-docs":{"version":null},"$SNIP/node_modules/@storybook/addon-mdx-gfm":{"version":null}}} +{"generatedAt":1727855348846,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"monorepo":"Lerna","packageManager":{"type":"yarn","version":"4.1.0"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/web-components","storybookVersion":"7.6.17","storybookVersionSpecifier":"^7.6.17","language":"typescript","storybookPackages":{"@storybook/addon-a11y":{"version":"7.6.17"},"@storybook/addon-actions":{"version":"7.6.17"},"@storybook/addon-docs":{"version":"7.6.17"},"@storybook/addon-knobs":{"version":"7.0.2"},"@storybook/addon-links":{"version":"7.6.17"},"@storybook/addon-mdx-gfm":{"version":"7.6.17"},"@storybook/addon-storysource":{"version":"7.6.17"},"@storybook/cli":{"version":"7.6.17"},"@storybook/web-components":{"version":"7.6.17"},"@storybook/web-components-webpack5":{"version":"7.6.17"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"7.6.17"},"storybook-addon-web-components-knobs":{"version":"0.3.20"},"storybook-version":{"version":"0.1.1"}},"addons":{"$SNIP/node_modules/storybook-version":{"version":null},"$SNIP/node_modules/@storybook/addon-docs":{"version":null},"$SNIP/node_modules/@storybook/addon-mdx-gfm":{"version":null}}} diff --git a/next/sb-addons/storybook-1/manager-bundle.js b/next/sb-addons/storybook-1/manager-bundle.js index edd87162c1..4887e227cd 100644 --- a/next/sb-addons/storybook-1/manager-bundle.js +++ b/next/sb-addons/storybook-1/manager-bundle.js @@ -2,23 +2,23 @@ try{ (()=>{var g7=Object.defineProperty;var qv=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var y=(r,e)=>()=>(r&&(e=r(r=0)),e);var v7=(r,e)=>{for(var t in e)g7(r,t,{get:e[t],enumerable:!0})};var l=y(()=>{});var c=y(()=>{});var d=y(()=>{});var Gi,qd=y(()=>{l();c();d();Gi=class{constructor(){this.eventHandlers=[]}fire(e){for(let t of this.eventHandlers)t(e)}add(e){this.eventHandlers.push(e)}remove(e){for(let t=0;t{l();c();d();Gd="https://graph.microsoft.com",Xx=new Set([Gd,"https://graph.microsoft.us","https://dod-graph.microsoft.us","https://graph.microsoft.de","https://microsoftgraph.chinacloudapi.cn","https://canary.graph.microsoft.com"])});var gp,vp=y(()=>{l();c();d();jd();gp=r=>{try{let t=new URL(r).origin;if(Xx.has(t))return t}catch{return}}});var ja,Xn,oe,bn=y(()=>{l();c();d();vp();jd();qd();ja=class{get isMultiAccountSupportedAndEnabled(){return!1}get approvedScopes(){return this._approvedScopes}set approvedScopes(e){this._approvedScopes=e.map(t=>t.toLowerCase())}hasAtLeastOneApprovedScope(e){return e.some(t=>this.approvedScopes.includes(t.toLowerCase().trim()))}hasAllOneApprovedScope(e){return e.some(t=>!this.approvedScopes.includes(t.toLowerCase().trim()))}needsAdditionalScopes(e){let t=[];return e.length&&!this.hasAtLeastOneApprovedScope(e)&&t.push(e[0].trim()),t}set baseURL(e){if(gp(e)){this._baseURL=e;return}else throw new Error(`${e} is not a valid Graph URL endpoint.`)}get baseURL(){return this._baseURL}set customHosts(e){this._customHosts=e}get customHosts(){return this._customHosts}get isMultiAccountSupported(){return this.isMultipleAccountSupported}get state(){return this._state}get isIncrementalConsentDisabled(){return this._isIncrementalConsentDisabled}set isIncrementalConsentDisabled(e){this._isIncrementalConsentDisabled=e}get name(){return"MgtIProvider"}constructor(){this.isMultipleAccountDisabled=!0,this._loginChangedDispatcher=new Gi,this._activeAccountChangedDispatcher=new Gi,this._baseURL=Gd,this._approvedScopes=[],this._customHosts=void 0,this._isIncrementalConsentDisabled=!1,this.isMultipleAccountSupported=!1,this._state=oe.Loading}setState(e){e!==this._state&&(this._state=e,this._loginChangedDispatcher.fire({}))}onStateChanged(e){this._loginChangedDispatcher.add(e)}removeStateChangedHandler(e){this._loginChangedDispatcher.remove(e)}setActiveAccount(e){this.fireActiveAccountChanged()}onActiveAccountChanged(e){this._activeAccountChangedDispatcher.add(e)}removeActiveAccountChangedHandler(e){this._activeAccountChangedDispatcher.remove(e)}fireActiveAccountChanged(){this._activeAccountChangedDispatcher.fire({})}getAccessTokenForScopes(...e){return this.getAccessToken({scopes:e})}};(function(r){r[r.Popup=0]="Popup",r[r.Redirect=1]="Redirect"})(Xn||(Xn={}));(function(r){r[r.Loading=0]="Loading",r[r.SignedOut=1]="SignedOut",r[r.SignedIn=2]="SignedIn"})(oe||(oe={}))});var yp,V,bp,es=y(()=>{l();c();d();qd();bn();yp=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},V=class r{static get globalProvider(){return this._globalProvider}static set globalProvider(e){e!==this._globalProvider&&(this._globalProvider&&(this._globalProvider.removeStateChangedHandler(this.handleProviderStateChanged),this._globalProvider.isMultiAccountSupportedAndEnabled&&this._globalProvider.removeActiveAccountChangedHandler(this.handleActiveAccountChanged)),e&&(e.onStateChanged(this.handleProviderStateChanged),e.isMultiAccountSupportedAndEnabled&&e.onActiveAccountChanged(this.handleActiveAccountChanged)),this._globalProvider=e,this._eventDispatcher.fire(bp.ProviderChanged))}static onProviderUpdated(e){this._eventDispatcher.add(e)}static removeProviderUpdatedListener(e){this._eventDispatcher.remove(e)}static onActiveAccountChanged(e){this._activeAccountChangedDispatcher.add(e)}static removeActiveAccountChangedListener(e){this._activeAccountChangedDispatcher.remove(e)}static me(){return this.client?(this._mePromise||(this._mePromise=this.getMe()),this._mePromise):(this._mePromise=null,null)}static getMe(){return yp(this,void 0,void 0,function*(){try{let e=yield this.client.api("me").get();if(e?.id)return e}catch{}return null})}static getCacheId(){var e;return yp(this,void 0,void 0,function*(){if(this._cacheId)return this._cacheId;if(((e=r.globalProvider)===null||e===void 0?void 0:e.state)===oe.SignedIn&&!this._cacheId&&this.client)try{this._cacheId=yield this.createCacheId()}catch{}return this._cacheId})}static unsetCacheId(){this._cacheId=null,this._mePromise=null}static createCacheId(){return yp(this,void 0,void 0,function*(){if(r.globalProvider.isMultiAccountSupportedAndEnabled){let e=this.createCacheIdWithAccountDetails();if(e)return e}return yield this.createCacheIdWithUserDetails()})}static createCacheIdWithUserDetails(){return yp(this,void 0,void 0,function*(){let e=yield this.me();return e?.id?e.id+"-"+e.userPrincipalName:null})}static createCacheIdWithAccountDetails(){let e=r.globalProvider.getActiveAccount();return e.tenantId&&e.id?e.tenantId+e.id:null}static get client(){return r.globalProvider&&r.globalProvider.state===oe.SignedIn?r.globalProvider.graph.client:null}};V._eventDispatcher=new Gi;V._activeAccountChangedDispatcher=new Gi;V.handleProviderStateChanged=()=>{(!V.globalProvider||V.globalProvider.state!==oe.SignedIn)&&(V._mePromise=null),V._eventDispatcher.fire(bp.ProviderStateChanged)};V.handleActiveAccountChanged=()=>{V.unsetCacheId(),V._activeAccountChangedDispatcher.fire(null)};(function(r){r[r.ProviderChanged=0]="ProviderChanged",r[r.ProviderStateChanged=1]="ProviderStateChanged"})(bp||(bp={}))});var wp,t0=y(()=>{l();c();d();wp=class{}});function J(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n}function _e(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})}var kt=y(()=>{l();c();d()});var mr,Kd=y(()=>{l();c();d();(function(r){r.GET="GET",r.PATCH="PATCH",r.POST="POST",r.PUT="PUT",r.DELETE="DELETE"})(mr||(mr={}))});var hc,ek=y(()=>{l();c();d();kt();Kd();hc=class r{static validateDependencies(e){let t=n=>{let s=n.entries(),a=s.next();for(;!a.done;){let u=a.value[1];if(u.dependsOn!==void 0&&u.dependsOn.length>0)return!1;a=s.next()}return!0},o=n=>{let s=n.entries(),a=s.next(),u=a.value[1];if(u.dependsOn!==void 0&&u.dependsOn.length>0)return!1;let h=a;for(a=s.next();!a.done;){let p=a.value[1];if(p.dependsOn===void 0||p.dependsOn.length!==1||p.dependsOn[0]!==h.value[1].id)return!1;h=a,a=s.next()}return!0},i=n=>{let s=n.entries(),a=s.next(),u=a.value[1],h;if(u.dependsOn===void 0||u.dependsOn.length===0)h=u.id;else if(u.dependsOn.length===1){let p=u.dependsOn[0];if(p!==u.id&&n.has(p))h=p;else return!1}else return!1;for(a=s.next();!a.done;){let p=a.value[1];if((p.dependsOn===void 0||p.dependsOn.length===0)&&h!==p.id||p.dependsOn!==void 0&&p.dependsOn.length!==0&&(p.dependsOn.length===1&&(p.id===h||p.dependsOn[0]!==h)||p.dependsOn.length>1))return!1;a=s.next()}return!0};if(e.size===0){let n=new Error("Empty requests map, Please provide at least one request.");throw n.name="Empty Requests Error",n}return t(e)||o(e)||i(e)}static getRequestData(e){return _e(this,void 0,void 0,function*(){let t={url:""},o=new RegExp("^https?://");t.url=o.test(e.url)?"/"+e.url.split(/.*?\/\/.*?\//)[1]:e.url,t.method=e.method;let i={};return e.headers.forEach((n,s)=>{i[s]=n}),Object.keys(i).length&&(t.headers=i),(e.method===mr.PATCH||e.method===mr.POST||e.method===mr.PUT)&&(t.body=yield r.getRequestBody(e)),t})}static getRequestBody(e){return _e(this,void 0,void 0,function*(){let t=!1,o;try{o=yield e.clone().json(),t=!0}catch{}if(!t)try{if(typeof Blob<"u"){let i=yield e.blob(),n=new FileReader;o=yield new Promise(s=>{n.addEventListener("load",()=>{let a=n.result,h=new RegExp("^s*data:(.+?/.+?(;.+?=.+?)*)?(;base64)?,(.*)s*$").exec(a);s(h[4])},!1),n.readAsDataURL(i)})}else typeof Buffer<"u"&&(o=(yield e.buffer()).toString("base64"));t=!0}catch{}return o})}constructor(e){if(this.requests=new Map,typeof e<"u"){let t=r.requestLimit;if(e.length>t){let o=new Error(`Maximum requests limit exceeded, Max allowed number of requests are ${t}`);throw o.name="Limit Exceeded Error",o}for(let o of e)this.addRequest(o)}}addRequest(e){let t=r.requestLimit;if(e.id===""){let o=new Error("Id for a request is empty, Please provide an unique id");throw o.name="Empty Id For Request",o}if(this.requests.size===t){let o=new Error(`Maximum requests limit exceeded, Max allowed number of requests are ${t}`);throw o.name="Limit Exceeded Error",o}if(this.requests.has(e.id)){let o=new Error(`Adding request with duplicate id ${e.id}, Make the id of the requests unique`);throw o.name="Duplicate RequestId Error",o}return this.requests.set(e.id,e),e.id}removeRequest(e){let t=this.requests.delete(e),o=this.requests.entries(),i=o.next();for(;!i.done;){let n=i.value[1].dependsOn;if(typeof n<"u"){let s=n.indexOf(e);s!==-1&&n.splice(s,1),n.length===0&&delete i.value[1].dependsOn}i=o.next()}return t}getContent(){return _e(this,void 0,void 0,function*(){let e=[],t={requests:e},o=this.requests.entries(),i=o.next();if(i.done){let n=new Error("No requests added yet, Please add at least one request.");throw n.name="Empty Payload",n}if(!r.validateDependencies(this.requests)){let n=new Error(`Invalid dependency found, Dependency should be: 1. Parallel - no individual request states a dependency in the dependsOn property. 2. Serial - all individual requests depend on the previous individual request. -3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`);throw n.name="Invalid Dependency",n}for(;!i.done;){let n=i.value[1],s=yield r.getRequestData(n.request);if(s.body!==void 0&&(s.headers===void 0||s.headers["content-type"]===void 0)){let a=new Error(`Content-type header is not mentioned for request #${n.id}, For request having body, Content-type header should be mentioned`);throw a.name="Invalid Content-type header",a}s.id=n.id,n.dependsOn!==void 0&&n.dependsOn.length>0&&(s.dependsOn=n.dependsOn),e.push(s),i=o.next()}return t.requests=e,t})}addDependency(e,t){if(!this.requests.has(e)){let o=new Error(`Dependent ${e} does not exists, Please check the id`);throw o.name="Invalid Dependent",o}if(typeof t<"u"&&!this.requests.has(t)){let o=new Error(`Dependency ${t} does not exists, Please check the id`);throw o.name="Invalid Dependency",o}if(typeof t<"u"){let o=this.requests.get(e);if(o.dependsOn===void 0&&(o.dependsOn=[]),o.dependsOn.indexOf(t)!==-1){let i=new Error(`Dependency ${t} is already added for the request ${e}`);throw i.name="Duplicate Dependency",i}o.dependsOn.push(t)}else{let o=this.requests.entries(),i,n=o.next();for(;!n.done&&n.value[1].id!==e;)i=n,n=o.next();if(typeof i<"u"){let s=i.value[0];if(n.value[1].dependsOn===void 0&&(n.value[1].dependsOn=[]),n.value[1].dependsOn.indexOf(s)!==-1){let a=new Error(`Dependency ${s} is already added for the request ${e}`);throw a.name="Duplicate Dependency",a}n.value[1].dependsOn.push(s)}else{let s=new Error(`Can't add dependency ${t}, There is only a dependent request in the batch`);throw s.name="Invalid Dependency Addition",s}}}removeDependency(e,t){let o=this.requests.get(e);if(typeof o>"u"||o.dependsOn===void 0||o.dependsOn.length===0)return!1;if(typeof t<"u"){let i=o.dependsOn.indexOf(t);return i===-1?!1:(o.dependsOn.splice(i,1),!0)}else return delete o.dependsOn,!0}};hc.requestLimit=20});var tk=y(()=>{l();c();d()});var rk,ok,ik,r0=y(()=>{l();c();d();rk="v1.0",ok="https://graph.microsoft.com/",ik=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"])});var gr,ts=y(()=>{l();c();d();gr=class r extends Error{static setGraphClientError(e){let t;return e instanceof Error?t=e:(t=new r,t.customError=e),t}constructor(e){super(e),Object.setPrototypeOf(this,r.prototype)}}});var nk,sk,Cp,xp,kp,ak,nO,Sp=y(()=>{l();c();d();r0();ts();nk=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],sk=r=>{let e=n=>n.replace(/\/+$/,""),t=n=>n.replace(/^\/+/,""),o=(n,s)=>[e(n),t(s)].join("/");return Array.prototype.slice.call(r).reduce(o)},Cp=r=>{let e=r&&r.constructor&&r.constructor.name;if(e==="Buffer"||e==="Blob"||e==="File"||e==="FormData"||typeof r=="string")return r;if(e==="ArrayBuffer")r=Buffer.from(r);else if(e==="Int8Array"||e==="Int16Array"||e==="Int32Array"||e==="Uint8Array"||e==="Uint16Array"||e==="Uint32Array"||e==="Uint8ClampedArray"||e==="Float32Array"||e==="Float64Array"||e==="DataView")r=Buffer.from(r.buffer);else try{r=JSON.stringify(r)}catch{throw new Error("Unable to stringify the content")}return r},xp=r=>ak(r),kp=(r,e)=>(e.forEach(t=>nO(t)),ak(r,e)),ak=(r,e=ik)=>{if(r=r.toLowerCase(),r.indexOf("https://")!==-1){r=r.replace("https://","");let t=r.indexOf(":"),o=r.indexOf("/"),i="";if(o!==-1)return t!==-1&&t{if(r.indexOf("/")!==-1)throw new gr("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")}});var go,Ws=y(()=>{l();c();d();go=class{constructor(e=[]){this.middlewareOptions=new Map;for(let t of e){let o=t.constructor;this.middlewareOptions.set(o,t)}}getMiddlewareOptions(e){return this.middlewareOptions.get(e)}setMiddlewareOptions(e,t){this.middlewareOptions.set(e,t)}}});var o0,pc,fc,_p,lk,Ka=y(()=>{l();c();d();kt();o0=()=>{let r="";for(let e=0;e<32;e++)(e===8||e===12||e===16||e===20)&&(r+="-"),r+=Math.floor(Math.random()*16).toString(16);return r},pc=(r,e,t)=>{let o=null;if(typeof Request<"u"&&r instanceof Request)o=r.headers.get(t);else if(typeof e<"u"&&e.headers!==void 0)if(typeof Headers<"u"&&e.headers instanceof Headers)o=e.headers.get(t);else if(e.headers instanceof Array){let i=e.headers;for(let n=0,s=i.length;n{if(typeof Request<"u"&&r instanceof Request)r.headers.set(t,o);else if(typeof e<"u")if(e.headers===void 0)e.headers=new Headers({[t]:o});else if(typeof Headers<"u"&&e.headers instanceof Headers)e.headers.set(t,o);else if(e.headers instanceof Array){let i=0,n=e.headers.length;for(;i{typeof Request<"u"&&r instanceof Request?r.headers.append(t,o):typeof e<"u"&&(e.headers===void 0?e.headers=new Headers({[t]:o}):typeof Headers<"u"&&e.headers instanceof Headers?e.headers.append(t,o):e.headers instanceof Array?e.headers.push([t,o]):e.headers===void 0?e.headers={[t]:o}:e.headers[t]===void 0?e.headers[t]=o:e.headers[t]+=`, ${o}`)},lk=(r,e)=>_e(void 0,void 0,void 0,function*(){let t=e.headers.get("Content-Type")?yield e.blob():yield Promise.resolve(void 0),{method:o,headers:i,referrer:n,referrerPolicy:s,mode:a,credentials:u,cache:h,redirect:p,integrity:f,keepalive:b,signal:C}=e;return new Request(r,{method:o,headers:i,body:t,referrer:n,referrerPolicy:s,mode:a,credentials:u,cache:h,redirect:p,integrity:f,keepalive:b,signal:C})})});var Wa,i0=y(()=>{l();c();d();Wa=class{constructor(e,t){this.authenticationProvider=e,this.authenticationProviderOptions=t}}});var wn,ji,mc=y(()=>{l();c();d();Ws();(function(r){r[r.NONE=0]="NONE",r[r.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",r[r.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",r[r.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})(wn||(wn={}));ji=class r{constructor(){this.featureUsage=wn.NONE}static updateFeatureUsageFlag(e,t){let o;e.middlewareControl instanceof go?o=e.middlewareControl.getMiddlewareOptions(r):e.middlewareControl=new go,typeof o>"u"&&(o=new r,e.middlewareControl.setMiddlewareOptions(r,o)),o.setFeatureUsage(t)}setFeatureUsage(e){this.featureUsage=this.featureUsage|e}getFeatureUsage(){return this.featureUsage.toString(16)}}});var Ki,Tp=y(()=>{l();c();d();kt();Sp();Ws();Ka();i0();mc();Ki=class r{constructor(e){this.authenticationProvider=e}execute(e){return _e(this,void 0,void 0,function*(){let t=typeof e.request=="string"?e.request:e.request.url;if(xp(t)||e.customHosts&&kp(t,e.customHosts)){let o;e.middlewareControl instanceof go&&(o=e.middlewareControl.getMiddlewareOptions(Wa));let i,n;o&&(i=o.authenticationProvider,n=o.authenticationProviderOptions),i||(i=this.authenticationProvider);let a=`Bearer ${yield i.getAccessToken(n)}`;_p(e.request,e.options,r.AUTHORIZATION_HEADER,a),ji.updateFeatureUsageFlag(e,wn.AUTHENTICATION_HANDLER_ENABLED)}else e.options.headers&&delete e.options.headers[r.AUTHORIZATION_HEADER];return yield this.nextMiddleware.execute(e)})}setNext(e){this.nextMiddleware=e}};Ki.AUTHORIZATION_HEADER="Authorization"});var Cn,Ep=y(()=>{l();c();d();kt();Cn=class{execute(e){return _e(this,void 0,void 0,function*(){e.response=yield fetch(e.request,e.options)})}}});var Dr,Wd=y(()=>{l();c();d();Dr=class r{constructor(e=r.DEFAULT_DELAY,t=r.DEFAULT_MAX_RETRIES,o=r.defaultShouldRetry){if(e>r.MAX_DELAY&&t>r.MAX_MAX_RETRIES){let i=new Error(`Delay and MaxRetries should not be more than ${r.MAX_DELAY} and ${r.MAX_MAX_RETRIES}`);throw i.name="MaxLimitExceeded",i}else if(e>r.MAX_DELAY){let i=new Error(`Delay should not be more than ${r.MAX_DELAY}`);throw i.name="MaxLimitExceeded",i}else if(t>r.MAX_MAX_RETRIES){let i=new Error(`MaxRetries should not be more than ${r.MAX_MAX_RETRIES}`);throw i.name="MaxLimitExceeded",i}else if(e<0&&t<0){let i=new Error("Delay and MaxRetries should not be negative");throw i.name="MinExpectationNotMet",i}else if(e<0){let i=new Error("Delay should not be negative");throw i.name="MinExpectationNotMet",i}else if(t<0){let i=new Error("MaxRetries should not be negative");throw i.name="MinExpectationNotMet",i}this.delay=Math.min(e,r.MAX_DELAY),this.maxRetries=Math.min(t,r.MAX_MAX_RETRIES),this.shouldRetry=o}getMaxDelay(){return r.MAX_DELAY}};Dr.DEFAULT_DELAY=3;Dr.DEFAULT_MAX_RETRIES=3;Dr.MAX_DELAY=180;Dr.MAX_MAX_RETRIES=10;Dr.defaultShouldRetry=()=>!0});var ii,Ip=y(()=>{l();c();d();kt();Kd();Ws();Ka();Wd();mc();ii=class r{constructor(e=new Dr){this.options=e}isRetry(e){return r.RETRY_STATUS_CODES.indexOf(e.status)!==-1}isBuffered(e,t){let o=typeof e=="string"?t.method:e.method;return!((o===mr.PUT||o===mr.PATCH||o===mr.POST)&&pc(e,t,"Content-Type")==="application/octet-stream")}getDelay(e,t,o){let i=()=>Number(Math.random().toFixed(3)),n=e.headers!==void 0?e.headers.get(r.RETRY_AFTER_HEADER):null,s;return n!==null?Number.isNaN(Number(n))?s=Math.round((new Date(n).getTime()-Date.now())/1e3):s=Number(n):s=t>=2?this.getExponentialBackOffTime(t)+o+i():o+i(),Math.min(s,this.options.getMaxDelay()+i())}getExponentialBackOffTime(e){return Math.round(1/2*(Math.pow(2,e)-1))}sleep(e){return _e(this,void 0,void 0,function*(){let t=e*1e3;return new Promise(o=>setTimeout(o,t))})}getOptions(e){let t;return e.middlewareControl instanceof go&&(t=e.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof t>"u"&&(t=Object.assign(new Dr,this.options)),t}executeWithRetry(e,t,o){return _e(this,void 0,void 0,function*(){if(yield this.nextMiddleware.execute(e),t{l();c();d();ni=class r{constructor(e=r.DEFAULT_MAX_REDIRECTS,t=r.defaultShouldRedirect){if(e>r.MAX_MAX_REDIRECTS){let o=new Error(`MaxRedirects should not be more than ${r.MAX_MAX_REDIRECTS}`);throw o.name="MaxLimitExceeded",o}if(e<0){let o=new Error("MaxRedirects should not be negative");throw o.name="MinExpectationNotMet",o}this.maxRedirects=e,this.shouldRedirect=t}};ni.DEFAULT_MAX_REDIRECTS=5;ni.MAX_MAX_REDIRECTS=20;ni.defaultShouldRedirect=()=>!0});var Wi,Ap=y(()=>{l();c();d();kt();Kd();Ws();Ka();Qd();mc();Wi=class r{constructor(e=new ni){this.options=e}isRedirect(e){return r.REDIRECT_STATUS_CODES.indexOf(e.status)!==-1}hasLocationHeader(e){return e.headers.has(r.LOCATION_HEADER)}getLocationHeader(e){return e.headers.get(r.LOCATION_HEADER)}isRelativeURL(e){return e.indexOf("://")===-1}shouldDropAuthorizationHeader(e,t){let o=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,i=o.exec(e),n,s;i!==null&&(n=i[0]);let a=o.exec(t);return a!==null&&(s=a[0]),typeof n<"u"&&typeof s<"u"&&n!==s}updateRequestUrl(e,t){return _e(this,void 0,void 0,function*(){t.request=typeof t.request=="string"?e:yield lk(e,t.request)})}getOptions(e){let t;return e.middlewareControl instanceof go&&(t=e.middlewareControl.getMiddlewareOptions(ni)),typeof t>"u"&&(t=Object.assign(new ni,this.options)),t}executeWithRedirect(e,t,o){return _e(this,void 0,void 0,function*(){yield this.nextMiddleware.execute(e);let i=e.response;if(t{l();c();d();ck="3.0.7"});var Ho,Rp=y(()=>{l();c();d();kt();Sp();dk();Ws();Ka();mc();Ho=class r{execute(e){return _e(this,void 0,void 0,function*(){let t=typeof e.request=="string"?e.request:e.request.url;if(xp(t)||e.customHosts&&kp(t,e.customHosts)){let o=pc(e.request,e.options,r.CLIENT_REQUEST_ID_HEADER);o||(o=o0(),fc(e.request,e.options,r.CLIENT_REQUEST_ID_HEADER,o));let i=`${r.PRODUCT_NAME}/${ck}`,n;if(e.middlewareControl instanceof go&&(n=e.middlewareControl.getMiddlewareOptions(ji)),n){let s=n.getFeatureUsage();i+=` (${r.FEATURE_USAGE_STRING}=${s})`}_p(e.request,e.options,r.SDK_VERSION_HEADER,i)}else delete e.options.headers[r.CLIENT_REQUEST_ID_HEADER],delete e.options.headers[r.SDK_VERSION_HEADER];return yield this.nextMiddleware.execute(e)})}setNext(e){this.nextMiddleware=e}};Ho.CLIENT_REQUEST_ID_HEADER="client-request-id";Ho.SDK_VERSION_HEADER="SdkVersion";Ho.PRODUCT_NAME="graph-js";Ho.FEATURE_USAGE_STRING="featureUsage"});var uk=y(()=>{l();c();d();Tp();Ep();Qd();Wd();Ap();Ip();Rp()});var Yd,Pp=y(()=>{l();c();d();(function(r){r[r.MANUAL=0]="MANUAL",r[r.RANDOM=1]="RANDOM"})(Yd||(Yd={}))});var n0=y(()=>{l();c();d();Pp()});var hk=y(()=>{l();c();d()});var pk=y(()=>{l();c();d();kt();Ws();Ka();hk();n0();Pp()});var vr,Zd=y(()=>{l();c();d();(function(r){r.ARRAYBUFFER="arraybuffer",r.BLOB="blob",r.DOCUMENT="document",r.JSON="json",r.RAW="raw",r.STREAM="stream",r.TEXT="text"})(vr||(vr={}))});var s0,$p,Op,gc,a0=y(()=>{l();c();d();kt();Zd();(function(r){r.TEXT_HTML="text/html",r.TEXT_XML="text/xml",r.APPLICATION_XML="application/xml",r.APPLICATION_XHTML="application/xhtml+xml"})(s0||(s0={}));(function(r){r.TEXT_PLAIN="text/plain",r.APPLICATION_JSON="application/json"})($p||($p={}));(function(r){r.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",r.IMAGE="^image\\/.+"})(Op||(Op={}));gc=class r{static parseDocumentResponse(e,t){return typeof DOMParser<"u"?new Promise((o,i)=>{e.text().then(n=>{try{let a=new DOMParser().parseFromString(n,t);o(a)}catch(s){i(s)}})}):Promise.resolve(e.body)}static convertResponse(e,t){return _e(this,void 0,void 0,function*(){if(e.status===204)return Promise.resolve();let o,i=e.headers.get("Content-type");switch(t){case vr.ARRAYBUFFER:o=yield e.arrayBuffer();break;case vr.BLOB:o=yield e.blob();break;case vr.DOCUMENT:o=yield r.parseDocumentResponse(e,s0.TEXT_XML);break;case vr.JSON:o=yield e.json();break;case vr.STREAM:o=yield Promise.resolve(e.body);break;case vr.TEXT:o=yield e.text();break;default:if(i!==null){let n=i.split(";")[0];new RegExp(Op.DOCUMENT).test(n)?o=yield r.parseDocumentResponse(e,n):new RegExp(Op.IMAGE).test(n)?o=e.blob():n===$p.TEXT_PLAIN?o=yield e.text():n===$p.APPLICATION_JSON?o=yield e.json():o=Promise.resolve(e.body)}else o=Promise.resolve(e.body);break}return o})}static getResponse(e,t,o){return _e(this,void 0,void 0,function*(){if(t===vr.RAW)return Promise.resolve(e);{let i=yield r.convertResponse(e,t);if(e.ok)if(typeof o=="function")o(null,i);else return i;else throw i}})}}});var Qs,l0=y(()=>{l();c();d();Qs=class{constructor(e=-1,t=-1){this.minValue=e,this.maxValue=t}}});var Jd,c0=y(()=>{l();c();d();Jd=class r{get location(){return this._location}set location(e){this._location=e}get responseBody(){return this._responseBody}set responseBody(e){this._responseBody=e}constructor(e,t){this._location=t,this._responseBody=e}static CreateUploadResult(e,t){return new r(e,t.get("location"))}}});var Xd,d0=y(()=>{l();c();d();kt();ts();a0();Zd();l0();c0();Xd=class{static createUploadSession(e,t,o,i={}){return _e(this,void 0,void 0,function*(){let n=yield e.api(t).headers(i).post(o);return{url:n.uploadUrl,expiry:new Date(n.expirationDateTime),isCancelled:!1}})}constructor(e,t,o,i={}){if(this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=e,t.sliceFile)this.file=t;else throw new gr("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=t,i.rangeSize||(i.rangeSize=this.DEFAULT_FILE_SIZE),this.options=i,this.uploadSession=o,this.nextRange=new Qs(0,this.options.rangeSize-1)}parseRange(e){let t=e[0];if(typeof t>"u"||t==="")return new Qs;let o=t.split("-"),i=parseInt(o[0],10),n=parseInt(o[1],10);return Number.isNaN(n)&&(n=this.file.size-1),new Qs(i,n)}updateTaskStatus(e){this.uploadSession.expiry=new Date(e.expirationDateTime),this.nextRange=this.parseRange(e.nextExpectedRanges)}getNextRange(){if(this.nextRange.minValue===-1)return this.nextRange;let e=this.nextRange.minValue,t=e+this.options.rangeSize-1;return t>=this.file.size&&(t=this.file.size-1),new Qs(e,t)}sliceFile(e){if(console.warn("The LargeFileUploadTask.sliceFile() function has been deprecated and moved into the FileObject interface."),this.file.content instanceof ArrayBuffer||this.file.content instanceof Blob||this.file.content instanceof Uint8Array)return this.file.content.slice(e.minValue,e.maxValue+1);throw new gr("The LargeFileUploadTask.sliceFile() function expects only Blob, ArrayBuffer or Uint8Array file content. Please note that the sliceFile() function is deprecated.")}upload(){return _e(this,void 0,void 0,function*(){let e=this.options&&this.options.uploadEventHandlers;for(;!this.uploadSession.isCancelled;){let t=this.getNextRange();if(t.maxValue===-1){let a=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file");throw a.name="Invalid Session",a}let o=yield this.file.sliceFile(t),i=yield this.uploadSliceGetRawResponse(o,t,this.file.size);if(!i)throw new gr("Something went wrong! Large file upload slice response is null.");let n=yield gc.getResponse(i);if(i.status===201||i.status===200&&n.id)return this.reportProgress(e,t),Jd.CreateUploadResult(n,i.headers);let s={expirationDateTime:n.expirationDateTime||n.ExpirationDateTime,nextExpectedRanges:n.NextExpectedRanges||n.nextExpectedRanges};this.updateTaskStatus(s),this.reportProgress(e,t)}})}reportProgress(e,t){e&&e.progress&&e.progress(t,e.extraCallbackParam)}uploadSlice(e,t,o){return _e(this,void 0,void 0,function*(){return yield this.client.api(this.uploadSession.url).headers({"Content-Length":`${t.maxValue-t.minValue+1}`,"Content-Range":`bytes ${t.minValue}-${t.maxValue}/${o}`,"Content-Type":"application/octet-stream"}).put(e)})}uploadSliceGetRawResponse(e,t,o){return _e(this,void 0,void 0,function*(){return yield this.client.api(this.uploadSession.url).headers({"Content-Length":`${t.maxValue-t.minValue+1}`,"Content-Range":`bytes ${t.minValue}-${t.maxValue}/${o}`,"Content-Type":"application/octet-stream"}).responseType(vr.RAW).put(e)})}cancel(){return _e(this,void 0,void 0,function*(){let e=yield this.client.api(this.uploadSession.url).responseType(vr.RAW).delete();return e.status===204&&(this.uploadSession.isCancelled=!0),e})}getStatus(){return _e(this,void 0,void 0,function*(){let e=yield this.client.api(this.uploadSession.url).get();return this.updateTaskStatus(e),e})}resume(){return _e(this,void 0,void 0,function*(){return yield this.getStatus(),yield this.upload()})}getUploadSession(){return this.uploadSession}}});var eu,u0=y(()=>{l();c();d();ts();eu=class{constructor(e,t,o){if(this.content=e,this.name=t,this.size=o,!e||!t||!o)throw new gr("Please provide the upload content, name of the file and size of the file")}sliceFile(e){return this.content.slice(e.minValue,e.maxValue+1)}}});var aO,h0,p0=y(()=>{l();c();d();aO=r=>(r>327680&&(r=Math.floor(r/327680)*320*1024),r),h0=(r=5242880)=>(r>62914560&&(r=62914560),aO(r))});var Mp,fk=y(()=>{l();c();d();kt();ts();u0();d0();p0();Mp=class r extends Xd{static constructCreateSessionUrl(e,t=r.DEFAULT_UPLOAD_PATH){return e=e.trim(),t=t.trim(),t===""&&(t="/"),t[0]!=="/"&&(t=`/${t}`),t[t.length-1]!=="/"&&(t=`${t}/`),`/me/drive/root:${t.split("/").map(o=>encodeURIComponent(o)).join("/")}${encodeURIComponent(e)}:/createUploadSession`}static getFileInfo(e,t){let o,i;if(typeof Blob<"u"&&e instanceof Blob)o=new File([e],t),i=o.size;else if(typeof File<"u"&&e instanceof File)o=e,i=o.size;else if(typeof Uint8Array<"u"&&e instanceof Uint8Array){let n=e;i=n.byteLength,o=n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}return{content:o,size:i}}static create(e,t,o){return _e(this,void 0,void 0,function*(){if(!e||!t||!o)throw new gr("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");let i=o.fileName,n=r.getFileInfo(t,i),s=new eu(n.content,i,n.size);return this.createTaskWithFileObject(e,s,o)})}static createTaskWithFileObject(e,t,o){return _e(this,void 0,void 0,function*(){if(!e||!t||!o)throw new gr("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");let i=o.uploadSessionURL?o.uploadSessionURL:r.constructCreateSessionUrl(o.fileName,o.path),n={fileName:o.fileName,fileDescription:o.fileDescription,conflictBehavior:o.conflictBehavior},s=yield r.createUploadSession(e,i,n),a=h0(o.rangeSize);return new r(e,t,s,{rangeSize:a,uploadEventHandlers:o.uploadEventHandlers})})}static createUploadSession(e,t,o){let i=Object.create(null,{createUploadSession:{get:()=>super.createUploadSession}});return _e(this,void 0,void 0,function*(){let n={item:{"@microsoft.graph.conflictBehavior":o?.conflictBehavior||"rename",name:o?.fileName,description:o?.fileDescription}};return i.createUploadSession.call(this,e,t,n)})}constructor(e,t,o,i){super(e,t,o,i)}commit(e,t="rename"){return _e(this,void 0,void 0,function*(){let o={name:this.file.name,"@microsoft.graph.conflictBehavior":t,"@microsoft.graph.sourceUrl":this.uploadSession.url};return yield this.client.api(e).put(o)})}};Mp.DEFAULT_UPLOAD_PATH="/"});var mk=y(()=>{l();c();d();kt();ts()});var gk=y(()=>{l();c();d();kt()});var tu,f0=y(()=>{l();c();d();kt();ts();tu=class{constructor(e){this.provider=e}getAccessToken(){return _e(this,void 0,void 0,function*(){return new Promise((e,t)=>{this.provider((o,i)=>_e(this,void 0,void 0,function*(){if(i)e(i);else{if(!o){let s="Access token is undefined or empty. Please provide a valid token. For more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md";o=new gr(s)}let n=yield gr.setGraphClientError(o);t(n)}}))})})}}});var Qa,m0=y(()=>{l();c();d();Qa=class r extends Error{constructor(e=-1,t,o){super(t||o&&o.message),Object.setPrototypeOf(this,r.prototype),this.statusCode=e,this.code=null,this.requestId=null,this.date=new Date,this.body=null,this.stack=o?o.stack:this.stack}}});var Dp,vk=y(()=>{l();c();d();kt();m0();Dp=class r{static constructError(e,t,o){let i=new Qa(t,"",e);return e.name!==void 0&&(i.code=e.name),i.body=e.toString(),i.date=new Date,i.headers=o?.headers,i}static constructErrorFromResponse(e,t,o){let i=e.error,n=new Qa(t,i.message);return n.code=i.code,i.innerError!==void 0&&(n.requestId=i.innerError["request-id"],n.date=new Date(i.innerError.date)),n.body=JSON.stringify(i),n.headers=o?.headers,n}static getError(e=null,t=-1,o,i){return _e(this,void 0,void 0,function*(){let n;if(e&&e.error?n=r.constructErrorFromResponse(e,t,i):e instanceof Error?n=r.constructError(e,t,i):(n=new Qa(t),n.body=e),typeof o=="function")o(n,null);else return n})}}});var ru,g0=y(()=>{l();c();d();kt();ts();vk();Sp();a0();Ws();Kd();Zd();ru=class{constructor(e,t,o){this.parsePath=i=>{if(i.indexOf("https://")!==-1){i=i.replace("https://","");let s=i.indexOf("/");s!==-1&&(this.urlComponents.host="https://"+i.substring(0,s),i=i.substring(s+1,i.length));let a=i.indexOf("/");a!==-1&&(this.urlComponents.version=i.substring(0,a),i=i.substring(a+1,i.length))}i.charAt(0)==="/"&&(i=i.substr(1));let n=i.indexOf("?");if(n===-1)this.urlComponents.path=i;else{this.urlComponents.path=i.substr(0,n);let s=i.substring(n+1,i.length).split("&");for(let a of s)this.parseQueryParameter(a)}},this.httpClient=e,this.config=t,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(o)}addCsvQueryParameter(e,t,o){this.urlComponents.oDataQueryParams[e]=this.urlComponents.oDataQueryParams[e]?this.urlComponents.oDataQueryParams[e]+",":"";let i=[];o.length>1&&typeof t=="string"?i=Array.prototype.slice.call(o):typeof t=="string"?i.push(t):i=i.concat(t),this.urlComponents.oDataQueryParams[e]+=i.join(",")}buildFullUrl(){let e=sk([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(e),e}createQueryString(){let e=this.urlComponents,t=[];if(Object.keys(e.oDataQueryParams).length!==0)for(let o in e.oDataQueryParams)Object.prototype.hasOwnProperty.call(e.oDataQueryParams,o)&&t.push(o+"="+e.oDataQueryParams[o]);if(Object.keys(e.otherURLQueryParams).length!==0)for(let o in e.otherURLQueryParams)Object.prototype.hasOwnProperty.call(e.otherURLQueryParams,o)&&t.push(o+"="+e.otherURLQueryParams[o]);if(e.otherURLQueryOptions.length!==0)for(let o of e.otherURLQueryOptions)t.push(o);return t.length>0?"?"+t.join("&"):""}parseQueryParameter(e){if(typeof e=="string")if(e.charAt(0)==="?"&&(e=e.substring(1)),e.indexOf("&")!==-1){let t=e.split("&");for(let o of t)this.parseQueryParamenterString(o)}else this.parseQueryParamenterString(e);else if(e.constructor===Object)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setURLComponentsQueryParamater(t,e[t]);return this}parseQueryParamenterString(e){if(this.isValidQueryKeyValuePair(e)){let t=e.indexOf("="),o=e.substring(0,t),i=e.substring(t+1);this.setURLComponentsQueryParamater(o,i)}else this.urlComponents.otherURLQueryOptions.push(e)}setURLComponentsQueryParamater(e,t){if(nk.indexOf(e)!==-1){let o=this.urlComponents.oDataQueryParams[e],i=o&&(e==="$expand"||e==="$select"||e==="$orderby");this.urlComponents.oDataQueryParams[e]=i?o+","+t:t}else this.urlComponents.otherURLQueryParams[e]=t}isValidQueryKeyValuePair(e){let t=e.indexOf("=");return!(t===-1||e.indexOf("(")!==-1&&e.indexOf("("){l();c();d();kt();vc=class{constructor(...e){if(!e||!e.length){let t=new Error;throw t.name="InvalidMiddlewareChain",t.message="Please provide a default middleware chain or custom middleware chain",t}this.setMiddleware(...e)}setMiddleware(...e){e.length>1?this.parseMiddleWareArray(e):this.middleware=e[0]}parseMiddleWareArray(e){e.forEach((t,o)=>{o{l();c();d();v0();Tp();Ep();Qd();Wd();Ap();Ip();Rp();lO=()=>typeof process=="object"&&typeof qv=="function",Fp=class r{static createWithAuthenticationProvider(e){let t=new Ki(e),o=new ii(new Dr),i=new Ho,n=new Cn;if(t.setNext(o),lO()){let s=new Wi(new ni);o.setNext(s),s.setNext(i)}else o.setNext(i);return i.setNext(n),r.createWithMiddleware(t)}static createWithMiddleware(...e){return new vc(...e)}}});var bk,wk=y(()=>{l();c();d();bk=()=>{if(typeof Promise>"u"&&typeof fetch>"u"){let r=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw r.name="PolyFillNotAvailable",r}else if(typeof Promise>"u"){let r=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw r.name="PolyFillNotAvailable",r}else if(typeof fetch>"u"){let r=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw r.name="PolyFillNotAvailable",r}return!0}});var Ya,Ck=y(()=>{l();c();d();r0();f0();g0();v0();yk();wk();Ya=class r{static init(e){let t={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=o==="authProvider"?new tu(e[o]):e[o]);return r.initWithMiddleware(t)}static initWithMiddleware(e){return new r(e)}constructor(e){this.config={baseUrl:ok,debugLogging:!1,defaultVersion:rk},bk();for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(this.config[o]=e[o]);let t;if(e.authProvider!==void 0&&e.middleware!==void 0){let o=new Error;throw o.name="AmbiguityInInitialization",o.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",o}else if(e.authProvider!==void 0)t=Fp.createWithAuthenticationProvider(e.authProvider);else if(e.middleware!==void 0)t=new vc(...[].concat(e.middleware));else{let o=new Error;throw o.name="InvalidMiddlewareChain",o.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",o}this.httpClient=t}api(e){return new ru(this.httpClient,this.config,e)}}});var Za=y(()=>{l();c();d();ek();tk();Tp();Ep();Ip();Ap();Rp();uk();i0();Wd();Qd();mc();n0();Pp();pk();d0();fk();p0();mk();u0();c0();l0();gk();Ck();f0();m0();ts();g0();Zd()});var cO,xk,kk=y(()=>{l();c();d();cO=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},xk=r=>cO(void 0,void 0,void 0,function*(){return new Promise(e=>{setTimeout(e,r)})})});var be,y0=y(()=>{l();c();d();Za();es();be=(r,e=V.globalProvider)=>{let o={scopes:e.needsAdditionalScopes(r)};return e.isIncrementalConsentDisabled?[]:[new Wa(void 0,o)]}});var Lp,Sk=y(()=>{l();c();d();Lp=class{constructor(e,t,o,i){this.resource=o.startsWith("/")?o:`/${o}`,this.method=i,this.index=e,this.id=t}}});var _k,Np,Tk=y(()=>{l();c();d();t0();Za();kk();y0();Sk();_k=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},Np=class r{static get baseUrl(){return"https://graph.microsoft.com"}constructor(e){this.graph=e,this.allRequests=[],this.requestsQueue=[],this.scopes=[],this.nextIndex=0,this.retryAfter=0}get hasRequests(){return this.requestsQueue.length>0}get(e,t,o,i){let n=this.nextIndex++,s=new Lp(n,e,t,"GET");s.headers=i,this.allRequests.push(s),this.requestsQueue.push(n),o&&(this.scopes=this.scopes.concat(o))}executeNext(){return _k(this,void 0,void 0,function*(){let e=new Map;if(this.retryAfter&&(yield xk(this.retryAfter*1e3),this.retryAfter=0),!this.hasRequests)return e;let t=this.requestsQueue.splice(0,20),o=new hc;for(let u of t.map(h=>this.allRequests[h]))o.addRequest({id:u.index.toString(),request:new Request(r.baseUrl+u.resource,{method:u.method,headers:u.headers})});let i=this.scopes.length?be(this.scopes):[],n=this.graph.api("$batch").middlewareOptions(i),s=yield o.getContent(),a=yield n.post(s);for(let u of a.responses){let h=new wp,p=parseInt(u.id,10),f=this.allRequests[p];if(h.id=f.id,h.index=f.index,h.headers=u.headers,u.status!==200){if(u.status===429){this.requestsQueue.unshift(p);let b=u.headers["Retry-After"];this.retryAfter=Math.max(this.retryAfter,parseInt(b,10)||1)}continue}else typeof u.body=="string"?u.headers["Content-Type"].includes("image/jpeg")?h.content="data:image/jpeg;base64,"+u.body:u.headers["Content-Type"].includes("image/pjpeg")?h.content="data:image/pjpeg;base64,"+u.body:u.headers["Content-Type"].includes("image/png")&&(h.content="data:image/png;base64,"+u.body):h.content=u.body;e.set(f.id,h)}return e})}executeAll(){return _k(this,void 0,void 0,function*(){let e=new Map;for(;this.hasRequests;){let t=yield this.executeNext();for(let[o,i]of t)e.set(o,i)}return e})}}});var yc,b0=y(()=>{l();c();d();yc=class{constructor(e){typeof e=="string"?this.componentName=e:this.componentName=e.tagName.toLowerCase()}}});var Hp,Up=y(()=>{l();c();d();Hp=(...r)=>{let e=r[0],t=e;for(let o=1;o{l();c();d();Ka();b0();vp();dO=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},Bp=class{constructor(e,t){this._packageVersion=e,this._providerName=t}execute(e){var t;return dO(this,void 0,void 0,function*(){try{if(typeof e.request=="string")if(gp(e.request)){let o=[],i=e.middlewareControl.getMiddlewareOptions(yc);if(i){let a=`${i.componentName}/${this._packageVersion}`;o.push(a)}if(this._providerName){let a=`${this._providerName}/${this._packageVersion}`;o.push(a)}let n=`mgt/${this._packageVersion}`;o.push(n),o.push(pc(e.request,e.options,"SdkVersion"));let s=o.join(", ");fc(e.request,e.options,"SdkVersion",s)}else(t=e?.options)===null||t===void 0||delete t.headers.SdkVersion}catch{}return yield this._nextMiddleware.execute(e)})}setNext(e){this._nextMiddleware=e}}});var rs,ou=y(()=>{l();c();d();rs="4.2.5"});var w0,Jr,bc=y(()=>{l();c();d();w0=class{constructor(){this._disambiguation=""}get defaultPrefix(){return"mgt"}withDisambiguation(e){return e&&!this._disambiguation&&(this._disambiguation=e.toLowerCase(),e!==this._disambiguation&&console.warn(`\u{1F992}: Disambiguation value, ${e}, should be lowercase. Value has been converted to lowercase, ${this._disambiguation}.`)),this}get prefix(){return this._disambiguation?`${this.defaultPrefix}-${this._disambiguation}`:this.defaultPrefix}get disambiguation(){return this._disambiguation}get isDisambiguated(){return!!this._disambiguation}normalize(e){return this.isDisambiguated?e.toUpperCase().replace(this.prefix.toUpperCase(),this.defaultPrefix.toUpperCase()):e}},Jr=new w0});var uO,Ja,C0,iu=y(()=>{l();c();d();Za();jd();Tk();b0();Up();Ek();ou();bc();uO="v1.0",Ja=class r{get client(){return this._client}get componentName(){return this._componentName}get version(){return this._version}constructor(e,t=uO){this._client=e,this._version=t}forComponent(e){let t=new r(this._client,this._version);return t.setComponent(e),t}api(e){let t=this._client.api(e).version(this._version);return this._componentName&&(t.middlewareOptions=o=>(t._middlewareOptions=t._middlewareOptions.concat(o),t),t=t.middlewareOptions([new yc(this._componentName)])),t}createBatch(){return new Np(this)}setComponent(e){this._componentName=e instanceof Element?Jr.normalize(e.tagName):e}},C0=(r,e,t)=>{let o=[new Ki(r),new ii(new Dr),new Ho,new Bp(rs,r.name),new Cn],i=r.baseURL?r.baseURL:Gd,n=Ya.initWithMiddleware({middleware:Hp(...o),customHosts:r.customHosts?new Set(r.customHosts):null,baseUrl:i}),s=new Ja(n,e);return t?s.forComponent(t):s}});var hO,wc,Ik=y(()=>{l();c();d();iu();hO="beta",wc=class r extends Ja{static fromGraph(e){let t=new r(e.client);return t.setComponent(e.componentName),t}constructor(e,t=hO){super(e,t)}forComponent(e){let t=new r(this.client);return this.setComponent(e),t}}});var zp,qp,Rk,Ak,Vp,Pk,x0,Gp,k0=y(()=>{l();c();d();zp=globalThis,qp=zp.ShadowRoot&&(zp.ShadyCSS===void 0||zp.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rk=Symbol(),Ak=new WeakMap,Vp=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Rk)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(qp&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Ak.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ak.set(t,e))}return e}toString(){return this.cssText}},Pk=r=>new Vp(typeof r=="string"?r:r+"",void 0,Rk),x0=(r,e)=>{if(qp)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=zp.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},Gp=qp?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Pk(t)})(r):r});var pO,fO,mO,gO,vO,yO,jp,$k,bO,wO,nu,su,Kp,Ok,Xa,S0=y(()=>{l();c();d();k0();k0();({is:pO,defineProperty:fO,getOwnPropertyDescriptor:mO,getOwnPropertyNames:gO,getOwnPropertySymbols:vO,getPrototypeOf:yO}=Object),jp=globalThis,$k=jp.trustedTypes,bO=$k?$k.emptyScript:"",wO=jp.reactiveElementPolyfillSupport,nu=(r,e)=>r,su={toAttribute(r,e){switch(e){case Boolean:r=r?bO:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Kp=(r,e)=>!pO(r,e),Ok={attribute:!0,type:String,converter:su,reflect:!1,hasChanged:Kp};Symbol.metadata??=Symbol("metadata"),jp.litPropertyMetadata??=new WeakMap;Xa=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ok){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&fO(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:n}=mO(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);n.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ok}static _$Ei(){if(this.hasOwnProperty(nu("elementProperties")))return;let e=yO(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(nu("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(nu("properties"))){let t=this.properties,o=[...gO(t),...vO(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(Gp(i))}else e!==void 0&&t.push(Gp(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return x0(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EC(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:su).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let n=o.getPropertyOptions(i),s=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:su;this._$Em=i,this[i]=s.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Kp)(this[e],t))return;this.P(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,n]of o)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EC(t,this[t])),this._$EU()}updated(e){}firstUpdated(e){}};Xa.elementStyles=[],Xa.shadowRootOptions={mode:"open"},Xa[nu("elementProperties")]=new Map,Xa[nu("finalized")]=new Map,wO?.({ReactiveElement:Xa}),(jp.reactiveElementVersions??=[]).push("2.0.4")});function qk(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Mk!==void 0?Mk.createHTML(e):e}function ol(r,e,t=r,o){if(e===is)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,n=lu(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=ol(r,i._$AS(r,e.values),i,o)),e}var T0,Wp,Mk,E0,os,I0,CO,rl,Qp,lu,Uk,Bk,_0,au,Dk,Fk,el,Lk,Nk,zk,Vk,Oj,Mj,is,yr,Hk,tl,Gk,cu,Yp,du,il,Zp,Jp,Xp,ef,jk,xO,Cc=y(()=>{l();c();d();T0=globalThis,Wp=T0.trustedTypes,Mk=Wp?Wp.createPolicy("lit-html",{createHTML:r=>r}):void 0,E0="$lit$",os=`lit$${(Math.random()+"").slice(9)}$`,I0="?"+os,CO=`<${I0}>`,rl=document,Qp=()=>rl.createComment(""),lu=r=>r===null||typeof r!="object"&&typeof r!="function",Uk=Array.isArray,Bk=r=>Uk(r)||typeof r?.[Symbol.iterator]=="function",_0=`[ -\f\r]`,au=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Dk=/-->/g,Fk=/>/g,el=RegExp(`>|${_0}(?:([^\\s"'>=/]+)(${_0}*=${_0}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Lk=/'/g,Nk=/"/g,zk=/^(?:script|style|textarea|title)$/i,Vk=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),Oj=Vk(1),Mj=Vk(2),is=Symbol.for("lit-noChange"),yr=Symbol.for("lit-nothing"),Hk=new WeakMap,tl=rl.createTreeWalker(rl,129);Gk=(r,e)=>{let t=r.length-1,o=[],i,n=e===2?"":"",s=au;for(let a=0;a"?(s=i??au,f=-1):p[1]===void 0?f=-2:(f=s.lastIndex-p[2].length,h=p[1],s=p[3]===void 0?el:p[3]==='"'?Nk:Lk):s===Nk||s===Lk?s=el:s===Dk||s===Fk?s=au:(s=el,i=void 0);let C=s===el&&r[a+1].startsWith("/>")?" ":"";n+=s===au?u+CO:f>=0?(o.push(h),u.slice(0,f)+E0+u.slice(f)+os+C):u+os+(f===-2?a:C)}return[qk(r,n+(r[t]||"")+(e===2?"":"")),o]},cu=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let n=0,s=0,a=e.length-1,u=this.parts,[h,p]=Gk(e,t);if(this.el=r.createElement(h,o),tl.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=tl.nextNode())!==null&&u.length0){i.textContent=Wp?Wp.emptyScript:"";for(let C=0;C2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=yr}_$AI(e,t=this,o,i){let n=this.strings,s=!1;if(n===void 0)e=ol(this,e,t,0),s=!lu(e)||e!==this._$AH&&e!==is,s&&(this._$AH=e);else{let a=e,u,h;for(e=n[0],u=0;u{l();c();d();tf=globalThis,rf=tf.ShadowRoot&&(tf.ShadyCSS===void 0||tf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,A0=Symbol(),Kk=new WeakMap,uu=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==A0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(rf&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Kk.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Kk.set(t,e))}return e}toString(){return this.cssText}},Wk=r=>new uu(typeof r=="string"?r:r+"",void 0,A0),Oe=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,i,n)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1],r[0]);return new uu(t,r,A0)},R0=(r,e)=>{if(rf)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=tf.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},of=rf?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Wk(t)})(r):r});var kO,SO,_O,TO,EO,IO,nf,Qk,AO,RO,hu,$0,Zk,Yk,ns,O0=y(()=>{l();c();d();P0();P0();({is:kO,defineProperty:SO,getOwnPropertyDescriptor:_O,getOwnPropertyNames:TO,getOwnPropertySymbols:EO,getPrototypeOf:IO}=Object),nf=globalThis,Qk=nf.trustedTypes,AO=Qk?Qk.emptyScript:"",RO=nf.reactiveElementPolyfillSupport,hu=(r,e)=>r,$0={toAttribute(r,e){switch(e){case Boolean:r=r?AO:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Zk=(r,e)=>!kO(r,e),Yk={attribute:!0,type:String,converter:$0,reflect:!1,hasChanged:Zk};Symbol.metadata??=Symbol("metadata"),nf.litPropertyMetadata??=new WeakMap;ns=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Yk){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&SO(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:n}=_O(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);n.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Yk}static _$Ei(){if(this.hasOwnProperty(hu("elementProperties")))return;let e=IO(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(hu("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hu("properties"))){let t=this.properties,o=[...TO(t),...EO(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(of(i))}else e!==void 0&&t.push(of(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return R0(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EC(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:$0).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let n=o.getPropertyOptions(i),s=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:$0;this._$Em=i,this[i]=s.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Zk)(this[e],t))return;this.P(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,n]of o)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EC(t,this[t])),this._$EU()}updated(e){}firstUpdated(e){}};ns.elementStyles=[],ns.shadowRootOptions={mode:"open"},ns[hu("elementProperties")]=new Map,ns[hu("finalized")]=new Map,RO?.({ReactiveElement:ns}),(nf.reactiveElementVersions??=[]).push("2.0.4")});function cS(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Jk!==void 0?Jk.createHTML(e):e}function xc(r,e,t=r,o){if(e===ll)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,n=mu(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=xc(r,i._$AS(r,e.values),i,o)),e}var U0,sf,Jk,iS,Ys,nS,PO,al,fu,mu,sS,$O,M0,pu,Xk,eS,nl,tS,rS,aS,lS,x,Qj,ll,ot,oS,sl,OO,gu,D0,vu,kc,F0,L0,N0,H0,MO,dS,B0=y(()=>{l();c();d();U0=globalThis,sf=U0.trustedTypes,Jk=sf?sf.createPolicy("lit-html",{createHTML:r=>r}):void 0,iS="$lit$",Ys=`lit$${(Math.random()+"").slice(9)}$`,nS="?"+Ys,PO=`<${nS}>`,al=document,fu=()=>al.createComment(""),mu=r=>r===null||typeof r!="object"&&typeof r!="function",sS=Array.isArray,$O=r=>sS(r)||typeof r?.[Symbol.iterator]=="function",M0=`[ +3. Same - all individual requests that state a dependency in the dependsOn property, state the same dependency.`);throw n.name="Invalid Dependency",n}for(;!i.done;){let n=i.value[1],s=yield r.getRequestData(n.request);if(s.body!==void 0&&(s.headers===void 0||s.headers["content-type"]===void 0)){let a=new Error(`Content-type header is not mentioned for request #${n.id}, For request having body, Content-type header should be mentioned`);throw a.name="Invalid Content-type header",a}s.id=n.id,n.dependsOn!==void 0&&n.dependsOn.length>0&&(s.dependsOn=n.dependsOn),e.push(s),i=o.next()}return t.requests=e,t})}addDependency(e,t){if(!this.requests.has(e)){let o=new Error(`Dependent ${e} does not exists, Please check the id`);throw o.name="Invalid Dependent",o}if(typeof t<"u"&&!this.requests.has(t)){let o=new Error(`Dependency ${t} does not exists, Please check the id`);throw o.name="Invalid Dependency",o}if(typeof t<"u"){let o=this.requests.get(e);if(o.dependsOn===void 0&&(o.dependsOn=[]),o.dependsOn.indexOf(t)!==-1){let i=new Error(`Dependency ${t} is already added for the request ${e}`);throw i.name="Duplicate Dependency",i}o.dependsOn.push(t)}else{let o=this.requests.entries(),i,n=o.next();for(;!n.done&&n.value[1].id!==e;)i=n,n=o.next();if(typeof i<"u"){let s=i.value[0];if(n.value[1].dependsOn===void 0&&(n.value[1].dependsOn=[]),n.value[1].dependsOn.indexOf(s)!==-1){let a=new Error(`Dependency ${s} is already added for the request ${e}`);throw a.name="Duplicate Dependency",a}n.value[1].dependsOn.push(s)}else{let s=new Error(`Can't add dependency ${t}, There is only a dependent request in the batch`);throw s.name="Invalid Dependency Addition",s}}}removeDependency(e,t){let o=this.requests.get(e);if(typeof o>"u"||o.dependsOn===void 0||o.dependsOn.length===0)return!1;if(typeof t<"u"){let i=o.dependsOn.indexOf(t);return i===-1?!1:(o.dependsOn.splice(i,1),!0)}else return delete o.dependsOn,!0}};hc.requestLimit=20});var tk=y(()=>{l();c();d()});var rk,ok,ik,r0=y(()=>{l();c();d();rk="v1.0",ok="https://graph.microsoft.com/",ik=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"])});var gr,ts=y(()=>{l();c();d();gr=class r extends Error{static setGraphClientError(e){let t;return e instanceof Error?t=e:(t=new r,t.customError=e),t}constructor(e){super(e),Object.setPrototypeOf(this,r.prototype)}}});var nk,sk,Cp,xp,kp,ak,nO,Sp=y(()=>{l();c();d();r0();ts();nk=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],sk=r=>{let e=n=>n.replace(/\/+$/,""),t=n=>n.replace(/^\/+/,""),o=(n,s)=>[e(n),t(s)].join("/");return Array.prototype.slice.call(r).reduce(o)},Cp=r=>{let e=r&&r.constructor&&r.constructor.name;if(e==="Buffer"||e==="Blob"||e==="File"||e==="FormData"||typeof r=="string")return r;if(e==="ArrayBuffer")r=Buffer.from(r);else if(e==="Int8Array"||e==="Int16Array"||e==="Int32Array"||e==="Uint8Array"||e==="Uint16Array"||e==="Uint32Array"||e==="Uint8ClampedArray"||e==="Float32Array"||e==="Float64Array"||e==="DataView")r=Buffer.from(r.buffer);else try{r=JSON.stringify(r)}catch{throw new Error("Unable to stringify the content")}return r},xp=r=>ak(r),kp=(r,e)=>(e.forEach(t=>nO(t)),ak(r,e)),ak=(r,e=ik)=>{if(r=r.toLowerCase(),r.indexOf("https://")!==-1){r=r.replace("https://","");let t=r.indexOf(":"),o=r.indexOf("/"),i="";if(o!==-1)return t!==-1&&t{if(r.indexOf("/")!==-1)throw new gr("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")}});var go,Ws=y(()=>{l();c();d();go=class{constructor(e=[]){this.middlewareOptions=new Map;for(let t of e){let o=t.constructor;this.middlewareOptions.set(o,t)}}getMiddlewareOptions(e){return this.middlewareOptions.get(e)}setMiddlewareOptions(e,t){this.middlewareOptions.set(e,t)}}});var o0,pc,fc,_p,lk,Ka=y(()=>{l();c();d();kt();o0=()=>{let r="";for(let e=0;e<32;e++)(e===8||e===12||e===16||e===20)&&(r+="-"),r+=Math.floor(Math.random()*16).toString(16);return r},pc=(r,e,t)=>{let o=null;if(typeof Request<"u"&&r instanceof Request)o=r.headers.get(t);else if(typeof e<"u"&&e.headers!==void 0)if(typeof Headers<"u"&&e.headers instanceof Headers)o=e.headers.get(t);else if(e.headers instanceof Array){let i=e.headers;for(let n=0,s=i.length;n{if(typeof Request<"u"&&r instanceof Request)r.headers.set(t,o);else if(typeof e<"u")if(e.headers===void 0)e.headers=new Headers({[t]:o});else if(typeof Headers<"u"&&e.headers instanceof Headers)e.headers.set(t,o);else if(e.headers instanceof Array){let i=0,n=e.headers.length;for(;i{typeof Request<"u"&&r instanceof Request?r.headers.append(t,o):typeof e<"u"&&(e.headers===void 0?e.headers=new Headers({[t]:o}):typeof Headers<"u"&&e.headers instanceof Headers?e.headers.append(t,o):e.headers instanceof Array?e.headers.push([t,o]):e.headers===void 0?e.headers={[t]:o}:e.headers[t]===void 0?e.headers[t]=o:e.headers[t]+=`, ${o}`)},lk=(r,e)=>_e(void 0,void 0,void 0,function*(){let t=e.headers.get("Content-Type")?yield e.blob():yield Promise.resolve(void 0),{method:o,headers:i,referrer:n,referrerPolicy:s,mode:a,credentials:u,cache:h,redirect:p,integrity:f,keepalive:b,signal:C}=e;return new Request(r,{method:o,headers:i,body:t,referrer:n,referrerPolicy:s,mode:a,credentials:u,cache:h,redirect:p,integrity:f,keepalive:b,signal:C})})});var Wa,i0=y(()=>{l();c();d();Wa=class{constructor(e,t){this.authenticationProvider=e,this.authenticationProviderOptions=t}}});var wn,ji,mc=y(()=>{l();c();d();Ws();(function(r){r[r.NONE=0]="NONE",r[r.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",r[r.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",r[r.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})(wn||(wn={}));ji=class r{constructor(){this.featureUsage=wn.NONE}static updateFeatureUsageFlag(e,t){let o;e.middlewareControl instanceof go?o=e.middlewareControl.getMiddlewareOptions(r):e.middlewareControl=new go,typeof o>"u"&&(o=new r,e.middlewareControl.setMiddlewareOptions(r,o)),o.setFeatureUsage(t)}setFeatureUsage(e){this.featureUsage=this.featureUsage|e}getFeatureUsage(){return this.featureUsage.toString(16)}}});var Ki,Tp=y(()=>{l();c();d();kt();Sp();Ws();Ka();i0();mc();Ki=class r{constructor(e){this.authenticationProvider=e}execute(e){return _e(this,void 0,void 0,function*(){let t=typeof e.request=="string"?e.request:e.request.url;if(xp(t)||e.customHosts&&kp(t,e.customHosts)){let o;e.middlewareControl instanceof go&&(o=e.middlewareControl.getMiddlewareOptions(Wa));let i,n;o&&(i=o.authenticationProvider,n=o.authenticationProviderOptions),i||(i=this.authenticationProvider);let a=`Bearer ${yield i.getAccessToken(n)}`;_p(e.request,e.options,r.AUTHORIZATION_HEADER,a),ji.updateFeatureUsageFlag(e,wn.AUTHENTICATION_HANDLER_ENABLED)}else e.options.headers&&delete e.options.headers[r.AUTHORIZATION_HEADER];return yield this.nextMiddleware.execute(e)})}setNext(e){this.nextMiddleware=e}};Ki.AUTHORIZATION_HEADER="Authorization"});var Cn,Ep=y(()=>{l();c();d();kt();Cn=class{execute(e){return _e(this,void 0,void 0,function*(){e.response=yield fetch(e.request,e.options)})}}});var Fr,Wd=y(()=>{l();c();d();Fr=class r{constructor(e=r.DEFAULT_DELAY,t=r.DEFAULT_MAX_RETRIES,o=r.defaultShouldRetry){if(e>r.MAX_DELAY&&t>r.MAX_MAX_RETRIES){let i=new Error(`Delay and MaxRetries should not be more than ${r.MAX_DELAY} and ${r.MAX_MAX_RETRIES}`);throw i.name="MaxLimitExceeded",i}else if(e>r.MAX_DELAY){let i=new Error(`Delay should not be more than ${r.MAX_DELAY}`);throw i.name="MaxLimitExceeded",i}else if(t>r.MAX_MAX_RETRIES){let i=new Error(`MaxRetries should not be more than ${r.MAX_MAX_RETRIES}`);throw i.name="MaxLimitExceeded",i}else if(e<0&&t<0){let i=new Error("Delay and MaxRetries should not be negative");throw i.name="MinExpectationNotMet",i}else if(e<0){let i=new Error("Delay should not be negative");throw i.name="MinExpectationNotMet",i}else if(t<0){let i=new Error("MaxRetries should not be negative");throw i.name="MinExpectationNotMet",i}this.delay=Math.min(e,r.MAX_DELAY),this.maxRetries=Math.min(t,r.MAX_MAX_RETRIES),this.shouldRetry=o}getMaxDelay(){return r.MAX_DELAY}};Fr.DEFAULT_DELAY=3;Fr.DEFAULT_MAX_RETRIES=3;Fr.MAX_DELAY=180;Fr.MAX_MAX_RETRIES=10;Fr.defaultShouldRetry=()=>!0});var ii,Ip=y(()=>{l();c();d();kt();Kd();Ws();Ka();Wd();mc();ii=class r{constructor(e=new Fr){this.options=e}isRetry(e){return r.RETRY_STATUS_CODES.indexOf(e.status)!==-1}isBuffered(e,t){let o=typeof e=="string"?t.method:e.method;return!((o===mr.PUT||o===mr.PATCH||o===mr.POST)&&pc(e,t,"Content-Type")==="application/octet-stream")}getDelay(e,t,o){let i=()=>Number(Math.random().toFixed(3)),n=e.headers!==void 0?e.headers.get(r.RETRY_AFTER_HEADER):null,s;return n!==null?Number.isNaN(Number(n))?s=Math.round((new Date(n).getTime()-Date.now())/1e3):s=Number(n):s=t>=2?this.getExponentialBackOffTime(t)+o+i():o+i(),Math.min(s,this.options.getMaxDelay()+i())}getExponentialBackOffTime(e){return Math.round(1/2*(Math.pow(2,e)-1))}sleep(e){return _e(this,void 0,void 0,function*(){let t=e*1e3;return new Promise(o=>setTimeout(o,t))})}getOptions(e){let t;return e.middlewareControl instanceof go&&(t=e.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof t>"u"&&(t=Object.assign(new Fr,this.options)),t}executeWithRetry(e,t,o){return _e(this,void 0,void 0,function*(){if(yield this.nextMiddleware.execute(e),t{l();c();d();ni=class r{constructor(e=r.DEFAULT_MAX_REDIRECTS,t=r.defaultShouldRedirect){if(e>r.MAX_MAX_REDIRECTS){let o=new Error(`MaxRedirects should not be more than ${r.MAX_MAX_REDIRECTS}`);throw o.name="MaxLimitExceeded",o}if(e<0){let o=new Error("MaxRedirects should not be negative");throw o.name="MinExpectationNotMet",o}this.maxRedirects=e,this.shouldRedirect=t}};ni.DEFAULT_MAX_REDIRECTS=5;ni.MAX_MAX_REDIRECTS=20;ni.defaultShouldRedirect=()=>!0});var Wi,Ap=y(()=>{l();c();d();kt();Kd();Ws();Ka();Qd();mc();Wi=class r{constructor(e=new ni){this.options=e}isRedirect(e){return r.REDIRECT_STATUS_CODES.indexOf(e.status)!==-1}hasLocationHeader(e){return e.headers.has(r.LOCATION_HEADER)}getLocationHeader(e){return e.headers.get(r.LOCATION_HEADER)}isRelativeURL(e){return e.indexOf("://")===-1}shouldDropAuthorizationHeader(e,t){let o=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,i=o.exec(e),n,s;i!==null&&(n=i[0]);let a=o.exec(t);return a!==null&&(s=a[0]),typeof n<"u"&&typeof s<"u"&&n!==s}updateRequestUrl(e,t){return _e(this,void 0,void 0,function*(){t.request=typeof t.request=="string"?e:yield lk(e,t.request)})}getOptions(e){let t;return e.middlewareControl instanceof go&&(t=e.middlewareControl.getMiddlewareOptions(ni)),typeof t>"u"&&(t=Object.assign(new ni,this.options)),t}executeWithRedirect(e,t,o){return _e(this,void 0,void 0,function*(){yield this.nextMiddleware.execute(e);let i=e.response;if(t{l();c();d();ck="3.0.7"});var Ho,Rp=y(()=>{l();c();d();kt();Sp();dk();Ws();Ka();mc();Ho=class r{execute(e){return _e(this,void 0,void 0,function*(){let t=typeof e.request=="string"?e.request:e.request.url;if(xp(t)||e.customHosts&&kp(t,e.customHosts)){let o=pc(e.request,e.options,r.CLIENT_REQUEST_ID_HEADER);o||(o=o0(),fc(e.request,e.options,r.CLIENT_REQUEST_ID_HEADER,o));let i=`${r.PRODUCT_NAME}/${ck}`,n;if(e.middlewareControl instanceof go&&(n=e.middlewareControl.getMiddlewareOptions(ji)),n){let s=n.getFeatureUsage();i+=` (${r.FEATURE_USAGE_STRING}=${s})`}_p(e.request,e.options,r.SDK_VERSION_HEADER,i)}else delete e.options.headers[r.CLIENT_REQUEST_ID_HEADER],delete e.options.headers[r.SDK_VERSION_HEADER];return yield this.nextMiddleware.execute(e)})}setNext(e){this.nextMiddleware=e}};Ho.CLIENT_REQUEST_ID_HEADER="client-request-id";Ho.SDK_VERSION_HEADER="SdkVersion";Ho.PRODUCT_NAME="graph-js";Ho.FEATURE_USAGE_STRING="featureUsage"});var uk=y(()=>{l();c();d();Tp();Ep();Qd();Wd();Ap();Ip();Rp()});var Yd,Pp=y(()=>{l();c();d();(function(r){r[r.MANUAL=0]="MANUAL",r[r.RANDOM=1]="RANDOM"})(Yd||(Yd={}))});var n0=y(()=>{l();c();d();Pp()});var hk=y(()=>{l();c();d()});var pk=y(()=>{l();c();d();kt();Ws();Ka();hk();n0();Pp()});var vr,Zd=y(()=>{l();c();d();(function(r){r.ARRAYBUFFER="arraybuffer",r.BLOB="blob",r.DOCUMENT="document",r.JSON="json",r.RAW="raw",r.STREAM="stream",r.TEXT="text"})(vr||(vr={}))});var s0,$p,Op,gc,a0=y(()=>{l();c();d();kt();Zd();(function(r){r.TEXT_HTML="text/html",r.TEXT_XML="text/xml",r.APPLICATION_XML="application/xml",r.APPLICATION_XHTML="application/xhtml+xml"})(s0||(s0={}));(function(r){r.TEXT_PLAIN="text/plain",r.APPLICATION_JSON="application/json"})($p||($p={}));(function(r){r.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",r.IMAGE="^image\\/.+"})(Op||(Op={}));gc=class r{static parseDocumentResponse(e,t){return typeof DOMParser<"u"?new Promise((o,i)=>{e.text().then(n=>{try{let a=new DOMParser().parseFromString(n,t);o(a)}catch(s){i(s)}})}):Promise.resolve(e.body)}static convertResponse(e,t){return _e(this,void 0,void 0,function*(){if(e.status===204)return Promise.resolve();let o,i=e.headers.get("Content-type");switch(t){case vr.ARRAYBUFFER:o=yield e.arrayBuffer();break;case vr.BLOB:o=yield e.blob();break;case vr.DOCUMENT:o=yield r.parseDocumentResponse(e,s0.TEXT_XML);break;case vr.JSON:o=yield e.json();break;case vr.STREAM:o=yield Promise.resolve(e.body);break;case vr.TEXT:o=yield e.text();break;default:if(i!==null){let n=i.split(";")[0];new RegExp(Op.DOCUMENT).test(n)?o=yield r.parseDocumentResponse(e,n):new RegExp(Op.IMAGE).test(n)?o=e.blob():n===$p.TEXT_PLAIN?o=yield e.text():n===$p.APPLICATION_JSON?o=yield e.json():o=Promise.resolve(e.body)}else o=Promise.resolve(e.body);break}return o})}static getResponse(e,t,o){return _e(this,void 0,void 0,function*(){if(t===vr.RAW)return Promise.resolve(e);{let i=yield r.convertResponse(e,t);if(e.ok)if(typeof o=="function")o(null,i);else return i;else throw i}})}}});var Qs,l0=y(()=>{l();c();d();Qs=class{constructor(e=-1,t=-1){this.minValue=e,this.maxValue=t}}});var Jd,c0=y(()=>{l();c();d();Jd=class r{get location(){return this._location}set location(e){this._location=e}get responseBody(){return this._responseBody}set responseBody(e){this._responseBody=e}constructor(e,t){this._location=t,this._responseBody=e}static CreateUploadResult(e,t){return new r(e,t.get("location"))}}});var Xd,d0=y(()=>{l();c();d();kt();ts();a0();Zd();l0();c0();Xd=class{static createUploadSession(e,t,o,i={}){return _e(this,void 0,void 0,function*(){let n=yield e.api(t).headers(i).post(o);return{url:n.uploadUrl,expiry:new Date(n.expirationDateTime),isCancelled:!1}})}constructor(e,t,o,i={}){if(this.DEFAULT_FILE_SIZE=5*1024*1024,this.client=e,t.sliceFile)this.file=t;else throw new gr("Please pass the FileUpload object, StreamUpload object or any custom implementation of the FileObject interface");this.file=t,i.rangeSize||(i.rangeSize=this.DEFAULT_FILE_SIZE),this.options=i,this.uploadSession=o,this.nextRange=new Qs(0,this.options.rangeSize-1)}parseRange(e){let t=e[0];if(typeof t>"u"||t==="")return new Qs;let o=t.split("-"),i=parseInt(o[0],10),n=parseInt(o[1],10);return Number.isNaN(n)&&(n=this.file.size-1),new Qs(i,n)}updateTaskStatus(e){this.uploadSession.expiry=new Date(e.expirationDateTime),this.nextRange=this.parseRange(e.nextExpectedRanges)}getNextRange(){if(this.nextRange.minValue===-1)return this.nextRange;let e=this.nextRange.minValue,t=e+this.options.rangeSize-1;return t>=this.file.size&&(t=this.file.size-1),new Qs(e,t)}sliceFile(e){if(console.warn("The LargeFileUploadTask.sliceFile() function has been deprecated and moved into the FileObject interface."),this.file.content instanceof ArrayBuffer||this.file.content instanceof Blob||this.file.content instanceof Uint8Array)return this.file.content.slice(e.minValue,e.maxValue+1);throw new gr("The LargeFileUploadTask.sliceFile() function expects only Blob, ArrayBuffer or Uint8Array file content. Please note that the sliceFile() function is deprecated.")}upload(){return _e(this,void 0,void 0,function*(){let e=this.options&&this.options.uploadEventHandlers;for(;!this.uploadSession.isCancelled;){let t=this.getNextRange();if(t.maxValue===-1){let a=new Error("Task with which you are trying to upload is already completed, Please check for your uploaded file");throw a.name="Invalid Session",a}let o=yield this.file.sliceFile(t),i=yield this.uploadSliceGetRawResponse(o,t,this.file.size);if(!i)throw new gr("Something went wrong! Large file upload slice response is null.");let n=yield gc.getResponse(i);if(i.status===201||i.status===200&&n.id)return this.reportProgress(e,t),Jd.CreateUploadResult(n,i.headers);let s={expirationDateTime:n.expirationDateTime||n.ExpirationDateTime,nextExpectedRanges:n.NextExpectedRanges||n.nextExpectedRanges};this.updateTaskStatus(s),this.reportProgress(e,t)}})}reportProgress(e,t){e&&e.progress&&e.progress(t,e.extraCallbackParam)}uploadSlice(e,t,o){return _e(this,void 0,void 0,function*(){return yield this.client.api(this.uploadSession.url).headers({"Content-Length":`${t.maxValue-t.minValue+1}`,"Content-Range":`bytes ${t.minValue}-${t.maxValue}/${o}`,"Content-Type":"application/octet-stream"}).put(e)})}uploadSliceGetRawResponse(e,t,o){return _e(this,void 0,void 0,function*(){return yield this.client.api(this.uploadSession.url).headers({"Content-Length":`${t.maxValue-t.minValue+1}`,"Content-Range":`bytes ${t.minValue}-${t.maxValue}/${o}`,"Content-Type":"application/octet-stream"}).responseType(vr.RAW).put(e)})}cancel(){return _e(this,void 0,void 0,function*(){let e=yield this.client.api(this.uploadSession.url).responseType(vr.RAW).delete();return e.status===204&&(this.uploadSession.isCancelled=!0),e})}getStatus(){return _e(this,void 0,void 0,function*(){let e=yield this.client.api(this.uploadSession.url).get();return this.updateTaskStatus(e),e})}resume(){return _e(this,void 0,void 0,function*(){return yield this.getStatus(),yield this.upload()})}getUploadSession(){return this.uploadSession}}});var eu,u0=y(()=>{l();c();d();ts();eu=class{constructor(e,t,o){if(this.content=e,this.name=t,this.size=o,!e||!t||!o)throw new gr("Please provide the upload content, name of the file and size of the file")}sliceFile(e){return this.content.slice(e.minValue,e.maxValue+1)}}});var aO,h0,p0=y(()=>{l();c();d();aO=r=>(r>327680&&(r=Math.floor(r/327680)*320*1024),r),h0=(r=5242880)=>(r>62914560&&(r=62914560),aO(r))});var Mp,fk=y(()=>{l();c();d();kt();ts();u0();d0();p0();Mp=class r extends Xd{static constructCreateSessionUrl(e,t=r.DEFAULT_UPLOAD_PATH){return e=e.trim(),t=t.trim(),t===""&&(t="/"),t[0]!=="/"&&(t=`/${t}`),t[t.length-1]!=="/"&&(t=`${t}/`),`/me/drive/root:${t.split("/").map(o=>encodeURIComponent(o)).join("/")}${encodeURIComponent(e)}:/createUploadSession`}static getFileInfo(e,t){let o,i;if(typeof Blob<"u"&&e instanceof Blob)o=new File([e],t),i=o.size;else if(typeof File<"u"&&e instanceof File)o=e,i=o.size;else if(typeof Uint8Array<"u"&&e instanceof Uint8Array){let n=e;i=n.byteLength,o=n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}return{content:o,size:i}}static create(e,t,o){return _e(this,void 0,void 0,function*(){if(!e||!t||!o)throw new gr("Please provide the Graph client instance, file object and OneDriveLargeFileUploadOptions value");let i=o.fileName,n=r.getFileInfo(t,i),s=new eu(n.content,i,n.size);return this.createTaskWithFileObject(e,s,o)})}static createTaskWithFileObject(e,t,o){return _e(this,void 0,void 0,function*(){if(!e||!t||!o)throw new gr("Please provide the Graph client instance, FileObject interface implementation and OneDriveLargeFileUploadOptions value");let i=o.uploadSessionURL?o.uploadSessionURL:r.constructCreateSessionUrl(o.fileName,o.path),n={fileName:o.fileName,fileDescription:o.fileDescription,conflictBehavior:o.conflictBehavior},s=yield r.createUploadSession(e,i,n),a=h0(o.rangeSize);return new r(e,t,s,{rangeSize:a,uploadEventHandlers:o.uploadEventHandlers})})}static createUploadSession(e,t,o){let i=Object.create(null,{createUploadSession:{get:()=>super.createUploadSession}});return _e(this,void 0,void 0,function*(){let n={item:{"@microsoft.graph.conflictBehavior":o?.conflictBehavior||"rename",name:o?.fileName,description:o?.fileDescription}};return i.createUploadSession.call(this,e,t,n)})}constructor(e,t,o,i){super(e,t,o,i)}commit(e,t="rename"){return _e(this,void 0,void 0,function*(){let o={name:this.file.name,"@microsoft.graph.conflictBehavior":t,"@microsoft.graph.sourceUrl":this.uploadSession.url};return yield this.client.api(e).put(o)})}};Mp.DEFAULT_UPLOAD_PATH="/"});var mk=y(()=>{l();c();d();kt();ts()});var gk=y(()=>{l();c();d();kt()});var tu,f0=y(()=>{l();c();d();kt();ts();tu=class{constructor(e){this.provider=e}getAccessToken(){return _e(this,void 0,void 0,function*(){return new Promise((e,t)=>{this.provider((o,i)=>_e(this,void 0,void 0,function*(){if(i)e(i);else{if(!o){let s="Access token is undefined or empty. Please provide a valid token. For more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md";o=new gr(s)}let n=yield gr.setGraphClientError(o);t(n)}}))})})}}});var Qa,m0=y(()=>{l();c();d();Qa=class r extends Error{constructor(e=-1,t,o){super(t||o&&o.message),Object.setPrototypeOf(this,r.prototype),this.statusCode=e,this.code=null,this.requestId=null,this.date=new Date,this.body=null,this.stack=o?o.stack:this.stack}}});var Fp,vk=y(()=>{l();c();d();kt();m0();Fp=class r{static constructError(e,t,o){let i=new Qa(t,"",e);return e.name!==void 0&&(i.code=e.name),i.body=e.toString(),i.date=new Date,i.headers=o?.headers,i}static constructErrorFromResponse(e,t,o){let i=e.error,n=new Qa(t,i.message);return n.code=i.code,i.innerError!==void 0&&(n.requestId=i.innerError["request-id"],n.date=new Date(i.innerError.date)),n.body=JSON.stringify(i),n.headers=o?.headers,n}static getError(e=null,t=-1,o,i){return _e(this,void 0,void 0,function*(){let n;if(e&&e.error?n=r.constructErrorFromResponse(e,t,i):e instanceof Error?n=r.constructError(e,t,i):(n=new Qa(t),n.body=e),typeof o=="function")o(n,null);else return n})}}});var ru,g0=y(()=>{l();c();d();kt();ts();vk();Sp();a0();Ws();Kd();Zd();ru=class{constructor(e,t,o){this.parsePath=i=>{if(i.indexOf("https://")!==-1){i=i.replace("https://","");let s=i.indexOf("/");s!==-1&&(this.urlComponents.host="https://"+i.substring(0,s),i=i.substring(s+1,i.length));let a=i.indexOf("/");a!==-1&&(this.urlComponents.version=i.substring(0,a),i=i.substring(a+1,i.length))}i.charAt(0)==="/"&&(i=i.substr(1));let n=i.indexOf("?");if(n===-1)this.urlComponents.path=i;else{this.urlComponents.path=i.substr(0,n);let s=i.substring(n+1,i.length).split("&");for(let a of s)this.parseQueryParameter(a)}},this.httpClient=e,this.config=t,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(o)}addCsvQueryParameter(e,t,o){this.urlComponents.oDataQueryParams[e]=this.urlComponents.oDataQueryParams[e]?this.urlComponents.oDataQueryParams[e]+",":"";let i=[];o.length>1&&typeof t=="string"?i=Array.prototype.slice.call(o):typeof t=="string"?i.push(t):i=i.concat(t),this.urlComponents.oDataQueryParams[e]+=i.join(",")}buildFullUrl(){let e=sk([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(e),e}createQueryString(){let e=this.urlComponents,t=[];if(Object.keys(e.oDataQueryParams).length!==0)for(let o in e.oDataQueryParams)Object.prototype.hasOwnProperty.call(e.oDataQueryParams,o)&&t.push(o+"="+e.oDataQueryParams[o]);if(Object.keys(e.otherURLQueryParams).length!==0)for(let o in e.otherURLQueryParams)Object.prototype.hasOwnProperty.call(e.otherURLQueryParams,o)&&t.push(o+"="+e.otherURLQueryParams[o]);if(e.otherURLQueryOptions.length!==0)for(let o of e.otherURLQueryOptions)t.push(o);return t.length>0?"?"+t.join("&"):""}parseQueryParameter(e){if(typeof e=="string")if(e.charAt(0)==="?"&&(e=e.substring(1)),e.indexOf("&")!==-1){let t=e.split("&");for(let o of t)this.parseQueryParamenterString(o)}else this.parseQueryParamenterString(e);else if(e.constructor===Object)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setURLComponentsQueryParamater(t,e[t]);return this}parseQueryParamenterString(e){if(this.isValidQueryKeyValuePair(e)){let t=e.indexOf("="),o=e.substring(0,t),i=e.substring(t+1);this.setURLComponentsQueryParamater(o,i)}else this.urlComponents.otherURLQueryOptions.push(e)}setURLComponentsQueryParamater(e,t){if(nk.indexOf(e)!==-1){let o=this.urlComponents.oDataQueryParams[e],i=o&&(e==="$expand"||e==="$select"||e==="$orderby");this.urlComponents.oDataQueryParams[e]=i?o+","+t:t}else this.urlComponents.otherURLQueryParams[e]=t}isValidQueryKeyValuePair(e){let t=e.indexOf("=");return!(t===-1||e.indexOf("(")!==-1&&e.indexOf("("){l();c();d();kt();vc=class{constructor(...e){if(!e||!e.length){let t=new Error;throw t.name="InvalidMiddlewareChain",t.message="Please provide a default middleware chain or custom middleware chain",t}this.setMiddleware(...e)}setMiddleware(...e){e.length>1?this.parseMiddleWareArray(e):this.middleware=e[0]}parseMiddleWareArray(e){e.forEach((t,o)=>{o{l();c();d();v0();Tp();Ep();Qd();Wd();Ap();Ip();Rp();lO=()=>typeof process=="object"&&typeof qv=="function",Dp=class r{static createWithAuthenticationProvider(e){let t=new Ki(e),o=new ii(new Fr),i=new Ho,n=new Cn;if(t.setNext(o),lO()){let s=new Wi(new ni);o.setNext(s),s.setNext(i)}else o.setNext(i);return i.setNext(n),r.createWithMiddleware(t)}static createWithMiddleware(...e){return new vc(...e)}}});var bk,wk=y(()=>{l();c();d();bk=()=>{if(typeof Promise>"u"&&typeof fetch>"u"){let r=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw r.name="PolyFillNotAvailable",r}else if(typeof Promise>"u"){let r=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw r.name="PolyFillNotAvailable",r}else if(typeof fetch>"u"){let r=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw r.name="PolyFillNotAvailable",r}return!0}});var Ya,Ck=y(()=>{l();c();d();r0();f0();g0();v0();yk();wk();Ya=class r{static init(e){let t={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=o==="authProvider"?new tu(e[o]):e[o]);return r.initWithMiddleware(t)}static initWithMiddleware(e){return new r(e)}constructor(e){this.config={baseUrl:ok,debugLogging:!1,defaultVersion:rk},bk();for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(this.config[o]=e[o]);let t;if(e.authProvider!==void 0&&e.middleware!==void 0){let o=new Error;throw o.name="AmbiguityInInitialization",o.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",o}else if(e.authProvider!==void 0)t=Dp.createWithAuthenticationProvider(e.authProvider);else if(e.middleware!==void 0)t=new vc(...[].concat(e.middleware));else{let o=new Error;throw o.name="InvalidMiddlewareChain",o.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",o}this.httpClient=t}api(e){return new ru(this.httpClient,this.config,e)}}});var Za=y(()=>{l();c();d();ek();tk();Tp();Ep();Ip();Ap();Rp();uk();i0();Wd();Qd();mc();n0();Pp();pk();d0();fk();p0();mk();u0();c0();l0();gk();Ck();f0();m0();ts();g0();Zd()});var cO,xk,kk=y(()=>{l();c();d();cO=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},xk=r=>cO(void 0,void 0,void 0,function*(){return new Promise(e=>{setTimeout(e,r)})})});var be,y0=y(()=>{l();c();d();Za();es();be=(r,e=V.globalProvider)=>{let o={scopes:e.needsAdditionalScopes(r)};return e.isIncrementalConsentDisabled?[]:[new Wa(void 0,o)]}});var Lp,Sk=y(()=>{l();c();d();Lp=class{constructor(e,t,o,i){this.resource=o.startsWith("/")?o:`/${o}`,this.method=i,this.index=e,this.id=t}}});var _k,Np,Tk=y(()=>{l();c();d();t0();Za();kk();y0();Sk();_k=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},Np=class r{static get baseUrl(){return"https://graph.microsoft.com"}constructor(e){this.graph=e,this.allRequests=[],this.requestsQueue=[],this.scopes=[],this.nextIndex=0,this.retryAfter=0}get hasRequests(){return this.requestsQueue.length>0}get(e,t,o,i){let n=this.nextIndex++,s=new Lp(n,e,t,"GET");s.headers=i,this.allRequests.push(s),this.requestsQueue.push(n),o&&(this.scopes=this.scopes.concat(o))}executeNext(){return _k(this,void 0,void 0,function*(){let e=new Map;if(this.retryAfter&&(yield xk(this.retryAfter*1e3),this.retryAfter=0),!this.hasRequests)return e;let t=this.requestsQueue.splice(0,20),o=new hc;for(let u of t.map(h=>this.allRequests[h]))o.addRequest({id:u.index.toString(),request:new Request(r.baseUrl+u.resource,{method:u.method,headers:u.headers})});let i=this.scopes.length?be(this.scopes):[],n=this.graph.api("$batch").middlewareOptions(i),s=yield o.getContent(),a=yield n.post(s);for(let u of a.responses){let h=new wp,p=parseInt(u.id,10),f=this.allRequests[p];if(h.id=f.id,h.index=f.index,h.headers=u.headers,u.status!==200){if(u.status===429){this.requestsQueue.unshift(p);let b=u.headers["Retry-After"];this.retryAfter=Math.max(this.retryAfter,parseInt(b,10)||1)}continue}else typeof u.body=="string"?u.headers["Content-Type"].includes("image/jpeg")?h.content="data:image/jpeg;base64,"+u.body:u.headers["Content-Type"].includes("image/pjpeg")?h.content="data:image/pjpeg;base64,"+u.body:u.headers["Content-Type"].includes("image/png")&&(h.content="data:image/png;base64,"+u.body):h.content=u.body;e.set(f.id,h)}return e})}executeAll(){return _k(this,void 0,void 0,function*(){let e=new Map;for(;this.hasRequests;){let t=yield this.executeNext();for(let[o,i]of t)e.set(o,i)}return e})}}});var yc,b0=y(()=>{l();c();d();yc=class{constructor(e){typeof e=="string"?this.componentName=e:this.componentName=e.tagName.toLowerCase()}}});var Hp,Up=y(()=>{l();c();d();Hp=(...r)=>{let e=r[0],t=e;for(let o=1;o{l();c();d();Ka();b0();vp();dO=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},Bp=class{constructor(e,t){this._packageVersion=e,this._providerName=t}execute(e){var t;return dO(this,void 0,void 0,function*(){try{if(typeof e.request=="string")if(gp(e.request)){let o=[],i=e.middlewareControl.getMiddlewareOptions(yc);if(i){let a=`${i.componentName}/${this._packageVersion}`;o.push(a)}if(this._providerName){let a=`${this._providerName}/${this._packageVersion}`;o.push(a)}let n=`mgt/${this._packageVersion}`;o.push(n),o.push(pc(e.request,e.options,"SdkVersion"));let s=o.join(", ");fc(e.request,e.options,"SdkVersion",s)}else(t=e?.options)===null||t===void 0||delete t.headers.SdkVersion}catch{}return yield this._nextMiddleware.execute(e)})}setNext(e){this._nextMiddleware=e}}});var rs,ou=y(()=>{l();c();d();rs="4.2.5"});var w0,Jr,bc=y(()=>{l();c();d();w0=class{constructor(){this._disambiguation=""}get defaultPrefix(){return"mgt"}withDisambiguation(e){return e&&!this._disambiguation&&(this._disambiguation=e.toLowerCase(),e!==this._disambiguation&&console.warn(`\u{1F992}: Disambiguation value, ${e}, should be lowercase. Value has been converted to lowercase, ${this._disambiguation}.`)),this}get prefix(){return this._disambiguation?`${this.defaultPrefix}-${this._disambiguation}`:this.defaultPrefix}get disambiguation(){return this._disambiguation}get isDisambiguated(){return!!this._disambiguation}normalize(e){return this.isDisambiguated?e.toUpperCase().replace(this.prefix.toUpperCase(),this.defaultPrefix.toUpperCase()):e}},Jr=new w0});var uO,Ja,C0,iu=y(()=>{l();c();d();Za();jd();Tk();b0();Up();Ek();ou();bc();uO="v1.0",Ja=class r{get client(){return this._client}get componentName(){return this._componentName}get version(){return this._version}constructor(e,t=uO){this._client=e,this._version=t}forComponent(e){let t=new r(this._client,this._version);return t.setComponent(e),t}api(e){let t=this._client.api(e).version(this._version);return this._componentName&&(t.middlewareOptions=o=>(t._middlewareOptions=t._middlewareOptions.concat(o),t),t=t.middlewareOptions([new yc(this._componentName)])),t}createBatch(){return new Np(this)}setComponent(e){this._componentName=e instanceof Element?Jr.normalize(e.tagName):e}},C0=(r,e,t)=>{let o=[new Ki(r),new ii(new Fr),new Ho,new Bp(rs,r.name),new Cn],i=r.baseURL?r.baseURL:Gd,n=Ya.initWithMiddleware({middleware:Hp(...o),customHosts:r.customHosts?new Set(r.customHosts):null,baseUrl:i}),s=new Ja(n,e);return t?s.forComponent(t):s}});var hO,wc,Ik=y(()=>{l();c();d();iu();hO="beta",wc=class r extends Ja{static fromGraph(e){let t=new r(e.client);return t.setComponent(e.componentName),t}constructor(e,t=hO){super(e,t)}forComponent(e){let t=new r(this.client);return this.setComponent(e),t}}});var zp,qp,Rk,Ak,Vp,Pk,x0,Gp,k0=y(()=>{l();c();d();zp=globalThis,qp=zp.ShadowRoot&&(zp.ShadyCSS===void 0||zp.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rk=Symbol(),Ak=new WeakMap,Vp=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Rk)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(qp&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Ak.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ak.set(t,e))}return e}toString(){return this.cssText}},Pk=r=>new Vp(typeof r=="string"?r:r+"",void 0,Rk),x0=(r,e)=>{if(qp)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=zp.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},Gp=qp?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Pk(t)})(r):r});var pO,fO,mO,gO,vO,yO,jp,$k,bO,wO,nu,su,Kp,Ok,Xa,S0=y(()=>{l();c();d();k0();k0();({is:pO,defineProperty:fO,getOwnPropertyDescriptor:mO,getOwnPropertyNames:gO,getOwnPropertySymbols:vO,getPrototypeOf:yO}=Object),jp=globalThis,$k=jp.trustedTypes,bO=$k?$k.emptyScript:"",wO=jp.reactiveElementPolyfillSupport,nu=(r,e)=>r,su={toAttribute(r,e){switch(e){case Boolean:r=r?bO:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Kp=(r,e)=>!pO(r,e),Ok={attribute:!0,type:String,converter:su,reflect:!1,hasChanged:Kp};Symbol.metadata??=Symbol("metadata"),jp.litPropertyMetadata??=new WeakMap;Xa=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ok){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&fO(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:n}=mO(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);n.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ok}static _$Ei(){if(this.hasOwnProperty(nu("elementProperties")))return;let e=yO(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(nu("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(nu("properties"))){let t=this.properties,o=[...gO(t),...vO(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(Gp(i))}else e!==void 0&&t.push(Gp(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return x0(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EC(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:su).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let n=o.getPropertyOptions(i),s=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:su;this._$Em=i,this[i]=s.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Kp)(this[e],t))return;this.P(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,n]of o)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EC(t,this[t])),this._$EU()}updated(e){}firstUpdated(e){}};Xa.elementStyles=[],Xa.shadowRootOptions={mode:"open"},Xa[nu("elementProperties")]=new Map,Xa[nu("finalized")]=new Map,wO?.({ReactiveElement:Xa}),(jp.reactiveElementVersions??=[]).push("2.0.4")});function qk(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Mk!==void 0?Mk.createHTML(e):e}function ol(r,e,t=r,o){if(e===is)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,n=lu(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=ol(r,i._$AS(r,e.values),i,o)),e}var T0,Wp,Mk,E0,os,I0,CO,rl,Qp,lu,Uk,Bk,_0,au,Fk,Dk,el,Lk,Nk,zk,Vk,Oj,Mj,is,yr,Hk,tl,Gk,cu,Yp,du,il,Zp,Jp,Xp,ef,jk,xO,Cc=y(()=>{l();c();d();T0=globalThis,Wp=T0.trustedTypes,Mk=Wp?Wp.createPolicy("lit-html",{createHTML:r=>r}):void 0,E0="$lit$",os=`lit$${(Math.random()+"").slice(9)}$`,I0="?"+os,CO=`<${I0}>`,rl=document,Qp=()=>rl.createComment(""),lu=r=>r===null||typeof r!="object"&&typeof r!="function",Uk=Array.isArray,Bk=r=>Uk(r)||typeof r?.[Symbol.iterator]=="function",_0=`[ +\f\r]`,au=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fk=/-->/g,Dk=/>/g,el=RegExp(`>|${_0}(?:([^\\s"'>=/]+)(${_0}*=${_0}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Lk=/'/g,Nk=/"/g,zk=/^(?:script|style|textarea|title)$/i,Vk=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),Oj=Vk(1),Mj=Vk(2),is=Symbol.for("lit-noChange"),yr=Symbol.for("lit-nothing"),Hk=new WeakMap,tl=rl.createTreeWalker(rl,129);Gk=(r,e)=>{let t=r.length-1,o=[],i,n=e===2?"":"",s=au;for(let a=0;a"?(s=i??au,f=-1):p[1]===void 0?f=-2:(f=s.lastIndex-p[2].length,h=p[1],s=p[3]===void 0?el:p[3]==='"'?Nk:Lk):s===Nk||s===Lk?s=el:s===Fk||s===Dk?s=au:(s=el,i=void 0);let C=s===el&&r[a+1].startsWith("/>")?" ":"";n+=s===au?u+CO:f>=0?(o.push(h),u.slice(0,f)+E0+u.slice(f)+os+C):u+os+(f===-2?a:C)}return[qk(r,n+(r[t]||"")+(e===2?"":"")),o]},cu=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let n=0,s=0,a=e.length-1,u=this.parts,[h,p]=Gk(e,t);if(this.el=r.createElement(h,o),tl.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=tl.nextNode())!==null&&u.length0){i.textContent=Wp?Wp.emptyScript:"";for(let C=0;C2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=yr}_$AI(e,t=this,o,i){let n=this.strings,s=!1;if(n===void 0)e=ol(this,e,t,0),s=!lu(e)||e!==this._$AH&&e!==is,s&&(this._$AH=e);else{let a=e,u,h;for(e=n[0],u=0;u{l();c();d();tf=globalThis,rf=tf.ShadowRoot&&(tf.ShadyCSS===void 0||tf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,A0=Symbol(),Kk=new WeakMap,uu=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==A0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(rf&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Kk.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Kk.set(t,e))}return e}toString(){return this.cssText}},Wk=r=>new uu(typeof r=="string"?r:r+"",void 0,A0),Oe=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,i,n)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1],r[0]);return new uu(t,r,A0)},R0=(r,e)=>{if(rf)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=tf.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},of=rf?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Wk(t)})(r):r});var kO,SO,_O,TO,EO,IO,nf,Qk,AO,RO,hu,$0,Zk,Yk,ns,O0=y(()=>{l();c();d();P0();P0();({is:kO,defineProperty:SO,getOwnPropertyDescriptor:_O,getOwnPropertyNames:TO,getOwnPropertySymbols:EO,getPrototypeOf:IO}=Object),nf=globalThis,Qk=nf.trustedTypes,AO=Qk?Qk.emptyScript:"",RO=nf.reactiveElementPolyfillSupport,hu=(r,e)=>r,$0={toAttribute(r,e){switch(e){case Boolean:r=r?AO:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Zk=(r,e)=>!kO(r,e),Yk={attribute:!0,type:String,converter:$0,reflect:!1,hasChanged:Zk};Symbol.metadata??=Symbol("metadata"),nf.litPropertyMetadata??=new WeakMap;ns=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Yk){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&SO(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:n}=_O(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);n.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Yk}static _$Ei(){if(this.hasOwnProperty(hu("elementProperties")))return;let e=IO(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(hu("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hu("properties"))){let t=this.properties,o=[...TO(t),...EO(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(of(i))}else e!==void 0&&t.push(of(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return R0(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EC(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:$0).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let n=o.getPropertyOptions(i),s=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:$0;this._$Em=i,this[i]=s.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Zk)(this[e],t))return;this.P(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,n]of o)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],n)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EC(t,this[t])),this._$EU()}updated(e){}firstUpdated(e){}};ns.elementStyles=[],ns.shadowRootOptions={mode:"open"},ns[hu("elementProperties")]=new Map,ns[hu("finalized")]=new Map,RO?.({ReactiveElement:ns}),(nf.reactiveElementVersions??=[]).push("2.0.4")});function cS(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Jk!==void 0?Jk.createHTML(e):e}function xc(r,e,t=r,o){if(e===ll)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,n=mu(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=xc(r,i._$AS(r,e.values),i,o)),e}var U0,sf,Jk,iS,Ys,nS,PO,al,fu,mu,sS,$O,M0,pu,Xk,eS,nl,tS,rS,aS,lS,x,Qj,ll,ot,oS,sl,OO,gu,F0,vu,kc,D0,L0,N0,H0,MO,dS,B0=y(()=>{l();c();d();U0=globalThis,sf=U0.trustedTypes,Jk=sf?sf.createPolicy("lit-html",{createHTML:r=>r}):void 0,iS="$lit$",Ys=`lit$${(Math.random()+"").slice(9)}$`,nS="?"+Ys,PO=`<${nS}>`,al=document,fu=()=>al.createComment(""),mu=r=>r===null||typeof r!="object"&&typeof r!="function",sS=Array.isArray,$O=r=>sS(r)||typeof r?.[Symbol.iterator]=="function",M0=`[ \f\r]`,pu=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xk=/-->/g,eS=/>/g,nl=RegExp(`>|${M0}(?:([^\\s"'>=/]+)(${M0}*=${M0}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),tS=/'/g,rS=/"/g,aS=/^(?:script|style|textarea|title)$/i,lS=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),x=lS(1),Qj=lS(2),ll=Symbol.for("lit-noChange"),ot=Symbol.for("lit-nothing"),oS=new WeakMap,sl=al.createTreeWalker(al,129);OO=(r,e)=>{let t=r.length-1,o=[],i,n=e===2?"":"",s=pu;for(let a=0;a"?(s=i??pu,f=-1):p[1]===void 0?f=-2:(f=s.lastIndex-p[2].length,h=p[1],s=p[3]===void 0?nl:p[3]==='"'?rS:tS):s===rS||s===tS?s=nl:s===Xk||s===eS?s=pu:(s=nl,i=void 0);let C=s===nl&&r[a+1].startsWith("/>")?" ":"";n+=s===pu?u+PO:f>=0?(o.push(h),u.slice(0,f)+iS+u.slice(f)+Ys+C):u+Ys+(f===-2?a:C)}return[cS(r,n+(r[t]||"")+(e===2?"":"")),o]},gu=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let n=0,s=0,a=e.length-1,u=this.parts,[h,p]=OO(e,t);if(this.el=r.createElement(h,o),sl.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=sl.nextNode())!==null&&u.length0){i.textContent=sf?sf.emptyScript:"";for(let C=0;C2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ot}_$AI(e,t=this,o,i){let n=this.strings,s=!1;if(n===void 0)e=xc(this,e,t,0),s=!mu(e)||e!==this._$AH&&e!==ll,s&&(this._$AH=e);else{let a=e,u,h;for(e=n[0],u=0;u{let o=t?.renderBefore??e,i=o._$litPart$;if(i===void 0){let n=t?.renderBefore??null;o._$litPart$=i=new vu(e.insertBefore(fu(),n),n,void 0,t??{})}return i._$AI(r),i}});var xn,DO,uS=y(()=>{l();c();d();O0();O0();B0();B0();xn=class extends ns{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=dS(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ll}};xn._$litElement$=!0,xn["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:xn});DO=globalThis.litElementPolyfillSupport;DO?.({LitElement:xn});(globalThis.litElementVersions??=[]).push("4.0.4")});var hS=y(()=>{l();c();d();});var xe=y(()=>{l();c();d();S0();Cc();uS();hS()});var pS=y(()=>{l();c();d();});function E(r){return(e,t)=>typeof t=="object"?LO(r,e,t):((o,i,n)=>{let s=i.hasOwnProperty(n);return i.constructor.createProperty(n,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(i,n):void 0})(r,e,t)}var FO,LO,z0=y(()=>{l();c();d();S0();FO={attribute:!0,type:String,converter:su,reflect:!1,hasChanged:Kp},LO=(r=FO,e,t)=>{let{kind:o,metadata:i}=t,n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(a){let u=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,u,r)},init(a){return a!==void 0&&this.P(s,void 0,r),a}}}if(o==="setter"){let{name:s}=t;return function(a){let u=this[s];e.call(this,a),this.requestUpdate(s,u,r)}}throw Error("Unsupported decorator location: "+o)}});function X(r){return E({...r,state:!0,attribute:!1})}var fS=y(()=>{l();c();d();z0();});var mS=y(()=>{l();c();d();});var Sc=y(()=>{l();c();d();});var gS=y(()=>{l();c();d();Sc();});var vS=y(()=>{l();c();d();Sc();});var yS=y(()=>{l();c();d();Sc();});var bS=y(()=>{l();c();d();Sc();});var wS=y(()=>{l();c();d();Sc();});var gt=y(()=>{l();c();d();pS();z0();fS();mS();gS();vS();yS();bS();wS()});var Er,lf=y(()=>{l();c();d();qd();Er=class{static get strings(){return this._strings}static set strings(e){this._strings=e,this._stringsEventDispatcher.fire(null)}static getDocumentDirection(){var e,t;switch(((e=document.body)===null||e===void 0?void 0:e.getAttribute("dir"))||((t=document.documentElement)===null||t===void 0?void 0:t.getAttribute("dir"))){case"rtl":return"rtl";case"auto":return"auto";case"ltr":default:return"ltr"}}static onStringsUpdated(e){this._stringsEventDispatcher.add(e)}static removeOnStringsUpdated(e){this._stringsEventDispatcher.remove(e)}static onDirectionUpdated(e){this._directionEventDispatcher.add(e),this.initDirection()}static removeOnDirectionUpdated(e){this._directionEventDispatcher.remove(e)}static initDirection(){if(this._isDirectionInit)return;this._isDirectionInit=!0,this.mutationObserver=new MutationObserver(t=>{t.forEach(o=>{o.attributeName==="dir"&&this._directionEventDispatcher.fire(null)})});let e={attributes:!0,attributeFilter:["dir"]};this.mutationObserver.observe(document.body,e),this.mutationObserver.observe(document.documentElement,e)}static updateStringsForTag(e,t){var o;if(e=e.toLowerCase(),e.startsWith("mgt-")&&(e=e.substring(4)),this._strings&&t){for(let i of Object.entries(t)){let n=this._strings[i[0]];typeof n=="string"&&(t[i[0]]=n)}if(!((o=this._strings._components)===null||o===void 0)&&o[e]){let i=this._strings._components[e];for(let n of Object.keys(i))t[n]&&(t[n]=i[n])}}return t}};Er._stringsEventDispatcher=new Gi;Er._directionEventDispatcher=new Gi;Er._isDirectionInit=!1});var xS,kS,CS,ss,kn,yu=y(()=>{l();c();d();xe();gt();bn();es();lf();ou();xS=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},kS=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},CS=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})};(function(r){r.mobile="",r.tablet="tablet",r.desktop="desktop"})(ss||(ss={}));kn=class extends xn{static get packageVersion(){return rs}get mediaQuery(){return this.offsetWidth<768?ss.mobile:this.offsetWidth<1200?ss.tablet:ss.desktop}get isLoadingState(){return this._isLoadingState}get isFirstUpdated(){return this._isFirstUpdated}get strings(){return{}}constructor(){super(),this.providerState=oe.Loading,this.direction="ltr",this._isLoadingState=!1,this._isFirstUpdated=!1,this.setLoadingState=e=>{this._isLoadingState!==e&&(this._isLoadingState=e,this.requestUpdate("isLoadingState"))},this.handleProviderUpdates=()=>{var e,t;this.providerState=(t=(e=V.globalProvider)===null||e===void 0?void 0:e.state)!==null&&t!==void 0?t:oe.Loading,this.requestStateUpdate()},this.handleActiveAccountUpdates=()=>{this.clearState(),this.requestStateUpdate()},this.handleLocalizationChanged=()=>{Er.updateStringsForTag(this.tagName,this.strings),this.requestUpdate()},this.handleDirectionChanged=()=>{this.direction=Er.getDocumentDirection()},this.handleDirectionChanged(),this.handleLocalizationChanged()}connectedCallback(){super.connectedCallback(),Er.onStringsUpdated(this.handleLocalizationChanged),Er.onDirectionUpdated(this.handleDirectionChanged)}disconnectedCallback(){super.disconnectedCallback(),Er.removeOnStringsUpdated(this.handleLocalizationChanged),Er.removeOnDirectionUpdated(this.handleDirectionChanged),V.removeProviderUpdatedListener(this.handleProviderUpdates),V.removeActiveAccountChangedListener(this.handleActiveAccountUpdates)}firstUpdated(e){super.firstUpdated(e),this._isFirstUpdated=!0,V.onProviderUpdated(this.handleProviderUpdates),V.onActiveAccountChanged(this.handleActiveAccountUpdates),this.requestStateUpdate()}loadState(){return Promise.resolve()}clearState(){}fireCustomEvent(e,t,o=!1,i=!1,n=!1){let s=new CustomEvent(e,{bubbles:o,cancelable:i,composed:n,detail:t});return this.dispatchEvent(s)}updated(e){super.updated(e);let t=new CustomEvent("updated",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}requestStateUpdate(e=!1){return CS(this,void 0,void 0,function*(){if(!this._isFirstUpdated)return;this.isLoadingState&&!e&&(yield this._currentLoadStatePromise);let t=V.globalProvider;if(!t)return Promise.resolve();if(t.state===oe.SignedOut){this.clearState();return}else{if(t.state===oe.Loading)return Promise.resolve();{let o=new Promise((i,n)=>CS(this,void 0,void 0,function*(){try{this.setLoadingState(!0),this.fireCustomEvent("loadingInitiated"),yield this.loadState(),this.setLoadingState(!1),this.fireCustomEvent("loadingCompleted"),i()}catch(s){this.clearState(),this.setLoadingState(!1),this.fireCustomEvent("loadingFailed"),n(s)}return this._currentLoadStatePromise=this.isLoadingState&&this._currentLoadStatePromise&&e?this._currentLoadStatePromise.then(()=>o):o}))}}})}};xS([X(),kS("design:type",Number)],kn.prototype,"providerState",void 0);xS([X(),kS("design:type",String)],kn.prototype,"direction",void 0)});var V0,q0,_c,SS=y(()=>{l();c();d();gt();yu();V0=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},q0=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},_c=class extends kn{constructor(){super(...arguments),this.stateChangedHandler=()=>{this.fireCustomEvent("onStateChanged",this.provider.state)}}get provider(){return this._provider}set provider(e){this._provider&&this.provider.removeStateChangedHandler(()=>this.stateChangedHandler),this._provider=e,this._provider&&this.provider.onStateChanged(()=>this.stateChangedHandler)}get isAvailable(){return!0}firstUpdated(e){super.firstUpdated(e);let t=!1;if(this.dependsOn){let o=this.dependsOn;for(;o;){if(o.isAvailable){t=!0;break}o=o.dependsOn}}!t&&this.isAvailable&&this.initializeProvider()}initializeProvider(){}};V0([E({attribute:"depends-on",converter:r=>document.querySelector(r),type:String}),q0("design:type",_c)],_c.prototype,"dependsOn",void 0);V0([E({attribute:"base-url",type:String}),q0("design:type",String)],_c.prototype,"baseUrl",void 0);V0([E({attribute:"custom-hosts",type:String,converter:r=>r.split(",").map(e=>e.trim())}),q0("design:type",Array)],_c.prototype,"customHosts",void 0)});var cf,uf,TS,_S,df,ES,G0,hf,j0=y(()=>{l();c();d();cf=globalThis,uf=cf.ShadowRoot&&(cf.ShadyCSS===void 0||cf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,TS=Symbol(),_S=new WeakMap,df=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==TS)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(uf&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=_S.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&_S.set(t,e))}return e}toString(){return this.cssText}},ES=r=>new df(typeof r=="string"?r:r+"",void 0,TS),G0=(r,e)=>{if(uf)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=cf.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},hf=uf?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return ES(t)})(r):r});var NO,HO,UO,BO,zO,VO,pf,IS,qO,GO,bu,K0,ff,AS,cl,RS=y(()=>{l();c();d();j0();j0();({is:NO,defineProperty:HO,getOwnPropertyDescriptor:UO,getOwnPropertyNames:BO,getOwnPropertySymbols:zO,getPrototypeOf:VO}=Object),pf=globalThis,IS=pf.trustedTypes,qO=IS?IS.emptyScript:"",GO=pf.reactiveElementPolyfillSupport,bu=(r,e)=>r,K0={toAttribute(r,e){switch(e){case Boolean:r=r?qO:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},ff=(r,e)=>!NO(r,e),AS={attribute:!0,type:String,converter:K0,reflect:!1,hasChanged:ff};Symbol.metadata??=Symbol("metadata"),pf.litPropertyMetadata??=new WeakMap;cl=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=AS){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&HO(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:n}=UO(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);n.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??AS}static _$Ei(){if(this.hasOwnProperty(bu("elementProperties")))return;let e=VO(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(bu("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(bu("properties"))){let t=this.properties,o=[...BO(t),...zO(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(hf(i))}else e!==void 0&&t.push(hf(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return G0(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:K0).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let n=o.getPropertyOptions(i),s=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:K0;this._$Em=i,this[i]=s.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??ff)(this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$ET??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,n]of o)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],n)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$Ej()}catch(o){throw e=!1,this._$Ej(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ej(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$ET&&=this._$ET.forEach(t=>this._$EO(t,this[t])),this._$Ej()}updated(e){}firstUpdated(e){}};cl.elementStyles=[],cl.shadowRootOptions={mode:"open"},cl[bu("elementProperties")]=new Map,cl[bu("finalized")]=new Map,GO?.({ReactiveElement:cl}),(pf.reactiveElementVersions??=[]).push("2.0.3")});var Zs,PS,wu,$S,OS=y(()=>{l();c();d();RS();Zs={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},PS=Symbol(),wu=class{get taskComplete(){return this.t||(this.status===1?this.t=new Promise((e,t)=>{this.i=e,this.o=t}):this.status===3?this.t=Promise.reject(this.h):this.t=Promise.resolve(this.l)),this.t}constructor(e,t,o){this.u=0,this.status=0,(this.p=e).addController(this);let i=typeof t=="object"?t:{task:t,args:o};this._=i.task,this.v=i.args,this.j=i.argsEqual??$S,this.m=i.onComplete,this.g=i.onError,this.autoRun=i.autoRun??!0,"initialValue"in i&&(this.l=i.initialValue,this.status=2,this.k=this.A?.())}hostUpdate(){this.autoRun===!0&&this.O()}hostUpdated(){this.autoRun==="afterUpdate"&&this.O()}A(){if(this.v===void 0)return;let e=this.v();if(!Array.isArray(e))throw Error("The args function must return an array");return e}async O(){let e=this.A(),t=this.k;this.k=e,e===t||e===void 0||t!==void 0&&this.j(t,e)||await this.run(e)}async run(e){let t,o;e??=this.A(),this.k=e,this.status===1?this.T?.abort():(this.t=void 0,this.i=void 0,this.o=void 0),this.status=1,this.autoRun==="afterUpdate"?queueMicrotask(()=>this.p.requestUpdate()):this.p.requestUpdate();let i=++this.u;this.T=new AbortController;let n=!1;try{t=await this._(e,{signal:this.T.signal})}catch(s){n=!0,o=s}if(this.u===i){if(t===PS)this.status=0;else{if(n===!1){try{this.m?.(t)}catch{}this.status=2,this.i?.(t)}else{try{this.g?.(o)}catch{}this.status=3,this.o?.(o)}this.l=t,this.h=o}this.p.requestUpdate()}}abort(e){this.status===1&&this.T?.abort(e)}get value(){return this.l}get error(){return this.h}render(e){switch(this.status){case 0:return e.initial?.();case 1:return e.pending?.();case 2:return e.complete?.(this.value);case 3:return e.error?.(this.error);default:throw Error("Unexpected status: "+this.status)}}},$S=(r,e)=>r===e||r.length===e.length&&r.every((t,o)=>!ff(t,e[o]))});var Cu=y(()=>{l();c();d();OS()});var MS,DS,jO,Fr,W0=y(()=>{l();c();d();Cu();xe();gt();bn();es();lf();ou();yu();MS=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},DS=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},jO=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},Fr=class extends xn{static get packageVersion(){return rs}get mediaQuery(){return this.offsetWidth<768?ss.mobile:this.offsetWidth<1200?ss.tablet:ss.desktop}get isFirstUpdated(){return this._isFirstUpdated}get strings(){return{}}constructor(){super(),this.providerState=oe.Loading,this.direction="ltr",this._isFirstUpdated=!1,this._task=new wu(this,{task:()=>this.loadState(),args:()=>this.args()}),this.renderLoading=()=>x`Loading...`,this.renderError=e=>x`

Error: ${e}

`,this.renderContent=()=>x``,this.handleProviderUpdates=()=>{var e,t;this.providerState=(t=(e=V.globalProvider)===null||e===void 0?void 0:e.state)!==null&&t!==void 0?t:oe.Loading},this.handleActiveAccountUpdates=()=>{this.clearState()},this.handleLocalizationChanged=()=>{Er.updateStringsForTag(this.tagName,this.strings),this.requestUpdate()},this.handleDirectionChanged=()=>{this.direction=Er.getDocumentDirection()},this.handleDirectionChanged(),this.handleLocalizationChanged()}connectedCallback(){super.connectedCallback(),Er.onStringsUpdated(this.handleLocalizationChanged),Er.onDirectionUpdated(this.handleDirectionChanged)}disconnectedCallback(){super.disconnectedCallback(),Er.removeOnStringsUpdated(this.handleLocalizationChanged),Er.removeOnDirectionUpdated(this.handleDirectionChanged),V.removeProviderUpdatedListener(this.handleProviderUpdates),V.removeActiveAccountChangedListener(this.handleActiveAccountUpdates)}firstUpdated(e){super.firstUpdated(e),this._isFirstUpdated=!0,V.onProviderUpdated(this.handleProviderUpdates),V.onActiveAccountChanged(this.handleActiveAccountUpdates)}clearState(){}fireCustomEvent(e,t,o=!1,i=!1,n=!1){let s=new CustomEvent(e,{bubbles:o,cancelable:i,composed:n,detail:t});return this.dispatchEvent(s)}updated(e){super.updated(e),this.fireCustomEvent("updated",void 0,!0,!1)}loadState(){return jO(this,void 0,void 0,function*(){return Promise.resolve()})}args(){return[this.providerState]}render(){return this._task.render({pending:this.renderLoading,complete:this.renderContent,error:this.renderError})}};MS([X(),DS("design:type",Number)],Fr.prototype,"providerState",void 0);MS([X(),DS("design:type",String)],Fr.prototype,"direction",void 0)});var as,Q0,FS,mf=y(()=>{l();c();d();as=(r,e)=>Q0(r,e,new Set),Q0=(r,e,t)=>{let o=Object.prototype.toString.call(r),i=Object.prototype.toString.call(e);if(typeof r=="object"&&typeof e=="object"&&o===i&&o==="[object Object]"&&!t.has(r)){t.add(r);for(let n in r)if(!Q0(r[n],e[n],t))return!1;for(let n in e)if(!Object.prototype.hasOwnProperty.call(r,n))return!1;return!0}if(Array.isArray(r)&&Array.isArray(e)&&!t.has(r)){if(t.add(r),r.length!==e.length)return!1;for(let n=0;n{if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;if(r.length===0)return!0;let t=new Set(r);for(let o of e)if(!t.has(o))return!1;return!0}});var dl,gf=y(()=>{l();c();d();dl=class{static renderTemplate(e,t,o){var i;t.$parentTemplateContext&&(o=Object.assign(Object.assign({},o),{$parent:t.$parentTemplateContext}));let n;if(!((i=t.content)===null||i===void 0)&&i.childNodes.length){let s=t.content.cloneNode(!0);n=this.renderNode(s,e,o)}else if(t.childNodes.length){let s=document.createElement("div");for(let a of t.childNodes)s.appendChild(this.simpleCloneNode(a));n=this.renderNode(s,e,o)}n&&e.appendChild(n)}static setBindingSyntax(e,t){this._startExpression=e,this._endExpression=t;let o=this.escapeRegex(this._startExpression),i=this.escapeRegex(this._endExpression);this._expression=new RegExp(`${o}\\s*([$\\w\\.,'"\\s()\\[\\]]+)\\s*${i}`,"g")}static get globalContext(){return this._globalContext}static get expression(){return this._expression||this.setBindingSyntax("{{","}}"),this._expression}static escapeRegex(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}static simpleCloneNode(e){if(!e)return null;let t=e.cloneNode(!1);for(let o of e.childNodes){let i=this.simpleCloneNode(o);i&&t.appendChild(i)}return t}static expandExpressionsAsString(e,t){return e.replace(this.expression,(o,i)=>{let n=this.evalInContext(i||this.trimExpression(o),t);return n?typeof n=="object"?JSON.stringify(n):n.toString():""})}static renderNode(e,t,o){if(e.nodeName==="#text")return e.textContent=this.expandExpressionsAsString(e.textContent,o),e;if(e.nodeName==="TEMPLATE")return e.$parentTemplateContext=o,e;let i=e;if(i.attributes)for(let u of i.attributes)if(u.name==="data-props"){let h=this.trimExpression(u.value);for(let p of h.split(",")){let f=p.trim().split(":");if(f.length===2){let b=f[0].trim(),C=this.evalInContext(f[1].trim(),o);b.startsWith("@")?typeof C=="function"&&i.addEventListener(b.substring(1),S=>C(S,o,t)):i[b]=C}}}else i.setAttribute(u.name,this.expandExpressionsAsString(u.value,o));let n=[],s=[],a=!1;for(let u of e.childNodes){let h=u,p=!1;if(h.dataset){let f=!1;if(h.dataset.if){let b=h.dataset.if;this.evalBoolInContext(this.trimExpression(b),o)?(h.removeAttribute("data-if"),a=!0,p=!0):(s.push(h),f=!0)}else typeof h.dataset.else<"u"&&(a?(s.push(h),f=!0):h.removeAttribute("data-else"));h.dataset.for&&!f?n.push(h):f||this.renderNode(u,t,o)}else this.renderNode(u,t,o);!p&&u.nodeName!=="#text"&&(a=!1)}for(let u of s)i.removeChild(u);for(let u of n){let h=u.dataset.for,p=this.trimExpression(h).split(/\s(in|of)\s/i);if(p.length===3){let f=p[0].trim(),b=p[2].trim(),C=this.evalInContext(b,o);if(Array.isArray(C)){u.removeAttribute("data-for");for(let S=0;S{l();c();d();gt();xe();mf();yu();gf();LS=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},NS=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},vf=class extends kn{constructor(){super(),this.templates={},this._renderedSlots=!1,this._renderedTemplates={},this._slotNamesAddedDuringRender=[],this.templateContext=this.templateContext||{}}update(e){this.templates=this.getTemplates(),this._slotNamesAddedDuringRender=[],super.update(e)}updated(e){super.updated(e),this.removeUnusedSlottedElements()}renderTemplate(e,t,o){if(!this.hasTemplate(e))return null;o=o||e,this._slotNamesAddedDuringRender.push(o),this._renderedSlots=!0;let i=x` +\f\r"'\`<>=]|("|')|))|$)`,"g"),tS=/'/g,rS=/"/g,aS=/^(?:script|style|textarea|title)$/i,lS=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),x=lS(1),Qj=lS(2),ll=Symbol.for("lit-noChange"),ot=Symbol.for("lit-nothing"),oS=new WeakMap,sl=al.createTreeWalker(al,129);OO=(r,e)=>{let t=r.length-1,o=[],i,n=e===2?"":"",s=pu;for(let a=0;a"?(s=i??pu,f=-1):p[1]===void 0?f=-2:(f=s.lastIndex-p[2].length,h=p[1],s=p[3]===void 0?nl:p[3]==='"'?rS:tS):s===rS||s===tS?s=nl:s===Xk||s===eS?s=pu:(s=nl,i=void 0);let C=s===nl&&r[a+1].startsWith("/>")?" ":"";n+=s===pu?u+PO:f>=0?(o.push(h),u.slice(0,f)+iS+u.slice(f)+Ys+C):u+Ys+(f===-2?a:C)}return[cS(r,n+(r[t]||"")+(e===2?"":"")),o]},gu=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let n=0,s=0,a=e.length-1,u=this.parts,[h,p]=OO(e,t);if(this.el=r.createElement(h,o),sl.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=sl.nextNode())!==null&&u.length0){i.textContent=sf?sf.emptyScript:"";for(let C=0;C2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ot}_$AI(e,t=this,o,i){let n=this.strings,s=!1;if(n===void 0)e=xc(this,e,t,0),s=!mu(e)||e!==this._$AH&&e!==ll,s&&(this._$AH=e);else{let a=e,u,h;for(e=n[0],u=0;u{let o=t?.renderBefore??e,i=o._$litPart$;if(i===void 0){let n=t?.renderBefore??null;o._$litPart$=i=new vu(e.insertBefore(fu(),n),n,void 0,t??{})}return i._$AI(r),i}});var xn,FO,uS=y(()=>{l();c();d();O0();O0();B0();B0();xn=class extends ns{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=dS(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ll}};xn._$litElement$=!0,xn["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:xn});FO=globalThis.litElementPolyfillSupport;FO?.({LitElement:xn});(globalThis.litElementVersions??=[]).push("4.0.4")});var hS=y(()=>{l();c();d();});var xe=y(()=>{l();c();d();S0();Cc();uS();hS()});var pS=y(()=>{l();c();d();});function E(r){return(e,t)=>typeof t=="object"?LO(r,e,t):((o,i,n)=>{let s=i.hasOwnProperty(n);return i.constructor.createProperty(n,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(i,n):void 0})(r,e,t)}var DO,LO,z0=y(()=>{l();c();d();S0();DO={attribute:!0,type:String,converter:su,reflect:!1,hasChanged:Kp},LO=(r=DO,e,t)=>{let{kind:o,metadata:i}=t,n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(a){let u=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,u,r)},init(a){return a!==void 0&&this.P(s,void 0,r),a}}}if(o==="setter"){let{name:s}=t;return function(a){let u=this[s];e.call(this,a),this.requestUpdate(s,u,r)}}throw Error("Unsupported decorator location: "+o)}});function X(r){return E({...r,state:!0,attribute:!1})}var fS=y(()=>{l();c();d();z0();});var mS=y(()=>{l();c();d();});var Sc=y(()=>{l();c();d();});var gS=y(()=>{l();c();d();Sc();});var vS=y(()=>{l();c();d();Sc();});var yS=y(()=>{l();c();d();Sc();});var bS=y(()=>{l();c();d();Sc();});var wS=y(()=>{l();c();d();Sc();});var gt=y(()=>{l();c();d();pS();z0();fS();mS();gS();vS();yS();bS();wS()});var Er,lf=y(()=>{l();c();d();qd();Er=class{static get strings(){return this._strings}static set strings(e){this._strings=e,this._stringsEventDispatcher.fire(null)}static getDocumentDirection(){var e,t;switch(((e=document.body)===null||e===void 0?void 0:e.getAttribute("dir"))||((t=document.documentElement)===null||t===void 0?void 0:t.getAttribute("dir"))){case"rtl":return"rtl";case"auto":return"auto";case"ltr":default:return"ltr"}}static onStringsUpdated(e){this._stringsEventDispatcher.add(e)}static removeOnStringsUpdated(e){this._stringsEventDispatcher.remove(e)}static onDirectionUpdated(e){this._directionEventDispatcher.add(e),this.initDirection()}static removeOnDirectionUpdated(e){this._directionEventDispatcher.remove(e)}static initDirection(){if(this._isDirectionInit)return;this._isDirectionInit=!0,this.mutationObserver=new MutationObserver(t=>{t.forEach(o=>{o.attributeName==="dir"&&this._directionEventDispatcher.fire(null)})});let e={attributes:!0,attributeFilter:["dir"]};this.mutationObserver.observe(document.body,e),this.mutationObserver.observe(document.documentElement,e)}static updateStringsForTag(e,t){var o;if(e=e.toLowerCase(),e.startsWith("mgt-")&&(e=e.substring(4)),this._strings&&t){for(let i of Object.entries(t)){let n=this._strings[i[0]];typeof n=="string"&&(t[i[0]]=n)}if(!((o=this._strings._components)===null||o===void 0)&&o[e]){let i=this._strings._components[e];for(let n of Object.keys(i))t[n]&&(t[n]=i[n])}}return t}};Er._stringsEventDispatcher=new Gi;Er._directionEventDispatcher=new Gi;Er._isDirectionInit=!1});var xS,kS,CS,ss,kn,yu=y(()=>{l();c();d();xe();gt();bn();es();lf();ou();xS=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},kS=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},CS=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})};(function(r){r.mobile="",r.tablet="tablet",r.desktop="desktop"})(ss||(ss={}));kn=class extends xn{static get packageVersion(){return rs}get mediaQuery(){return this.offsetWidth<768?ss.mobile:this.offsetWidth<1200?ss.tablet:ss.desktop}get isLoadingState(){return this._isLoadingState}get isFirstUpdated(){return this._isFirstUpdated}get strings(){return{}}constructor(){super(),this.providerState=oe.Loading,this.direction="ltr",this._isLoadingState=!1,this._isFirstUpdated=!1,this.setLoadingState=e=>{this._isLoadingState!==e&&(this._isLoadingState=e,this.requestUpdate("isLoadingState"))},this.handleProviderUpdates=()=>{var e,t;this.providerState=(t=(e=V.globalProvider)===null||e===void 0?void 0:e.state)!==null&&t!==void 0?t:oe.Loading,this.requestStateUpdate()},this.handleActiveAccountUpdates=()=>{this.clearState(),this.requestStateUpdate()},this.handleLocalizationChanged=()=>{Er.updateStringsForTag(this.tagName,this.strings),this.requestUpdate()},this.handleDirectionChanged=()=>{this.direction=Er.getDocumentDirection()},this.handleDirectionChanged(),this.handleLocalizationChanged()}connectedCallback(){super.connectedCallback(),Er.onStringsUpdated(this.handleLocalizationChanged),Er.onDirectionUpdated(this.handleDirectionChanged)}disconnectedCallback(){super.disconnectedCallback(),Er.removeOnStringsUpdated(this.handleLocalizationChanged),Er.removeOnDirectionUpdated(this.handleDirectionChanged),V.removeProviderUpdatedListener(this.handleProviderUpdates),V.removeActiveAccountChangedListener(this.handleActiveAccountUpdates)}firstUpdated(e){super.firstUpdated(e),this._isFirstUpdated=!0,V.onProviderUpdated(this.handleProviderUpdates),V.onActiveAccountChanged(this.handleActiveAccountUpdates),this.requestStateUpdate()}loadState(){return Promise.resolve()}clearState(){}fireCustomEvent(e,t,o=!1,i=!1,n=!1){let s=new CustomEvent(e,{bubbles:o,cancelable:i,composed:n,detail:t});return this.dispatchEvent(s)}updated(e){super.updated(e);let t=new CustomEvent("updated",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}requestStateUpdate(e=!1){return CS(this,void 0,void 0,function*(){if(!this._isFirstUpdated)return;this.isLoadingState&&!e&&(yield this._currentLoadStatePromise);let t=V.globalProvider;if(!t)return Promise.resolve();if(t.state===oe.SignedOut){this.clearState();return}else{if(t.state===oe.Loading)return Promise.resolve();{let o=new Promise((i,n)=>CS(this,void 0,void 0,function*(){try{this.setLoadingState(!0),this.fireCustomEvent("loadingInitiated"),yield this.loadState(),this.setLoadingState(!1),this.fireCustomEvent("loadingCompleted"),i()}catch(s){this.clearState(),this.setLoadingState(!1),this.fireCustomEvent("loadingFailed"),n(s)}return this._currentLoadStatePromise=this.isLoadingState&&this._currentLoadStatePromise&&e?this._currentLoadStatePromise.then(()=>o):o}))}}})}};xS([X(),kS("design:type",Number)],kn.prototype,"providerState",void 0);xS([X(),kS("design:type",String)],kn.prototype,"direction",void 0)});var V0,q0,_c,SS=y(()=>{l();c();d();gt();yu();V0=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},q0=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},_c=class extends kn{constructor(){super(...arguments),this.stateChangedHandler=()=>{this.fireCustomEvent("onStateChanged",this.provider.state)}}get provider(){return this._provider}set provider(e){this._provider&&this.provider.removeStateChangedHandler(()=>this.stateChangedHandler),this._provider=e,this._provider&&this.provider.onStateChanged(()=>this.stateChangedHandler)}get isAvailable(){return!0}firstUpdated(e){super.firstUpdated(e);let t=!1;if(this.dependsOn){let o=this.dependsOn;for(;o;){if(o.isAvailable){t=!0;break}o=o.dependsOn}}!t&&this.isAvailable&&this.initializeProvider()}initializeProvider(){}};V0([E({attribute:"depends-on",converter:r=>document.querySelector(r),type:String}),q0("design:type",_c)],_c.prototype,"dependsOn",void 0);V0([E({attribute:"base-url",type:String}),q0("design:type",String)],_c.prototype,"baseUrl",void 0);V0([E({attribute:"custom-hosts",type:String,converter:r=>r.split(",").map(e=>e.trim())}),q0("design:type",Array)],_c.prototype,"customHosts",void 0)});var cf,uf,TS,_S,df,ES,G0,hf,j0=y(()=>{l();c();d();cf=globalThis,uf=cf.ShadowRoot&&(cf.ShadyCSS===void 0||cf.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,TS=Symbol(),_S=new WeakMap,df=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==TS)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(uf&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=_S.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&_S.set(t,e))}return e}toString(){return this.cssText}},ES=r=>new df(typeof r=="string"?r:r+"",void 0,TS),G0=(r,e)=>{if(uf)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=cf.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},hf=uf?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return ES(t)})(r):r});var NO,HO,UO,BO,zO,VO,pf,IS,qO,GO,bu,K0,ff,AS,cl,RS=y(()=>{l();c();d();j0();j0();({is:NO,defineProperty:HO,getOwnPropertyDescriptor:UO,getOwnPropertyNames:BO,getOwnPropertySymbols:zO,getPrototypeOf:VO}=Object),pf=globalThis,IS=pf.trustedTypes,qO=IS?IS.emptyScript:"",GO=pf.reactiveElementPolyfillSupport,bu=(r,e)=>r,K0={toAttribute(r,e){switch(e){case Boolean:r=r?qO:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},ff=(r,e)=>!NO(r,e),AS={attribute:!0,type:String,converter:K0,reflect:!1,hasChanged:ff};Symbol.metadata??=Symbol("metadata"),pf.litPropertyMetadata??=new WeakMap;cl=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=AS){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&HO(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:n}=UO(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);n.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??AS}static _$Ei(){if(this.hasOwnProperty(bu("elementProperties")))return;let e=VO(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(bu("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(bu("properties"))){let t=this.properties,o=[...BO(t),...zO(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(hf(i))}else e!==void 0&&t.push(hf(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return G0(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:K0).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let n=o.getPropertyOptions(i),s=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:K0;this._$Em=i,this[i]=s.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??ff)(this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$ET??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,n]of this._$Ep)this[i]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,n]of o)n.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],n)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$Ej()}catch(o){throw e=!1,this._$Ej(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ej(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$ET&&=this._$ET.forEach(t=>this._$EO(t,this[t])),this._$Ej()}updated(e){}firstUpdated(e){}};cl.elementStyles=[],cl.shadowRootOptions={mode:"open"},cl[bu("elementProperties")]=new Map,cl[bu("finalized")]=new Map,GO?.({ReactiveElement:cl}),(pf.reactiveElementVersions??=[]).push("2.0.3")});var Zs,PS,wu,$S,OS=y(()=>{l();c();d();RS();Zs={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},PS=Symbol(),wu=class{get taskComplete(){return this.t||(this.status===1?this.t=new Promise((e,t)=>{this.i=e,this.o=t}):this.status===3?this.t=Promise.reject(this.h):this.t=Promise.resolve(this.l)),this.t}constructor(e,t,o){this.u=0,this.status=0,(this.p=e).addController(this);let i=typeof t=="object"?t:{task:t,args:o};this._=i.task,this.v=i.args,this.j=i.argsEqual??$S,this.m=i.onComplete,this.g=i.onError,this.autoRun=i.autoRun??!0,"initialValue"in i&&(this.l=i.initialValue,this.status=2,this.k=this.A?.())}hostUpdate(){this.autoRun===!0&&this.O()}hostUpdated(){this.autoRun==="afterUpdate"&&this.O()}A(){if(this.v===void 0)return;let e=this.v();if(!Array.isArray(e))throw Error("The args function must return an array");return e}async O(){let e=this.A(),t=this.k;this.k=e,e===t||e===void 0||t!==void 0&&this.j(t,e)||await this.run(e)}async run(e){let t,o;e??=this.A(),this.k=e,this.status===1?this.T?.abort():(this.t=void 0,this.i=void 0,this.o=void 0),this.status=1,this.autoRun==="afterUpdate"?queueMicrotask(()=>this.p.requestUpdate()):this.p.requestUpdate();let i=++this.u;this.T=new AbortController;let n=!1;try{t=await this._(e,{signal:this.T.signal})}catch(s){n=!0,o=s}if(this.u===i){if(t===PS)this.status=0;else{if(n===!1){try{this.m?.(t)}catch{}this.status=2,this.i?.(t)}else{try{this.g?.(o)}catch{}this.status=3,this.o?.(o)}this.l=t,this.h=o}this.p.requestUpdate()}}abort(e){this.status===1&&this.T?.abort(e)}get value(){return this.l}get error(){return this.h}render(e){switch(this.status){case 0:return e.initial?.();case 1:return e.pending?.();case 2:return e.complete?.(this.value);case 3:return e.error?.(this.error);default:throw Error("Unexpected status: "+this.status)}}},$S=(r,e)=>r===e||r.length===e.length&&r.every((t,o)=>!ff(t,e[o]))});var Cu=y(()=>{l();c();d();OS()});var MS,FS,jO,Dr,W0=y(()=>{l();c();d();Cu();xe();gt();bn();es();lf();ou();yu();MS=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},FS=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},jO=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},Dr=class extends xn{static get packageVersion(){return rs}get mediaQuery(){return this.offsetWidth<768?ss.mobile:this.offsetWidth<1200?ss.tablet:ss.desktop}get isFirstUpdated(){return this._isFirstUpdated}get strings(){return{}}constructor(){super(),this.providerState=oe.Loading,this.direction="ltr",this._isFirstUpdated=!1,this._task=new wu(this,{task:()=>this.loadState(),args:()=>this.args()}),this.renderLoading=()=>x`Loading...`,this.renderError=e=>x`

Error: ${e}

`,this.renderContent=()=>x``,this.handleProviderUpdates=()=>{var e,t;this.providerState=(t=(e=V.globalProvider)===null||e===void 0?void 0:e.state)!==null&&t!==void 0?t:oe.Loading},this.handleActiveAccountUpdates=()=>{this.clearState()},this.handleLocalizationChanged=()=>{Er.updateStringsForTag(this.tagName,this.strings),this.requestUpdate()},this.handleDirectionChanged=()=>{this.direction=Er.getDocumentDirection()},this.handleDirectionChanged(),this.handleLocalizationChanged()}connectedCallback(){super.connectedCallback(),Er.onStringsUpdated(this.handleLocalizationChanged),Er.onDirectionUpdated(this.handleDirectionChanged)}disconnectedCallback(){super.disconnectedCallback(),Er.removeOnStringsUpdated(this.handleLocalizationChanged),Er.removeOnDirectionUpdated(this.handleDirectionChanged),V.removeProviderUpdatedListener(this.handleProviderUpdates),V.removeActiveAccountChangedListener(this.handleActiveAccountUpdates)}firstUpdated(e){super.firstUpdated(e),this._isFirstUpdated=!0,V.onProviderUpdated(this.handleProviderUpdates),V.onActiveAccountChanged(this.handleActiveAccountUpdates)}clearState(){}fireCustomEvent(e,t,o=!1,i=!1,n=!1){let s=new CustomEvent(e,{bubbles:o,cancelable:i,composed:n,detail:t});return this.dispatchEvent(s)}updated(e){super.updated(e),this.fireCustomEvent("updated",void 0,!0,!1)}loadState(){return jO(this,void 0,void 0,function*(){return Promise.resolve()})}args(){return[this.providerState]}render(){return this._task.render({pending:this.renderLoading,complete:this.renderContent,error:this.renderError})}};MS([X(),FS("design:type",Number)],Dr.prototype,"providerState",void 0);MS([X(),FS("design:type",String)],Dr.prototype,"direction",void 0)});var as,Q0,DS,mf=y(()=>{l();c();d();as=(r,e)=>Q0(r,e,new Set),Q0=(r,e,t)=>{let o=Object.prototype.toString.call(r),i=Object.prototype.toString.call(e);if(typeof r=="object"&&typeof e=="object"&&o===i&&o==="[object Object]"&&!t.has(r)){t.add(r);for(let n in r)if(!Q0(r[n],e[n],t))return!1;for(let n in e)if(!Object.prototype.hasOwnProperty.call(r,n))return!1;return!0}if(Array.isArray(r)&&Array.isArray(e)&&!t.has(r)){if(t.add(r),r.length!==e.length)return!1;for(let n=0;n{if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;if(r.length===0)return!0;let t=new Set(r);for(let o of e)if(!t.has(o))return!1;return!0}});var dl,gf=y(()=>{l();c();d();dl=class{static renderTemplate(e,t,o){var i;t.$parentTemplateContext&&(o=Object.assign(Object.assign({},o),{$parent:t.$parentTemplateContext}));let n;if(!((i=t.content)===null||i===void 0)&&i.childNodes.length){let s=t.content.cloneNode(!0);n=this.renderNode(s,e,o)}else if(t.childNodes.length){let s=document.createElement("div");for(let a of t.childNodes)s.appendChild(this.simpleCloneNode(a));n=this.renderNode(s,e,o)}n&&e.appendChild(n)}static setBindingSyntax(e,t){this._startExpression=e,this._endExpression=t;let o=this.escapeRegex(this._startExpression),i=this.escapeRegex(this._endExpression);this._expression=new RegExp(`${o}\\s*([$\\w\\.,'"\\s()\\[\\]]+)\\s*${i}`,"g")}static get globalContext(){return this._globalContext}static get expression(){return this._expression||this.setBindingSyntax("{{","}}"),this._expression}static escapeRegex(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}static simpleCloneNode(e){if(!e)return null;let t=e.cloneNode(!1);for(let o of e.childNodes){let i=this.simpleCloneNode(o);i&&t.appendChild(i)}return t}static expandExpressionsAsString(e,t){return e.replace(this.expression,(o,i)=>{let n=this.evalInContext(i||this.trimExpression(o),t);return n?typeof n=="object"?JSON.stringify(n):n.toString():""})}static renderNode(e,t,o){if(e.nodeName==="#text")return e.textContent=this.expandExpressionsAsString(e.textContent,o),e;if(e.nodeName==="TEMPLATE")return e.$parentTemplateContext=o,e;let i=e;if(i.attributes)for(let u of i.attributes)if(u.name==="data-props"){let h=this.trimExpression(u.value);for(let p of h.split(",")){let f=p.trim().split(":");if(f.length===2){let b=f[0].trim(),C=this.evalInContext(f[1].trim(),o);b.startsWith("@")?typeof C=="function"&&i.addEventListener(b.substring(1),S=>C(S,o,t)):i[b]=C}}}else i.setAttribute(u.name,this.expandExpressionsAsString(u.value,o));let n=[],s=[],a=!1;for(let u of e.childNodes){let h=u,p=!1;if(h.dataset){let f=!1;if(h.dataset.if){let b=h.dataset.if;this.evalBoolInContext(this.trimExpression(b),o)?(h.removeAttribute("data-if"),a=!0,p=!0):(s.push(h),f=!0)}else typeof h.dataset.else<"u"&&(a?(s.push(h),f=!0):h.removeAttribute("data-else"));h.dataset.for&&!f?n.push(h):f||this.renderNode(u,t,o)}else this.renderNode(u,t,o);!p&&u.nodeName!=="#text"&&(a=!1)}for(let u of s)i.removeChild(u);for(let u of n){let h=u.dataset.for,p=this.trimExpression(h).split(/\s(in|of)\s/i);if(p.length===3){let f=p[0].trim(),b=p[2].trim(),C=this.evalInContext(b,o);if(Array.isArray(C)){u.removeAttribute("data-for");for(let S=0;S{l();c();d();gt();xe();mf();yu();gf();LS=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},NS=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},vf=class extends kn{constructor(){super(),this.templates={},this._renderedSlots=!1,this._renderedTemplates={},this._slotNamesAddedDuringRender=[],this.templateContext=this.templateContext||{}}update(e){this.templates=this.getTemplates(),this._slotNamesAddedDuringRender=[],super.update(e)}updated(e){super.updated(e),this.removeUnusedSlottedElements()}renderTemplate(e,t,o){if(!this.hasTemplate(e))return null;o=o||e,this._slotNamesAddedDuringRender.push(o),this._renderedSlots=!0;let i=x` `,n=Object.assign(Object.assign({},t),this.templateContext);if(Object.prototype.hasOwnProperty.call(this._renderedTemplates,o)){let{context:u,slot:h}=this._renderedTemplates[o];if(as(u,n))return i;this.removeChild(h)}let s=document.createElement("div");s.slot=o,s.dataset.generated="template",dl.renderTemplate(s,this.templates[e],n),this.appendChild(s),this._renderedTemplates[o]={context:n,slot:s};let a={templateType:e,context:n,element:s};return this.fireCustomEvent("templateRendered",a),i}hasTemplate(e){var t;return!!(!((t=this.templates)===null||t===void 0)&&t[e])}getTemplates(){let e={};for(let t=0;t ${this.error}
- `}removeUnusedSlottedElements(){var e;if(this._renderedSlots){for(let t=0;t{l();c();d();gt();xe();mf();gf();W0();US=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},BS=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},it=class extends Fr{constructor(){super(),this.templates={},this._renderedSlots=!1,this._renderedTemplates={},this._slotNamesAddedDuringRender=[],this.renderLoading=()=>this.renderTemplate("loading",null)||x``,this.renderError=e=>this.hasTemplate("error")?this.renderTemplate("error",e):x` + `}removeUnusedSlottedElements(){var e;if(this._renderedSlots){for(let t=0;t{l();c();d();gt();xe();mf();gf();W0();US=function(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n},BS=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},it=class extends Dr{constructor(){super(),this.templates={},this._renderedSlots=!1,this._renderedTemplates={},this._slotNamesAddedDuringRender=[],this.renderLoading=()=>this.renderTemplate("loading",null)||x``,this.renderError=e=>this.hasTemplate("error")?this.renderTemplate("error",e):x`
${e}
`,this.templateContext=this.templateContext||{}}update(e){this.templates=this.getTemplates(),this._slotNamesAddedDuringRender=[],super.update(e)}updated(e){super.updated(e),this.removeUnusedSlottedElements()}renderTemplate(e,t,o){if(!this.hasTemplate(e))return null;o=o||e,this._slotNamesAddedDuringRender.push(o),this._renderedSlots=!0;let i=x` - `,n=Object.assign(Object.assign({},t),this.templateContext);if(Object.prototype.hasOwnProperty.call(this._renderedTemplates,o)){let{context:u,slot:h}=this._renderedTemplates[o];if(as(u,n))return i;this.removeChild(h)}let s=document.createElement("div");s.slot=o,s.dataset.generated="template",dl.renderTemplate(s,this.templates[e],n),this.appendChild(s),this._renderedTemplates[o]={context:n,slot:s};let a={templateType:e,context:n,element:s};return this.fireCustomEvent("templateRendered",a),i}hasTemplate(e){var t;return!!(!((t=this.templates)===null||t===void 0)&&t[e])}getTemplates(){let e={};for(let t=0;t{l();c();d();iu();bn()});var qS=y(()=>{l();c();d()});var GS=y(()=>{l();c();d()});function KO(){return jS||(jS=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function WO(){return KS||(KS=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}function QO(r){let e=new Promise((t,o)=>{let i=()=>{r.removeEventListener("success",n),r.removeEventListener("error",s)},n=()=>{t(ul(r.result)),i()},s=()=>{o(r.error),i()};r.addEventListener("success",n),r.addEventListener("error",s)});return yf.set(e,r),e}function YO(r){if(X0.has(r))return;let e=new Promise((t,o)=>{let i=()=>{r.removeEventListener("complete",n),r.removeEventListener("error",s),r.removeEventListener("abort",s)},n=()=>{t(),i()},s=()=>{o(r.error||new DOMException("AbortError","AbortError")),i()};r.addEventListener("complete",n),r.addEventListener("error",s),r.addEventListener("abort",s)});X0.set(r,e)}function ZS(r){ey=r(ey)}function ZO(r){return WO().includes(r)?function(...e){return r.apply(ty(this),e),ul(this.request)}:function(...e){return ul(r.apply(ty(this),e))}}function JO(r){return typeof r=="function"?ZO(r):(r instanceof IDBTransaction&&YO(r),J0(r,KO())?new Proxy(r,ey):r)}function ul(r){if(r instanceof IDBRequest)return QO(r);if(Y0.has(r))return Y0.get(r);let e=JO(r);return e!==r&&(Y0.set(r,e),yf.set(e,r)),e}function JS(r,e,{blocked:t,upgrade:o,blocking:i,terminated:n}={}){let s=indexedDB.open(r,e),a=ul(s);return o&&s.addEventListener("upgradeneeded",u=>{o(ul(s.result),u.oldVersion,u.newVersion,ul(s.transaction),u)}),t&&s.addEventListener("blocked",u=>t(u.oldVersion,u.newVersion,u)),a.then(u=>{n&&u.addEventListener("close",()=>n()),i&&u.addEventListener("versionchange",h=>i(h.oldVersion,h.newVersion,h))}).catch(()=>{}),a}function WS(r,e){if(!(r instanceof IDBDatabase&&!(e in r)&&typeof e=="string"))return;if(Z0.get(e))return Z0.get(e);let t=e.replace(/FromIndex$/,""),o=e!==t,i=e9.includes(t);if(!(t in(o?IDBIndex:IDBObjectStore).prototype)||!(i||XO.includes(t)))return;let n=async function(s,...a){let u=this.transaction(s,i?"readwrite":"readonly"),h=u.store;return o&&(h=h.index(a.shift())),(await Promise.all([h[t](...a),i&&u.done]))[0]};return Z0.set(e,n),n}async function*o9(...r){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...r)),!e)return;e=e;let t=new Proxy(e,r9);for(XS.set(t,e),yf.set(t,ty(e));e;)yield t,e=await(ry.get(t)||e.continue()),ry.delete(t)}function YS(r,e){return e===Symbol.asyncIterator&&J0(r,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&J0(r,[IDBIndex,IDBObjectStore])}var J0,jS,KS,X0,Y0,yf,ey,ty,XO,e9,Z0,t9,QS,ry,XS,r9,e_=y(()=>{l();c();d();J0=(r,e)=>e.some(t=>r instanceof t);X0=new WeakMap,Y0=new WeakMap,yf=new WeakMap;ey={get(r,e,t){if(r instanceof IDBTransaction){if(e==="done")return X0.get(r);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return ul(r[e])},set(r,e,t){return r[e]=t,!0},has(r,e){return r instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in r}};ty=r=>yf.get(r);XO=["get","getKey","getAll","getAllKeys","count"],e9=["put","add","delete","clear"],Z0=new Map;ZS(r=>({...r,get:(e,t,o)=>WS(e,t)||r.get(e,t,o),has:(e,t)=>!!WS(e,t)||r.has(e,t)}));t9=["continue","continuePrimaryKey","advance"],QS={},ry=new WeakMap,XS=new WeakMap,r9={get(r,e){if(!t9.includes(e))return r[e];let t=QS[e];return t||(t=QS[e]=function(...o){ry.set(this,XS.get(this)[e](...o))}),t}};ZS(r=>({...r,get(e,t,o){return YS(e,t)?o9:r.get(e,t,o)},has(e,t){return YS(e,t)||r.has(e,t)}}))});var hl,bf=y(()=>{l();c();d();hl="mgt-db-list"});var xu,wf,oy=y(()=>{l();c();d();e_();es();bf();xu=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},wf=class{constructor(e,t){if(!(t in e.stores))throw Error('"store" must be defined in the "schema"');this.schema=e,this.store=t}getValue(e){return xu(this,void 0,void 0,function*(){if(!window.indexedDB)return null;try{return(yield this.getDb()).get(this.store,e)}catch{return null}})}putValue(e,t){return xu(this,void 0,void 0,function*(){if(window.indexedDB)try{yield(yield this.getDb()).put(this.store,Object.assign(Object.assign({},t),{timeCached:Date.now()}),e)}catch{return}})}clearStore(){return xu(this,void 0,void 0,function*(){if(window.indexedDB)try{yield(yield this.getDb()).clear(this.store)}catch{return}})}getDBName(){return xu(this,void 0,void 0,function*(){let e=yield V.getCacheId();if(e)return`mgt-${this.schema.name}-${e}`})}getDb(){return xu(this,void 0,void 0,function*(){let e=yield this.getDBName();if(e)return JS(e,this.schema.version,{upgrade:(t,o,i,n)=>{let s=JSON.parse(localStorage.getItem(hl))||[];s.includes(e)||s.push(e),localStorage.setItem(hl,JSON.stringify(s));for(let a in this.schema.stores)Object.prototype.hasOwnProperty.call(this.schema.stores,a)&&!t.objectStoreNames.contains(a)&&t.createObjectStore(a)}})})}}});var i9,W,t_=y(()=>{l();c();d();es();bn();oy();bf();i9=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},W=class{static getCache(e,t){let o=`${e.name}/${t}`;return this.isInitialized||this.init(),this.cacheStore.has(t)||this.cacheStore.set(o,new wf(e,t)),this.cacheStore.get(o)}static clearCacheById(e){let t=[],o=JSON.parse(localStorage.getItem(hl));if(o){let i=[];o.forEach(n=>{n.includes(e)?t.push(new Promise((s,a)=>{let u=indexedDB.deleteDatabase(n);u.onsuccess=()=>s(),u.onerror=()=>{console.error(`\u{1F992}: ${u.error.name} occurred deleting cache: ${n}`,u.error.message),a()}})):i.push(n)}),i.length>0?localStorage.setItem(hl,JSON.stringify(i)):localStorage.removeItem(hl)}return Promise.all(t)}static get config(){return this.cacheConfig}static init(){let e;V.globalProvider&&(e=V.globalProvider.state),V.onProviderUpdated(()=>i9(this,void 0,void 0,function*(){if(e===oe.SignedIn&&V.globalProvider.state===oe.SignedOut){let t=yield V.getCacheId();t!==null&&(yield this.clearCacheById(t))}e=V.globalProvider.state})),this.isInitialized=!0}};W.cacheStore=new Map;W.isInitialized=!1;W.cacheConfig={defaultInvalidationPeriod:36e5,groups:{invalidationPeriod:null,isEnabled:!0},isEnabled:!0,people:{invalidationPeriod:null,isEnabled:!0},photos:{invalidationPeriod:null,isEnabled:!0},presence:{invalidationPeriod:3e5,isEnabled:!0},users:{invalidationPeriod:null,isEnabled:!0},response:{invalidationPeriod:null,isEnabled:!0},files:{invalidationPeriod:null,isEnabled:!0},fileLists:{invalidationPeriod:null,isEnabled:!0}}});var Sn,r_=y(()=>{l();c();d();Sn=class{static get microsoftTeamsLib(){return this._microsoftTeamsLib||window.microsoftTeams}static set microsoftTeamsLib(e){this._microsoftTeamsLib=e}static get isAvailable(){return this.microsoftTeamsLib?window.parent===window.self&&window.nativeInterface?!0:window.name==="embedded-page-container"||window.name==="extension-tab-frame":!1}static executeDeepLink(e,t){let o=this.microsoftTeamsLib;o.initialize(),o.executeDeepLink(e,t)}}});var o_=y(()=>{l();c();d()});var i_,pl,n_=y(()=>{l();c();d();i_=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},pl=class r{get value(){return this._value}get hasNext(){return!!this._nextLink}static create(e,t,o){return i_(this,void 0,void 0,function*(){let i=yield t.get();if(i?.value){let n=new r;return n._graph=e,n._value=i.value,n._nextLink=i["@odata.nextLink"],n._version=o||e.version,n}return null})}static createFromValue(e,t,o=null){let i=new r;return i._graph=e,i._value=t,i._nextLink=o,i._version=e.version,i}get nextLink(){return this._nextLink||""}next(){var e;return i_(this,void 0,void 0,function*(){if(this._nextLink){let t=this._nextLink.split(this._version)[1],o=yield this._graph.api(t).version(this._version).get();if(!((e=o?.value)===null||e===void 0)&&e.length)return this._value=this._value.concat(o.value),this._nextLink=o["@odata.nextLink"],o.value}return null})}}});var s_,a_,n9,Te,l_=y(()=>{l();c();d();xe();bc();s_=new WeakMap,a_=(r,e,t)=>{let o=[];for(let i of r)o.push(i.replace(e,t));return o},n9=(r,...e)=>{if(Jr.isDisambiguated){let t=s_.get(r);if(!t){let o=new RegExp("({l();c();d();gt();bc()});var ku,Re,d_=y(()=>{l();c();d();bc();ku=r=>`${Jr.prefix}-${r}`,Re=(r,e,t)=>{let o=ku(r);customElements.get(o)||customElements.define(o,e,t)}});var u_=y(()=>{l();c();d();bn();es()});var h_=y(()=>{l();c();d()});var Cf,p_,f_=y(()=>{l();c();d();Cf=class{constructor(){this.session=window.sessionStorage}setItem(e,t){this.session.setItem(e,t)}getItem(e){return this.session.getItem(e)}clear(){this.session.clear()}},p_=r=>{let e;try{r==="sessionStorage"?e=window.sessionStorage:e=window.localStorage;let t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e&&e.length!==0}}});var m_,Su,g_=y(()=>{l();c();d();f_();m_=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},Su=class r{static get _sessionCache(){return!this._cache&&p_("sessionStorage")&&(this._cache=new Cf),this._cache}execute(e){return m_(this,void 0,void 0,function*(){try{let t=yield r.getBaseUrl();e.request=t+encodeURIComponent(e.request)}catch{}return yield this._nextMiddleware.execute(e)})}setNext(e){this._nextMiddleware=e}static getBaseUrl(){var e,t;return m_(this,void 0,void 0,function*(){if(!this._baseUrl){let o=(e=this._sessionCache)===null||e===void 0?void 0:e.getItem("endpointURL");if(o)this._baseUrl=o;else{try{let n=yield(yield fetch("https://cdn.graph.office.net/en-us/graph/api/proxy/endpoint")).json();typeof n!="string"?r.setBaseFallbackUrl():this._baseUrl=n+"?url="}catch{r.setBaseFallbackUrl()}(t=this._sessionCache)===null||t===void 0||t.setItem("endpointURL",this._baseUrl)}}return this._baseUrl})}static setBaseFallbackUrl(){this._baseUrl="https://graph.office.net/en-us/graph/api/proxy?url="}}});var s9,xf,v_=y(()=>{l();c();d();Za();iu();Up();g_();s9=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},xf=class r extends Ja{static create(e){return s9(this,void 0,void 0,function*(){let t=[new Ki(e),new ii(new Dr),new Ho,new Su,new Cn];return new r(Ya.initWithMiddleware({middleware:Hp(...t),customHosts:new Set([new URL(yield Su.getBaseUrl()).hostname])}))})}forComponent(e){return this}}});var iy,kf,y_=y(()=>{l();c();d();bn();v_();iy=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},kf=class extends ja{constructor(e=!1,t=[]){super(),this._accounts=[],this._mockGraphPromise=xf.create(this);let o=!!t.length;this.isMultipleAccountSupported=o,this.isMultipleAccountDisabled=!o,this._accounts=t,this.initializeMockGraph(e)}get isMultiAccountSupportedAndEnabled(){return!this.isMultipleAccountDisabled&&this.isMultipleAccountSupported}getAllAccounts(){return this._accounts}getActiveAccount(){if(this._accounts.length)return this._accounts[0]}login(){return iy(this,void 0,void 0,function*(){this.setState(oe.Loading),yield this._mockGraphPromise,yield new Promise(e=>setTimeout(e,3e3)),this.setState(oe.SignedIn)})}logout(){return iy(this,void 0,void 0,function*(){this.setState(oe.Loading),yield this._mockGraphPromise,yield new Promise(e=>setTimeout(e,3e3)),this.setState(oe.SignedOut)})}getAccessToken(){return Promise.resolve("{token:https://graph.microsoft.com/}")}get name(){return"MgtMockProvider"}initializeMockGraph(e=!1){return iy(this,void 0,void 0,function*(){this.graph=yield this._mockGraphPromise,e?this.setState(oe.SignedIn):this.setState(oe.SignedOut)})}}});var ge=y(()=>{l();c();d();t0();jd();iu();Ik();yu();SS();W0();HS();zS();bc();bn();es();VS();qS();GS();t_();oy();bf();qd();mf();Up();y0();vp();r_();o_();gf();n_();lf();l_();c_();d_();u_();ou();h_();y_()});var Q_,Y_=y(()=>{l();c();d();xe();Q_=[Oe` + `,n=Object.assign(Object.assign({},t),this.templateContext);if(Object.prototype.hasOwnProperty.call(this._renderedTemplates,o)){let{context:u,slot:h}=this._renderedTemplates[o];if(as(u,n))return i;this.removeChild(h)}let s=document.createElement("div");s.slot=o,s.dataset.generated="template",dl.renderTemplate(s,this.templates[e],n),this.appendChild(s),this._renderedTemplates[o]={context:n,slot:s};let a={templateType:e,context:n,element:s};return this.fireCustomEvent("templateRendered",a),i}hasTemplate(e){var t;return!!(!((t=this.templates)===null||t===void 0)&&t[e])}getTemplates(){let e={};for(let t=0;t{l();c();d();iu();bn()});var qS=y(()=>{l();c();d()});var GS=y(()=>{l();c();d()});function KO(){return jS||(jS=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function WO(){return KS||(KS=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}function QO(r){let e=new Promise((t,o)=>{let i=()=>{r.removeEventListener("success",n),r.removeEventListener("error",s)},n=()=>{t(ul(r.result)),i()},s=()=>{o(r.error),i()};r.addEventListener("success",n),r.addEventListener("error",s)});return yf.set(e,r),e}function YO(r){if(X0.has(r))return;let e=new Promise((t,o)=>{let i=()=>{r.removeEventListener("complete",n),r.removeEventListener("error",s),r.removeEventListener("abort",s)},n=()=>{t(),i()},s=()=>{o(r.error||new DOMException("AbortError","AbortError")),i()};r.addEventListener("complete",n),r.addEventListener("error",s),r.addEventListener("abort",s)});X0.set(r,e)}function ZS(r){ey=r(ey)}function ZO(r){return WO().includes(r)?function(...e){return r.apply(ty(this),e),ul(this.request)}:function(...e){return ul(r.apply(ty(this),e))}}function JO(r){return typeof r=="function"?ZO(r):(r instanceof IDBTransaction&&YO(r),J0(r,KO())?new Proxy(r,ey):r)}function ul(r){if(r instanceof IDBRequest)return QO(r);if(Y0.has(r))return Y0.get(r);let e=JO(r);return e!==r&&(Y0.set(r,e),yf.set(e,r)),e}function JS(r,e,{blocked:t,upgrade:o,blocking:i,terminated:n}={}){let s=indexedDB.open(r,e),a=ul(s);return o&&s.addEventListener("upgradeneeded",u=>{o(ul(s.result),u.oldVersion,u.newVersion,ul(s.transaction),u)}),t&&s.addEventListener("blocked",u=>t(u.oldVersion,u.newVersion,u)),a.then(u=>{n&&u.addEventListener("close",()=>n()),i&&u.addEventListener("versionchange",h=>i(h.oldVersion,h.newVersion,h))}).catch(()=>{}),a}function WS(r,e){if(!(r instanceof IDBDatabase&&!(e in r)&&typeof e=="string"))return;if(Z0.get(e))return Z0.get(e);let t=e.replace(/FromIndex$/,""),o=e!==t,i=e9.includes(t);if(!(t in(o?IDBIndex:IDBObjectStore).prototype)||!(i||XO.includes(t)))return;let n=async function(s,...a){let u=this.transaction(s,i?"readwrite":"readonly"),h=u.store;return o&&(h=h.index(a.shift())),(await Promise.all([h[t](...a),i&&u.done]))[0]};return Z0.set(e,n),n}async function*o9(...r){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...r)),!e)return;e=e;let t=new Proxy(e,r9);for(XS.set(t,e),yf.set(t,ty(e));e;)yield t,e=await(ry.get(t)||e.continue()),ry.delete(t)}function YS(r,e){return e===Symbol.asyncIterator&&J0(r,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&J0(r,[IDBIndex,IDBObjectStore])}var J0,jS,KS,X0,Y0,yf,ey,ty,XO,e9,Z0,t9,QS,ry,XS,r9,e_=y(()=>{l();c();d();J0=(r,e)=>e.some(t=>r instanceof t);X0=new WeakMap,Y0=new WeakMap,yf=new WeakMap;ey={get(r,e,t){if(r instanceof IDBTransaction){if(e==="done")return X0.get(r);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return ul(r[e])},set(r,e,t){return r[e]=t,!0},has(r,e){return r instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in r}};ty=r=>yf.get(r);XO=["get","getKey","getAll","getAllKeys","count"],e9=["put","add","delete","clear"],Z0=new Map;ZS(r=>({...r,get:(e,t,o)=>WS(e,t)||r.get(e,t,o),has:(e,t)=>!!WS(e,t)||r.has(e,t)}));t9=["continue","continuePrimaryKey","advance"],QS={},ry=new WeakMap,XS=new WeakMap,r9={get(r,e){if(!t9.includes(e))return r[e];let t=QS[e];return t||(t=QS[e]=function(...o){ry.set(this,XS.get(this)[e](...o))}),t}};ZS(r=>({...r,get(e,t,o){return YS(e,t)?o9:r.get(e,t,o)},has(e,t){return YS(e,t)||r.has(e,t)}}))});var hl,bf=y(()=>{l();c();d();hl="mgt-db-list"});var xu,wf,oy=y(()=>{l();c();d();e_();es();bf();xu=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},wf=class{constructor(e,t){if(!(t in e.stores))throw Error('"store" must be defined in the "schema"');this.schema=e,this.store=t}getValue(e){return xu(this,void 0,void 0,function*(){if(!window.indexedDB)return null;try{return(yield this.getDb()).get(this.store,e)}catch{return null}})}putValue(e,t){return xu(this,void 0,void 0,function*(){if(window.indexedDB)try{yield(yield this.getDb()).put(this.store,Object.assign(Object.assign({},t),{timeCached:Date.now()}),e)}catch{return}})}clearStore(){return xu(this,void 0,void 0,function*(){if(window.indexedDB)try{yield(yield this.getDb()).clear(this.store)}catch{return}})}getDBName(){return xu(this,void 0,void 0,function*(){let e=yield V.getCacheId();if(e)return`mgt-${this.schema.name}-${e}`})}getDb(){return xu(this,void 0,void 0,function*(){let e=yield this.getDBName();if(e)return JS(e,this.schema.version,{upgrade:(t,o,i,n)=>{let s=JSON.parse(localStorage.getItem(hl))||[];s.includes(e)||s.push(e),localStorage.setItem(hl,JSON.stringify(s));for(let a in this.schema.stores)Object.prototype.hasOwnProperty.call(this.schema.stores,a)&&!t.objectStoreNames.contains(a)&&t.createObjectStore(a)}})})}}});var i9,W,t_=y(()=>{l();c();d();es();bn();oy();bf();i9=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},W=class{static getCache(e,t){let o=`${e.name}/${t}`;return this.isInitialized||this.init(),this.cacheStore.has(t)||this.cacheStore.set(o,new wf(e,t)),this.cacheStore.get(o)}static clearCacheById(e){let t=[],o=JSON.parse(localStorage.getItem(hl));if(o){let i=[];o.forEach(n=>{n.includes(e)?t.push(new Promise((s,a)=>{let u=indexedDB.deleteDatabase(n);u.onsuccess=()=>s(),u.onerror=()=>{console.error(`\u{1F992}: ${u.error.name} occurred deleting cache: ${n}`,u.error.message),a()}})):i.push(n)}),i.length>0?localStorage.setItem(hl,JSON.stringify(i)):localStorage.removeItem(hl)}return Promise.all(t)}static get config(){return this.cacheConfig}static init(){let e;V.globalProvider&&(e=V.globalProvider.state),V.onProviderUpdated(()=>i9(this,void 0,void 0,function*(){if(e===oe.SignedIn&&V.globalProvider.state===oe.SignedOut){let t=yield V.getCacheId();t!==null&&(yield this.clearCacheById(t))}e=V.globalProvider.state})),this.isInitialized=!0}};W.cacheStore=new Map;W.isInitialized=!1;W.cacheConfig={defaultInvalidationPeriod:36e5,groups:{invalidationPeriod:null,isEnabled:!0},isEnabled:!0,people:{invalidationPeriod:null,isEnabled:!0},photos:{invalidationPeriod:null,isEnabled:!0},presence:{invalidationPeriod:3e5,isEnabled:!0},users:{invalidationPeriod:null,isEnabled:!0},response:{invalidationPeriod:null,isEnabled:!0},files:{invalidationPeriod:null,isEnabled:!0},fileLists:{invalidationPeriod:null,isEnabled:!0}}});var Sn,r_=y(()=>{l();c();d();Sn=class{static get microsoftTeamsLib(){return this._microsoftTeamsLib||window.microsoftTeams}static set microsoftTeamsLib(e){this._microsoftTeamsLib=e}static get isAvailable(){return this.microsoftTeamsLib?window.parent===window.self&&window.nativeInterface?!0:window.name==="embedded-page-container"||window.name==="extension-tab-frame":!1}static executeDeepLink(e,t){let o=this.microsoftTeamsLib;o.initialize(),o.executeDeepLink(e,t)}}});var o_=y(()=>{l();c();d()});var i_,pl,n_=y(()=>{l();c();d();i_=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},pl=class r{get value(){return this._value}get hasNext(){return!!this._nextLink}static create(e,t,o){return i_(this,void 0,void 0,function*(){let i=yield t.get();if(i?.value){let n=new r;return n._graph=e,n._value=i.value,n._nextLink=i["@odata.nextLink"],n._version=o||e.version,n}return null})}static createFromValue(e,t,o=null){let i=new r;return i._graph=e,i._value=t,i._nextLink=o,i._version=e.version,i}get nextLink(){return this._nextLink||""}next(){var e;return i_(this,void 0,void 0,function*(){if(this._nextLink){let t=this._nextLink.split(this._version)[1],o=yield this._graph.api(t).version(this._version).get();if(!((e=o?.value)===null||e===void 0)&&e.length)return this._value=this._value.concat(o.value),this._nextLink=o["@odata.nextLink"],o.value}return null})}}});var s_,a_,n9,Te,l_=y(()=>{l();c();d();xe();bc();s_=new WeakMap,a_=(r,e,t)=>{let o=[];for(let i of r)o.push(i.replace(e,t));return o},n9=(r,...e)=>{if(Jr.isDisambiguated){let t=s_.get(r);if(!t){let o=new RegExp("({l();c();d();gt();bc()});var ku,Re,d_=y(()=>{l();c();d();bc();ku=r=>`${Jr.prefix}-${r}`,Re=(r,e,t)=>{let o=ku(r);customElements.get(o)||customElements.define(o,e,t)}});var u_=y(()=>{l();c();d();bn();es()});var h_=y(()=>{l();c();d()});var Cf,p_,f_=y(()=>{l();c();d();Cf=class{constructor(){this.session=window.sessionStorage}setItem(e,t){this.session.setItem(e,t)}getItem(e){return this.session.getItem(e)}clear(){this.session.clear()}},p_=r=>{let e;try{r==="sessionStorage"?e=window.sessionStorage:e=window.localStorage;let t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e&&e.length!==0}}});var m_,Su,g_=y(()=>{l();c();d();f_();m_=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},Su=class r{static get _sessionCache(){return!this._cache&&p_("sessionStorage")&&(this._cache=new Cf),this._cache}execute(e){return m_(this,void 0,void 0,function*(){try{let t=yield r.getBaseUrl();e.request=t+encodeURIComponent(e.request)}catch{}return yield this._nextMiddleware.execute(e)})}setNext(e){this._nextMiddleware=e}static getBaseUrl(){var e,t;return m_(this,void 0,void 0,function*(){if(!this._baseUrl){let o=(e=this._sessionCache)===null||e===void 0?void 0:e.getItem("endpointURL");if(o)this._baseUrl=o;else{try{let n=yield(yield fetch("https://cdn.graph.office.net/en-us/graph/api/proxy/endpoint")).json();typeof n!="string"?r.setBaseFallbackUrl():this._baseUrl=n+"?url="}catch{r.setBaseFallbackUrl()}(t=this._sessionCache)===null||t===void 0||t.setItem("endpointURL",this._baseUrl)}}return this._baseUrl})}static setBaseFallbackUrl(){this._baseUrl="https://graph.office.net/en-us/graph/api/proxy?url="}}});var s9,xf,v_=y(()=>{l();c();d();Za();iu();Up();g_();s9=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},xf=class r extends Ja{static create(e){return s9(this,void 0,void 0,function*(){let t=[new Ki(e),new ii(new Fr),new Ho,new Su,new Cn];return new r(Ya.initWithMiddleware({middleware:Hp(...t),customHosts:new Set([new URL(yield Su.getBaseUrl()).hostname])}))})}forComponent(e){return this}}});var iy,kf,y_=y(()=>{l();c();d();bn();v_();iy=function(r,e,t,o){function i(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function a(p){try{h(o.next(p))}catch(f){s(f)}}function u(p){try{h(o.throw(p))}catch(f){s(f)}}function h(p){p.done?n(p.value):i(p.value).then(a,u)}h((o=o.apply(r,e||[])).next())})},kf=class extends ja{constructor(e=!1,t=[]){super(),this._accounts=[],this._mockGraphPromise=xf.create(this);let o=!!t.length;this.isMultipleAccountSupported=o,this.isMultipleAccountDisabled=!o,this._accounts=t,this.initializeMockGraph(e)}get isMultiAccountSupportedAndEnabled(){return!this.isMultipleAccountDisabled&&this.isMultipleAccountSupported}getAllAccounts(){return this._accounts}getActiveAccount(){if(this._accounts.length)return this._accounts[0]}login(){return iy(this,void 0,void 0,function*(){this.setState(oe.Loading),yield this._mockGraphPromise,yield new Promise(e=>setTimeout(e,3e3)),this.setState(oe.SignedIn)})}logout(){return iy(this,void 0,void 0,function*(){this.setState(oe.Loading),yield this._mockGraphPromise,yield new Promise(e=>setTimeout(e,3e3)),this.setState(oe.SignedOut)})}getAccessToken(){return Promise.resolve("{token:https://graph.microsoft.com/}")}get name(){return"MgtMockProvider"}initializeMockGraph(e=!1){return iy(this,void 0,void 0,function*(){this.graph=yield this._mockGraphPromise,e?this.setState(oe.SignedIn):this.setState(oe.SignedOut)})}}});var ge=y(()=>{l();c();d();t0();jd();iu();Ik();yu();SS();W0();HS();zS();bc();bn();es();VS();qS();GS();t_();oy();bf();qd();mf();Up();y0();vp();r_();o_();gf();n_();lf();l_();c_();d_();u_();ou();h_();y_()});var Q_,Y_=y(()=>{l();c();d();xe();Q_=[Oe` `]});var Z_,J_,vs=y(()=>{l();c();d();Y_();Z_=document.createElement("style");Z_.appendChild(document.createTextNode(` @font-face { @@ -27,7 +27,7 @@ try{ url(https://static2.sharepointonline.com/files/fabric/assets/icons/fabricmdl2icons-2.68.woff) format("woff"), url(https://static2.sharepointonline.com/files/fabric/assets/icons/fabricmdl2icons-2.68.ttf) format("truetype"); } -`));document.head.appendChild(Z_);J_=document.createElement("style");J_.innerHTML=Q_.toString();document.head.appendChild(J_)});function zf(){let r=new WeakMap;return function(e){let t=r.get(e);if(t===void 0){let o=Reflect.getPrototypeOf(e);for(;t===void 0&&o!==null;)t=r.get(o),o=Reflect.getPrototypeOf(o);t=t===void 0?[]:t.slice(0),r.set(e,t)}return t}}var tn,X_,kl,wi,ys=y(()=>{l();c();d();tn=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();tn.trustedTypes===void 0&&(tn.trustedTypes={createPolicy:(r,e)=>e});X_={configurable:!1,enumerable:!1,writable:!1};tn.FAST===void 0&&Reflect.defineProperty(tn,"FAST",Object.assign({value:Object.create(null)},X_));kl=tn.FAST;if(kl.getById===void 0){let r=Object.create(null);Reflect.defineProperty(kl,"getById",Object.assign({value(e,t){let o=r[e];return o===void 0&&(o=t?r[e]=t():null),o}},X_))}wi=Object.freeze([])});var Fy,eT,Ly,Fu,Ny,Vf,Y,Ci=y(()=>{l();c();d();ys();Fy=tn.FAST.getById(1,()=>{let r=[],e=[];function t(){if(e.length)throw e.shift()}function o(s){try{s.call()}catch(a){e.push(a),setTimeout(t,0)}}function i(){let a=0;for(;a1024){for(let u=0,h=r.length-a;ur}),Ly=eT,Fu=`fast-${Math.random().toString(36).substring(2,8)}`,Ny=`${Fu}{`,Vf=`}${Fu}`,Y=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(r){if(Ly!==eT)throw new Error("The HTML policy can only be set once.");Ly=r},createHTML(r){return Ly.createHTML(r)},isMarker(r){return r&&r.nodeType===8&&r.data.startsWith(Fu)},extractDirectiveIndexFromMarker(r){return parseInt(r.data.replace(`${Fu}:`,""))},createInterpolationPlaceholder(r){return`${Ny}${r}${Vf}`},createCustomAttributePlaceholder(r,e){return`${r}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder(r){return``},queueUpdate:Fy.enqueue,processUpdates:Fy.process,nextUpdate(){return new Promise(Fy.enqueue)},setAttribute(r,e,t){t==null?r.removeAttribute(e):r.setAttribute(e,t)},setBooleanAttribute(r,e,t){t?r.setAttribute(e,""):r.removeAttribute(e)},removeChildNodes(r){for(let e=r.firstChild;e!==null;e=r.firstChild)r.removeChild(e)},createTemplateWalker(r){return document.createTreeWalker(r,133,null,!1)}})});var Rn,Dc,Lu=y(()=>{l();c();d();Rn=class{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){let t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){let t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{let o=t.indexOf(e);o!==-1&&t.splice(o,1)}}notify(e){let t=this.spillover,o=this.source;if(t===void 0){let i=this.sub1,n=this.sub2;i!==void 0&&i.handleChange(o,e),n!==void 0&&n.handleChange(o,e)}else for(let i=0,n=t.length;i{l();c();d();Ci();ys();Lu();pe=kl.getById(2,()=>{let r=/(:|&&|\|\||if)/,e=new WeakMap,t=Y.queueUpdate,o,i=h=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function n(h){let p=h.$fastController||e.get(h);return p===void 0&&(Array.isArray(h)?p=i(h):e.set(h,p=new Dc(h))),p}let s=zf();class a{constructor(p){this.name=p,this.field=`_${p}`,this.callback=`${p}Changed`}getValue(p){return o!==void 0&&o.watch(p,this.name),p[this.field]}setValue(p,f){let b=this.field,C=p[b];if(C!==f){p[b]=f;let S=p[this.callback];typeof S=="function"&&S.call(p,C,f),n(p).notify(this.name)}}}class u extends Rn{constructor(p,f,b=!1){super(p,f),this.binding=p,this.isVolatileBinding=b,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(p,f){this.needsRefresh&&this.last!==null&&this.disconnect();let b=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let C=this.binding(p,f);return o=b,C}disconnect(){if(this.last!==null){let p=this.first;for(;p!==void 0;)p.notifier.unsubscribe(this,p.propertyName),p=p.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(p,f){let b=this.last,C=n(p),S=b===null?this.first:{};if(S.propertySource=p,S.propertyName=f,S.notifier=C,C.subscribe(this,f),b!==null){if(!this.needsRefresh){let R;o=void 0,R=b.propertySource[b.propertyName],o=this,p===R&&(this.needsRefresh=!0)}b.next=S}this.last=S}handleChange(){this.needsQueue&&(this.needsQueue=!1,t(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let p=this.first;return{next:()=>{let f=p;return f===void 0?{value:void 0,done:!0}:(p=p.next,{value:f,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(h){i=h},getNotifier:n,track(h,p){o!==void 0&&o.watch(h,p)},trackVolatile(){o!==void 0&&(o.needsRefresh=!0)},notify(h,p){n(h).notify(p)},defineProperty(h,p){typeof p=="string"&&(p=new a(p)),s(h).push(p),Reflect.defineProperty(h,p.name,{enumerable:!0,get:function(){return p.getValue(this)},set:function(f){p.setValue(this,f)}})},getAccessors:s,binding(h,p,f=this.isVolatileBinding(h)){return new u(h,p,f)},isVolatileBinding(h){return r.test(h.toString())}})});tT=kl.getById(3,()=>{let r=null;return{get(){return r},set(e){r=e}}}),sa=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return tT.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){tT.set(e)}};pe.defineProperty(sa.prototype,"index");pe.defineProperty(sa.prototype,"length");aa=Object.seal(new sa)});var la,Fc,bs,ca=y(()=>{l();c();d();Ci();la=class{constructor(){this.targetIndex=0}},Fc=class extends la{constructor(){super(...arguments),this.createPlaceholder=Y.createInterpolationPlaceholder}},bs=class extends la{constructor(e,t,o){super(),this.name=e,this.behavior=t,this.options=o}createPlaceholder(e){return Y.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}});function $9(r,e){this.source=r,this.context=e,this.bindingObserver===null&&(this.bindingObserver=pe.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(r,e))}function O9(r,e){this.source=r,this.context=e,this.target.addEventListener(this.targetName,this)}function M9(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function D9(){this.bindingObserver.disconnect(),this.source=null,this.context=null;let r=this.target.$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}function F9(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function L9(r){Y.setAttribute(this.target,this.targetName,r)}function N9(r){Y.setBooleanAttribute(this.target,this.targetName,r)}function H9(r){if(r==null&&(r=""),r.create){this.target.textContent="";let e=this.target.$fastView;e===void 0?e=r.create():this.target.$fastTemplate!==r&&(e.isComposed&&(e.remove(),e.unbind()),e=r.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=r)}else{let e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=r}}function U9(r){this.target[this.targetName]=r}function B9(r){let e=this.classVersions||Object.create(null),t=this.target,o=this.version||0;if(r!=null&&r.length){let i=r.split(/\s+/);for(let n=0,s=i.length;n{l();c();d();Ci();Pn();ca();Sl=class extends Fc{constructor(e){super(),this.binding=e,this.bind=$9,this.unbind=M9,this.updateTarget=L9,this.isBindingVolatile=pe.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,e!==void 0)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=U9,this.cleanedTargetName==="innerHTML"){let t=this.binding;this.binding=(o,i)=>Y.createHTML(t(o,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=N9;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=O9,this.unbind=F9;break;default:this.cleanedTargetName=e,e==="class"&&(this.updateTarget=B9);break}}targetAtContent(){this.updateTarget=H9,this.unbind=D9}createBehavior(e){return new Hy(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},Hy=class{constructor(e,t,o,i,n,s,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=o,this.bind=i,this.unbind=n,this.updateTarget=s,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){sa.setEvent(e);let t=this.binding(this.source,this.context);sa.setEvent(null),t!==!0&&e.preventDefault()}}});function z9(r){if(r.length===1)return r[0];let e,t=r.length,o=r.map(s=>typeof s=="string"?()=>s:(e=s.targetName||e,s.binding)),i=(s,a)=>{let u="";for(let h=0;ha),h.targetName=s.name):h=z9(u),h!==null&&(e.removeAttributeNode(s),i--,n--,r.addFactory(h))}}function q9(r,e,t){let o=iT(r,e.textContent);if(o!==null){let i=e;for(let n=0,s=o.length;n{l();c();d();Ci();qf();Uy=null,By=class r{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){Uy=this}static borrow(e){let t=Uy||new r;return t.directives=e,t.reset(),Uy=null,t}};V9=Vf.length});var Vy,Lc,Gf=y(()=>{l();c();d();Vy=document.createRange(),Lc=class{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{let t=this.lastChild;if(e.previousSibling===t)return;let o=e.parentNode,i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,o.insertBefore(i,e),i=n;o.insertBefore(t,e)}}remove(){let e=this.fragment,t=this.lastChild,o=this.firstChild,i;for(;o!==t;)i=o.nextSibling,e.appendChild(o),o=i;e.appendChild(t)}dispose(){let e=this.firstChild.parentNode,t=this.lastChild,o=this.firstChild,i;for(;o!==t;)i=o.nextSibling,e.removeChild(o),o=i;e.removeChild(t);let n=this.behaviors,s=this.source;for(let a=0,u=n.length;au}if(typeof a=="function"&&(a=new Sl(a)),a instanceof Fc){let u=G9.exec(s);u!==null&&(a.targetName=u[2])}a instanceof la?(o+=a.createPlaceholder(t.length),t.push(a)):o+=a}return o+=r[r.length-1],new jf(o,t)}var jf,G9,sT=y(()=>{l();c();d();Ci();Pn();zy();Gf();ca();qf();jf=class{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(this.fragment===null){let h,p=this.html;if(typeof p=="string"){h=document.createElement("template"),h.innerHTML=Y.createHTML(p);let b=h.content.firstElementChild;b!==null&&b.tagName==="TEMPLATE"&&(h=b)}else h=p;let f=nT(h,this.directives);this.fragment=f.fragment,this.viewBehaviorFactories=f.viewBehaviorFactories,this.hostBehaviorFactories=f.hostBehaviorFactories,this.targetOffset=f.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}let t=this.fragment.cloneNode(!0),o=this.viewBehaviorFactories,i=new Array(this.behaviorCount),n=Y.createTemplateWalker(t),s=0,a=this.targetOffset,u=n.nextNode();for(let h=o.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/});function jy(r){return r.map(e=>e instanceof nr?jy(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}function aT(r){return r.map(e=>e instanceof nr?e.behaviors:null).reduce((e,t)=>t===null?e:(e===null&&(e=[]),e.concat(t)),null)}function lT(r){let e=[],t=[];return r.forEach(o=>(o[Kf]?e:t).push(o)),{prepend:e,append:t}}function K9(){return`fast-style-class-${++j9}`}var nr,Kf,cT,dT,qy,j9,Gy,Wf=y(()=>{l();c();d();Ci();nr=class{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=this.behaviors===null?e:this.behaviors.concat(e),this}};nr.create=(()=>{if(Y.supportsAdoptedStyleSheets){let r=new Map;return e=>new qy(e,r)}return r=>new Gy(r)})();Kf=Symbol("prependToAdoptedStyleSheets");cT=(r,e)=>{let{prepend:t,append:o}=lT(e);r.adoptedStyleSheets=[...t,...r.adoptedStyleSheets,...o]},dT=(r,e)=>{r.adoptedStyleSheets=r.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(Y.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),cT=(r,e)=>{let{prepend:t,append:o}=lT(e);r.adoptedStyleSheets.splice(0,0,...t),r.adoptedStyleSheets.push(...o)},dT=(r,e)=>{for(let t of e){let o=r.adoptedStyleSheets.indexOf(t);o!==-1&&r.adoptedStyleSheets.splice(o,1)}}}catch{}qy=class extends nr{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=aT(e)}get styleSheets(){if(this._styleSheets===void 0){let e=this.styles,t=this.styleSheetCache;this._styleSheets=jy(e).map(o=>{if(o instanceof CSSStyleSheet)return o;let i=t.get(o);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(o),t.set(o,i)),i})}return this._styleSheets}addStylesTo(e){cT(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){dT(e,this.styleSheets),super.removeStylesFrom(e)}},j9=0;Gy=class extends nr{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=aT(e),this.styleSheets=jy(e),this.styleClass=K9()}addStylesTo(e){let t=this.styleSheets,o=this.styleClass;e=this.normalizeTarget(e);for(let i=0;i1&&(t.property=n),Nu.locate(i.constructor).push(t)}if(arguments.length>1){t={},o(r,e);return}return t=r===void 0?{}:r,o}var Nu,ws,se,Qf,Ky=y(()=>{l();c();d();Pn();Ci();ys();Nu=Object.freeze({locate:zf()}),ws={toView(r){return r?"true":"false"},fromView(r){return!(r==null||r==="false"||r===!1||r===0)}},se={toView(r){if(r==null)return null;let e=r*1;return isNaN(e)?null:e.toString()},fromView(r){if(r==null)return null;let e=r*1;return isNaN(e)?null:e}},Qf=class r{constructor(e,t,o=t.toLowerCase(),i="reflect",n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=o,this.mode=i,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i==="boolean"&&n===void 0&&(this.converter=ws)}setValue(e,t){let o=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),o!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](o,t),e.$fastController.notify(this.name))}getValue(e){return pe.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){let t=this.mode,o=this.guards;o.has(e)||t==="fromView"||Y.queueUpdate(()=>{o.add(e);let i=e[this.fieldName];switch(t){case"reflect":let n=this.converter;Y.setAttribute(e,this.attribute,n!==void 0?n.toView(i):i);break;case"boolean":Y.setBooleanAttribute(e,this.attribute,i);break}o.delete(e)})}static collect(e,...t){let o=[];t.push(Nu.locate(e));for(let i=0,n=t.length;i{l();c();d();ys();Pn();Wf();Ky();uT={mode:"open"},hT={},Wy=kl.getById(4,()=>{let r=new Map;return Object.freeze({register(e){return r.has(e.type)?!1:(r.set(e.type,e),!0)},getByType(e){return r.get(e)}})}),$n=class{constructor(e,t=e.definition){typeof t=="string"&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;let o=Qf.collect(e,t.attributes),i=new Array(o.length),n={},s={};for(let a=0,u=o.length;a{l();c();d();Ci();Lu();Pn();Yf();pT=new WeakMap,W9={bubbles:!0,composed:!0,cancelable:!0};Zf=class r extends Dc{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;let o=t.shadowOptions;if(o!==void 0){let n=e.attachShadow(o);o.mode==="closed"&&pT.set(e,n)}let i=pe.getAccessors(e);if(i.length>0){let n=this.boundObservables=Object.create(null);for(let s=0,a=i.length;s{l();c();d();Yy();Yf();da=Object.assign(fT(HTMLElement),{from(r){return fT(r)},define(r,e){return new $n(r,e).define().type}})});var ua,Zy=y(()=>{l();c();d();ua=class{createCSS(){return""}createBehavior(){}}});function gT(r,e){let t=[],o="",i=[];for(let n=0,s=r.length-1;n{l();c();d();Zy();Wf();Jy=class extends ua{constructor(e,t){super(),this.behaviors=t,this.css="";let o=e.reduce((i,n)=>(typeof n=="string"?this.css+=n:i.push(n),i),[]);o.length&&(this.styles=nr.create(o))}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)}}});function xi(r,e,t){return{index:r,removed:e,addedCount:t}}function Q9(r,e,t,o,i,n){let s=n-i+1,a=t-e+1,u=new Array(s),h,p;for(let f=0;f0||t>0;){if(e===0){i.push(Xy),t--;continue}if(t===0){i.push(eb),e--;continue}let n=r[e-1][t-1],s=r[e-1][t],a=r[e][t-1],u;s=0){r.splice(a,1),a--,s-=u.addedCount-u.removed.length,i.addedCount+=u.addedCount-h;let p=i.removed.length+u.removed.length-h;if(!i.addedCount&&!p)n=!0;else{let f=u.removed;if(i.indexu.index+u.addedCount){let b=i.removed.slice(u.index+u.addedCount-i.index);yT.apply(f,b)}i.removed=f,u.index{l();c();d();ys();bT=0,wT=1,Xy=2,eb=3;yT=Array.prototype.push});function ob(r,e){let t=r.index,o=e.length;return t>o?t=o-r.addedCount:t<0&&(t=o+r.removed.length+t-r.addedCount),t<0&&(t=0),r.index=t,r}function nb(){if(xT)return;xT=!0,pe.setArrayObserverFactory(u=>new ib(u));let r=Array.prototype;if(r.$fastPatch)return;Reflect.defineProperty(r,"$fastPatch",{value:1,enumerable:!1});let e=r.pop,t=r.push,o=r.reverse,i=r.shift,n=r.sort,s=r.splice,a=r.unshift;r.pop=function(){let u=this.length>0,h=e.apply(this,arguments),p=this.$fastController;return p!==void 0&&u&&p.addSplice(xi(this.length,[h],0)),h},r.push=function(){let u=t.apply(this,arguments),h=this.$fastController;return h!==void 0&&h.addSplice(ob(xi(this.length-arguments.length,[],arguments.length),this)),u},r.reverse=function(){let u,h=this.$fastController;h!==void 0&&(h.flush(),u=this.slice());let p=o.apply(this,arguments);return h!==void 0&&h.reset(u),p},r.shift=function(){let u=this.length>0,h=i.apply(this,arguments),p=this.$fastController;return p!==void 0&&u&&p.addSplice(xi(0,[h],0)),h},r.sort=function(){let u,h=this.$fastController;h!==void 0&&(h.flush(),u=this.slice());let p=n.apply(this,arguments);return h!==void 0&&h.reset(u),p},r.splice=function(){let u=s.apply(this,arguments),h=this.$fastController;return h!==void 0&&h.addSplice(ob(xi(+arguments[0],u,arguments.length>2?arguments.length-2:0),this)),u},r.unshift=function(){let u=a.apply(this,arguments),h=this.$fastController;return h!==void 0&&h.addSplice(ob(xi(0,[],arguments.length),this)),u}}var xT,ib,sb=y(()=>{l();c();d();Ci();rb();Lu();Pn();xT=!1;ib=class extends Rn{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){this.splices===void 0?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,Y.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,Y.queueUpdate(this))}flush(){let e=this.splices,t=this.oldCollection;if(e===void 0&&t===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;let o=t===void 0?CT(this.source,e):tb(this.source,0,this.source.length,t,0,t.length);this.notify(o)}}});function Ee(r){return new bs("fast-ref",ab,r)}var ab,kT=y(()=>{l();c();d();ca();ab=class{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}});var lb,ST=y(()=>{l();c();d();lb=r=>typeof r=="function"});function _T(r){return r===void 0?rM:lb(r)?r:()=>r}function Ze(r,e,t){let o=lb(r)?r:()=>r,i=_T(e),n=_T(t);return(s,a)=>o(s,a)?i(s,a):n(s,a)}var rM,TT=y(()=>{l();c();d();ST();rM=()=>null});function oM(r,e,t,o){r.bind(e[t],o)}function iM(r,e,t,o){let i=Object.create(o);i.index=t,i.length=e.length,r.bind(e[t],i)}function _l(r,e,t=ET){let o=typeof e=="function"?e:()=>e;return new On(r,o,Object.assign(Object.assign({},ET),t))}var ET,cb,On,IT=y(()=>{l();c();d();Ci();Pn();sb();ys();ca();Gf();ET=Object.freeze({positioning:!1,recycle:!0});cb=class{constructor(e,t,o,i,n,s){this.location=e,this.itemsBinding=t,this.templateBinding=i,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=oM,this.itemsBindingObserver=pe.binding(t,this,o),this.templateBindingObserver=pe.binding(i,this,n),s.positioning&&(this.bindView=iM)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items){this.items=wi;return}let t=this.itemsObserver,o=this.itemsObserver=pe.getNotifier(this.items),i=t!==o;i&&t!==null&&t.unsubscribe(this),(i||e)&&o.subscribe(this)}updateViews(e){let t=this.childContext,o=this.views,i=this.bindView,n=this.items,s=this.template,a=this.options.recycle,u=[],h=0,p=0;for(let f=0,b=e.length;f0?(R<=me&&ie.length>0?(tt=ie[R],R++):(tt=u[h],h++),p--):tt=s.create(),o.splice(H,0,tt),i(tt,n,H,t),tt.insertBefore(Ge)}ie[R]&&u.push(...ie.slice(R))}for(let f=h,b=u.length;f{l();c();d();Pn();ys();Nc=class{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){let t=this.options.property;this.shouldUpdate=pe.getAccessors(e).some(o=>o.name===t),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(wi),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return this.options.filter!==void 0&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}});function Fe(r){return typeof r=="string"&&(r={property:r}),new bs("fast-slotted",db,r)}var db,AT=y(()=>{l();c();d();ca();Jf();db=class extends Nc{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 ha(r){return typeof r=="string"&&(r={property:r}),new bs("fast-children",ub,r)}var ub,RT=y(()=>{l();c();d();ca();Jf();ub=class extends Nc{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}});var A=y(()=>{l();c();d();ys();sT();mT();Yf();Ky();Yy();zy();Wf();vT();Zy();Gf();Pn();Lu();rb();sb();Ci();qf();ca();kT();TT();IT();AT();RT();Jf()});var _t,wt,Ct,PT,$T,$t=y(()=>{l();c();d();A();_t=class{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},wt=(r,e)=>O` +`));document.head.appendChild(Z_);J_=document.createElement("style");J_.innerHTML=Q_.toString();document.head.appendChild(J_)});function zf(){let r=new WeakMap;return function(e){let t=r.get(e);if(t===void 0){let o=Reflect.getPrototypeOf(e);for(;t===void 0&&o!==null;)t=r.get(o),o=Reflect.getPrototypeOf(o);t=t===void 0?[]:t.slice(0),r.set(e,t)}return t}}var tn,X_,kl,wi,ys=y(()=>{l();c();d();tn=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();tn.trustedTypes===void 0&&(tn.trustedTypes={createPolicy:(r,e)=>e});X_={configurable:!1,enumerable:!1,writable:!1};tn.FAST===void 0&&Reflect.defineProperty(tn,"FAST",Object.assign({value:Object.create(null)},X_));kl=tn.FAST;if(kl.getById===void 0){let r=Object.create(null);Reflect.defineProperty(kl,"getById",Object.assign({value(e,t){let o=r[e];return o===void 0&&(o=t?r[e]=t():null),o}},X_))}wi=Object.freeze([])});var Dy,eT,Ly,Du,Ny,Vf,Y,Ci=y(()=>{l();c();d();ys();Dy=tn.FAST.getById(1,()=>{let r=[],e=[];function t(){if(e.length)throw e.shift()}function o(s){try{s.call()}catch(a){e.push(a),setTimeout(t,0)}}function i(){let a=0;for(;a1024){for(let u=0,h=r.length-a;ur}),Ly=eT,Du=`fast-${Math.random().toString(36).substring(2,8)}`,Ny=`${Du}{`,Vf=`}${Du}`,Y=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(r){if(Ly!==eT)throw new Error("The HTML policy can only be set once.");Ly=r},createHTML(r){return Ly.createHTML(r)},isMarker(r){return r&&r.nodeType===8&&r.data.startsWith(Du)},extractDirectiveIndexFromMarker(r){return parseInt(r.data.replace(`${Du}:`,""))},createInterpolationPlaceholder(r){return`${Ny}${r}${Vf}`},createCustomAttributePlaceholder(r,e){return`${r}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder(r){return``},queueUpdate:Dy.enqueue,processUpdates:Dy.process,nextUpdate(){return new Promise(Dy.enqueue)},setAttribute(r,e,t){t==null?r.removeAttribute(e):r.setAttribute(e,t)},setBooleanAttribute(r,e,t){t?r.setAttribute(e,""):r.removeAttribute(e)},removeChildNodes(r){for(let e=r.firstChild;e!==null;e=r.firstChild)r.removeChild(e)},createTemplateWalker(r){return document.createTreeWalker(r,133,null,!1)}})});var Rn,Fc,Lu=y(()=>{l();c();d();Rn=class{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){let t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){let t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{let o=t.indexOf(e);o!==-1&&t.splice(o,1)}}notify(e){let t=this.spillover,o=this.source;if(t===void 0){let i=this.sub1,n=this.sub2;i!==void 0&&i.handleChange(o,e),n!==void 0&&n.handleChange(o,e)}else for(let i=0,n=t.length;i{l();c();d();Ci();ys();Lu();pe=kl.getById(2,()=>{let r=/(:|&&|\|\||if)/,e=new WeakMap,t=Y.queueUpdate,o,i=h=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function n(h){let p=h.$fastController||e.get(h);return p===void 0&&(Array.isArray(h)?p=i(h):e.set(h,p=new Fc(h))),p}let s=zf();class a{constructor(p){this.name=p,this.field=`_${p}`,this.callback=`${p}Changed`}getValue(p){return o!==void 0&&o.watch(p,this.name),p[this.field]}setValue(p,f){let b=this.field,C=p[b];if(C!==f){p[b]=f;let S=p[this.callback];typeof S=="function"&&S.call(p,C,f),n(p).notify(this.name)}}}class u extends Rn{constructor(p,f,b=!1){super(p,f),this.binding=p,this.isVolatileBinding=b,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(p,f){this.needsRefresh&&this.last!==null&&this.disconnect();let b=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let C=this.binding(p,f);return o=b,C}disconnect(){if(this.last!==null){let p=this.first;for(;p!==void 0;)p.notifier.unsubscribe(this,p.propertyName),p=p.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(p,f){let b=this.last,C=n(p),S=b===null?this.first:{};if(S.propertySource=p,S.propertyName=f,S.notifier=C,C.subscribe(this,f),b!==null){if(!this.needsRefresh){let R;o=void 0,R=b.propertySource[b.propertyName],o=this,p===R&&(this.needsRefresh=!0)}b.next=S}this.last=S}handleChange(){this.needsQueue&&(this.needsQueue=!1,t(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let p=this.first;return{next:()=>{let f=p;return f===void 0?{value:void 0,done:!0}:(p=p.next,{value:f,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(h){i=h},getNotifier:n,track(h,p){o!==void 0&&o.watch(h,p)},trackVolatile(){o!==void 0&&(o.needsRefresh=!0)},notify(h,p){n(h).notify(p)},defineProperty(h,p){typeof p=="string"&&(p=new a(p)),s(h).push(p),Reflect.defineProperty(h,p.name,{enumerable:!0,get:function(){return p.getValue(this)},set:function(f){p.setValue(this,f)}})},getAccessors:s,binding(h,p,f=this.isVolatileBinding(h)){return new u(h,p,f)},isVolatileBinding(h){return r.test(h.toString())}})});tT=kl.getById(3,()=>{let r=null;return{get(){return r},set(e){r=e}}}),sa=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return tT.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){tT.set(e)}};pe.defineProperty(sa.prototype,"index");pe.defineProperty(sa.prototype,"length");aa=Object.seal(new sa)});var la,Dc,bs,ca=y(()=>{l();c();d();Ci();la=class{constructor(){this.targetIndex=0}},Dc=class extends la{constructor(){super(...arguments),this.createPlaceholder=Y.createInterpolationPlaceholder}},bs=class extends la{constructor(e,t,o){super(),this.name=e,this.behavior=t,this.options=o}createPlaceholder(e){return Y.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}});function $9(r,e){this.source=r,this.context=e,this.bindingObserver===null&&(this.bindingObserver=pe.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(r,e))}function O9(r,e){this.source=r,this.context=e,this.target.addEventListener(this.targetName,this)}function M9(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function F9(){this.bindingObserver.disconnect(),this.source=null,this.context=null;let r=this.target.$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}function D9(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function L9(r){Y.setAttribute(this.target,this.targetName,r)}function N9(r){Y.setBooleanAttribute(this.target,this.targetName,r)}function H9(r){if(r==null&&(r=""),r.create){this.target.textContent="";let e=this.target.$fastView;e===void 0?e=r.create():this.target.$fastTemplate!==r&&(e.isComposed&&(e.remove(),e.unbind()),e=r.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=r)}else{let e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=r}}function U9(r){this.target[this.targetName]=r}function B9(r){let e=this.classVersions||Object.create(null),t=this.target,o=this.version||0;if(r!=null&&r.length){let i=r.split(/\s+/);for(let n=0,s=i.length;n{l();c();d();Ci();Pn();ca();Sl=class extends Dc{constructor(e){super(),this.binding=e,this.bind=$9,this.unbind=M9,this.updateTarget=L9,this.isBindingVolatile=pe.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,e!==void 0)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=U9,this.cleanedTargetName==="innerHTML"){let t=this.binding;this.binding=(o,i)=>Y.createHTML(t(o,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=N9;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=O9,this.unbind=D9;break;default:this.cleanedTargetName=e,e==="class"&&(this.updateTarget=B9);break}}targetAtContent(){this.updateTarget=H9,this.unbind=F9}createBehavior(e){return new Hy(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},Hy=class{constructor(e,t,o,i,n,s,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=o,this.bind=i,this.unbind=n,this.updateTarget=s,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){sa.setEvent(e);let t=this.binding(this.source,this.context);sa.setEvent(null),t!==!0&&e.preventDefault()}}});function z9(r){if(r.length===1)return r[0];let e,t=r.length,o=r.map(s=>typeof s=="string"?()=>s:(e=s.targetName||e,s.binding)),i=(s,a)=>{let u="";for(let h=0;ha),h.targetName=s.name):h=z9(u),h!==null&&(e.removeAttributeNode(s),i--,n--,r.addFactory(h))}}function q9(r,e,t){let o=iT(r,e.textContent);if(o!==null){let i=e;for(let n=0,s=o.length;n{l();c();d();Ci();qf();Uy=null,By=class r{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){Uy=this}static borrow(e){let t=Uy||new r;return t.directives=e,t.reset(),Uy=null,t}};V9=Vf.length});var Vy,Lc,Gf=y(()=>{l();c();d();Vy=document.createRange(),Lc=class{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{let t=this.lastChild;if(e.previousSibling===t)return;let o=e.parentNode,i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,o.insertBefore(i,e),i=n;o.insertBefore(t,e)}}remove(){let e=this.fragment,t=this.lastChild,o=this.firstChild,i;for(;o!==t;)i=o.nextSibling,e.appendChild(o),o=i;e.appendChild(t)}dispose(){let e=this.firstChild.parentNode,t=this.lastChild,o=this.firstChild,i;for(;o!==t;)i=o.nextSibling,e.removeChild(o),o=i;e.removeChild(t);let n=this.behaviors,s=this.source;for(let a=0,u=n.length;au}if(typeof a=="function"&&(a=new Sl(a)),a instanceof Dc){let u=G9.exec(s);u!==null&&(a.targetName=u[2])}a instanceof la?(o+=a.createPlaceholder(t.length),t.push(a)):o+=a}return o+=r[r.length-1],new jf(o,t)}var jf,G9,sT=y(()=>{l();c();d();Ci();Pn();zy();Gf();ca();qf();jf=class{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(this.fragment===null){let h,p=this.html;if(typeof p=="string"){h=document.createElement("template"),h.innerHTML=Y.createHTML(p);let b=h.content.firstElementChild;b!==null&&b.tagName==="TEMPLATE"&&(h=b)}else h=p;let f=nT(h,this.directives);this.fragment=f.fragment,this.viewBehaviorFactories=f.viewBehaviorFactories,this.hostBehaviorFactories=f.hostBehaviorFactories,this.targetOffset=f.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}let t=this.fragment.cloneNode(!0),o=this.viewBehaviorFactories,i=new Array(this.behaviorCount),n=Y.createTemplateWalker(t),s=0,a=this.targetOffset,u=n.nextNode();for(let h=o.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/});function jy(r){return r.map(e=>e instanceof nr?jy(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}function aT(r){return r.map(e=>e instanceof nr?e.behaviors:null).reduce((e,t)=>t===null?e:(e===null&&(e=[]),e.concat(t)),null)}function lT(r){let e=[],t=[];return r.forEach(o=>(o[Kf]?e:t).push(o)),{prepend:e,append:t}}function K9(){return`fast-style-class-${++j9}`}var nr,Kf,cT,dT,qy,j9,Gy,Wf=y(()=>{l();c();d();Ci();nr=class{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=this.behaviors===null?e:this.behaviors.concat(e),this}};nr.create=(()=>{if(Y.supportsAdoptedStyleSheets){let r=new Map;return e=>new qy(e,r)}return r=>new Gy(r)})();Kf=Symbol("prependToAdoptedStyleSheets");cT=(r,e)=>{let{prepend:t,append:o}=lT(e);r.adoptedStyleSheets=[...t,...r.adoptedStyleSheets,...o]},dT=(r,e)=>{r.adoptedStyleSheets=r.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(Y.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),cT=(r,e)=>{let{prepend:t,append:o}=lT(e);r.adoptedStyleSheets.splice(0,0,...t),r.adoptedStyleSheets.push(...o)},dT=(r,e)=>{for(let t of e){let o=r.adoptedStyleSheets.indexOf(t);o!==-1&&r.adoptedStyleSheets.splice(o,1)}}}catch{}qy=class extends nr{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=aT(e)}get styleSheets(){if(this._styleSheets===void 0){let e=this.styles,t=this.styleSheetCache;this._styleSheets=jy(e).map(o=>{if(o instanceof CSSStyleSheet)return o;let i=t.get(o);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(o),t.set(o,i)),i})}return this._styleSheets}addStylesTo(e){cT(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){dT(e,this.styleSheets),super.removeStylesFrom(e)}},j9=0;Gy=class extends nr{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=aT(e),this.styleSheets=jy(e),this.styleClass=K9()}addStylesTo(e){let t=this.styleSheets,o=this.styleClass;e=this.normalizeTarget(e);for(let i=0;i1&&(t.property=n),Nu.locate(i.constructor).push(t)}if(arguments.length>1){t={},o(r,e);return}return t=r===void 0?{}:r,o}var Nu,ws,se,Qf,Ky=y(()=>{l();c();d();Pn();Ci();ys();Nu=Object.freeze({locate:zf()}),ws={toView(r){return r?"true":"false"},fromView(r){return!(r==null||r==="false"||r===!1||r===0)}},se={toView(r){if(r==null)return null;let e=r*1;return isNaN(e)?null:e.toString()},fromView(r){if(r==null)return null;let e=r*1;return isNaN(e)?null:e}},Qf=class r{constructor(e,t,o=t.toLowerCase(),i="reflect",n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=o,this.mode=i,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i==="boolean"&&n===void 0&&(this.converter=ws)}setValue(e,t){let o=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),o!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](o,t),e.$fastController.notify(this.name))}getValue(e){return pe.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){let t=this.mode,o=this.guards;o.has(e)||t==="fromView"||Y.queueUpdate(()=>{o.add(e);let i=e[this.fieldName];switch(t){case"reflect":let n=this.converter;Y.setAttribute(e,this.attribute,n!==void 0?n.toView(i):i);break;case"boolean":Y.setBooleanAttribute(e,this.attribute,i);break}o.delete(e)})}static collect(e,...t){let o=[];t.push(Nu.locate(e));for(let i=0,n=t.length;i{l();c();d();ys();Pn();Wf();Ky();uT={mode:"open"},hT={},Wy=kl.getById(4,()=>{let r=new Map;return Object.freeze({register(e){return r.has(e.type)?!1:(r.set(e.type,e),!0)},getByType(e){return r.get(e)}})}),$n=class{constructor(e,t=e.definition){typeof t=="string"&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;let o=Qf.collect(e,t.attributes),i=new Array(o.length),n={},s={};for(let a=0,u=o.length;a{l();c();d();Ci();Lu();Pn();Yf();pT=new WeakMap,W9={bubbles:!0,composed:!0,cancelable:!0};Zf=class r extends Fc{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;let o=t.shadowOptions;if(o!==void 0){let n=e.attachShadow(o);o.mode==="closed"&&pT.set(e,n)}let i=pe.getAccessors(e);if(i.length>0){let n=this.boundObservables=Object.create(null);for(let s=0,a=i.length;s{l();c();d();Yy();Yf();da=Object.assign(fT(HTMLElement),{from(r){return fT(r)},define(r,e){return new $n(r,e).define().type}})});var ua,Zy=y(()=>{l();c();d();ua=class{createCSS(){return""}createBehavior(){}}});function gT(r,e){let t=[],o="",i=[];for(let n=0,s=r.length-1;n{l();c();d();Zy();Wf();Jy=class extends ua{constructor(e,t){super(),this.behaviors=t,this.css="";let o=e.reduce((i,n)=>(typeof n=="string"?this.css+=n:i.push(n),i),[]);o.length&&(this.styles=nr.create(o))}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)}}});function xi(r,e,t){return{index:r,removed:e,addedCount:t}}function Q9(r,e,t,o,i,n){let s=n-i+1,a=t-e+1,u=new Array(s),h,p;for(let f=0;f0||t>0;){if(e===0){i.push(Xy),t--;continue}if(t===0){i.push(eb),e--;continue}let n=r[e-1][t-1],s=r[e-1][t],a=r[e][t-1],u;s=0){r.splice(a,1),a--,s-=u.addedCount-u.removed.length,i.addedCount+=u.addedCount-h;let p=i.removed.length+u.removed.length-h;if(!i.addedCount&&!p)n=!0;else{let f=u.removed;if(i.indexu.index+u.addedCount){let b=i.removed.slice(u.index+u.addedCount-i.index);yT.apply(f,b)}i.removed=f,u.index{l();c();d();ys();bT=0,wT=1,Xy=2,eb=3;yT=Array.prototype.push});function ob(r,e){let t=r.index,o=e.length;return t>o?t=o-r.addedCount:t<0&&(t=o+r.removed.length+t-r.addedCount),t<0&&(t=0),r.index=t,r}function nb(){if(xT)return;xT=!0,pe.setArrayObserverFactory(u=>new ib(u));let r=Array.prototype;if(r.$fastPatch)return;Reflect.defineProperty(r,"$fastPatch",{value:1,enumerable:!1});let e=r.pop,t=r.push,o=r.reverse,i=r.shift,n=r.sort,s=r.splice,a=r.unshift;r.pop=function(){let u=this.length>0,h=e.apply(this,arguments),p=this.$fastController;return p!==void 0&&u&&p.addSplice(xi(this.length,[h],0)),h},r.push=function(){let u=t.apply(this,arguments),h=this.$fastController;return h!==void 0&&h.addSplice(ob(xi(this.length-arguments.length,[],arguments.length),this)),u},r.reverse=function(){let u,h=this.$fastController;h!==void 0&&(h.flush(),u=this.slice());let p=o.apply(this,arguments);return h!==void 0&&h.reset(u),p},r.shift=function(){let u=this.length>0,h=i.apply(this,arguments),p=this.$fastController;return p!==void 0&&u&&p.addSplice(xi(0,[h],0)),h},r.sort=function(){let u,h=this.$fastController;h!==void 0&&(h.flush(),u=this.slice());let p=n.apply(this,arguments);return h!==void 0&&h.reset(u),p},r.splice=function(){let u=s.apply(this,arguments),h=this.$fastController;return h!==void 0&&h.addSplice(ob(xi(+arguments[0],u,arguments.length>2?arguments.length-2:0),this)),u},r.unshift=function(){let u=a.apply(this,arguments),h=this.$fastController;return h!==void 0&&h.addSplice(ob(xi(0,[],arguments.length),this)),u}}var xT,ib,sb=y(()=>{l();c();d();Ci();rb();Lu();Pn();xT=!1;ib=class extends Rn{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){this.splices===void 0?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,Y.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,Y.queueUpdate(this))}flush(){let e=this.splices,t=this.oldCollection;if(e===void 0&&t===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;let o=t===void 0?CT(this.source,e):tb(this.source,0,this.source.length,t,0,t.length);this.notify(o)}}});function Ee(r){return new bs("fast-ref",ab,r)}var ab,kT=y(()=>{l();c();d();ca();ab=class{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}});var lb,ST=y(()=>{l();c();d();lb=r=>typeof r=="function"});function _T(r){return r===void 0?rM:lb(r)?r:()=>r}function Ze(r,e,t){let o=lb(r)?r:()=>r,i=_T(e),n=_T(t);return(s,a)=>o(s,a)?i(s,a):n(s,a)}var rM,TT=y(()=>{l();c();d();ST();rM=()=>null});function oM(r,e,t,o){r.bind(e[t],o)}function iM(r,e,t,o){let i=Object.create(o);i.index=t,i.length=e.length,r.bind(e[t],i)}function _l(r,e,t=ET){let o=typeof e=="function"?e:()=>e;return new On(r,o,Object.assign(Object.assign({},ET),t))}var ET,cb,On,IT=y(()=>{l();c();d();Ci();Pn();sb();ys();ca();Gf();ET=Object.freeze({positioning:!1,recycle:!0});cb=class{constructor(e,t,o,i,n,s){this.location=e,this.itemsBinding=t,this.templateBinding=i,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=oM,this.itemsBindingObserver=pe.binding(t,this,o),this.templateBindingObserver=pe.binding(i,this,n),s.positioning&&(this.bindView=iM)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items){this.items=wi;return}let t=this.itemsObserver,o=this.itemsObserver=pe.getNotifier(this.items),i=t!==o;i&&t!==null&&t.unsubscribe(this),(i||e)&&o.subscribe(this)}updateViews(e){let t=this.childContext,o=this.views,i=this.bindView,n=this.items,s=this.template,a=this.options.recycle,u=[],h=0,p=0;for(let f=0,b=e.length;f0?(R<=me&&ie.length>0?(tt=ie[R],R++):(tt=u[h],h++),p--):tt=s.create(),o.splice(H,0,tt),i(tt,n,H,t),tt.insertBefore(Ge)}ie[R]&&u.push(...ie.slice(R))}for(let f=h,b=u.length;f{l();c();d();Pn();ys();Nc=class{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){let t=this.options.property;this.shouldUpdate=pe.getAccessors(e).some(o=>o.name===t),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(wi),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return this.options.filter!==void 0&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}});function De(r){return typeof r=="string"&&(r={property:r}),new bs("fast-slotted",db,r)}var db,AT=y(()=>{l();c();d();ca();Jf();db=class extends Nc{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 ha(r){return typeof r=="string"&&(r={property:r}),new bs("fast-children",ub,r)}var ub,RT=y(()=>{l();c();d();ca();Jf();ub=class extends Nc{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}});var A=y(()=>{l();c();d();ys();sT();mT();Yf();Ky();Yy();zy();Wf();vT();Zy();Gf();Pn();Lu();rb();sb();Ci();qf();ca();kT();TT();IT();AT();RT();Jf()});var _t,wt,Ct,PT,$T,$t=y(()=>{l();c();d();A();_t=class{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},wt=(r,e)=>O`
-`});function w(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n}var Pe=y(()=>{l();c();d();});function Hu(r){let e=r.slice(),t=Object.keys(r),o=t.length,i;for(let n=0;nReflect.getOwnMetadata(r,e)}function rm(r){return function(e){let t=function(o,i,n){At.inject(t)(o,i,n)};return t.$isResolver=!0,t.resolve=function(o,i){return r(e,o,i)},t}}function lM(r){return function(e,t){t=!!t;let o=function(i,n,s){At.inject(o)(i,n,s)};return o.$isResolver=!0,o.resolve=function(i,n){return r(e,i,n,t)},o}}function yb(r,e,t){At.inject(yb)(r,e,t)}function VT(r,e){return e.getFactory(r).construct(e)}function NT(r){return this.get(r)}function cM(r,e){return e(r)}function tm(r){return typeof r.register=="function"}function uM(r){return tm(r)&&typeof r.registerInRequestor=="boolean"}function HT(r){return uM(r)&&r.registerInRequestor}function hM(r){return r.prototype!==void 0}function GT(r){return function(e,t,o){if(mb.has(o))return mb.get(o);let i=r(e,t,o);return mb.set(o,i),i}}function Xf(r){if(r==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function UT(r,e,t){if(r instanceof Io&&r.strategy===4){let o=r.state,i=o.length,n=new Array(i);for(;i--;)n[i]=o[i].resolve(e,t);return n}return[r.resolve(e,t)]}function zT(r){return typeof r=="object"&&r!==null||typeof r=="function"}function jT(r){switch(typeof r){case"number":return r>=0&&(r|0)===r;case"string":{let e=em[r];if(e!==void 0)return e;let t=r.length;if(t===0)return em[r]=!1;let o=0;for(let i=0;i1||o<48||o>57)return em[r]=!1;return em[r]=!0}default:return!1}}var hb,gb,nM,pb,DT,LT,At,sM,h1e,aM,p1e,f1e,m1e,g1e,v1e,Io,vb,dM,pM,qT,fb,Uu,mb,Tl,BT,fM,em,om=y(()=>{l();c();d();A();hb=new Map;"metadata"in Reflect||(Reflect.metadata=function(r,e){return function(t){Reflect.defineMetadata(r,e,t)}},Reflect.defineMetadata=function(r,e,t){let o=hb.get(t);o===void 0&&hb.set(t,o=new Map),o.set(r,e)},Reflect.getOwnMetadata=function(r,e){let t=hb.get(e);if(t!==void 0)return t.get(r)});gb=class{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,GT(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){let{container:o,key:i}=this;return this.container=this.key=void 0,o.registerResolver(i,new Io(i,e,t))}};nM=Object.freeze({none(r){throw Error(`${r.toString()} not registered, did you forget to add @singleton()?`)},singleton(r){return new Io(r,1,r)},transient(r){return new Io(r,2,r)}}),pb=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:nM.singleton})}),DT=new Map;LT=null,At=Object.freeze({createContainer(r){return new Uu(null,Object.assign({},pb.default,r))},findResponsibleContainer(r){let e=r.$$container$$;return e&&e.responsibleForOwnerRequests?e:At.findParentContainer(r)},findParentContainer(r){let e=new CustomEvent(qT,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return r.dispatchEvent(e),e.detail.container||At.getOrCreateDOMContainer()},getOrCreateDOMContainer(r,e){return r?r.$$container$$||new Uu(r,Object.assign({},pb.default,e,{parentLocator:At.findParentContainer})):LT||(LT=new Uu(null,Object.assign({},pb.default,e,{parentLocator:()=>null})))},getDesignParamtypes:FT("design:paramtypes"),getAnnotationParamtypes:FT("di:paramtypes"),getOrCreateAnnotationParamTypes(r){let e=this.getAnnotationParamtypes(r);return e===void 0&&Reflect.defineMetadata("di:paramtypes",e=[],r),e},getDependencies(r){let e=DT.get(r);if(e===void 0){let t=r.inject;if(t===void 0){let o=At.getDesignParamtypes(r),i=At.getAnnotationParamtypes(r);if(o===void 0)if(i===void 0){let n=Object.getPrototypeOf(r);typeof n=="function"&&n!==Function.prototype?e=Hu(At.getDependencies(n)):e=[]}else e=Hu(i);else if(i===void 0)e=Hu(o);else{e=Hu(o);let n=i.length,s;for(let h=0;h{let p=At.findResponsibleContainer(this).get(t),f=this[i];p!==f&&(this[i]=n,a.notify(e))};a.subscribe({handleChange:u},"isConnected")}return n}})},createInterface(r,e){let t=typeof r=="function"?r:e,o=typeof r=="string"?r:r&&"friendlyName"in r&&r.friendlyName||BT,i=typeof r=="string"?!1:r&&"respectConnection"in r&&r.respectConnection||!1,n=function(s,a,u){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(a)At.defineProperty(s,a,n,i);else{let h=At.getOrCreateAnnotationParamTypes(s);h[u]=n}};return n.$isInterface=!0,n.friendlyName=o??"(anonymous)",t!=null&&(n.register=function(s,a){return t(new gb(s,a??n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject(...r){return function(e,t,o){if(typeof o=="number"){let i=At.getOrCreateAnnotationParamTypes(e),n=r[0];n!==void 0&&(i[o]=n)}else if(t)At.defineProperty(e,t,r[0]);else{let i=o?At.getOrCreateAnnotationParamTypes(o.value):At.getOrCreateAnnotationParamTypes(e),n;for(let s=0;st.getAll(r,o)),f1e=rm((r,e,t)=>()=>t.get(r)),m1e=rm((r,e,t)=>{if(t.has(r,!0))return t.get(r)});yb.$isResolver=!0;yb.resolve=()=>{};g1e=rm((r,e,t)=>{let o=VT(r,e),i=new Io(r,0,o);return t.registerResolver(r,i),o}),v1e=rm((r,e,t)=>VT(r,e));Io=class{constructor(e,t,o){this.key=e,this.strategy=t,this.state=o,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:{let o=e.getFactory(this.state);if(o===null)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return o.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,o,i;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return(i=(o=(t=e.getResolver(this.state))===null||t===void 0?void 0:t.getFactory)===null||o===void 0?void 0:o.call(t,e))!==null&&i!==void 0?i:null;default:return null}}};vb=class{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let o;return t===void 0?o=new this.Type(...this.dependencies.map(NT,e)):o=new this.Type(...this.dependencies.map(NT,e),...t),this.transformers==null?o:this.transformers.reduce(cM,o)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}},dM={$isResolver:!0,resolve(r,e){return e}};pM=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"]),qT="__DI_LOCATE_PARENT__",fb=new Map,Uu=class r{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,e!==null&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(sM,dM),e instanceof Node&&e.addEventListener(qT,o=>{o.composedPath()[0]!==this.owner&&(o.detail.container=this,o.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?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(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let t,o,i,n,s,a=this.context;for(let u=0,h=e.length;uthis}))}jitRegister(e,t){if(typeof e!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(pM.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(tm(e)){let o=e.register(t);if(!(o instanceof Object)||o.resolve==null){let i=t.resolvers.get(e);if(i!=null)return i;throw new Error("A valid resolver was not returned from the static register method")}return o}else{if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{let o=this.config.defaultResolver(e,t);return t.resolvers.set(e,o),o}}}},mb=new WeakMap;Tl=Object.freeze({instance(r,e){return new Io(r,0,e)},singleton(r,e){return new Io(r,1,e)},transient(r,e){return new Io(r,2,e)},callback(r,e){return new Io(r,3,e)},cachedCallback(r,e){return new Io(r,3,GT(e))},aliasTo(r,e){return new Io(e,5,r)}});BT="(anonymous)";fM=function(){let r=new WeakMap,e=!1,t="",o=0;return function(i){return e=r.get(i),e===void 0&&(t=i.toString(),o=t.length,e=o>=29&&o<=100&&t.charCodeAt(o-1)===125&&t.charCodeAt(o-2)<=32&&t.charCodeAt(o-3)===93&&t.charCodeAt(o-4)===101&&t.charCodeAt(o-5)===100&&t.charCodeAt(o-6)===111&&t.charCodeAt(o-7)===99&&t.charCodeAt(o-8)===32&&t.charCodeAt(o-9)===101&&t.charCodeAt(o-10)===118&&t.charCodeAt(o-11)===105&&t.charCodeAt(o-12)===116&&t.charCodeAt(o-13)===97&&t.charCodeAt(o-14)===110&&t.charCodeAt(o-15)===88,r.set(i,e)),e}}(),em={}});function KT(r){return`${r.toLowerCase()}:presentation`}var im,sm,nm,am=y(()=>{l();c();d();A();om();im=new Map,sm=Object.freeze({define(r,e,t){let o=KT(r);im.get(o)===void 0?im.set(o,e):im.set(o,!1),t.register(Tl.instance(o,e))},forTag(r,e){let t=KT(r),o=im.get(t);return o===!1?At.findResponsibleContainer(e).get(t):o||null}}),nm=class{constructor(e,t){this.template=e||null,this.styles=t===void 0?null:Array.isArray(t)?nr.create(t):t instanceof nr?t:nr.create([t])}applyTo(e){let t=e.$fastController;t.template===null&&(t.template=this.template),t.styles===null&&(t.styles=this.styles)}}});function Bu(r,e,t){return typeof r=="function"?r(e,t):r}var G,bb,He=y(()=>{l();c();d();Pe();A();am();G=class r extends da{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=sm.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new bb(this===r?class extends r{}:this,e,t)}};w([I],G.prototype,"template",void 0);w([I],G.prototype,"styles",void 0);bb=class{constructor(e,t,o){this.type=e,this.elementDefinition=t,this.overrideDefinition=o,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){let o=this.definition,i=this.overrideDefinition,s=`${o.prefix||t.elementPrefix}-${o.baseName}`;t.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{let u=new nm(Bu(o.template,a,o),Bu(o.styles,a,o));a.definePresentation(u);let h=Bu(o.shadowOptions,a,o);a.shadowRootMode&&(h?i.shadowOptions||(h.mode=a.shadowRootMode):h!==null&&(h={mode:a.shadowRootMode})),a.defineElement({elementOptions:Bu(o.elementOptions,a,o),shadowOptions:h,attributes:Bu(o.attributes,a,o)})}})}}});function We(r,...e){let t=Nu.locate(r);e.forEach(o=>{Object.getOwnPropertyNames(o.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(r.prototype,n,Object.getOwnPropertyDescriptor(o.prototype,n))}),Nu.locate(o).forEach(n=>t.push(n))})}var zr=y(()=>{l();c();d();A()});var rn,wb=y(()=>{l();c();d();Pe();A();He();$t();zr();rn=class extends G{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=e=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}};w([k({attribute:"heading-level",mode:"fromView",converter:se})],rn.prototype,"headinglevel",void 0);w([k({mode:"boolean"})],rn.prototype,"expanded",void 0);w([k],rn.prototype,"id",void 0);We(rn,_t)});var WT=y(()=>{l();c();d();MT();wb()});var QT,YT=y(()=>{l();c();d();A();QT=(r,e)=>O` +`});function w(r,e,t,o){var i=arguments.length,n=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,t,o);else for(var a=r.length-1;a>=0;a--)(s=r[a])&&(n=(i<3?s(n):i>3?s(e,t,n):s(e,t))||n);return i>3&&n&&Object.defineProperty(e,t,n),n}var Pe=y(()=>{l();c();d();});function Hu(r){let e=r.slice(),t=Object.keys(r),o=t.length,i;for(let n=0;nReflect.getOwnMetadata(r,e)}function rm(r){return function(e){let t=function(o,i,n){At.inject(t)(o,i,n)};return t.$isResolver=!0,t.resolve=function(o,i){return r(e,o,i)},t}}function lM(r){return function(e,t){t=!!t;let o=function(i,n,s){At.inject(o)(i,n,s)};return o.$isResolver=!0,o.resolve=function(i,n){return r(e,i,n,t)},o}}function yb(r,e,t){At.inject(yb)(r,e,t)}function VT(r,e){return e.getFactory(r).construct(e)}function NT(r){return this.get(r)}function cM(r,e){return e(r)}function tm(r){return typeof r.register=="function"}function uM(r){return tm(r)&&typeof r.registerInRequestor=="boolean"}function HT(r){return uM(r)&&r.registerInRequestor}function hM(r){return r.prototype!==void 0}function GT(r){return function(e,t,o){if(mb.has(o))return mb.get(o);let i=r(e,t,o);return mb.set(o,i),i}}function Xf(r){if(r==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function UT(r,e,t){if(r instanceof Io&&r.strategy===4){let o=r.state,i=o.length,n=new Array(i);for(;i--;)n[i]=o[i].resolve(e,t);return n}return[r.resolve(e,t)]}function zT(r){return typeof r=="object"&&r!==null||typeof r=="function"}function jT(r){switch(typeof r){case"number":return r>=0&&(r|0)===r;case"string":{let e=em[r];if(e!==void 0)return e;let t=r.length;if(t===0)return em[r]=!1;let o=0;for(let i=0;i1||o<48||o>57)return em[r]=!1;return em[r]=!0}default:return!1}}var hb,gb,nM,pb,FT,LT,At,sM,h1e,aM,p1e,f1e,m1e,g1e,v1e,Io,vb,dM,pM,qT,fb,Uu,mb,Tl,BT,fM,em,om=y(()=>{l();c();d();A();hb=new Map;"metadata"in Reflect||(Reflect.metadata=function(r,e){return function(t){Reflect.defineMetadata(r,e,t)}},Reflect.defineMetadata=function(r,e,t){let o=hb.get(t);o===void 0&&hb.set(t,o=new Map),o.set(r,e)},Reflect.getOwnMetadata=function(r,e){let t=hb.get(e);if(t!==void 0)return t.get(r)});gb=class{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,GT(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){let{container:o,key:i}=this;return this.container=this.key=void 0,o.registerResolver(i,new Io(i,e,t))}};nM=Object.freeze({none(r){throw Error(`${r.toString()} not registered, did you forget to add @singleton()?`)},singleton(r){return new Io(r,1,r)},transient(r){return new Io(r,2,r)}}),pb=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:nM.singleton})}),FT=new Map;LT=null,At=Object.freeze({createContainer(r){return new Uu(null,Object.assign({},pb.default,r))},findResponsibleContainer(r){let e=r.$$container$$;return e&&e.responsibleForOwnerRequests?e:At.findParentContainer(r)},findParentContainer(r){let e=new CustomEvent(qT,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return r.dispatchEvent(e),e.detail.container||At.getOrCreateDOMContainer()},getOrCreateDOMContainer(r,e){return r?r.$$container$$||new Uu(r,Object.assign({},pb.default,e,{parentLocator:At.findParentContainer})):LT||(LT=new Uu(null,Object.assign({},pb.default,e,{parentLocator:()=>null})))},getDesignParamtypes:DT("design:paramtypes"),getAnnotationParamtypes:DT("di:paramtypes"),getOrCreateAnnotationParamTypes(r){let e=this.getAnnotationParamtypes(r);return e===void 0&&Reflect.defineMetadata("di:paramtypes",e=[],r),e},getDependencies(r){let e=FT.get(r);if(e===void 0){let t=r.inject;if(t===void 0){let o=At.getDesignParamtypes(r),i=At.getAnnotationParamtypes(r);if(o===void 0)if(i===void 0){let n=Object.getPrototypeOf(r);typeof n=="function"&&n!==Function.prototype?e=Hu(At.getDependencies(n)):e=[]}else e=Hu(i);else if(i===void 0)e=Hu(o);else{e=Hu(o);let n=i.length,s;for(let h=0;h{let p=At.findResponsibleContainer(this).get(t),f=this[i];p!==f&&(this[i]=n,a.notify(e))};a.subscribe({handleChange:u},"isConnected")}return n}})},createInterface(r,e){let t=typeof r=="function"?r:e,o=typeof r=="string"?r:r&&"friendlyName"in r&&r.friendlyName||BT,i=typeof r=="string"?!1:r&&"respectConnection"in r&&r.respectConnection||!1,n=function(s,a,u){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(a)At.defineProperty(s,a,n,i);else{let h=At.getOrCreateAnnotationParamTypes(s);h[u]=n}};return n.$isInterface=!0,n.friendlyName=o??"(anonymous)",t!=null&&(n.register=function(s,a){return t(new gb(s,a??n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject(...r){return function(e,t,o){if(typeof o=="number"){let i=At.getOrCreateAnnotationParamTypes(e),n=r[0];n!==void 0&&(i[o]=n)}else if(t)At.defineProperty(e,t,r[0]);else{let i=o?At.getOrCreateAnnotationParamTypes(o.value):At.getOrCreateAnnotationParamTypes(e),n;for(let s=0;st.getAll(r,o)),f1e=rm((r,e,t)=>()=>t.get(r)),m1e=rm((r,e,t)=>{if(t.has(r,!0))return t.get(r)});yb.$isResolver=!0;yb.resolve=()=>{};g1e=rm((r,e,t)=>{let o=VT(r,e),i=new Io(r,0,o);return t.registerResolver(r,i),o}),v1e=rm((r,e,t)=>VT(r,e));Io=class{constructor(e,t,o){this.key=e,this.strategy=t,this.state=o,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:{let o=e.getFactory(this.state);if(o===null)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return o.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,o,i;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return(i=(o=(t=e.getResolver(this.state))===null||t===void 0?void 0:t.getFactory)===null||o===void 0?void 0:o.call(t,e))!==null&&i!==void 0?i:null;default:return null}}};vb=class{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let o;return t===void 0?o=new this.Type(...this.dependencies.map(NT,e)):o=new this.Type(...this.dependencies.map(NT,e),...t),this.transformers==null?o:this.transformers.reduce(cM,o)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}},dM={$isResolver:!0,resolve(r,e){return e}};pM=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"]),qT="__DI_LOCATE_PARENT__",fb=new Map,Uu=class r{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,e!==null&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(sM,dM),e instanceof Node&&e.addEventListener(qT,o=>{o.composedPath()[0]!==this.owner&&(o.detail.container=this,o.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?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(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let t,o,i,n,s,a=this.context;for(let u=0,h=e.length;uthis}))}jitRegister(e,t){if(typeof e!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(pM.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(tm(e)){let o=e.register(t);if(!(o instanceof Object)||o.resolve==null){let i=t.resolvers.get(e);if(i!=null)return i;throw new Error("A valid resolver was not returned from the static register method")}return o}else{if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{let o=this.config.defaultResolver(e,t);return t.resolvers.set(e,o),o}}}},mb=new WeakMap;Tl=Object.freeze({instance(r,e){return new Io(r,0,e)},singleton(r,e){return new Io(r,1,e)},transient(r,e){return new Io(r,2,e)},callback(r,e){return new Io(r,3,e)},cachedCallback(r,e){return new Io(r,3,GT(e))},aliasTo(r,e){return new Io(e,5,r)}});BT="(anonymous)";fM=function(){let r=new WeakMap,e=!1,t="",o=0;return function(i){return e=r.get(i),e===void 0&&(t=i.toString(),o=t.length,e=o>=29&&o<=100&&t.charCodeAt(o-1)===125&&t.charCodeAt(o-2)<=32&&t.charCodeAt(o-3)===93&&t.charCodeAt(o-4)===101&&t.charCodeAt(o-5)===100&&t.charCodeAt(o-6)===111&&t.charCodeAt(o-7)===99&&t.charCodeAt(o-8)===32&&t.charCodeAt(o-9)===101&&t.charCodeAt(o-10)===118&&t.charCodeAt(o-11)===105&&t.charCodeAt(o-12)===116&&t.charCodeAt(o-13)===97&&t.charCodeAt(o-14)===110&&t.charCodeAt(o-15)===88,r.set(i,e)),e}}(),em={}});function KT(r){return`${r.toLowerCase()}:presentation`}var im,sm,nm,am=y(()=>{l();c();d();A();om();im=new Map,sm=Object.freeze({define(r,e,t){let o=KT(r);im.get(o)===void 0?im.set(o,e):im.set(o,!1),t.register(Tl.instance(o,e))},forTag(r,e){let t=KT(r),o=im.get(t);return o===!1?At.findResponsibleContainer(e).get(t):o||null}}),nm=class{constructor(e,t){this.template=e||null,this.styles=t===void 0?null:Array.isArray(t)?nr.create(t):t instanceof nr?t:nr.create([t])}applyTo(e){let t=e.$fastController;t.template===null&&(t.template=this.template),t.styles===null&&(t.styles=this.styles)}}});function Bu(r,e,t){return typeof r=="function"?r(e,t):r}var G,bb,He=y(()=>{l();c();d();Pe();A();am();G=class r extends da{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=sm.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new bb(this===r?class extends r{}:this,e,t)}};w([I],G.prototype,"template",void 0);w([I],G.prototype,"styles",void 0);bb=class{constructor(e,t,o){this.type=e,this.elementDefinition=t,this.overrideDefinition=o,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){let o=this.definition,i=this.overrideDefinition,s=`${o.prefix||t.elementPrefix}-${o.baseName}`;t.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{let u=new nm(Bu(o.template,a,o),Bu(o.styles,a,o));a.definePresentation(u);let h=Bu(o.shadowOptions,a,o);a.shadowRootMode&&(h?i.shadowOptions||(h.mode=a.shadowRootMode):h!==null&&(h={mode:a.shadowRootMode})),a.defineElement({elementOptions:Bu(o.elementOptions,a,o),shadowOptions:h,attributes:Bu(o.attributes,a,o)})}})}}});function We(r,...e){let t=Nu.locate(r);e.forEach(o=>{Object.getOwnPropertyNames(o.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(r.prototype,n,Object.getOwnPropertyDescriptor(o.prototype,n))}),Nu.locate(o).forEach(n=>t.push(n))})}var zr=y(()=>{l();c();d();A()});var rn,wb=y(()=>{l();c();d();Pe();A();He();$t();zr();rn=class extends G{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=e=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}};w([k({attribute:"heading-level",mode:"fromView",converter:se})],rn.prototype,"headinglevel",void 0);w([k({mode:"boolean"})],rn.prototype,"expanded",void 0);w([k],rn.prototype,"id",void 0);We(rn,_t)});var WT=y(()=>{l();c();d();MT();wb()});var QT,YT=y(()=>{l();c();d();A();QT=(r,e)=>O` `});var Tt,ZT=y(()=>{l();c();d();Tt={horizontal:"horizontal",vertical:"vertical"}});function JT(r,e){let t=r.length;for(;t--;)if(e(r[t],t,r))return t;return-1}var XT=y(()=>{l();c();d()});var eE=y(()=>{l();c();d()});function Hc(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var lm=y(()=>{l();c();d()});var tE=y(()=>{l();c();d();lm()});var rE=y(()=>{l();c();d();lm()});var oE=y(()=>{l();c();d()});var Cb=y(()=>{l();c();d();lm();tE();rE();oE()});function Mn(...r){return r.every(e=>e instanceof HTMLElement)}function iE(r,e){return!r||!e||!Mn(r)?void 0:Array.from(r.querySelectorAll(e)).filter(o=>o.offsetParent!==null)}function mM(){let r=document.querySelector('meta[property="csp-nonce"]');return r?r.getAttribute("content"):null}function nE(){if(typeof El=="boolean")return El;if(!Hc())return El=!1,El;let r=document.createElement("style"),e=mM();e!==null&&r.setAttribute("nonce",e),document.head.appendChild(r);try{r.sheet.insertRule("foo:focus-visible {color:inherit}",0),El=!0}catch{El=!1}finally{document.head.removeChild(r)}return El}var El,sE=y(()=>{l();c();d();Cb()});var xb,kb,Cs,xs,Sb,_b,aE=y(()=>{l();c();d();xb="focus",kb="focusin",Cs="focusout",xs="keydown",Sb="resize",_b="scroll"});var lE=y(()=>{l();c();d()});var cE,Vt,yo,bo,qt,sr,Vo,xr,kr,dE,uE,hE,qo,pa,pE,fE,fa,mE=y(()=>{l();c();d();(function(r){r[r.alt=18]="alt",r[r.arrowDown=40]="arrowDown",r[r.arrowLeft=37]="arrowLeft",r[r.arrowRight=39]="arrowRight",r[r.arrowUp=38]="arrowUp",r[r.back=8]="back",r[r.backSlash=220]="backSlash",r[r.break=19]="break",r[r.capsLock=20]="capsLock",r[r.closeBracket=221]="closeBracket",r[r.colon=186]="colon",r[r.colon2=59]="colon2",r[r.comma=188]="comma",r[r.ctrl=17]="ctrl",r[r.delete=46]="delete",r[r.end=35]="end",r[r.enter=13]="enter",r[r.equals=187]="equals",r[r.equals2=61]="equals2",r[r.equals3=107]="equals3",r[r.escape=27]="escape",r[r.forwardSlash=191]="forwardSlash",r[r.function1=112]="function1",r[r.function10=121]="function10",r[r.function11=122]="function11",r[r.function12=123]="function12",r[r.function2=113]="function2",r[r.function3=114]="function3",r[r.function4=115]="function4",r[r.function5=116]="function5",r[r.function6=117]="function6",r[r.function7=118]="function7",r[r.function8=119]="function8",r[r.function9=120]="function9",r[r.home=36]="home",r[r.insert=45]="insert",r[r.menu=93]="menu",r[r.minus=189]="minus",r[r.minus2=109]="minus2",r[r.numLock=144]="numLock",r[r.numPad0=96]="numPad0",r[r.numPad1=97]="numPad1",r[r.numPad2=98]="numPad2",r[r.numPad3=99]="numPad3",r[r.numPad4=100]="numPad4",r[r.numPad5=101]="numPad5",r[r.numPad6=102]="numPad6",r[r.numPad7=103]="numPad7",r[r.numPad8=104]="numPad8",r[r.numPad9=105]="numPad9",r[r.numPadDivide=111]="numPadDivide",r[r.numPadDot=110]="numPadDot",r[r.numPadMinus=109]="numPadMinus",r[r.numPadMultiply=106]="numPadMultiply",r[r.numPadPlus=107]="numPadPlus",r[r.openBracket=219]="openBracket",r[r.pageDown=34]="pageDown",r[r.pageUp=33]="pageUp",r[r.period=190]="period",r[r.print=44]="print",r[r.quote=222]="quote",r[r.scrollLock=145]="scrollLock",r[r.shift=16]="shift",r[r.space=32]="space",r[r.tab=9]="tab",r[r.tilde=192]="tilde",r[r.windowsLeft=91]="windowsLeft",r[r.windowsOpera=219]="windowsOpera",r[r.windowsRight=92]="windowsRight"})(cE||(cE={}));Vt="ArrowDown",yo="ArrowLeft",bo="ArrowRight",qt="ArrowUp",sr="Enter",Vo="Escape",xr="Home",kr="End",dE="F2",uE="PageDown",hE="PageUp",qo=" ",pa="Tab",pE="Backspace",fE="Delete",fa={ArrowDown:Vt,ArrowLeft:yo,ArrowRight:bo,ArrowUp:qt}});var et,Tb=y(()=>{l();c();d();(function(r){r.ltr="ltr",r.rtl="rtl"})(et||(et={}))});function gE(r,e,t){return te?r:t}function ma(r,e,t){return Math.min(Math.max(t,r),e)}function zu(r,e,t=0){return[e,t]=[e,t].sort((o,i)=>o-i),e<=r&&r{l();c();d()});function di(r=""){return`${r}${gM++}`}var gM,yE=y(()=>{l();c();d();gM=0});var bE=y(()=>{l();c();d()});var Uc,wE=y(()=>{l();c();d();Cb();Tb();Uc=class r{static getScrollLeft(e,t){return t===et.rtl?r.getRtlScrollLeftConverter(e):e.scrollLeft}static setScrollLeft(e,t,o){if(o===et.rtl){r.setRtlScrollLeftConverter(e,t);return}e.scrollLeft=t}static initialGetRtlScrollConverter(e){return r.initializeRtlScrollConverters(),r.getRtlScrollLeftConverter(e)}static directGetRtlScrollConverter(e){return e.scrollLeft}static invertedGetRtlScrollConverter(e){return-Math.abs(e.scrollLeft)}static reverseGetRtlScrollConverter(e){return e.scrollLeft-(e.scrollWidth-e.clientWidth)}static initialSetRtlScrollConverter(e,t){r.initializeRtlScrollConverters(),r.setRtlScrollLeftConverter(e,t)}static directSetRtlScrollConverter(e,t){e.scrollLeft=t}static invertedSetRtlScrollConverter(e,t){e.scrollLeft=Math.abs(t)}static reverseSetRtlScrollConverter(e,t){let o=e.scrollWidth-e.clientWidth;e.scrollLeft=o+t}static initializeRtlScrollConverters(){if(!Hc()){r.applyDirectScrollConverters();return}let e=r.getTestElement();document.body.appendChild(e),r.checkForScrollType(e),document.body.removeChild(e)}static checkForScrollType(e){r.isReverse(e)?r.applyReverseScrollConverters():r.isDirect(e)?r.applyDirectScrollConverters():r.applyInvertedScrollConverters()}static isReverse(e){return e.scrollLeft>0}static isDirect(e){return e.scrollLeft=-1,e.scrollLeft<0}static applyDirectScrollConverters(){r.setRtlScrollLeftConverter=r.directSetRtlScrollConverter,r.getRtlScrollLeftConverter=r.directGetRtlScrollConverter}static applyInvertedScrollConverters(){r.setRtlScrollLeftConverter=r.invertedSetRtlScrollConverter,r.getRtlScrollLeftConverter=r.invertedGetRtlScrollConverter}static applyReverseScrollConverters(){r.setRtlScrollLeftConverter=r.reverseSetRtlScrollConverter,r.getRtlScrollLeftConverter=r.reverseGetRtlScrollConverter}static getTestElement(){let e=document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",e}};Uc.getRtlScrollLeftConverter=Uc.initialGetRtlScrollConverter;Uc.setRtlScrollLeftConverter=Uc.initialSetRtlScrollConverter});var T,CE=y(()=>{l();c();d();(function(r){r.Canvas="Canvas",r.CanvasText="CanvasText",r.LinkText="LinkText",r.VisitedText="VisitedText",r.ActiveText="ActiveText",r.ButtonFace="ButtonFace",r.ButtonText="ButtonText",r.Field="Field",r.FieldText="FieldText",r.Highlight="Highlight",r.HighlightText="HighlightText",r.GrayText="GrayText"})(T||(T={}))});var we=y(()=>{l();c();d();ZT();XT();eE();sE();aE();lE();mE();Tb();vE();yE();bE();wE();CE()});var xE,Bc,kE=y(()=>{l();c();d();Pe();A();we();He();wb();xE={single:"single",multi:"multi"},Bc=class extends G{constructor(){super(...arguments),this.expandmode=xE.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{var e;this.accordionItems.length!==0&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,o)=>{t instanceof rn&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==o?t.expanded=!1:t.expanded=!0));let i=this.accordionIds[o];t.setAttribute("id",typeof i!="string"?`accordion-${o+1}`:i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode()&&((e=this.findExpandedItem())!==null&&e!==void 0?e:this.accordionItems[0]).setAttribute("aria-disabled","true"))},this.removeItemListeners=e=>{e.forEach((t,o)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=e=>{if(e.defaultPrevented||e.target!==e.currentTarget)return;e.preventDefault();let t=e.target;this.activeid=t.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),t.expanded=!0,t.setAttribute("aria-disabled","true"),this.accordionItems.forEach(o=>{!o.hasAttribute("disabled")&&o.id!==this.activeid&&o.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(t),this.change()},this.handleItemKeyDown=e=>{if(e.target===e.currentTarget)switch(this.accordionIds=this.getItemIds(),e.key){case qt:e.preventDefault(),this.adjust(-1);break;case Vt:e.preventDefault(),this.adjust(1);break;case xr:this.activeItemIndex=0,this.focusItem();break;case kr:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){let t=e.target,o=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==o&&o!==-1&&(this.activeItemIndex=o,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(e,t){this.$fastController.isConnected&&(this.removeItemListeners(e),this.setItems())}findExpandedItem(){for(let e=0;e{e.expanded=!1})}getItemIds(){return this.accordionItems.map(e=>e.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===xE.single}adjust(e){this.activeItemIndex=gE(0,this.accordionItems.length-1,this.activeItemIndex+e),this.focusItem()}focusItem(){let e=this.accordionItems[this.activeItemIndex];e instanceof rn&&e.expandbutton.focus()}};w([k({attribute:"expand-mode"})],Bc.prototype,"expandmode",void 0);w([I],Bc.prototype,"accordionItems",void 0)});var SE=y(()=>{l();c();d();YT();kE()});var cm,Eb=y(()=>{l();c();d();A();$t();cm=(r,e)=>O` ${Ct(r,e)} - + ${wt(r,e)} @@ -160,13 +160,13 @@ try{ `)} -`});var ui,ga=y(()=>{l();c();d();we();ui=r=>{let e=r.closest("[dir]");return e!==null&&e.dir==="rtl"?et.rtl:et.ltr}});var dm,IE=y(()=>{l();c();d();A();dm=class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(e,t)=>{var o;if(this.intersectionDetector!==null){if(this.observedElements.has(e)){(o=this.observedElements.get(e))===null||o===void 0||o.push(t);return}this.observedElements.set(e,[t]),this.intersectionDetector.observe(e)}},this.cancelRequestPosition=(e,t)=>{let o=this.observedElements.get(e);if(o!==void 0){let i=o.indexOf(t);i!==-1&&o.splice(i,1)}},this.initializeIntersectionDetector=()=>{tn.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=e=>{if(this.intersectionDetector===null)return;let t=[],o=[];e.forEach(i=>{var n;(n=this.intersectionDetector)===null||n===void 0||n.unobserve(i.target);let s=this.observedElements.get(i.target);s!==void 0&&(s.forEach(a=>{let u=t.indexOf(a);u===-1&&(u=t.length,t.push(a),o.push([])),o[u].push(i)}),this.observedElements.delete(i.target))}),t.forEach((i,n)=>{i(o[n])})},this.initializeIntersectionDetector()}}});var Me,qu=y(()=>{l();c();d();Pe();A();we();He();ga();IE();Me=class r extends G{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=et.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),this.anchorElement!==null&&(this.requestPositionUpdates(),this.resizeDetector!==null&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{this.anchorElement===null||this.pendingPositioningUpdate||(r.intersectionService.requestPosition(this,this.handleIntersection),r.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&r.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,r.intersectionService.cancelRequestPosition(this,this.handleIntersection),this.anchorElement!==null&&r.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&r.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),this.resizeDetector!==null&&this.resizeDetector.disconnect()},this.getViewport=()=>typeof this.viewport!="string"||this.viewport===""?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=e=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(e)&&this.updateLayout())},this.applyIntersectionEntries=e=>{let t=e.find(n=>n.target===this),o=e.find(n=>n.target===this.anchorElement),i=e.find(n=>n.target===this.viewportElement);return t===void 0||i===void 0||o===void 0?!1:!this.regionVisible||this.forceUpdate||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0||this.isRectDifferent(this.anchorRect,o.boundingClientRect)||this.isRectDifferent(this.viewportRect,i.boundingClientRect)||this.isRectDifferent(this.regionRect,t.boundingClientRect)?(this.regionRect=t.boundingClientRect,this.anchorRect=o.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(i.boundingClientRect.x+document.documentElement.scrollLeft,i.boundingClientRect.y+document.documentElement.scrollTop,i.boundingClientRect.width,i.boundingClientRect.height):this.viewportRect=i.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0):!1},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(e,t)=>Math.abs(e.top-t.top)>this.updateThreshold||Math.abs(e.right-t.right)>this.updateThreshold||Math.abs(e.bottom-t.bottom)>this.updateThreshold||Math.abs(e.left-t.left)>this.updateThreshold,this.handleResize=e=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,this.anchorElement===null&&(this.anchorElement=this.getAnchor()),this.viewportElement===null&&(this.viewportElement=this.getViewport()),this.currentDirection=ui(this),this.startObservers())},this.updateLayout=()=>{let e,t;if(this.horizontalPositioningMode!=="uncontrolled"){let n=this.getPositioningOptions(this.horizontalInset);if(this.horizontalDefaultPosition==="center")t="center";else if(this.horizontalDefaultPosition!=="unset"){let b=this.horizontalDefaultPosition;if(b==="start"||b==="end"){let C=ui(this);if(C!==this.currentDirection){this.currentDirection=C,this.initialize();return}this.currentDirection===et.ltr?b=b==="start"?"left":"right":b=b==="start"?"right":"left"}switch(b){case"left":t=this.horizontalInset?"insetStart":"start";break;case"right":t=this.horizontalInset?"insetEnd":"end";break}}let s=this.horizontalThreshold!==void 0?this.horizontalThreshold:this.regionRect!==void 0?this.regionRect.width:0,a=this.anchorRect!==void 0?this.anchorRect.left:0,u=this.anchorRect!==void 0?this.anchorRect.right:0,h=this.anchorRect!==void 0?this.anchorRect.width:0,p=this.viewportRect!==void 0?this.viewportRect.left:0,f=this.viewportRect!==void 0?this.viewportRect.right:0;(t===void 0||this.horizontalPositioningMode!=="locktodefault"&&this.getAvailableSpace(t,a,u,h,p,f)this.getAvailableSpace(n[1],a,u,h,p,f)?n[0]:n[1])}if(this.verticalPositioningMode!=="uncontrolled"){let n=this.getPositioningOptions(this.verticalInset);if(this.verticalDefaultPosition==="center")e="center";else if(this.verticalDefaultPosition!=="unset")switch(this.verticalDefaultPosition){case"top":e=this.verticalInset?"insetStart":"start";break;case"bottom":e=this.verticalInset?"insetEnd":"end";break}let s=this.verticalThreshold!==void 0?this.verticalThreshold:this.regionRect!==void 0?this.regionRect.height:0,a=this.anchorRect!==void 0?this.anchorRect.top:0,u=this.anchorRect!==void 0?this.anchorRect.bottom:0,h=this.anchorRect!==void 0?this.anchorRect.height:0,p=this.viewportRect!==void 0?this.viewportRect.top:0,f=this.viewportRect!==void 0?this.viewportRect.bottom:0;(e===void 0||this.verticalPositioningMode!=="locktodefault"&&this.getAvailableSpace(e,a,u,h,p,f)this.getAvailableSpace(n[1],a,u,h,p,f)?n[0]:n[1])}let o=this.getNextRegionDimension(t,e),i=this.horizontalPosition!==t||this.verticalPosition!==e;if(this.setHorizontalPosition(t,o),this.setVerticalPosition(e,o),this.updateRegionStyle(),!this.initialLayoutComplete){this.initialLayoutComplete=!0,this.requestPositionUpdates();return}this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),i&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top",this.verticalPosition==="start"),this.classList.toggle("bottom",this.verticalPosition==="end"),this.classList.toggle("inset-top",this.verticalPosition==="insetStart"),this.classList.toggle("inset-bottom",this.verticalPosition==="insetEnd"),this.classList.toggle("vertical-center",this.verticalPosition==="center"),this.classList.toggle("left",this.horizontalPosition==="start"),this.classList.toggle("right",this.horizontalPosition==="end"),this.classList.toggle("inset-left",this.horizontalPosition==="insetStart"),this.classList.toggle("inset-right",this.horizontalPosition==="insetEnd"),this.classList.toggle("horizontal-center",this.horizontalPosition==="center")},this.setHorizontalPosition=(e,t)=>{if(e===void 0||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0)return;let o=0;switch(this.horizontalScaling){case"anchor":case"fill":o=this.horizontalViewportLock?this.viewportRect.width:t.width,this.regionWidth=`${o}px`;break;case"content":o=this.regionRect.width,this.regionWidth="unset";break}let i=0;switch(e){case"start":this.translateX=this.baseHorizontalOffset-o,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-o+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.leftthis.viewportRect.right)?this.translateX=this.translateX-(n-this.viewportRect.left):s>this.viewportRect.right&&!(n{if(e===void 0||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0)return;let o=0;switch(this.verticalScaling){case"anchor":case"fill":o=this.verticalViewportLock?this.viewportRect.height:t.height,this.regionHeight=`${o}px`;break;case"content":o=this.regionRect.height,this.regionHeight="unset";break}let i=0;switch(e){case"start":this.translateY=this.baseVerticalOffset-o,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-o+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.topthis.viewportRect.bottom)?this.translateY=this.translateY-(n-this.viewportRect.top):s>this.viewportRect.bottom&&!(ne?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(e,t,o,i,n,s)=>{let a=t-n,u=s-(t+i);switch(e){case"start":return a;case"insetStart":return a+i;case"insetEnd":return u+i;case"end":return u;case"center":return Math.min(a,u)*2+i}},this.getNextRegionDimension=(e,t)=>{let o={height:this.regionRect!==void 0?this.regionRect.height:0,width:this.regionRect!==void 0?this.regionRect.width:0};return e!==void 0&&this.horizontalScaling==="fill"?o.width=this.getAvailableSpace(e,this.anchorRect!==void 0?this.anchorRect.left:0,this.anchorRect!==void 0?this.anchorRect.right:0,this.anchorRect!==void 0?this.anchorRect.width:0,this.viewportRect!==void 0?this.viewportRect.left:0,this.viewportRect!==void 0?this.viewportRect.right:0):this.horizontalScaling==="anchor"&&(o.width=this.anchorRect!==void 0?this.anchorRect.width:0),t!==void 0&&this.verticalScaling==="fill"?o.height=this.getAvailableSpace(t,this.anchorRect!==void 0?this.anchorRect.top:0,this.anchorRect!==void 0?this.anchorRect.bottom:0,this.anchorRect!==void 0?this.anchorRect.height:0,this.viewportRect!==void 0?this.viewportRect.top:0,this.viewportRect!==void 0?this.viewportRect.bottom:0):this.verticalScaling==="anchor"&&(o.height=this.anchorRect!==void 0?this.anchorRect.height:0),o},this.startAutoUpdateEventListeners=()=>{window.addEventListener(Sb,this.update,{passive:!0}),window.addEventListener(_b,this.update,{passive:!0,capture:!0}),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(Sb,this.update),window.removeEventListener(_b,this.update),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(e,t){this.$fastController.isConnected&&this.initialLayoutComplete&&(e==="auto"&&this.stopAutoUpdateEventListeners(),t==="auto"&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),this.autoUpdateMode==="auto"&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),this.autoUpdateMode==="auto"&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){this.resizeDetector!==null&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),this.anchorElement===null&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&this.pendingReset===!1&&(this.setInitialState(),Y.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}};Me.intersectionService=new dm;w([k],Me.prototype,"anchor",void 0);w([k],Me.prototype,"viewport",void 0);w([k({attribute:"horizontal-positioning-mode"})],Me.prototype,"horizontalPositioningMode",void 0);w([k({attribute:"horizontal-default-position"})],Me.prototype,"horizontalDefaultPosition",void 0);w([k({attribute:"horizontal-viewport-lock",mode:"boolean"})],Me.prototype,"horizontalViewportLock",void 0);w([k({attribute:"horizontal-inset",mode:"boolean"})],Me.prototype,"horizontalInset",void 0);w([k({attribute:"horizontal-threshold"})],Me.prototype,"horizontalThreshold",void 0);w([k({attribute:"horizontal-scaling"})],Me.prototype,"horizontalScaling",void 0);w([k({attribute:"vertical-positioning-mode"})],Me.prototype,"verticalPositioningMode",void 0);w([k({attribute:"vertical-default-position"})],Me.prototype,"verticalDefaultPosition",void 0);w([k({attribute:"vertical-viewport-lock",mode:"boolean"})],Me.prototype,"verticalViewportLock",void 0);w([k({attribute:"vertical-inset",mode:"boolean"})],Me.prototype,"verticalInset",void 0);w([k({attribute:"vertical-threshold"})],Me.prototype,"verticalThreshold",void 0);w([k({attribute:"vertical-scaling"})],Me.prototype,"verticalScaling",void 0);w([k({attribute:"fixed-placement",mode:"boolean"})],Me.prototype,"fixedPlacement",void 0);w([k({attribute:"auto-update-mode"})],Me.prototype,"autoUpdateMode",void 0);w([I],Me.prototype,"anchorElement",void 0);w([I],Me.prototype,"viewportElement",void 0);w([I],Me.prototype,"initialLayoutComplete",void 0)});var Ab,Rb,Pb,$b,AE,Ob,RE,PE=y(()=>{l();c();d();Ab={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},Rb=Object.assign(Object.assign({},Ab),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),Pb=Object.assign(Object.assign({},Ab),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),$b=Object.assign(Object.assign({},Ab),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),AE=Object.assign(Object.assign({},Rb),{verticalScaling:"fill"}),Ob=Object.assign(Object.assign({},Pb),{verticalScaling:"fill"}),RE=Object.assign(Object.assign({},$b),{verticalScaling:"fill"})});var Mb=y(()=>{l();c();d();EE();qu();PE()});var $E=y(()=>{l();c();d();A()});var zc,OE=y(()=>{l();c();d();Pe();A();He();zc=class extends G{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}};w([k],zc.prototype,"fill",void 0);w([k],zc.prototype,"color",void 0);w([k],zc.prototype,"link",void 0);w([k],zc.prototype,"shape",void 0)});var ME=y(()=>{l();c();d();$E();OE()});var DE,FE=y(()=>{l();c();d();A();DE=(r,e)=>O` +`});var ui,ga=y(()=>{l();c();d();we();ui=r=>{let e=r.closest("[dir]");return e!==null&&e.dir==="rtl"?et.rtl:et.ltr}});var dm,IE=y(()=>{l();c();d();A();dm=class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(e,t)=>{var o;if(this.intersectionDetector!==null){if(this.observedElements.has(e)){(o=this.observedElements.get(e))===null||o===void 0||o.push(t);return}this.observedElements.set(e,[t]),this.intersectionDetector.observe(e)}},this.cancelRequestPosition=(e,t)=>{let o=this.observedElements.get(e);if(o!==void 0){let i=o.indexOf(t);i!==-1&&o.splice(i,1)}},this.initializeIntersectionDetector=()=>{tn.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=e=>{if(this.intersectionDetector===null)return;let t=[],o=[];e.forEach(i=>{var n;(n=this.intersectionDetector)===null||n===void 0||n.unobserve(i.target);let s=this.observedElements.get(i.target);s!==void 0&&(s.forEach(a=>{let u=t.indexOf(a);u===-1&&(u=t.length,t.push(a),o.push([])),o[u].push(i)}),this.observedElements.delete(i.target))}),t.forEach((i,n)=>{i(o[n])})},this.initializeIntersectionDetector()}}});var Me,qu=y(()=>{l();c();d();Pe();A();we();He();ga();IE();Me=class r extends G{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=et.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),this.anchorElement!==null&&(this.requestPositionUpdates(),this.resizeDetector!==null&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{this.anchorElement===null||this.pendingPositioningUpdate||(r.intersectionService.requestPosition(this,this.handleIntersection),r.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&r.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,r.intersectionService.cancelRequestPosition(this,this.handleIntersection),this.anchorElement!==null&&r.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&r.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),this.resizeDetector!==null&&this.resizeDetector.disconnect()},this.getViewport=()=>typeof this.viewport!="string"||this.viewport===""?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=e=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(e)&&this.updateLayout())},this.applyIntersectionEntries=e=>{let t=e.find(n=>n.target===this),o=e.find(n=>n.target===this.anchorElement),i=e.find(n=>n.target===this.viewportElement);return t===void 0||i===void 0||o===void 0?!1:!this.regionVisible||this.forceUpdate||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0||this.isRectDifferent(this.anchorRect,o.boundingClientRect)||this.isRectDifferent(this.viewportRect,i.boundingClientRect)||this.isRectDifferent(this.regionRect,t.boundingClientRect)?(this.regionRect=t.boundingClientRect,this.anchorRect=o.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(i.boundingClientRect.x+document.documentElement.scrollLeft,i.boundingClientRect.y+document.documentElement.scrollTop,i.boundingClientRect.width,i.boundingClientRect.height):this.viewportRect=i.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0):!1},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(e,t)=>Math.abs(e.top-t.top)>this.updateThreshold||Math.abs(e.right-t.right)>this.updateThreshold||Math.abs(e.bottom-t.bottom)>this.updateThreshold||Math.abs(e.left-t.left)>this.updateThreshold,this.handleResize=e=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,this.anchorElement===null&&(this.anchorElement=this.getAnchor()),this.viewportElement===null&&(this.viewportElement=this.getViewport()),this.currentDirection=ui(this),this.startObservers())},this.updateLayout=()=>{let e,t;if(this.horizontalPositioningMode!=="uncontrolled"){let n=this.getPositioningOptions(this.horizontalInset);if(this.horizontalDefaultPosition==="center")t="center";else if(this.horizontalDefaultPosition!=="unset"){let b=this.horizontalDefaultPosition;if(b==="start"||b==="end"){let C=ui(this);if(C!==this.currentDirection){this.currentDirection=C,this.initialize();return}this.currentDirection===et.ltr?b=b==="start"?"left":"right":b=b==="start"?"right":"left"}switch(b){case"left":t=this.horizontalInset?"insetStart":"start";break;case"right":t=this.horizontalInset?"insetEnd":"end";break}}let s=this.horizontalThreshold!==void 0?this.horizontalThreshold:this.regionRect!==void 0?this.regionRect.width:0,a=this.anchorRect!==void 0?this.anchorRect.left:0,u=this.anchorRect!==void 0?this.anchorRect.right:0,h=this.anchorRect!==void 0?this.anchorRect.width:0,p=this.viewportRect!==void 0?this.viewportRect.left:0,f=this.viewportRect!==void 0?this.viewportRect.right:0;(t===void 0||this.horizontalPositioningMode!=="locktodefault"&&this.getAvailableSpace(t,a,u,h,p,f)this.getAvailableSpace(n[1],a,u,h,p,f)?n[0]:n[1])}if(this.verticalPositioningMode!=="uncontrolled"){let n=this.getPositioningOptions(this.verticalInset);if(this.verticalDefaultPosition==="center")e="center";else if(this.verticalDefaultPosition!=="unset")switch(this.verticalDefaultPosition){case"top":e=this.verticalInset?"insetStart":"start";break;case"bottom":e=this.verticalInset?"insetEnd":"end";break}let s=this.verticalThreshold!==void 0?this.verticalThreshold:this.regionRect!==void 0?this.regionRect.height:0,a=this.anchorRect!==void 0?this.anchorRect.top:0,u=this.anchorRect!==void 0?this.anchorRect.bottom:0,h=this.anchorRect!==void 0?this.anchorRect.height:0,p=this.viewportRect!==void 0?this.viewportRect.top:0,f=this.viewportRect!==void 0?this.viewportRect.bottom:0;(e===void 0||this.verticalPositioningMode!=="locktodefault"&&this.getAvailableSpace(e,a,u,h,p,f)this.getAvailableSpace(n[1],a,u,h,p,f)?n[0]:n[1])}let o=this.getNextRegionDimension(t,e),i=this.horizontalPosition!==t||this.verticalPosition!==e;if(this.setHorizontalPosition(t,o),this.setVerticalPosition(e,o),this.updateRegionStyle(),!this.initialLayoutComplete){this.initialLayoutComplete=!0,this.requestPositionUpdates();return}this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),i&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top",this.verticalPosition==="start"),this.classList.toggle("bottom",this.verticalPosition==="end"),this.classList.toggle("inset-top",this.verticalPosition==="insetStart"),this.classList.toggle("inset-bottom",this.verticalPosition==="insetEnd"),this.classList.toggle("vertical-center",this.verticalPosition==="center"),this.classList.toggle("left",this.horizontalPosition==="start"),this.classList.toggle("right",this.horizontalPosition==="end"),this.classList.toggle("inset-left",this.horizontalPosition==="insetStart"),this.classList.toggle("inset-right",this.horizontalPosition==="insetEnd"),this.classList.toggle("horizontal-center",this.horizontalPosition==="center")},this.setHorizontalPosition=(e,t)=>{if(e===void 0||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0)return;let o=0;switch(this.horizontalScaling){case"anchor":case"fill":o=this.horizontalViewportLock?this.viewportRect.width:t.width,this.regionWidth=`${o}px`;break;case"content":o=this.regionRect.width,this.regionWidth="unset";break}let i=0;switch(e){case"start":this.translateX=this.baseHorizontalOffset-o,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-o+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.leftthis.viewportRect.right)?this.translateX=this.translateX-(n-this.viewportRect.left):s>this.viewportRect.right&&!(n{if(e===void 0||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0)return;let o=0;switch(this.verticalScaling){case"anchor":case"fill":o=this.verticalViewportLock?this.viewportRect.height:t.height,this.regionHeight=`${o}px`;break;case"content":o=this.regionRect.height,this.regionHeight="unset";break}let i=0;switch(e){case"start":this.translateY=this.baseVerticalOffset-o,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-o+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.topthis.viewportRect.bottom)?this.translateY=this.translateY-(n-this.viewportRect.top):s>this.viewportRect.bottom&&!(ne?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(e,t,o,i,n,s)=>{let a=t-n,u=s-(t+i);switch(e){case"start":return a;case"insetStart":return a+i;case"insetEnd":return u+i;case"end":return u;case"center":return Math.min(a,u)*2+i}},this.getNextRegionDimension=(e,t)=>{let o={height:this.regionRect!==void 0?this.regionRect.height:0,width:this.regionRect!==void 0?this.regionRect.width:0};return e!==void 0&&this.horizontalScaling==="fill"?o.width=this.getAvailableSpace(e,this.anchorRect!==void 0?this.anchorRect.left:0,this.anchorRect!==void 0?this.anchorRect.right:0,this.anchorRect!==void 0?this.anchorRect.width:0,this.viewportRect!==void 0?this.viewportRect.left:0,this.viewportRect!==void 0?this.viewportRect.right:0):this.horizontalScaling==="anchor"&&(o.width=this.anchorRect!==void 0?this.anchorRect.width:0),t!==void 0&&this.verticalScaling==="fill"?o.height=this.getAvailableSpace(t,this.anchorRect!==void 0?this.anchorRect.top:0,this.anchorRect!==void 0?this.anchorRect.bottom:0,this.anchorRect!==void 0?this.anchorRect.height:0,this.viewportRect!==void 0?this.viewportRect.top:0,this.viewportRect!==void 0?this.viewportRect.bottom:0):this.verticalScaling==="anchor"&&(o.height=this.anchorRect!==void 0?this.anchorRect.height:0),o},this.startAutoUpdateEventListeners=()=>{window.addEventListener(Sb,this.update,{passive:!0}),window.addEventListener(_b,this.update,{passive:!0,capture:!0}),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(Sb,this.update),window.removeEventListener(_b,this.update),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(e,t){this.$fastController.isConnected&&this.initialLayoutComplete&&(e==="auto"&&this.stopAutoUpdateEventListeners(),t==="auto"&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),this.autoUpdateMode==="auto"&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),this.autoUpdateMode==="auto"&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){this.resizeDetector!==null&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),this.anchorElement===null&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&this.pendingReset===!1&&(this.setInitialState(),Y.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}};Me.intersectionService=new dm;w([k],Me.prototype,"anchor",void 0);w([k],Me.prototype,"viewport",void 0);w([k({attribute:"horizontal-positioning-mode"})],Me.prototype,"horizontalPositioningMode",void 0);w([k({attribute:"horizontal-default-position"})],Me.prototype,"horizontalDefaultPosition",void 0);w([k({attribute:"horizontal-viewport-lock",mode:"boolean"})],Me.prototype,"horizontalViewportLock",void 0);w([k({attribute:"horizontal-inset",mode:"boolean"})],Me.prototype,"horizontalInset",void 0);w([k({attribute:"horizontal-threshold"})],Me.prototype,"horizontalThreshold",void 0);w([k({attribute:"horizontal-scaling"})],Me.prototype,"horizontalScaling",void 0);w([k({attribute:"vertical-positioning-mode"})],Me.prototype,"verticalPositioningMode",void 0);w([k({attribute:"vertical-default-position"})],Me.prototype,"verticalDefaultPosition",void 0);w([k({attribute:"vertical-viewport-lock",mode:"boolean"})],Me.prototype,"verticalViewportLock",void 0);w([k({attribute:"vertical-inset",mode:"boolean"})],Me.prototype,"verticalInset",void 0);w([k({attribute:"vertical-threshold"})],Me.prototype,"verticalThreshold",void 0);w([k({attribute:"vertical-scaling"})],Me.prototype,"verticalScaling",void 0);w([k({attribute:"fixed-placement",mode:"boolean"})],Me.prototype,"fixedPlacement",void 0);w([k({attribute:"auto-update-mode"})],Me.prototype,"autoUpdateMode",void 0);w([I],Me.prototype,"anchorElement",void 0);w([I],Me.prototype,"viewportElement",void 0);w([I],Me.prototype,"initialLayoutComplete",void 0)});var Ab,Rb,Pb,$b,AE,Ob,RE,PE=y(()=>{l();c();d();Ab={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},Rb=Object.assign(Object.assign({},Ab),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),Pb=Object.assign(Object.assign({},Ab),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),$b=Object.assign(Object.assign({},Ab),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),AE=Object.assign(Object.assign({},Rb),{verticalScaling:"fill"}),Ob=Object.assign(Object.assign({},Pb),{verticalScaling:"fill"}),RE=Object.assign(Object.assign({},$b),{verticalScaling:"fill"})});var Mb=y(()=>{l();c();d();EE();qu();PE()});var $E=y(()=>{l();c();d();A()});var zc,OE=y(()=>{l();c();d();Pe();A();He();zc=class extends G{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}};w([k],zc.prototype,"fill",void 0);w([k],zc.prototype,"color",void 0);w([k],zc.prototype,"link",void 0);w([k],zc.prototype,"shape",void 0)});var ME=y(()=>{l();c();d();$E();OE()});var FE,DE=y(()=>{l();c();d();A();FE=(r,e)=>O` -`});var va,LE=y(()=>{l();c();d();Pe();A();He();va=class extends G{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;let e=`background-color: var(--badge-fill-${this.fill});`,t=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?e:this.color&&!this.fill?t:`${t} ${e}`}}};w([k({attribute:"fill"})],va.prototype,"fill",void 0);w([k({attribute:"color"})],va.prototype,"color",void 0);w([k({mode:"boolean"})],va.prototype,"circular",void 0)});var NE=y(()=>{l();c();d();FE();LE()});var HE,UE=y(()=>{l();c();d();A();Eb();$t();HE=(r,e)=>O` +`});var va,LE=y(()=>{l();c();d();Pe();A();He();va=class extends G{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;let e=`background-color: var(--badge-fill-${this.fill});`,t=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?e:this.color&&!this.fill?t:`${t} ${e}`}}};w([k({attribute:"fill"})],va.prototype,"fill",void 0);w([k({attribute:"color"})],va.prototype,"color",void 0);w([k({mode:"boolean"})],va.prototype,"circular",void 0)});var NE=y(()=>{l();c();d();DE();LE()});var HE,UE=y(()=>{l();c();d();A();Eb();$t();HE=(r,e)=>O`
${Ze(t=>t.href&&t.href.length>0,O` ${cm(r,e)} @@ -182,15 +182,15 @@ try{ `)}
-`});var ks,Db=y(()=>{l();c();d();Pe();A();Ib();Il();zr();ks=class extends no{constructor(){super(...arguments),this.separator=!0}};w([I],ks.prototype,"separator",void 0);We(ks,_t,Al)});var BE=y(()=>{l();c();d();UE();Db()});var zE,VE=y(()=>{l();c();d();A();zE=(r,e)=>O` +`});var ks,Fb=y(()=>{l();c();d();Pe();A();Ib();Il();zr();ks=class extends no{constructor(){super(...arguments),this.separator=!0}};w([I],ks.prototype,"separator",void 0);We(ks,_t,Al)});var BE=y(()=>{l();c();d();UE();Fb()});var zE,VE=y(()=>{l();c();d();A();zE=(r,e)=>O` -`});var Gu,qE=y(()=>{l();c();d();Pe();A();Db();He();Gu=class extends G{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(this.slottedBreadcrumbItems===void 0||this.slottedBreadcrumbItems.length===0)return;let e=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach(t=>{let o=t===e;this.setItemSeparator(t,o),this.setAriaCurrent(t,o)})}}setItemSeparator(e,t){e instanceof ks&&(e.separator=!t)}findChildWithHref(e){var t,o;return e.childElementCount>0?e.querySelector("a[href]"):!((t=e.shadowRoot)===null||t===void 0)&&t.childElementCount?(o=e.shadowRoot)===null||o===void 0?void 0:o.querySelector("a[href]"):null}setAriaCurrent(e,t){let o=this.findChildWithHref(e);o===null&&e.hasAttribute("href")&&e instanceof ks?t?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current"):o!==null&&(t?o.setAttribute("aria-current","page"):o.removeAttribute("aria-current"))}};w([I],Gu.prototype,"slottedBreadcrumbItems",void 0)});var GE=y(()=>{l();c();d();VE();qE()});var jE,KE=y(()=>{l();c();d();A();$t();jE=(r,e)=>O` +`});var Gu,qE=y(()=>{l();c();d();Pe();A();Fb();He();Gu=class extends G{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(this.slottedBreadcrumbItems===void 0||this.slottedBreadcrumbItems.length===0)return;let e=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach(t=>{let o=t===e;this.setItemSeparator(t,o),this.setAriaCurrent(t,o)})}}setItemSeparator(e,t){e instanceof ks&&(e.separator=!t)}findChildWithHref(e){var t,o;return e.childElementCount>0?e.querySelector("a[href]"):!((t=e.shadowRoot)===null||t===void 0)&&t.childElementCount?(o=e.shadowRoot)===null||o===void 0?void 0:o.querySelector("a[href]"):null}setAriaCurrent(e,t){let o=this.findChildWithHref(e);o===null&&e.hasAttribute("href")&&e instanceof ks?t?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current"):o!==null&&(t?o.setAttribute("aria-current","page"):o.removeAttribute("aria-current"))}};w([I],Gu.prototype,"slottedBreadcrumbItems",void 0)});var GE=y(()=>{l();c();d();VE();qE()});var jE,KE=y(()=>{l();c();d();A();$t();jE=(r,e)=>O` -`});function Ar(r){let e=class extends r{constructor(...t){super(...t),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 YE}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){let t=this.proxy.labels,o=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?o.concat(Array.from(t)):o;return Object.freeze(i)}else return wi}valueChanged(t,o){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(t,o){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,o){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),Y.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,o){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,o){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),Y.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!YE)return null;let t=ZE.get(this);return t||(t=this.attachInternals(),ZE.set(this,t)),t}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(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,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(t,o,i){this.elementInternals?this.elementInternals.setValidity(t,o,i):typeof o=="string"&&this.proxy.setCustomValidity(o)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(o=>this.proxy.addEventListener(o,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",WE),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",WE)),(t=this.shadowRoot)===null||t===void 0||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),(t=this.shadowRoot)===null||t===void 0||t.removeChild(this.proxySlot)}validate(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,o){this.elementInternals&&this.elementInternals.setFormValue(t,o||t)}_keypressHandler(t){switch(t.key){case sr:if(this.form instanceof HTMLFormElement){let o=this.form.querySelector("[type=submit]");o?.click()}break}}stopPropagation(t){t.stopPropagation()}};return k({mode:"boolean"})(e.prototype,"disabled"),k({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),k({attribute:"current-value"})(e.prototype,"currentValue"),k(e.prototype,"name"),k({mode:"boolean"})(e.prototype,"required"),I(e.prototype,"value"),e}function Vc(r){class e extends Ar(r){}class t extends e{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,n){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,n){this.checked=this.currentChecked}updateForm(){let i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return k({attribute:"checked",mode:"boolean"})(t.prototype,"checkedAttribute"),k({attribute:"current-checked",converter:ws})(t.prototype,"currentChecked"),I(t.prototype,"defaultChecked"),I(t.prototype,"checked"),t}var WE,QE,YE,ZE,Go=y(()=>{l();c();d();A();we();WE="form-associated-proxy",QE="ElementInternals",YE=QE in window&&"setFormValue"in window[QE].prototype,ZE=new WeakMap});var Fb,um,JE=y(()=>{l();c();d();Go();He();Fb=class extends G{},um=class extends Ar(Fb){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var so,qc,XE=y(()=>{l();c();d();Pe();A();Il();zr();JE();so=class extends um{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&((t=this.defaultSlottedContent)===null||t===void 0?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;let e=this.proxy.isConnected;e||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;(e=this.form)===null||e===void 0||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((e=this.$fastController.definition.shadowOptions)===null||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),t==="submit"&&this.addEventListener("click",this.handleSubmission),e==="submit"&&this.removeEventListener("click",this.handleSubmission),t==="reset"&&this.addEventListener("click",this.handleFormReset),e==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();let t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);t&&t.forEach(o=>{o.addEventListener("click",this.handleClick)})}disconnectedCallback(){var e;super.disconnectedCallback();let t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);t&&t.forEach(o=>{o.removeEventListener("click",this.handleClick)})}};w([k({mode:"boolean"})],so.prototype,"autofocus",void 0);w([k({attribute:"form"})],so.prototype,"formId",void 0);w([k],so.prototype,"formaction",void 0);w([k],so.prototype,"formenctype",void 0);w([k],so.prototype,"formmethod",void 0);w([k({mode:"boolean"})],so.prototype,"formnovalidate",void 0);w([k],so.prototype,"formtarget",void 0);w([k],so.prototype,"type",void 0);w([I],so.prototype,"defaultSlottedContent",void 0);qc=class{};w([k({attribute:"aria-expanded"})],qc.prototype,"ariaExpanded",void 0);w([k({attribute:"aria-pressed"})],qc.prototype,"ariaPressed",void 0);We(qc,dt);We(so,_t,qc)});var e2=y(()=>{l();c();d();KE();XE()});var hm,Lb=y(()=>{l();c();d();hm=class{constructor(e){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,e)for(let t in e){let o=e[t];t==="date"?this.date=this.getDateObject(o):this[t]=o}}getDateObject(e){if(typeof e=="string"){let t=e.split(/[/-]/);return t.length<3?new Date:new Date(parseInt(t[2],10),parseInt(t[0],10)-1,parseInt(t[1],10))}else if("day"in e&&"month"in e&&"year"in e){let{day:t,month:o,year:i}=e;return new Date(i,o-1,t)}return e}getDate(e=this.date,t={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},o=this.locale){let i=this.getDateObject(e);if(!i.getTime())return"";let n=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},t);return new Intl.DateTimeFormat(o,n).format(i)}getDay(e=this.date.getDate(),t=this.dayFormat,o=this.locale){return this.getDate({month:1,day:e,year:2020},{day:t},o)}getMonth(e=this.date.getMonth()+1,t=this.monthFormat,o=this.locale){return this.getDate({month:e,day:2,year:2020},{month:t},o)}getYear(e=this.date.getFullYear(),t=this.yearFormat,o=this.locale){return this.getDate({month:2,day:2,year:e},{year:t},o)}getWeekday(e=0,t=this.weekdayFormat,o=this.locale){let i=`1-${e+1}-2017`;return this.getDate(i,{weekday:t},o)}getWeekdays(e=this.weekdayFormat,t=this.locale){return Array(7).fill(null).map((o,i)=>this.getWeekday(i,e,t))}}});var Ao,t2=y(()=>{l();c();d();Pe();A();we();He();Lb();Ao=class extends G{constructor(){super(...arguments),this.dateFormatter=new hm,this.readonly=!1,this.locale="en-US",this.month=new Date().getMonth()+1,this.year=new Date().getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(e=this.month,t=this.year){let o=u=>new Date(u.getFullYear(),u.getMonth(),1).getDay(),i=u=>{let h=new Date(u.getFullYear(),u.getMonth()+1,1);return new Date(h.getTime()-this.oneDayInMs).getDate()},n=new Date(t,e-1),s=new Date(t,e),a=new Date(t,e-2);return{length:i(n),month:e,start:o(n),year:t,previous:{length:i(a),month:a.getMonth()+1,start:o(a),year:a.getFullYear()},next:{length:i(s),month:s.getMonth()+1,start:o(s),year:s.getFullYear()}}}getDays(e=this.getMonthInfo(),t=this.minWeeks){t=t>10?10:t;let{start:o,length:i,previous:n,next:s}=e,a=[],u=1-o;for(;ui?s:e,f=u<1?n.length+u:u>i?u-i:u,b=`${h}-${f}-${p}`,C=this.dateInString(b,this.disabledDates),S=this.dateInString(b,this.selectedDates),R={day:f,month:h,year:p,disabled:C,selected:S},H=a[a.length-1];a.length===0||H.length%7===0?a.push([R]):H.push(R),u++}return a}dateInString(e,t){let o=t.split(",").map(i=>i.trim());return e=typeof e=="string"?e:`${e.getMonth()+1}-${e.getDate()}-${e.getFullYear()}`,o.some(i=>i===e)}getDayClassNames(e,t){let{day:o,month:i,year:n,disabled:s,selected:a}=e,u=t===`${i}-${o}-${n}`,h=this.month!==i;return["day",u&&"today",h&&"inactive",s&&"disabled",a&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){let e=this.dateFormatter.getWeekdays().map(t=>({text:t}));if(this.weekdayFormat!=="long"){let t=this.dateFormatter.getWeekdays("long");e.forEach((o,i)=>{o.abbr=t[i]})}return e}handleDateSelect(e,t){e.preventDefault,this.$emit("dateselected",t)}handleKeydown(e,t){return e.key===sr&&this.handleDateSelect(e,t),!0}};w([k({mode:"boolean"})],Ao.prototype,"readonly",void 0);w([k],Ao.prototype,"locale",void 0);w([k({converter:se})],Ao.prototype,"month",void 0);w([k({converter:se})],Ao.prototype,"year",void 0);w([k({attribute:"day-format",mode:"fromView"})],Ao.prototype,"dayFormat",void 0);w([k({attribute:"weekday-format",mode:"fromView"})],Ao.prototype,"weekdayFormat",void 0);w([k({attribute:"month-format",mode:"fromView"})],Ao.prototype,"monthFormat",void 0);w([k({attribute:"year-format",mode:"fromView"})],Ao.prototype,"yearFormat",void 0);w([k({attribute:"min-weeks",converter:se})],Ao.prototype,"minWeeks",void 0);w([k({attribute:"disabled-dates"})],Ao.prototype,"disabledDates",void 0);w([k({attribute:"selected-dates"})],Ao.prototype,"selectedDates",void 0)});var ju,Ss,Rl,pm=y(()=>{l();c();d();ju={none:"none",default:"default",sticky:"sticky"},Ss={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},Rl={default:"default",header:"header",stickyHeader:"sticky-header"}});var ar,Nb=y(()=>{l();c();d();Pe();A();we();He();pm();ar=class extends G{constructor(){super(...arguments),this.rowType=Rl.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new On(e=>e.columnDefinitions,e=>e.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(Cs,this.handleFocusout),this.addEventListener(xs,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(Cs,this.handleFocusout),this.removeEventListener(xs,this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case yo:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case bo:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case xr:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case kr:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===Rl.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===Rl.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};w([k({attribute:"grid-template-columns"})],ar.prototype,"gridTemplateColumns",void 0);w([k({attribute:"row-type"})],ar.prototype,"rowType",void 0);w([I],ar.prototype,"rowData",void 0);w([I],ar.prototype,"columnDefinitions",void 0);w([I],ar.prototype,"cellItemTemplate",void 0);w([I],ar.prototype,"headerCellItemTemplate",void 0);w([I],ar.prototype,"rowIndex",void 0);w([I],ar.prototype,"isActiveRow",void 0);w([I],ar.prototype,"activeCellItemTemplate",void 0);w([I],ar.prototype,"defaultCellItemTemplate",void 0);w([I],ar.prototype,"defaultHeaderCellItemTemplate",void 0);w([I],ar.prototype,"cellElements",void 0)});function vM(r){let e=r.tagFor(ar);return O` +`});function Ar(r){let e=class extends r{constructor(...t){super(...t),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 YE}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){let t=this.proxy.labels,o=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?o.concat(Array.from(t)):o;return Object.freeze(i)}else return wi}valueChanged(t,o){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(t,o){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,o){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),Y.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,o){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,o){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),Y.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!YE)return null;let t=ZE.get(this);return t||(t=this.attachInternals(),ZE.set(this,t)),t}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(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,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(t,o,i){this.elementInternals?this.elementInternals.setValidity(t,o,i):typeof o=="string"&&this.proxy.setCustomValidity(o)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(o=>this.proxy.addEventListener(o,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",WE),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",WE)),(t=this.shadowRoot)===null||t===void 0||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),(t=this.shadowRoot)===null||t===void 0||t.removeChild(this.proxySlot)}validate(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,o){this.elementInternals&&this.elementInternals.setFormValue(t,o||t)}_keypressHandler(t){switch(t.key){case sr:if(this.form instanceof HTMLFormElement){let o=this.form.querySelector("[type=submit]");o?.click()}break}}stopPropagation(t){t.stopPropagation()}};return k({mode:"boolean"})(e.prototype,"disabled"),k({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),k({attribute:"current-value"})(e.prototype,"currentValue"),k(e.prototype,"name"),k({mode:"boolean"})(e.prototype,"required"),I(e.prototype,"value"),e}function Vc(r){class e extends Ar(r){}class t extends e{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,n){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,n){this.checked=this.currentChecked}updateForm(){let i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return k({attribute:"checked",mode:"boolean"})(t.prototype,"checkedAttribute"),k({attribute:"current-checked",converter:ws})(t.prototype,"currentChecked"),I(t.prototype,"defaultChecked"),I(t.prototype,"checked"),t}var WE,QE,YE,ZE,Go=y(()=>{l();c();d();A();we();WE="form-associated-proxy",QE="ElementInternals",YE=QE in window&&"setFormValue"in window[QE].prototype,ZE=new WeakMap});var Db,um,JE=y(()=>{l();c();d();Go();He();Db=class extends G{},um=class extends Ar(Db){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var so,qc,XE=y(()=>{l();c();d();Pe();A();Il();zr();JE();so=class extends um{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&((t=this.defaultSlottedContent)===null||t===void 0?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;let e=this.proxy.isConnected;e||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;(e=this.form)===null||e===void 0||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((e=this.$fastController.definition.shadowOptions)===null||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),t==="submit"&&this.addEventListener("click",this.handleSubmission),e==="submit"&&this.removeEventListener("click",this.handleSubmission),t==="reset"&&this.addEventListener("click",this.handleFormReset),e==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();let t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);t&&t.forEach(o=>{o.addEventListener("click",this.handleClick)})}disconnectedCallback(){var e;super.disconnectedCallback();let t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);t&&t.forEach(o=>{o.removeEventListener("click",this.handleClick)})}};w([k({mode:"boolean"})],so.prototype,"autofocus",void 0);w([k({attribute:"form"})],so.prototype,"formId",void 0);w([k],so.prototype,"formaction",void 0);w([k],so.prototype,"formenctype",void 0);w([k],so.prototype,"formmethod",void 0);w([k({mode:"boolean"})],so.prototype,"formnovalidate",void 0);w([k],so.prototype,"formtarget",void 0);w([k],so.prototype,"type",void 0);w([I],so.prototype,"defaultSlottedContent",void 0);qc=class{};w([k({attribute:"aria-expanded"})],qc.prototype,"ariaExpanded",void 0);w([k({attribute:"aria-pressed"})],qc.prototype,"ariaPressed",void 0);We(qc,dt);We(so,_t,qc)});var e2=y(()=>{l();c();d();KE();XE()});var hm,Lb=y(()=>{l();c();d();hm=class{constructor(e){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,e)for(let t in e){let o=e[t];t==="date"?this.date=this.getDateObject(o):this[t]=o}}getDateObject(e){if(typeof e=="string"){let t=e.split(/[/-]/);return t.length<3?new Date:new Date(parseInt(t[2],10),parseInt(t[0],10)-1,parseInt(t[1],10))}else if("day"in e&&"month"in e&&"year"in e){let{day:t,month:o,year:i}=e;return new Date(i,o-1,t)}return e}getDate(e=this.date,t={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},o=this.locale){let i=this.getDateObject(e);if(!i.getTime())return"";let n=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},t);return new Intl.DateTimeFormat(o,n).format(i)}getDay(e=this.date.getDate(),t=this.dayFormat,o=this.locale){return this.getDate({month:1,day:e,year:2020},{day:t},o)}getMonth(e=this.date.getMonth()+1,t=this.monthFormat,o=this.locale){return this.getDate({month:e,day:2,year:2020},{month:t},o)}getYear(e=this.date.getFullYear(),t=this.yearFormat,o=this.locale){return this.getDate({month:2,day:2,year:e},{year:t},o)}getWeekday(e=0,t=this.weekdayFormat,o=this.locale){let i=`1-${e+1}-2017`;return this.getDate(i,{weekday:t},o)}getWeekdays(e=this.weekdayFormat,t=this.locale){return Array(7).fill(null).map((o,i)=>this.getWeekday(i,e,t))}}});var Ao,t2=y(()=>{l();c();d();Pe();A();we();He();Lb();Ao=class extends G{constructor(){super(...arguments),this.dateFormatter=new hm,this.readonly=!1,this.locale="en-US",this.month=new Date().getMonth()+1,this.year=new Date().getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(e=this.month,t=this.year){let o=u=>new Date(u.getFullYear(),u.getMonth(),1).getDay(),i=u=>{let h=new Date(u.getFullYear(),u.getMonth()+1,1);return new Date(h.getTime()-this.oneDayInMs).getDate()},n=new Date(t,e-1),s=new Date(t,e),a=new Date(t,e-2);return{length:i(n),month:e,start:o(n),year:t,previous:{length:i(a),month:a.getMonth()+1,start:o(a),year:a.getFullYear()},next:{length:i(s),month:s.getMonth()+1,start:o(s),year:s.getFullYear()}}}getDays(e=this.getMonthInfo(),t=this.minWeeks){t=t>10?10:t;let{start:o,length:i,previous:n,next:s}=e,a=[],u=1-o;for(;ui?s:e,f=u<1?n.length+u:u>i?u-i:u,b=`${h}-${f}-${p}`,C=this.dateInString(b,this.disabledDates),S=this.dateInString(b,this.selectedDates),R={day:f,month:h,year:p,disabled:C,selected:S},H=a[a.length-1];a.length===0||H.length%7===0?a.push([R]):H.push(R),u++}return a}dateInString(e,t){let o=t.split(",").map(i=>i.trim());return e=typeof e=="string"?e:`${e.getMonth()+1}-${e.getDate()}-${e.getFullYear()}`,o.some(i=>i===e)}getDayClassNames(e,t){let{day:o,month:i,year:n,disabled:s,selected:a}=e,u=t===`${i}-${o}-${n}`,h=this.month!==i;return["day",u&&"today",h&&"inactive",s&&"disabled",a&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){let e=this.dateFormatter.getWeekdays().map(t=>({text:t}));if(this.weekdayFormat!=="long"){let t=this.dateFormatter.getWeekdays("long");e.forEach((o,i)=>{o.abbr=t[i]})}return e}handleDateSelect(e,t){e.preventDefault,this.$emit("dateselected",t)}handleKeydown(e,t){return e.key===sr&&this.handleDateSelect(e,t),!0}};w([k({mode:"boolean"})],Ao.prototype,"readonly",void 0);w([k],Ao.prototype,"locale",void 0);w([k({converter:se})],Ao.prototype,"month",void 0);w([k({converter:se})],Ao.prototype,"year",void 0);w([k({attribute:"day-format",mode:"fromView"})],Ao.prototype,"dayFormat",void 0);w([k({attribute:"weekday-format",mode:"fromView"})],Ao.prototype,"weekdayFormat",void 0);w([k({attribute:"month-format",mode:"fromView"})],Ao.prototype,"monthFormat",void 0);w([k({attribute:"year-format",mode:"fromView"})],Ao.prototype,"yearFormat",void 0);w([k({attribute:"min-weeks",converter:se})],Ao.prototype,"minWeeks",void 0);w([k({attribute:"disabled-dates"})],Ao.prototype,"disabledDates",void 0);w([k({attribute:"selected-dates"})],Ao.prototype,"selectedDates",void 0)});var ju,Ss,Rl,pm=y(()=>{l();c();d();ju={none:"none",default:"default",sticky:"sticky"},Ss={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},Rl={default:"default",header:"header",stickyHeader:"sticky-header"}});var ar,Nb=y(()=>{l();c();d();Pe();A();we();He();pm();ar=class extends G{constructor(){super(...arguments),this.rowType=Rl.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new On(e=>e.columnDefinitions,e=>e.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(Cs,this.handleFocusout),this.addEventListener(xs,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(Cs,this.handleFocusout),this.removeEventListener(xs,this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case yo:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case bo:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case xr:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case kr:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===Rl.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===Rl.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};w([k({attribute:"grid-template-columns"})],ar.prototype,"gridTemplateColumns",void 0);w([k({attribute:"row-type"})],ar.prototype,"rowType",void 0);w([I],ar.prototype,"rowData",void 0);w([I],ar.prototype,"columnDefinitions",void 0);w([I],ar.prototype,"cellItemTemplate",void 0);w([I],ar.prototype,"headerCellItemTemplate",void 0);w([I],ar.prototype,"rowIndex",void 0);w([I],ar.prototype,"isActiveRow",void 0);w([I],ar.prototype,"activeCellItemTemplate",void 0);w([I],ar.prototype,"defaultCellItemTemplate",void 0);w([I],ar.prototype,"defaultHeaderCellItemTemplate",void 0);w([I],ar.prototype,"cellElements",void 0)});function vM(r){let e=r.tagFor(ar);return O` <${e} :rowData="${t=>t}" :cellItemTemplate="${(t,o)=>o.parent.cellItemTemplate}" @@ -279,7 +279,7 @@ try{ :defaultHeaderCellItemTemplate="${o}" ${ha({property:"cellElements",filter:Br('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})} > - + `}});var a2,l2=y(()=>{l();c();d();A();a2=(r,e)=>O` `});var Bb,fm,b2=y(()=>{l();c();d();Go();He();Bb=class extends G{},fm=class extends Vc(Bb){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Pl,w2=y(()=>{l();c();d();Pe();A();we();b2();Pl=class extends fm{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case qo:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=e=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};w([k({attribute:"readonly",mode:"boolean"})],Pl.prototype,"readOnly",void 0);w([I],Pl.prototype,"defaultSlottedNodes",void 0);w([I],Pl.prototype,"indeterminate",void 0)});var C2=y(()=>{l();c();d();y2();w2()});function zb(r){return Mn(r)&&(r.getAttribute("role")==="option"||r instanceof HTMLOptionElement)}var Ko,ya,Vb=y(()=>{l();c();d();Pe();A();we();He();Vu();$t();zr();Ko=class extends G{constructor(e,t,o,i){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,e&&(this.textContent=e),t&&(this.initialValue=t),o&&(this.defaultSelected=o),i&&(this.selected=i),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(e,t){if(typeof t=="boolean"){this.ariaChecked=t?"true":"false";return}this.ariaChecked=null}contentChanged(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var e;return(e=this.value)!==null&&e!==void 0?e:this.text}get text(){var e,t;return(t=(e=this.textContent)===null||e===void 0?void 0:e.replace(/\s+/g," ").trim())!==null&&t!==void 0?t:""}set value(e){let t=`${e??""}`;this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),pe.notify(this,"value")}get value(){var e;return pe.track(this,"value"),(e=this._value)!==null&&e!==void 0?e:this.text}get form(){return this.proxy?this.proxy.form:null}};w([I],Ko.prototype,"checked",void 0);w([I],Ko.prototype,"content",void 0);w([I],Ko.prototype,"defaultSelected",void 0);w([k({mode:"boolean"})],Ko.prototype,"disabled",void 0);w([k({attribute:"selected",mode:"boolean"})],Ko.prototype,"selectedAttribute",void 0);w([I],Ko.prototype,"selected",void 0);w([k({attribute:"value",mode:"fromView"})],Ko.prototype,"initialValue",void 0);ya=class{};w([I],ya.prototype,"ariaChecked",void 0);w([I],ya.prototype,"ariaPosInSet",void 0);w([I],ya.prototype,"ariaSelected",void 0);w([I],ya.prototype,"ariaSetSize",void 0);We(ya,dt);We(Ko,_t,ya)});var lr,ki,ba=y(()=>{l();c();d();Pe();A();we();He();Vb();Vu();zr();lr=class r extends G{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return(e=this.selectedOptions[0])!==null&&e!==void 0?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(e=>e.disabled)}get length(){var e,t;return(t=(e=this.options)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0}get options(){return pe.track(this,"options"),this._options}set options(e){this._options=e,pe.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){let t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&e!==null&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}focusinHandler(e){!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){let e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi");return this.options.filter(o=>o.text.trim().match(t))}getSelectableIndex(e=this.selectedIndex,t){let o=e>t?-1:e!s&&!a.disabled&&u!s&&!a.disabled&&u>i?a:s,n);break}}return this.options.indexOf(n)}handleChange(e,t){switch(t){case"selected":{r.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions();break}}}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,r.TYPE_AHEAD_TIMEOUT_MS),!(e.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`)}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;let t=e.key;switch(t){case xr:{e.shiftKey||(e.preventDefault(),this.selectFirstOption());break}case Vt:{e.shiftKey||(e.preventDefault(),this.selectNextOption());break}case qt:{e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break}case kr:{e.preventDefault(),this.selectLastOption();break}case pa:return this.focusAndScrollOptionIntoView(),!0;case sr:case Vo:return!0;case qo:if(this.typeaheadExpired)return!0;default:return t.length===1&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":null}selectedIndexChanged(e,t){var o;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((o=this.options[this.selectedIndex])===null||o===void 0)&&o.disabled&&typeof e=="number"){let i=this.getSelectableIndex(e,t),n=i>-1?i:e;this.selectedIndex=n,t===n&&this.selectedIndexChanged(t,n);return}this.setSelectedOptions()}selectedOptionsChanged(e,t){var o;let i=t.filter(r.slottedOptionFilter);(o=this.options)===null||o===void 0||o.forEach(n=>{let s=pe.getNotifier(n);s.unsubscribe(this,"selected"),n.selected=i.includes(n),s.subscribe(this,"selected")})}selectFirstOption(){var e,t;this.disabled||(this.selectedIndex=(t=(e=this.options)===null||e===void 0?void 0:e.findIndex(o=>!o.disabled))!==null&&t!==void 0?t:-1)}selectLastOption(){this.disabled||(this.selectedIndex=JT(this.options,e=>!e.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var e,t;this.selectedIndex=(t=(e=this.options)===null||e===void 0?void 0:e.findIndex(o=>o.defaultSelected))!==null&&t!==void 0?t:-1}setSelectedOptions(){var e,t,o;!((e=this.options)===null||e===void 0)&&e.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(o=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.id)!==null&&o!==void 0?o:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(e,t){this.options=t.reduce((i,n)=>(zb(n)&&i.push(n),i),[]);let o=`${this.options.length}`;this.options.forEach((i,n)=>{i.id||(i.id=di("option-")),i.ariaPosInSet=`${n+1}`,i.ariaSetSize=o}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){let o=this.getTypeaheadMatches();if(o.length){let i=this.options.indexOf(o[0]);i>-1&&(this.selectedIndex=i)}this.typeaheadExpired=!1}}};lr.slottedOptionFilter=r=>zb(r)&&!r.hidden;lr.TYPE_AHEAD_TIMEOUT_MS=1e3;w([k({mode:"boolean"})],lr.prototype,"disabled",void 0);w([I],lr.prototype,"selectedIndex",void 0);w([I],lr.prototype,"selectedOptions",void 0);w([I],lr.prototype,"slottedOptions",void 0);w([I],lr.prototype,"typeaheadBuffer",void 0);ki=class{};w([I],ki.prototype,"ariaActiveDescendant",void 0);w([I],ki.prototype,"ariaDisabled",void 0);w([I],ki.prototype,"ariaExpanded",void 0);w([I],ki.prototype,"ariaMultiSelectable",void 0);We(ki,dt);We(lr,ki)});var wa,mm=y(()=>{l();c();d();wa={above:"above",below:"below"}});var qb,gm,x2=y(()=>{l();c();d();Go();ba();qb=class extends lr{},gm=class extends Ar(qb){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Wu,Gb=y(()=>{l();c();d();Wu={inline:"inline",list:"list",both:"both",none:"none"}});var Si,Gc,k2=y(()=>{l();c();d();Pe();A();we();ba();$t();mm();zr();x2();Gb();Si=class extends gm{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=di("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Wu.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Wu.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Wu.both}openChanged(){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),Y.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}get options(){return pe.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(e){this._options=e,pe.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}get value(){return pe.track(this,"value"),this._value}set value(e){var t,o,i;let n=`${this._value}`;if(this.$fastController.isConnected&&this.options){let s=this.options.findIndex(h=>h.text.toLowerCase()===e.toLowerCase()),a=(t=this.options[this.selectedIndex])===null||t===void 0?void 0:t.text,u=(o=this.options[s])===null||o===void 0?void 0:o.text;this.selectedIndex=a!==u?s:this.selectedIndex,e=((i=this.firstSelectedOption)===null||i===void 0?void 0:i.text)||e}n!==e&&(this._value=e,super.valueChanged(n,e),pe.notify(this,"value"))}clickHandler(e){if(!this.disabled){if(this.open){let t=e.target.closest("option,[role=option]");if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){(!this.autocomplete||this.autocomplete===Wu.none)&&(this.filter="");let e=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(!this.filteredOptions.length&&!e&&(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{var e;(e=this.firstSelectedOption)===null||e===void 0||e.scrollIntoView({block:"nearest"})}))}focusoutHandler(e){if(this.syncValue(),!this.open)return!0;let t=e.relatedTarget;if(this.isSameNode(t)){this.focus();return}(!this.options||!this.options.includes(t))&&(this.open=!1)}inputHandler(e){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map(t=>t.text).indexOf(this.control.value)),e.inputType.includes("deleteContent")||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)}keydownHandler(e){let t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":{this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break}case"Escape":{if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break}case"Tab":{if(this.setInputToSelection(),!this.open)return!0;e.preventDefault(),this.open=!1;break}case"ArrowUp":case"ArrowDown":{if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(e),this.isAutocompleteInline&&this.setInlineSelection();break}default:return!0}}keyupHandler(e){switch(e.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":{this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions();break}}}selectedIndexChanged(e,t){if(this.$fastController.isConnected){if(t=ma(-1,this.options.length-1,t),t!==this.selectedIndex){this.selectedIndex=t;return}super.selectedIndexChanged(e,t)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){let e=this.options.findIndex(t=>t.getAttribute("selected")!==null||t.selected);this.selectedIndex=e,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var e;let t=this.selectedIndex>-1?(e=this.firstSelectedOption)===null||e===void 0?void 0:e.text:this.control.value;this.updateValue(this.value!==t)}setPositioning(){let e=this.getBoundingClientRect(),o=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>o?wa.above:wa.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===wa.above?~~e.top:~~o}selectedOptionsChanged(e,t){this.$fastController.isConnected&&this._options.forEach(o=>{o.selected=t.includes(o)})}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.updateValue()}updateValue(e){var t;this.$fastController.isConnected&&(this.value=((t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)||this.control.value,this.control.value=this.value),e&&this.$emit("change")}clearSelectionRange(){let e=this.control.value.length;this.control.setSelectionRange(e,e)}};w([k({attribute:"autocomplete",mode:"fromView"})],Si.prototype,"autocomplete",void 0);w([I],Si.prototype,"maxHeight",void 0);w([k({attribute:"open",mode:"boolean"})],Si.prototype,"open",void 0);w([k],Si.prototype,"placeholder",void 0);w([k({attribute:"position"})],Si.prototype,"positionAttribute",void 0);w([I],Si.prototype,"position",void 0);Gc=class{};w([I],Gc.prototype,"ariaAutoComplete",void 0);w([I],Gc.prototype,"ariaControls",void 0);We(Gc,ki);We(Si,_t,Gc)});var S2,_2=y(()=>{l();c();d();A();ba();$t();S2=(r,e)=>O` @@ -472,11 +472,11 @@ try{ ${Ee("listbox")} > -`});var T2=y(()=>{l();c();d();k2();Gb();_2()});function $l(r){let e=r.parentElement;if(e)return e;{let t=r.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}var vm=y(()=>{l();c();d()});function jb(r,e){let t=e;for(;t!==null;){if(t===r)return!0;t=$l(t)}return!1}var Kb=y(()=>{l();c();d();vm()});function EM(r){return r instanceof da}var Dn,Qu,Qb,Yb,Zb,ym,Jb,Ca,Wb,IM,Ol,Xb=y(()=>{l();c();d();Pe();A();Dn=document.createElement("div");Qu=class{setProperty(e,t){Y.queueUpdate(()=>this.target.setProperty(e,t))}removeProperty(e){Y.queueUpdate(()=>this.target.removeProperty(e))}},Qb=class extends Qu{constructor(e){super();let t=new CSSStyleSheet;t[Kf]=!0,this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(nr.create([t]))}},Yb=class extends Qu{constructor(){super();let e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}},Zb=class extends Qu{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);let{sheet:e}=this.style;if(e){let t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}},ym=class{constructor(e){this.store=new Map,this.target=null;let t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),pe.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(this.target!==null)for(let[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),Y.queueUpdate(()=>{this.target!==null&&this.target.setProperty(e,t)})}removeProperty(e){this.store.delete(e),Y.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(e)})}handleChange(e,t){let{sheet:o}=this.style;if(o){let i=o.insertRule(":host{}",o.cssRules.length);this.target=o.cssRules[i].style}else this.target=null}};w([I],ym.prototype,"target",void 0);Jb=class{constructor(e){this.target=e.style}setProperty(e,t){Y.queueUpdate(()=>this.target.setProperty(e,t))}removeProperty(e){Y.queueUpdate(()=>this.target.removeProperty(e))}},Ca=class r{setProperty(e,t){r.properties[e]=t;for(let o of r.roots.values())Ol.getOrCreate(r.normalizeRoot(o)).setProperty(e,t)}removeProperty(e){delete r.properties[e];for(let t of r.roots.values())Ol.getOrCreate(r.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){let{roots:t}=r;if(!t.has(e)){t.add(e);let o=Ol.getOrCreate(this.normalizeRoot(e));for(let i in r.properties)o.setProperty(i,r.properties[i])}}static unregisterRoot(e){let{roots:t}=r;if(t.has(e)){t.delete(e);let o=Ol.getOrCreate(r.normalizeRoot(e));for(let i in r.properties)o.removeProperty(i)}}static normalizeRoot(e){return e===Dn?document:e}};Ca.roots=new Set;Ca.properties={};Wb=new WeakMap,IM=Y.supportsAdoptedStyleSheets?Qb:ym,Ol=Object.freeze({getOrCreate(r){if(Wb.has(r))return Wb.get(r);let e;return r===Dn?e=new Ca:r instanceof Document?e=Y.supportsAdoptedStyleSheets?new Yb:new Zb:EM(r)?e=new IM(r):e=new Jb(r),Wb.set(r,e),e}})});function AM(r){return on.from(r)}var on,e1,t1,r1,Yu,Zu,Ro,Je,o1=y(()=>{l();c();d();Pe();A();vm();Kb();Xb();Xb();on=class r extends ua{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,e.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=r.uniqueId(),r.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new r({name:typeof e=="string"?e:e.name,cssCustomPropertyName:typeof e=="string"?e:e.cssCustomPropertyName===void 0?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return typeof e.cssCustomProperty=="string"}static isDerivedDesignTokenValue(e){return typeof e=="function"}static getTokenById(e){return r.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){let t=Ro.getOrCreate(e).get(this);if(t!==void 0)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 r&&(t=this.alias(t)),Ro.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),Ro.existsFor(e)&&Ro.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(Dn,e),this}subscribe(e,t){let o=this.getOrCreateSubscriberSet(t);t&&!Ro.existsFor(t)&&Ro.getOrCreate(t),o.has(e)||o.add(e)}unsubscribe(e,t){let o=this.subscribers.get(t||this);o&&o.has(e)&&o.delete(e)}notify(e){let t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach(o=>o.handleChange(t)),this.subscribers.has(e)&&this.subscribers.get(e).forEach(o=>o.handleChange(t))}alias(e){return t=>e.getValueFor(t)}};on.uniqueId=(()=>{let r=0;return()=>(r++,r.toString(16))})();on.tokensById=new Map;e1=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){let{token:t,target:o}=e;this.add(t,o)}add(e,t){Ol.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(Ro.getOrCreate(t).get(e)))}remove(e,t){Ol.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&typeof e.createCSS=="function"?e.createCSS():e}},t1=class{constructor(e,t,o){this.source=e,this.token=t,this.node=o,this.dependencies=new Set,this.observer=pe.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,aa))}},r1=class{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),pe.getNotifier(this).notify(e.id))}get(e){return pe.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}},Yu=new WeakMap,Zu=new WeakMap,Ro=class r{constructor(e){this.target=e,this.store=new r1,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,o)=>{let i=on.getTokenById(o);i&&(i.notify(this.target),this.updateCSSTokenReflection(t,i))}},Yu.set(e,this),pe.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof da?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return Yu.get(e)||new r(e)}static existsFor(e){return Yu.has(e)}static findParent(e){if(Dn!==e.target){let t=$l(e.target);for(;t!==null;){if(Yu.has(t))return Yu.get(t);t=$l(t)}return r.getOrCreate(Dn)}return null}static findClosestAssignedNode(e,t){let o=t;do{if(o.has(e))return o;o=o.parent?o.parent:o.target!==Dn?r.getOrCreate(Dn):null}while(o!==null);return null}get parent(){return Zu.get(this)||null}updateCSSTokenReflection(e,t){if(on.isCSSDesignToken(t)){let o=this.parent,i=this.isReflecting(t);if(o){let n=o.get(t),s=e.get(t);n!==s&&!i?this.reflectToCSS(t):n===s&&i&&this.stopReflectToCSS(t)}else i||this.reflectToCSS(t)}}has(e){return this.assignedValues.has(e)}get(e){let t=this.store.get(e);if(t!==void 0)return t;let o=this.getRaw(e);if(o!==void 0)return this.hydrate(e,o),this.get(e)}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):(t=r.findClosestAssignedNode(e,this))===null||t===void 0?void 0:t.getRaw(e)}set(e,t){on.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),on.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);let t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){let e=r.findParent(this);e&&e.appendChild(this);for(let t of this.assignedValues.keys())t.notify(this.target)}unbind(){this.parent&&Zu.get(this).removeChild(this)}appendChild(e){e.parent&&Zu.get(e).removeChild(e);let t=this.children.filter(o=>e.contains(o));Zu.set(e,this),this.children.push(e),t.forEach(o=>e.appendChild(o)),pe.getNotifier(this.store).subscribe(e);for(let[o,i]of this.store.all())e.hydrate(o,this.bindingObservers.has(o)?this.getRaw(o):i)}removeChild(e){let t=this.children.indexOf(e);return t!==-1&&this.children.splice(t,1),pe.getNotifier(this.store).unsubscribe(e),e.parent===this?Zu.delete(e):!1}contains(e){return jb(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),r.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),r.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){let o=on.getTokenById(t);o&&(this.hydrate(o,this.getRaw(o)),this.updateCSSTokenReflection(this.store,o))}hydrate(e,t){if(!this.has(e)){let o=this.bindingObservers.get(e);on.isDerivedDesignTokenValue(t)?o?o.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(o&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){let o=new t1(t,e,this);return this.bindingObservers.set(e,o),o}tearDownBindingObserver(e){return this.bindingObservers.has(e)?(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0):!1}};Ro.cssCustomPropertyReflector=new e1;w([I],Ro.prototype,"children",void 0);Je=Object.freeze({create:AM,notifyConnection(r){return!r.isConnected||!Ro.existsFor(r)?!1:(Ro.getOrCreate(r).bind(),!0)},notifyDisconnection(r){return r.isConnected||!Ro.existsFor(r)?!1:(Ro.getOrCreate(r).unbind(),!0)},registerRoot(r=Dn){Ca.registerRoot(r)},unregisterRoot(r=Dn){Ca.unregisterRoot(r)}})});function RM(r,e,t){return typeof r=="string"?{name:r,type:e,callback:t}:r}var i1,n1,bm,jc,Ju,a1,wm,s1,E2=y(()=>{l();c();d();A();He();om();o1();am();i1=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),n1=new Map,bm=new Map,jc=null,Ju=At.createInterface(r=>r.cachedCallback(e=>(jc===null&&(jc=new wm(null,e)),jc))),a1=Object.freeze({tagFor(r){return bm.get(r)},responsibleFor(r){let e=r.$$designSystem$$;return e||At.findResponsibleContainer(r).get(Ju)},getOrCreate(r){if(!r)return jc===null&&(jc=At.getOrCreateDOMContainer().get(Ju)),jc;let e=r.$$designSystem$$;if(e)return e;let t=At.getOrCreateDOMContainer(r);if(t.has(Ju,!1))return t.get(Ju);{let o=new wm(r,t);return t.register(Tl.instance(Ju,o)),o}}});wm=class{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>i1.definitionCallbackOnly,e!==null&&(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){let t=this.container,o=[],i=this.disambiguate,n=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(a,u,h){let p=RM(a,u,h),{name:f,callback:b,baseClass:C}=p,{type:S}=p,R=f,H=n1.get(R),ye=!0;for(;H;){let ie=i(R,S,H);switch(ie){case i1.ignoreDuplicate:return;case i1.definitionCallbackOnly:ye=!1,H=void 0;break;default:R=ie,H=n1.get(R);break}}ye&&((bm.has(S)||S===G)&&(S=class extends S{}),n1.set(R,S),bm.set(S,R),C&&bm.set(C,R)),o.push(new s1(t,R,S,n,b,ye))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Je.registerRoot(this.designTokenRoot)),t.registerWithContext(s,...e);for(let a of o)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}},s1=class{constructor(e,t,o,i,n,s){this.container=e,this.name=t,this.type=o,this.shadowRootMode=i,this.callback=n,this.willDefine=s,this.definition=null}definePresentation(e){sm.define(this.name,e,this.container)}defineElement(e){this.definition=new $n(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return a1.tagFor(e)}}});var I2=y(()=>{l();c();d()});var A2=y(()=>{l();c();d();E2();am();I2()});var R2=y(()=>{l();c();d()});var P2=y(()=>{l();c();d();om()});var $2,O2=y(()=>{l();c();d();A();$2=(r,e)=>O` +`});var T2=y(()=>{l();c();d();k2();Gb();_2()});function $l(r){let e=r.parentElement;if(e)return e;{let t=r.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}var vm=y(()=>{l();c();d()});function jb(r,e){let t=e;for(;t!==null;){if(t===r)return!0;t=$l(t)}return!1}var Kb=y(()=>{l();c();d();vm()});function EM(r){return r instanceof da}var Fn,Qu,Qb,Yb,Zb,ym,Jb,Ca,Wb,IM,Ol,Xb=y(()=>{l();c();d();Pe();A();Fn=document.createElement("div");Qu=class{setProperty(e,t){Y.queueUpdate(()=>this.target.setProperty(e,t))}removeProperty(e){Y.queueUpdate(()=>this.target.removeProperty(e))}},Qb=class extends Qu{constructor(e){super();let t=new CSSStyleSheet;t[Kf]=!0,this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(nr.create([t]))}},Yb=class extends Qu{constructor(){super();let e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}},Zb=class extends Qu{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);let{sheet:e}=this.style;if(e){let t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}},ym=class{constructor(e){this.store=new Map,this.target=null;let t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),pe.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(this.target!==null)for(let[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),Y.queueUpdate(()=>{this.target!==null&&this.target.setProperty(e,t)})}removeProperty(e){this.store.delete(e),Y.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(e)})}handleChange(e,t){let{sheet:o}=this.style;if(o){let i=o.insertRule(":host{}",o.cssRules.length);this.target=o.cssRules[i].style}else this.target=null}};w([I],ym.prototype,"target",void 0);Jb=class{constructor(e){this.target=e.style}setProperty(e,t){Y.queueUpdate(()=>this.target.setProperty(e,t))}removeProperty(e){Y.queueUpdate(()=>this.target.removeProperty(e))}},Ca=class r{setProperty(e,t){r.properties[e]=t;for(let o of r.roots.values())Ol.getOrCreate(r.normalizeRoot(o)).setProperty(e,t)}removeProperty(e){delete r.properties[e];for(let t of r.roots.values())Ol.getOrCreate(r.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){let{roots:t}=r;if(!t.has(e)){t.add(e);let o=Ol.getOrCreate(this.normalizeRoot(e));for(let i in r.properties)o.setProperty(i,r.properties[i])}}static unregisterRoot(e){let{roots:t}=r;if(t.has(e)){t.delete(e);let o=Ol.getOrCreate(r.normalizeRoot(e));for(let i in r.properties)o.removeProperty(i)}}static normalizeRoot(e){return e===Fn?document:e}};Ca.roots=new Set;Ca.properties={};Wb=new WeakMap,IM=Y.supportsAdoptedStyleSheets?Qb:ym,Ol=Object.freeze({getOrCreate(r){if(Wb.has(r))return Wb.get(r);let e;return r===Fn?e=new Ca:r instanceof Document?e=Y.supportsAdoptedStyleSheets?new Yb:new Zb:EM(r)?e=new IM(r):e=new Jb(r),Wb.set(r,e),e}})});function AM(r){return on.from(r)}var on,e1,t1,r1,Yu,Zu,Ro,Je,o1=y(()=>{l();c();d();Pe();A();vm();Kb();Xb();Xb();on=class r extends ua{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,e.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=r.uniqueId(),r.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new r({name:typeof e=="string"?e:e.name,cssCustomPropertyName:typeof e=="string"?e:e.cssCustomPropertyName===void 0?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return typeof e.cssCustomProperty=="string"}static isDerivedDesignTokenValue(e){return typeof e=="function"}static getTokenById(e){return r.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){let t=Ro.getOrCreate(e).get(this);if(t!==void 0)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 r&&(t=this.alias(t)),Ro.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),Ro.existsFor(e)&&Ro.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(Fn,e),this}subscribe(e,t){let o=this.getOrCreateSubscriberSet(t);t&&!Ro.existsFor(t)&&Ro.getOrCreate(t),o.has(e)||o.add(e)}unsubscribe(e,t){let o=this.subscribers.get(t||this);o&&o.has(e)&&o.delete(e)}notify(e){let t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach(o=>o.handleChange(t)),this.subscribers.has(e)&&this.subscribers.get(e).forEach(o=>o.handleChange(t))}alias(e){return t=>e.getValueFor(t)}};on.uniqueId=(()=>{let r=0;return()=>(r++,r.toString(16))})();on.tokensById=new Map;e1=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){let{token:t,target:o}=e;this.add(t,o)}add(e,t){Ol.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(Ro.getOrCreate(t).get(e)))}remove(e,t){Ol.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&typeof e.createCSS=="function"?e.createCSS():e}},t1=class{constructor(e,t,o){this.source=e,this.token=t,this.node=o,this.dependencies=new Set,this.observer=pe.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,aa))}},r1=class{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),pe.getNotifier(this).notify(e.id))}get(e){return pe.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}},Yu=new WeakMap,Zu=new WeakMap,Ro=class r{constructor(e){this.target=e,this.store=new r1,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,o)=>{let i=on.getTokenById(o);i&&(i.notify(this.target),this.updateCSSTokenReflection(t,i))}},Yu.set(e,this),pe.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof da?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return Yu.get(e)||new r(e)}static existsFor(e){return Yu.has(e)}static findParent(e){if(Fn!==e.target){let t=$l(e.target);for(;t!==null;){if(Yu.has(t))return Yu.get(t);t=$l(t)}return r.getOrCreate(Fn)}return null}static findClosestAssignedNode(e,t){let o=t;do{if(o.has(e))return o;o=o.parent?o.parent:o.target!==Fn?r.getOrCreate(Fn):null}while(o!==null);return null}get parent(){return Zu.get(this)||null}updateCSSTokenReflection(e,t){if(on.isCSSDesignToken(t)){let o=this.parent,i=this.isReflecting(t);if(o){let n=o.get(t),s=e.get(t);n!==s&&!i?this.reflectToCSS(t):n===s&&i&&this.stopReflectToCSS(t)}else i||this.reflectToCSS(t)}}has(e){return this.assignedValues.has(e)}get(e){let t=this.store.get(e);if(t!==void 0)return t;let o=this.getRaw(e);if(o!==void 0)return this.hydrate(e,o),this.get(e)}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):(t=r.findClosestAssignedNode(e,this))===null||t===void 0?void 0:t.getRaw(e)}set(e,t){on.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),on.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);let t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){let e=r.findParent(this);e&&e.appendChild(this);for(let t of this.assignedValues.keys())t.notify(this.target)}unbind(){this.parent&&Zu.get(this).removeChild(this)}appendChild(e){e.parent&&Zu.get(e).removeChild(e);let t=this.children.filter(o=>e.contains(o));Zu.set(e,this),this.children.push(e),t.forEach(o=>e.appendChild(o)),pe.getNotifier(this.store).subscribe(e);for(let[o,i]of this.store.all())e.hydrate(o,this.bindingObservers.has(o)?this.getRaw(o):i)}removeChild(e){let t=this.children.indexOf(e);return t!==-1&&this.children.splice(t,1),pe.getNotifier(this.store).unsubscribe(e),e.parent===this?Zu.delete(e):!1}contains(e){return jb(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),r.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),r.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){let o=on.getTokenById(t);o&&(this.hydrate(o,this.getRaw(o)),this.updateCSSTokenReflection(this.store,o))}hydrate(e,t){if(!this.has(e)){let o=this.bindingObservers.get(e);on.isDerivedDesignTokenValue(t)?o?o.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(o&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){let o=new t1(t,e,this);return this.bindingObservers.set(e,o),o}tearDownBindingObserver(e){return this.bindingObservers.has(e)?(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0):!1}};Ro.cssCustomPropertyReflector=new e1;w([I],Ro.prototype,"children",void 0);Je=Object.freeze({create:AM,notifyConnection(r){return!r.isConnected||!Ro.existsFor(r)?!1:(Ro.getOrCreate(r).bind(),!0)},notifyDisconnection(r){return r.isConnected||!Ro.existsFor(r)?!1:(Ro.getOrCreate(r).unbind(),!0)},registerRoot(r=Fn){Ca.registerRoot(r)},unregisterRoot(r=Fn){Ca.unregisterRoot(r)}})});function RM(r,e,t){return typeof r=="string"?{name:r,type:e,callback:t}:r}var i1,n1,bm,jc,Ju,a1,wm,s1,E2=y(()=>{l();c();d();A();He();om();o1();am();i1=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),n1=new Map,bm=new Map,jc=null,Ju=At.createInterface(r=>r.cachedCallback(e=>(jc===null&&(jc=new wm(null,e)),jc))),a1=Object.freeze({tagFor(r){return bm.get(r)},responsibleFor(r){let e=r.$$designSystem$$;return e||At.findResponsibleContainer(r).get(Ju)},getOrCreate(r){if(!r)return jc===null&&(jc=At.getOrCreateDOMContainer().get(Ju)),jc;let e=r.$$designSystem$$;if(e)return e;let t=At.getOrCreateDOMContainer(r);if(t.has(Ju,!1))return t.get(Ju);{let o=new wm(r,t);return t.register(Tl.instance(Ju,o)),o}}});wm=class{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>i1.definitionCallbackOnly,e!==null&&(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){let t=this.container,o=[],i=this.disambiguate,n=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(a,u,h){let p=RM(a,u,h),{name:f,callback:b,baseClass:C}=p,{type:S}=p,R=f,H=n1.get(R),ye=!0;for(;H;){let ie=i(R,S,H);switch(ie){case i1.ignoreDuplicate:return;case i1.definitionCallbackOnly:ye=!1,H=void 0;break;default:R=ie,H=n1.get(R);break}}ye&&((bm.has(S)||S===G)&&(S=class extends S{}),n1.set(R,S),bm.set(S,R),C&&bm.set(C,R)),o.push(new s1(t,R,S,n,b,ye))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Je.registerRoot(this.designTokenRoot)),t.registerWithContext(s,...e);for(let a of o)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}},s1=class{constructor(e,t,o,i,n,s){this.container=e,this.name=t,this.type=o,this.shadowRootMode=i,this.callback=n,this.willDefine=s,this.definition=null}definePresentation(e){sm.define(this.name,e,this.container)}defineElement(e){this.definition=new $n(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return a1.tagFor(e)}}});var I2=y(()=>{l();c();d()});var A2=y(()=>{l();c();d();E2();am();I2()});var R2=y(()=>{l();c();d()});var P2=y(()=>{l();c();d();om()});var $2,O2=y(()=>{l();c();d();A();$2=(r,e)=>O`
${Ze(t=>t.modal,O`
-`});var D2,PM,F2,Xu,l1,$M,L2,OM,MM,DM,FM,LM,NM,M2,HM,UM,N2,BM,c1,zM,d1,u1=y(()=>{l();c();d();D2=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],PM=D2.join(","),F2=typeof Element>"u",Xu=F2?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l1=!F2&&Element.prototype.getRootNode?function(r){return r.getRootNode()}:function(r){return r.ownerDocument},$M=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},L2=function(e){return e.tagName==="INPUT"},OM=function(e){return L2(e)&&e.type==="hidden"},MM=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return t},DM=function(e,t){for(var o=0;osummary:first-of-type"),s=n?e.parentElement:e;if(Xu.call(s,"details:not([open]) *"))return!0;var a=l1(e).host,u=a?.ownerDocument.contains(a)||e.ownerDocument.contains(e);if(!o||o==="full"){if(typeof i=="function"){for(var h=e;e;){var p=e.parentElement,f=l1(e);if(p&&!p.shadowRoot&&i(p)===!0)return M2(e);e.assignedSlot?e=e.assignedSlot:!p&&f!==e.ownerDocument?e=f.host:e=p}e=h}if(u)return!e.getClientRects().length}else if(o==="non-zero-area")return M2(e);return!1},UM=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var o=0;o{l();c();d();Pe();A();we();u1();He();Fn=class r extends G{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden)switch(e.key){case Vo:this.dismiss(),e.preventDefault();break;case pa:this.handleTabKeyDown(e);break}},this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden)return;let t=this.getTabQueueBounds();if(t.length!==0){if(t.length===1){t[0].focus(),e.preventDefault();return}e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&e.target===t[t.length-1]&&(t[0].focus(),e.preventDefault())}},this.getTabQueueBounds=()=>{let e=[];return r.reduceTabbableItems(e,this)},this.focusFirstElement=()=>{let e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=e=>{let t=e===void 0?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),Y.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=pe.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(e,t){switch(t){case"hidden":this.updateTrapFocus();break;default:break}}static reduceTabbableItems(e,t){return t.getAttribute("tabindex")==="-1"?e:c1(t)||r.isFocusableFastElement(t)&&r.hasTabbableShadow(t)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(r.reduceTabbableItems,[])):e}static isFocusableFastElement(e){var t,o;return!!(!((o=(t=e.$fastController)===null||t===void 0?void 0:t.definition.shadowOptions)===null||o===void 0)&&o.delegatesFocus)}static hasTabbableShadow(e){var t,o;return Array.from((o=(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("*"))!==null&&o!==void 0?o:[]).some(i=>c1(i))}};w([k({mode:"boolean"})],Fn.prototype,"modal",void 0);w([k({mode:"boolean"})],Fn.prototype,"hidden",void 0);w([k({attribute:"trap-focus",mode:"boolean"})],Fn.prototype,"trapFocus",void 0);w([k({attribute:"aria-describedby"})],Fn.prototype,"ariaDescribedby",void 0);w([k({attribute:"aria-labelledby"})],Fn.prototype,"ariaLabelledby",void 0);w([k({attribute:"aria-label"})],Fn.prototype,"ariaLabel",void 0)});var U2=y(()=>{l();c();d();O2();H2()});var VM,Cm,B2=y(()=>{l();c();d();A();VM=new MutationObserver(r=>{for(let e of r)Cm.getOrCreateFor(e.target).notify(e.attributeName)}),Cm=class r extends Rn{constructor(e){super(e),this.watchedAttributes=new Set,r.subscriberCache.set(e,this)}subscribe(e){super.subscribe(e),this.watchedAttributes.has(e.attributes)||(this.watchedAttributes.add(e.attributes),this.observe())}unsubscribe(e){super.unsubscribe(e),this.watchedAttributes.has(e.attributes)&&(this.watchedAttributes.delete(e.attributes),this.observe())}static getOrCreateFor(e){return this.subscriberCache.get(e)||new r(e)}observe(){let e=[];for(let t of this.watchedAttributes.values())for(let o=0;o{l();c();d();A()});var xm,V2=y(()=>{l();c();d();Pe();A();He();xm=class extends G{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener("toggle",this.onToggle),this.expanded&&this.show()}onToggle(){this.expanded=this.details.open,this.$emit("toggle")}};w([k({mode:"boolean"})],xm.prototype,"expanded",void 0);w([k],xm.prototype,"title",void 0)});var q2=y(()=>{l();c();d();z2();V2()});var G2,j2=y(()=>{l();c();d();A();G2=(r,e)=>O` +`});var F2,PM,D2,Xu,l1,$M,L2,OM,MM,FM,DM,LM,NM,M2,HM,UM,N2,BM,c1,zM,d1,u1=y(()=>{l();c();d();F2=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],PM=F2.join(","),D2=typeof Element>"u",Xu=D2?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l1=!D2&&Element.prototype.getRootNode?function(r){return r.getRootNode()}:function(r){return r.ownerDocument},$M=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},L2=function(e){return e.tagName==="INPUT"},OM=function(e){return L2(e)&&e.type==="hidden"},MM=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return t},FM=function(e,t){for(var o=0;osummary:first-of-type"),s=n?e.parentElement:e;if(Xu.call(s,"details:not([open]) *"))return!0;var a=l1(e).host,u=a?.ownerDocument.contains(a)||e.ownerDocument.contains(e);if(!o||o==="full"){if(typeof i=="function"){for(var h=e;e;){var p=e.parentElement,f=l1(e);if(p&&!p.shadowRoot&&i(p)===!0)return M2(e);e.assignedSlot?e=e.assignedSlot:!p&&f!==e.ownerDocument?e=f.host:e=p}e=h}if(u)return!e.getClientRects().length}else if(o==="non-zero-area")return M2(e);return!1},UM=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var o=0;o{l();c();d();Pe();A();we();u1();He();Dn=class r extends G{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden)switch(e.key){case Vo:this.dismiss(),e.preventDefault();break;case pa:this.handleTabKeyDown(e);break}},this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden)return;let t=this.getTabQueueBounds();if(t.length!==0){if(t.length===1){t[0].focus(),e.preventDefault();return}e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&e.target===t[t.length-1]&&(t[0].focus(),e.preventDefault())}},this.getTabQueueBounds=()=>{let e=[];return r.reduceTabbableItems(e,this)},this.focusFirstElement=()=>{let e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=e=>{let t=e===void 0?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),Y.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=pe.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(e,t){switch(t){case"hidden":this.updateTrapFocus();break;default:break}}static reduceTabbableItems(e,t){return t.getAttribute("tabindex")==="-1"?e:c1(t)||r.isFocusableFastElement(t)&&r.hasTabbableShadow(t)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(r.reduceTabbableItems,[])):e}static isFocusableFastElement(e){var t,o;return!!(!((o=(t=e.$fastController)===null||t===void 0?void 0:t.definition.shadowOptions)===null||o===void 0)&&o.delegatesFocus)}static hasTabbableShadow(e){var t,o;return Array.from((o=(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("*"))!==null&&o!==void 0?o:[]).some(i=>c1(i))}};w([k({mode:"boolean"})],Dn.prototype,"modal",void 0);w([k({mode:"boolean"})],Dn.prototype,"hidden",void 0);w([k({attribute:"trap-focus",mode:"boolean"})],Dn.prototype,"trapFocus",void 0);w([k({attribute:"aria-describedby"})],Dn.prototype,"ariaDescribedby",void 0);w([k({attribute:"aria-labelledby"})],Dn.prototype,"ariaLabelledby",void 0);w([k({attribute:"aria-label"})],Dn.prototype,"ariaLabel",void 0)});var U2=y(()=>{l();c();d();O2();H2()});var VM,Cm,B2=y(()=>{l();c();d();A();VM=new MutationObserver(r=>{for(let e of r)Cm.getOrCreateFor(e.target).notify(e.attributeName)}),Cm=class r extends Rn{constructor(e){super(e),this.watchedAttributes=new Set,r.subscriberCache.set(e,this)}subscribe(e){super.subscribe(e),this.watchedAttributes.has(e.attributes)||(this.watchedAttributes.add(e.attributes),this.observe())}unsubscribe(e){super.unsubscribe(e),this.watchedAttributes.has(e.attributes)&&(this.watchedAttributes.delete(e.attributes),this.observe())}static getOrCreateFor(e){return this.subscriberCache.get(e)||new r(e)}observe(){let e=[];for(let t of this.watchedAttributes.values())for(let o=0;o{l();c();d();A()});var xm,V2=y(()=>{l();c();d();Pe();A();He();xm=class extends G{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener("toggle",this.onToggle),this.expanded&&this.show()}onToggle(){this.expanded=this.details.open,this.$emit("toggle")}};w([k({mode:"boolean"})],xm.prototype,"expanded",void 0);w([k],xm.prototype,"title",void 0)});var q2=y(()=>{l();c();d();z2();V2()});var G2,j2=y(()=>{l();c();d();A();G2=(r,e)=>O` `});var K2,W2=y(()=>{l();c();d();K2={separator:"separator",presentation:"presentation"}});var xa,Q2=y(()=>{l();c();d();Pe();A();we();He();W2();xa=class extends G{constructor(){super(...arguments),this.role=K2.separator,this.orientation=Tt.horizontal}};w([k],xa.prototype,"role",void 0);w([k],xa.prototype,"orientation",void 0)});var Y2=y(()=>{l();c();d();j2();Q2()});var eh,h1=y(()=>{l();c();d();eh={next:"next",previous:"previous"}});var Z2,J2=y(()=>{l();c();d();A();h1();Z2=(r,e)=>O` @@ -554,14 +554,14 @@ try{ @mousedown="${(t,o)=>t.mousedownHandler(o.event)}" > -`});var l5=y(()=>{l();c();d();ba();km();a5()});var Dl,p1=y(()=>{l();c();d();Pe();we();A();He();Dl=class extends G{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit("optionsupdated",{bubbles:!1})}addSlottedListItems(e){e!==void 0&&e.forEach(t=>{t.nodeType===1&&t.getAttribute("role")==="listitem"&&(t.id=t.id||di("option-"),this.optionElements.push(t))})}};w([I],Dl.prototype,"menuElements",void 0);w([I],Dl.prototype,"headerElements",void 0);w([I],Dl.prototype,"footerElements",void 0);w([I],Dl.prototype,"suggestionsAvailableText",void 0)});var qM,Fl,Sm=y(()=>{l();c();d();Pe();A();He();qM=O` +`});var l5=y(()=>{l();c();d();ba();km();a5()});var Fl,p1=y(()=>{l();c();d();Pe();we();A();He();Fl=class extends G{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit("optionsupdated",{bubbles:!1})}addSlottedListItems(e){e!==void 0&&e.forEach(t=>{t.nodeType===1&&t.getAttribute("role")==="listitem"&&(t.id=t.id||di("option-"),this.optionElements.push(t))})}};w([I],Fl.prototype,"menuElements",void 0);w([I],Fl.prototype,"headerElements",void 0);w([I],Fl.prototype,"footerElements",void 0);w([I],Fl.prototype,"suggestionsAvailableText",void 0)});var qM,Dl,Sm=y(()=>{l();c();d();Pe();A();He();qM=O` -`,Fl=class extends G{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(e){return e.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var e,t;this.disconnectView(),this.customView=(t=(e=this.contentsTemplate)===null||e===void 0?void 0:e.render(this,this))!==null&&t!==void 0?t:qM.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0||e.dispose(),this.customView=void 0}};w([k({attribute:"value"})],Fl.prototype,"value",void 0);w([I],Fl.prototype,"contentsTemplate",void 0)});var f1=y(()=>{l();c();d();He()});var GM,Ll,_m=y(()=>{l();c();d();Pe();A();we();He();GM=O` +`,Dl=class extends G{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(e){return e.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var e,t;this.disconnectView(),this.customView=(t=(e=this.contentsTemplate)===null||e===void 0?void 0:e.render(this,this))!==null&&t!==void 0?t:qM.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0||e.dispose(),this.customView=void 0}};w([k({attribute:"value"})],Dl.prototype,"value",void 0);w([I],Dl.prototype,"contentsTemplate",void 0)});var f1=y(()=>{l();c();d();He()});var GM,Ll,_m=y(()=>{l();c();d();Pe();A();we();He();GM=O` @@ -578,7 +578,7 @@ try{ placeholder="${r=>r.placeholder}" ${Ee("inputElement")} > -`,ut=class extends Tm{constructor(){super(...arguments),this.selection="",this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText="No suggestions available",this.suggestionsAvailableText="Suggestions available",this.loadingText="Loading suggestions",this.menuPlacement="bottom-fill",this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=e=>{this.query=this.inputElement.value},this.handleInputClick=e=>{e.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{if(this.flyoutOpen){if(this.region===null||this.region===void 0){Y.queueUpdate(this.setRegionProps);return}this.region.anchorElement=this.inputElement}},this.configLookup={top:Rb,bottom:Pb,tallest:$b,"top-fill":AE,"bottom-fill":Ob,"tallest-fill":RE}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map(e=>e.trim()).filter(e=>e!=="")}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&Y.queueUpdate(()=>{this.setFocusedOption(0)})}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit("querychange",{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=this.filteredOptionsList.length===0&&this.menuElement.querySelectorAll('[role="listitem"]').length===0,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(Y.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&Y.queueUpdate(()=>{this.setFocusedOption(0)})}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(""),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=jM.render(this,this.listElement);let e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find(t=>t.tagName===e),this.menuElement===void 0&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),this.menuElement.id===""&&(this.menuElement.id=di("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),Y.queueUpdate(()=>this.initialize())}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener("input",this.handleTextInput),this.inputElement.removeEventListener("click",this.handleInputClick),this.inputElementView!==null&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new On(e=>e.selectedItems,e=>e.activeListItemTemplate,{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener("input",this.handleTextInput),this.inputElement.addEventListener("click",this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new On(e=>e.filteredOptionsList,e=>e.activeMenuOptionTemplate,{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen!==e){if(e&&document.activeElement===this.inputElement){this.flyoutOpen=e,Y.queueUpdate(()=>{this.menuElement!==void 0?this.setFocusedOption(0):this.disableMenu()});return}this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(e){e.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(e){if(e.defaultPrevented)return!1;switch(e.key){case Vt:{if(!this.flyoutOpen)this.toggleFlyout(!0);else{let t=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(t)}return!1}case qt:{if(!this.flyoutOpen)this.toggleFlyout(!0);else{let t=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(t)}return!1}case Vo:return this.toggleFlyout(!1),!1;case sr:return this.menuFocusIndex!==-1&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case bo:return document.activeElement!==this.inputElement?(this.incrementFocusedItem(1),!1):!0;case yo:return this.inputElement.selectionStart===0?(this.incrementFocusedItem(-1),!1):!0;case fE:case pE:{if(document.activeElement===null)return!0;if(document.activeElement===this.inputElement)return this.inputElement.selectionStart===0?(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1):!0;let t=Array.from(this.listElement.children),o=t.indexOf(document.activeElement);return o>-1?(this.selection=this.selectedItems.splice(o,1).toString(),Y.queueUpdate(()=>{t[Math.min(t.length,o)].focus()}),!1):!0}}return this.toggleFlyout(!0),!0}handleFocusIn(e){return!1}handleFocusOut(e){return(this.menuElement===void 0||!this.menuElement.contains(e.relatedTarget))&&this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=this.selection===""?[]:this.selection.split(","),this.updateFilteredOptions(),Y.queueUpdate(()=>{this.checkMaxItems()}),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(e){Y.queueUpdate(()=>{this.setFocusedOption(0),this.$emit("menuloaded",{bubbles:!1})})}checkMaxItems(){if(this.inputElement!==void 0)if(this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){let e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));e[e.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(e){if(e.defaultPrevented)return!1;if(e.target instanceof Ll){let o=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(e.target);if(o!==-1){let i=this.selectedItems.slice();i.splice(o,1),this.selection=i.toString(),Y.queueUpdate(()=>this.incrementFocusedItem(0))}return!1}return!0}handleOptionInvoke(e){return e.defaultPrevented?!1:e.target instanceof Fl?(e.target.value!==void 0&&(this.selection=`${this.selection}${this.selection===""?"":","}${e.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1):!0}incrementFocusedItem(e){if(this.selectedItems.length===0){this.inputElement.focus();return}let t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(document.activeElement!==null){let o=t.indexOf(document.activeElement);o===-1&&(o=t.length);let i=Math.min(t.length,Math.max(0,o+e));i===t.length?this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected?t[i-1].focus():this.inputElement.focus():t[i].focus()}}disableMenu(){var e,t,o;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,(e=this.inputElement)===null||e===void 0||e.removeAttribute("aria-activedescendant"),(t=this.inputElement)===null||t===void 0||t.removeAttribute("aria-owns"),(o=this.inputElement)===null||o===void 0||o.removeAttribute("aria-expanded")}setFocusedOption(e){if(!this.flyoutOpen||e===-1||this.showNoOptions||this.showLoading){this.disableMenu();return}if(this.menuElement.optionElements.length===0)return;this.menuElement.optionElements.forEach(o=>{o.setAttribute("aria-selected","false")}),this.menuFocusIndex=e,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute("aria-owns",this.menuId),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);let t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){var e;this.activeListItemTemplate=(e=this.listItemTemplate)!==null&&e!==void 0?e:this.defaultListItemTemplate}updateOptionTemplate(){var e;this.activeMenuOptionTemplate=(e=this.menuOptionTemplate)!==null&&e!==void 0?e:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>this.selectedItems.indexOf(e)===-1)),this.filterQuery&&this.query!==""&&this.query!==void 0&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>e.indexOf(this.query)!==-1))}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];e===null&&(e=Ob),this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}};w([k({attribute:"selection"})],ut.prototype,"selection",void 0);w([k({attribute:"options"})],ut.prototype,"options",void 0);w([k({attribute:"filter-selected",mode:"boolean"})],ut.prototype,"filterSelected",void 0);w([k({attribute:"filter-query",mode:"boolean"})],ut.prototype,"filterQuery",void 0);w([k({attribute:"max-selected"})],ut.prototype,"maxSelected",void 0);w([k({attribute:"no-suggestions-text"})],ut.prototype,"noSuggestionsText",void 0);w([k({attribute:"suggestions-available-text"})],ut.prototype,"suggestionsAvailableText",void 0);w([k({attribute:"loading-text"})],ut.prototype,"loadingText",void 0);w([k({attribute:"label"})],ut.prototype,"label",void 0);w([k({attribute:"labelledby"})],ut.prototype,"labelledBy",void 0);w([k({attribute:"placeholder"})],ut.prototype,"placeholder",void 0);w([k({attribute:"menu-placement"})],ut.prototype,"menuPlacement",void 0);w([I],ut.prototype,"showLoading",void 0);w([I],ut.prototype,"listItemTemplate",void 0);w([I],ut.prototype,"defaultListItemTemplate",void 0);w([I],ut.prototype,"activeListItemTemplate",void 0);w([I],ut.prototype,"menuOptionTemplate",void 0);w([I],ut.prototype,"defaultMenuOptionTemplate",void 0);w([I],ut.prototype,"activeMenuOptionTemplate",void 0);w([I],ut.prototype,"listItemContentsTemplate",void 0);w([I],ut.prototype,"menuOptionContentsTemplate",void 0);w([I],ut.prototype,"optionsList",void 0);w([I],ut.prototype,"query",void 0);w([I],ut.prototype,"filteredOptionsList",void 0);w([I],ut.prototype,"flyoutOpen",void 0);w([I],ut.prototype,"menuId",void 0);w([I],ut.prototype,"selectedListTag",void 0);w([I],ut.prototype,"menuTag",void 0);w([I],ut.prototype,"menuFocusIndex",void 0);w([I],ut.prototype,"menuFocusOptionId",void 0);w([I],ut.prototype,"showNoOptions",void 0);w([I],ut.prototype,"menuConfig",void 0);w([I],ut.prototype,"selectedItems",void 0)});var h5=y(()=>{l();c();d();A()});var p5=y(()=>{l();c();d();A()});var f5=y(()=>{l();c();d();A()});var m5=y(()=>{l();c();d();A()});var g5=y(()=>{l();c();d();c5();u5();h5();p1();p5();Sm();f5();f1();m5();_m()});var Vr,g1,v5=y(()=>{l();c();d();Vr={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},g1={[Vr.menuitem]:"menuitem",[Vr.menuitemcheckbox]:"menuitemcheckbox",[Vr.menuitemradio]:"menuitemradio"}});var qr,v1=y(()=>{l();c();d();Pe();A();we();He();$t();ga();zr();v5();qr=class extends G{constructor(){super(...arguments),this.role=Vr.menuitem,this.hasSubmenu=!1,this.currentDirection=et.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case sr:case qo:return this.invoke(),!1;case bo:return this.expandAndFocus(),!1;case yo:if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Vr.menuitemcheckbox:this.checked=!this.checked;break;case Vr.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Vr.menuitemradio:this.checked||(this.checked=!0);break}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(e=>e.getAttribute("role")==="menu"),this.hasSubmenu=this.submenu!==void 0}}expandedChanged(e){if(this.$fastController.isConnected){if(this.submenu===void 0)return;this.expanded===!1?this.submenu.collapseExpandedItem():this.currentDirection=ui(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),Y.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,this.observer!==void 0&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute("hidden"))}};w([k({mode:"boolean"})],qr.prototype,"disabled",void 0);w([k({mode:"boolean"})],qr.prototype,"expanded",void 0);w([I],qr.prototype,"startColumnCount",void 0);w([k],qr.prototype,"role",void 0);w([k({mode:"boolean"})],qr.prototype,"checked",void 0);w([I],qr.prototype,"submenuRegion",void 0);w([I],qr.prototype,"hasSubmenu",void 0);w([I],qr.prototype,"currentDirection",void 0);w([I],qr.prototype,"submenu",void 0);We(qr,_t)});var y5,b5=y(()=>{l();c();d();A();qu();$t();v1();y5=(r,e)=>O` +`,ut=class extends Tm{constructor(){super(...arguments),this.selection="",this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText="No suggestions available",this.suggestionsAvailableText="Suggestions available",this.loadingText="Loading suggestions",this.menuPlacement="bottom-fill",this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=e=>{this.query=this.inputElement.value},this.handleInputClick=e=>{e.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{if(this.flyoutOpen){if(this.region===null||this.region===void 0){Y.queueUpdate(this.setRegionProps);return}this.region.anchorElement=this.inputElement}},this.configLookup={top:Rb,bottom:Pb,tallest:$b,"top-fill":AE,"bottom-fill":Ob,"tallest-fill":RE}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map(e=>e.trim()).filter(e=>e!=="")}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&Y.queueUpdate(()=>{this.setFocusedOption(0)})}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit("querychange",{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=this.filteredOptionsList.length===0&&this.menuElement.querySelectorAll('[role="listitem"]').length===0,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(Y.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&Y.queueUpdate(()=>{this.setFocusedOption(0)})}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(""),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=jM.render(this,this.listElement);let e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find(t=>t.tagName===e),this.menuElement===void 0&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),this.menuElement.id===""&&(this.menuElement.id=di("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),Y.queueUpdate(()=>this.initialize())}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener("input",this.handleTextInput),this.inputElement.removeEventListener("click",this.handleInputClick),this.inputElementView!==null&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new On(e=>e.selectedItems,e=>e.activeListItemTemplate,{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener("input",this.handleTextInput),this.inputElement.addEventListener("click",this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new On(e=>e.filteredOptionsList,e=>e.activeMenuOptionTemplate,{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen!==e){if(e&&document.activeElement===this.inputElement){this.flyoutOpen=e,Y.queueUpdate(()=>{this.menuElement!==void 0?this.setFocusedOption(0):this.disableMenu()});return}this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(e){e.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(e){if(e.defaultPrevented)return!1;switch(e.key){case Vt:{if(!this.flyoutOpen)this.toggleFlyout(!0);else{let t=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(t)}return!1}case qt:{if(!this.flyoutOpen)this.toggleFlyout(!0);else{let t=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(t)}return!1}case Vo:return this.toggleFlyout(!1),!1;case sr:return this.menuFocusIndex!==-1&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case bo:return document.activeElement!==this.inputElement?(this.incrementFocusedItem(1),!1):!0;case yo:return this.inputElement.selectionStart===0?(this.incrementFocusedItem(-1),!1):!0;case fE:case pE:{if(document.activeElement===null)return!0;if(document.activeElement===this.inputElement)return this.inputElement.selectionStart===0?(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1):!0;let t=Array.from(this.listElement.children),o=t.indexOf(document.activeElement);return o>-1?(this.selection=this.selectedItems.splice(o,1).toString(),Y.queueUpdate(()=>{t[Math.min(t.length,o)].focus()}),!1):!0}}return this.toggleFlyout(!0),!0}handleFocusIn(e){return!1}handleFocusOut(e){return(this.menuElement===void 0||!this.menuElement.contains(e.relatedTarget))&&this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=this.selection===""?[]:this.selection.split(","),this.updateFilteredOptions(),Y.queueUpdate(()=>{this.checkMaxItems()}),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(e){Y.queueUpdate(()=>{this.setFocusedOption(0),this.$emit("menuloaded",{bubbles:!1})})}checkMaxItems(){if(this.inputElement!==void 0)if(this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){let e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));e[e.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(e){if(e.defaultPrevented)return!1;if(e.target instanceof Ll){let o=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(e.target);if(o!==-1){let i=this.selectedItems.slice();i.splice(o,1),this.selection=i.toString(),Y.queueUpdate(()=>this.incrementFocusedItem(0))}return!1}return!0}handleOptionInvoke(e){return e.defaultPrevented?!1:e.target instanceof Dl?(e.target.value!==void 0&&(this.selection=`${this.selection}${this.selection===""?"":","}${e.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1):!0}incrementFocusedItem(e){if(this.selectedItems.length===0){this.inputElement.focus();return}let t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(document.activeElement!==null){let o=t.indexOf(document.activeElement);o===-1&&(o=t.length);let i=Math.min(t.length,Math.max(0,o+e));i===t.length?this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected?t[i-1].focus():this.inputElement.focus():t[i].focus()}}disableMenu(){var e,t,o;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,(e=this.inputElement)===null||e===void 0||e.removeAttribute("aria-activedescendant"),(t=this.inputElement)===null||t===void 0||t.removeAttribute("aria-owns"),(o=this.inputElement)===null||o===void 0||o.removeAttribute("aria-expanded")}setFocusedOption(e){if(!this.flyoutOpen||e===-1||this.showNoOptions||this.showLoading){this.disableMenu();return}if(this.menuElement.optionElements.length===0)return;this.menuElement.optionElements.forEach(o=>{o.setAttribute("aria-selected","false")}),this.menuFocusIndex=e,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute("aria-owns",this.menuId),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);let t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){var e;this.activeListItemTemplate=(e=this.listItemTemplate)!==null&&e!==void 0?e:this.defaultListItemTemplate}updateOptionTemplate(){var e;this.activeMenuOptionTemplate=(e=this.menuOptionTemplate)!==null&&e!==void 0?e:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>this.selectedItems.indexOf(e)===-1)),this.filterQuery&&this.query!==""&&this.query!==void 0&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>e.indexOf(this.query)!==-1))}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];e===null&&(e=Ob),this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}};w([k({attribute:"selection"})],ut.prototype,"selection",void 0);w([k({attribute:"options"})],ut.prototype,"options",void 0);w([k({attribute:"filter-selected",mode:"boolean"})],ut.prototype,"filterSelected",void 0);w([k({attribute:"filter-query",mode:"boolean"})],ut.prototype,"filterQuery",void 0);w([k({attribute:"max-selected"})],ut.prototype,"maxSelected",void 0);w([k({attribute:"no-suggestions-text"})],ut.prototype,"noSuggestionsText",void 0);w([k({attribute:"suggestions-available-text"})],ut.prototype,"suggestionsAvailableText",void 0);w([k({attribute:"loading-text"})],ut.prototype,"loadingText",void 0);w([k({attribute:"label"})],ut.prototype,"label",void 0);w([k({attribute:"labelledby"})],ut.prototype,"labelledBy",void 0);w([k({attribute:"placeholder"})],ut.prototype,"placeholder",void 0);w([k({attribute:"menu-placement"})],ut.prototype,"menuPlacement",void 0);w([I],ut.prototype,"showLoading",void 0);w([I],ut.prototype,"listItemTemplate",void 0);w([I],ut.prototype,"defaultListItemTemplate",void 0);w([I],ut.prototype,"activeListItemTemplate",void 0);w([I],ut.prototype,"menuOptionTemplate",void 0);w([I],ut.prototype,"defaultMenuOptionTemplate",void 0);w([I],ut.prototype,"activeMenuOptionTemplate",void 0);w([I],ut.prototype,"listItemContentsTemplate",void 0);w([I],ut.prototype,"menuOptionContentsTemplate",void 0);w([I],ut.prototype,"optionsList",void 0);w([I],ut.prototype,"query",void 0);w([I],ut.prototype,"filteredOptionsList",void 0);w([I],ut.prototype,"flyoutOpen",void 0);w([I],ut.prototype,"menuId",void 0);w([I],ut.prototype,"selectedListTag",void 0);w([I],ut.prototype,"menuTag",void 0);w([I],ut.prototype,"menuFocusIndex",void 0);w([I],ut.prototype,"menuFocusOptionId",void 0);w([I],ut.prototype,"showNoOptions",void 0);w([I],ut.prototype,"menuConfig",void 0);w([I],ut.prototype,"selectedItems",void 0)});var h5=y(()=>{l();c();d();A()});var p5=y(()=>{l();c();d();A()});var f5=y(()=>{l();c();d();A()});var m5=y(()=>{l();c();d();A()});var g5=y(()=>{l();c();d();c5();u5();h5();p1();p5();Sm();f5();f1();m5();_m()});var Vr,g1,v5=y(()=>{l();c();d();Vr={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},g1={[Vr.menuitem]:"menuitem",[Vr.menuitemcheckbox]:"menuitemcheckbox",[Vr.menuitemradio]:"menuitemradio"}});var qr,v1=y(()=>{l();c();d();Pe();A();we();He();$t();ga();zr();v5();qr=class extends G{constructor(){super(...arguments),this.role=Vr.menuitem,this.hasSubmenu=!1,this.currentDirection=et.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case sr:case qo:return this.invoke(),!1;case bo:return this.expandAndFocus(),!1;case yo:if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Vr.menuitemcheckbox:this.checked=!this.checked;break;case Vr.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Vr.menuitemradio:this.checked||(this.checked=!0);break}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(e=>e.getAttribute("role")==="menu"),this.hasSubmenu=this.submenu!==void 0}}expandedChanged(e){if(this.$fastController.isConnected){if(this.submenu===void 0)return;this.expanded===!1?this.submenu.collapseExpandedItem():this.currentDirection=ui(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),Y.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,this.observer!==void 0&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute("hidden"))}};w([k({mode:"boolean"})],qr.prototype,"disabled",void 0);w([k({mode:"boolean"})],qr.prototype,"expanded",void 0);w([I],qr.prototype,"startColumnCount",void 0);w([k],qr.prototype,"role",void 0);w([k({mode:"boolean"})],qr.prototype,"checked",void 0);w([I],qr.prototype,"submenuRegion",void 0);w([I],qr.prototype,"hasSubmenu",void 0);w([I],qr.prototype,"currentDirection",void 0);w([I],qr.prototype,"submenu",void 0);We(qr,_t)});var y5,b5=y(()=>{l();c();d();A();qu();$t();v1();y5=(r,e)=>O` `});var Nl,x5=y(()=>{l();c();d();Pe();A();we();y1();He();Nl=class r extends G{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Mn(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();let t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{let t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===void 0||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();let t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===!1){this.expandedItem=null;return}t.expanded&&(this.expandedItem!==null&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.removeItemListeners=()=>{this.menuItems!==void 0&&this.menuItems.forEach(e=>{e.removeEventListener("expanded-change",this.handleExpandedChanged),e.removeEventListener("focus",this.handleItemFocus)})},this.setItems=()=>{let e=this.domChildren();this.removeItemListeners(),this.menuItems=e;let t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);function o(n){let s=n.getAttribute("role"),a=n.querySelector("[slot=start]");return s!==Vr.menuitem&&a===null||s===Vr.menuitem&&a!==null?1:s!==Vr.menuitem&&a!==null?2:0}let i=t.reduce((n,s)=>{let a=o(s);return n>a?n:a},0);t.forEach((n,s)=>{n.setAttribute("tabindex",s===0?"0":"-1"),n.addEventListener("expanded-change",this.handleExpandedChanged),n.addEventListener("focus",this.handleItemFocus),(n instanceof qr||"startColumnCount"in n)&&(n.startColumnCount=i)})},this.changeHandler=e=>{if(this.menuItems===void 0)return;let t=e.target,o=this.menuItems.indexOf(t);if(o!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let n=o-1;n>=0;--n){let s=this.menuItems[n],a=s.getAttribute("role");if(a===Vr.menuitemradio&&(s.checked=!1),a==="separator")break}let i=this.menuItems.length-1;for(let n=o+1;n<=i;++n){let s=this.menuItems[n],a=s.getAttribute("role");if(a===Vr.menuitemradio&&(s.checked=!1),a==="separator")break}}},this.isMenuItemElement=e=>Mn(e)&&r.focusableElementRoles.hasOwnProperty(e.getAttribute("role")),this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Y.queueUpdate(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){this.expandedItem!==null&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case Vt:this.setFocus(this.focusIndex+1,1);return;case qt:this.setFocus(this.focusIndex-1,-1);return;case kr:this.setFocus(this.menuItems.length-1,-1);return;case xr:this.setFocus(0,1);return;default:return!0}}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute("hidden"))}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,o.setAttribute("tabindex","0"),o.focus();break}e+=t}}};Nl.focusableElementRoles=g1;w([I],Nl.prototype,"items",void 0)});var k5=y(()=>{l();c();d();C5();x5()});var S5,_5=y(()=>{l();c();d();A();$t();S5=(r,e)=>O` -`});var D5=y(()=>{l();c();d();M5()});var nn,F5=y(()=>{l();c();d();Pe();A();He();nn=class extends G{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){let e=typeof this.min=="number"?this.min:0,t=typeof this.max=="number"?this.max:100,o=typeof this.value=="number"?this.value:0,i=t-e;this.percentComplete=i===0?0:Math.fround((o-e)/i*100)}};w([k({converter:se})],nn.prototype,"value",void 0);w([k({converter:se})],nn.prototype,"min",void 0);w([k({converter:se})],nn.prototype,"max",void 0);w([k({mode:"boolean"})],nn.prototype,"paused",void 0);w([I],nn.prototype,"percentComplete",void 0)});var L5,N5=y(()=>{l();c();d();A();L5=(r,e)=>O` +`});var F5=y(()=>{l();c();d();M5()});var nn,D5=y(()=>{l();c();d();Pe();A();He();nn=class extends G{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){let e=typeof this.min=="number"?this.min:0,t=typeof this.max=="number"?this.max:100,o=typeof this.value=="number"?this.value:0,i=t-e;this.percentComplete=i===0?0:Math.fround((o-e)/i*100)}};w([k({converter:se})],nn.prototype,"value",void 0);w([k({converter:se})],nn.prototype,"min",void 0);w([k({converter:se})],nn.prototype,"max",void 0);w([k({mode:"boolean"})],nn.prototype,"paused",void 0);w([I],nn.prototype,"percentComplete",void 0)});var L5,N5=y(()=>{l();c();d();A();L5=(r,e)=>O` -`});var H5=y(()=>{l();c();d();F5();N5()});var U5,B5=y(()=>{l();c();d();A();we();U5=(r,e)=>O` +`});var H5=y(()=>{l();c();d();D5();N5()});var U5,B5=y(()=>{l();c();d();A();we();U5=(r,e)=>O` @@ -830,7 +830,7 @@ try{ part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}" > - + `});var C1,Rm,j5=y(()=>{l();c();d();Go();He();C1=class extends G{},Rm=class extends Vc(C1){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Hl,K5=y(()=>{l();c();d();Pe();A();we();j5();Hl=class extends Rm{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{switch(e.key){case qo:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(e=this.defaultChecked)!==null&&e!==void 0?e:!1,this.dirtyChecked=!1))}connectedCallback(){var e,t;super.connectedCallback(),this.validate(),((e=this.parentElement)===null||e===void 0?void 0:e.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(e){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};w([k({attribute:"readonly",mode:"boolean"})],Hl.prototype,"readOnly",void 0);w([I],Hl.prototype,"name",void 0);w([I],Hl.prototype,"defaultSlottedNodes",void 0)});var W5=y(()=>{l();c();d();G5();K5()});var _i,Q5=y(()=>{l();c();d();Pe();A();He();_i=class extends G{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(e,t){if(this.scrollContainer){let o=this.scrolling==!0?"scrollstart":"scrollend";this.$emit(o,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(e,t){t&&!this.updatingItems&&Y.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;let e=this.scrollItems.reduce((t,o)=>o instanceof HTMLSlotElement?t.concat(o.assignedElements()):(t.push(o),t),[]);this.scrollItems=e,this.updatingItems=!1}setStops(){this.updateScrollStops();let{scrollContainer:e}=this,{scrollLeft:t}=e,{width:o,left:i}=e.getBoundingClientRect();this.width=o;let n=0,s=this.scrollItems.map((a,u)=>{let{left:h,width:p}=a.getBoundingClientRect(),f=Math.round(h+t-i),b=Math.round(f+p);return this.isRtl?-b:(n=b,u===0?0:f)}).concat(n);s=this.fixScrollMisalign(s),s.sort((a,u)=>Math.abs(a)-Math.abs(u)),this.scrollStops=s,this.setFlippers()}validateStops(e=!0){let t=()=>!!this.scrollStops.find(o=>o>0);return!t()&&e&&this.setStops(),t()}fixScrollMisalign(e){if(this.isRtl&&e.some(t=>t>0)){e.sort((o,i)=>i-o);let t=e[0];e=e.map(o=>o-t)}return e}setFlippers(){var e,t;let o=this.scrollContainer.scrollLeft;if((e=this.previousFlipperContainer)===null||e===void 0||e.classList.toggle("disabled",o===0),this.scrollStops){let i=Math.abs(this.scrollStops[this.scrollStops.length-1]);(t=this.nextFlipperContainer)===null||t===void 0||t.classList.toggle("disabled",this.validateStops(!1)&&Math.abs(o)+this.width>=i)}}scrollInView(e,t=0,o){var i;if(typeof e!="number"&&e&&(e=this.scrollItems.findIndex(n=>n===e||n.contains(e))),e!==void 0){o=o??t;let{scrollContainer:n,scrollStops:s,scrollItems:a}=this,{scrollLeft:u}=this.scrollContainer,{width:h}=n.getBoundingClientRect(),p=s[e],{width:f}=a[e].getBoundingClientRect(),b=p+f,C=u+t>p;if(C||u+h-oC?ye-H:H-ye).find(H=>C?H+tb))!==null&&i!==void 0?i:0;this.scrollToPosition(R)}}}keyupHandler(e){switch(e.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext();break}}scrollToPrevious(){this.validateStops();let e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex((n,s)=>n>=e&&(this.isRtl||s===this.scrollStops.length-1||this.scrollStops[s+1]>e)),o=Math.abs(this.scrollStops[t+1]),i=this.scrollStops.findIndex(n=>Math.abs(n)+this.width>o);(i>=t||i===-1)&&(i=t>0?t-1:0),this.scrollToPosition(this.scrollStops[i],e)}scrollToNext(){this.validateStops();let e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex(n=>Math.abs(n)>=Math.abs(e)),o=this.scrollStops.findIndex(n=>Math.abs(e)+this.width<=Math.abs(n)),i=t;o>t+2?i=o-2:t{h&&h.target!==h.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=e,this.setFlippers(),this.content.removeEventListener("transitionend",s),this.scrolling=!1)};if(n===0){s();return}this.content.addEventListener("transitionend",s);let a=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth,u=this.scrollContainer.scrollLeft-Math.min(e,a);this.isRtl&&(u=this.scrollContainer.scrollLeft+Math.min(Math.abs(e),a)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${u}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.scrollContainer.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}};w([k({converter:se})],_i.prototype,"speed",void 0);w([k],_i.prototype,"duration",void 0);w([k],_i.prototype,"easing",void 0);w([k({attribute:"flippers-hidden-from-at",converter:ws})],_i.prototype,"flippersHiddenFromAT",void 0);w([I],_i.prototype,"scrolling",void 0);w([I],_i.prototype,"scrollItems",void 0);w([k({attribute:"view"})],_i.prototype,"view",void 0)});var Y5,Z5=y(()=>{l();c();d();A();$t();Y5=(r,e)=>{var t,o;return O` @@ -848,7 +848,7 @@ try{ >
@@ -928,7 +928,7 @@ try{ ${Ee("listbox")} > @@ -963,7 +963,7 @@ try{ -`});function oh(r,e,t,o){let i=ma(0,1,(r-e)/(t-e));return o===et.rtl&&(i=1-i),i}var S1=y(()=>{l();c();d();we()});var Dm,Ei,fI=y(()=>{l();c();d();Pe();A();we();S1();He();Dm={min:0,max:0,direction:et.ltr,orientation:Tt.horizontal,disabled:!1},Ei=class extends G{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=et.ltr,this.getSliderConfiguration=()=>{if(!this.isSliderConfig(this.parentNode))this.sliderDirection=Dm.direction||et.ltr,this.sliderOrientation=Dm.orientation||Tt.horizontal,this.sliderMaxPosition=Dm.max,this.sliderMinPosition=Dm.min;else{let e=this.parentNode,{min:t,max:o,direction:i,orientation:n,disabled:s}=e;s!==void 0&&(this.disabled=s),this.sliderDirection=i||et.ltr,this.sliderOrientation=n||Tt.horizontal,this.sliderMaxPosition=o,this.sliderMinPosition=t}},this.positionAsStyle=()=>{let e=this.sliderDirection?this.sliderDirection:et.ltr,t=oh(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition)),o=Math.round((1-t)*100),i=Math.round(t*100);return Number.isNaN(i)&&Number.isNaN(o)&&(o=50,i=50),this.sliderOrientation===Tt.horizontal?e===et.rtl?`right: ${i}%; left: ${o}%;`:`left: ${i}%; right: ${o}%;`:`top: ${i}%; bottom: ${o}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=pe.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(e,t){switch(t){case"direction":this.sliderDirection=e.direction;break;case"orientation":this.sliderOrientation=e.orientation;break;case"max":this.sliderMaxPosition=e.max;break;case"min":this.sliderMinPosition=e.min;break;default:break}this.positionStyle=this.positionAsStyle()}isSliderConfig(e){return e.max!==void 0&&e.min!==void 0}};w([I],Ei.prototype,"positionStyle",void 0);w([k],Ei.prototype,"position",void 0);w([k({attribute:"hide-mark",mode:"boolean"})],Ei.prototype,"hideMark",void 0);w([k({attribute:"disabled",mode:"boolean"})],Ei.prototype,"disabled",void 0);w([I],Ei.prototype,"sliderOrientation",void 0);w([I],Ei.prototype,"sliderMinPosition",void 0);w([I],Ei.prototype,"sliderMaxPosition",void 0);w([I],Ei.prototype,"sliderDirection",void 0)});var mI=y(()=>{l();c();d();pI();fI()});var gI,vI=y(()=>{l();c();d();A();we();gI=(r,e)=>O` +`});function oh(r,e,t,o){let i=ma(0,1,(r-e)/(t-e));return o===et.rtl&&(i=1-i),i}var S1=y(()=>{l();c();d();we()});var Fm,Ei,fI=y(()=>{l();c();d();Pe();A();we();S1();He();Fm={min:0,max:0,direction:et.ltr,orientation:Tt.horizontal,disabled:!1},Ei=class extends G{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=et.ltr,this.getSliderConfiguration=()=>{if(!this.isSliderConfig(this.parentNode))this.sliderDirection=Fm.direction||et.ltr,this.sliderOrientation=Fm.orientation||Tt.horizontal,this.sliderMaxPosition=Fm.max,this.sliderMinPosition=Fm.min;else{let e=this.parentNode,{min:t,max:o,direction:i,orientation:n,disabled:s}=e;s!==void 0&&(this.disabled=s),this.sliderDirection=i||et.ltr,this.sliderOrientation=n||Tt.horizontal,this.sliderMaxPosition=o,this.sliderMinPosition=t}},this.positionAsStyle=()=>{let e=this.sliderDirection?this.sliderDirection:et.ltr,t=oh(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition)),o=Math.round((1-t)*100),i=Math.round(t*100);return Number.isNaN(i)&&Number.isNaN(o)&&(o=50,i=50),this.sliderOrientation===Tt.horizontal?e===et.rtl?`right: ${i}%; left: ${o}%;`:`left: ${i}%; right: ${o}%;`:`top: ${i}%; bottom: ${o}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=pe.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(e,t){switch(t){case"direction":this.sliderDirection=e.direction;break;case"orientation":this.sliderOrientation=e.orientation;break;case"max":this.sliderMaxPosition=e.max;break;case"min":this.sliderMinPosition=e.min;break;default:break}this.positionStyle=this.positionAsStyle()}isSliderConfig(e){return e.max!==void 0&&e.min!==void 0}};w([I],Ei.prototype,"positionStyle",void 0);w([k],Ei.prototype,"position",void 0);w([k({attribute:"hide-mark",mode:"boolean"})],Ei.prototype,"hideMark",void 0);w([k({attribute:"disabled",mode:"boolean"})],Ei.prototype,"disabled",void 0);w([I],Ei.prototype,"sliderOrientation",void 0);w([I],Ei.prototype,"sliderMinPosition",void 0);w([I],Ei.prototype,"sliderMaxPosition",void 0);w([I],Ei.prototype,"sliderDirection",void 0)});var mI=y(()=>{l();c();d();pI();fI()});var gI,vI=y(()=>{l();c();d();A();we();gI=(r,e)=>O` -`});var _1,Fm,yI=y(()=>{l();c();d();Go();He();_1=class extends G{},Fm=class extends Ar(_1){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var KM,Rr,bI=y(()=>{l();c();d();Pe();A();we();ga();S1();yI();KM={singleValue:"single-value"},Rr=class extends Fm{constructor(){super(...arguments),this.direction=et.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=Tt.horizontal,this.mode=KM.singleValue,this.keypressHandler=e=>{if(!this.readOnly){if(e.key===xr)e.preventDefault(),this.value=`${this.min}`;else if(e.key===kr)e.preventDefault(),this.value=`${this.max}`;else if(!e.shiftKey)switch(e.key){case bo:case qt:e.preventDefault(),this.increment();break;case yo:case Vt:e.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{let e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.bottom,this.trackMinHeight=e.top,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{let t=`${e?"remove":"add"}EventListener`;this[t]("keydown",this.keypressHandler),this[t]("mousedown",this.handleMouseDown),this.thumb[t]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[t]("touchstart",this.handleThumbMouseDown,{passive:!0}),e&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented)return;e.target.focus()}let t=`${e!==null?"add":"remove"}EventListener`;window[t]("mouseup",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove,{passive:!0}),window[t]("touchmove",this.handleMouseMove,{passive:!0}),window[t]("touchend",this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;let t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,o=this.orientation===Tt.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(o)}`},this.calculateNewValue=e=>{let t=oh(e,this.orientation===Tt.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Tt.horizontal?this.trackWidth:this.trackHeight,this.direction),o=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(o)},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{let t=`${e!==null?"add":"remove"}EventListener`;if((e===null||!this.disabled&&!this.readOnly)&&(window[t]("mouseup",this.handleWindowMouseUp),window.document[t]("mouseleave",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove),e)){e.preventDefault(),this.setupTrackConstraints(),e.target.focus();let o=this.orientation===Tt.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(o)}`}},this.convertToConstrainedValue=e=>{isNaN(e)&&(e=this.min);let t=e-this.min,o=Math.round(t/this.step),i=t-o*(this.stepMultiplier*this.step)/this.stepMultiplier;return t=i>=Number(this.step)/2?t-i+Number(this.step):t-i,t+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){super.valueChanged(e,t),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=ui(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){let e=this.direction!==et.rtl&&this.orientation!==Tt.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),t=this.convertToConstrainedValue(e),o=tNumber(this.min)?`${t}`:`${this.min}`;this.value=o}setThumbPositionForOrientation(e){let o=(1-oh(Number(this.value),Number(this.min),Number(this.max),e))*100;this.orientation===Tt.horizontal?this.position=this.isDragging?`right: ${o}%; transition: none;`:`right: ${o}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${o}%; transition: none;`:`bottom: ${o}%; transition: all 0.2s ease;`}updateStepMultiplier(){let e=this.step+"",t=this.step%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{let e=parseFloat(this.value);!Number.isNaN(e)&&(ethis.max)&&(this.value=this.midpoint)}}};w([k({attribute:"readonly",mode:"boolean"})],Rr.prototype,"readOnly",void 0);w([I],Rr.prototype,"direction",void 0);w([I],Rr.prototype,"isDragging",void 0);w([I],Rr.prototype,"position",void 0);w([I],Rr.prototype,"trackWidth",void 0);w([I],Rr.prototype,"trackMinWidth",void 0);w([I],Rr.prototype,"trackHeight",void 0);w([I],Rr.prototype,"trackLeft",void 0);w([I],Rr.prototype,"trackMinHeight",void 0);w([I],Rr.prototype,"valueTextFormatter",void 0);w([k({converter:se})],Rr.prototype,"min",void 0);w([k({converter:se})],Rr.prototype,"max",void 0);w([k({converter:se})],Rr.prototype,"step",void 0);w([k],Rr.prototype,"orientation",void 0);w([k],Rr.prototype,"mode",void 0)});var wI=y(()=>{l();c();d();vI();bI()});var CI,xI=y(()=>{l();c();d();A();CI=(r,e)=>O` +`});var _1,Dm,yI=y(()=>{l();c();d();Go();He();_1=class extends G{},Dm=class extends Ar(_1){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var KM,Rr,bI=y(()=>{l();c();d();Pe();A();we();ga();S1();yI();KM={singleValue:"single-value"},Rr=class extends Dm{constructor(){super(...arguments),this.direction=et.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=Tt.horizontal,this.mode=KM.singleValue,this.keypressHandler=e=>{if(!this.readOnly){if(e.key===xr)e.preventDefault(),this.value=`${this.min}`;else if(e.key===kr)e.preventDefault(),this.value=`${this.max}`;else if(!e.shiftKey)switch(e.key){case bo:case qt:e.preventDefault(),this.increment();break;case yo:case Vt:e.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{let e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.bottom,this.trackMinHeight=e.top,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{let t=`${e?"remove":"add"}EventListener`;this[t]("keydown",this.keypressHandler),this[t]("mousedown",this.handleMouseDown),this.thumb[t]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[t]("touchstart",this.handleThumbMouseDown,{passive:!0}),e&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented)return;e.target.focus()}let t=`${e!==null?"add":"remove"}EventListener`;window[t]("mouseup",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove,{passive:!0}),window[t]("touchmove",this.handleMouseMove,{passive:!0}),window[t]("touchend",this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;let t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,o=this.orientation===Tt.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(o)}`},this.calculateNewValue=e=>{let t=oh(e,this.orientation===Tt.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Tt.horizontal?this.trackWidth:this.trackHeight,this.direction),o=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(o)},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{let t=`${e!==null?"add":"remove"}EventListener`;if((e===null||!this.disabled&&!this.readOnly)&&(window[t]("mouseup",this.handleWindowMouseUp),window.document[t]("mouseleave",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove),e)){e.preventDefault(),this.setupTrackConstraints(),e.target.focus();let o=this.orientation===Tt.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(o)}`}},this.convertToConstrainedValue=e=>{isNaN(e)&&(e=this.min);let t=e-this.min,o=Math.round(t/this.step),i=t-o*(this.stepMultiplier*this.step)/this.stepMultiplier;return t=i>=Number(this.step)/2?t-i+Number(this.step):t-i,t+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){super.valueChanged(e,t),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=ui(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){let e=this.direction!==et.rtl&&this.orientation!==Tt.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),t=this.convertToConstrainedValue(e),o=tNumber(this.min)?`${t}`:`${this.min}`;this.value=o}setThumbPositionForOrientation(e){let o=(1-oh(Number(this.value),Number(this.min),Number(this.max),e))*100;this.orientation===Tt.horizontal?this.position=this.isDragging?`right: ${o}%; transition: none;`:`right: ${o}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${o}%; transition: none;`:`bottom: ${o}%; transition: all 0.2s ease;`}updateStepMultiplier(){let e=this.step+"",t=this.step%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{let e=parseFloat(this.value);!Number.isNaN(e)&&(ethis.max)&&(this.value=this.midpoint)}}};w([k({attribute:"readonly",mode:"boolean"})],Rr.prototype,"readOnly",void 0);w([I],Rr.prototype,"direction",void 0);w([I],Rr.prototype,"isDragging",void 0);w([I],Rr.prototype,"position",void 0);w([I],Rr.prototype,"trackWidth",void 0);w([I],Rr.prototype,"trackMinWidth",void 0);w([I],Rr.prototype,"trackHeight",void 0);w([I],Rr.prototype,"trackLeft",void 0);w([I],Rr.prototype,"trackMinHeight",void 0);w([I],Rr.prototype,"valueTextFormatter",void 0);w([k({converter:se})],Rr.prototype,"min",void 0);w([k({converter:se})],Rr.prototype,"max",void 0);w([k({converter:se})],Rr.prototype,"step",void 0);w([k],Rr.prototype,"orientation",void 0);w([k],Rr.prototype,"mode",void 0)});var wI=y(()=>{l();c();d();vI();bI()});var CI,xI=y(()=>{l();c();d();A();CI=(r,e)=>O`