Socket
Socket
Sign inDemoInstall

lit-html

Package Overview
Dependencies
Maintainers
14
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lit-html - npm Package Compare versions

Comparing version 2.7.3 to 3.0.0-pre.0

2

async-directive.js

@@ -6,3 +6,3 @@ import{isSingleExpression as i}from"./directive-helpers.js";import{Directive as t,PartType as e}from"./directive.js";export{Directive,PartType,directive}from"./directive.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const s=(i,t)=>{var e,o;const r=i._$AN;if(void 0===r)return!1;for(const i of r)null===(o=(e=i)._$AO)||void 0===o||o.call(e,t,!1),s(i,t);return!0},o=i=>{let t,e;do{if(void 0===(t=i._$AM))break;e=t._$AN,e.delete(i),i=t}while(0===(null==e?void 0:e.size))},r=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(void 0===e)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),l(t)}};function n(i){void 0!==this._$AN?(o(this),this._$AM=i,r(this)):this._$AM=i}function h(i,t=!1,e=0){const r=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(t)if(Array.isArray(r))for(let i=e;i<r.length;i++)s(r[i],!1),o(r[i]);else null!=r&&(s(r,!1),o(r));else s(this,i)}const l=i=>{var t,s,o,r;i.type==e.CHILD&&(null!==(t=(o=i)._$AP)&&void 0!==t||(o._$AP=h),null!==(s=(r=i)._$AQ)&&void 0!==s||(r._$AQ=n))};class c extends t{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),r(this),this.isConnected=i._$AU}_$AO(i,t=!0){var e,r;i!==this.isConnected&&(this.isConnected=i,i?null===(e=this.reconnected)||void 0===e||e.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),t&&(s(this,i),o(this))}setValue(t){if(i(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}export{c as AsyncDirective};
*/const s=(i,t)=>{const e=i._$AN;if(void 0===e)return!1;for(const i of e)i._$AO?.(t,!1),s(i,t);return!0},o=i=>{let t,e;do{if(void 0===(t=i._$AM))break;e=t._$AN,e.delete(i),i=t}while(0===e?.size)},r=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(void 0===e)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),c(t)}};function h(i){void 0!==this._$AN?(o(this),this._$AM=i,r(this)):this._$AM=i}function n(i,t=!1,e=0){const r=this._$AH,h=this._$AN;if(void 0!==h&&0!==h.size)if(t)if(Array.isArray(r))for(let i=e;i<r.length;i++)s(r[i],!1),o(r[i]);else null!=r&&(s(r,!1),o(r));else s(this,i)}const c=i=>{i.type==e.CHILD&&(i._$AP??=n,i._$AQ??=h)};class f extends t{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),r(this),this.isConnected=i._$AU}_$AO(i,t=!0){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(s(this,i),o(this))}setValue(t){if(i(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}export{f as AsyncDirective};
//# sourceMappingURL=async-directive.js.map

@@ -18,3 +18,2 @@ /**

const notifyChildrenConnectedChanged = (parent, isConnected) => {
var _a, _b;
const children = parent._$disconnectableChildren;

@@ -33,3 +32,3 @@ if (children === undefined) {

// This property needs to remain unminified.
(_b = (_a = obj)['_$notifyDirectiveConnectionChanged']) === null || _b === void 0 ? void 0 : _b.call(_a, isConnected, false);
obj['_$notifyDirectiveConnectionChanged']?.(isConnected, false);
// Disconnect Part/TemplateInstance

@@ -55,3 +54,3 @@ notifyChildrenConnectedChanged(obj, isConnected);

obj = parent;
} while ((children === null || children === void 0 ? void 0 : children.size) === 0);
} while (children?.size === 0);
};

@@ -145,7 +144,6 @@ const addDisconnectableToParent = (obj) => {

const installDisconnectAPI = (obj) => {
var _a, _b;
var _c, _d;
if (obj.type == PartType.CHILD) {
(_a = (_c = obj)._$notifyConnectionChanged) !== null && _a !== void 0 ? _a : (_c._$notifyConnectionChanged = notifyChildPartConnectedChanged);
(_b = (_d = obj)._$reparentDisconnectables) !== null && _b !== void 0 ? _b : (_d._$reparentDisconnectables = reparentDisconnectables);
obj._$notifyConnectionChanged ??=
notifyChildPartConnectedChanged;
obj._$reparentDisconnectables ??= reparentDisconnectables;
}

@@ -201,10 +199,9 @@ };

['_$notifyDirectiveConnectionChanged'](isConnected, isClearingDirective = true) {
var _a, _b;
if (isConnected !== this.isConnected) {
this.isConnected = isConnected;
if (isConnected) {
(_a = this.reconnected) === null || _a === void 0 ? void 0 : _a.call(this);
this.reconnected?.();
}
else {
(_b = this.disconnected) === null || _b === void 0 ? void 0 : _b.call(this);
this.disconnected?.();
}

@@ -211,0 +208,0 @@ }

@@ -8,3 +8,5 @@ /**

import { DirectiveResult, DirectiveClass, PartInfo } from './directive.js';
declare type Primitive = null | undefined | boolean | number | string | symbol | bigint;
type Primitive = null | undefined | boolean | number | string | symbol | bigint;
declare const ChildPart: typeof import("./lit-html.js").ChildPart;
type ChildPart = InstanceType<typeof ChildPart>;
/**

@@ -20,7 +22,7 @@ * Tests if a value is a primitive value.

};
export declare type TemplateResultType = (typeof TemplateResultType)[keyof typeof TemplateResultType];
export type TemplateResultType = (typeof TemplateResultType)[keyof typeof TemplateResultType];
/**
* Tests if a value is a TemplateResult.
*/
export declare const isTemplateResult: (value: unknown, type?: TemplateResultType) => value is TemplateResult<1 | 2>;
export declare const isTemplateResult: (value: unknown, type?: TemplateResultType) => value is TemplateResult;
/**

@@ -55,3 +57,3 @@ * Tests if a value is a DirectiveResult.

*/
export declare const insertPart: (containerPart: import("./lit-html.js").ChildPart, refPart?: import("./lit-html.js").ChildPart | undefined, part?: import("./lit-html.js").ChildPart | undefined) => import("./lit-html.js").ChildPart;
export declare const insertPart: (containerPart: ChildPart, refPart?: ChildPart, part?: ChildPart) => ChildPart;
/**

@@ -100,3 +102,3 @@ * Sets the value of a Part.

*/
export declare const getCommittedValue: (part: import("./lit-html.js").ChildPart) => unknown;
export declare const getCommittedValue: (part: ChildPart) => unknown;
/**

@@ -107,5 +109,5 @@ * Removes a ChildPart from the DOM, including any of its content.

*/
export declare const removePart: (part: import("./lit-html.js").ChildPart) => void;
export declare const clearPart: (part: import("./lit-html.js").ChildPart) => void;
export declare const removePart: (part: ChildPart) => void;
export declare const clearPart: (part: ChildPart) => void;
export {};
//# sourceMappingURL=directive-helpers.d.ts.map

@@ -6,3 +6,2 @@ /**

*/
var _a, _b;
import { _$LH } from './lit-html.js';

@@ -12,4 +11,4 @@ const { _ChildPart: ChildPart } = _$LH;

const wrap = ENABLE_SHADYDOM_NOPATCH &&
((_a = window.ShadyDOM) === null || _a === void 0 ? void 0 : _a.inUse) &&
((_b = window.ShadyDOM) === null || _b === void 0 ? void 0 : _b.noPatch) === true
window.ShadyDOM?.inUse &&
window.ShadyDOM?.noPatch === true
? window.ShadyDOM.wrap

@@ -32,4 +31,4 @@ : (node) => node;

? // This property needs to remain unminified.
(value === null || value === void 0 ? void 0 : value['_$litType$']) !== undefined
: (value === null || value === void 0 ? void 0 : value['_$litType$']) === type;
value?.['_$litType$'] !== undefined
: value?.['_$litType$'] === type;
/**

@@ -40,3 +39,3 @@ * Tests if a value is a DirectiveResult.

// This property needs to remain unminified.
(value === null || value === void 0 ? void 0 : value['_$litDirective$']) !== undefined;
value?.['_$litDirective$'] !== undefined;
/**

@@ -47,3 +46,3 @@ * Retrieves the Directive class for a DirectiveResult

// This property needs to remain unminified.
value === null || value === void 0 ? void 0 : value['_$litDirective$'];
value?.['_$litDirective$'];
/**

@@ -72,3 +71,2 @@ * Tests whether a part has only a single-expression with no strings to

export const insertPart = (containerPart, refPart, part) => {
var _a;
const container = wrap(containerPart._$startNode).parentNode;

@@ -86,3 +84,3 @@ const refNode = refPart === undefined ? containerPart._$endNode : refPart._$startNode;

if (parentChanged) {
(_a = part._$reparentDisconnectables) === null || _a === void 0 ? void 0 : _a.call(part, containerPart);
part._$reparentDisconnectables?.(containerPart);
// Note that although `_$reparentDisconnectables` updates the part's

@@ -170,4 +168,3 @@ // `_$parent` reference after unlinking from its current parent, that

export const removePart = (part) => {
var _a;
(_a = part._$notifyConnectionChanged) === null || _a === void 0 ? void 0 : _a.call(part, false, true);
part._$notifyConnectionChanged?.(false, true);
let start = part._$startNode;

@@ -174,0 +171,0 @@ const end = wrap(part._$endNode).nextSibling;

@@ -15,3 +15,3 @@ /**

*/
export declare type DirectiveParameters<C extends Directive> = Parameters<C['render']>;
export type DirectiveParameters<C extends Directive> = Parameters<C['render']>;
/**

@@ -31,3 +31,3 @@ * A generated directive function doesn't evaluate the directive, but just

};
export declare type PartType = (typeof PartType)[keyof typeof PartType];
export type PartType = (typeof PartType)[keyof typeof PartType];
export interface ChildPartInfo {

@@ -51,3 +51,3 @@ readonly type: typeof PartType.CHILD;

*/
export declare type PartInfo = ChildPartInfo | AttributePartInfo | ElementPartInfo;
export type PartInfo = ChildPartInfo | AttributePartInfo | ElementPartInfo;
/**

@@ -54,0 +54,0 @@ * Creates a user-facing directive function from a Directive class. This

@@ -8,3 +8,3 @@ /**

import { AsyncDirective, DirectiveParameters } from '../async-directive.js';
declare type Mapper<T> = (v: T, index?: number) => unknown;
type Mapper<T> = (v: T, index?: number) => unknown;
export declare class AsyncReplaceDirective extends AsyncDirective {

@@ -11,0 +11,0 @@ private __value?;

@@ -39,4 +39,4 @@ /**

}
return defaultCase === null || defaultCase === void 0 ? void 0 : defaultCase();
return defaultCase?.();
};
//# sourceMappingURL=choose.js.map

@@ -10,7 +10,6 @@ /**

constructor(partInfo) {
var _a;
super(partInfo);
if (partInfo.type !== PartType.ATTRIBUTE ||
partInfo.name !== 'class' ||
((_a = partInfo.strings) === null || _a === void 0 ? void 0 : _a.length) > 2) {
partInfo.strings?.length > 2) {
throw new Error('`classMap()` can only be used in the `class` attribute ' +

@@ -29,3 +28,2 @@ 'and must be the only part in the attribute.');

update(part, [classInfo]) {
var _a, _b;
// Remember dynamic classes on the first render

@@ -41,3 +39,3 @@ if (this._previousClasses === undefined) {

for (const name in classInfo) {
if (classInfo[name] && !((_a = this._staticClasses) === null || _a === void 0 ? void 0 : _a.has(name))) {
if (classInfo[name] && !this._staticClasses?.has(name)) {
this._previousClasses.add(name);

@@ -50,5 +48,3 @@ }

// Remove old classes that no longer apply
// We use forEach() instead of for-of so that we don't require down-level
// iteration.
this._previousClasses.forEach((name) => {
for (const name of this._previousClasses) {
if (!(name in classInfo)) {

@@ -58,3 +54,3 @@ classList.remove(name);

}
});
}
// Add or remove classes based on their classMap value

@@ -66,3 +62,3 @@ for (const name in classInfo) {

if (value !== this._previousClasses.has(name) &&
!((_b = this._staticClasses) === null || _b === void 0 ? void 0 : _b.has(name))) {
!this._staticClasses?.has(name)) {
if (value) {

@@ -69,0 +65,0 @@ classList.add(name);

@@ -13,3 +13,3 @@ /**

*/
export const ifDefined = (value) => value !== null && value !== void 0 ? value : nothing;
export const ifDefined = (value) => value ?? nothing;
//# sourceMappingURL=if-defined.js.map

@@ -73,4 +73,3 @@ /**

pause() {
var _a;
(_a = this._promise) !== null && _a !== void 0 ? _a : (this._promise = new Promise((resolve) => (this._resolve = resolve)));
this._promise ??= new Promise((resolve) => (this._resolve = resolve));
}

@@ -81,4 +80,3 @@ /**

resume() {
var _a;
(_a = this._resolve) === null || _a === void 0 ? void 0 : _a.call(this);
this._resolve?.();
this._promise = this._resolve = undefined;

@@ -85,0 +83,0 @@ }

@@ -8,3 +8,3 @@ /**

const start = end === undefined ? 0 : startOrEnd;
end !== null && end !== void 0 ? end : (end = startOrEnd);
end ??= startOrEnd;
for (let i = start; step > 0 ? i < end : end < i; i += step) {

@@ -11,0 +11,0 @@ yield i;

@@ -23,3 +23,3 @@ /**

export type { Ref };
export declare type RefOrCallback = Ref | ((el: Element | undefined) => void);
export type RefOrCallback = Ref | ((el: Element | undefined) => void);
declare class RefDirective extends AsyncDirective {

@@ -26,0 +26,0 @@ private _element?;

@@ -28,3 +28,2 @@ /**

update(part, [ref]) {
var _a;
const refChanged = ref !== this._ref;

@@ -40,3 +39,3 @@ if (refChanged && this._ref !== undefined) {

this._ref = ref;
this._context = (_a = part.options) === null || _a === void 0 ? void 0 : _a.host;
this._context = part.options?.host;
this._updateRefValue((this._element = part.element));

@@ -47,3 +46,2 @@ }

_updateRefValue(element) {
var _a;
if (typeof this._ref === 'function') {

@@ -59,3 +57,3 @@ // If the current ref was called with a previous value, call with

// these as unique "instances" of a function.
const context = (_a = this._context) !== null && _a !== void 0 ? _a : globalThis;
const context = this._context ?? globalThis;
let lastElementForCallback = lastElementForContextAndCallback.get(context);

@@ -80,7 +78,7 @@ if (lastElementForCallback === undefined) {

get _lastElementForRef() {
var _a, _b, _c;
return typeof this._ref === 'function'
? (_b = lastElementForContextAndCallback
.get((_a = this._context) !== null && _a !== void 0 ? _a : globalThis)) === null || _b === void 0 ? void 0 : _b.get(this._ref)
: (_c = this._ref) === null || _c === void 0 ? void 0 : _c.value;
? lastElementForContextAndCallback
.get(this._context ?? globalThis)
?.get(this._ref)
: this._ref?.value;
}

@@ -87,0 +85,0 @@ disconnected() {

@@ -8,4 +8,4 @@ /**

import { Directive, PartInfo } from '../directive.js';
export declare type KeyFn<T> = (item: T, index: number) => unknown;
export declare type ItemTemplate<T> = (item: T, index: number) => unknown;
export type KeyFn<T> = (item: T, index: number) => unknown;
export type ItemTemplate<T> = (item: T, index: number) => unknown;
declare class RepeatDirective extends Directive {

@@ -12,0 +12,0 @@ private _itemKeys?;

@@ -51,3 +51,2 @@ /**

update(containerPart, [items, keyFnOrTemplate, template]) {
var _a;
// Old part & key lists are retrieved from the last update (which may

@@ -71,3 +70,3 @@ // be primed by hydration)

// reuses the oldPart.
const oldKeys = ((_a = this._itemKeys) !== null && _a !== void 0 ? _a : (this._itemKeys = []));
const oldKeys = (this._itemKeys ??= []);
// New part list will be built up as we go (either reused from

@@ -74,0 +73,0 @@ // old parts or created for new keys in this update). This is

@@ -19,3 +19,3 @@ /**

declare class StyleMapDirective extends Directive {
_previousStyleProperties?: Set<string>;
private _previousStyleProperties?;
constructor(partInfo: PartInfo);

@@ -22,0 +22,0 @@ render(styleInfo: Readonly<StyleInfo>): string;

@@ -15,7 +15,6 @@ /**

constructor(partInfo) {
var _a;
super(partInfo);
if (partInfo.type !== PartType.ATTRIBUTE ||
partInfo.name !== 'style' ||
((_a = partInfo.strings) === null || _a === void 0 ? void 0 : _a.length) > 2) {
partInfo.strings?.length > 2) {
throw new Error('The `styleMap` directive must be used in the `style` attribute ' +

@@ -49,12 +48,7 @@ 'and must be the only part in the attribute.');

if (this._previousStyleProperties === undefined) {
this._previousStyleProperties = new Set();
for (const name in styleInfo) {
this._previousStyleProperties.add(name);
}
this._previousStyleProperties = new Set(Object.keys(styleInfo));
return this.render(styleInfo);
}
// Remove old properties that no longer exist in styleInfo
// We use forEach() instead of for-of so that re don't require down-level
// iteration.
this._previousStyleProperties.forEach((name) => {
for (const name of this._previousStyleProperties) {
// If the name isn't in styleInfo or it's null/undefined

@@ -67,9 +61,7 @@ if (styleInfo[name] == null) {

else {
// Note reset using empty string (vs null) as IE11 does not always
// reset via null (https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style#setting_styles)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
style[name] = '';
style[name] = null;
}
}
});
}
// Add or update properties

@@ -76,0 +68,0 @@ for (const name in styleInfo) {

@@ -14,3 +14,3 @@ /**

constructor(partInfo: PartInfo);
render(value: string | typeof nothing | typeof noChange | undefined | null): typeof noChange | typeof nothing | TemplateResult<1 | 2> | null | undefined;
render(value: string | typeof nothing | typeof noChange | undefined | null): typeof noChange | typeof nothing | TemplateResult | null | undefined;
}

@@ -17,0 +17,0 @@ /**

@@ -9,3 +9,3 @@ /**

const HTML_RESULT = 1;
export class UnsafeHTMLDirective extends Directive {
class UnsafeHTMLDirective extends Directive {
constructor(partInfo) {

@@ -51,2 +51,3 @@ super(partInfo);

UnsafeHTMLDirective.resultType = HTML_RESULT;
export { UnsafeHTMLDirective };
/**

@@ -53,0 +54,0 @@ * Renders the result as HTML, rather than text.

@@ -24,4 +24,3 @@ /**

render(...args) {
var _a;
return (_a = args.find((x) => !isPromise(x))) !== null && _a !== void 0 ? _a : noChange;
return args.find((x) => !isPromise(x)) ?? noChange;
}

@@ -28,0 +27,0 @@ update(_part, args) {

@@ -7,4 +7,4 @@ /**

export function when(condition, trueCase, falseCase) {
return condition ? trueCase() : falseCase === null || falseCase === void 0 ? void 0 : falseCase();
return condition ? trueCase() : falseCase?.();
}
//# sourceMappingURL=when.js.map

@@ -164,3 +164,3 @@ /**

*/
export declare type SanitizerFactory = (node: Node, name: string, type: 'property' | 'attribute') => ValueSanitizer;
export type SanitizerFactory = (node: Node, name: string, type: 'property' | 'attribute') => ValueSanitizer;
/**

@@ -177,7 +177,7 @@ * A function which can sanitize values that will be written to a specific kind

*/
export declare type ValueSanitizer = (value: unknown) => unknown;
export type ValueSanitizer = (value: unknown) => unknown;
/** TemplateResult types */
declare const HTML_RESULT = 1;
declare const SVG_RESULT = 2;
declare type ResultType = typeof HTML_RESULT | typeof SVG_RESULT;
type ResultType = typeof HTML_RESULT | typeof SVG_RESULT;
declare const ATTRIBUTE_PART = 1;

@@ -200,3 +200,3 @@ declare const CHILD_PART = 2;

*/
export declare type TemplateResult<T extends ResultType = ResultType> = {
export type TemplateResult<T extends ResultType = ResultType> = {
['_$litType$']: T;

@@ -206,4 +206,4 @@ strings: TemplateStringsArray;

};
export declare type HTMLTemplateResult = TemplateResult<typeof HTML_RESULT>;
export declare type SVGTemplateResult = TemplateResult<typeof SVG_RESULT>;
export type HTMLTemplateResult = TemplateResult<typeof HTML_RESULT>;
export type SVGTemplateResult = TemplateResult<typeof SVG_RESULT>;
export interface CompiledTemplateResult {

@@ -348,3 +348,3 @@ ['_$litType$']: CompiledTemplate;

}
declare type AttributeTemplatePart = {
type AttributeTemplatePart = {
readonly type: typeof ATTRIBUTE_PART;

@@ -356,11 +356,11 @@ readonly index: number;

};
declare type NodeTemplatePart = {
type NodeTemplatePart = {
readonly type: typeof CHILD_PART;
readonly index: number;
};
declare type ElementTemplatePart = {
type ElementTemplatePart = {
readonly type: typeof ELEMENT_PART;
readonly index: number;
};
declare type CommentTemplatePart = {
type CommentTemplatePart = {
readonly type: typeof COMMENT_PART;

@@ -374,4 +374,4 @@ readonly index: number;

*/
declare type TemplatePart = NodeTemplatePart | AttributeTemplatePart | ElementTemplatePart | CommentTemplatePart;
export declare type Part = ChildPart | AttributePart | PropertyPart | BooleanAttributePart | ElementPart | EventPart;
type TemplatePart = NodeTemplatePart | AttributeTemplatePart | ElementTemplatePart | CommentTemplatePart;
export type Part = ChildPart | AttributePart | PropertyPart | BooleanAttributePart | ElementPart | EventPart;
export type { ChildPart };

@@ -518,3 +518,3 @@ declare class ChildPart implements Disconnectable {

_HTML_RESULT: number;
_getTemplateHtml: (strings: TemplateStringsArray, type: ResultType) => [TrustedHTML, Array<string | undefined>];
_getTemplateHtml: (strings: TemplateStringsArray, type: ResultType) => [TrustedHTML, Array<string>];
_TemplateInstance: typeof TemplateInstance;

@@ -521,0 +521,0 @@ _isIterable: (value: unknown) => value is Iterable<unknown>;

@@ -25,3 +25,3 @@ /**

HTML_RESULT: number;
getTemplateHtml: (strings: TemplateStringsArray, type: 1 | 2) => [import("trusted-types/lib/index.js").TrustedHTML, (string | undefined)[]];
getTemplateHtml: (strings: TemplateStringsArray, type: 1 | 2) => [import("trusted-types/lib/index.js").TrustedHTML, string[]];
overrideDirectiveResolve: (directiveClass: new (part: PartInfo) => Directive & {

@@ -28,0 +28,0 @@ render(): unknown;

@@ -27,6 +27,6 @@ /**

const unwrapStaticValue = (value) => {
if ((value === null || value === void 0 ? void 0 : value.r) !== brand) {
if (value?.r !== brand) {
return undefined;
}
return value === null || value === void 0 ? void 0 : value['_$litStatic$'];
return value?.['_$litStatic$'];
};

@@ -33,0 +33,0 @@ /**

@@ -8,3 +8,5 @@ /**

import { DirectiveResult, DirectiveClass, PartInfo } from './directive.js';
declare type Primitive = null | undefined | boolean | number | string | symbol | bigint;
type Primitive = null | undefined | boolean | number | string | symbol | bigint;
declare const ChildPart: typeof import("./lit-html.js").ChildPart;
type ChildPart = InstanceType<typeof ChildPart>;
/**

@@ -20,7 +22,7 @@ * Tests if a value is a primitive value.

};
export declare type TemplateResultType = (typeof TemplateResultType)[keyof typeof TemplateResultType];
export type TemplateResultType = (typeof TemplateResultType)[keyof typeof TemplateResultType];
/**
* Tests if a value is a TemplateResult.
*/
export declare const isTemplateResult: (value: unknown, type?: TemplateResultType) => value is TemplateResult<1 | 2>;
export declare const isTemplateResult: (value: unknown, type?: TemplateResultType) => value is TemplateResult;
/**

@@ -55,3 +57,3 @@ * Tests if a value is a DirectiveResult.

*/
export declare const insertPart: (containerPart: import("./lit-html.js").ChildPart, refPart?: import("./lit-html.js").ChildPart | undefined, part?: import("./lit-html.js").ChildPart | undefined) => import("./lit-html.js").ChildPart;
export declare const insertPart: (containerPart: ChildPart, refPart?: ChildPart, part?: ChildPart) => ChildPart;
/**

@@ -100,3 +102,3 @@ * Sets the value of a Part.

*/
export declare const getCommittedValue: (part: import("./lit-html.js").ChildPart) => unknown;
export declare const getCommittedValue: (part: ChildPart) => unknown;
/**

@@ -107,5 +109,5 @@ * Removes a ChildPart from the DOM, including any of its content.

*/
export declare const removePart: (part: import("./lit-html.js").ChildPart) => void;
export declare const clearPart: (part: import("./lit-html.js").ChildPart) => void;
export declare const removePart: (part: ChildPart) => void;
export declare const clearPart: (part: ChildPart) => void;
export {};
//# sourceMappingURL=directive-helpers.d.ts.map

@@ -6,3 +6,3 @@ import{_$LH as o}from"./lit-html.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const{I:l}=o,t=o=>null===o||"object"!=typeof o&&"function"!=typeof o,i={HTML:1,SVG:2},n=(o,l)=>void 0===l?void 0!==(null==o?void 0:o._$litType$):(null==o?void 0:o._$litType$)===l,d=o=>void 0!==(null==o?void 0:o._$litDirective$),v=o=>null==o?void 0:o._$litDirective$,e=o=>void 0===o.strings,c=()=>document.createComment(""),r=(o,t,i)=>{var n;const d=o._$AA.parentNode,v=void 0===t?o._$AB:t._$AA;if(void 0===i){const t=d.insertBefore(c(),v),n=d.insertBefore(c(),v);i=new l(t,n,o,o.options)}else{const l=i._$AB.nextSibling,t=i._$AM,e=t!==o;if(e){let l;null===(n=i._$AQ)||void 0===n||n.call(i,o),i._$AM=o,void 0!==i._$AP&&(l=o._$AU)!==t._$AU&&i._$AP(l)}if(l!==v||e){let o=i._$AA;for(;o!==l;){const l=o.nextSibling;d.insertBefore(o,v),o=l}}}return i},u=(o,l,t=o)=>(o._$AI(l,t),o),f={},s=(o,l=f)=>o._$AH=l,m=o=>o._$AH,p=o=>{var l;null===(l=o._$AP)||void 0===l||l.call(o,!1,!0);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o}},a=o=>{o._$AR()};export{i as TemplateResultType,a as clearPart,m as getCommittedValue,v as getDirectiveClass,r as insertPart,d as isDirectiveResult,t as isPrimitive,e as isSingleExpression,n as isTemplateResult,p as removePart,u as setChildPartValue,s as setCommittedValue};
*/const{R:t}=o,i=o=>null===o||"object"!=typeof o&&"function"!=typeof o,n={HTML:1,SVG:2},e=(o,t)=>void 0===t?void 0!==o?._$litType$:o?._$litType$===t,c=o=>void 0!==o?._$litDirective$,d=o=>o?._$litDirective$,f=o=>void 0===o.strings,l=()=>document.createComment(""),s=(o,i,n)=>{const e=o._$AA.parentNode,c=void 0===i?o._$AB:i._$AA;if(void 0===n){const i=e.insertBefore(l(),c),d=e.insertBefore(l(),c);n=new t(i,d,o,o.options)}else{const t=n._$AB.nextSibling,i=n._$AM,d=i!==o;if(d){let t;n._$AQ?.(o),n._$AM=o,void 0!==n._$AP&&(t=o._$AU)!==i._$AU&&n._$AP(t)}if(t!==c||d){let o=n._$AA;for(;o!==t;){const t=o.nextSibling;e.insertBefore(o,c),o=t}}}return n},r=(o,t,i=o)=>(o._$AI(t,i),o),v={},m=(o,t=v)=>o._$AH=t,p=o=>o._$AH,u=o=>{o._$AP?.(!1,!0);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o}},h=o=>{o._$AR()};export{n as TemplateResultType,h as clearPart,p as getCommittedValue,d as getDirectiveClass,s as insertPart,c as isDirectiveResult,i as isPrimitive,f as isSingleExpression,e as isTemplateResult,u as removePart,r as setChildPartValue,m as setCommittedValue};
//# sourceMappingURL=directive-helpers.js.map

@@ -15,3 +15,3 @@ /**

*/
export declare type DirectiveParameters<C extends Directive> = Parameters<C['render']>;
export type DirectiveParameters<C extends Directive> = Parameters<C['render']>;
/**

@@ -31,3 +31,3 @@ * A generated directive function doesn't evaluate the directive, but just

};
export declare type PartType = (typeof PartType)[keyof typeof PartType];
export type PartType = (typeof PartType)[keyof typeof PartType];
export interface ChildPartInfo {

@@ -51,3 +51,3 @@ readonly type: typeof PartType.CHILD;

*/
export declare type PartInfo = ChildPartInfo | AttributePartInfo | ElementPartInfo;
export type PartInfo = ChildPartInfo | AttributePartInfo | ElementPartInfo;
/**

@@ -54,0 +54,0 @@ * Creates a user-facing directive function from a Directive class. This

@@ -8,3 +8,3 @@ /**

import { AsyncDirective, DirectiveParameters } from '../async-directive.js';
declare type Mapper<T> = (v: T, index?: number) => unknown;
type Mapper<T> = (v: T, index?: number) => unknown;
export declare class AsyncReplaceDirective extends AsyncDirective {

@@ -11,0 +11,0 @@ private __value?;

@@ -6,3 +6,3 @@ /**

*/
const o=(o,r,n)=>{for(const n of r)if(n[0]===o)return(0,n[1])();return null==n?void 0:n()};export{o as choose};
const r=(r,o,t)=>{for(const t of o)if(t[0]===r)return(0,t[1])();return t?.()};export{r as choose};
//# sourceMappingURL=choose.js.map

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

import{noChange as t}from"../lit-html.js";import{directive as i,Directive as s,PartType as r}from"../directive.js";
import{noChange as t}from"../lit-html.js";import{directive as s,Directive as i,PartType as r}from"../directive.js";
/**

@@ -6,3 +6,3 @@ * @license

* SPDX-License-Identifier: BSD-3-Clause
*/const o=i(class extends s{constructor(t){var i;if(super(t),t.type!==r.ATTRIBUTE||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(i,[s]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(s)}const e=i.element.classList;this.it.forEach((t=>{t in s||(e.remove(t),this.it.delete(t))}));for(const t in s){const i=!!s[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return t}});export{o as classMap};
*/const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||"class"!==t.name||t.strings?.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((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.it){this.it=new Set,void 0!==s.strings&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.it)t in i||(r.remove(t),this.it.delete(t));for(const t in i){const s=!!i[t];s===this.it.has(t)||this.st?.has(t)||(s?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return t}});export{e as classMap};
//# sourceMappingURL=class-map.js.map

@@ -7,3 +7,3 @@ import{noChange as r}from"../lit-html.js";import{directive as t,Directive as s}from"../directive.js";

*/
const e={},i=t(class extends s{constructor(){super(...arguments),this.st=e}render(r,t){return t()}update(t,[s,e]){if(Array.isArray(s)){if(Array.isArray(this.st)&&this.st.length===s.length&&s.every(((r,t)=>r===this.st[t])))return r}else if(this.st===s)return r;return this.st=Array.isArray(s)?Array.from(s):s,this.render(s,e)}});export{i as guard};
const e={},i=t(class extends s{constructor(){super(...arguments),this.nt=e}render(r,t){return t()}update(t,[s,e]){if(Array.isArray(s)){if(Array.isArray(this.nt)&&this.nt.length===s.length&&s.every(((r,t)=>r===this.nt[t])))return r}else if(this.nt===s)return r;return this.nt=Array.isArray(s)?Array.from(s):s,this.render(s,e)}});export{i as guard};
//# sourceMappingURL=guard.js.map

@@ -6,3 +6,3 @@ import{nothing as t}from"../lit-html.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const l=l=>null!=l?l:t;export{l as ifDefined};
*/const o=o=>o??t;export{o as ifDefined};
//# sourceMappingURL=if-defined.js.map

@@ -6,3 +6,3 @@ /**

*/
const t=async(t,s)=>{for await(const i of t)if(!1===await s(i))return};class s{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class i{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}}export{i as Pauser,s as PseudoWeakRef,t as forAwaitOf};
const t=async(t,s)=>{for await(const i of t)if(!1===await s(i))return};class s{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class i{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise((t=>this.Z=t))}resume(){this.Z?.(),this.Y=this.Z=void 0}}export{i as Pauser,s as PseudoWeakRef,t as forAwaitOf};
//# sourceMappingURL=private-async-helpers.js.map

@@ -6,3 +6,3 @@ /**

*/
function*o(o,l,n=1){const t=void 0===l?0:o;null!=l||(l=o);for(let o=t;n>0?o<l:l<o;o+=n)yield o}export{o as range};
function*o(o,t,e=1){const i=void 0===t?0:o;t??=o;for(let o=i;e>0?o<t:t<o;o+=e)yield o}export{o as range};
//# sourceMappingURL=range.js.map

@@ -23,3 +23,3 @@ /**

export type { Ref };
export declare type RefOrCallback = Ref | ((el: Element | undefined) => void);
export type RefOrCallback = Ref | ((el: Element | undefined) => void);
declare class RefDirective extends AsyncDirective {

@@ -26,0 +26,0 @@ private _element?;

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

import{nothing as i}from"../lit-html.js";import{AsyncDirective as t}from"../async-directive.js";import{directive as s}from"../directive.js";
import{nothing as t}from"../lit-html.js";import{AsyncDirective as i}from"../async-directive.js";import{directive as s}from"../directive.js";
/**

@@ -6,3 +6,3 @@ * @license

* SPDX-License-Identifier: BSD-3-Clause
*/const e=()=>new o;class o{}const h=new WeakMap,n=s(class extends t{render(t){return i}update(t,[s]){var e;const o=s!==this.G;return o&&void 0!==this.G&&this.ot(void 0),(o||this.rt!==this.lt)&&(this.G=s,this.ct=null===(e=t.options)||void 0===e?void 0:e.host,this.ot(this.lt=t.element)),i}ot(i){var t;if("function"==typeof this.G){const s=null!==(t=this.ct)&&void 0!==t?t:globalThis;let e=h.get(s);void 0===e&&(e=new WeakMap,h.set(s,e)),void 0!==e.get(this.G)&&this.G.call(this.ct,void 0),e.set(this.G,i),void 0!==i&&this.G.call(this.ct,i)}else this.G.value=i}get rt(){var i,t,s;return"function"==typeof this.G?null===(t=h.get(null!==(i=this.ct)&&void 0!==i?i:globalThis))||void 0===t?void 0:t.get(this.G):null===(s=this.G)||void 0===s?void 0:s.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});export{e as createRef,n as ref};
*/const e=()=>new h;class h{}const o=new WeakMap,n=s(class extends i{render(i){return t}update(i,[s]){const e=s!==this.G;return e&&void 0!==this.G&&this.ot(void 0),(e||this.rt!==this.lt)&&(this.G=s,this.ct=i.options?.host,this.ot(this.lt=i.element)),t}ot(t){if("function"==typeof this.G){const i=this.ct??globalThis;let s=o.get(i);void 0===s&&(s=new WeakMap,o.set(i,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(){return"function"==typeof this.G?o.get(this.ct??globalThis)?.get(this.G):this.G?.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});export{e as createRef,n as ref};
//# sourceMappingURL=ref.js.map

@@ -8,4 +8,4 @@ /**

import { Directive, PartInfo } from '../directive.js';
export declare type KeyFn<T> = (item: T, index: number) => unknown;
export declare type ItemTemplate<T> = (item: T, index: number) => unknown;
export type KeyFn<T> = (item: T, index: number) => unknown;
export type ItemTemplate<T> = (item: T, index: number) => unknown;
declare class RepeatDirective extends Directive {

@@ -12,0 +12,0 @@ private _itemKeys?;

@@ -7,3 +7,3 @@ import{noChange as e}from"../lit-html.js";import{directive as s,Directive as t,PartType as r}from"../directive.js";import{getCommittedValue as l,setChildPartValue as o,insertPart as i,removePart as n,setCommittedValue as f}from"../directive-helpers.js";

*/
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=s(class extends t{constructor(e){if(super(e),e.type!==r.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return{values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){var d;const a=l(s),{values:p,keys:v}=this.dt(t,r,c);if(!Array.isArray(a))return this.ht=v,p;const h=null!==(d=this.ht)&&void 0!==d?d:this.ht=[],m=[];let y,x,j=0,k=a.length-1,w=0,A=p.length-1;for(;j<=k&&w<=A;)if(null===a[j])j++;else if(null===a[k])k--;else if(h[j]===v[w])m[w]=o(a[j],p[w]),j++,w++;else if(h[k]===v[A])m[A]=o(a[k],p[A]),k--,A--;else if(h[j]===v[A])m[A]=o(a[j],p[A]),i(s,m[A+1],a[j]),j++,A--;else if(h[k]===v[w])m[w]=o(a[k],p[w]),i(s,a[j],a[k]),k--,w++;else if(void 0===y&&(y=u(v,w,A),x=u(h,j,k)),y.has(h[j]))if(y.has(h[k])){const e=x.get(v[w]),t=void 0!==e?a[e]:null;if(null===t){const e=i(s,a[j]);o(e,p[w]),m[w]=e}else m[w]=o(t,p[w]),i(s,a[j],t),a[e]=null;w++}else n(a[k]),k--;else n(a[j]),j++;for(;w<=A;){const e=i(s,m[A+1]);o(e,p[w]),m[w++]=e}for(;j<=k;){const e=a[j++];null!==e&&n(e)}return this.ht=v,f(s,m),e}});export{c as repeat};
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=s(class extends t{constructor(e){if(super(e),e.type!==r.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return{values:o,keys:l}}render(e,s,t){return this.ht(e,s,t).values}update(s,[t,r,c]){const d=l(s),{values:p,keys:a}=this.ht(t,r,c);if(!Array.isArray(d))return this.dt=a,p;const h=this.dt??=[],v=[];let m,y,x=0,j=d.length-1,k=0,w=p.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v[k]=o(d[x],p[k]),x++,k++;else if(h[j]===a[w])v[w]=o(d[j],p[w]),j--,w--;else if(h[x]===a[w])v[w]=o(d[x],p[w]),i(s,v[w+1],d[x]),x++,w--;else if(h[j]===a[k])v[k]=o(d[j],p[k]),i(s,d[x],d[j]),j--,k++;else if(void 0===m&&(m=u(a,k,w),y=u(h,x,j)),m.has(h[x]))if(m.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=i(s,d[x]);o(e,p[k]),v[k]=e}else v[k]=o(t,p[k]),i(s,d[x],t),d[e]=null;k++}else n(d[j]),j--;else n(d[x]),x++;for(;k<=w;){const e=i(s,v[w+1]);o(e,p[k]),v[k++]=e}for(;x<=j;){const e=d[x++];null!==e&&n(e)}return this.dt=a,f(s,v),e}});export{c as repeat};
//# sourceMappingURL=repeat.js.map

@@ -19,3 +19,3 @@ /**

declare class StyleMapDirective extends Directive {
_previousStyleProperties?: Set<string>;
private _previousStyleProperties?;
constructor(partInfo: PartInfo);

@@ -22,0 +22,0 @@ render(styleInfo: Readonly<StyleInfo>): string;

@@ -6,3 +6,3 @@ import{noChange as t}from"../lit-html.js";import{directive as e,Directive as r,PartType as s}from"../directive.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const i="important",n=" !"+i,o=e(class extends r{constructor(t){var e;if(super(t),t.type!==s.ATTRIBUTE||"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.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ut){this.ut=new Set;for(const t in r)this.ut.add(t);return this.render(r)}this.ut.forEach((t=>{null==r[t]&&(this.ut.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in r){const e=r[t];if(null!=e){this.ut.add(t);const r="string"==typeof e&&e.endsWith(n);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?i:""):s[t]=e}}return t}});export{o as styleMap};
*/const n="important",i=" !"+n,o=e(class extends r{constructor(t){if(super(t),t.type!==s.ATTRIBUTE||"style"!==t.name||t.strings?.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.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(r)),this.render(r);for(const t of this.ut)null==r[t]&&(this.ut.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ut.add(t);const r="string"==typeof e&&e.endsWith(i);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:""):s[t]=e}}return t}});export{o as styleMap};
//# sourceMappingURL=style-map.js.map

@@ -6,3 +6,3 @@ import{noChange as t}from"../lit-html.js";import{directive as r,Directive as e,PartType as n}from"../directive.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const o=r(class extends e{constructor(t){if(super(t),t.type!==n.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?t:(this.vt=r,document.importNode(r.content,!0))}});export{o as templateContent};
*/const o=r(class extends e{constructor(t){if(super(t),t.type!==n.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.ft===r?t:(this.ft=r,document.importNode(r.content,!0))}});export{o as templateContent};
//# sourceMappingURL=template-content.js.map

@@ -14,3 +14,3 @@ /**

constructor(partInfo: PartInfo);
render(value: string | typeof nothing | typeof noChange | undefined | null): typeof noChange | typeof nothing | TemplateResult<1 | 2> | null | undefined;
render(value: string | typeof nothing | typeof noChange | undefined | null): typeof noChange | typeof nothing | TemplateResult | null | undefined;
}

@@ -17,0 +17,0 @@ /**

@@ -6,3 +6,3 @@ import{nothing as t,noChange as i}from"../lit-html.js";import{Directive as r,PartType as s,directive as n}from"../directive.js";

* SPDX-License-Identifier: BSD-3-Clause
*/class e extends r{constructor(i){if(super(i),this.et=t,i.type!==s.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===t||null==r)return this.ft=void 0,this.et=r;if(r===i)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.et)return this.ft;this.et=r;const s=[r];return s.raw=s,this.ft={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=n(e);export{e as UnsafeHTMLDirective,o as unsafeHTML};
*/class e extends r{constructor(i){if(super(i),this.et=t,i.type!==s.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===t||null==r)return this.vt=void 0,this.et=r;if(r===i)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.et)return this.vt;this.et=r;const s=[r];return s.raw=s,this.vt={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=n(e);export{e as UnsafeHTMLDirective,o as unsafeHTML};
//# sourceMappingURL=unsafe-html.js.map

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

import{noChange as t}from"../lit-html.js";import{isPrimitive as s}from"../directive-helpers.js";import{AsyncDirective as i}from"../async-directive.js";import{PseudoWeakRef as r,Pauser as e}from"./private-async-helpers.js";import{directive as o}from"../directive.js";
import{noChange as t}from"../lit-html.js";import{isPrimitive as s}from"../directive-helpers.js";import{AsyncDirective as i}from"../async-directive.js";import{PseudoWeakRef as e,Pauser as r}from"./private-async-helpers.js";import{directive as o}from"../directive.js";
/**

@@ -6,3 +6,3 @@ * @license

* SPDX-License-Identifier: BSD-3-Clause
*/const n=t=>!s(t)&&"function"==typeof t.then,h=1073741823;class c extends i{constructor(){super(...arguments),this._$C_t=h,this._$Cwt=[],this._$Cq=new r(this),this._$CK=new e}render(...s){var i;return null!==(i=s.find((t=>!n(t))))&&void 0!==i?i:t}update(s,i){const r=this._$Cwt;let e=r.length;this._$Cwt=i;const o=this._$Cq,c=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<i.length&&!(t>this._$C_t);t++){const s=i[t];if(!n(s))return this._$C_t=t,s;t<e&&s===r[t]||(this._$C_t=h,e=0,Promise.resolve(s).then((async t=>{for(;c.get();)await c.get();const i=o.deref();if(void 0!==i){const r=i._$Cwt.indexOf(s);r>-1&&r<i._$C_t&&(i._$C_t=r,i.setValue(t))}})))}return t}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const m=o(c);export{c as UntilDirective,m as until};
*/const n=t=>!s(t)&&"function"==typeof t.then,h=1073741823;class c extends i{constructor(){super(...arguments),this._$C_t=h,this._$Cwt=[],this._$Cq=new e(this),this._$CK=new r}render(...s){return s.find((t=>!n(t)))??t}update(s,i){const e=this._$Cwt;let r=e.length;this._$Cwt=i;const o=this._$Cq,c=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<i.length&&!(t>this._$C_t);t++){const s=i[t];if(!n(s))return this._$C_t=t,s;t<r&&s===e[t]||(this._$C_t=h,r=0,Promise.resolve(s).then((async t=>{for(;c.get();)await c.get();const i=o.deref();if(void 0!==i){const e=i._$Cwt.indexOf(s);e>-1&&e<i._$C_t&&(i._$C_t=e,i.setValue(t))}})))}return t}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const m=o(c);export{c as UntilDirective,m as until};
//# sourceMappingURL=until.js.map

@@ -6,3 +6,3 @@ /**

*/
function n(n,o,r){return n?o():null==r?void 0:r()}export{n as when};
function n(n,r,t){return n?r():t?.()}export{n as when};
//# sourceMappingURL=when.js.map

@@ -164,3 +164,3 @@ /**

*/
export declare type SanitizerFactory = (node: Node, name: string, type: 'property' | 'attribute') => ValueSanitizer;
export type SanitizerFactory = (node: Node, name: string, type: 'property' | 'attribute') => ValueSanitizer;
/**

@@ -177,7 +177,7 @@ * A function which can sanitize values that will be written to a specific kind

*/
export declare type ValueSanitizer = (value: unknown) => unknown;
export type ValueSanitizer = (value: unknown) => unknown;
/** TemplateResult types */
declare const HTML_RESULT = 1;
declare const SVG_RESULT = 2;
declare type ResultType = typeof HTML_RESULT | typeof SVG_RESULT;
type ResultType = typeof HTML_RESULT | typeof SVG_RESULT;
declare const ATTRIBUTE_PART = 1;

@@ -200,3 +200,3 @@ declare const CHILD_PART = 2;

*/
export declare type TemplateResult<T extends ResultType = ResultType> = {
export type TemplateResult<T extends ResultType = ResultType> = {
['_$litType$']: T;

@@ -206,4 +206,4 @@ strings: TemplateStringsArray;

};
export declare type HTMLTemplateResult = TemplateResult<typeof HTML_RESULT>;
export declare type SVGTemplateResult = TemplateResult<typeof SVG_RESULT>;
export type HTMLTemplateResult = TemplateResult<typeof HTML_RESULT>;
export type SVGTemplateResult = TemplateResult<typeof SVG_RESULT>;
export interface CompiledTemplateResult {

@@ -348,3 +348,3 @@ ['_$litType$']: CompiledTemplate;

}
declare type AttributeTemplatePart = {
type AttributeTemplatePart = {
readonly type: typeof ATTRIBUTE_PART;

@@ -356,11 +356,11 @@ readonly index: number;

};
declare type NodeTemplatePart = {
type NodeTemplatePart = {
readonly type: typeof CHILD_PART;
readonly index: number;
};
declare type ElementTemplatePart = {
type ElementTemplatePart = {
readonly type: typeof ELEMENT_PART;
readonly index: number;
};
declare type CommentTemplatePart = {
type CommentTemplatePart = {
readonly type: typeof COMMENT_PART;

@@ -374,4 +374,4 @@ readonly index: number;

*/
declare type TemplatePart = NodeTemplatePart | AttributeTemplatePart | ElementTemplatePart | CommentTemplatePart;
export declare type Part = ChildPart | AttributePart | PropertyPart | BooleanAttributePart | ElementPart | EventPart;
type TemplatePart = NodeTemplatePart | AttributeTemplatePart | ElementTemplatePart | CommentTemplatePart;
export type Part = ChildPart | AttributePart | PropertyPart | BooleanAttributePart | ElementPart | EventPart;
export type { ChildPart };

@@ -518,3 +518,3 @@ declare class ChildPart implements Disconnectable {

_HTML_RESULT: number;
_getTemplateHtml: (strings: TemplateStringsArray, type: ResultType) => [TrustedHTML, Array<string | undefined>];
_getTemplateHtml: (strings: TemplateStringsArray, type: ResultType) => [TrustedHTML, Array<string>];
_TemplateInstance: typeof TemplateInstance;

@@ -521,0 +521,0 @@ _isIterable: (value: unknown) => value is Iterable<unknown>;

@@ -6,3 +6,3 @@ /**

*/
var t;const i=window,s=i.trustedTypes,e=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,o="$lit$",n=`lit$${(Math.random()+"").slice(9)}$`,l="?"+n,h=`<${l}>`,r=document,d=()=>r.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c=Array.isArray,v=t=>c(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,w=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=w(1),b=w(2),T=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E=new WeakMap,C=r.createTreeWalker(r,129,null,!1),P=(t,i)=>{const s=t.length-1,l=[];let r,d=2===i?"<svg>":"",u=f;for(let i=0;i<s;i++){const s=t[i];let e,c,v=-1,a=0;for(;a<s.length&&(u.lastIndex=a,c=u.exec(s),null!==c);)a=u.lastIndex,u===f?"!--"===c[1]?u=_:void 0!==c[1]?u=m:void 0!==c[2]?(y.test(c[2])&&(r=RegExp("</"+c[2],"g")),u=p):void 0!==c[3]&&(u=p):u===p?">"===c[0]?(u=null!=r?r:f,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,e=c[1],u=void 0===c[3]?p:'"'===c[3]?$:g):u===$||u===g?u=p:u===_||u===m?u=f:(u=p,r=void 0);const w=u===p&&t[i+1].startsWith("/>")?" ":"";d+=u===f?s+h:v>=0?(l.push(e),s.slice(0,v)+o+s.slice(v)+n+w):s+n+(-2===v?(l.push(void 0),i):w)}const c=d+(t[s]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==e?e.createHTML(c):c,l]};class V{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,u=0;const c=t.length-1,v=this.parts,[a,f]=P(t,i);if(this.el=V.createElement(a,e),C.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(h=C.nextNode())&&v.length<c;){if(1===h.nodeType){if(h.hasAttributes()){const t=[];for(const i of h.getAttributeNames())if(i.endsWith(o)||i.startsWith(n)){const s=f[u++];if(t.push(i),void 0!==s){const t=h.getAttribute(s.toLowerCase()+o).split(n),i=/([.?@])?(.*)/.exec(s);v.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?k:"?"===i[1]?I:"@"===i[1]?L:R})}else v.push({type:6,index:r})}for(const i of t)h.removeAttribute(i)}if(y.test(h.tagName)){const t=h.textContent.split(n),i=t.length-1;if(i>0){h.textContent=s?s.emptyScript:"";for(let s=0;s<i;s++)h.append(t[s],d()),C.nextNode(),v.push({type:2,index:++r});h.append(t[i],d())}}}else if(8===h.nodeType)if(h.data===l)v.push({type:2,index:r});else{let t=-1;for(;-1!==(t=h.data.indexOf(n,t+1));)v.push({type:7,index:r}),t+=n.length-1}r++}}static createElement(t,i){const s=r.createElement("template");return s.innerHTML=t,s}}function N(t,i,s=t,e){var o,n,l,h;if(i===T)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const d=u(i)?void 0:i._$litDirective$;return(null==r?void 0:r.constructor)!==d&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===d?r=void 0:(r=new d(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=N(t,r._$AS(t,i.values),r,e)),i}class S{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:r).importNode(s,!0);C.currentNode=o;let n=C.nextNode(),l=0,h=0,d=e[0];for(;void 0!==d;){if(l===d.index){let i;2===d.type?i=new M(n,n.nextSibling,this,t):1===d.type?i=new d.ctor(n,d.name,d.strings,this,t):6===d.type&&(i=new z(n,this,t)),this._$AV.push(i),d=e[++h]}l!==(null==d?void 0:d.index)&&(n=C.nextNode(),l++)}return o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class M{constructor(t,i,s,e){var o;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=N(this,t,i),u(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v(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!==A&&u(this._$AH)?this._$AA.nextSibling.data=t:this.$(r.createTextNode(t)),this._$AH=t}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=V.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(s);else{const t=new S(o,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t}}_$AC(t){let i=E.get(t.strings);return void 0===i&&E.set(t.strings,i=new V(t)),i}T(t){c(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new M(this.k(d()),this.k(d()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class R{constructor(t,i,s,e,o){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=N(this,t,i,0),n=!u(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=N(this,e[s+l],i,l),h===T&&(h=this._$AH[l]),n||(n=!u(h)||h!==this._$AH[l]),h===A?t=A:t!==A&&(t+=(null!=h?h:"")+o[l+1]),this._$AH[l]=h}n&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class k extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}const H=s?s.emptyScript:"";class I extends R{constructor(){super(...arguments),this.type=4}j(t){t&&t!==A?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class L extends R{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=N(this,t,i,0))&&void 0!==s?s:A)===T)return;const e=this._$AH,o=t===A&&e!==A||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==A&&(e===A||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const Z={O:o,P:n,A:l,C:1,M:P,L:S,D:v,R:N,I:M,V:R,H:I,N:L,U:k,F:z},j=i.litHtmlPolyfillSupport;null==j||j(V,M),(null!==(t=i.litHtmlVersions)&&void 0!==t?t:i.litHtmlVersions=[]).push("2.7.3");const B=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new M(i.insertBefore(d(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l};export{Z as _$LH,x as html,T as noChange,A as nothing,B as render,b as svg};
const t=globalThis,i=void 0,s=t.trustedTypes,e=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,n="$lit$",o=`lit$${(Math.random()+"").slice(9)}$`,h="?"+o,r=`<${h}>`,a=document,l=()=>a.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,u=t=>d(t)||"function"==typeof t?.[Symbol.iterator],m="[ \t\n\f\r]",p=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,f=/>/g,g=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,k=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=k(1),x=k(2),T=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),A=new WeakMap,E=a.createTreeWalker(a,129),C=(t,i)=>{const s=t.length-1,h=[];let a,l=2===i?"<svg>":"",c=p;for(let i=0;i<s;i++){const s=t[i];let e,d,u=-1,m=0;for(;m<s.length&&(c.lastIndex=m,d=c.exec(s),null!==d);)m=c.lastIndex,c===p?"!--"===d[1]?c=v:void 0!==d[1]?c=f:void 0!==d[2]?(y.test(d[2])&&(a=RegExp("</"+d[2],"g")),c=g):void 0!==d[3]&&(c=g):c===g?">"===d[0]?(c=a??p,u=-1):void 0===d[1]?u=-2:(u=c.lastIndex-d[2].length,e=d[1],c=void 0===d[3]?g:'"'===d[3]?$:_):c===$||c===_?c=g:c===v||c===f?c=p:(c=g,a=void 0);const k=c===g&&t[i+1].startsWith("/>")?" ":"";l+=c===p?s+r:u>=0?(h.push(e),s.slice(0,u)+n+s.slice(u)+o+k):s+o+(-2===u?i:k)}const d=l+(t[s]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==e?e.createHTML(d):d,h]};class P{constructor({strings:t,_$litType$:e},r){let a;this.parts=[];let c=0,d=0;const u=t.length-1,m=this.parts,[p,v]=C(t,e);if(this.el=P.createElement(p,r),E.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(a=E.nextNode())&&m.length<u;){if(1===a.nodeType){if(a.hasAttributes())for(const t of a.getAttributeNames())if(t.endsWith(n)){const i=v[d++],s=a.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);m.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?I:"?"===e[1]?M:"@"===e[1]?R:S}),a.removeAttribute(t)}else t.startsWith(o)&&(m.push({type:6,index:c}),a.removeAttribute(t));if(y.test(a.tagName)){const t=a.textContent.split(o),i=t.length-1;if(i>0){a.textContent=s?s.emptyScript:"";for(let s=0;s<i;s++)a.append(t[s],l()),E.nextNode(),m.push({type:2,index:++c});a.append(t[i],l())}}}else if(8===a.nodeType)if(a.data===h)m.push({type:2,index:c});else{let t=-1;for(;-1!==(t=a.data.indexOf(o,t+1));)m.push({type:7,index:c}),t+=o.length-1}c++}i?.({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:t})}static createElement(t,i){const s=a.createElement("template");return s.innerHTML=t,s}}function V(t,i,s=t,e){if(i===T)return i;let n=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(t),n._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=n:s._$Cl=n),void 0!==n&&(i=V(t,n._$AS(t,i.values),n,e)),i}class L{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??a).importNode(i,!0);E.currentNode=e;let n=E.nextNode(),o=0,h=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new N(n,n.nextSibling,this,t):1===r.type?i=new r.ctor(n,r.name,r.strings,this,t):6===r.type&&(i=new H(n,this,t)),this._$AV.push(i),r=s[++h]}o!==r?.index&&(n=E.nextNode(),o++)}return e}p(t){let s=0;for(const e of this._$AV)void 0!==e&&(i?.({kind:"set part",part:e,value:t[s],valueIndex:s,values:t,templateInstance:this}),void 0!==e.strings?(e._$AI(t,e,s),s+=e.strings.length-2):e._$AI(t[s])),s++}}class N{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=V(this,t,s),c(t)?t===w||null==t||""===t?(this._$AH!==w&&(i?.({kind:"commit nothing to child",start:this._$AA,end:this._$AB,parent:this._$AM,options:this.options}),this._$AR()),this._$AH=w):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):u(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),i?.({kind:"commit node",start:this._$AA,parent:this._$AM,value:t,options:this.options}),this._$AH=this.k(t))}_(t){if(this._$AH!==w&&c(this._$AH)){const s=this._$AA.nextSibling;i?.({kind:"commit text",node:s,value:t,options:this.options}),s.data=t}else this.$(a.createTextNode(t)),i?.({kind:"commit text",node:this._$AA.nextSibling,value:t,options:this.options});this._$AH=t}g(t){const{values:s,_$litType$:e}=t,n="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=P.createElement(e.h,this.options)),e);if(this._$AH?._$AD===n)i?.({kind:"template updating",template:n,instance:this._$AH,parts:this._$AH._$AV,options:this.options,values:s}),this._$AH.p(s);else{const t=new L(n,this),e=t.u(this.options);i?.({kind:"template instantiated",template:n,instance:t,parts:t._$AV,options:this.options,fragment:e,values:s}),t.p(s),i?.({kind:"template instantiated and updated",template:n,instance:t,parts:t._$AV,options:this.options,fragment:e,values:s}),this.$(e),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new P(t)),i}T(t){d(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const n of t)e===i.length?i.push(s=new N(this.k(l()),this.k(l()),this,this.options)):s=i[e],s._$AI(n),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class S{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,n){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=w}_$AI(t,i=this,s,e){const n=this.strings;let o=!1;if(void 0===n)t=V(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else{const e=t;let h,r;for(t=n[0],h=0;h<n.length-1;h++)r=V(this,e[s+h],i,h),r===T&&(r=this._$AH[h]),o||=!c(r)||r!==this._$AH[h],r===w?t=w:t!==w&&(t+=(r??"")+n[h+1]),this._$AH[h]=r}o&&!e&&this.j(t)}j(t){t===w?this.element.removeAttribute(this.name):(i?.({kind:"commit attribute",element:this.element,name:this.name,value:t,options:this.options}),this.element.setAttribute(this.name,t??""))}}class I extends S{constructor(){super(...arguments),this.type=3}j(t){i?.({kind:"commit property",element:this.element,name:this.name,value:t,options:this.options}),this.element[this.name]=t===w?void 0:t}}class M extends S{constructor(){super(...arguments),this.type=4}j(t){i?.({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!t||t===w),options:this.options}),this.element.toggleAttribute(this.name,!!t&&t!==w)}}class R extends S{constructor(t,i,s,e,n){super(t,i,s,e,n),this.type=5}_$AI(t,s=this){if((t=V(this,t,s,0)??w)===T)return;const e=this._$AH,n=t===w&&e!==w||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,o=t!==w&&(e===w||n);i?.({kind:"commit event listener",element:this.element,name:this.name,value:t,options:this.options,removeListener:n,addListener:o,oldListener:e}),n&&this.element.removeEventListener(this.name,this,e),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class H{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){i?.({kind:"commit to element binding",element:this.element,value:t,options:this.options}),V(this,t)}}const z={S:n,A:o,P:h,M:1,C,L,V:u,D:V,R:N,I:S,H:M,N:R,U:I,B:H},Z=t.litHtmlPolyfillSupport;Z?.(P,N),(t.litHtmlVersions??=[]).push("3.0.0-pre.0");const j=(t,s,e)=>{const n=e?.renderBefore??s;let o=n._$litPart$;if(i?.({kind:"begin render",id:0,value:t,container:s,options:e,part:o}),void 0===o){const t=e?.renderBefore??null;n._$litPart$=o=new N(s.insertBefore(l(),t),t,void 0,e??{})}return o._$AI(t),i?.({kind:"end render",id:0,value:t,container:s,options:e,part:o}),o};export{z as _$LH,b as html,T as noChange,w as nothing,j as render,x as svg};
//# sourceMappingURL=lit-html.js.map

@@ -6,3 +6,3 @@ import{isSingleExpression as i}from"./directive-helpers.js";import{Directive as t,PartType as e}from"./directive.js";export{Directive,PartType,directive}from"./directive.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const s=(i,t)=>{var e,o;const r=i._$AN;if(void 0===r)return!1;for(const i of r)null===(o=(e=i)._$AO)||void 0===o||o.call(e,t,!1),s(i,t);return!0},o=i=>{let t,e;do{if(void 0===(t=i._$AM))break;e=t._$AN,e.delete(i),i=t}while(0===(null==e?void 0:e.size))},r=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(void 0===e)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),l(t)}};function n(i){void 0!==this._$AN?(o(this),this._$AM=i,r(this)):this._$AM=i}function h(i,t=!1,e=0){const r=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(t)if(Array.isArray(r))for(let i=e;i<r.length;i++)s(r[i],!1),o(r[i]);else null!=r&&(s(r,!1),o(r));else s(this,i)}const l=i=>{var t,s,o,r;i.type==e.CHILD&&(null!==(t=(o=i)._$AP)&&void 0!==t||(o._$AP=h),null!==(s=(r=i)._$AQ)&&void 0!==s||(r._$AQ=n))};class c extends t{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),r(this),this.isConnected=i._$AU}_$AO(i,t=!0){var e,r;i!==this.isConnected&&(this.isConnected=i,i?null===(e=this.reconnected)||void 0===e||e.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),t&&(s(this,i),o(this))}setValue(t){if(i(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}export{c as AsyncDirective};
*/const s=(i,t)=>{const e=i._$AN;if(void 0===e)return!1;for(const i of e)i._$AO?.(t,!1),s(i,t);return!0},o=i=>{let t,e;do{if(void 0===(t=i._$AM))break;e=t._$AN,e.delete(i),i=t}while(0===e?.size)},r=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(void 0===e)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),c(t)}};function h(i){void 0!==this._$AN?(o(this),this._$AM=i,r(this)):this._$AM=i}function n(i,t=!1,e=0){const r=this._$AH,h=this._$AN;if(void 0!==h&&0!==h.size)if(t)if(Array.isArray(r))for(let i=e;i<r.length;i++)s(r[i],!1),o(r[i]);else null!=r&&(s(r,!1),o(r));else s(this,i)}const c=i=>{i.type==e.CHILD&&(i._$AP??=n,i._$AQ??=h)};class f extends t{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),r(this),this.isConnected=i._$AU}_$AO(i,t=!0){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(s(this,i),o(this))}setValue(t){if(i(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}export{f as AsyncDirective};
//# sourceMappingURL=async-directive.js.map

@@ -18,3 +18,2 @@ import { isSingleExpression } from './directive-helpers.js';

const notifyChildrenConnectedChanged = (parent, isConnected) => {
var _a, _b;
const children = parent._$disconnectableChildren;

@@ -33,3 +32,3 @@ if (children === undefined) {

// This property needs to remain unminified.
(_b = (_a = obj)['_$notifyDirectiveConnectionChanged']) === null || _b === void 0 ? void 0 : _b.call(_a, isConnected, false);
obj['_$notifyDirectiveConnectionChanged']?.(isConnected, false);
// Disconnect Part/TemplateInstance

@@ -55,3 +54,3 @@ notifyChildrenConnectedChanged(obj, isConnected);

obj = parent;
} while ((children === null || children === void 0 ? void 0 : children.size) === 0);
} while (children?.size === 0);
};

@@ -145,7 +144,6 @@ const addDisconnectableToParent = (obj) => {

const installDisconnectAPI = (obj) => {
var _a, _b;
var _c, _d;
if (obj.type == PartType.CHILD) {
(_a = (_c = obj)._$notifyConnectionChanged) !== null && _a !== void 0 ? _a : (_c._$notifyConnectionChanged = notifyChildPartConnectedChanged);
(_b = (_d = obj)._$reparentDisconnectables) !== null && _b !== void 0 ? _b : (_d._$reparentDisconnectables = reparentDisconnectables);
obj._$notifyConnectionChanged ??=
notifyChildPartConnectedChanged;
obj._$reparentDisconnectables ??= reparentDisconnectables;
}

@@ -201,10 +199,9 @@ };

['_$notifyDirectiveConnectionChanged'](isConnected, isClearingDirective = true) {
var _a, _b;
if (isConnected !== this.isConnected) {
this.isConnected = isConnected;
if (isConnected) {
(_a = this.reconnected) === null || _a === void 0 ? void 0 : _a.call(this);
this.reconnected?.();
}
else {
(_b = this.disconnected) === null || _b === void 0 ? void 0 : _b.call(this);
this.disconnected?.();
}

@@ -211,0 +208,0 @@ }

@@ -25,4 +25,4 @@ import { _$LH } from './lit-html.js';

? // This property needs to remain unminified.
(value === null || value === void 0 ? void 0 : value['_$litType$']) !== undefined
: (value === null || value === void 0 ? void 0 : value['_$litType$']) === type;
value?.['_$litType$'] !== undefined
: value?.['_$litType$'] === type;
/**

@@ -33,3 +33,3 @@ * Tests if a value is a DirectiveResult.

// This property needs to remain unminified.
(value === null || value === void 0 ? void 0 : value['_$litDirective$']) !== undefined;
value?.['_$litDirective$'] !== undefined;
/**

@@ -40,3 +40,3 @@ * Retrieves the Directive class for a DirectiveResult

// This property needs to remain unminified.
value === null || value === void 0 ? void 0 : value['_$litDirective$'];
value?.['_$litDirective$'];
/**

@@ -65,3 +65,2 @@ * Tests whether a part has only a single-expression with no strings to

const insertPart = (containerPart, refPart, part) => {
var _a;
const container = wrap(containerPart._$startNode).parentNode;

@@ -79,3 +78,3 @@ const refNode = refPart === undefined ? containerPart._$endNode : refPart._$startNode;

if (parentChanged) {
(_a = part._$reparentDisconnectables) === null || _a === void 0 ? void 0 : _a.call(part, containerPart);
part._$reparentDisconnectables?.(containerPart);
// Note that although `_$reparentDisconnectables` updates the part's

@@ -163,4 +162,3 @@ // `_$parent` reference after unlinking from its current parent, that

const removePart = (part) => {
var _a;
(_a = part._$notifyConnectionChanged) === null || _a === void 0 ? void 0 : _a.call(part, false, true);
part._$notifyConnectionChanged?.(false, true);
let start = part._$startNode;

@@ -167,0 +165,0 @@ const end = wrap(part._$endNode).nextSibling;

@@ -39,3 +39,3 @@ /**

}
return defaultCase === null || defaultCase === void 0 ? void 0 : defaultCase();
return defaultCase?.();
};

@@ -42,0 +42,0 @@

@@ -11,7 +11,6 @@ import { noChange } from '../lit-html.js';

constructor(partInfo) {
var _a;
super(partInfo);
if (partInfo.type !== PartType.ATTRIBUTE ||
partInfo.name !== 'class' ||
((_a = partInfo.strings) === null || _a === void 0 ? void 0 : _a.length) > 2) {
partInfo.strings?.length > 2) {
throw new Error('`classMap()` can only be used in the `class` attribute ' +

@@ -30,3 +29,2 @@ 'and must be the only part in the attribute.');

update(part, [classInfo]) {
var _a, _b;
// Remember dynamic classes on the first render

@@ -42,3 +40,3 @@ if (this._previousClasses === undefined) {

for (const name in classInfo) {
if (classInfo[name] && !((_a = this._staticClasses) === null || _a === void 0 ? void 0 : _a.has(name))) {
if (classInfo[name] && !this._staticClasses?.has(name)) {
this._previousClasses.add(name);

@@ -51,5 +49,3 @@ }

// Remove old classes that no longer apply
// We use forEach() instead of for-of so that we don't require down-level
// iteration.
this._previousClasses.forEach((name) => {
for (const name of this._previousClasses) {
if (!(name in classInfo)) {

@@ -59,3 +55,3 @@ classList.remove(name);

}
});
}
// Add or remove classes based on their classMap value

@@ -67,3 +63,3 @@ for (const name in classInfo) {

if (value !== this._previousClasses.has(name) &&
!((_b = this._staticClasses) === null || _b === void 0 ? void 0 : _b.has(name))) {
!this._staticClasses?.has(name)) {
if (value) {

@@ -70,0 +66,0 @@ classList.add(name);

@@ -14,5 +14,5 @@ import { nothing } from '../lit-html.js';

*/
const ifDefined = (value) => value !== null && value !== void 0 ? value : nothing;
const ifDefined = (value) => value ?? nothing;
export { ifDefined };
//# sourceMappingURL=if-defined.js.map

@@ -73,4 +73,3 @@ /**

pause() {
var _a;
(_a = this._promise) !== null && _a !== void 0 ? _a : (this._promise = new Promise((resolve) => (this._resolve = resolve)));
this._promise ??= new Promise((resolve) => (this._resolve = resolve));
}

@@ -81,4 +80,3 @@ /**

resume() {
var _a;
(_a = this._resolve) === null || _a === void 0 ? void 0 : _a.call(this);
this._resolve?.();
this._promise = this._resolve = undefined;

@@ -85,0 +83,0 @@ }

@@ -8,3 +8,3 @@ /**

const start = end === undefined ? 0 : startOrEnd;
end !== null && end !== void 0 ? end : (end = startOrEnd);
end ??= startOrEnd;
for (let i = start; step > 0 ? i < end : end < i; i += step) {

@@ -11,0 +11,0 @@ yield i;

@@ -30,3 +30,2 @@ import { nothing } from '../lit-html.js';

update(part, [ref]) {
var _a;
const refChanged = ref !== this._ref;

@@ -42,3 +41,3 @@ if (refChanged && this._ref !== undefined) {

this._ref = ref;
this._context = (_a = part.options) === null || _a === void 0 ? void 0 : _a.host;
this._context = part.options?.host;
this._updateRefValue((this._element = part.element));

@@ -49,3 +48,2 @@ }

_updateRefValue(element) {
var _a;
if (typeof this._ref === 'function') {

@@ -61,3 +59,3 @@ // If the current ref was called with a previous value, call with

// these as unique "instances" of a function.
const context = (_a = this._context) !== null && _a !== void 0 ? _a : globalThis;
const context = this._context ?? globalThis;
let lastElementForCallback = lastElementForContextAndCallback.get(context);

@@ -82,7 +80,7 @@ if (lastElementForCallback === undefined) {

get _lastElementForRef() {
var _a, _b, _c;
return typeof this._ref === 'function'
? (_b = lastElementForContextAndCallback
.get((_a = this._context) !== null && _a !== void 0 ? _a : globalThis)) === null || _b === void 0 ? void 0 : _b.get(this._ref)
: (_c = this._ref) === null || _c === void 0 ? void 0 : _c.value;
? lastElementForContextAndCallback
.get(this._context ?? globalThis)
?.get(this._ref)
: this._ref?.value;
}

@@ -89,0 +87,0 @@ disconnected() {

@@ -52,3 +52,2 @@ import { noChange } from '../lit-html.js';

update(containerPart, [items, keyFnOrTemplate, template]) {
var _a;
// Old part & key lists are retrieved from the last update (which may

@@ -72,3 +71,3 @@ // be primed by hydration)

// reuses the oldPart.
const oldKeys = ((_a = this._itemKeys) !== null && _a !== void 0 ? _a : (this._itemKeys = []));
const oldKeys = (this._itemKeys ??= []);
// New part list will be built up as we go (either reused from

@@ -75,0 +74,0 @@ // old parts or created for new keys in this update). This is

@@ -16,7 +16,6 @@ import { noChange } from '../lit-html.js';

constructor(partInfo) {
var _a;
super(partInfo);
if (partInfo.type !== PartType.ATTRIBUTE ||
partInfo.name !== 'style' ||
((_a = partInfo.strings) === null || _a === void 0 ? void 0 : _a.length) > 2) {
partInfo.strings?.length > 2) {
throw new Error('The `styleMap` directive must be used in the `style` attribute ' +

@@ -50,12 +49,7 @@ 'and must be the only part in the attribute.');

if (this._previousStyleProperties === undefined) {
this._previousStyleProperties = new Set();
for (const name in styleInfo) {
this._previousStyleProperties.add(name);
}
this._previousStyleProperties = new Set(Object.keys(styleInfo));
return this.render(styleInfo);
}
// Remove old properties that no longer exist in styleInfo
// We use forEach() instead of for-of so that re don't require down-level
// iteration.
this._previousStyleProperties.forEach((name) => {
for (const name of this._previousStyleProperties) {
// If the name isn't in styleInfo or it's null/undefined

@@ -68,9 +62,7 @@ if (styleInfo[name] == null) {

else {
// Note reset using empty string (vs null) as IE11 does not always
// reset via null (https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style#setting_styles)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
style[name] = '';
style[name] = null;
}
}
});
}
// Add or update properties

@@ -77,0 +69,0 @@ for (const name in styleInfo) {

@@ -26,4 +26,3 @@ import { noChange } from '../lit-html.js';

render(...args) {
var _a;
return (_a = args.find((x) => !isPromise(x))) !== null && _a !== void 0 ? _a : noChange;
return args.find((x) => !isPromise(x)) ?? noChange;
}

@@ -30,0 +29,0 @@ update(_part, args) {

@@ -7,3 +7,3 @@ /**

function when(condition, trueCase, falseCase) {
return condition ? trueCase() : falseCase === null || falseCase === void 0 ? void 0 : falseCase();
return condition ? trueCase() : falseCase?.();
}

@@ -10,0 +10,0 @@

@@ -6,5 +6,4 @@ /**

*/
var _a, _d;
// Use window for browser builds because IE11 doesn't have globalThis.
const global = globalThis ;
// Allows minifiers to rename references to globalThis
const global = globalThis;
/**

@@ -32,3 +31,3 @@ * Useful for visualizing and logging insights into what the Lit template system is doing.

{
(_a = global.litIssuedWarnings) !== null && _a !== void 0 ? _a : (global.litIssuedWarnings = new Set());
global.litIssuedWarnings ??= new Set();
// Issue a warning, if we haven't already.

@@ -106,3 +105,3 @@ issueWarning = (code, warning) => {

// eslint-disable-next-line @typescript-eslint/no-explicit-any
typeof (value === null || value === void 0 ? void 0 : value[Symbol.iterator]) === 'function';
typeof value?.[Symbol.iterator] === 'function';
const SPACE_CHAR = `[ \t\n\f\r]`;

@@ -271,3 +270,3 @@ const ATTR_VALUE_CHAR = `[^ \t\n\f\r"'\`<>=]`;

const templateCache = new WeakMap();
const walker = d.createTreeWalker(d, 129 /* NodeFilter.SHOW_{ELEMENT|COMMENT} */, null, false);
const walker = d.createTreeWalker(d, 129 /* NodeFilter.SHOW_{ELEMENT|COMMENT} */);
let sanitizerFactoryInternal = noopSanitizer;

@@ -354,3 +353,3 @@ /**

// regex
regex = rawTextEndRegex !== null && rawTextEndRegex !== void 0 ? rawTextEndRegex : textEndRegex;
regex = rawTextEndRegex ?? textEndRegex;
// We may be ending an unquoted attribute value, so make sure we

@@ -421,5 +420,3 @@ // clear any pending attrNameEndIndex

end
: s +
marker +
(attrNameEndIndex === -2 ? (attrNames.push(undefined), i) : end);
: s + marker + (attrNameEndIndex === -2 ? i : end);
}

@@ -474,8 +471,6 @@ const htmlResult = html + (strings[l] || '<?>') + (type === SVG_RESULT ? '</svg>' : '');

walker.currentNode = this.el.content;
// Reparent SVG nodes into template root
// Re-parent SVG nodes into template root
if (type === SVG_RESULT) {
const content = this.el.content;
const svgElement = content.firstChild;
svgElement.remove();
content.append(...svgElement.childNodes);
const svgElement = this.el.content.firstChild;
svgElement.replaceWith(...svgElement.childNodes);
}

@@ -507,48 +502,31 @@ // Walk the template to find binding markers and create TemplateParts

if (node.hasAttributes()) {
// We defer removing bound attributes because on IE we might not be
// iterating attributes in their template order, and would sometimes
// remove an attribute that we still need to create a part for.
const attrsToRemove = [];
for (const name of node.getAttributeNames()) {
// `name` is the name of the attribute we're iterating over, but not
// _necessarily_ the name of the attribute we will create a part
// for. They can be different in browsers that don't iterate on
// attributes in source order. In that case the attrNames array
// contains the attribute name we'll process next. We only need the
// attribute name here to know if we should process a bound attribute
// on this element.
if (name.endsWith(boundAttributeSuffix) ||
name.startsWith(marker)) {
if (name.endsWith(boundAttributeSuffix)) {
const realName = attrNames[attrNameIndex++];
attrsToRemove.push(name);
if (realName !== undefined) {
// Lowercase for case-sensitive SVG attributes like viewBox
const value = node.getAttribute(realName.toLowerCase() + boundAttributeSuffix);
const statics = value.split(marker);
const m = /([.?@])?(.*)/.exec(realName);
parts.push({
type: ATTRIBUTE_PART,
index: nodeIndex,
name: m[2],
strings: statics,
ctor: m[1] === '.'
? PropertyPart
: m[1] === '?'
? BooleanAttributePart
: m[1] === '@'
? EventPart
: AttributePart,
});
}
else {
parts.push({
type: ELEMENT_PART,
index: nodeIndex,
});
}
const value = node.getAttribute(name);
const statics = value.split(marker);
const m = /([.?@])?(.*)/.exec(realName);
parts.push({
type: ATTRIBUTE_PART,
index: nodeIndex,
name: m[2],
strings: statics,
ctor: m[1] === '.'
? PropertyPart
: m[1] === '?'
? BooleanAttributePart
: m[1] === '@'
? EventPart
: AttributePart,
});
node.removeAttribute(name);
}
else if (name.startsWith(marker)) {
parts.push({
type: ELEMENT_PART,
index: nodeIndex,
});
node.removeAttribute(name);
}
}
for (const name of attrsToRemove) {
node.removeAttribute(name);
}
}

@@ -603,3 +581,3 @@ // TODO (justinfagnani): benchmark the regex against testing for each

}
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'template prep',

@@ -621,4 +599,2 @@ template: this,

function resolveDirective(part, value, parent = part, attributeIndex) {
var _a, _b, _c;
var _d;
// Bail early if the value is explicitly noChange. Note, this means any

@@ -630,3 +606,3 @@ // nested directive is still attached and is not run.

let currentDirective = attributeIndex !== undefined
? (_a = parent.__directives) === null || _a === void 0 ? void 0 : _a[attributeIndex]
? parent.__directives?.[attributeIndex]
: parent.__directive;

@@ -637,5 +613,5 @@ const nextDirectiveConstructor = isPrimitive(value)

value['_$litDirective$'];
if ((currentDirective === null || currentDirective === void 0 ? void 0 : currentDirective.constructor) !== nextDirectiveConstructor) {
if (currentDirective?.constructor !== nextDirectiveConstructor) {
// This property needs to remain unminified.
(_b = currentDirective === null || currentDirective === void 0 ? void 0 : currentDirective['_$notifyDirectiveConnectionChanged']) === null || _b === void 0 ? void 0 : _b.call(currentDirective, false);
currentDirective?.['_$notifyDirectiveConnectionChanged']?.(false);
if (nextDirectiveConstructor === undefined) {

@@ -649,3 +625,3 @@ currentDirective = undefined;

if (attributeIndex !== undefined) {
((_c = (_d = parent).__directives) !== null && _c !== void 0 ? _c : (_d.__directives = []))[attributeIndex] =
(parent.__directives ??= [])[attributeIndex] =
currentDirective;

@@ -685,5 +661,4 @@ }

_clone(options) {
var _a;
const { el: { content }, parts: parts, } = this._$template;
const fragment = ((_a = options === null || options === void 0 ? void 0 : options.creationScope) !== null && _a !== void 0 ? _a : d).importNode(content, true);
const fragment = (options?.creationScope ?? d).importNode(content, true);
walker.currentNode = fragment;

@@ -709,3 +684,3 @@ let node = walker.nextNode();

}
if (nodeIndex !== (templatePart === null || templatePart === void 0 ? void 0 : templatePart.index)) {
if (nodeIndex !== templatePart?.index) {
node = walker.nextNode();

@@ -721,3 +696,3 @@ nodeIndex++;

if (part !== undefined) {
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'set part',

@@ -746,4 +721,10 @@ part,

class ChildPart {
// See comment in Disconnectable interface for why this is a getter
get _$isConnected() {
// ChildParts that are not at the root should always be created with a
// parent; only RootChildNode's won't, so they return the local isConnected
// state
return this._$parent?._$isConnected ?? this.__isConnected;
}
constructor(startNode, endNode, parent, options) {
var _a;
this.type = CHILD_PART;

@@ -762,3 +743,3 @@ this._$committedValue = nothing;

// for parent would be more code
this.__isConnected = (_a = options === null || options === void 0 ? void 0 : options.isConnected) !== null && _a !== void 0 ? _a : true;
this.__isConnected = options?.isConnected ?? true;
{

@@ -769,10 +750,2 @@ // Explicitly initialize for consistent class shape.

}
// See comment in Disconnectable interface for why this is a getter
get _$isConnected() {
var _a, _b;
// ChildParts that are not at the root should always be created with a
// parent; only RootChildNode's won't, so they return the local isConnected
// state
return (_b = (_a = this._$parent) === null || _a === void 0 ? void 0 : _a._$isConnected) !== null && _b !== void 0 ? _b : this.__isConnected;
}
/**

@@ -800,3 +773,3 @@ * The parent node into which the part renders its content.

if (parent !== undefined &&
(parentNode === null || parentNode === void 0 ? void 0 : parentNode.nodeType) === 11 /* Node.DOCUMENT_FRAGMENT */) {
parentNode?.nodeType === 11 /* Node.DOCUMENT_FRAGMENT */) {
// If the parentNode is a DocumentFragment, it may be because the DOM is

@@ -824,3 +797,2 @@ // still in the cloned fragment during initial render; if so, get the real

_$setValue(value, directiveParent = this) {
var _a;
if (this.parentNode === null) {

@@ -836,3 +808,3 @@ throw new Error(`This \`ChildPart\` has no \`parentNode\` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's \`innerHTML\` or \`textContent\` can do this.`);

if (this._$committedValue !== nothing) {
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'commit nothing to child',

@@ -857,3 +829,3 @@ start: this._$startNode,

else if (value.nodeType !== undefined) {
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.host) === value) {
if (this.options?.host === value) {
this._commitText(`[probable mistake: rendered a template's host in itself ` +

@@ -878,7 +850,6 @@ `(commonly caused by writing \${this} in a template]`);

_commitNode(value) {
var _a;
if (this._$committedValue !== value) {
this._$clear();
if (sanitizerFactoryInternal !== noopSanitizer) {
const parentNodeName = (_a = this._$startNode.parentNode) === null || _a === void 0 ? void 0 : _a.nodeName;
const parentNodeName = this._$startNode.parentNode?.nodeName;
if (parentNodeName === 'STYLE' || parentNodeName === 'SCRIPT') {

@@ -907,3 +878,3 @@ let message = 'Forbidden';

}
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'commit node',

@@ -931,3 +902,3 @@ start: this._$startNode,

}
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'commit text',

@@ -952,3 +923,3 @@ node,

value = this._textSanitizer(value);
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'commit text',

@@ -965,3 +936,2 @@ node: textNode,

_commitTemplateResult(result) {
var _a;
// This property needs to remain unminified.

@@ -978,4 +948,4 @@ const { values, ['_$litType$']: type } = result;

type);
if (((_a = this._$committedValue) === null || _a === void 0 ? void 0 : _a._$template) === template) {
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
if (this._$committedValue?._$template === template) {
debugLogEvent?.({
kind: 'template updating',

@@ -993,3 +963,3 @@ template,

const fragment = instance._clone(this.options);
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'template instantiated',

@@ -1004,3 +974,3 @@ template,

instance._update(values);
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'template instantiated and updated',

@@ -1080,4 +1050,3 @@ template,

_$clear(start = wrap(this._$startNode).nextSibling, from) {
var _a;
(_a = this._$notifyConnectionChanged) === null || _a === void 0 ? void 0 : _a.call(this, false, true, from);
this._$notifyConnectionChanged?.(false, true, from);
while (start && start !== this._$endNode) {

@@ -1097,6 +1066,5 @@ const n = wrap(start).nextSibling;

setConnected(isConnected) {
var _a;
if (this._$parent === undefined) {
this.__isConnected = isConnected;
(_a = this._$notifyConnectionChanged) === null || _a === void 0 ? void 0 : _a.call(this, isConnected);
this._$notifyConnectionChanged?.(isConnected);
}

@@ -1110,2 +1078,9 @@ else {

class AttributePart {
get tagName() {
return this.element.tagName;
}
// See comment in Disconnectable interface for why this is a getter
get _$isConnected() {
return this._$parent._$isConnected;
}
constructor(element, name, strings, parent, options) {

@@ -1132,9 +1107,2 @@ this.type = ATTRIBUTE_PART;

}
get tagName() {
return this.element.tagName;
}
// See comment in Disconnectable interface for why this is a getter
get _$isConnected() {
return this._$parent._$isConnected;
}
/**

@@ -1187,3 +1155,4 @@ * Sets the value of this part by resolving the value from possibly multiple

}
change || (change = !isPrimitive(v) || v !== this._$committedValue[i]);
change ||=
!isPrimitive(v) || v !== this._$committedValue[i];
if (v === nothing) {

@@ -1193,3 +1162,3 @@ value = nothing;

else if (value !== nothing) {
value += (v !== null && v !== void 0 ? v : '') + strings[i + 1];
value += (v ?? '') + strings[i + 1];
}

@@ -1215,5 +1184,5 @@ // We always record each value, even if one is `nothing`, for future

}
value = this._sanitizer(value !== null && value !== void 0 ? value : '');
value = this._sanitizer(value ?? '');
}
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'commit attribute',

@@ -1225,3 +1194,3 @@ element: this.element,

});
wrap(this.element).setAttribute(this.name, (value !== null && value !== void 0 ? value : ''));
wrap(this.element).setAttribute(this.name, (value ?? ''));
}

@@ -1243,3 +1212,3 @@ }

}
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'commit property',

@@ -1255,9 +1224,2 @@ element: this.element,

}
// Temporary workaround for https://crbug.com/993268
// Currently, any attribute starting with "on" is considered to be a
// TrustedScript source. Such boolean attributes must be set to the equivalent
// trusted emptyScript value.
const emptyStringForBooleanAttribute = trustedTypes
? trustedTypes.emptyScript
: '';
class BooleanAttributePart extends AttributePart {

@@ -1270,3 +1232,3 @@ constructor() {

_commitValue(value) {
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'commit boolean attribute',

@@ -1278,8 +1240,3 @@ element: this.element,

});
if (value && value !== nothing) {
wrap(this.element).setAttribute(this.name, emptyStringForBooleanAttribute);
}
else {
wrap(this.element).removeAttribute(this.name);
}
wrap(this.element).toggleAttribute(this.name, !!value && value !== nothing);
}

@@ -1301,5 +1258,4 @@ }

_$setValue(newListener, directiveParent = this) {
var _a;
newListener =
(_a = resolveDirective(this, newListener, directiveParent, 0)) !== null && _a !== void 0 ? _a : nothing;
resolveDirective(this, newListener, directiveParent, 0) ?? nothing;
if (newListener === noChange) {

@@ -1322,3 +1278,3 @@ return;

(oldListener === nothing || shouldRemoveListener);
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'commit event listener',

@@ -1345,5 +1301,4 @@ element: this.element,

handleEvent(event) {
var _a, _b;
if (typeof this._$committedValue === 'function') {
this._$committedValue.call((_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : this.element, event);
this._$committedValue.call(this.options?.host ?? this.element, event);
}

@@ -1369,3 +1324,3 @@ else {

_$setValue(value) {
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'commit to element binding',

@@ -1418,6 +1373,6 @@ element: this.element,

;
polyfillSupport === null || polyfillSupport === void 0 ? void 0 : polyfillSupport(Template, ChildPart);
polyfillSupport?.(Template, ChildPart);
// IMPORTANT: do not change the property name or the assignment expression.
// This line will be used in regexes to search for lit-html usage.
((_d = global.litHtmlVersions) !== null && _d !== void 0 ? _d : (global.litHtmlVersions = [])).push('2.7.3');
(global.litHtmlVersions ??= []).push('3.0.0-pre.0');
if (global.litHtmlVersions.length > 1) {

@@ -1453,3 +1408,2 @@ issueWarning('multiple-versions', `Multiple versions of Lit loaded. ` +

const render = (value, container, options) => {
var _a, _b;
if (container == null) {

@@ -1463,7 +1417,7 @@ // Give a clearer error message than

const renderId = debugLogRenderId++ ;
const partOwnerNode = (_a = options === null || options === void 0 ? void 0 : options.renderBefore) !== null && _a !== void 0 ? _a : container;
const partOwnerNode = options?.renderBefore ?? container;
// This property needs to remain unminified.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let part = partOwnerNode['_$litPart$'];
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'begin render',

@@ -1477,9 +1431,9 @@ id: renderId,

if (part === undefined) {
const endNode = (_b = options === null || options === void 0 ? void 0 : options.renderBefore) !== null && _b !== void 0 ? _b : null;
const endNode = options?.renderBefore ?? null;
// This property needs to remain unminified.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
partOwnerNode['_$litPart$'] = part = new ChildPart(container.insertBefore(createMarker(), endNode), endNode, undefined, options !== null && options !== void 0 ? options : {});
partOwnerNode['_$litPart$'] = part = new ChildPart(container.insertBefore(createMarker(), endNode), endNode, undefined, options ?? {});
}
part._$setValue(value);
debugLogEvent === null || debugLogEvent === void 0 ? void 0 : debugLogEvent({
debugLogEvent?.({
kind: 'end render',

@@ -1486,0 +1440,0 @@ id: renderId,

@@ -26,6 +26,6 @@ import { html as html$1, svg as svg$1 } from './lit-html.js';

const unwrapStaticValue = (value) => {
if ((value === null || value === void 0 ? void 0 : value.r) !== brand) {
if (value?.r !== brand) {
return undefined;
}
return value === null || value === void 0 ? void 0 : value['_$litStatic$'];
return value?.['_$litStatic$'];
};

@@ -32,0 +32,0 @@ /**

@@ -6,3 +6,3 @@ import{_$LH as o}from"./lit-html.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const{I:l}=o,t=o=>null===o||"object"!=typeof o&&"function"!=typeof o,i={HTML:1,SVG:2},n=(o,l)=>void 0===l?void 0!==(null==o?void 0:o._$litType$):(null==o?void 0:o._$litType$)===l,d=o=>void 0!==(null==o?void 0:o._$litDirective$),v=o=>null==o?void 0:o._$litDirective$,e=o=>void 0===o.strings,c=()=>document.createComment(""),r=(o,t,i)=>{var n;const d=o._$AA.parentNode,v=void 0===t?o._$AB:t._$AA;if(void 0===i){const t=d.insertBefore(c(),v),n=d.insertBefore(c(),v);i=new l(t,n,o,o.options)}else{const l=i._$AB.nextSibling,t=i._$AM,e=t!==o;if(e){let l;null===(n=i._$AQ)||void 0===n||n.call(i,o),i._$AM=o,void 0!==i._$AP&&(l=o._$AU)!==t._$AU&&i._$AP(l)}if(l!==v||e){let o=i._$AA;for(;o!==l;){const l=o.nextSibling;d.insertBefore(o,v),o=l}}}return i},u=(o,l,t=o)=>(o._$AI(l,t),o),f={},s=(o,l=f)=>o._$AH=l,m=o=>o._$AH,p=o=>{var l;null===(l=o._$AP)||void 0===l||l.call(o,!1,!0);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o}},a=o=>{o._$AR()};export{i as TemplateResultType,a as clearPart,m as getCommittedValue,v as getDirectiveClass,r as insertPart,d as isDirectiveResult,t as isPrimitive,e as isSingleExpression,n as isTemplateResult,p as removePart,u as setChildPartValue,s as setCommittedValue};
*/const{R:t}=o,i=o=>null===o||"object"!=typeof o&&"function"!=typeof o,n={HTML:1,SVG:2},e=(o,t)=>void 0===t?void 0!==o?._$litType$:o?._$litType$===t,c=o=>void 0!==o?._$litDirective$,d=o=>o?._$litDirective$,f=o=>void 0===o.strings,l=()=>document.createComment(""),s=(o,i,n)=>{const e=o._$AA.parentNode,c=void 0===i?o._$AB:i._$AA;if(void 0===n){const i=e.insertBefore(l(),c),d=e.insertBefore(l(),c);n=new t(i,d,o,o.options)}else{const t=n._$AB.nextSibling,i=n._$AM,d=i!==o;if(d){let t;n._$AQ?.(o),n._$AM=o,void 0!==n._$AP&&(t=o._$AU)!==i._$AU&&n._$AP(t)}if(t!==c||d){let o=n._$AA;for(;o!==t;){const t=o.nextSibling;e.insertBefore(o,c),o=t}}}return n},r=(o,t,i=o)=>(o._$AI(t,i),o),v={},m=(o,t=v)=>o._$AH=t,p=o=>o._$AH,u=o=>{o._$AP?.(!1,!0);let t=o._$AA;const i=o._$AB.nextSibling;for(;t!==i;){const o=t.nextSibling;t.remove(),t=o}},h=o=>{o._$AR()};export{n as TemplateResultType,h as clearPart,p as getCommittedValue,d as getDirectiveClass,s as insertPart,c as isDirectiveResult,i as isPrimitive,f as isSingleExpression,e as isTemplateResult,u as removePart,r as setChildPartValue,m as setCommittedValue};
//# sourceMappingURL=directive-helpers.js.map

@@ -6,3 +6,3 @@ /**

*/
const o=(o,r,n)=>{for(const n of r)if(n[0]===o)return(0,n[1])();return null==n?void 0:n()};export{o as choose};
const r=(r,o,t)=>{for(const t of o)if(t[0]===r)return(0,t[1])();return t?.()};export{r as choose};
//# sourceMappingURL=choose.js.map

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

import{noChange as t}from"../lit-html.js";import{directive as i,Directive as s,PartType as r}from"../directive.js";
import{noChange as t}from"../lit-html.js";import{directive as s,Directive as i,PartType as r}from"../directive.js";
/**

@@ -6,3 +6,3 @@ * @license

* SPDX-License-Identifier: BSD-3-Clause
*/const o=i(class extends s{constructor(t){var i;if(super(t),t.type!==r.ATTRIBUTE||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(i,[s]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(s)}const e=i.element.classList;this.it.forEach((t=>{t in s||(e.remove(t),this.it.delete(t))}));for(const t in s){const i=!!s[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return t}});export{o as classMap};
*/const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||"class"!==t.name||t.strings?.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((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.it){this.it=new Set,void 0!==s.strings&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.it)t in i||(r.remove(t),this.it.delete(t));for(const t in i){const s=!!i[t];s===this.it.has(t)||this.st?.has(t)||(s?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return t}});export{e as classMap};
//# sourceMappingURL=class-map.js.map

@@ -7,3 +7,3 @@ import{noChange as r}from"../lit-html.js";import{directive as t,Directive as s}from"../directive.js";

*/
const e={},i=t(class extends s{constructor(){super(...arguments),this.st=e}render(r,t){return t()}update(t,[s,e]){if(Array.isArray(s)){if(Array.isArray(this.st)&&this.st.length===s.length&&s.every(((r,t)=>r===this.st[t])))return r}else if(this.st===s)return r;return this.st=Array.isArray(s)?Array.from(s):s,this.render(s,e)}});export{i as guard};
const e={},i=t(class extends s{constructor(){super(...arguments),this.nt=e}render(r,t){return t()}update(t,[s,e]){if(Array.isArray(s)){if(Array.isArray(this.nt)&&this.nt.length===s.length&&s.every(((r,t)=>r===this.nt[t])))return r}else if(this.nt===s)return r;return this.nt=Array.isArray(s)?Array.from(s):s,this.render(s,e)}});export{i as guard};
//# sourceMappingURL=guard.js.map

@@ -6,3 +6,3 @@ import{nothing as t}from"../lit-html.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const l=l=>null!=l?l:t;export{l as ifDefined};
*/const o=o=>o??t;export{o as ifDefined};
//# sourceMappingURL=if-defined.js.map

@@ -6,3 +6,3 @@ /**

*/
const t=async(t,s)=>{for await(const i of t)if(!1===await s(i))return};class s{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class i{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}}export{i as Pauser,s as PseudoWeakRef,t as forAwaitOf};
const t=async(t,s)=>{for await(const i of t)if(!1===await s(i))return};class s{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class i{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise((t=>this.Z=t))}resume(){this.Z?.(),this.Y=this.Z=void 0}}export{i as Pauser,s as PseudoWeakRef,t as forAwaitOf};
//# sourceMappingURL=private-async-helpers.js.map

@@ -6,3 +6,3 @@ /**

*/
function*o(o,l,n=1){const t=void 0===l?0:o;null!=l||(l=o);for(let o=t;n>0?o<l:l<o;o+=n)yield o}export{o as range};
function*o(o,t,e=1){const i=void 0===t?0:o;t??=o;for(let o=i;e>0?o<t:t<o;o+=e)yield o}export{o as range};
//# sourceMappingURL=range.js.map

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

import{nothing as i}from"../lit-html.js";import{AsyncDirective as t}from"../async-directive.js";import{directive as s}from"../directive.js";
import{nothing as t}from"../lit-html.js";import{AsyncDirective as i}from"../async-directive.js";import{directive as s}from"../directive.js";
/**

@@ -6,3 +6,3 @@ * @license

* SPDX-License-Identifier: BSD-3-Clause
*/const e=()=>new o;class o{}const h=new WeakMap,n=s(class extends t{render(t){return i}update(t,[s]){var e;const o=s!==this.G;return o&&void 0!==this.G&&this.ot(void 0),(o||this.rt!==this.lt)&&(this.G=s,this.ct=null===(e=t.options)||void 0===e?void 0:e.host,this.ot(this.lt=t.element)),i}ot(i){var t;if("function"==typeof this.G){const s=null!==(t=this.ct)&&void 0!==t?t:globalThis;let e=h.get(s);void 0===e&&(e=new WeakMap,h.set(s,e)),void 0!==e.get(this.G)&&this.G.call(this.ct,void 0),e.set(this.G,i),void 0!==i&&this.G.call(this.ct,i)}else this.G.value=i}get rt(){var i,t,s;return"function"==typeof this.G?null===(t=h.get(null!==(i=this.ct)&&void 0!==i?i:globalThis))||void 0===t?void 0:t.get(this.G):null===(s=this.G)||void 0===s?void 0:s.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});export{e as createRef,n as ref};
*/const e=()=>new h;class h{}const o=new WeakMap,n=s(class extends i{render(i){return t}update(i,[s]){const e=s!==this.G;return e&&void 0!==this.G&&this.ot(void 0),(e||this.rt!==this.lt)&&(this.G=s,this.ct=i.options?.host,this.ot(this.lt=i.element)),t}ot(t){if("function"==typeof this.G){const i=this.ct??globalThis;let s=o.get(i);void 0===s&&(s=new WeakMap,o.set(i,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(){return"function"==typeof this.G?o.get(this.ct??globalThis)?.get(this.G):this.G?.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});export{e as createRef,n as ref};
//# sourceMappingURL=ref.js.map

@@ -7,3 +7,3 @@ import{noChange as e}from"../lit-html.js";import{directive as s,Directive as t,PartType as r}from"../directive.js";import{getCommittedValue as l,setChildPartValue as o,insertPart as i,removePart as n,setCommittedValue as f}from"../directive-helpers.js";

*/
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=s(class extends t{constructor(e){if(super(e),e.type!==r.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return{values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){var d;const a=l(s),{values:p,keys:v}=this.dt(t,r,c);if(!Array.isArray(a))return this.ht=v,p;const h=null!==(d=this.ht)&&void 0!==d?d:this.ht=[],m=[];let y,x,j=0,k=a.length-1,w=0,A=p.length-1;for(;j<=k&&w<=A;)if(null===a[j])j++;else if(null===a[k])k--;else if(h[j]===v[w])m[w]=o(a[j],p[w]),j++,w++;else if(h[k]===v[A])m[A]=o(a[k],p[A]),k--,A--;else if(h[j]===v[A])m[A]=o(a[j],p[A]),i(s,m[A+1],a[j]),j++,A--;else if(h[k]===v[w])m[w]=o(a[k],p[w]),i(s,a[j],a[k]),k--,w++;else if(void 0===y&&(y=u(v,w,A),x=u(h,j,k)),y.has(h[j]))if(y.has(h[k])){const e=x.get(v[w]),t=void 0!==e?a[e]:null;if(null===t){const e=i(s,a[j]);o(e,p[w]),m[w]=e}else m[w]=o(t,p[w]),i(s,a[j],t),a[e]=null;w++}else n(a[k]),k--;else n(a[j]),j++;for(;w<=A;){const e=i(s,m[A+1]);o(e,p[w]),m[w++]=e}for(;j<=k;){const e=a[j++];null!==e&&n(e)}return this.ht=v,f(s,m),e}});export{c as repeat};
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=s(class extends t{constructor(e){if(super(e),e.type!==r.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return{values:o,keys:l}}render(e,s,t){return this.ht(e,s,t).values}update(s,[t,r,c]){const d=l(s),{values:p,keys:a}=this.ht(t,r,c);if(!Array.isArray(d))return this.dt=a,p;const h=this.dt??=[],v=[];let m,y,x=0,j=d.length-1,k=0,w=p.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v[k]=o(d[x],p[k]),x++,k++;else if(h[j]===a[w])v[w]=o(d[j],p[w]),j--,w--;else if(h[x]===a[w])v[w]=o(d[x],p[w]),i(s,v[w+1],d[x]),x++,w--;else if(h[j]===a[k])v[k]=o(d[j],p[k]),i(s,d[x],d[j]),j--,k++;else if(void 0===m&&(m=u(a,k,w),y=u(h,x,j)),m.has(h[x]))if(m.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=i(s,d[x]);o(e,p[k]),v[k]=e}else v[k]=o(t,p[k]),i(s,d[x],t),d[e]=null;k++}else n(d[j]),j--;else n(d[x]),x++;for(;k<=w;){const e=i(s,v[w+1]);o(e,p[k]),v[k++]=e}for(;x<=j;){const e=d[x++];null!==e&&n(e)}return this.dt=a,f(s,v),e}});export{c as repeat};
//# sourceMappingURL=repeat.js.map

@@ -6,3 +6,3 @@ import{noChange as t}from"../lit-html.js";import{directive as e,Directive as r,PartType as s}from"../directive.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const i="important",n=" !"+i,o=e(class extends r{constructor(t){var e;if(super(t),t.type!==s.ATTRIBUTE||"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.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ut){this.ut=new Set;for(const t in r)this.ut.add(t);return this.render(r)}this.ut.forEach((t=>{null==r[t]&&(this.ut.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in r){const e=r[t];if(null!=e){this.ut.add(t);const r="string"==typeof e&&e.endsWith(n);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?i:""):s[t]=e}}return t}});export{o as styleMap};
*/const n="important",i=" !"+n,o=e(class extends r{constructor(t){if(super(t),t.type!==s.ATTRIBUTE||"style"!==t.name||t.strings?.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.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(r)),this.render(r);for(const t of this.ut)null==r[t]&&(this.ut.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ut.add(t);const r="string"==typeof e&&e.endsWith(i);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:""):s[t]=e}}return t}});export{o as styleMap};
//# sourceMappingURL=style-map.js.map

@@ -6,3 +6,3 @@ import{noChange as t}from"../lit-html.js";import{directive as r,Directive as e,PartType as n}from"../directive.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const o=r(class extends e{constructor(t){if(super(t),t.type!==n.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?t:(this.vt=r,document.importNode(r.content,!0))}});export{o as templateContent};
*/const o=r(class extends e{constructor(t){if(super(t),t.type!==n.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.ft===r?t:(this.ft=r,document.importNode(r.content,!0))}});export{o as templateContent};
//# sourceMappingURL=template-content.js.map

@@ -6,3 +6,3 @@ import{nothing as t,noChange as i}from"../lit-html.js";import{Directive as r,PartType as s,directive as n}from"../directive.js";

* SPDX-License-Identifier: BSD-3-Clause
*/class e extends r{constructor(i){if(super(i),this.et=t,i.type!==s.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===t||null==r)return this.ft=void 0,this.et=r;if(r===i)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.et)return this.ft;this.et=r;const s=[r];return s.raw=s,this.ft={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=n(e);export{e as UnsafeHTMLDirective,o as unsafeHTML};
*/class e extends r{constructor(i){if(super(i),this.et=t,i.type!==s.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===t||null==r)return this.vt=void 0,this.et=r;if(r===i)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.et)return this.vt;this.et=r;const s=[r];return s.raw=s,this.vt={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=n(e);export{e as UnsafeHTMLDirective,o as unsafeHTML};
//# sourceMappingURL=unsafe-html.js.map

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

import{noChange as t}from"../lit-html.js";import{isPrimitive as s}from"../directive-helpers.js";import{AsyncDirective as i}from"../async-directive.js";import{PseudoWeakRef as r,Pauser as e}from"./private-async-helpers.js";import{directive as o}from"../directive.js";
import{noChange as t}from"../lit-html.js";import{isPrimitive as s}from"../directive-helpers.js";import{AsyncDirective as i}from"../async-directive.js";import{PseudoWeakRef as e,Pauser as r}from"./private-async-helpers.js";import{directive as o}from"../directive.js";
/**

@@ -6,3 +6,3 @@ * @license

* SPDX-License-Identifier: BSD-3-Clause
*/const n=t=>!s(t)&&"function"==typeof t.then,h=1073741823;class c extends i{constructor(){super(...arguments),this._$C_t=h,this._$Cwt=[],this._$Cq=new r(this),this._$CK=new e}render(...s){var i;return null!==(i=s.find((t=>!n(t))))&&void 0!==i?i:t}update(s,i){const r=this._$Cwt;let e=r.length;this._$Cwt=i;const o=this._$Cq,c=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<i.length&&!(t>this._$C_t);t++){const s=i[t];if(!n(s))return this._$C_t=t,s;t<e&&s===r[t]||(this._$C_t=h,e=0,Promise.resolve(s).then((async t=>{for(;c.get();)await c.get();const i=o.deref();if(void 0!==i){const r=i._$Cwt.indexOf(s);r>-1&&r<i._$C_t&&(i._$C_t=r,i.setValue(t))}})))}return t}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const m=o(c);export{c as UntilDirective,m as until};
*/const n=t=>!s(t)&&"function"==typeof t.then,h=1073741823;class c extends i{constructor(){super(...arguments),this._$C_t=h,this._$Cwt=[],this._$Cq=new e(this),this._$CK=new r}render(...s){return s.find((t=>!n(t)))??t}update(s,i){const e=this._$Cwt;let r=e.length;this._$Cwt=i;const o=this._$Cq,c=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<i.length&&!(t>this._$C_t);t++){const s=i[t];if(!n(s))return this._$C_t=t,s;t<r&&s===e[t]||(this._$C_t=h,r=0,Promise.resolve(s).then((async t=>{for(;c.get();)await c.get();const i=o.deref();if(void 0!==i){const e=i._$Cwt.indexOf(s);e>-1&&e<i._$C_t&&(i._$C_t=e,i.setValue(t))}})))}return t}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const m=o(c);export{c as UntilDirective,m as until};
//# sourceMappingURL=until.js.map

@@ -6,3 +6,3 @@ /**

*/
function n(n,o,r){return n?o():null==r?void 0:r()}export{n as when};
function n(n,r,t){return n?r():t?.()}export{n as when};
//# sourceMappingURL=when.js.map

@@ -6,3 +6,3 @@ /**

*/
var t;const i=globalThis,s=i.trustedTypes,e=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,o="$lit$",n=`lit$${(Math.random()+"").slice(9)}$`,l="?"+n,h=`<${l}>`,r=void 0===i.document?{createTreeWalker:()=>({})}:document,d=()=>r.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c=Array.isArray,v=t=>c(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),T=x(1),b=x(2),w=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E=new WeakMap,C=r.createTreeWalker(r,129,null,!1),P=(t,i)=>{const s=t.length-1,l=[];let r,d=2===i?"<svg>":"",u=f;for(let i=0;i<s;i++){const s=t[i];let e,c,v=-1,a=0;for(;a<s.length&&(u.lastIndex=a,c=u.exec(s),null!==c);)a=u.lastIndex,u===f?"!--"===c[1]?u=_:void 0!==c[1]?u=m:void 0!==c[2]?(y.test(c[2])&&(r=RegExp("</"+c[2],"g")),u=p):void 0!==c[3]&&(u=p):u===p?">"===c[0]?(u=null!=r?r:f,v=-1):void 0===c[1]?v=-2:(v=u.lastIndex-c[2].length,e=c[1],u=void 0===c[3]?p:'"'===c[3]?$:g):u===$||u===g?u=p:u===_||u===m?u=f:(u=p,r=void 0);const x=u===p&&t[i+1].startsWith("/>")?" ":"";d+=u===f?s+h:v>=0?(l.push(e),s.slice(0,v)+o+s.slice(v)+n+x):s+n+(-2===v?(l.push(void 0),i):x)}const c=d+(t[s]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==e?e.createHTML(c):c,l]};class V{constructor({strings:t,_$litType$:i},e){let h;this.parts=[];let r=0,u=0;const c=t.length-1,v=this.parts,[a,f]=P(t,i);if(this.el=V.createElement(a,e),C.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(h=C.nextNode())&&v.length<c;){if(1===h.nodeType){if(h.hasAttributes()){const t=[];for(const i of h.getAttributeNames())if(i.endsWith(o)||i.startsWith(n)){const s=f[u++];if(t.push(i),void 0!==s){const t=h.getAttribute(s.toLowerCase()+o).split(n),i=/([.?@])?(.*)/.exec(s);v.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?R:"?"===i[1]?I:"@"===i[1]?L:k})}else v.push({type:6,index:r})}for(const i of t)h.removeAttribute(i)}if(y.test(h.tagName)){const t=h.textContent.split(n),i=t.length-1;if(i>0){h.textContent=s?s.emptyScript:"";for(let s=0;s<i;s++)h.append(t[s],d()),C.nextNode(),v.push({type:2,index:++r});h.append(t[i],d())}}}else if(8===h.nodeType)if(h.data===l)v.push({type:2,index:r});else{let t=-1;for(;-1!==(t=h.data.indexOf(n,t+1));)v.push({type:7,index:r}),t+=n.length-1}r++}}static createElement(t,i){const s=r.createElement("template");return s.innerHTML=t,s}}function N(t,i,s=t,e){var o,n,l,h;if(i===w)return i;let r=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const d=u(i)?void 0:i._$litDirective$;return(null==r?void 0:r.constructor)!==d&&(null===(n=null==r?void 0:r._$AO)||void 0===n||n.call(r,!1),void 0===d?r=void 0:(r=new d(t),r._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Co)&&void 0!==l?l:h._$Co=[])[e]=r:s._$Cl=r),void 0!==r&&(i=N(t,r._$AS(t,i.values),r,e)),i}class S{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:r).importNode(s,!0);C.currentNode=o;let n=C.nextNode(),l=0,h=0,d=e[0];for(;void 0!==d;){if(l===d.index){let i;2===d.type?i=new M(n,n.nextSibling,this,t):1===d.type?i=new d.ctor(n,d.name,d.strings,this,t):6===d.type&&(i=new z(n,this,t)),this._$AV.push(i),d=e[++h]}l!==(null==d?void 0:d.index)&&(n=C.nextNode(),l++)}return o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class M{constructor(t,i,s,e){var o;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=N(this,t,i),u(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==w&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v(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!==A&&u(this._$AH)?this._$AA.nextSibling.data=t:this.$(r.createTextNode(t)),this._$AH=t}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=V.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(s);else{const t=new S(o,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t}}_$AC(t){let i=E.get(t.strings);return void 0===i&&E.set(t.strings,i=new V(t)),i}T(t){c(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new M(this.k(d()),this.k(d()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class k{constructor(t,i,s,e,o){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=N(this,t,i,0),n=!u(t)||t!==this._$AH&&t!==w,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=N(this,e[s+l],i,l),h===w&&(h=this._$AH[l]),n||(n=!u(h)||h!==this._$AH[l]),h===A?t=A:t!==A&&(t+=(null!=h?h:"")+o[l+1]),this._$AH[l]=h}n&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}const H=s?s.emptyScript:"";class I extends k{constructor(){super(...arguments),this.type=4}j(t){t&&t!==A?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class L extends k{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=N(this,t,i,0))&&void 0!==s?s:A)===w)return;const e=this._$AH,o=t===A&&e!==A||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==A&&(e===A||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const W={O:o,P:n,A:l,C:1,M:P,L:S,D:v,R:N,I:M,V:k,H:I,N:L,U:R,F:z},Z=i.litHtmlPolyfillSupport;null==Z||Z(V,M),(null!==(t=i.litHtmlVersions)&&void 0!==t?t:i.litHtmlVersions=[]).push("2.7.3");const j=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new M(i.insertBefore(d(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l};export{W as _$LH,T as html,w as noChange,A as nothing,j as render,b as svg};
const t=globalThis,i=void 0,s=t.trustedTypes,e=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,n="$lit$",o=`lit$${(Math.random()+"").slice(9)}$`,h="?"+o,r=`<${h}>`,a=void 0===t.document?{createTreeWalker:()=>({})}:document,l=()=>a.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,u=t=>d(t)||"function"==typeof t?.[Symbol.iterator],m="[ \t\n\f\r]",p=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,f=/>/g,g=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,k=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=k(1),x=k(2),T=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),A=new WeakMap,E=a.createTreeWalker(a,129),C=(t,i)=>{const s=t.length-1,h=[];let a,l=2===i?"<svg>":"",c=p;for(let i=0;i<s;i++){const s=t[i];let e,d,u=-1,m=0;for(;m<s.length&&(c.lastIndex=m,d=c.exec(s),null!==d);)m=c.lastIndex,c===p?"!--"===d[1]?c=v:void 0!==d[1]?c=f:void 0!==d[2]?(y.test(d[2])&&(a=RegExp("</"+d[2],"g")),c=g):void 0!==d[3]&&(c=g):c===g?">"===d[0]?(c=a??p,u=-1):void 0===d[1]?u=-2:(u=c.lastIndex-d[2].length,e=d[1],c=void 0===d[3]?g:'"'===d[3]?$:_):c===$||c===_?c=g:c===v||c===f?c=p:(c=g,a=void 0);const k=c===g&&t[i+1].startsWith("/>")?" ":"";l+=c===p?s+r:u>=0?(h.push(e),s.slice(0,u)+n+s.slice(u)+o+k):s+o+(-2===u?i:k)}const d=l+(t[s]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==e?e.createHTML(d):d,h]};class P{constructor({strings:t,_$litType$:e},r){let a;this.parts=[];let c=0,d=0;const u=t.length-1,m=this.parts,[p,v]=C(t,e);if(this.el=P.createElement(p,r),E.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(a=E.nextNode())&&m.length<u;){if(1===a.nodeType){if(a.hasAttributes())for(const t of a.getAttributeNames())if(t.endsWith(n)){const i=v[d++],s=a.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);m.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?I:"?"===e[1]?M:"@"===e[1]?R:S}),a.removeAttribute(t)}else t.startsWith(o)&&(m.push({type:6,index:c}),a.removeAttribute(t));if(y.test(a.tagName)){const t=a.textContent.split(o),i=t.length-1;if(i>0){a.textContent=s?s.emptyScript:"";for(let s=0;s<i;s++)a.append(t[s],l()),E.nextNode(),m.push({type:2,index:++c});a.append(t[i],l())}}}else if(8===a.nodeType)if(a.data===h)m.push({type:2,index:c});else{let t=-1;for(;-1!==(t=a.data.indexOf(o,t+1));)m.push({type:7,index:c}),t+=o.length-1}c++}i?.({kind:"template prep",template:this,clonableTemplate:this.el,parts:this.parts,strings:t})}static createElement(t,i){const s=a.createElement("template");return s.innerHTML=t,s}}function V(t,i,s=t,e){if(i===T)return i;let n=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(t),n._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=n:s._$Cl=n),void 0!==n&&(i=V(t,n._$AS(t,i.values),n,e)),i}class L{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??a).importNode(i,!0);E.currentNode=e;let n=E.nextNode(),o=0,h=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new N(n,n.nextSibling,this,t):1===r.type?i=new r.ctor(n,r.name,r.strings,this,t):6===r.type&&(i=new H(n,this,t)),this._$AV.push(i),r=s[++h]}o!==r?.index&&(n=E.nextNode(),o++)}return e}p(t){let s=0;for(const e of this._$AV)void 0!==e&&(i?.({kind:"set part",part:e,value:t[s],valueIndex:s,values:t,templateInstance:this}),void 0!==e.strings?(e._$AI(t,e,s),s+=e.strings.length-2):e._$AI(t[s])),s++}}class N{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=V(this,t,s),c(t)?t===w||null==t||""===t?(this._$AH!==w&&(i?.({kind:"commit nothing to child",start:this._$AA,end:this._$AB,parent:this._$AM,options:this.options}),this._$AR()),this._$AH=w):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):u(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),i?.({kind:"commit node",start:this._$AA,parent:this._$AM,value:t,options:this.options}),this._$AH=this.k(t))}_(t){if(this._$AH!==w&&c(this._$AH)){const s=this._$AA.nextSibling;i?.({kind:"commit text",node:s,value:t,options:this.options}),s.data=t}else this.$(a.createTextNode(t)),i?.({kind:"commit text",node:this._$AA.nextSibling,value:t,options:this.options});this._$AH=t}g(t){const{values:s,_$litType$:e}=t,n="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=P.createElement(e.h,this.options)),e);if(this._$AH?._$AD===n)i?.({kind:"template updating",template:n,instance:this._$AH,parts:this._$AH._$AV,options:this.options,values:s}),this._$AH.p(s);else{const t=new L(n,this),e=t.u(this.options);i?.({kind:"template instantiated",template:n,instance:t,parts:t._$AV,options:this.options,fragment:e,values:s}),t.p(s),i?.({kind:"template instantiated and updated",template:n,instance:t,parts:t._$AV,options:this.options,fragment:e,values:s}),this.$(e),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new P(t)),i}T(t){d(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const n of t)e===i.length?i.push(s=new N(this.k(l()),this.k(l()),this,this.options)):s=i[e],s._$AI(n),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class S{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,n){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=w}_$AI(t,i=this,s,e){const n=this.strings;let o=!1;if(void 0===n)t=V(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else{const e=t;let h,r;for(t=n[0],h=0;h<n.length-1;h++)r=V(this,e[s+h],i,h),r===T&&(r=this._$AH[h]),o||=!c(r)||r!==this._$AH[h],r===w?t=w:t!==w&&(t+=(r??"")+n[h+1]),this._$AH[h]=r}o&&!e&&this.j(t)}j(t){t===w?this.element.removeAttribute(this.name):(i?.({kind:"commit attribute",element:this.element,name:this.name,value:t,options:this.options}),this.element.setAttribute(this.name,t??""))}}class I extends S{constructor(){super(...arguments),this.type=3}j(t){i?.({kind:"commit property",element:this.element,name:this.name,value:t,options:this.options}),this.element[this.name]=t===w?void 0:t}}class M extends S{constructor(){super(...arguments),this.type=4}j(t){i?.({kind:"commit boolean attribute",element:this.element,name:this.name,value:!(!t||t===w),options:this.options}),this.element.toggleAttribute(this.name,!!t&&t!==w)}}class R extends S{constructor(t,i,s,e,n){super(t,i,s,e,n),this.type=5}_$AI(t,s=this){if((t=V(this,t,s,0)??w)===T)return;const e=this._$AH,n=t===w&&e!==w||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,o=t!==w&&(e===w||n);i?.({kind:"commit event listener",element:this.element,name:this.name,value:t,options:this.options,removeListener:n,addListener:o,oldListener:e}),n&&this.element.removeEventListener(this.name,this,e),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class H{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){i?.({kind:"commit to element binding",element:this.element,value:t,options:this.options}),V(this,t)}}const z={S:n,A:o,P:h,M:1,C,L,V:u,D:V,R:N,I:S,H:M,N:R,U:I,B:H},W=t.litHtmlPolyfillSupport;W?.(P,N),(t.litHtmlVersions??=[]).push("3.0.0-pre.0");const Z=(t,s,e)=>{const n=e?.renderBefore??s;let o=n._$litPart$;if(i?.({kind:"begin render",id:0,value:t,container:s,options:e,part:o}),void 0===o){const t=e?.renderBefore??null;n._$litPart$=o=new N(s.insertBefore(l(),t),t,void 0,e??{})}return o._$AI(t),i?.({kind:"end render",id:0,value:t,container:s,options:e,part:o}),o};export{z as _$LH,b as html,T as noChange,w as nothing,Z as render,x as svg};
//# sourceMappingURL=lit-html.js.map

@@ -6,3 +6,3 @@ import{_$LH as e,noChange as t}from"./lit-html.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const r={boundAttributeSuffix:e.O,marker:e.P,markerMatch:e.A,HTML_RESULT:e.C,getTemplateHtml:e.M,overrideDirectiveResolve:(e,t)=>class extends e{_$AS(e,r){return t(this,r)}},setDirectiveClass(e,t){e._$litDirective$=t},getAttributePartCommittedValue:(e,r,a)=>{let i=t;return e.j=e=>i=e,e._$AI(r,e,a),i},connectedDisconnectable:e=>({...e,_$AU:!0}),resolveDirective:e.R,AttributePart:e.V,PropertyPart:e.U,BooleanAttributePart:e.H,EventPart:e.N,ElementPart:e.F,TemplateInstance:e.L,isIterable:e.D,ChildPart:e.I};export{r as _$LH};
*/const r={boundAttributeSuffix:e.S,marker:e.A,markerMatch:e.P,HTML_RESULT:e.M,getTemplateHtml:e.C,overrideDirectiveResolve:(e,t)=>class extends e{_$AS(e,r){return t(this,r)}},setDirectiveClass(e,t){e._$litDirective$=t},getAttributePartCommittedValue:(e,r,a)=>{let i=t;return e.j=e=>i=e,e._$AI(r,e,a),i},connectedDisconnectable:e=>({...e,_$AU:!0}),resolveDirective:e.D,AttributePart:e.I,PropertyPart:e.U,BooleanAttributePart:e.H,EventPart:e.N,ElementPart:e.B,TemplateInstance:e.L,isIterable:e.V,ChildPart:e.R};export{r as _$LH};
//# sourceMappingURL=private-ssr-support.js.map

@@ -6,3 +6,3 @@ import{html as t,svg as r}from"./lit-html.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const e=Symbol.for(""),l=t=>{if((null==t?void 0:t.r)===e)return null==t?void 0:t._$litStatic$},o=t=>({_$litStatic$:t,r:e}),i=(t,...r)=>({_$litStatic$:r.reduce(((r,e,l)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[l+1]),t[0]),r:e}),s=new Map,a=t=>(r,...e)=>{const o=e.length;let i,a;const n=[],u=[];let c,$=0,f=!1;for(;$<o;){for(c=r[$];$<o&&void 0!==(a=e[$],i=l(a));)c+=i+r[++$],f=!0;$!==o&&u.push(a),n.push(c),$++}if($===o&&n.push(r[o]),f){const t=n.join("$$lit$$");void 0===(r=s.get(t))&&(n.raw=n,s.set(t,r=n)),e=u}return t(r,...e)},n=a(t),u=a(r);export{n as html,i as literal,u as svg,o as unsafeStatic,a as withStatic};
*/const e=Symbol.for(""),o=t=>{if(t?.r===e)return t?._$litStatic$},i=t=>({_$litStatic$:t,r:e}),s=(t,...r)=>({_$litStatic$:r.reduce(((r,e,o)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[o+1]),t[0]),r:e}),a=new Map,l=t=>(r,...e)=>{const i=e.length;let s,l;const n=[],u=[];let c,$=0,f=!1;for(;$<i;){for(c=r[$];$<i&&void 0!==(l=e[$],s=o(l));)c+=s+r[++$],f=!0;$!==i&&u.push(l),n.push(c),$++}if($===i&&n.push(r[i]),f){const t=n.join("$$lit$$");void 0===(r=a.get(t))&&(n.raw=n,a.set(t,r=n)),e=u}return t(r,...e)},n=l(t),u=l(r);export{n as html,s as literal,u as svg,i as unsafeStatic,l as withStatic};
//# sourceMappingURL=static.js.map
{
"name": "lit-html",
"version": "2.7.3",
"version": "3.0.0-pre.0",
"description": "HTML templates literals in JavaScript",

@@ -232,11 +232,2 @@ "license": "BSD-3-Clause",

},
"./experimental-hydrate.js": {
"types": "./development/experimental-hydrate.d.ts",
"node": {
"development": "./node/development/experimental-hydrate.js",
"default": "./node/experimental-hydrate.js"
},
"development": "./development/experimental-hydrate.js",
"default": "./experimental-hydrate.js"
},
"./polyfill-support.js": {

@@ -298,3 +289,2 @@ "types": "./development/polyfill-support.d.ts",

"/directive.{d.ts,d.ts.map,js,js.map}",
"/experimental-hydrate.{d.ts,d.ts.map,js,js.map}",
"/lit-html.{d.ts,d.ts.map,js,js.map}",

@@ -364,3 +354,2 @@ "/polyfill-support.{d.ts,d.ts.map,js,js.map}",

"directive.js{,.map}",
"experimental-hydrate.js{,.map}",
"lit-html.js{,.map}",

@@ -475,8 +464,7 @@ "polyfill-support.js{,.map}",

"devDependencies": {
"@lit-internal/scripts": "^1.0.0",
"@lit-labs/testing": "^0.2.0",
"@types/web-ie11": "^0.0.0",
"@lit-internal/scripts": "^1.0.1-pre.0",
"@lit-labs/testing": "^0.2.2-pre.0",
"@webcomponents/shadycss": "^1.8.0",
"@webcomponents/template": "^1.4.4",
"@webcomponents/webcomponentsjs": "^2.6.0"
"@webcomponents/webcomponentsjs": "^2.8.0"
},

@@ -483,0 +471,0 @@ "typings": "lit-html.d.ts",

@@ -25,3 +25,3 @@ /**

HTML_RESULT: number;
getTemplateHtml: (strings: TemplateStringsArray, type: 1 | 2) => [import("trusted-types/lib/index.js").TrustedHTML, (string | undefined)[]];
getTemplateHtml: (strings: TemplateStringsArray, type: 1 | 2) => [import("trusted-types/lib/index.js").TrustedHTML, string[]];
overrideDirectiveResolve: (directiveClass: new (part: PartInfo) => Directive & {

@@ -28,0 +28,0 @@ render(): unknown;

@@ -6,3 +6,3 @@ import{_$LH as e,noChange as t}from"./lit-html.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const r={boundAttributeSuffix:e.O,marker:e.P,markerMatch:e.A,HTML_RESULT:e.C,getTemplateHtml:e.M,overrideDirectiveResolve:(e,t)=>class extends e{_$AS(e,r){return t(this,r)}},setDirectiveClass(e,t){e._$litDirective$=t},getAttributePartCommittedValue:(e,r,a)=>{let i=t;return e.j=e=>i=e,e._$AI(r,e,a),i},connectedDisconnectable:e=>({...e,_$AU:!0}),resolveDirective:e.R,AttributePart:e.V,PropertyPart:e.U,BooleanAttributePart:e.H,EventPart:e.N,ElementPart:e.F,TemplateInstance:e.L,isIterable:e.D,ChildPart:e.I};export{r as _$LH};
*/const r={boundAttributeSuffix:e.S,marker:e.A,markerMatch:e.P,HTML_RESULT:e.M,getTemplateHtml:e.C,overrideDirectiveResolve:(e,t)=>class extends e{_$AS(e,r){return t(this,r)}},setDirectiveClass(e,t){e._$litDirective$=t},getAttributePartCommittedValue:(e,r,a)=>{let i=t;return e.j=e=>i=e,e._$AI(r,e,a),i},connectedDisconnectable:e=>({...e,_$AU:!0}),resolveDirective:e.D,AttributePart:e.I,PropertyPart:e.U,BooleanAttributePart:e.H,EventPart:e.N,ElementPart:e.B,TemplateInstance:e.L,isIterable:e.V,ChildPart:e.R};export{r as _$LH};
//# sourceMappingURL=private-ssr-support.js.map

@@ -14,4 +14,16 @@ # lit-html 2.0

This is a stable release of `lit-html` 2.0 (part of the Lit 2.0 release). If upgrading from previous versions of `lit-html`, please note the minor breaking changes from lit-html 1.0 in the [Upgrade Guide](https://lit.dev/docs/releases/upgrade/).
This is a pre-release of Lit 3.0, the next major version of Lit.
Lit 3.0 has very few breaking changes from Lit 2.0:
- Drops support for IE11
- Published as ES2021
- Removes a couple of deprecated Lit 1.x APIs
Lit 3.0 should require no changes to upgrade from Lit 2.0 for the vast majority of users. Once the full release is published, most apps and libraries will be able to extend their npm version ranges to include both 2.x and 3.x, like `"^2.7.0 || ^3.0.0"`.
Lit 2.x and 3.0 are _interoperable_: templates, base classes, directives, decorators, etc., from one version of Lit will work with those from another.
Please file any issues you find on our [issue tracker](https://github.com/lit/lit/issues).
## Documentation

@@ -18,0 +30,0 @@

@@ -6,3 +6,3 @@ import{html as t,svg as r}from"./lit-html.js";

* SPDX-License-Identifier: BSD-3-Clause
*/const e=Symbol.for(""),l=t=>{if((null==t?void 0:t.r)===e)return null==t?void 0:t._$litStatic$},o=t=>({_$litStatic$:t,r:e}),i=(t,...r)=>({_$litStatic$:r.reduce(((r,e,l)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[l+1]),t[0]),r:e}),s=new Map,a=t=>(r,...e)=>{const o=e.length;let i,a;const n=[],u=[];let c,$=0,f=!1;for(;$<o;){for(c=r[$];$<o&&void 0!==(a=e[$],i=l(a));)c+=i+r[++$],f=!0;$!==o&&u.push(a),n.push(c),$++}if($===o&&n.push(r[o]),f){const t=n.join("$$lit$$");void 0===(r=s.get(t))&&(n.raw=n,s.set(t,r=n)),e=u}return t(r,...e)},n=a(t),u=a(r);export{n as html,i as literal,u as svg,o as unsafeStatic,a as withStatic};
*/const e=Symbol.for(""),o=t=>{if(t?.r===e)return t?._$litStatic$},i=t=>({_$litStatic$:t,r:e}),s=(t,...r)=>({_$litStatic$:r.reduce(((r,e,o)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[o+1]),t[0]),r:e}),a=new Map,l=t=>(r,...e)=>{const i=e.length;let s,l;const n=[],u=[];let c,$=0,f=!1;for(;$<i;){for(c=r[$];$<i&&void 0!==(l=e[$],s=o(l));)c+=s+r[++$],f=!0;$!==i&&u.push(l),n.push(c),$++}if($===i&&n.push(r[i]),f){const t=n.join("$$lit$$");void 0===(r=a.get(t))&&(n.raw=n,a.set(t,r=n)),e=u}return t(r,...e)},n=l(t),u=l(r);export{n as html,s as literal,u as svg,i as unsafeStatic,l as withStatic};
//# sourceMappingURL=static.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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