UNPKG

@fluid-topics/ft-icon

Version:

Typography components

6 lines 276 kB
"use strict";(()=>{var Hs=Object.create;var zr=Object.defineProperty;var Fs=Object.getOwnPropertyDescriptor;var zs=Object.getOwnPropertyNames;var Gs=Object.getPrototypeOf,js=Object.prototype.hasOwnProperty;var Ks=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),M=(t,e)=>{for(var o in e)zr(t,o,{get:e[o],enumerable:!0})},Vs=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of zs(e))!js.call(t,a)&&a!==o&&zr(t,a,{get:()=>e[a],enumerable:!(n=Fs(e,a))||n.enumerable});return t};var Zs=(t,e,o)=>(o=t!=null?Hs(Gs(t)):{},Vs(e||!t||!t.__esModule?zr(o,"default",{value:t,enumerable:!0}):o,t));var ms=Ks((Pe,ys)=>{var Mr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Br=function(){function t(){this.fetch=!1,this.DOMException=Mr.DOMException}return t.prototype=Mr,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function l(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var x={next:function(){var _=y.shift();return{done:_===void 0,value:_}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function p(y){this.map={},y instanceof p?y.forEach(function(x,_){this.append(_,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}p.prototype.append=function(y,x){y=l(y),x=u(x);var _=this.map[y];this.map[y]=_?_+", "+x:x},p.prototype.delete=function(y){delete this.map[l(y)]},p.prototype.get=function(y){return y=l(y),this.has(y)?this.map[y]:null},p.prototype.has=function(y){return this.map.hasOwnProperty(l(y))},p.prototype.set=function(y,x){this.map[l(y)]=u(x)},p.prototype.forEach=function(y,x){for(var _ in this.map)this.map.hasOwnProperty(_)&&y.call(x,this.map[_],_,this)},p.prototype.keys=function(){var y=[];return this.forEach(function(x,_){y.push(_)}),h(y)},p.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),h(y)},p.prototype.entries=function(){var y=[];return this.forEach(function(x,_){y.push([_,x])}),h(y)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function m(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function g(y){return new Promise(function(x,_){y.onload=function(){x(y.result)},y.onerror=function(){_(y.error)}})}function b(y){var x=new FileReader,_=g(x);return x.readAsArrayBuffer(y),_}function S(y){var x=new FileReader,_=g(x),I=/charset=([A-Za-z0-9_-]+)/.exec(y.type),D=I?I[1]:"utf-8";return x.readAsText(y,D),_}function C(y){for(var x=new Uint8Array(y),_=new Array(x.length),I=0;I<x.length;I++)_[I]=String.fromCharCode(x[I]);return _.join("")}function w(y){if(y.slice)return y.slice(0);var x=new Uint8Array(y.byteLength);return x.set(new Uint8Array(y)),x.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=w(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||d(y))?this._bodyArrayBuffer=w(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=m(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(N)}),this.json=function(){return this.text().then(JSON.parse)},this}var O=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(y){var x=y.toUpperCase();return O.indexOf(x)>-1?x:y}function E(y,x){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var _=x.body;if(y instanceof E){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,x.headers||(this.headers=new p(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!_&&y._bodyInit!=null&&(_=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new p(x.headers)),this.method=v(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var T=new AbortController;return T.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var I=/([?&])_=[^&]*/;if(I.test(this.url))this.url=this.url.replace(I,"$1_="+new Date().getTime());else{var D=/\?/;this.url+=(D.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function N(y){var x=new FormData;return y.trim().split("&").forEach(function(_){if(_){var I=_.split("="),D=I.shift().replace(/\+/g," "),T=I.join("=").replace(/\+/g," ");x.append(decodeURIComponent(D),decodeURIComponent(T))}}),x}function L(y){var x=new p,_=y.replace(/\r?\n[\t ]+/g," ");return _.split("\r").map(function(I){return I.indexOf(` `)===0?I.substr(1,I.length):I}).forEach(function(I){var D=I.split(":"),T=D.shift().trim();if(T){var re=D.join(":").trim();try{x.append(T,re)}catch(pt){console.warn("Response "+pt.message)}}}),x}R.call(E.prototype);function U(y,x){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new p(x.headers),this.url=x.url||"",this._initBody(y)}R.call(U.prototype),U.prototype.clone=function(){return new U(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},U.error=function(){var y=new U(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var k=[301,302,303,307,308];U.redirect=function(y,x){if(k.indexOf(x)===-1)throw new RangeError("Invalid status code");return new U(null,{status:x,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,_){this.message=x,this.name=_;var I=Error(x);this.stack=I.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function P(y,x){return new Promise(function(_,I){var D=new E(y,x);if(D.signal&&D.signal.aborted)return I(new o.DOMException("Aborted","AbortError"));var T=new XMLHttpRequest;function re(){T.abort()}T.onload=function(){var G={statusText:T.statusText,headers:L(T.getAllResponseHeaders()||"")};D.url.indexOf("file://")===0&&(T.status<200||T.status>599)?G.status=200:G.status=T.status,G.url="responseURL"in T?T.responseURL:G.headers.get("X-Request-URL");var Te="response"in T?T.response:T.responseText;setTimeout(function(){_(new U(Te,G))},0)},T.onerror=function(){setTimeout(function(){I(new TypeError("Network request failed"))},0)},T.ontimeout=function(){setTimeout(function(){I(new TypeError("Network request timed out"))},0)},T.onabort=function(){setTimeout(function(){I(new o.DOMException("Aborted","AbortError"))},0)};function pt(G){try{return G===""&&n.location.href?n.location.href:G}catch{return G}}if(T.open(D.method,pt(D.url),!0),D.credentials==="include"?T.withCredentials=!0:D.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&(a.blob?T.responseType="blob":a.arrayBuffer&&(T.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof p||n.Headers&&x.headers instanceof n.Headers)){var Hn=[];Object.getOwnPropertyNames(x.headers).forEach(function(G){Hn.push(l(G)),T.setRequestHeader(G,u(x.headers[G]))}),D.headers.forEach(function(G,Te){Hn.indexOf(Te)===-1&&T.setRequestHeader(Te,G)})}else D.headers.forEach(function(G,Te){T.setRequestHeader(Te,G)});D.signal&&(D.signal.addEventListener("abort",re),T.onreadystatechange=function(){T.readyState===4&&D.signal.removeEventListener("abort",re)}),T.send(typeof D._bodyInit>"u"?null:D._bodyInit)})}return P.polyfill=!0,n.fetch||(n.fetch=P,n.Headers=p,n.Request=E,n.Response=U),o.Headers=p,o.Request=E,o.Response=U,o.fetch=P,o}({})})(Br);Br.fetch.ponyfill=!0;delete Br.fetch.polyfill;var ft=Mr.fetch?Mr:Br;Pe=ft.fetch;Pe.default=ft.fetch;Pe.fetch=ft.fetch;Pe.Headers=ft.Headers;Pe.Request=ft.Request;Pe.Response=ft.Response;ys.exports=Pe});if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,n=window.customElements,a=new WeakMap,i=new WeakMap,s=new WeakMap,d=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(O,v){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(v)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=v.prototype.attributeChangedCallback,N=new Set(v.observedAttributes||[]);m(v,N,E);let L={elementClass:v,connectedCallback:v.prototype.connectedCallback,disconnectedCallback:v.prototype.disconnectedCallback,adoptedCallback:v.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:v.formAssociated,formAssociatedCallback:v.prototype.formAssociatedCallback,formDisabledCallback:v.prototype.formDisabledCallback,formResetCallback:v.prototype.formResetCallback,formStateRestoreCallback:v.prototype.formStateRestoreCallback,observedAttributes:N};this._definitionsByTag.set(O,L),this._definitionsByClass.set(v,L);let U=o.call(n,O);U||(U=p(O),e.call(n,O,U)),this===window.customElements&&(s.set(v,L),L.standInClass=U);let k=this._awaitingUpgrade.get(O);if(k){this._awaitingUpgrade.delete(O);for(let y of k)i.delete(y),b(y,L,!0)}let P=this._whenDefinedPromises.get(O);return P!==void 0&&(P.resolve(v),this._whenDefinedPromises.delete(O)),v}upgrade(){C.push(this),n.upgrade.apply(n,arguments),C.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let v=this._getDefinition(O);if(v!==void 0)return Promise.resolve(v.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(N=>E.resolve=N),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,v,E){let N=this._awaitingUpgrade.get(v);N||this._awaitingUpgrade.set(v,N=new Set),E?N.add(O):N.delete(O)}};let l;window.HTMLElement=function(){let v=l;if(v)return l=void 0,v;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return v=Reflect.construct(t,[],E.standInClass),Object.setPrototypeOf(v,this.constructor.prototype),a.set(v,E),v},window.HTMLElement.prototype=t.prototype;let u=O=>O===document||O instanceof ShadowRoot,h=O=>{let v=O.getRootNode();if(!u(v)){let E=C[C.length-1];if(E instanceof CustomElementRegistry)return E;v=E.getRootNode(),u(v)||(v=d.get(v)?.getRootNode()||document)}return v.customElements},p=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let N=h(E)||window.customElements,L=N._getDefinition(O);return L?b(E,L):i.set(E,N),E}connectedCallback(){let E=a.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=a.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){a.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=a.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=a.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=a.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=a.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},m=(O,v,E)=>{if(v.size===0||E===void 0)return;let N=O.prototype.setAttribute;N&&(O.prototype.setAttribute=function(k,P){let y=k.toLowerCase();if(v.has(y)){let x=this.getAttribute(y);N.call(this,y,P),E.call(this,y,x,P)}else N.call(this,y,P)});let L=O.prototype.removeAttribute;L&&(O.prototype.removeAttribute=function(k){let P=k.toLowerCase();if(v.has(P)){let y=this.getAttribute(P);L.call(this,P),E.call(this,P,y,null)}else L.call(this,P)});let U=O.prototype.toggleAttribute;U&&(O.prototype.toggleAttribute=function(k,P){let y=k.toLowerCase();if(v.has(y)){let x=this.getAttribute(y);U.call(this,y,P);let _=this.getAttribute(y);E.call(this,y,x,_)}else U.call(this,y,P)})},g=O=>{let v=Object.getPrototypeOf(O);if(v!==window.HTMLElement)return v===t?Object.setPrototypeOf(O,window.HTMLElement):g(v)},b=(O,v,E=!1)=>{Object.setPrototypeOf(O,v.elementClass.prototype),a.set(O,v),l=O;try{new v.elementClass}catch{g(v.elementClass),new v.elementClass}v.attributeChangedCallback&&v.observedAttributes.forEach(N=>{O.hasAttribute(N)&&v.attributeChangedCallback.call(O,N,null,O.getAttribute(N))}),E&&v.connectedCallback&&O.isConnected&&v.connectedCallback.call(O)},S=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let v=S.apply(this,arguments);return O.customElements&&(v.customElements=O.customElements),v};let C=[document],w=(O,v,E=void 0)=>{let N=(E?Object.getPrototypeOf(E):O.prototype)[v];O.prototype[v]=function(){C.push(this);let L=N.apply(E||this,arguments);return L!==void 0&&d.set(L,this),C.pop(),L}};w(ShadowRoot,"createElement",document),w(ShadowRoot,"importNode",document),w(Element,"insertAdjacentHTML");let R=(O,v)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,v);Object.defineProperty(O.prototype,v,{...E,set(N){C.push(this),E.set.call(this,N),C.pop()}})};if(R(Element,"innerHTML"),R(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,v=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...k){let P=v.call(this,...k);return O.set(P,this),P},E.forEach(k=>{let P=window.ElementInternals.prototype,y=P[k];P[k]=function(...x){let _=O.get(this);if(a.get(_).formAssociated===!0)return y?.call(this,...x);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class N extends Array{constructor(P){super(...P),this._elements=P}get value(){return this._elements.find(P=>P.checked===!0)?.value||""}}class L{constructor(P){let y=new Map;P.forEach((x,_)=>{let I=x.getAttribute("name"),D=y.get(I)||[];this[+_]=x,D.push(x),y.set(I,D)}),this.length=P.length,y.forEach((x,_)=>{x&&(x.length===1?this[_]=x[0]:this[_]=new N(x))})}namedItem(P){return this[P]}}let U=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let k=U.get.call(this,[]),P=[];for(let y of k){let x=a.get(y);(!x||x.formAssociated===!0)&&P.push(y)}return new L(P)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(o,n,a)=>{if(n!==null)try{e.bind(window.customElements)(o,n,a)}catch(i){console.info(o,n,a,i)}}}var oo={};M(oo,{CSSResult:()=>Xe,LitElement:()=>fe,ReactiveElement:()=>oe,_$LE:()=>bc,_$LH:()=>yc,adoptStyles:()=>fr,css:()=>F,defaultConverter:()=>pr,getCompatibleStyle:()=>Ot,html:()=>to,isServer:()=>fu,noChange:()=>xe,notEqual:()=>Yr,nothing:()=>W,render:()=>ro,supportsAdoptingStyleSheets:()=>vt,svg:()=>hc,unsafeCSS:()=>St});var Jt=globalThis,er=Jt.ShadowRoot&&(Jt.ShadyCSS===void 0||Jt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zn=Symbol(),Fn=new WeakMap,Qt=class{constructor(e,o,n){if(this._$cssResult$=!0,n!==zn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o}get styleSheet(){let e=this.o,o=this.t;if(er&&e===void 0){let n=o!==void 0&&o.length===1;n&&(e=Fn.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Fn.set(o,e))}return e}toString(){return this.cssText}},Gn=t=>new Qt(typeof t=="string"?t:t+"",void 0,zn);var Gr=(t,e)=>{if(er)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=Jt.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}},tr=er?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(let n of e.cssRules)o+=n.cssText;return Gn(o)})(t):t;var{is:qs,defineProperty:Ys,getOwnPropertyDescriptor:Xs,getOwnPropertyNames:Js,getOwnPropertySymbols:Qs,getPrototypeOf:ec}=Object,rr=globalThis,jn=rr.trustedTypes,tc=jn?jn.emptyScript:"",rc=rr.reactiveElementPolyfillSupport,ht=(t,e)=>t,yt={toAttribute(t,e){switch(e){case Boolean:t=t?tc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch{o=null}}return o}},or=(t,e)=>!qs(t,e),Kn={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:or};Symbol.metadata??=Symbol("metadata"),rr.litPropertyMetadata??=new WeakMap;var Ie=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,o=Kn){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(e,o),!o.noAccessor){let n=Symbol(),a=this.getPropertyDescriptor(e,n,o);a!==void 0&&Ys(this.prototype,e,a)}}static getPropertyDescriptor(e,o,n){let{get:a,set:i}=Xs(this.prototype,e)??{get(){return this[o]},set(s){this[o]=s}};return{get(){return a?.call(this)},set(s){let d=a?.call(this);i.call(this,s),this.requestUpdate(e,d,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Kn}static _$Ei(){if(this.hasOwnProperty(ht("elementProperties")))return;let e=ec(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ht("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ht("properties"))){let o=this.properties,n=[...Js(o),...Qs(o)];for(let a of n)this.createProperty(a,o[a])}let e=this[Symbol.metadata];if(e!==null){let o=litPropertyMetadata.get(e);if(o!==void 0)for(let[n,a]of o)this.elementProperties.set(n,a)}this._$Eh=new Map;for(let[o,n]of this.elementProperties){let a=this._$Eu(o,n);a!==void 0&&this._$Eh.set(a,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let o=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)o.unshift(tr(a))}else e!==void 0&&o.push(tr(e));return o}static _$Eu(e,o){let n=o.attribute;return n===!1?void 0:typeof n=="string"?n: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,o=this.constructor.elementProperties;for(let n of o.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Gr(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,o,n){this._$AK(e,n)}_$EO(e,o){let n=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,n);if(a!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:yt).toAttribute(o,n.type);this._$Em=e,i==null?this.removeAttribute(a):this.setAttribute(a,i),this._$Em=null}}_$AK(e,o){let n=this.constructor,a=n._$Eh.get(e);if(a!==void 0&&this._$Em!==a){let i=n.getPropertyOptions(a),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:yt;this._$Em=a,this[a]=s.fromAttribute(o,i.type),this._$Em=null}}requestUpdate(e,o,n,a=!1,i){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??or)(a?i:this[e],o))return;this.C(e,o,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,o,n){this._$AL.has(e)||this._$AL.set(e,o),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(o){Promise.reject(o)}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[a,i]of this._$Ep)this[a]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[a,i]of n)i.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.C(a,this[a],i)}let e=!1,o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(o)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(o)}willUpdate(e){}_$AE(e){this._$E_?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(o=>this._$EO(o,this[o])),this._$ET()}updated(e){}firstUpdated(e){}};Ie.elementStyles=[],Ie.shadowRootOptions={mode:"open"},Ie[ht("elementProperties")]=new Map,Ie[ht("finalized")]=new Map,rc?.({ReactiveElement:Ie}),(rr.reactiveElementVersions??=[]).push("2.0.2");var Kr=globalThis,nr=Kr.trustedTypes,Vn=nr?nr.createPolicy("lit-html",{createHTML:t=>t}):void 0,Vr="$lit$",de=`lit$${(Math.random()+"").slice(9)}$`,Zr="?"+de,oc=`<${Zr}>`,De=document,ar=()=>De.createComment(""),gt=t=>t===null||typeof t!="object"&&typeof t!="function",Qn=Array.isArray,ea=t=>Qn(t)||typeof t?.[Symbol.iterator]=="function",jr=`[ \f\r]`,mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zn=/-->/g,qn=/>/g,ke=RegExp(`>|${jr}(?:([^\\s"'>=/]+)(${jr}*=${jr}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),Yn=/'/g,Xn=/"/g,ta=/^(?:script|style|textarea|title)$/i,ra=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Qd=ra(1),eu=ra(2),Z=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Jn=new WeakMap,Ue=De.createTreeWalker(De,129);function oa(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vn!==void 0?Vn.createHTML(e):e}var na=(t,e)=>{let o=t.length-1,n=[],a,i=e===2?"<svg>":"",s=mt;for(let d=0;d<o;d++){let l=t[d],u,h,p=-1,m=0;for(;m<l.length&&(s.lastIndex=m,h=s.exec(l),h!==null);)m=s.lastIndex,s===mt?h[1]==="!--"?s=Zn:h[1]!==void 0?s=qn:h[2]!==void 0?(ta.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=ke):h[3]!==void 0&&(s=ke):s===ke?h[0]===">"?(s=a??mt,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?ke:h[3]==='"'?Xn:Yn):s===Xn||s===Yn?s=ke:s===Zn||s===qn?s=mt:(s=ke,a=void 0);let g=s===ke&&t[d+1].startsWith("/>")?" ":"";i+=s===mt?l+oc:p>=0?(n.push(u),l.slice(0,p)+Vr+l.slice(p)+de+g):l+de+(p===-2?d:g)}return[oa(t,i+(t[o]||"<?>")+(e===2?"</svg>":"")),n]},bt=class t{constructor({strings:e,_$litType$:o},n){let a;this.parts=[];let i=0,s=0,d=e.length-1,l=this.parts,[u,h]=na(e,o);if(this.el=t.createElement(u,n),Ue.currentNode=this.el.content,o===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(a=Ue.nextNode())!==null&&l.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let p of a.getAttributeNames())if(p.endsWith(Vr)){let m=h[s++],g=a.getAttribute(p).split(de),b=/([.?@])?(.*)/.exec(m);l.push({type:1,index:i,name:b[2],strings:g,ctor:b[1]==="."?sr:b[1]==="?"?cr:b[1]==="@"?lr:Be}),a.removeAttribute(p)}else p.startsWith(de)&&(l.push({type:6,index:i}),a.removeAttribute(p));if(ta.test(a.tagName)){let p=a.textContent.split(de),m=p.length-1;if(m>0){a.textContent=nr?nr.emptyScript:"";for(let g=0;g<m;g++)a.append(p[g],ar()),Ue.nextNode(),l.push({type:2,index:++i});a.append(p[m],ar())}}}else if(a.nodeType===8)if(a.data===Zr)l.push({type:2,index:i});else{let p=-1;for(;(p=a.data.indexOf(de,p+1))!==-1;)l.push({type:7,index:i}),p+=de.length-1}i++}}static createElement(e,o){let n=De.createElement("template");return n.innerHTML=e,n}};function Me(t,e,o=t,n){if(e===Z)return e;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=gt(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(e=Me(t,a._$AS(t,e.values),a,n)),e}var ir=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:n}=this._$AD,a=(e?.creationScope??De).importNode(o,!0);Ue.currentNode=a;let i=Ue.nextNode(),s=0,d=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new xt(i,i.nextSibling,this,e):l.type===1?u=new l.ctor(i,l.name,l.strings,this,e):l.type===6&&(u=new dr(i,this,e)),this._$AV.push(u),l=n[++d]}s!==l?.index&&(i=Ue.nextNode(),s++)}return Ue.currentNode=De,a}p(e){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,o),o+=n.strings.length-2):n._$AI(e[o])),o++}},xt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,a){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=Me(this,e,o),gt(e)?e===H||e==null||e===""?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==Z&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):ea(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==H&&gt(this._$AH)?this._$AA.nextSibling.data=e:this.$(De.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=bt.createElement(oa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new ir(a,this),s=i.u(this.options);i.p(o),this.$(s),this._$AH=i}}_$AC(e){let o=Jn.get(e.strings);return o===void 0&&Jn.set(e.strings,o=new bt(e)),o}T(e){Qn(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of e)a===o.length?o.push(n=new t(this.k(ar()),this.k(ar()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Be=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,a,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(e,o=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=Me(this,e,o,0),s=!gt(e)||e!==this._$AH&&e!==Z,s&&(this._$AH=e);else{let d=e,l,u;for(e=i[0],l=0;l<i.length-1;l++)u=Me(this,d[n+l],o,l),u===Z&&(u=this._$AH[l]),s||=!gt(u)||u!==this._$AH[l],u===H?e=H:e!==H&&(e+=(u??"")+i[l+1]),this._$AH[l]=u}s&&!a&&this.O(e)}O(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},sr=class extends Be{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===H?void 0:e}},cr=class extends Be{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}},lr=class extends Be{constructor(e,o,n,a,i){super(e,o,n,a,i),this.type=5}_$AI(e,o=this){if((e=Me(this,e,o,0)??H)===Z)return;let n=this._$AH,a=e===H&&n!==H||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==H&&(n===H||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},dr=class{constructor(e,o,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Me(this,e)}},aa={j:Vr,P:de,A:Zr,C:1,M:na,L:ir,R:ea,V:Me,D:xt,I:Be,H:cr,N:lr,U:sr,B:dr},nc=Kr.litHtmlPolyfillSupport;nc?.(bt,xt),(Kr.litHtmlVersions??=[]).push("3.1.0");var ur=globalThis,vt=ur.ShadowRoot&&(ur.ShadyCSS===void 0||ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qr=Symbol(),ia=new WeakMap,Xe=class{constructor(e,o,n){if(this._$cssResult$=!0,n!==qr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=o}get styleSheet(){let e=this.o,o=this.t;if(vt&&e===void 0){let n=o!==void 0&&o.length===1;n&&(e=ia.get(o)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ia.set(o,e))}return e}toString(){return this.cssText}},St=t=>new Xe(typeof t=="string"?t:t+"",void 0,qr),F=(t,...e)=>{let o=t.length===1?t[0]:e.reduce((n,a,i)=>n+(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.")})(a)+t[i+1],t[0]);return new Xe(o,t,qr)},fr=(t,e)=>{if(vt)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),a=ur.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)}},Ot=vt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(let n of e.cssRules)o+=n.cssText;return St(o)})(t):t;var{is:ac,defineProperty:ic,getOwnPropertyDescriptor:sc,getOwnPropertyNames:cc,getOwnPropertySymbols:lc,getPrototypeOf:dc}=Object,hr=globalThis,sa=hr.trustedTypes,uc=sa?sa.emptyScript:"",fc=hr.reactiveElementPolyfillSupport,Et=(t,e)=>t,pr={toAttribute(t,e){switch(e){case Boolean:t=t?uc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch{o=null}}return o}},Yr=(t,e)=>!ac(t,e),ca={attribute:!0,type:String,converter:pr,reflect:!1,hasChanged:Yr};Symbol.metadata??=Symbol("metadata"),hr.litPropertyMetadata??=new WeakMap;var oe=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,o=ca){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(e,o),!o.noAccessor){let n=Symbol(),a=this.getPropertyDescriptor(e,n,o);a!==void 0&&ic(this.prototype,e,a)}}static getPropertyDescriptor(e,o,n){let{get:a,set:i}=sc(this.prototype,e)??{get(){return this[o]},set(s){this[o]=s}};return{get(){return a?.call(this)},set(s){let d=a?.call(this);i.call(this,s),this.requestUpdate(e,d,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ca}static _$Ei(){if(this.hasOwnProperty(Et("elementProperties")))return;let e=dc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Et("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Et("properties"))){let o=this.properties,n=[...cc(o),...lc(o)];for(let a of n)this.createProperty(a,o[a])}let e=this[Symbol.metadata];if(e!==null){let o=litPropertyMetadata.get(e);if(o!==void 0)for(let[n,a]of o)this.elementProperties.set(n,a)}this._$Eh=new Map;for(let[o,n]of this.elementProperties){let a=this._$Eu(o,n);a!==void 0&&this._$Eh.set(a,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let o=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)o.unshift(Ot(a))}else e!==void 0&&o.push(Ot(e));return o}static _$Eu(e,o){let n=o.attribute;return n===!1?void 0:typeof n=="string"?n: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,o=this.constructor.elementProperties;for(let n of o.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return fr(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,o,n){this._$AK(e,n)}_$EO(e,o){let n=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,n);if(a!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:pr).toAttribute(o,n.type);this._$Em=e,i==null?this.removeAttribute(a):this.setAttribute(a,i),this._$Em=null}}_$AK(e,o){let n=this.constructor,a=n._$Eh.get(e);if(a!==void 0&&this._$Em!==a){let i=n.getPropertyOptions(a),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:pr;this._$Em=a,this[a]=s.fromAttribute(o,i.type),this._$Em=null}}requestUpdate(e,o,n,a=!1,i){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Yr)(a?i:this[e],o))return;this.C(e,o,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,o,n){this._$AL.has(e)||this._$AL.set(e,o),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(o){Promise.reject(o)}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[a,i]of this._$Ep)this[a]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[a,i]of n)i.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.C(a,this[a],i)}let e=!1,o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(o)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(o)}willUpdate(e){}_$AE(e){this._$E_?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(o=>this._$EO(o,this[o])),this._$ET()}updated(e){}firstUpdated(e){}};oe.elementStyles=[],oe.shadowRootOptions={mode:"open"},oe[Et("elementProperties")]=new Map,oe[Et("finalized")]=new Map,fc?.({ReactiveElement:oe}),(hr.reactiveElementVersions??=[]).push("2.0.2");var Jr=globalThis,yr=Jr.trustedTypes,la=yr?yr.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qr="$lit$",ue=`lit$${(Math.random()+"").slice(9)}$`,eo="?"+ue,pc=`<${eo}>`,He=document,Ct=()=>He.createComment(""),wt=t=>t===null||typeof t!="object"&&typeof t!="function",ya=Array.isArray,ma=t=>ya(t)||typeof t?.[Symbol.iterator]=="function",Xr=`[ \f\r]`,At=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,da=/-->/g,ua=/>/g,$e=RegExp(`>|${Xr}(?:([^\\s"'>=/]+)(${Xr}*=${Xr}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),fa=/'/g,pa=/"/g,ga=/^(?:script|style|textarea|title)$/i,ba=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),to=ba(1),hc=ba(2),xe=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),ha=new WeakMap,We=He.createTreeWalker(He,129);function xa(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return la!==void 0?la.createHTML(e):e}var va=(t,e)=>{let o=t.length-1,n=[],a,i=e===2?"<svg>":"",s=At;for(let d=0;d<o;d++){let l=t[d],u,h,p=-1,m=0;for(;m<l.length&&(s.lastIndex=m,h=s.exec(l),h!==null);)m=s.lastIndex,s===At?h[1]==="!--"?s=da:h[1]!==void 0?s=ua:h[2]!==void 0?(ga.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=$e):h[3]!==void 0&&(s=$e):s===$e?h[0]===">"?(s=a??At,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?$e:h[3]==='"'?pa:fa):s===pa||s===fa?s=$e:s===da||s===ua?s=At:(s=$e,a=void 0);let g=s===$e&&t[d+1].startsWith("/>")?" ":"";i+=s===At?l+pc:p>=0?(n.push(u),l.slice(0,p)+Qr+l.slice(p)+ue+g):l+ue+(p===-2?d:g)}return[xa(t,i+(t[o]||"<?>")+(e===2?"</svg>":"")),n]},Rt=class t{constructor({strings:e,_$litType$:o},n){let a;this.parts=[];let i=0,s=0,d=e.length-1,l=this.parts,[u,h]=va(e,o);if(this.el=t.createElement(u,n),We.currentNode=this.el.content,o===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(a=We.nextNode())!==null&&l.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let p of a.getAttributeNames())if(p.endsWith(Qr)){let m=h[s++],g=a.getAttribute(p).split(ue),b=/([.?@])?(.*)/.exec(m);l.push({type:1,index:i,name:b[2],strings:g,ctor:b[1]==="."?gr:b[1]==="?"?br:b[1]==="@"?xr:ze}),a.removeAttribute(p)}else p.startsWith(ue)&&(l.push({type:6,index:i}),a.removeAttribute(p));if(ga.test(a.tagName)){let p=a.textContent.split(ue),m=p.length-1;if(m>0){a.textContent=yr?yr.emptyScript:"";for(let g=0;g<m;g++)a.append(p[g],Ct()),We.nextNode(),l.push({type:2,index:++i});a.append(p[m],Ct())}}}else if(a.nodeType===8)if(a.data===eo)l.push({type:2,index:i});else{let p=-1;for(;(p=a.data.indexOf(ue,p+1))!==-1;)l.push({type:7,index:i}),p+=ue.length-1}i++}}static createElement(e,o){let n=He.createElement("template");return n.innerHTML=e,n}};function Fe(t,e,o=t,n){if(e===xe)return e;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=wt(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(e=Fe(t,a._$AS(t,e.values),a,n)),e}var mr=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:n}=this._$AD,a=(e?.creationScope??He).importNode(o,!0);We.currentNode=a;let i=We.nextNode(),s=0,d=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new Je(i,i.nextSibling,this,e):l.type===1?u=new l.ctor(i,l.name,l.strings,this,e):l.type===6&&(u=new vr(i,this,e)),this._$AV.push(u),l=n[++d]}s!==l?.index&&(i=We.nextNode(),s++)}return We.currentNode=He,a}p(e){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,o),o+=n.strings.length-2):n._$AI(e[o])),o++}},Je=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,a){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=Fe(this,e,o),wt(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==xe&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):ma(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==W&&wt(this._$AH)?this._$AA.nextSibling.data=e:this.$(He.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Rt.createElement(xa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new mr(a,this),s=i.u(this.options);i.p(o),this.$(s),this._$AH=i}}_$AC(e){let o=ha.get(e.strings);return o===void 0&&ha.set(e.strings,o=new Rt(e)),o}T(e){ya(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of e)a===o.length?o.push(n=new t(this.k(Ct()),this.k(Ct()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ze=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,a,i){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=W}_$AI(e,o=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=Fe(this,e,o,0),s=!wt(e)||e!==this._$AH&&e!==xe,s&&(this._$AH=e);else{let d=e,l,u;for(e=i[0],l=0;l<i.length-1;l++)u=Fe(this,d[n+l],o,l),u===xe&&(u=this._$AH[l]),s||=!wt(u)||u!==this._$AH[l],u===W?e=W:e!==W&&(e+=(u??"")+i[l+1]),this._$AH[l]=u}s&&!a&&this.O(e)}O(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},gr=class extends ze{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===W?void 0:e}},br=class extends ze{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},xr=class extends ze{constructor(e,o,n,a,i){super(e,o,n,a,i),this.type=5}_$AI(e,o=this){if((e=Fe(this,e,o,0)??W)===xe)return;let n=this._$AH,a=e===W&&n!==W||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==W&&(n===W||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},vr=class{constructor(e,o,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Fe(this,e)}},yc={j:Qr,P:ue,A:eo,C:1,M:va,L:mr,R:ma,V:Fe,D:Je,I:ze,H:br,N:xr,U:gr,B:vr},mc=Jr.litHtmlPolyfillSupport;mc?.(Rt,Je),(Jr.litHtmlVersions??=[]).push("3.1.0");var ro=(t,e,o)=>{let n=o?.renderBefore??e,a=n._$litPart$;if(a===void 0){let i=o?.renderBefore??null;n._$litPart$=a=new Je(e.insertBefore(Ct(),i),i,void 0,o??{})}return a._$AI(t),a};var fe=class extends oe{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 o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ro(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return xe}};fe._$litElement$=!0,fe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:fe});var gc=globalThis.litElementPolyfillSupport;gc?.({LitElement:fe});var bc={_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var fu=!1;var ao={};M(ao,{customElement:()=>xc,eventOptions:()=>Sc,property:()=>j,query:()=>no,queryAll:()=>Ec,queryAssignedElements:()=>Cc,queryAssignedNodes:()=>wc,queryAsync:()=>Ac,standardProperty:()=>Sa,state:()=>Nt});var xc=t=>(e,o)=>{o!==void 0?o.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var vc={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:or},Sa=(t=vc,e,o)=>{let{kind:n,metadata:a}=o,i=globalThis.litPropertyMetadata.get(a);if(i===void 0&&globalThis.litPropertyMetadata.set(a,i=new Map),i.set(o.name,t),n==="accessor"){let{name:s}=o;return{set(d){let l=e.get.call(this);e.set.call(this,d),this.requestUpdate(s,l,t)},init(d){return d!==void 0&&this.C(s,void 0,t),d}}}if(n==="setter"){let{name:s}=o;return function(d){let l=this[s];e.call(this,d),this.requestUpdate(s,l,t)}}throw Error("Unsupported decorator location: "+n)};function j(t){return(e,o)=>typeof o=="object"?Sa(t,e,o):((n,a,i)=>{let s=a.hasOwnProperty(i);return a.constructor.createProperty(i,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(a,i):void 0})(t,e,o)}function Nt(t){return j({...t,state:!0,attribute:!1})}function Sc(t){return(e,o)=>{let n=typeof e=="function"?e:e[o];Object.assign(n,t)}}var Q=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,o),o);function no(t,e){return(o,n,a)=>{let i=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:d}=typeof n=="object"?o:a??(()=>{let l=Symbol();return{get(){return this[l]},set(u){this[l]=u}}})();return Q(o,n,{get(){let l=s.call(this);return l===void 0&&(l=i(this),(l!==null||this.hasUpdated)&&d.call(this,l)),l}})}return Q(o,n,{get(){return i(this)}})}}var Oc;function Ec(t){return(e,o)=>Q(e,o,{get(){return(this.renderRoot??(Oc??=document.createDocumentFragment())).querySelectorAll(t)}})}function Ac(t){return(e,o)=>Q(e,o,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Cc(t){return(e,o)=>{let{slot:n,selector:a}=t??{},i="slot"+(n?`[name=${n}]`:":not([name])");return Q(e,o,{get(){let s=this.renderRoot?.querySelector(i),d=s?.assignedElements(t)??[];return a===void 0?d:d.filter(l=>l.matches(a))}})}}function wc(t){return(e,o)=>{let{slot:n}=t??{},a="slot"+(n?`[name=${n}]`:":not([name])");return Q(e,o,{get(){return this.renderRoot?.querySelector(a)?.assignedNodes(t)??[]}})}}var io={};M(io,{repeat:()=>_c});var ve={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Se=t=>(...e)=>({_$litDirective$:t,values:e}),ne=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,o,n){this._$Ct=e,this._$AM=o,this._$Ci=n}_$AS(e,o){return this.update(e,o)}update(e,o){return this.render(...o)}};var{D:Rc}=aa;var Oa=()=>document.createComment(""),Qe=(t,e,o)=>{let n=t._$AA.parentNode,a=e===void 0?t._$AB