@triptease/tt-navbar 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,733 @@
1
+ /**
2
+ * @triptease/tt-navbar v0.0.2
3
+ */
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __decorateClass = (decorators, target, key, kind) => {
7
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
8
+ for (var i5 = decorators.length - 1, decorator; i5 >= 0; i5--)
9
+ if (decorator = decorators[i5])
10
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11
+ if (kind && result) __defProp(target, key, result);
12
+ return result;
13
+ };
14
+
15
+ // ../../node_modules/@lit/reactive-element/css-tag.js
16
+ var t = globalThis;
17
+ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
18
+ var s = Symbol();
19
+ var o = /* @__PURE__ */ new WeakMap();
20
+ var n = class {
21
+ constructor(t3, e5, o6) {
22
+ if (this._$cssResult$ = true, o6 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
23
+ this.cssText = t3, this.t = e5;
24
+ }
25
+ get styleSheet() {
26
+ let t3 = this.o;
27
+ const s4 = this.t;
28
+ if (e && void 0 === t3) {
29
+ const e5 = void 0 !== s4 && 1 === s4.length;
30
+ e5 && (t3 = o.get(s4)), void 0 === t3 && ((this.o = t3 = new CSSStyleSheet()).replaceSync(this.cssText), e5 && o.set(s4, t3));
31
+ }
32
+ return t3;
33
+ }
34
+ toString() {
35
+ return this.cssText;
36
+ }
37
+ };
38
+ var r = (t3) => new n("string" == typeof t3 ? t3 : t3 + "", void 0, s);
39
+ var i = (t3, ...e5) => {
40
+ const o6 = 1 === t3.length ? t3[0] : e5.reduce((e6, s4, o7) => e6 + ((t4) => {
41
+ if (true === t4._$cssResult$) return t4.cssText;
42
+ if ("number" == typeof t4) return t4;
43
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + t4 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
44
+ })(s4) + t3[o7 + 1], t3[0]);
45
+ return new n(o6, t3, s);
46
+ };
47
+ var S = (s4, o6) => {
48
+ if (e) s4.adoptedStyleSheets = o6.map((t3) => t3 instanceof CSSStyleSheet ? t3 : t3.styleSheet);
49
+ else for (const e5 of o6) {
50
+ const o7 = document.createElement("style"), n5 = t.litNonce;
51
+ void 0 !== n5 && o7.setAttribute("nonce", n5), o7.textContent = e5.cssText, s4.appendChild(o7);
52
+ }
53
+ };
54
+ var c = e ? (t3) => t3 : (t3) => t3 instanceof CSSStyleSheet ? ((t4) => {
55
+ let e5 = "";
56
+ for (const s4 of t4.cssRules) e5 += s4.cssText;
57
+ return r(e5);
58
+ })(t3) : t3;
59
+
60
+ // ../../node_modules/@lit/reactive-element/reactive-element.js
61
+ var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
62
+ var a = globalThis;
63
+ var c2 = a.trustedTypes;
64
+ var l = c2 ? c2.emptyScript : "";
65
+ var p = a.reactiveElementPolyfillSupport;
66
+ var d = (t3, s4) => t3;
67
+ var u = { toAttribute(t3, s4) {
68
+ switch (s4) {
69
+ case Boolean:
70
+ t3 = t3 ? l : null;
71
+ break;
72
+ case Object:
73
+ case Array:
74
+ t3 = null == t3 ? t3 : JSON.stringify(t3);
75
+ }
76
+ return t3;
77
+ }, fromAttribute(t3, s4) {
78
+ let i5 = t3;
79
+ switch (s4) {
80
+ case Boolean:
81
+ i5 = null !== t3;
82
+ break;
83
+ case Number:
84
+ i5 = null === t3 ? null : Number(t3);
85
+ break;
86
+ case Object:
87
+ case Array:
88
+ try {
89
+ i5 = JSON.parse(t3);
90
+ } catch (t4) {
91
+ i5 = null;
92
+ }
93
+ }
94
+ return i5;
95
+ } };
96
+ var f = (t3, s4) => !i2(t3, s4);
97
+ var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
98
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a.litPropertyMetadata ?? (a.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
99
+ var y = class extends HTMLElement {
100
+ static addInitializer(t3) {
101
+ this._$Ei(), (this.l ?? (this.l = [])).push(t3);
102
+ }
103
+ static get observedAttributes() {
104
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
105
+ }
106
+ static createProperty(t3, s4 = b) {
107
+ if (s4.state && (s4.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t3) && ((s4 = Object.create(s4)).wrapped = true), this.elementProperties.set(t3, s4), !s4.noAccessor) {
108
+ const i5 = Symbol(), h3 = this.getPropertyDescriptor(t3, i5, s4);
109
+ void 0 !== h3 && e2(this.prototype, t3, h3);
110
+ }
111
+ }
112
+ static getPropertyDescriptor(t3, s4, i5) {
113
+ const { get: e5, set: r5 } = h(this.prototype, t3) ?? { get() {
114
+ return this[s4];
115
+ }, set(t4) {
116
+ this[s4] = t4;
117
+ } };
118
+ return { get: e5, set(s5) {
119
+ const h3 = e5?.call(this);
120
+ r5?.call(this, s5), this.requestUpdate(t3, h3, i5);
121
+ }, configurable: true, enumerable: true };
122
+ }
123
+ static getPropertyOptions(t3) {
124
+ return this.elementProperties.get(t3) ?? b;
125
+ }
126
+ static _$Ei() {
127
+ if (this.hasOwnProperty(d("elementProperties"))) return;
128
+ const t3 = n2(this);
129
+ t3.finalize(), void 0 !== t3.l && (this.l = [...t3.l]), this.elementProperties = new Map(t3.elementProperties);
130
+ }
131
+ static finalize() {
132
+ if (this.hasOwnProperty(d("finalized"))) return;
133
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
134
+ const t4 = this.properties, s4 = [...r2(t4), ...o2(t4)];
135
+ for (const i5 of s4) this.createProperty(i5, t4[i5]);
136
+ }
137
+ const t3 = this[Symbol.metadata];
138
+ if (null !== t3) {
139
+ const s4 = litPropertyMetadata.get(t3);
140
+ if (void 0 !== s4) for (const [t4, i5] of s4) this.elementProperties.set(t4, i5);
141
+ }
142
+ this._$Eh = /* @__PURE__ */ new Map();
143
+ for (const [t4, s4] of this.elementProperties) {
144
+ const i5 = this._$Eu(t4, s4);
145
+ void 0 !== i5 && this._$Eh.set(i5, t4);
146
+ }
147
+ this.elementStyles = this.finalizeStyles(this.styles);
148
+ }
149
+ static finalizeStyles(s4) {
150
+ const i5 = [];
151
+ if (Array.isArray(s4)) {
152
+ const e5 = new Set(s4.flat(1 / 0).reverse());
153
+ for (const s5 of e5) i5.unshift(c(s5));
154
+ } else void 0 !== s4 && i5.push(c(s4));
155
+ return i5;
156
+ }
157
+ static _$Eu(t3, s4) {
158
+ const i5 = s4.attribute;
159
+ return false === i5 ? void 0 : "string" == typeof i5 ? i5 : "string" == typeof t3 ? t3.toLowerCase() : void 0;
160
+ }
161
+ constructor() {
162
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
163
+ }
164
+ _$Ev() {
165
+ this._$ES = new Promise((t3) => this.enableUpdating = t3), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t3) => t3(this));
166
+ }
167
+ addController(t3) {
168
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t3), void 0 !== this.renderRoot && this.isConnected && t3.hostConnected?.();
169
+ }
170
+ removeController(t3) {
171
+ this._$EO?.delete(t3);
172
+ }
173
+ _$E_() {
174
+ const t3 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
175
+ for (const i5 of s4.keys()) this.hasOwnProperty(i5) && (t3.set(i5, this[i5]), delete this[i5]);
176
+ t3.size > 0 && (this._$Ep = t3);
177
+ }
178
+ createRenderRoot() {
179
+ const t3 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
180
+ return S(t3, this.constructor.elementStyles), t3;
181
+ }
182
+ connectedCallback() {
183
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((t3) => t3.hostConnected?.());
184
+ }
185
+ enableUpdating(t3) {
186
+ }
187
+ disconnectedCallback() {
188
+ this._$EO?.forEach((t3) => t3.hostDisconnected?.());
189
+ }
190
+ attributeChangedCallback(t3, s4, i5) {
191
+ this._$AK(t3, i5);
192
+ }
193
+ _$ET(t3, s4) {
194
+ const i5 = this.constructor.elementProperties.get(t3), e5 = this.constructor._$Eu(t3, i5);
195
+ if (void 0 !== e5 && true === i5.reflect) {
196
+ const h3 = (void 0 !== i5.converter?.toAttribute ? i5.converter : u).toAttribute(s4, i5.type);
197
+ this._$Em = t3, null == h3 ? this.removeAttribute(e5) : this.setAttribute(e5, h3), this._$Em = null;
198
+ }
199
+ }
200
+ _$AK(t3, s4) {
201
+ const i5 = this.constructor, e5 = i5._$Eh.get(t3);
202
+ if (void 0 !== e5 && this._$Em !== e5) {
203
+ const t4 = i5.getPropertyOptions(e5), h3 = "function" == typeof t4.converter ? { fromAttribute: t4.converter } : void 0 !== t4.converter?.fromAttribute ? t4.converter : u;
204
+ this._$Em = e5, this[e5] = h3.fromAttribute(s4, t4.type) ?? this._$Ej?.get(e5) ?? null, this._$Em = null;
205
+ }
206
+ }
207
+ requestUpdate(t3, s4, i5) {
208
+ if (void 0 !== t3) {
209
+ const e5 = this.constructor, h3 = this[t3];
210
+ if (i5 ?? (i5 = e5.getPropertyOptions(t3)), !((i5.hasChanged ?? f)(h3, s4) || i5.useDefault && i5.reflect && h3 === this._$Ej?.get(t3) && !this.hasAttribute(e5._$Eu(t3, i5)))) return;
211
+ this.C(t3, s4, i5);
212
+ }
213
+ false === this.isUpdatePending && (this._$ES = this._$EP());
214
+ }
215
+ C(t3, s4, { useDefault: i5, reflect: e5, wrapped: h3 }, r5) {
216
+ i5 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t3) && (this._$Ej.set(t3, r5 ?? s4 ?? this[t3]), true !== h3 || void 0 !== r5) || (this._$AL.has(t3) || (this.hasUpdated || i5 || (s4 = void 0), this._$AL.set(t3, s4)), true === e5 && this._$Em !== t3 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t3));
217
+ }
218
+ async _$EP() {
219
+ this.isUpdatePending = true;
220
+ try {
221
+ await this._$ES;
222
+ } catch (t4) {
223
+ Promise.reject(t4);
224
+ }
225
+ const t3 = this.scheduleUpdate();
226
+ return null != t3 && await t3, !this.isUpdatePending;
227
+ }
228
+ scheduleUpdate() {
229
+ return this.performUpdate();
230
+ }
231
+ performUpdate() {
232
+ if (!this.isUpdatePending) return;
233
+ if (!this.hasUpdated) {
234
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
235
+ for (const [t5, s5] of this._$Ep) this[t5] = s5;
236
+ this._$Ep = void 0;
237
+ }
238
+ const t4 = this.constructor.elementProperties;
239
+ if (t4.size > 0) for (const [s5, i5] of t4) {
240
+ const { wrapped: t5 } = i5, e5 = this[s5];
241
+ true !== t5 || this._$AL.has(s5) || void 0 === e5 || this.C(s5, void 0, i5, e5);
242
+ }
243
+ }
244
+ let t3 = false;
245
+ const s4 = this._$AL;
246
+ try {
247
+ t3 = this.shouldUpdate(s4), t3 ? (this.willUpdate(s4), this._$EO?.forEach((t4) => t4.hostUpdate?.()), this.update(s4)) : this._$EM();
248
+ } catch (s5) {
249
+ throw t3 = false, this._$EM(), s5;
250
+ }
251
+ t3 && this._$AE(s4);
252
+ }
253
+ willUpdate(t3) {
254
+ }
255
+ _$AE(t3) {
256
+ this._$EO?.forEach((t4) => t4.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t3)), this.updated(t3);
257
+ }
258
+ _$EM() {
259
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
260
+ }
261
+ get updateComplete() {
262
+ return this.getUpdateComplete();
263
+ }
264
+ getUpdateComplete() {
265
+ return this._$ES;
266
+ }
267
+ shouldUpdate(t3) {
268
+ return true;
269
+ }
270
+ update(t3) {
271
+ this._$Eq && (this._$Eq = this._$Eq.forEach((t4) => this._$ET(t4, this[t4]))), this._$EM();
272
+ }
273
+ updated(t3) {
274
+ }
275
+ firstUpdated(t3) {
276
+ }
277
+ };
278
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ?? (a.reactiveElementVersions = [])).push("2.1.0");
279
+
280
+ // ../../node_modules/lit-html/lit-html.js
281
+ var t2 = globalThis;
282
+ var i3 = t2.trustedTypes;
283
+ var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t3) => t3 }) : void 0;
284
+ var e3 = "$lit$";
285
+ var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
286
+ var o3 = "?" + h2;
287
+ var n3 = `<${o3}>`;
288
+ var r3 = document;
289
+ var l2 = () => r3.createComment("");
290
+ var c3 = (t3) => null === t3 || "object" != typeof t3 && "function" != typeof t3;
291
+ var a2 = Array.isArray;
292
+ var u2 = (t3) => a2(t3) || "function" == typeof t3?.[Symbol.iterator];
293
+ var d2 = "[ \n\f\r]";
294
+ var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
295
+ var v = /-->/g;
296
+ var _ = />/g;
297
+ var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
298
+ \f\r"'\`<>=]|("|')|))|$)`, "g");
299
+ var p2 = /'/g;
300
+ var g = /"/g;
301
+ var $ = /^(?:script|style|textarea|title)$/i;
302
+ var y2 = (t3) => (i5, ...s4) => ({ _$litType$: t3, strings: i5, values: s4 });
303
+ var x = y2(1);
304
+ var b2 = y2(2);
305
+ var w = y2(3);
306
+ var T = Symbol.for("lit-noChange");
307
+ var E = Symbol.for("lit-nothing");
308
+ var A = /* @__PURE__ */ new WeakMap();
309
+ var C = r3.createTreeWalker(r3, 129);
310
+ function P(t3, i5) {
311
+ if (!a2(t3) || !t3.hasOwnProperty("raw")) throw Error("invalid template strings array");
312
+ return void 0 !== s2 ? s2.createHTML(i5) : i5;
313
+ }
314
+ var V = (t3, i5) => {
315
+ const s4 = t3.length - 1, o6 = [];
316
+ let r5, l3 = 2 === i5 ? "<svg>" : 3 === i5 ? "<math>" : "", c4 = f2;
317
+ for (let i6 = 0; i6 < s4; i6++) {
318
+ const s5 = t3[i6];
319
+ let a3, u3, d3 = -1, y3 = 0;
320
+ for (; y3 < s5.length && (c4.lastIndex = y3, u3 = c4.exec(s5), null !== u3); ) y3 = c4.lastIndex, c4 === f2 ? "!--" === u3[1] ? c4 = v : void 0 !== u3[1] ? c4 = _ : void 0 !== u3[2] ? ($.test(u3[2]) && (r5 = RegExp("</" + u3[2], "g")), c4 = m) : void 0 !== u3[3] && (c4 = m) : c4 === m ? ">" === u3[0] ? (c4 = r5 ?? f2, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? m : '"' === u3[3] ? g : p2) : c4 === g || c4 === p2 ? c4 = m : c4 === v || c4 === _ ? c4 = f2 : (c4 = m, r5 = void 0);
321
+ const x2 = c4 === m && t3[i6 + 1].startsWith("/>") ? " " : "";
322
+ l3 += c4 === f2 ? s5 + n3 : d3 >= 0 ? (o6.push(a3), s5.slice(0, d3) + e3 + s5.slice(d3) + h2 + x2) : s5 + h2 + (-2 === d3 ? i6 : x2);
323
+ }
324
+ return [P(t3, l3 + (t3[s4] || "<?>") + (2 === i5 ? "</svg>" : 3 === i5 ? "</math>" : "")), o6];
325
+ };
326
+ var N = class _N {
327
+ constructor({ strings: t3, _$litType$: s4 }, n5) {
328
+ let r5;
329
+ this.parts = [];
330
+ let c4 = 0, a3 = 0;
331
+ const u3 = t3.length - 1, d3 = this.parts, [f3, v2] = V(t3, s4);
332
+ if (this.el = _N.createElement(f3, n5), C.currentNode = this.el.content, 2 === s4 || 3 === s4) {
333
+ const t4 = this.el.content.firstChild;
334
+ t4.replaceWith(...t4.childNodes);
335
+ }
336
+ for (; null !== (r5 = C.nextNode()) && d3.length < u3; ) {
337
+ if (1 === r5.nodeType) {
338
+ if (r5.hasAttributes()) for (const t4 of r5.getAttributeNames()) if (t4.endsWith(e3)) {
339
+ const i5 = v2[a3++], s5 = r5.getAttribute(t4).split(h2), e5 = /([.?@])?(.*)/.exec(i5);
340
+ d3.push({ type: 1, index: c4, name: e5[2], strings: s5, ctor: "." === e5[1] ? H : "?" === e5[1] ? I : "@" === e5[1] ? L : k }), r5.removeAttribute(t4);
341
+ } else t4.startsWith(h2) && (d3.push({ type: 6, index: c4 }), r5.removeAttribute(t4));
342
+ if ($.test(r5.tagName)) {
343
+ const t4 = r5.textContent.split(h2), s5 = t4.length - 1;
344
+ if (s5 > 0) {
345
+ r5.textContent = i3 ? i3.emptyScript : "";
346
+ for (let i5 = 0; i5 < s5; i5++) r5.append(t4[i5], l2()), C.nextNode(), d3.push({ type: 2, index: ++c4 });
347
+ r5.append(t4[s5], l2());
348
+ }
349
+ }
350
+ } else if (8 === r5.nodeType) if (r5.data === o3) d3.push({ type: 2, index: c4 });
351
+ else {
352
+ let t4 = -1;
353
+ for (; -1 !== (t4 = r5.data.indexOf(h2, t4 + 1)); ) d3.push({ type: 7, index: c4 }), t4 += h2.length - 1;
354
+ }
355
+ c4++;
356
+ }
357
+ }
358
+ static createElement(t3, i5) {
359
+ const s4 = r3.createElement("template");
360
+ return s4.innerHTML = t3, s4;
361
+ }
362
+ };
363
+ function S2(t3, i5, s4 = t3, e5) {
364
+ if (i5 === T) return i5;
365
+ let h3 = void 0 !== e5 ? s4._$Co?.[e5] : s4._$Cl;
366
+ const o6 = c3(i5) ? void 0 : i5._$litDirective$;
367
+ return h3?.constructor !== o6 && (h3?._$AO?.(false), void 0 === o6 ? h3 = void 0 : (h3 = new o6(t3), h3._$AT(t3, s4, e5)), void 0 !== e5 ? (s4._$Co ?? (s4._$Co = []))[e5] = h3 : s4._$Cl = h3), void 0 !== h3 && (i5 = S2(t3, h3._$AS(t3, i5.values), h3, e5)), i5;
368
+ }
369
+ var M = class {
370
+ constructor(t3, i5) {
371
+ this._$AV = [], this._$AN = void 0, this._$AD = t3, this._$AM = i5;
372
+ }
373
+ get parentNode() {
374
+ return this._$AM.parentNode;
375
+ }
376
+ get _$AU() {
377
+ return this._$AM._$AU;
378
+ }
379
+ u(t3) {
380
+ const { el: { content: i5 }, parts: s4 } = this._$AD, e5 = (t3?.creationScope ?? r3).importNode(i5, true);
381
+ C.currentNode = e5;
382
+ let h3 = C.nextNode(), o6 = 0, n5 = 0, l3 = s4[0];
383
+ for (; void 0 !== l3; ) {
384
+ if (o6 === l3.index) {
385
+ let i6;
386
+ 2 === l3.type ? i6 = new R(h3, h3.nextSibling, this, t3) : 1 === l3.type ? i6 = new l3.ctor(h3, l3.name, l3.strings, this, t3) : 6 === l3.type && (i6 = new z(h3, this, t3)), this._$AV.push(i6), l3 = s4[++n5];
387
+ }
388
+ o6 !== l3?.index && (h3 = C.nextNode(), o6++);
389
+ }
390
+ return C.currentNode = r3, e5;
391
+ }
392
+ p(t3) {
393
+ let i5 = 0;
394
+ for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t3, s4, i5), i5 += s4.strings.length - 2) : s4._$AI(t3[i5])), i5++;
395
+ }
396
+ };
397
+ var R = class _R {
398
+ get _$AU() {
399
+ return this._$AM?._$AU ?? this._$Cv;
400
+ }
401
+ constructor(t3, i5, s4, e5) {
402
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t3, this._$AB = i5, this._$AM = s4, this.options = e5, this._$Cv = e5?.isConnected ?? true;
403
+ }
404
+ get parentNode() {
405
+ let t3 = this._$AA.parentNode;
406
+ const i5 = this._$AM;
407
+ return void 0 !== i5 && 11 === t3?.nodeType && (t3 = i5.parentNode), t3;
408
+ }
409
+ get startNode() {
410
+ return this._$AA;
411
+ }
412
+ get endNode() {
413
+ return this._$AB;
414
+ }
415
+ _$AI(t3, i5 = this) {
416
+ t3 = S2(this, t3, i5), c3(t3) ? t3 === E || null == t3 || "" === t3 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t3 !== this._$AH && t3 !== T && this._(t3) : void 0 !== t3._$litType$ ? this.$(t3) : void 0 !== t3.nodeType ? this.T(t3) : u2(t3) ? this.k(t3) : this._(t3);
417
+ }
418
+ O(t3) {
419
+ return this._$AA.parentNode.insertBefore(t3, this._$AB);
420
+ }
421
+ T(t3) {
422
+ this._$AH !== t3 && (this._$AR(), this._$AH = this.O(t3));
423
+ }
424
+ _(t3) {
425
+ this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t3 : this.T(r3.createTextNode(t3)), this._$AH = t3;
426
+ }
427
+ $(t3) {
428
+ const { values: i5, _$litType$: s4 } = t3, e5 = "number" == typeof s4 ? this._$AC(t3) : (void 0 === s4.el && (s4.el = N.createElement(P(s4.h, s4.h[0]), this.options)), s4);
429
+ if (this._$AH?._$AD === e5) this._$AH.p(i5);
430
+ else {
431
+ const t4 = new M(e5, this), s5 = t4.u(this.options);
432
+ t4.p(i5), this.T(s5), this._$AH = t4;
433
+ }
434
+ }
435
+ _$AC(t3) {
436
+ let i5 = A.get(t3.strings);
437
+ return void 0 === i5 && A.set(t3.strings, i5 = new N(t3)), i5;
438
+ }
439
+ k(t3) {
440
+ a2(this._$AH) || (this._$AH = [], this._$AR());
441
+ const i5 = this._$AH;
442
+ let s4, e5 = 0;
443
+ for (const h3 of t3) e5 === i5.length ? i5.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i5[e5], s4._$AI(h3), e5++;
444
+ e5 < i5.length && (this._$AR(s4 && s4._$AB.nextSibling, e5), i5.length = e5);
445
+ }
446
+ _$AR(t3 = this._$AA.nextSibling, i5) {
447
+ for (this._$AP?.(false, true, i5); t3 && t3 !== this._$AB; ) {
448
+ const i6 = t3.nextSibling;
449
+ t3.remove(), t3 = i6;
450
+ }
451
+ }
452
+ setConnected(t3) {
453
+ void 0 === this._$AM && (this._$Cv = t3, this._$AP?.(t3));
454
+ }
455
+ };
456
+ var k = class {
457
+ get tagName() {
458
+ return this.element.tagName;
459
+ }
460
+ get _$AU() {
461
+ return this._$AM._$AU;
462
+ }
463
+ constructor(t3, i5, s4, e5, h3) {
464
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t3, this.name = i5, this._$AM = e5, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = E;
465
+ }
466
+ _$AI(t3, i5 = this, s4, e5) {
467
+ const h3 = this.strings;
468
+ let o6 = false;
469
+ if (void 0 === h3) t3 = S2(this, t3, i5, 0), o6 = !c3(t3) || t3 !== this._$AH && t3 !== T, o6 && (this._$AH = t3);
470
+ else {
471
+ const e6 = t3;
472
+ let n5, r5;
473
+ for (t3 = h3[0], n5 = 0; n5 < h3.length - 1; n5++) r5 = S2(this, e6[s4 + n5], i5, n5), r5 === T && (r5 = this._$AH[n5]), o6 || (o6 = !c3(r5) || r5 !== this._$AH[n5]), r5 === E ? t3 = E : t3 !== E && (t3 += (r5 ?? "") + h3[n5 + 1]), this._$AH[n5] = r5;
474
+ }
475
+ o6 && !e5 && this.j(t3);
476
+ }
477
+ j(t3) {
478
+ t3 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t3 ?? "");
479
+ }
480
+ };
481
+ var H = class extends k {
482
+ constructor() {
483
+ super(...arguments), this.type = 3;
484
+ }
485
+ j(t3) {
486
+ this.element[this.name] = t3 === E ? void 0 : t3;
487
+ }
488
+ };
489
+ var I = class extends k {
490
+ constructor() {
491
+ super(...arguments), this.type = 4;
492
+ }
493
+ j(t3) {
494
+ this.element.toggleAttribute(this.name, !!t3 && t3 !== E);
495
+ }
496
+ };
497
+ var L = class extends k {
498
+ constructor(t3, i5, s4, e5, h3) {
499
+ super(t3, i5, s4, e5, h3), this.type = 5;
500
+ }
501
+ _$AI(t3, i5 = this) {
502
+ if ((t3 = S2(this, t3, i5, 0) ?? E) === T) return;
503
+ const s4 = this._$AH, e5 = t3 === E && s4 !== E || t3.capture !== s4.capture || t3.once !== s4.once || t3.passive !== s4.passive, h3 = t3 !== E && (s4 === E || e5);
504
+ e5 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t3), this._$AH = t3;
505
+ }
506
+ handleEvent(t3) {
507
+ "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t3) : this._$AH.handleEvent(t3);
508
+ }
509
+ };
510
+ var z = class {
511
+ constructor(t3, i5, s4) {
512
+ this.element = t3, this.type = 6, this._$AN = void 0, this._$AM = i5, this.options = s4;
513
+ }
514
+ get _$AU() {
515
+ return this._$AM._$AU;
516
+ }
517
+ _$AI(t3) {
518
+ S2(this, t3);
519
+ }
520
+ };
521
+ var j = t2.litHtmlPolyfillSupport;
522
+ j?.(N, R), (t2.litHtmlVersions ?? (t2.litHtmlVersions = [])).push("3.3.0");
523
+ var B = (t3, i5, s4) => {
524
+ const e5 = s4?.renderBefore ?? i5;
525
+ let h3 = e5._$litPart$;
526
+ if (void 0 === h3) {
527
+ const t4 = s4?.renderBefore ?? null;
528
+ e5._$litPart$ = h3 = new R(i5.insertBefore(l2(), t4), t4, void 0, s4 ?? {});
529
+ }
530
+ return h3._$AI(t3), h3;
531
+ };
532
+
533
+ // ../../node_modules/lit-element/lit-element.js
534
+ var s3 = globalThis;
535
+ var i4 = class extends y {
536
+ constructor() {
537
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
538
+ }
539
+ createRenderRoot() {
540
+ var _a;
541
+ const t3 = super.createRenderRoot();
542
+ return (_a = this.renderOptions).renderBefore ?? (_a.renderBefore = t3.firstChild), t3;
543
+ }
544
+ update(t3) {
545
+ const r5 = this.render();
546
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t3), this._$Do = B(r5, this.renderRoot, this.renderOptions);
547
+ }
548
+ connectedCallback() {
549
+ super.connectedCallback(), this._$Do?.setConnected(true);
550
+ }
551
+ disconnectedCallback() {
552
+ super.disconnectedCallback(), this._$Do?.setConnected(false);
553
+ }
554
+ render() {
555
+ return T;
556
+ }
557
+ };
558
+ i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 });
559
+ var o4 = s3.litElementPolyfillSupport;
560
+ o4?.({ LitElement: i4 });
561
+ (s3.litElementVersions ?? (s3.litElementVersions = [])).push("4.2.0");
562
+
563
+ // ../../node_modules/@lit/reactive-element/decorators/property.js
564
+ var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
565
+ var r4 = (t3 = o5, e5, r5) => {
566
+ const { kind: n5, metadata: i5 } = r5;
567
+ let s4 = globalThis.litPropertyMetadata.get(i5);
568
+ if (void 0 === s4 && globalThis.litPropertyMetadata.set(i5, s4 = /* @__PURE__ */ new Map()), "setter" === n5 && ((t3 = Object.create(t3)).wrapped = true), s4.set(r5.name, t3), "accessor" === n5) {
569
+ const { name: o6 } = r5;
570
+ return { set(r6) {
571
+ const n6 = e5.get.call(this);
572
+ e5.set.call(this, r6), this.requestUpdate(o6, n6, t3);
573
+ }, init(e6) {
574
+ return void 0 !== e6 && this.C(o6, void 0, t3, e6), e6;
575
+ } };
576
+ }
577
+ if ("setter" === n5) {
578
+ const { name: o6 } = r5;
579
+ return function(r6) {
580
+ const n6 = this[o6];
581
+ e5.call(this, r6), this.requestUpdate(o6, n6, t3);
582
+ };
583
+ }
584
+ throw Error("Unsupported decorator location: " + n5);
585
+ };
586
+ function n4(t3) {
587
+ return (e5, o6) => "object" == typeof o6 ? r4(t3, e5, o6) : ((t4, e6, o7) => {
588
+ const r5 = e6.hasOwnProperty(o7);
589
+ return e6.constructor.createProperty(o7, t4), r5 ? Object.getOwnPropertyDescriptor(e6, o7) : void 0;
590
+ })(t3, e5, o6);
591
+ }
592
+
593
+ // src/TtNavbar.ts
594
+ var TtNavbar = class extends i4 {
595
+ constructor() {
596
+ super(...arguments);
597
+ this.header = "Hey there";
598
+ this.counter = 5;
599
+ }
600
+ __increment() {
601
+ this.counter += 1;
602
+ }
603
+ render() {
604
+ return x`
605
+ <h2>${this.header} Nr. ${this.counter}!</h2>
606
+ <button @click=${this.__increment}>increment</button>
607
+ `;
608
+ }
609
+ };
610
+ TtNavbar.styles = i`
611
+ :host {
612
+ display: block;
613
+ padding: 25px;
614
+ color: var(--tt-navbar-text-color, #000);
615
+ }
616
+ `;
617
+ __decorateClass([
618
+ n4({ type: String })
619
+ ], TtNavbar.prototype, "header", 2);
620
+ __decorateClass([
621
+ n4({ type: Number })
622
+ ], TtNavbar.prototype, "counter", 2);
623
+ export {
624
+ TtNavbar
625
+ };
626
+ /*! Bundled license information:
627
+
628
+ @lit/reactive-element/css-tag.js:
629
+ (**
630
+ * @license
631
+ * Copyright 2019 Google LLC
632
+ * SPDX-License-Identifier: BSD-3-Clause
633
+ *)
634
+
635
+ @lit/reactive-element/reactive-element.js:
636
+ (**
637
+ * @license
638
+ * Copyright 2017 Google LLC
639
+ * SPDX-License-Identifier: BSD-3-Clause
640
+ *)
641
+
642
+ lit-html/lit-html.js:
643
+ (**
644
+ * @license
645
+ * Copyright 2017 Google LLC
646
+ * SPDX-License-Identifier: BSD-3-Clause
647
+ *)
648
+
649
+ lit-element/lit-element.js:
650
+ (**
651
+ * @license
652
+ * Copyright 2017 Google LLC
653
+ * SPDX-License-Identifier: BSD-3-Clause
654
+ *)
655
+
656
+ lit-html/is-server.js:
657
+ (**
658
+ * @license
659
+ * Copyright 2022 Google LLC
660
+ * SPDX-License-Identifier: BSD-3-Clause
661
+ *)
662
+
663
+ @lit/reactive-element/decorators/custom-element.js:
664
+ (**
665
+ * @license
666
+ * Copyright 2017 Google LLC
667
+ * SPDX-License-Identifier: BSD-3-Clause
668
+ *)
669
+
670
+ @lit/reactive-element/decorators/property.js:
671
+ (**
672
+ * @license
673
+ * Copyright 2017 Google LLC
674
+ * SPDX-License-Identifier: BSD-3-Clause
675
+ *)
676
+
677
+ @lit/reactive-element/decorators/state.js:
678
+ (**
679
+ * @license
680
+ * Copyright 2017 Google LLC
681
+ * SPDX-License-Identifier: BSD-3-Clause
682
+ *)
683
+
684
+ @lit/reactive-element/decorators/event-options.js:
685
+ (**
686
+ * @license
687
+ * Copyright 2017 Google LLC
688
+ * SPDX-License-Identifier: BSD-3-Clause
689
+ *)
690
+
691
+ @lit/reactive-element/decorators/base.js:
692
+ (**
693
+ * @license
694
+ * Copyright 2017 Google LLC
695
+ * SPDX-License-Identifier: BSD-3-Clause
696
+ *)
697
+
698
+ @lit/reactive-element/decorators/query.js:
699
+ (**
700
+ * @license
701
+ * Copyright 2017 Google LLC
702
+ * SPDX-License-Identifier: BSD-3-Clause
703
+ *)
704
+
705
+ @lit/reactive-element/decorators/query-all.js:
706
+ (**
707
+ * @license
708
+ * Copyright 2017 Google LLC
709
+ * SPDX-License-Identifier: BSD-3-Clause
710
+ *)
711
+
712
+ @lit/reactive-element/decorators/query-async.js:
713
+ (**
714
+ * @license
715
+ * Copyright 2017 Google LLC
716
+ * SPDX-License-Identifier: BSD-3-Clause
717
+ *)
718
+
719
+ @lit/reactive-element/decorators/query-assigned-elements.js:
720
+ (**
721
+ * @license
722
+ * Copyright 2021 Google LLC
723
+ * SPDX-License-Identifier: BSD-3-Clause
724
+ *)
725
+
726
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
727
+ (**
728
+ * @license
729
+ * Copyright 2017 Google LLC
730
+ * SPDX-License-Identifier: BSD-3-Clause
731
+ *)
732
+ */
733
+ //# sourceMappingURL=index.js.map