Socket
Socket
Sign inDemoInstall

@3mo/theme

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@3mo/theme - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

dist/bundle.js

@@ -1,1 +0,1 @@

(()=>{var t={777:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},969:(t,e,r)=>{var s=r(777),o=r(119),i=Object.hasOwnProperty,n=Object.create(null);for(var l in s)i.call(s,l)&&(n[s[l]]=l);var a=t.exports={to:{},get:{}};function c(t,e,r){return Math.min(Math.max(e,t),r)}function h(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}a.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=a.get.hsl(t),r="hsl";break;case"hwb":e=a.get.hwb(t),r="hwb";break;default:e=a.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},a.get.rgb=function(t){if(!t)return null;var e,r,o,n=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],r=0;r<3;r++){var l=2*r;n[r]=parseInt(e.slice(l,l+2),16)}o&&(n[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],r=0;r<3;r++)n[r]=parseInt(e[r]+e[r],16);o&&(n[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)n[r]=parseInt(e[r+1],0);e[4]&&(e[5]?n[3]=.01*parseFloat(e[4]):n[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:i.call(s,e[1])?((n=s[e[1]])[3]=1,n):null:null;for(r=0;r<3;r++)n[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(e[5]?n[3]=.01*parseFloat(e[4]):n[3]=parseFloat(e[4]))}for(r=0;r<3;r++)n[r]=c(n[r],0,255);return n[3]=c(n[3],0,1),n},a.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,c(parseFloat(e[2]),0,100),c(parseFloat(e[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},a.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,c(parseFloat(e[2]),0,100),c(parseFloat(e[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},a.to.hex=function(){var t=o(arguments);return"#"+h(t[0])+h(t[1])+h(t[2])+(t[3]<1?h(Math.round(255*t[3])):"")},a.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},a.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),s=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+s+"%)":"rgba("+e+"%, "+r+"%, "+s+"%, "+t[3]+")"},a.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},a.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},a.to.keyword=function(t){return n[t.slice(0,3)]}},119:(t,e,r)=>{"use strict";var s=r(774),o=Array.prototype.concat,i=Array.prototype.slice,n=t.exports=function(t){for(var e=[],r=0,n=t.length;r<n;r++){var l=t[r];s(l)?e=o.call(e,i.call(l)):e.push(l)}return e};n.wrap=function(t){return function(){return t(n(arguments))}}},774:t=>{t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}}},e={};function r(s){var o=e[s];if(void 0!==o)return o.exports;var i=e[s]={exports:{}};return t[s](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=r(969),e=r.n(t);class s{constructor(t){var r;this.color=t instanceof Array?t:null===(r=e().get(t))||void 0===r?void 0:r.value}get r(){return this.color[0]}get g(){return this.color[1]}get b(){return this.color[2]}get a(){return this.color[3]}get hex(){return e().to.hex(this.color)}get rgb(){return e().to.rgb(this.color)}get rgbPercent(){return e().to.rgb.percent(this.color)}get hsl(){return e().to.hsl(this.color)}get hsv(){return e().to.hwb(this.color)}get keyword(){return e().to.keyword(this.color)}toString(){return this.hex}valueOf(){return this.hex}}class o{constructor(...t){this.colors=new Array,this.colors=t.map((t=>t instanceof s?t:new s(t)))}get medianColor(){const t=this.colors[Math.floor(this.colors.length/2)];if(!t)throw new Error("No colors found");return t}}const i=window,n=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),a=new WeakMap;class c{constructor(t,e,r){if(this._$cssResult$=!0,r!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&a.set(e,t))}return t}toString(){return this.cssText}}const h=t=>new c("string"==typeof t?t:t+"",void 0,l),d=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[s+1]),t[0]);return new c(r,t,l)},u=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return h(e)})(t):t;var p;const v=window,g=v.trustedTypes,f=g?g.emptyScript:"",m=v.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},b=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:b};class _ extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const s=this._$Ep(r,e);void 0!==s&&(this._$Ev.set(s,r),t.push(s))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,r,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(u(t))}else void 0!==t&&e.push(u(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{n?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),s=i.litNonce;void 0!==s&&r.setAttribute("nonce",s),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=y){var s;const o=this.constructor._$Ep(t,r);if(void 0!==o&&!0===r.reflect){const i=(void 0!==(null===(s=r.converter)||void 0===s?void 0:s.toAttribute)?r.converter:$).toAttribute(e,r.type);this._$El=t,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(t,e){var r;const s=this.constructor,o=s._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=s.getPropertyOptions(o),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:$;this._$El=o,this[o]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let s=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var A;_.finalized=!0,_.elementProperties=new Map,_.elementStyles=[],_.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:_}),(null!==(p=v.reactiveElementVersions)&&void 0!==p?p:v.reactiveElementVersions=[]).push("1.6.1");const w=window,C=w.trustedTypes,S=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,k="?"+x,M=`<${k}>`,P=document,O=()=>P.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,T=t=>U(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,V=/>/g,I=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),L=/'/g,B=/"/g,q=/^(?:script|style|textarea|title)$/i,z=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),D=z(1),F=z(2),G=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),K=new WeakMap,J=P.createTreeWalker(P,129,null,!1),Z=(t,e)=>{const r=t.length-1,s=[];let o,i=2===e?"<svg>":"",n=j;for(let e=0;e<r;e++){const r=t[e];let l,a,c=-1,h=0;for(;h<r.length&&(n.lastIndex=h,a=n.exec(r),null!==a);)h=n.lastIndex,n===j?"!--"===a[1]?n=R:void 0!==a[1]?n=V:void 0!==a[2]?(q.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=I):void 0!==a[3]&&(n=I):n===I?">"===a[0]?(n=null!=o?o:j,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?I:'"'===a[3]?B:L):n===B||n===L?n=I:n===R||n===V?n=j:(n=I,o=void 0);const d=n===I&&t[e+1].startsWith("/>")?" ":"";i+=n===j?r+M:c>=0?(s.push(l),r.slice(0,c)+E+r.slice(c)+x+d):r+x+(-2===c?(s.push(void 0),e):d)}const l=i+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(l):l,s]};class Y{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,i=0;const n=t.length-1,l=this.parts,[a,c]=Z(t,e);if(this.el=Y.createElement(a,r),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=J.nextNode())&&l.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(E)||e.startsWith(x)){const r=c[i++];if(t.push(e),void 0!==r){const t=s.getAttribute(r.toLowerCase()+E).split(x),e=/([.?@])?(.*)/.exec(r);l.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?ot:"@"===e[1]?it:et})}else l.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(q.test(s.tagName)){const t=s.textContent.split(x),e=t.length-1;if(e>0){s.textContent=C?C.emptyScript:"";for(let r=0;r<e;r++)s.append(t[r],O()),J.nextNode(),l.push({type:2,index:++o});s.append(t[e],O())}}}else if(8===s.nodeType)if(s.data===k)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(x,t+1));)l.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const r=P.createElement("template");return r.innerHTML=t,r}}function Q(t,e,r=t,s){var o,i,n,l;if(e===G)return e;let a=void 0!==s?null===(o=r._$Co)||void 0===o?void 0:o[s]:r._$Cl;const c=N(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(i=null==a?void 0:a._$AO)||void 0===i||i.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,r,s)),void 0!==s?(null!==(n=(l=r)._$Co)&&void 0!==n?n:l._$Co=[])[s]=a:r._$Cl=a),void 0!==a&&(e=Q(t,a._$AS(t,e.values),a,s)),e}class X{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:r},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(r,!0);J.currentNode=o;let i=J.nextNode(),n=0,l=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new tt(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new nt(i,this,t)),this._$AV.push(e),a=s[++l]}n!==(null==a?void 0:a.index)&&(i=J.nextNode(),n++)}return o}v(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class tt{constructor(t,e,r,s){var o;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cp=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),N(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==G&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):T(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&N(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=Y.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(r);else{const t=new X(o,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new Y(t)),e}T(t){U(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const o of t)s===e.length?e.push(r=new tt(this.k(O()),this.k(O()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class et{constructor(t,e,r,s,o){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,s){const o=this.strings;let i=!1;if(void 0===o)t=Q(this,t,e,0),i=!N(t)||t!==this._$AH&&t!==G,i&&(this._$AH=t);else{const s=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=Q(this,s[r+n],e,n),l===G&&(l=this._$AH[n]),i||(i=!N(l)||l!==this._$AH[n]),l===W?t=W:t!==W&&(t+=(null!=l?l:"")+o[n+1]),this._$AH[n]=l}i&&!s&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}const st=C?C.emptyScript:"";class ot extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==W?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class it extends et{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=Q(this,t,e,0))&&void 0!==r?r:W)===G)return;const s=this._$AH,o=t===W&&s!==W||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==W&&(s===W||o);o&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class nt{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const lt={O:E,P:x,A:k,C:1,M:Z,L:X,D:T,R:Q,I:tt,V:et,H:ot,N:it,U:rt,F:nt},at=w.litHtmlPolyfillSupport;null==at||at(Y,tt),(null!==(A=w.litHtmlVersions)&&void 0!==A?A:w.litHtmlVersions=[]).push("2.7.1");const ct=(t,e,r)=>{var s,o;const i=null!==(s=null==r?void 0:r.renderBefore)&&void 0!==s?s:e;let n=i._$litPart$;if(void 0===n){const t=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:null;i._$litPart$=n=new tt(e.insertBefore(O(),t),t,void 0,null!=r?r:{})}return n._$AI(t),n};var ht,dt;class ut extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ct(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return G}}ut.finalized=!0,ut._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:ut});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ut});var vt;(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.3.1");null===(vt=window.HTMLSlotElement)||void 0===vt||vt.prototype.assignedElements;const gt=Symbol.for(""),ft=t=>{if((null==t?void 0:t.r)===gt)return null==t?void 0:t._$litStatic$},mt=new Map,$t=t=>(e,...r)=>{const s=r.length;let o,i;const n=[],l=[];let a,c=0,h=!1;for(;c<s;){for(a=e[c];c<s&&void 0!==(i=r[c],o=ft(i));)a+=o+e[++c],h=!0;l.push(i),n.push(a),c++}if(c===s&&n.push(e[s]),h){const t=n.join("$$lit$$");void 0===(e=mt.get(t))&&(n.raw=n,mt.set(t,e=n)),r=l}return t(e,...r)},{I:bt}=($t(D),$t(F),lt),yt=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,_t=t=>void 0===t.strings,At=()=>document.createComment(""),wt=(t,e,r)=>{var s;const o=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===r){const e=o.insertBefore(At(),i),s=o.insertBefore(At(),i);r=new bt(e,s,t,t.options)}else{const e=r._$AB.nextSibling,n=r._$AM,l=n!==t;if(l){let e;null===(s=r._$AQ)||void 0===s||s.call(r,t),r._$AM=t,void 0!==r._$AP&&(e=t._$AU)!==n._$AU&&r._$AP(e)}if(e!==i||l){let t=r._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,i),t=e}}}return r},Ct=(t,e,r=t)=>(t._$AI(e,r),t),St={},Et=(t,e=St)=>t._$AH=e,xt=t=>t._$AH,kt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let r=t._$AA;const s=t._$AB.nextSibling;for(;r!==s;){const t=r.nextSibling;r.remove(),r=t}},Mt=t=>{t._$AR()},Pt=1,Ot=2,Nt=3,Ut=4,Tt=6,Ht=t=>(...e)=>({_$litDirective$:t,values:e});class jt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Rt=(t,e)=>{var r,s;const o=t._$AN;if(void 0===o)return!1;for(const t of o)null===(s=(r=t)._$AO)||void 0===s||s.call(r,e,!1),Rt(t,e);return!0},Vt=t=>{let e,r;do{if(void 0===(e=t._$AM))break;r=e._$AN,r.delete(t),t=e}while(0===(null==r?void 0:r.size))},It=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(void 0===r)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),qt(e)}};function Lt(t){void 0!==this._$AN?(Vt(this),this._$AM=t,It(this)):this._$AM=t}function Bt(t,e=!1,r=0){const s=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(s))for(let t=r;t<s.length;t++)Rt(s[t],!1),Vt(s[t]);else null!=s&&(Rt(s,!1),Vt(s));else Rt(this,t)}const qt=t=>{var e,r,s,o;t.type==Ot&&(null!==(e=(s=t)._$AP)&&void 0!==e||(s._$AP=Bt),null!==(r=(o=t)._$AQ)&&void 0!==r||(o._$AQ=Lt))};class zt extends jt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),It(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,s;t!==this.isConnected&&(this.isConnected=t,t?null===(r=this.reconnected)||void 0===r||r.call(this):null===(s=this.disconnected)||void 0===s||s.call(this)),e&&(Rt(this,t),Vt(this))}setValue(t){if(_t(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class Dt{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class Ft{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}class Gt extends zt{constructor(){super(...arguments),this._$Cq=new Dt(this),this._$CK=new Ft}render(t,e){return G}update(t,[e,r]){if(this.isConnected||this.disconnected(),e===this._$CX)return;this._$CX=e;let s=0;const{_$Cq:o,_$CK:i}=this;return(async(t,e)=>{for await(const r of t)if(!1===await e(r))return})(e,(async t=>{for(;i.get();)await i.get();const n=o.deref();if(void 0!==n){if(n._$CX!==e)return!1;void 0!==r&&(t=r(t,s)),n.commitValue(t,s),s++}return!0})),G}commitValue(t,e){this.setValue(t)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}Ht(Gt),Ht(class extends Gt{constructor(t){if(super(t),t.type!==Ot)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$CJ=t,super.update(t,e)}commitValue(t,e){0===e&&Mt(this._$CJ);const r=wt(this._$CJ);Ct(r,t)}}),Ht(class extends jt{constructor(t){super(t),this.tt=new WeakMap}render(t){return[t]}update(t,[e]){if(yt(this.et)&&(!yt(e)||this.et.strings!==e.strings)){const e=xt(t).pop();let r=this.tt.get(this.et.strings);if(void 0===r){const t=document.createDocumentFragment();r=ct(W,t),r.setConnected(!1),this.tt.set(this.et.strings,r)}Et(r,[e]),wt(r,void 0,e)}if(yt(e)){if(!yt(this.et)||this.et.strings!==e.strings){const r=this.tt.get(e.strings);if(void 0!==r){const e=xt(r).pop();Mt(t),wt(t,void 0,e),Et(t,[e])}}this.et=e}else this.et=void 0;return this.render(e)}}),Ht(class extends jt{constructor(t){var e;if(super(t),t.type!==Pt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var r,s;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const r=!!e[t];r===this.it.has(t)||(null===(s=this.nt)||void 0===s?void 0:s.has(t))||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return G}});const Wt={};Ht(class extends jt{constructor(){super(...arguments),this.st=Wt}render(t,e){return e()}update(t,[e,r]){if(Array.isArray(e)){if(Array.isArray(this.st)&&this.st.length===e.length&&e.every(((t,e)=>t===this.st[e])))return G}else if(this.st===e)return G;return this.st=Array.isArray(e)?Array.from(e):e,this.render(e,r)}}),Ht(class extends jt{constructor(){super(...arguments),this.key=W}render(t,e){return this.key=t,e}update(t,[e,r]){return e!==this.key&&(Et(t),this.key=e),r}}),Ht(class extends jt{constructor(t){if(super(t),t.type!==Nt&&t.type!==Pt&&t.type!==Ut)throw Error("The `live` directive is not allowed on child or event bindings");if(!_t(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===G||e===W)return e;const r=t.element,s=t.name;if(t.type===Nt){if(e===r[s])return G}else if(t.type===Ut){if(!!e===r.hasAttribute(s))return G}else if(t.type===Pt&&r.getAttribute(s)===e+"")return G;return Et(t),e}});const Kt=new WeakMap,Jt=(Ht(class extends zt{render(t){return W}update(t,[e]){var r;const s=e!==this.G;return s&&void 0!==this.G&&this.ot(void 0),(s||this.rt!==this.lt)&&(this.G=e,this.ct=null===(r=t.options)||void 0===r?void 0:r.host,this.ot(this.lt=t.element)),W}ot(t){var e;if("function"==typeof this.G){const r=null!==(e=this.ct)&&void 0!==e?e:globalThis;let s=Kt.get(r);void 0===s&&(s=new WeakMap,Kt.set(r,s)),void 0!==s.get(this.G)&&this.G.call(this.ct,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ct,t)}else this.G.value=t}get rt(){var t,e,r;return"function"==typeof this.G?null===(e=Kt.get(null!==(t=this.ct)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.G):null===(r=this.G)||void 0===r?void 0:r.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),(t,e,r)=>{const s=new Map;for(let o=e;o<=r;o++)s.set(t[o],o);return s}),Zt=(Ht(class extends jt{constructor(t){if(super(t),t.type!==Ot)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let s;void 0===r?r=e:void 0!==e&&(s=e);const o=[],i=[];let n=0;for(const e of t)o[n]=s?s(e,n):n,i[n]=r(e,n),n++;return{values:i,keys:o}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,s]){var o;const i=xt(t),{values:n,keys:l}=this.dt(e,r,s);if(!Array.isArray(i))return this.ht=l,n;const a=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let h,d,u=0,p=i.length-1,v=0,g=n.length-1;for(;u<=p&&v<=g;)if(null===i[u])u++;else if(null===i[p])p--;else if(a[u]===l[v])c[v]=Ct(i[u],n[v]),u++,v++;else if(a[p]===l[g])c[g]=Ct(i[p],n[g]),p--,g--;else if(a[u]===l[g])c[g]=Ct(i[u],n[g]),wt(t,c[g+1],i[u]),u++,g--;else if(a[p]===l[v])c[v]=Ct(i[p],n[v]),wt(t,i[u],i[p]),p--,v++;else if(void 0===h&&(h=Jt(l,v,g),d=Jt(a,u,p)),h.has(a[u]))if(h.has(a[p])){const e=d.get(l[v]),r=void 0!==e?i[e]:null;if(null===r){const e=wt(t,i[u]);Ct(e,n[v]),c[v]=e}else c[v]=Ct(r,n[v]),wt(t,i[u],r),i[e]=null;v++}else kt(i[p]),p--;else kt(i[u]),u++;for(;v<=g;){const e=wt(t,c[g+1]);Ct(e,n[v]),c[v++]=e}for(;u<=p;){const t=i[u++];null!==t&&kt(t)}return this.ht=l,Et(t,c),G}}),"important"),Yt=" !"+Zt;Ht(class extends jt{constructor(t){var e;if(super(t),t.type!==Pt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach((t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?r.removeProperty(t):r[t]="")}));for(const t in e){const s=e[t];if(null!=s){this.ut.add(t);const e=s.endsWith(Yt);t.includes("-")||e?r.setProperty(t,e?s.slice(0,-11):s,e?Zt:""):r[t]=s}}return G}}),Ht(class extends jt{constructor(t){if(super(t),t.type!==Ot)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?G:(this.vt=t,document.importNode(t.content,!0))}});class Qt extends jt{constructor(t){if(super(t),this.et=W,t.type!==Ot)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this.ft=void 0,this.et=t;if(t===G)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Qt.directiveName="unsafeHTML",Qt.resultType=1;Ht(Qt);class Xt extends Qt{}Xt.directiveName="unsafeSVG",Xt.resultType=2;Ht(Xt);const te=t=>!(t=>null===t||"object"!=typeof t&&"function"!=typeof t)(t)&&"function"==typeof t.then,ee=1073741823;Ht(class extends zt{constructor(){super(...arguments),this._$C_t=ee,this._$Cwt=[],this._$Cq=new Dt(this),this._$CK=new Ft}render(...t){var e;return null!==(e=t.find((t=>!te(t))))&&void 0!==e?e:G}update(t,e){const r=this._$Cwt;let s=r.length;this._$Cwt=e;const o=this._$Cq,i=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const n=e[t];if(!te(n))return this._$C_t=t,n;t<s&&n===r[t]||(this._$C_t=ee,s=0,Promise.resolve(n).then((async t=>{for(;i.get();)await i.get();const e=o.deref();if(void 0!==e){const r=e._$Cwt.indexOf(n);r>-1&&r<e._$C_t&&(e._$C_t=r,e.setValue(t))}})))}return G}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}});class re extends jt{constructor(t){if(super(t),t.type!==Tt)throw new Error("style directive can only be used on an element");const e=t;this.element=e.element}render(t){for(const[e,r]of Object.entries(t)){([...re.handlers].find((t=>t.handles(this.element,[e,r])))??re.defaultHandler).apply(this.element,[e,r])}}}re.handlers=new Set,re.defaultHandler=new class{handles(){return!0}apply(t,[e,r]){t.style[e]=null==r?"":r}};Ht(re);Object.create;Object.create;let se=class{handles(t,[e]){return e.startsWith("--")}apply(t,[e,r]){t.style.setProperty(e,r)}};se=function(t,e,r,s){var o,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,s);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(n=(i<3?o(n):i>3?o(e,r,n):o(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n}([t=>{const e=new t;re.handlers.add(e)}],se);class oe{constructor(){this.handlers=new Set}subscribe(t){this.handlers.add(t)}unsubscribe(t){this.handlers.delete(t)}dispatch(t){for(const e of this.handlers)e(t)}}class ie{constructor(t,e,r){this.name=t,this.defaultValue=e,this.reviver=r,this.changed=new oe,ie.container.add(this)}get value(){const t=window.localStorage.getItem(this.name)??void 0;if(void 0===t)return this.defaultValue;try{return JSON.parse(t,this.reviver)}catch(e){return t}}set value(t){window.localStorage.setItem(this.name,JSON.stringify(t)),this.changed.dispatch(t),ie.changed.dispatch(this)}}ie.changed=new oe,ie.container=new Set;class ne{static inject(t,e=document.createElement("style")){return e.innerHTML=t.cssText,document.head.appendChild(e),e}}class le{}le.background=new class extends ie{constructor(){super("Theme.Background","system"),window.matchMedia("(prefers-color-scheme: dark)").onchange=()=>this.updateAttributeValue(),window.matchMedia("(prefers-color-scheme: light)").onchange=()=>this.updateAttributeValue(),this.updateAttributeValue(),this.changed.subscribe((()=>this.updateAttributeValue()))}get calculatedValue(){return"system"!==this.value?this.value:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}updateAttributeValue(){document.documentElement.setAttribute("data-theme",this.calculatedValue)}},le.accent=new class extends ie{constructor(){super("Theme.Accent",new s("rgb(0, 119, 200)")),this.parseColor=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"Color"===t.$type&&"color"in t)return new s(t.color)},this.parseColorSet=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"ColorSet"===t.$type&&"colors"in t)return new o(...t.colors.map((t=>t.color)))},this.injectCss()}get value(){let t=super.value;return t=this.parseColor(t)||this.parseColorSet(t),t||window.localStorage.removeItem(this.name),t||this.defaultValue}set value(t){t.$type=t instanceof o?"ColorSet":"Color",super.value=t,this.injectCss()}get medianColor(){return this.value instanceof o?this.value.medianColor:this.value}injectCss(){const t=this.value,e=this.medianColor,r=t instanceof o?t.colors[0]:t,s=t instanceof o?t.colors[1]:t,i=t instanceof o?t.colors[2]:t;this.styleElement=ne.inject(d`:root{--mo-color-accent-base-r:${h(null==e?void 0:e.r)}--mo-color-accent-base-g:${h(null==e?void 0:e.g)}--mo-color-accent-base-b:${h(null==e?void 0:e.b)}--mo-color-accent-gradient-1:${h(null==r?void 0:r.rgb)}--mo-color-accent-gradient-2:${h(null==s?void 0:s.rgb)}--mo-color-accent-gradient-3:${h(null==i?void 0:i.rgb)}}`,this.styleElement)}},ne.inject(d`@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap);*{font-weight:400;box-sizing:border-box}html{width:100%;height:100%}body{height:100%;width:100%;overflow:auto}:root[data-theme=light]{color-scheme:light;--mo-color-background-base:255,255,255;--mo-color-foreground-base:0,0,0;--mo-color-background:rgb(220, 221, 225);--mo-color-foreground:black;--mo-color-foreground-transparent:rgb(48, 48, 48);--mo-color-surface-base:255,255,255;--mo-color-gray-base:121,121,121;--mo-shadow-base:95,81,78}:root[data-theme=dark]{color-scheme:dark;--mo-color-background-base:0,0,0;--mo-color-foreground-base:255,255,255;--mo-color-background:rgb(16, 17, 20);--mo-color-surface-base:42,43,47;--mo-color-foreground:white;--mo-color-foreground-transparent:rgb(220, 220, 220);--mo-color-gray-base:165,165,165;--mo-shadow-base:0,1,3}:root{--mo-font-family:Roboto,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;--mo-border-radius:4px;--mo-shadow:rgba(var(--mo-shadow-base), .4) 0 1px 2px 0,rgba(var(--mo-shadow-base), .2) 0 1px 3px 1px;--mo-shadow-deep:0px 5px 5px -3px rgba(var(--mo-shadow-base), 0.2),0px 8px 10px 1px rgba(var(--mo-shadow-base), 0.14),0px 3px 14px 2px rgba(var(--mo-shadow-base), 0.12);--mo-color-on-surface:rgba(var(--mo-color-foreground-base), 0.87);--mo-color-gray:rgb(var(--mo-color-gray-base));--mo-color-gray-transparent:rgba(var(--mo-color-gray-base), 0.5);--mo-color-transparent-gray-alpha:.04;--mo-color-transparent-gray-1:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 1));--mo-color-transparent-gray-2:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 2));--mo-color-transparent-gray-3:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 3));--mo-color-transparent-gray:var(--mo-color-transparent-gray-1);--mo-color-green-base:93,170,96;--mo-color-green:rgb(var(--mo-color-green-base));--mo-color-yellow-base:232,152,35;--mo-color-yellow:rgb(var(--mo-color-yellow-base));--mo-color-red-base:221,61,49;--mo-color-red:rgb(var(--mo-color-red-base));--mo-color-blue-base:0,119,200;--mo-color-accessible-base-value:calc(((((var(--mo-color-accent-base-r) * 299) + (var(--mo-color-accent-base-g) * 587) + (var(--mo-color-accent-base-b) * 114)) / 1000) - 128) * -1000);--mo-color-accessible-base:var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value);--mo-color-accessible:rgb(var(--mo-color-accessible-base));--mo-color-accent-base:var(--mo-color-accent-base-r),var(--mo-color-accent-base-g),var(--mo-color-accent-base-b);--mo-color-accent:rgb(var(--mo-color-accent-base));--mo-color-accent-transparent:rgba(var(--mo-color-accent-base), 0.25);--mo-color-accent-gradient:linear-gradient(135deg, rgb(var(--mo-color-accent-gradient-1)), rgb(var(--mo-color-accent-gradient-2)), rgb(var(--mo-color-accent-gradient-3)));--mo-color-accent-gradient-transparent:linear-gradient(135deg, rgba(var(--mo-color-accent-gradient-1), 0.25), rgba(var(--mo-color-accent-gradient-2), 0.25), rgba(var(--mo-color-accent-gradient-3), 0.25));--mo-color-surface:rgb(var(--mo-color-surface-base));font-family:var(--mo-font-family);background-color:var(--mo-color-background);color:var(--mo-color-foreground)}`)})()})();
(()=>{var t={777:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},969:(t,e,r)=>{var s=r(777),o=r(119),i=Object.hasOwnProperty,n=Object.create(null);for(var l in s)i.call(s,l)&&(n[s[l]]=l);var a=t.exports={to:{},get:{}};function c(t,e,r){return Math.min(Math.max(e,t),r)}function h(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}a.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=a.get.hsl(t),r="hsl";break;case"hwb":e=a.get.hwb(t),r="hwb";break;default:e=a.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},a.get.rgb=function(t){if(!t)return null;var e,r,o,n=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],r=0;r<3;r++){var l=2*r;n[r]=parseInt(e.slice(l,l+2),16)}o&&(n[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],r=0;r<3;r++)n[r]=parseInt(e[r]+e[r],16);o&&(n[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)n[r]=parseInt(e[r+1],0);e[4]&&(e[5]?n[3]=.01*parseFloat(e[4]):n[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:i.call(s,e[1])?((n=s[e[1]])[3]=1,n):null:null;for(r=0;r<3;r++)n[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(e[5]?n[3]=.01*parseFloat(e[4]):n[3]=parseFloat(e[4]))}for(r=0;r<3;r++)n[r]=c(n[r],0,255);return n[3]=c(n[3],0,1),n},a.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,c(parseFloat(e[2]),0,100),c(parseFloat(e[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},a.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,c(parseFloat(e[2]),0,100),c(parseFloat(e[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},a.to.hex=function(){var t=o(arguments);return"#"+h(t[0])+h(t[1])+h(t[2])+(t[3]<1?h(Math.round(255*t[3])):"")},a.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},a.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),s=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+s+"%)":"rgba("+e+"%, "+r+"%, "+s+"%, "+t[3]+")"},a.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},a.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},a.to.keyword=function(t){return n[t.slice(0,3)]}},119:(t,e,r)=>{"use strict";var s=r(774),o=Array.prototype.concat,i=Array.prototype.slice,n=t.exports=function(t){for(var e=[],r=0,n=t.length;r<n;r++){var l=t[r];s(l)?e=o.call(e,i.call(l)):e.push(l)}return e};n.wrap=function(t){return function(){return t(n(arguments))}}},774:t=>{t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}}},e={};function r(s){var o=e[s];if(void 0!==o)return o.exports;var i=e[s]={exports:{}};return t[s](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=r(969),e=r.n(t);class s{constructor(t){var r;this.color=t instanceof Array?t:null===(r=e().get(t))||void 0===r?void 0:r.value}get r(){return this.color[0]}get g(){return this.color[1]}get b(){return this.color[2]}get a(){return this.color[3]}get hex(){return e().to.hex(this.color)}get rgb(){return e().to.rgb(this.color)}get rgbPercent(){return e().to.rgb.percent(this.color)}get hsl(){return e().to.hsl(this.color)}get hsv(){return e().to.hwb(this.color)}get keyword(){return e().to.keyword(this.color)}toString(){return this.hex}valueOf(){return this.hex}}class o{constructor(...t){this.colors=new Array,this.colors=t.map((t=>t instanceof s?t:new s(t)))}get medianColor(){const t=this.colors[Math.floor(this.colors.length/2)];if(!t)throw new Error("No colors found");return t}}const i=window,n=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),a=new WeakMap;class c{constructor(t,e,r){if(this._$cssResult$=!0,r!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&a.set(e,t))}return t}toString(){return this.cssText}}const h=t=>new c("string"==typeof t?t:t+"",void 0,l),d=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[s+1]),t[0]);return new c(r,t,l)},u=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return h(e)})(t):t;var p;const v=window,g=v.trustedTypes,f=g?g.emptyScript:"",m=v.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},b=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:b};class _ extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const s=this._$Ep(r,e);void 0!==s&&(this._$Ev.set(s,r),t.push(s))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,r,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(u(t))}else void 0!==t&&e.push(u(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{n?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),s=i.litNonce;void 0!==s&&r.setAttribute("nonce",s),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=y){var s;const o=this.constructor._$Ep(t,r);if(void 0!==o&&!0===r.reflect){const i=(void 0!==(null===(s=r.converter)||void 0===s?void 0:s.toAttribute)?r.converter:$).toAttribute(e,r.type);this._$El=t,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(t,e){var r;const s=this.constructor,o=s._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=s.getPropertyOptions(o),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:$;this._$El=o,this[o]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let s=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var A;_.finalized=!0,_.elementProperties=new Map,_.elementStyles=[],_.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:_}),(null!==(p=v.reactiveElementVersions)&&void 0!==p?p:v.reactiveElementVersions=[]).push("1.6.1");const w=window,C=w.trustedTypes,S=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,k="?"+x,M=`<${k}>`,P=document,O=()=>P.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,T=t=>U(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,V=/>/g,I=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),L=/'/g,B=/"/g,q=/^(?:script|style|textarea|title)$/i,z=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),D=z(1),F=z(2),G=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),K=new WeakMap,J=P.createTreeWalker(P,129,null,!1),Z=(t,e)=>{const r=t.length-1,s=[];let o,i=2===e?"<svg>":"",n=j;for(let e=0;e<r;e++){const r=t[e];let l,a,c=-1,h=0;for(;h<r.length&&(n.lastIndex=h,a=n.exec(r),null!==a);)h=n.lastIndex,n===j?"!--"===a[1]?n=R:void 0!==a[1]?n=V:void 0!==a[2]?(q.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=I):void 0!==a[3]&&(n=I):n===I?">"===a[0]?(n=null!=o?o:j,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?I:'"'===a[3]?B:L):n===B||n===L?n=I:n===R||n===V?n=j:(n=I,o=void 0);const d=n===I&&t[e+1].startsWith("/>")?" ":"";i+=n===j?r+M:c>=0?(s.push(l),r.slice(0,c)+E+r.slice(c)+x+d):r+x+(-2===c?(s.push(void 0),e):d)}const l=i+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(l):l,s]};class Y{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,i=0;const n=t.length-1,l=this.parts,[a,c]=Z(t,e);if(this.el=Y.createElement(a,r),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=J.nextNode())&&l.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(E)||e.startsWith(x)){const r=c[i++];if(t.push(e),void 0!==r){const t=s.getAttribute(r.toLowerCase()+E).split(x),e=/([.?@])?(.*)/.exec(r);l.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?ot:"@"===e[1]?it:et})}else l.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(q.test(s.tagName)){const t=s.textContent.split(x),e=t.length-1;if(e>0){s.textContent=C?C.emptyScript:"";for(let r=0;r<e;r++)s.append(t[r],O()),J.nextNode(),l.push({type:2,index:++o});s.append(t[e],O())}}}else if(8===s.nodeType)if(s.data===k)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(x,t+1));)l.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const r=P.createElement("template");return r.innerHTML=t,r}}function Q(t,e,r=t,s){var o,i,n,l;if(e===G)return e;let a=void 0!==s?null===(o=r._$Co)||void 0===o?void 0:o[s]:r._$Cl;const c=N(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(i=null==a?void 0:a._$AO)||void 0===i||i.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,r,s)),void 0!==s?(null!==(n=(l=r)._$Co)&&void 0!==n?n:l._$Co=[])[s]=a:r._$Cl=a),void 0!==a&&(e=Q(t,a._$AS(t,e.values),a,s)),e}class X{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:r},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(r,!0);J.currentNode=o;let i=J.nextNode(),n=0,l=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new tt(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new nt(i,this,t)),this._$AV.push(e),a=s[++l]}n!==(null==a?void 0:a.index)&&(i=J.nextNode(),n++)}return o}v(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class tt{constructor(t,e,r,s){var o;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cp=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),N(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==G&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):T(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&N(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=Y.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(r);else{const t=new X(o,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new Y(t)),e}T(t){U(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const o of t)s===e.length?e.push(r=new tt(this.k(O()),this.k(O()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class et{constructor(t,e,r,s,o){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,s){const o=this.strings;let i=!1;if(void 0===o)t=Q(this,t,e,0),i=!N(t)||t!==this._$AH&&t!==G,i&&(this._$AH=t);else{const s=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=Q(this,s[r+n],e,n),l===G&&(l=this._$AH[n]),i||(i=!N(l)||l!==this._$AH[n]),l===W?t=W:t!==W&&(t+=(null!=l?l:"")+o[n+1]),this._$AH[n]=l}i&&!s&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}const st=C?C.emptyScript:"";class ot extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==W?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class it extends et{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=Q(this,t,e,0))&&void 0!==r?r:W)===G)return;const s=this._$AH,o=t===W&&s!==W||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==W&&(s===W||o);o&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class nt{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const lt={O:E,P:x,A:k,C:1,M:Z,L:X,D:T,R:Q,I:tt,V:et,H:ot,N:it,U:rt,F:nt},at=w.litHtmlPolyfillSupport;null==at||at(Y,tt),(null!==(A=w.litHtmlVersions)&&void 0!==A?A:w.litHtmlVersions=[]).push("2.7.1");const ct=(t,e,r)=>{var s,o;const i=null!==(s=null==r?void 0:r.renderBefore)&&void 0!==s?s:e;let n=i._$litPart$;if(void 0===n){const t=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:null;i._$litPart$=n=new tt(e.insertBefore(O(),t),t,void 0,null!=r?r:{})}return n._$AI(t),n};var ht,dt;class ut extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ct(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return G}}ut.finalized=!0,ut._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:ut});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ut});var vt;(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.3.1");null===(vt=window.HTMLSlotElement)||void 0===vt||vt.prototype.assignedElements;const gt=Symbol.for(""),ft=t=>{if((null==t?void 0:t.r)===gt)return null==t?void 0:t._$litStatic$},mt=new Map,$t=t=>(e,...r)=>{const s=r.length;let o,i;const n=[],l=[];let a,c=0,h=!1;for(;c<s;){for(a=e[c];c<s&&void 0!==(i=r[c],o=ft(i));)a+=o+e[++c],h=!0;l.push(i),n.push(a),c++}if(c===s&&n.push(e[s]),h){const t=n.join("$$lit$$");void 0===(e=mt.get(t))&&(n.raw=n,mt.set(t,e=n)),r=l}return t(e,...r)},{I:bt}=($t(D),$t(F),lt),yt=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,_t=t=>void 0===t.strings,At=()=>document.createComment(""),wt=(t,e,r)=>{var s;const o=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===r){const e=o.insertBefore(At(),i),s=o.insertBefore(At(),i);r=new bt(e,s,t,t.options)}else{const e=r._$AB.nextSibling,n=r._$AM,l=n!==t;if(l){let e;null===(s=r._$AQ)||void 0===s||s.call(r,t),r._$AM=t,void 0!==r._$AP&&(e=t._$AU)!==n._$AU&&r._$AP(e)}if(e!==i||l){let t=r._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,i),t=e}}}return r},Ct=(t,e,r=t)=>(t._$AI(e,r),t),St={},Et=(t,e=St)=>t._$AH=e,xt=t=>t._$AH,kt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let r=t._$AA;const s=t._$AB.nextSibling;for(;r!==s;){const t=r.nextSibling;r.remove(),r=t}},Mt=t=>{t._$AR()},Pt=1,Ot=2,Nt=3,Ut=4,Tt=6,Ht=t=>(...e)=>({_$litDirective$:t,values:e});class jt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Rt=(t,e)=>{var r,s;const o=t._$AN;if(void 0===o)return!1;for(const t of o)null===(s=(r=t)._$AO)||void 0===s||s.call(r,e,!1),Rt(t,e);return!0},Vt=t=>{let e,r;do{if(void 0===(e=t._$AM))break;r=e._$AN,r.delete(t),t=e}while(0===(null==r?void 0:r.size))},It=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(void 0===r)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),qt(e)}};function Lt(t){void 0!==this._$AN?(Vt(this),this._$AM=t,It(this)):this._$AM=t}function Bt(t,e=!1,r=0){const s=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(s))for(let t=r;t<s.length;t++)Rt(s[t],!1),Vt(s[t]);else null!=s&&(Rt(s,!1),Vt(s));else Rt(this,t)}const qt=t=>{var e,r,s,o;t.type==Ot&&(null!==(e=(s=t)._$AP)&&void 0!==e||(s._$AP=Bt),null!==(r=(o=t)._$AQ)&&void 0!==r||(o._$AQ=Lt))};class zt extends jt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),It(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,s;t!==this.isConnected&&(this.isConnected=t,t?null===(r=this.reconnected)||void 0===r||r.call(this):null===(s=this.disconnected)||void 0===s||s.call(this)),e&&(Rt(this,t),Vt(this))}setValue(t){if(_t(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class Dt{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class Ft{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}class Gt extends zt{constructor(){super(...arguments),this._$Cq=new Dt(this),this._$CK=new Ft}render(t,e){return G}update(t,[e,r]){if(this.isConnected||this.disconnected(),e===this._$CX)return;this._$CX=e;let s=0;const{_$Cq:o,_$CK:i}=this;return(async(t,e)=>{for await(const r of t)if(!1===await e(r))return})(e,(async t=>{for(;i.get();)await i.get();const n=o.deref();if(void 0!==n){if(n._$CX!==e)return!1;void 0!==r&&(t=r(t,s)),n.commitValue(t,s),s++}return!0})),G}commitValue(t,e){this.setValue(t)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}Ht(Gt),Ht(class extends Gt{constructor(t){if(super(t),t.type!==Ot)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$CJ=t,super.update(t,e)}commitValue(t,e){0===e&&Mt(this._$CJ);const r=wt(this._$CJ);Ct(r,t)}}),Ht(class extends jt{constructor(t){super(t),this.tt=new WeakMap}render(t){return[t]}update(t,[e]){if(yt(this.et)&&(!yt(e)||this.et.strings!==e.strings)){const e=xt(t).pop();let r=this.tt.get(this.et.strings);if(void 0===r){const t=document.createDocumentFragment();r=ct(W,t),r.setConnected(!1),this.tt.set(this.et.strings,r)}Et(r,[e]),wt(r,void 0,e)}if(yt(e)){if(!yt(this.et)||this.et.strings!==e.strings){const r=this.tt.get(e.strings);if(void 0!==r){const e=xt(r).pop();Mt(t),wt(t,void 0,e),Et(t,[e])}}this.et=e}else this.et=void 0;return this.render(e)}}),Ht(class extends jt{constructor(t){var e;if(super(t),t.type!==Pt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var r,s;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const r=!!e[t];r===this.it.has(t)||(null===(s=this.nt)||void 0===s?void 0:s.has(t))||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return G}});const Wt={};Ht(class extends jt{constructor(){super(...arguments),this.st=Wt}render(t,e){return e()}update(t,[e,r]){if(Array.isArray(e)){if(Array.isArray(this.st)&&this.st.length===e.length&&e.every(((t,e)=>t===this.st[e])))return G}else if(this.st===e)return G;return this.st=Array.isArray(e)?Array.from(e):e,this.render(e,r)}}),Ht(class extends jt{constructor(){super(...arguments),this.key=W}render(t,e){return this.key=t,e}update(t,[e,r]){return e!==this.key&&(Et(t),this.key=e),r}}),Ht(class extends jt{constructor(t){if(super(t),t.type!==Nt&&t.type!==Pt&&t.type!==Ut)throw Error("The `live` directive is not allowed on child or event bindings");if(!_t(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===G||e===W)return e;const r=t.element,s=t.name;if(t.type===Nt){if(e===r[s])return G}else if(t.type===Ut){if(!!e===r.hasAttribute(s))return G}else if(t.type===Pt&&r.getAttribute(s)===e+"")return G;return Et(t),e}});const Kt=new WeakMap,Jt=(Ht(class extends zt{render(t){return W}update(t,[e]){var r;const s=e!==this.G;return s&&void 0!==this.G&&this.ot(void 0),(s||this.rt!==this.lt)&&(this.G=e,this.ct=null===(r=t.options)||void 0===r?void 0:r.host,this.ot(this.lt=t.element)),W}ot(t){var e;if("function"==typeof this.G){const r=null!==(e=this.ct)&&void 0!==e?e:globalThis;let s=Kt.get(r);void 0===s&&(s=new WeakMap,Kt.set(r,s)),void 0!==s.get(this.G)&&this.G.call(this.ct,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ct,t)}else this.G.value=t}get rt(){var t,e,r;return"function"==typeof this.G?null===(e=Kt.get(null!==(t=this.ct)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.G):null===(r=this.G)||void 0===r?void 0:r.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),(t,e,r)=>{const s=new Map;for(let o=e;o<=r;o++)s.set(t[o],o);return s}),Zt=(Ht(class extends jt{constructor(t){if(super(t),t.type!==Ot)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let s;void 0===r?r=e:void 0!==e&&(s=e);const o=[],i=[];let n=0;for(const e of t)o[n]=s?s(e,n):n,i[n]=r(e,n),n++;return{values:i,keys:o}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,s]){var o;const i=xt(t),{values:n,keys:l}=this.dt(e,r,s);if(!Array.isArray(i))return this.ht=l,n;const a=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let h,d,u=0,p=i.length-1,v=0,g=n.length-1;for(;u<=p&&v<=g;)if(null===i[u])u++;else if(null===i[p])p--;else if(a[u]===l[v])c[v]=Ct(i[u],n[v]),u++,v++;else if(a[p]===l[g])c[g]=Ct(i[p],n[g]),p--,g--;else if(a[u]===l[g])c[g]=Ct(i[u],n[g]),wt(t,c[g+1],i[u]),u++,g--;else if(a[p]===l[v])c[v]=Ct(i[p],n[v]),wt(t,i[u],i[p]),p--,v++;else if(void 0===h&&(h=Jt(l,v,g),d=Jt(a,u,p)),h.has(a[u]))if(h.has(a[p])){const e=d.get(l[v]),r=void 0!==e?i[e]:null;if(null===r){const e=wt(t,i[u]);Ct(e,n[v]),c[v]=e}else c[v]=Ct(r,n[v]),wt(t,i[u],r),i[e]=null;v++}else kt(i[p]),p--;else kt(i[u]),u++;for(;v<=g;){const e=wt(t,c[g+1]);Ct(e,n[v]),c[v++]=e}for(;u<=p;){const t=i[u++];null!==t&&kt(t)}return this.ht=l,Et(t,c),G}}),"important"),Yt=" !"+Zt;Ht(class extends jt{constructor(t){var e;if(super(t),t.type!==Pt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach((t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?r.removeProperty(t):r[t]="")}));for(const t in e){const s=e[t];if(null!=s){this.ut.add(t);const e=s.endsWith(Yt);t.includes("-")||e?r.setProperty(t,e?s.slice(0,-11):s,e?Zt:""):r[t]=s}}return G}}),Ht(class extends jt{constructor(t){if(super(t),t.type!==Ot)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?G:(this.vt=t,document.importNode(t.content,!0))}});class Qt extends jt{constructor(t){if(super(t),this.et=W,t.type!==Ot)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this.ft=void 0,this.et=t;if(t===G)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Qt.directiveName="unsafeHTML",Qt.resultType=1;Ht(Qt);class Xt extends Qt{}Xt.directiveName="unsafeSVG",Xt.resultType=2;Ht(Xt);const te=t=>!(t=>null===t||"object"!=typeof t&&"function"!=typeof t)(t)&&"function"==typeof t.then,ee=1073741823;Ht(class extends zt{constructor(){super(...arguments),this._$C_t=ee,this._$Cwt=[],this._$Cq=new Dt(this),this._$CK=new Ft}render(...t){var e;return null!==(e=t.find((t=>!te(t))))&&void 0!==e?e:G}update(t,e){const r=this._$Cwt;let s=r.length;this._$Cwt=e;const o=this._$Cq,i=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const n=e[t];if(!te(n))return this._$C_t=t,n;t<s&&n===r[t]||(this._$C_t=ee,s=0,Promise.resolve(n).then((async t=>{for(;i.get();)await i.get();const e=o.deref();if(void 0!==e){const r=e._$Cwt.indexOf(n);r>-1&&r<e._$C_t&&(e._$C_t=r,e.setValue(t))}})))}return G}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}});class re extends jt{constructor(t){if(super(t),t.type!==Tt)throw new Error("style directive can only be used on an element");const e=t;this.element=e.element}render(t){for(const[e,r]of Object.entries(t)){([...re.handlers].find((t=>t.handles(this.element,[e,r])))??re.defaultHandler).apply(this.element,[e,r])}}}re.handlers=new Set,re.defaultHandler=new class{handles(){return!0}apply(t,[e,r]){t.style[e]=null==r?"":r}};Ht(re);Object.create;Object.create;let se=class{handles(t,[e]){return e.startsWith("--")}apply(t,[e,r]){t.style.setProperty(e,r)}};se=function(t,e,r,s){var o,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,s);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(n=(i<3?o(n):i>3?o(e,r,n):o(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n}([t=>{const e=new t;re.handlers.add(e)}],se);class oe{constructor(){this.handlers=new Set}subscribe(t){this.handlers.add(t)}unsubscribe(t){this.handlers.delete(t)}dispatch(t){for(const e of this.handlers)e(t)}}class ie{constructor(t,e,r){this.name=t,this.defaultValue=e,this.reviver=r,this.changed=new oe,ie.container.add(this)}get value(){const t=window.localStorage.getItem(this.name)??void 0;if(void 0===t)return this.defaultValue;try{return JSON.parse(t,this.reviver)}catch(e){return t}}set value(t){window.localStorage.setItem(this.name,JSON.stringify(t)),this.changed.dispatch(t),ie.changed.dispatch(this)}}ie.changed=new oe,ie.container=new Set;class ne{static inject(t,e=document.createElement("style")){return e.innerHTML=t.cssText,document.head.appendChild(e),e}}class le{}le.background=new class extends ie{constructor(){super("Theme.Background","system"),window.matchMedia("(prefers-color-scheme: dark)").onchange=()=>this.updateAttributeValue(),window.matchMedia("(prefers-color-scheme: light)").onchange=()=>this.updateAttributeValue(),this.updateAttributeValue(),this.changed.subscribe((()=>this.updateAttributeValue()))}get calculatedValue(){return"system"!==this.value?this.value:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}updateAttributeValue(){document.documentElement.setAttribute("data-theme",this.calculatedValue)}},le.accent=new class extends ie{constructor(){super("Theme.Accent",new s("rgb(0, 119, 200)")),this.parseColor=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"Color"===t.$type&&"color"in t)return new s(t.color)},this.parseColorSet=t=>{if("object"==typeof t&&null!==t&&"$type"in t&&"ColorSet"===t.$type&&"colors"in t)return new o(...t.colors.map((t=>t.color)))},this.injectCss()}get value(){let t=super.value;return t=this.parseColor(t)||this.parseColorSet(t),t||window.localStorage.removeItem(this.name),t||this.defaultValue}set value(t){t.$type=t instanceof o?"ColorSet":"Color",super.value=t,this.injectCss()}get medianColor(){return this.value instanceof o?this.value.medianColor:this.value}injectCss(){const t=this.value,e=this.medianColor,r=t instanceof o?t.colors[0]:t,s=t instanceof o?t.colors[1]:t,i=t instanceof o?t.colors[2]:t;this.styleElement=ne.inject(d`:root{--mo-color-accent-base-r:${h(null==e?void 0:e.r)}--mo-color-accent-base-g:${h(null==e?void 0:e.g)}--mo-color-accent-base-b:${h(null==e?void 0:e.b)}--mo-color-accent-gradient-1:${h(null==r?void 0:r.rgb)}--mo-color-accent-gradient-2:${h(null==s?void 0:s.rgb)}--mo-color-accent-gradient-3:${h(null==i?void 0:i.rgb)}}`,this.styleElement)}},ne.inject(d`@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap);*{font-weight:400;box-sizing:border-box}html{width:100%;height:100%;font-family:var(--mo-font-family);background-color:var(--mo-color-background);color:var(--mo-color-foreground)}body{height:100%;width:100%;overflow:auto}:root[data-theme=light]{color-scheme:light;--mo-color-background-base:255,255,255;--mo-color-foreground-base:0,0,0;--mo-color-background:rgb(220, 221, 225);--mo-color-foreground:black;--mo-color-foreground-transparent:rgb(48, 48, 48);--mo-color-surface-base:255,255,255;--mo-color-gray-base:121,121,121;--mo-shadow-base:95,81,78}:root[data-theme=dark]{color-scheme:dark;--mo-color-background-base:0,0,0;--mo-color-foreground-base:255,255,255;--mo-color-background:rgb(16, 17, 20);--mo-color-surface-base:42,43,47;--mo-color-foreground:white;--mo-color-foreground-transparent:rgb(220, 220, 220);--mo-color-gray-base:165,165,165;--mo-shadow-base:0,1,3}:root{--mo-font-family:Roboto,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;--mo-border-radius:4px;--mo-shadow:rgba(var(--mo-shadow-base), .4) 0 1px 2px 0,rgba(var(--mo-shadow-base), .2) 0 1px 3px 1px;--mo-shadow-deep:0px 5px 5px -3px rgba(var(--mo-shadow-base), 0.2),0px 8px 10px 1px rgba(var(--mo-shadow-base), 0.14),0px 3px 14px 2px rgba(var(--mo-shadow-base), 0.12);--mo-color-on-surface:rgba(var(--mo-color-foreground-base), 0.87);--mo-color-gray:rgb(var(--mo-color-gray-base));--mo-color-gray-transparent:rgba(var(--mo-color-gray-base), 0.5);--mo-color-transparent-gray-alpha:.04;--mo-color-transparent-gray-1:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 1));--mo-color-transparent-gray-2:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 2));--mo-color-transparent-gray-3:rgba(var(--mo-color-foreground-base), calc(var(--mo-color-transparent-gray-alpha) * 3));--mo-color-transparent-gray:var(--mo-color-transparent-gray-1);--mo-color-green-base:93,170,96;--mo-color-green:rgb(var(--mo-color-green-base));--mo-color-yellow-base:232,152,35;--mo-color-yellow:rgb(var(--mo-color-yellow-base));--mo-color-red-base:221,61,49;--mo-color-red:rgb(var(--mo-color-red-base));--mo-color-blue-base:0,119,200;--mo-color-accessible-base-value:calc(((((var(--mo-color-accent-base-r) * 299) + (var(--mo-color-accent-base-g) * 587) + (var(--mo-color-accent-base-b) * 114)) / 1000) - 128) * -1000);--mo-color-accessible-base:var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value),var(--mo-color-accessible-base-value);--mo-color-accessible:rgb(var(--mo-color-accessible-base));--mo-color-accent-base:var(--mo-color-accent-base-r),var(--mo-color-accent-base-g),var(--mo-color-accent-base-b);--mo-color-accent:rgb(var(--mo-color-accent-base));--mo-color-accent-transparent:rgba(var(--mo-color-accent-base), 0.25);--mo-color-accent-gradient:linear-gradient(135deg, rgb(var(--mo-color-accent-gradient-1)), rgb(var(--mo-color-accent-gradient-2)), rgb(var(--mo-color-accent-gradient-3)));--mo-color-accent-gradient-transparent:linear-gradient(135deg, rgba(var(--mo-color-accent-gradient-1), 0.25), rgba(var(--mo-color-accent-gradient-2), 0.25), rgba(var(--mo-color-accent-gradient-3), 0.25));--mo-color-surface:rgb(var(--mo-color-surface-base))}`)})()})();

@@ -14,2 +14,5 @@ import { css } from '@a11d/lit';

height: 100%;
font-family: var(--mo-font-family);
background-color: var(--mo-color-background);
color: var(--mo-color-foreground);
}

@@ -80,7 +83,3 @@

--mo-color-surface: rgb(var(--mo-color-surface-base));
font-family: var(--mo-font-family);
background-color: var(--mo-color-background);
color: var(--mo-color-foreground);
}
`);
{
"name": "@3mo/theme",
"version": "0.0.6",
"version": "0.0.7",
"description": "Tools & tokens for theming 3MO components & applications.",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc