diff --git a/.gitignore b/.gitignore index 40b878d..b211445 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -node_modules/ \ No newline at end of file +node_modules/ +dist*/ \ No newline at end of file diff --git a/changelog.md b/changelog.md index 0bdb1fd..2b4fd5f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-12-24 - 1.0.2 - fix(gitignore) +ignore distribution/build output directories (dist*) + +- Added 'dist*/' to .gitignore to prevent committing build artifacts and local distribution folders + ## 2025-12-24 - 1.0.1 - fix(release) no changes detected diff --git a/dist_watch/bundle.js b/dist_watch/bundle.js deleted file mode 100644 index 2c85650..0000000 --- a/dist_watch/bundle.js +++ /dev/null @@ -1,243750 +0,0 @@ -var __create = Object.create; -var __freeze = Object.freeze; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : /* @__PURE__ */ Symbol.for("Symbol." + name); -var __typeError = (msg) => { - throw TypeError(msg); -}; -var __defNormalProp = (obj, key2, value2) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key2] = value2; -var __name = (target, value2) => __defProp(target, "name", { value: value2, configurable: true }); -var __require = /* @__PURE__ */ ((x4) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x4, { - get: (a6, b6) => (typeof require !== "undefined" ? require : a6)[b6] -}) : x4)(function(x4) { - if (typeof require !== "undefined") return require.apply(this, arguments); - throw Error('Dynamic require of "' + x4 + '" is not supported'); -}); -var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; -}; -var __commonJS = (cb, mod) => function __require2() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __export = (target, all3) => { - for (var name in all3) - __defProp(target, name, { get: all3[name], enumerable: true }); -}; -var __copyProps = (to2, from3, except, desc) => { - if (from3 && typeof from3 === "object" || typeof from3 === "function") { - for (let key2 of __getOwnPropNames(from3)) - if (!__hasOwnProp.call(to2, key2) && key2 !== except) - __defProp(to2, key2, { get: () => from3[key2], enumerable: !(desc = __getOwnPropDesc(from3, key2)) || desc.enumerable }); - } - return to2; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __decoratorStart = (base2) => [, , , __create(base2?.[__knownSymbol("metadata")] ?? null)]; -var __decoratorStrings = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"]; -var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn; -var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) }); -var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]); -var __runInitializers = (array, flags, self2, value2) => { - for (var i12 = 0, fns = array[flags >> 1], n14 = fns && fns.length; i12 < n14; i12++) flags & 1 ? fns[i12].call(self2) : value2 = fns[i12].call(self2, value2); - return value2; -}; -var __decorateElement = (array, flags, name, decorators, target, extra) => { - var fn, it2, done, ctx, access, k5 = flags & 7, s10 = !!(flags & 8), p8 = !!(flags & 16); - var j4 = k5 > 3 ? array.length + 1 : k5 ? s10 ? 1 : 2 : 0, key2 = __decoratorStrings[k5 + 5]; - var initializers = k5 > 3 && (array[j4 - 1] = []), extraInitializers = array[j4] || (array[j4] = []); - var desc = k5 && (!p8 && !s10 && (target = target.prototype), k5 < 5 && (k5 > 3 || !p8) && __getOwnPropDesc(k5 < 4 ? target : { get [name]() { - return __privateGet(this, extra); - }, set [name](x4) { - return __privateSet(this, extra, x4); - } }, name)); - k5 ? p8 && k5 < 4 && __name(extra, (k5 > 2 ? "set " : k5 > 1 ? "get " : "") + name) : __name(target, name); - for (var i12 = decorators.length - 1; i12 >= 0; i12--) { - ctx = __decoratorContext(k5, name, done = {}, array[3], extraInitializers); - if (k5) { - ctx.static = s10, ctx.private = p8, access = ctx.access = { has: p8 ? (x4) => __privateIn(target, x4) : (x4) => name in x4 }; - if (k5 ^ 3) access.get = p8 ? (x4) => (k5 ^ 1 ? __privateGet : __privateMethod)(x4, target, k5 ^ 4 ? extra : desc.get) : (x4) => x4[name]; - if (k5 > 2) access.set = p8 ? (x4, y6) => __privateSet(x4, target, y6, k5 ^ 4 ? extra : desc.set) : (x4, y6) => x4[name] = y6; - } - it2 = (0, decorators[i12])(k5 ? k5 < 4 ? p8 ? extra : desc[key2] : k5 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1; - if (k5 ^ 4 || it2 === void 0) __expectFn(it2) && (k5 > 4 ? initializers.unshift(it2) : k5 ? p8 ? extra = it2 : desc[key2] = it2 : target = it2); - else if (typeof it2 !== "object" || it2 === null) __typeError("Object expected"); - else __expectFn(fn = it2.get) && (desc.get = fn), __expectFn(fn = it2.set) && (desc.set = fn), __expectFn(fn = it2.init) && initializers.unshift(fn); - } - return k5 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p8 ? k5 ^ 4 ? extra : desc : target; -}; -var __publicField = (obj, key2, value2) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value2); -var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); -var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj); -var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); -var __privateAdd = (obj, member, value2) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value2); -var __privateSet = (obj, member, value2, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value2) : member.set(obj, value2), value2); -var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method); -var __template = (cooked, raw2) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw2 || cooked.slice()) })); - -// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js -var t, e, s, o, n, r, i, S, c; -var init_css_tag = __esm({ - "node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js"() { - t = globalThis, e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s = /* @__PURE__ */ Symbol(), o = /* @__PURE__ */ new WeakMap(); - n = class { - constructor(t10, e12, o14) { - if (this._$cssResult$ = true, o14 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); - this.cssText = t10, this.t = e12; - } - get styleSheet() { - let t10 = this.o; - const s10 = this.t; - if (e && void 0 === t10) { - const e12 = void 0 !== s10 && 1 === s10.length; - e12 && (t10 = o.get(s10)), void 0 === t10 && ((this.o = t10 = new CSSStyleSheet()).replaceSync(this.cssText), e12 && o.set(s10, t10)); - } - return t10; - } - toString() { - return this.cssText; - } - }; - r = (t10) => new n("string" == typeof t10 ? t10 : t10 + "", void 0, s), i = (t10, ...e12) => { - const o14 = 1 === t10.length ? t10[0] : e12.reduce(((e13, s10, o15) => e13 + ((t11) => { - if (true === t11._$cssResult$) return t11.cssText; - if ("number" == typeof t11) return t11; - throw Error("Value passed to 'css' function must be a 'css' function result: " + t11 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security."); - })(s10) + t10[o15 + 1]), t10[0]); - return new n(o14, t10, s); - }, S = (s10, o14) => { - if (e) s10.adoptedStyleSheets = o14.map(((t10) => t10 instanceof CSSStyleSheet ? t10 : t10.styleSheet)); - else for (const e12 of o14) { - const o15 = document.createElement("style"), n14 = t.litNonce; - void 0 !== n14 && o15.setAttribute("nonce", n14), o15.textContent = e12.cssText, s10.appendChild(o15); - } - }, c = e ? (t10) => t10 : (t10) => t10 instanceof CSSStyleSheet ? ((t11) => { - let e12 = ""; - for (const s10 of t11.cssRules) e12 += s10.cssText; - return r(e12); - })(t10) : t10; - } -}); - -// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js -var i2, e2, h, r2, o2, n2, a, c2, l, p, d, u, f, b, y; -var init_reactive_element = __esm({ - "node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js"() { - init_css_tag(); - init_css_tag(); - ({ is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object), a = globalThis, c2 = a.trustedTypes, l = c2 ? c2.emptyScript : "", p = a.reactiveElementPolyfillSupport, d = (t10, s10) => t10, u = { toAttribute(t10, s10) { - switch (s10) { - case Boolean: - t10 = t10 ? l : null; - break; - case Object: - case Array: - t10 = null == t10 ? t10 : JSON.stringify(t10); - } - return t10; - }, fromAttribute(t10, s10) { - let i12 = t10; - switch (s10) { - case Boolean: - i12 = null !== t10; - break; - case Number: - i12 = null === t10 ? null : Number(t10); - break; - case Object: - case Array: - try { - i12 = JSON.parse(t10); - } catch (t11) { - i12 = null; - } - } - return i12; - } }, f = (t10, s10) => !i2(t10, s10), b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f }; - Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap(); - y = class extends HTMLElement { - static addInitializer(t10) { - this._$Ei(), (this.l ??= []).push(t10); - } - static get observedAttributes() { - return this.finalize(), this._$Eh && [...this._$Eh.keys()]; - } - static createProperty(t10, s10 = b) { - if (s10.state && (s10.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t10) && ((s10 = Object.create(s10)).wrapped = true), this.elementProperties.set(t10, s10), !s10.noAccessor) { - const i12 = /* @__PURE__ */ Symbol(), h10 = this.getPropertyDescriptor(t10, i12, s10); - void 0 !== h10 && e2(this.prototype, t10, h10); - } - } - static getPropertyDescriptor(t10, s10, i12) { - const { get: e12, set: r12 } = h(this.prototype, t10) ?? { get() { - return this[s10]; - }, set(t11) { - this[s10] = t11; - } }; - return { get: e12, set(s11) { - const h10 = e12?.call(this); - r12?.call(this, s11), this.requestUpdate(t10, h10, i12); - }, configurable: true, enumerable: true }; - } - static getPropertyOptions(t10) { - return this.elementProperties.get(t10) ?? b; - } - static _$Ei() { - if (this.hasOwnProperty(d("elementProperties"))) return; - const t10 = n2(this); - t10.finalize(), void 0 !== t10.l && (this.l = [...t10.l]), this.elementProperties = new Map(t10.elementProperties); - } - static finalize() { - if (this.hasOwnProperty(d("finalized"))) return; - if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) { - const t11 = this.properties, s10 = [...r2(t11), ...o2(t11)]; - for (const i12 of s10) this.createProperty(i12, t11[i12]); - } - const t10 = this[Symbol.metadata]; - if (null !== t10) { - const s10 = litPropertyMetadata.get(t10); - if (void 0 !== s10) for (const [t11, i12] of s10) this.elementProperties.set(t11, i12); - } - this._$Eh = /* @__PURE__ */ new Map(); - for (const [t11, s10] of this.elementProperties) { - const i12 = this._$Eu(t11, s10); - void 0 !== i12 && this._$Eh.set(i12, t11); - } - this.elementStyles = this.finalizeStyles(this.styles); - } - static finalizeStyles(s10) { - const i12 = []; - if (Array.isArray(s10)) { - const e12 = new Set(s10.flat(1 / 0).reverse()); - for (const s11 of e12) i12.unshift(c(s11)); - } else void 0 !== s10 && i12.push(c(s10)); - return i12; - } - static _$Eu(t10, s10) { - const i12 = s10.attribute; - return false === i12 ? void 0 : "string" == typeof i12 ? i12 : "string" == typeof t10 ? t10.toLowerCase() : void 0; - } - constructor() { - super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev(); - } - _$Ev() { - this._$ES = new Promise(((t10) => this.enableUpdating = t10)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t10) => t10(this))); - } - addController(t10) { - (this._$EO ??= /* @__PURE__ */ new Set()).add(t10), void 0 !== this.renderRoot && this.isConnected && t10.hostConnected?.(); - } - removeController(t10) { - this._$EO?.delete(t10); - } - _$E_() { - const t10 = /* @__PURE__ */ new Map(), s10 = this.constructor.elementProperties; - for (const i12 of s10.keys()) this.hasOwnProperty(i12) && (t10.set(i12, this[i12]), delete this[i12]); - t10.size > 0 && (this._$Ep = t10); - } - createRenderRoot() { - const t10 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); - return S(t10, this.constructor.elementStyles), t10; - } - connectedCallback() { - this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(((t10) => t10.hostConnected?.())); - } - enableUpdating(t10) { - } - disconnectedCallback() { - this._$EO?.forEach(((t10) => t10.hostDisconnected?.())); - } - attributeChangedCallback(t10, s10, i12) { - this._$AK(t10, i12); - } - _$ET(t10, s10) { - const i12 = this.constructor.elementProperties.get(t10), e12 = this.constructor._$Eu(t10, i12); - if (void 0 !== e12 && true === i12.reflect) { - const h10 = (void 0 !== i12.converter?.toAttribute ? i12.converter : u).toAttribute(s10, i12.type); - this._$Em = t10, null == h10 ? this.removeAttribute(e12) : this.setAttribute(e12, h10), this._$Em = null; - } - } - _$AK(t10, s10) { - const i12 = this.constructor, e12 = i12._$Eh.get(t10); - if (void 0 !== e12 && this._$Em !== e12) { - const t11 = i12.getPropertyOptions(e12), h10 = "function" == typeof t11.converter ? { fromAttribute: t11.converter } : void 0 !== t11.converter?.fromAttribute ? t11.converter : u; - this._$Em = e12; - const r12 = h10.fromAttribute(s10, t11.type); - this[e12] = r12 ?? this._$Ej?.get(e12) ?? r12, this._$Em = null; - } - } - requestUpdate(t10, s10, i12) { - if (void 0 !== t10) { - const e12 = this.constructor, h10 = this[t10]; - if (i12 ??= e12.getPropertyOptions(t10), !((i12.hasChanged ?? f)(h10, s10) || i12.useDefault && i12.reflect && h10 === this._$Ej?.get(t10) && !this.hasAttribute(e12._$Eu(t10, i12)))) return; - this.C(t10, s10, i12); - } - false === this.isUpdatePending && (this._$ES = this._$EP()); - } - C(t10, s10, { useDefault: i12, reflect: e12, wrapped: h10 }, r12) { - i12 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t10) && (this._$Ej.set(t10, r12 ?? s10 ?? this[t10]), true !== h10 || void 0 !== r12) || (this._$AL.has(t10) || (this.hasUpdated || i12 || (s10 = void 0), this._$AL.set(t10, s10)), true === e12 && this._$Em !== t10 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t10)); - } - async _$EP() { - this.isUpdatePending = true; - try { - await this._$ES; - } catch (t11) { - Promise.reject(t11); - } - const t10 = this.scheduleUpdate(); - return null != t10 && await t10, !this.isUpdatePending; - } - scheduleUpdate() { - return this.performUpdate(); - } - performUpdate() { - if (!this.isUpdatePending) return; - if (!this.hasUpdated) { - if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) { - for (const [t12, s11] of this._$Ep) this[t12] = s11; - this._$Ep = void 0; - } - const t11 = this.constructor.elementProperties; - if (t11.size > 0) for (const [s11, i12] of t11) { - const { wrapped: t12 } = i12, e12 = this[s11]; - true !== t12 || this._$AL.has(s11) || void 0 === e12 || this.C(s11, void 0, i12, e12); - } - } - let t10 = false; - const s10 = this._$AL; - try { - t10 = this.shouldUpdate(s10), t10 ? (this.willUpdate(s10), this._$EO?.forEach(((t11) => t11.hostUpdate?.())), this.update(s10)) : this._$EM(); - } catch (s11) { - throw t10 = false, this._$EM(), s11; - } - t10 && this._$AE(s10); - } - willUpdate(t10) { - } - _$AE(t10) { - this._$EO?.forEach(((t11) => t11.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t10)), this.updated(t10); - } - _$EM() { - this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false; - } - get updateComplete() { - return this.getUpdateComplete(); - } - getUpdateComplete() { - return this._$ES; - } - shouldUpdate(t10) { - return true; - } - update(t10) { - this._$Eq &&= this._$Eq.forEach(((t11) => this._$ET(t11, this[t11]))), this._$EM(); - } - updated(t10) { - } - firstUpdated(t10) { - } - }; - y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ??= []).push("2.1.1"); - } -}); - -// node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js -function P(t10, i12) { - if (!a2(t10) || !t10.hasOwnProperty("raw")) throw Error("invalid template strings array"); - return void 0 !== s2 ? s2.createHTML(i12) : i12; -} -function S2(t10, i12, s10 = t10, e12) { - if (i12 === T) return i12; - let h10 = void 0 !== e12 ? s10._$Co?.[e12] : s10._$Cl; - const o14 = c3(i12) ? void 0 : i12._$litDirective$; - return h10?.constructor !== o14 && (h10?._$AO?.(false), void 0 === o14 ? h10 = void 0 : (h10 = new o14(t10), h10._$AT(t10, s10, e12)), void 0 !== e12 ? (s10._$Co ??= [])[e12] = h10 : s10._$Cl = h10), void 0 !== h10 && (i12 = S2(t10, h10._$AS(t10, i12.values), h10, e12)), i12; -} -var t2, i3, s2, e3, h2, o3, n3, r3, l2, c3, a2, u2, d2, f2, v, _, m, p2, g, $, y2, x, b2, w, T, E, A, C, V, N, M, R, k, H, I, L, z, Z, j2, B; -var init_lit_html = __esm({ - "node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js"() { - t2 = globalThis, i3 = t2.trustedTypes, s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t10) => t10 }) : void 0, e3 = "$lit$", h2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o3 = "?" + h2, n3 = `<${o3}>`, r3 = document, l2 = () => r3.createComment(""), c3 = (t10) => null === t10 || "object" != typeof t10 && "function" != typeof t10, a2 = Array.isArray, u2 = (t10) => a2(t10) || "function" == typeof t10?.[Symbol.iterator], d2 = "[ \n\f\r]", f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`, "g"), p2 = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y2 = (t10) => (i12, ...s10) => ({ _$litType$: t10, strings: i12, values: s10 }), x = y2(1), b2 = y2(2), w = y2(3), T = /* @__PURE__ */ Symbol.for("lit-noChange"), E = /* @__PURE__ */ Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r3.createTreeWalker(r3, 129); - V = (t10, i12) => { - const s10 = t10.length - 1, o14 = []; - let r12, l7 = 2 === i12 ? "" : 3 === i12 ? "" : "")), o14]; - }; - N = class _N { - constructor({ strings: t10, _$litType$: s10 }, n14) { - let r12; - this.parts = []; - let c12 = 0, a6 = 0; - const u8 = t10.length - 1, d7 = this.parts, [f8, v6] = V(t10, s10); - if (this.el = _N.createElement(f8, n14), C.currentNode = this.el.content, 2 === s10 || 3 === s10) { - const t11 = this.el.content.firstChild; - t11.replaceWith(...t11.childNodes); - } - for (; null !== (r12 = C.nextNode()) && d7.length < u8; ) { - if (1 === r12.nodeType) { - if (r12.hasAttributes()) for (const t11 of r12.getAttributeNames()) if (t11.endsWith(e3)) { - const i12 = v6[a6++], s11 = r12.getAttribute(t11).split(h2), e12 = /([.?@])?(.*)/.exec(i12); - d7.push({ type: 1, index: c12, name: e12[2], strings: s11, ctor: "." === e12[1] ? H : "?" === e12[1] ? I : "@" === e12[1] ? L : k }), r12.removeAttribute(t11); - } else t11.startsWith(h2) && (d7.push({ type: 6, index: c12 }), r12.removeAttribute(t11)); - if ($.test(r12.tagName)) { - const t11 = r12.textContent.split(h2), s11 = t11.length - 1; - if (s11 > 0) { - r12.textContent = i3 ? i3.emptyScript : ""; - for (let i12 = 0; i12 < s11; i12++) r12.append(t11[i12], l2()), C.nextNode(), d7.push({ type: 2, index: ++c12 }); - r12.append(t11[s11], l2()); - } - } - } else if (8 === r12.nodeType) if (r12.data === o3) d7.push({ type: 2, index: c12 }); - else { - let t11 = -1; - for (; -1 !== (t11 = r12.data.indexOf(h2, t11 + 1)); ) d7.push({ type: 7, index: c12 }), t11 += h2.length - 1; - } - c12++; - } - } - static createElement(t10, i12) { - const s10 = r3.createElement("template"); - return s10.innerHTML = t10, s10; - } - }; - M = class { - constructor(t10, i12) { - this._$AV = [], this._$AN = void 0, this._$AD = t10, this._$AM = i12; - } - get parentNode() { - return this._$AM.parentNode; - } - get _$AU() { - return this._$AM._$AU; - } - u(t10) { - const { el: { content: i12 }, parts: s10 } = this._$AD, e12 = (t10?.creationScope ?? r3).importNode(i12, true); - C.currentNode = e12; - let h10 = C.nextNode(), o14 = 0, n14 = 0, l7 = s10[0]; - for (; void 0 !== l7; ) { - if (o14 === l7.index) { - let i13; - 2 === l7.type ? i13 = new R(h10, h10.nextSibling, this, t10) : 1 === l7.type ? i13 = new l7.ctor(h10, l7.name, l7.strings, this, t10) : 6 === l7.type && (i13 = new z(h10, this, t10)), this._$AV.push(i13), l7 = s10[++n14]; - } - o14 !== l7?.index && (h10 = C.nextNode(), o14++); - } - return C.currentNode = r3, e12; - } - p(t10) { - let i12 = 0; - for (const s10 of this._$AV) void 0 !== s10 && (void 0 !== s10.strings ? (s10._$AI(t10, s10, i12), i12 += s10.strings.length - 2) : s10._$AI(t10[i12])), i12++; - } - }; - R = class _R { - get _$AU() { - return this._$AM?._$AU ?? this._$Cv; - } - constructor(t10, i12, s10, e12) { - this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t10, this._$AB = i12, this._$AM = s10, this.options = e12, this._$Cv = e12?.isConnected ?? true; - } - get parentNode() { - let t10 = this._$AA.parentNode; - const i12 = this._$AM; - return void 0 !== i12 && 11 === t10?.nodeType && (t10 = i12.parentNode), t10; - } - get startNode() { - return this._$AA; - } - get endNode() { - return this._$AB; - } - _$AI(t10, i12 = this) { - t10 = S2(this, t10, i12), c3(t10) ? t10 === E || null == t10 || "" === t10 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t10 !== this._$AH && t10 !== T && this._(t10) : void 0 !== t10._$litType$ ? this.$(t10) : void 0 !== t10.nodeType ? this.T(t10) : u2(t10) ? this.k(t10) : this._(t10); - } - O(t10) { - return this._$AA.parentNode.insertBefore(t10, this._$AB); - } - T(t10) { - this._$AH !== t10 && (this._$AR(), this._$AH = this.O(t10)); - } - _(t10) { - this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t10 : this.T(r3.createTextNode(t10)), this._$AH = t10; - } - $(t10) { - const { values: i12, _$litType$: s10 } = t10, e12 = "number" == typeof s10 ? this._$AC(t10) : (void 0 === s10.el && (s10.el = N.createElement(P(s10.h, s10.h[0]), this.options)), s10); - if (this._$AH?._$AD === e12) this._$AH.p(i12); - else { - const t11 = new M(e12, this), s11 = t11.u(this.options); - t11.p(i12), this.T(s11), this._$AH = t11; - } - } - _$AC(t10) { - let i12 = A.get(t10.strings); - return void 0 === i12 && A.set(t10.strings, i12 = new N(t10)), i12; - } - k(t10) { - a2(this._$AH) || (this._$AH = [], this._$AR()); - const i12 = this._$AH; - let s10, e12 = 0; - for (const h10 of t10) e12 === i12.length ? i12.push(s10 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s10 = i12[e12], s10._$AI(h10), e12++; - e12 < i12.length && (this._$AR(s10 && s10._$AB.nextSibling, e12), i12.length = e12); - } - _$AR(t10 = this._$AA.nextSibling, i12) { - for (this._$AP?.(false, true, i12); t10 !== this._$AB; ) { - const i13 = t10.nextSibling; - t10.remove(), t10 = i13; - } - } - setConnected(t10) { - void 0 === this._$AM && (this._$Cv = t10, this._$AP?.(t10)); - } - }; - k = class { - get tagName() { - return this.element.tagName; - } - get _$AU() { - return this._$AM._$AU; - } - constructor(t10, i12, s10, e12, h10) { - this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t10, this.name = i12, this._$AM = e12, this.options = h10, s10.length > 2 || "" !== s10[0] || "" !== s10[1] ? (this._$AH = Array(s10.length - 1).fill(new String()), this.strings = s10) : this._$AH = E; - } - _$AI(t10, i12 = this, s10, e12) { - const h10 = this.strings; - let o14 = false; - if (void 0 === h10) t10 = S2(this, t10, i12, 0), o14 = !c3(t10) || t10 !== this._$AH && t10 !== T, o14 && (this._$AH = t10); - else { - const e13 = t10; - let n14, r12; - for (t10 = h10[0], n14 = 0; n14 < h10.length - 1; n14++) r12 = S2(this, e13[s10 + n14], i12, n14), r12 === T && (r12 = this._$AH[n14]), o14 ||= !c3(r12) || r12 !== this._$AH[n14], r12 === E ? t10 = E : t10 !== E && (t10 += (r12 ?? "") + h10[n14 + 1]), this._$AH[n14] = r12; - } - o14 && !e12 && this.j(t10); - } - j(t10) { - t10 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t10 ?? ""); - } - }; - H = class extends k { - constructor() { - super(...arguments), this.type = 3; - } - j(t10) { - this.element[this.name] = t10 === E ? void 0 : t10; - } - }; - I = class extends k { - constructor() { - super(...arguments), this.type = 4; - } - j(t10) { - this.element.toggleAttribute(this.name, !!t10 && t10 !== E); - } - }; - L = class extends k { - constructor(t10, i12, s10, e12, h10) { - super(t10, i12, s10, e12, h10), this.type = 5; - } - _$AI(t10, i12 = this) { - if ((t10 = S2(this, t10, i12, 0) ?? E) === T) return; - const s10 = this._$AH, e12 = t10 === E && s10 !== E || t10.capture !== s10.capture || t10.once !== s10.once || t10.passive !== s10.passive, h10 = t10 !== E && (s10 === E || e12); - e12 && this.element.removeEventListener(this.name, this, s10), h10 && this.element.addEventListener(this.name, this, t10), this._$AH = t10; - } - handleEvent(t10) { - "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t10) : this._$AH.handleEvent(t10); - } - }; - z = class { - constructor(t10, i12, s10) { - this.element = t10, this.type = 6, this._$AN = void 0, this._$AM = i12, this.options = s10; - } - get _$AU() { - return this._$AM._$AU; - } - _$AI(t10) { - S2(this, t10); - } - }; - Z = { M: e3, P: h2, A: o3, C: 1, L: V, R: M, D: u2, V: S2, I: R, H: k, N: I, U: L, B: H, F: z }, j2 = t2.litHtmlPolyfillSupport; - j2?.(N, R), (t2.litHtmlVersions ??= []).push("3.3.1"); - B = (t10, i12, s10) => { - const e12 = s10?.renderBefore ?? i12; - let h10 = e12._$litPart$; - if (void 0 === h10) { - const t11 = s10?.renderBefore ?? null; - e12._$litPart$ = h10 = new R(i12.insertBefore(l2(), t11), t11, void 0, s10 ?? {}); - } - return h10._$AI(t10), h10; - }; - } -}); - -// node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js -var s3, i4, o4, n4; -var init_lit_element = __esm({ - "node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js"() { - init_reactive_element(); - init_reactive_element(); - init_lit_html(); - init_lit_html(); - s3 = globalThis; - i4 = class extends y { - constructor() { - super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0; - } - createRenderRoot() { - const t10 = super.createRenderRoot(); - return this.renderOptions.renderBefore ??= t10.firstChild, t10; - } - update(t10) { - const r12 = this.render(); - this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t10), this._$Do = B(r12, this.renderRoot, this.renderOptions); - } - connectedCallback() { - super.connectedCallback(), this._$Do?.setConnected(true); - } - disconnectedCallback() { - super.disconnectedCallback(), this._$Do?.setConnected(false); - } - render() { - return T; - } - }; - i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 }); - o4 = s3.litElementPolyfillSupport; - o4?.({ LitElement: i4 }); - n4 = { _$AK: (t10, e12, r12) => { - t10._$AK(e12, r12); - }, _$AL: (t10) => t10._$AL }; - (s3.litElementVersions ??= []).push("4.2.1"); - } -}); - -// node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/is-server.js -var o5; -var init_is_server = __esm({ - "node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/is-server.js"() { - o5 = false; - } -}); - -// node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js -var init_lit = __esm({ - "node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js"() { - init_reactive_element(); - init_lit_html(); - init_lit_element(); - init_is_server(); - } -}); - -// node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js -var require_dist_ts = __commonJS({ - "node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.uni = void 0; - var uni3 = (prefix4 = "uni") => { - return `${prefix4}_${`xxxxxxxxxxxxxxxxxxxxxxxx`.replace(/[xy]/g, (c12) => { - const r12 = Math.random() * 16 | 0; - const v6 = c12 === "x" ? r12 : r12 & 3 | 8; - return v6.toString(16); - })}`; - }; - exports.uni = uni3; - } -}); - -// node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/smartpromise.classes.deferred.js -var Deferred, defer; -var init_smartpromise_classes_deferred = __esm({ - "node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/smartpromise.classes.deferred.js"() { - Deferred = class { - claim() { - if (this.claimed) { - throw new Error("Deferred already claimed"); - } - this.claimed = true; - } - get duration() { - if (this.stoppedAt) { - return this.stoppedAt - this.startedAt; - } else { - return Date.now() - this.startedAt; - } - } - constructor() { - this.claimed = false; - this.promise = new Promise((resolve2, reject) => { - this.resolve = (valueArg) => { - this.status = "fulfilled"; - this.stoppedAt = Date.now(); - resolve2(valueArg); - }; - this.reject = (reason) => { - this.status = "rejected"; - this.stoppedAt = Date.now(); - reject(reason); - }; - this.startedAt = Date.now(); - this.status = "pending"; - }); - } - }; - defer = () => { - return new Deferred(); - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/smartpromise.classes.cumulativedeferred.js -var CumulativeDeferred, cumulativeDefer; -var init_smartpromise_classes_cumulativedeferred = __esm({ - "node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/smartpromise.classes.cumulativedeferred.js"() { - init_smartpromise_classes_deferred(); - CumulativeDeferred = class { - constructor() { - this.accumulatedPromises = []; - this.deferred = defer(); - this.promise = this.deferred.promise; - setTimeout(async () => { - while (this.accumulatedPromises.length > 0) { - const poppedPromise = this.accumulatedPromises.shift(); - await poppedPromise; - } - this.deferred.resolve(); - }, 0); - } - subDefer() { - const done = defer(); - this.addPromise(done.promise); - return done; - } - addPromise(promiseArg) { - this.accumulatedPromises.push(promiseArg); - } - }; - cumulativeDefer = () => { - return new CumulativeDeferred(); - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/index.js -var dist_ts_exports = {}; -__export(dist_ts_exports, { - CumulativeDeferred: () => CumulativeDeferred, - Deferred: () => Deferred, - cumulativeDefer: () => cumulativeDefer, - defer: () => defer, - fromCallback: () => fromCallback, - getFirstTrueOrFalse: () => getFirstTrueOrFalse, - map: () => map, - rejectedPromise: () => rejectedPromise, - resolvedPromise: () => resolvedPromise, - timeoutAndContinue: () => timeoutAndContinue, - timeoutWrap: () => timeoutWrap -}); -var resolvedPromise, rejectedPromise, map, timeoutWrap, timeoutAndContinue, getFirstTrueOrFalse, fromCallback; -var init_dist_ts = __esm({ - "node_modules/.pnpm/@push.rocks+smartpromise@4.2.3/node_modules/@push.rocks/smartpromise/dist_ts/index.js"() { - init_smartpromise_classes_deferred(); - init_smartpromise_classes_cumulativedeferred(); - init_smartpromise_classes_deferred(); - resolvedPromise = (value2) => { - return Promise.resolve(value2); - }; - rejectedPromise = (err) => { - return Promise.reject(err); - }; - map = async (inputArg, functionArg) => { - const promiseArray = []; - const resultArray = []; - for (const item of inputArg) { - const promise = functionArg(item); - promiseArray.push(promise); - promise.then((x4) => { - resultArray.push(x4); - }); - } - await Promise.all(promiseArray); - return resultArray; - }; - timeoutWrap = async (promiseArg, timeoutInMsArg, rejectArg = true) => { - return new Promise((resolve2, reject) => { - setTimeout(() => { - if (rejectArg) { - reject(new Error("timeout")); - } else { - resolve2(null); - } - }, timeoutInMsArg); - promiseArg.then(resolve2, reject); - }); - }; - timeoutAndContinue = async (promiseArg, timeoutInMsArg = 6e4) => { - return timeoutWrap(promiseArg, timeoutInMsArg, false); - }; - getFirstTrueOrFalse = async (promisesArg) => { - const done = defer(); - for (const promiseArg of promisesArg) { - promiseArg.then((resultArg) => { - if (resultArg === true) { - done.resolve(true); - } - }); - } - Promise.all(promisesArg).then(() => { - done.resolve(false); - }); - return done.promise; - }; - fromCallback = (fn) => { - return new Promise((resolve2, reject) => { - fn((err, result) => { - if (err) { - reject(err); - } else { - resolve2(result); - } - }); - }); - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/smartrx.plugins.js -var init_smartrx_plugins = __esm({ - "node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/smartrx.plugins.js"() { - init_dist_ts(); - } -}); - -// node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs -function __extends(d7, b6) { - if (typeof b6 !== "function" && b6 !== null) - throw new TypeError("Class extends value " + String(b6) + " is not a constructor or null"); - extendStatics(d7, b6); - function __() { - this.constructor = d7; - } - d7.prototype = b6 === null ? Object.create(b6) : (__.prototype = b6.prototype, new __()); -} -function __rest(s10, e12) { - var t10 = {}; - for (var p8 in s10) if (Object.prototype.hasOwnProperty.call(s10, p8) && e12.indexOf(p8) < 0) - t10[p8] = s10[p8]; - if (s10 != null && typeof Object.getOwnPropertySymbols === "function") - for (var i12 = 0, p8 = Object.getOwnPropertySymbols(s10); i12 < p8.length; i12++) { - if (e12.indexOf(p8[i12]) < 0 && Object.prototype.propertyIsEnumerable.call(s10, p8[i12])) - t10[p8[i12]] = s10[p8[i12]]; - } - return t10; -} -function __decorate(decorators, target, key2, desc) { - var c12 = arguments.length, r12 = c12 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key2) : desc, d7; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r12 = Reflect.decorate(decorators, target, key2, desc); - else for (var i12 = decorators.length - 1; i12 >= 0; i12--) if (d7 = decorators[i12]) r12 = (c12 < 3 ? d7(r12) : c12 > 3 ? d7(target, key2, r12) : d7(target, key2)) || r12; - return c12 > 3 && r12 && Object.defineProperty(target, key2, r12), r12; -} -function __param(paramIndex, decorator) { - return function(target, key2) { - decorator(target, key2, paramIndex); - }; -} -function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f8) { - if (f8 !== void 0 && typeof f8 !== "function") throw new TypeError("Function expected"); - return f8; - } - var kind = contextIn.kind, key2 = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _5, done = false; - for (var i12 = decorators.length - 1; i12 >= 0; i12--) { - var context2 = {}; - for (var p8 in contextIn) context2[p8] = p8 === "access" ? {} : contextIn[p8]; - for (var p8 in contextIn.access) context2.access[p8] = contextIn.access[p8]; - context2.addInitializer = function(f8) { - if (done) throw new TypeError("Cannot add initializers after decoration has completed"); - extraInitializers.push(accept(f8 || null)); - }; - var result = (0, decorators[i12])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key2], context2); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_5 = accept(result.get)) descriptor.get = _5; - if (_5 = accept(result.set)) descriptor.set = _5; - if (_5 = accept(result.init)) initializers.unshift(_5); - } else if (_5 = accept(result)) { - if (kind === "field") initializers.unshift(_5); - else descriptor[key2] = _5; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; -} -function __runInitializers2(thisArg, initializers, value2) { - var useValue = arguments.length > 2; - for (var i12 = 0; i12 < initializers.length; i12++) { - value2 = useValue ? initializers[i12].call(thisArg, value2) : initializers[i12].call(thisArg); - } - return useValue ? value2 : void 0; -} -function __propKey(x4) { - return typeof x4 === "symbol" ? x4 : "".concat(x4); -} -function __setFunctionName(f8, name, prefix4) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f8, "name", { configurable: true, value: prefix4 ? "".concat(prefix4, " ", name) : name }); -} -function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} -function __awaiter(thisArg, _arguments, P5, generator) { - function adopt(value2) { - return value2 instanceof P5 ? value2 : new P5(function(resolve2) { - resolve2(value2); - }); - } - return new (P5 || (P5 = Promise))(function(resolve2, reject) { - function fulfilled(value2) { - try { - step(generator.next(value2)); - } catch (e12) { - reject(e12); - } - } - function rejected(value2) { - try { - step(generator["throw"](value2)); - } catch (e12) { - reject(e12); - } - } - function step(result) { - result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} -function __generator(thisArg, body3) { - var _5 = { label: 0, sent: function() { - if (t10[0] & 1) throw t10[1]; - return t10[1]; - }, trys: [], ops: [] }, f8, y6, t10, g5 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g5.next = verb(0), g5["throw"] = verb(1), g5["return"] = verb(2), typeof Symbol === "function" && (g5[Symbol.iterator] = function() { - return this; - }), g5; - function verb(n14) { - return function(v6) { - return step([n14, v6]); - }; - } - function step(op) { - if (f8) throw new TypeError("Generator is already executing."); - while (g5 && (g5 = 0, op[0] && (_5 = 0)), _5) try { - if (f8 = 1, y6 && (t10 = op[0] & 2 ? y6["return"] : op[0] ? y6["throw"] || ((t10 = y6["return"]) && t10.call(y6), 0) : y6.next) && !(t10 = t10.call(y6, op[1])).done) return t10; - if (y6 = 0, t10) op = [op[0] & 2, t10.value]; - switch (op[0]) { - case 0: - case 1: - t10 = op; - break; - case 4: - _5.label++; - return { value: op[1], done: false }; - case 5: - _5.label++; - y6 = op[1]; - op = [0]; - continue; - case 7: - op = _5.ops.pop(); - _5.trys.pop(); - continue; - default: - if (!(t10 = _5.trys, t10 = t10.length > 0 && t10[t10.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _5 = 0; - continue; - } - if (op[0] === 3 && (!t10 || op[1] > t10[0] && op[1] < t10[3])) { - _5.label = op[1]; - break; - } - if (op[0] === 6 && _5.label < t10[1]) { - _5.label = t10[1]; - t10 = op; - break; - } - if (t10 && _5.label < t10[2]) { - _5.label = t10[2]; - _5.ops.push(op); - break; - } - if (t10[2]) _5.ops.pop(); - _5.trys.pop(); - continue; - } - op = body3.call(thisArg, _5); - } catch (e12) { - op = [6, e12]; - y6 = 0; - } finally { - f8 = t10 = 0; - } - if (op[0] & 5) throw op[1]; - return { value: op[0] ? op[1] : void 0, done: true }; - } -} -function __exportStar(m7, o14) { - for (var p8 in m7) if (p8 !== "default" && !Object.prototype.hasOwnProperty.call(o14, p8)) __createBinding(o14, m7, p8); -} -function __values(o14) { - var s10 = typeof Symbol === "function" && Symbol.iterator, m7 = s10 && o14[s10], i12 = 0; - if (m7) return m7.call(o14); - if (o14 && typeof o14.length === "number") return { - next: function() { - if (o14 && i12 >= o14.length) o14 = void 0; - return { value: o14 && o14[i12++], done: !o14 }; - } - }; - throw new TypeError(s10 ? "Object is not iterable." : "Symbol.iterator is not defined."); -} -function __read(o14, n14) { - var m7 = typeof Symbol === "function" && o14[Symbol.iterator]; - if (!m7) return o14; - var i12 = m7.call(o14), r12, ar = [], e12; - try { - while ((n14 === void 0 || n14-- > 0) && !(r12 = i12.next()).done) ar.push(r12.value); - } catch (error) { - e12 = { error }; - } finally { - try { - if (r12 && !r12.done && (m7 = i12["return"])) m7.call(i12); - } finally { - if (e12) throw e12.error; - } - } - return ar; -} -function __spread() { - for (var ar = [], i12 = 0; i12 < arguments.length; i12++) - ar = ar.concat(__read(arguments[i12])); - return ar; -} -function __spreadArrays() { - for (var s10 = 0, i12 = 0, il = arguments.length; i12 < il; i12++) s10 += arguments[i12].length; - for (var r12 = Array(s10), k5 = 0, i12 = 0; i12 < il; i12++) - for (var a6 = arguments[i12], j4 = 0, jl = a6.length; j4 < jl; j4++, k5++) - r12[k5] = a6[j4]; - return r12; -} -function __spreadArray(to2, from3, pack) { - if (pack || arguments.length === 2) for (var i12 = 0, l7 = from3.length, ar; i12 < l7; i12++) { - if (ar || !(i12 in from3)) { - if (!ar) ar = Array.prototype.slice.call(from3, 0, i12); - ar[i12] = from3[i12]; - } - } - return to2.concat(ar || Array.prototype.slice.call(from3)); -} -function __await(v6) { - return this instanceof __await ? (this.v = v6, this) : new __await(v6); -} -function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g5 = generator.apply(thisArg, _arguments || []), i12, q3 = []; - return i12 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i12[Symbol.asyncIterator] = function() { - return this; - }, i12; - function awaitReturn(f8) { - return function(v6) { - return Promise.resolve(v6).then(f8, reject); - }; - } - function verb(n14, f8) { - if (g5[n14]) { - i12[n14] = function(v6) { - return new Promise(function(a6, b6) { - q3.push([n14, v6, a6, b6]) > 1 || resume(n14, v6); - }); - }; - if (f8) i12[n14] = f8(i12[n14]); - } - } - function resume(n14, v6) { - try { - step(g5[n14](v6)); - } catch (e12) { - settle(q3[0][3], e12); - } - } - function step(r12) { - r12.value instanceof __await ? Promise.resolve(r12.value.v).then(fulfill, reject) : settle(q3[0][2], r12); - } - function fulfill(value2) { - resume("next", value2); - } - function reject(value2) { - resume("throw", value2); - } - function settle(f8, v6) { - if (f8(v6), q3.shift(), q3.length) resume(q3[0][0], q3[0][1]); - } -} -function __asyncDelegator(o14) { - var i12, p8; - return i12 = {}, verb("next"), verb("throw", function(e12) { - throw e12; - }), verb("return"), i12[Symbol.iterator] = function() { - return this; - }, i12; - function verb(n14, f8) { - i12[n14] = o14[n14] ? function(v6) { - return (p8 = !p8) ? { value: __await(o14[n14](v6)), done: false } : f8 ? f8(v6) : v6; - } : f8; - } -} -function __asyncValues(o14) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m7 = o14[Symbol.asyncIterator], i12; - return m7 ? m7.call(o14) : (o14 = typeof __values === "function" ? __values(o14) : o14[Symbol.iterator](), i12 = {}, verb("next"), verb("throw"), verb("return"), i12[Symbol.asyncIterator] = function() { - return this; - }, i12); - function verb(n14) { - i12[n14] = o14[n14] && function(v6) { - return new Promise(function(resolve2, reject) { - v6 = o14[n14](v6), settle(resolve2, reject, v6.done, v6.value); - }); - }; - } - function settle(resolve2, reject, d7, v6) { - Promise.resolve(v6).then(function(v7) { - resolve2({ value: v7, done: d7 }); - }, reject); - } -} -function __makeTemplateObject(cooked, raw2) { - if (Object.defineProperty) { - Object.defineProperty(cooked, "raw", { value: raw2 }); - } else { - cooked.raw = raw2; - } - return cooked; -} -function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) { - for (var k5 = ownKeys(mod), i12 = 0; i12 < k5.length; i12++) if (k5[i12] !== "default") __createBinding(result, mod, k5[i12]); - } - __setModuleDefault(result, mod); - return result; -} -function __importDefault(mod) { - return mod && mod.__esModule ? mod : { default: mod }; -} -function __classPrivateFieldGet(receiver, state2, kind, f8) { - if (kind === "a" && !f8) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state2 === "function" ? receiver !== state2 || !f8 : !state2.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f8 : kind === "a" ? f8.call(receiver) : f8 ? f8.value : state2.get(receiver); -} -function __classPrivateFieldSet(receiver, state2, value2, kind, f8) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f8) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state2 === "function" ? receiver !== state2 || !f8 : !state2.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return kind === "a" ? f8.call(receiver, value2) : f8 ? f8.value = value2 : state2.set(receiver, value2), value2; -} -function __classPrivateFieldIn(state2, receiver) { - if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state2 === "function" ? receiver === state2 : state2.has(receiver); -} -function __addDisposableResource(env2, value2, async2) { - if (value2 !== null && value2 !== void 0) { - if (typeof value2 !== "object" && typeof value2 !== "function") throw new TypeError("Object expected."); - var dispose, inner; - if (async2) { - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); - dispose = value2[Symbol.asyncDispose]; - } - if (dispose === void 0) { - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); - dispose = value2[Symbol.dispose]; - if (async2) inner = dispose; - } - if (typeof dispose !== "function") throw new TypeError("Object not disposable."); - if (inner) dispose = function() { - try { - inner.call(this); - } catch (e12) { - return Promise.reject(e12); - } - }; - env2.stack.push({ value: value2, dispose, async: async2 }); - } else if (async2) { - env2.stack.push({ async: true }); - } - return value2; -} -function __disposeResources(env2) { - function fail(e12) { - env2.error = env2.hasError ? new _SuppressedError(e12, env2.error, "An error was suppressed during disposal.") : e12; - env2.hasError = true; - } - var r12, s10 = 0; - function next2() { - while (r12 = env2.stack.pop()) { - try { - if (!r12.async && s10 === 1) return s10 = 0, env2.stack.push(r12), Promise.resolve().then(next2); - if (r12.dispose) { - var result = r12.dispose.call(r12.value); - if (r12.async) return s10 |= 2, Promise.resolve(result).then(next2, function(e12) { - fail(e12); - return next2(); - }); - } else s10 |= 1; - } catch (e12) { - fail(e12); - } - } - if (s10 === 1) return env2.hasError ? Promise.reject(env2.error) : Promise.resolve(); - if (env2.hasError) throw env2.error; - } - return next2(); -} -function __rewriteRelativeImportExtension(path2, preserveJsx) { - if (typeof path2 === "string" && /^\.\.?\//.test(path2)) { - return path2.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m7, tsx, d7, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d7 && (!ext || !cm) ? m7 : d7 + ext + "." + cm.toLowerCase() + "js"; - }); - } - return path2; -} -var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default; -var init_tslib_es6 = __esm({ - "node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"() { - extendStatics = function(d7, b6) { - extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d8, b7) { - d8.__proto__ = b7; - } || function(d8, b7) { - for (var p8 in b7) if (Object.prototype.hasOwnProperty.call(b7, p8)) d8[p8] = b7[p8]; - }; - return extendStatics(d7, b6); - }; - __assign = function() { - __assign = Object.assign || function __assign2(t10) { - for (var s10, i12 = 1, n14 = arguments.length; i12 < n14; i12++) { - s10 = arguments[i12]; - for (var p8 in s10) if (Object.prototype.hasOwnProperty.call(s10, p8)) t10[p8] = s10[p8]; - } - return t10; - }; - return __assign.apply(this, arguments); - }; - ; - ; - ; - ; - __createBinding = Object.create ? (function(o14, m7, k5, k22) { - if (k22 === void 0) k22 = k5; - var desc = Object.getOwnPropertyDescriptor(m7, k5); - if (!desc || ("get" in desc ? !m7.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m7[k5]; - } }; - } - Object.defineProperty(o14, k22, desc); - }) : (function(o14, m7, k5, k22) { - if (k22 === void 0) k22 = k5; - o14[k22] = m7[k5]; - }); - ; - __setModuleDefault = Object.create ? (function(o14, v6) { - Object.defineProperty(o14, "default", { enumerable: true, value: v6 }); - }) : function(o14, v6) { - o14["default"] = v6; - }; - ownKeys = function(o14) { - ownKeys = Object.getOwnPropertyNames || function(o15) { - var ar = []; - for (var k5 in o15) if (Object.prototype.hasOwnProperty.call(o15, k5)) ar[ar.length] = k5; - return ar; - }; - return ownKeys(o14); - }; - _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message2) { - var e12 = new Error(message2); - return e12.name = "SuppressedError", e12.error = error, e12.suppressed = suppressed, e12; - }; - tslib_es6_default = { - __extends, - __assign, - __rest, - __decorate, - __param, - __esDecorate, - __runInitializers: __runInitializers2, - __propKey, - __setFunctionName, - __metadata, - __awaiter, - __generator, - __createBinding, - __exportStar, - __values, - __read, - __spread, - __spreadArrays, - __spreadArray, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, - __classPrivateFieldIn, - __addDisposableResource, - __disposeResources, - __rewriteRelativeImportExtension - }; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js -function isFunction(value2) { - return typeof value2 === "function"; -} -var init_isFunction = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isFunction.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js -function createErrorClass(createImpl) { - var _super = function(instance) { - Error.call(instance); - instance.stack = new Error().stack; - }; - var ctorFunc = createImpl(_super); - ctorFunc.prototype = Object.create(Error.prototype); - ctorFunc.prototype.constructor = ctorFunc; - return ctorFunc; -} -var init_createErrorClass = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js -var UnsubscriptionError; -var init_UnsubscriptionError = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js"() { - init_createErrorClass(); - UnsubscriptionError = createErrorClass(function(_super) { - return function UnsubscriptionErrorImpl(errors) { - _super(this); - this.message = errors ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function(err, i12) { - return i12 + 1 + ") " + err.toString(); - }).join("\n ") : ""; - this.name = "UnsubscriptionError"; - this.errors = errors; - }; - }); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js -function arrRemove(arr, item) { - if (arr) { - var index3 = arr.indexOf(item); - 0 <= index3 && arr.splice(index3, 1); - } -} -var init_arrRemove = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js -function isSubscription(value2) { - return value2 instanceof Subscription || value2 && "closed" in value2 && isFunction(value2.remove) && isFunction(value2.add) && isFunction(value2.unsubscribe); -} -function execFinalizer(finalizer) { - if (isFunction(finalizer)) { - finalizer(); - } else { - finalizer.unsubscribe(); - } -} -var Subscription, EMPTY_SUBSCRIPTION; -var init_Subscription = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscription.js"() { - init_tslib_es6(); - init_isFunction(); - init_UnsubscriptionError(); - init_arrRemove(); - Subscription = (function() { - function Subscription2(initialTeardown) { - this.initialTeardown = initialTeardown; - this.closed = false; - this._parentage = null; - this._finalizers = null; - } - Subscription2.prototype.unsubscribe = function() { - var e_1, _a12, e_2, _b; - var errors; - if (!this.closed) { - this.closed = true; - var _parentage = this._parentage; - if (_parentage) { - this._parentage = null; - if (Array.isArray(_parentage)) { - try { - for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) { - var parent_1 = _parentage_1_1.value; - parent_1.remove(this); - } - } catch (e_1_1) { - e_1 = { error: e_1_1 }; - } finally { - try { - if (_parentage_1_1 && !_parentage_1_1.done && (_a12 = _parentage_1.return)) _a12.call(_parentage_1); - } finally { - if (e_1) throw e_1.error; - } - } - } else { - _parentage.remove(this); - } - } - var initialFinalizer = this.initialTeardown; - if (isFunction(initialFinalizer)) { - try { - initialFinalizer(); - } catch (e12) { - errors = e12 instanceof UnsubscriptionError ? e12.errors : [e12]; - } - } - var _finalizers = this._finalizers; - if (_finalizers) { - this._finalizers = null; - try { - for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) { - var finalizer = _finalizers_1_1.value; - try { - execFinalizer(finalizer); - } catch (err) { - errors = errors !== null && errors !== void 0 ? errors : []; - if (err instanceof UnsubscriptionError) { - errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors)); - } else { - errors.push(err); - } - } - } - } catch (e_2_1) { - e_2 = { error: e_2_1 }; - } finally { - try { - if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1); - } finally { - if (e_2) throw e_2.error; - } - } - } - if (errors) { - throw new UnsubscriptionError(errors); - } - } - }; - Subscription2.prototype.add = function(teardown) { - var _a12; - if (teardown && teardown !== this) { - if (this.closed) { - execFinalizer(teardown); - } else { - if (teardown instanceof Subscription2) { - if (teardown.closed || teardown._hasParent(this)) { - return; - } - teardown._addParent(this); - } - (this._finalizers = (_a12 = this._finalizers) !== null && _a12 !== void 0 ? _a12 : []).push(teardown); - } - } - }; - Subscription2.prototype._hasParent = function(parent) { - var _parentage = this._parentage; - return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent); - }; - Subscription2.prototype._addParent = function(parent) { - var _parentage = this._parentage; - this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent; - }; - Subscription2.prototype._removeParent = function(parent) { - var _parentage = this._parentage; - if (_parentage === parent) { - this._parentage = null; - } else if (Array.isArray(_parentage)) { - arrRemove(_parentage, parent); - } - }; - Subscription2.prototype.remove = function(teardown) { - var _finalizers = this._finalizers; - _finalizers && arrRemove(_finalizers, teardown); - if (teardown instanceof Subscription2) { - teardown._removeParent(this); - } - }; - Subscription2.EMPTY = (function() { - var empty5 = new Subscription2(); - empty5.closed = true; - return empty5; - })(); - return Subscription2; - })(); - EMPTY_SUBSCRIPTION = Subscription.EMPTY; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js -var config; -var init_config = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/config.js"() { - config = { - onUnhandledError: null, - onStoppedNotification: null, - Promise: void 0, - useDeprecatedSynchronousErrorHandling: false, - useDeprecatedNextContext: false - }; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js -var timeoutProvider; -var init_timeoutProvider = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js"() { - init_tslib_es6(); - timeoutProvider = { - setTimeout: function(handler2, timeout2) { - var args = []; - for (var _i2 = 2; _i2 < arguments.length; _i2++) { - args[_i2 - 2] = arguments[_i2]; - } - var delegate = timeoutProvider.delegate; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) { - return delegate.setTimeout.apply(delegate, __spreadArray([handler2, timeout2], __read(args))); - } - return setTimeout.apply(void 0, __spreadArray([handler2, timeout2], __read(args))); - }, - clearTimeout: function(handle3) { - var delegate = timeoutProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle3); - }, - delegate: void 0 - }; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js -function reportUnhandledError(err) { - timeoutProvider.setTimeout(function() { - var onUnhandledError = config.onUnhandledError; - if (onUnhandledError) { - onUnhandledError(err); - } else { - throw err; - } - }); -} -var init_reportUnhandledError = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js"() { - init_config(); - init_timeoutProvider(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js -function noop() { -} -var init_noop = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/noop.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js -function errorNotification(error) { - return createNotification("E", void 0, error); -} -function nextNotification(value2) { - return createNotification("N", value2, void 0); -} -function createNotification(kind, value2, error) { - return { - kind, - value: value2, - error - }; -} -var COMPLETE_NOTIFICATION; -var init_NotificationFactories = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js"() { - COMPLETE_NOTIFICATION = (function() { - return createNotification("C", void 0, void 0); - })(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js -function errorContext(cb) { - if (config.useDeprecatedSynchronousErrorHandling) { - var isRoot = !context; - if (isRoot) { - context = { errorThrown: false, error: null }; - } - cb(); - if (isRoot) { - var _a12 = context, errorThrown = _a12.errorThrown, error = _a12.error; - context = null; - if (errorThrown) { - throw error; - } - } - } else { - cb(); - } -} -function captureError(err) { - if (config.useDeprecatedSynchronousErrorHandling && context) { - context.errorThrown = true; - context.error = err; - } -} -var context; -var init_errorContext = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/errorContext.js"() { - init_config(); - context = null; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js -function bind(fn, thisArg) { - return _bind.call(fn, thisArg); -} -function handleUnhandledError(error) { - if (config.useDeprecatedSynchronousErrorHandling) { - captureError(error); - } else { - reportUnhandledError(error); - } -} -function defaultErrorHandler(err) { - throw err; -} -function handleStoppedNotification(notification, subscriber) { - var onStoppedNotification = config.onStoppedNotification; - onStoppedNotification && timeoutProvider.setTimeout(function() { - return onStoppedNotification(notification, subscriber); - }); -} -var Subscriber, _bind, ConsumerObserver, SafeSubscriber, EMPTY_OBSERVER; -var init_Subscriber = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subscriber.js"() { - init_tslib_es6(); - init_isFunction(); - init_Subscription(); - init_config(); - init_reportUnhandledError(); - init_noop(); - init_NotificationFactories(); - init_timeoutProvider(); - init_errorContext(); - Subscriber = (function(_super) { - __extends(Subscriber2, _super); - function Subscriber2(destination) { - var _this = _super.call(this) || this; - _this.isStopped = false; - if (destination) { - _this.destination = destination; - if (isSubscription(destination)) { - destination.add(_this); - } - } else { - _this.destination = EMPTY_OBSERVER; - } - return _this; - } - Subscriber2.create = function(next2, error, complete) { - return new SafeSubscriber(next2, error, complete); - }; - Subscriber2.prototype.next = function(value2) { - if (this.isStopped) { - handleStoppedNotification(nextNotification(value2), this); - } else { - this._next(value2); - } - }; - Subscriber2.prototype.error = function(err) { - if (this.isStopped) { - handleStoppedNotification(errorNotification(err), this); - } else { - this.isStopped = true; - this._error(err); - } - }; - Subscriber2.prototype.complete = function() { - if (this.isStopped) { - handleStoppedNotification(COMPLETE_NOTIFICATION, this); - } else { - this.isStopped = true; - this._complete(); - } - }; - Subscriber2.prototype.unsubscribe = function() { - if (!this.closed) { - this.isStopped = true; - _super.prototype.unsubscribe.call(this); - this.destination = null; - } - }; - Subscriber2.prototype._next = function(value2) { - this.destination.next(value2); - }; - Subscriber2.prototype._error = function(err) { - try { - this.destination.error(err); - } finally { - this.unsubscribe(); - } - }; - Subscriber2.prototype._complete = function() { - try { - this.destination.complete(); - } finally { - this.unsubscribe(); - } - }; - return Subscriber2; - })(Subscription); - _bind = Function.prototype.bind; - ConsumerObserver = (function() { - function ConsumerObserver2(partialObserver) { - this.partialObserver = partialObserver; - } - ConsumerObserver2.prototype.next = function(value2) { - var partialObserver = this.partialObserver; - if (partialObserver.next) { - try { - partialObserver.next(value2); - } catch (error) { - handleUnhandledError(error); - } - } - }; - ConsumerObserver2.prototype.error = function(err) { - var partialObserver = this.partialObserver; - if (partialObserver.error) { - try { - partialObserver.error(err); - } catch (error) { - handleUnhandledError(error); - } - } else { - handleUnhandledError(err); - } - }; - ConsumerObserver2.prototype.complete = function() { - var partialObserver = this.partialObserver; - if (partialObserver.complete) { - try { - partialObserver.complete(); - } catch (error) { - handleUnhandledError(error); - } - } - }; - return ConsumerObserver2; - })(); - SafeSubscriber = (function(_super) { - __extends(SafeSubscriber2, _super); - function SafeSubscriber2(observerOrNext, error, complete) { - var _this = _super.call(this) || this; - var partialObserver; - if (isFunction(observerOrNext) || !observerOrNext) { - partialObserver = { - next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : void 0, - error: error !== null && error !== void 0 ? error : void 0, - complete: complete !== null && complete !== void 0 ? complete : void 0 - }; - } else { - var context_1; - if (_this && config.useDeprecatedNextContext) { - context_1 = Object.create(observerOrNext); - context_1.unsubscribe = function() { - return _this.unsubscribe(); - }; - partialObserver = { - next: observerOrNext.next && bind(observerOrNext.next, context_1), - error: observerOrNext.error && bind(observerOrNext.error, context_1), - complete: observerOrNext.complete && bind(observerOrNext.complete, context_1) - }; - } else { - partialObserver = observerOrNext; - } - } - _this.destination = new ConsumerObserver(partialObserver); - return _this; - } - return SafeSubscriber2; - })(Subscriber); - EMPTY_OBSERVER = { - closed: true, - next: noop, - error: defaultErrorHandler, - complete: noop - }; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js -var observable; -var init_observable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/observable.js"() { - observable = (function() { - return typeof Symbol === "function" && Symbol.observable || "@@observable"; - })(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js -function identity(x4) { - return x4; -} -var init_identity = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/identity.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js -function pipe() { - var fns = []; - for (var _i2 = 0; _i2 < arguments.length; _i2++) { - fns[_i2] = arguments[_i2]; - } - return pipeFromArray(fns); -} -function pipeFromArray(fns) { - if (fns.length === 0) { - return identity; - } - if (fns.length === 1) { - return fns[0]; - } - return function piped(input) { - return fns.reduce(function(prev, fn) { - return fn(prev); - }, input); - }; -} -var init_pipe = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/pipe.js"() { - init_identity(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js -function getPromiseCtor(promiseCtor) { - var _a12; - return (_a12 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a12 !== void 0 ? _a12 : Promise; -} -function isObserver(value2) { - return value2 && isFunction(value2.next) && isFunction(value2.error) && isFunction(value2.complete); -} -function isSubscriber(value2) { - return value2 && value2 instanceof Subscriber || isObserver(value2) && isSubscription(value2); -} -var Observable; -var init_Observable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Observable.js"() { - init_Subscriber(); - init_Subscription(); - init_observable(); - init_pipe(); - init_config(); - init_isFunction(); - init_errorContext(); - Observable = (function() { - function Observable2(subscribe2) { - if (subscribe2) { - this._subscribe = subscribe2; - } - } - Observable2.prototype.lift = function(operator) { - var observable2 = new Observable2(); - observable2.source = this; - observable2.operator = operator; - return observable2; - }; - Observable2.prototype.subscribe = function(observerOrNext, error, complete) { - var _this = this; - var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete); - errorContext(function() { - var _a12 = _this, operator = _a12.operator, source = _a12.source; - subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber)); - }); - return subscriber; - }; - Observable2.prototype._trySubscribe = function(sink) { - try { - return this._subscribe(sink); - } catch (err) { - sink.error(err); - } - }; - Observable2.prototype.forEach = function(next2, promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function(resolve2, reject) { - var subscriber = new SafeSubscriber({ - next: function(value2) { - try { - next2(value2); - } catch (err) { - reject(err); - subscriber.unsubscribe(); - } - }, - error: reject, - complete: resolve2 - }); - _this.subscribe(subscriber); - }); - }; - Observable2.prototype._subscribe = function(subscriber) { - var _a12; - return (_a12 = this.source) === null || _a12 === void 0 ? void 0 : _a12.subscribe(subscriber); - }; - Observable2.prototype[observable] = function() { - return this; - }; - Observable2.prototype.pipe = function() { - var operations = []; - for (var _i2 = 0; _i2 < arguments.length; _i2++) { - operations[_i2] = arguments[_i2]; - } - return pipeFromArray(operations)(this); - }; - Observable2.prototype.toPromise = function(promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function(resolve2, reject) { - var value2; - _this.subscribe(function(x4) { - return value2 = x4; - }, function(err) { - return reject(err); - }, function() { - return resolve2(value2); - }); - }); - }; - Observable2.create = function(subscribe2) { - return new Observable2(subscribe2); - }; - return Observable2; - })(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/lift.js -function hasLift(source) { - return isFunction(source === null || source === void 0 ? void 0 : source.lift); -} -function operate(init2) { - return function(source) { - if (hasLift(source)) { - return source.lift(function(liftedSource) { - try { - return init2(liftedSource, this); - } catch (err) { - this.error(err); - } - }); - } - throw new TypeError("Unable to lift unknown Observable type"); - }; -} -var init_lift = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/lift.js"() { - init_isFunction(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js -function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) { - return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize); -} -var OperatorSubscriber; -var init_OperatorSubscriber = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js"() { - init_tslib_es6(); - init_Subscriber(); - OperatorSubscriber = (function(_super) { - __extends(OperatorSubscriber2, _super); - function OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) { - var _this = _super.call(this, destination) || this; - _this.onFinalize = onFinalize; - _this.shouldUnsubscribe = shouldUnsubscribe; - _this._next = onNext ? function(value2) { - try { - onNext(value2); - } catch (err) { - destination.error(err); - } - } : _super.prototype._next; - _this._error = onError ? function(err) { - try { - onError(err); - } catch (err2) { - destination.error(err2); - } finally { - this.unsubscribe(); - } - } : _super.prototype._error; - _this._complete = onComplete ? function() { - try { - onComplete(); - } catch (err) { - destination.error(err); - } finally { - this.unsubscribe(); - } - } : _super.prototype._complete; - return _this; - } - OperatorSubscriber2.prototype.unsubscribe = function() { - var _a12; - if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { - var closed_1 = this.closed; - _super.prototype.unsubscribe.call(this); - !closed_1 && ((_a12 = this.onFinalize) === null || _a12 === void 0 ? void 0 : _a12.call(this)); - } - }; - return OperatorSubscriber2; - })(Subscriber); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/refCount.js -function refCount() { - return operate(function(source, subscriber) { - var connection = null; - source._refCount++; - var refCounter = createOperatorSubscriber(subscriber, void 0, void 0, void 0, function() { - if (!source || source._refCount <= 0 || 0 < --source._refCount) { - connection = null; - return; - } - var sharedConnection = source._connection; - var conn = connection; - connection = null; - if (sharedConnection && (!conn || sharedConnection === conn)) { - sharedConnection.unsubscribe(); - } - subscriber.unsubscribe(); - }); - source.subscribe(refCounter); - if (!refCounter.closed) { - connection = source.connect(); - } - }); -} -var init_refCount = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/refCount.js"() { - init_lift(); - init_OperatorSubscriber(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/ConnectableObservable.js -var ConnectableObservable; -var init_ConnectableObservable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/ConnectableObservable.js"() { - init_tslib_es6(); - init_Observable(); - init_Subscription(); - init_refCount(); - init_OperatorSubscriber(); - init_lift(); - ConnectableObservable = (function(_super) { - __extends(ConnectableObservable2, _super); - function ConnectableObservable2(source, subjectFactory) { - var _this = _super.call(this) || this; - _this.source = source; - _this.subjectFactory = subjectFactory; - _this._subject = null; - _this._refCount = 0; - _this._connection = null; - if (hasLift(source)) { - _this.lift = source.lift; - } - return _this; - } - ConnectableObservable2.prototype._subscribe = function(subscriber) { - return this.getSubject().subscribe(subscriber); - }; - ConnectableObservable2.prototype.getSubject = function() { - var subject = this._subject; - if (!subject || subject.isStopped) { - this._subject = this.subjectFactory(); - } - return this._subject; - }; - ConnectableObservable2.prototype._teardown = function() { - this._refCount = 0; - var _connection = this._connection; - this._subject = this._connection = null; - _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe(); - }; - ConnectableObservable2.prototype.connect = function() { - var _this = this; - var connection = this._connection; - if (!connection) { - connection = this._connection = new Subscription(); - var subject_1 = this.getSubject(); - connection.add(this.source.subscribe(createOperatorSubscriber(subject_1, void 0, function() { - _this._teardown(); - subject_1.complete(); - }, function(err) { - _this._teardown(); - subject_1.error(err); - }, function() { - return _this._teardown(); - }))); - if (connection.closed) { - this._connection = null; - connection = Subscription.EMPTY; - } - } - return connection; - }; - ConnectableObservable2.prototype.refCount = function() { - return refCount()(this); - }; - return ConnectableObservable2; - })(Observable); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/performanceTimestampProvider.js -var performanceTimestampProvider; -var init_performanceTimestampProvider = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/performanceTimestampProvider.js"() { - performanceTimestampProvider = { - now: function() { - return (performanceTimestampProvider.delegate || performance).now(); - }, - delegate: void 0 - }; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrameProvider.js -var animationFrameProvider; -var init_animationFrameProvider = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrameProvider.js"() { - init_tslib_es6(); - init_Subscription(); - animationFrameProvider = { - schedule: function(callback) { - var request = requestAnimationFrame; - var cancel = cancelAnimationFrame; - var delegate = animationFrameProvider.delegate; - if (delegate) { - request = delegate.requestAnimationFrame; - cancel = delegate.cancelAnimationFrame; - } - var handle3 = request(function(timestamp2) { - cancel = void 0; - callback(timestamp2); - }); - return new Subscription(function() { - return cancel === null || cancel === void 0 ? void 0 : cancel(handle3); - }); - }, - requestAnimationFrame: function() { - var args = []; - for (var _i2 = 0; _i2 < arguments.length; _i2++) { - args[_i2] = arguments[_i2]; - } - var delegate = animationFrameProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray([], __read(args))); - }, - cancelAnimationFrame: function() { - var args = []; - for (var _i2 = 0; _i2 < arguments.length; _i2++) { - args[_i2] = arguments[_i2]; - } - var delegate = animationFrameProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray([], __read(args))); - }, - delegate: void 0 - }; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/dom/animationFrames.js -function animationFrames(timestampProvider) { - return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES; -} -function animationFramesFactory(timestampProvider) { - return new Observable(function(subscriber) { - var provider = timestampProvider || performanceTimestampProvider; - var start = provider.now(); - var id = 0; - var run3 = function() { - if (!subscriber.closed) { - id = animationFrameProvider.requestAnimationFrame(function(timestamp2) { - id = 0; - var now2 = provider.now(); - subscriber.next({ - timestamp: timestampProvider ? now2 : timestamp2, - elapsed: now2 - start - }); - run3(); - }); - } - }; - run3(); - return function() { - if (id) { - animationFrameProvider.cancelAnimationFrame(id); - } - }; - }); -} -var DEFAULT_ANIMATION_FRAMES; -var init_animationFrames = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/dom/animationFrames.js"() { - init_Observable(); - init_performanceTimestampProvider(); - init_animationFrameProvider(); - DEFAULT_ANIMATION_FRAMES = animationFramesFactory(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js -var ObjectUnsubscribedError; -var init_ObjectUnsubscribedError = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js"() { - init_createErrorClass(); - ObjectUnsubscribedError = createErrorClass(function(_super) { - return function ObjectUnsubscribedErrorImpl() { - _super(this); - this.name = "ObjectUnsubscribedError"; - this.message = "object unsubscribed"; - }; - }); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subject.js -var Subject, AnonymousSubject; -var init_Subject = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Subject.js"() { - init_tslib_es6(); - init_Observable(); - init_Subscription(); - init_ObjectUnsubscribedError(); - init_arrRemove(); - init_errorContext(); - Subject = (function(_super) { - __extends(Subject2, _super); - function Subject2() { - var _this = _super.call(this) || this; - _this.closed = false; - _this.currentObservers = null; - _this.observers = []; - _this.isStopped = false; - _this.hasError = false; - _this.thrownError = null; - return _this; - } - Subject2.prototype.lift = function(operator) { - var subject = new AnonymousSubject(this, this); - subject.operator = operator; - return subject; - }; - Subject2.prototype._throwIfClosed = function() { - if (this.closed) { - throw new ObjectUnsubscribedError(); - } - }; - Subject2.prototype.next = function(value2) { - var _this = this; - errorContext(function() { - var e_1, _a12; - _this._throwIfClosed(); - if (!_this.isStopped) { - if (!_this.currentObservers) { - _this.currentObservers = Array.from(_this.observers); - } - try { - for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) { - var observer = _c.value; - observer.next(value2); - } - } catch (e_1_1) { - e_1 = { error: e_1_1 }; - } finally { - try { - if (_c && !_c.done && (_a12 = _b.return)) _a12.call(_b); - } finally { - if (e_1) throw e_1.error; - } - } - } - }); - }; - Subject2.prototype.error = function(err) { - var _this = this; - errorContext(function() { - _this._throwIfClosed(); - if (!_this.isStopped) { - _this.hasError = _this.isStopped = true; - _this.thrownError = err; - var observers = _this.observers; - while (observers.length) { - observers.shift().error(err); - } - } - }); - }; - Subject2.prototype.complete = function() { - var _this = this; - errorContext(function() { - _this._throwIfClosed(); - if (!_this.isStopped) { - _this.isStopped = true; - var observers = _this.observers; - while (observers.length) { - observers.shift().complete(); - } - } - }); - }; - Subject2.prototype.unsubscribe = function() { - this.isStopped = this.closed = true; - this.observers = this.currentObservers = null; - }; - Object.defineProperty(Subject2.prototype, "observed", { - get: function() { - var _a12; - return ((_a12 = this.observers) === null || _a12 === void 0 ? void 0 : _a12.length) > 0; - }, - enumerable: false, - configurable: true - }); - Subject2.prototype._trySubscribe = function(subscriber) { - this._throwIfClosed(); - return _super.prototype._trySubscribe.call(this, subscriber); - }; - Subject2.prototype._subscribe = function(subscriber) { - this._throwIfClosed(); - this._checkFinalizedStatuses(subscriber); - return this._innerSubscribe(subscriber); - }; - Subject2.prototype._innerSubscribe = function(subscriber) { - var _this = this; - var _a12 = this, hasError = _a12.hasError, isStopped = _a12.isStopped, observers = _a12.observers; - if (hasError || isStopped) { - return EMPTY_SUBSCRIPTION; - } - this.currentObservers = null; - observers.push(subscriber); - return new Subscription(function() { - _this.currentObservers = null; - arrRemove(observers, subscriber); - }); - }; - Subject2.prototype._checkFinalizedStatuses = function(subscriber) { - var _a12 = this, hasError = _a12.hasError, thrownError = _a12.thrownError, isStopped = _a12.isStopped; - if (hasError) { - subscriber.error(thrownError); - } else if (isStopped) { - subscriber.complete(); - } - }; - Subject2.prototype.asObservable = function() { - var observable2 = new Observable(); - observable2.source = this; - return observable2; - }; - Subject2.create = function(destination, source) { - return new AnonymousSubject(destination, source); - }; - return Subject2; - })(Observable); - AnonymousSubject = (function(_super) { - __extends(AnonymousSubject2, _super); - function AnonymousSubject2(destination, source) { - var _this = _super.call(this) || this; - _this.destination = destination; - _this.source = source; - return _this; - } - AnonymousSubject2.prototype.next = function(value2) { - var _a12, _b; - (_b = (_a12 = this.destination) === null || _a12 === void 0 ? void 0 : _a12.next) === null || _b === void 0 ? void 0 : _b.call(_a12, value2); - }; - AnonymousSubject2.prototype.error = function(err) { - var _a12, _b; - (_b = (_a12 = this.destination) === null || _a12 === void 0 ? void 0 : _a12.error) === null || _b === void 0 ? void 0 : _b.call(_a12, err); - }; - AnonymousSubject2.prototype.complete = function() { - var _a12, _b; - (_b = (_a12 = this.destination) === null || _a12 === void 0 ? void 0 : _a12.complete) === null || _b === void 0 ? void 0 : _b.call(_a12); - }; - AnonymousSubject2.prototype._subscribe = function(subscriber) { - var _a12, _b; - return (_b = (_a12 = this.source) === null || _a12 === void 0 ? void 0 : _a12.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION; - }; - return AnonymousSubject2; - })(Subject); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js -var BehaviorSubject; -var init_BehaviorSubject = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js"() { - init_tslib_es6(); - init_Subject(); - BehaviorSubject = (function(_super) { - __extends(BehaviorSubject2, _super); - function BehaviorSubject2(_value) { - var _this = _super.call(this) || this; - _this._value = _value; - return _this; - } - Object.defineProperty(BehaviorSubject2.prototype, "value", { - get: function() { - return this.getValue(); - }, - enumerable: false, - configurable: true - }); - BehaviorSubject2.prototype._subscribe = function(subscriber) { - var subscription = _super.prototype._subscribe.call(this, subscriber); - !subscription.closed && subscriber.next(this._value); - return subscription; - }; - BehaviorSubject2.prototype.getValue = function() { - var _a12 = this, hasError = _a12.hasError, thrownError = _a12.thrownError, _value = _a12._value; - if (hasError) { - throw thrownError; - } - this._throwIfClosed(); - return _value; - }; - BehaviorSubject2.prototype.next = function(value2) { - _super.prototype.next.call(this, this._value = value2); - }; - return BehaviorSubject2; - })(Subject); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js -var dateTimestampProvider; -var init_dateTimestampProvider = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js"() { - dateTimestampProvider = { - now: function() { - return (dateTimestampProvider.delegate || Date).now(); - }, - delegate: void 0 - }; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js -var ReplaySubject; -var init_ReplaySubject = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js"() { - init_tslib_es6(); - init_Subject(); - init_dateTimestampProvider(); - ReplaySubject = (function(_super) { - __extends(ReplaySubject2, _super); - function ReplaySubject2(_bufferSize, _windowTime, _timestampProvider) { - if (_bufferSize === void 0) { - _bufferSize = Infinity; - } - if (_windowTime === void 0) { - _windowTime = Infinity; - } - if (_timestampProvider === void 0) { - _timestampProvider = dateTimestampProvider; - } - var _this = _super.call(this) || this; - _this._bufferSize = _bufferSize; - _this._windowTime = _windowTime; - _this._timestampProvider = _timestampProvider; - _this._buffer = []; - _this._infiniteTimeWindow = true; - _this._infiniteTimeWindow = _windowTime === Infinity; - _this._bufferSize = Math.max(1, _bufferSize); - _this._windowTime = Math.max(1, _windowTime); - return _this; - } - ReplaySubject2.prototype.next = function(value2) { - var _a12 = this, isStopped = _a12.isStopped, _buffer = _a12._buffer, _infiniteTimeWindow = _a12._infiniteTimeWindow, _timestampProvider = _a12._timestampProvider, _windowTime = _a12._windowTime; - if (!isStopped) { - _buffer.push(value2); - !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime); - } - this._trimBuffer(); - _super.prototype.next.call(this, value2); - }; - ReplaySubject2.prototype._subscribe = function(subscriber) { - this._throwIfClosed(); - this._trimBuffer(); - var subscription = this._innerSubscribe(subscriber); - var _a12 = this, _infiniteTimeWindow = _a12._infiniteTimeWindow, _buffer = _a12._buffer; - var copy2 = _buffer.slice(); - for (var i12 = 0; i12 < copy2.length && !subscriber.closed; i12 += _infiniteTimeWindow ? 1 : 2) { - subscriber.next(copy2[i12]); - } - this._checkFinalizedStatuses(subscriber); - return subscription; - }; - ReplaySubject2.prototype._trimBuffer = function() { - var _a12 = this, _bufferSize = _a12._bufferSize, _timestampProvider = _a12._timestampProvider, _buffer = _a12._buffer, _infiniteTimeWindow = _a12._infiniteTimeWindow; - var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize; - _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize); - if (!_infiniteTimeWindow) { - var now2 = _timestampProvider.now(); - var last3 = 0; - for (var i12 = 1; i12 < _buffer.length && _buffer[i12] <= now2; i12 += 2) { - last3 = i12; - } - last3 && _buffer.splice(0, last3 + 1); - } - }; - return ReplaySubject2; - })(Subject); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/AsyncSubject.js -var AsyncSubject; -var init_AsyncSubject = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/AsyncSubject.js"() { - init_tslib_es6(); - init_Subject(); - AsyncSubject = (function(_super) { - __extends(AsyncSubject2, _super); - function AsyncSubject2() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this._value = null; - _this._hasValue = false; - _this._isComplete = false; - return _this; - } - AsyncSubject2.prototype._checkFinalizedStatuses = function(subscriber) { - var _a12 = this, hasError = _a12.hasError, _hasValue = _a12._hasValue, _value = _a12._value, thrownError = _a12.thrownError, isStopped = _a12.isStopped, _isComplete = _a12._isComplete; - if (hasError) { - subscriber.error(thrownError); - } else if (isStopped || _isComplete) { - _hasValue && subscriber.next(_value); - subscriber.complete(); - } - }; - AsyncSubject2.prototype.next = function(value2) { - if (!this.isStopped) { - this._value = value2; - this._hasValue = true; - } - }; - AsyncSubject2.prototype.complete = function() { - var _a12 = this, _hasValue = _a12._hasValue, _value = _a12._value, _isComplete = _a12._isComplete; - if (!_isComplete) { - this._isComplete = true; - _hasValue && _super.prototype.next.call(this, _value); - _super.prototype.complete.call(this); - } - }; - return AsyncSubject2; - })(Subject); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js -var Action; -var init_Action = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js"() { - init_tslib_es6(); - init_Subscription(); - Action = (function(_super) { - __extends(Action2, _super); - function Action2(scheduler, work) { - return _super.call(this) || this; - } - Action2.prototype.schedule = function(state2, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - return this; - }; - return Action2; - })(Subscription); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js -var intervalProvider; -var init_intervalProvider = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js"() { - init_tslib_es6(); - intervalProvider = { - setInterval: function(handler2, timeout2) { - var args = []; - for (var _i2 = 2; _i2 < arguments.length; _i2++) { - args[_i2 - 2] = arguments[_i2]; - } - var delegate = intervalProvider.delegate; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) { - return delegate.setInterval.apply(delegate, __spreadArray([handler2, timeout2], __read(args))); - } - return setInterval.apply(void 0, __spreadArray([handler2, timeout2], __read(args))); - }, - clearInterval: function(handle3) { - var delegate = intervalProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle3); - }, - delegate: void 0 - }; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js -var AsyncAction; -var init_AsyncAction = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js"() { - init_tslib_es6(); - init_Action(); - init_intervalProvider(); - init_arrRemove(); - AsyncAction = (function(_super) { - __extends(AsyncAction2, _super); - function AsyncAction2(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - _this.pending = false; - return _this; - } - AsyncAction2.prototype.schedule = function(state2, delay2) { - var _a12; - if (delay2 === void 0) { - delay2 = 0; - } - if (this.closed) { - return this; - } - this.state = state2; - var id = this.id; - var scheduler = this.scheduler; - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, delay2); - } - this.pending = true; - this.delay = delay2; - this.id = (_a12 = this.id) !== null && _a12 !== void 0 ? _a12 : this.requestAsyncId(scheduler, this.id, delay2); - return this; - }; - AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay2); - }; - AsyncAction2.prototype.recycleAsyncId = function(_scheduler, id, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - if (delay2 != null && this.delay === delay2 && this.pending === false) { - return id; - } - if (id != null) { - intervalProvider.clearInterval(id); - } - return void 0; - }; - AsyncAction2.prototype.execute = function(state2, delay2) { - if (this.closed) { - return new Error("executing a cancelled action"); - } - this.pending = false; - var error = this._execute(state2, delay2); - if (error) { - return error; - } else if (this.pending === false && this.id != null) { - this.id = this.recycleAsyncId(this.scheduler, this.id, null); - } - }; - AsyncAction2.prototype._execute = function(state2, _delay) { - var errored = false; - var errorValue; - try { - this.work(state2); - } catch (e12) { - errored = true; - errorValue = e12 ? e12 : new Error("Scheduled action threw falsy error"); - } - if (errored) { - this.unsubscribe(); - return errorValue; - } - }; - AsyncAction2.prototype.unsubscribe = function() { - if (!this.closed) { - var _a12 = this, id = _a12.id, scheduler = _a12.scheduler; - var actions = scheduler.actions; - this.work = this.state = this.scheduler = null; - this.pending = false; - arrRemove(actions, this); - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, null); - } - this.delay = null; - _super.prototype.unsubscribe.call(this); - } - }; - return AsyncAction2; - })(Action); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/Immediate.js -function findAndClearHandle(handle3) { - if (handle3 in activeHandles) { - delete activeHandles[handle3]; - return true; - } - return false; -} -var nextHandle, resolved, activeHandles, Immediate, TestTools; -var init_Immediate = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/Immediate.js"() { - nextHandle = 1; - activeHandles = {}; - Immediate = { - setImmediate: function(cb) { - var handle3 = nextHandle++; - activeHandles[handle3] = true; - if (!resolved) { - resolved = Promise.resolve(); - } - resolved.then(function() { - return findAndClearHandle(handle3) && cb(); - }); - return handle3; - }, - clearImmediate: function(handle3) { - findAndClearHandle(handle3); - } - }; - TestTools = { - pending: function() { - return Object.keys(activeHandles).length; - } - }; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js -var setImmediate, clearImmediate, immediateProvider; -var init_immediateProvider = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js"() { - init_tslib_es6(); - init_Immediate(); - setImmediate = Immediate.setImmediate, clearImmediate = Immediate.clearImmediate; - immediateProvider = { - setImmediate: function() { - var args = []; - for (var _i2 = 0; _i2 < arguments.length; _i2++) { - args[_i2] = arguments[_i2]; - } - var delegate = immediateProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate).apply(void 0, __spreadArray([], __read(args))); - }, - clearImmediate: function(handle3) { - var delegate = immediateProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle3); - }, - delegate: void 0 - }; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js -var AsapAction; -var init_AsapAction = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js"() { - init_tslib_es6(); - init_AsyncAction(); - init_immediateProvider(); - AsapAction = (function(_super) { - __extends(AsapAction2, _super); - function AsapAction2(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - AsapAction2.prototype.requestAsyncId = function(scheduler, id, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - if (delay2 !== null && delay2 > 0) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay2); - } - scheduler.actions.push(this); - return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, void 0))); - }; - AsapAction2.prototype.recycleAsyncId = function(scheduler, id, delay2) { - var _a12; - if (delay2 === void 0) { - delay2 = 0; - } - if (delay2 != null ? delay2 > 0 : this.delay > 0) { - return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay2); - } - var actions = scheduler.actions; - if (id != null && ((_a12 = actions[actions.length - 1]) === null || _a12 === void 0 ? void 0 : _a12.id) !== id) { - immediateProvider.clearImmediate(id); - if (scheduler._scheduled === id) { - scheduler._scheduled = void 0; - } - } - return void 0; - }; - return AsapAction2; - })(AsyncAction); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Scheduler.js -var Scheduler; -var init_Scheduler = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Scheduler.js"() { - init_dateTimestampProvider(); - Scheduler = (function() { - function Scheduler2(schedulerActionCtor, now2) { - if (now2 === void 0) { - now2 = Scheduler2.now; - } - this.schedulerActionCtor = schedulerActionCtor; - this.now = now2; - } - Scheduler2.prototype.schedule = function(work, delay2, state2) { - if (delay2 === void 0) { - delay2 = 0; - } - return new this.schedulerActionCtor(this, work).schedule(state2, delay2); - }; - Scheduler2.now = dateTimestampProvider.now; - return Scheduler2; - })(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js -var AsyncScheduler; -var init_AsyncScheduler = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js"() { - init_tslib_es6(); - init_Scheduler(); - AsyncScheduler = (function(_super) { - __extends(AsyncScheduler2, _super); - function AsyncScheduler2(SchedulerAction, now2) { - if (now2 === void 0) { - now2 = Scheduler.now; - } - var _this = _super.call(this, SchedulerAction, now2) || this; - _this.actions = []; - _this._active = false; - return _this; - } - AsyncScheduler2.prototype.flush = function(action) { - var actions = this.actions; - if (this._active) { - actions.push(action); - return; - } - var error; - this._active = true; - do { - if (error = action.execute(action.state, action.delay)) { - break; - } - } while (action = actions.shift()); - this._active = false; - if (error) { - while (action = actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - return AsyncScheduler2; - })(Scheduler); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js -var AsapScheduler; -var init_AsapScheduler = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js"() { - init_tslib_es6(); - init_AsyncScheduler(); - AsapScheduler = (function(_super) { - __extends(AsapScheduler2, _super); - function AsapScheduler2() { - return _super !== null && _super.apply(this, arguments) || this; - } - AsapScheduler2.prototype.flush = function(action) { - this._active = true; - var flushId = this._scheduled; - this._scheduled = void 0; - var actions = this.actions; - var error; - action = action || actions.shift(); - do { - if (error = action.execute(action.state, action.delay)) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - this._active = false; - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - return AsapScheduler2; - })(AsyncScheduler); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/asap.js -var asapScheduler, asap; -var init_asap = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/asap.js"() { - init_AsapAction(); - init_AsapScheduler(); - asapScheduler = new AsapScheduler(AsapAction); - asap = asapScheduler; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/async.js -var asyncScheduler, async; -var init_async = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/async.js"() { - init_AsyncAction(); - init_AsyncScheduler(); - asyncScheduler = new AsyncScheduler(AsyncAction); - async = asyncScheduler; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/QueueAction.js -var QueueAction; -var init_QueueAction = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/QueueAction.js"() { - init_tslib_es6(); - init_AsyncAction(); - QueueAction = (function(_super) { - __extends(QueueAction2, _super); - function QueueAction2(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - QueueAction2.prototype.schedule = function(state2, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - if (delay2 > 0) { - return _super.prototype.schedule.call(this, state2, delay2); - } - this.delay = delay2; - this.state = state2; - this.scheduler.flush(this); - return this; - }; - QueueAction2.prototype.execute = function(state2, delay2) { - return delay2 > 0 || this.closed ? _super.prototype.execute.call(this, state2, delay2) : this._execute(state2, delay2); - }; - QueueAction2.prototype.requestAsyncId = function(scheduler, id, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - if (delay2 != null && delay2 > 0 || delay2 == null && this.delay > 0) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay2); - } - scheduler.flush(this); - return 0; - }; - return QueueAction2; - })(AsyncAction); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/QueueScheduler.js -var QueueScheduler; -var init_QueueScheduler = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/QueueScheduler.js"() { - init_tslib_es6(); - init_AsyncScheduler(); - QueueScheduler = (function(_super) { - __extends(QueueScheduler2, _super); - function QueueScheduler2() { - return _super !== null && _super.apply(this, arguments) || this; - } - return QueueScheduler2; - })(AsyncScheduler); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/queue.js -var queueScheduler, queue; -var init_queue = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/queue.js"() { - init_QueueAction(); - init_QueueScheduler(); - queueScheduler = new QueueScheduler(QueueAction); - queue = queueScheduler; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameAction.js -var AnimationFrameAction; -var init_AnimationFrameAction = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameAction.js"() { - init_tslib_es6(); - init_AsyncAction(); - init_animationFrameProvider(); - AnimationFrameAction = (function(_super) { - __extends(AnimationFrameAction2, _super); - function AnimationFrameAction2(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - AnimationFrameAction2.prototype.requestAsyncId = function(scheduler, id, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - if (delay2 !== null && delay2 > 0) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay2); - } - scheduler.actions.push(this); - return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(function() { - return scheduler.flush(void 0); - })); - }; - AnimationFrameAction2.prototype.recycleAsyncId = function(scheduler, id, delay2) { - var _a12; - if (delay2 === void 0) { - delay2 = 0; - } - if (delay2 != null ? delay2 > 0 : this.delay > 0) { - return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay2); - } - var actions = scheduler.actions; - if (id != null && id === scheduler._scheduled && ((_a12 = actions[actions.length - 1]) === null || _a12 === void 0 ? void 0 : _a12.id) !== id) { - animationFrameProvider.cancelAnimationFrame(id); - scheduler._scheduled = void 0; - } - return void 0; - }; - return AnimationFrameAction2; - })(AsyncAction); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameScheduler.js -var AnimationFrameScheduler; -var init_AnimationFrameScheduler = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameScheduler.js"() { - init_tslib_es6(); - init_AsyncScheduler(); - AnimationFrameScheduler = (function(_super) { - __extends(AnimationFrameScheduler2, _super); - function AnimationFrameScheduler2() { - return _super !== null && _super.apply(this, arguments) || this; - } - AnimationFrameScheduler2.prototype.flush = function(action) { - this._active = true; - var flushId; - if (action) { - flushId = action.id; - } else { - flushId = this._scheduled; - this._scheduled = void 0; - } - var actions = this.actions; - var error; - action = action || actions.shift(); - do { - if (error = action.execute(action.state, action.delay)) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - this._active = false; - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - return AnimationFrameScheduler2; - })(AsyncScheduler); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrame.js -var animationFrameScheduler, animationFrame; -var init_animationFrame = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrame.js"() { - init_AnimationFrameAction(); - init_AnimationFrameScheduler(); - animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction); - animationFrame = animationFrameScheduler; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/VirtualTimeScheduler.js -var VirtualTimeScheduler, VirtualAction; -var init_VirtualTimeScheduler = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduler/VirtualTimeScheduler.js"() { - init_tslib_es6(); - init_AsyncAction(); - init_Subscription(); - init_AsyncScheduler(); - VirtualTimeScheduler = (function(_super) { - __extends(VirtualTimeScheduler2, _super); - function VirtualTimeScheduler2(schedulerActionCtor, maxFrames) { - if (schedulerActionCtor === void 0) { - schedulerActionCtor = VirtualAction; - } - if (maxFrames === void 0) { - maxFrames = Infinity; - } - var _this = _super.call(this, schedulerActionCtor, function() { - return _this.frame; - }) || this; - _this.maxFrames = maxFrames; - _this.frame = 0; - _this.index = -1; - return _this; - } - VirtualTimeScheduler2.prototype.flush = function() { - var _a12 = this, actions = _a12.actions, maxFrames = _a12.maxFrames; - var error; - var action; - while ((action = actions[0]) && action.delay <= maxFrames) { - actions.shift(); - this.frame = action.delay; - if (error = action.execute(action.state, action.delay)) { - break; - } - } - if (error) { - while (action = actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - VirtualTimeScheduler2.frameTimeFactor = 10; - return VirtualTimeScheduler2; - })(AsyncScheduler); - VirtualAction = (function(_super) { - __extends(VirtualAction2, _super); - function VirtualAction2(scheduler, work, index3) { - if (index3 === void 0) { - index3 = scheduler.index += 1; - } - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - _this.index = index3; - _this.active = true; - _this.index = scheduler.index = index3; - return _this; - } - VirtualAction2.prototype.schedule = function(state2, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - if (Number.isFinite(delay2)) { - if (!this.id) { - return _super.prototype.schedule.call(this, state2, delay2); - } - this.active = false; - var action = new VirtualAction2(this.scheduler, this.work); - this.add(action); - return action.schedule(state2, delay2); - } else { - return Subscription.EMPTY; - } - }; - VirtualAction2.prototype.requestAsyncId = function(scheduler, id, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - this.delay = scheduler.frame + delay2; - var actions = scheduler.actions; - actions.push(this); - actions.sort(VirtualAction2.sortActions); - return 1; - }; - VirtualAction2.prototype.recycleAsyncId = function(scheduler, id, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - return void 0; - }; - VirtualAction2.prototype._execute = function(state2, delay2) { - if (this.active === true) { - return _super.prototype._execute.call(this, state2, delay2); - } - }; - VirtualAction2.sortActions = function(a6, b6) { - if (a6.delay === b6.delay) { - if (a6.index === b6.index) { - return 0; - } else if (a6.index > b6.index) { - return 1; - } else { - return -1; - } - } else if (a6.delay > b6.delay) { - return 1; - } else { - return -1; - } - }; - return VirtualAction2; - })(AsyncAction); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/empty.js -function empty(scheduler) { - return scheduler ? emptyScheduled(scheduler) : EMPTY; -} -function emptyScheduled(scheduler) { - return new Observable(function(subscriber) { - return scheduler.schedule(function() { - return subscriber.complete(); - }); - }); -} -var EMPTY; -var init_empty = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/empty.js"() { - init_Observable(); - EMPTY = new Observable(function(subscriber) { - return subscriber.complete(); - }); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isScheduler.js -function isScheduler(value2) { - return value2 && isFunction(value2.schedule); -} -var init_isScheduler = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isScheduler.js"() { - init_isFunction(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/args.js -function last(arr) { - return arr[arr.length - 1]; -} -function popResultSelector(args) { - return isFunction(last(args)) ? args.pop() : void 0; -} -function popScheduler(args) { - return isScheduler(last(args)) ? args.pop() : void 0; -} -function popNumber(args, defaultValue) { - return typeof last(args) === "number" ? args.pop() : defaultValue; -} -var init_args = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/args.js"() { - init_isFunction(); - init_isScheduler(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js -var isArrayLike; -var init_isArrayLike = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js"() { - isArrayLike = (function(x4) { - return x4 && typeof x4.length === "number" && typeof x4 !== "function"; - }); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isPromise.js -function isPromise(value2) { - return isFunction(value2 === null || value2 === void 0 ? void 0 : value2.then); -} -var init_isPromise = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isPromise.js"() { - init_isFunction(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js -function isInteropObservable(input) { - return isFunction(input[observable]); -} -var init_isInteropObservable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js"() { - init_observable(); - init_isFunction(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js -function isAsyncIterable(obj) { - return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]); -} -var init_isAsyncIterable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js"() { - init_isFunction(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js -function createInvalidObservableTypeError(input) { - return new TypeError("You provided " + (input !== null && typeof input === "object" ? "an invalid object" : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); -} -var init_throwUnobservableError = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js -function getSymbolIterator() { - if (typeof Symbol !== "function" || !Symbol.iterator) { - return "@@iterator"; - } - return Symbol.iterator; -} -var iterator; -var init_iterator = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js"() { - iterator = getSymbolIterator(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isIterable.js -function isIterable(input) { - return isFunction(input === null || input === void 0 ? void 0 : input[iterator]); -} -var init_isIterable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isIterable.js"() { - init_iterator(); - init_isFunction(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js -function readableStreamLikeToAsyncGenerator(readableStream) { - return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() { - var reader, _a12, value2, done; - return __generator(this, function(_b) { - switch (_b.label) { - case 0: - reader = readableStream.getReader(); - _b.label = 1; - case 1: - _b.trys.push([1, , 9, 10]); - _b.label = 2; - case 2: - if (false) return [3, 8]; - return [4, __await(reader.read())]; - case 3: - _a12 = _b.sent(), value2 = _a12.value, done = _a12.done; - if (!done) return [3, 5]; - return [4, __await(void 0)]; - case 4: - return [2, _b.sent()]; - case 5: - return [4, __await(value2)]; - case 6: - return [4, _b.sent()]; - case 7: - _b.sent(); - return [3, 2]; - case 8: - return [3, 10]; - case 9: - reader.releaseLock(); - return [7]; - case 10: - return [2]; - } - }); - }); -} -function isReadableStreamLike(obj) { - return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader); -} -var init_isReadableStreamLike = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js"() { - init_tslib_es6(); - init_isFunction(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js -function innerFrom(input) { - if (input instanceof Observable) { - return input; - } - if (input != null) { - if (isInteropObservable(input)) { - return fromInteropObservable(input); - } - if (isArrayLike(input)) { - return fromArrayLike(input); - } - if (isPromise(input)) { - return fromPromise(input); - } - if (isAsyncIterable(input)) { - return fromAsyncIterable(input); - } - if (isIterable(input)) { - return fromIterable(input); - } - if (isReadableStreamLike(input)) { - return fromReadableStreamLike(input); - } - } - throw createInvalidObservableTypeError(input); -} -function fromInteropObservable(obj) { - return new Observable(function(subscriber) { - var obs = obj[observable](); - if (isFunction(obs.subscribe)) { - return obs.subscribe(subscriber); - } - throw new TypeError("Provided object does not correctly implement Symbol.observable"); - }); -} -function fromArrayLike(array) { - return new Observable(function(subscriber) { - for (var i12 = 0; i12 < array.length && !subscriber.closed; i12++) { - subscriber.next(array[i12]); - } - subscriber.complete(); - }); -} -function fromPromise(promise) { - return new Observable(function(subscriber) { - promise.then(function(value2) { - if (!subscriber.closed) { - subscriber.next(value2); - subscriber.complete(); - } - }, function(err) { - return subscriber.error(err); - }).then(null, reportUnhandledError); - }); -} -function fromIterable(iterable) { - return new Observable(function(subscriber) { - var e_1, _a12; - try { - for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) { - var value2 = iterable_1_1.value; - subscriber.next(value2); - if (subscriber.closed) { - return; - } - } - } catch (e_1_1) { - e_1 = { error: e_1_1 }; - } finally { - try { - if (iterable_1_1 && !iterable_1_1.done && (_a12 = iterable_1.return)) _a12.call(iterable_1); - } finally { - if (e_1) throw e_1.error; - } - } - subscriber.complete(); - }); -} -function fromAsyncIterable(asyncIterable) { - return new Observable(function(subscriber) { - process2(asyncIterable, subscriber).catch(function(err) { - return subscriber.error(err); - }); - }); -} -function fromReadableStreamLike(readableStream) { - return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream)); -} -function process2(asyncIterable, subscriber) { - var asyncIterable_1, asyncIterable_1_1; - var e_2, _a12; - return __awaiter(this, void 0, void 0, function() { - var value2, e_2_1; - return __generator(this, function(_b) { - switch (_b.label) { - case 0: - _b.trys.push([0, 5, 6, 11]); - asyncIterable_1 = __asyncValues(asyncIterable); - _b.label = 1; - case 1: - return [4, asyncIterable_1.next()]; - case 2: - if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done)) return [3, 4]; - value2 = asyncIterable_1_1.value; - subscriber.next(value2); - if (subscriber.closed) { - return [2]; - } - _b.label = 3; - case 3: - return [3, 1]; - case 4: - return [3, 11]; - case 5: - e_2_1 = _b.sent(); - e_2 = { error: e_2_1 }; - return [3, 11]; - case 6: - _b.trys.push([6, , 9, 10]); - if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a12 = asyncIterable_1.return))) return [3, 8]; - return [4, _a12.call(asyncIterable_1)]; - case 7: - _b.sent(); - _b.label = 8; - case 8: - return [3, 10]; - case 9: - if (e_2) throw e_2.error; - return [7]; - case 10: - return [7]; - case 11: - subscriber.complete(); - return [2]; - } - }); - }); -} -var init_innerFrom = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js"() { - init_tslib_es6(); - init_isArrayLike(); - init_isPromise(); - init_Observable(); - init_isInteropObservable(); - init_isAsyncIterable(); - init_throwUnobservableError(); - init_isIterable(); - init_isReadableStreamLike(); - init_isFunction(); - init_reportUnhandledError(); - init_observable(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js -function executeSchedule(parentSubscription, scheduler, work, delay2, repeat3) { - if (delay2 === void 0) { - delay2 = 0; - } - if (repeat3 === void 0) { - repeat3 = false; - } - var scheduleSubscription = scheduler.schedule(function() { - work(); - if (repeat3) { - parentSubscription.add(this.schedule(null, delay2)); - } else { - this.unsubscribe(); - } - }, delay2); - parentSubscription.add(scheduleSubscription); - if (!repeat3) { - return scheduleSubscription; - } -} -var init_executeSchedule = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js -function observeOn(scheduler, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - return operate(function(source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, function(value2) { - return executeSchedule(subscriber, scheduler, function() { - return subscriber.next(value2); - }, delay2); - }, function() { - return executeSchedule(subscriber, scheduler, function() { - return subscriber.complete(); - }, delay2); - }, function(err) { - return executeSchedule(subscriber, scheduler, function() { - return subscriber.error(err); - }, delay2); - })); - }); -} -var init_observeOn = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js"() { - init_executeSchedule(); - init_lift(); - init_OperatorSubscriber(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js -function subscribeOn(scheduler, delay2) { - if (delay2 === void 0) { - delay2 = 0; - } - return operate(function(source, subscriber) { - subscriber.add(scheduler.schedule(function() { - return source.subscribe(subscriber); - }, delay2)); - }); -} -var init_subscribeOn = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js"() { - init_lift(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js -function scheduleObservable(input, scheduler) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); -} -var init_scheduleObservable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js"() { - init_innerFrom(); - init_observeOn(); - init_subscribeOn(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js -function schedulePromise(input, scheduler) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); -} -var init_schedulePromise = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js"() { - init_innerFrom(); - init_observeOn(); - init_subscribeOn(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js -function scheduleArray(input, scheduler) { - return new Observable(function(subscriber) { - var i12 = 0; - return scheduler.schedule(function() { - if (i12 === input.length) { - subscriber.complete(); - } else { - subscriber.next(input[i12++]); - if (!subscriber.closed) { - this.schedule(); - } - } - }); - }); -} -var init_scheduleArray = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js"() { - init_Observable(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js -function scheduleIterable(input, scheduler) { - return new Observable(function(subscriber) { - var iterator2; - executeSchedule(subscriber, scheduler, function() { - iterator2 = input[iterator](); - executeSchedule(subscriber, scheduler, function() { - var _a12; - var value2; - var done; - try { - _a12 = iterator2.next(), value2 = _a12.value, done = _a12.done; - } catch (err) { - subscriber.error(err); - return; - } - if (done) { - subscriber.complete(); - } else { - subscriber.next(value2); - } - }, 0, true); - }); - return function() { - return isFunction(iterator2 === null || iterator2 === void 0 ? void 0 : iterator2.return) && iterator2.return(); - }; - }); -} -var init_scheduleIterable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js"() { - init_Observable(); - init_iterator(); - init_isFunction(); - init_executeSchedule(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js -function scheduleAsyncIterable(input, scheduler) { - if (!input) { - throw new Error("Iterable cannot be null"); - } - return new Observable(function(subscriber) { - executeSchedule(subscriber, scheduler, function() { - var iterator2 = input[Symbol.asyncIterator](); - executeSchedule(subscriber, scheduler, function() { - iterator2.next().then(function(result) { - if (result.done) { - subscriber.complete(); - } else { - subscriber.next(result.value); - } - }); - }, 0, true); - }); - }); -} -var init_scheduleAsyncIterable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js"() { - init_Observable(); - init_executeSchedule(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js -function scheduleReadableStreamLike(input, scheduler) { - return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler); -} -var init_scheduleReadableStreamLike = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js"() { - init_scheduleAsyncIterable(); - init_isReadableStreamLike(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js -function scheduled(input, scheduler) { - if (input != null) { - if (isInteropObservable(input)) { - return scheduleObservable(input, scheduler); - } - if (isArrayLike(input)) { - return scheduleArray(input, scheduler); - } - if (isPromise(input)) { - return schedulePromise(input, scheduler); - } - if (isAsyncIterable(input)) { - return scheduleAsyncIterable(input, scheduler); - } - if (isIterable(input)) { - return scheduleIterable(input, scheduler); - } - if (isReadableStreamLike(input)) { - return scheduleReadableStreamLike(input, scheduler); - } - } - throw createInvalidObservableTypeError(input); -} -var init_scheduled = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js"() { - init_scheduleObservable(); - init_schedulePromise(); - init_scheduleArray(); - init_scheduleIterable(); - init_scheduleAsyncIterable(); - init_isInteropObservable(); - init_isPromise(); - init_isArrayLike(); - init_isIterable(); - init_isAsyncIterable(); - init_throwUnobservableError(); - init_isReadableStreamLike(); - init_scheduleReadableStreamLike(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/from.js -function from(input, scheduler) { - return scheduler ? scheduled(input, scheduler) : innerFrom(input); -} -var init_from = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/from.js"() { - init_scheduled(); - init_innerFrom(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/of.js -function of() { - var args = []; - for (var _i2 = 0; _i2 < arguments.length; _i2++) { - args[_i2] = arguments[_i2]; - } - var scheduler = popScheduler(args); - return from(args, scheduler); -} -var init_of = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/of.js"() { - init_args(); - init_from(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/throwError.js -function throwError(errorOrErrorFactory, scheduler) { - var errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function() { - return errorOrErrorFactory; - }; - var init2 = function(subscriber) { - return subscriber.error(errorFactory()); - }; - return new Observable(scheduler ? function(subscriber) { - return scheduler.schedule(init2, 0, subscriber); - } : init2); -} -var init_throwError = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/throwError.js"() { - init_Observable(); - init_isFunction(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Notification.js -function observeNotification(notification, observer) { - var _a12, _b, _c; - var _d = notification, kind = _d.kind, value2 = _d.value, error = _d.error; - if (typeof kind !== "string") { - throw new TypeError('Invalid notification, missing "kind"'); - } - kind === "N" ? (_a12 = observer.next) === null || _a12 === void 0 ? void 0 : _a12.call(observer, value2) : kind === "E" ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer); -} -var NotificationKind, Notification; -var init_Notification = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/Notification.js"() { - init_empty(); - init_of(); - init_throwError(); - init_isFunction(); - (function(NotificationKind2) { - NotificationKind2["NEXT"] = "N"; - NotificationKind2["ERROR"] = "E"; - NotificationKind2["COMPLETE"] = "C"; - })(NotificationKind || (NotificationKind = {})); - Notification = (function() { - function Notification2(kind, value2, error) { - this.kind = kind; - this.value = value2; - this.error = error; - this.hasValue = kind === "N"; - } - Notification2.prototype.observe = function(observer) { - return observeNotification(this, observer); - }; - Notification2.prototype.do = function(nextHandler, errorHandler, completeHandler) { - var _a12 = this, kind = _a12.kind, value2 = _a12.value, error = _a12.error; - return kind === "N" ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value2) : kind === "E" ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler(); - }; - Notification2.prototype.accept = function(nextOrObserver, error, complete) { - var _a12; - return isFunction((_a12 = nextOrObserver) === null || _a12 === void 0 ? void 0 : _a12.next) ? this.observe(nextOrObserver) : this.do(nextOrObserver, error, complete); - }; - Notification2.prototype.toObservable = function() { - var _a12 = this, kind = _a12.kind, value2 = _a12.value, error = _a12.error; - var result = kind === "N" ? of(value2) : kind === "E" ? throwError(function() { - return error; - }) : kind === "C" ? EMPTY : 0; - if (!result) { - throw new TypeError("Unexpected notification kind " + kind); - } - return result; - }; - Notification2.createNext = function(value2) { - return new Notification2("N", value2); - }; - Notification2.createError = function(err) { - return new Notification2("E", void 0, err); - }; - Notification2.createComplete = function() { - return Notification2.completeNotification; - }; - Notification2.completeNotification = new Notification2("C"); - return Notification2; - })(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isObservable.js -var init_isObservable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isObservable.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/EmptyError.js -var EmptyError; -var init_EmptyError = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/EmptyError.js"() { - init_createErrorClass(); - EmptyError = createErrorClass(function(_super) { - return function EmptyErrorImpl() { - _super(this); - this.name = "EmptyError"; - this.message = "no elements in sequence"; - }; - }); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/lastValueFrom.js -var init_lastValueFrom = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/lastValueFrom.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js -var init_firstValueFrom = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/ArgumentOutOfRangeError.js -var ArgumentOutOfRangeError; -var init_ArgumentOutOfRangeError = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/ArgumentOutOfRangeError.js"() { - init_createErrorClass(); - ArgumentOutOfRangeError = createErrorClass(function(_super) { - return function ArgumentOutOfRangeErrorImpl() { - _super(this); - this.name = "ArgumentOutOfRangeError"; - this.message = "argument out of range"; - }; - }); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/NotFoundError.js -var NotFoundError; -var init_NotFoundError = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/NotFoundError.js"() { - init_createErrorClass(); - NotFoundError = createErrorClass(function(_super) { - return function NotFoundErrorImpl(message2) { - _super(this); - this.name = "NotFoundError"; - this.message = message2; - }; - }); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/SequenceError.js -var SequenceError; -var init_SequenceError = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/SequenceError.js"() { - init_createErrorClass(); - SequenceError = createErrorClass(function(_super) { - return function SequenceErrorImpl(message2) { - _super(this); - this.name = "SequenceError"; - this.message = message2; - }; - }); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isDate.js -function isValidDate(value2) { - return value2 instanceof Date && !isNaN(value2); -} -var init_isDate = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/isDate.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/timeout.js -function timeout(config3, schedulerArg) { - var _a12 = isValidDate(config3) ? { first: config3 } : typeof config3 === "number" ? { each: config3 } : config3, first3 = _a12.first, each = _a12.each, _b = _a12.with, _with = _b === void 0 ? timeoutErrorFactory : _b, _c = _a12.scheduler, scheduler = _c === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : asyncScheduler : _c, _d = _a12.meta, meta = _d === void 0 ? null : _d; - if (first3 == null && each == null) { - throw new TypeError("No timeout provided."); - } - return operate(function(source, subscriber) { - var originalSourceSubscription; - var timerSubscription; - var lastValue = null; - var seen = 0; - var startTimer = function(delay2) { - timerSubscription = executeSchedule(subscriber, scheduler, function() { - try { - originalSourceSubscription.unsubscribe(); - innerFrom(_with({ - meta, - lastValue, - seen - })).subscribe(subscriber); - } catch (err) { - subscriber.error(err); - } - }, delay2); - }; - originalSourceSubscription = source.subscribe(createOperatorSubscriber(subscriber, function(value2) { - timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); - seen++; - subscriber.next(lastValue = value2); - each > 0 && startTimer(each); - }, void 0, void 0, function() { - if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) { - timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); - } - lastValue = null; - })); - !seen && startTimer(first3 != null ? typeof first3 === "number" ? first3 : +first3 - scheduler.now() : each); - }); -} -function timeoutErrorFactory(info) { - throw new TimeoutError(info); -} -var TimeoutError; -var init_timeout = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/timeout.js"() { - init_async(); - init_isDate(); - init_lift(); - init_innerFrom(); - init_createErrorClass(); - init_OperatorSubscriber(); - init_executeSchedule(); - TimeoutError = createErrorClass(function(_super) { - return function TimeoutErrorImpl(info) { - if (info === void 0) { - info = null; - } - _super(this); - this.message = "Timeout has occurred"; - this.name = "TimeoutError"; - this.info = info; - }; - }); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/map.js -function map2(project, thisArg) { - return operate(function(source, subscriber) { - var index3 = 0; - source.subscribe(createOperatorSubscriber(subscriber, function(value2) { - subscriber.next(project.call(thisArg, value2, index3++)); - })); - }); -} -var init_map = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/map.js"() { - init_lift(); - init_OperatorSubscriber(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js -function callOrApply(fn, args) { - return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args); -} -function mapOneOrManyArgs(fn) { - return map2(function(args) { - return callOrApply(fn, args); - }); -} -var isArray; -var init_mapOneOrManyArgs = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js"() { - init_tslib_es6(); - init_map(); - isArray = Array.isArray; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/bindCallback.js -var init_bindCallback = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/bindCallback.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/bindNodeCallback.js -var init_bindNodeCallback = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/bindNodeCallback.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js -var init_combineLatest = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js -function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand2, innerSubScheduler, additionalFinalizer) { - var buffer2 = []; - var active = 0; - var index3 = 0; - var isComplete = false; - var checkComplete = function() { - if (isComplete && !buffer2.length && !active) { - subscriber.complete(); - } - }; - var outerNext = function(value2) { - return active < concurrent ? doInnerSub(value2) : buffer2.push(value2); - }; - var doInnerSub = function(value2) { - expand2 && subscriber.next(value2); - active++; - var innerComplete = false; - innerFrom(project(value2, index3++)).subscribe(createOperatorSubscriber(subscriber, function(innerValue) { - onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue); - if (expand2) { - outerNext(innerValue); - } else { - subscriber.next(innerValue); - } - }, function() { - innerComplete = true; - }, void 0, function() { - if (innerComplete) { - try { - active--; - var _loop_1 = function() { - var bufferedValue = buffer2.shift(); - if (innerSubScheduler) { - executeSchedule(subscriber, innerSubScheduler, function() { - return doInnerSub(bufferedValue); - }); - } else { - doInnerSub(bufferedValue); - } - }; - while (buffer2.length && active < concurrent) { - _loop_1(); - } - checkComplete(); - } catch (err) { - subscriber.error(err); - } - } - })); - }; - source.subscribe(createOperatorSubscriber(subscriber, outerNext, function() { - isComplete = true; - checkComplete(); - })); - return function() { - additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer(); - }; -} -var init_mergeInternals = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js"() { - init_innerFrom(); - init_executeSchedule(); - init_OperatorSubscriber(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js -function mergeMap(project, resultSelector, concurrent) { - if (concurrent === void 0) { - concurrent = Infinity; - } - if (isFunction(resultSelector)) { - return mergeMap(function(a6, i12) { - return map2(function(b6, ii2) { - return resultSelector(a6, b6, i12, ii2); - })(innerFrom(project(a6, i12))); - }, concurrent); - } else if (typeof resultSelector === "number") { - concurrent = resultSelector; - } - return operate(function(source, subscriber) { - return mergeInternals(source, subscriber, project, concurrent); - }); -} -var init_mergeMap = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js"() { - init_map(); - init_innerFrom(); - init_lift(); - init_mergeInternals(); - init_isFunction(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js -function mergeAll(concurrent) { - if (concurrent === void 0) { - concurrent = Infinity; - } - return mergeMap(identity, concurrent); -} -var init_mergeAll = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js"() { - init_mergeMap(); - init_identity(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/concatAll.js -function concatAll() { - return mergeAll(1); -} -var init_concatAll = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/concatAll.js"() { - init_mergeAll(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/concat.js -function concat() { - var args = []; - for (var _i2 = 0; _i2 < arguments.length; _i2++) { - args[_i2] = arguments[_i2]; - } - return concatAll()(from(args, popScheduler(args))); -} -var init_concat = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/concat.js"() { - init_concatAll(); - init_args(); - init_from(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/defer.js -var init_defer = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/defer.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/connectable.js -var init_connectable = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/connectable.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/forkJoin.js -var init_forkJoin = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/forkJoin.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js -function fromEvent(target, eventName, options2, resultSelector) { - if (isFunction(options2)) { - resultSelector = options2; - options2 = void 0; - } - if (resultSelector) { - return fromEvent(target, eventName, options2).pipe(mapOneOrManyArgs(resultSelector)); - } - var _a12 = __read(isEventTarget(target) ? eventTargetMethods.map(function(methodName) { - return function(handler2) { - return target[methodName](eventName, handler2, options2); - }; - }) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [], 2), add4 = _a12[0], remove2 = _a12[1]; - if (!add4) { - if (isArrayLike(target)) { - return mergeMap(function(subTarget) { - return fromEvent(subTarget, eventName, options2); - })(innerFrom(target)); - } - } - if (!add4) { - throw new TypeError("Invalid event target"); - } - return new Observable(function(subscriber) { - var handler2 = function() { - var args = []; - for (var _i2 = 0; _i2 < arguments.length; _i2++) { - args[_i2] = arguments[_i2]; - } - return subscriber.next(1 < args.length ? args : args[0]); - }; - add4(handler2); - return function() { - return remove2(handler2); - }; - }); -} -function toCommonHandlerRegistry(target, eventName) { - return function(methodName) { - return function(handler2) { - return target[methodName](eventName, handler2); - }; - }; -} -function isNodeStyleEventEmitter(target) { - return isFunction(target.addListener) && isFunction(target.removeListener); -} -function isJQueryStyleEventEmitter(target) { - return isFunction(target.on) && isFunction(target.off); -} -function isEventTarget(target) { - return isFunction(target.addEventListener) && isFunction(target.removeEventListener); -} -var nodeEventEmitterMethods, eventTargetMethods, jqueryMethods; -var init_fromEvent = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js"() { - init_tslib_es6(); - init_innerFrom(); - init_Observable(); - init_mergeMap(); - init_isArrayLike(); - init_isFunction(); - init_mapOneOrManyArgs(); - nodeEventEmitterMethods = ["addListener", "removeListener"]; - eventTargetMethods = ["addEventListener", "removeEventListener"]; - jqueryMethods = ["on", "off"]; - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/fromEventPattern.js -var init_fromEventPattern = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/fromEventPattern.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/generate.js -var init_generate = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/generate.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/iif.js -var init_iif = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/iif.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/timer.js -function timer(dueTime, intervalOrScheduler, scheduler) { - if (dueTime === void 0) { - dueTime = 0; - } - if (scheduler === void 0) { - scheduler = async; - } - var intervalDuration = -1; - if (intervalOrScheduler != null) { - if (isScheduler(intervalOrScheduler)) { - scheduler = intervalOrScheduler; - } else { - intervalDuration = intervalOrScheduler; - } - } - return new Observable(function(subscriber) { - var due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime; - if (due < 0) { - due = 0; - } - var n14 = 0; - return scheduler.schedule(function() { - if (!subscriber.closed) { - subscriber.next(n14++); - if (0 <= intervalDuration) { - this.schedule(void 0, intervalDuration); - } else { - subscriber.complete(); - } - } - }, due); - }); -} -var init_timer = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/timer.js"() { - init_Observable(); - init_async(); - init_isScheduler(); - init_isDate(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/interval.js -var init_interval = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/interval.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/merge.js -var init_merge = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/merge.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/never.js -function never() { - return NEVER; -} -var NEVER; -var init_never = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/never.js"() { - init_Observable(); - init_noop(); - NEVER = new Observable(noop); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/onErrorResumeNext.js -var init_onErrorResumeNext = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/onErrorResumeNext.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/pairs.js -var init_pairs = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/pairs.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/filter.js -function filter(predicate, thisArg) { - return operate(function(source, subscriber) { - var index3 = 0; - source.subscribe(createOperatorSubscriber(subscriber, function(value2) { - return predicate.call(thisArg, value2, index3++) && subscriber.next(value2); - })); - }); -} -var init_filter = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/filter.js"() { - init_lift(); - init_OperatorSubscriber(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/partition.js -var init_partition = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/partition.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/race.js -var init_race = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/race.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/range.js -var init_range = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/range.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/using.js -var init_using = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/using.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/zip.js -var init_zip = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/observable/zip.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/types.js -var init_types = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/types.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/audit.js -var init_audit = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/audit.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/auditTime.js -var init_auditTime = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/auditTime.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/buffer.js -function buffer(closingNotifier) { - return operate(function(source, subscriber) { - var currentBuffer = []; - source.subscribe(createOperatorSubscriber(subscriber, function(value2) { - return currentBuffer.push(value2); - }, function() { - subscriber.next(currentBuffer); - subscriber.complete(); - })); - innerFrom(closingNotifier).subscribe(createOperatorSubscriber(subscriber, function() { - var b6 = currentBuffer; - currentBuffer = []; - subscriber.next(b6); - }, noop)); - return function() { - currentBuffer = null; - }; - }); -} -var init_buffer = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/buffer.js"() { - init_lift(); - init_noop(); - init_OperatorSubscriber(); - init_innerFrom(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferCount.js -function bufferCount(bufferSize, startBufferEvery) { - if (startBufferEvery === void 0) { - startBufferEvery = null; - } - startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize; - return operate(function(source, subscriber) { - var buffers = []; - var count2 = 0; - source.subscribe(createOperatorSubscriber(subscriber, function(value2) { - var e_1, _a12, e_2, _b; - var toEmit = null; - if (count2++ % startBufferEvery === 0) { - buffers.push([]); - } - try { - for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { - var buffer2 = buffers_1_1.value; - buffer2.push(value2); - if (bufferSize <= buffer2.length) { - toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : []; - toEmit.push(buffer2); - } - } - } catch (e_1_1) { - e_1 = { error: e_1_1 }; - } finally { - try { - if (buffers_1_1 && !buffers_1_1.done && (_a12 = buffers_1.return)) _a12.call(buffers_1); - } finally { - if (e_1) throw e_1.error; - } - } - if (toEmit) { - try { - for (var toEmit_1 = __values(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) { - var buffer2 = toEmit_1_1.value; - arrRemove(buffers, buffer2); - subscriber.next(buffer2); - } - } catch (e_2_1) { - e_2 = { error: e_2_1 }; - } finally { - try { - if (toEmit_1_1 && !toEmit_1_1.done && (_b = toEmit_1.return)) _b.call(toEmit_1); - } finally { - if (e_2) throw e_2.error; - } - } - } - }, function() { - var e_3, _a12; - try { - for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) { - var buffer2 = buffers_2_1.value; - subscriber.next(buffer2); - } - } catch (e_3_1) { - e_3 = { error: e_3_1 }; - } finally { - try { - if (buffers_2_1 && !buffers_2_1.done && (_a12 = buffers_2.return)) _a12.call(buffers_2); - } finally { - if (e_3) throw e_3.error; - } - } - subscriber.complete(); - }, void 0, function() { - buffers = null; - })); - }); -} -var init_bufferCount = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferCount.js"() { - init_tslib_es6(); - init_lift(); - init_OperatorSubscriber(); - init_arrRemove(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js -function bufferTime(bufferTimeSpan) { - var _a12, _b; - var otherArgs = []; - for (var _i2 = 1; _i2 < arguments.length; _i2++) { - otherArgs[_i2 - 1] = arguments[_i2]; - } - var scheduler = (_a12 = popScheduler(otherArgs)) !== null && _a12 !== void 0 ? _a12 : asyncScheduler; - var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; - var maxBufferSize = otherArgs[1] || Infinity; - return operate(function(source, subscriber) { - var bufferRecords = []; - var restartOnEmit = false; - var emit = function(record) { - var buffer2 = record.buffer, subs = record.subs; - subs.unsubscribe(); - arrRemove(bufferRecords, record); - subscriber.next(buffer2); - restartOnEmit && startBuffer(); - }; - var startBuffer = function() { - if (bufferRecords) { - var subs = new Subscription(); - subscriber.add(subs); - var buffer2 = []; - var record_1 = { - buffer: buffer2, - subs - }; - bufferRecords.push(record_1); - executeSchedule(subs, scheduler, function() { - return emit(record_1); - }, bufferTimeSpan); - } - }; - if (bufferCreationInterval !== null && bufferCreationInterval >= 0) { - executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true); - } else { - restartOnEmit = true; - } - startBuffer(); - var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function(value2) { - var e_1, _a13; - var recordsCopy = bufferRecords.slice(); - try { - for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) { - var record = recordsCopy_1_1.value; - var buffer2 = record.buffer; - buffer2.push(value2); - maxBufferSize <= buffer2.length && emit(record); - } - } catch (e_1_1) { - e_1 = { error: e_1_1 }; - } finally { - try { - if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a13 = recordsCopy_1.return)) _a13.call(recordsCopy_1); - } finally { - if (e_1) throw e_1.error; - } - } - }, function() { - while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) { - subscriber.next(bufferRecords.shift().buffer); - } - bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe(); - subscriber.complete(); - subscriber.unsubscribe(); - }, void 0, function() { - return bufferRecords = null; - }); - source.subscribe(bufferTimeSubscriber); - }); -} -var init_bufferTime = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js"() { - init_tslib_es6(); - init_Subscription(); - init_lift(); - init_OperatorSubscriber(); - init_arrRemove(); - init_async(); - init_args(); - init_executeSchedule(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferToggle.js -var init_bufferToggle = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferToggle.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferWhen.js -var init_bufferWhen = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/bufferWhen.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/catchError.js -var init_catchError = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/catchError.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/reduce.js -var init_reduce = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/reduce.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/toArray.js -var init_toArray = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/toArray.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/combineLatestAll.js -var init_combineLatestAll = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/combineLatestAll.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/combineAll.js -var init_combineAll = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/combineAll.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/combineLatest.js -var init_combineLatest2 = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/combineLatest.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/combineLatestWith.js -var init_combineLatestWith = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/combineLatestWith.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/concatMap.js -var init_concatMap = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/concatMap.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/concatMapTo.js -var init_concatMapTo = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/concatMapTo.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/concat.js -var init_concat2 = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/concat.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/concatWith.js -var init_concatWith = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/concatWith.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/connect.js -var init_connect = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/connect.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/count.js -var init_count = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/count.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/debounce.js -function debounce(durationSelector) { - return operate(function(source, subscriber) { - var hasValue = false; - var lastValue = null; - var durationSubscriber = null; - var emit = function() { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - hasValue = false; - var value2 = lastValue; - lastValue = null; - subscriber.next(value2); - } - }; - source.subscribe(createOperatorSubscriber(subscriber, function(value2) { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - hasValue = true; - lastValue = value2; - durationSubscriber = createOperatorSubscriber(subscriber, emit, noop); - innerFrom(durationSelector(value2)).subscribe(durationSubscriber); - }, function() { - emit(); - subscriber.complete(); - }, void 0, function() { - lastValue = durationSubscriber = null; - })); - }); -} -var init_debounce = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/debounce.js"() { - init_lift(); - init_noop(); - init_OperatorSubscriber(); - init_innerFrom(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js -function debounceTime(dueTime, scheduler) { - if (scheduler === void 0) { - scheduler = asyncScheduler; - } - return operate(function(source, subscriber) { - var activeTask = null; - var lastValue = null; - var lastTime = null; - var emit = function() { - if (activeTask) { - activeTask.unsubscribe(); - activeTask = null; - var value2 = lastValue; - lastValue = null; - subscriber.next(value2); - } - }; - function emitWhenIdle() { - var targetTime = lastTime + dueTime; - var now2 = scheduler.now(); - if (now2 < targetTime) { - activeTask = this.schedule(void 0, targetTime - now2); - subscriber.add(activeTask); - return; - } - emit(); - } - source.subscribe(createOperatorSubscriber(subscriber, function(value2) { - lastValue = value2; - lastTime = scheduler.now(); - if (!activeTask) { - activeTask = scheduler.schedule(emitWhenIdle, dueTime); - subscriber.add(activeTask); - } - }, function() { - emit(); - subscriber.complete(); - }, void 0, function() { - lastValue = activeTask = null; - })); - }); -} -var init_debounceTime = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js"() { - init_async(); - init_lift(); - init_OperatorSubscriber(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/defaultIfEmpty.js -var init_defaultIfEmpty = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/defaultIfEmpty.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/take.js -var init_take = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/take.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/ignoreElements.js -var init_ignoreElements = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/ignoreElements.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mapTo.js -var init_mapTo = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mapTo.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/delayWhen.js -var init_delayWhen = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/delayWhen.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/delay.js -var init_delay = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/delay.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/dematerialize.js -var init_dematerialize = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/dematerialize.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/distinct.js -var init_distinct = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/distinct.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js -var init_distinctUntilChanged = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilKeyChanged.js -var init_distinctUntilKeyChanged = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilKeyChanged.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js -var init_throwIfEmpty = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js -var init_elementAt = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/endWith.js -var init_endWith = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/endWith.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/every.js -var init_every = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/every.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js -var init_exhaustMap = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/exhaustAll.js -var init_exhaustAll = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/exhaustAll.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/exhaust.js -var init_exhaust = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/exhaust.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/expand.js -var init_expand = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/expand.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/finalize.js -var init_finalize = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/finalize.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/find.js -var init_find = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/find.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/findIndex.js -var init_findIndex = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/findIndex.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/first.js -var init_first = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/first.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/groupBy.js -var init_groupBy = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/groupBy.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/isEmpty.js -var init_isEmpty = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/isEmpty.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/takeLast.js -var init_takeLast = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/takeLast.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/last.js -var init_last = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/last.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/materialize.js -var init_materialize = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/materialize.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/max.js -var init_max = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/max.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/flatMap.js -var init_flatMap = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/flatMap.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeMapTo.js -var init_mergeMapTo = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeMapTo.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js -var init_mergeScan = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/merge.js -var init_merge2 = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/merge.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeWith.js -var init_mergeWith = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/mergeWith.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/min.js -var init_min = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/min.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/multicast.js -var init_multicast = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/multicast.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/onErrorResumeNextWith.js -var init_onErrorResumeNextWith = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/onErrorResumeNextWith.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/pairwise.js -var init_pairwise = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/pairwise.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/pluck.js -var init_pluck = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/pluck.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/publish.js -var init_publish = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/publish.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js -var init_publishBehavior = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/publishLast.js -var init_publishLast = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/publishLast.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/publishReplay.js -var init_publishReplay = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/publishReplay.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/raceWith.js -var init_raceWith = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/raceWith.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/repeat.js -var init_repeat = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/repeat.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/repeatWhen.js -var init_repeatWhen = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/repeatWhen.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/retry.js -var init_retry = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/retry.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/retryWhen.js -var init_retryWhen = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/retryWhen.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/sample.js -var init_sample = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/sample.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/sampleTime.js -var init_sampleTime = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/sampleTime.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/scan.js -var init_scan = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/scan.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/sequenceEqual.js -var init_sequenceEqual = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/sequenceEqual.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/share.js -var init_share = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/share.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js -var init_shareReplay = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/single.js -var init_single = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/single.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/skip.js -var init_skip = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/skip.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/skipLast.js -var init_skipLast = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/skipLast.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/skipUntil.js -var init_skipUntil = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/skipUntil.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js -var init_skipWhile = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/startWith.js -function startWith() { - var values = []; - for (var _i2 = 0; _i2 < arguments.length; _i2++) { - values[_i2] = arguments[_i2]; - } - var scheduler = popScheduler(values); - return operate(function(source, subscriber) { - (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber); - }); -} -var init_startWith = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/startWith.js"() { - init_concat(); - init_args(); - init_lift(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/switchMap.js -var init_switchMap = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/switchMap.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/switchAll.js -var init_switchAll = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/switchAll.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/switchMapTo.js -var init_switchMapTo = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/switchMapTo.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/switchScan.js -var init_switchScan = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/switchScan.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js -function takeUntil(notifier) { - return operate(function(source, subscriber) { - innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function() { - return subscriber.complete(); - }, noop)); - !subscriber.closed && source.subscribe(subscriber); - }); -} -var init_takeUntil = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"() { - init_lift(); - init_OperatorSubscriber(); - init_innerFrom(); - init_noop(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js -var init_takeWhile = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/tap.js -var init_tap = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/tap.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throttle.js -function throttle(durationSelector, config3) { - return operate(function(source, subscriber) { - var _a12 = config3 !== null && config3 !== void 0 ? config3 : {}, _b = _a12.leading, leading = _b === void 0 ? true : _b, _c = _a12.trailing, trailing = _c === void 0 ? false : _c; - var hasValue = false; - var sendValue = null; - var throttled = null; - var isComplete = false; - var endThrottling = function() { - throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe(); - throttled = null; - if (trailing) { - send(); - isComplete && subscriber.complete(); - } - }; - var cleanupThrottling = function() { - throttled = null; - isComplete && subscriber.complete(); - }; - var startThrottle = function(value2) { - return throttled = innerFrom(durationSelector(value2)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling)); - }; - var send = function() { - if (hasValue) { - hasValue = false; - var value2 = sendValue; - sendValue = null; - subscriber.next(value2); - !isComplete && startThrottle(value2); - } - }; - source.subscribe(createOperatorSubscriber(subscriber, function(value2) { - hasValue = true; - sendValue = value2; - !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value2)); - }, function() { - isComplete = true; - !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete(); - })); - }); -} -var init_throttle = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throttle.js"() { - init_lift(); - init_OperatorSubscriber(); - init_innerFrom(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throttleTime.js -function throttleTime(duration, scheduler, config3) { - if (scheduler === void 0) { - scheduler = asyncScheduler; - } - var duration$ = timer(duration, scheduler); - return throttle(function() { - return duration$; - }, config3); -} -var init_throttleTime = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/throttleTime.js"() { - init_async(); - init_throttle(); - init_timer(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/timeInterval.js -var init_timeInterval = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/timeInterval.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/timeoutWith.js -var init_timeoutWith = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/timeoutWith.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js -var init_timestamp = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/window.js -var init_window = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/window.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/windowCount.js -var init_windowCount = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/windowCount.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/windowTime.js -var init_windowTime = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/windowTime.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/windowToggle.js -var init_windowToggle = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/windowToggle.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/windowWhen.js -var init_windowWhen = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/windowWhen.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js -var init_withLatestFrom = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/zipAll.js -var init_zipAll = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/zipAll.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/zip.js -var init_zip2 = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/zip.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/zipWith.js -var init_zipWith = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/zipWith.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/index.js -var init_esm5 = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/index.js"() { - init_Observable(); - init_ConnectableObservable(); - init_observable(); - init_animationFrames(); - init_Subject(); - init_BehaviorSubject(); - init_ReplaySubject(); - init_AsyncSubject(); - init_asap(); - init_async(); - init_queue(); - init_animationFrame(); - init_VirtualTimeScheduler(); - init_Scheduler(); - init_Subscription(); - init_Subscriber(); - init_Notification(); - init_pipe(); - init_noop(); - init_identity(); - init_isObservable(); - init_lastValueFrom(); - init_firstValueFrom(); - init_ArgumentOutOfRangeError(); - init_EmptyError(); - init_NotFoundError(); - init_ObjectUnsubscribedError(); - init_SequenceError(); - init_timeout(); - init_UnsubscriptionError(); - init_bindCallback(); - init_bindNodeCallback(); - init_combineLatest(); - init_concat(); - init_connectable(); - init_defer(); - init_empty(); - init_forkJoin(); - init_from(); - init_fromEvent(); - init_fromEventPattern(); - init_generate(); - init_iif(); - init_interval(); - init_merge(); - init_never(); - init_of(); - init_onErrorResumeNext(); - init_pairs(); - init_partition(); - init_race(); - init_range(); - init_throwError(); - init_timer(); - init_using(); - init_zip(); - init_scheduled(); - init_empty(); - init_never(); - init_types(); - init_config(); - init_audit(); - init_auditTime(); - init_buffer(); - init_bufferCount(); - init_bufferTime(); - init_bufferToggle(); - init_bufferWhen(); - init_catchError(); - init_combineAll(); - init_combineLatestAll(); - init_combineLatestWith(); - init_concatAll(); - init_concatMap(); - init_concatMapTo(); - init_concatWith(); - init_connect(); - init_count(); - init_debounce(); - init_debounceTime(); - init_defaultIfEmpty(); - init_delay(); - init_delayWhen(); - init_dematerialize(); - init_distinct(); - init_distinctUntilChanged(); - init_distinctUntilKeyChanged(); - init_elementAt(); - init_endWith(); - init_every(); - init_exhaust(); - init_exhaustAll(); - init_exhaustMap(); - init_expand(); - init_filter(); - init_finalize(); - init_find(); - init_findIndex(); - init_first(); - init_groupBy(); - init_ignoreElements(); - init_isEmpty(); - init_last(); - init_map(); - init_mapTo(); - init_materialize(); - init_max(); - init_mergeAll(); - init_flatMap(); - init_mergeMap(); - init_mergeMapTo(); - init_mergeScan(); - init_mergeWith(); - init_min(); - init_multicast(); - init_observeOn(); - init_onErrorResumeNextWith(); - init_pairwise(); - init_pluck(); - init_publish(); - init_publishBehavior(); - init_publishLast(); - init_publishReplay(); - init_raceWith(); - init_reduce(); - init_repeat(); - init_repeatWhen(); - init_retry(); - init_retryWhen(); - init_refCount(); - init_sample(); - init_sampleTime(); - init_scan(); - init_sequenceEqual(); - init_share(); - init_shareReplay(); - init_single(); - init_skip(); - init_skipLast(); - init_skipUntil(); - init_skipWhile(); - init_startWith(); - init_subscribeOn(); - init_switchAll(); - init_switchMap(); - init_switchMapTo(); - init_switchScan(); - init_take(); - init_takeLast(); - init_takeUntil(); - init_takeWhile(); - init_tap(); - init_throttle(); - init_throttleTime(); - init_throwIfEmpty(); - init_timeInterval(); - init_timeout(); - init_timeoutWith(); - init_timestamp(); - init_toArray(); - init_window(); - init_windowCount(); - init_windowTime(); - init_windowToggle(); - init_windowWhen(); - init_withLatestFrom(); - init_zipAll(); - init_zipWith(); - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/partition.js -var init_partition2 = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/partition.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/race.js -var init_race2 = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/internal/operators/race.js"() { - } -}); - -// node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/operators/index.js -var init_operators = __esm({ - "node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/esm5/operators/index.js"() { - init_audit(); - init_auditTime(); - init_buffer(); - init_bufferCount(); - init_bufferTime(); - init_bufferToggle(); - init_bufferWhen(); - init_catchError(); - init_combineAll(); - init_combineLatestAll(); - init_combineLatest2(); - init_combineLatestWith(); - init_concat2(); - init_concatAll(); - init_concatMap(); - init_concatMapTo(); - init_concatWith(); - init_connect(); - init_count(); - init_debounce(); - init_debounceTime(); - init_defaultIfEmpty(); - init_delay(); - init_delayWhen(); - init_dematerialize(); - init_distinct(); - init_distinctUntilChanged(); - init_distinctUntilKeyChanged(); - init_elementAt(); - init_endWith(); - init_every(); - init_exhaust(); - init_exhaustAll(); - init_exhaustMap(); - init_expand(); - init_filter(); - init_finalize(); - init_find(); - init_findIndex(); - init_first(); - init_groupBy(); - init_ignoreElements(); - init_isEmpty(); - init_last(); - init_map(); - init_mapTo(); - init_materialize(); - init_max(); - init_merge2(); - init_mergeAll(); - init_flatMap(); - init_mergeMap(); - init_mergeMapTo(); - init_mergeScan(); - init_mergeWith(); - init_min(); - init_multicast(); - init_observeOn(); - init_onErrorResumeNextWith(); - init_pairwise(); - init_partition2(); - init_pluck(); - init_publish(); - init_publishBehavior(); - init_publishLast(); - init_publishReplay(); - init_race2(); - init_raceWith(); - init_reduce(); - init_repeat(); - init_repeatWhen(); - init_retry(); - init_retryWhen(); - init_refCount(); - init_sample(); - init_sampleTime(); - init_scan(); - init_sequenceEqual(); - init_share(); - init_shareReplay(); - init_single(); - init_skip(); - init_skipLast(); - init_skipUntil(); - init_skipWhile(); - init_startWith(); - init_subscribeOn(); - init_switchAll(); - init_switchMap(); - init_switchMapTo(); - init_switchScan(); - init_take(); - init_takeLast(); - init_takeUntil(); - init_takeWhile(); - init_tap(); - init_throttle(); - init_throttleTime(); - init_throwIfEmpty(); - init_timeInterval(); - init_timeout(); - init_timeoutWith(); - init_timestamp(); - init_toArray(); - init_window(); - init_windowCount(); - init_windowTime(); - init_windowToggle(); - init_windowWhen(); - init_withLatestFrom(); - init_zip2(); - init_zipAll(); - init_zipWith(); - } -}); - -// node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/smartrx.plugins.rxjs.js -var smartrx_plugins_rxjs_exports = {}; -__export(smartrx_plugins_rxjs_exports, { - Observable: () => Observable, - ReplaySubject: () => ReplaySubject, - Subject: () => Subject, - Subscription: () => Subscription, - from: () => from, - fromEvent: () => fromEvent, - of: () => of, - ops: () => ops -}); -var ops; -var init_smartrx_plugins_rxjs = __esm({ - "node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/smartrx.plugins.rxjs.js"() { - init_esm5(); - init_operators(); - ops = { - buffer, - bufferCount, - bufferTime, - debounce, - debounceTime, - filter, - map: map2, - startWith, - takeUntil, - throttleTime - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/smartrx.classes.observablemap.js -var Observablemap; -var init_smartrx_classes_observablemap = __esm({ - "node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/smartrx.classes.observablemap.js"() { - init_smartrx_plugins(); - init_smartrx_plugins_rxjs(); - Observablemap = class { - constructor() { - this.observableEventEmitterBundleArray = new Array(); - this.observableEventTargetBundleArray = new Array(); - } - /** - * creates a hot subject if not yet registered for the event. - * In case event has been registered before the same observable is returned. - */ - getSubjectForEmitterEvent(emitterArg, eventArg) { - const existingBundle = this.observableEventEmitterBundleArray.find((bundleArg) => { - return bundleArg.eventRef === emitterArg && bundleArg.event === eventArg; - }); - if (existingBundle) { - return existingBundle.subject; - } else { - const emitterObservable = fromEvent(emitterArg, eventArg); - const emitterSubject = new Subject(); - emitterObservable.subscribe(emitterSubject); - const newBundle = { - subject: emitterSubject, - eventRef: emitterArg, - event: eventArg - }; - this.observableEventEmitterBundleArray.push(newBundle); - return newBundle.subject; - } - } - getSubjectForEventTarget(eventTargetArg, eventNameArg) { - const existingBundle = this.observableEventTargetBundleArray.find((bundleArg) => { - return bundleArg.eventRef === eventTargetArg && bundleArg.event === eventNameArg; - }); - if (existingBundle) { - return existingBundle.subject; - } else { - const emitterSubject = new Subject(); - const newBundle = { - subject: emitterSubject, - eventRef: eventTargetArg, - event: eventNameArg - }; - this.observableEventTargetBundleArray.push(newBundle); - return newBundle.subject; - } - } - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/smartrx.classes.observableintake.js -var ObservableIntake; -var init_smartrx_classes_observableintake = __esm({ - "node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/smartrx.classes.observableintake.js"() { - init_smartrx_plugins(); - init_smartrx_plugins_rxjs(); - ObservableIntake = class { - constructor() { - this.observableFunctions = { - next: (payloadArg) => { - }, - complete: (payloadArg) => { - } - }; - this.generator = null; - this.buffered = false; - this.payloadBuffer = []; - this.observable = new Observable((observerArg) => { - this.observableFunctions.next = (...args) => { - return observerArg.next(args); - }; - this.observableFunctions.complete = () => { - this.completedDeffered.resolve(); - return observerArg.complete(); - }; - }); - this.completedDeffered = dist_ts_exports.defer(); - this.completed = this.completedDeffered.promise; - } - setObservable(observableFunc) { - this.observable = observableFunc; - } - push(payloadArg) { - if (this.buffered) { - this.payloadBuffer.push(payloadArg); - } else { - this.internalPush(payloadArg); - } - } - /** - * pushes many payloads as array - * @param payloadArgArray - */ - pushMany(payloadArgArray) { - for (const item of payloadArgArray) { - this.push(item); - } - } - /** - * sets a generator to query the next pushed value - * @param generatorArg - */ - setGenerator(generatorArg) { - this.generator = generatorArg; - } - makeBuffered() { - this.buffered = true; - } - subscribe(...args) { - return this.observable.subscribe(...args); - } - /** - * request the next values in the quantity specified - * @param howManyArg if a generator is set, of a buffer exists, this allows retrieving values - */ - request(howManyArg) { - if (howManyArg === 0) { - return; - } else { - for (let i12 = 0; i12 !== howManyArg; i12++) { - if (this.payloadBuffer.length > 0) { - this.internalPush(this.payloadBuffer.shift()); - } else { - const nextPayload = this.generator.next(); - this.internalPush(nextPayload.value); - } - } - } - } - /** - * signals the completion of this observable - */ - signalComplete() { - this.observableFunctions.complete(); - } - internalPush(payloadArg) { - this.observableFunctions.next(payloadArg); - } - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/smartrx.functions.js -function fromStreamWithBackpressure(stream) { - return new Observable((subscriber) => { - const pauseStream = () => stream.pause(); - const resumeStream = () => process.nextTick(() => stream.resume()); - const onData = (data) => { - pauseStream(); - subscriber.next(data); - resumeStream(); - }; - stream.on("data", onData); - stream.on("error", (error) => subscriber.error(error)); - stream.on("end", () => subscriber.complete()); - stream.on("close", () => subscriber.complete()); - return () => { - stream.removeListener("data", onData); - stream.removeListener("error", subscriber.error); - stream.removeListener("end", subscriber.complete); - stream.removeListener("close", subscriber.complete); - }; - }); -} -var init_smartrx_functions = __esm({ - "node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/smartrx.functions.js"() { - init_esm5(); - } -}); - -// node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/index.js -var dist_ts_exports2 = {}; -__export(dist_ts_exports2, { - ObservableIntake: () => ObservableIntake, - Observablemap: () => Observablemap, - fromStreamWithBackpressure: () => fromStreamWithBackpressure, - rxjs: () => smartrx_plugins_rxjs_exports -}); -var init_dist_ts2 = __esm({ - "node_modules/.pnpm/@push.rocks+smartrx@3.0.10/node_modules/@push.rocks/smartrx/dist_ts/index.js"() { - init_smartrx_plugins(); - init_smartrx_classes_observablemap(); - init_smartrx_classes_observableintake(); - init_smartrx_functions(); - init_smartrx_plugins_rxjs(); - } -}); - -// node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js -function n5(t10) { - return (e12, o14) => "object" == typeof o14 ? r4(t10, e12, o14) : ((t11, e13, o15) => { - const r12 = e13.hasOwnProperty(o15); - return e13.constructor.createProperty(o15, t11), r12 ? Object.getOwnPropertyDescriptor(e13, o15) : void 0; - })(t10, e12, o14); -} -var o6, r4; -var init_property = __esm({ - "node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js"() { - init_reactive_element(); - o6 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f }, r4 = (t10 = o6, e12, r12) => { - const { kind: n14, metadata: i12 } = r12; - let s10 = globalThis.litPropertyMetadata.get(i12); - if (void 0 === s10 && globalThis.litPropertyMetadata.set(i12, s10 = /* @__PURE__ */ new Map()), "setter" === n14 && ((t10 = Object.create(t10)).wrapped = true), s10.set(r12.name, t10), "accessor" === n14) { - const { name: o14 } = r12; - return { set(r13) { - const n15 = e12.get.call(this); - e12.set.call(this, r13), this.requestUpdate(o14, n15, t10); - }, init(e13) { - return void 0 !== e13 && this.C(o14, void 0, t10, e13), e13; - } }; - } - if ("setter" === n14) { - const { name: o14 } = r12; - return function(r13) { - const n15 = this[o14]; - e12.call(this, r13), this.requestUpdate(o14, n15, t10); - }; - } - throw Error("Unsupported decorator location: " + n14); - }; - } -}); - -// node_modules/.pnpm/lit@3.3.1/node_modules/lit/decorators/property.js -var init_property2 = __esm({ - "node_modules/.pnpm/lit@3.3.1/node_modules/lit/decorators/property.js"() { - init_property(); - } -}); - -// node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.colors.js -var init_domtools_colors = __esm({ - "node_modules/.pnpm/@design.estate+dees-domtools@2.3.6/node_modules/@design.estate/dees-domtools/dist_ts/domtools.colors.js"() { - } -}); - -// node_modules/.pnpm/@push.rocks+smartdelay@3.0.5/node_modules/@push.rocks/smartdelay/dist_ts/index.js -var dist_ts_exports3 = {}; -__export(dist_ts_exports3, { - Timeout: () => Timeout, - delayFor: () => delayFor, - delayForRandom: () => delayForRandom -}); -var delayFor, delayForRandom, Timeout; -var init_dist_ts3 = __esm({ - "node_modules/.pnpm/@push.rocks+smartdelay@3.0.5/node_modules/@push.rocks/smartdelay/dist_ts/index.js"() { - init_dist_ts(); - delayFor = async (timeInMillisecondArg, passOnArg, unrefedArg = false) => { - const timeout2 = new Timeout(timeInMillisecondArg, null, unrefedArg); - await timeout2.promise; - return passOnArg; - }; - delayForRandom = async (timeMinInMillisecondArg, timeMaxInMillisecondArg, passOnArg, unrefedArg = false) => { - await delayFor(Math.random() * (timeMaxInMillisecondArg - timeMinInMillisecondArg) + timeMinInMillisecondArg, null, unrefedArg); - return passOnArg; - }; - Timeout = class { - constructor(timeInMillisecondArg, passOn, unrefedArg = false) { - this._cancelled = false; - this.timeoutInMillis = timeInMillisecondArg; - this._deferred = defer(); - this.promise = this._deferred.promise; - this._timeout = setTimeout(() => { - if (!this._cancelled) { - this._deferred.resolve(passOn); - } - }, timeInMillisecondArg); - this.started = Date.now(); - if (unrefedArg) { - this.makeUnrefed(); - } - } - /** - * unreffing a timeout causes the node process to not wait for completion before exit - */ - makeUnrefed() { - this._timeout.unref(); - } - /** - * cancels the timer - */ - cancel() { - this._cancelled = true; - clearTimeout(this._timeout); - } - getTimeLeft() { - const result = this.started + this.timeoutInMillis - Date.now(); - return result > 0 ? result : 0; - } - }; - } -}); - -// node_modules/.pnpm/@api.global+typedrequest-interfaces@3.0.19/node_modules/@api.global/typedrequest-interfaces/dist_ts/index.js -var dist_ts_exports4 = {}; -var init_dist_ts4 = __esm({ - "node_modules/.pnpm/@api.global+typedrequest-interfaces@3.0.19/node_modules/@api.global/typedrequest-interfaces/dist_ts/index.js"() { - } -}); - -// node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js -function escapeStringRegexp(string3) { - if (typeof string3 !== "string") { - throw new TypeError("Expected a string"); - } - return string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"); -} -var init_escape_string_regexp = __esm({ - "node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js"() { - } -}); - -// node_modules/.pnpm/matcher@5.0.0/node_modules/matcher/index.js -var matcher_exports = {}; -__export(matcher_exports, { - isMatch: () => isMatch, - matcher: () => matcher -}); -function matcher(inputs, patterns2, options2) { - return baseMatcher(inputs, patterns2, options2, false); -} -function isMatch(inputs, patterns2, options2) { - return baseMatcher(inputs, patterns2, options2, true).length > 0; -} -var regexpCache, sanitizeArray, makeRegexp, baseMatcher; -var init_matcher = __esm({ - "node_modules/.pnpm/matcher@5.0.0/node_modules/matcher/index.js"() { - init_escape_string_regexp(); - regexpCache = /* @__PURE__ */ new Map(); - sanitizeArray = (input, inputName) => { - if (!Array.isArray(input)) { - switch (typeof input) { - case "string": - input = [input]; - break; - case "undefined": - input = []; - break; - default: - throw new TypeError(`Expected '${inputName}' to be a string or an array, but got a type of '${typeof input}'`); - } - } - return input.filter((string3) => { - if (typeof string3 !== "string") { - if (typeof string3 === "undefined") { - return false; - } - throw new TypeError(`Expected '${inputName}' to be an array of strings, but found a type of '${typeof string3}' in the array`); - } - return true; - }); - }; - makeRegexp = (pattern, options2) => { - options2 = { - caseSensitive: false, - ...options2 - }; - const cacheKey = pattern + JSON.stringify(options2); - if (regexpCache.has(cacheKey)) { - return regexpCache.get(cacheKey); - } - const negated = pattern[0] === "!"; - if (negated) { - pattern = pattern.slice(1); - } - pattern = escapeStringRegexp(pattern).replace(/\\\*/g, "[\\s\\S]*"); - const regexp2 = new RegExp(`^${pattern}$`, options2.caseSensitive ? "" : "i"); - regexp2.negated = negated; - regexpCache.set(cacheKey, regexp2); - return regexp2; - }; - baseMatcher = (inputs, patterns2, options2, firstMatchOnly) => { - inputs = sanitizeArray(inputs, "inputs"); - patterns2 = sanitizeArray(patterns2, "patterns"); - if (patterns2.length === 0) { - return []; - } - patterns2 = patterns2.map((pattern) => makeRegexp(pattern, options2)); - const { allPatterns } = options2 || {}; - const result = []; - for (const input of inputs) { - let matches2; - const didFit = [...patterns2].fill(false); - for (const [index3, pattern] of patterns2.entries()) { - if (pattern.test(input)) { - didFit[index3] = true; - matches2 = !pattern.negated; - if (!matches2) { - break; - } - } - } - if (!(matches2 === false || matches2 === void 0 && patterns2.some((pattern) => !pattern.negated) || allPatterns && didFit.some((yes, index3) => !yes && !patterns2[index3].negated))) { - result.push(input); - if (firstMatchOnly) { - break; - } - } - } - return result; - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smartmatch@2.0.0/node_modules/@push.rocks/smartmatch/dist_ts/smartmatch.plugins.js -var init_smartmatch_plugins = __esm({ - "node_modules/.pnpm/@push.rocks+smartmatch@2.0.0/node_modules/@push.rocks/smartmatch/dist_ts/smartmatch.plugins.js"() { - init_matcher(); - } -}); - -// node_modules/.pnpm/@push.rocks+smartmatch@2.0.0/node_modules/@push.rocks/smartmatch/dist_ts/index.js -var dist_ts_exports5 = {}; -__export(dist_ts_exports5, { - SmartMatch: () => SmartMatch -}); -var SmartMatch; -var init_dist_ts5 = __esm({ - "node_modules/.pnpm/@push.rocks+smartmatch@2.0.0/node_modules/@push.rocks/smartmatch/dist_ts/index.js"() { - init_smartmatch_plugins(); - SmartMatch = class { - constructor(wildcardArg) { - this.wildcard = wildcardArg; - } - match(matchStringArg) { - return matcher_exports.isMatch(matchStringArg, this.wildcard); - } - }; - } -}); - -// node_modules/.pnpm/croner@9.1.0/node_modules/croner/dist/croner.js -var croner_exports = {}; -__export(croner_exports, { - Cron: () => R2, - CronDate: () => f3, - CronPattern: () => d3, - scheduledJobs: () => y3 -}); -function h3(n14, t10, e12, r12, s10, i12, a6, l7) { - return h3.fromTZ(h3.tp(n14, t10, e12, r12, s10, i12, a6), l7); -} -function D(n14, t10 = /* @__PURE__ */ new Date()) { - let e12 = t10.toLocaleString("en-US", { timeZone: n14, timeZoneName: "shortOffset" }).split(" ").slice(-1)[0], r12 = t10.toLocaleString("en-US").replace(/[\u202f]/, " "); - return Date.parse(`${r12} GMT`) - Date.parse(`${r12} ${e12}`); -} -function k2(n14, t10) { - let e12 = new Date(Date.parse(n14)); - if (isNaN(e12)) throw new Error("minitz: Invalid ISO8601 passed to parser."); - let r12 = n14.substring(9); - return n14.includes("Z") || r12.includes("-") || r12.includes("+") ? h3.tp(e12.getUTCFullYear(), e12.getUTCMonth() + 1, e12.getUTCDate(), e12.getUTCHours(), e12.getUTCMinutes(), e12.getUTCSeconds(), "Etc/UTC") : h3.tp(e12.getFullYear(), e12.getMonth() + 1, e12.getDate(), e12.getHours(), e12.getMinutes(), e12.getSeconds(), t10); -} -function N2(n14) { - if (n14 === void 0 && (n14 = {}), delete n14.name, n14.legacyMode = n14.legacyMode === void 0 ? true : n14.legacyMode, n14.paused = n14.paused === void 0 ? false : n14.paused, n14.maxRuns = n14.maxRuns === void 0 ? 1 / 0 : n14.maxRuns, n14.catch = n14.catch === void 0 ? false : n14.catch, n14.interval = n14.interval === void 0 ? 0 : parseInt(n14.interval.toString(), 10), n14.utcOffset = n14.utcOffset === void 0 ? void 0 : parseInt(n14.utcOffset.toString(), 10), n14.unref = n14.unref === void 0 ? false : n14.unref, n14.startAt && (n14.startAt = new f3(n14.startAt, n14.timezone)), n14.stopAt && (n14.stopAt = new f3(n14.stopAt, n14.timezone)), n14.interval !== null) { - if (isNaN(n14.interval)) throw new Error("CronOptions: Supplied value for interval is not a number"); - if (n14.interval < 0) throw new Error("CronOptions: Supplied value for interval can not be negative"); - } - if (n14.utcOffset !== void 0) { - if (isNaN(n14.utcOffset)) throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC."); - if (n14.utcOffset < -870 || n14.utcOffset > 870) throw new Error("CronOptions: utcOffset out of bounds."); - if (n14.utcOffset !== void 0 && n14.timezone) throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed."); - } - if (n14.unref !== true && n14.unref !== false) throw new Error("CronOptions: Unref should be either true, false or undefined(false)."); - return n14; -} -function g2(n14) { - return Object.prototype.toString.call(n14) === "[object Function]" || typeof n14 == "function" || n14 instanceof Function; -} -function S3(n14) { - return g2(n14); -} -function P2(n14) { - typeof Deno < "u" && typeof Deno.unrefTimer < "u" ? Deno.unrefTimer(n14) : n14 && typeof n14.unref < "u" && n14.unref(); -} -var b3, p3, v2, d3, O, m2, f3, _2, y3, R2; -var init_croner = __esm({ - "node_modules/.pnpm/croner@9.1.0/node_modules/croner/dist/croner.js"() { - h3.fromTZISO = (n14, t10, e12) => h3.fromTZ(k2(n14, t10), e12); - h3.fromTZ = function(n14, t10) { - let e12 = new Date(Date.UTC(n14.y, n14.m - 1, n14.d, n14.h, n14.i, n14.s)), r12 = D(n14.tz, e12), s10 = new Date(e12.getTime() - r12), i12 = D(n14.tz, s10); - if (i12 - r12 === 0) return s10; - { - let a6 = new Date(e12.getTime() - i12), l7 = D(n14.tz, a6); - if (l7 - i12 === 0) return a6; - if (!t10 && l7 - i12 > 0) return a6; - if (t10) throw new Error("Invalid date passed to fromTZ()"); - return s10; - } - }; - h3.toTZ = function(n14, t10) { - let e12 = n14.toLocaleString("en-US", { timeZone: t10 }).replace(/[\u202f]/, " "), r12 = new Date(e12); - return { y: r12.getFullYear(), m: r12.getMonth() + 1, d: r12.getDate(), h: r12.getHours(), i: r12.getMinutes(), s: r12.getSeconds(), tz: t10 }; - }; - h3.tp = (n14, t10, e12, r12, s10, i12, a6) => ({ y: n14, m: t10, d: e12, h: r12, i: s10, s: i12, tz: a6 }); - h3.minitz = h3; - b3 = 32, p3 = 31 | b3, v2 = [1, 2, 4, 8, 16], d3 = class { - pattern; - timezone; - second; - minute; - hour; - day; - month; - dayOfWeek; - lastDayOfMonth; - starDOM; - starDOW; - constructor(t10, e12) { - this.pattern = t10, this.timezone = e12, this.second = Array(60).fill(0), this.minute = Array(60).fill(0), this.hour = Array(24).fill(0), this.day = Array(31).fill(0), this.month = Array(12).fill(0), this.dayOfWeek = Array(7).fill(0), this.lastDayOfMonth = false, this.starDOM = false, this.starDOW = false, this.parse(); - } - parse() { - if (!(typeof this.pattern == "string" || this.pattern instanceof String)) throw new TypeError("CronPattern: Pattern has to be of type string."); - this.pattern.indexOf("@") >= 0 && (this.pattern = this.handleNicknames(this.pattern).trim()); - let t10 = this.pattern.replace(/\s+/g, " ").split(" "); - if (t10.length < 5 || t10.length > 6) throw new TypeError("CronPattern: invalid configuration format ('" + this.pattern + "'), exactly five or six space separated parts are required."); - if (t10.length === 5 && t10.unshift("0"), t10[3].indexOf("L") >= 0 && (t10[3] = t10[3].replace("L", ""), this.lastDayOfMonth = true), t10[3] == "*" && (this.starDOM = true), t10[4].length >= 3 && (t10[4] = this.replaceAlphaMonths(t10[4])), t10[5].length >= 3 && (t10[5] = this.replaceAlphaDays(t10[5])), t10[5] == "*" && (this.starDOW = true), this.pattern.indexOf("?") >= 0) { - let e12 = new f3(/* @__PURE__ */ new Date(), this.timezone).getDate(true); - t10[0] = t10[0].replace("?", e12.getSeconds().toString()), t10[1] = t10[1].replace("?", e12.getMinutes().toString()), t10[2] = t10[2].replace("?", e12.getHours().toString()), this.starDOM || (t10[3] = t10[3].replace("?", e12.getDate().toString())), t10[4] = t10[4].replace("?", (e12.getMonth() + 1).toString()), this.starDOW || (t10[5] = t10[5].replace("?", e12.getDay().toString())); - } - this.throwAtIllegalCharacters(t10), this.partToArray("second", t10[0], 0, 1), this.partToArray("minute", t10[1], 0, 1), this.partToArray("hour", t10[2], 0, 1), this.partToArray("day", t10[3], -1, 1), this.partToArray("month", t10[4], -1, 1), this.partToArray("dayOfWeek", t10[5], 0, p3), this.dayOfWeek[7] && (this.dayOfWeek[0] = this.dayOfWeek[7]); - } - partToArray(t10, e12, r12, s10) { - let i12 = this[t10], a6 = t10 === "day" && this.lastDayOfMonth; - if (e12 === "" && !a6) throw new TypeError("CronPattern: configuration entry " + t10 + " (" + e12 + ") is empty, check for trailing spaces."); - if (e12 === "*") return i12.fill(s10); - let l7 = e12.split(","); - if (l7.length > 1) for (let o14 = 0; o14 < l7.length; o14++) this.partToArray(t10, l7[o14], r12, s10); - else e12.indexOf("-") !== -1 && e12.indexOf("/") !== -1 ? this.handleRangeWithStepping(e12, t10, r12, s10) : e12.indexOf("-") !== -1 ? this.handleRange(e12, t10, r12, s10) : e12.indexOf("/") !== -1 ? this.handleStepping(e12, t10, r12, s10) : e12 !== "" && this.handleNumber(e12, t10, r12, s10); - } - throwAtIllegalCharacters(t10) { - for (let e12 = 0; e12 < t10.length; e12++) if ((e12 === 5 ? /[^/*0-9,\-#L]+/ : /[^/*0-9,-]+/).test(t10[e12])) throw new TypeError("CronPattern: configuration entry " + e12 + " (" + t10[e12] + ") contains illegal characters."); - } - handleNumber(t10, e12, r12, s10) { - let i12 = this.extractNth(t10, e12), a6 = parseInt(i12[0], 10) + r12; - if (isNaN(a6)) throw new TypeError("CronPattern: " + e12 + " is not a number: '" + t10 + "'"); - this.setPart(e12, a6, i12[1] || s10); - } - setPart(t10, e12, r12) { - if (!Object.prototype.hasOwnProperty.call(this, t10)) throw new TypeError("CronPattern: Invalid part specified: " + t10); - if (t10 === "dayOfWeek") { - if (e12 === 7 && (e12 = 0), e12 < 0 || e12 > 6) throw new RangeError("CronPattern: Invalid value for dayOfWeek: " + e12); - this.setNthWeekdayOfMonth(e12, r12); - return; - } - if (t10 === "second" || t10 === "minute") { - if (e12 < 0 || e12 >= 60) throw new RangeError("CronPattern: Invalid value for " + t10 + ": " + e12); - } else if (t10 === "hour") { - if (e12 < 0 || e12 >= 24) throw new RangeError("CronPattern: Invalid value for " + t10 + ": " + e12); - } else if (t10 === "day") { - if (e12 < 0 || e12 >= 31) throw new RangeError("CronPattern: Invalid value for " + t10 + ": " + e12); - } else if (t10 === "month" && (e12 < 0 || e12 >= 12)) throw new RangeError("CronPattern: Invalid value for " + t10 + ": " + e12); - this[t10][e12] = r12; - } - handleRangeWithStepping(t10, e12, r12, s10) { - let i12 = this.extractNth(t10, e12), a6 = i12[0].match(/^(\d+)-(\d+)\/(\d+)$/); - if (a6 === null) throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '" + t10 + "'"); - let [, l7, o14, u8] = a6, c12 = parseInt(l7, 10) + r12, w4 = parseInt(o14, 10) + r12, C4 = parseInt(u8, 10); - if (isNaN(c12)) throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)"); - if (isNaN(w4)) throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)"); - if (isNaN(C4)) throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)"); - if (C4 === 0) throw new TypeError("CronPattern: Syntax error, illegal stepping: 0"); - if (C4 > this[e12].length) throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part (" + this[e12].length + ")"); - if (c12 > w4) throw new TypeError("CronPattern: From value is larger than to value: '" + t10 + "'"); - for (let T4 = c12; T4 <= w4; T4 += C4) this.setPart(e12, T4, i12[1] || s10); - } - extractNth(t10, e12) { - let r12 = t10, s10; - if (r12.includes("#")) { - if (e12 !== "dayOfWeek") throw new Error("CronPattern: nth (#) only allowed in day-of-week field"); - s10 = r12.split("#")[1], r12 = r12.split("#")[0]; - } - return [r12, s10]; - } - handleRange(t10, e12, r12, s10) { - let i12 = this.extractNth(t10, e12), a6 = i12[0].split("-"); - if (a6.length !== 2) throw new TypeError("CronPattern: Syntax error, illegal range: '" + t10 + "'"); - let l7 = parseInt(a6[0], 10) + r12, o14 = parseInt(a6[1], 10) + r12; - if (isNaN(l7)) throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)"); - if (isNaN(o14)) throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)"); - if (l7 > o14) throw new TypeError("CronPattern: From value is larger than to value: '" + t10 + "'"); - for (let u8 = l7; u8 <= o14; u8++) this.setPart(e12, u8, i12[1] || s10); - } - handleStepping(t10, e12, r12, s10) { - let i12 = this.extractNth(t10, e12), a6 = i12[0].split("/"); - if (a6.length !== 2) throw new TypeError("CronPattern: Syntax error, illegal stepping: '" + t10 + "'"); - a6[0] === "" && (a6[0] = "*"); - let l7 = 0; - a6[0] !== "*" && (l7 = parseInt(a6[0], 10) + r12); - let o14 = parseInt(a6[1], 10); - if (isNaN(o14)) throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)"); - if (o14 === 0) throw new TypeError("CronPattern: Syntax error, illegal stepping: 0"); - if (o14 > this[e12].length) throw new TypeError("CronPattern: Syntax error, max steps for part is (" + this[e12].length + ")"); - for (let u8 = l7; u8 < this[e12].length; u8 += o14) this.setPart(e12, u8, i12[1] || s10); - } - replaceAlphaDays(t10) { - return t10.replace(/-sun/gi, "-7").replace(/sun/gi, "0").replace(/mon/gi, "1").replace(/tue/gi, "2").replace(/wed/gi, "3").replace(/thu/gi, "4").replace(/fri/gi, "5").replace(/sat/gi, "6"); - } - replaceAlphaMonths(t10) { - return t10.replace(/jan/gi, "1").replace(/feb/gi, "2").replace(/mar/gi, "3").replace(/apr/gi, "4").replace(/may/gi, "5").replace(/jun/gi, "6").replace(/jul/gi, "7").replace(/aug/gi, "8").replace(/sep/gi, "9").replace(/oct/gi, "10").replace(/nov/gi, "11").replace(/dec/gi, "12"); - } - handleNicknames(t10) { - let e12 = t10.trim().toLowerCase(); - return e12 === "@yearly" || e12 === "@annually" ? "0 0 1 1 *" : e12 === "@monthly" ? "0 0 1 * *" : e12 === "@weekly" ? "0 0 * * 0" : e12 === "@daily" ? "0 0 * * *" : e12 === "@hourly" ? "0 * * * *" : t10; - } - setNthWeekdayOfMonth(t10, e12) { - if (typeof e12 != "number" && e12 === "L") this.dayOfWeek[t10] = this.dayOfWeek[t10] | b3; - else if (e12 === p3) this.dayOfWeek[t10] = p3; - else if (e12 < 6 && e12 > 0) this.dayOfWeek[t10] = this.dayOfWeek[t10] | v2[e12 - 1]; - else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e12}, Type: ${typeof e12}`); - } - }; - O = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], m2 = [["month", "year", 0], ["day", "month", -1], ["hour", "day", 0], ["minute", "hour", 0], ["second", "minute", 0]], f3 = class n6 { - tz; - ms; - second; - minute; - hour; - day; - month; - year; - constructor(t10, e12) { - if (this.tz = e12, t10 && t10 instanceof Date) if (!isNaN(t10)) this.fromDate(t10); - else throw new TypeError("CronDate: Invalid date passed to CronDate constructor"); - else if (t10 === void 0) this.fromDate(/* @__PURE__ */ new Date()); - else if (t10 && typeof t10 == "string") this.fromString(t10); - else if (t10 instanceof n6) this.fromCronDate(t10); - else throw new TypeError("CronDate: Invalid type (" + typeof t10 + ") passed to CronDate constructor"); - } - isNthWeekdayOfMonth(t10, e12, r12, s10) { - let a6 = new Date(Date.UTC(t10, e12, r12)).getUTCDay(), l7 = 0; - for (let o14 = 1; o14 <= r12; o14++) new Date(Date.UTC(t10, e12, o14)).getUTCDay() === a6 && l7++; - if (s10 & p3 && v2[l7 - 1] & s10) return true; - if (s10 & b3) { - let o14 = new Date(Date.UTC(t10, e12 + 1, 0)).getUTCDate(); - for (let u8 = r12 + 1; u8 <= o14; u8++) if (new Date(Date.UTC(t10, e12, u8)).getUTCDay() === a6) return false; - return true; - } - return false; - } - fromDate(t10) { - if (this.tz !== void 0) if (typeof this.tz == "number") this.ms = t10.getUTCMilliseconds(), this.second = t10.getUTCSeconds(), this.minute = t10.getUTCMinutes() + this.tz, this.hour = t10.getUTCHours(), this.day = t10.getUTCDate(), this.month = t10.getUTCMonth(), this.year = t10.getUTCFullYear(), this.apply(); - else { - let e12 = h3.toTZ(t10, this.tz); - this.ms = t10.getMilliseconds(), this.second = e12.s, this.minute = e12.i, this.hour = e12.h, this.day = e12.d, this.month = e12.m - 1, this.year = e12.y; - } - else this.ms = t10.getMilliseconds(), this.second = t10.getSeconds(), this.minute = t10.getMinutes(), this.hour = t10.getHours(), this.day = t10.getDate(), this.month = t10.getMonth(), this.year = t10.getFullYear(); - } - fromCronDate(t10) { - this.tz = t10.tz, this.year = t10.year, this.month = t10.month, this.day = t10.day, this.hour = t10.hour, this.minute = t10.minute, this.second = t10.second, this.ms = t10.ms; - } - apply() { - if (this.month > 11 || this.day > O[this.month] || this.hour > 59 || this.minute > 59 || this.second > 59 || this.hour < 0 || this.minute < 0 || this.second < 0) { - let t10 = new Date(Date.UTC(this.year, this.month, this.day, this.hour, this.minute, this.second, this.ms)); - return this.ms = t10.getUTCMilliseconds(), this.second = t10.getUTCSeconds(), this.minute = t10.getUTCMinutes(), this.hour = t10.getUTCHours(), this.day = t10.getUTCDate(), this.month = t10.getUTCMonth(), this.year = t10.getUTCFullYear(), true; - } else return false; - } - fromString(t10) { - if (typeof this.tz == "number") { - let e12 = h3.fromTZISO(t10); - this.ms = e12.getUTCMilliseconds(), this.second = e12.getUTCSeconds(), this.minute = e12.getUTCMinutes(), this.hour = e12.getUTCHours(), this.day = e12.getUTCDate(), this.month = e12.getUTCMonth(), this.year = e12.getUTCFullYear(), this.apply(); - } else return this.fromDate(h3.fromTZISO(t10, this.tz)); - } - findNext(t10, e12, r12, s10) { - let i12 = this[e12], a6; - r12.lastDayOfMonth && (this.month !== 1 ? a6 = O[this.month] : a6 = new Date(Date.UTC(this.year, this.month + 1, 0, 0, 0, 0, 0)).getUTCDate()); - let l7 = !r12.starDOW && e12 == "day" ? new Date(Date.UTC(this.year, this.month, 1, 0, 0, 0, 0)).getUTCDay() : void 0; - for (let o14 = this[e12] + s10; o14 < r12[e12].length; o14++) { - let u8 = r12[e12][o14]; - if (e12 === "day" && r12.lastDayOfMonth && o14 - s10 == a6 && (u8 = 1), e12 === "day" && !r12.starDOW) { - let c12 = r12.dayOfWeek[(l7 + (o14 - s10 - 1)) % 7]; - if (c12 && c12 & p3) c12 = this.isNthWeekdayOfMonth(this.year, this.month, o14 - s10, c12) ? 1 : 0; - else if (c12) throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${c12}`); - t10.legacyMode && !r12.starDOM ? u8 = u8 || c12 : u8 = u8 && c12; - } - if (u8) return this[e12] = o14 - s10, i12 !== this[e12] ? 2 : 1; - } - return 3; - } - recurse(t10, e12, r12) { - let s10 = this.findNext(e12, m2[r12][0], t10, m2[r12][2]); - if (s10 > 1) { - let i12 = r12 + 1; - for (; i12 < m2.length; ) this[m2[i12][0]] = -m2[i12][2], i12++; - if (s10 === 3) return this[m2[r12][1]]++, this[m2[r12][0]] = -m2[r12][2], this.apply(), this.recurse(t10, e12, 0); - if (this.apply()) return this.recurse(t10, e12, r12 - 1); - } - return r12 += 1, r12 >= m2.length ? this : this.year >= 3e3 ? null : this.recurse(t10, e12, r12); - } - increment(t10, e12, r12) { - return this.second += e12.interval !== void 0 && e12.interval > 1 && r12 ? e12.interval : 1, this.ms = 0, this.apply(), this.recurse(t10, e12, 0); - } - getDate(t10) { - return t10 || this.tz === void 0 ? new Date(this.year, this.month, this.day, this.hour, this.minute, this.second, this.ms) : typeof this.tz == "number" ? new Date(Date.UTC(this.year, this.month, this.day, this.hour, this.minute - this.tz, this.second, this.ms)) : h3.fromTZ(h3.tp(this.year, this.month + 1, this.day, this.hour, this.minute, this.second, this.tz), false); - } - getTime() { - return this.getDate(false).getTime(); - } - }; - _2 = 30 * 1e3, y3 = [], R2 = class { - name; - options; - _states; - fn; - constructor(t10, e12, r12) { - let s10, i12; - if (g2(e12)) i12 = e12; - else if (typeof e12 == "object") s10 = e12; - else if (e12 !== void 0) throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options)."); - if (g2(r12)) i12 = r12; - else if (typeof r12 == "object") s10 = r12; - else if (r12 !== void 0) throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options)."); - if (this.name = s10?.name, this.options = N2(s10), this._states = { kill: false, blocking: false, previousRun: void 0, currentRun: void 0, once: void 0, currentTimeout: void 0, maxRuns: s10 ? s10.maxRuns : void 0, paused: s10 ? s10.paused : false, pattern: new d3("* * * * *") }, t10 && (t10 instanceof Date || typeof t10 == "string" && t10.indexOf(":") > 0) ? this._states.once = new f3(t10, this.options.timezone || this.options.utcOffset) : this._states.pattern = new d3(t10, this.options.timezone), this.name) { - if (y3.find((l7) => l7.name === this.name)) throw new Error("Cron: Tried to initialize new named job '" + this.name + "', but name already taken."); - y3.push(this); - } - return i12 !== void 0 && S3(i12) && (this.fn = i12, this.schedule()), this; - } - nextRun(t10) { - let e12 = this._next(t10); - return e12 ? e12.getDate(false) : null; - } - nextRuns(t10, e12) { - this._states.maxRuns !== void 0 && t10 > this._states.maxRuns && (t10 = this._states.maxRuns); - let r12 = [], s10 = e12 || this._states.currentRun || void 0; - for (; t10-- && (s10 = this.nextRun(s10)); ) r12.push(s10); - return r12; - } - getPattern() { - return this._states.pattern ? this._states.pattern.pattern : void 0; - } - isRunning() { - let t10 = this.nextRun(this._states.currentRun), e12 = !this._states.paused, r12 = this.fn !== void 0, s10 = !this._states.kill; - return e12 && r12 && s10 && t10 !== null; - } - isStopped() { - return this._states.kill; - } - isBusy() { - return this._states.blocking; - } - currentRun() { - return this._states.currentRun ? this._states.currentRun.getDate() : null; - } - previousRun() { - return this._states.previousRun ? this._states.previousRun.getDate() : null; - } - msToNext(t10) { - let e12 = this._next(t10); - return e12 ? t10 instanceof f3 || t10 instanceof Date ? e12.getTime() - t10.getTime() : e12.getTime() - new f3(t10).getTime() : null; - } - stop() { - this._states.kill = true, this._states.currentTimeout && clearTimeout(this._states.currentTimeout); - let t10 = y3.indexOf(this); - t10 >= 0 && y3.splice(t10, 1); - } - pause() { - return this._states.paused = true, !this._states.kill; - } - resume() { - return this._states.paused = false, !this._states.kill; - } - schedule(t10) { - if (t10 && this.fn) throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance."); - t10 && (this.fn = t10); - let e12 = this.msToNext(), r12 = this.nextRun(this._states.currentRun); - return e12 == null || isNaN(e12) || r12 === null ? this : (e12 > _2 && (e12 = _2), this._states.currentTimeout = setTimeout(() => this._checkTrigger(r12), e12), this._states.currentTimeout && this.options.unref && P2(this._states.currentTimeout), this); - } - async _trigger(t10) { - if (this._states.blocking = true, this._states.currentRun = new f3(void 0, this.options.timezone || this.options.utcOffset), this.options.catch) try { - this.fn !== void 0 && await this.fn(this, this.options.context); - } catch (e12) { - g2(this.options.catch) && this.options.catch(e12, this); - } - else this.fn !== void 0 && await this.fn(this, this.options.context); - this._states.previousRun = new f3(t10, this.options.timezone || this.options.utcOffset), this._states.blocking = false; - } - async trigger() { - await this._trigger(); - } - runsLeft() { - return this._states.maxRuns; - } - _checkTrigger(t10) { - let e12 = /* @__PURE__ */ new Date(), r12 = !this._states.paused && e12.getTime() >= t10.getTime(), s10 = this._states.blocking && this.options.protect; - r12 && !s10 ? (this._states.maxRuns !== void 0 && this._states.maxRuns--, this._trigger()) : r12 && s10 && g2(this.options.protect) && setTimeout(() => this.options.protect(this), 0), this.schedule(); - } - _next(t10) { - let e12 = !!(t10 || this._states.currentRun), r12 = false; - !t10 && this.options.startAt && this.options.interval && ([t10, e12] = this._calculatePreviousRun(t10, e12), r12 = !t10), t10 = new f3(t10, this.options.timezone || this.options.utcOffset), this.options.startAt && t10 && t10.getTime() < this.options.startAt.getTime() && (t10 = this.options.startAt); - let s10 = this._states.once || new f3(t10, this.options.timezone || this.options.utcOffset); - return !r12 && s10 !== this._states.once && (s10 = s10.increment(this._states.pattern, this.options, e12)), this._states.once && this._states.once.getTime() <= t10.getTime() || s10 === null || this._states.maxRuns !== void 0 && this._states.maxRuns <= 0 || this._states.kill || this.options.stopAt && s10.getTime() >= this.options.stopAt.getTime() ? null : s10; - } - _calculatePreviousRun(t10, e12) { - let r12 = new f3(void 0, this.options.timezone || this.options.utcOffset), s10 = t10; - if (this.options.startAt.getTime() <= r12.getTime()) { - s10 = this.options.startAt; - let i12 = s10.getTime() + this.options.interval * 1e3; - for (; i12 <= r12.getTime(); ) s10 = new f3(s10, this.options.timezone || this.options.utcOffset).increment(this._states.pattern, this.options, true), i12 = s10.getTime() + this.options.interval * 1e3; - e12 = true; - } - return s10 === null && (s10 = void 0), [s10, e12]; - } - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js -var daysInWeek, daysInYear, maxTime, minTime, millisecondsInWeek, millisecondsInDay, millisecondsInMinute, millisecondsInHour, millisecondsInSecond, minutesInYear, minutesInMonth, minutesInDay, minutesInHour, monthsInQuarter, monthsInYear, quartersInYear, secondsInHour, secondsInMinute, secondsInDay, secondsInWeek, secondsInYear, secondsInMonth, secondsInQuarter, constructFromSymbol; -var init_constants = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js"() { - daysInWeek = 7; - daysInYear = 365.2425; - maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1e3; - minTime = -maxTime; - millisecondsInWeek = 6048e5; - millisecondsInDay = 864e5; - millisecondsInMinute = 6e4; - millisecondsInHour = 36e5; - millisecondsInSecond = 1e3; - minutesInYear = 525600; - minutesInMonth = 43200; - minutesInDay = 1440; - minutesInHour = 60; - monthsInQuarter = 3; - monthsInYear = 12; - quartersInYear = 4; - secondsInHour = 3600; - secondsInMinute = 60; - secondsInDay = secondsInHour * 24; - secondsInWeek = secondsInDay * 7; - secondsInYear = secondsInDay * daysInYear; - secondsInMonth = secondsInYear / 12; - secondsInQuarter = secondsInMonth * 3; - constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom"); - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js -function constructFrom(date, value2) { - if (typeof date === "function") return date(value2); - if (date && typeof date === "object" && constructFromSymbol in date) - return date[constructFromSymbol](value2); - if (date instanceof Date) return new date.constructor(value2); - return new Date(value2); -} -var constructFrom_default; -var init_constructFrom = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js"() { - init_constants(); - constructFrom_default = constructFrom; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js -function toDate(argument, context2) { - return constructFrom(context2 || argument, argument); -} -var toDate_default; -var init_toDate = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js"() { - init_constructFrom(); - toDate_default = toDate; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js -function addDays(date, amount, options2) { - const _date = toDate(date, options2?.in); - if (isNaN(amount)) return constructFrom(options2?.in || date, NaN); - if (!amount) return _date; - _date.setDate(_date.getDate() + amount); - return _date; -} -var addDays_default; -var init_addDays = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js"() { - init_constructFrom(); - init_toDate(); - addDays_default = addDays; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMonths.js -function addMonths(date, amount, options2) { - const _date = toDate(date, options2?.in); - if (isNaN(amount)) return constructFrom(options2?.in || date, NaN); - if (!amount) { - return _date; - } - const dayOfMonth = _date.getDate(); - const endOfDesiredMonth = constructFrom(options2?.in || date, _date.getTime()); - endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0); - const daysInMonth = endOfDesiredMonth.getDate(); - if (dayOfMonth >= daysInMonth) { - return endOfDesiredMonth; - } else { - _date.setFullYear( - endOfDesiredMonth.getFullYear(), - endOfDesiredMonth.getMonth(), - dayOfMonth - ); - return _date; - } -} -var addMonths_default; -var init_addMonths = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMonths.js"() { - init_constructFrom(); - init_toDate(); - addMonths_default = addMonths; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/add.js -function add(date, duration, options2) { - const { - years = 0, - months: months2 = 0, - weeks = 0, - days: days2 = 0, - hours = 0, - minutes = 0, - seconds = 0 - } = duration; - const _date = toDate(date, options2?.in); - const dateWithMonths = months2 || years ? addMonths(_date, months2 + years * 12) : _date; - const dateWithDays = days2 || weeks ? addDays(dateWithMonths, days2 + weeks * 7) : dateWithMonths; - const minutesToAdd = minutes + hours * 60; - const secondsToAdd = seconds + minutesToAdd * 60; - const msToAdd = secondsToAdd * 1e3; - return constructFrom(options2?.in || date, +dateWithDays + msToAdd); -} -var add_default; -var init_add = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/add.js"() { - init_addDays(); - init_addMonths(); - init_constructFrom(); - init_toDate(); - add_default = add; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSaturday.js -function isSaturday(date, options2) { - return toDate(date, options2?.in).getDay() === 6; -} -var isSaturday_default; -var init_isSaturday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSaturday.js"() { - init_toDate(); - isSaturday_default = isSaturday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSunday.js -function isSunday(date, options2) { - return toDate(date, options2?.in).getDay() === 0; -} -var isSunday_default; -var init_isSunday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSunday.js"() { - init_toDate(); - isSunday_default = isSunday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isWeekend.js -function isWeekend(date, options2) { - const day = toDate(date, options2?.in).getDay(); - return day === 0 || day === 6; -} -var isWeekend_default; -var init_isWeekend = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isWeekend.js"() { - init_toDate(); - isWeekend_default = isWeekend; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addBusinessDays.js -function addBusinessDays(date, amount, options2) { - const _date = toDate(date, options2?.in); - const startedOnWeekend = isWeekend(_date, options2); - if (isNaN(amount)) return constructFrom(options2?.in, NaN); - const hours = _date.getHours(); - const sign = amount < 0 ? -1 : 1; - const fullWeeks = Math.trunc(amount / 5); - _date.setDate(_date.getDate() + fullWeeks * 7); - let restDays = Math.abs(amount % 5); - while (restDays > 0) { - _date.setDate(_date.getDate() + sign); - if (!isWeekend(_date, options2)) restDays -= 1; - } - if (startedOnWeekend && isWeekend(_date, options2) && amount !== 0) { - if (isSaturday(_date, options2)) - _date.setDate(_date.getDate() + (sign < 0 ? 2 : -1)); - if (isSunday(_date, options2)) - _date.setDate(_date.getDate() + (sign < 0 ? 1 : -2)); - } - _date.setHours(hours); - return _date; -} -var addBusinessDays_default; -var init_addBusinessDays = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addBusinessDays.js"() { - init_constructFrom(); - init_isSaturday(); - init_isSunday(); - init_isWeekend(); - init_toDate(); - addBusinessDays_default = addBusinessDays; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMilliseconds.js -function addMilliseconds(date, amount, options2) { - return constructFrom(options2?.in || date, +toDate(date) + amount); -} -var addMilliseconds_default; -var init_addMilliseconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMilliseconds.js"() { - init_constructFrom(); - init_toDate(); - addMilliseconds_default = addMilliseconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addHours.js -function addHours(date, amount, options2) { - return addMilliseconds(date, amount * millisecondsInHour, options2); -} -var addHours_default; -var init_addHours = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addHours.js"() { - init_addMilliseconds(); - init_constants(); - addHours_default = addHours; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js -function getDefaultOptions() { - return defaultOptions; -} -function setDefaultOptions(newOptions) { - defaultOptions = newOptions; -} -var defaultOptions; -var init_defaultOptions = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js"() { - defaultOptions = {}; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js -function startOfWeek(date, options2) { - const defaultOptions2 = getDefaultOptions(); - const weekStartsOn = options2?.weekStartsOn ?? options2?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0; - const _date = toDate(date, options2?.in); - const day = _date.getDay(); - const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; - _date.setDate(_date.getDate() - diff); - _date.setHours(0, 0, 0, 0); - return _date; -} -var startOfWeek_default; -var init_startOfWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js"() { - init_defaultOptions(); - init_toDate(); - startOfWeek_default = startOfWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeek.js -function startOfISOWeek(date, options2) { - return startOfWeek(date, { ...options2, weekStartsOn: 1 }); -} -var startOfISOWeek_default; -var init_startOfISOWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeek.js"() { - init_startOfWeek(); - startOfISOWeek_default = startOfISOWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeekYear.js -function getISOWeekYear(date, options2) { - const _date = toDate(date, options2?.in); - const year = _date.getFullYear(); - const fourthOfJanuaryOfNextYear = constructFrom(_date, 0); - fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); - fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); - const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear); - const fourthOfJanuaryOfThisYear = constructFrom(_date, 0); - fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); - fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); - const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear); - if (_date.getTime() >= startOfNextYear.getTime()) { - return year + 1; - } else if (_date.getTime() >= startOfThisYear.getTime()) { - return year; - } else { - return year - 1; - } -} -var getISOWeekYear_default; -var init_getISOWeekYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeekYear.js"() { - init_constructFrom(); - init_startOfISOWeek(); - init_toDate(); - getISOWeekYear_default = getISOWeekYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js -function getTimezoneOffsetInMilliseconds(date) { - const _date = toDate(date); - const utcDate = new Date( - Date.UTC( - _date.getFullYear(), - _date.getMonth(), - _date.getDate(), - _date.getHours(), - _date.getMinutes(), - _date.getSeconds(), - _date.getMilliseconds() - ) - ); - utcDate.setUTCFullYear(_date.getFullYear()); - return +date - +utcDate; -} -var init_getTimezoneOffsetInMilliseconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js"() { - init_toDate(); - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js -function normalizeDates(context2, ...dates) { - const normalize5 = constructFrom.bind( - null, - context2 || dates.find((date) => typeof date === "object") - ); - return dates.map(normalize5); -} -var init_normalizeDates = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js"() { - init_constructFrom(); - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDay.js -function startOfDay(date, options2) { - const _date = toDate(date, options2?.in); - _date.setHours(0, 0, 0, 0); - return _date; -} -var startOfDay_default; -var init_startOfDay = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDay.js"() { - init_toDate(); - startOfDay_default = startOfDay; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarDays.js -function differenceInCalendarDays(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - const laterStartOfDay = startOfDay(laterDate_); - const earlierStartOfDay = startOfDay(earlierDate_); - const laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay); - const earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay); - return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay); -} -var differenceInCalendarDays_default; -var init_differenceInCalendarDays = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarDays.js"() { - init_getTimezoneOffsetInMilliseconds(); - init_normalizeDates(); - init_constants(); - init_startOfDay(); - differenceInCalendarDays_default = differenceInCalendarDays; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeekYear.js -function startOfISOWeekYear(date, options2) { - const year = getISOWeekYear(date, options2); - const fourthOfJanuary = constructFrom(options2?.in || date, 0); - fourthOfJanuary.setFullYear(year, 0, 4); - fourthOfJanuary.setHours(0, 0, 0, 0); - return startOfISOWeek(fourthOfJanuary); -} -var startOfISOWeekYear_default; -var init_startOfISOWeekYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeekYear.js"() { - init_constructFrom(); - init_getISOWeekYear(); - init_startOfISOWeek(); - startOfISOWeekYear_default = startOfISOWeekYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISOWeekYear.js -function setISOWeekYear(date, weekYear, options2) { - let _date = toDate(date, options2?.in); - const diff = differenceInCalendarDays( - _date, - startOfISOWeekYear(_date, options2) - ); - const fourthOfJanuary = constructFrom(options2?.in || date, 0); - fourthOfJanuary.setFullYear(weekYear, 0, 4); - fourthOfJanuary.setHours(0, 0, 0, 0); - _date = startOfISOWeekYear(fourthOfJanuary); - _date.setDate(_date.getDate() + diff); - return _date; -} -var setISOWeekYear_default; -var init_setISOWeekYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISOWeekYear.js"() { - init_constructFrom(); - init_differenceInCalendarDays(); - init_startOfISOWeekYear(); - init_toDate(); - setISOWeekYear_default = setISOWeekYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addISOWeekYears.js -function addISOWeekYears(date, amount, options2) { - return setISOWeekYear(date, getISOWeekYear(date, options2) + amount, options2); -} -var addISOWeekYears_default; -var init_addISOWeekYears = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addISOWeekYears.js"() { - init_getISOWeekYear(); - init_setISOWeekYear(); - addISOWeekYears_default = addISOWeekYears; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMinutes.js -function addMinutes(date, amount, options2) { - const _date = toDate(date, options2?.in); - _date.setTime(_date.getTime() + amount * millisecondsInMinute); - return _date; -} -var addMinutes_default; -var init_addMinutes = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMinutes.js"() { - init_constants(); - init_toDate(); - addMinutes_default = addMinutes; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addQuarters.js -function addQuarters(date, amount, options2) { - return addMonths(date, amount * 3, options2); -} -var addQuarters_default; -var init_addQuarters = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addQuarters.js"() { - init_addMonths(); - addQuarters_default = addQuarters; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addSeconds.js -function addSeconds(date, amount, options2) { - return addMilliseconds(date, amount * 1e3, options2); -} -var addSeconds_default; -var init_addSeconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addSeconds.js"() { - init_addMilliseconds(); - addSeconds_default = addSeconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addWeeks.js -function addWeeks(date, amount, options2) { - return addDays(date, amount * 7, options2); -} -var addWeeks_default; -var init_addWeeks = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addWeeks.js"() { - init_addDays(); - addWeeks_default = addWeeks; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addYears.js -function addYears(date, amount, options2) { - return addMonths(date, amount * 12, options2); -} -var addYears_default; -var init_addYears = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addYears.js"() { - init_addMonths(); - addYears_default = addYears; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/areIntervalsOverlapping.js -function areIntervalsOverlapping(intervalLeft, intervalRight, options2) { - const [leftStartTime, leftEndTime] = [ - +toDate(intervalLeft.start, options2?.in), - +toDate(intervalLeft.end, options2?.in) - ].sort((a6, b6) => a6 - b6); - const [rightStartTime, rightEndTime] = [ - +toDate(intervalRight.start, options2?.in), - +toDate(intervalRight.end, options2?.in) - ].sort((a6, b6) => a6 - b6); - if (options2?.inclusive) - return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; - return leftStartTime < rightEndTime && rightStartTime < leftEndTime; -} -var areIntervalsOverlapping_default; -var init_areIntervalsOverlapping = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/areIntervalsOverlapping.js"() { - init_toDate(); - areIntervalsOverlapping_default = areIntervalsOverlapping; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/max.js -function max2(dates, options2) { - let result; - let context2 = options2?.in; - dates.forEach((date) => { - if (!context2 && typeof date === "object") - context2 = constructFrom.bind(null, date); - const date_ = toDate(date, context2); - if (!result || result < date_ || isNaN(+date_)) result = date_; - }); - return constructFrom(context2, result || NaN); -} -var max_default; -var init_max2 = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/max.js"() { - init_constructFrom(); - init_toDate(); - max_default = max2; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/min.js -function min2(dates, options2) { - let result; - let context2 = options2?.in; - dates.forEach((date) => { - if (!context2 && typeof date === "object") - context2 = constructFrom.bind(null, date); - const date_ = toDate(date, context2); - if (!result || result > date_ || isNaN(+date_)) result = date_; - }); - return constructFrom(context2, result || NaN); -} -var min_default; -var init_min2 = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/min.js"() { - init_constructFrom(); - init_toDate(); - min_default = min2; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/clamp.js -function clamp(date, interval3, options2) { - const [date_, start, end3] = normalizeDates( - options2?.in, - date, - interval3.start, - interval3.end - ); - return min2([max2([date_, start], options2), end3], options2); -} -var clamp_default; -var init_clamp = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/clamp.js"() { - init_normalizeDates(); - init_max2(); - init_min2(); - clamp_default = clamp; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/closestIndexTo.js -function closestIndexTo(dateToCompare, dates) { - const timeToCompare = +toDate(dateToCompare); - if (isNaN(timeToCompare)) return NaN; - let result; - let minDistance; - dates.forEach((date, index3) => { - const date_ = toDate(date); - if (isNaN(+date_)) { - result = NaN; - minDistance = NaN; - return; - } - const distance = Math.abs(timeToCompare - +date_); - if (result == null || distance < minDistance) { - result = index3; - minDistance = distance; - } - }); - return result; -} -var closestIndexTo_default; -var init_closestIndexTo = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/closestIndexTo.js"() { - init_toDate(); - closestIndexTo_default = closestIndexTo; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/closestTo.js -function closestTo(dateToCompare, dates, options2) { - const [dateToCompare_, ...dates_] = normalizeDates( - options2?.in, - dateToCompare, - ...dates - ); - const index3 = closestIndexTo(dateToCompare_, dates_); - if (typeof index3 === "number" && isNaN(index3)) - return constructFrom(dateToCompare_, NaN); - if (index3 !== void 0) return dates_[index3]; -} -var closestTo_default; -var init_closestTo = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/closestTo.js"() { - init_normalizeDates(); - init_closestIndexTo(); - init_constructFrom(); - closestTo_default = closestTo; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/compareAsc.js -function compareAsc(dateLeft, dateRight) { - const diff = +toDate(dateLeft) - +toDate(dateRight); - if (diff < 0) return -1; - else if (diff > 0) return 1; - return diff; -} -var compareAsc_default; -var init_compareAsc = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/compareAsc.js"() { - init_toDate(); - compareAsc_default = compareAsc; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/compareDesc.js -function compareDesc(dateLeft, dateRight) { - const diff = +toDate(dateLeft) - +toDate(dateRight); - if (diff > 0) return -1; - else if (diff < 0) return 1; - return diff; -} -var compareDesc_default; -var init_compareDesc = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/compareDesc.js"() { - init_toDate(); - compareDesc_default = compareDesc; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructNow.js -function constructNow(date) { - return constructFrom(date, Date.now()); -} -var constructNow_default; -var init_constructNow = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructNow.js"() { - init_constructFrom(); - constructNow_default = constructNow; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/daysToWeeks.js -function daysToWeeks(days2) { - const result = Math.trunc(days2 / daysInWeek); - return result === 0 ? 0 : result; -} -var daysToWeeks_default; -var init_daysToWeeks = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/daysToWeeks.js"() { - init_constants(); - daysToWeeks_default = daysToWeeks; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameDay.js -function isSameDay(laterDate, earlierDate, options2) { - const [dateLeft_, dateRight_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - return +startOfDay(dateLeft_) === +startOfDay(dateRight_); -} -var isSameDay_default; -var init_isSameDay = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameDay.js"() { - init_normalizeDates(); - init_startOfDay(); - isSameDay_default = isSameDay; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isDate.js -function isDate(value2) { - return value2 instanceof Date || typeof value2 === "object" && Object.prototype.toString.call(value2) === "[object Date]"; -} -var isDate_default; -var init_isDate2 = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isDate.js"() { - isDate_default = isDate; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isValid.js -function isValid(date) { - return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date))); -} -var isValid_default; -var init_isValid = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isValid.js"() { - init_isDate2(); - init_toDate(); - isValid_default = isValid; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInBusinessDays.js -function differenceInBusinessDays(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - if (!isValid(laterDate_) || !isValid(earlierDate_)) return NaN; - const diff = differenceInCalendarDays(laterDate_, earlierDate_); - const sign = diff < 0 ? -1 : 1; - const weeks = Math.trunc(diff / 7); - let result = weeks * 5; - let movingDate = addDays(earlierDate_, weeks * 7); - while (!isSameDay(laterDate_, movingDate)) { - result += isWeekend(movingDate, options2) ? 0 : sign; - movingDate = addDays(movingDate, sign); - } - return result === 0 ? 0 : result; -} -var differenceInBusinessDays_default; -var init_differenceInBusinessDays = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInBusinessDays.js"() { - init_normalizeDates(); - init_addDays(); - init_differenceInCalendarDays(); - init_isSameDay(); - init_isValid(); - init_isWeekend(); - differenceInBusinessDays_default = differenceInBusinessDays; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarISOWeekYears.js -function differenceInCalendarISOWeekYears(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - return getISOWeekYear(laterDate_, options2) - getISOWeekYear(earlierDate_, options2); -} -var differenceInCalendarISOWeekYears_default; -var init_differenceInCalendarISOWeekYears = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarISOWeekYears.js"() { - init_normalizeDates(); - init_getISOWeekYear(); - differenceInCalendarISOWeekYears_default = differenceInCalendarISOWeekYears; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarISOWeeks.js -function differenceInCalendarISOWeeks(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - const startOfISOWeekLeft = startOfISOWeek(laterDate_); - const startOfISOWeekRight = startOfISOWeek(earlierDate_); - const timestampLeft = +startOfISOWeekLeft - getTimezoneOffsetInMilliseconds(startOfISOWeekLeft); - const timestampRight = +startOfISOWeekRight - getTimezoneOffsetInMilliseconds(startOfISOWeekRight); - return Math.round((timestampLeft - timestampRight) / millisecondsInWeek); -} -var differenceInCalendarISOWeeks_default; -var init_differenceInCalendarISOWeeks = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarISOWeeks.js"() { - init_getTimezoneOffsetInMilliseconds(); - init_normalizeDates(); - init_constants(); - init_startOfISOWeek(); - differenceInCalendarISOWeeks_default = differenceInCalendarISOWeeks; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarMonths.js -function differenceInCalendarMonths(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); - const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth(); - return yearsDiff * 12 + monthsDiff; -} -var differenceInCalendarMonths_default; -var init_differenceInCalendarMonths = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarMonths.js"() { - init_normalizeDates(); - differenceInCalendarMonths_default = differenceInCalendarMonths; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getQuarter.js -function getQuarter(date, options2) { - const _date = toDate(date, options2?.in); - const quarter = Math.trunc(_date.getMonth() / 3) + 1; - return quarter; -} -var getQuarter_default; -var init_getQuarter = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getQuarter.js"() { - init_toDate(); - getQuarter_default = getQuarter; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarQuarters.js -function differenceInCalendarQuarters(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear(); - const quartersDiff = getQuarter(laterDate_) - getQuarter(earlierDate_); - return yearsDiff * 4 + quartersDiff; -} -var differenceInCalendarQuarters_default; -var init_differenceInCalendarQuarters = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarQuarters.js"() { - init_normalizeDates(); - init_getQuarter(); - differenceInCalendarQuarters_default = differenceInCalendarQuarters; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarWeeks.js -function differenceInCalendarWeeks(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - const laterStartOfWeek = startOfWeek(laterDate_, options2); - const earlierStartOfWeek = startOfWeek(earlierDate_, options2); - const laterTimestamp = +laterStartOfWeek - getTimezoneOffsetInMilliseconds(laterStartOfWeek); - const earlierTimestamp = +earlierStartOfWeek - getTimezoneOffsetInMilliseconds(earlierStartOfWeek); - return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInWeek); -} -var differenceInCalendarWeeks_default; -var init_differenceInCalendarWeeks = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarWeeks.js"() { - init_getTimezoneOffsetInMilliseconds(); - init_normalizeDates(); - init_constants(); - init_startOfWeek(); - differenceInCalendarWeeks_default = differenceInCalendarWeeks; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarYears.js -function differenceInCalendarYears(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - return laterDate_.getFullYear() - earlierDate_.getFullYear(); -} -var differenceInCalendarYears_default; -var init_differenceInCalendarYears = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarYears.js"() { - init_normalizeDates(); - differenceInCalendarYears_default = differenceInCalendarYears; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInDays.js -function differenceInDays(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - const sign = compareLocalAsc(laterDate_, earlierDate_); - const difference = Math.abs( - differenceInCalendarDays(laterDate_, earlierDate_) - ); - laterDate_.setDate(laterDate_.getDate() - sign * difference); - const isLastDayNotFull = Number( - compareLocalAsc(laterDate_, earlierDate_) === -sign - ); - const result = sign * (difference - isLastDayNotFull); - return result === 0 ? 0 : result; -} -function compareLocalAsc(laterDate, earlierDate) { - const diff = laterDate.getFullYear() - earlierDate.getFullYear() || laterDate.getMonth() - earlierDate.getMonth() || laterDate.getDate() - earlierDate.getDate() || laterDate.getHours() - earlierDate.getHours() || laterDate.getMinutes() - earlierDate.getMinutes() || laterDate.getSeconds() - earlierDate.getSeconds() || laterDate.getMilliseconds() - earlierDate.getMilliseconds(); - if (diff < 0) return -1; - if (diff > 0) return 1; - return diff; -} -var differenceInDays_default; -var init_differenceInDays = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInDays.js"() { - init_normalizeDates(); - init_differenceInCalendarDays(); - differenceInDays_default = differenceInDays; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getRoundingMethod.js -function getRoundingMethod(method) { - return (number2) => { - const round = method ? Math[method] : Math.trunc; - const result = round(number2); - return result === 0 ? 0 : result; - }; -} -var init_getRoundingMethod = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getRoundingMethod.js"() { - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInHours.js -function differenceInHours(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - const diff = (+laterDate_ - +earlierDate_) / millisecondsInHour; - return getRoundingMethod(options2?.roundingMethod)(diff); -} -var differenceInHours_default; -var init_differenceInHours = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInHours.js"() { - init_getRoundingMethod(); - init_normalizeDates(); - init_constants(); - differenceInHours_default = differenceInHours; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subISOWeekYears.js -function subISOWeekYears(date, amount, options2) { - return addISOWeekYears(date, -amount, options2); -} -var subISOWeekYears_default; -var init_subISOWeekYears = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subISOWeekYears.js"() { - init_addISOWeekYears(); - subISOWeekYears_default = subISOWeekYears; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInISOWeekYears.js -function differenceInISOWeekYears(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - const sign = compareAsc(laterDate_, earlierDate_); - const diff = Math.abs( - differenceInCalendarISOWeekYears(laterDate_, earlierDate_, options2) - ); - const adjustedDate = subISOWeekYears(laterDate_, sign * diff, options2); - const isLastISOWeekYearNotFull = Number( - compareAsc(adjustedDate, earlierDate_) === -sign - ); - const result = sign * (diff - isLastISOWeekYearNotFull); - return result === 0 ? 0 : result; -} -var differenceInISOWeekYears_default; -var init_differenceInISOWeekYears = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInISOWeekYears.js"() { - init_normalizeDates(); - init_compareAsc(); - init_differenceInCalendarISOWeekYears(); - init_subISOWeekYears(); - differenceInISOWeekYears_default = differenceInISOWeekYears; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMilliseconds.js -function differenceInMilliseconds(laterDate, earlierDate) { - return +toDate(laterDate) - +toDate(earlierDate); -} -var differenceInMilliseconds_default; -var init_differenceInMilliseconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMilliseconds.js"() { - init_toDate(); - differenceInMilliseconds_default = differenceInMilliseconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMinutes.js -function differenceInMinutes(dateLeft, dateRight, options2) { - const diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute; - return getRoundingMethod(options2?.roundingMethod)(diff); -} -var differenceInMinutes_default; -var init_differenceInMinutes = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMinutes.js"() { - init_getRoundingMethod(); - init_constants(); - init_differenceInMilliseconds(); - differenceInMinutes_default = differenceInMinutes; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfDay.js -function endOfDay(date, options2) { - const _date = toDate(date, options2?.in); - _date.setHours(23, 59, 59, 999); - return _date; -} -var endOfDay_default; -var init_endOfDay = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfDay.js"() { - init_toDate(); - endOfDay_default = endOfDay; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMonth.js -function endOfMonth(date, options2) { - const _date = toDate(date, options2?.in); - const month = _date.getMonth(); - _date.setFullYear(_date.getFullYear(), month + 1, 0); - _date.setHours(23, 59, 59, 999); - return _date; -} -var endOfMonth_default; -var init_endOfMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMonth.js"() { - init_toDate(); - endOfMonth_default = endOfMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isLastDayOfMonth.js -function isLastDayOfMonth(date, options2) { - const _date = toDate(date, options2?.in); - return +endOfDay(_date, options2) === +endOfMonth(_date, options2); -} -var isLastDayOfMonth_default; -var init_isLastDayOfMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isLastDayOfMonth.js"() { - init_endOfDay(); - init_endOfMonth(); - init_toDate(); - isLastDayOfMonth_default = isLastDayOfMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMonths.js -function differenceInMonths(laterDate, earlierDate, options2) { - const [laterDate_, workingLaterDate, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - laterDate, - earlierDate - ); - const sign = compareAsc(workingLaterDate, earlierDate_); - const difference = Math.abs( - differenceInCalendarMonths(workingLaterDate, earlierDate_) - ); - if (difference < 1) return 0; - if (workingLaterDate.getMonth() === 1 && workingLaterDate.getDate() > 27) - workingLaterDate.setDate(30); - workingLaterDate.setMonth(workingLaterDate.getMonth() - sign * difference); - let isLastMonthNotFull = compareAsc(workingLaterDate, earlierDate_) === -sign; - if (isLastDayOfMonth(laterDate_) && difference === 1 && compareAsc(laterDate_, earlierDate_) === 1) { - isLastMonthNotFull = false; - } - const result = sign * (difference - +isLastMonthNotFull); - return result === 0 ? 0 : result; -} -var differenceInMonths_default; -var init_differenceInMonths = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMonths.js"() { - init_normalizeDates(); - init_compareAsc(); - init_differenceInCalendarMonths(); - init_isLastDayOfMonth(); - differenceInMonths_default = differenceInMonths; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInQuarters.js -function differenceInQuarters(laterDate, earlierDate, options2) { - const diff = differenceInMonths(laterDate, earlierDate, options2) / 3; - return getRoundingMethod(options2?.roundingMethod)(diff); -} -var differenceInQuarters_default; -var init_differenceInQuarters = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInQuarters.js"() { - init_getRoundingMethod(); - init_differenceInMonths(); - differenceInQuarters_default = differenceInQuarters; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInSeconds.js -function differenceInSeconds(laterDate, earlierDate, options2) { - const diff = differenceInMilliseconds(laterDate, earlierDate) / 1e3; - return getRoundingMethod(options2?.roundingMethod)(diff); -} -var differenceInSeconds_default; -var init_differenceInSeconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInSeconds.js"() { - init_getRoundingMethod(); - init_differenceInMilliseconds(); - differenceInSeconds_default = differenceInSeconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInWeeks.js -function differenceInWeeks(laterDate, earlierDate, options2) { - const diff = differenceInDays(laterDate, earlierDate, options2) / 7; - return getRoundingMethod(options2?.roundingMethod)(diff); -} -var differenceInWeeks_default; -var init_differenceInWeeks = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInWeeks.js"() { - init_getRoundingMethod(); - init_differenceInDays(); - differenceInWeeks_default = differenceInWeeks; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInYears.js -function differenceInYears(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - const sign = compareAsc(laterDate_, earlierDate_); - const diff = Math.abs(differenceInCalendarYears(laterDate_, earlierDate_)); - laterDate_.setFullYear(1584); - earlierDate_.setFullYear(1584); - const partial = compareAsc(laterDate_, earlierDate_) === -sign; - const result = sign * (diff - +partial); - return result === 0 ? 0 : result; -} -var differenceInYears_default; -var init_differenceInYears = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInYears.js"() { - init_normalizeDates(); - init_compareAsc(); - init_differenceInCalendarYears(); - differenceInYears_default = differenceInYears; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeInterval.js -function normalizeInterval(context2, interval3) { - const [start, end3] = normalizeDates(context2, interval3.start, interval3.end); - return { start, end: end3 }; -} -var init_normalizeInterval = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeInterval.js"() { - init_normalizeDates(); - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachDayOfInterval.js -function eachDayOfInterval(interval3, options2) { - const { start, end: end3 } = normalizeInterval(options2?.in, interval3); - let reversed = +start > +end3; - const endTime = reversed ? +start : +end3; - const date = reversed ? end3 : start; - date.setHours(0, 0, 0, 0); - let step = options2?.step ?? 1; - if (!step) return []; - if (step < 0) { - step = -step; - reversed = !reversed; - } - const dates = []; - while (+date <= endTime) { - dates.push(constructFrom(start, date)); - date.setDate(date.getDate() + step); - date.setHours(0, 0, 0, 0); - } - return reversed ? dates.reverse() : dates; -} -var eachDayOfInterval_default; -var init_eachDayOfInterval = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachDayOfInterval.js"() { - init_normalizeInterval(); - init_constructFrom(); - eachDayOfInterval_default = eachDayOfInterval; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachHourOfInterval.js -function eachHourOfInterval(interval3, options2) { - const { start, end: end3 } = normalizeInterval(options2?.in, interval3); - let reversed = +start > +end3; - const endTime = reversed ? +start : +end3; - const date = reversed ? end3 : start; - date.setMinutes(0, 0, 0); - let step = options2?.step ?? 1; - if (!step) return []; - if (step < 0) { - step = -step; - reversed = !reversed; - } - const dates = []; - while (+date <= endTime) { - dates.push(constructFrom(start, date)); - date.setHours(date.getHours() + step); - } - return reversed ? dates.reverse() : dates; -} -var eachHourOfInterval_default; -var init_eachHourOfInterval = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachHourOfInterval.js"() { - init_normalizeInterval(); - init_constructFrom(); - eachHourOfInterval_default = eachHourOfInterval; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachMinuteOfInterval.js -function eachMinuteOfInterval(interval3, options2) { - const { start, end: end3 } = normalizeInterval(options2?.in, interval3); - start.setSeconds(0, 0); - let reversed = +start > +end3; - const endTime = reversed ? +start : +end3; - let date = reversed ? end3 : start; - let step = options2?.step ?? 1; - if (!step) return []; - if (step < 0) { - step = -step; - reversed = !reversed; - } - const dates = []; - while (+date <= endTime) { - dates.push(constructFrom(start, date)); - date = addMinutes(date, step); - } - return reversed ? dates.reverse() : dates; -} -var eachMinuteOfInterval_default; -var init_eachMinuteOfInterval = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachMinuteOfInterval.js"() { - init_normalizeInterval(); - init_addMinutes(); - init_constructFrom(); - eachMinuteOfInterval_default = eachMinuteOfInterval; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachMonthOfInterval.js -function eachMonthOfInterval(interval3, options2) { - const { start, end: end3 } = normalizeInterval(options2?.in, interval3); - let reversed = +start > +end3; - const endTime = reversed ? +start : +end3; - const date = reversed ? end3 : start; - date.setHours(0, 0, 0, 0); - date.setDate(1); - let step = options2?.step ?? 1; - if (!step) return []; - if (step < 0) { - step = -step; - reversed = !reversed; - } - const dates = []; - while (+date <= endTime) { - dates.push(constructFrom(start, date)); - date.setMonth(date.getMonth() + step); - } - return reversed ? dates.reverse() : dates; -} -var eachMonthOfInterval_default; -var init_eachMonthOfInterval = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachMonthOfInterval.js"() { - init_normalizeInterval(); - init_constructFrom(); - eachMonthOfInterval_default = eachMonthOfInterval; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfQuarter.js -function startOfQuarter(date, options2) { - const _date = toDate(date, options2?.in); - const currentMonth = _date.getMonth(); - const month = currentMonth - currentMonth % 3; - _date.setMonth(month, 1); - _date.setHours(0, 0, 0, 0); - return _date; -} -var startOfQuarter_default; -var init_startOfQuarter = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfQuarter.js"() { - init_toDate(); - startOfQuarter_default = startOfQuarter; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachQuarterOfInterval.js -function eachQuarterOfInterval(interval3, options2) { - const { start, end: end3 } = normalizeInterval(options2?.in, interval3); - let reversed = +start > +end3; - const endTime = reversed ? +startOfQuarter(start) : +startOfQuarter(end3); - let date = reversed ? startOfQuarter(end3) : startOfQuarter(start); - let step = options2?.step ?? 1; - if (!step) return []; - if (step < 0) { - step = -step; - reversed = !reversed; - } - const dates = []; - while (+date <= endTime) { - dates.push(constructFrom(start, date)); - date = addQuarters(date, step); - } - return reversed ? dates.reverse() : dates; -} -var eachQuarterOfInterval_default; -var init_eachQuarterOfInterval = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachQuarterOfInterval.js"() { - init_normalizeInterval(); - init_addQuarters(); - init_constructFrom(); - init_startOfQuarter(); - eachQuarterOfInterval_default = eachQuarterOfInterval; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachWeekOfInterval.js -function eachWeekOfInterval(interval3, options2) { - const { start, end: end3 } = normalizeInterval(options2?.in, interval3); - let reversed = +start > +end3; - const startDateWeek = reversed ? startOfWeek(end3, options2) : startOfWeek(start, options2); - const endDateWeek = reversed ? startOfWeek(start, options2) : startOfWeek(end3, options2); - startDateWeek.setHours(15); - endDateWeek.setHours(15); - const endTime = +endDateWeek.getTime(); - let currentDate = startDateWeek; - let step = options2?.step ?? 1; - if (!step) return []; - if (step < 0) { - step = -step; - reversed = !reversed; - } - const dates = []; - while (+currentDate <= endTime) { - currentDate.setHours(0); - dates.push(constructFrom(start, currentDate)); - currentDate = addWeeks(currentDate, step); - currentDate.setHours(15); - } - return reversed ? dates.reverse() : dates; -} -var eachWeekOfInterval_default; -var init_eachWeekOfInterval = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachWeekOfInterval.js"() { - init_normalizeInterval(); - init_addWeeks(); - init_constructFrom(); - init_startOfWeek(); - eachWeekOfInterval_default = eachWeekOfInterval; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachWeekendOfInterval.js -function eachWeekendOfInterval(interval3, options2) { - const { start, end: end3 } = normalizeInterval(options2?.in, interval3); - const dateInterval = eachDayOfInterval({ start, end: end3 }, options2); - const weekends = []; - let index3 = 0; - while (index3 < dateInterval.length) { - const date = dateInterval[index3++]; - if (isWeekend(date)) weekends.push(constructFrom(start, date)); - } - return weekends; -} -var eachWeekendOfInterval_default; -var init_eachWeekendOfInterval = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachWeekendOfInterval.js"() { - init_normalizeInterval(); - init_constructFrom(); - init_eachDayOfInterval(); - init_isWeekend(); - eachWeekendOfInterval_default = eachWeekendOfInterval; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMonth.js -function startOfMonth(date, options2) { - const _date = toDate(date, options2?.in); - _date.setDate(1); - _date.setHours(0, 0, 0, 0); - return _date; -} -var startOfMonth_default; -var init_startOfMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMonth.js"() { - init_toDate(); - startOfMonth_default = startOfMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachWeekendOfMonth.js -function eachWeekendOfMonth(date, options2) { - const start = startOfMonth(date, options2); - const end3 = endOfMonth(date, options2); - return eachWeekendOfInterval({ start, end: end3 }, options2); -} -var eachWeekendOfMonth_default; -var init_eachWeekendOfMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachWeekendOfMonth.js"() { - init_eachWeekendOfInterval(); - init_endOfMonth(); - init_startOfMonth(); - eachWeekendOfMonth_default = eachWeekendOfMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYear.js -function endOfYear(date, options2) { - const _date = toDate(date, options2?.in); - const year = _date.getFullYear(); - _date.setFullYear(year + 1, 0, 0); - _date.setHours(23, 59, 59, 999); - return _date; -} -var endOfYear_default; -var init_endOfYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYear.js"() { - init_toDate(); - endOfYear_default = endOfYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYear.js -function startOfYear(date, options2) { - const date_ = toDate(date, options2?.in); - date_.setFullYear(date_.getFullYear(), 0, 1); - date_.setHours(0, 0, 0, 0); - return date_; -} -var startOfYear_default; -var init_startOfYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYear.js"() { - init_toDate(); - startOfYear_default = startOfYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachWeekendOfYear.js -function eachWeekendOfYear(date, options2) { - const start = startOfYear(date, options2); - const end3 = endOfYear(date, options2); - return eachWeekendOfInterval({ start, end: end3 }, options2); -} -var eachWeekendOfYear_default; -var init_eachWeekendOfYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachWeekendOfYear.js"() { - init_eachWeekendOfInterval(); - init_endOfYear(); - init_startOfYear(); - eachWeekendOfYear_default = eachWeekendOfYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachYearOfInterval.js -function eachYearOfInterval(interval3, options2) { - const { start, end: end3 } = normalizeInterval(options2?.in, interval3); - let reversed = +start > +end3; - const endTime = reversed ? +start : +end3; - const date = reversed ? end3 : start; - date.setHours(0, 0, 0, 0); - date.setMonth(0, 1); - let step = options2?.step ?? 1; - if (!step) return []; - if (step < 0) { - step = -step; - reversed = !reversed; - } - const dates = []; - while (+date <= endTime) { - dates.push(constructFrom(start, date)); - date.setFullYear(date.getFullYear() + step); - } - return reversed ? dates.reverse() : dates; -} -var eachYearOfInterval_default; -var init_eachYearOfInterval = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachYearOfInterval.js"() { - init_normalizeInterval(); - init_constructFrom(); - eachYearOfInterval_default = eachYearOfInterval; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfDecade.js -function endOfDecade(date, options2) { - const _date = toDate(date, options2?.in); - const year = _date.getFullYear(); - const decade = 9 + Math.floor(year / 10) * 10; - _date.setFullYear(decade, 11, 31); - _date.setHours(23, 59, 59, 999); - return _date; -} -var endOfDecade_default; -var init_endOfDecade = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfDecade.js"() { - init_toDate(); - endOfDecade_default = endOfDecade; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfHour.js -function endOfHour(date, options2) { - const _date = toDate(date, options2?.in); - _date.setMinutes(59, 59, 999); - return _date; -} -var endOfHour_default; -var init_endOfHour = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfHour.js"() { - init_toDate(); - endOfHour_default = endOfHour; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfWeek.js -function endOfWeek(date, options2) { - const defaultOptions2 = getDefaultOptions(); - const weekStartsOn = options2?.weekStartsOn ?? options2?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0; - const _date = toDate(date, options2?.in); - const day = _date.getDay(); - const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); - _date.setDate(_date.getDate() + diff); - _date.setHours(23, 59, 59, 999); - return _date; -} -var endOfWeek_default; -var init_endOfWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfWeek.js"() { - init_defaultOptions(); - init_toDate(); - endOfWeek_default = endOfWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfISOWeek.js -function endOfISOWeek(date, options2) { - return endOfWeek(date, { ...options2, weekStartsOn: 1 }); -} -var endOfISOWeek_default; -var init_endOfISOWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfISOWeek.js"() { - init_endOfWeek(); - endOfISOWeek_default = endOfISOWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfISOWeekYear.js -function endOfISOWeekYear(date, options2) { - const year = getISOWeekYear(date, options2); - const fourthOfJanuaryOfNextYear = constructFrom(options2?.in || date, 0); - fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); - fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); - const _date = startOfISOWeek(fourthOfJanuaryOfNextYear, options2); - _date.setMilliseconds(_date.getMilliseconds() - 1); - return _date; -} -var endOfISOWeekYear_default; -var init_endOfISOWeekYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfISOWeekYear.js"() { - init_constructFrom(); - init_getISOWeekYear(); - init_startOfISOWeek(); - endOfISOWeekYear_default = endOfISOWeekYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMinute.js -function endOfMinute(date, options2) { - const _date = toDate(date, options2?.in); - _date.setSeconds(59, 999); - return _date; -} -var endOfMinute_default; -var init_endOfMinute = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMinute.js"() { - init_toDate(); - endOfMinute_default = endOfMinute; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfQuarter.js -function endOfQuarter(date, options2) { - const _date = toDate(date, options2?.in); - const currentMonth = _date.getMonth(); - const month = currentMonth - currentMonth % 3 + 3; - _date.setMonth(month, 0); - _date.setHours(23, 59, 59, 999); - return _date; -} -var endOfQuarter_default; -var init_endOfQuarter = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfQuarter.js"() { - init_toDate(); - endOfQuarter_default = endOfQuarter; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfSecond.js -function endOfSecond(date, options2) { - const _date = toDate(date, options2?.in); - _date.setMilliseconds(999); - return _date; -} -var endOfSecond_default; -var init_endOfSecond = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfSecond.js"() { - init_toDate(); - endOfSecond_default = endOfSecond; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfToday.js -function endOfToday(options2) { - return endOfDay(Date.now(), options2); -} -var endOfToday_default; -var init_endOfToday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfToday.js"() { - init_endOfDay(); - endOfToday_default = endOfToday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfTomorrow.js -function endOfTomorrow(options2) { - const now2 = constructNow(options2?.in); - const year = now2.getFullYear(); - const month = now2.getMonth(); - const day = now2.getDate(); - const date = constructNow(options2?.in); - date.setFullYear(year, month, day + 1); - date.setHours(23, 59, 59, 999); - return options2?.in ? options2.in(date) : date; -} -var endOfTomorrow_default; -var init_endOfTomorrow = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfTomorrow.js"() { - init_constructNow(); - endOfTomorrow_default = endOfTomorrow; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYesterday.js -function endOfYesterday(options2) { - const now2 = constructNow(options2?.in); - const date = constructFrom(options2?.in, 0); - date.setFullYear(now2.getFullYear(), now2.getMonth(), now2.getDate() - 1); - date.setHours(23, 59, 59, 999); - return date; -} -var endOfYesterday_default; -var init_endOfYesterday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYesterday.js"() { - init_constructFrom(); - init_constructNow(); - endOfYesterday_default = endOfYesterday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js -var formatDistanceLocale, formatDistance; -var init_formatDistance = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js"() { - formatDistanceLocale = { - lessThanXSeconds: { - one: "less than a second", - other: "less than {{count}} seconds" - }, - xSeconds: { - one: "1 second", - other: "{{count}} seconds" - }, - halfAMinute: "half a minute", - lessThanXMinutes: { - one: "less than a minute", - other: "less than {{count}} minutes" - }, - xMinutes: { - one: "1 minute", - other: "{{count}} minutes" - }, - aboutXHours: { - one: "about 1 hour", - other: "about {{count}} hours" - }, - xHours: { - one: "1 hour", - other: "{{count}} hours" - }, - xDays: { - one: "1 day", - other: "{{count}} days" - }, - aboutXWeeks: { - one: "about 1 week", - other: "about {{count}} weeks" - }, - xWeeks: { - one: "1 week", - other: "{{count}} weeks" - }, - aboutXMonths: { - one: "about 1 month", - other: "about {{count}} months" - }, - xMonths: { - one: "1 month", - other: "{{count}} months" - }, - aboutXYears: { - one: "about 1 year", - other: "about {{count}} years" - }, - xYears: { - one: "1 year", - other: "{{count}} years" - }, - overXYears: { - one: "over 1 year", - other: "over {{count}} years" - }, - almostXYears: { - one: "almost 1 year", - other: "almost {{count}} years" - } - }; - formatDistance = (token, count2, options2) => { - let result; - const tokenValue = formatDistanceLocale[token]; - if (typeof tokenValue === "string") { - result = tokenValue; - } else if (count2 === 1) { - result = tokenValue.one; - } else { - result = tokenValue.other.replace("{{count}}", count2.toString()); - } - if (options2?.addSuffix) { - if (options2.comparison && options2.comparison > 0) { - return "in " + result; - } else { - return result + " ago"; - } - } - return result; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js -function buildFormatLongFn(args) { - return (options2 = {}) => { - const width = options2.width ? String(options2.width) : args.defaultWidth; - const format2 = args.formats[width] || args.formats[args.defaultWidth]; - return format2; - }; -} -var init_buildFormatLongFn = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js"() { - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js -var dateFormats, timeFormats, dateTimeFormats, formatLong; -var init_formatLong = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js"() { - init_buildFormatLongFn(); - dateFormats = { - full: "EEEE, MMMM do, y", - long: "MMMM do, y", - medium: "MMM d, y", - short: "MM/dd/yyyy" - }; - timeFormats = { - full: "h:mm:ss a zzzz", - long: "h:mm:ss a z", - medium: "h:mm:ss a", - short: "h:mm a" - }; - dateTimeFormats = { - full: "{{date}} 'at' {{time}}", - long: "{{date}} 'at' {{time}}", - medium: "{{date}}, {{time}}", - short: "{{date}}, {{time}}" - }; - formatLong = { - date: buildFormatLongFn({ - formats: dateFormats, - defaultWidth: "full" - }), - time: buildFormatLongFn({ - formats: timeFormats, - defaultWidth: "full" - }), - dateTime: buildFormatLongFn({ - formats: dateTimeFormats, - defaultWidth: "full" - }) - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js -var formatRelativeLocale, formatRelative; -var init_formatRelative = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js"() { - formatRelativeLocale = { - lastWeek: "'last' eeee 'at' p", - yesterday: "'yesterday at' p", - today: "'today at' p", - tomorrow: "'tomorrow at' p", - nextWeek: "eeee 'at' p", - other: "P" - }; - formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token]; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js -function buildLocalizeFn(args) { - return (value2, options2) => { - const context2 = options2?.context ? String(options2.context) : "standalone"; - let valuesArray; - if (context2 === "formatting" && args.formattingValues) { - const defaultWidth = args.defaultFormattingWidth || args.defaultWidth; - const width = options2?.width ? String(options2.width) : defaultWidth; - valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; - } else { - const defaultWidth = args.defaultWidth; - const width = options2?.width ? String(options2.width) : args.defaultWidth; - valuesArray = args.values[width] || args.values[defaultWidth]; - } - const index3 = args.argumentCallback ? args.argumentCallback(value2) : value2; - return valuesArray[index3]; - }; -} -var init_buildLocalizeFn = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js"() { - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js -var eraValues, quarterValues, monthValues, dayValues, dayPeriodValues, formattingDayPeriodValues, ordinalNumber, localize; -var init_localize = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js"() { - init_buildLocalizeFn(); - eraValues = { - narrow: ["B", "A"], - abbreviated: ["BC", "AD"], - wide: ["Before Christ", "Anno Domini"] - }; - quarterValues = { - narrow: ["1", "2", "3", "4"], - abbreviated: ["Q1", "Q2", "Q3", "Q4"], - wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] - }; - monthValues = { - narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], - abbreviated: [ - "Jan", - "Feb", - "Mar", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Oct", - "Nov", - "Dec" - ], - wide: [ - "January", - "February", - "March", - "April", - "May", - "June", - "July", - "August", - "September", - "October", - "November", - "December" - ] - }; - dayValues = { - narrow: ["S", "M", "T", "W", "T", "F", "S"], - short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], - abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], - wide: [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ] - }; - dayPeriodValues = { - narrow: { - am: "a", - pm: "p", - midnight: "mi", - noon: "n", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - }, - abbreviated: { - am: "AM", - pm: "PM", - midnight: "midnight", - noon: "noon", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - }, - wide: { - am: "a.m.", - pm: "p.m.", - midnight: "midnight", - noon: "noon", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - } - }; - formattingDayPeriodValues = { - narrow: { - am: "a", - pm: "p", - midnight: "mi", - noon: "n", - morning: "in the morning", - afternoon: "in the afternoon", - evening: "in the evening", - night: "at night" - }, - abbreviated: { - am: "AM", - pm: "PM", - midnight: "midnight", - noon: "noon", - morning: "in the morning", - afternoon: "in the afternoon", - evening: "in the evening", - night: "at night" - }, - wide: { - am: "a.m.", - pm: "p.m.", - midnight: "midnight", - noon: "noon", - morning: "in the morning", - afternoon: "in the afternoon", - evening: "in the evening", - night: "at night" - } - }; - ordinalNumber = (dirtyNumber, _options) => { - const number2 = Number(dirtyNumber); - const rem100 = number2 % 100; - if (rem100 > 20 || rem100 < 10) { - switch (rem100 % 10) { - case 1: - return number2 + "st"; - case 2: - return number2 + "nd"; - case 3: - return number2 + "rd"; - } - } - return number2 + "th"; - }; - localize = { - ordinalNumber, - era: buildLocalizeFn({ - values: eraValues, - defaultWidth: "wide" - }), - quarter: buildLocalizeFn({ - values: quarterValues, - defaultWidth: "wide", - argumentCallback: (quarter) => quarter - 1 - }), - month: buildLocalizeFn({ - values: monthValues, - defaultWidth: "wide" - }), - day: buildLocalizeFn({ - values: dayValues, - defaultWidth: "wide" - }), - dayPeriod: buildLocalizeFn({ - values: dayPeriodValues, - defaultWidth: "wide", - formattingValues: formattingDayPeriodValues, - defaultFormattingWidth: "wide" - }) - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js -function buildMatchFn(args) { - return (string3, options2 = {}) => { - const width = options2.width; - const matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; - const matchResult = string3.match(matchPattern); - if (!matchResult) { - return null; - } - const matchedString = matchResult[0]; - const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; - const key2 = Array.isArray(parsePatterns) ? findIndex2(parsePatterns, (pattern) => pattern.test(matchedString)) : ( - // [TODO] -- I challenge you to fix the type - findKey(parsePatterns, (pattern) => pattern.test(matchedString)) - ); - let value2; - value2 = args.valueCallback ? args.valueCallback(key2) : key2; - value2 = options2.valueCallback ? ( - // [TODO] -- I challenge you to fix the type - options2.valueCallback(value2) - ) : value2; - const rest = string3.slice(matchedString.length); - return { value: value2, rest }; - }; -} -function findKey(object, predicate) { - for (const key2 in object) { - if (Object.prototype.hasOwnProperty.call(object, key2) && predicate(object[key2])) { - return key2; - } - } - return void 0; -} -function findIndex2(array, predicate) { - for (let key2 = 0; key2 < array.length; key2++) { - if (predicate(array[key2])) { - return key2; - } - } - return void 0; -} -var init_buildMatchFn = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js"() { - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js -function buildMatchPatternFn(args) { - return (string3, options2 = {}) => { - const matchResult = string3.match(args.matchPattern); - if (!matchResult) return null; - const matchedString = matchResult[0]; - const parseResult = string3.match(args.parsePattern); - if (!parseResult) return null; - let value2 = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; - value2 = options2.valueCallback ? options2.valueCallback(value2) : value2; - const rest = string3.slice(matchedString.length); - return { value: value2, rest }; - }; -} -var init_buildMatchPatternFn = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js"() { - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js -var matchOrdinalNumberPattern, parseOrdinalNumberPattern, matchEraPatterns, parseEraPatterns, matchQuarterPatterns, parseQuarterPatterns, matchMonthPatterns, parseMonthPatterns, matchDayPatterns, parseDayPatterns, matchDayPeriodPatterns, parseDayPeriodPatterns, match; -var init_match = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js"() { - init_buildMatchFn(); - init_buildMatchPatternFn(); - matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; - parseOrdinalNumberPattern = /\d+/i; - matchEraPatterns = { - narrow: /^(b|a)/i, - abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, - wide: /^(before christ|before common era|anno domini|common era)/i - }; - parseEraPatterns = { - any: [/^b/i, /^(a|c)/i] - }; - matchQuarterPatterns = { - narrow: /^[1234]/i, - abbreviated: /^q[1234]/i, - wide: /^[1234](th|st|nd|rd)? quarter/i - }; - parseQuarterPatterns = { - any: [/1/i, /2/i, /3/i, /4/i] - }; - matchMonthPatterns = { - narrow: /^[jfmasond]/i, - abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, - wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i - }; - parseMonthPatterns = { - narrow: [ - /^j/i, - /^f/i, - /^m/i, - /^a/i, - /^m/i, - /^j/i, - /^j/i, - /^a/i, - /^s/i, - /^o/i, - /^n/i, - /^d/i - ], - any: [ - /^ja/i, - /^f/i, - /^mar/i, - /^ap/i, - /^may/i, - /^jun/i, - /^jul/i, - /^au/i, - /^s/i, - /^o/i, - /^n/i, - /^d/i - ] - }; - matchDayPatterns = { - narrow: /^[smtwf]/i, - short: /^(su|mo|tu|we|th|fr|sa)/i, - abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, - wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i - }; - parseDayPatterns = { - narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], - any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] - }; - matchDayPeriodPatterns = { - narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, - any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i - }; - parseDayPeriodPatterns = { - any: { - am: /^a/i, - pm: /^p/i, - midnight: /^mi/i, - noon: /^no/i, - morning: /morning/i, - afternoon: /afternoon/i, - evening: /evening/i, - night: /night/i - } - }; - match = { - ordinalNumber: buildMatchPatternFn({ - matchPattern: matchOrdinalNumberPattern, - parsePattern: parseOrdinalNumberPattern, - valueCallback: (value2) => parseInt(value2, 10) - }), - era: buildMatchFn({ - matchPatterns: matchEraPatterns, - defaultMatchWidth: "wide", - parsePatterns: parseEraPatterns, - defaultParseWidth: "any" - }), - quarter: buildMatchFn({ - matchPatterns: matchQuarterPatterns, - defaultMatchWidth: "wide", - parsePatterns: parseQuarterPatterns, - defaultParseWidth: "any", - valueCallback: (index3) => index3 + 1 - }), - month: buildMatchFn({ - matchPatterns: matchMonthPatterns, - defaultMatchWidth: "wide", - parsePatterns: parseMonthPatterns, - defaultParseWidth: "any" - }), - day: buildMatchFn({ - matchPatterns: matchDayPatterns, - defaultMatchWidth: "wide", - parsePatterns: parseDayPatterns, - defaultParseWidth: "any" - }), - dayPeriod: buildMatchFn({ - matchPatterns: matchDayPeriodPatterns, - defaultMatchWidth: "any", - parsePatterns: parseDayPeriodPatterns, - defaultParseWidth: "any" - }) - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js -var enUS, en_US_default; -var init_en_US = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js"() { - init_formatDistance(); - init_formatLong(); - init_formatRelative(); - init_localize(); - init_match(); - enUS = { - code: "en-US", - formatDistance, - formatLong, - formatRelative, - localize, - match, - options: { - weekStartsOn: 0, - firstWeekContainsDate: 1 - } - }; - en_US_default = enUS; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultLocale.js -var init_defaultLocale = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultLocale.js"() { - init_en_US(); - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDayOfYear.js -function getDayOfYear(date, options2) { - const _date = toDate(date, options2?.in); - const diff = differenceInCalendarDays(_date, startOfYear(_date)); - const dayOfYear = diff + 1; - return dayOfYear; -} -var getDayOfYear_default; -var init_getDayOfYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDayOfYear.js"() { - init_differenceInCalendarDays(); - init_startOfYear(); - init_toDate(); - getDayOfYear_default = getDayOfYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeek.js -function getISOWeek(date, options2) { - const _date = toDate(date, options2?.in); - const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date); - return Math.round(diff / millisecondsInWeek) + 1; -} -var getISOWeek_default; -var init_getISOWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeek.js"() { - init_constants(); - init_startOfISOWeek(); - init_startOfISOWeekYear(); - init_toDate(); - getISOWeek_default = getISOWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekYear.js -function getWeekYear(date, options2) { - const _date = toDate(date, options2?.in); - const year = _date.getFullYear(); - const defaultOptions2 = getDefaultOptions(); - const firstWeekContainsDate = options2?.firstWeekContainsDate ?? options2?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1; - const firstWeekOfNextYear = constructFrom(options2?.in || date, 0); - firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate); - firstWeekOfNextYear.setHours(0, 0, 0, 0); - const startOfNextYear = startOfWeek(firstWeekOfNextYear, options2); - const firstWeekOfThisYear = constructFrom(options2?.in || date, 0); - firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); - firstWeekOfThisYear.setHours(0, 0, 0, 0); - const startOfThisYear = startOfWeek(firstWeekOfThisYear, options2); - if (+_date >= +startOfNextYear) { - return year + 1; - } else if (+_date >= +startOfThisYear) { - return year; - } else { - return year - 1; - } -} -var getWeekYear_default; -var init_getWeekYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekYear.js"() { - init_defaultOptions(); - init_constructFrom(); - init_startOfWeek(); - init_toDate(); - getWeekYear_default = getWeekYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeekYear.js -function startOfWeekYear(date, options2) { - const defaultOptions2 = getDefaultOptions(); - const firstWeekContainsDate = options2?.firstWeekContainsDate ?? options2?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1; - const year = getWeekYear(date, options2); - const firstWeek = constructFrom(options2?.in || date, 0); - firstWeek.setFullYear(year, 0, firstWeekContainsDate); - firstWeek.setHours(0, 0, 0, 0); - const _date = startOfWeek(firstWeek, options2); - return _date; -} -var startOfWeekYear_default; -var init_startOfWeekYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeekYear.js"() { - init_defaultOptions(); - init_constructFrom(); - init_getWeekYear(); - init_startOfWeek(); - startOfWeekYear_default = startOfWeekYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeek.js -function getWeek(date, options2) { - const _date = toDate(date, options2?.in); - const diff = +startOfWeek(_date, options2) - +startOfWeekYear(_date, options2); - return Math.round(diff / millisecondsInWeek) + 1; -} -var getWeek_default; -var init_getWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeek.js"() { - init_constants(); - init_startOfWeek(); - init_startOfWeekYear(); - init_toDate(); - getWeek_default = getWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/addLeadingZeros.js -function addLeadingZeros(number2, targetLength) { - const sign = number2 < 0 ? "-" : ""; - const output = Math.abs(number2).toString().padStart(targetLength, "0"); - return sign + output; -} -var init_addLeadingZeros = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/addLeadingZeros.js"() { - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/lightFormatters.js -var lightFormatters; -var init_lightFormatters = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/lightFormatters.js"() { - init_addLeadingZeros(); - lightFormatters = { - // Year - y(date, token) { - const signedYear = date.getFullYear(); - const year = signedYear > 0 ? signedYear : 1 - signedYear; - return addLeadingZeros(token === "yy" ? year % 100 : year, token.length); - }, - // Month - M(date, token) { - const month = date.getMonth(); - return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2); - }, - // Day of the month - d(date, token) { - return addLeadingZeros(date.getDate(), token.length); - }, - // AM or PM - a(date, token) { - const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am"; - switch (token) { - case "a": - case "aa": - return dayPeriodEnumValue.toUpperCase(); - case "aaa": - return dayPeriodEnumValue; - case "aaaaa": - return dayPeriodEnumValue[0]; - case "aaaa": - default: - return dayPeriodEnumValue === "am" ? "a.m." : "p.m."; - } - }, - // Hour [1-12] - h(date, token) { - return addLeadingZeros(date.getHours() % 12 || 12, token.length); - }, - // Hour [0-23] - H(date, token) { - return addLeadingZeros(date.getHours(), token.length); - }, - // Minute - m(date, token) { - return addLeadingZeros(date.getMinutes(), token.length); - }, - // Second - s(date, token) { - return addLeadingZeros(date.getSeconds(), token.length); - }, - // Fraction of second - S(date, token) { - const numberOfDigits = token.length; - const milliseconds2 = date.getMilliseconds(); - const fractionalSeconds = Math.trunc( - milliseconds2 * Math.pow(10, numberOfDigits - 3) - ); - return addLeadingZeros(fractionalSeconds, token.length); - } - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/formatters.js -function formatTimezoneShort(offset, delimiter = "") { - const sign = offset > 0 ? "-" : "+"; - const absOffset = Math.abs(offset); - const hours = Math.trunc(absOffset / 60); - const minutes = absOffset % 60; - if (minutes === 0) { - return sign + String(hours); - } - return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2); -} -function formatTimezoneWithOptionalMinutes(offset, delimiter) { - if (offset % 60 === 0) { - const sign = offset > 0 ? "-" : "+"; - return sign + addLeadingZeros(Math.abs(offset) / 60, 2); - } - return formatTimezone(offset, delimiter); -} -function formatTimezone(offset, delimiter = "") { - const sign = offset > 0 ? "-" : "+"; - const absOffset = Math.abs(offset); - const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2); - const minutes = addLeadingZeros(absOffset % 60, 2); - return sign + hours + delimiter + minutes; -} -var dayPeriodEnum, formatters; -var init_formatters = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/formatters.js"() { - init_getDayOfYear(); - init_getISOWeek(); - init_getISOWeekYear(); - init_getWeek(); - init_getWeekYear(); - init_addLeadingZeros(); - init_lightFormatters(); - dayPeriodEnum = { - am: "am", - pm: "pm", - midnight: "midnight", - noon: "noon", - morning: "morning", - afternoon: "afternoon", - evening: "evening", - night: "night" - }; - formatters = { - // Era - G: function(date, token, localize2) { - const era = date.getFullYear() > 0 ? 1 : 0; - switch (token) { - // AD, BC - case "G": - case "GG": - case "GGG": - return localize2.era(era, { width: "abbreviated" }); - // A, B - case "GGGGG": - return localize2.era(era, { width: "narrow" }); - // Anno Domini, Before Christ - case "GGGG": - default: - return localize2.era(era, { width: "wide" }); - } - }, - // Year - y: function(date, token, localize2) { - if (token === "yo") { - const signedYear = date.getFullYear(); - const year = signedYear > 0 ? signedYear : 1 - signedYear; - return localize2.ordinalNumber(year, { unit: "year" }); - } - return lightFormatters.y(date, token); - }, - // Local week-numbering year - Y: function(date, token, localize2, options2) { - const signedWeekYear = getWeekYear(date, options2); - const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; - if (token === "YY") { - const twoDigitYear = weekYear % 100; - return addLeadingZeros(twoDigitYear, 2); - } - if (token === "Yo") { - return localize2.ordinalNumber(weekYear, { unit: "year" }); - } - return addLeadingZeros(weekYear, token.length); - }, - // ISO week-numbering year - R: function(date, token) { - const isoWeekYear = getISOWeekYear(date); - return addLeadingZeros(isoWeekYear, token.length); - }, - // Extended year. This is a single number designating the year of this calendar system. - // The main difference between `y` and `u` localizers are B.C. years: - // | Year | `y` | `u` | - // |------|-----|-----| - // | AC 1 | 1 | 1 | - // | BC 1 | 1 | 0 | - // | BC 2 | 2 | -1 | - // Also `yy` always returns the last two digits of a year, - // while `uu` pads single digit years to 2 characters and returns other years unchanged. - u: function(date, token) { - const year = date.getFullYear(); - return addLeadingZeros(year, token.length); - }, - // Quarter - Q: function(date, token, localize2) { - const quarter = Math.ceil((date.getMonth() + 1) / 3); - switch (token) { - // 1, 2, 3, 4 - case "Q": - return String(quarter); - // 01, 02, 03, 04 - case "QQ": - return addLeadingZeros(quarter, 2); - // 1st, 2nd, 3rd, 4th - case "Qo": - return localize2.ordinalNumber(quarter, { unit: "quarter" }); - // Q1, Q2, Q3, Q4 - case "QQQ": - return localize2.quarter(quarter, { - width: "abbreviated", - context: "formatting" - }); - // 1, 2, 3, 4 (narrow quarter; could be not numerical) - case "QQQQQ": - return localize2.quarter(quarter, { - width: "narrow", - context: "formatting" - }); - // 1st quarter, 2nd quarter, ... - case "QQQQ": - default: - return localize2.quarter(quarter, { - width: "wide", - context: "formatting" - }); - } - }, - // Stand-alone quarter - q: function(date, token, localize2) { - const quarter = Math.ceil((date.getMonth() + 1) / 3); - switch (token) { - // 1, 2, 3, 4 - case "q": - return String(quarter); - // 01, 02, 03, 04 - case "qq": - return addLeadingZeros(quarter, 2); - // 1st, 2nd, 3rd, 4th - case "qo": - return localize2.ordinalNumber(quarter, { unit: "quarter" }); - // Q1, Q2, Q3, Q4 - case "qqq": - return localize2.quarter(quarter, { - width: "abbreviated", - context: "standalone" - }); - // 1, 2, 3, 4 (narrow quarter; could be not numerical) - case "qqqqq": - return localize2.quarter(quarter, { - width: "narrow", - context: "standalone" - }); - // 1st quarter, 2nd quarter, ... - case "qqqq": - default: - return localize2.quarter(quarter, { - width: "wide", - context: "standalone" - }); - } - }, - // Month - M: function(date, token, localize2) { - const month = date.getMonth(); - switch (token) { - case "M": - case "MM": - return lightFormatters.M(date, token); - // 1st, 2nd, ..., 12th - case "Mo": - return localize2.ordinalNumber(month + 1, { unit: "month" }); - // Jan, Feb, ..., Dec - case "MMM": - return localize2.month(month, { - width: "abbreviated", - context: "formatting" - }); - // J, F, ..., D - case "MMMMM": - return localize2.month(month, { - width: "narrow", - context: "formatting" - }); - // January, February, ..., December - case "MMMM": - default: - return localize2.month(month, { width: "wide", context: "formatting" }); - } - }, - // Stand-alone month - L: function(date, token, localize2) { - const month = date.getMonth(); - switch (token) { - // 1, 2, ..., 12 - case "L": - return String(month + 1); - // 01, 02, ..., 12 - case "LL": - return addLeadingZeros(month + 1, 2); - // 1st, 2nd, ..., 12th - case "Lo": - return localize2.ordinalNumber(month + 1, { unit: "month" }); - // Jan, Feb, ..., Dec - case "LLL": - return localize2.month(month, { - width: "abbreviated", - context: "standalone" - }); - // J, F, ..., D - case "LLLLL": - return localize2.month(month, { - width: "narrow", - context: "standalone" - }); - // January, February, ..., December - case "LLLL": - default: - return localize2.month(month, { width: "wide", context: "standalone" }); - } - }, - // Local week of year - w: function(date, token, localize2, options2) { - const week = getWeek(date, options2); - if (token === "wo") { - return localize2.ordinalNumber(week, { unit: "week" }); - } - return addLeadingZeros(week, token.length); - }, - // ISO week of year - I: function(date, token, localize2) { - const isoWeek = getISOWeek(date); - if (token === "Io") { - return localize2.ordinalNumber(isoWeek, { unit: "week" }); - } - return addLeadingZeros(isoWeek, token.length); - }, - // Day of the month - d: function(date, token, localize2) { - if (token === "do") { - return localize2.ordinalNumber(date.getDate(), { unit: "date" }); - } - return lightFormatters.d(date, token); - }, - // Day of year - D: function(date, token, localize2) { - const dayOfYear = getDayOfYear(date); - if (token === "Do") { - return localize2.ordinalNumber(dayOfYear, { unit: "dayOfYear" }); - } - return addLeadingZeros(dayOfYear, token.length); - }, - // Day of week - E: function(date, token, localize2) { - const dayOfWeek = date.getDay(); - switch (token) { - // Tue - case "E": - case "EE": - case "EEE": - return localize2.day(dayOfWeek, { - width: "abbreviated", - context: "formatting" - }); - // T - case "EEEEE": - return localize2.day(dayOfWeek, { - width: "narrow", - context: "formatting" - }); - // Tu - case "EEEEEE": - return localize2.day(dayOfWeek, { - width: "short", - context: "formatting" - }); - // Tuesday - case "EEEE": - default: - return localize2.day(dayOfWeek, { - width: "wide", - context: "formatting" - }); - } - }, - // Local day of week - e: function(date, token, localize2, options2) { - const dayOfWeek = date.getDay(); - const localDayOfWeek = (dayOfWeek - options2.weekStartsOn + 8) % 7 || 7; - switch (token) { - // Numerical value (Nth day of week with current locale or weekStartsOn) - case "e": - return String(localDayOfWeek); - // Padded numerical value - case "ee": - return addLeadingZeros(localDayOfWeek, 2); - // 1st, 2nd, ..., 7th - case "eo": - return localize2.ordinalNumber(localDayOfWeek, { unit: "day" }); - case "eee": - return localize2.day(dayOfWeek, { - width: "abbreviated", - context: "formatting" - }); - // T - case "eeeee": - return localize2.day(dayOfWeek, { - width: "narrow", - context: "formatting" - }); - // Tu - case "eeeeee": - return localize2.day(dayOfWeek, { - width: "short", - context: "formatting" - }); - // Tuesday - case "eeee": - default: - return localize2.day(dayOfWeek, { - width: "wide", - context: "formatting" - }); - } - }, - // Stand-alone local day of week - c: function(date, token, localize2, options2) { - const dayOfWeek = date.getDay(); - const localDayOfWeek = (dayOfWeek - options2.weekStartsOn + 8) % 7 || 7; - switch (token) { - // Numerical value (same as in `e`) - case "c": - return String(localDayOfWeek); - // Padded numerical value - case "cc": - return addLeadingZeros(localDayOfWeek, token.length); - // 1st, 2nd, ..., 7th - case "co": - return localize2.ordinalNumber(localDayOfWeek, { unit: "day" }); - case "ccc": - return localize2.day(dayOfWeek, { - width: "abbreviated", - context: "standalone" - }); - // T - case "ccccc": - return localize2.day(dayOfWeek, { - width: "narrow", - context: "standalone" - }); - // Tu - case "cccccc": - return localize2.day(dayOfWeek, { - width: "short", - context: "standalone" - }); - // Tuesday - case "cccc": - default: - return localize2.day(dayOfWeek, { - width: "wide", - context: "standalone" - }); - } - }, - // ISO day of week - i: function(date, token, localize2) { - const dayOfWeek = date.getDay(); - const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; - switch (token) { - // 2 - case "i": - return String(isoDayOfWeek); - // 02 - case "ii": - return addLeadingZeros(isoDayOfWeek, token.length); - // 2nd - case "io": - return localize2.ordinalNumber(isoDayOfWeek, { unit: "day" }); - // Tue - case "iii": - return localize2.day(dayOfWeek, { - width: "abbreviated", - context: "formatting" - }); - // T - case "iiiii": - return localize2.day(dayOfWeek, { - width: "narrow", - context: "formatting" - }); - // Tu - case "iiiiii": - return localize2.day(dayOfWeek, { - width: "short", - context: "formatting" - }); - // Tuesday - case "iiii": - default: - return localize2.day(dayOfWeek, { - width: "wide", - context: "formatting" - }); - } - }, - // AM or PM - a: function(date, token, localize2) { - const hours = date.getHours(); - const dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; - switch (token) { - case "a": - case "aa": - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "abbreviated", - context: "formatting" - }); - case "aaa": - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "abbreviated", - context: "formatting" - }).toLowerCase(); - case "aaaaa": - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "narrow", - context: "formatting" - }); - case "aaaa": - default: - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "wide", - context: "formatting" - }); - } - }, - // AM, PM, midnight, noon - b: function(date, token, localize2) { - const hours = date.getHours(); - let dayPeriodEnumValue; - if (hours === 12) { - dayPeriodEnumValue = dayPeriodEnum.noon; - } else if (hours === 0) { - dayPeriodEnumValue = dayPeriodEnum.midnight; - } else { - dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am"; - } - switch (token) { - case "b": - case "bb": - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "abbreviated", - context: "formatting" - }); - case "bbb": - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "abbreviated", - context: "formatting" - }).toLowerCase(); - case "bbbbb": - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "narrow", - context: "formatting" - }); - case "bbbb": - default: - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "wide", - context: "formatting" - }); - } - }, - // in the morning, in the afternoon, in the evening, at night - B: function(date, token, localize2) { - const hours = date.getHours(); - let dayPeriodEnumValue; - if (hours >= 17) { - dayPeriodEnumValue = dayPeriodEnum.evening; - } else if (hours >= 12) { - dayPeriodEnumValue = dayPeriodEnum.afternoon; - } else if (hours >= 4) { - dayPeriodEnumValue = dayPeriodEnum.morning; - } else { - dayPeriodEnumValue = dayPeriodEnum.night; - } - switch (token) { - case "B": - case "BB": - case "BBB": - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "abbreviated", - context: "formatting" - }); - case "BBBBB": - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "narrow", - context: "formatting" - }); - case "BBBB": - default: - return localize2.dayPeriod(dayPeriodEnumValue, { - width: "wide", - context: "formatting" - }); - } - }, - // Hour [1-12] - h: function(date, token, localize2) { - if (token === "ho") { - let hours = date.getHours() % 12; - if (hours === 0) hours = 12; - return localize2.ordinalNumber(hours, { unit: "hour" }); - } - return lightFormatters.h(date, token); - }, - // Hour [0-23] - H: function(date, token, localize2) { - if (token === "Ho") { - return localize2.ordinalNumber(date.getHours(), { unit: "hour" }); - } - return lightFormatters.H(date, token); - }, - // Hour [0-11] - K: function(date, token, localize2) { - const hours = date.getHours() % 12; - if (token === "Ko") { - return localize2.ordinalNumber(hours, { unit: "hour" }); - } - return addLeadingZeros(hours, token.length); - }, - // Hour [1-24] - k: function(date, token, localize2) { - let hours = date.getHours(); - if (hours === 0) hours = 24; - if (token === "ko") { - return localize2.ordinalNumber(hours, { unit: "hour" }); - } - return addLeadingZeros(hours, token.length); - }, - // Minute - m: function(date, token, localize2) { - if (token === "mo") { - return localize2.ordinalNumber(date.getMinutes(), { unit: "minute" }); - } - return lightFormatters.m(date, token); - }, - // Second - s: function(date, token, localize2) { - if (token === "so") { - return localize2.ordinalNumber(date.getSeconds(), { unit: "second" }); - } - return lightFormatters.s(date, token); - }, - // Fraction of second - S: function(date, token) { - return lightFormatters.S(date, token); - }, - // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) - X: function(date, token, _localize) { - const timezoneOffset = date.getTimezoneOffset(); - if (timezoneOffset === 0) { - return "Z"; - } - switch (token) { - // Hours and optional minutes - case "X": - return formatTimezoneWithOptionalMinutes(timezoneOffset); - // Hours, minutes and optional seconds without `:` delimiter - // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets - // so this token always has the same output as `XX` - case "XXXX": - case "XX": - return formatTimezone(timezoneOffset); - // Hours, minutes and optional seconds with `:` delimiter - // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets - // so this token always has the same output as `XXX` - case "XXXXX": - case "XXX": - // Hours and minutes with `:` delimiter - default: - return formatTimezone(timezoneOffset, ":"); - } - }, - // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) - x: function(date, token, _localize) { - const timezoneOffset = date.getTimezoneOffset(); - switch (token) { - // Hours and optional minutes - case "x": - return formatTimezoneWithOptionalMinutes(timezoneOffset); - // Hours, minutes and optional seconds without `:` delimiter - // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets - // so this token always has the same output as `xx` - case "xxxx": - case "xx": - return formatTimezone(timezoneOffset); - // Hours, minutes and optional seconds with `:` delimiter - // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets - // so this token always has the same output as `xxx` - case "xxxxx": - case "xxx": - // Hours and minutes with `:` delimiter - default: - return formatTimezone(timezoneOffset, ":"); - } - }, - // Timezone (GMT) - O: function(date, token, _localize) { - const timezoneOffset = date.getTimezoneOffset(); - switch (token) { - // Short - case "O": - case "OO": - case "OOO": - return "GMT" + formatTimezoneShort(timezoneOffset, ":"); - // Long - case "OOOO": - default: - return "GMT" + formatTimezone(timezoneOffset, ":"); - } - }, - // Timezone (specific non-location) - z: function(date, token, _localize) { - const timezoneOffset = date.getTimezoneOffset(); - switch (token) { - // Short - case "z": - case "zz": - case "zzz": - return "GMT" + formatTimezoneShort(timezoneOffset, ":"); - // Long - case "zzzz": - default: - return "GMT" + formatTimezone(timezoneOffset, ":"); - } - }, - // Seconds timestamp - t: function(date, token, _localize) { - const timestamp2 = Math.trunc(+date / 1e3); - return addLeadingZeros(timestamp2, token.length); - }, - // Milliseconds timestamp - T: function(date, token, _localize) { - return addLeadingZeros(+date, token.length); - } - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/longFormatters.js -var dateLongFormatter, timeLongFormatter, dateTimeLongFormatter, longFormatters; -var init_longFormatters = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/longFormatters.js"() { - dateLongFormatter = (pattern, formatLong2) => { - switch (pattern) { - case "P": - return formatLong2.date({ width: "short" }); - case "PP": - return formatLong2.date({ width: "medium" }); - case "PPP": - return formatLong2.date({ width: "long" }); - case "PPPP": - default: - return formatLong2.date({ width: "full" }); - } - }; - timeLongFormatter = (pattern, formatLong2) => { - switch (pattern) { - case "p": - return formatLong2.time({ width: "short" }); - case "pp": - return formatLong2.time({ width: "medium" }); - case "ppp": - return formatLong2.time({ width: "long" }); - case "pppp": - default: - return formatLong2.time({ width: "full" }); - } - }; - dateTimeLongFormatter = (pattern, formatLong2) => { - const matchResult = pattern.match(/(P+)(p+)?/) || []; - const datePattern = matchResult[1]; - const timePattern = matchResult[2]; - if (!timePattern) { - return dateLongFormatter(pattern, formatLong2); - } - let dateTimeFormat; - switch (datePattern) { - case "P": - dateTimeFormat = formatLong2.dateTime({ width: "short" }); - break; - case "PP": - dateTimeFormat = formatLong2.dateTime({ width: "medium" }); - break; - case "PPP": - dateTimeFormat = formatLong2.dateTime({ width: "long" }); - break; - case "PPPP": - default: - dateTimeFormat = formatLong2.dateTime({ width: "full" }); - break; - } - return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong2)).replace("{{time}}", timeLongFormatter(timePattern, formatLong2)); - }; - longFormatters = { - p: timeLongFormatter, - P: dateTimeLongFormatter - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/protectedTokens.js -function isProtectedDayOfYearToken(token) { - return dayOfYearTokenRE.test(token); -} -function isProtectedWeekYearToken(token) { - return weekYearTokenRE.test(token); -} -function warnOrThrowProtectedError(token, format2, input) { - const _message = message(token, format2, input); - console.warn(_message); - if (throwTokens.includes(token)) throw new RangeError(_message); -} -function message(token, format2, input) { - const subject = token[0] === "Y" ? "years" : "days of the month"; - return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format2}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`; -} -var dayOfYearTokenRE, weekYearTokenRE, throwTokens; -var init_protectedTokens = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/protectedTokens.js"() { - dayOfYearTokenRE = /^D+$/; - weekYearTokenRE = /^Y+$/; - throwTokens = ["D", "DD", "YY", "YYYY"]; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/format.js -function format(date, formatStr, options2) { - const defaultOptions2 = getDefaultOptions(); - const locale = options2?.locale ?? defaultOptions2.locale ?? enUS; - const firstWeekContainsDate = options2?.firstWeekContainsDate ?? options2?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1; - const weekStartsOn = options2?.weekStartsOn ?? options2?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0; - const originalDate = toDate(date, options2?.in); - if (!isValid(originalDate)) { - throw new RangeError("Invalid time value"); - } - let parts = formatStr.match(longFormattingTokensRegExp).map((substring) => { - const firstCharacter = substring[0]; - if (firstCharacter === "p" || firstCharacter === "P") { - const longFormatter = longFormatters[firstCharacter]; - return longFormatter(substring, locale.formatLong); - } - return substring; - }).join("").match(formattingTokensRegExp).map((substring) => { - if (substring === "''") { - return { isToken: false, value: "'" }; - } - const firstCharacter = substring[0]; - if (firstCharacter === "'") { - return { isToken: false, value: cleanEscapedString(substring) }; - } - if (formatters[firstCharacter]) { - return { isToken: true, value: substring }; - } - if (firstCharacter.match(unescapedLatinCharacterRegExp)) { - throw new RangeError( - "Format string contains an unescaped latin alphabet character `" + firstCharacter + "`" - ); - } - return { isToken: false, value: substring }; - }); - if (locale.localize.preprocessor) { - parts = locale.localize.preprocessor(originalDate, parts); - } - const formatterOptions = { - firstWeekContainsDate, - weekStartsOn, - locale - }; - return parts.map((part) => { - if (!part.isToken) return part.value; - const token = part.value; - if (!options2?.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token) || !options2?.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) { - warnOrThrowProtectedError(token, formatStr, String(date)); - } - const formatter2 = formatters[token[0]]; - return formatter2(originalDate, token, locale.localize, formatterOptions); - }).join(""); -} -function cleanEscapedString(input) { - const matched = input.match(escapedStringRegExp); - if (!matched) { - return input; - } - return matched[1].replace(doubleQuoteRegExp, "'"); -} -var formattingTokensRegExp, longFormattingTokensRegExp, escapedStringRegExp, doubleQuoteRegExp, unescapedLatinCharacterRegExp, format_default; -var init_format = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/format.js"() { - init_defaultLocale(); - init_defaultOptions(); - init_formatters(); - init_longFormatters(); - init_protectedTokens(); - init_isValid(); - init_toDate(); - formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; - longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; - escapedStringRegExp = /^'([^]*?)'?$/; - doubleQuoteRegExp = /''/g; - unescapedLatinCharacterRegExp = /[a-zA-Z]/; - format_default = format; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistance.js -function formatDistance2(laterDate, earlierDate, options2) { - const defaultOptions2 = getDefaultOptions(); - const locale = options2?.locale ?? defaultOptions2.locale ?? enUS; - const minutesInAlmostTwoDays = 2520; - const comparison = compareAsc(laterDate, earlierDate); - if (isNaN(comparison)) throw new RangeError("Invalid time value"); - const localizeOptions = Object.assign({}, options2, { - addSuffix: options2?.addSuffix, - comparison - }); - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - ...comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate] - ); - const seconds = differenceInSeconds(earlierDate_, laterDate_); - const offsetInSeconds = (getTimezoneOffsetInMilliseconds(earlierDate_) - getTimezoneOffsetInMilliseconds(laterDate_)) / 1e3; - const minutes = Math.round((seconds - offsetInSeconds) / 60); - let months2; - if (minutes < 2) { - if (options2?.includeSeconds) { - if (seconds < 5) { - return locale.formatDistance("lessThanXSeconds", 5, localizeOptions); - } else if (seconds < 10) { - return locale.formatDistance("lessThanXSeconds", 10, localizeOptions); - } else if (seconds < 20) { - return locale.formatDistance("lessThanXSeconds", 20, localizeOptions); - } else if (seconds < 40) { - return locale.formatDistance("halfAMinute", 0, localizeOptions); - } else if (seconds < 60) { - return locale.formatDistance("lessThanXMinutes", 1, localizeOptions); - } else { - return locale.formatDistance("xMinutes", 1, localizeOptions); - } - } else { - if (minutes === 0) { - return locale.formatDistance("lessThanXMinutes", 1, localizeOptions); - } else { - return locale.formatDistance("xMinutes", minutes, localizeOptions); - } - } - } else if (minutes < 45) { - return locale.formatDistance("xMinutes", minutes, localizeOptions); - } else if (minutes < 90) { - return locale.formatDistance("aboutXHours", 1, localizeOptions); - } else if (minutes < minutesInDay) { - const hours = Math.round(minutes / 60); - return locale.formatDistance("aboutXHours", hours, localizeOptions); - } else if (minutes < minutesInAlmostTwoDays) { - return locale.formatDistance("xDays", 1, localizeOptions); - } else if (minutes < minutesInMonth) { - const days2 = Math.round(minutes / minutesInDay); - return locale.formatDistance("xDays", days2, localizeOptions); - } else if (minutes < minutesInMonth * 2) { - months2 = Math.round(minutes / minutesInMonth); - return locale.formatDistance("aboutXMonths", months2, localizeOptions); - } - months2 = differenceInMonths(earlierDate_, laterDate_); - if (months2 < 12) { - const nearestMonth = Math.round(minutes / minutesInMonth); - return locale.formatDistance("xMonths", nearestMonth, localizeOptions); - } else { - const monthsSinceStartOfYear = months2 % 12; - const years = Math.trunc(months2 / 12); - if (monthsSinceStartOfYear < 3) { - return locale.formatDistance("aboutXYears", years, localizeOptions); - } else if (monthsSinceStartOfYear < 9) { - return locale.formatDistance("overXYears", years, localizeOptions); - } else { - return locale.formatDistance("almostXYears", years + 1, localizeOptions); - } - } -} -var formatDistance_default; -var init_formatDistance2 = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistance.js"() { - init_defaultLocale(); - init_defaultOptions(); - init_getTimezoneOffsetInMilliseconds(); - init_normalizeDates(); - init_compareAsc(); - init_constants(); - init_differenceInMonths(); - init_differenceInSeconds(); - formatDistance_default = formatDistance2; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceStrict.js -function formatDistanceStrict(laterDate, earlierDate, options2) { - const defaultOptions2 = getDefaultOptions(); - const locale = options2?.locale ?? defaultOptions2.locale ?? enUS; - const comparison = compareAsc(laterDate, earlierDate); - if (isNaN(comparison)) { - throw new RangeError("Invalid time value"); - } - const localizeOptions = Object.assign({}, options2, { - addSuffix: options2?.addSuffix, - comparison - }); - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - ...comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate] - ); - const roundingMethod = getRoundingMethod(options2?.roundingMethod ?? "round"); - const milliseconds2 = earlierDate_.getTime() - laterDate_.getTime(); - const minutes = milliseconds2 / millisecondsInMinute; - const timezoneOffset = getTimezoneOffsetInMilliseconds(earlierDate_) - getTimezoneOffsetInMilliseconds(laterDate_); - const dstNormalizedMinutes = (milliseconds2 - timezoneOffset) / millisecondsInMinute; - const defaultUnit = options2?.unit; - let unit; - if (!defaultUnit) { - if (minutes < 1) { - unit = "second"; - } else if (minutes < 60) { - unit = "minute"; - } else if (minutes < minutesInDay) { - unit = "hour"; - } else if (dstNormalizedMinutes < minutesInMonth) { - unit = "day"; - } else if (dstNormalizedMinutes < minutesInYear) { - unit = "month"; - } else { - unit = "year"; - } - } else { - unit = defaultUnit; - } - if (unit === "second") { - const seconds = roundingMethod(milliseconds2 / 1e3); - return locale.formatDistance("xSeconds", seconds, localizeOptions); - } else if (unit === "minute") { - const roundedMinutes = roundingMethod(minutes); - return locale.formatDistance("xMinutes", roundedMinutes, localizeOptions); - } else if (unit === "hour") { - const hours = roundingMethod(minutes / 60); - return locale.formatDistance("xHours", hours, localizeOptions); - } else if (unit === "day") { - const days2 = roundingMethod(dstNormalizedMinutes / minutesInDay); - return locale.formatDistance("xDays", days2, localizeOptions); - } else if (unit === "month") { - const months2 = roundingMethod(dstNormalizedMinutes / minutesInMonth); - return months2 === 12 && defaultUnit !== "month" ? locale.formatDistance("xYears", 1, localizeOptions) : locale.formatDistance("xMonths", months2, localizeOptions); - } else { - const years = roundingMethod(dstNormalizedMinutes / minutesInYear); - return locale.formatDistance("xYears", years, localizeOptions); - } -} -var formatDistanceStrict_default; -var init_formatDistanceStrict = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceStrict.js"() { - init_defaultLocale(); - init_defaultOptions(); - init_getRoundingMethod(); - init_getTimezoneOffsetInMilliseconds(); - init_normalizeDates(); - init_compareAsc(); - init_constants(); - formatDistanceStrict_default = formatDistanceStrict; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceToNow.js -function formatDistanceToNow(date, options2) { - return formatDistance2(date, constructNow(date), options2); -} -var formatDistanceToNow_default; -var init_formatDistanceToNow = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceToNow.js"() { - init_constructNow(); - init_formatDistance2(); - formatDistanceToNow_default = formatDistanceToNow; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceToNowStrict.js -function formatDistanceToNowStrict(date, options2) { - return formatDistanceStrict(date, constructNow(date), options2); -} -var formatDistanceToNowStrict_default; -var init_formatDistanceToNowStrict = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceToNowStrict.js"() { - init_constructNow(); - init_formatDistanceStrict(); - formatDistanceToNowStrict_default = formatDistanceToNowStrict; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDuration.js -function formatDuration(duration, options2) { - const defaultOptions2 = getDefaultOptions(); - const locale = options2?.locale ?? defaultOptions2.locale ?? enUS; - const format2 = options2?.format ?? defaultFormat; - const zero = options2?.zero ?? false; - const delimiter = options2?.delimiter ?? " "; - if (!locale.formatDistance) { - return ""; - } - const result = format2.reduce((acc, unit) => { - const token = `x${unit.replace(/(^.)/, (m7) => m7.toUpperCase())}`; - const value2 = duration[unit]; - if (value2 !== void 0 && (zero || duration[unit])) { - return acc.concat(locale.formatDistance(token, value2)); - } - return acc; - }, []).join(delimiter); - return result; -} -var defaultFormat, formatDuration_default; -var init_formatDuration = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDuration.js"() { - init_defaultLocale(); - init_defaultOptions(); - defaultFormat = [ - "years", - "months", - "weeks", - "days", - "hours", - "minutes", - "seconds" - ]; - formatDuration_default = formatDuration; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatISO.js -function formatISO(date, options2) { - const date_ = toDate(date, options2?.in); - if (isNaN(+date_)) { - throw new RangeError("Invalid time value"); - } - const format2 = options2?.format ?? "extended"; - const representation = options2?.representation ?? "complete"; - let result = ""; - let tzOffset = ""; - const dateDelimiter = format2 === "extended" ? "-" : ""; - const timeDelimiter = format2 === "extended" ? ":" : ""; - if (representation !== "time") { - const day = addLeadingZeros(date_.getDate(), 2); - const month = addLeadingZeros(date_.getMonth() + 1, 2); - const year = addLeadingZeros(date_.getFullYear(), 4); - result = `${year}${dateDelimiter}${month}${dateDelimiter}${day}`; - } - if (representation !== "date") { - const offset = date_.getTimezoneOffset(); - if (offset !== 0) { - const absoluteOffset = Math.abs(offset); - const hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); - const minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); - const sign = offset < 0 ? "+" : "-"; - tzOffset = `${sign}${hourOffset}:${minuteOffset}`; - } else { - tzOffset = "Z"; - } - const hour = addLeadingZeros(date_.getHours(), 2); - const minute = addLeadingZeros(date_.getMinutes(), 2); - const second = addLeadingZeros(date_.getSeconds(), 2); - const separator = result === "" ? "" : "T"; - const time = [hour, minute, second].join(timeDelimiter); - result = `${result}${separator}${time}${tzOffset}`; - } - return result; -} -var formatISO_default; -var init_formatISO = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatISO.js"() { - init_addLeadingZeros(); - init_toDate(); - formatISO_default = formatISO; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatISO9075.js -function formatISO9075(date, options2) { - const date_ = toDate(date, options2?.in); - if (!isValid(date_)) { - throw new RangeError("Invalid time value"); - } - const format2 = options2?.format ?? "extended"; - const representation = options2?.representation ?? "complete"; - let result = ""; - const dateDelimiter = format2 === "extended" ? "-" : ""; - const timeDelimiter = format2 === "extended" ? ":" : ""; - if (representation !== "time") { - const day = addLeadingZeros(date_.getDate(), 2); - const month = addLeadingZeros(date_.getMonth() + 1, 2); - const year = addLeadingZeros(date_.getFullYear(), 4); - result = `${year}${dateDelimiter}${month}${dateDelimiter}${day}`; - } - if (representation !== "date") { - const hour = addLeadingZeros(date_.getHours(), 2); - const minute = addLeadingZeros(date_.getMinutes(), 2); - const second = addLeadingZeros(date_.getSeconds(), 2); - const separator = result === "" ? "" : " "; - result = `${result}${separator}${hour}${timeDelimiter}${minute}${timeDelimiter}${second}`; - } - return result; -} -var formatISO9075_default; -var init_formatISO9075 = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatISO9075.js"() { - init_addLeadingZeros(); - init_isValid(); - init_toDate(); - formatISO9075_default = formatISO9075; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatISODuration.js -function formatISODuration(duration) { - const { - years = 0, - months: months2 = 0, - days: days2 = 0, - hours = 0, - minutes = 0, - seconds = 0 - } = duration; - return `P${years}Y${months2}M${days2}DT${hours}H${minutes}M${seconds}S`; -} -var formatISODuration_default; -var init_formatISODuration = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatISODuration.js"() { - formatISODuration_default = formatISODuration; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatRFC3339.js -function formatRFC3339(date, options2) { - const date_ = toDate(date, options2?.in); - if (!isValid(date_)) { - throw new RangeError("Invalid time value"); - } - const fractionDigits = options2?.fractionDigits ?? 0; - const day = addLeadingZeros(date_.getDate(), 2); - const month = addLeadingZeros(date_.getMonth() + 1, 2); - const year = date_.getFullYear(); - const hour = addLeadingZeros(date_.getHours(), 2); - const minute = addLeadingZeros(date_.getMinutes(), 2); - const second = addLeadingZeros(date_.getSeconds(), 2); - let fractionalSecond = ""; - if (fractionDigits > 0) { - const milliseconds2 = date_.getMilliseconds(); - const fractionalSeconds = Math.trunc( - milliseconds2 * Math.pow(10, fractionDigits - 3) - ); - fractionalSecond = "." + addLeadingZeros(fractionalSeconds, fractionDigits); - } - let offset = ""; - const tzOffset = date_.getTimezoneOffset(); - if (tzOffset !== 0) { - const absoluteOffset = Math.abs(tzOffset); - const hourOffset = addLeadingZeros(Math.trunc(absoluteOffset / 60), 2); - const minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); - const sign = tzOffset < 0 ? "+" : "-"; - offset = `${sign}${hourOffset}:${minuteOffset}`; - } else { - offset = "Z"; - } - return `${year}-${month}-${day}T${hour}:${minute}:${second}${fractionalSecond}${offset}`; -} -var formatRFC3339_default; -var init_formatRFC3339 = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatRFC3339.js"() { - init_addLeadingZeros(); - init_isValid(); - init_toDate(); - formatRFC3339_default = formatRFC3339; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatRFC7231.js -function formatRFC7231(date) { - const _date = toDate(date); - if (!isValid(_date)) { - throw new RangeError("Invalid time value"); - } - const dayName = days[_date.getUTCDay()]; - const dayOfMonth = addLeadingZeros(_date.getUTCDate(), 2); - const monthName = months[_date.getUTCMonth()]; - const year = _date.getUTCFullYear(); - const hour = addLeadingZeros(_date.getUTCHours(), 2); - const minute = addLeadingZeros(_date.getUTCMinutes(), 2); - const second = addLeadingZeros(_date.getUTCSeconds(), 2); - return `${dayName}, ${dayOfMonth} ${monthName} ${year} ${hour}:${minute}:${second} GMT`; -} -var days, months, formatRFC7231_default; -var init_formatRFC7231 = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatRFC7231.js"() { - init_addLeadingZeros(); - init_isValid(); - init_toDate(); - days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; - months = [ - "Jan", - "Feb", - "Mar", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Oct", - "Nov", - "Dec" - ]; - formatRFC7231_default = formatRFC7231; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatRelative.js -function formatRelative2(date, baseDate, options2) { - const [date_, baseDate_] = normalizeDates(options2?.in, date, baseDate); - const defaultOptions2 = getDefaultOptions(); - const locale = options2?.locale ?? defaultOptions2.locale ?? enUS; - const weekStartsOn = options2?.weekStartsOn ?? options2?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0; - const diff = differenceInCalendarDays(date_, baseDate_); - if (isNaN(diff)) { - throw new RangeError("Invalid time value"); - } - let token; - if (diff < -6) { - token = "other"; - } else if (diff < -1) { - token = "lastWeek"; - } else if (diff < 0) { - token = "yesterday"; - } else if (diff < 1) { - token = "today"; - } else if (diff < 2) { - token = "tomorrow"; - } else if (diff < 7) { - token = "nextWeek"; - } else { - token = "other"; - } - const formatStr = locale.formatRelative(token, date_, baseDate_, { - locale, - weekStartsOn - }); - return format(date_, formatStr, { locale, weekStartsOn }); -} -var formatRelative_default; -var init_formatRelative2 = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatRelative.js"() { - init_defaultLocale(); - init_defaultOptions(); - init_normalizeDates(); - init_differenceInCalendarDays(); - init_format(); - formatRelative_default = formatRelative2; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/fromUnixTime.js -function fromUnixTime(unixTime, options2) { - return toDate(unixTime * 1e3, options2?.in); -} -var fromUnixTime_default; -var init_fromUnixTime = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/fromUnixTime.js"() { - init_toDate(); - fromUnixTime_default = fromUnixTime; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDate.js -function getDate(date, options2) { - return toDate(date, options2?.in).getDate(); -} -var getDate_default; -var init_getDate = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDate.js"() { - init_toDate(); - getDate_default = getDate; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDay.js -function getDay(date, options2) { - return toDate(date, options2?.in).getDay(); -} -var getDay_default; -var init_getDay = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDay.js"() { - init_toDate(); - getDay_default = getDay; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInMonth.js -function getDaysInMonth(date, options2) { - const _date = toDate(date, options2?.in); - const year = _date.getFullYear(); - const monthIndex = _date.getMonth(); - const lastDayOfMonth2 = constructFrom(_date, 0); - lastDayOfMonth2.setFullYear(year, monthIndex + 1, 0); - lastDayOfMonth2.setHours(0, 0, 0, 0); - return lastDayOfMonth2.getDate(); -} -var getDaysInMonth_default; -var init_getDaysInMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInMonth.js"() { - init_constructFrom(); - init_toDate(); - getDaysInMonth_default = getDaysInMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isLeapYear.js -function isLeapYear(date, options2) { - const _date = toDate(date, options2?.in); - const year = _date.getFullYear(); - return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; -} -var isLeapYear_default; -var init_isLeapYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isLeapYear.js"() { - init_toDate(); - isLeapYear_default = isLeapYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInYear.js -function getDaysInYear(date, options2) { - const _date = toDate(date, options2?.in); - if (Number.isNaN(+_date)) return NaN; - return isLeapYear(_date) ? 366 : 365; -} -var getDaysInYear_default; -var init_getDaysInYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInYear.js"() { - init_isLeapYear(); - init_toDate(); - getDaysInYear_default = getDaysInYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDecade.js -function getDecade(date, options2) { - const _date = toDate(date, options2?.in); - const year = _date.getFullYear(); - const decade = Math.floor(year / 10) * 10; - return decade; -} -var getDecade_default; -var init_getDecade = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDecade.js"() { - init_toDate(); - getDecade_default = getDecade; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDefaultOptions.js -function getDefaultOptions2() { - return Object.assign({}, getDefaultOptions()); -} -var getDefaultOptions_default; -var init_getDefaultOptions = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDefaultOptions.js"() { - init_defaultOptions(); - getDefaultOptions_default = getDefaultOptions2; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getHours.js -function getHours(date, options2) { - return toDate(date, options2?.in).getHours(); -} -var getHours_default; -var init_getHours = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getHours.js"() { - init_toDate(); - getHours_default = getHours; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISODay.js -function getISODay(date, options2) { - const day = toDate(date, options2?.in).getDay(); - return day === 0 ? 7 : day; -} -var getISODay_default; -var init_getISODay = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISODay.js"() { - init_toDate(); - getISODay_default = getISODay; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeeksInYear.js -function getISOWeeksInYear(date, options2) { - const thisYear = startOfISOWeekYear(date, options2); - const nextYear = startOfISOWeekYear(addWeeks(thisYear, 60)); - const diff = +nextYear - +thisYear; - return Math.round(diff / millisecondsInWeek); -} -var getISOWeeksInYear_default; -var init_getISOWeeksInYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeeksInYear.js"() { - init_addWeeks(); - init_constants(); - init_startOfISOWeekYear(); - getISOWeeksInYear_default = getISOWeeksInYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMilliseconds.js -function getMilliseconds(date) { - return toDate(date).getMilliseconds(); -} -var getMilliseconds_default; -var init_getMilliseconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMilliseconds.js"() { - init_toDate(); - getMilliseconds_default = getMilliseconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMinutes.js -function getMinutes(date, options2) { - return toDate(date, options2?.in).getMinutes(); -} -var getMinutes_default; -var init_getMinutes = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMinutes.js"() { - init_toDate(); - getMinutes_default = getMinutes; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMonth.js -function getMonth(date, options2) { - return toDate(date, options2?.in).getMonth(); -} -var getMonth_default; -var init_getMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMonth.js"() { - init_toDate(); - getMonth_default = getMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getOverlappingDaysInIntervals.js -function getOverlappingDaysInIntervals(intervalLeft, intervalRight) { - const [leftStart, leftEnd] = [ - +toDate(intervalLeft.start), - +toDate(intervalLeft.end) - ].sort((a6, b6) => a6 - b6); - const [rightStart, rightEnd] = [ - +toDate(intervalRight.start), - +toDate(intervalRight.end) - ].sort((a6, b6) => a6 - b6); - const isOverlapping = leftStart < rightEnd && rightStart < leftEnd; - if (!isOverlapping) return 0; - const overlapLeft = rightStart < leftStart ? leftStart : rightStart; - const left = overlapLeft - getTimezoneOffsetInMilliseconds(overlapLeft); - const overlapRight = rightEnd > leftEnd ? leftEnd : rightEnd; - const right = overlapRight - getTimezoneOffsetInMilliseconds(overlapRight); - return Math.ceil((right - left) / millisecondsInDay); -} -var getOverlappingDaysInIntervals_default; -var init_getOverlappingDaysInIntervals = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getOverlappingDaysInIntervals.js"() { - init_getTimezoneOffsetInMilliseconds(); - init_constants(); - init_toDate(); - getOverlappingDaysInIntervals_default = getOverlappingDaysInIntervals; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getSeconds.js -function getSeconds(date) { - return toDate(date).getSeconds(); -} -var getSeconds_default; -var init_getSeconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getSeconds.js"() { - init_toDate(); - getSeconds_default = getSeconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getTime.js -function getTime(date) { - return +toDate(date); -} -var getTime_default; -var init_getTime = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getTime.js"() { - init_toDate(); - getTime_default = getTime; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getUnixTime.js -function getUnixTime(date) { - return Math.trunc(+toDate(date) / 1e3); -} -var getUnixTime_default; -var init_getUnixTime = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getUnixTime.js"() { - init_toDate(); - getUnixTime_default = getUnixTime; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekOfMonth.js -function getWeekOfMonth(date, options2) { - const defaultOptions2 = getDefaultOptions(); - const weekStartsOn = options2?.weekStartsOn ?? options2?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0; - const currentDayOfMonth = getDate(toDate(date, options2?.in)); - if (isNaN(currentDayOfMonth)) return NaN; - const startWeekDay = getDay(startOfMonth(date, options2)); - let lastDayOfFirstWeek = weekStartsOn - startWeekDay; - if (lastDayOfFirstWeek <= 0) lastDayOfFirstWeek += 7; - const remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; - return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1; -} -var getWeekOfMonth_default; -var init_getWeekOfMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekOfMonth.js"() { - init_defaultOptions(); - init_getDate(); - init_getDay(); - init_startOfMonth(); - init_toDate(); - getWeekOfMonth_default = getWeekOfMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfMonth.js -function lastDayOfMonth(date, options2) { - const _date = toDate(date, options2?.in); - const month = _date.getMonth(); - _date.setFullYear(_date.getFullYear(), month + 1, 0); - _date.setHours(0, 0, 0, 0); - return toDate(_date, options2?.in); -} -var lastDayOfMonth_default; -var init_lastDayOfMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfMonth.js"() { - init_toDate(); - lastDayOfMonth_default = lastDayOfMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeeksInMonth.js -function getWeeksInMonth(date, options2) { - const contextDate = toDate(date, options2?.in); - return differenceInCalendarWeeks( - lastDayOfMonth(contextDate, options2), - startOfMonth(contextDate, options2), - options2 - ) + 1; -} -var getWeeksInMonth_default; -var init_getWeeksInMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeeksInMonth.js"() { - init_differenceInCalendarWeeks(); - init_lastDayOfMonth(); - init_startOfMonth(); - init_toDate(); - getWeeksInMonth_default = getWeeksInMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getYear.js -function getYear(date, options2) { - return toDate(date, options2?.in).getFullYear(); -} -var getYear_default; -var init_getYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getYear.js"() { - init_toDate(); - getYear_default = getYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/hoursToMilliseconds.js -function hoursToMilliseconds(hours) { - return Math.trunc(hours * millisecondsInHour); -} -var hoursToMilliseconds_default; -var init_hoursToMilliseconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/hoursToMilliseconds.js"() { - init_constants(); - hoursToMilliseconds_default = hoursToMilliseconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/hoursToMinutes.js -function hoursToMinutes(hours) { - return Math.trunc(hours * minutesInHour); -} -var hoursToMinutes_default; -var init_hoursToMinutes = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/hoursToMinutes.js"() { - init_constants(); - hoursToMinutes_default = hoursToMinutes; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/hoursToSeconds.js -function hoursToSeconds(hours) { - return Math.trunc(hours * secondsInHour); -} -var hoursToSeconds_default; -var init_hoursToSeconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/hoursToSeconds.js"() { - init_constants(); - hoursToSeconds_default = hoursToSeconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/interval.js -function interval2(start, end3, options2) { - const [_start, _end] = normalizeDates(options2?.in, start, end3); - if (isNaN(+_start)) throw new TypeError("Start date is invalid"); - if (isNaN(+_end)) throw new TypeError("End date is invalid"); - if (options2?.assertPositive && +_start > +_end) - throw new TypeError("End date must be after start date"); - return { start: _start, end: _end }; -} -var interval_default; -var init_interval2 = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/interval.js"() { - init_normalizeDates(); - interval_default = interval2; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/intervalToDuration.js -function intervalToDuration(interval3, options2) { - const { start, end: end3 } = normalizeInterval(options2?.in, interval3); - const duration = {}; - const years = differenceInYears(end3, start); - if (years) duration.years = years; - const remainingMonths = add(start, { years: duration.years }); - const months2 = differenceInMonths(end3, remainingMonths); - if (months2) duration.months = months2; - const remainingDays = add(remainingMonths, { months: duration.months }); - const days2 = differenceInDays(end3, remainingDays); - if (days2) duration.days = days2; - const remainingHours = add(remainingDays, { days: duration.days }); - const hours = differenceInHours(end3, remainingHours); - if (hours) duration.hours = hours; - const remainingMinutes = add(remainingHours, { hours: duration.hours }); - const minutes = differenceInMinutes(end3, remainingMinutes); - if (minutes) duration.minutes = minutes; - const remainingSeconds = add(remainingMinutes, { minutes: duration.minutes }); - const seconds = differenceInSeconds(end3, remainingSeconds); - if (seconds) duration.seconds = seconds; - return duration; -} -var intervalToDuration_default; -var init_intervalToDuration = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/intervalToDuration.js"() { - init_normalizeInterval(); - init_add(); - init_differenceInDays(); - init_differenceInHours(); - init_differenceInMinutes(); - init_differenceInMonths(); - init_differenceInSeconds(); - init_differenceInYears(); - intervalToDuration_default = intervalToDuration; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/intlFormat.js -function intlFormat(date, formatOrLocale, localeOptions) { - let formatOptions; - if (isFormatOptions(formatOrLocale)) { - formatOptions = formatOrLocale; - } else { - localeOptions = formatOrLocale; - } - return new Intl.DateTimeFormat(localeOptions?.locale, formatOptions).format( - toDate(date) - ); -} -function isFormatOptions(opts) { - return opts !== void 0 && !("locale" in opts); -} -var intlFormat_default; -var init_intlFormat = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/intlFormat.js"() { - init_toDate(); - intlFormat_default = intlFormat; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/intlFormatDistance.js -function intlFormatDistance(laterDate, earlierDate, options2) { - let value2 = 0; - let unit; - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - if (!options2?.unit) { - const diffInSeconds = differenceInSeconds(laterDate_, earlierDate_); - if (Math.abs(diffInSeconds) < secondsInMinute) { - value2 = differenceInSeconds(laterDate_, earlierDate_); - unit = "second"; - } else if (Math.abs(diffInSeconds) < secondsInHour) { - value2 = differenceInMinutes(laterDate_, earlierDate_); - unit = "minute"; - } else if (Math.abs(diffInSeconds) < secondsInDay && Math.abs(differenceInCalendarDays(laterDate_, earlierDate_)) < 1) { - value2 = differenceInHours(laterDate_, earlierDate_); - unit = "hour"; - } else if (Math.abs(diffInSeconds) < secondsInWeek && (value2 = differenceInCalendarDays(laterDate_, earlierDate_)) && Math.abs(value2) < 7) { - unit = "day"; - } else if (Math.abs(diffInSeconds) < secondsInMonth) { - value2 = differenceInCalendarWeeks(laterDate_, earlierDate_); - unit = "week"; - } else if (Math.abs(diffInSeconds) < secondsInQuarter) { - value2 = differenceInCalendarMonths(laterDate_, earlierDate_); - unit = "month"; - } else if (Math.abs(diffInSeconds) < secondsInYear) { - if (differenceInCalendarQuarters(laterDate_, earlierDate_) < 4) { - value2 = differenceInCalendarQuarters(laterDate_, earlierDate_); - unit = "quarter"; - } else { - value2 = differenceInCalendarYears(laterDate_, earlierDate_); - unit = "year"; - } - } else { - value2 = differenceInCalendarYears(laterDate_, earlierDate_); - unit = "year"; - } - } else { - unit = options2?.unit; - if (unit === "second") { - value2 = differenceInSeconds(laterDate_, earlierDate_); - } else if (unit === "minute") { - value2 = differenceInMinutes(laterDate_, earlierDate_); - } else if (unit === "hour") { - value2 = differenceInHours(laterDate_, earlierDate_); - } else if (unit === "day") { - value2 = differenceInCalendarDays(laterDate_, earlierDate_); - } else if (unit === "week") { - value2 = differenceInCalendarWeeks(laterDate_, earlierDate_); - } else if (unit === "month") { - value2 = differenceInCalendarMonths(laterDate_, earlierDate_); - } else if (unit === "quarter") { - value2 = differenceInCalendarQuarters(laterDate_, earlierDate_); - } else if (unit === "year") { - value2 = differenceInCalendarYears(laterDate_, earlierDate_); - } - } - const rtf = new Intl.RelativeTimeFormat(options2?.locale, { - numeric: "auto", - ...options2 - }); - return rtf.format(value2, unit); -} -var intlFormatDistance_default; -var init_intlFormatDistance = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/intlFormatDistance.js"() { - init_normalizeDates(); - init_constants(); - init_differenceInCalendarDays(); - init_differenceInCalendarMonths(); - init_differenceInCalendarQuarters(); - init_differenceInCalendarWeeks(); - init_differenceInCalendarYears(); - init_differenceInHours(); - init_differenceInMinutes(); - init_differenceInSeconds(); - intlFormatDistance_default = intlFormatDistance; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isAfter.js -function isAfter(date, dateToCompare) { - return +toDate(date) > +toDate(dateToCompare); -} -var isAfter_default; -var init_isAfter = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isAfter.js"() { - init_toDate(); - isAfter_default = isAfter; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isBefore.js -function isBefore(date, dateToCompare) { - return +toDate(date) < +toDate(dateToCompare); -} -var isBefore_default; -var init_isBefore = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isBefore.js"() { - init_toDate(); - isBefore_default = isBefore; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isEqual.js -function isEqual(leftDate, rightDate) { - return +toDate(leftDate) === +toDate(rightDate); -} -var isEqual_default; -var init_isEqual = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isEqual.js"() { - init_toDate(); - isEqual_default = isEqual; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isExists.js -function isExists(year, month, day) { - const date = new Date(year, month, day); - return date.getFullYear() === year && date.getMonth() === month && date.getDate() === day; -} -var isExists_default; -var init_isExists = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isExists.js"() { - isExists_default = isExists; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isFirstDayOfMonth.js -function isFirstDayOfMonth(date, options2) { - return toDate(date, options2?.in).getDate() === 1; -} -var isFirstDayOfMonth_default; -var init_isFirstDayOfMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isFirstDayOfMonth.js"() { - init_toDate(); - isFirstDayOfMonth_default = isFirstDayOfMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isFriday.js -function isFriday(date, options2) { - return toDate(date, options2?.in).getDay() === 5; -} -var isFriday_default; -var init_isFriday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isFriday.js"() { - init_toDate(); - isFriday_default = isFriday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isFuture.js -function isFuture(date) { - return +toDate(date) > Date.now(); -} -var isFuture_default; -var init_isFuture = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isFuture.js"() { - init_toDate(); - isFuture_default = isFuture; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/transpose.js -function transpose(date, constructor) { - const date_ = isConstructor(constructor) ? new constructor(0) : constructFrom(constructor, 0); - date_.setFullYear(date.getFullYear(), date.getMonth(), date.getDate()); - date_.setHours( - date.getHours(), - date.getMinutes(), - date.getSeconds(), - date.getMilliseconds() - ); - return date_; -} -function isConstructor(constructor) { - return typeof constructor === "function" && constructor.prototype?.constructor === constructor; -} -var transpose_default; -var init_transpose = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/transpose.js"() { - init_constructFrom(); - transpose_default = transpose; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Setter.js -var TIMEZONE_UNIT_PRIORITY, Setter, ValueSetter, DateTimezoneSetter; -var init_Setter = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Setter.js"() { - init_constructFrom(); - init_transpose(); - TIMEZONE_UNIT_PRIORITY = 10; - Setter = class { - subPriority = 0; - validate(_utcDate, _options) { - return true; - } - }; - ValueSetter = class extends Setter { - constructor(value2, validateValue, setValue, priority, subPriority) { - super(); - this.value = value2; - this.validateValue = validateValue; - this.setValue = setValue; - this.priority = priority; - if (subPriority) { - this.subPriority = subPriority; - } - } - validate(date, options2) { - return this.validateValue(date, this.value, options2); - } - set(date, flags, options2) { - return this.setValue(date, flags, this.value, options2); - } - }; - DateTimezoneSetter = class extends Setter { - priority = TIMEZONE_UNIT_PRIORITY; - subPriority = -1; - constructor(context2, reference) { - super(); - this.context = context2 || ((date) => constructFrom(reference, date)); - } - set(date, flags) { - if (flags.timestampIsSet) return date; - return constructFrom(date, transpose(date, this.context)); - } - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Parser.js -var Parser; -var init_Parser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Parser.js"() { - init_Setter(); - Parser = class { - run(dateString, token, match2, options2) { - const result = this.parse(dateString, token, match2, options2); - if (!result) { - return null; - } - return { - setter: new ValueSetter( - result.value, - this.validate, - this.set, - this.priority, - this.subPriority - ), - rest: result.rest - }; - } - validate(_utcDate, _value, _options) { - return true; - } - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js -var EraParser; -var init_EraParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js"() { - init_Parser(); - EraParser = class extends Parser { - priority = 140; - parse(dateString, token, match2) { - switch (token) { - // AD, BC - case "G": - case "GG": - case "GGG": - return match2.era(dateString, { width: "abbreviated" }) || match2.era(dateString, { width: "narrow" }); - // A, B - case "GGGGG": - return match2.era(dateString, { width: "narrow" }); - // Anno Domini, Before Christ - case "GGGG": - default: - return match2.era(dateString, { width: "wide" }) || match2.era(dateString, { width: "abbreviated" }) || match2.era(dateString, { width: "narrow" }); - } - } - set(date, flags, value2) { - flags.era = value2; - date.setFullYear(value2, 0, 1); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = ["R", "u", "t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/constants.js -var numericPatterns, timezonePatterns; -var init_constants2 = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/constants.js"() { - numericPatterns = { - month: /^(1[0-2]|0?\d)/, - // 0 to 12 - date: /^(3[0-1]|[0-2]?\d)/, - // 0 to 31 - dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, - // 0 to 366 - week: /^(5[0-3]|[0-4]?\d)/, - // 0 to 53 - hour23h: /^(2[0-3]|[0-1]?\d)/, - // 0 to 23 - hour24h: /^(2[0-4]|[0-1]?\d)/, - // 0 to 24 - hour11h: /^(1[0-1]|0?\d)/, - // 0 to 11 - hour12h: /^(1[0-2]|0?\d)/, - // 0 to 12 - minute: /^[0-5]?\d/, - // 0 to 59 - second: /^[0-5]?\d/, - // 0 to 59 - singleDigit: /^\d/, - // 0 to 9 - twoDigits: /^\d{1,2}/, - // 0 to 99 - threeDigits: /^\d{1,3}/, - // 0 to 999 - fourDigits: /^\d{1,4}/, - // 0 to 9999 - anyDigitsSigned: /^-?\d+/, - singleDigitSigned: /^-?\d/, - // 0 to 9, -0 to -9 - twoDigitsSigned: /^-?\d{1,2}/, - // 0 to 99, -0 to -99 - threeDigitsSigned: /^-?\d{1,3}/, - // 0 to 999, -0 to -999 - fourDigitsSigned: /^-?\d{1,4}/ - // 0 to 9999, -0 to -9999 - }; - timezonePatterns = { - basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, - basic: /^([+-])(\d{2})(\d{2})|Z/, - basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, - extended: /^([+-])(\d{2}):(\d{2})|Z/, - extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/utils.js -function mapValue(parseFnResult, mapFn) { - if (!parseFnResult) { - return parseFnResult; - } - return { - value: mapFn(parseFnResult.value), - rest: parseFnResult.rest - }; -} -function parseNumericPattern(pattern, dateString) { - const matchResult = dateString.match(pattern); - if (!matchResult) { - return null; - } - return { - value: parseInt(matchResult[0], 10), - rest: dateString.slice(matchResult[0].length) - }; -} -function parseTimezonePattern(pattern, dateString) { - const matchResult = dateString.match(pattern); - if (!matchResult) { - return null; - } - if (matchResult[0] === "Z") { - return { - value: 0, - rest: dateString.slice(1) - }; - } - const sign = matchResult[1] === "+" ? 1 : -1; - const hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0; - const minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0; - const seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0; - return { - value: sign * (hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * millisecondsInSecond), - rest: dateString.slice(matchResult[0].length) - }; -} -function parseAnyDigitsSigned(dateString) { - return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString); -} -function parseNDigits(n14, dateString) { - switch (n14) { - case 1: - return parseNumericPattern(numericPatterns.singleDigit, dateString); - case 2: - return parseNumericPattern(numericPatterns.twoDigits, dateString); - case 3: - return parseNumericPattern(numericPatterns.threeDigits, dateString); - case 4: - return parseNumericPattern(numericPatterns.fourDigits, dateString); - default: - return parseNumericPattern(new RegExp("^\\d{1," + n14 + "}"), dateString); - } -} -function parseNDigitsSigned(n14, dateString) { - switch (n14) { - case 1: - return parseNumericPattern(numericPatterns.singleDigitSigned, dateString); - case 2: - return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString); - case 3: - return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString); - case 4: - return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString); - default: - return parseNumericPattern(new RegExp("^-?\\d{1," + n14 + "}"), dateString); - } -} -function dayPeriodEnumToHours(dayPeriod) { - switch (dayPeriod) { - case "morning": - return 4; - case "evening": - return 17; - case "pm": - case "noon": - case "afternoon": - return 12; - case "am": - case "midnight": - case "night": - default: - return 0; - } -} -function normalizeTwoDigitYear(twoDigitYear, currentYear) { - const isCommonEra = currentYear > 0; - const absCurrentYear = isCommonEra ? currentYear : 1 - currentYear; - let result; - if (absCurrentYear <= 50) { - result = twoDigitYear || 100; - } else { - const rangeEnd = absCurrentYear + 50; - const rangeEndCentury = Math.trunc(rangeEnd / 100) * 100; - const isPreviousCentury = twoDigitYear >= rangeEnd % 100; - result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0); - } - return isCommonEra ? result : 1 - result; -} -function isLeapYearIndex(year) { - return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; -} -var init_utils = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/utils.js"() { - init_constants(); - init_constants2(); - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js -var YearParser; -var init_YearParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js"() { - init_Parser(); - init_utils(); - YearParser = class extends Parser { - priority = 130; - incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]; - parse(dateString, token, match2) { - const valueCallback = (year) => ({ - year, - isTwoDigitYear: token === "yy" - }); - switch (token) { - case "y": - return mapValue(parseNDigits(4, dateString), valueCallback); - case "yo": - return mapValue( - match2.ordinalNumber(dateString, { - unit: "year" - }), - valueCallback - ); - default: - return mapValue(parseNDigits(token.length, dateString), valueCallback); - } - } - validate(_date, value2) { - return value2.isTwoDigitYear || value2.year > 0; - } - set(date, flags, value2) { - const currentYear = date.getFullYear(); - if (value2.isTwoDigitYear) { - const normalizedTwoDigitYear = normalizeTwoDigitYear( - value2.year, - currentYear - ); - date.setFullYear(normalizedTwoDigitYear, 0, 1); - date.setHours(0, 0, 0, 0); - return date; - } - const year = !("era" in flags) || flags.era === 1 ? value2.year : 1 - value2.year; - date.setFullYear(year, 0, 1); - date.setHours(0, 0, 0, 0); - return date; - } - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js -var LocalWeekYearParser; -var init_LocalWeekYearParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js"() { - init_getWeekYear(); - init_startOfWeek(); - init_Parser(); - init_utils(); - LocalWeekYearParser = class extends Parser { - priority = 130; - parse(dateString, token, match2) { - const valueCallback = (year) => ({ - year, - isTwoDigitYear: token === "YY" - }); - switch (token) { - case "Y": - return mapValue(parseNDigits(4, dateString), valueCallback); - case "Yo": - return mapValue( - match2.ordinalNumber(dateString, { - unit: "year" - }), - valueCallback - ); - default: - return mapValue(parseNDigits(token.length, dateString), valueCallback); - } - } - validate(_date, value2) { - return value2.isTwoDigitYear || value2.year > 0; - } - set(date, flags, value2, options2) { - const currentYear = getWeekYear(date, options2); - if (value2.isTwoDigitYear) { - const normalizedTwoDigitYear = normalizeTwoDigitYear( - value2.year, - currentYear - ); - date.setFullYear( - normalizedTwoDigitYear, - 0, - options2.firstWeekContainsDate - ); - date.setHours(0, 0, 0, 0); - return startOfWeek(date, options2); - } - const year = !("era" in flags) || flags.era === 1 ? value2.year : 1 - value2.year; - date.setFullYear(year, 0, options2.firstWeekContainsDate); - date.setHours(0, 0, 0, 0); - return startOfWeek(date, options2); - } - incompatibleTokens = [ - "y", - "R", - "u", - "Q", - "q", - "M", - "L", - "I", - "d", - "D", - "i", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js -var ISOWeekYearParser; -var init_ISOWeekYearParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js"() { - init_startOfISOWeek(); - init_constructFrom(); - init_Parser(); - init_utils(); - ISOWeekYearParser = class extends Parser { - priority = 130; - parse(dateString, token) { - if (token === "R") { - return parseNDigitsSigned(4, dateString); - } - return parseNDigitsSigned(token.length, dateString); - } - set(date, _flags, value2) { - const firstWeekOfYear = constructFrom(date, 0); - firstWeekOfYear.setFullYear(value2, 0, 4); - firstWeekOfYear.setHours(0, 0, 0, 0); - return startOfISOWeek(firstWeekOfYear); - } - incompatibleTokens = [ - "G", - "y", - "Y", - "u", - "Q", - "q", - "M", - "L", - "w", - "d", - "D", - "e", - "c", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js -var ExtendedYearParser; -var init_ExtendedYearParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js"() { - init_Parser(); - init_utils(); - ExtendedYearParser = class extends Parser { - priority = 130; - parse(dateString, token) { - if (token === "u") { - return parseNDigitsSigned(4, dateString); - } - return parseNDigitsSigned(token.length, dateString); - } - set(date, _flags, value2) { - date.setFullYear(value2, 0, 1); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js -var QuarterParser; -var init_QuarterParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js"() { - init_Parser(); - init_utils(); - QuarterParser = class extends Parser { - priority = 120; - parse(dateString, token, match2) { - switch (token) { - // 1, 2, 3, 4 - case "Q": - case "QQ": - return parseNDigits(token.length, dateString); - // 1st, 2nd, 3rd, 4th - case "Qo": - return match2.ordinalNumber(dateString, { unit: "quarter" }); - // Q1, Q2, Q3, Q4 - case "QQQ": - return match2.quarter(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.quarter(dateString, { - width: "narrow", - context: "formatting" - }); - // 1, 2, 3, 4 (narrow quarter; could be not numerical) - case "QQQQQ": - return match2.quarter(dateString, { - width: "narrow", - context: "formatting" - }); - // 1st quarter, 2nd quarter, ... - case "QQQQ": - default: - return match2.quarter(dateString, { - width: "wide", - context: "formatting" - }) || match2.quarter(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.quarter(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - validate(_date, value2) { - return value2 >= 1 && value2 <= 4; - } - set(date, _flags, value2) { - date.setMonth((value2 - 1) * 3, 1); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = [ - "Y", - "R", - "q", - "M", - "L", - "w", - "I", - "d", - "D", - "i", - "e", - "c", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js -var StandAloneQuarterParser; -var init_StandAloneQuarterParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js"() { - init_Parser(); - init_utils(); - StandAloneQuarterParser = class extends Parser { - priority = 120; - parse(dateString, token, match2) { - switch (token) { - // 1, 2, 3, 4 - case "q": - case "qq": - return parseNDigits(token.length, dateString); - // 1st, 2nd, 3rd, 4th - case "qo": - return match2.ordinalNumber(dateString, { unit: "quarter" }); - // Q1, Q2, Q3, Q4 - case "qqq": - return match2.quarter(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.quarter(dateString, { - width: "narrow", - context: "standalone" - }); - // 1, 2, 3, 4 (narrow quarter; could be not numerical) - case "qqqqq": - return match2.quarter(dateString, { - width: "narrow", - context: "standalone" - }); - // 1st quarter, 2nd quarter, ... - case "qqqq": - default: - return match2.quarter(dateString, { - width: "wide", - context: "standalone" - }) || match2.quarter(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.quarter(dateString, { - width: "narrow", - context: "standalone" - }); - } - } - validate(_date, value2) { - return value2 >= 1 && value2 <= 4; - } - set(date, _flags, value2) { - date.setMonth((value2 - 1) * 3, 1); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = [ - "Y", - "R", - "Q", - "M", - "L", - "w", - "I", - "d", - "D", - "i", - "e", - "c", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js -var MonthParser; -var init_MonthParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js"() { - init_constants2(); - init_Parser(); - init_utils(); - MonthParser = class extends Parser { - incompatibleTokens = [ - "Y", - "R", - "q", - "Q", - "L", - "w", - "I", - "D", - "i", - "e", - "c", - "t", - "T" - ]; - priority = 110; - parse(dateString, token, match2) { - const valueCallback = (value2) => value2 - 1; - switch (token) { - // 1, 2, ..., 12 - case "M": - return mapValue( - parseNumericPattern(numericPatterns.month, dateString), - valueCallback - ); - // 01, 02, ..., 12 - case "MM": - return mapValue(parseNDigits(2, dateString), valueCallback); - // 1st, 2nd, ..., 12th - case "Mo": - return mapValue( - match2.ordinalNumber(dateString, { - unit: "month" - }), - valueCallback - ); - // Jan, Feb, ..., Dec - case "MMM": - return match2.month(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.month(dateString, { width: "narrow", context: "formatting" }); - // J, F, ..., D - case "MMMMM": - return match2.month(dateString, { - width: "narrow", - context: "formatting" - }); - // January, February, ..., December - case "MMMM": - default: - return match2.month(dateString, { width: "wide", context: "formatting" }) || match2.month(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.month(dateString, { width: "narrow", context: "formatting" }); - } - } - validate(_date, value2) { - return value2 >= 0 && value2 <= 11; - } - set(date, _flags, value2) { - date.setMonth(value2, 1); - date.setHours(0, 0, 0, 0); - return date; - } - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js -var StandAloneMonthParser; -var init_StandAloneMonthParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js"() { - init_constants2(); - init_Parser(); - init_utils(); - StandAloneMonthParser = class extends Parser { - priority = 110; - parse(dateString, token, match2) { - const valueCallback = (value2) => value2 - 1; - switch (token) { - // 1, 2, ..., 12 - case "L": - return mapValue( - parseNumericPattern(numericPatterns.month, dateString), - valueCallback - ); - // 01, 02, ..., 12 - case "LL": - return mapValue(parseNDigits(2, dateString), valueCallback); - // 1st, 2nd, ..., 12th - case "Lo": - return mapValue( - match2.ordinalNumber(dateString, { - unit: "month" - }), - valueCallback - ); - // Jan, Feb, ..., Dec - case "LLL": - return match2.month(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.month(dateString, { width: "narrow", context: "standalone" }); - // J, F, ..., D - case "LLLLL": - return match2.month(dateString, { - width: "narrow", - context: "standalone" - }); - // January, February, ..., December - case "LLLL": - default: - return match2.month(dateString, { width: "wide", context: "standalone" }) || match2.month(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.month(dateString, { width: "narrow", context: "standalone" }); - } - } - validate(_date, value2) { - return value2 >= 0 && value2 <= 11; - } - set(date, _flags, value2) { - date.setMonth(value2, 1); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = [ - "Y", - "R", - "q", - "Q", - "M", - "w", - "I", - "D", - "i", - "e", - "c", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setWeek.js -function setWeek(date, week, options2) { - const date_ = toDate(date, options2?.in); - const diff = getWeek(date_, options2) - week; - date_.setDate(date_.getDate() - diff * 7); - return toDate(date_, options2?.in); -} -var setWeek_default; -var init_setWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setWeek.js"() { - init_getWeek(); - init_toDate(); - setWeek_default = setWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js -var LocalWeekParser; -var init_LocalWeekParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js"() { - init_setWeek(); - init_startOfWeek(); - init_constants2(); - init_Parser(); - init_utils(); - LocalWeekParser = class extends Parser { - priority = 100; - parse(dateString, token, match2) { - switch (token) { - case "w": - return parseNumericPattern(numericPatterns.week, dateString); - case "wo": - return match2.ordinalNumber(dateString, { unit: "week" }); - default: - return parseNDigits(token.length, dateString); - } - } - validate(_date, value2) { - return value2 >= 1 && value2 <= 53; - } - set(date, _flags, value2, options2) { - return startOfWeek(setWeek(date, value2, options2), options2); - } - incompatibleTokens = [ - "y", - "R", - "u", - "q", - "Q", - "M", - "L", - "I", - "d", - "D", - "i", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISOWeek.js -function setISOWeek(date, week, options2) { - const _date = toDate(date, options2?.in); - const diff = getISOWeek(_date, options2) - week; - _date.setDate(_date.getDate() - diff * 7); - return _date; -} -var setISOWeek_default; -var init_setISOWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISOWeek.js"() { - init_getISOWeek(); - init_toDate(); - setISOWeek_default = setISOWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js -var ISOWeekParser; -var init_ISOWeekParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js"() { - init_setISOWeek(); - init_startOfISOWeek(); - init_constants2(); - init_Parser(); - init_utils(); - ISOWeekParser = class extends Parser { - priority = 100; - parse(dateString, token, match2) { - switch (token) { - case "I": - return parseNumericPattern(numericPatterns.week, dateString); - case "Io": - return match2.ordinalNumber(dateString, { unit: "week" }); - default: - return parseNDigits(token.length, dateString); - } - } - validate(_date, value2) { - return value2 >= 1 && value2 <= 53; - } - set(date, _flags, value2) { - return startOfISOWeek(setISOWeek(date, value2)); - } - incompatibleTokens = [ - "y", - "Y", - "u", - "q", - "Q", - "M", - "L", - "w", - "d", - "D", - "e", - "c", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js -var DAYS_IN_MONTH, DAYS_IN_MONTH_LEAP_YEAR, DateParser; -var init_DateParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js"() { - init_constants2(); - init_Parser(); - init_utils(); - DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - DAYS_IN_MONTH_LEAP_YEAR = [ - 31, - 29, - 31, - 30, - 31, - 30, - 31, - 31, - 30, - 31, - 30, - 31 - ]; - DateParser = class extends Parser { - priority = 90; - subPriority = 1; - parse(dateString, token, match2) { - switch (token) { - case "d": - return parseNumericPattern(numericPatterns.date, dateString); - case "do": - return match2.ordinalNumber(dateString, { unit: "date" }); - default: - return parseNDigits(token.length, dateString); - } - } - validate(date, value2) { - const year = date.getFullYear(); - const isLeapYear2 = isLeapYearIndex(year); - const month = date.getMonth(); - if (isLeapYear2) { - return value2 >= 1 && value2 <= DAYS_IN_MONTH_LEAP_YEAR[month]; - } else { - return value2 >= 1 && value2 <= DAYS_IN_MONTH[month]; - } - } - set(date, _flags, value2) { - date.setDate(value2); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = [ - "Y", - "R", - "q", - "Q", - "w", - "I", - "D", - "i", - "e", - "c", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js -var DayOfYearParser; -var init_DayOfYearParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js"() { - init_constants2(); - init_Parser(); - init_utils(); - DayOfYearParser = class extends Parser { - priority = 90; - subpriority = 1; - parse(dateString, token, match2) { - switch (token) { - case "D": - case "DD": - return parseNumericPattern(numericPatterns.dayOfYear, dateString); - case "Do": - return match2.ordinalNumber(dateString, { unit: "date" }); - default: - return parseNDigits(token.length, dateString); - } - } - validate(date, value2) { - const year = date.getFullYear(); - const isLeapYear2 = isLeapYearIndex(year); - if (isLeapYear2) { - return value2 >= 1 && value2 <= 366; - } else { - return value2 >= 1 && value2 <= 365; - } - } - set(date, _flags, value2) { - date.setMonth(0, value2); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = [ - "Y", - "R", - "q", - "Q", - "M", - "L", - "w", - "I", - "d", - "E", - "i", - "e", - "c", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDay.js -function setDay(date, day, options2) { - const defaultOptions2 = getDefaultOptions(); - const weekStartsOn = options2?.weekStartsOn ?? options2?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0; - const date_ = toDate(date, options2?.in); - const currentDay = date_.getDay(); - const remainder = day % 7; - const dayIndex = (remainder + 7) % 7; - const delta = 7 - weekStartsOn; - const diff = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7; - return addDays(date_, diff, options2); -} -var setDay_default; -var init_setDay = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDay.js"() { - init_defaultOptions(); - init_addDays(); - init_toDate(); - setDay_default = setDay; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js -var DayParser; -var init_DayParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js"() { - init_setDay(); - init_Parser(); - DayParser = class extends Parser { - priority = 90; - parse(dateString, token, match2) { - switch (token) { - // Tue - case "E": - case "EE": - case "EEE": - return match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" }); - // T - case "EEEEE": - return match2.day(dateString, { - width: "narrow", - context: "formatting" - }); - // Tu - case "EEEEEE": - return match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" }); - // Tuesday - case "EEEE": - default: - return match2.day(dateString, { width: "wide", context: "formatting" }) || match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" }); - } - } - validate(_date, value2) { - return value2 >= 0 && value2 <= 6; - } - set(date, _flags, value2, options2) { - date = setDay(date, value2, options2); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = ["D", "i", "e", "c", "t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js -var LocalDayParser; -var init_LocalDayParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js"() { - init_setDay(); - init_Parser(); - init_utils(); - LocalDayParser = class extends Parser { - priority = 90; - parse(dateString, token, match2, options2) { - const valueCallback = (value2) => { - const wholeWeekDays = Math.floor((value2 - 1) / 7) * 7; - return (value2 + options2.weekStartsOn + 6) % 7 + wholeWeekDays; - }; - switch (token) { - // 3 - case "e": - case "ee": - return mapValue(parseNDigits(token.length, dateString), valueCallback); - // 3rd - case "eo": - return mapValue( - match2.ordinalNumber(dateString, { - unit: "day" - }), - valueCallback - ); - // Tue - case "eee": - return match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" }); - // T - case "eeeee": - return match2.day(dateString, { - width: "narrow", - context: "formatting" - }); - // Tu - case "eeeeee": - return match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" }); - // Tuesday - case "eeee": - default: - return match2.day(dateString, { width: "wide", context: "formatting" }) || match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { width: "short", context: "formatting" }) || match2.day(dateString, { width: "narrow", context: "formatting" }); - } - } - validate(_date, value2) { - return value2 >= 0 && value2 <= 6; - } - set(date, _flags, value2, options2) { - date = setDay(date, value2, options2); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = [ - "y", - "R", - "u", - "q", - "Q", - "M", - "L", - "I", - "d", - "D", - "E", - "i", - "c", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js -var StandAloneLocalDayParser; -var init_StandAloneLocalDayParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js"() { - init_setDay(); - init_Parser(); - init_utils(); - StandAloneLocalDayParser = class extends Parser { - priority = 90; - parse(dateString, token, match2, options2) { - const valueCallback = (value2) => { - const wholeWeekDays = Math.floor((value2 - 1) / 7) * 7; - return (value2 + options2.weekStartsOn + 6) % 7 + wholeWeekDays; - }; - switch (token) { - // 3 - case "c": - case "cc": - return mapValue(parseNDigits(token.length, dateString), valueCallback); - // 3rd - case "co": - return mapValue( - match2.ordinalNumber(dateString, { - unit: "day" - }), - valueCallback - ); - // Tue - case "ccc": - return match2.day(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.day(dateString, { width: "short", context: "standalone" }) || match2.day(dateString, { width: "narrow", context: "standalone" }); - // T - case "ccccc": - return match2.day(dateString, { - width: "narrow", - context: "standalone" - }); - // Tu - case "cccccc": - return match2.day(dateString, { width: "short", context: "standalone" }) || match2.day(dateString, { width: "narrow", context: "standalone" }); - // Tuesday - case "cccc": - default: - return match2.day(dateString, { width: "wide", context: "standalone" }) || match2.day(dateString, { - width: "abbreviated", - context: "standalone" - }) || match2.day(dateString, { width: "short", context: "standalone" }) || match2.day(dateString, { width: "narrow", context: "standalone" }); - } - } - validate(_date, value2) { - return value2 >= 0 && value2 <= 6; - } - set(date, _flags, value2, options2) { - date = setDay(date, value2, options2); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = [ - "y", - "R", - "u", - "q", - "Q", - "M", - "L", - "I", - "d", - "D", - "E", - "i", - "e", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISODay.js -function setISODay(date, day, options2) { - const date_ = toDate(date, options2?.in); - const currentDay = getISODay(date_, options2); - const diff = day - currentDay; - return addDays(date_, diff, options2); -} -var setISODay_default; -var init_setISODay = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISODay.js"() { - init_addDays(); - init_getISODay(); - init_toDate(); - setISODay_default = setISODay; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js -var ISODayParser; -var init_ISODayParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js"() { - init_setISODay(); - init_Parser(); - init_utils(); - ISODayParser = class extends Parser { - priority = 90; - parse(dateString, token, match2) { - const valueCallback = (value2) => { - if (value2 === 0) { - return 7; - } - return value2; - }; - switch (token) { - // 2 - case "i": - case "ii": - return parseNDigits(token.length, dateString); - // 2nd - case "io": - return match2.ordinalNumber(dateString, { unit: "day" }); - // Tue - case "iii": - return mapValue( - match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }), - valueCallback - ); - // T - case "iiiii": - return mapValue( - match2.day(dateString, { - width: "narrow", - context: "formatting" - }), - valueCallback - ); - // Tu - case "iiiiii": - return mapValue( - match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }), - valueCallback - ); - // Tuesday - case "iiii": - default: - return mapValue( - match2.day(dateString, { - width: "wide", - context: "formatting" - }) || match2.day(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.day(dateString, { - width: "short", - context: "formatting" - }) || match2.day(dateString, { - width: "narrow", - context: "formatting" - }), - valueCallback - ); - } - } - validate(_date, value2) { - return value2 >= 1 && value2 <= 7; - } - set(date, _flags, value2) { - date = setISODay(date, value2); - date.setHours(0, 0, 0, 0); - return date; - } - incompatibleTokens = [ - "y", - "Y", - "u", - "q", - "Q", - "M", - "L", - "w", - "d", - "D", - "E", - "e", - "c", - "t", - "T" - ]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js -var AMPMParser; -var init_AMPMParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js"() { - init_Parser(); - init_utils(); - AMPMParser = class extends Parser { - priority = 80; - parse(dateString, token, match2) { - switch (token) { - case "a": - case "aa": - case "aaa": - return match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "aaaaa": - return match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "aaaa": - default: - return match2.dayPeriod(dateString, { - width: "wide", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - set(date, _flags, value2) { - date.setHours(dayPeriodEnumToHours(value2), 0, 0, 0); - return date; - } - incompatibleTokens = ["b", "B", "H", "k", "t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js -var AMPMMidnightParser; -var init_AMPMMidnightParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js"() { - init_Parser(); - init_utils(); - AMPMMidnightParser = class extends Parser { - priority = 80; - parse(dateString, token, match2) { - switch (token) { - case "b": - case "bb": - case "bbb": - return match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "bbbbb": - return match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "bbbb": - default: - return match2.dayPeriod(dateString, { - width: "wide", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - set(date, _flags, value2) { - date.setHours(dayPeriodEnumToHours(value2), 0, 0, 0); - return date; - } - incompatibleTokens = ["a", "B", "H", "k", "t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js -var DayPeriodParser; -var init_DayPeriodParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js"() { - init_Parser(); - init_utils(); - DayPeriodParser = class extends Parser { - priority = 80; - parse(dateString, token, match2) { - switch (token) { - case "B": - case "BB": - case "BBB": - return match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "BBBBB": - return match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - case "BBBB": - default: - return match2.dayPeriod(dateString, { - width: "wide", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "abbreviated", - context: "formatting" - }) || match2.dayPeriod(dateString, { - width: "narrow", - context: "formatting" - }); - } - } - set(date, _flags, value2) { - date.setHours(dayPeriodEnumToHours(value2), 0, 0, 0); - return date; - } - incompatibleTokens = ["a", "b", "t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js -var Hour1to12Parser; -var init_Hour1to12Parser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js"() { - init_constants2(); - init_Parser(); - init_utils(); - Hour1to12Parser = class extends Parser { - priority = 70; - parse(dateString, token, match2) { - switch (token) { - case "h": - return parseNumericPattern(numericPatterns.hour12h, dateString); - case "ho": - return match2.ordinalNumber(dateString, { unit: "hour" }); - default: - return parseNDigits(token.length, dateString); - } - } - validate(_date, value2) { - return value2 >= 1 && value2 <= 12; - } - set(date, _flags, value2) { - const isPM = date.getHours() >= 12; - if (isPM && value2 < 12) { - date.setHours(value2 + 12, 0, 0, 0); - } else if (!isPM && value2 === 12) { - date.setHours(0, 0, 0, 0); - } else { - date.setHours(value2, 0, 0, 0); - } - return date; - } - incompatibleTokens = ["H", "K", "k", "t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js -var Hour0to23Parser; -var init_Hour0to23Parser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js"() { - init_constants2(); - init_Parser(); - init_utils(); - Hour0to23Parser = class extends Parser { - priority = 70; - parse(dateString, token, match2) { - switch (token) { - case "H": - return parseNumericPattern(numericPatterns.hour23h, dateString); - case "Ho": - return match2.ordinalNumber(dateString, { unit: "hour" }); - default: - return parseNDigits(token.length, dateString); - } - } - validate(_date, value2) { - return value2 >= 0 && value2 <= 23; - } - set(date, _flags, value2) { - date.setHours(value2, 0, 0, 0); - return date; - } - incompatibleTokens = ["a", "b", "h", "K", "k", "t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js -var Hour0To11Parser; -var init_Hour0To11Parser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js"() { - init_constants2(); - init_Parser(); - init_utils(); - Hour0To11Parser = class extends Parser { - priority = 70; - parse(dateString, token, match2) { - switch (token) { - case "K": - return parseNumericPattern(numericPatterns.hour11h, dateString); - case "Ko": - return match2.ordinalNumber(dateString, { unit: "hour" }); - default: - return parseNDigits(token.length, dateString); - } - } - validate(_date, value2) { - return value2 >= 0 && value2 <= 11; - } - set(date, _flags, value2) { - const isPM = date.getHours() >= 12; - if (isPM && value2 < 12) { - date.setHours(value2 + 12, 0, 0, 0); - } else { - date.setHours(value2, 0, 0, 0); - } - return date; - } - incompatibleTokens = ["h", "H", "k", "t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js -var Hour1To24Parser; -var init_Hour1To24Parser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js"() { - init_constants2(); - init_Parser(); - init_utils(); - Hour1To24Parser = class extends Parser { - priority = 70; - parse(dateString, token, match2) { - switch (token) { - case "k": - return parseNumericPattern(numericPatterns.hour24h, dateString); - case "ko": - return match2.ordinalNumber(dateString, { unit: "hour" }); - default: - return parseNDigits(token.length, dateString); - } - } - validate(_date, value2) { - return value2 >= 1 && value2 <= 24; - } - set(date, _flags, value2) { - const hours = value2 <= 24 ? value2 % 24 : value2; - date.setHours(hours, 0, 0, 0); - return date; - } - incompatibleTokens = ["a", "b", "h", "H", "K", "t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js -var MinuteParser; -var init_MinuteParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js"() { - init_constants2(); - init_Parser(); - init_utils(); - MinuteParser = class extends Parser { - priority = 60; - parse(dateString, token, match2) { - switch (token) { - case "m": - return parseNumericPattern(numericPatterns.minute, dateString); - case "mo": - return match2.ordinalNumber(dateString, { unit: "minute" }); - default: - return parseNDigits(token.length, dateString); - } - } - validate(_date, value2) { - return value2 >= 0 && value2 <= 59; - } - set(date, _flags, value2) { - date.setMinutes(value2, 0, 0); - return date; - } - incompatibleTokens = ["t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js -var SecondParser; -var init_SecondParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js"() { - init_constants2(); - init_Parser(); - init_utils(); - SecondParser = class extends Parser { - priority = 50; - parse(dateString, token, match2) { - switch (token) { - case "s": - return parseNumericPattern(numericPatterns.second, dateString); - case "so": - return match2.ordinalNumber(dateString, { unit: "second" }); - default: - return parseNDigits(token.length, dateString); - } - } - validate(_date, value2) { - return value2 >= 0 && value2 <= 59; - } - set(date, _flags, value2) { - date.setSeconds(value2, 0); - return date; - } - incompatibleTokens = ["t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js -var FractionOfSecondParser; -var init_FractionOfSecondParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js"() { - init_Parser(); - init_utils(); - FractionOfSecondParser = class extends Parser { - priority = 30; - parse(dateString, token) { - const valueCallback = (value2) => Math.trunc(value2 * Math.pow(10, -token.length + 3)); - return mapValue(parseNDigits(token.length, dateString), valueCallback); - } - set(date, _flags, value2) { - date.setMilliseconds(value2); - return date; - } - incompatibleTokens = ["t", "T"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js -var ISOTimezoneWithZParser; -var init_ISOTimezoneWithZParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js"() { - init_constructFrom(); - init_getTimezoneOffsetInMilliseconds(); - init_constants2(); - init_Parser(); - init_utils(); - ISOTimezoneWithZParser = class extends Parser { - priority = 10; - parse(dateString, token) { - switch (token) { - case "X": - return parseTimezonePattern( - timezonePatterns.basicOptionalMinutes, - dateString - ); - case "XX": - return parseTimezonePattern(timezonePatterns.basic, dateString); - case "XXXX": - return parseTimezonePattern( - timezonePatterns.basicOptionalSeconds, - dateString - ); - case "XXXXX": - return parseTimezonePattern( - timezonePatterns.extendedOptionalSeconds, - dateString - ); - case "XXX": - default: - return parseTimezonePattern(timezonePatterns.extended, dateString); - } - } - set(date, flags, value2) { - if (flags.timestampIsSet) return date; - return constructFrom( - date, - date.getTime() - getTimezoneOffsetInMilliseconds(date) - value2 - ); - } - incompatibleTokens = ["t", "T", "x"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js -var ISOTimezoneParser; -var init_ISOTimezoneParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js"() { - init_constructFrom(); - init_getTimezoneOffsetInMilliseconds(); - init_constants2(); - init_Parser(); - init_utils(); - ISOTimezoneParser = class extends Parser { - priority = 10; - parse(dateString, token) { - switch (token) { - case "x": - return parseTimezonePattern( - timezonePatterns.basicOptionalMinutes, - dateString - ); - case "xx": - return parseTimezonePattern(timezonePatterns.basic, dateString); - case "xxxx": - return parseTimezonePattern( - timezonePatterns.basicOptionalSeconds, - dateString - ); - case "xxxxx": - return parseTimezonePattern( - timezonePatterns.extendedOptionalSeconds, - dateString - ); - case "xxx": - default: - return parseTimezonePattern(timezonePatterns.extended, dateString); - } - } - set(date, flags, value2) { - if (flags.timestampIsSet) return date; - return constructFrom( - date, - date.getTime() - getTimezoneOffsetInMilliseconds(date) - value2 - ); - } - incompatibleTokens = ["t", "T", "X"]; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js -var TimestampSecondsParser; -var init_TimestampSecondsParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js"() { - init_constructFrom(); - init_Parser(); - init_utils(); - TimestampSecondsParser = class extends Parser { - priority = 40; - parse(dateString) { - return parseAnyDigitsSigned(dateString); - } - set(date, _flags, value2) { - return [constructFrom(date, value2 * 1e3), { timestampIsSet: true }]; - } - incompatibleTokens = "*"; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js -var TimestampMillisecondsParser; -var init_TimestampMillisecondsParser = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js"() { - init_constructFrom(); - init_Parser(); - init_utils(); - TimestampMillisecondsParser = class extends Parser { - priority = 20; - parse(dateString) { - return parseAnyDigitsSigned(dateString); - } - set(date, _flags, value2) { - return [constructFrom(date, value2), { timestampIsSet: true }]; - } - incompatibleTokens = "*"; - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers.js -var parsers; -var init_parsers = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers.js"() { - init_EraParser(); - init_YearParser(); - init_LocalWeekYearParser(); - init_ISOWeekYearParser(); - init_ExtendedYearParser(); - init_QuarterParser(); - init_StandAloneQuarterParser(); - init_MonthParser(); - init_StandAloneMonthParser(); - init_LocalWeekParser(); - init_ISOWeekParser(); - init_DateParser(); - init_DayOfYearParser(); - init_DayParser(); - init_LocalDayParser(); - init_StandAloneLocalDayParser(); - init_ISODayParser(); - init_AMPMParser(); - init_AMPMMidnightParser(); - init_DayPeriodParser(); - init_Hour1to12Parser(); - init_Hour0to23Parser(); - init_Hour0To11Parser(); - init_Hour1To24Parser(); - init_MinuteParser(); - init_SecondParser(); - init_FractionOfSecondParser(); - init_ISOTimezoneWithZParser(); - init_ISOTimezoneParser(); - init_TimestampSecondsParser(); - init_TimestampMillisecondsParser(); - parsers = { - G: new EraParser(), - y: new YearParser(), - Y: new LocalWeekYearParser(), - R: new ISOWeekYearParser(), - u: new ExtendedYearParser(), - Q: new QuarterParser(), - q: new StandAloneQuarterParser(), - M: new MonthParser(), - L: new StandAloneMonthParser(), - w: new LocalWeekParser(), - I: new ISOWeekParser(), - d: new DateParser(), - D: new DayOfYearParser(), - E: new DayParser(), - e: new LocalDayParser(), - c: new StandAloneLocalDayParser(), - i: new ISODayParser(), - a: new AMPMParser(), - b: new AMPMMidnightParser(), - B: new DayPeriodParser(), - h: new Hour1to12Parser(), - H: new Hour0to23Parser(), - K: new Hour0To11Parser(), - k: new Hour1To24Parser(), - m: new MinuteParser(), - s: new SecondParser(), - S: new FractionOfSecondParser(), - X: new ISOTimezoneWithZParser(), - x: new ISOTimezoneParser(), - t: new TimestampSecondsParser(), - T: new TimestampMillisecondsParser() - }; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse.js -function parse(dateStr, formatStr, referenceDate, options2) { - const invalidDate = () => constructFrom(options2?.in || referenceDate, NaN); - const defaultOptions2 = getDefaultOptions2(); - const locale = options2?.locale ?? defaultOptions2.locale ?? enUS; - const firstWeekContainsDate = options2?.firstWeekContainsDate ?? options2?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1; - const weekStartsOn = options2?.weekStartsOn ?? options2?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0; - if (!formatStr) - return dateStr ? invalidDate() : toDate(referenceDate, options2?.in); - const subFnOptions = { - firstWeekContainsDate, - weekStartsOn, - locale - }; - const setters = [new DateTimezoneSetter(options2?.in, referenceDate)]; - const tokens = formatStr.match(longFormattingTokensRegExp2).map((substring) => { - const firstCharacter = substring[0]; - if (firstCharacter in longFormatters) { - const longFormatter = longFormatters[firstCharacter]; - return longFormatter(substring, locale.formatLong); - } - return substring; - }).join("").match(formattingTokensRegExp2); - const usedTokens = []; - for (let token of tokens) { - if (!options2?.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token)) { - warnOrThrowProtectedError(token, formatStr, dateStr); - } - if (!options2?.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) { - warnOrThrowProtectedError(token, formatStr, dateStr); - } - const firstCharacter = token[0]; - const parser = parsers[firstCharacter]; - if (parser) { - const { incompatibleTokens } = parser; - if (Array.isArray(incompatibleTokens)) { - const incompatibleToken = usedTokens.find( - (usedToken) => incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter - ); - if (incompatibleToken) { - throw new RangeError( - `The format string mustn't contain \`${incompatibleToken.fullToken}\` and \`${token}\` at the same time` - ); - } - } else if (parser.incompatibleTokens === "*" && usedTokens.length > 0) { - throw new RangeError( - `The format string mustn't contain \`${token}\` and any other token at the same time` - ); - } - usedTokens.push({ token: firstCharacter, fullToken: token }); - const parseResult = parser.run( - dateStr, - token, - locale.match, - subFnOptions - ); - if (!parseResult) { - return invalidDate(); - } - setters.push(parseResult.setter); - dateStr = parseResult.rest; - } else { - if (firstCharacter.match(unescapedLatinCharacterRegExp2)) { - throw new RangeError( - "Format string contains an unescaped latin alphabet character `" + firstCharacter + "`" - ); - } - if (token === "''") { - token = "'"; - } else if (firstCharacter === "'") { - token = cleanEscapedString2(token); - } - if (dateStr.indexOf(token) === 0) { - dateStr = dateStr.slice(token.length); - } else { - return invalidDate(); - } - } - } - if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) { - return invalidDate(); - } - const uniquePrioritySetters = setters.map((setter) => setter.priority).sort((a6, b6) => b6 - a6).filter((priority, index3, array) => array.indexOf(priority) === index3).map( - (priority) => setters.filter((setter) => setter.priority === priority).sort((a6, b6) => b6.subPriority - a6.subPriority) - ).map((setterArray) => setterArray[0]); - let date = toDate(referenceDate, options2?.in); - if (isNaN(+date)) return invalidDate(); - const flags = {}; - for (const setter of uniquePrioritySetters) { - if (!setter.validate(date, subFnOptions)) { - return invalidDate(); - } - const result = setter.set(date, flags, subFnOptions); - if (Array.isArray(result)) { - date = result[0]; - Object.assign(flags, result[1]); - } else { - date = result; - } - } - return date; -} -function cleanEscapedString2(input) { - return input.match(escapedStringRegExp2)[1].replace(doubleQuoteRegExp2, "'"); -} -var formattingTokensRegExp2, longFormattingTokensRegExp2, escapedStringRegExp2, doubleQuoteRegExp2, notWhitespaceRegExp, unescapedLatinCharacterRegExp2, parse_default; -var init_parse = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse.js"() { - init_defaultLocale(); - init_longFormatters(); - init_protectedTokens(); - init_constructFrom(); - init_getDefaultOptions(); - init_toDate(); - init_Setter(); - init_parsers(); - formattingTokensRegExp2 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; - longFormattingTokensRegExp2 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; - escapedStringRegExp2 = /^'([^]*?)'?$/; - doubleQuoteRegExp2 = /''/g; - notWhitespaceRegExp = /\S/; - unescapedLatinCharacterRegExp2 = /[a-zA-Z]/; - parse_default = parse; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isMatch.js -function isMatch2(dateStr, formatStr, options2) { - return isValid(parse(dateStr, formatStr, /* @__PURE__ */ new Date(), options2)); -} -var isMatch_default; -var init_isMatch = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isMatch.js"() { - init_isValid(); - init_parse(); - isMatch_default = isMatch2; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isMonday.js -function isMonday(date, options2) { - return toDate(date, options2?.in).getDay() === 1; -} -var isMonday_default; -var init_isMonday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isMonday.js"() { - init_toDate(); - isMonday_default = isMonday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isPast.js -function isPast(date) { - return +toDate(date) < Date.now(); -} -var isPast_default; -var init_isPast = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isPast.js"() { - init_toDate(); - isPast_default = isPast; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfHour.js -function startOfHour(date, options2) { - const _date = toDate(date, options2?.in); - _date.setMinutes(0, 0, 0); - return _date; -} -var startOfHour_default; -var init_startOfHour = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfHour.js"() { - init_toDate(); - startOfHour_default = startOfHour; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameHour.js -function isSameHour(dateLeft, dateRight, options2) { - const [dateLeft_, dateRight_] = normalizeDates( - options2?.in, - dateLeft, - dateRight - ); - return +startOfHour(dateLeft_) === +startOfHour(dateRight_); -} -var isSameHour_default; -var init_isSameHour = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameHour.js"() { - init_normalizeDates(); - init_startOfHour(); - isSameHour_default = isSameHour; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.js -function isSameWeek(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - return +startOfWeek(laterDate_, options2) === +startOfWeek(earlierDate_, options2); -} -var isSameWeek_default; -var init_isSameWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.js"() { - init_normalizeDates(); - init_startOfWeek(); - isSameWeek_default = isSameWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameISOWeek.js -function isSameISOWeek(laterDate, earlierDate, options2) { - return isSameWeek(laterDate, earlierDate, { ...options2, weekStartsOn: 1 }); -} -var isSameISOWeek_default; -var init_isSameISOWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameISOWeek.js"() { - init_isSameWeek(); - isSameISOWeek_default = isSameISOWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameISOWeekYear.js -function isSameISOWeekYear(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - return +startOfISOWeekYear(laterDate_) === +startOfISOWeekYear(earlierDate_); -} -var isSameISOWeekYear_default; -var init_isSameISOWeekYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameISOWeekYear.js"() { - init_startOfISOWeekYear(); - init_normalizeDates(); - isSameISOWeekYear_default = isSameISOWeekYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMinute.js -function startOfMinute(date, options2) { - const date_ = toDate(date, options2?.in); - date_.setSeconds(0, 0); - return date_; -} -var startOfMinute_default; -var init_startOfMinute = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMinute.js"() { - init_toDate(); - startOfMinute_default = startOfMinute; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameMinute.js -function isSameMinute(laterDate, earlierDate) { - return +startOfMinute(laterDate) === +startOfMinute(earlierDate); -} -var isSameMinute_default; -var init_isSameMinute = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameMinute.js"() { - init_startOfMinute(); - isSameMinute_default = isSameMinute; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameMonth.js -function isSameMonth(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - return laterDate_.getFullYear() === earlierDate_.getFullYear() && laterDate_.getMonth() === earlierDate_.getMonth(); -} -var isSameMonth_default; -var init_isSameMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameMonth.js"() { - init_normalizeDates(); - isSameMonth_default = isSameMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameQuarter.js -function isSameQuarter(laterDate, earlierDate, options2) { - const [dateLeft_, dateRight_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - return +startOfQuarter(dateLeft_) === +startOfQuarter(dateRight_); -} -var isSameQuarter_default; -var init_isSameQuarter = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameQuarter.js"() { - init_normalizeDates(); - init_startOfQuarter(); - isSameQuarter_default = isSameQuarter; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfSecond.js -function startOfSecond(date, options2) { - const date_ = toDate(date, options2?.in); - date_.setMilliseconds(0); - return date_; -} -var startOfSecond_default; -var init_startOfSecond = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfSecond.js"() { - init_toDate(); - startOfSecond_default = startOfSecond; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameSecond.js -function isSameSecond(laterDate, earlierDate) { - return +startOfSecond(laterDate) === +startOfSecond(earlierDate); -} -var isSameSecond_default; -var init_isSameSecond = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameSecond.js"() { - init_startOfSecond(); - isSameSecond_default = isSameSecond; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameYear.js -function isSameYear(laterDate, earlierDate, options2) { - const [laterDate_, earlierDate_] = normalizeDates( - options2?.in, - laterDate, - earlierDate - ); - return laterDate_.getFullYear() === earlierDate_.getFullYear(); -} -var isSameYear_default; -var init_isSameYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameYear.js"() { - init_normalizeDates(); - isSameYear_default = isSameYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisHour.js -function isThisHour(date, options2) { - return isSameHour( - toDate(date, options2?.in), - constructNow(options2?.in || date) - ); -} -var isThisHour_default; -var init_isThisHour = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisHour.js"() { - init_constructNow(); - init_isSameHour(); - init_toDate(); - isThisHour_default = isThisHour; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisISOWeek.js -function isThisISOWeek(date, options2) { - return isSameISOWeek( - constructFrom(options2?.in || date, date), - constructNow(options2?.in || date) - ); -} -var isThisISOWeek_default; -var init_isThisISOWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisISOWeek.js"() { - init_constructFrom(); - init_constructNow(); - init_isSameISOWeek(); - isThisISOWeek_default = isThisISOWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisMinute.js -function isThisMinute(date) { - return isSameMinute(date, constructNow(date)); -} -var isThisMinute_default; -var init_isThisMinute = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisMinute.js"() { - init_constructNow(); - init_isSameMinute(); - isThisMinute_default = isThisMinute; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisMonth.js -function isThisMonth(date, options2) { - return isSameMonth( - constructFrom(options2?.in || date, date), - constructNow(options2?.in || date) - ); -} -var isThisMonth_default; -var init_isThisMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisMonth.js"() { - init_constructFrom(); - init_constructNow(); - init_isSameMonth(); - isThisMonth_default = isThisMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisQuarter.js -function isThisQuarter(date, options2) { - return isSameQuarter( - constructFrom(options2?.in || date, date), - constructNow(options2?.in || date) - ); -} -var isThisQuarter_default; -var init_isThisQuarter = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisQuarter.js"() { - init_constructFrom(); - init_constructNow(); - init_isSameQuarter(); - isThisQuarter_default = isThisQuarter; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisSecond.js -function isThisSecond(date) { - return isSameSecond(date, constructNow(date)); -} -var isThisSecond_default; -var init_isThisSecond = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisSecond.js"() { - init_constructNow(); - init_isSameSecond(); - isThisSecond_default = isThisSecond; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisWeek.js -function isThisWeek(date, options2) { - return isSameWeek( - constructFrom(options2?.in || date, date), - constructNow(options2?.in || date), - options2 - ); -} -var isThisWeek_default; -var init_isThisWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisWeek.js"() { - init_constructFrom(); - init_constructNow(); - init_isSameWeek(); - isThisWeek_default = isThisWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisYear.js -function isThisYear(date, options2) { - return isSameYear( - constructFrom(options2?.in || date, date), - constructNow(options2?.in || date) - ); -} -var isThisYear_default; -var init_isThisYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThisYear.js"() { - init_constructFrom(); - init_constructNow(); - init_isSameYear(); - isThisYear_default = isThisYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThursday.js -function isThursday(date, options2) { - return toDate(date, options2?.in).getDay() === 4; -} -var isThursday_default; -var init_isThursday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isThursday.js"() { - init_toDate(); - isThursday_default = isThursday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isToday.js -function isToday(date, options2) { - return isSameDay( - constructFrom(options2?.in || date, date), - constructNow(options2?.in || date) - ); -} -var isToday_default; -var init_isToday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isToday.js"() { - init_constructFrom(); - init_constructNow(); - init_isSameDay(); - isToday_default = isToday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isTomorrow.js -function isTomorrow(date, options2) { - return isSameDay( - date, - addDays(constructNow(options2?.in || date), 1), - options2 - ); -} -var isTomorrow_default; -var init_isTomorrow = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isTomorrow.js"() { - init_addDays(); - init_constructNow(); - init_isSameDay(); - isTomorrow_default = isTomorrow; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isTuesday.js -function isTuesday(date, options2) { - return toDate(date, options2?.in).getDay() === 2; -} -var isTuesday_default; -var init_isTuesday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isTuesday.js"() { - init_toDate(); - isTuesday_default = isTuesday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isWednesday.js -function isWednesday(date, options2) { - return toDate(date, options2?.in).getDay() === 3; -} -var isWednesday_default; -var init_isWednesday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isWednesday.js"() { - init_toDate(); - isWednesday_default = isWednesday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isWithinInterval.js -function isWithinInterval(date, interval3, options2) { - const time = +toDate(date, options2?.in); - const [startTime, endTime] = [ - +toDate(interval3.start, options2?.in), - +toDate(interval3.end, options2?.in) - ].sort((a6, b6) => a6 - b6); - return time >= startTime && time <= endTime; -} -var isWithinInterval_default; -var init_isWithinInterval = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isWithinInterval.js"() { - init_toDate(); - isWithinInterval_default = isWithinInterval; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subDays.js -function subDays(date, amount, options2) { - return addDays(date, -amount, options2); -} -var subDays_default; -var init_subDays = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subDays.js"() { - init_addDays(); - subDays_default = subDays; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isYesterday.js -function isYesterday(date, options2) { - return isSameDay( - constructFrom(options2?.in || date, date), - subDays(constructNow(options2?.in || date), 1) - ); -} -var isYesterday_default; -var init_isYesterday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isYesterday.js"() { - init_constructFrom(); - init_constructNow(); - init_isSameDay(); - init_subDays(); - isYesterday_default = isYesterday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfDecade.js -function lastDayOfDecade(date, options2) { - const _date = toDate(date, options2?.in); - const year = _date.getFullYear(); - const decade = 9 + Math.floor(year / 10) * 10; - _date.setFullYear(decade + 1, 0, 0); - _date.setHours(0, 0, 0, 0); - return toDate(_date, options2?.in); -} -var lastDayOfDecade_default; -var init_lastDayOfDecade = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfDecade.js"() { - init_toDate(); - lastDayOfDecade_default = lastDayOfDecade; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfWeek.js -function lastDayOfWeek(date, options2) { - const defaultOptions2 = getDefaultOptions(); - const weekStartsOn = options2?.weekStartsOn ?? options2?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0; - const _date = toDate(date, options2?.in); - const day = _date.getDay(); - const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); - _date.setHours(0, 0, 0, 0); - _date.setDate(_date.getDate() + diff); - return _date; -} -var lastDayOfWeek_default; -var init_lastDayOfWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfWeek.js"() { - init_defaultOptions(); - init_toDate(); - lastDayOfWeek_default = lastDayOfWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfISOWeek.js -function lastDayOfISOWeek(date, options2) { - return lastDayOfWeek(date, { ...options2, weekStartsOn: 1 }); -} -var lastDayOfISOWeek_default; -var init_lastDayOfISOWeek = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfISOWeek.js"() { - init_lastDayOfWeek(); - lastDayOfISOWeek_default = lastDayOfISOWeek; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfISOWeekYear.js -function lastDayOfISOWeekYear(date, options2) { - const year = getISOWeekYear(date, options2); - const fourthOfJanuary = constructFrom(options2?.in || date, 0); - fourthOfJanuary.setFullYear(year + 1, 0, 4); - fourthOfJanuary.setHours(0, 0, 0, 0); - const date_ = startOfISOWeek(fourthOfJanuary, options2); - date_.setDate(date_.getDate() - 1); - return date_; -} -var lastDayOfISOWeekYear_default; -var init_lastDayOfISOWeekYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfISOWeekYear.js"() { - init_constructFrom(); - init_getISOWeekYear(); - init_startOfISOWeek(); - lastDayOfISOWeekYear_default = lastDayOfISOWeekYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfQuarter.js -function lastDayOfQuarter(date, options2) { - const date_ = toDate(date, options2?.in); - const currentMonth = date_.getMonth(); - const month = currentMonth - currentMonth % 3 + 3; - date_.setMonth(month, 0); - date_.setHours(0, 0, 0, 0); - return date_; -} -var lastDayOfQuarter_default; -var init_lastDayOfQuarter = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfQuarter.js"() { - init_toDate(); - lastDayOfQuarter_default = lastDayOfQuarter; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfYear.js -function lastDayOfYear(date, options2) { - const date_ = toDate(date, options2?.in); - const year = date_.getFullYear(); - date_.setFullYear(year + 1, 0, 0); - date_.setHours(0, 0, 0, 0); - return date_; -} -var lastDayOfYear_default; -var init_lastDayOfYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lastDayOfYear.js"() { - init_toDate(); - lastDayOfYear_default = lastDayOfYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lightFormat.js -function lightFormat(date, formatStr) { - const date_ = toDate(date); - if (!isValid(date_)) { - throw new RangeError("Invalid time value"); - } - const tokens = formatStr.match(formattingTokensRegExp3); - if (!tokens) return ""; - const result = tokens.map((substring) => { - if (substring === "''") { - return "'"; - } - const firstCharacter = substring[0]; - if (firstCharacter === "'") { - return cleanEscapedString3(substring); - } - const formatter2 = lightFormatters[firstCharacter]; - if (formatter2) { - return formatter2(date_, substring); - } - if (firstCharacter.match(unescapedLatinCharacterRegExp3)) { - throw new RangeError( - "Format string contains an unescaped latin alphabet character `" + firstCharacter + "`" - ); - } - return substring; - }).join(""); - return result; -} -function cleanEscapedString3(input) { - const matches2 = input.match(escapedStringRegExp3); - if (!matches2) return input; - return matches2[1].replace(doubleQuoteRegExp3, "'"); -} -var formattingTokensRegExp3, escapedStringRegExp3, doubleQuoteRegExp3, unescapedLatinCharacterRegExp3, lightFormat_default; -var init_lightFormat = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/lightFormat.js"() { - init_lightFormatters(); - init_isValid(); - init_toDate(); - formattingTokensRegExp3 = /(\w)\1*|''|'(''|[^'])+('|$)|./g; - escapedStringRegExp3 = /^'([^]*?)'?$/; - doubleQuoteRegExp3 = /''/g; - unescapedLatinCharacterRegExp3 = /[a-zA-Z]/; - lightFormat_default = lightFormat; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/milliseconds.js -function milliseconds({ - years, - months: months2, - weeks, - days: days2, - hours, - minutes, - seconds -}) { - let totalDays = 0; - if (years) totalDays += years * daysInYear; - if (months2) totalDays += months2 * (daysInYear / 12); - if (weeks) totalDays += weeks * 7; - if (days2) totalDays += days2; - let totalSeconds = totalDays * 24 * 60 * 60; - if (hours) totalSeconds += hours * 60 * 60; - if (minutes) totalSeconds += minutes * 60; - if (seconds) totalSeconds += seconds; - return Math.trunc(totalSeconds * 1e3); -} -var milliseconds_default; -var init_milliseconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/milliseconds.js"() { - init_constants(); - milliseconds_default = milliseconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/millisecondsToHours.js -function millisecondsToHours(milliseconds2) { - const hours = milliseconds2 / millisecondsInHour; - return Math.trunc(hours); -} -var millisecondsToHours_default; -var init_millisecondsToHours = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/millisecondsToHours.js"() { - init_constants(); - millisecondsToHours_default = millisecondsToHours; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/millisecondsToMinutes.js -function millisecondsToMinutes(milliseconds2) { - const minutes = milliseconds2 / millisecondsInMinute; - return Math.trunc(minutes); -} -var millisecondsToMinutes_default; -var init_millisecondsToMinutes = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/millisecondsToMinutes.js"() { - init_constants(); - millisecondsToMinutes_default = millisecondsToMinutes; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/millisecondsToSeconds.js -function millisecondsToSeconds(milliseconds2) { - const seconds = milliseconds2 / millisecondsInSecond; - return Math.trunc(seconds); -} -var millisecondsToSeconds_default; -var init_millisecondsToSeconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/millisecondsToSeconds.js"() { - init_constants(); - millisecondsToSeconds_default = millisecondsToSeconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/minutesToHours.js -function minutesToHours(minutes) { - const hours = minutes / minutesInHour; - return Math.trunc(hours); -} -var minutesToHours_default; -var init_minutesToHours = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/minutesToHours.js"() { - init_constants(); - minutesToHours_default = minutesToHours; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/minutesToMilliseconds.js -function minutesToMilliseconds(minutes) { - return Math.trunc(minutes * millisecondsInMinute); -} -var minutesToMilliseconds_default; -var init_minutesToMilliseconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/minutesToMilliseconds.js"() { - init_constants(); - minutesToMilliseconds_default = minutesToMilliseconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/minutesToSeconds.js -function minutesToSeconds(minutes) { - return Math.trunc(minutes * secondsInMinute); -} -var minutesToSeconds_default; -var init_minutesToSeconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/minutesToSeconds.js"() { - init_constants(); - minutesToSeconds_default = minutesToSeconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/monthsToQuarters.js -function monthsToQuarters(months2) { - const quarters = months2 / monthsInQuarter; - return Math.trunc(quarters); -} -var monthsToQuarters_default; -var init_monthsToQuarters = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/monthsToQuarters.js"() { - init_constants(); - monthsToQuarters_default = monthsToQuarters; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/monthsToYears.js -function monthsToYears(months2) { - const years = months2 / monthsInYear; - return Math.trunc(years); -} -var monthsToYears_default; -var init_monthsToYears = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/monthsToYears.js"() { - init_constants(); - monthsToYears_default = monthsToYears; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextDay.js -function nextDay(date, day, options2) { - let delta = day - getDay(date, options2); - if (delta <= 0) delta += 7; - return addDays(date, delta, options2); -} -var nextDay_default; -var init_nextDay = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextDay.js"() { - init_addDays(); - init_getDay(); - nextDay_default = nextDay; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextFriday.js -function nextFriday(date, options2) { - return nextDay(date, 5, options2); -} -var nextFriday_default; -var init_nextFriday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextFriday.js"() { - init_nextDay(); - nextFriday_default = nextFriday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextMonday.js -function nextMonday(date, options2) { - return nextDay(date, 1, options2); -} -var nextMonday_default; -var init_nextMonday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextMonday.js"() { - init_nextDay(); - nextMonday_default = nextMonday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextSaturday.js -function nextSaturday(date, options2) { - return nextDay(date, 6, options2); -} -var nextSaturday_default; -var init_nextSaturday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextSaturday.js"() { - init_nextDay(); - nextSaturday_default = nextSaturday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextSunday.js -function nextSunday(date, options2) { - return nextDay(date, 0, options2); -} -var nextSunday_default; -var init_nextSunday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextSunday.js"() { - init_nextDay(); - nextSunday_default = nextSunday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextThursday.js -function nextThursday(date, options2) { - return nextDay(date, 4, options2); -} -var nextThursday_default; -var init_nextThursday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextThursday.js"() { - init_nextDay(); - nextThursday_default = nextThursday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextTuesday.js -function nextTuesday(date, options2) { - return nextDay(date, 2, options2); -} -var nextTuesday_default; -var init_nextTuesday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextTuesday.js"() { - init_nextDay(); - nextTuesday_default = nextTuesday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextWednesday.js -function nextWednesday(date, options2) { - return nextDay(date, 3, options2); -} -var nextWednesday_default; -var init_nextWednesday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/nextWednesday.js"() { - init_nextDay(); - nextWednesday_default = nextWednesday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parseISO.js -function parseISO(argument, options2) { - const invalidDate = () => constructFrom(options2?.in, NaN); - const additionalDigits = options2?.additionalDigits ?? 2; - const dateStrings = splitDateString(argument); - let date; - if (dateStrings.date) { - const parseYearResult = parseYear(dateStrings.date, additionalDigits); - date = parseDate(parseYearResult.restDateString, parseYearResult.year); - } - if (!date || isNaN(+date)) return invalidDate(); - const timestamp2 = +date; - let time = 0; - let offset; - if (dateStrings.time) { - time = parseTime(dateStrings.time); - if (isNaN(time)) return invalidDate(); - } - if (dateStrings.timezone) { - offset = parseTimezone(dateStrings.timezone); - if (isNaN(offset)) return invalidDate(); - } else { - const tmpDate = new Date(timestamp2 + time); - const result = toDate(0, options2?.in); - result.setFullYear( - tmpDate.getUTCFullYear(), - tmpDate.getUTCMonth(), - tmpDate.getUTCDate() - ); - result.setHours( - tmpDate.getUTCHours(), - tmpDate.getUTCMinutes(), - tmpDate.getUTCSeconds(), - tmpDate.getUTCMilliseconds() - ); - return result; - } - return toDate(timestamp2 + time + offset, options2?.in); -} -function splitDateString(dateString) { - const dateStrings = {}; - const array = dateString.split(patterns.dateTimeDelimiter); - let timeString; - if (array.length > 2) { - return dateStrings; - } - if (/:/.test(array[0])) { - timeString = array[0]; - } else { - dateStrings.date = array[0]; - timeString = array[1]; - if (patterns.timeZoneDelimiter.test(dateStrings.date)) { - dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0]; - timeString = dateString.substr( - dateStrings.date.length, - dateString.length - ); - } - } - if (timeString) { - const token = patterns.timezone.exec(timeString); - if (token) { - dateStrings.time = timeString.replace(token[1], ""); - dateStrings.timezone = token[1]; - } else { - dateStrings.time = timeString; - } - } - return dateStrings; -} -function parseYear(dateString, additionalDigits) { - const regex = new RegExp( - "^(?:(\\d{4}|[+-]\\d{" + (4 + additionalDigits) + "})|(\\d{2}|[+-]\\d{" + (2 + additionalDigits) + "})$)" - ); - const captures = dateString.match(regex); - if (!captures) return { year: NaN, restDateString: "" }; - const year = captures[1] ? parseInt(captures[1]) : null; - const century = captures[2] ? parseInt(captures[2]) : null; - return { - year: century === null ? year : century * 100, - restDateString: dateString.slice((captures[1] || captures[2]).length) - }; -} -function parseDate(dateString, year) { - if (year === null) return /* @__PURE__ */ new Date(NaN); - const captures = dateString.match(dateRegex); - if (!captures) return /* @__PURE__ */ new Date(NaN); - const isWeekDate = !!captures[4]; - const dayOfYear = parseDateUnit(captures[1]); - const month = parseDateUnit(captures[2]) - 1; - const day = parseDateUnit(captures[3]); - const week = parseDateUnit(captures[4]); - const dayOfWeek = parseDateUnit(captures[5]) - 1; - if (isWeekDate) { - if (!validateWeekDate(year, week, dayOfWeek)) { - return /* @__PURE__ */ new Date(NaN); - } - return dayOfISOWeekYear(year, week, dayOfWeek); - } else { - const date = /* @__PURE__ */ new Date(0); - if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) { - return /* @__PURE__ */ new Date(NaN); - } - date.setUTCFullYear(year, month, Math.max(dayOfYear, day)); - return date; - } -} -function parseDateUnit(value2) { - return value2 ? parseInt(value2) : 1; -} -function parseTime(timeString) { - const captures = timeString.match(timeRegex); - if (!captures) return NaN; - const hours = parseTimeUnit(captures[1]); - const minutes = parseTimeUnit(captures[2]); - const seconds = parseTimeUnit(captures[3]); - if (!validateTime(hours, minutes, seconds)) { - return NaN; - } - return hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1e3; -} -function parseTimeUnit(value2) { - return value2 && parseFloat(value2.replace(",", ".")) || 0; -} -function parseTimezone(timezoneString) { - if (timezoneString === "Z") return 0; - const captures = timezoneString.match(timezoneRegex); - if (!captures) return 0; - const sign = captures[1] === "+" ? -1 : 1; - const hours = parseInt(captures[2]); - const minutes = captures[3] && parseInt(captures[3]) || 0; - if (!validateTimezone(hours, minutes)) { - return NaN; - } - return sign * (hours * millisecondsInHour + minutes * millisecondsInMinute); -} -function dayOfISOWeekYear(isoWeekYear, week, day) { - const date = /* @__PURE__ */ new Date(0); - date.setUTCFullYear(isoWeekYear, 0, 4); - const fourthOfJanuaryDay = date.getUTCDay() || 7; - const diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay; - date.setUTCDate(date.getUTCDate() + diff); - return date; -} -function isLeapYearIndex2(year) { - return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; -} -function validateDate(year, month, date) { - return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex2(year) ? 29 : 28)); -} -function validateDayOfYearDate(year, dayOfYear) { - return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex2(year) ? 366 : 365); -} -function validateWeekDate(_year, week, day) { - return week >= 1 && week <= 53 && day >= 0 && day <= 6; -} -function validateTime(hours, minutes, seconds) { - if (hours === 24) { - return minutes === 0 && seconds === 0; - } - return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25; -} -function validateTimezone(_hours, minutes) { - return minutes >= 0 && minutes <= 59; -} -var patterns, dateRegex, timeRegex, timezoneRegex, daysInMonths, parseISO_default; -var init_parseISO = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parseISO.js"() { - init_constants(); - init_constructFrom(); - init_toDate(); - patterns = { - dateTimeDelimiter: /[T ]/, - timeZoneDelimiter: /[Z ]/i, - timezone: /([Z+-].*)$/ - }; - dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/; - timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/; - timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/; - daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - parseISO_default = parseISO; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parseJSON.js -function parseJSON(dateStr, options2) { - const parts = dateStr.match( - /(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/ - ); - if (!parts) return toDate(NaN, options2?.in); - return toDate( - Date.UTC( - +parts[1], - +parts[2] - 1, - +parts[3], - +parts[4] - (+parts[9] || 0) * (parts[8] == "-" ? -1 : 1), - +parts[5] - (+parts[10] || 0) * (parts[8] == "-" ? -1 : 1), - +parts[6], - +((parts[7] || "0") + "00").substring(0, 3) - ), - options2?.in - ); -} -var parseJSON_default; -var init_parseJSON = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parseJSON.js"() { - init_toDate(); - parseJSON_default = parseJSON; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousDay.js -function previousDay(date, day, options2) { - let delta = getDay(date, options2) - day; - if (delta <= 0) delta += 7; - return subDays(date, delta, options2); -} -var previousDay_default; -var init_previousDay = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousDay.js"() { - init_getDay(); - init_subDays(); - previousDay_default = previousDay; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousFriday.js -function previousFriday(date, options2) { - return previousDay(date, 5, options2); -} -var previousFriday_default; -var init_previousFriday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousFriday.js"() { - init_previousDay(); - previousFriday_default = previousFriday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousMonday.js -function previousMonday(date, options2) { - return previousDay(date, 1, options2); -} -var previousMonday_default; -var init_previousMonday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousMonday.js"() { - init_previousDay(); - previousMonday_default = previousMonday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousSaturday.js -function previousSaturday(date, options2) { - return previousDay(date, 6, options2); -} -var previousSaturday_default; -var init_previousSaturday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousSaturday.js"() { - init_previousDay(); - previousSaturday_default = previousSaturday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousSunday.js -function previousSunday(date, options2) { - return previousDay(date, 0, options2); -} -var previousSunday_default; -var init_previousSunday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousSunday.js"() { - init_previousDay(); - previousSunday_default = previousSunday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousThursday.js -function previousThursday(date, options2) { - return previousDay(date, 4, options2); -} -var previousThursday_default; -var init_previousThursday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousThursday.js"() { - init_previousDay(); - previousThursday_default = previousThursday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousTuesday.js -function previousTuesday(date, options2) { - return previousDay(date, 2, options2); -} -var previousTuesday_default; -var init_previousTuesday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousTuesday.js"() { - init_previousDay(); - previousTuesday_default = previousTuesday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousWednesday.js -function previousWednesday(date, options2) { - return previousDay(date, 3, options2); -} -var previousWednesday_default; -var init_previousWednesday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/previousWednesday.js"() { - init_previousDay(); - previousWednesday_default = previousWednesday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/quartersToMonths.js -function quartersToMonths(quarters) { - return Math.trunc(quarters * monthsInQuarter); -} -var quartersToMonths_default; -var init_quartersToMonths = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/quartersToMonths.js"() { - init_constants(); - quartersToMonths_default = quartersToMonths; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/quartersToYears.js -function quartersToYears(quarters) { - const years = quarters / quartersInYear; - return Math.trunc(years); -} -var quartersToYears_default; -var init_quartersToYears = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/quartersToYears.js"() { - init_constants(); - quartersToYears_default = quartersToYears; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/roundToNearestHours.js -function roundToNearestHours(date, options2) { - const nearestTo = options2?.nearestTo ?? 1; - if (nearestTo < 1 || nearestTo > 12) - return constructFrom(options2?.in || date, NaN); - const date_ = toDate(date, options2?.in); - const fractionalMinutes = date_.getMinutes() / 60; - const fractionalSeconds = date_.getSeconds() / 60 / 60; - const fractionalMilliseconds = date_.getMilliseconds() / 1e3 / 60 / 60; - const hours = date_.getHours() + fractionalMinutes + fractionalSeconds + fractionalMilliseconds; - const method = options2?.roundingMethod ?? "round"; - const roundingMethod = getRoundingMethod(method); - const roundedHours = roundingMethod(hours / nearestTo) * nearestTo; - date_.setHours(roundedHours, 0, 0, 0); - return date_; -} -var roundToNearestHours_default; -var init_roundToNearestHours = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/roundToNearestHours.js"() { - init_getRoundingMethod(); - init_constructFrom(); - init_toDate(); - roundToNearestHours_default = roundToNearestHours; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/roundToNearestMinutes.js -function roundToNearestMinutes(date, options2) { - const nearestTo = options2?.nearestTo ?? 1; - if (nearestTo < 1 || nearestTo > 30) return constructFrom(date, NaN); - const date_ = toDate(date, options2?.in); - const fractionalSeconds = date_.getSeconds() / 60; - const fractionalMilliseconds = date_.getMilliseconds() / 1e3 / 60; - const minutes = date_.getMinutes() + fractionalSeconds + fractionalMilliseconds; - const method = options2?.roundingMethod ?? "round"; - const roundingMethod = getRoundingMethod(method); - const roundedMinutes = roundingMethod(minutes / nearestTo) * nearestTo; - date_.setMinutes(roundedMinutes, 0, 0); - return date_; -} -var roundToNearestMinutes_default; -var init_roundToNearestMinutes = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/roundToNearestMinutes.js"() { - init_getRoundingMethod(); - init_constructFrom(); - init_toDate(); - roundToNearestMinutes_default = roundToNearestMinutes; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/secondsToHours.js -function secondsToHours(seconds) { - const hours = seconds / secondsInHour; - return Math.trunc(hours); -} -var secondsToHours_default; -var init_secondsToHours = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/secondsToHours.js"() { - init_constants(); - secondsToHours_default = secondsToHours; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/secondsToMilliseconds.js -function secondsToMilliseconds(seconds) { - return seconds * millisecondsInSecond; -} -var secondsToMilliseconds_default; -var init_secondsToMilliseconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/secondsToMilliseconds.js"() { - init_constants(); - secondsToMilliseconds_default = secondsToMilliseconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/secondsToMinutes.js -function secondsToMinutes(seconds) { - const minutes = seconds / secondsInMinute; - return Math.trunc(minutes); -} -var secondsToMinutes_default; -var init_secondsToMinutes = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/secondsToMinutes.js"() { - init_constants(); - secondsToMinutes_default = secondsToMinutes; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMonth.js -function setMonth(date, month, options2) { - const _date = toDate(date, options2?.in); - const year = _date.getFullYear(); - const day = _date.getDate(); - const midMonth = constructFrom(options2?.in || date, 0); - midMonth.setFullYear(year, month, 15); - midMonth.setHours(0, 0, 0, 0); - const daysInMonth = getDaysInMonth(midMonth); - _date.setMonth(month, Math.min(day, daysInMonth)); - return _date; -} -var setMonth_default; -var init_setMonth = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMonth.js"() { - init_constructFrom(); - init_getDaysInMonth(); - init_toDate(); - setMonth_default = setMonth; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/set.js -function set(date, values, options2) { - let _date = toDate(date, options2?.in); - if (isNaN(+_date)) return constructFrom(options2?.in || date, NaN); - if (values.year != null) _date.setFullYear(values.year); - if (values.month != null) _date = setMonth(_date, values.month); - if (values.date != null) _date.setDate(values.date); - if (values.hours != null) _date.setHours(values.hours); - if (values.minutes != null) _date.setMinutes(values.minutes); - if (values.seconds != null) _date.setSeconds(values.seconds); - if (values.milliseconds != null) _date.setMilliseconds(values.milliseconds); - return _date; -} -var set_default; -var init_set = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/set.js"() { - init_constructFrom(); - init_setMonth(); - init_toDate(); - set_default = set; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDate.js -function setDate(date, dayOfMonth, options2) { - const _date = toDate(date, options2?.in); - _date.setDate(dayOfMonth); - return _date; -} -var setDate_default; -var init_setDate = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDate.js"() { - init_toDate(); - setDate_default = setDate; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDayOfYear.js -function setDayOfYear(date, dayOfYear, options2) { - const date_ = toDate(date, options2?.in); - date_.setMonth(0); - date_.setDate(dayOfYear); - return date_; -} -var setDayOfYear_default; -var init_setDayOfYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDayOfYear.js"() { - init_toDate(); - setDayOfYear_default = setDayOfYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDefaultOptions.js -function setDefaultOptions2(options2) { - const result = {}; - const defaultOptions2 = getDefaultOptions(); - for (const property in defaultOptions2) { - if (Object.prototype.hasOwnProperty.call(defaultOptions2, property)) { - result[property] = defaultOptions2[property]; - } - } - for (const property in options2) { - if (Object.prototype.hasOwnProperty.call(options2, property)) { - if (options2[property] === void 0) { - delete result[property]; - } else { - result[property] = options2[property]; - } - } - } - setDefaultOptions(result); -} -var setDefaultOptions_default; -var init_setDefaultOptions = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDefaultOptions.js"() { - init_defaultOptions(); - setDefaultOptions_default = setDefaultOptions2; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setHours.js -function setHours(date, hours, options2) { - const _date = toDate(date, options2?.in); - _date.setHours(hours); - return _date; -} -var setHours_default; -var init_setHours = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setHours.js"() { - init_toDate(); - setHours_default = setHours; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMilliseconds.js -function setMilliseconds(date, milliseconds2, options2) { - const _date = toDate(date, options2?.in); - _date.setMilliseconds(milliseconds2); - return _date; -} -var setMilliseconds_default; -var init_setMilliseconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMilliseconds.js"() { - init_toDate(); - setMilliseconds_default = setMilliseconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMinutes.js -function setMinutes(date, minutes, options2) { - const date_ = toDate(date, options2?.in); - date_.setMinutes(minutes); - return date_; -} -var setMinutes_default; -var init_setMinutes = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMinutes.js"() { - init_toDate(); - setMinutes_default = setMinutes; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setQuarter.js -function setQuarter(date, quarter, options2) { - const date_ = toDate(date, options2?.in); - const oldQuarter = Math.trunc(date_.getMonth() / 3) + 1; - const diff = quarter - oldQuarter; - return setMonth(date_, date_.getMonth() + diff * 3); -} -var setQuarter_default; -var init_setQuarter = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setQuarter.js"() { - init_setMonth(); - init_toDate(); - setQuarter_default = setQuarter; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setSeconds.js -function setSeconds(date, seconds, options2) { - const _date = toDate(date, options2?.in); - _date.setSeconds(seconds); - return _date; -} -var setSeconds_default; -var init_setSeconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setSeconds.js"() { - init_toDate(); - setSeconds_default = setSeconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setWeekYear.js -function setWeekYear(date, weekYear, options2) { - const defaultOptions2 = getDefaultOptions(); - const firstWeekContainsDate = options2?.firstWeekContainsDate ?? options2?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1; - const diff = differenceInCalendarDays( - toDate(date, options2?.in), - startOfWeekYear(date, options2), - options2 - ); - const firstWeek = constructFrom(options2?.in || date, 0); - firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate); - firstWeek.setHours(0, 0, 0, 0); - const date_ = startOfWeekYear(firstWeek, options2); - date_.setDate(date_.getDate() + diff); - return date_; -} -var setWeekYear_default; -var init_setWeekYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setWeekYear.js"() { - init_defaultOptions(); - init_constructFrom(); - init_differenceInCalendarDays(); - init_startOfWeekYear(); - init_toDate(); - setWeekYear_default = setWeekYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setYear.js -function setYear(date, year, options2) { - const date_ = toDate(date, options2?.in); - if (isNaN(+date_)) return constructFrom(options2?.in || date, NaN); - date_.setFullYear(year); - return date_; -} -var setYear_default; -var init_setYear = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setYear.js"() { - init_constructFrom(); - init_toDate(); - setYear_default = setYear; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDecade.js -function startOfDecade(date, options2) { - const _date = toDate(date, options2?.in); - const year = _date.getFullYear(); - const decade = Math.floor(year / 10) * 10; - _date.setFullYear(decade, 0, 1); - _date.setHours(0, 0, 0, 0); - return _date; -} -var startOfDecade_default; -var init_startOfDecade = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDecade.js"() { - init_toDate(); - startOfDecade_default = startOfDecade; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfToday.js -function startOfToday(options2) { - return startOfDay(Date.now(), options2); -} -var startOfToday_default; -var init_startOfToday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfToday.js"() { - init_startOfDay(); - startOfToday_default = startOfToday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfTomorrow.js -function startOfTomorrow(options2) { - const now2 = constructNow(options2?.in); - const year = now2.getFullYear(); - const month = now2.getMonth(); - const day = now2.getDate(); - const date = constructFrom(options2?.in, 0); - date.setFullYear(year, month, day + 1); - date.setHours(0, 0, 0, 0); - return date; -} -var startOfTomorrow_default; -var init_startOfTomorrow = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfTomorrow.js"() { - init_constructFrom(); - init_constructNow(); - startOfTomorrow_default = startOfTomorrow; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYesterday.js -function startOfYesterday(options2) { - const now2 = constructNow(options2?.in); - const year = now2.getFullYear(); - const month = now2.getMonth(); - const day = now2.getDate(); - const date = constructNow(options2?.in); - date.setFullYear(year, month, day - 1); - date.setHours(0, 0, 0, 0); - return date; -} -var startOfYesterday_default; -var init_startOfYesterday = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYesterday.js"() { - init_constructNow(); - startOfYesterday_default = startOfYesterday; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMonths.js -function subMonths(date, amount, options2) { - return addMonths(date, -amount, options2); -} -var subMonths_default; -var init_subMonths = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMonths.js"() { - init_addMonths(); - subMonths_default = subMonths; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/sub.js -function sub(date, duration, options2) { - const { - years = 0, - months: months2 = 0, - weeks = 0, - days: days2 = 0, - hours = 0, - minutes = 0, - seconds = 0 - } = duration; - const withoutMonths = subMonths(date, months2 + years * 12, options2); - const withoutDays = subDays(withoutMonths, days2 + weeks * 7, options2); - const minutesToSub = minutes + hours * 60; - const secondsToSub = seconds + minutesToSub * 60; - const msToSub = secondsToSub * 1e3; - return constructFrom(options2?.in || date, +withoutDays - msToSub); -} -var sub_default; -var init_sub = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/sub.js"() { - init_constructFrom(); - init_subDays(); - init_subMonths(); - sub_default = sub; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subBusinessDays.js -function subBusinessDays(date, amount, options2) { - return addBusinessDays(date, -amount, options2); -} -var subBusinessDays_default; -var init_subBusinessDays = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subBusinessDays.js"() { - init_addBusinessDays(); - subBusinessDays_default = subBusinessDays; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subHours.js -function subHours(date, amount, options2) { - return addHours(date, -amount, options2); -} -var subHours_default; -var init_subHours = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subHours.js"() { - init_addHours(); - subHours_default = subHours; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMilliseconds.js -function subMilliseconds(date, amount, options2) { - return addMilliseconds(date, -amount, options2); -} -var subMilliseconds_default; -var init_subMilliseconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMilliseconds.js"() { - init_addMilliseconds(); - subMilliseconds_default = subMilliseconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMinutes.js -function subMinutes(date, amount, options2) { - return addMinutes(date, -amount, options2); -} -var subMinutes_default; -var init_subMinutes = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMinutes.js"() { - init_addMinutes(); - subMinutes_default = subMinutes; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subQuarters.js -function subQuarters(date, amount, options2) { - return addQuarters(date, -amount, options2); -} -var subQuarters_default; -var init_subQuarters = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subQuarters.js"() { - init_addQuarters(); - subQuarters_default = subQuarters; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subSeconds.js -function subSeconds(date, amount, options2) { - return addSeconds(date, -amount, options2); -} -var subSeconds_default; -var init_subSeconds = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subSeconds.js"() { - init_addSeconds(); - subSeconds_default = subSeconds; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subWeeks.js -function subWeeks(date, amount, options2) { - return addWeeks(date, -amount, options2); -} -var subWeeks_default; -var init_subWeeks = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subWeeks.js"() { - init_addWeeks(); - subWeeks_default = subWeeks; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subYears.js -function subYears(date, amount, options2) { - return addYears(date, -amount, options2); -} -var subYears_default; -var init_subYears = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subYears.js"() { - init_addYears(); - subYears_default = subYears; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/weeksToDays.js -function weeksToDays(weeks) { - return Math.trunc(weeks * daysInWeek); -} -var weeksToDays_default; -var init_weeksToDays = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/weeksToDays.js"() { - init_constants(); - weeksToDays_default = weeksToDays; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/yearsToDays.js -function yearsToDays(years) { - return Math.trunc(years * daysInYear); -} -var yearsToDays_default; -var init_yearsToDays = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/yearsToDays.js"() { - init_constants(); - yearsToDays_default = yearsToDays; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/yearsToMonths.js -function yearsToMonths(years) { - return Math.trunc(years * monthsInYear); -} -var yearsToMonths_default; -var init_yearsToMonths = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/yearsToMonths.js"() { - init_constants(); - yearsToMonths_default = yearsToMonths; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/yearsToQuarters.js -function yearsToQuarters(years) { - return Math.trunc(years * quartersInYear); -} -var yearsToQuarters_default; -var init_yearsToQuarters = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/yearsToQuarters.js"() { - init_constants(); - yearsToQuarters_default = yearsToQuarters; - } -}); - -// node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/index.js -var date_fns_exports = {}; -__export(date_fns_exports, { - add: () => add, - addBusinessDays: () => addBusinessDays, - addDays: () => addDays, - addHours: () => addHours, - addISOWeekYears: () => addISOWeekYears, - addMilliseconds: () => addMilliseconds, - addMinutes: () => addMinutes, - addMonths: () => addMonths, - addQuarters: () => addQuarters, - addSeconds: () => addSeconds, - addWeeks: () => addWeeks, - addYears: () => addYears, - areIntervalsOverlapping: () => areIntervalsOverlapping, - clamp: () => clamp, - closestIndexTo: () => closestIndexTo, - closestTo: () => closestTo, - compareAsc: () => compareAsc, - compareDesc: () => compareDesc, - constructFrom: () => constructFrom, - constructNow: () => constructNow, - daysToWeeks: () => daysToWeeks, - differenceInBusinessDays: () => differenceInBusinessDays, - differenceInCalendarDays: () => differenceInCalendarDays, - differenceInCalendarISOWeekYears: () => differenceInCalendarISOWeekYears, - differenceInCalendarISOWeeks: () => differenceInCalendarISOWeeks, - differenceInCalendarMonths: () => differenceInCalendarMonths, - differenceInCalendarQuarters: () => differenceInCalendarQuarters, - differenceInCalendarWeeks: () => differenceInCalendarWeeks, - differenceInCalendarYears: () => differenceInCalendarYears, - differenceInDays: () => differenceInDays, - differenceInHours: () => differenceInHours, - differenceInISOWeekYears: () => differenceInISOWeekYears, - differenceInMilliseconds: () => differenceInMilliseconds, - differenceInMinutes: () => differenceInMinutes, - differenceInMonths: () => differenceInMonths, - differenceInQuarters: () => differenceInQuarters, - differenceInSeconds: () => differenceInSeconds, - differenceInWeeks: () => differenceInWeeks, - differenceInYears: () => differenceInYears, - eachDayOfInterval: () => eachDayOfInterval, - eachHourOfInterval: () => eachHourOfInterval, - eachMinuteOfInterval: () => eachMinuteOfInterval, - eachMonthOfInterval: () => eachMonthOfInterval, - eachQuarterOfInterval: () => eachQuarterOfInterval, - eachWeekOfInterval: () => eachWeekOfInterval, - eachWeekendOfInterval: () => eachWeekendOfInterval, - eachWeekendOfMonth: () => eachWeekendOfMonth, - eachWeekendOfYear: () => eachWeekendOfYear, - eachYearOfInterval: () => eachYearOfInterval, - endOfDay: () => endOfDay, - endOfDecade: () => endOfDecade, - endOfHour: () => endOfHour, - endOfISOWeek: () => endOfISOWeek, - endOfISOWeekYear: () => endOfISOWeekYear, - endOfMinute: () => endOfMinute, - endOfMonth: () => endOfMonth, - endOfQuarter: () => endOfQuarter, - endOfSecond: () => endOfSecond, - endOfToday: () => endOfToday, - endOfTomorrow: () => endOfTomorrow, - endOfWeek: () => endOfWeek, - endOfYear: () => endOfYear, - endOfYesterday: () => endOfYesterday, - format: () => format, - formatDate: () => format, - formatDistance: () => formatDistance2, - formatDistanceStrict: () => formatDistanceStrict, - formatDistanceToNow: () => formatDistanceToNow, - formatDistanceToNowStrict: () => formatDistanceToNowStrict, - formatDuration: () => formatDuration, - formatISO: () => formatISO, - formatISO9075: () => formatISO9075, - formatISODuration: () => formatISODuration, - formatRFC3339: () => formatRFC3339, - formatRFC7231: () => formatRFC7231, - formatRelative: () => formatRelative2, - formatters: () => formatters, - fromUnixTime: () => fromUnixTime, - getDate: () => getDate, - getDay: () => getDay, - getDayOfYear: () => getDayOfYear, - getDaysInMonth: () => getDaysInMonth, - getDaysInYear: () => getDaysInYear, - getDecade: () => getDecade, - getDefaultOptions: () => getDefaultOptions2, - getHours: () => getHours, - getISODay: () => getISODay, - getISOWeek: () => getISOWeek, - getISOWeekYear: () => getISOWeekYear, - getISOWeeksInYear: () => getISOWeeksInYear, - getMilliseconds: () => getMilliseconds, - getMinutes: () => getMinutes, - getMonth: () => getMonth, - getOverlappingDaysInIntervals: () => getOverlappingDaysInIntervals, - getQuarter: () => getQuarter, - getSeconds: () => getSeconds, - getTime: () => getTime, - getUnixTime: () => getUnixTime, - getWeek: () => getWeek, - getWeekOfMonth: () => getWeekOfMonth, - getWeekYear: () => getWeekYear, - getWeeksInMonth: () => getWeeksInMonth, - getYear: () => getYear, - hoursToMilliseconds: () => hoursToMilliseconds, - hoursToMinutes: () => hoursToMinutes, - hoursToSeconds: () => hoursToSeconds, - interval: () => interval2, - intervalToDuration: () => intervalToDuration, - intlFormat: () => intlFormat, - intlFormatDistance: () => intlFormatDistance, - isAfter: () => isAfter, - isBefore: () => isBefore, - isDate: () => isDate, - isEqual: () => isEqual, - isExists: () => isExists, - isFirstDayOfMonth: () => isFirstDayOfMonth, - isFriday: () => isFriday, - isFuture: () => isFuture, - isLastDayOfMonth: () => isLastDayOfMonth, - isLeapYear: () => isLeapYear, - isMatch: () => isMatch2, - isMonday: () => isMonday, - isPast: () => isPast, - isSameDay: () => isSameDay, - isSameHour: () => isSameHour, - isSameISOWeek: () => isSameISOWeek, - isSameISOWeekYear: () => isSameISOWeekYear, - isSameMinute: () => isSameMinute, - isSameMonth: () => isSameMonth, - isSameQuarter: () => isSameQuarter, - isSameSecond: () => isSameSecond, - isSameWeek: () => isSameWeek, - isSameYear: () => isSameYear, - isSaturday: () => isSaturday, - isSunday: () => isSunday, - isThisHour: () => isThisHour, - isThisISOWeek: () => isThisISOWeek, - isThisMinute: () => isThisMinute, - isThisMonth: () => isThisMonth, - isThisQuarter: () => isThisQuarter, - isThisSecond: () => isThisSecond, - isThisWeek: () => isThisWeek, - isThisYear: () => isThisYear, - isThursday: () => isThursday, - isToday: () => isToday, - isTomorrow: () => isTomorrow, - isTuesday: () => isTuesday, - isValid: () => isValid, - isWednesday: () => isWednesday, - isWeekend: () => isWeekend, - isWithinInterval: () => isWithinInterval, - isYesterday: () => isYesterday, - lastDayOfDecade: () => lastDayOfDecade, - lastDayOfISOWeek: () => lastDayOfISOWeek, - lastDayOfISOWeekYear: () => lastDayOfISOWeekYear, - lastDayOfMonth: () => lastDayOfMonth, - lastDayOfQuarter: () => lastDayOfQuarter, - lastDayOfWeek: () => lastDayOfWeek, - lastDayOfYear: () => lastDayOfYear, - lightFormat: () => lightFormat, - lightFormatters: () => lightFormatters, - longFormatters: () => longFormatters, - max: () => max2, - milliseconds: () => milliseconds, - millisecondsToHours: () => millisecondsToHours, - millisecondsToMinutes: () => millisecondsToMinutes, - millisecondsToSeconds: () => millisecondsToSeconds, - min: () => min2, - minutesToHours: () => minutesToHours, - minutesToMilliseconds: () => minutesToMilliseconds, - minutesToSeconds: () => minutesToSeconds, - monthsToQuarters: () => monthsToQuarters, - monthsToYears: () => monthsToYears, - nextDay: () => nextDay, - nextFriday: () => nextFriday, - nextMonday: () => nextMonday, - nextSaturday: () => nextSaturday, - nextSunday: () => nextSunday, - nextThursday: () => nextThursday, - nextTuesday: () => nextTuesday, - nextWednesday: () => nextWednesday, - parse: () => parse, - parseISO: () => parseISO, - parseJSON: () => parseJSON, - parsers: () => parsers, - previousDay: () => previousDay, - previousFriday: () => previousFriday, - previousMonday: () => previousMonday, - previousSaturday: () => previousSaturday, - previousSunday: () => previousSunday, - previousThursday: () => previousThursday, - previousTuesday: () => previousTuesday, - previousWednesday: () => previousWednesday, - quartersToMonths: () => quartersToMonths, - quartersToYears: () => quartersToYears, - roundToNearestHours: () => roundToNearestHours, - roundToNearestMinutes: () => roundToNearestMinutes, - secondsToHours: () => secondsToHours, - secondsToMilliseconds: () => secondsToMilliseconds, - secondsToMinutes: () => secondsToMinutes, - set: () => set, - setDate: () => setDate, - setDay: () => setDay, - setDayOfYear: () => setDayOfYear, - setDefaultOptions: () => setDefaultOptions2, - setHours: () => setHours, - setISODay: () => setISODay, - setISOWeek: () => setISOWeek, - setISOWeekYear: () => setISOWeekYear, - setMilliseconds: () => setMilliseconds, - setMinutes: () => setMinutes, - setMonth: () => setMonth, - setQuarter: () => setQuarter, - setSeconds: () => setSeconds, - setWeek: () => setWeek, - setWeekYear: () => setWeekYear, - setYear: () => setYear, - startOfDay: () => startOfDay, - startOfDecade: () => startOfDecade, - startOfHour: () => startOfHour, - startOfISOWeek: () => startOfISOWeek, - startOfISOWeekYear: () => startOfISOWeekYear, - startOfMinute: () => startOfMinute, - startOfMonth: () => startOfMonth, - startOfQuarter: () => startOfQuarter, - startOfSecond: () => startOfSecond, - startOfToday: () => startOfToday, - startOfTomorrow: () => startOfTomorrow, - startOfWeek: () => startOfWeek, - startOfWeekYear: () => startOfWeekYear, - startOfYear: () => startOfYear, - startOfYesterday: () => startOfYesterday, - sub: () => sub, - subBusinessDays: () => subBusinessDays, - subDays: () => subDays, - subHours: () => subHours, - subISOWeekYears: () => subISOWeekYears, - subMilliseconds: () => subMilliseconds, - subMinutes: () => subMinutes, - subMonths: () => subMonths, - subQuarters: () => subQuarters, - subSeconds: () => subSeconds, - subWeeks: () => subWeeks, - subYears: () => subYears, - toDate: () => toDate, - transpose: () => transpose, - weeksToDays: () => weeksToDays, - yearsToDays: () => yearsToDays, - yearsToMonths: () => yearsToMonths, - yearsToQuarters: () => yearsToQuarters -}); -var init_date_fns = __esm({ - "node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/index.js"() { - init_add(); - init_addBusinessDays(); - init_addDays(); - init_addHours(); - init_addISOWeekYears(); - init_addMilliseconds(); - init_addMinutes(); - init_addMonths(); - init_addQuarters(); - init_addSeconds(); - init_addWeeks(); - init_addYears(); - init_areIntervalsOverlapping(); - init_clamp(); - init_closestIndexTo(); - init_closestTo(); - init_compareAsc(); - init_compareDesc(); - init_constructFrom(); - init_constructNow(); - init_daysToWeeks(); - init_differenceInBusinessDays(); - init_differenceInCalendarDays(); - init_differenceInCalendarISOWeekYears(); - init_differenceInCalendarISOWeeks(); - init_differenceInCalendarMonths(); - init_differenceInCalendarQuarters(); - init_differenceInCalendarWeeks(); - init_differenceInCalendarYears(); - init_differenceInDays(); - init_differenceInHours(); - init_differenceInISOWeekYears(); - init_differenceInMilliseconds(); - init_differenceInMinutes(); - init_differenceInMonths(); - init_differenceInQuarters(); - init_differenceInSeconds(); - init_differenceInWeeks(); - init_differenceInYears(); - init_eachDayOfInterval(); - init_eachHourOfInterval(); - init_eachMinuteOfInterval(); - init_eachMonthOfInterval(); - init_eachQuarterOfInterval(); - init_eachWeekOfInterval(); - init_eachWeekendOfInterval(); - init_eachWeekendOfMonth(); - init_eachWeekendOfYear(); - init_eachYearOfInterval(); - init_endOfDay(); - init_endOfDecade(); - init_endOfHour(); - init_endOfISOWeek(); - init_endOfISOWeekYear(); - init_endOfMinute(); - init_endOfMonth(); - init_endOfQuarter(); - init_endOfSecond(); - init_endOfToday(); - init_endOfTomorrow(); - init_endOfWeek(); - init_endOfYear(); - init_endOfYesterday(); - init_format(); - init_formatDistance2(); - init_formatDistanceStrict(); - init_formatDistanceToNow(); - init_formatDistanceToNowStrict(); - init_formatDuration(); - init_formatISO(); - init_formatISO9075(); - init_formatISODuration(); - init_formatRFC3339(); - init_formatRFC7231(); - init_formatRelative2(); - init_fromUnixTime(); - init_getDate(); - init_getDay(); - init_getDayOfYear(); - init_getDaysInMonth(); - init_getDaysInYear(); - init_getDecade(); - init_getDefaultOptions(); - init_getHours(); - init_getISODay(); - init_getISOWeek(); - init_getISOWeekYear(); - init_getISOWeeksInYear(); - init_getMilliseconds(); - init_getMinutes(); - init_getMonth(); - init_getOverlappingDaysInIntervals(); - init_getQuarter(); - init_getSeconds(); - init_getTime(); - init_getUnixTime(); - init_getWeek(); - init_getWeekOfMonth(); - init_getWeekYear(); - init_getWeeksInMonth(); - init_getYear(); - init_hoursToMilliseconds(); - init_hoursToMinutes(); - init_hoursToSeconds(); - init_interval2(); - init_intervalToDuration(); - init_intlFormat(); - init_intlFormatDistance(); - init_isAfter(); - init_isBefore(); - init_isDate2(); - init_isEqual(); - init_isExists(); - init_isFirstDayOfMonth(); - init_isFriday(); - init_isFuture(); - init_isLastDayOfMonth(); - init_isLeapYear(); - init_isMatch(); - init_isMonday(); - init_isPast(); - init_isSameDay(); - init_isSameHour(); - init_isSameISOWeek(); - init_isSameISOWeekYear(); - init_isSameMinute(); - init_isSameMonth(); - init_isSameQuarter(); - init_isSameSecond(); - init_isSameWeek(); - init_isSameYear(); - init_isSaturday(); - init_isSunday(); - init_isThisHour(); - init_isThisISOWeek(); - init_isThisMinute(); - init_isThisMonth(); - init_isThisQuarter(); - init_isThisSecond(); - init_isThisWeek(); - init_isThisYear(); - init_isThursday(); - init_isToday(); - init_isTomorrow(); - init_isTuesday(); - init_isValid(); - init_isWednesday(); - init_isWeekend(); - init_isWithinInterval(); - init_isYesterday(); - init_lastDayOfDecade(); - init_lastDayOfISOWeek(); - init_lastDayOfISOWeekYear(); - init_lastDayOfMonth(); - init_lastDayOfQuarter(); - init_lastDayOfWeek(); - init_lastDayOfYear(); - init_lightFormat(); - init_max2(); - init_milliseconds(); - init_millisecondsToHours(); - init_millisecondsToMinutes(); - init_millisecondsToSeconds(); - init_min2(); - init_minutesToHours(); - init_minutesToMilliseconds(); - init_minutesToSeconds(); - init_monthsToQuarters(); - init_monthsToYears(); - init_nextDay(); - init_nextFriday(); - init_nextMonday(); - init_nextSaturday(); - init_nextSunday(); - init_nextThursday(); - init_nextTuesday(); - init_nextWednesday(); - init_parse(); - init_parseISO(); - init_parseJSON(); - init_previousDay(); - init_previousFriday(); - init_previousMonday(); - init_previousSaturday(); - init_previousSunday(); - init_previousThursday(); - init_previousTuesday(); - init_previousWednesday(); - init_quartersToMonths(); - init_quartersToYears(); - init_roundToNearestHours(); - init_roundToNearestMinutes(); - init_secondsToHours(); - init_secondsToMilliseconds(); - init_secondsToMinutes(); - init_set(); - init_setDate(); - init_setDay(); - init_setDayOfYear(); - init_setDefaultOptions(); - init_setHours(); - init_setISODay(); - init_setISOWeek(); - init_setISOWeekYear(); - init_setMilliseconds(); - init_setMinutes(); - init_setMonth(); - init_setQuarter(); - init_setSeconds(); - init_setWeek(); - init_setWeekYear(); - init_setYear(); - init_startOfDay(); - init_startOfDecade(); - init_startOfHour(); - init_startOfISOWeek(); - init_startOfISOWeekYear(); - init_startOfMinute(); - init_startOfMonth(); - init_startOfQuarter(); - init_startOfSecond(); - init_startOfToday(); - init_startOfTomorrow(); - init_startOfWeek(); - init_startOfWeekYear(); - init_startOfYear(); - init_startOfYesterday(); - init_sub(); - init_subBusinessDays(); - init_subDays(); - init_subHours(); - init_subISOWeekYears(); - init_subMilliseconds(); - init_subMinutes(); - init_subMonths(); - init_subQuarters(); - init_subSeconds(); - init_subWeeks(); - init_subYears(); - init_toDate(); - init_transpose(); - init_weeksToDays(); - init_yearsToDays(); - init_yearsToMonths(); - init_yearsToQuarters(); - } -}); - -// node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js -var require_dayjs_min = __commonJS({ - "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.js"(exports, module) { - !(function(t10, e12) { - "object" == typeof exports && "undefined" != typeof module ? module.exports = e12() : "function" == typeof define && define.amd ? define(e12) : (t10 = "undefined" != typeof globalThis ? globalThis : t10 || self).dayjs = e12(); - })(exports, (function() { - "use strict"; - var t10 = 1e3, e12 = 6e4, n14 = 36e5, r12 = "millisecond", i12 = "second", s10 = "minute", u8 = "hour", a6 = "day", o14 = "week", c12 = "month", f8 = "quarter", h10 = "year", d7 = "date", l7 = "Invalid Date", $4 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y6 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M4 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t11) { - var e13 = ["th", "st", "nd", "rd"], n15 = t11 % 100; - return "[" + t11 + (e13[(n15 - 20) % 10] || e13[n15] || e13[0]) + "]"; - } }, m7 = function(t11, e13, n15) { - var r13 = String(t11); - return !r13 || r13.length >= e13 ? t11 : "" + Array(e13 + 1 - r13.length).join(n15) + t11; - }, v6 = { s: m7, z: function(t11) { - var e13 = -t11.utcOffset(), n15 = Math.abs(e13), r13 = Math.floor(n15 / 60), i13 = n15 % 60; - return (e13 <= 0 ? "+" : "-") + m7(r13, 2, "0") + ":" + m7(i13, 2, "0"); - }, m: function t11(e13, n15) { - if (e13.date() < n15.date()) return -t11(n15, e13); - var r13 = 12 * (n15.year() - e13.year()) + (n15.month() - e13.month()), i13 = e13.clone().add(r13, c12), s11 = n15 - i13 < 0, u9 = e13.clone().add(r13 + (s11 ? -1 : 1), c12); - return +(-(r13 + (n15 - i13) / (s11 ? i13 - u9 : u9 - i13)) || 0); - }, a: function(t11) { - return t11 < 0 ? Math.ceil(t11) || 0 : Math.floor(t11); - }, p: function(t11) { - return { M: c12, y: h10, w: o14, d: a6, D: d7, h: u8, m: s10, s: i12, ms: r12, Q: f8 }[t11] || String(t11 || "").toLowerCase().replace(/s$/, ""); - }, u: function(t11) { - return void 0 === t11; - } }, g5 = "en", D4 = {}; - D4[g5] = M4; - var p8 = "$isDayjsObject", S6 = function(t11) { - return t11 instanceof _5 || !(!t11 || !t11[p8]); - }, w4 = function t11(e13, n15, r13) { - var i13; - if (!e13) return g5; - if ("string" == typeof e13) { - var s11 = e13.toLowerCase(); - D4[s11] && (i13 = s11), n15 && (D4[s11] = n15, i13 = s11); - var u9 = e13.split("-"); - if (!i13 && u9.length > 1) return t11(u9[0]); - } else { - var a7 = e13.name; - D4[a7] = e13, i13 = a7; - } - return !r13 && i13 && (g5 = i13), i13 || !r13 && g5; - }, O3 = function(t11, e13) { - if (S6(t11)) return t11.clone(); - var n15 = "object" == typeof e13 ? e13 : {}; - return n15.date = t11, n15.args = arguments, new _5(n15); - }, b6 = v6; - b6.l = w4, b6.i = S6, b6.w = function(t11, e13) { - return O3(t11, { locale: e13.$L, utc: e13.$u, x: e13.$x, $offset: e13.$offset }); - }; - var _5 = (function() { - function M5(t11) { - this.$L = w4(t11.locale, null, true), this.parse(t11), this.$x = this.$x || t11.x || {}, this[p8] = true; - } - var m8 = M5.prototype; - return m8.parse = function(t11) { - this.$d = (function(t12) { - var e13 = t12.date, n15 = t12.utc; - if (null === e13) return /* @__PURE__ */ new Date(NaN); - if (b6.u(e13)) return /* @__PURE__ */ new Date(); - if (e13 instanceof Date) return new Date(e13); - if ("string" == typeof e13 && !/Z$/i.test(e13)) { - var r13 = e13.match($4); - if (r13) { - var i13 = r13[2] - 1 || 0, s11 = (r13[7] || "0").substring(0, 3); - return n15 ? new Date(Date.UTC(r13[1], i13, r13[3] || 1, r13[4] || 0, r13[5] || 0, r13[6] || 0, s11)) : new Date(r13[1], i13, r13[3] || 1, r13[4] || 0, r13[5] || 0, r13[6] || 0, s11); - } - } - return new Date(e13); - })(t11), this.init(); - }, m8.init = function() { - var t11 = this.$d; - this.$y = t11.getFullYear(), this.$M = t11.getMonth(), this.$D = t11.getDate(), this.$W = t11.getDay(), this.$H = t11.getHours(), this.$m = t11.getMinutes(), this.$s = t11.getSeconds(), this.$ms = t11.getMilliseconds(); - }, m8.$utils = function() { - return b6; - }, m8.isValid = function() { - return !(this.$d.toString() === l7); - }, m8.isSame = function(t11, e13) { - var n15 = O3(t11); - return this.startOf(e13) <= n15 && n15 <= this.endOf(e13); - }, m8.isAfter = function(t11, e13) { - return O3(t11) < this.startOf(e13); - }, m8.isBefore = function(t11, e13) { - return this.endOf(e13) < O3(t11); - }, m8.$g = function(t11, e13, n15) { - return b6.u(t11) ? this[e13] : this.set(n15, t11); - }, m8.unix = function() { - return Math.floor(this.valueOf() / 1e3); - }, m8.valueOf = function() { - return this.$d.getTime(); - }, m8.startOf = function(t11, e13) { - var n15 = this, r13 = !!b6.u(e13) || e13, f9 = b6.p(t11), l8 = function(t12, e14) { - var i13 = b6.w(n15.$u ? Date.UTC(n15.$y, e14, t12) : new Date(n15.$y, e14, t12), n15); - return r13 ? i13 : i13.endOf(a6); - }, $5 = function(t12, e14) { - return b6.w(n15.toDate()[t12].apply(n15.toDate("s"), (r13 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e14)), n15); - }, y7 = this.$W, M6 = this.$M, m9 = this.$D, v7 = "set" + (this.$u ? "UTC" : ""); - switch (f9) { - case h10: - return r13 ? l8(1, 0) : l8(31, 11); - case c12: - return r13 ? l8(1, M6) : l8(0, M6 + 1); - case o14: - var g6 = this.$locale().weekStart || 0, D5 = (y7 < g6 ? y7 + 7 : y7) - g6; - return l8(r13 ? m9 - D5 : m9 + (6 - D5), M6); - case a6: - case d7: - return $5(v7 + "Hours", 0); - case u8: - return $5(v7 + "Minutes", 1); - case s10: - return $5(v7 + "Seconds", 2); - case i12: - return $5(v7 + "Milliseconds", 3); - default: - return this.clone(); - } - }, m8.endOf = function(t11) { - return this.startOf(t11, false); - }, m8.$set = function(t11, e13) { - var n15, o15 = b6.p(t11), f9 = "set" + (this.$u ? "UTC" : ""), l8 = (n15 = {}, n15[a6] = f9 + "Date", n15[d7] = f9 + "Date", n15[c12] = f9 + "Month", n15[h10] = f9 + "FullYear", n15[u8] = f9 + "Hours", n15[s10] = f9 + "Minutes", n15[i12] = f9 + "Seconds", n15[r12] = f9 + "Milliseconds", n15)[o15], $5 = o15 === a6 ? this.$D + (e13 - this.$W) : e13; - if (o15 === c12 || o15 === h10) { - var y7 = this.clone().set(d7, 1); - y7.$d[l8]($5), y7.init(), this.$d = y7.set(d7, Math.min(this.$D, y7.daysInMonth())).$d; - } else l8 && this.$d[l8]($5); - return this.init(), this; - }, m8.set = function(t11, e13) { - return this.clone().$set(t11, e13); - }, m8.get = function(t11) { - return this[b6.p(t11)](); - }, m8.add = function(r13, f9) { - var d8, l8 = this; - r13 = Number(r13); - var $5 = b6.p(f9), y7 = function(t11) { - var e13 = O3(l8); - return b6.w(e13.date(e13.date() + Math.round(t11 * r13)), l8); - }; - if ($5 === c12) return this.set(c12, this.$M + r13); - if ($5 === h10) return this.set(h10, this.$y + r13); - if ($5 === a6) return y7(1); - if ($5 === o14) return y7(7); - var M6 = (d8 = {}, d8[s10] = e12, d8[u8] = n14, d8[i12] = t10, d8)[$5] || 1, m9 = this.$d.getTime() + r13 * M6; - return b6.w(m9, this); - }, m8.subtract = function(t11, e13) { - return this.add(-1 * t11, e13); - }, m8.format = function(t11) { - var e13 = this, n15 = this.$locale(); - if (!this.isValid()) return n15.invalidDate || l7; - var r13 = t11 || "YYYY-MM-DDTHH:mm:ssZ", i13 = b6.z(this), s11 = this.$H, u9 = this.$m, a7 = this.$M, o15 = n15.weekdays, c13 = n15.months, f9 = n15.meridiem, h11 = function(t12, n16, i14, s12) { - return t12 && (t12[n16] || t12(e13, r13)) || i14[n16].slice(0, s12); - }, d8 = function(t12) { - return b6.s(s11 % 12 || 12, t12, "0"); - }, $5 = f9 || function(t12, e14, n16) { - var r14 = t12 < 12 ? "AM" : "PM"; - return n16 ? r14.toLowerCase() : r14; - }; - return r13.replace(y6, (function(t12, r14) { - return r14 || (function(t13) { - switch (t13) { - case "YY": - return String(e13.$y).slice(-2); - case "YYYY": - return b6.s(e13.$y, 4, "0"); - case "M": - return a7 + 1; - case "MM": - return b6.s(a7 + 1, 2, "0"); - case "MMM": - return h11(n15.monthsShort, a7, c13, 3); - case "MMMM": - return h11(c13, a7); - case "D": - return e13.$D; - case "DD": - return b6.s(e13.$D, 2, "0"); - case "d": - return String(e13.$W); - case "dd": - return h11(n15.weekdaysMin, e13.$W, o15, 2); - case "ddd": - return h11(n15.weekdaysShort, e13.$W, o15, 3); - case "dddd": - return o15[e13.$W]; - case "H": - return String(s11); - case "HH": - return b6.s(s11, 2, "0"); - case "h": - return d8(1); - case "hh": - return d8(2); - case "a": - return $5(s11, u9, true); - case "A": - return $5(s11, u9, false); - case "m": - return String(u9); - case "mm": - return b6.s(u9, 2, "0"); - case "s": - return String(e13.$s); - case "ss": - return b6.s(e13.$s, 2, "0"); - case "SSS": - return b6.s(e13.$ms, 3, "0"); - case "Z": - return i13; - } - return null; - })(t12) || i13.replace(":", ""); - })); - }, m8.utcOffset = function() { - return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); - }, m8.diff = function(r13, d8, l8) { - var $5, y7 = this, M6 = b6.p(d8), m9 = O3(r13), v7 = (m9.utcOffset() - this.utcOffset()) * e12, g6 = this - m9, D5 = function() { - return b6.m(y7, m9); - }; - switch (M6) { - case h10: - $5 = D5() / 12; - break; - case c12: - $5 = D5(); - break; - case f8: - $5 = D5() / 3; - break; - case o14: - $5 = (g6 - v7) / 6048e5; - break; - case a6: - $5 = (g6 - v7) / 864e5; - break; - case u8: - $5 = g6 / n14; - break; - case s10: - $5 = g6 / e12; - break; - case i12: - $5 = g6 / t10; - break; - default: - $5 = g6; - } - return l8 ? $5 : b6.a($5); - }, m8.daysInMonth = function() { - return this.endOf(c12).$D; - }, m8.$locale = function() { - return D4[this.$L]; - }, m8.locale = function(t11, e13) { - if (!t11) return this.$L; - var n15 = this.clone(), r13 = w4(t11, e13, true); - return r13 && (n15.$L = r13), n15; - }, m8.clone = function() { - return b6.w(this.$d, this); - }, m8.toDate = function() { - return new Date(this.valueOf()); - }, m8.toJSON = function() { - return this.isValid() ? this.toISOString() : null; - }, m8.toISOString = function() { - return this.$d.toISOString(); - }, m8.toString = function() { - return this.$d.toUTCString(); - }, M5; - })(), k5 = _5.prototype; - return O3.prototype = k5, [["$ms", r12], ["$s", i12], ["$m", s10], ["$H", u8], ["$W", a6], ["$M", c12], ["$y", h10], ["$D", d7]].forEach((function(t11) { - k5[t11[1]] = function(e13) { - return this.$g(e13, t11[0], t11[1]); - }; - })), O3.extend = function(t11, e13) { - return t11.$i || (t11(e13, _5, O3), t11.$i = true), O3; - }, O3.locale = w4, O3.isDayjs = S6, O3.unix = function(t11) { - return O3(1e3 * t11); - }, O3.en = D4[g5], O3.Ls = D4, O3.p = {}, O3; - })); - } -}); - -// node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isToday.js -var require_isToday = __commonJS({ - "node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isToday.js"(exports, module) { - !(function(e12, o14) { - "object" == typeof exports && "undefined" != typeof module ? module.exports = o14() : "function" == typeof define && define.amd ? define(o14) : (e12 = "undefined" != typeof globalThis ? globalThis : e12 || self).dayjs_plugin_isToday = o14(); - })(exports, (function() { - "use strict"; - return function(e12, o14, t10) { - o14.prototype.isToday = function() { - var e13 = "YYYY-MM-DD", o15 = t10(); - return this.format(e13) === o15.format(e13); - }; - }; - })); - } -}); - -// node_modules/.pnpm/parse-ms@4.0.0/node_modules/parse-ms/index.js -function parseNumber(milliseconds2) { - return { - days: Math.trunc(milliseconds2 / 864e5), - hours: Math.trunc(milliseconds2 / 36e5 % 24), - minutes: Math.trunc(milliseconds2 / 6e4 % 60), - seconds: Math.trunc(milliseconds2 / 1e3 % 60), - milliseconds: Math.trunc(milliseconds2 % 1e3), - microseconds: Math.trunc(toZeroIfInfinity(milliseconds2 * 1e3) % 1e3), - nanoseconds: Math.trunc(toZeroIfInfinity(milliseconds2 * 1e6) % 1e3) - }; -} -function parseBigint(milliseconds2) { - return { - days: milliseconds2 / 86400000n, - hours: milliseconds2 / 3600000n % 24n, - minutes: milliseconds2 / 60000n % 60n, - seconds: milliseconds2 / 1000n % 60n, - milliseconds: milliseconds2 % 1000n, - microseconds: 0n, - nanoseconds: 0n - }; -} -function parseMilliseconds(milliseconds2) { - switch (typeof milliseconds2) { - case "number": { - if (Number.isFinite(milliseconds2)) { - return parseNumber(milliseconds2); - } - break; - } - case "bigint": { - return parseBigint(milliseconds2); - } - } - throw new TypeError("Expected a finite number or bigint"); -} -var toZeroIfInfinity; -var init_parse_ms = __esm({ - "node_modules/.pnpm/parse-ms@4.0.0/node_modules/parse-ms/index.js"() { - toZeroIfInfinity = (value2) => Number.isFinite(value2) ? value2 : 0; - } -}); - -// node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js -function prettyMilliseconds(milliseconds2, options2) { - const isBigInt = typeof milliseconds2 === "bigint"; - if (!isBigInt && !Number.isFinite(milliseconds2)) { - throw new TypeError("Expected a finite number or bigint"); - } - options2 = { ...options2 }; - const sign = milliseconds2 < 0 ? "-" : ""; - milliseconds2 = milliseconds2 < 0 ? -milliseconds2 : milliseconds2; - if (options2.colonNotation) { - options2.compact = false; - options2.formatSubMilliseconds = false; - options2.separateMilliseconds = false; - options2.verbose = false; - } - if (options2.compact) { - options2.unitCount = 1; - options2.secondsDecimalDigits = 0; - options2.millisecondsDecimalDigits = 0; - } - let result = []; - const floorDecimals = (value2, decimalDigits) => { - const flooredInterimValue = Math.floor(value2 * 10 ** decimalDigits + SECOND_ROUNDING_EPSILON); - const flooredValue = Math.round(flooredInterimValue) / 10 ** decimalDigits; - return flooredValue.toFixed(decimalDigits); - }; - const add4 = (value2, long, short, valueString) => { - if ((result.length === 0 || !options2.colonNotation) && isZero(value2) && !(options2.colonNotation && short === "m")) { - return; - } - valueString ??= String(value2); - if (options2.colonNotation) { - const wholeDigits = valueString.includes(".") ? valueString.split(".")[0].length : valueString.length; - const minLength = result.length > 0 ? 2 : 1; - valueString = "0".repeat(Math.max(0, minLength - wholeDigits)) + valueString; - } else { - valueString += options2.verbose ? " " + pluralize(long, value2) : short; - } - result.push(valueString); - }; - const parsed = parseMilliseconds(milliseconds2); - const days2 = BigInt(parsed.days); - if (options2.hideYearAndDays) { - add4(BigInt(days2) * 24n + BigInt(parsed.hours), "hour", "h"); - } else { - if (options2.hideYear) { - add4(days2, "day", "d"); - } else { - add4(days2 / 365n, "year", "y"); - add4(days2 % 365n, "day", "d"); - } - add4(Number(parsed.hours), "hour", "h"); - } - add4(Number(parsed.minutes), "minute", "m"); - if (!options2.hideSeconds) { - if (options2.separateMilliseconds || options2.formatSubMilliseconds || !options2.colonNotation && milliseconds2 < 1e3 && !options2.subSecondsAsDecimals) { - const seconds = Number(parsed.seconds); - const milliseconds3 = Number(parsed.milliseconds); - const microseconds = Number(parsed.microseconds); - const nanoseconds = Number(parsed.nanoseconds); - add4(seconds, "second", "s"); - if (options2.formatSubMilliseconds) { - add4(milliseconds3, "millisecond", "ms"); - add4(microseconds, "microsecond", "\xB5s"); - add4(nanoseconds, "nanosecond", "ns"); - } else { - const millisecondsAndBelow = milliseconds3 + microseconds / 1e3 + nanoseconds / 1e6; - const millisecondsDecimalDigits = typeof options2.millisecondsDecimalDigits === "number" ? options2.millisecondsDecimalDigits : 0; - const roundedMilliseconds = millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow); - const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : roundedMilliseconds; - add4( - Number.parseFloat(millisecondsString), - "millisecond", - "ms", - millisecondsString - ); - } - } else { - const seconds = (isBigInt ? Number(milliseconds2 % ONE_DAY_IN_MILLISECONDS) : milliseconds2) / 1e3 % 60; - const secondsDecimalDigits = typeof options2.secondsDecimalDigits === "number" ? options2.secondsDecimalDigits : 1; - const secondsFixed = floorDecimals(seconds, secondsDecimalDigits); - const secondsString = options2.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, ""); - add4(Number.parseFloat(secondsString), "second", "s", secondsString); - } - } - if (result.length === 0) { - return sign + "0" + (options2.verbose ? " milliseconds" : "ms"); - } - const separator = options2.colonNotation ? ":" : " "; - if (typeof options2.unitCount === "number") { - result = result.slice(0, Math.max(options2.unitCount, 1)); - } - return sign + result.join(separator); -} -var isZero, pluralize, SECOND_ROUNDING_EPSILON, ONE_DAY_IN_MILLISECONDS; -var init_pretty_ms = __esm({ - "node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js"() { - init_parse_ms(); - isZero = (value2) => value2 === 0 || value2 === 0n; - pluralize = (word, count2) => count2 === 1 || count2 === 1n ? word : `${word}s`; - SECOND_ROUNDING_EPSILON = 1e-7; - ONE_DAY_IN_MILLISECONDS = 24n * 60n * 60n * 1000n; - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js -var import_dayjs, import_isToday; -var init_smarttime_plugins = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js"() { - init_dist_ts7(); - init_dist_ts3(); - init_dist_ts(); - init_croner(); - init_date_fns(); - import_dayjs = __toESM(require_dayjs_min(), 1); - import_isToday = __toESM(require_isToday(), 1); - init_pretty_ms(); - import_dayjs.default.extend(import_isToday.default); - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronparser.js -var CronParser; -var init_smarttime_classes_cronparser = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronparser.js"() { - init_smarttime_plugins(); - CronParser = class { - get cronArray() { - return this.cronExpression.split(" "); - } - constructor(cronExpressionArg) { - this.cronExpression = cronExpressionArg; - if (this.cronArray.length < 6) { - throw new Error("CronParser needs second level accuracy"); - } - } - getNextPartMatch(cronPart, startValue, moduloArg) { - if (cronPart === "*") { - return startValue; - } - if (cronPart.includes("/")) { - const every3 = parseInt(cronPart.split("/")[1], 10); - const findEvenMatch = (recursionStartArg) => { - if (recursionStartArg % every3 === 0) { - return recursionStartArg; - } else { - return findEvenMatch(recursionStartArg + 1); - } - }; - return findEvenMatch(startValue); - } - if (parseInt(cronPart, 10) || cronPart === "0") { - const match2 = parseInt(cronPart, 10); - return match2; - } - } - msToNext() { - const cronArray = this.cronArray; - const secondExpression = cronArray[0]; - const minuteExpression = cronArray[1]; - const hourExpression = cronArray[2]; - const dayExpression = cronArray[3]; - const monthExpression = cronArray[4]; - const yearExpression = cronArray[5]; - let currentDate = /* @__PURE__ */ new Date(); - let currentSecond = currentDate.getSeconds() + 1; - let currentMinute = currentDate.getMinutes(); - let currentHour = currentDate.getHours(); - let currentDay = currentDate.getDate(); - let currentMonth = currentDate.getMonth(); - let currentYear = currentDate.getFullYear(); - const targetSecond = this.getNextPartMatch(secondExpression, currentSecond, 59); - if (targetSecond < currentSecond) { - currentMinute = (currentMinute + 1) % 59; - } - const targetMinute = this.getNextPartMatch(minuteExpression, currentMinute, 59); - if (targetMinute < currentMinute) { - currentHour = (currentHour + 1) % 23; - } - const targetHour = this.getNextPartMatch(hourExpression, currentHour, 23); - if (targetHour < currentHour) { - currentDay = (currentDay + 1) % 30; - } - const targetDay = currentDay; - if (targetDay < currentDay) { - currentMonth = (currentMonth + 1) % 11; - } - const targetMonth = currentMonth; - if (targetMonth < currentMonth) { - currentYear = currentYear + 1; - } - const targetYear = currentYear; - const targetDate = new Date(targetYear, targetMonth, targetDay, targetHour, targetMinute, targetSecond); - const targetTime = targetDate.getTime(); - return targetTime - Date.now(); - } - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronjob.js -var CronJob; -var init_smarttime_classes_cronjob = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronjob.js"() { - init_smarttime_plugins(); - init_smarttime_classes_cronmanager(); - init_smarttime_classes_cronparser(); - CronJob = class { - constructor(cronManager, cronExpressionArg, jobFunction) { - this.status = "initial"; - this.nextExecutionUnix = 0; - this.cronExpression = cronExpressionArg; - this.jobFunction = jobFunction; - this.cronParser = new croner_exports.Cron(cronExpressionArg); - } - /** - * checks wether the cronjob needs to be executed - */ - checkExecution() { - if (this.nextExecutionUnix === 0) { - this.getNextExecutionTime(); - } - if (Date.now() > this.nextExecutionUnix) { - const maybePromise = this.jobFunction(this.nextExecutionUnix); - if (maybePromise instanceof Promise) { - maybePromise.catch((e12) => console.log(e12)); - } - this.nextExecutionUnix = this.getNextExecutionTime(); - } - return this.nextExecutionUnix; - } - getNextExecutionTime() { - return this.nextExecutionUnix = Date.now() + this.getTimeToNextExecution(); - } - /** - * gets the time to next execution - */ - getTimeToNextExecution() { - return this.cronParser.msToNext(); - } - start() { - this.status = "started"; - } - stop() { - this.status = "stopped"; - } - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.units.js -var units, getMilliSecondsFromUnits, getMilliSecondsAsHumanReadableString, getMilliSecondsAsHumanReadableAgoTime; -var init_smarttime_units = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.units.js"() { - init_smarttime_plugins(); - units = { - years: (timesArg = 1) => { - return timesArg * 3154e7; - }, - months: (timesArg = 1) => { - return timesArg * 2628e6; - }, - weeks: (timesArg = 1) => { - return timesArg * 6048e5; - }, - days: (timesArg = 1) => { - return timesArg * 864e5; - }, - hours: (timesArg = 1) => { - return timesArg * 36e5; - }, - minutes: (timesArg = 1) => { - return timesArg * 6e4; - }, - seconds: (timesArg = 1) => { - return timesArg * 1e3; - } - }; - getMilliSecondsFromUnits = (combinationArg) => { - let timeInMilliseconds = 0; - let addMilliSeconds = (milliSecondsArg) => { - timeInMilliseconds = timeInMilliseconds + milliSecondsArg; - }; - if (combinationArg.years) { - addMilliSeconds(units.years(combinationArg.years)); - } - if (combinationArg.months) { - addMilliSeconds(units.months(combinationArg.months)); - } - if (combinationArg.weeks) { - addMilliSeconds(units.weeks(combinationArg.weeks)); - } - if (combinationArg.days) { - addMilliSeconds(units.days(combinationArg.days)); - } - if (combinationArg.hours) { - addMilliSeconds(units.hours(combinationArg.hours)); - } - if (combinationArg.minutes) { - addMilliSeconds(units.minutes(combinationArg.minutes)); - } - if (combinationArg.seconds) { - addMilliSeconds(units.seconds(combinationArg.seconds)); - } - return timeInMilliseconds; - }; - getMilliSecondsAsHumanReadableString = (milliSecondsArg) => { - return prettyMilliseconds(milliSecondsArg); - }; - getMilliSecondsAsHumanReadableAgoTime = (timeStampArg) => { - return date_fns_exports.formatDistanceToNow(new Date(timeStampArg)); - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronmanager.js -var CronManager; -var init_smarttime_classes_cronmanager = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronmanager.js"() { - init_smarttime_plugins(); - init_smarttime_classes_cronjob(); - init_smarttime_units(); - CronManager = class { - constructor() { - this.status = "stopped"; - this.cronjobs = new dist_ts_exports6.ObjectMap(); - } - addCronjob(cronIdentifierArg, cronFunctionArg) { - const newCronJob = new CronJob(this, cronIdentifierArg, cronFunctionArg); - this.cronjobs.add(newCronJob); - if (this.status === "started") { - newCronJob.start(); - } - return newCronJob; - } - removeCronjob(cronjobArg) { - cronjobArg.stop(); - this.cronjobs.remove(cronjobArg); - } - /** - * starts the cronjob - */ - start() { - if (this.status !== "started") { - this.status = "started"; - for (const cronJob of this.cronjobs.getArray()) { - cronJob.start(); - } - this.runCronCycle(); - } - } - async runCronCycle() { - this.executionTimeout = new dist_ts_exports3.Timeout(0); - do { - let nextRunningCronjob; - for (const cronJob of this.cronjobs.getArray()) { - cronJob.checkExecution(); - if (!nextRunningCronjob || cronJob.getTimeToNextExecution() < nextRunningCronjob.getTimeToNextExecution()) { - nextRunningCronjob = cronJob; - } - } - if (nextRunningCronjob) { - this.executionTimeout = new dist_ts_exports3.Timeout(nextRunningCronjob.getTimeToNextExecution()); - console.log(`Next CronJob scheduled in ${getMilliSecondsAsHumanReadableString(this.executionTimeout.getTimeLeft())}`); - } else { - this.executionTimeout = new dist_ts_exports3.Timeout(1e3); - console.log("no cronjobs specified! Checking again in 1 second"); - } - await this.executionTimeout.promise; - } while (this.status === "started"); - } - /** - * stops all cronjobs - */ - stop() { - if (this.status === "started") { - this.status = "stopped"; - this.executionTimeout.cancel(); - } else { - console.log(`You tried to stop a CronManager that was not actually started.`); - } - for (const cron of this.cronjobs.getArray()) { - cron.stop(); - } - } - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.extendeddate.js -var ExtendedDate; -var init_smarttime_classes_extendeddate = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.extendeddate.js"() { - init_smarttime_plugins(); - init_smarttime_units(); - ExtendedDate = class _ExtendedDate extends Date { - // STATIC factories - static fromMillis(milliSeconds) { - return new _ExtendedDate(milliSeconds); - } - static fromDate(dateArg) { - return new _ExtendedDate(dateArg.getTime()); - } - static fromEuropeanDate(europeanDate) { - const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDate); - const date = new Date( - parseFloat(dateArray[3]), - // year - parseFloat(dateArray[2]) - 1, - // month - parseFloat(dateArray[1]) - // day - ); - const unixMilli = date.getTime(); - return new _ExtendedDate(unixMilli); - } - /** - * creates an Extended date from a hypedDate like "2018-03-28" - * @param dateString - */ - static fromHyphedDate(dateString) { - const dateMillis = new Date(dateString).getTime(); - return new _ExtendedDate(dateMillis); - } - /** - * Same as .fromEuropeanDate(), but accepts additional timeArg and zoneArg - */ - static fromEuropeanDateAndTime(europeanDateArg, timeArg = "12:00:00", zoneArg = "Europe/Berlin") { - const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDateArg); - const sliceDate = (dateString) => { - return `0${dateString}`.slice(-2); - }; - const dateTimeString = `${dateArray[3]}-${sliceDate(dateArray[2])}-${sliceDate(dateArray[1])}T${timeArg}`; - const date = import_dayjs.default(dateTimeString); - const unixMilli = date.toDate().getTime(); - return new _ExtendedDate(unixMilli); - } - constructor(unixMilli = Date.now()) { - super(unixMilli); - } - // - exportToEuropeanDate() { - const units2 = this.exportToUnits(); - return `${units2.dayString}.${units2.monthString}.${units2.yearString}`; - } - exportToHyphedSortableDate() { - const units2 = this.exportToUnits(); - return `${units2.yearString}-${units2.monthString}-${units2.dayString}`; - } - /** - * exports units - */ - exportToUnits() { - const monthsArray = [ - "January", - "February", - "March", - "April", - "May", - "June", - "July", - "August", - "September", - "October", - "November", - "December" - ]; - const daysArray = [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ]; - return { - year: this.getFullYear(), - yearString: `${this.getFullYear()}`, - month: this.getMonth() + 1, - monthString: ("0" + (this.getMonth() + 1)).slice(-2), - monthName: monthsArray[this.getMonth()], - day: this.getDate(), - dayString: ("0" + this.getDate()).slice(-2), - dayOfTheWeek: this.getDay(), - dayOfTheWeekName: daysArray[this.getDay()] - }; - } - format(formatArg) { - return import_dayjs.default(this.getTime()).format(formatArg); - } - /** - * boolean checks - */ - isToday() { - return import_dayjs.default(this.getTime()).isToday(); - } - lessTimePassedToNow(unitArgs) { - const maxPassedUnixTime = getMilliSecondsFromUnits(unitArgs); - const actualPassedUnixTime = Date.now() - this.getTime(); - return actualPassedUnixTime < maxPassedUnixTime; - } - moreTimePassedToNow(unitArgs) { - return !this.lessTimePassedToNow(unitArgs); - } - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.hrtmeasurement.js -var HrtMeasurement; -var init_smarttime_classes_hrtmeasurement = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.hrtmeasurement.js"() { - HrtMeasurement = class { - constructor() { - this.nanoSeconds = null; - this.milliSeconds = null; - this._milliStart = null; - this._milliDiff = null; - this._started = false; - } - /** - * start the measurement - */ - start() { - this._started = true; - this._milliStart = Date.now(); - } - /** - * stop the measurement - */ - stop() { - if (this._started === false) { - console.log("Hasn't started yet"); - return; - } - this._milliDiff = Date.now() - this._milliStart; - this.nanoSeconds = this._milliDiff * 1e3; - this.milliSeconds = this._milliDiff; - return this; - } - /** - * reset the measurement - */ - reset() { - this.nanoSeconds = null; - this.milliSeconds = null; - this._milliStart = null; - this._milliDiff = null; - this._started = false; - } - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.interval.js -var Interval; -var init_smarttime_classes_interval = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.interval.js"() { - init_smarttime_plugins(); - Interval = class { - constructor(intervalMillisencondsArg) { - this.status = "initial"; - this.statusAuthorization = null; - this.intervalJobs = []; - this.intervalMilliseconds = intervalMillisencondsArg; - } - start() { - this.status = "started"; - const statusAuth = /* @__PURE__ */ new Date(); - this.statusAuthorization = statusAuth; - const runInterval = async () => { - while (this.status === "started" && this.statusAuthorization === statusAuth) { - await dist_ts_exports3.delayFor(this.intervalMilliseconds); - this.executeIntervalJobs(); - } - }; - runInterval(); - } - stop() { - this.status = "stopped"; - this.statusAuthorization = null; - } - addIntervalJob(funcArg) { - this.intervalJobs.push(funcArg); - } - executeIntervalJobs() { - for (const funcArg of this.intervalJobs) { - funcArg(); - } - } - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timestamp.js -var TimeStamp; -var init_smarttime_classes_timestamp = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timestamp.js"() { - init_smarttime_plugins(); - TimeStamp = class _TimeStamp { - /** - * returns new TimeStamp from milliseconds - */ - static fromMilliSeconds(milliSecondsArg) { - return new _TimeStamp(milliSecondsArg); - } - /** - * returns new TimeStamp for now with change set - * @param timeStampArg - */ - static fromTimeStamp(timeStampArg) { - const localTimeStamp = new _TimeStamp(); - localTimeStamp.change = localTimeStamp.milliSeconds - timeStampArg.milliSeconds; - return localTimeStamp; - } - constructor(creatorArg) { - this.change = null; - if (!creatorArg) { - this.date = /* @__PURE__ */ new Date(); - } else if (typeof creatorArg === "number") { - this.date = new Date(creatorArg); - } - this.milliSeconds = this.date.getTime(); - this.epochtime = Math.floor(this.milliSeconds / 1e3); - } - /** - * returns a boolean for wether the timestamp is older than another timestamp - * @param TimeStampArg - * @param tresholdTimeArg - */ - isOlderThanOtherTimeStamp(TimeStampArg, tresholdTimeArg = 0) { - if (this.milliSeconds < TimeStampArg.milliSeconds - tresholdTimeArg) { - return true; - } else { - return false; - } - } - /** - * Is the current instance older than the argument - * @param TimeStampArg - */ - isOlderThan(TimeStampArg, tresholdTimeArg = 0) { - if (this.milliSeconds + tresholdTimeArg < TimeStampArg.milliSeconds) { - return true; - } else { - return false; - } - } - /** - * returns a boolean for wether the timestamp is younger than another timestamp - * @param TimeStampArg - * @param tresholdTimeArg - */ - isYoungerThanOtherTimeStamp(TimeStampArg, tresholdTimeArg = 0) { - if (this.milliSeconds > TimeStampArg.milliSeconds + tresholdTimeArg) { - return true; - } else { - return false; - } - } - isYoungerThanMilliSeconds(millisecondArg) { - const nowTimeStamp = new _TimeStamp(); - const compareEpochTime = nowTimeStamp.epochtime - millisecondArg; - const compareTimeStamp = new _TimeStamp(compareEpochTime); - return this.isYoungerThanOtherTimeStamp(compareTimeStamp); - } - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timer.js -var Timer; -var init_smarttime_classes_timer = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timer.js"() { - init_smarttime_plugins(); - init_smarttime_classes_timestamp(); - Timer = class { - get timeLeft() { - return this.timeInMilliseconds - this.pausedAt.change; - } - constructor(timeInMillisecondsArg) { - this.state = "initiated"; - this.completedDeferred = dist_ts_exports.defer(); - this.timeInMilliseconds = timeInMillisecondsArg; - this.completed = this.completedDeferred.promise; - } - /** - * starts the timer - */ - start() { - if (!this.startedAt) { - this.currentTimeout = setTimeout(() => { - this.completedDeferred.resolve(); - }, this.timeInMilliseconds); - this.startedAt = new TimeStamp(); - } else { - throw new Error("timer has been started before. Please use resume instead"); - } - } - pause() { - if (this.startedAt) { - clearTimeout(this.currentTimeout); - this.currentTimeout = null; - this.pausedAt = TimeStamp.fromTimeStamp(this.startedAt); - } - } - resume() { - if (this.startedAt) { - this.currentTimeout = setTimeout(() => { - this.completedDeferred.resolve(); - }, this.timeLeft); - } else { - throw new Error("timer has NOT been started before. Please use .start() instead"); - } - } - reset() { - this.pause(); - this.startedAt = null; - this.pausedAt = null; - } - }; - } -}); - -// node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/index.js -var dist_ts_exports7 = {}; -__export(dist_ts_exports7, { - CronJob: () => CronJob, - CronManager: () => CronManager, - ExtendedDate: () => ExtendedDate, - HrtMeasurement: () => HrtMeasurement, - Interval: () => Interval, - TimeStamp: () => TimeStamp, - Timer: () => Timer, - getMilliSecondsAsHumanReadableAgoTime: () => getMilliSecondsAsHumanReadableAgoTime, - getMilliSecondsAsHumanReadableString: () => getMilliSecondsAsHumanReadableString, - getMilliSecondsFromUnits: () => getMilliSecondsFromUnits, - units: () => units -}); -var init_dist_ts6 = __esm({ - "node_modules/.pnpm/@push.rocks+smarttime@4.1.1/node_modules/@push.rocks/smarttime/dist_ts/index.js"() { - init_smarttime_classes_cronmanager(); - init_smarttime_classes_cronjob(); - init_smarttime_classes_extendeddate(); - init_smarttime_classes_hrtmeasurement(); - init_smarttime_classes_interval(); - init_smarttime_classes_timer(); - init_smarttime_classes_timestamp(); - init_smarttime_units(); - } -}); - -// node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/SymbolTreeNode.js -var require_SymbolTreeNode = __commonJS({ - "node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/SymbolTreeNode.js"(exports, module) { - "use strict"; - module.exports = class SymbolTreeNode { - constructor() { - this.parent = null; - this.previousSibling = null; - this.nextSibling = null; - this.firstChild = null; - this.lastChild = null; - this.childrenVersion = 0; - this.childIndexCachedUpTo = null; - this.cachedIndex = -1; - this.cachedIndexVersion = NaN; - } - get isAttached() { - return Boolean(this.parent || this.previousSibling || this.nextSibling); - } - get hasChildren() { - return Boolean(this.firstChild); - } - childrenChanged() { - this.childrenVersion = this.childrenVersion + 1 & 4294967295; - this.childIndexCachedUpTo = null; - } - getCachedIndex(parentNode2) { - if (this.cachedIndexVersion !== parentNode2.childrenVersion) { - this.cachedIndexVersion = NaN; - return -1; - } - return this.cachedIndex; - } - setCachedIndex(parentNode2, index3) { - this.cachedIndexVersion = parentNode2.childrenVersion; - this.cachedIndex = index3; - } - }; - } -}); - -// node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/TreePosition.js -var require_TreePosition = __commonJS({ - "node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/TreePosition.js"(exports, module) { - "use strict"; - module.exports = Object.freeze({ - // same as DOM DOCUMENT_POSITION_ - DISCONNECTED: 1, - PRECEDING: 2, - FOLLOWING: 4, - CONTAINS: 8, - CONTAINED_BY: 16 - }); - } -}); - -// node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/TreeIterator.js -var require_TreeIterator = __commonJS({ - "node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/TreeIterator.js"(exports, module) { - "use strict"; - var TREE = /* @__PURE__ */ Symbol(); - var ROOT = /* @__PURE__ */ Symbol(); - var NEXT = /* @__PURE__ */ Symbol(); - var ITERATE_FUNC = /* @__PURE__ */ Symbol(); - var TreeIterator = class { - constructor(tree, root6, firstResult, iterateFunction) { - this[TREE] = tree; - this[ROOT] = root6; - this[NEXT] = firstResult; - this[ITERATE_FUNC] = iterateFunction; - } - next() { - const tree = this[TREE]; - const iterateFunc = this[ITERATE_FUNC]; - const root6 = this[ROOT]; - if (!this[NEXT]) { - return { - done: true, - value: root6 - }; - } - const value2 = this[NEXT]; - if (iterateFunc === 1) { - this[NEXT] = tree._node(value2).previousSibling; - } else if (iterateFunc === 2) { - this[NEXT] = tree._node(value2).nextSibling; - } else if (iterateFunc === 3) { - this[NEXT] = tree._node(value2).parent; - } else if (iterateFunc === 4) { - this[NEXT] = tree.preceding(value2, { root: root6 }); - } else { - this[NEXT] = tree.following(value2, { root: root6 }); - } - return { - done: false, - value: value2 - }; - } - }; - Object.defineProperty(TreeIterator.prototype, Symbol.iterator, { - value: function() { - return this; - }, - writable: false - }); - TreeIterator.PREV = 1; - TreeIterator.NEXT = 2; - TreeIterator.PARENT = 3; - TreeIterator.PRECEDING = 4; - TreeIterator.FOLLOWING = 5; - Object.freeze(TreeIterator); - Object.freeze(TreeIterator.prototype); - module.exports = TreeIterator; - } -}); - -// node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/SymbolTree.js -var require_SymbolTree = __commonJS({ - "node_modules/.pnpm/symbol-tree@3.2.4/node_modules/symbol-tree/lib/SymbolTree.js"(exports, module) { - "use strict"; - var SymbolTreeNode = require_SymbolTreeNode(); - var TreePosition = require_TreePosition(); - var TreeIterator = require_TreeIterator(); - function returnTrue() { - return true; - } - function reverseArrayIndex(array, reverseIndex) { - return array[array.length - 1 - reverseIndex]; - } - var SymbolTree = class { - /** - * @constructor - * @alias module:symbol-tree - * @param {string} [description='SymbolTree data'] Description used for the Symbol - */ - constructor(description) { - this.symbol = Symbol(description || "SymbolTree data"); - } - /** - * You can use this function to (optionally) initialize an object right after its creation, - * to take advantage of V8's fast properties. Also useful if you would like to - * freeze your object. - * - * `O(1)` - * - * @method - * @alias module:symbol-tree#initialize - * @param {Object} object - * @return {Object} object - */ - initialize(object) { - this._node(object); - return object; - } - _node(object) { - if (!object) { - return null; - } - const node2 = object[this.symbol]; - if (node2) { - return node2; - } - return object[this.symbol] = new SymbolTreeNode(); - } - /** - * Returns `true` if the object has any children. Otherwise it returns `false`. - * - * * `O(1)` - * - * @method hasChildren - * @memberOf module:symbol-tree# - * @param {Object} object - * @return {Boolean} - */ - hasChildren(object) { - return this._node(object).hasChildren; - } - /** - * Returns the first child of the given object. - * - * * `O(1)` - * - * @method firstChild - * @memberOf module:symbol-tree# - * @param {Object} object - * @return {Object} - */ - firstChild(object) { - return this._node(object).firstChild; - } - /** - * Returns the last child of the given object. - * - * * `O(1)` - * - * @method lastChild - * @memberOf module:symbol-tree# - * @param {Object} object - * @return {Object} - */ - lastChild(object) { - return this._node(object).lastChild; - } - /** - * Returns the previous sibling of the given object. - * - * * `O(1)` - * - * @method previousSibling - * @memberOf module:symbol-tree# - * @param {Object} object - * @return {Object} - */ - previousSibling(object) { - return this._node(object).previousSibling; - } - /** - * Returns the next sibling of the given object. - * - * * `O(1)` - * - * @method nextSibling - * @memberOf module:symbol-tree# - * @param {Object} object - * @return {Object} - */ - nextSibling(object) { - return this._node(object).nextSibling; - } - /** - * Return the parent of the given object. - * - * * `O(1)` - * - * @method parent - * @memberOf module:symbol-tree# - * @param {Object} object - * @return {Object} - */ - parent(object) { - return this._node(object).parent; - } - /** - * Find the inclusive descendant that is last in tree order of the given object. - * - * * `O(n)` (worst case) where `n` is the depth of the subtree of `object` - * - * @method lastInclusiveDescendant - * @memberOf module:symbol-tree# - * @param {Object} object - * @return {Object} - */ - lastInclusiveDescendant(object) { - let lastChild; - let current = object; - while (lastChild = this._node(current).lastChild) { - current = lastChild; - } - return current; - } - /** - * Find the preceding object (A) of the given object (B). - * An object A is preceding an object B if A and B are in the same tree - * and A comes before B in tree order. - * - * * `O(n)` (worst case) - * * `O(1)` (amortized when walking the entire tree) - * - * @method preceding - * @memberOf module:symbol-tree# - * @param {Object} object - * @param {Object} [options] - * @param {Object} [options.root] If set, `root` must be an inclusive ancestor - * of the return value (or else null is returned). This check _assumes_ - * that `root` is also an inclusive ancestor of the given `object` - * @return {?Object} - */ - preceding(object, options2) { - const treeRoot = options2 && options2.root; - if (object === treeRoot) { - return null; - } - const previousSibling = this._node(object).previousSibling; - if (previousSibling) { - return this.lastInclusiveDescendant(previousSibling); - } - return this._node(object).parent; - } - /** - * Find the following object (A) of the given object (B). - * An object A is following an object B if A and B are in the same tree - * and A comes after B in tree order. - * - * * `O(n)` (worst case) where `n` is the amount of objects in the entire tree - * * `O(1)` (amortized when walking the entire tree) - * - * @method following - * @memberOf module:symbol-tree# - * @param {!Object} object - * @param {Object} [options] - * @param {Object} [options.root] If set, `root` must be an inclusive ancestor - * of the return value (or else null is returned). This check _assumes_ - * that `root` is also an inclusive ancestor of the given `object` - * @param {Boolean} [options.skipChildren=false] If set, ignore the children of `object` - * @return {?Object} - */ - following(object, options2) { - const treeRoot = options2 && options2.root; - const skipChildren = options2 && options2.skipChildren; - const firstChild = !skipChildren && this._node(object).firstChild; - if (firstChild) { - return firstChild; - } - let current = object; - do { - if (current === treeRoot) { - return null; - } - const nextSibling = this._node(current).nextSibling; - if (nextSibling) { - return nextSibling; - } - current = this._node(current).parent; - } while (current); - return null; - } - /** - * Append all children of the given object to an array. - * - * * `O(n)` where `n` is the amount of children of the given `parent` - * - * @method childrenToArray - * @memberOf module:symbol-tree# - * @param {Object} parent - * @param {Object} [options] - * @param {Object[]} [options.array=[]] - * @param {Function} [options.filter] Function to test each object before it is added to the array. - * Invoked with arguments (object). Should return `true` if an object - * is to be included. - * @param {*} [options.thisArg] Value to use as `this` when executing `filter`. - * @return {Object[]} - */ - childrenToArray(parent, options2) { - const array = options2 && options2.array || []; - const filter2 = options2 && options2.filter || returnTrue; - const thisArg = options2 && options2.thisArg || void 0; - const parentNode2 = this._node(parent); - let object = parentNode2.firstChild; - let index3 = 0; - while (object) { - const node2 = this._node(object); - node2.setCachedIndex(parentNode2, index3); - if (filter2.call(thisArg, object)) { - array.push(object); - } - object = node2.nextSibling; - ++index3; - } - return array; - } - /** - * Append all inclusive ancestors of the given object to an array. - * - * * `O(n)` where `n` is the amount of ancestors of the given `object` - * - * @method ancestorsToArray - * @memberOf module:symbol-tree# - * @param {Object} object - * @param {Object} [options] - * @param {Object[]} [options.array=[]] - * @param {Function} [options.filter] Function to test each object before it is added to the array. - * Invoked with arguments (object). Should return `true` if an object - * is to be included. - * @param {*} [options.thisArg] Value to use as `this` when executing `filter`. - * @return {Object[]} - */ - ancestorsToArray(object, options2) { - const array = options2 && options2.array || []; - const filter2 = options2 && options2.filter || returnTrue; - const thisArg = options2 && options2.thisArg || void 0; - let ancestor = object; - while (ancestor) { - if (filter2.call(thisArg, ancestor)) { - array.push(ancestor); - } - ancestor = this._node(ancestor).parent; - } - return array; - } - /** - * Append all descendants of the given object to an array (in tree order). - * - * * `O(n)` where `n` is the amount of objects in the sub-tree of the given `object` - * - * @method treeToArray - * @memberOf module:symbol-tree# - * @param {Object} root - * @param {Object} [options] - * @param {Object[]} [options.array=[]] - * @param {Function} [options.filter] Function to test each object before it is added to the array. - * Invoked with arguments (object). Should return `true` if an object - * is to be included. - * @param {*} [options.thisArg] Value to use as `this` when executing `filter`. - * @return {Object[]} - */ - treeToArray(root6, options2) { - const array = options2 && options2.array || []; - const filter2 = options2 && options2.filter || returnTrue; - const thisArg = options2 && options2.thisArg || void 0; - let object = root6; - while (object) { - if (filter2.call(thisArg, object)) { - array.push(object); - } - object = this.following(object, { root: root6 }); - } - return array; - } - /** - * Iterate over all children of the given object - * - * * `O(1)` for a single iteration - * - * @method childrenIterator - * @memberOf module:symbol-tree# - * @param {Object} parent - * @param {Object} [options] - * @param {Boolean} [options.reverse=false] - * @return {Object} An iterable iterator (ES6) - */ - childrenIterator(parent, options2) { - const reverse = options2 && options2.reverse; - const parentNode2 = this._node(parent); - return new TreeIterator( - this, - parent, - reverse ? parentNode2.lastChild : parentNode2.firstChild, - reverse ? TreeIterator.PREV : TreeIterator.NEXT - ); - } - /** - * Iterate over all the previous siblings of the given object. (in reverse tree order) - * - * * `O(1)` for a single iteration - * - * @method previousSiblingsIterator - * @memberOf module:symbol-tree# - * @param {Object} object - * @return {Object} An iterable iterator (ES6) - */ - previousSiblingsIterator(object) { - return new TreeIterator( - this, - object, - this._node(object).previousSibling, - TreeIterator.PREV - ); - } - /** - * Iterate over all the next siblings of the given object. (in tree order) - * - * * `O(1)` for a single iteration - * - * @method nextSiblingsIterator - * @memberOf module:symbol-tree# - * @param {Object} object - * @return {Object} An iterable iterator (ES6) - */ - nextSiblingsIterator(object) { - return new TreeIterator( - this, - object, - this._node(object).nextSibling, - TreeIterator.NEXT - ); - } - /** - * Iterate over all inclusive ancestors of the given object - * - * * `O(1)` for a single iteration - * - * @method ancestorsIterator - * @memberOf module:symbol-tree# - * @param {Object} object - * @return {Object} An iterable iterator (ES6) - */ - ancestorsIterator(object) { - return new TreeIterator( - this, - object, - object, - TreeIterator.PARENT - ); - } - /** - * Iterate over all descendants of the given object (in tree order). - * - * Where `n` is the amount of objects in the sub-tree of the given `root`: - * - * * `O(n)` (worst case for a single iteration) - * * `O(n)` (amortized, when completing the iterator) - * - * @method treeIterator - * @memberOf module:symbol-tree# - * @param {Object} root - * @param {Object} options - * @param {Boolean} [options.reverse=false] - * @return {Object} An iterable iterator (ES6) - */ - treeIterator(root6, options2) { - const reverse = options2 && options2.reverse; - return new TreeIterator( - this, - root6, - reverse ? this.lastInclusiveDescendant(root6) : root6, - reverse ? TreeIterator.PRECEDING : TreeIterator.FOLLOWING - ); - } - /** - * Find the index of the given object (the number of preceding siblings). - * - * * `O(n)` where `n` is the amount of preceding siblings - * * `O(1)` (amortized, if the tree is not modified) - * - * @method index - * @memberOf module:symbol-tree# - * @param {Object} child - * @return {Number} The number of preceding siblings, or -1 if the object has no parent - */ - index(child) { - const childNode = this._node(child); - const parentNode2 = this._node(childNode.parent); - if (!parentNode2) { - return -1; - } - let currentIndex = childNode.getCachedIndex(parentNode2); - if (currentIndex >= 0) { - return currentIndex; - } - currentIndex = 0; - let object = parentNode2.firstChild; - if (parentNode2.childIndexCachedUpTo) { - const cachedUpToNode = this._node(parentNode2.childIndexCachedUpTo); - object = cachedUpToNode.nextSibling; - currentIndex = cachedUpToNode.getCachedIndex(parentNode2) + 1; - } - while (object) { - const node2 = this._node(object); - node2.setCachedIndex(parentNode2, currentIndex); - if (object === child) { - break; - } - ++currentIndex; - object = node2.nextSibling; - } - parentNode2.childIndexCachedUpTo = child; - return currentIndex; - } - /** - * Calculate the number of children. - * - * * `O(n)` where `n` is the amount of children - * * `O(1)` (amortized, if the tree is not modified) - * - * @method childrenCount - * @memberOf module:symbol-tree# - * @param {Object} parent - * @return {Number} - */ - childrenCount(parent) { - const parentNode2 = this._node(parent); - if (!parentNode2.lastChild) { - return 0; - } - return this.index(parentNode2.lastChild) + 1; - } - /** - * Compare the position of an object relative to another object. A bit set is returned: - * - *
");
- }
- },
- tableHead() {
- this.lineEndingIfNeeded();
- this.tag("");
- },
- tableHeader() {
- const tableAlign = this.getData("tableAlign");
- const tableColumn = this.getData("tableColumn");
- const align = alignment[tableAlign[tableColumn]];
- this.lineEndingIfNeeded();
- this.tag("| ");
- },
- tableRow() {
- this.setData("tableColumn", 0);
- this.lineEndingIfNeeded();
- this.tag(" | |
"); - } - function onexitblockquote() { - tightStack.pop(); - lineEndingIfNeeded(); - tag(""); - setData("slurpAllLineEndings"); - } - function onenterparagraph() { - if (!tightStack[tightStack.length - 1]) { - lineEndingIfNeeded(); - tag("
"); - } - setData("slurpAllLineEndings"); - } - function onexitparagraph() { - if (tightStack[tightStack.length - 1]) { - setData("slurpAllLineEndings", true); - } else { - tag("
"); - } - } - function onentercodefenced() { - lineEndingIfNeeded(); - tag("");
- setData("slurpOneLineEnding", true);
- }
- setData("fencesCount", count2 + 1);
- }
- function onentercodeindented() {
- lineEndingIfNeeded();
- tag("");
- }
- function onexitflowcode() {
- const count2 = getData("fencesCount");
- if (count2 !== void 0 && count2 < 2 && data.tightStack.length > 0 && !getData("lastWasTag")) {
- lineEnding2();
- }
- if (getData("flowCodeSeenData")) {
- lineEndingIfNeeded();
- }
- tag("
");
- if (count2 !== void 0 && count2 < 2) lineEndingIfNeeded();
- setData("flowCodeSeenData");
- setData("fencesCount");
- setData("slurpOneLineEnding");
- }
- function onenterimage() {
- mediaStack.push({
- image: true
- });
- tags = void 0;
- }
- function onenterlink() {
- mediaStack.push({});
- }
- function onexitlabeltext(token) {
- mediaStack[mediaStack.length - 1].labelId = this.sliceSerialize(token);
- }
- function onexitlabel() {
- mediaStack[mediaStack.length - 1].label = resume();
- }
- function onexitreferencestring(token) {
- mediaStack[mediaStack.length - 1].referenceId = this.sliceSerialize(token);
- }
- function onenterresource() {
- buffer2();
- mediaStack[mediaStack.length - 1].destination = "";
- }
- function onenterresourcedestinationstring() {
- buffer2();
- setData("ignoreEncode", true);
- }
- function onexitresourcedestinationstring() {
- mediaStack[mediaStack.length - 1].destination = resume();
- setData("ignoreEncode");
- }
- function onexitresourcetitlestring() {
- mediaStack[mediaStack.length - 1].title = resume();
- }
- function onexitmedia() {
- let index3 = mediaStack.length - 1;
- const media = mediaStack[index3];
- const id = media.referenceId || media.labelId;
- const context3 = media.destination === void 0 ? definitions[normalizeIdentifier(id)] : media;
- tags = true;
- while (index3--) {
- if (mediaStack[index3].image) {
- tags = void 0;
- break;
- }
- }
- if (media.image) {
- tag('
");
- } else {
- tag(">");
- raw2(media.label);
- tag("");
- }
- mediaStack.pop();
- }
- function onenterdefinition() {
- buffer2();
- mediaStack.push({});
- }
- function onexitdefinitionlabelstring(token) {
- resume();
- mediaStack[mediaStack.length - 1].labelId = this.sliceSerialize(token);
- }
- function onenterdefinitiondestinationstring() {
- buffer2();
- setData("ignoreEncode", true);
- }
- function onexitdefinitiondestinationstring() {
- mediaStack[mediaStack.length - 1].destination = resume();
- setData("ignoreEncode");
- }
- function onexitdefinitiontitlestring() {
- mediaStack[mediaStack.length - 1].title = resume();
- }
- function onexitdefinition() {
- const media = mediaStack[mediaStack.length - 1];
- const id = normalizeIdentifier(media.labelId);
- resume();
- if (!hasOwnProperty2.call(definitions, id)) {
- definitions[id] = mediaStack[mediaStack.length - 1];
- }
- mediaStack.pop();
- }
- function onentercontent() {
- setData("slurpAllLineEndings", true);
- }
- function onexitatxheadingsequence(token) {
- if (getData("headingRank")) return;
- setData("headingRank", this.sliceSerialize(token).length);
- lineEndingIfNeeded();
- tag("");
- }
- function onentersetextheading() {
- buffer2();
- setData("slurpAllLineEndings");
- }
- function onexitsetextheadingtext() {
- setData("slurpAllLineEndings", true);
- }
- function onexitatxheading() {
- tag(" ");
- setData("headingRank");
- }
- function onexitsetextheadinglinesequence(token) {
- setData("headingRank", this.sliceSerialize(token).charCodeAt(0) === 61 ? 1 : 2);
- }
- function onexitsetextheading() {
- const value2 = resume();
- lineEndingIfNeeded();
- tag("");
- raw2(value2);
- tag(" ");
- setData("slurpAllLineEndings");
- setData("headingRank");
- }
- function onexitdata(token) {
- raw2(encode2(this.sliceSerialize(token)));
- }
- function onexitlineending(token) {
- if (getData("slurpAllLineEndings")) {
- return;
- }
- if (getData("slurpOneLineEnding")) {
- setData("slurpOneLineEnding");
- return;
- }
- if (getData("inCodeText")) {
- raw2(" ");
- return;
- }
- raw2(encode2(this.sliceSerialize(token)));
- }
- function onexitcodeflowvalue(token) {
- raw2(encode2(this.sliceSerialize(token)));
- setData("flowCodeSeenData", true);
- }
- function onexithardbreak() {
- tag("
");
- }
- function onenterhtmlflow() {
- lineEndingIfNeeded();
- onenterhtml();
- }
- function onexithtml() {
- setData("ignoreEncode");
- }
- function onenterhtml() {
- if (settings.allowDangerousHtml) {
- setData("ignoreEncode", true);
- }
- }
- function onenteremphasis() {
- tag("");
- }
- function onenterstrong() {
- tag("");
- }
- function onentercodetext() {
- setData("inCodeText", true);
- tag("");
- }
- function onexitcodetext() {
- setData("inCodeText");
- tag("");
- }
- function onexitemphasis() {
- tag("");
- }
- function onexitstrong() {
- tag("");
- }
- function onexitthematicbreak() {
- lineEndingIfNeeded();
- tag("
");
- }
- function onexitcharacterreferencemarker(token) {
- setData("characterReferenceType", token.type);
- }
- function onexitcharacterreferencevalue(token) {
- const value2 = this.sliceSerialize(token);
- const decoded = getData("characterReferenceType") ? decodeNumericCharacterReference(value2, getData("characterReferenceType") === "characterReferenceMarkerNumeric" ? 10 : 16) : decodeNamedCharacterReference(value2);
- raw2(encode2(
- /** @type {string} */
- decoded
- ));
- setData("characterReferenceType");
- }
- function onexitautolinkprotocol(token) {
- const uri = this.sliceSerialize(token);
- tag('');
- raw2(encode2(uri));
- tag("");
- }
- function onexitautolinkemail(token) {
- const uri = this.sliceSerialize(token);
- tag('');
- raw2(encode2(uri));
- tag("");
- }
-}
-var hasOwnProperty2, protocolHref, protocolSource;
-var init_compile = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/compile.js"() {
- init_index_dom();
- init_micromark_util_chunked();
- init_micromark_util_combine_extensions();
- init_micromark_util_decode_numeric_character_reference();
- init_micromark_util_encode();
- init_micromark_util_normalize_identifier();
- init_micromark_util_sanitize_uri();
- hasOwnProperty2 = {}.hasOwnProperty;
- protocolHref = /^(https?|ircs?|mailto|xmpp)$/i;
- protocolSource = /^https?$/i;
- }
-});
-
-// node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.js
-function initializeContent(effects) {
- const contentStart = effects.attempt(this.parser.constructs.contentInitial, afterContentStartConstruct, paragraphInitial);
- let previous3;
- return contentStart;
- function afterContentStartConstruct(code4) {
- if (code4 === null) {
- effects.consume(code4);
- return;
- }
- effects.enter("lineEnding");
- effects.consume(code4);
- effects.exit("lineEnding");
- return factorySpace(effects, contentStart, "linePrefix");
- }
- function paragraphInitial(code4) {
- effects.enter("paragraph");
- return lineStart(code4);
- }
- function lineStart(code4) {
- const token = effects.enter("chunkText", {
- contentType: "text",
- previous: previous3
- });
- if (previous3) {
- previous3.next = token;
- }
- previous3 = token;
- return data(code4);
- }
- function data(code4) {
- if (code4 === null) {
- effects.exit("chunkText");
- effects.exit("paragraph");
- effects.consume(code4);
- return;
- }
- if (markdownLineEnding(code4)) {
- effects.consume(code4);
- effects.exit("chunkText");
- return lineStart;
- }
- effects.consume(code4);
- return data;
- }
-}
-var content2;
-var init_content2 = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.js"() {
- init_micromark_factory_space();
- init_micromark_util_character();
- content2 = {
- tokenize: initializeContent
- };
- }
-});
-
-// node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.js
-function initializeDocument(effects) {
- const self2 = this;
- const stack = [];
- let continued = 0;
- let childFlow;
- let childToken;
- let lineStartOffset;
- return start;
- function start(code4) {
- if (continued < stack.length) {
- const item = stack[continued];
- self2.containerState = item[1];
- return effects.attempt(item[0].continuation, documentContinue, checkNewContainers)(code4);
- }
- return checkNewContainers(code4);
- }
- function documentContinue(code4) {
- continued++;
- if (self2.containerState._closeFlow) {
- self2.containerState._closeFlow = void 0;
- if (childFlow) {
- closeFlow();
- }
- const indexBeforeExits = self2.events.length;
- let indexBeforeFlow = indexBeforeExits;
- let point4;
- while (indexBeforeFlow--) {
- if (self2.events[indexBeforeFlow][0] === "exit" && self2.events[indexBeforeFlow][1].type === "chunkFlow") {
- point4 = self2.events[indexBeforeFlow][1].end;
- break;
- }
- }
- exitContainers(continued);
- let index3 = indexBeforeExits;
- while (index3 < self2.events.length) {
- self2.events[index3][1].end = {
- ...point4
- };
- index3++;
- }
- splice(self2.events, indexBeforeFlow + 1, 0, self2.events.slice(indexBeforeExits));
- self2.events.length = index3;
- return checkNewContainers(code4);
- }
- return start(code4);
- }
- function checkNewContainers(code4) {
- if (continued === stack.length) {
- if (!childFlow) {
- return documentContinued(code4);
- }
- if (childFlow.currentConstruct && childFlow.currentConstruct.concrete) {
- return flowStart(code4);
- }
- self2.interrupt = Boolean(childFlow.currentConstruct && !childFlow._gfmTableDynamicInterruptHack);
- }
- self2.containerState = {};
- return effects.check(containerConstruct, thereIsANewContainer, thereIsNoNewContainer)(code4);
- }
- function thereIsANewContainer(code4) {
- if (childFlow) closeFlow();
- exitContainers(continued);
- return documentContinued(code4);
- }
- function thereIsNoNewContainer(code4) {
- self2.parser.lazy[self2.now().line] = continued !== stack.length;
- lineStartOffset = self2.now().offset;
- return flowStart(code4);
- }
- function documentContinued(code4) {
- self2.containerState = {};
- return effects.attempt(containerConstruct, containerContinue, flowStart)(code4);
- }
- function containerContinue(code4) {
- continued++;
- stack.push([self2.currentConstruct, self2.containerState]);
- return documentContinued(code4);
- }
- function flowStart(code4) {
- if (code4 === null) {
- if (childFlow) closeFlow();
- exitContainers(0);
- effects.consume(code4);
- return;
- }
- childFlow = childFlow || self2.parser.flow(self2.now());
- effects.enter("chunkFlow", {
- _tokenizer: childFlow,
- contentType: "flow",
- previous: childToken
- });
- return flowContinue(code4);
- }
- function flowContinue(code4) {
- if (code4 === null) {
- writeToChild(effects.exit("chunkFlow"), true);
- exitContainers(0);
- effects.consume(code4);
- return;
- }
- if (markdownLineEnding(code4)) {
- effects.consume(code4);
- writeToChild(effects.exit("chunkFlow"));
- continued = 0;
- self2.interrupt = void 0;
- return start;
- }
- effects.consume(code4);
- return flowContinue;
- }
- function writeToChild(token, endOfFile) {
- const stream = self2.sliceStream(token);
- if (endOfFile) stream.push(null);
- token.previous = childToken;
- if (childToken) childToken.next = token;
- childToken = token;
- childFlow.defineSkip(token.start);
- childFlow.write(stream);
- if (self2.parser.lazy[token.start.line]) {
- let index3 = childFlow.events.length;
- while (index3--) {
- if (
- // The token starts before the line ending…
- childFlow.events[index3][1].start.offset < lineStartOffset && // …and either is not ended yet…
- (!childFlow.events[index3][1].end || // …or ends after it.
- childFlow.events[index3][1].end.offset > lineStartOffset)
- ) {
- return;
- }
- }
- const indexBeforeExits = self2.events.length;
- let indexBeforeFlow = indexBeforeExits;
- let seen;
- let point4;
- while (indexBeforeFlow--) {
- if (self2.events[indexBeforeFlow][0] === "exit" && self2.events[indexBeforeFlow][1].type === "chunkFlow") {
- if (seen) {
- point4 = self2.events[indexBeforeFlow][1].end;
- break;
- }
- seen = true;
- }
- }
- exitContainers(continued);
- index3 = indexBeforeExits;
- while (index3 < self2.events.length) {
- self2.events[index3][1].end = {
- ...point4
- };
- index3++;
- }
- splice(self2.events, indexBeforeFlow + 1, 0, self2.events.slice(indexBeforeExits));
- self2.events.length = index3;
- }
- }
- function exitContainers(size) {
- let index3 = stack.length;
- while (index3-- > size) {
- const entry = stack[index3];
- self2.containerState = entry[1];
- entry[0].exit.call(self2, effects);
- }
- stack.length = size;
- }
- function closeFlow() {
- childFlow.write([null]);
- childToken = void 0;
- childFlow = void 0;
- self2.containerState._closeFlow = void 0;
- }
-}
-function tokenizeContainer(effects, ok3, nok) {
- return factorySpace(effects, effects.attempt(this.parser.constructs.document, ok3, nok), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
-}
-var document2, containerConstruct;
-var init_document = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.js"() {
- init_micromark_factory_space();
- init_micromark_util_character();
- init_micromark_util_chunked();
- document2 = {
- tokenize: initializeDocument
- };
- containerConstruct = {
- tokenize: tokenizeContainer
- };
- }
-});
-
-// node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.js
-function initializeFlow(effects) {
- const self2 = this;
- const initial2 = effects.attempt(
- // Try to parse a blank line.
- blankLine,
- atBlankEnding,
- // Try to parse initial flow (essentially, only code).
- effects.attempt(this.parser.constructs.flowInitial, afterConstruct, factorySpace(effects, effects.attempt(this.parser.constructs.flow, afterConstruct, effects.attempt(content, afterConstruct)), "linePrefix"))
- );
- return initial2;
- function atBlankEnding(code4) {
- if (code4 === null) {
- effects.consume(code4);
- return;
- }
- effects.enter("lineEndingBlank");
- effects.consume(code4);
- effects.exit("lineEndingBlank");
- self2.currentConstruct = void 0;
- return initial2;
- }
- function afterConstruct(code4) {
- if (code4 === null) {
- effects.consume(code4);
- return;
- }
- effects.enter("lineEnding");
- effects.consume(code4);
- effects.exit("lineEnding");
- self2.currentConstruct = void 0;
- return initial2;
- }
-}
-var flow;
-var init_flow = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.js"() {
- init_micromark_core_commonmark();
- init_micromark_factory_space();
- init_micromark_util_character();
- flow = {
- tokenize: initializeFlow
- };
- }
-});
-
-// node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.js
-function initializeFactory(field) {
- return {
- resolveAll: createResolver(field === "text" ? resolveAllLineSuffixes : void 0),
- tokenize: initializeText
- };
- function initializeText(effects) {
- const self2 = this;
- const constructs2 = this.parser.constructs[field];
- const text9 = effects.attempt(constructs2, start, notText);
- return start;
- function start(code4) {
- return atBreak(code4) ? text9(code4) : notText(code4);
- }
- function notText(code4) {
- if (code4 === null) {
- effects.consume(code4);
- return;
- }
- effects.enter("data");
- effects.consume(code4);
- return data;
- }
- function data(code4) {
- if (atBreak(code4)) {
- effects.exit("data");
- return text9(code4);
- }
- effects.consume(code4);
- return data;
- }
- function atBreak(code4) {
- if (code4 === null) {
- return true;
- }
- const list5 = constructs2[code4];
- let index3 = -1;
- if (list5) {
- while (++index3 < list5.length) {
- const item = list5[index3];
- if (!item.previous || item.previous.call(self2, self2.previous)) {
- return true;
- }
- }
- }
- return false;
- }
- }
-}
-function createResolver(extraResolver) {
- return resolveAllText;
- function resolveAllText(events, context2) {
- let index3 = -1;
- let enter2;
- while (++index3 <= events.length) {
- if (enter2 === void 0) {
- if (events[index3] && events[index3][1].type === "data") {
- enter2 = index3;
- index3++;
- }
- } else if (!events[index3] || events[index3][1].type !== "data") {
- if (index3 !== enter2 + 2) {
- events[enter2][1].end = events[index3 - 1][1].end;
- events.splice(enter2 + 2, index3 - enter2 - 2);
- index3 = enter2 + 2;
- }
- enter2 = void 0;
- }
- }
- return extraResolver ? extraResolver(events, context2) : events;
- }
-}
-function resolveAllLineSuffixes(events, context2) {
- let eventIndex = 0;
- while (++eventIndex <= events.length) {
- if ((eventIndex === events.length || events[eventIndex][1].type === "lineEnding") && events[eventIndex - 1][1].type === "data") {
- const data = events[eventIndex - 1][1];
- const chunks = context2.sliceStream(data);
- let index3 = chunks.length;
- let bufferIndex = -1;
- let size = 0;
- let tabs;
- while (index3--) {
- const chunk = chunks[index3];
- if (typeof chunk === "string") {
- bufferIndex = chunk.length;
- while (chunk.charCodeAt(bufferIndex - 1) === 32) {
- size++;
- bufferIndex--;
- }
- if (bufferIndex) break;
- bufferIndex = -1;
- } else if (chunk === -2) {
- tabs = true;
- size++;
- } else if (chunk === -1) {
- } else {
- index3++;
- break;
- }
- }
- if (context2._contentTypeTextTrailing && eventIndex === events.length) {
- size = 0;
- }
- if (size) {
- const token = {
- type: eventIndex === events.length || tabs || size < 2 ? "lineSuffix" : "hardBreakTrailing",
- start: {
- _bufferIndex: index3 ? bufferIndex : data.start._bufferIndex + bufferIndex,
- _index: data.start._index + index3,
- line: data.end.line,
- column: data.end.column - size,
- offset: data.end.offset - size
- },
- end: {
- ...data.end
- }
- };
- data.end = {
- ...token.start
- };
- if (data.start.offset === data.end.offset) {
- Object.assign(data, token);
- } else {
- events.splice(eventIndex, 0, ["enter", token, context2], ["exit", token, context2]);
- eventIndex += 2;
- }
- }
- eventIndex++;
- }
- }
- return events;
-}
-var resolver, string, text3;
-var init_text2 = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.js"() {
- resolver = {
- resolveAll: createResolver()
- };
- string = initializeFactory("string");
- text3 = initializeFactory("text");
- }
-});
-
-// node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.js
-var constructs_exports = {};
-__export(constructs_exports, {
- attentionMarkers: () => attentionMarkers,
- contentInitial: () => contentInitial,
- disable: () => disable,
- document: () => document3,
- flow: () => flow2,
- flowInitial: () => flowInitial,
- insideSpan: () => insideSpan,
- string: () => string2,
- text: () => text4
-});
-var document3, contentInitial, flowInitial, flow2, string2, text4, insideSpan, attentionMarkers, disable;
-var init_constructs = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.js"() {
- init_micromark_core_commonmark();
- init_text2();
- document3 = {
- [42]: list3,
- [43]: list3,
- [45]: list3,
- [48]: list3,
- [49]: list3,
- [50]: list3,
- [51]: list3,
- [52]: list3,
- [53]: list3,
- [54]: list3,
- [55]: list3,
- [56]: list3,
- [57]: list3,
- [62]: blockQuote
- };
- contentInitial = {
- [91]: definition2
- };
- flowInitial = {
- [-2]: codeIndented,
- [-1]: codeIndented,
- [32]: codeIndented
- };
- flow2 = {
- [35]: headingAtx,
- [42]: thematicBreak2,
- [45]: [setextUnderline, thematicBreak2],
- [60]: htmlFlow,
- [61]: setextUnderline,
- [95]: thematicBreak2,
- [96]: codeFenced,
- [126]: codeFenced
- };
- string2 = {
- [38]: characterReference,
- [92]: characterEscape
- };
- text4 = {
- [-5]: lineEnding,
- [-4]: lineEnding,
- [-3]: lineEnding,
- [33]: labelStartImage,
- [38]: characterReference,
- [42]: attention,
- [60]: [autolink, htmlText],
- [91]: labelStartLink,
- [92]: [hardBreakEscape, characterEscape],
- [93]: labelEnd,
- [95]: attention,
- [96]: codeText
- };
- insideSpan = {
- null: [attention, resolver]
- };
- attentionMarkers = {
- null: [42, 95]
- };
- disable = {
- null: []
- };
- }
-});
-
-// node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.js
-function createTokenizer(parser, initialize, from3) {
- let point4 = {
- _bufferIndex: -1,
- _index: 0,
- line: from3 && from3.line || 1,
- column: from3 && from3.column || 1,
- offset: from3 && from3.offset || 0
- };
- const columnStart = {};
- const resolveAllConstructs = [];
- let chunks = [];
- let stack = [];
- let consumed = true;
- const effects = {
- attempt: constructFactory(onsuccessfulconstruct),
- check: constructFactory(onsuccessfulcheck),
- consume,
- enter: enter2,
- exit: exit3,
- interrupt: constructFactory(onsuccessfulcheck, {
- interrupt: true
- })
- };
- const context2 = {
- code: null,
- containerState: {},
- defineSkip,
- events: [],
- now: now2,
- parser,
- previous: null,
- sliceSerialize,
- sliceStream,
- write
- };
- let state2 = initialize.tokenize.call(context2, effects);
- let expectedCode;
- if (initialize.resolveAll) {
- resolveAllConstructs.push(initialize);
- }
- return context2;
- function write(slice2) {
- chunks = push(chunks, slice2);
- main();
- if (chunks[chunks.length - 1] !== null) {
- return [];
- }
- addResult(initialize, 0);
- context2.events = resolveAll(resolveAllConstructs, context2.events, context2);
- return context2.events;
- }
- function sliceSerialize(token, expandTabs) {
- return serializeChunks(sliceStream(token), expandTabs);
- }
- function sliceStream(token) {
- return sliceChunks(chunks, token);
- }
- function now2() {
- const {
- _bufferIndex,
- _index,
- line,
- column,
- offset
- } = point4;
- return {
- _bufferIndex,
- _index,
- line,
- column,
- offset
- };
- }
- function defineSkip(value2) {
- columnStart[value2.line] = value2.column;
- accountForPotentialSkip();
- }
- function main() {
- let chunkIndex;
- while (point4._index < chunks.length) {
- const chunk = chunks[point4._index];
- if (typeof chunk === "string") {
- chunkIndex = point4._index;
- if (point4._bufferIndex < 0) {
- point4._bufferIndex = 0;
- }
- while (point4._index === chunkIndex && point4._bufferIndex < chunk.length) {
- go(chunk.charCodeAt(point4._bufferIndex));
- }
- } else {
- go(chunk);
- }
- }
- }
- function go(code4) {
- consumed = void 0;
- expectedCode = code4;
- state2 = state2(code4);
- }
- function consume(code4) {
- if (markdownLineEnding(code4)) {
- point4.line++;
- point4.column = 1;
- point4.offset += code4 === -3 ? 2 : 1;
- accountForPotentialSkip();
- } else if (code4 !== -1) {
- point4.column++;
- point4.offset++;
- }
- if (point4._bufferIndex < 0) {
- point4._index++;
- } else {
- point4._bufferIndex++;
- if (point4._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
- // strings.
- /** @type {string} */
- chunks[point4._index].length) {
- point4._bufferIndex = -1;
- point4._index++;
- }
- }
- context2.previous = code4;
- consumed = true;
- }
- function enter2(type5, fields) {
- const token = fields || {};
- token.type = type5;
- token.start = now2();
- context2.events.push(["enter", token, context2]);
- stack.push(token);
- return token;
- }
- function exit3(type5) {
- const token = stack.pop();
- token.end = now2();
- context2.events.push(["exit", token, context2]);
- return token;
- }
- function onsuccessfulconstruct(construct, info) {
- addResult(construct, info.from);
- }
- function onsuccessfulcheck(_5, info) {
- info.restore();
- }
- function constructFactory(onreturn, fields) {
- return hook;
- function hook(constructs2, returnState, bogusState) {
- let listOfConstructs;
- let constructIndex;
- let currentConstruct;
- let info;
- return Array.isArray(constructs2) ? (
- /* c8 ignore next 1 */
- handleListOfConstructs(constructs2)
- ) : "tokenize" in constructs2 ? (
- // Looks like a construct.
- handleListOfConstructs([
- /** @type {Construct} */
- constructs2
- ])
- ) : handleMapOfConstructs(constructs2);
- function handleMapOfConstructs(map8) {
- return start;
- function start(code4) {
- const left = code4 !== null && map8[code4];
- const all3 = code4 !== null && map8.null;
- const list5 = [
- // To do: add more extension tests.
- /* c8 ignore next 2 */
- ...Array.isArray(left) ? left : left ? [left] : [],
- ...Array.isArray(all3) ? all3 : all3 ? [all3] : []
- ];
- return handleListOfConstructs(list5)(code4);
- }
- }
- function handleListOfConstructs(list5) {
- listOfConstructs = list5;
- constructIndex = 0;
- if (list5.length === 0) {
- return bogusState;
- }
- return handleConstruct(list5[constructIndex]);
- }
- function handleConstruct(construct) {
- return start;
- function start(code4) {
- info = store();
- currentConstruct = construct;
- if (!construct.partial) {
- context2.currentConstruct = construct;
- }
- if (construct.name && context2.parser.constructs.disable.null.includes(construct.name)) {
- return nok(code4);
- }
- return construct.tokenize.call(
- // If we do have fields, create an object w/ `context` as its
- // prototype.
- // This allows a “live binding”, which is needed for `interrupt`.
- fields ? Object.assign(Object.create(context2), fields) : context2,
- effects,
- ok3,
- nok
- )(code4);
- }
- }
- function ok3(code4) {
- consumed = true;
- onreturn(currentConstruct, info);
- return returnState;
- }
- function nok(code4) {
- consumed = true;
- info.restore();
- if (++constructIndex < listOfConstructs.length) {
- return handleConstruct(listOfConstructs[constructIndex]);
- }
- return bogusState;
- }
- }
- }
- function addResult(construct, from4) {
- if (construct.resolveAll && !resolveAllConstructs.includes(construct)) {
- resolveAllConstructs.push(construct);
- }
- if (construct.resolve) {
- splice(context2.events, from4, context2.events.length - from4, construct.resolve(context2.events.slice(from4), context2));
- }
- if (construct.resolveTo) {
- context2.events = construct.resolveTo(context2.events, context2);
- }
- }
- function store() {
- const startPoint = now2();
- const startPrevious = context2.previous;
- const startCurrentConstruct = context2.currentConstruct;
- const startEventsIndex = context2.events.length;
- const startStack = Array.from(stack);
- return {
- from: startEventsIndex,
- restore
- };
- function restore() {
- point4 = startPoint;
- context2.previous = startPrevious;
- context2.currentConstruct = startCurrentConstruct;
- context2.events.length = startEventsIndex;
- stack = startStack;
- accountForPotentialSkip();
- }
- }
- function accountForPotentialSkip() {
- if (point4.line in columnStart && point4.column < 2) {
- point4.column = columnStart[point4.line];
- point4.offset += columnStart[point4.line] - 1;
- }
- }
-}
-function sliceChunks(chunks, token) {
- const startIndex = token.start._index;
- const startBufferIndex = token.start._bufferIndex;
- const endIndex = token.end._index;
- const endBufferIndex = token.end._bufferIndex;
- let view;
- if (startIndex === endIndex) {
- view = [chunks[startIndex].slice(startBufferIndex, endBufferIndex)];
- } else {
- view = chunks.slice(startIndex, endIndex);
- if (startBufferIndex > -1) {
- const head2 = view[0];
- if (typeof head2 === "string") {
- view[0] = head2.slice(startBufferIndex);
- } else {
- view.shift();
- }
- }
- if (endBufferIndex > 0) {
- view.push(chunks[endIndex].slice(0, endBufferIndex));
- }
- }
- return view;
-}
-function serializeChunks(chunks, expandTabs) {
- let index3 = -1;
- const result = [];
- let atTab;
- while (++index3 < chunks.length) {
- const chunk = chunks[index3];
- let value2;
- if (typeof chunk === "string") {
- value2 = chunk;
- } else switch (chunk) {
- case -5: {
- value2 = "\r";
- break;
- }
- case -4: {
- value2 = "\n";
- break;
- }
- case -3: {
- value2 = "\r\n";
- break;
- }
- case -2: {
- value2 = expandTabs ? " " : " ";
- break;
- }
- case -1: {
- if (!expandTabs && atTab) continue;
- value2 = " ";
- break;
- }
- default: {
- value2 = String.fromCharCode(chunk);
- }
- }
- atTab = chunk === -2;
- result.push(value2);
- }
- return result.join("");
-}
-var init_create_tokenizer = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.js"() {
- init_micromark_util_character();
- init_micromark_util_chunked();
- init_micromark_util_resolve_all();
- }
-});
-
-// node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.js
-function parse4(options2) {
- const settings = options2 || {};
- const constructs2 = (
- /** @type {FullNormalizedExtension} */
- combineExtensions([constructs_exports, ...settings.extensions || []])
- );
- const parser = {
- constructs: constructs2,
- content: create7(content2),
- defined: [],
- document: create7(document2),
- flow: create7(flow),
- lazy: {},
- string: create7(string),
- text: create7(text3)
- };
- return parser;
- function create7(initial2) {
- return creator;
- function creator(from3) {
- return createTokenizer(parser, initial2, from3);
- }
- }
-}
-var init_parse2 = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.js"() {
- init_micromark_util_combine_extensions();
- init_content2();
- init_document();
- init_flow();
- init_text2();
- init_constructs();
- init_create_tokenizer();
- }
-});
-
-// node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.js
-function postprocess(events) {
- while (!subtokenize(events)) {
- }
- return events;
-}
-var init_postprocess = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.js"() {
- init_micromark_util_subtokenize();
- }
-});
-
-// node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.js
-function preprocess() {
- let column = 1;
- let buffer2 = "";
- let start = true;
- let atCarriageReturn;
- return preprocessor;
- function preprocessor(value2, encoding, end3) {
- const chunks = [];
- let match2;
- let next2;
- let startPosition;
- let endPosition;
- let code4;
- value2 = buffer2 + (typeof value2 === "string" ? value2.toString() : new TextDecoder(encoding || void 0).decode(value2));
- startPosition = 0;
- buffer2 = "";
- if (start) {
- if (value2.charCodeAt(0) === 65279) {
- startPosition++;
- }
- start = void 0;
- }
- while (startPosition < value2.length) {
- search.lastIndex = startPosition;
- match2 = search.exec(value2);
- endPosition = match2 && match2.index !== void 0 ? match2.index : value2.length;
- code4 = value2.charCodeAt(endPosition);
- if (!match2) {
- buffer2 = value2.slice(startPosition);
- break;
- }
- if (code4 === 10 && startPosition === endPosition && atCarriageReturn) {
- chunks.push(-3);
- atCarriageReturn = void 0;
- } else {
- if (atCarriageReturn) {
- chunks.push(-5);
- atCarriageReturn = void 0;
- }
- if (startPosition < endPosition) {
- chunks.push(value2.slice(startPosition, endPosition));
- column += endPosition - startPosition;
- }
- switch (code4) {
- case 0: {
- chunks.push(65533);
- column++;
- break;
- }
- case 9: {
- next2 = Math.ceil(column / 4) * 4;
- chunks.push(-2);
- while (column++ < next2) chunks.push(-1);
- break;
- }
- case 10: {
- chunks.push(-4);
- column = 1;
- break;
- }
- default: {
- atCarriageReturn = true;
- column = 1;
- }
- }
- }
- startPosition = endPosition + 1;
- }
- if (end3) {
- if (atCarriageReturn) chunks.push(-5);
- if (buffer2) chunks.push(buffer2);
- chunks.push(null);
- }
- return chunks;
- }
-}
-var search;
-var init_preprocess = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.js"() {
- search = /[\0\t\n\r]/g;
- }
-});
-
-// node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/index.js
-function micromark(value2, encoding, options2) {
- if (typeof encoding !== "string") {
- options2 = encoding;
- encoding = void 0;
- }
- return compile(options2)(postprocess(parse4(options2).document().write(preprocess()(value2, encoding, true))));
-}
-var init_micromark = __esm({
- "node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/index.js"() {
- init_compile();
- init_parse2();
- init_postprocess();
- init_preprocess();
- init_compile();
- init_parse2();
- init_postprocess();
- init_preprocess();
- }
-});
-
-// node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.js
-function fromMarkdown(value2, encoding, options2) {
- if (typeof encoding !== "string") {
- options2 = encoding;
- encoding = void 0;
- }
- return compiler(options2)(postprocess(parse4(options2).document().write(preprocess()(value2, encoding, true))));
-}
-function compiler(options2) {
- const config3 = {
- transforms: [],
- canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
- enter: {
- autolink: opener2(link3),
- autolinkProtocol: onenterdata,
- autolinkEmail: onenterdata,
- atxHeading: opener2(heading3),
- blockQuote: opener2(blockQuote2),
- characterEscape: onenterdata,
- characterReference: onenterdata,
- codeFenced: opener2(codeFlow),
- codeFencedFenceInfo: buffer2,
- codeFencedFenceMeta: buffer2,
- codeIndented: opener2(codeFlow, buffer2),
- codeText: opener2(codeText2, buffer2),
- codeTextData: onenterdata,
- data: onenterdata,
- codeFlowValue: onenterdata,
- definition: opener2(definition3),
- definitionDestinationString: buffer2,
- definitionLabelString: buffer2,
- definitionTitleString: buffer2,
- emphasis: opener2(emphasis3),
- hardBreakEscape: opener2(hardBreak3),
- hardBreakTrailing: opener2(hardBreak3),
- htmlFlow: opener2(html7, buffer2),
- htmlFlowData: onenterdata,
- htmlText: opener2(html7, buffer2),
- htmlTextData: onenterdata,
- image: opener2(image3),
- label: buffer2,
- link: opener2(link3),
- listItem: opener2(listItem4),
- listItemValue: onenterlistitemvalue,
- listOrdered: opener2(list5, onenterlistordered),
- listUnordered: opener2(list5),
- paragraph: opener2(paragraph3),
- reference: onenterreference,
- referenceString: buffer2,
- resourceDestinationString: buffer2,
- resourceTitleString: buffer2,
- setextHeading: opener2(heading3),
- strong: opener2(strong3),
- thematicBreak: opener2(thematicBreak4)
- },
- exit: {
- atxHeading: closer(),
- atxHeadingSequence: onexitatxheadingsequence,
- autolink: closer(),
- autolinkEmail: onexitautolinkemail,
- autolinkProtocol: onexitautolinkprotocol,
- blockQuote: closer(),
- characterEscapeValue: onexitdata,
- characterReferenceMarkerHexadecimal: onexitcharacterreferencemarker,
- characterReferenceMarkerNumeric: onexitcharacterreferencemarker,
- characterReferenceValue: onexitcharacterreferencevalue,
- characterReference: onexitcharacterreference,
- codeFenced: closer(onexitcodefenced),
- codeFencedFence: onexitcodefencedfence,
- codeFencedFenceInfo: onexitcodefencedfenceinfo,
- codeFencedFenceMeta: onexitcodefencedfencemeta,
- codeFlowValue: onexitdata,
- codeIndented: closer(onexitcodeindented),
- codeText: closer(onexitcodetext),
- codeTextData: onexitdata,
- data: onexitdata,
- definition: closer(),
- definitionDestinationString: onexitdefinitiondestinationstring,
- definitionLabelString: onexitdefinitionlabelstring,
- definitionTitleString: onexitdefinitiontitlestring,
- emphasis: closer(),
- hardBreakEscape: closer(onexithardbreak),
- hardBreakTrailing: closer(onexithardbreak),
- htmlFlow: closer(onexithtmlflow),
- htmlFlowData: onexitdata,
- htmlText: closer(onexithtmltext),
- htmlTextData: onexitdata,
- image: closer(onexitimage),
- label: onexitlabel,
- labelText: onexitlabeltext,
- lineEnding: onexitlineending,
- link: closer(onexitlink),
- listItem: closer(),
- listOrdered: closer(),
- listUnordered: closer(),
- paragraph: closer(),
- referenceString: onexitreferencestring,
- resourceDestinationString: onexitresourcedestinationstring,
- resourceTitleString: onexitresourcetitlestring,
- resource: onexitresource,
- setextHeading: closer(onexitsetextheading),
- setextHeadingLineSequence: onexitsetextheadinglinesequence,
- setextHeadingText: onexitsetextheadingtext,
- strong: closer(),
- thematicBreak: closer()
- }
- };
- configure2(config3, (options2 || {}).mdastExtensions || []);
- const data = {};
- return compile2;
- function compile2(events) {
- let tree = {
- type: "root",
- children: []
- };
- const context2 = {
- stack: [tree],
- tokenStack: [],
- config: config3,
- enter: enter2,
- exit: exit3,
- buffer: buffer2,
- resume,
- data
- };
- const listStack = [];
- let index3 = -1;
- while (++index3 < events.length) {
- if (events[index3][1].type === "listOrdered" || events[index3][1].type === "listUnordered") {
- if (events[index3][0] === "enter") {
- listStack.push(index3);
- } else {
- const tail = listStack.pop();
- index3 = prepareList(events, tail, index3);
- }
- }
- }
- index3 = -1;
- while (++index3 < events.length) {
- const handler2 = config3[events[index3][0]];
- if (own5.call(handler2, events[index3][1].type)) {
- handler2[events[index3][1].type].call(Object.assign({
- sliceSerialize: events[index3][2].sliceSerialize
- }, context2), events[index3][1]);
- }
- }
- if (context2.tokenStack.length > 0) {
- const tail = context2.tokenStack[context2.tokenStack.length - 1];
- const handler2 = tail[1] || defaultOnError;
- handler2.call(context2, void 0, tail[0]);
- }
- tree.position = {
- start: point2(events.length > 0 ? events[0][1].start : {
- line: 1,
- column: 1,
- offset: 0
- }),
- end: point2(events.length > 0 ? events[events.length - 2][1].end : {
- line: 1,
- column: 1,
- offset: 0
- })
- };
- index3 = -1;
- while (++index3 < config3.transforms.length) {
- tree = config3.transforms[index3](tree) || tree;
- }
- return tree;
- }
- function prepareList(events, start, length) {
- let index3 = start - 1;
- let containerBalance = -1;
- let listSpread = false;
- let listItem5;
- let lineIndex;
- let firstBlankLineIndex;
- let atMarker;
- while (++index3 <= length) {
- const event = events[index3];
- switch (event[1].type) {
- case "listUnordered":
- case "listOrdered":
- case "blockQuote": {
- if (event[0] === "enter") {
- containerBalance++;
- } else {
- containerBalance--;
- }
- atMarker = void 0;
- break;
- }
- case "lineEndingBlank": {
- if (event[0] === "enter") {
- if (listItem5 && !atMarker && !containerBalance && !firstBlankLineIndex) {
- firstBlankLineIndex = index3;
- }
- atMarker = void 0;
- }
- break;
- }
- case "linePrefix":
- case "listItemValue":
- case "listItemMarker":
- case "listItemPrefix":
- case "listItemPrefixWhitespace": {
- break;
- }
- default: {
- atMarker = void 0;
- }
- }
- if (!containerBalance && event[0] === "enter" && event[1].type === "listItemPrefix" || containerBalance === -1 && event[0] === "exit" && (event[1].type === "listUnordered" || event[1].type === "listOrdered")) {
- if (listItem5) {
- let tailIndex = index3;
- lineIndex = void 0;
- while (tailIndex--) {
- const tailEvent = events[tailIndex];
- if (tailEvent[1].type === "lineEnding" || tailEvent[1].type === "lineEndingBlank") {
- if (tailEvent[0] === "exit") continue;
- if (lineIndex) {
- events[lineIndex][1].type = "lineEndingBlank";
- listSpread = true;
- }
- tailEvent[1].type = "lineEnding";
- lineIndex = tailIndex;
- } else if (tailEvent[1].type === "linePrefix" || tailEvent[1].type === "blockQuotePrefix" || tailEvent[1].type === "blockQuotePrefixWhitespace" || tailEvent[1].type === "blockQuoteMarker" || tailEvent[1].type === "listItemIndent") {
- } else {
- break;
- }
- }
- if (firstBlankLineIndex && (!lineIndex || firstBlankLineIndex < lineIndex)) {
- listItem5._spread = true;
- }
- listItem5.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end);
- events.splice(lineIndex || index3, 0, ["exit", listItem5, event[2]]);
- index3++;
- length++;
- }
- if (event[1].type === "listItemPrefix") {
- const item = {
- type: "listItem",
- _spread: false,
- start: Object.assign({}, event[1].start),
- // @ts-expect-error: we’ll add `end` in a second.
- end: void 0
- };
- listItem5 = item;
- events.splice(index3, 0, ["enter", item, event[2]]);
- index3++;
- length++;
- firstBlankLineIndex = void 0;
- atMarker = true;
- }
- }
- }
- events[start][1]._spread = listSpread;
- return length;
- }
- function opener2(create7, and) {
- return open;
- function open(token) {
- enter2.call(this, create7(token), token);
- if (and) and.call(this, token);
- }
- }
- function buffer2() {
- this.stack.push({
- type: "fragment",
- children: []
- });
- }
- function enter2(node2, token, errorHandler) {
- const parent = this.stack[this.stack.length - 1];
- const siblings2 = parent.children;
- siblings2.push(node2);
- this.stack.push(node2);
- this.tokenStack.push([token, errorHandler || void 0]);
- node2.position = {
- start: point2(token.start),
- // @ts-expect-error: `end` will be patched later.
- end: void 0
- };
- }
- function closer(and) {
- return close8;
- function close8(token) {
- if (and) and.call(this, token);
- exit3.call(this, token);
- }
- }
- function exit3(token, onExitError) {
- const node2 = this.stack.pop();
- const open = this.tokenStack.pop();
- if (!open) {
- throw new Error("Cannot close `" + token.type + "` (" + stringifyPosition({
- start: token.start,
- end: token.end
- }) + "): it\u2019s not open");
- } else if (open[0].type !== token.type) {
- if (onExitError) {
- onExitError.call(this, token, open[0]);
- } else {
- const handler2 = open[1] || defaultOnError;
- handler2.call(this, token, open[0]);
- }
- }
- node2.position.end = point2(token.end);
- }
- function resume() {
- return toString(this.stack.pop());
- }
- function onenterlistordered() {
- this.data.expectingFirstListItemValue = true;
- }
- function onenterlistitemvalue(token) {
- if (this.data.expectingFirstListItemValue) {
- const ancestor = this.stack[this.stack.length - 2];
- ancestor.start = Number.parseInt(this.sliceSerialize(token), 10);
- this.data.expectingFirstListItemValue = void 0;
- }
- }
- function onexitcodefencedfenceinfo() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.lang = data2;
- }
- function onexitcodefencedfencemeta() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.meta = data2;
- }
- function onexitcodefencedfence() {
- if (this.data.flowCodeInside) return;
- this.buffer();
- this.data.flowCodeInside = true;
- }
- function onexitcodefenced() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.value = data2.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, "");
- this.data.flowCodeInside = void 0;
- }
- function onexitcodeindented() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.value = data2.replace(/(\r?\n|\r)$/g, "");
- }
- function onexitdefinitionlabelstring(token) {
- const label = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.label = label;
- node2.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
- }
- function onexitdefinitiontitlestring() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.title = data2;
- }
- function onexitdefinitiondestinationstring() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.url = data2;
- }
- function onexitatxheadingsequence(token) {
- const node2 = this.stack[this.stack.length - 1];
- if (!node2.depth) {
- const depth = this.sliceSerialize(token).length;
- node2.depth = depth;
- }
- }
- function onexitsetextheadingtext() {
- this.data.setextHeadingSlurpLineEnding = true;
- }
- function onexitsetextheadinglinesequence(token) {
- const node2 = this.stack[this.stack.length - 1];
- node2.depth = this.sliceSerialize(token).codePointAt(0) === 61 ? 1 : 2;
- }
- function onexitsetextheading() {
- this.data.setextHeadingSlurpLineEnding = void 0;
- }
- function onenterdata(token) {
- const node2 = this.stack[this.stack.length - 1];
- const siblings2 = node2.children;
- let tail = siblings2[siblings2.length - 1];
- if (!tail || tail.type !== "text") {
- tail = text9();
- tail.position = {
- start: point2(token.start),
- // @ts-expect-error: we’ll add `end` later.
- end: void 0
- };
- siblings2.push(tail);
- }
- this.stack.push(tail);
- }
- function onexitdata(token) {
- const tail = this.stack.pop();
- tail.value += this.sliceSerialize(token);
- tail.position.end = point2(token.end);
- }
- function onexitlineending(token) {
- const context2 = this.stack[this.stack.length - 1];
- if (this.data.atHardBreak) {
- const tail = context2.children[context2.children.length - 1];
- tail.position.end = point2(token.end);
- this.data.atHardBreak = void 0;
- return;
- }
- if (!this.data.setextHeadingSlurpLineEnding && config3.canContainEols.includes(context2.type)) {
- onenterdata.call(this, token);
- onexitdata.call(this, token);
- }
- }
- function onexithardbreak() {
- this.data.atHardBreak = true;
- }
- function onexithtmlflow() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.value = data2;
- }
- function onexithtmltext() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.value = data2;
- }
- function onexitcodetext() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.value = data2;
- }
- function onexitlink() {
- const node2 = this.stack[this.stack.length - 1];
- if (this.data.inReference) {
- const referenceType = this.data.referenceType || "shortcut";
- node2.type += "Reference";
- node2.referenceType = referenceType;
- delete node2.url;
- delete node2.title;
- } else {
- delete node2.identifier;
- delete node2.label;
- }
- this.data.referenceType = void 0;
- }
- function onexitimage() {
- const node2 = this.stack[this.stack.length - 1];
- if (this.data.inReference) {
- const referenceType = this.data.referenceType || "shortcut";
- node2.type += "Reference";
- node2.referenceType = referenceType;
- delete node2.url;
- delete node2.title;
- } else {
- delete node2.identifier;
- delete node2.label;
- }
- this.data.referenceType = void 0;
- }
- function onexitlabeltext(token) {
- const string3 = this.sliceSerialize(token);
- const ancestor = this.stack[this.stack.length - 2];
- ancestor.label = decodeString(string3);
- ancestor.identifier = normalizeIdentifier(string3).toLowerCase();
- }
- function onexitlabel() {
- const fragment = this.stack[this.stack.length - 1];
- const value2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- this.data.inReference = true;
- if (node2.type === "link") {
- const children2 = fragment.children;
- node2.children = children2;
- } else {
- node2.alt = value2;
- }
- }
- function onexitresourcedestinationstring() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.url = data2;
- }
- function onexitresourcetitlestring() {
- const data2 = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.title = data2;
- }
- function onexitresource() {
- this.data.inReference = void 0;
- }
- function onenterreference() {
- this.data.referenceType = "collapsed";
- }
- function onexitreferencestring(token) {
- const label = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- node2.label = label;
- node2.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
- this.data.referenceType = "full";
- }
- function onexitcharacterreferencemarker(token) {
- this.data.characterReferenceType = token.type;
- }
- function onexitcharacterreferencevalue(token) {
- const data2 = this.sliceSerialize(token);
- const type5 = this.data.characterReferenceType;
- let value2;
- if (type5) {
- value2 = decodeNumericCharacterReference(data2, type5 === "characterReferenceMarkerNumeric" ? 10 : 16);
- this.data.characterReferenceType = void 0;
- } else {
- const result = decodeNamedCharacterReference(data2);
- value2 = result;
- }
- const tail = this.stack[this.stack.length - 1];
- tail.value += value2;
- }
- function onexitcharacterreference(token) {
- const tail = this.stack.pop();
- tail.position.end = point2(token.end);
- }
- function onexitautolinkprotocol(token) {
- onexitdata.call(this, token);
- const node2 = this.stack[this.stack.length - 1];
- node2.url = this.sliceSerialize(token);
- }
- function onexitautolinkemail(token) {
- onexitdata.call(this, token);
- const node2 = this.stack[this.stack.length - 1];
- node2.url = "mailto:" + this.sliceSerialize(token);
- }
- function blockQuote2() {
- return {
- type: "blockquote",
- children: []
- };
- }
- function codeFlow() {
- return {
- type: "code",
- lang: null,
- meta: null,
- value: ""
- };
- }
- function codeText2() {
- return {
- type: "inlineCode",
- value: ""
- };
- }
- function definition3() {
- return {
- type: "definition",
- identifier: "",
- label: null,
- title: null,
- url: ""
- };
- }
- function emphasis3() {
- return {
- type: "emphasis",
- children: []
- };
- }
- function heading3() {
- return {
- type: "heading",
- // @ts-expect-error `depth` will be set later.
- depth: 0,
- children: []
- };
- }
- function hardBreak3() {
- return {
- type: "break"
- };
- }
- function html7() {
- return {
- type: "html",
- value: ""
- };
- }
- function image3() {
- return {
- type: "image",
- title: null,
- url: "",
- alt: null
- };
- }
- function link3() {
- return {
- type: "link",
- title: null,
- url: "",
- children: []
- };
- }
- function list5(token) {
- return {
- type: "list",
- ordered: token.type === "listOrdered",
- start: null,
- spread: token._spread,
- children: []
- };
- }
- function listItem4(token) {
- return {
- type: "listItem",
- spread: token._spread,
- checked: null,
- children: []
- };
- }
- function paragraph3() {
- return {
- type: "paragraph",
- children: []
- };
- }
- function strong3() {
- return {
- type: "strong",
- children: []
- };
- }
- function text9() {
- return {
- type: "text",
- value: ""
- };
- }
- function thematicBreak4() {
- return {
- type: "thematicBreak"
- };
- }
-}
-function point2(d7) {
- return {
- line: d7.line,
- column: d7.column,
- offset: d7.offset
- };
-}
-function configure2(combined, extensions) {
- let index3 = -1;
- while (++index3 < extensions.length) {
- const value2 = extensions[index3];
- if (Array.isArray(value2)) {
- configure2(combined, value2);
- } else {
- extension(combined, value2);
- }
- }
-}
-function extension(combined, extension2) {
- let key2;
- for (key2 in extension2) {
- if (own5.call(extension2, key2)) {
- switch (key2) {
- case "canContainEols": {
- const right = extension2[key2];
- if (right) {
- combined[key2].push(...right);
- }
- break;
- }
- case "transforms": {
- const right = extension2[key2];
- if (right) {
- combined[key2].push(...right);
- }
- break;
- }
- case "enter":
- case "exit": {
- const right = extension2[key2];
- if (right) {
- Object.assign(combined[key2], right);
- }
- break;
- }
- }
- }
- }
-}
-function defaultOnError(left, right) {
- if (left) {
- throw new Error("Cannot close `" + left.type + "` (" + stringifyPosition({
- start: left.start,
- end: left.end
- }) + "): a different token (`" + right.type + "`, " + stringifyPosition({
- start: right.start,
- end: right.end
- }) + ") is open");
- } else {
- throw new Error("Cannot close document, a token (`" + right.type + "`, " + stringifyPosition({
- start: right.start,
- end: right.end
- }) + ") is still open");
- }
-}
-var own5;
-var init_lib21 = __esm({
- "node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.js"() {
- init_mdast_util_to_string();
- init_micromark();
- init_micromark_util_decode_numeric_character_reference();
- init_micromark_util_decode_string();
- init_micromark_util_normalize_identifier();
- init_index_dom();
- init_unist_util_stringify_position();
- own5 = {}.hasOwnProperty;
- }
-});
-
-// node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/index.js
-var init_mdast_util_from_markdown = __esm({
- "node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/index.js"() {
- init_lib21();
- }
-});
-
-// node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.js
-function remarkParse(options2) {
- const self2 = this;
- self2.parser = parser;
- function parser(doc3) {
- return fromMarkdown(doc3, {
- ...self2.data("settings"),
- ...options2,
- // Note: these options are not in the readme.
- // The goal is for them to be set by plugins on `data` instead of being
- // passed by users.
- extensions: self2.data("micromarkExtensions") || [],
- mdastExtensions: self2.data("fromMarkdownExtensions") || []
- });
- }
-}
-var init_lib22 = __esm({
- "node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.js"() {
- init_mdast_util_from_markdown();
- }
-});
-
-// node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/index.js
-var init_remark_parse = __esm({
- "node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/index.js"() {
- init_lib22();
- }
-});
-
-// node_modules/.pnpm/format@0.2.2/node_modules/format/format.js
-var require_format = __commonJS({
- "node_modules/.pnpm/format@0.2.2/node_modules/format/format.js"(exports, module) {
- ;
- (function() {
- var namespace2;
- if (typeof module !== "undefined") {
- namespace2 = module.exports = format2;
- } else {
- namespace2 = (function() {
- return this || (1, eval)("this");
- })();
- }
- namespace2.format = format2;
- namespace2.vsprintf = vsprintf;
- if (typeof console !== "undefined" && typeof console.log === "function") {
- namespace2.printf = printf;
- }
- function printf() {
- console.log(format2.apply(null, arguments));
- }
- function vsprintf(fmt, replacements) {
- return format2.apply(null, [fmt].concat(replacements));
- }
- function format2(fmt) {
- var argIndex = 1, args = [].slice.call(arguments), i12 = 0, n14 = fmt.length, result = "", c12, escaped = false, arg, tmp, leadingZero = false, precision, nextArg = function() {
- return args[argIndex++];
- }, slurpNumber = function() {
- var digits = "";
- while (/\d/.test(fmt[i12])) {
- digits += fmt[i12++];
- c12 = fmt[i12];
- }
- return digits.length > 0 ? parseInt(digits) : null;
- };
- for (; i12 < n14; ++i12) {
- c12 = fmt[i12];
- if (escaped) {
- escaped = false;
- if (c12 == ".") {
- leadingZero = false;
- c12 = fmt[++i12];
- } else if (c12 == "0" && fmt[i12 + 1] == ".") {
- leadingZero = true;
- i12 += 2;
- c12 = fmt[i12];
- } else {
- leadingZero = true;
- }
- precision = slurpNumber();
- switch (c12) {
- case "b":
- result += parseInt(nextArg(), 10).toString(2);
- break;
- case "c":
- arg = nextArg();
- if (typeof arg === "string" || arg instanceof String)
- result += arg;
- else
- result += String.fromCharCode(parseInt(arg, 10));
- break;
- case "d":
- result += parseInt(nextArg(), 10);
- break;
- case "f":
- tmp = String(parseFloat(nextArg()).toFixed(precision || 6));
- result += leadingZero ? tmp : tmp.replace(/^0/, "");
- break;
- case "j":
- result += JSON.stringify(nextArg());
- break;
- case "o":
- result += "0" + parseInt(nextArg(), 10).toString(8);
- break;
- case "s":
- result += nextArg();
- break;
- case "x":
- result += "0x" + parseInt(nextArg(), 10).toString(16);
- break;
- case "X":
- result += "0x" + parseInt(nextArg(), 10).toString(16).toUpperCase();
- break;
- default:
- result += c12;
- break;
- }
- } else if (c12 === "%") {
- escaped = true;
- } else {
- result += c12;
- }
- }
- return result;
- }
- })();
- }
-});
-
-// node_modules/.pnpm/fault@2.0.1/node_modules/fault/index.js
-function create5(Constructor) {
- FormattedError.displayName = Constructor.displayName || Constructor.name;
- return FormattedError;
- function FormattedError(format2, ...values) {
- const reason = format2 ? (0, import_format2.default)(format2, ...values) : format2;
- return new Constructor(reason);
- }
-}
-var import_format2, fault;
-var init_fault = __esm({
- "node_modules/.pnpm/fault@2.0.1/node_modules/fault/index.js"() {
- import_format2 = __toESM(require_format(), 1);
- fault = Object.assign(create5(Error), {
- eval: create5(EvalError),
- range: create5(RangeError),
- reference: create5(ReferenceError),
- syntax: create5(SyntaxError),
- type: create5(TypeError),
- uri: create5(URIError)
- });
- }
-});
-
-// node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/to-matters.js
-function toMatters(options2) {
- const result = [];
- let index3 = -1;
- const presetsOrMatters = Array.isArray(options2) ? options2 : options2 ? [options2] : ["yaml"];
- while (++index3 < presetsOrMatters.length) {
- result[index3] = matter(presetsOrMatters[index3]);
- }
- return result;
-}
-function matter(option2) {
- let result = option2;
- if (typeof result === "string") {
- if (!own6.call(markers, result)) {
- throw fault("Missing matter definition for `%s`", result);
- }
- result = {
- type: result,
- marker: markers[result]
- };
- } else if (typeof result !== "object") {
- throw fault("Expected matter to be an object, not `%j`", result);
- }
- if (!own6.call(result, "type")) {
- throw fault("Missing `type` in matter `%j`", result);
- }
- if (!own6.call(result, "fence") && !own6.call(result, "marker")) {
- throw fault("Missing `marker` or `fence` in matter `%j`", result);
- }
- return result;
-}
-var own6, markers;
-var init_to_matters = __esm({
- "node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/to-matters.js"() {
- init_fault();
- own6 = {}.hasOwnProperty;
- markers = {
- yaml: "-",
- toml: "+"
- };
- }
-});
-
-// node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/syntax.js
-function frontmatter(options2) {
- const matters = toMatters(options2);
- const flow3 = {};
- let index3 = -1;
- while (++index3 < matters.length) {
- const matter2 = matters[index3];
- const code4 = fence(matter2, "open").charCodeAt(0);
- const construct = createConstruct(matter2);
- const existing = flow3[code4];
- if (Array.isArray(existing)) {
- existing.push(construct);
- } else {
- flow3[code4] = [construct];
- }
- }
- return {
- flow: flow3
- };
-}
-function createConstruct(matter2) {
- const anywhere = matter2.anywhere;
- const frontmatterType = (
- /** @type {TokenType} */
- matter2.type
- );
- const fenceType = (
- /** @type {TokenType} */
- frontmatterType + "Fence"
- );
- const sequenceType = (
- /** @type {TokenType} */
- fenceType + "Sequence"
- );
- const valueType = (
- /** @type {TokenType} */
- frontmatterType + "Value"
- );
- const closingFenceConstruct = {
- tokenize: tokenizeClosingFence,
- partial: true
- };
- let buffer2;
- let bufferIndex = 0;
- return {
- tokenize: tokenizeFrontmatter,
- concrete: true
- };
- function tokenizeFrontmatter(effects, ok3, nok) {
- const self2 = this;
- return start;
- function start(code4) {
- const position3 = self2.now();
- if (
- // Indent not allowed.
- position3.column === 1 && // Normally, only allowed in first line.
- (position3.line === 1 || anywhere)
- ) {
- buffer2 = fence(matter2, "open");
- bufferIndex = 0;
- if (code4 === buffer2.charCodeAt(bufferIndex)) {
- effects.enter(frontmatterType);
- effects.enter(fenceType);
- effects.enter(sequenceType);
- return openSequence(code4);
- }
- }
- return nok(code4);
- }
- function openSequence(code4) {
- if (bufferIndex === buffer2.length) {
- effects.exit(sequenceType);
- if (markdownSpace(code4)) {
- effects.enter("whitespace");
- return openSequenceWhitespace(code4);
- }
- return openAfter(code4);
- }
- if (code4 === buffer2.charCodeAt(bufferIndex++)) {
- effects.consume(code4);
- return openSequence;
- }
- return nok(code4);
- }
- function openSequenceWhitespace(code4) {
- if (markdownSpace(code4)) {
- effects.consume(code4);
- return openSequenceWhitespace;
- }
- effects.exit("whitespace");
- return openAfter(code4);
- }
- function openAfter(code4) {
- if (markdownLineEnding(code4)) {
- effects.exit(fenceType);
- effects.enter("lineEnding");
- effects.consume(code4);
- effects.exit("lineEnding");
- buffer2 = fence(matter2, "close");
- bufferIndex = 0;
- return effects.attempt(closingFenceConstruct, after, contentStart);
- }
- return nok(code4);
- }
- function contentStart(code4) {
- if (code4 === null || markdownLineEnding(code4)) {
- return contentEnd(code4);
- }
- effects.enter(valueType);
- return contentInside(code4);
- }
- function contentInside(code4) {
- if (code4 === null || markdownLineEnding(code4)) {
- effects.exit(valueType);
- return contentEnd(code4);
- }
- effects.consume(code4);
- return contentInside;
- }
- function contentEnd(code4) {
- if (code4 === null) {
- return nok(code4);
- }
- effects.enter("lineEnding");
- effects.consume(code4);
- effects.exit("lineEnding");
- return effects.attempt(closingFenceConstruct, after, contentStart);
- }
- function after(code4) {
- effects.exit(frontmatterType);
- return ok3(code4);
- }
- }
- function tokenizeClosingFence(effects, ok3, nok) {
- let bufferIndex2 = 0;
- return closeStart;
- function closeStart(code4) {
- if (code4 === buffer2.charCodeAt(bufferIndex2)) {
- effects.enter(fenceType);
- effects.enter(sequenceType);
- return closeSequence(code4);
- }
- return nok(code4);
- }
- function closeSequence(code4) {
- if (bufferIndex2 === buffer2.length) {
- effects.exit(sequenceType);
- if (markdownSpace(code4)) {
- effects.enter("whitespace");
- return closeSequenceWhitespace(code4);
- }
- return closeAfter(code4);
- }
- if (code4 === buffer2.charCodeAt(bufferIndex2++)) {
- effects.consume(code4);
- return closeSequence;
- }
- return nok(code4);
- }
- function closeSequenceWhitespace(code4) {
- if (markdownSpace(code4)) {
- effects.consume(code4);
- return closeSequenceWhitespace;
- }
- effects.exit("whitespace");
- return closeAfter(code4);
- }
- function closeAfter(code4) {
- if (code4 === null || markdownLineEnding(code4)) {
- effects.exit(fenceType);
- return ok3(code4);
- }
- return nok(code4);
- }
- }
-}
-function fence(matter2, prop) {
- return matter2.marker ? pick(matter2.marker, prop).repeat(3) : (
- // @ts-expect-error: They’re mutually exclusive.
- pick(matter2.fence, prop)
- );
-}
-function pick(schema, prop) {
- return typeof schema === "string" ? schema : schema[prop];
-}
-var init_syntax6 = __esm({
- "node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/syntax.js"() {
- init_micromark_util_character();
- init_to_matters();
- }
-});
-
-// node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/html.js
-var init_html7 = __esm({
- "node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/html.js"() {
- }
-});
-
-// node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/index.js
-var init_micromark_extension_frontmatter = __esm({
- "node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/index.js"() {
- init_syntax6();
- init_html7();
- init_to_matters();
- }
-});
-
-// node_modules/.pnpm/mdast-util-frontmatter@2.0.1/node_modules/mdast-util-frontmatter/lib/index.js
-function frontmatterFromMarkdown(options2) {
- const matters = toMatters(options2);
- const enter2 = {};
- const exit3 = {};
- let index3 = -1;
- while (++index3 < matters.length) {
- const matter2 = matters[index3];
- enter2[matter2.type] = opener(matter2);
- exit3[matter2.type] = close6;
- exit3[matter2.type + "Value"] = value;
- }
- return { enter: enter2, exit: exit3 };
-}
-function opener(matter2) {
- return open;
- function open(token) {
- this.enter({ type: matter2.type, value: "" }, token);
- this.buffer();
- }
-}
-function close6(token) {
- const data = this.resume();
- const node2 = this.stack[this.stack.length - 1];
- ok("value" in node2);
- this.exit(token);
- node2.value = data.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, "");
-}
-function value(token) {
- this.config.enter.data.call(this, token);
- this.config.exit.data.call(this, token);
-}
-function frontmatterToMarkdown(options2) {
- const unsafe2 = [];
- const handlers3 = {};
- const matters = toMatters(options2);
- let index3 = -1;
- while (++index3 < matters.length) {
- const matter2 = matters[index3];
- handlers3[matter2.type] = handler(matter2);
- const open = fence2(matter2, "open");
- unsafe2.push({
- atBreak: true,
- character: open.charAt(0),
- after: escapeStringRegexp(open.charAt(1))
- });
- }
- return { unsafe: unsafe2, handlers: handlers3 };
-}
-function handler(matter2) {
- const open = fence2(matter2, "open");
- const close8 = fence2(matter2, "close");
- return handle3;
- function handle3(node2) {
- return open + (node2.value ? "\n" + node2.value : "") + "\n" + close8;
- }
-}
-function fence2(matter2, prop) {
- return matter2.marker ? pick2(matter2.marker, prop).repeat(3) : (
- // @ts-expect-error: They’re mutually exclusive.
- pick2(matter2.fence, prop)
- );
-}
-function pick2(schema, prop) {
- return typeof schema === "string" ? schema : schema[prop];
-}
-var init_lib23 = __esm({
- "node_modules/.pnpm/mdast-util-frontmatter@2.0.1/node_modules/mdast-util-frontmatter/lib/index.js"() {
- init_default();
- init_micromark_extension_frontmatter();
- init_escape_string_regexp();
- }
-});
-
-// node_modules/.pnpm/mdast-util-frontmatter@2.0.1/node_modules/mdast-util-frontmatter/index.js
-var init_mdast_util_frontmatter = __esm({
- "node_modules/.pnpm/mdast-util-frontmatter@2.0.1/node_modules/mdast-util-frontmatter/index.js"() {
- init_lib23();
- }
-});
-
-// node_modules/.pnpm/remark-frontmatter@5.0.0/node_modules/remark-frontmatter/lib/index.js
-function remarkFrontmatter(options2) {
- const self2 = (
- /** @type {Processor} */
- this
- );
- const settings = options2 || emptyOptions4;
- const data = self2.data();
- const micromarkExtensions = data.micromarkExtensions || (data.micromarkExtensions = []);
- const fromMarkdownExtensions = data.fromMarkdownExtensions || (data.fromMarkdownExtensions = []);
- const toMarkdownExtensions = data.toMarkdownExtensions || (data.toMarkdownExtensions = []);
- micromarkExtensions.push(frontmatter(settings));
- fromMarkdownExtensions.push(frontmatterFromMarkdown(settings));
- toMarkdownExtensions.push(frontmatterToMarkdown(settings));
-}
-var emptyOptions4;
-var init_lib24 = __esm({
- "node_modules/.pnpm/remark-frontmatter@5.0.0/node_modules/remark-frontmatter/lib/index.js"() {
- init_mdast_util_frontmatter();
- init_micromark_extension_frontmatter();
- emptyOptions4 = "yaml";
- }
-});
-
-// node_modules/.pnpm/remark-frontmatter@5.0.0/node_modules/remark-frontmatter/index.js
-var init_remark_frontmatter = __esm({
- "node_modules/.pnpm/remark-frontmatter@5.0.0/node_modules/remark-frontmatter/index.js"() {
- init_lib24();
- }
-});
-
-// node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.js
-var VOID, PRIMITIVE, ARRAY, OBJECT, DATE, REGEXP, MAP, SET, ERROR, BIGINT;
-var init_types2 = __esm({
- "node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.js"() {
- VOID = -1;
- PRIMITIVE = 0;
- ARRAY = 1;
- OBJECT = 2;
- DATE = 3;
- REGEXP = 4;
- MAP = 5;
- SET = 6;
- ERROR = 7;
- BIGINT = 8;
- }
-});
-
-// node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js
-var env, deserializer, deserialize;
-var init_deserialize = __esm({
- "node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js"() {
- init_types2();
- env = typeof self === "object" ? self : globalThis;
- deserializer = ($4, _5) => {
- const as2 = (out, index3) => {
- $4.set(index3, out);
- return out;
- };
- const unpair = (index3) => {
- if ($4.has(index3))
- return $4.get(index3);
- const [type5, value2] = _5[index3];
- switch (type5) {
- case PRIMITIVE:
- case VOID:
- return as2(value2, index3);
- case ARRAY: {
- const arr = as2([], index3);
- for (const index4 of value2)
- arr.push(unpair(index4));
- return arr;
- }
- case OBJECT: {
- const object = as2({}, index3);
- for (const [key2, index4] of value2)
- object[unpair(key2)] = unpair(index4);
- return object;
- }
- case DATE:
- return as2(new Date(value2), index3);
- case REGEXP: {
- const { source, flags } = value2;
- return as2(new RegExp(source, flags), index3);
- }
- case MAP: {
- const map8 = as2(/* @__PURE__ */ new Map(), index3);
- for (const [key2, index4] of value2)
- map8.set(unpair(key2), unpair(index4));
- return map8;
- }
- case SET: {
- const set3 = as2(/* @__PURE__ */ new Set(), index3);
- for (const index4 of value2)
- set3.add(unpair(index4));
- return set3;
- }
- case ERROR: {
- const { name, message: message2 } = value2;
- return as2(new env[name](message2), index3);
- }
- case BIGINT:
- return as2(BigInt(value2), index3);
- case "BigInt":
- return as2(Object(BigInt(value2)), index3);
- case "ArrayBuffer":
- return as2(new Uint8Array(value2).buffer, value2);
- case "DataView": {
- const { buffer: buffer2 } = new Uint8Array(value2);
- return as2(new DataView(buffer2), value2);
- }
- }
- return as2(new env[type5](value2), index3);
- };
- return unpair;
- };
- deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
- }
-});
-
-// node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js
-var EMPTY2, toString2, keys, typeOf, shouldSkip, serializer, serialize2;
-var init_serialize = __esm({
- "node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js"() {
- init_types2();
- EMPTY2 = "";
- ({ toString: toString2 } = {});
- ({ keys } = Object);
- typeOf = (value2) => {
- const type5 = typeof value2;
- if (type5 !== "object" || !value2)
- return [PRIMITIVE, type5];
- const asString = toString2.call(value2).slice(8, -1);
- switch (asString) {
- case "Array":
- return [ARRAY, EMPTY2];
- case "Object":
- return [OBJECT, EMPTY2];
- case "Date":
- return [DATE, EMPTY2];
- case "RegExp":
- return [REGEXP, EMPTY2];
- case "Map":
- return [MAP, EMPTY2];
- case "Set":
- return [SET, EMPTY2];
- case "DataView":
- return [ARRAY, asString];
- }
- if (asString.includes("Array"))
- return [ARRAY, asString];
- if (asString.includes("Error"))
- return [ERROR, asString];
- return [OBJECT, asString];
- };
- shouldSkip = ([TYPE, type5]) => TYPE === PRIMITIVE && (type5 === "function" || type5 === "symbol");
- serializer = (strict, json, $4, _5) => {
- const as2 = (out, value2) => {
- const index3 = _5.push(out) - 1;
- $4.set(value2, index3);
- return index3;
- };
- const pair = (value2) => {
- if ($4.has(value2))
- return $4.get(value2);
- let [TYPE, type5] = typeOf(value2);
- switch (TYPE) {
- case PRIMITIVE: {
- let entry = value2;
- switch (type5) {
- case "bigint":
- TYPE = BIGINT;
- entry = value2.toString();
- break;
- case "function":
- case "symbol":
- if (strict)
- throw new TypeError("unable to serialize " + type5);
- entry = null;
- break;
- case "undefined":
- return as2([VOID], value2);
- }
- return as2([TYPE, entry], value2);
- }
- case ARRAY: {
- if (type5) {
- let spread = value2;
- if (type5 === "DataView") {
- spread = new Uint8Array(value2.buffer);
- } else if (type5 === "ArrayBuffer") {
- spread = new Uint8Array(value2);
- }
- return as2([type5, [...spread]], value2);
- }
- const arr = [];
- const index3 = as2([TYPE, arr], value2);
- for (const entry of value2)
- arr.push(pair(entry));
- return index3;
- }
- case OBJECT: {
- if (type5) {
- switch (type5) {
- case "BigInt":
- return as2([type5, value2.toString()], value2);
- case "Boolean":
- case "Number":
- case "String":
- return as2([type5, value2.valueOf()], value2);
- }
- }
- if (json && "toJSON" in value2)
- return pair(value2.toJSON());
- const entries = [];
- const index3 = as2([TYPE, entries], value2);
- for (const key2 of keys(value2)) {
- if (strict || !shouldSkip(typeOf(value2[key2])))
- entries.push([pair(key2), pair(value2[key2])]);
- }
- return index3;
- }
- case DATE:
- return as2([TYPE, value2.toISOString()], value2);
- case REGEXP: {
- const { source, flags } = value2;
- return as2([TYPE, { source, flags }], value2);
- }
- case MAP: {
- const entries = [];
- const index3 = as2([TYPE, entries], value2);
- for (const [key2, entry] of value2) {
- if (strict || !(shouldSkip(typeOf(key2)) || shouldSkip(typeOf(entry))))
- entries.push([pair(key2), pair(entry)]);
- }
- return index3;
- }
- case SET: {
- const entries = [];
- const index3 = as2([TYPE, entries], value2);
- for (const entry of value2) {
- if (strict || !shouldSkip(typeOf(entry)))
- entries.push(pair(entry));
- }
- return index3;
- }
- }
- const { message: message2 } = value2;
- return as2([TYPE, { name: type5, message: message2 }], value2);
- };
- return pair;
- };
- serialize2 = (value2, { json, lossy } = {}) => {
- const _5 = [];
- return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _5)(value2), _5;
- };
- }
-});
-
-// node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.js
-var esm_default;
-var init_esm = __esm({
- "node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.js"() {
- init_deserialize();
- init_serialize();
- esm_default = typeof structuredClone === "function" ? (
- /* c8 ignore start */
- (any, options2) => options2 && ("json" in options2 || "lossy" in options2) ? deserialize(serialize2(any, options2)) : structuredClone(any)
- ) : (any, options2) => deserialize(serialize2(any, options2));
- }
-});
-
-// node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js
-function point3(type5) {
- return point4;
- function point4(node2) {
- const point5 = node2 && node2.position && node2.position[type5] || {};
- if (typeof point5.line === "number" && point5.line > 0 && typeof point5.column === "number" && point5.column > 0) {
- return {
- line: point5.line,
- column: point5.column,
- offset: typeof point5.offset === "number" && point5.offset > -1 ? point5.offset : void 0
- };
- }
- }
-}
-function position2(node2) {
- const start = pointStart(node2);
- const end3 = pointEnd(node2);
- if (start && end3) {
- return { start, end: end3 };
- }
-}
-var pointEnd, pointStart;
-var init_lib25 = __esm({
- "node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.js"() {
- pointEnd = point3("end");
- pointStart = point3("start");
- }
-});
-
-// node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/index.js
-var init_unist_util_position = __esm({
- "node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/index.js"() {
- init_lib25();
- }
-});
-
-// node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/schema.js
-var aria, defaultSchema;
-var init_schema = __esm({
- "node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/schema.js"() {
- aria = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"];
- defaultSchema = {
- ancestors: {
- tbody: ["table"],
- td: ["table"],
- th: ["table"],
- thead: ["table"],
- tfoot: ["table"],
- tr: ["table"]
- },
- attributes: {
- a: [
- ...aria,
- // Note: these 3 are used by GFM footnotes, they do work on all links.
- "dataFootnoteBackref",
- "dataFootnoteRef",
- ["className", "data-footnote-backref"],
- "href"
- ],
- blockquote: ["cite"],
- // Note: this class is not normally allowed by GH, when manually writing
- // `code` as HTML in markdown, they adds it some other way.
- // We can’t do that, so we have to allow it.
- code: [["className", /^language-./]],
- del: ["cite"],
- div: ["itemScope", "itemType"],
- dl: [...aria],
- // Note: this is used by GFM footnotes.
- h2: [["className", "sr-only"]],
- img: [...aria, "longDesc", "src"],
- // Note: `input` is not normally allowed by GH, when manually writing
- // it in markdown, they add it from tasklists some other way.
- // We can’t do that, so we have to allow it.
- input: [
- ["disabled", true],
- ["type", "checkbox"]
- ],
- ins: ["cite"],
- // Note: this class is not normally allowed by GH, when manually writing
- // `li` as HTML in markdown, they adds it some other way.
- // We can’t do that, so we have to allow it.
- li: [["className", "task-list-item"]],
- // Note: this class is not normally allowed by GH, when manually writing
- // `ol` as HTML in markdown, they adds it some other way.
- // We can’t do that, so we have to allow it.
- ol: [...aria, ["className", "contains-task-list"]],
- q: ["cite"],
- section: ["dataFootnotes", ["className", "footnotes"]],
- source: ["srcSet"],
- summary: [...aria],
- table: [...aria],
- // Note: this class is not normally allowed by GH, when manually writing
- // `ol` as HTML in markdown, they adds it some other way.
- // We can’t do that, so we have to allow it.
- ul: [...aria, ["className", "contains-task-list"]],
- "*": [
- "abbr",
- "accept",
- "acceptCharset",
- "accessKey",
- "action",
- "align",
- "alt",
- "axis",
- "border",
- "cellPadding",
- "cellSpacing",
- "char",
- "charOff",
- "charSet",
- "checked",
- "clear",
- "colSpan",
- "color",
- "cols",
- "compact",
- "coords",
- "dateTime",
- "dir",
- // Note: `disabled` is technically allowed on all elements by GH.
- // But it is useless on everything except `input`.
- // Because `input`s are normally not allowed, but we allow them for
- // checkboxes due to tasklists, we allow `disabled` only there.
- "encType",
- "frame",
- "hSpace",
- "headers",
- "height",
- "hrefLang",
- "htmlFor",
- "id",
- "isMap",
- "itemProp",
- "label",
- "lang",
- "maxLength",
- "media",
- "method",
- "multiple",
- "name",
- "noHref",
- "noShade",
- "noWrap",
- "open",
- "prompt",
- "readOnly",
- "rev",
- "rowSpan",
- "rows",
- "rules",
- "scope",
- "selected",
- "shape",
- "size",
- "span",
- "start",
- "summary",
- "tabIndex",
- "title",
- "useMap",
- "vAlign",
- "value",
- "width"
- ]
- },
- clobber: ["ariaDescribedBy", "ariaLabelledBy", "id", "name"],
- clobberPrefix: "user-content-",
- protocols: {
- cite: ["http", "https"],
- href: ["http", "https", "irc", "ircs", "mailto", "xmpp"],
- longDesc: ["http", "https"],
- src: ["http", "https"]
- },
- required: {
- input: { disabled: true, type: "checkbox" }
- },
- strip: ["script"],
- tagNames: [
- "a",
- "b",
- "blockquote",
- "br",
- "code",
- "dd",
- "del",
- "details",
- "div",
- "dl",
- "dt",
- "em",
- "h1",
- "h2",
- "h3",
- "h4",
- "h5",
- "h6",
- "hr",
- "i",
- "img",
- // Note: `input` is not normally allowed by GH, when manually writing
- // it in markdown, they add it from tasklists some other way.
- // We can’t do that, so we have to allow it.
- "input",
- "ins",
- "kbd",
- "li",
- "ol",
- "p",
- "picture",
- "pre",
- "q",
- "rp",
- "rt",
- "ruby",
- "s",
- "samp",
- "section",
- "source",
- "span",
- "strike",
- "strong",
- "sub",
- "summary",
- "sup",
- "table",
- "tbody",
- "td",
- "tfoot",
- "th",
- "thead",
- "tr",
- "tt",
- "ul",
- "var"
- ]
- };
- }
-});
-
-// node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/index.js
-function sanitize(node2, options2) {
- let result = { type: "root", children: [] };
- const state2 = {
- schema: options2 ? { ...defaultSchema, ...options2 } : defaultSchema,
- stack: []
- };
- const replace6 = transform(state2, node2);
- if (replace6) {
- if (Array.isArray(replace6)) {
- if (replace6.length === 1) {
- result = replace6[0];
- } else {
- result.children = replace6;
- }
- } else {
- result = replace6;
- }
- }
- return result;
-}
-function transform(state2, node2) {
- if (node2 && typeof node2 === "object") {
- const unsafe2 = (
- /** @type {Record>} */
- node2
- );
- const type5 = typeof unsafe2.type === "string" ? unsafe2.type : "";
- switch (type5) {
- case "comment": {
- return comment(state2, unsafe2);
- }
- case "doctype": {
- return doctype(state2, unsafe2);
- }
- case "element": {
- return element2(state2, unsafe2);
- }
- case "root": {
- return root2(state2, unsafe2);
- }
- case "text": {
- return text5(state2, unsafe2);
- }
- default:
- }
- }
-}
-function comment(state2, unsafe2) {
- if (state2.schema.allowComments) {
- const result = typeof unsafe2.value === "string" ? unsafe2.value : "";
- const index3 = result.indexOf("-->");
- const value2 = index3 < 0 ? result : result.slice(0, index3);
- const node2 = { type: "comment", value: value2 };
- patch(node2, unsafe2);
- return node2;
- }
-}
-function doctype(state2, unsafe2) {
- if (state2.schema.allowDoctypes) {
- const node2 = { type: "doctype" };
- patch(node2, unsafe2);
- return node2;
- }
-}
-function element2(state2, unsafe2) {
- const name = typeof unsafe2.tagName === "string" ? unsafe2.tagName : "";
- state2.stack.push(name);
- const content3 = (
- /** @type {Array} */
- children(state2, unsafe2.children)
- );
- const properties_ = properties(state2, unsafe2.properties);
- state2.stack.pop();
- let safeElement = false;
- if (name && name !== "*" && (!state2.schema.tagNames || state2.schema.tagNames.includes(name))) {
- safeElement = true;
- if (state2.schema.ancestors && own7.call(state2.schema.ancestors, name)) {
- const ancestors = state2.schema.ancestors[name];
- let index3 = -1;
- safeElement = false;
- while (++index3 < ancestors.length) {
- if (state2.stack.includes(ancestors[index3])) {
- safeElement = true;
- }
- }
- }
- }
- if (!safeElement) {
- return state2.schema.strip && !state2.schema.strip.includes(name) ? content3 : void 0;
- }
- const node2 = {
- type: "element",
- tagName: name,
- properties: properties_,
- children: content3
- };
- patch(node2, unsafe2);
- return node2;
-}
-function root2(state2, unsafe2) {
- const content3 = (
- /** @type {Array} */
- children(state2, unsafe2.children)
- );
- const node2 = { type: "root", children: content3 };
- patch(node2, unsafe2);
- return node2;
-}
-function text5(_5, unsafe2) {
- const value2 = typeof unsafe2.value === "string" ? unsafe2.value : "";
- const node2 = { type: "text", value: value2 };
- patch(node2, unsafe2);
- return node2;
-}
-function children(state2, children2) {
- const results = [];
- if (Array.isArray(children2)) {
- const childrenUnknown = (
- /** @type {Array>} */
- children2
- );
- let index3 = -1;
- while (++index3 < childrenUnknown.length) {
- const value2 = transform(state2, childrenUnknown[index3]);
- if (value2) {
- if (Array.isArray(value2)) {
- results.push(...value2);
- } else {
- results.push(value2);
- }
- }
- }
- }
- return results;
-}
-function properties(state2, properties2) {
- const tagName = state2.stack[state2.stack.length - 1];
- const attributes = state2.schema.attributes;
- const required = state2.schema.required;
- const specific = attributes && own7.call(attributes, tagName) ? attributes[tagName] : void 0;
- const defaults2 = attributes && own7.call(attributes, "*") ? attributes["*"] : void 0;
- const properties_ = (
- /** @type {Readonly>>} */
- properties2 && typeof properties2 === "object" ? properties2 : {}
- );
- const result = {};
- let key2;
- for (key2 in properties_) {
- if (own7.call(properties_, key2)) {
- const unsafe2 = properties_[key2];
- let safe2 = propertyValue(
- state2,
- findDefinition(specific, key2),
- key2,
- unsafe2
- );
- if (safe2 === null || safe2 === void 0) {
- safe2 = propertyValue(state2, findDefinition(defaults2, key2), key2, unsafe2);
- }
- if (safe2 !== null && safe2 !== void 0) {
- result[key2] = safe2;
- }
- }
- }
- if (required && own7.call(required, tagName)) {
- const properties3 = required[tagName];
- for (key2 in properties3) {
- if (own7.call(properties3, key2) && !own7.call(result, key2)) {
- result[key2] = properties3[key2];
- }
- }
- }
- return result;
-}
-function propertyValue(state2, definition3, key2, value2) {
- return definition3 ? Array.isArray(value2) ? propertyValueMany(state2, definition3, key2, value2) : propertyValuePrimitive(state2, definition3, key2, value2) : void 0;
-}
-function propertyValueMany(state2, definition3, key2, values) {
- let index3 = -1;
- const result = [];
- while (++index3 < values.length) {
- const value2 = propertyValuePrimitive(state2, definition3, key2, values[index3]);
- if (typeof value2 === "number" || typeof value2 === "string") {
- result.push(value2);
- }
- }
- return result;
-}
-function propertyValuePrimitive(state2, definition3, key2, value2) {
- if (typeof value2 !== "boolean" && typeof value2 !== "number" && typeof value2 !== "string") {
- return;
- }
- if (!safeProtocol(state2, key2, value2)) {
- return;
- }
- if (typeof definition3 === "object" && definition3.length > 1) {
- let ok3 = false;
- let index3 = 0;
- while (++index3 < definition3.length) {
- const allowed = definition3[index3];
- if (allowed && typeof allowed === "object" && "flags" in allowed) {
- if (allowed.test(String(value2))) {
- ok3 = true;
- break;
- }
- } else if (allowed === value2) {
- ok3 = true;
- break;
- }
- }
- if (!ok3) return;
- }
- return state2.schema.clobber && state2.schema.clobberPrefix && state2.schema.clobber.includes(key2) ? state2.schema.clobberPrefix + value2 : value2;
-}
-function safeProtocol(state2, key2, value2) {
- const protocols = state2.schema.protocols && own7.call(state2.schema.protocols, key2) ? state2.schema.protocols[key2] : void 0;
- if (!protocols || protocols.length === 0) {
- return true;
- }
- const url = String(value2);
- const colon = url.indexOf(":");
- const questionMark = url.indexOf("?");
- const numberSign = url.indexOf("#");
- const slash = url.indexOf("/");
- if (colon < 0 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
- slash > -1 && colon > slash || questionMark > -1 && colon > questionMark || numberSign > -1 && colon > numberSign) {
- return true;
- }
- let index3 = -1;
- while (++index3 < protocols.length) {
- const protocol = protocols[index3];
- if (colon === protocol.length && url.slice(0, protocol.length) === protocol) {
- return true;
- }
- }
- return false;
-}
-function patch(node2, unsafe2) {
- const cleanPosition = position2(
- // @ts-expect-error: looks like a node.
- unsafe2
- );
- if (unsafe2.data) {
- node2.data = esm_default(unsafe2.data);
- }
- if (cleanPosition) node2.position = cleanPosition;
-}
-function findDefinition(definitions, key2) {
- let dataDefault;
- let index3 = -1;
- if (definitions) {
- while (++index3 < definitions.length) {
- const entry = definitions[index3];
- const name = typeof entry === "string" ? entry : entry[0];
- if (name === key2) {
- return entry;
- }
- if (name === "data*") dataDefault = entry;
- }
- }
- if (key2.length > 4 && key2.slice(0, 4).toLowerCase() === "data") {
- return dataDefault;
- }
-}
-var own7;
-var init_lib26 = __esm({
- "node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/lib/index.js"() {
- init_esm();
- init_unist_util_position();
- init_schema();
- own7 = {}.hasOwnProperty;
- }
-});
-
-// node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/index.js
-var init_hast_util_sanitize = __esm({
- "node_modules/.pnpm/hast-util-sanitize@5.0.2/node_modules/hast-util-sanitize/index.js"() {
- init_lib26();
- init_schema();
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js
-function blockquote2(state2, node2) {
- const result = {
- type: "element",
- tagName: "blockquote",
- properties: {},
- children: state2.wrap(state2.all(node2), true)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_blockquote2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/break.js
-function hardBreak2(state2, node2) {
- const result = { type: "element", tagName: "br", properties: {}, children: [] };
- state2.patch(node2, result);
- return [state2.applyData(node2, result), { type: "text", value: "\n" }];
-}
-var init_break2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/break.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/code.js
-function code3(state2, node2) {
- const value2 = node2.value ? node2.value + "\n" : "";
- const properties2 = {};
- const language = node2.lang ? node2.lang.split(/\s+/) : [];
- if (language.length > 0) {
- properties2.className = ["language-" + language[0]];
- }
- let result = {
- type: "element",
- tagName: "code",
- properties: properties2,
- children: [{ type: "text", value: value2 }]
- };
- if (node2.meta) {
- result.data = { meta: node2.meta };
- }
- state2.patch(node2, result);
- result = state2.applyData(node2, result);
- result = { type: "element", tagName: "pre", properties: {}, children: [result] };
- state2.patch(node2, result);
- return result;
-}
-var init_code2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/code.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/delete.js
-function strikethrough(state2, node2) {
- const result = {
- type: "element",
- tagName: "del",
- properties: {},
- children: state2.all(node2)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_delete = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/delete.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js
-function emphasis2(state2, node2) {
- const result = {
- type: "element",
- tagName: "em",
- properties: {},
- children: state2.all(node2)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_emphasis2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js
-function footnoteReference2(state2, node2) {
- const clobberPrefix = typeof state2.options.clobberPrefix === "string" ? state2.options.clobberPrefix : "user-content-";
- const id = String(node2.identifier).toUpperCase();
- const safeId = normalizeUri(id.toLowerCase());
- const index3 = state2.footnoteOrder.indexOf(id);
- let counter2;
- let reuseCounter = state2.footnoteCounts.get(id);
- if (reuseCounter === void 0) {
- reuseCounter = 0;
- state2.footnoteOrder.push(id);
- counter2 = state2.footnoteOrder.length;
- } else {
- counter2 = index3 + 1;
- }
- reuseCounter += 1;
- state2.footnoteCounts.set(id, reuseCounter);
- const link3 = {
- type: "element",
- tagName: "a",
- properties: {
- href: "#" + clobberPrefix + "fn-" + safeId,
- id: clobberPrefix + "fnref-" + safeId + (reuseCounter > 1 ? "-" + reuseCounter : ""),
- dataFootnoteRef: true,
- ariaDescribedBy: ["footnote-label"]
- },
- children: [{ type: "text", value: String(counter2) }]
- };
- state2.patch(node2, link3);
- const sup = {
- type: "element",
- tagName: "sup",
- properties: {},
- children: [link3]
- };
- state2.patch(node2, sup);
- return state2.applyData(node2, sup);
-}
-var init_footnote_reference = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js"() {
- init_micromark_util_sanitize_uri();
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/heading.js
-function heading2(state2, node2) {
- const result = {
- type: "element",
- tagName: "h" + node2.depth,
- properties: {},
- children: state2.all(node2)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_heading2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/heading.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/html.js
-function html2(state2, node2) {
- if (state2.options.allowDangerousHtml) {
- const result = { type: "raw", value: node2.value };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
- }
- return void 0;
-}
-var init_html8 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/html.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.js
-function revert(state2, node2) {
- const subtype = node2.referenceType;
- let suffix = "]";
- if (subtype === "collapsed") {
- suffix += "[]";
- } else if (subtype === "full") {
- suffix += "[" + (node2.label || node2.identifier) + "]";
- }
- if (node2.type === "imageReference") {
- return [{ type: "text", value: "![" + node2.alt + suffix }];
- }
- const contents = state2.all(node2);
- const head2 = contents[0];
- if (head2 && head2.type === "text") {
- head2.value = "[" + head2.value;
- } else {
- contents.unshift({ type: "text", value: "[" });
- }
- const tail = contents[contents.length - 1];
- if (tail && tail.type === "text") {
- tail.value += suffix;
- } else {
- contents.push({ type: "text", value: suffix });
- }
- return contents;
-}
-var init_revert = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/revert.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js
-function imageReference2(state2, node2) {
- const id = String(node2.identifier).toUpperCase();
- const definition3 = state2.definitionById.get(id);
- if (!definition3) {
- return revert(state2, node2);
- }
- const properties2 = { src: normalizeUri(definition3.url || ""), alt: node2.alt };
- if (definition3.title !== null && definition3.title !== void 0) {
- properties2.title = definition3.title;
- }
- const result = { type: "element", tagName: "img", properties: properties2, children: [] };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_image_reference2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js"() {
- init_micromark_util_sanitize_uri();
- init_revert();
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image.js
-function image2(state2, node2) {
- const properties2 = { src: normalizeUri(node2.url) };
- if (node2.alt !== null && node2.alt !== void 0) {
- properties2.alt = node2.alt;
- }
- if (node2.title !== null && node2.title !== void 0) {
- properties2.title = node2.title;
- }
- const result = { type: "element", tagName: "img", properties: properties2, children: [] };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_image2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/image.js"() {
- init_micromark_util_sanitize_uri();
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js
-function inlineCode2(state2, node2) {
- const text9 = { type: "text", value: node2.value.replace(/\r?\n|\r/g, " ") };
- state2.patch(node2, text9);
- const result = {
- type: "element",
- tagName: "code",
- properties: {},
- children: [text9]
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_inline_code2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js
-function linkReference2(state2, node2) {
- const id = String(node2.identifier).toUpperCase();
- const definition3 = state2.definitionById.get(id);
- if (!definition3) {
- return revert(state2, node2);
- }
- const properties2 = { href: normalizeUri(definition3.url || "") };
- if (definition3.title !== null && definition3.title !== void 0) {
- properties2.title = definition3.title;
- }
- const result = {
- type: "element",
- tagName: "a",
- properties: properties2,
- children: state2.all(node2)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_link_reference2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js"() {
- init_micromark_util_sanitize_uri();
- init_revert();
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link.js
-function link2(state2, node2) {
- const properties2 = { href: normalizeUri(node2.url) };
- if (node2.title !== null && node2.title !== void 0) {
- properties2.title = node2.title;
- }
- const result = {
- type: "element",
- tagName: "a",
- properties: properties2,
- children: state2.all(node2)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_link2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/link.js"() {
- init_micromark_util_sanitize_uri();
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list-item.js
-function listItem2(state2, node2, parent) {
- const results = state2.all(node2);
- const loose = parent ? listLoose(parent) : listItemLoose(node2);
- const properties2 = {};
- const children2 = [];
- if (typeof node2.checked === "boolean") {
- const head2 = results[0];
- let paragraph3;
- if (head2 && head2.type === "element" && head2.tagName === "p") {
- paragraph3 = head2;
- } else {
- paragraph3 = { type: "element", tagName: "p", properties: {}, children: [] };
- results.unshift(paragraph3);
- }
- if (paragraph3.children.length > 0) {
- paragraph3.children.unshift({ type: "text", value: " " });
- }
- paragraph3.children.unshift({
- type: "element",
- tagName: "input",
- properties: { type: "checkbox", checked: node2.checked, disabled: true },
- children: []
- });
- properties2.className = ["task-list-item"];
- }
- let index3 = -1;
- while (++index3 < results.length) {
- const child = results[index3];
- if (loose || index3 !== 0 || child.type !== "element" || child.tagName !== "p") {
- children2.push({ type: "text", value: "\n" });
- }
- if (child.type === "element" && child.tagName === "p" && !loose) {
- children2.push(...child.children);
- } else {
- children2.push(child);
- }
- }
- const tail = results[results.length - 1];
- if (tail && (loose || tail.type !== "element" || tail.tagName !== "p")) {
- children2.push({ type: "text", value: "\n" });
- }
- const result = { type: "element", tagName: "li", properties: properties2, children: children2 };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-function listLoose(node2) {
- let loose = false;
- if (node2.type === "list") {
- loose = node2.spread || false;
- const children2 = node2.children;
- let index3 = -1;
- while (!loose && ++index3 < children2.length) {
- loose = listItemLoose(children2[index3]);
- }
- }
- return loose;
-}
-function listItemLoose(node2) {
- const spread = node2.spread;
- return spread === null || spread === void 0 ? node2.children.length > 1 : spread;
-}
-var init_list_item2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list-item.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list.js
-function list4(state2, node2) {
- const properties2 = {};
- const results = state2.all(node2);
- let index3 = -1;
- if (typeof node2.start === "number" && node2.start !== 1) {
- properties2.start = node2.start;
- }
- while (++index3 < results.length) {
- const child = results[index3];
- if (child.type === "element" && child.tagName === "li" && child.properties && Array.isArray(child.properties.className) && child.properties.className.includes("task-list-item")) {
- properties2.className = ["contains-task-list"];
- break;
- }
- }
- const result = {
- type: "element",
- tagName: node2.ordered ? "ol" : "ul",
- properties: properties2,
- children: state2.wrap(results, true)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_list3 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/list.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js
-function paragraph2(state2, node2) {
- const result = {
- type: "element",
- tagName: "p",
- properties: {},
- children: state2.all(node2)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_paragraph2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/root.js
-function root3(state2, node2) {
- const result = { type: "root", children: state2.wrap(state2.all(node2)) };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_root2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/root.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/strong.js
-function strong2(state2, node2) {
- const result = {
- type: "element",
- tagName: "strong",
- properties: {},
- children: state2.all(node2)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_strong2 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/strong.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table.js
-function table(state2, node2) {
- const rows = state2.all(node2);
- const firstRow = rows.shift();
- const tableContent = [];
- if (firstRow) {
- const head2 = {
- type: "element",
- tagName: "thead",
- properties: {},
- children: state2.wrap([firstRow], true)
- };
- state2.patch(node2.children[0], head2);
- tableContent.push(head2);
- }
- if (rows.length > 0) {
- const body3 = {
- type: "element",
- tagName: "tbody",
- properties: {},
- children: state2.wrap(rows, true)
- };
- const start = pointStart(node2.children[1]);
- const end3 = pointEnd(node2.children[node2.children.length - 1]);
- if (start && end3) body3.position = { start, end: end3 };
- tableContent.push(body3);
- }
- const result = {
- type: "element",
- tagName: "table",
- properties: {},
- children: state2.wrap(tableContent, true)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_table = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table.js"() {
- init_unist_util_position();
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-row.js
-function tableRow(state2, node2, parent) {
- const siblings2 = parent ? parent.children : void 0;
- const rowIndex = siblings2 ? siblings2.indexOf(node2) : 1;
- const tagName = rowIndex === 0 ? "th" : "td";
- const align = parent && parent.type === "table" ? parent.align : void 0;
- const length = align ? align.length : node2.children.length;
- let cellIndex = -1;
- const cells2 = [];
- while (++cellIndex < length) {
- const cell2 = node2.children[cellIndex];
- const properties2 = {};
- const alignValue = align ? align[cellIndex] : void 0;
- if (alignValue) {
- properties2.align = alignValue;
- }
- let result2 = { type: "element", tagName, properties: properties2, children: [] };
- if (cell2) {
- result2.children = state2.all(cell2);
- state2.patch(cell2, result2);
- result2 = state2.applyData(cell2, result2);
- }
- cells2.push(result2);
- }
- const result = {
- type: "element",
- tagName: "tr",
- properties: {},
- children: state2.wrap(cells2, true)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_table_row = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-row.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js
-function tableCell(state2, node2) {
- const result = {
- type: "element",
- tagName: "td",
- // Assume body cell.
- properties: {},
- children: state2.all(node2)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_table_cell = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js"() {
- }
-});
-
-// node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.js
-function trimLines(value2) {
- const source = String(value2);
- const search2 = /\r?\n|\r/g;
- let match2 = search2.exec(source);
- let last3 = 0;
- const lines = [];
- while (match2) {
- lines.push(
- trimLine(source.slice(last3, match2.index), last3 > 0, true),
- match2[0]
- );
- last3 = match2.index + match2[0].length;
- match2 = search2.exec(source);
- }
- lines.push(trimLine(source.slice(last3), last3 > 0, false));
- return lines.join("");
-}
-function trimLine(value2, start, end3) {
- let startIndex = 0;
- let endIndex = value2.length;
- if (start) {
- let code4 = value2.codePointAt(startIndex);
- while (code4 === tab || code4 === space) {
- startIndex++;
- code4 = value2.codePointAt(startIndex);
- }
- }
- if (end3) {
- let code4 = value2.codePointAt(endIndex - 1);
- while (code4 === tab || code4 === space) {
- endIndex--;
- code4 = value2.codePointAt(endIndex - 1);
- }
- }
- return endIndex > startIndex ? value2.slice(startIndex, endIndex) : "";
-}
-var tab, space;
-var init_trim_lines = __esm({
- "node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.js"() {
- tab = 9;
- space = 32;
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js
-function text6(state2, node2) {
- const result = { type: "text", value: trimLines(String(node2.value)) };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_text3 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/text.js"() {
- init_trim_lines();
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js
-function thematicBreak3(state2, node2) {
- const result = {
- type: "element",
- tagName: "hr",
- properties: {},
- children: []
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-var init_thematic_break3 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js"() {
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/index.js
-function ignore() {
- return void 0;
-}
-var handlers;
-var init_handlers = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/handlers/index.js"() {
- init_blockquote2();
- init_break2();
- init_code2();
- init_delete();
- init_emphasis2();
- init_footnote_reference();
- init_heading2();
- init_html8();
- init_image_reference2();
- init_image2();
- init_inline_code2();
- init_link_reference2();
- init_link2();
- init_list_item2();
- init_list3();
- init_paragraph2();
- init_root2();
- init_strong2();
- init_table();
- init_table_row();
- init_table_cell();
- init_text3();
- init_thematic_break3();
- handlers = {
- blockquote: blockquote2,
- break: hardBreak2,
- code: code3,
- delete: strikethrough,
- emphasis: emphasis2,
- footnoteReference: footnoteReference2,
- heading: heading2,
- html: html2,
- imageReference: imageReference2,
- image: image2,
- inlineCode: inlineCode2,
- linkReference: linkReference2,
- link: link2,
- listItem: listItem2,
- list: list4,
- paragraph: paragraph2,
- // @ts-expect-error: root is different, but hard to type.
- root: root3,
- strong: strong2,
- table,
- tableCell,
- tableRow,
- text: text6,
- thematicBreak: thematicBreak3,
- toml: ignore,
- yaml: ignore,
- definition: ignore,
- footnoteDefinition: ignore
- };
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js
-function defaultFootnoteBackContent(_5, rereferenceIndex) {
- const result = [{ type: "text", value: "\u21A9" }];
- if (rereferenceIndex > 1) {
- result.push({
- type: "element",
- tagName: "sup",
- properties: {},
- children: [{ type: "text", value: String(rereferenceIndex) }]
- });
- }
- return result;
-}
-function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {
- return "Back to reference " + (referenceIndex + 1) + (rereferenceIndex > 1 ? "-" + rereferenceIndex : "");
-}
-function footer(state2) {
- const clobberPrefix = typeof state2.options.clobberPrefix === "string" ? state2.options.clobberPrefix : "user-content-";
- const footnoteBackContent = state2.options.footnoteBackContent || defaultFootnoteBackContent;
- const footnoteBackLabel = state2.options.footnoteBackLabel || defaultFootnoteBackLabel;
- const footnoteLabel = state2.options.footnoteLabel || "Footnotes";
- const footnoteLabelTagName = state2.options.footnoteLabelTagName || "h2";
- const footnoteLabelProperties = state2.options.footnoteLabelProperties || {
- className: ["sr-only"]
- };
- const listItems = [];
- let referenceIndex = -1;
- while (++referenceIndex < state2.footnoteOrder.length) {
- const definition3 = state2.footnoteById.get(
- state2.footnoteOrder[referenceIndex]
- );
- if (!definition3) {
- continue;
- }
- const content3 = state2.all(definition3);
- const id = String(definition3.identifier).toUpperCase();
- const safeId = normalizeUri(id.toLowerCase());
- let rereferenceIndex = 0;
- const backReferences = [];
- const counts = state2.footnoteCounts.get(id);
- while (counts !== void 0 && ++rereferenceIndex <= counts) {
- if (backReferences.length > 0) {
- backReferences.push({ type: "text", value: " " });
- }
- let children2 = typeof footnoteBackContent === "string" ? footnoteBackContent : footnoteBackContent(referenceIndex, rereferenceIndex);
- if (typeof children2 === "string") {
- children2 = { type: "text", value: children2 };
- }
- backReferences.push({
- type: "element",
- tagName: "a",
- properties: {
- href: "#" + clobberPrefix + "fnref-" + safeId + (rereferenceIndex > 1 ? "-" + rereferenceIndex : ""),
- dataFootnoteBackref: "",
- ariaLabel: typeof footnoteBackLabel === "string" ? footnoteBackLabel : footnoteBackLabel(referenceIndex, rereferenceIndex),
- className: ["data-footnote-backref"]
- },
- children: Array.isArray(children2) ? children2 : [children2]
- });
- }
- const tail = content3[content3.length - 1];
- if (tail && tail.type === "element" && tail.tagName === "p") {
- const tailTail = tail.children[tail.children.length - 1];
- if (tailTail && tailTail.type === "text") {
- tailTail.value += " ";
- } else {
- tail.children.push({ type: "text", value: " " });
- }
- tail.children.push(...backReferences);
- } else {
- content3.push(...backReferences);
- }
- const listItem4 = {
- type: "element",
- tagName: "li",
- properties: { id: clobberPrefix + "fn-" + safeId },
- children: state2.wrap(content3, true)
- };
- state2.patch(definition3, listItem4);
- listItems.push(listItem4);
- }
- if (listItems.length === 0) {
- return;
- }
- return {
- type: "element",
- tagName: "section",
- properties: { dataFootnotes: true, className: ["footnotes"] },
- children: [
- {
- type: "element",
- tagName: footnoteLabelTagName,
- properties: {
- ...esm_default(footnoteLabelProperties),
- id: "footnote-label"
- },
- children: [{ type: "text", value: footnoteLabel }]
- },
- { type: "text", value: "\n" },
- {
- type: "element",
- tagName: "ol",
- properties: {},
- children: state2.wrap(listItems, true)
- },
- { type: "text", value: "\n" }
- ]
- };
-}
-var init_footer = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js"() {
- init_esm();
- init_micromark_util_sanitize_uri();
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js
-function createState(tree, options2) {
- const settings = options2 || emptyOptions5;
- const definitionById = /* @__PURE__ */ new Map();
- const footnoteById = /* @__PURE__ */ new Map();
- const footnoteCounts = /* @__PURE__ */ new Map();
- const handlers3 = { ...handlers, ...settings.handlers };
- const state2 = {
- all: all3,
- applyData,
- definitionById,
- footnoteById,
- footnoteCounts,
- footnoteOrder: [],
- handlers: handlers3,
- one: one3,
- options: settings,
- patch: patch2,
- wrap: wrap3
- };
- visit(tree, function(node2) {
- if (node2.type === "definition" || node2.type === "footnoteDefinition") {
- const map8 = node2.type === "definition" ? definitionById : footnoteById;
- const id = String(node2.identifier).toUpperCase();
- if (!map8.has(id)) {
- map8.set(id, node2);
- }
- }
- });
- return state2;
- function one3(node2, parent) {
- const type5 = node2.type;
- const handle3 = state2.handlers[type5];
- if (own8.call(state2.handlers, type5) && handle3) {
- return handle3(state2, node2, parent);
- }
- if (state2.options.passThrough && state2.options.passThrough.includes(type5)) {
- if ("children" in node2) {
- const { children: children2, ...shallow } = node2;
- const result = esm_default(shallow);
- result.children = state2.all(node2);
- return result;
- }
- return esm_default(node2);
- }
- const unknown3 = state2.options.unknownHandler || defaultUnknownHandler;
- return unknown3(state2, node2, parent);
- }
- function all3(parent) {
- const values = [];
- if ("children" in parent) {
- const nodes = parent.children;
- let index3 = -1;
- while (++index3 < nodes.length) {
- const result = state2.one(nodes[index3], parent);
- if (result) {
- if (index3 && nodes[index3 - 1].type === "break") {
- if (!Array.isArray(result) && result.type === "text") {
- result.value = trimMarkdownSpaceStart(result.value);
- }
- if (!Array.isArray(result) && result.type === "element") {
- const head2 = result.children[0];
- if (head2 && head2.type === "text") {
- head2.value = trimMarkdownSpaceStart(head2.value);
- }
- }
- }
- if (Array.isArray(result)) {
- values.push(...result);
- } else {
- values.push(result);
- }
- }
- }
- }
- return values;
- }
-}
-function patch2(from3, to2) {
- if (from3.position) to2.position = position2(from3);
-}
-function applyData(from3, to2) {
- let result = to2;
- if (from3 && from3.data) {
- const hName = from3.data.hName;
- const hChildren = from3.data.hChildren;
- const hProperties = from3.data.hProperties;
- if (typeof hName === "string") {
- if (result.type === "element") {
- result.tagName = hName;
- } else {
- const children2 = "children" in result ? result.children : [result];
- result = { type: "element", tagName: hName, properties: {}, children: children2 };
- }
- }
- if (result.type === "element" && hProperties) {
- Object.assign(result.properties, esm_default(hProperties));
- }
- if ("children" in result && result.children && hChildren !== null && hChildren !== void 0) {
- result.children = hChildren;
- }
- }
- return result;
-}
-function defaultUnknownHandler(state2, node2) {
- const data = node2.data || {};
- const result = "value" in node2 && !(own8.call(data, "hProperties") || own8.call(data, "hChildren")) ? { type: "text", value: node2.value } : {
- type: "element",
- tagName: "div",
- properties: {},
- children: state2.all(node2)
- };
- state2.patch(node2, result);
- return state2.applyData(node2, result);
-}
-function wrap3(nodes, loose) {
- const result = [];
- let index3 = -1;
- if (loose) {
- result.push({ type: "text", value: "\n" });
- }
- while (++index3 < nodes.length) {
- if (index3) result.push({ type: "text", value: "\n" });
- result.push(nodes[index3]);
- }
- if (loose && nodes.length > 0) {
- result.push({ type: "text", value: "\n" });
- }
- return result;
-}
-function trimMarkdownSpaceStart(value2) {
- let index3 = 0;
- let code4 = value2.charCodeAt(index3);
- while (code4 === 9 || code4 === 32) {
- index3++;
- code4 = value2.charCodeAt(index3);
- }
- return value2.slice(index3);
-}
-var own8, emptyOptions5;
-var init_state = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js"() {
- init_esm();
- init_unist_util_visit();
- init_unist_util_position();
- init_handlers();
- own8 = {}.hasOwnProperty;
- emptyOptions5 = {};
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/index.js
-function toHast(tree, options2) {
- const state2 = createState(tree, options2);
- const node2 = state2.one(tree, void 0);
- const foot = footer(state2);
- const result = Array.isArray(node2) ? { type: "root", children: node2 } : node2 || { type: "root", children: [] };
- if (foot) {
- ok("children" in result);
- result.children.push({ type: "text", value: "\n" }, foot);
- }
- return result;
-}
-var init_lib27 = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/index.js"() {
- init_default();
- init_footer();
- init_state();
- }
-});
-
-// node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/index.js
-var init_mdast_util_to_hast = __esm({
- "node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/index.js"() {
- init_handlers();
- init_lib27();
- init_footer();
- }
-});
-
-// node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js
-var htmlVoidElements;
-var init_html_void_elements = __esm({
- "node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.js"() {
- htmlVoidElements = [
- "area",
- "base",
- "basefont",
- "bgsound",
- "br",
- "col",
- "command",
- "embed",
- "frame",
- "hr",
- "image",
- "img",
- "input",
- "keygen",
- "link",
- "meta",
- "param",
- "source",
- "track",
- "wbr"
- ];
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js
-var Schema;
-var init_schema2 = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js"() {
- Schema = class {
- /**
- * @param {SchemaType['property']} property
- * Property.
- * @param {SchemaType['normal']} normal
- * Normal.
- * @param {Space | undefined} [space]
- * Space.
- * @returns
- * Schema.
- */
- constructor(property, normal, space2) {
- this.normal = normal;
- this.property = property;
- if (space2) {
- this.space = space2;
- }
- }
- };
- Schema.prototype.normal = {};
- Schema.prototype.property = {};
- Schema.prototype.space = void 0;
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js
-function merge3(definitions, space2) {
- const property = {};
- const normal = {};
- for (const definition3 of definitions) {
- Object.assign(property, definition3.property);
- Object.assign(normal, definition3.normal);
- }
- return new Schema(property, normal, space2);
-}
-var init_merge3 = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js"() {
- init_schema2();
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js
-function normalize3(value2) {
- return value2.toLowerCase();
-}
-var init_normalize = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js"() {
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js
-var Info;
-var init_info = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js"() {
- Info = class {
- /**
- * @param {string} property
- * Property.
- * @param {string} attribute
- * Attribute.
- * @returns
- * Info.
- */
- constructor(property, attribute) {
- this.attribute = attribute;
- this.property = property;
- }
- };
- Info.prototype.attribute = "";
- Info.prototype.booleanish = false;
- Info.prototype.boolean = false;
- Info.prototype.commaOrSpaceSeparated = false;
- Info.prototype.commaSeparated = false;
- Info.prototype.defined = false;
- Info.prototype.mustUseProperty = false;
- Info.prototype.number = false;
- Info.prototype.overloadedBoolean = false;
- Info.prototype.property = "";
- Info.prototype.spaceSeparated = false;
- Info.prototype.space = void 0;
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js
-var types_exports = {};
-__export(types_exports, {
- boolean: () => boolean,
- booleanish: () => booleanish,
- commaOrSpaceSeparated: () => commaOrSpaceSeparated,
- commaSeparated: () => commaSeparated,
- number: () => number,
- overloadedBoolean: () => overloadedBoolean,
- spaceSeparated: () => spaceSeparated
-});
-function increment() {
- return 2 ** ++powers;
-}
-var powers, boolean, booleanish, overloadedBoolean, number, spaceSeparated, commaSeparated, commaOrSpaceSeparated;
-var init_types3 = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js"() {
- powers = 0;
- boolean = increment();
- booleanish = increment();
- overloadedBoolean = increment();
- number = increment();
- spaceSeparated = increment();
- commaSeparated = increment();
- commaOrSpaceSeparated = increment();
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js
-function mark(values, key2, value2) {
- if (value2) {
- values[key2] = value2;
- }
-}
-var checks, DefinedInfo;
-var init_defined_info = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js"() {
- init_info();
- init_types3();
- checks = /** @type {ReadonlyArray} */
- Object.keys(types_exports);
- DefinedInfo = class extends Info {
- /**
- * @constructor
- * @param {string} property
- * Property.
- * @param {string} attribute
- * Attribute.
- * @param {number | null | undefined} [mask]
- * Mask.
- * @param {Space | undefined} [space]
- * Space.
- * @returns
- * Info.
- */
- constructor(property, attribute, mask, space2) {
- let index3 = -1;
- super(property, attribute);
- mark(this, "space", space2);
- if (typeof mask === "number") {
- while (++index3 < checks.length) {
- const check = checks[index3];
- mark(this, checks[index3], (mask & types_exports[check]) === types_exports[check]);
- }
- }
- }
- };
- DefinedInfo.prototype.defined = true;
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js
-function create6(definition3) {
- const properties2 = {};
- const normals = {};
- for (const [property, value2] of Object.entries(definition3.properties)) {
- const info = new DefinedInfo(
- property,
- definition3.transform(definition3.attributes || {}, property),
- value2,
- definition3.space
- );
- if (definition3.mustUseProperty && definition3.mustUseProperty.includes(property)) {
- info.mustUseProperty = true;
- }
- properties2[property] = info;
- normals[normalize3(property)] = property;
- normals[normalize3(info.attribute)] = property;
- }
- return new Schema(properties2, normals, definition3.space);
-}
-var init_create = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js"() {
- init_normalize();
- init_defined_info();
- init_schema2();
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js
-var aria2;
-var init_aria = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js"() {
- init_create();
- init_types3();
- aria2 = create6({
- properties: {
- ariaActiveDescendant: null,
- ariaAtomic: booleanish,
- ariaAutoComplete: null,
- ariaBusy: booleanish,
- ariaChecked: booleanish,
- ariaColCount: number,
- ariaColIndex: number,
- ariaColSpan: number,
- ariaControls: spaceSeparated,
- ariaCurrent: null,
- ariaDescribedBy: spaceSeparated,
- ariaDetails: null,
- ariaDisabled: booleanish,
- ariaDropEffect: spaceSeparated,
- ariaErrorMessage: null,
- ariaExpanded: booleanish,
- ariaFlowTo: spaceSeparated,
- ariaGrabbed: booleanish,
- ariaHasPopup: null,
- ariaHidden: booleanish,
- ariaInvalid: null,
- ariaKeyShortcuts: null,
- ariaLabel: null,
- ariaLabelledBy: spaceSeparated,
- ariaLevel: number,
- ariaLive: null,
- ariaModal: booleanish,
- ariaMultiLine: booleanish,
- ariaMultiSelectable: booleanish,
- ariaOrientation: null,
- ariaOwns: spaceSeparated,
- ariaPlaceholder: null,
- ariaPosInSet: number,
- ariaPressed: booleanish,
- ariaReadOnly: booleanish,
- ariaRelevant: null,
- ariaRequired: booleanish,
- ariaRoleDescription: spaceSeparated,
- ariaRowCount: number,
- ariaRowIndex: number,
- ariaRowSpan: number,
- ariaSelected: booleanish,
- ariaSetSize: number,
- ariaSort: null,
- ariaValueMax: number,
- ariaValueMin: number,
- ariaValueNow: number,
- ariaValueText: null,
- role: null
- },
- transform(_5, property) {
- return property === "role" ? property : "aria-" + property.slice(4).toLowerCase();
- }
- });
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js
-function caseSensitiveTransform(attributes, attribute) {
- return attribute in attributes ? attributes[attribute] : attribute;
-}
-var init_case_sensitive_transform = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js"() {
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js
-function caseInsensitiveTransform(attributes, property) {
- return caseSensitiveTransform(attributes, property.toLowerCase());
-}
-var init_case_insensitive_transform = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js"() {
- init_case_sensitive_transform();
- }
-});
-
-// node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js
-var html3;
-var init_html9 = __esm({
- "node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js"() {
- init_case_insensitive_transform();
- init_create();
- init_types3();
- html3 = create6({
- attributes: {
- acceptcharset: "accept-charset",
- classname: "class",
- htmlfor: "for",
- httpequiv: "http-equiv"
- },
- mustUseProperty: ["checked", "multiple", "muted", "selected"],
- properties: {
- // Standard Properties.
- abbr: null,
- accept: commaSeparated,
- acceptCharset: spaceSeparated,
- accessKey: spaceSeparated,
- action: null,
- allow: null,
- allowFullScreen: boolean,
- allowPaymentRequest: boolean,
- allowUserMedia: boolean,
- alt: null,
- as: null,
- async: boolean,
- autoCapitalize: null,
- autoComplete: spaceSeparated,
- autoFocus: boolean,
- autoPlay: boolean,
- blocking: spaceSeparated,
- capture: null,
- charSet: null,
- checked: boolean,
- cite: null,
- className: spaceSeparated,
- cols: number,
- colSpan: null,
- content: null,
- contentEditable: booleanish,
- controls: boolean,
- controlsList: spaceSeparated,
- coords: number | commaSeparated,
- crossOrigin: null,
- data: null,
- dateTime: null,
- decoding: null,
- default: boolean,
- defer: boolean,
- dir: null,
- dirName: null,
- disabled: boolean,
- download: overloadedBoolean,
- draggable: booleanish,
- encType: null,
- enterKeyHint: null,
- fetchPriority: null,
- form: null,
- formAction: null,
- formEncType: null,
- formMethod: null,
- formNoValidate: boolean,
- formTarget: null,
- headers: spaceSeparated,
- height: number,
- hidden: overloadedBoolean,
- high: number,
- href: null,
- hrefLang: null,
- htmlFor: spaceSeparated,
- httpEquiv: spaceSeparated,
- id: null,
- imageSizes: null,
- imageSrcSet: null,
- inert: boolean,
- inputMode: null,
- integrity: null,
- is: null,
- isMap: boolean,
- itemId: null,
- itemProp: spaceSeparated,
- itemRef: spaceSeparated,
- itemScope: boolean,
- itemType: spaceSeparated,
- kind: null,
- label: null,
- lang: null,
- language: null,
- list: null,
- loading: null,
- loop: boolean,
- low: number,
- manifest: null,
- max: null,
- maxLength: number,
- media: null,
- method: null,
- min: null,
- minLength: number,
- multiple: boolean,
- muted: boolean,
- name: null,
- nonce: null,
- noModule: boolean,
- noValidate: boolean,
- onAbort: null,
- onAfterPrint: null,
- onAuxClick: null,
- onBeforeMatch: null,
- onBeforePrint: null,
- onBeforeToggle: null,
- onBeforeUnload: null,
- onBlur: null,
- onCancel: null,
- onCanPlay: null,
- onCanPlayThrough: null,
- onChange: null,
- onClick: null,
- onClose: null,
- onContextLost: null,
- onContextMenu: null,
- onContextRestored: null,
- onCopy: null,
- onCueChange: null,
- onCut: null,
- onDblClick: null,
- onDrag: null,
- onDragEnd: null,
- onDragEnter: null,
- onDragExit: null,
- onDragLeave: null,
- onDragOver: null,
- onDragStart: null,
- onDrop: null,
- onDurationChange: null,
- onEmptied: null,
- onEnded: null,
- onError: null,
- onFocus: null,
- onFormData: null,
- onHashChange: null,
- onInput: null,
- onInvalid: null,
- onKeyDown: null,
- onKeyPress: null,
- onKeyUp: null,
- onLanguageChange: null,
- onLoad: null,
- onLoadedData: null,
- onLoadedMetadata: null,
- onLoadEnd: null,
- onLoadStart: null,
- onMessage: null,
- onMessageError: null,
- onMouseDown: null,
- onMouseEnter: null,
- onMouseLeave: null,
- onMouseMove: null,
- onMouseOut: null,
- onMouseOver: null,
- onMouseUp: null,
- onOffline: null,
- onOnline: null,
- onPageHide: null,
- onPageShow: null,
- onPaste: null,
- onPause: null,
- onPlay: null,
- onPlaying: null,
- onPopState: null,
- onProgress: null,
- onRateChange: null,
- onRejectionHandled: null,
- onReset: null,
- onResize: null,
- onScroll: null,
- onScrollEnd: null,
- onSecurityPolicyViolation: null,
- onSeeked: null,
- onSeeking: null,
- onSelect: null,
- onSlotChange: null,
- onStalled: null,
- onStorage: null,
- onSubmit: null,
- onSuspend: null,
- onTimeUpdate: null,
- onToggle: null,
- onUnhandledRejection: null,
- onUnload: null,
- onVolumeChange: null,
- onWaiting: null,
- onWheel: null,
- open: boolean,
- optimum: number,
- pattern: null,
- ping: spaceSeparated,
- placeholder: null,
- playsInline: boolean,
- popover: null,
- popoverTarget: null,
- popoverTargetAction: null,
- poster: null,
- preload: null,
- readOnly: boolean,
- referrerPolicy: null,
- rel: spaceSeparated,
- required: boolean,
- reversed: boolean,
- rows: number,
- rowSpan: number,
- sandbox: spaceSeparated,
- scope: null,
- scoped: boolean,
- seamless: boolean,
- selected: boolean,
- shadowRootClonable: boolean,
- shadowRootDelegatesFocus: boolean,
- shadowRootMode: null,
- shape: null,
- size: number,
- sizes: null,
- slot: null,
- span: number,
- spellCheck: booleanish,
- src: null,
- srcDoc: null,
- srcLang: null,
- srcSet: null,
- start: number,
- step: null,
- style: null,
- tabIndex: number,
- target: null,
- title: null,
- translate: null,
- type: null,
- typeMustMatch: boolean,
- useMap: null,
- value: booleanish,
- width: number,
- wrap: null,
- writingSuggestions: null,
- // Legacy.
- // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
- align: null,
- // Several. Use CSS `text-align` instead,
- aLink: null,
- // ``. Use CSS `a:active {color}` instead
- archive: spaceSeparated,
- // `