/**
* Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
* Original file: /npm/lit-html@2.8.0/directives/class-map.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var t;const e=window,i=e.trustedTypes,s=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,n="$lit$",o=`lit$${(Math.random()+"").slice(9)}$`,r="?"+o,l=`<${r}>`,h=document,a=()=>h.createComment(""),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,c=t=>$(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),u="[ \t\n\f\r]",A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,v=/>/g,p=RegExp(`>|${u}(?:([^\\s"'>=/]+)(${u}*=${u}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,f=/"/g,m=/^(?:script|style|textarea|title)$/i,y=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),x=new WeakMap,N=h.createTreeWalker(h,129,null,!1);function T(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(e):e}const b=(t,e)=>{const i=t.length-1,s=[];let r,h=2===e?"":"")),s]};class E{constructor({strings:t,_$litType$:e},s){let l;this.parts=[];let h=0,d=0;const $=t.length-1,c=this.parts,[u,A]=b(t,e);if(this.el=E.createElement(u,s),N.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(l=N.nextNode())&&c.length<$;){if(1===l.nodeType){if(l.hasAttributes()){const t=[];for(const e of l.getAttributeNames())if(e.endsWith(n)||e.startsWith(o)){const i=A[d++];if(t.push(e),void 0!==i){const t=l.getAttribute(i.toLowerCase()+n).split(o),e=/([.?@])?(.*)/.exec(i);c.push({type:1,index:h,name:e[2],strings:t,ctor:"."===e[1]?I:"?"===e[1]?R:"@"===e[1]?B:S})}else c.push({type:6,index:h})}for(const e of t)l.removeAttribute(e)}if(m.test(l.tagName)){const t=l.textContent.split(o),e=t.length-1;if(e>0){l.textContent=i?i.emptyScript:"";for(let i=0;i2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(void 0===n)t=C(this,t,e,0),o=!d(t)||t!==this._$AH&&t!==y,o&&(this._$AH=t);else{const s=t;let r,l;for(t=n[0],r=0;r(...e)=>({_$litDirective$:t,values:e});class P{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const D=O(class extends P{constructor(t){var e;if(super(t),t.type!==k.ATTRIBUTE||"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 i,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===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(s=this.nt)||void 0===s?void 0:s.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return y}});export{D as classMap};export default null;
//# sourceMappingURL=/sm/4653d09a9bebb7053f922c733f4c2a75d65057b2d0557a0346d9c3e10552a327.map