-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
432 lines (425 loc) · 89.9 KB
/
Copy pathscript.js
File metadata and controls
432 lines (425 loc) · 89.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
const MSS = document.getElementById("MSList");
const Prints = document.getElementById("PrintList");
function toggleView() {
if (MSS.style.display === "none") {
Prints.style.display = "none"
MSS.style.display = "block"
} else {
Prints.style.display = "block"
MSS.style.display = "none";
}
};
function searchModal() {
return {
query: "",
results: [],
loading: !1,
hasSearched: !1,
selectedIndex: -1,
activeFilter: null,
availableFilters: [],
trendingSearches: '["Search term 1","Search term 2"]',
pagefind: null,
pagefindModulePath: window.hbb?.assetPaths?.pagefind ?? "/pagefind/pagefind.js",
typeLabels: {
questions: '"Questions"',
faq: '"FAQ"',
docs: '"Documentation"'
},
async init() {
try {
this.pagefind = await import(this.pagefindModulePath), await this.pagefind.init(), console.log("✓ Pagefind initialized"), await this.loadFilters()
} catch (e) {
console.error("Failed to initialize Pagefind:", e)
}
this.$watch("$store.search.open", e => {
e ? (this.$nextTick(() => this.$refs.searchInput?.focus()), document.body.style.overflow = "hidden") : (document.body.style.overflow = "", this.query = "", this.results = [], this.selectedIndex = -1, this.hasSearched = !1)
}), window.addEventListener("keydown", e => {
if (!this.$store.search.open || this.results.length === 0) return;
if (e.key === "ArrowDown") e.preventDefault(), this.selectedIndex = this.selectedIndex < this.results.length - 1 ? this.selectedIndex + 1 : 0, this.scrollToSelected();
else if (e.key === "ArrowUp") e.preventDefault(), this.selectedIndex = this.selectedIndex > 0 ? this.selectedIndex - 1 : this.results.length - 1, this.scrollToSelected();
else if (e.key === "Enter" && this.selectedIndex >= 0) {
e.preventDefault();
const t = this.results[this.selectedIndex];
t && (window.location.href = t.url, this.$store.search.open = !1)
}
})
},
scrollToSelected() {
this.$nextTick(() => {
const e = document.querySelector(".search-result:nth-child(" + (this.selectedIndex + 1) + ")");
e && e.scrollIntoView({
block: "nearest",
behavior: "smooth"
})
})
},
async search() {
if (!this.query.trim()) {
this.results = [], this.hasSearched = !1;
return
}
this.loading = !0, this.hasSearched = !1;
try {
const s = {};
if (this.activeFilter) {
const [e, t] = this.activeFilter.split(":");
s.filters = {
[e]: t
}
}
const n = await this.pagefind.search(this.query, s);
console.log("Search results:", n), console.log("Search filters:", n.filters), this.results = await Promise.all(n.results.slice(0, 10).map(async e => {
const t = await e.data();
return console.log("Result data:", t), {
id: t.url,
url: t.url,
meta: t.meta,
excerpt: t.excerpt,
filters: t.filters || {}
}
}));
const e = {
type: {},
category: {},
difficulty: {}
};
this.results.forEach(t => {
t.filters && (t.filters.type && t.filters.type.forEach(t => {
e.type[t] = (e.type[t] || 0) + 1
}), t.filters.category && t.filters.category.forEach(t => {
e.category[t] = (e.category[t] || 0) + 1
}), t.filters.difficulty && t.filters.difficulty.forEach(t => {
e.difficulty[t] = (e.difficulty[t] || 0) + 1
}))
}), console.log("Extracted filter counts from results:", e);
const t = [];
Object.entries(e.type).forEach(([e, n]) => {
t.push({
category: "type",
value: e,
label: this.typeLabels[e] || e.charAt(0).toUpperCase() + e.slice(1),
count: n,
filterKey: `type:${e}`
})
}), Object.entries(e.category).forEach(([e, n]) => {
t.push({
category: "category",
value: e,
label: e,
count: n,
filterKey: `category:${e}`
})
}), Object.entries(e.difficulty).forEach(([e, n]) => {
t.push({
category: "difficulty",
value: e,
label: e,
count: n,
filterKey: `difficulty:${e}`
})
}), this.availableFilters = t, console.log("Final availableFilters array:", this.availableFilters), this.results.length > 0 && (this.selectedIndex = 0)
} catch (e) {
console.error("Search error:", e), this.results = []
} finally {
this.loading = !1, this.hasSearched = !0
}
},
async loadFilters() {
try {
const e = await this.pagefind.search("");
console.log("Available Pagefind filters:", e.filters);
const t = [];
e.filters && e.filters.type && Object.entries(e.filters.type).forEach(([e, n]) => {
t.push({
category: "type",
value: e,
label: e.charAt(0).toUpperCase() + e.slice(1),
count: n,
filterKey: `type:${e}`
})
}), e.filters && e.filters.category && Object.entries(e.filters.category).forEach(([e, n]) => {
t.push({
category: "category",
value: e,
label: e,
count: n,
filterKey: `category:${e}`
})
}), e.filters && e.filters.difficulty && Object.entries(e.filters.difficulty).forEach(([e, n]) => {
t.push({
category: "difficulty",
value: e,
label: e,
count: n,
filterKey: `difficulty:${e}`
})
}), this.availableFilters = t, console.log("Processed filters:", this.availableFilters)
} catch (e) {
console.error("Failed to load filters:", e)
}
}
}
}
document.addEventListener("alpine:init", () => {
Alpine.store("search", {
open: !1
})
})
(()=>{function s(){const e=document.documentElement,t=e.dataset.wcThemeDefault,n=()=>{e.classList.add("dark"),e.style.colorScheme="dark"},s=()=>{e.classList.remove("dark"),e.style.colorScheme="light"};"wc-color-theme"in localStorage?localStorage.getItem("wc-color-theme")==="dark"?n():s():t==="dark"?n():t==="light"?s():t==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n():s())}function o(){document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll("li input[type='checkbox'][disabled]");e.forEach(e=>{const t=e.parentElement?.parentElement;t&&t.classList.add("task-list")});const t=document.querySelectorAll(".task-list li");t.forEach(e=>{const t=Array.from(e.childNodes).filter(e=>e.nodeType===3&&e.textContent&&e.textContent.trim().length>1);if(t.length>0){const n=document.createElement("label");t[0].after(n);const s=e.querySelector("input[type='checkbox']");s&&n.appendChild(s),n.appendChild(t[0])}})})}var e=document.documentElement,i=e.dataset.wcThemeDefault||"system",t=e.dataset.hbbRelurl||"/",n=t.endsWith("/")?t:`${t}/`,a=e=>{const t=e.startsWith("/")?e.slice(1):e;return`${n}${t}`};window.hbb={defaultTheme:i,relBase:n,assetPaths:{pagefind:a("pagefind/pagefind.js")},setDarkTheme:()=>{e.classList.add("dark"),e.style.colorScheme="dark"},setLightTheme:()=>{e.classList.remove("dark"),e.style.colorScheme="light"}},s(),o()})()
;
(()=>{var o="production",e={copied:"Copied",copy:"Copy"},t=2e3,i=300,n=o==="development",a=(e,t)=>{let n;return function(...s){const o=()=>{clearTimeout(n),e(...s)};clearTimeout(n),n=setTimeout(o,t)}};async function r(s,o){if(!s||!(s instanceof HTMLElement))throw new Error("Invalid button element");if(!o||!(o instanceof HTMLElement))throw new Error("Invalid code wrapper element");const i=o.cloneNode(!0),a=i.querySelector(".copy-button");a&&a.remove();const r=i.textContent?.trim()??"";if(!r)throw new Error("No code content found to copy");try{await navigator.clipboard.writeText(r),c(s),n&&console.debug("Code copied successfully")}catch(n){const o=n instanceof Error?n.message:"Unknown error";throw console.error("Failed to copy:",o),s.innerHTML=e.copyFailed||"Failed",setTimeout(()=>{s.innerHTML=e.copy},t),n}}function c(n){n.innerHTML=e.copied,n.disabled=!0,n.classList.add("copied"),setTimeout(()=>{n.innerHTML=e.copy,n.disabled=!1,n.classList.remove("copied")},t)}function l(){const t=document.createElement("button");return t.classList.add("copy-button"),t.innerHTML=e.copy,t.setAttribute("aria-label",e.copyLabel||"Copy code to clipboard"),t.setAttribute("type","button"),t}function d(e){const t=e.parentNode?.parentNode;if(!t)throw new Error("Invalid code block structure");if(t.classList.contains("highlight"))return t;const s=t.closest("table");if(s)return s;const n=e.parentElement;if(n)return n.classList.add("highlight"),n;throw new Error("Could not determine code wrapper")}function s(){try{const e=document.querySelectorAll("pre > code");n&&console.debug(`Found ${e.length} code blocks`),e.forEach((e,t)=>{try{const n=d(e),t=l(),s=a(()=>r(t,n),i);t.addEventListener("click",s),n.appendChild(t)}catch(e){console.error(`Failed to initialize copy button for code block ${t}:`,e)}})}catch(e){console.error("Failed to initialize code copy buttons:",e)}}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",s):s()})()
;
document.addEventListener("DOMContentLoaded",()=>{addThemeToggleListener()});function addThemeToggleListener(){const t=window.hbb.defaultTheme,e=document.querySelectorAll(".theme-toggle");localStorage.getItem("wc-color-theme")==="dark"||!("wc-color-theme"in localStorage)&&(window.matchMedia("(prefers-color-scheme: dark)").matches&&t==="system"||t==="dark")?e.forEach(e=>{e.dataset.theme="dark"}):e.forEach(e=>{e.dataset.theme="light"}),e.forEach(e=>{e.addEventListener("click",()=>{console.debug("Theme toggled"),localStorage.getItem("wc-color-theme")?localStorage.getItem("wc-color-theme")==="light"?(window.hbb.setDarkTheme(),localStorage.setItem("wc-color-theme","dark")):(window.hbb.setLightTheme(),localStorage.setItem("wc-color-theme","light")):document.documentElement.classList.contains("dark")?(window.hbb.setLightTheme(),localStorage.setItem("wc-color-theme","light")):(window.hbb.setDarkTheme(),localStorage.setItem("wc-color-theme","dark")),e.dataset.theme=document.documentElement.classList.contains("dark")?"dark":"light";const t=new CustomEvent("hbThemeChange",{detail:{isDarkTheme:()=>document.documentElement.classList.contains("dark")}});document.dispatchEvent(t)})}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",n=>{t==="system"&&!("wc-color-theme"in localStorage)&&(n.matches?window.hbb.setDarkTheme():window.hbb.setLightTheme(),e.forEach(e=>{const t=document.documentElement.classList.contains("dark");e.dataset.theme=t?"dark":"light"}))})}
;
window.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll("[data-hb-language-chooser]");e.forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),e.dataset.state=e.dataset.state==="open"?"closed":"open";const n=e.nextElementSibling;n.classList.toggle("hidden");const s=e.getBoundingClientRect(),o=s.bottom-window.innerHeight+40;n.style.transform=`translate3d(${s.left}px, ${o}px, 0)`,n.style.minWidth=`${Math.max(s.width,50)}px`})}),document.addEventListener("click",t=>{t.target.closest("[data-hb-language-chooser]")===null&&e.forEach(e=>{e.dataset.state="closed";const t=e.nextElementSibling;t.classList.add("hidden")})})})
;
const applyScrollPadding=()=>{const t=document.querySelector(".page-header"),e=t.getBoundingClientRect();document.documentElement.style.scrollPaddingTop=`${e.height.toString()}px`;const n=document.querySelector(":root");n.style.setProperty("--navbar-height",`${e.height.toString()}px`)};window.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll(".nav-dropdown > .nav-link[role='button']");e.forEach(e=>{const t=e=>{const t=e.closest(".nav-dropdown"),n=!t.classList.contains("active");t.classList.toggle("active",n),e.setAttribute("aria-expanded",n?"true":"false")};e?.addEventListener("click",e=>{e.preventDefault(),t(e.currentTarget)}),e?.addEventListener("keydown",e=>{if((e.key==="Enter"||e.key===" ")&&(e.preventDefault(),t(e.currentTarget)),e.key==="Escape"){const t=e.currentTarget.closest(".nav-dropdown");t?.classList.remove("active"),e.currentTarget.setAttribute("aria-expanded","false")}})}),applyScrollPadding()})
;
document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll("[data-hb-sidebar-toggle]");e.forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const n=e.parentElement.parentElement;n&&n.classList.toggle("open")})})}),document.addEventListener("DOMContentLoaded",()=>{const o=document.querySelector("#nav-toggle"),e=document.querySelector(".hb-sidebar-mobile-menu"),n=document.querySelector(".hb-sidebar-container");if(!e)return;const t=["fixed","z-10","inset-0","bg-white","dark:bg-black/80"];e.classList.add("bg-transparent"),e.classList.remove("hidden",...t);function s(){n.classList.toggle("max-lg:[transform:translate3d(0,-100%,0)]"),n.classList.toggle("max-lg:[transform:translate3d(0,0,0)]"),document.body.classList.toggle("overflow-hidden"),document.body.classList.toggle("lg:overflow-auto")}o.addEventListener("click",n=>{console.debug("Hamburger clicked."),n.preventDefault(),s(),e.classList.contains("bg-transparent")?(e.classList.add(...t),e.classList.remove("bg-transparent")):(e.classList.remove(...t),e.classList.add("bg-transparent"))}),e.addEventListener("click",n=>{n.preventDefault(),s(),e.classList.remove(...t),e.classList.add("bg-transparent")})})
;
(()=>{var r,t="production",n=t==="development";function s(t,n="success",s=3e3){const r=o(),c=r.querySelector(".hb-notification");c?.textContent?.includes(t)&&c.remove();const a=i(t,n);r.appendChild(a);const l=a.querySelector(".hb-notification-close");return l&&l.addEventListener("click",()=>{e(a)}),s>0&&setTimeout(()=>{e(a)},s),a}function o(){let e=document.getElementById("hb-notification-container");return e||(n&&console.warn("Notification container not found, creating fallback"),e=document.createElement("div"),e.id="hb-notification-container",e.className="fixed top-20 right-4 z-[9999] pointer-events-none",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),document.body.appendChild(e)),e}function i(e,t){const n=document.createElement("div");n.setAttribute("role","alert");const s={success:{bg:"#10b981",bgClass:"bg-green-500"},error:{bg:"#ef4444",bgClass:"bg-red-500"},info:{bg:"#3b82f6",bgClass:"bg-blue-500"},warning:{bg:"#f59e0b",bgClass:"bg-amber-500"}},o=s[t]||s.info;n.className=`hb-notification pointer-events-auto flex items-center gap-2 px-4 py-3 text-white rounded-lg shadow-lg ${o.bgClass} animate-slide-in`,n.style.cssText=`
background-color: ${o.bg};
color: white;
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
border-radius: 0.5rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
margin-bottom: 0.5rem;
pointer-events: auto;
`;const i={success:'<svg class="w-5 h-5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>',error:'<svg class="w-5 h-5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd"></path></svg>',info:'<svg class="w-5 h-5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path></svg>',warning:'<svg class="w-5 h-5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"></path></svg>'},r=i[t]||i.info;return n.innerHTML=`
${r}
<span class="text-sm font-medium">${e}</span>
<button class="hb-notification-close ml-2 text-white/80 hover:text-white transition-colors" aria-label="Close">
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg>
</button>
`,a(),n}function e(e){if(!e||!e.parentNode)return;e.classList.remove("animate-slide-in"),e.classList.add("animate-slide-out"),setTimeout(()=>{e.parentNode&&e.remove()},300)}function a(){if(!document.querySelector("#hb-notification-styles")){const e=document.createElement("style");e.id="hb-notification-styles",e.textContent=`
@keyframes slide-in {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slide-out {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}
.animate-slide-in {
animation: slide-in 0.3s ease-out;
}
.animate-slide-out {
animation: slide-out 0.3s ease-out;
}
`,document.head.appendChild(e)}}r=s})()
;
(()=>{var o,i,n="production",e=n==="development";async function s(n){if(navigator.clipboard&&window.isSecureContext)try{return await navigator.clipboard.writeText(n),e&&console.log("Copied using Clipboard API"),!0}catch(t){e&&console.warn("Clipboard API failed:",t)}return t(n)}function a(n){return new Promise(s=>{navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(n).then(()=>{e&&console.log("Copied using Clipboard API (sync)"),s(!0)}).catch(o=>{e&&console.warn("Clipboard API failed:",o),s(t(n))}):s(t(n))})}function t(t){const n=document.createElement("textarea");if(n.value=t,Object.assign(n.style,{position:"fixed",top:"0",left:"0",width:"2em",height:"2em",padding:"0",border:"none",outline:"none",boxShadow:"none",background:"transparent",fontSize:"16px"}),document.body.appendChild(n),n.focus(),n.select(),navigator.userAgent.match(/ipad|iphone/i)){const e=document.createRange();e.selectNodeContents(n);const t=window.getSelection();t.removeAllRanges(),t.addRange(e),n.setSelectionRange(0,999999)}let s=!1;try{s=document.execCommand("copy"),e&&console.log(`execCommand copy ${s?"succeeded":"failed"}`)}catch(t){e&&console.error("execCommand failed:",t)}return document.body.removeChild(n),s}function r(){return!!(navigator.clipboard&&window.isSecureContext)}o=class{constructor(){this.cache=new Map}set(t,n){this.cache.set(t,n),e&&console.log(`Cached clipboard content for: ${t}`)}get(e){return this.cache.get(e)||null}has(e){return this.cache.has(e)}clear(){this.cache.clear()}get size(){return this.cache.size}},i=s})()
;
(()=>{var n,s,c,l,u,g="production",o={copied:"Copied",copy:"Copy"},j="production",t=j==="development";function r(e){return new Promise(n=>{navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e).then(()=>{t&&console.log("Copied using Clipboard API (sync)"),n(!0)}).catch(s=>{t&&console.warn("Clipboard API failed:",s),n(a(e))}):n(a(e))})}function a(e){const n=document.createElement("textarea");if(n.value=e,Object.assign(n.style,{position:"fixed",top:"0",left:"0",width:"2em",height:"2em",padding:"0",border:"none",outline:"none",boxShadow:"none",background:"transparent",fontSize:"16px"}),document.body.appendChild(n),n.focus(),n.select(),navigator.userAgent.match(/ipad|iphone/i)){const e=document.createRange();e.selectNodeContents(n);const t=window.getSelection();t.removeAllRanges(),t.addRange(e),n.setSelectionRange(0,999999)}let s=!1;try{s=document.execCommand("copy"),t&&console.log(`execCommand copy ${s?"succeeded":"failed"}`)}catch(e){t&&console.error("execCommand failed:",e)}return document.body.removeChild(n),s}l=class{constructor(){this.cache=new Map}set(e,n){this.cache.set(e,n),t&&console.log(`Cached clipboard content for: ${e}`)}get(e){return this.cache.get(e)||null}has(e){return this.cache.has(e)}clear(){this.cache.clear()}get size(){return this.cache.size}},u="production",c=u==="development";function e(e,t="success",n=3e3){const o=w(),i=o.querySelector(".hb-notification");i?.textContent?.includes(e)&&i.remove();const s=p(e,t);o.appendChild(s);const a=s.querySelector(".hb-notification-close");return a&&a.addEventListener("click",()=>{h(s)}),n>0&&setTimeout(()=>{h(s)},n),s}function w(){let e=document.getElementById("hb-notification-container");return e||(c&&console.warn("Notification container not found, creating fallback"),e=document.createElement("div"),e.id="hb-notification-container",e.className="fixed top-20 right-4 z-[9999] pointer-events-none",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),document.body.appendChild(e)),e}function p(e,t){const n=document.createElement("div");n.setAttribute("role","alert");const s={success:{bg:"#10b981",bgClass:"bg-green-500"},error:{bg:"#ef4444",bgClass:"bg-red-500"},info:{bg:"#3b82f6",bgClass:"bg-blue-500"},warning:{bg:"#f59e0b",bgClass:"bg-amber-500"}},o=s[t]||s.info;n.className=`hb-notification pointer-events-auto flex items-center gap-2 px-4 py-3 text-white rounded-lg shadow-lg ${o.bgClass} animate-slide-in`,n.style.cssText=`
background-color: ${o.bg};
color: white;
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
border-radius: 0.5rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
margin-bottom: 0.5rem;
pointer-events: auto;
`;const i={success:'<svg class="w-5 h-5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>',error:'<svg class="w-5 h-5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd"></path></svg>',info:'<svg class="w-5 h-5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path></svg>',warning:'<svg class="w-5 h-5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"></path></svg>'},a=i[t]||i.info;return n.innerHTML=`
${a}
<span class="text-sm font-medium">${e}</span>
<button class="hb-notification-close ml-2 text-white/80 hover:text-white transition-colors" aria-label="Close">
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path>
</svg>
</button>
`,b(),n}function h(e){if(!e||!e.parentNode)return;e.classList.remove("animate-slide-in"),e.classList.add("animate-slide-out"),setTimeout(()=>{e.parentNode&&e.remove()},300)}function b(){if(!document.querySelector("#hb-notification-styles")){const e=document.createElement("style");e.id="hb-notification-styles",e.textContent=`
@keyframes slide-in {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slide-out {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}
.animate-slide-in {
animation: slide-in 0.3s ease-out;
}
.animate-slide-out {
animation: slide-out 0.3s ease-out;
}
`,document.head.appendChild(e)}}s=g==="development",n=new l,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",f):f();function f(){document.addEventListener("click",y),document.addEventListener("mouseover",m),document.addEventListener("focusin",m),v()}function v(){const e=document.querySelectorAll(".js-cite-clipboard[data-filename]");e.forEach(e=>{const t=e.getAttribute("data-filename");t&&!n.has(t)&&i(t)})}function m(e){const s=e.target.closest(".js-cite-clipboard");if(!s)return;const t=s.getAttribute("data-filename");t&&!n.has(t)&&i(t)}async function i(e){try{const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch citation: ${t.statusText}`);const s=await t.text();return n.set(e,s),s}catch(t){return s&&console.error(`Failed to fetch citation ${e}:`,t),null}}function y(t){const i=t.target.closest(".js-cite-clipboard");if(!i)return;t.preventDefault(),t.stopPropagation();const a=i.getAttribute("data-filename");if(!a){s&&console.error("No filename specified for citation"),e("Citation file not found","error");return}const c=n.get(a);c?r(c).then(t=>{t?(e(o?.copied||"Citation copied!","success"),d(i)):e("Failed to copy citation","error")}):_(a,i)}async function _(t,n){try{const s=await i(t);if(s){const t=await r(s);t?(e(o?.copied||"Citation copied!","success"),d(n)):e("Failed to copy citation","error")}else e("Failed to load citation","error")}catch(t){s&&console.error("Failed to copy citation:",t),t.name==="NotAllowedError"?e("Please hover over the button first, then click","info"):e("Failed to copy citation","error")}}function d(e){const n=o?.copied||"Copied!",t=e.querySelector("span");if(!t){s&&console.warn("Could not find text element in cite button");return}const i=t.textContent;t.textContent=n,e.classList.add("opacity-70"),setTimeout(()=>{t.textContent=i,e.classList.remove("opacity-70")},2e3)}})()
(()=>{var N,f,te,he,P,Z,re,ne,_e,V,R,q,me,E={},oe=[],ge=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,B=Array.isArray;function w(e,t){for(var r in t)e[r]=t[r];return e}function J(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ye(e,t,r){var o,l,_,i={};for(_ in t)_=="key"?o=t[_]:_=="ref"?l=t[_]:i[_]=t[_];if(arguments.length>2&&(i.children=arguments.length>3?N.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(_ in e.defaultProps)i[_]===void 0&&(i[_]=e.defaultProps[_]);return j(e,i,o,l,null)}function j(e,t,r,o,l){var _={type:e,props:t,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:l??++te,__i:-1,__u:0};return l==null&&f.vnode!=null&&f.vnode(_),_}function H(e){return e.children}function D(e,t){this.props=e,this.context=t}function $(e,t){if(t==null)return e.__?$(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?$(e):null}function le(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return le(e)}}function X(e){(!e.__d&&(e.__d=!0)&&P.push(e)&&!F.__r++||Z!=f.debounceRendering)&&((Z=f.debounceRendering)||re)(F)}function F(){for(var e,t,r,o,l,_,i,a=1;P.length;)P.length>a&&P.sort(ne),e=P.shift(),a=P.length,e.__d&&(r=void 0,o=void 0,l=(o=(t=e).__v).__e,_=[],i=[],t.__P&&((r=w({},o)).__v=o.__v+1,f.vnode&&f.vnode(r),G(t.__P,r,o,t.__n,t.__P.namespaceURI,32&o.__u?[l]:null,_,l??$(o),!!(32&o.__u),i),r.__v=o.__v,r.__.__k[r.__i]=r,ae(_,r,i),o.__e=o.__=null,r.__e!=l&&le(r)));F.__r=0}function ie(e,t,r,o,l,_,i,a,u,s,p){var n,g,c,y,x,v,d,h=o&&o.__k||oe,S=t.length;for(u=ve(r,t,h,u,S),n=0;n<S;n++)(c=r.__k[n])!=null&&(g=c.__i==-1?E:h[c.__i]||E,c.__i=n,v=G(e,c,g,l,_,i,a,u,s,p),y=c.__e,c.ref&&g.ref!=c.ref&&(g.ref&&K(g.ref,null,c),p.push(c.ref,c.__c||y,c)),x==null&&y!=null&&(x=y),(d=!!(4&c.__u))||g.__k===c.__k?u=se(c,u,e,d):typeof c.type=="function"&&v!==void 0?u=v:y&&(u=y.nextSibling),c.__u&=-7);return r.__e=x,u}function ve(e,t,r,o,l){var _,i,a,u,s,p=r.length,n=p,g=0;for(e.__k=new Array(l),_=0;_<l;_++)(i=t[_])!=null&&typeof i!="boolean"&&typeof i!="function"?(u=_+g,(i=e.__k[_]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?j(null,i,null,null,null):B(i)?j(H,{children:i},null,null,null):i.constructor==null&&i.__b>0?j(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,(s=i.__i=be(i,r,u,n))!=-1&&(n--,(a=r[s])&&(a.__u|=2)),a==null||a.__v==null?(s==-1&&(l>p?g--:l<p&&g++),typeof i.type!="function"&&(i.__u|=4)):s!=u&&(s==u-1?g--:s==u+1?g++:(s>u?g--:g++,i.__u|=4))):e.__k[_]=null;if(n)for(_=0;_<p;_++)(a=r[_])!=null&&(2&a.__u)==0&&(a.__e==o&&(o=$(a)),ue(a,a));return o}function se(e,t,r,o){var l,_;if(typeof e.type=="function"){for(l=e.__k,_=0;l&&_<l.length;_++)l[_]&&(l[_].__=e,t=se(l[_],t,r,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=$(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function be(e,t,r,o){var l,_,i,a=e.key,u=e.type,s=t[r],p=s!=null&&(2&s.__u)==0;if(s===null&&e.key==null||p&&a==s.key&&u==s.type)return r;if(o>(p?1:0)){for(l=r-1,_=r+1;l>=0||_<t.length;)if((s=t[i=l>=0?l--:_++])!=null&&(2&s.__u)==0&&a==s.key&&u==s.type)return i}return-1}function Y(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||ge.test(t)?r:r+"px"}function I(e,t,r,o,l){var _,i;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)r&&t in r||Y(e.style,t,"");if(r)for(t in r)o&&r[t]==o[t]||Y(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")_=t!=(t=t.replace(_e,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+_]=r,r?o?r.u=o.u:(r.u=V,e.addEventListener(t,_?q:R,_)):e.removeEventListener(t,_?q:R,_);else{if(l=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function ee(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=V++;else if(t.t<r.u)return;return r(f.event?f.event(t):t)}}}function G(e,t,r,o,l,_,i,a,u,s){var p,n,g,c,y,x,v,d,h,S,C,A,M,Q,W,L,O,k=t.type;if(t.constructor!=null)return null;128&r.__u&&(u=!!(32&r.__u),_=[a=t.__e=r.__e]),(p=f.__b)&&p(t);e:if(typeof k=="function")try{if(d=t.props,h="prototype"in k&&k.prototype.render,S=(p=k.contextType)&&o[p.__c],C=p?S?S.props.value:p.__:o,r.__c?v=(n=t.__c=r.__c).__=n.__E:(h?t.__c=n=new k(d,C):(t.__c=n=new D(d,C),n.constructor=k,n.render=ke),S&&S.sub(n),n.props=d,n.state||(n.state={}),n.context=C,n.__n=o,g=n.__d=!0,n.__h=[],n._sb=[]),h&&n.__s==null&&(n.__s=n.state),h&&k.getDerivedStateFromProps!=null&&(n.__s==n.state&&(n.__s=w({},n.__s)),w(n.__s,k.getDerivedStateFromProps(d,n.__s))),c=n.props,y=n.state,n.__v=t,g)h&&k.getDerivedStateFromProps==null&&n.componentWillMount!=null&&n.componentWillMount(),h&&n.componentDidMount!=null&&n.__h.push(n.componentDidMount);else{if(h&&k.getDerivedStateFromProps==null&&d!==c&&n.componentWillReceiveProps!=null&&n.componentWillReceiveProps(d,C),!n.__e&&n.shouldComponentUpdate!=null&&n.shouldComponentUpdate(d,n.__s,C)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(n.props=d,n.state=n.__s,n.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(T){T&&(T.__=t)}),A=0;A<n._sb.length;A++)n.__h.push(n._sb[A]);n._sb=[],n.__h.length&&i.push(n);break e}n.componentWillUpdate!=null&&n.componentWillUpdate(d,n.__s,C),h&&n.componentDidUpdate!=null&&n.__h.push(function(){n.componentDidUpdate(c,y,x)})}if(n.context=C,n.props=d,n.__P=e,n.__e=!1,M=f.__r,Q=0,h){for(n.state=n.__s,n.__d=!1,M&&M(t),p=n.render(n.props,n.state,n.context),W=0;W<n._sb.length;W++)n.__h.push(n._sb[W]);n._sb=[]}else do n.__d=!1,M&&M(t),p=n.render(n.props,n.state,n.context),n.state=n.__s;while(n.__d&&++Q<25);n.state=n.__s,n.getChildContext!=null&&(o=w(w({},o),n.getChildContext())),h&&!g&&n.getSnapshotBeforeUpdate!=null&&(x=n.getSnapshotBeforeUpdate(c,y)),L=p,p!=null&&p.type===H&&p.key==null&&(L=ce(p.props.children)),a=ie(e,B(L)?L:[L],t,r,o,l,_,i,a,u,s),n.base=t.__e,t.__u&=-161,n.__h.length&&i.push(n),v&&(n.__E=n.__=null)}catch(T){if(t.__v=null,u||_!=null)if(T.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;_[_.indexOf(a)]=null,t.__e=a}else{for(O=_.length;O--;)J(_[O]);z(t)}else t.__e=r.__e,t.__k=r.__k,T.then||z(t);f.__e(T,t,r)}else _==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):a=t.__e=xe(r.__e,t,r,o,l,_,i,u,s);return(p=f.diffed)&&p(t),128&t.__u?void 0:a}function z(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(z)}function ae(e,t,r){for(var o=0;o<r.length;o++)K(r[o],r[++o],r[++o]);f.__c&&f.__c(t,e),e.some(function(l){try{e=l.__h,l.__h=[],e.some(function(_){_.call(l)})}catch(_){f.__e(_,l.__v)}})}function ce(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:B(e)?e.map(ce):w({},e)}function xe(e,t,r,o,l,_,i,a,u){var s,p,n,g,c,y,x,v=r.props,d=t.props,h=t.type;if(h=="svg"?l="http://www.w3.org/2000/svg":h=="math"?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),_!=null){for(s=0;s<_.length;s++)if((c=_[s])&&"setAttribute"in c==!!h&&(h?c.localName==h:c.nodeType==3)){e=c,_[s]=null;break}}if(e==null){if(h==null)return document.createTextNode(d);e=document.createElementNS(l,h,d.is&&d),a&&(f.__m&&f.__m(t,_),a=!1),_=null}if(h==null)v===d||a&&e.data==d||(e.data=d);else{if(_=_&&N.call(e.childNodes),v=r.props||E,!a&&_!=null)for(v={},s=0;s<e.attributes.length;s++)v[(c=e.attributes[s]).name]=c.value;for(s in v)if(c=v[s],s!="children"){if(s=="dangerouslySetInnerHTML")n=c;else if(!(s in d)){if(s=="value"&&"defaultValue"in d||s=="checked"&&"defaultChecked"in d)continue;I(e,s,null,c,l)}}for(s in d)c=d[s],s=="children"?g=c:s=="dangerouslySetInnerHTML"?p=c:s=="value"?y=c:s=="checked"?x=c:a&&typeof c!="function"||v[s]===c||I(e,s,c,v[s],l);if(p)a||n&&(p.__html==n.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(n&&(e.innerHTML=""),ie(t.type=="template"?e.content:e,B(g)?g:[g],t,r,o,h=="foreignObject"?"http://www.w3.org/1999/xhtml":l,_,i,_?_[0]:r.__k&&$(r,0),a,u),_!=null)for(s=_.length;s--;)J(_[s]);a||(s="value",h=="progress"&&y==null?e.removeAttribute("value"):y!=null&&(y!==e[s]||h=="progress"&&!y||h=="option"&&y!=v[s])&&I(e,s,y,v[s],l),s="checked",x!=null&&x!=e[s]&&I(e,s,x,v[s],l))}return e}function K(e,t,r){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(l){f.__e(l,r)}}function ue(e,t,r){var o,l;if(f.unmount&&f.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||K(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(_){f.__e(_,t)}o.base=o.__P=null}if(o=e.__k)for(l=0;l<o.length;l++)o[l]&&ue(o[l],t,r||typeof e.type!="function");r||J(e.__e),e.__c=e.__=e.__e=void 0}function ke(e,t,r){return this.constructor(e,r)}function pe(e,t,r){var o,l,_,i;t==document&&(t=document.documentElement),f.__&&f.__(e,t),l=(o=typeof r=="function")?null:r&&r.__k||t.__k,_=[],i=[],G(t,e=(!o&&r||t).__k=ye(H,null,[e]),l||E,E,t.namespaceURI,!o&&r?[r]:l?null:t.firstChild?N.call(t.childNodes):null,_,!o&&r?r:l?l.__e:t.firstChild,o,i),ae(_,e,i)}N=oe.slice,f={__e:function(e,t,r,o){for(var l,_,i;t=t.__;)if((l=t.__c)&&!l.__)try{if((_=l.constructor)&&_.getDerivedStateFromError!=null&&(l.setState(_.getDerivedStateFromError(e)),i=l.__d),l.componentDidCatch!=null&&(l.componentDidCatch(e,o||{}),i=l.__d),i)return l.__E=l}catch(a){e=a}throw e}},te=0,he=function(e){return e!=null&&e.constructor==null},D.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=w({},this.state),typeof e=="function"&&(e=e(w({},r),this.props)),e&&w(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),X(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),X(this))},D.prototype.render=H,P=[],re=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ne=function(e,t){return e.__v.__b-t.__v.__b},F.__r=0,_e=/(PointerCapture)$|Capture$/i,V=0,R=ee(!1),q=ee(!0),me=0;var we=0;function m(e,t,r,o,l,_){t||(t={});var i,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?i=t[a]:u[a]=t[a];var s={type:e,props:u,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--we,__i:-1,__u:0,__source:l,__self:_};if(typeof e=="function"&&(i=e.defaultProps))for(a in i)u[a]===void 0&&(u[a]=i[a]);return f.vnode&&f.vnode(s),s}var fe=({svg:e,attributes:t})=>{if(!e)return null;let r=String(e).replace(/\\u003c/gi,"<").replace(/\\u003e/gi,">").replace(/\\u0026/gi,"&").replace(/</gi,"<").replace(/>/gi,">").replace(/"/gi,'"').replace(/"/gi,'"').replace(/&/gi,"&");if(/<svg[\s>]/i.test(r))return/<svg[^>]*class=/i.test(r)?r=r.replace(/<svg([^>]*?)class="([^"]*)"([^>]*)>/i,'<svg$1class="$2 inline-block w-4 h-4"$3>'):r=r.replace(/<svg\b/i,'<svg class="inline-block w-4 h-4"'),m("span",{class:"inline-block",dangerouslySetInnerHTML:{__html:r}});let l={class:"inline-block w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",...t||{}},_=Object.entries(l).map(([i,a])=>`${i}="${String(a)}"`).join(" ");return m("span",{class:"inline-block",dangerouslySetInnerHTML:{__html:`<svg ${_}>${r}</svg>`}})};function U(e){return e?e.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,"<code>$1</code>"):""}function b(e){return e?e.startsWith("http://")||e.startsWith("https://")?{href:e,target:"_blank",rel:"noopener"}:e.startsWith("#")?{href:e}:{href:e}:{href:"#"}}var de=({content:e,design:t,id:r,icon_svg:o})=>{let l=t?.no_padding?"":"py-32 sm:py-48 lg:py-56";return m("div",{class:"relative isolate px-6 pt-14 lg:px-8",id:r,children:m("div",{class:`mx-auto max-w-2xl ${l}`,children:[e.announcement?.text&&m("div",{class:"hidden sm:mb-8 sm:flex sm:justify-center",children:m("div",{class:"relative rounded-full px-3 py-1 text-sm leading-6 text-gray-600 dark:text-gray-300 ring-1 ring-gray-900/10 dark:ring-gray-300 hover:ring-gray-900/20 dark:hover:ring-gray-400",children:[m("span",{dangerouslySetInnerHTML:{__html:U(e.announcement.text)}}),e.announcement.link?.text&&m("a",{href:b(e.announcement.link.url).href,...b(e.announcement.link.url).target&&{target:b(e.announcement.link.url).target,rel:b(e.announcement.link.url).rel},class:"pl-2 font-semibold text-primary-600 dark:text-primary-300",children:[m("span",{class:"absolute inset-0","aria-hidden":"true"}),e.announcement.link.text," ",m("span",{"aria-hidden":"true",children:"\u2192"})]})]})}),m("div",{class:"text-center",children:[e.title&&m("h1",{class:"text-4xl font-bold tracking-tight text-gray-900 dark:text-gray-100 sm:text-6xl",dangerouslySetInnerHTML:{__html:U(e.title)}}),e.text&&m("p",{class:"mt-6 text-lg leading-8 text-gray-600 dark:text-gray-300 max-w-2xl mx-auto",dangerouslySetInnerHTML:{__html:U(e.text)}}),(e.primary_action?.url||e.secondary_action?.url)&&m("div",{class:"mt-10 flex items-center justify-center gap-x-6",children:[e.primary_action?.url&&m("a",{href:b(e.primary_action.url).href,...b(e.primary_action.url).target&&{target:b(e.primary_action.url).target,rel:b(e.primary_action.url).rel},class:"rounded-md bg-primary-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-primary-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600",children:[m("span",{dangerouslySetInnerHTML:{__html:U(e.primary_action.text)}}),e.primary_action.icon&&m("span",{class:"inline-block pl-2",children:m(fe,{svg:o})})]}),e.secondary_action?.url&&m("a",{href:b(e.secondary_action.url).href,...b(e.secondary_action.url).target&&{target:b(e.secondary_action.url).target,rel:b(e.secondary_action.url).rel},class:"text-sm font-semibold leading-6 text-gray-900 dark:text-gray-100 hover:dark:text-gray-200 hover:text-gray-800",children:[m("span",{dangerouslySetInnerHTML:{__html:U(e.secondary_action.text)}}),m("span",{"aria-hidden":"true",children:" \u2192"})]})]})]})]})})};function Se(){let e=document.querySelectorAll('[data-block-type="hero"], [data-hero-render="immediate"]');e.forEach(t=>{let r=t.dataset.props;if(r)try{let o=JSON.parse(r);pe(m(de,{...o}),t),console.debug(`\u2713 Hero block "${t.id}" rendered with Preact`)}catch(o){console.error(`Failed to render Hero block "${t.id}":`,o)}}),e.length>0&&console.debug(`\u2713 ${e.length} Hero blocks initialized with Preact`)}Se();})();
(()=>{var nt=!1,it=!1,W=[],ot=-1;function Ut(e){Rn(e)}function Rn(e){W.includes(e)||W.push(e),Mn()}function Wt(e){let t=W.indexOf(e);t!==-1&&t>ot&&W.splice(t,1)}function Mn(){!it&&!nt&&(nt=!0,queueMicrotask(Nn))}function Nn(){nt=!1,it=!0;for(let e=0;e<W.length;e++)W[e](),ot=e;W.length=0,ot=-1,it=!1}var T,N,$,at,st=!0;function Gt(e){st=!1,e(),st=!0}function Jt(e){T=e.reactive,$=e.release,N=t=>e.effect(t,{scheduler:r=>{st?Ut(r):r()}}),at=e.raw}function ct(e){N=e}function Yt(e){let t=()=>{};return[n=>{let i=N(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),$(i))},i},()=>{t()}]}function ve(e,t){let r=!0,n,i=N(()=>{let o=e();JSON.stringify(o),r?n=o:queueMicrotask(()=>{t(o,n),n=o}),r=!1});return()=>$(i)}var Xt=[],Zt=[],Qt=[];function er(e){Qt.push(e)}function te(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Zt.push(t))}function Ae(e){Xt.push(e)}function Oe(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function lt(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([r,n])=>{(t===void 0||t.includes(r))&&(n.forEach(i=>i()),delete e._x_attributeCleanups[r])})}function tr(e){for(e._x_effects?.forEach(Wt);e._x_cleanups?.length;)e._x_cleanups.pop()()}var ut=new MutationObserver(mt),ft=!1;function ue(){ut.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),ft=!0}function dt(){kn(),ut.disconnect(),ft=!1}var le=[];function kn(){let e=ut.takeRecords();le.push(()=>e.length>0&&mt(e));let t=le.length;queueMicrotask(()=>{if(le.length===t)for(;le.length>0;)le.shift()()})}function m(e){if(!ft)return e();dt();let t=e();return ue(),t}var pt=!1,Se=[];function rr(){pt=!0}function nr(){pt=!1,mt(Se),Se=[]}function mt(e){if(pt){Se=Se.concat(e);return}let t=[],r=new Set,n=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].removedNodes.forEach(s=>{s.nodeType===1&&s._x_marker&&r.add(s)}),e[o].addedNodes.forEach(s=>{if(s.nodeType===1){if(r.has(s)){r.delete(s);return}s._x_marker||t.push(s)}})),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,c=e[o].oldValue,l=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},u=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&c===null?l():s.hasAttribute(a)?(u(),l()):u()}i.forEach((o,s)=>{lt(s,o)}),n.forEach((o,s)=>{Xt.forEach(a=>a(s,o))});for(let o of r)t.some(s=>s.contains(o))||Zt.forEach(s=>s(o));for(let o of t)o.isConnected&&Qt.forEach(s=>s(o));t=null,r=null,n=null,i=null}function Ce(e){return z(B(e))}function k(e,t,r){return e._x_dataStack=[t,...B(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function B(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?B(e.host):e.parentNode?B(e.parentNode):[]}function z(e){return new Proxy({objects:e},Dn)}var Dn={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(r=>Object.prototype.hasOwnProperty.call(r,t)||Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?Pn:Reflect.get(e.find(n=>Reflect.has(n,t))||{},t,r)},set({objects:e},t,r,n){let i=e.find(s=>Object.prototype.hasOwnProperty.call(s,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?o.set.call(n,r)||!0:Reflect.set(i,t,r)}};function Pn(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function Te(e){let t=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let c=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(e,c,o):t(s)&&s!==n&&!(s instanceof Element)&&r(s,c)})};return r(e)}function Re(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return e(this.initialValue,()=>In(n,i),s=>ht(n,i,s),i,o)}};return t(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a)=>{let c=n.initialize(o,s,a);return r.initialValue=c,i(o,s,a)}}else r.initialValue=n;return r}}function In(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function ht(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),ht(e[t[0]],t.slice(1),r)}}var ir={};function y(e,t){ir[e]=t}function fe(e,t){let r=Ln(t);return Object.entries(ir).forEach(([n,i])=>{Object.defineProperty(e,`$${n}`,{get(){return i(t,r)},enumerable:!1})}),e}function Ln(e){let[t,r]=_t(e),n={interceptor:Re,...t};return te(e,r),n}function or(e,t,r,...n){try{return r(...n)}catch(i){re(i,e,t)}}function re(e,t,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message}
var IndexExpander = (function () {
var e, t, n, i, r, o, a, s, u;
return (
(e = function (e, t, n) {
(o = e), (a = t), (s = n), i(), u();
}),
(t = function () {
$("div.expando-data").css("display", "block"),
$(o + ".closed")
.removeClass("closed")
.addClass("opened")
.find(s)
.text("[-] "),
r();
}),
(n = function () {
$("div.expando-data").css("display", "none"),
$(o + ".opened")
.removeClass("opened")
.addClass("closed")
.find(s)
.text("[+] "),
i();
}),
(u = function () {
$("form#expandAllForm").submit(function (e) {
return !1;
}),
$("input[name=expandAll]").is(":checked") ? t() : n(),
$("input[name=expandAll]").change(function () {
$(this).is(":checked") ? t() : n();
});
}),
(i = function () {
$(o + ".closed").off("click"),
$(o + ".closed").on("click", function (e) {
var t = $(this);
t
.closest(a)
.find("div.expando-data")
.first()
.slideDown("fast", "linear"),
t.removeClass("closed").addClass("opened").find(s).text("[-] "),
r();
});
}),
(r = function () {
$(o + ".opened").off("click"),
$(o + ".opened").on("click", function (e) {
var t = $(this);
t
.closest(a)
.find("div.expando-data")
.first()
.slideUp("fast", "linear"),
t.removeClass("opened").addClass("closed").find(s).text("[+] "),
i();
});
}),
{ init: e }
);
})();
define("tml/index_expander", function () {});
var viewFilters = (function () {
var e, t, n, i, r;
return (
(e = function () {
n(), searchResultsListener(), r();
}),
(n = function () {
$("form#sourcesIndexForm").submit(function (e) {
return !1;
}),
$("input[name=filetypes]").change(function () {
if ("allSourceList" == $(this).attr("id"))
$("input.sourceType").each(function () {
var e = $(this),
t = "tmlSources-" + e.attr("id");
$("ul." + t).css("display", "block");
});
else {
var e = $(this),
t = "tmlSources-" + e.attr("id");
$("ul." + t).css("display", "block"),
$("input.sourceType").each(function () {
if ($(this).attr("id") != e.attr("id")) {
var t = "tmlSources-" + $(this).attr("id");
$("ul." + t).css("display", "none");
}
});
}
});
}),
(i = function (e) {
for (
var t = ["span.author-title", "span.title-author", "span.sigla"],
n = "span." + e,
i = 0;
i < t.length;
i++
)
t[i] != n
? $(t[i]).css("display", "none")
: $(t[i]).css("display", "inline");
}),
(r = function () {
$("form#lmlAuthorDisplayForm").submit(function (e) {
return !1;
}),
$("input[name=lmlDisplay]").is(":checked")
? t($("tr.lml-row"), "")
: t($("tr.lml-row"), "none"),
$("input[name=lmlDisplay]").change(function () {
$(this).is(":checked")
? t($("tr.lml-row"), "")
: t($("tr.lml-row"), "none");
});
}),
(t = function (e, t) {
e.css("display", t);
}),
(searchResultsListener = function () {
$("input[name=recordOrder]").change(function () {
var e = $(this);
i(e.val());
});
}),
{ init: e }
);
})();
require(["!domReady"], function (e) {
viewFilters.init();
}),
define("tml/viewFilters", function () {}),
require([
"domReady!",
"tml/siteSetup",
"tml/index_expander",
"tml/viewFilters"
], function (e) {
IndexExpander.init("span.expando", "li", "span.plus-minus");
}),
define("mainJs", function () {});
${r?'Expression: "'+r+`"
`:""}`,t),setTimeout(()=>{throw e},0)}var Me=!0;function ke(e){let t=Me;Me=!1;let r=e();return Me=t,r}function R(e,t,r={}){let n;return x(e,t)(i=>n=i,r),n}function x(...e){return sr(...e)}var sr=xt;function ar(e){sr=e}function xt(e,t){let r={};fe(r,e);let n=[r,...B(e)],i=typeof t=="function"?$n(n,t):Fn(n,t,e);return or.bind(null,e,t,i)}function $n(e,t){return(r=()=>{},{scope:n={},params:i=[],context:o}={})=>{let s=t.apply(z([n,...e]),i);Ne(r,s)}}var gt={};function jn(e,t){if(gt[e])return gt[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return re(s,t,e),Promise.resolve()}})();return gt[e]=o,o}function Fn(e,t,r){let n=jn(t,r);return(i=()=>{},{scope:o={},params:s=[],context:a}={})=>{n.result=void 0,n.finished=!1;let c=z([o,...e]);if(typeof n=="function"){let l=n.call(a,n,c).catch(u=>re(u,r,t));n.finished?(Ne(i,n.result,c,s,r),n.result=void 0):l.then(u=>{Ne(i,u,c,s,r)}).catch(u=>re(u,r,t)).finally(()=>n.result=void 0)}}}function Ne(e,t,r,n,i){if(Me&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(s=>Ne(e,s,r,n)).catch(s=>re(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var wt="x-";function C(e=""){return wt+e}function cr(e){wt=e}var De={};function d(e,t){return De[e]=t,{before(r){if(!De[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}let n=G.indexOf(r);G.splice(n>=0?n:G.indexOf("DEFAULT"),0,e)}}}function lr(e){return Object.keys(De).includes(e)}function pe(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),s=Et(o);o=o.map(a=>s.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let n={};return t.map(dr((o,s)=>n[o]=s)).filter(mr).map(zn(n,r)).sort(Kn).map(o=>Bn(e,o))}function Et(e){return Array.from(e).map(dr()).filter(t=>!mr(t))}var yt=!1,de=new Map,ur=Symbol();function fr(e){yt=!0;let t=Symbol();ur=t,de.set(t,[]);let r=()=>{for(;de.get(t).length;)de.get(t).shift()();de.delete(t)},n=()=>{yt=!1,r()};e(r),n()}function _t(e){let t=[],r=a=>t.push(a),[n,i]=Yt(e);return t.push(i),[{Alpine:K,effect:n,cleanup:r,evaluateLater:x.bind(x,e),evaluate:R.bind(R,e)},()=>t.forEach(a=>a())]}function Bn(e,t){let r=()=>{},n=De[t.type]||r,[i,o]=_t(e);Oe(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),yt?de.get(ur).push(n):n())};return s.runCleanups=o,s}var Pe=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),Ie=e=>e;function dr(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=pr.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var pr=[];function ne(e){pr.push(e)}function mr({name:e}){return hr().test(e)}var hr=()=>new RegExp(`^${wt}([^:^.]+)\\b`);function zn(e,t){return({name:r,value:n})=>{let i=r.match(hr()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var bt="DEFAULT",G=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",bt,"teleport"];function Kn(e,t){let r=G.indexOf(e.type)===-1?bt:e.type,n=G.indexOf(t.type)===-1?bt:t.type;return G.indexOf(r)-G.indexOf(n)}function J(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}function D(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>D(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)D(n,t,!1),n=n.nextElementSibling}function E(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var _r=!1;function gr(){_r&&E("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),_r=!0,document.body||E("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),J(document,"alpine:init"),J(document,"alpine:initializing"),ue(),er(t=>S(t,D)),te(t=>P(t)),Ae((t,r)=>{pe(t,r).forEach(n=>n())});let e=t=>!Y(t.parentElement,!0);Array.from(document.querySelectorAll(br().join(","))).filter(e).forEach(t=>{S(t)}),J(document,"alpine:initialized"),setTimeout(()=>{Vn()})}var vt=[],xr=[];function yr(){return vt.map(e=>e())}function br(){return vt.concat(xr).map(e=>e())}function Le(e){vt.push(e)}function $e(e){xr.push(e)}function Y(e,t=!1){return j(e,r=>{if((t?br():yr()).some(i=>r.matches(i)))return!0})}function j(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return j(e.parentElement,t)}}function wr(e){return yr().some(t=>e.matches(t))}var Er=[];function vr(e){Er.push(e)}var Hn=1;function S(e,t=D,r=()=>{}){j(e,n=>n._x_ignore)||fr(()=>{t(e,(n,i)=>{n._x_marker||(r(n,i),Er.forEach(o=>o(n,i)),pe(n,n.attributes).forEach(o=>o()),n._x_ignore||(n._x_marker=Hn++),n._x_ignore&&i())})})}function P(e,t=D){t(e,r=>{tr(r),lt(r),delete r._x_marker})}function Vn(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,r,n])=>{lr(r)||n.some(i=>{if(document.querySelector(i))return E(`found "${i}", but missing ${t} plugin`),!0})})}var St=[],At=!1;function ie(e=()=>{}){return queueMicrotask(()=>{At||setTimeout(()=>{je()})}),new Promise(t=>{St.push(()=>{e(),t()})})}function je(){for(At=!1;St.length;)St.shift()()}function Sr(){At=!0}function me(e,t){return Array.isArray(t)?Ar(e,t.join(" ")):typeof t=="object"&&t!==null?qn(e,t):typeof t=="function"?me(e,t()):Ar(e,t)}function Ar(e,t){let r=o=>o.split(" ").filter(Boolean),n=o=>o.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),i=o=>(e.classList.add(...o),()=>{e.classList.remove(...o)});return t=t===!0?t="":t||"",i(n(t))}function qn(e,t){let r=a=>a.split(" ").filter(Boolean),n=Object.entries(t).flatMap(([a,c])=>c?r(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,c])=>c?!1:r(a)).filter(Boolean),o=[],s=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),n.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),o.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),o.forEach(a=>e.classList.remove(a))}}function X(e,t){return typeof t=="object"&&t!==null?Un(e,t):Wn(e,t)}function Un(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],n.startsWith("--")||(n=Gn(n)),e.style.setProperty(n,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{X(e,r)}}function Wn(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}function Gn(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function he(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}d("transition",(e,{value:t,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n!==!1&&(!n||typeof n=="boolean"?Yn(e,r,t):Jn(e,n,t))});function Jn(e,t,r){Or(e,me,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function Yn(e,t,r){Or(e,X);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((g,b)=>b<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((g,b)=>b>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),c=s||t.includes("scale"),l=a?0:1,u=c?_e(t,"scale",95)/100:1,p=_e(t,"delay",0)/1e3,h=_e(t,"origin","center"),w="opacity, transform",F=_e(t,"duration",150)/1e3,Ee=_e(t,"duration",75)/1e3,f="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:h,transitionDelay:`${p}s`,transitionProperty:w,transitionDuration:`${F}s`,transitionTimingFunction:f},e._x_transition.enter.start={opacity:l,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:h,transitionDelay:`${p}s`,transitionProperty:w,transitionDuration:`${Ee}s`,transitionTimingFunction:f},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${u})`})}function Or(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){Fe(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){Fe(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(r);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(r):o():e._x_transition?e._x_transition.in(r):o();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(n)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=Cr(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):i(()=>{let a=c=>{let l=Promise.all([c._x_hidePromise,...(c._x_hideChildren||[]).map(a)]).then(([u])=>u?.());return delete c._x_hidePromise,delete c._x_hideChildren,l};a(e).catch(c=>{if(!c.isFromCancelledTransition)throw c})})})};function Cr(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Cr(t)}function Fe(e,t,{during:r,start:n,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){o(),s();return}let a,c,l;Xn(e,{start(){a=t(e,n)},during(){c=t(e,r)},before:o,end(){a(),l=t(e,i)},after:s,cleanup(){c(),l()}})}function Xn(e,t){let r,n,i,o=he(()=>{m(()=>{r=!0,n||t.before(),i||(t.end(),je()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:he(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},m(()=>{t.start(),t.during()}),Sr(),requestAnimationFrame(()=>{if(r)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),m(()=>{t.before()}),n=!0,requestAnimationFrame(()=>{r||(m(()=>{t.end()}),je(),setTimeout(e._x_transitioning.finish,s+a),i=!0)})})}function _e(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"||t==="delay"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}var I=!1;function A(e,t=()=>{}){return(...r)=>I?t(...r):e(...r)}function Tr(e){return(...t)=>I&&e(...t)}var Rr=[];function H(e){Rr.push(e)}function Mr(e,t){Rr.forEach(r=>r(e,t)),I=!0,kr(()=>{S(t,(r,n)=>{n(r,()=>{})})}),I=!1}var Be=!1;function Nr(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),I=!0,Be=!0,kr(()=>{Zn(t)}),I=!1,Be=!1}function Zn(e){let t=!1;S(e,(n,i)=>{D(n,(o,s)=>{if(t&&wr(o))return s();t=!0,i(o,s)})})}function kr(e){let t=N;ct((r,n)=>{let i=t(r);return $(i),()=>{}}),e(),ct(t)}function ge(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=T({})),e._x_bindings[t]=r,t=n.includes("camel")?si(t):t,t){case"value":Qn(e,r);break;case"style":ti(e,r);break;case"class":ei(e,r);break;case"selected":case"checked":ri(e,t,r);break;default:Pr(e,t,r);break}}function Qn(e,t){if(Ot(e))e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=xe(e.value)===t:e.checked=Dr(e.value,t));else if(ze(e))Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>Dr(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")oi(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function ei(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=me(e,t)}function ti(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=X(e,t)}function ri(e,t,r){Pr(e,t,r),ii(e,t,r)}function Pr(e,t,r){[null,void 0,!1].includes(r)&&ci(t)?e.removeAttribute(t):(Ir(t)&&(r=t),ni(e,t,r))}function ni(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function ii(e,t,r){e[t]!==r&&(e[t]=r)}function oi(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function si(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function Dr(e,t){return e==t}function xe(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?Boolean(e):null}var ai=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function Ir(e){return ai.has(e)}function ci(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Lr(e,t,r){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:jr(e,t,r)}function $r(e,t,r,n=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let i=e._x_inlineBindings[t];return i.extract=n,ke(()=>R(e,i.expression))}return jr(e,t,r)}function jr(e,t,r){let n=e.getAttribute(t);return n===null?typeof r=="function"?r():r:n===""?!0:Ir(t)?!![t,"true"].includes(n):n}function ze(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function Ot(e){return e.type==="radio"||e.localName==="ui-radio"}function Ke(e,t){let r;return function(){let n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function He(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function Ve({get:e,set:t},{get:r,set:n}){let i=!0,o,s,a=N(()=>{let c=e(),l=r();if(i)n(Ct(c)),i=!1;else{let u=JSON.stringify(c),p=JSON.stringify(l);u!==o?n(Ct(c)):u!==p&&t(Ct(l))}o=JSON.stringify(e()),s=JSON.stringify(r())});return()=>{$(a)}}function Ct(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function Fr(e){(Array.isArray(e)?e:[e]).forEach(r=>r(K))}var Z={},Br=!1;function zr(e,t){if(Br||(Z=T(Z),Br=!0),t===void 0)return Z[e];Z[e]=t,Te(Z[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&Z[e].init()}function Kr(){return Z}var Hr={};function Vr(e,t){let r=typeof t!="function"?()=>t:t;return e instanceof Element?Tt(e,r()):(Hr[e]=r,()=>{})}function qr(e){return Object.entries(Hr).forEach(([t,r])=>{Object.defineProperty(e,t,{get(){return(...n)=>r(...n)}})}),e}function Tt(e,t,r){let n=[];for(;n.length;)n.pop()();let i=Object.entries(t).map(([s,a])=>({name:s,value:a})),o=Et(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),pe(e,i,r).map(s=>{n.push(s.runCleanups),s()}),()=>{for(;n.length;)n.pop()()}}var Ur={};function Wr(e,t){Ur[e]=t}function Gr(e,t){return Object.entries(Ur).forEach(([r,n])=>{Object.defineProperty(e,r,{get(){return(...i)=>n.bind(t)(...i)},enumerable:!1})}),e}var li={get reactive(){return T},get release(){return $},get effect(){return N},get raw(){return at},version:"3.15.0",flushAndStopDeferringMutations:nr,dontAutoEvaluateFunctions:ke,disableEffectScheduling:Gt,startObservingMutations:ue,stopObservingMutations:dt,setReactivityEngine:Jt,onAttributeRemoved:Oe,onAttributesAdded:Ae,closestDataStack:B,skipDuringClone:A,onlyDuringClone:Tr,addRootSelector:Le,addInitSelector:$e,interceptClone:H,addScopeToNode:k,deferMutations:rr,mapAttributes:ne,evaluateLater:x,interceptInit:vr,setEvaluator:ar,mergeProxies:z,extractProp:$r,findClosest:j,onElRemoved:te,closestRoot:Y,destroyTree:P,interceptor:Re,transition:Fe,setStyles:X,mutateDom:m,directive:d,entangle:Ve,throttle:He,debounce:Ke,evaluate:R,initTree:S,nextTick:ie,prefixed:C,prefix:cr,plugin:Fr,magic:y,store:zr,start:gr,clone:Nr,cloneNode:Mr,bound:Lr,$data:Ce,watch:ve,walk:D,data:Wr,bind:Vr},K=li;function Rt(e,t){let r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var ui="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var Ls=Rt(ui+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var Jr=Object.freeze({}),$s=Object.freeze([]);var fi=Object.prototype.hasOwnProperty,ye=(e,t)=>fi.call(e,t),V=Array.isArray,oe=e=>Yr(e)==="[object Map]";var di=e=>typeof e=="string",qe=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object";var pi=Object.prototype.toString,Yr=e=>pi.call(e),Mt=e=>Yr(e).slice(8,-1);var Ue=e=>di(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e;var We=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},mi=/-(\w)/g,js=We(e=>e.replace(mi,(t,r)=>r?r.toUpperCase():"")),hi=/\B([A-Z])/g,Fs=We(e=>e.replace(hi,"-$1").toLowerCase()),Nt=We(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bs=We(e=>e?`on${Nt(e)}`:""),kt=(e,t)=>e!==t&&(e===e||t===t);var Dt=new WeakMap,we=[],L,Q=Symbol("iterate"),Pt=Symbol("Map key iterate");function _i(e){return e&&e._isEffect===!0}function rn(e,t=Jr){_i(e)&&(e=e.raw);let r=xi(e,t);return t.lazy||r(),r}function nn(e){e.active&&(on(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var gi=0;function xi(e,t){let r=function(){if(!r.active)return e();if(!we.includes(r)){on(r);try{return bi(),we.push(r),L=r,e()}finally{we.pop(),sn(),L=we[we.length-1]}}};return r.id=gi++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function on(e){let{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var se=!0,Lt=[];function yi(){Lt.push(se),se=!1}function bi(){Lt.push(se),se=!0}function sn(){let e=Lt.pop();se=e===void 0?!0:e}function M(e,t,r){if(!se||L===void 0)return;let n=Dt.get(e);n||Dt.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(L)||(i.add(L),L.deps.push(i),L.options.onTrack&&L.options.onTrack({effect:L,target:e,type:t,key:r}))}function U(e,t,r,n,i,o){let s=Dt.get(e);if(!s)return;let a=new Set,c=u=>{u&&u.forEach(p=>{(p!==L||p.allowRecurse)&&a.add(p)})};if(t==="clear")s.forEach(c);else if(r==="length"&&V(e))s.forEach((u,p)=>{(p==="length"||p>=n)&&c(u)});else switch(r!==void 0&&c(s.get(r)),t){case"add":V(e)?Ue(r)&&c(s.get("length")):(c(s.get(Q)),oe(e)&&c(s.get(Pt)));break;case"delete":V(e)||(c(s.get(Q)),oe(e)&&c(s.get(Pt)));break;case"set":oe(e)&&c(s.get(Q));break}let l=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:e,key:r,type:t,newValue:n,oldValue:i,oldTarget:o}),u.options.scheduler?u.options.scheduler(u):u()};a.forEach(l)}var wi=Rt("__proto__,__v_isRef,__isVue"),an=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(qe)),Ei=cn();var vi=cn(!0);var Xr=Si();function Si(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){let n=_(this);for(let o=0,s=this.length;o<s;o++)M(n,"get",o+"");let i=n[t](...r);return i===-1||i===!1?n[t](...r.map(_)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){yi();let n=_(this)[t].apply(this,r);return sn(),n}}),e}function cn(e=!1,t=!1){return function(n,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_raw"&&o===(e?t?Bi:dn:t?Fi:fn).get(n))return n;let s=V(n);if(!e&&s&&ye(Xr,i))return Reflect.get(Xr,i,o);let a=Reflect.get(n,i,o);return(qe(i)?an.has(i):wi(i))||(e||M(n,"get",i),t)?a:It(a)?!s||!Ue(i)?a.value:a:be(a)?e?pn(a):et(a):a}}var Ai=Oi();function Oi(e=!1){return function(r,n,i,o){let s=r[n];if(!e&&(i=_(i),s=_(s),!V(r)&&It(s)&&!It(i)))return s.value=i,!0;let a=V(r)&&Ue(n)?Number(n)<r.length:ye(r,n),c=Reflect.set(r,n,i,o);return r===_(o)&&(a?kt(i,s)&&U(r,"set",n,i,s):U(r,"add",n,i)),c}}function Ci(e,t){let r=ye(e,t),n=e[t],i=Reflect.deleteProperty(e,t);return i&&r&&U(e,"delete",t,void 0,n),i}function Ti(e,t){let r=Reflect.has(e,t);return(!qe(t)||!an.has(t))&&M(e,"has",t),r}function Ri(e){return M(e,"iterate",V(e)?"length":Q),Reflect.ownKeys(e)}var Mi={get:Ei,set:Ai,deleteProperty:Ci,has:Ti,ownKeys:Ri},Ni={get:vi,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}};var $t=e=>be(e)?et(e):e,jt=e=>be(e)?pn(e):e,Ft=e=>e,Qe=e=>Reflect.getPrototypeOf(e);function Ge(e,t,r=!1,n=!1){e=e.__v_raw;let i=_(e),o=_(t);t!==o&&!r&&M(i,"get",t),!r&&M(i,"get",o);let{has:s}=Qe(i),a=n?Ft:r?jt:$t;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function Je(e,t=!1){let r=this.__v_raw,n=_(r),i=_(e);return e!==i&&!t&&M(n,"has",e),!t&&M(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function Ye(e,t=!1){return e=e.__v_raw,!t&&M(_(e),"iterate",Q),Reflect.get(e,"size",e)}function Zr(e){e=_(e);let t=_(this);return Qe(t).has.call(t,e)||(t.add(e),U(t,"add",e,e)),this}function Qr(e,t){t=_(t);let r=_(this),{has:n,get:i}=Qe(r),o=n.call(r,e);o?un(r,n,e):(e=_(e),o=n.call(r,e));let s=i.call(r,e);return r.set(e,t),o?kt(t,s)&&U(r,"set",e,t,s):U(r,"add",e,t),this}function en(e){let t=_(this),{has:r,get:n}=Qe(t),i=r.call(t,e);i?un(t,r,e):(e=_(e),i=r.call(t,e));let o=n?n.call(t,e):void 0,s=t.delete(e);return i&&U(t,"delete",e,void 0,o),s}function tn(){let e=_(this),t=e.size!==0,r=oe(e)?new Map(e):new Set(e),n=e.clear();return t&&U(e,"clear",void 0,void 0,r),n}function Xe(e,t){return function(n,i){let o=this,s=o.__v_raw,a=_(s),c=t?Ft:e?jt:$t;return!e&&M(a,"iterate",Q),s.forEach((l,u)=>n.call(i,c(l),c(u),o))}}function Ze(e,t,r){return function(...n){let i=this.__v_raw,o=_(i),s=oe(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=i[e](...n),u=r?Ft:t?jt:$t;return!t&&M(o,"iterate",c?Pt:Q),{next(){let{value:p,done:h}=l.next();return h?{value:p,done:h}:{value:a?[u(p[0]),u(p[1])]:u(p),done:h}},[Symbol.iterator](){return this}}}}function q(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";console.warn(`${Nt(e)} operation ${r}failed: target is readonly.`,_(this))}return e==="delete"?!1:this}}function ki(){let e={get(o){return Ge(this,o)},get size(){return Ye(this)},has:Je,add:Zr,set:Qr,delete:en,clear:tn,forEach:Xe(!1,!1)},t={get(o){return Ge(this,o,!1,!0)},get size(){return Ye(this)},has:Je,add:Zr,set:Qr,delete:en,clear:tn,forEach:Xe(!1,!0)},r={get(o){return Ge(this,o,!0)},get size(){return Ye(this,!0)},has(o){return Je.call(this,o,!0)},add:q("add"),set:q("set"),delete:q("delete"),clear:q("clear"),forEach:Xe(!0,!1)},n={get(o){return Ge(this,o,!0,!0)},get size(){return Ye(this,!0)},has(o){return Je.call(this,o,!0)},add:q("add"),set:q("set"),delete:q("delete"),clear:q("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Ze(o,!1,!1),r[o]=Ze(o,!0,!1),t[o]=Ze(o,!1,!0),n[o]=Ze(o,!0,!0)}),[e,r,t,n]}var[Di,Pi,Ii,Li]=ki();function ln(e,t){let r=t?e?Li:Ii:e?Pi:Di;return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ye(r,i)&&i in n?r:n,i,o)}var $i={get:ln(!1,!1)};var ji={get:ln(!0,!1)};function un(e,t,r){let n=_(r);if(n!==r&&t.call(e,n)){let i=Mt(e);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var fn=new WeakMap,Fi=new WeakMap,dn=new WeakMap,Bi=new WeakMap;function zi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ki(e){return e.__v_skip||!Object.isExtensible(e)?0:zi(Mt(e))}function et(e){return e&&e.__v_isReadonly?e:mn(e,!1,Mi,$i,fn)}function pn(e){return mn(e,!0,Ni,ji,dn)}function mn(e,t,r,n,i){if(!be(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let o=i.get(e);if(o)return o;let s=Ki(e);if(s===0)return e;let a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function _(e){return e&&_(e.__v_raw)||e}function It(e){return Boolean(e&&e.__v_isRef===!0)}y("nextTick",()=>ie);y("dispatch",e=>J.bind(J,e));y("watch",(e,{evaluateLater:t,cleanup:r})=>(n,i)=>{let o=t(n),a=ve(()=>{let c;return o(l=>c=l),c},i);r(a)});y("store",Kr);y("data",e=>Ce(e));y("root",e=>Y(e));y("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=z(Hi(e))),e._x_refs_proxy));function Hi(e){let t=[];return j(e,r=>{r._x_refs&&t.push(r._x_refs)}),t}var Bt={};function zt(e){return Bt[e]||(Bt[e]=0),++Bt[e]}function hn(e,t){return j(e,r=>{if(r._x_ids&&r._x_ids[t])return!0})}function _n(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=zt(t))}y("id",(e,{cleanup:t})=>(r,n=null)=>{let i=`${r}${n?`-${n}`:""}`;return Vi(e,i,t,()=>{let o=hn(e,r),s=o?o._x_ids[r]:zt(r);return n?`${r}-${s}-${n}`:`${r}-${s}`})});H((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Vi(e,t,r,n){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let i=n();return e._x_id[t]=i,r(()=>{delete e._x_id[t]}),i}y("el",e=>e);gn("Focus","focus","focus");gn("Persist","persist","persist");function gn(e,t,r){y(t,n=>E(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}d("modelable",(e,{expression:t},{effect:r,evaluateLater:n,cleanup:i})=>{let o=n(t),s=()=>{let u;return o(p=>u=p),u},a=n(`${t} = __placeholder`),c=u=>a(()=>{},{scope:{__placeholder:u}}),l=s();c(l),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let u=e._x_model.get,p=e._x_model.set,h=Ve({get(){return u()},set(w){p(w)}},{get(){return s()},set(w){c(w)}});i(h)})});d("teleport",(e,{modifiers:t,expression:r},{cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&E("x-teleport can only be used on a <template> tag",e);let i=xn(r),o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(a=>{o.addEventListener(a,c=>{c.stopPropagation(),e.dispatchEvent(new c.constructor(c.type,c))})}),k(o,{},e);let s=(a,c,l)=>{l.includes("prepend")?c.parentNode.insertBefore(a,c):l.includes("append")?c.parentNode.insertBefore(a,c.nextSibling):c.appendChild(a)};m(()=>{s(o,i,t),A(()=>{S(o)})()}),e._x_teleportPutBack=()=>{let a=xn(r);m(()=>{s(e._x_teleport,a,t)})},n(()=>m(()=>{o.remove(),P(o)}))});var qi=document.createElement("div");function xn(e){let t=A(()=>document.querySelector(e),()=>qi)();return t||E(`Cannot find x-teleport element for selector: "${e}"`),t}var yn=()=>{};yn.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};d("ignore",yn);d("effect",A((e,{expression:t},{effect:r})=>{r(x(e,t))}));function ae(e,t,r,n){let i=e,o=c=>n(c),s={},a=(c,l)=>u=>l(c,u);if(r.includes("dot")&&(t=Ui(t)),r.includes("camel")&&(t=Wi(t)),r.includes("passive")&&(s.passive=!0),r.includes("capture")&&(s.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("debounce")){let c=r[r.indexOf("debounce")+1]||"invalid-wait",l=tt(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=Ke(o,l)}if(r.includes("throttle")){let c=r[r.indexOf("throttle")+1]||"invalid-wait",l=tt(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=He(o,l)}return r.includes("prevent")&&(o=a(o,(c,l)=>{l.preventDefault(),c(l)})),r.includes("stop")&&(o=a(o,(c,l)=>{l.stopPropagation(),c(l)})),r.includes("once")&&(o=a(o,(c,l)=>{c(l),i.removeEventListener(t,o,s)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(c,l)=>{e.contains(l.target)||l.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&c(l))})),r.includes("self")&&(o=a(o,(c,l)=>{l.target===e&&c(l)})),(Ji(t)||wn(t))&&(o=a(o,(c,l)=>{Yi(l,r)||c(l)})),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function Ui(e){return e.replace(/-/g,".")}function Wi(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function tt(e){return!Array.isArray(e)&&!isNaN(e)}function Gi(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Ji(e){return["keydown","keyup"].includes(e)}function wn(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function Yi(e,t){let r=t.filter(o=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,tt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let o=r.indexOf("throttle");r.splice(o,tt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&bn(e.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&(wn(e.type)||bn(e.key).includes(r[0])))}function bn(e){if(!e)return[];e=Gi(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}d("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s=x(o,r),a;typeof r=="string"?a=x(o,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?a=x(o,`${r()} = __placeholder`):a=()=>{};let c=()=>{let h;return s(w=>h=w),En(h)?h.get():h},l=h=>{let w;s(F=>w=F),En(w)?w.set(h):a(()=>{},{scope:{__placeholder:h}})};typeof r=="string"&&e.type==="radio"&&m(()=>{e.hasAttribute("name")||e.setAttribute("name",r)});let u=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input",p=I?()=>{}:ae(e,u,t,h=>{l(Kt(e,t,h,c()))});if(t.includes("fill")&&([void 0,null,""].includes(c())||ze(e)&&Array.isArray(c())||e.tagName.toLowerCase()==="select"&&e.multiple)&&l(Kt(e,t,{target:e},c())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=p,i(()=>e._x_removeModelListeners.default()),e.form){let h=ae(e.form,"reset",[],w=>{ie(()=>e._x_model&&e._x_model.set(Kt(e,t,{target:e},c())))});i(()=>h())}e._x_model={get(){return c()},set(h){l(h)}},e._x_forceModelUpdate=h=>{h===void 0&&typeof r=="string"&&r.match(/\./)&&(h=""),window.fromModel=!0,m(()=>ge(e,"value",h)),delete window.fromModel},n(()=>{let h=c();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(h)})});function Kt(e,t,r,n){return m(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(ze(e))if(Array.isArray(n)){let i=null;return t.includes("number")?i=Ht(r.target.value):t.includes("boolean")?i=xe(r.target.value):i=r.target.value,r.target.checked?n.includes(i)?n:n.concat([i]):n.filter(o=>!Xi(o,i))}else return r.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return Ht(o)}):t.includes("boolean")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return xe(o)}):Array.from(r.target.selectedOptions).map(i=>i.value||i.text);{let i;return Ot(e)?r.target.checked?i=r.target.value:i=n:i=r.target.value,t.includes("number")?Ht(i):t.includes("boolean")?xe(i):t.includes("trim")?i.trim():i}}})}function Ht(e){let t=e?parseFloat(e):null;return Zi(t)?t:e}function Xi(e,t){return e==t}function Zi(e){return!Array.isArray(e)&&!isNaN(e)}function En(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}d("cloak",e=>queueMicrotask(()=>m(()=>e.removeAttribute(C("cloak")))));$e(()=>`[${C("init")}]`);d("init",A((e,{expression:t},{evaluate:r})=>typeof t=="string"?!!t.trim()&&r(t,{},!1):r(t,{},!1)));d("text",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{m(()=>{e.textContent=o})})})});d("html",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{m(()=>{e.innerHTML=o,e._x_ignoreSelf=!0,S(e),delete e._x_ignoreSelf})})})});ne(Pe(":",Ie(C("bind:"))));var vn=(e,{value:t,modifiers:r,expression:n,original:i},{effect:o,cleanup:s})=>{if(!t){let c={};qr(c),x(e,n)(u=>{Tt(e,u,i)},{scope:c});return}if(t==="key")return Qi(e,n);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let a=x(e,n);o(()=>a(c=>{c===void 0&&typeof n=="string"&&n.match(/\./)&&(c=""),m(()=>ge(e,t,c,r))})),s(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};vn.inline=(e,{value:t,modifiers:r,expression:n})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:n,extract:!1})};d("bind",vn);function Qi(e,t){e._x_keyExpression=t}Le(()=>`[${C("data")}]`);d("data",(e,{expression:t},{cleanup:r})=>{if(eo(e))return;t=t===""?"{}":t;let n={};fe(n,e);let i={};Gr(i,n);let o=R(e,t,{scope:i});(o===void 0||o===!0)&&(o={}),fe(o,e);let s=T(o);Te(s);let a=k(e,s);s.init&&R(e,s.init),r(()=>{s.destroy&&R(e,s.destroy),a()})});H((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function eo(e){return I?Be?!0:e.hasAttribute("data-has-alpine-state"):!1}d("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=x(e,r);e._x_doHide||(e._x_doHide=()=>{m(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{m(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},a=()=>setTimeout(s),c=he(p=>p?s():o(),p=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,p,s,o):p?a():o()}),l,u=!0;n(()=>i(p=>{!u&&p===l||(t.includes("immediate")&&(p?a():o()),c(p),l=p,u=!1)}))});d("for",(e,{expression:t},{effect:r,cleanup:n})=>{let i=ro(t),o=x(e,i.items),s=x(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},r(()=>to(e,i,o,s)),n(()=>{Object.values(e._x_lookup).forEach(a=>m(()=>{P(a),a.remove()})),delete e._x_prevKeys,delete e._x_lookup})});function to(e,t,r,n){let i=s=>typeof s=="object"&&!Array.isArray(s),o=e;r(s=>{no(s)&&s>=0&&(s=Array.from(Array(s).keys(),f=>f+1)),s===void 0&&(s=[]);let a=e._x_lookup,c=e._x_prevKeys,l=[],u=[];if(i(s))s=Object.entries(s).map(([f,g])=>{let b=Sn(t,g,f,s);n(v=>{u.includes(v)&&E("Duplicate key on x-for",e),u.push(v)},{scope:{index:f,...b}}),l.push(b)});else for(let f=0;f<s.length;f++){let g=Sn(t,s[f],f,s);n(b=>{u.includes(b)&&E("Duplicate key on x-for",e),u.push(b)},{scope:{index:f,...g}}),l.push(g)}let p=[],h=[],w=[],F=[];for(let f=0;f<c.length;f++){let g=c[f];u.indexOf(g)===-1&&w.push(g)}c=c.filter(f=>!w.includes(f));let Ee="template";for(let f=0;f<u.length;f++){let g=u[f],b=c.indexOf(g);if(b===-1)c.splice(f,0,g),p.push([Ee,f]);else if(b!==f){let v=c.splice(f,1)[0],O=c.splice(b-1,1)[0];c.splice(f,0,O),c.splice(b,0,v),h.push([v,O])}else F.push(g);Ee=g}for(let f=0;f<w.length;f++){let g=w[f];g in a&&(m(()=>{P(a[g]),a[g].remove()}),delete a[g])}for(let f=0;f<h.length;f++){let[g,b]=h[f],v=a[g],O=a[b],ee=document.createElement("div");m(()=>{O||E('x-for ":key" is undefined or invalid',o,b,a),O.after(ee),v.after(O),O._x_currentIfEl&&O.after(O._x_currentIfEl),ee.before(v),v._x_currentIfEl&&v.after(v._x_currentIfEl),ee.remove()}),O._x_refreshXForScope(l[u.indexOf(b)])}for(let f=0;f<p.length;f++){let[g,b]=p[f],v=g==="template"?o:a[g];v._x_currentIfEl&&(v=v._x_currentIfEl);let O=l[b],ee=u[b],ce=document.importNode(o.content,!0).firstElementChild,qt=T(O);k(ce,qt,o),ce._x_refreshXForScope=On=>{Object.entries(On).forEach(([Cn,Tn])=>{qt[Cn]=Tn})},m(()=>{v.after(ce),A(()=>S(ce))()}),typeof ee=="object"&&E("x-for key cannot be an object, it must be a string or an integer",o),a[ee]=ce}for(let f=0;f<F.length;f++)a[F[f]]._x_refreshXForScope(l[u.indexOf(F[f])]);o._x_prevKeys=u})}function ro(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function Sn(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=t[s]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function no(e){return!Array.isArray(e)&&!isNaN(e)}function An(){}An.inline=(e,{expression:t},{cleanup:r})=>{let n=Y(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t])};d("ref",An);d("if",(e,{expression:t},{effect:r,cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&E("x-if can only be used on a <template> tag",e);let i=x(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return k(a,{},e),m(()=>{e.after(a),A(()=>S(a))()}),e._x_currentIfEl=a,e._x_undoIf=()=>{m(()=>{P(a),a.remove()}),delete e._x_currentIfEl},a},s=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};r(()=>i(a=>{a?o():s()})),n(()=>e._x_undoIf&&e._x_undoIf())});d("id",(e,{expression:t},{evaluate:r})=>{r(t).forEach(i=>_n(e,i))});H((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});ne(Pe("@",Ie(C("on:"))));d("on",A((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?x(e,n):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=ae(e,t,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));rt("Collapse","collapse","collapse");rt("Intersect","intersect","intersect");rt("Focus","trap","focus");rt("Mask","mask","mask");function rt(e,t,r){d(t,n=>E(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}K.setEvaluator(xt);K.setReactivityEngine({reactive:et,effect:rn,release:nn,raw:_});var Vt=K;window.Alpine=Vt;queueMicrotask(()=>{Vt.start()});})();
document.addEventListener("DOMContentLoaded",()=>{console.log("✓ Hugo Blox Search initialized (Pagefind Headless API)");const e=document.querySelectorAll("[data-search-toggle]");e.forEach(e=>{e.addEventListener("click",()=>{const t=e.dataset.searchQuery;window.Alpine&&Alpine.store("search")&&(Alpine.store("search").open=!0,t&&setTimeout(()=>{const e=document.querySelector('[x-ref="searchInput"]');e&&(e.value=t,e.dispatchEvent(new Event("input")))},100))})})})