diff --git a/README.md b/README.md index e84841a..ebbdce6 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Introducing AgentScheduler, an A1111/Vladmandic Stable Diffusion Web UI extensio ## Table of Content - [Compatibility](#compatibility) -- [Functionality](#functionality--as-of-current-version-) - [Installation](#installation) +- [Functionality](#functionality--as-of-current-version-) - [Using the built-in extension list](#using-the-built-in-extension-list) - [Manual clone](#manual-clone) - [Road Map](#road-map) @@ -18,42 +18,18 @@ Introducing AgentScheduler, an A1111/Vladmandic Stable Diffusion Web UI extensio ## Compatibility -This version of AgentScheduler is compatible with: +This version of AgentScheduler is compatible with latest versions of: -- A1111: [commit 5ab7f213](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/5ab7f213bec2f816f9c5644becb32eb72c8ffb89) -- Vladmandic: [commit 0a46f8ad](https://github.com/vladmandic/automatic/commit/0a46f8ada7751ee993c565198ec4c3327ff43c04) +- A1111: [commit baf6946](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/baf6946e06249c5af9851c60171692c44ef633e0) +- Vladmandic: [commit 9726b4d](https://github.com/vladmandic/automatic/commit/9726b4d23cb63779964e1d4edff49dd2c9c11e51) > Older versions may not working properly. -## Functionality [as of current version] - -![Extension Walkthrough](https://user-images.githubusercontent.com/90659883/236373779-43bb9625-d5d9-4450-abc5-93e7af7251fd.jpg) - -1️⃣ Input your usual Prompts & Settings. **Enqueue** to send your current prompts, settings, controlnets to **AgentScheduler**. - -2️⃣ **AgentScheduler** Tab Navigation. - -3️⃣ **Pause** function to stop auto generation. **Refresh** to update. - -4️⃣ See all queued tasks, current image being generated and tasks' associated information. - -5️⃣ **Delete** tasks that you no longer want. Press ▶️ to prioritize selected task. - -6️⃣ **Show/Hide** Column of Information that you want. - -7️⃣ **Drag and Drop** to reorder columns. - -https://github.com/ArtVentureX/sd-webui-agent-scheduler/assets/133728487/50c74922-b85f-493c-9be8-b8e78f0cd061 - -## Road Map - -To list possible feature upgrades for this extension - -- Sync with GenAI Management Platform **ArtVenture** -- See history of completed jobs (Logs) - ## Installation +### Using Vlad's WebUI Fork +The extension is already included in [Vlad fork](https://github.com/vladmandic/automatic)'s builtin extensions. + ### Using the built-in extension list 1. Open the Extensions tab @@ -61,7 +37,7 @@ To list possible feature upgrades for this extension 3. Paste the repo url: https://github.com/ArtVentureX/sd-webui-agent-scheduler.git 4. Click "Install" -![Install](/docs/images/install.png) +![Install](https://github.com/ArtVentureX/sd-webui-agent-scheduler/assets/133728487/f0fa740b-392a-4dd6-abe1-49c770ea60da) ### Manual clone @@ -71,6 +47,61 @@ git clone "https://github.com/ArtVentureX/sd-webui-agent-scheduler.git" extensio (The second argument specifies the name of the folder, you can choose whatever you like). +## Functionality [as of current version] + +![Extension Walkthrough 1](https://github.com/ArtVentureX/sd-webui-agent-scheduler/assets/133728487/a5a039a7-d98b-4186-9131-6775f0812c39) + +1️⃣ Input your usual Prompts & Settings. **Enqueue** to send your current prompts, settings, controlnets to **AgentScheduler**. + +![Extension Walkthrough 2](https://github.com/ArtVentureX/sd-webui-agent-scheduler/assets/133728487/734176b4-7ee3-40e5-bb92-35608fabfc4b) + +2️⃣ **AgentScheduler** Extension Tab. + +3️⃣ See all queued tasks, current image being generated and tasks' associated information. **Drag and drop** the handle in the begining of each row to reaggrange the generation order. + +4️⃣ **Pause** to stop queue auto generation. **Resume** to start. + +5️⃣ Press ▶️ to prioritize selected task, or to start a single task when queue is paused. **Delete** tasks that you no longer want. + +![ Extension Walkthrough 3](https://github.com/ArtVentureX/sd-webui-agent-scheduler/assets/133728487/23109761-2633-4b24-bbb3-091628367047) + +6️⃣ Show queue history. + +7️⃣ **Filter** task status or search by text. + +8️⃣ **Bookmark** task to easier filtering. + +9️⃣ Double click the task id to **rename**. Click ↩️ to **Requeue** old task. + +🔟 Click on each task to **view** the generation results. + +https://github.com/ArtVentureX/sd-webui-agent-scheduler/assets/133728487/50c74922-b85f-493c-9be8-b8e78f0cd061 + +## Extension Settings + +Go to `Settings > Agent Scheduler` to access extension settings. + +![Settings](https://github.com/ArtVentureX/sd-webui-agent-scheduler/assets/133728487/b0377ccd-f9bf-486e-8393-c06fe26aa117) + +**Disable Queue Auto-Processing**: Check this option to disable queue auto-processing on start-up. You can also temporarily pause or resume the queue from the Extension tab. + +**Queue Button Placement**: Change the placement of the queue button on the UI. + +**Hide the Checkpoint Dropdown**: The Extension provides a custom checkpoint dropdown. + +![Custom Checkpoint](https://github.com/ArtVentureX/sd-webui-agent-scheduler/assets/133728487/d110d314-a208-4eec-bb54-9f8c73cb450b) + +By default, queued tasks use the currently loaded checkpoint. However, changing the system checkpoint requires some time to load the checkpoint into memory, and you also cannot change the checkpoint during image generation. You can use this dropdown to quickly queue a task with a custom checkpoint. + +**Auto Delete Queue History**: Select a timeframe to keep your queue history. Tasks that are older than the configured value will be automatically deleted. Please note that bookmarked tasks will not be deleted. + +## Road Map + +To list possible feature upgrades for this extension + +- Connect multiple SD webui nodes to run task. +- Sync with GenAI Management Platform **ArtVenture** + ## Contributing We welcome contributions to the Agent Scheduler Extension project! Please feel free to submit issues, bug reports, and feature requests through the GitHub repository. diff --git a/docs/.DS_Store b/docs/.DS_Store new file mode 100644 index 0000000..cd3a2cf Binary files /dev/null and b/docs/.DS_Store differ diff --git a/docs/images/settings.png b/docs/images/settings.png new file mode 100644 index 0000000..f77c9eb Binary files /dev/null and b/docs/images/settings.png differ diff --git a/docs/images/walkthrough.png b/docs/images/walkthrough.png new file mode 100644 index 0000000..d39d75a Binary files /dev/null and b/docs/images/walkthrough.png differ diff --git a/javascript/extension.mjs b/javascript/extension.mjs index 0d57de9..cc4a69c 100644 --- a/javascript/extension.mjs +++ b/javascript/extension.mjs @@ -1,1128 +1,3 @@ -var Cn = function(n, t) { - return Cn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) { - e.__proto__ = r; - } || function(e, r) { - for (var i in r) - Object.prototype.hasOwnProperty.call(r, i) && (e[i] = r[i]); - }, Cn(n, t); -}; -function _t(n, t) { - if (typeof t != "function" && t !== null) - throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); - Cn(n, t); - function e() { - this.constructor = n; - } - n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e()); -} -function Ou(n, t, e, r) { - function i(o) { - return o instanceof e ? o : new e(function(s) { - s(o); - }); - } - return new (e || (e = Promise))(function(o, s) { - function a(c) { - try { - u(r.next(c)); - } catch (p) { - s(p); - } - } - function l(c) { - try { - u(r.throw(c)); - } catch (p) { - s(p); - } - } - function u(c) { - c.done ? o(c.value) : i(c.value).then(a, l); - } - u((r = r.apply(n, t || [])).next()); - }); -} -function Ma(n, t) { - var e = { label: 0, sent: function() { - if (o[0] & 1) - throw o[1]; - return o[1]; - }, trys: [], ops: [] }, r, i, o, s; - return s = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() { - return this; - }), s; - function a(u) { - return function(c) { - return l([u, c]); - }; - } - function l(u) { - if (r) - throw new TypeError("Generator is already executing."); - for (; s && (s = 0, u[0] && (e = 0)), e; ) - try { - if (r = 1, i && (o = u[0] & 2 ? i.return : u[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, u[1])).done) - return o; - switch (i = 0, o && (u = [u[0] & 2, o.value]), u[0]) { - case 0: - case 1: - o = u; - break; - case 4: - return e.label++, { value: u[1], done: !1 }; - case 5: - e.label++, i = u[1], u = [0]; - continue; - case 7: - u = e.ops.pop(), e.trys.pop(); - continue; - default: - if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (u[0] === 6 || u[0] === 2)) { - e = 0; - continue; - } - if (u[0] === 3 && (!o || u[1] > o[0] && u[1] < o[3])) { - e.label = u[1]; - break; - } - if (u[0] === 6 && e.label < o[1]) { - e.label = o[1], o = u; - break; - } - if (o && e.label < o[2]) { - e.label = o[2], e.ops.push(u); - break; - } - o[2] && e.ops.pop(), e.trys.pop(); - continue; - } - u = t.call(n, e); - } catch (c) { - u = [6, c], i = 0; - } finally { - r = o = 0; - } - if (u[0] & 5) - throw u[1]; - return { value: u[0] ? u[1] : void 0, done: !0 }; - } -} -function tr(n) { - var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0; - if (e) - return e.call(n); - if (n && typeof n.length == "number") - return { - next: function() { - return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n }; - } - }; - throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined."); -} -function St(n, t) { - var e = typeof Symbol == "function" && n[Symbol.iterator]; - if (!e) - return n; - var r = e.call(n), i, o = [], s; - try { - for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; ) - o.push(i.value); - } catch (a) { - s = { error: a }; - } finally { - try { - i && !i.done && (e = r.return) && e.call(r); - } finally { - if (s) - throw s.error; - } - } - return o; -} -function Gt(n, t, e) { - if (e || arguments.length === 2) - for (var r = 0, i = t.length, o; r < i; r++) - (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]); - return n.concat(o || Array.prototype.slice.call(t)); -} -function Xt(n) { - return this instanceof Xt ? (this.v = n, this) : new Xt(n); -} -function Tu(n, t, e) { - if (!Symbol.asyncIterator) - throw new TypeError("Symbol.asyncIterator is not defined."); - var r = e.apply(n, t || []), i, o = []; - return i = {}, s("next"), s("throw"), s("return"), i[Symbol.asyncIterator] = function() { - return this; - }, i; - function s(d) { - r[d] && (i[d] = function(v) { - return new Promise(function(f, y) { - o.push([d, v, f, y]) > 1 || a(d, v); - }); - }); - } - function a(d, v) { - try { - l(r[d](v)); - } catch (f) { - p(o[0][3], f); - } - } - function l(d) { - d.value instanceof Xt ? Promise.resolve(d.value.v).then(u, c) : p(o[0][2], d); - } - function u(d) { - a("next", d); - } - function c(d) { - a("throw", d); - } - function p(d, v) { - d(v), o.shift(), o.length && a(o[0][0], o[0][1]); - } -} -function bu(n) { - if (!Symbol.asyncIterator) - throw new TypeError("Symbol.asyncIterator is not defined."); - var t = n[Symbol.asyncIterator], e; - return t ? t.call(n) : (n = typeof tr == "function" ? tr(n) : n[Symbol.iterator](), e = {}, r("next"), r("throw"), r("return"), e[Symbol.asyncIterator] = function() { - return this; - }, e); - function r(o) { - e[o] = n[o] && function(s) { - return new Promise(function(a, l) { - s = n[o](s), i(a, l, s.done, s.value); - }); - }; - } - function i(o, s, a, l) { - Promise.resolve(l).then(function(u) { - o({ value: u, done: a }); - }, s); - } -} -function ee(n) { - return typeof n == "function"; -} -function Ia(n) { - var t = function(r) { - Error.call(r), r.stack = new Error().stack; - }, e = n(t); - return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e; -} -var yo = Ia(function(n) { - return function(e) { - n(this), this.message = e ? e.length + ` errors occurred during unsubscription: -` + e.map(function(r, i) { - return i + 1 + ") " + r.toString(); - }).join(` - `) : "", this.name = "UnsubscriptionError", this.errors = e; - }; -}); -function Mi(n, t) { - if (n) { - var e = n.indexOf(t); - 0 <= e && n.splice(e, 1); - } -} -var Ur = function() { - function n(t) { - this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null; - } - return n.prototype.unsubscribe = function() { - var t, e, r, i, o; - if (!this.closed) { - this.closed = !0; - var s = this._parentage; - if (s) - if (this._parentage = null, Array.isArray(s)) - try { - for (var a = tr(s), l = a.next(); !l.done; l = a.next()) { - var u = l.value; - u.remove(this); - } - } catch (y) { - t = { error: y }; - } finally { - try { - l && !l.done && (e = a.return) && e.call(a); - } finally { - if (t) - throw t.error; - } - } - else - s.remove(this); - var c = this.initialTeardown; - if (ee(c)) - try { - c(); - } catch (y) { - o = y instanceof yo ? y.errors : [y]; - } - var p = this._finalizers; - if (p) { - this._finalizers = null; - try { - for (var d = tr(p), v = d.next(); !v.done; v = d.next()) { - var f = v.value; - try { - Ds(f); - } catch (y) { - o = o ?? [], y instanceof yo ? o = Gt(Gt([], St(o)), St(y.errors)) : o.push(y); - } - } - } catch (y) { - r = { error: y }; - } finally { - try { - v && !v.done && (i = d.return) && i.call(d); - } finally { - if (r) - throw r.error; - } - } - } - if (o) - throw new yo(o); - } - }, n.prototype.add = function(t) { - var e; - if (t && t !== this) - if (this.closed) - Ds(t); - else { - if (t instanceof n) { - if (t.closed || t._hasParent(this)) - return; - t._addParent(this); - } - (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t); - } - }, n.prototype._hasParent = function(t) { - var e = this._parentage; - return e === t || Array.isArray(e) && e.includes(t); - }, n.prototype._addParent = function(t) { - var e = this._parentage; - this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t; - }, n.prototype._removeParent = function(t) { - var e = this._parentage; - e === t ? this._parentage = null : Array.isArray(e) && Mi(e, t); - }, n.prototype.remove = function(t) { - var e = this._finalizers; - e && Mi(e, t), t instanceof n && t._removeParent(this); - }, n.EMPTY = function() { - var t = new n(); - return t.closed = !0, t; - }(), n; -}(), xa = Ur.EMPTY; -function Na(n) { - return n instanceof Ur || n && "closed" in n && ee(n.remove) && ee(n.add) && ee(n.unsubscribe); -} -function Ds(n) { - ee(n) ? n() : n.unsubscribe(); -} -var Ga = { - onUnhandledError: null, - onStoppedNotification: null, - Promise: void 0, - useDeprecatedSynchronousErrorHandling: !1, - useDeprecatedNextContext: !1 -}, mn = { - setTimeout: function(n, t) { - for (var e = [], r = 2; r < arguments.length; r++) - e[r - 2] = arguments[r]; - var i = mn.delegate; - return i != null && i.setTimeout ? i.setTimeout.apply(i, Gt([n, t], St(e))) : setTimeout.apply(void 0, Gt([n, t], St(e))); - }, - clearTimeout: function(n) { - var t = mn.delegate; - return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(n); - }, - delegate: void 0 -}; -function Ha(n) { - mn.setTimeout(function() { - throw n; - }); -} -function wn() { -} -function Di(n) { - n(); -} -var kn = function(n) { - _t(t, n); - function t(e) { - var r = n.call(this) || this; - return r.isStopped = !1, e ? (r.destination = e, Na(e) && e.add(r)) : r.destination = Fu, r; - } - return t.create = function(e, r, i) { - return new Sn(e, r, i); - }, t.prototype.next = function(e) { - this.isStopped || this._next(e); - }, t.prototype.error = function(e) { - this.isStopped || (this.isStopped = !0, this._error(e)); - }, t.prototype.complete = function() { - this.isStopped || (this.isStopped = !0, this._complete()); - }, t.prototype.unsubscribe = function() { - this.closed || (this.isStopped = !0, n.prototype.unsubscribe.call(this), this.destination = null); - }, t.prototype._next = function(e) { - this.destination.next(e); - }, t.prototype._error = function(e) { - try { - this.destination.error(e); - } finally { - this.unsubscribe(); - } - }, t.prototype._complete = function() { - try { - this.destination.complete(); - } finally { - this.unsubscribe(); - } - }, t; -}(Ur), Pu = Function.prototype.bind; -function Co(n, t) { - return Pu.call(n, t); -} -var Du = function() { - function n(t) { - this.partialObserver = t; - } - return n.prototype.next = function(t) { - var e = this.partialObserver; - if (e.next) - try { - e.next(t); - } catch (r) { - Jr(r); - } - }, n.prototype.error = function(t) { - var e = this.partialObserver; - if (e.error) - try { - e.error(t); - } catch (r) { - Jr(r); - } - else - Jr(t); - }, n.prototype.complete = function() { - var t = this.partialObserver; - if (t.complete) - try { - t.complete(); - } catch (e) { - Jr(e); - } - }, n; -}(), Sn = function(n) { - _t(t, n); - function t(e, r, i) { - var o = n.call(this) || this, s; - if (ee(e) || !e) - s = { - next: e ?? void 0, - error: r ?? void 0, - complete: i ?? void 0 - }; - else { - var a; - o && Ga.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() { - return o.unsubscribe(); - }, s = { - next: e.next && Co(e.next, a), - error: e.error && Co(e.error, a), - complete: e.complete && Co(e.complete, a) - }) : s = e; - } - return o.destination = new Du(s), o; - } - return t; -}(kn); -function Jr(n) { - Ha(n); -} -function Au(n) { - throw n; -} -var Fu = { - closed: !0, - next: wn, - error: Au, - complete: wn -}, Un = function() { - return typeof Symbol == "function" && Symbol.observable || "@@observable"; -}(); -function Lu(n) { - return n; -} -function Mu(n) { - return n.length === 0 ? Lu : n.length === 1 ? n[0] : function(e) { - return n.reduce(function(r, i) { - return i(r); - }, e); - }; -} -var tt = function() { - function n(t) { - t && (this._subscribe = t); - } - return n.prototype.lift = function(t) { - var e = new n(); - return e.source = this, e.operator = t, e; - }, n.prototype.subscribe = function(t, e, r) { - var i = this, o = xu(t) ? t : new Sn(t, e, r); - return Di(function() { - var s = i, a = s.operator, l = s.source; - o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o)); - }), o; - }, n.prototype._trySubscribe = function(t) { - try { - return this._subscribe(t); - } catch (e) { - t.error(e); - } - }, n.prototype.forEach = function(t, e) { - var r = this; - return e = As(e), new e(function(i, o) { - var s = new Sn({ - next: function(a) { - try { - t(a); - } catch (l) { - o(l), s.unsubscribe(); - } - }, - error: o, - complete: i - }); - r.subscribe(s); - }); - }, n.prototype._subscribe = function(t) { - var e; - return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t); - }, n.prototype[Un] = function() { - return this; - }, n.prototype.pipe = function() { - for (var t = [], e = 0; e < arguments.length; e++) - t[e] = arguments[e]; - return Mu(t)(this); - }, n.prototype.toPromise = function(t) { - var e = this; - return t = As(t), new t(function(r, i) { - var o; - e.subscribe(function(s) { - return o = s; - }, function(s) { - return i(s); - }, function() { - return r(o); - }); - }); - }, n.create = function(t) { - return new n(t); - }, n; -}(); -function As(n) { - var t; - return (t = n ?? Ga.Promise) !== null && t !== void 0 ? t : Promise; -} -function Iu(n) { - return n && ee(n.next) && ee(n.error) && ee(n.complete); -} -function xu(n) { - return n && n instanceof kn || Iu(n) && Na(n); -} -function Nu(n) { - return ee(n == null ? void 0 : n.lift); -} -function no(n) { - return function(t) { - if (Nu(t)) - return t.lift(function(e) { - try { - return n(e, this); - } catch (r) { - this.error(r); - } - }); - throw new TypeError("Unable to lift unknown Observable type"); - }; -} -function rr(n, t, e, r, i) { - return new Gu(n, t, e, r, i); -} -var Gu = function(n) { - _t(t, n); - function t(e, r, i, o, s, a) { - var l = n.call(this, e) || this; - return l.onFinalize = s, l.shouldUnsubscribe = a, l._next = r ? function(u) { - try { - r(u); - } catch (c) { - e.error(c); - } - } : n.prototype._next, l._error = o ? function(u) { - try { - o(u); - } catch (c) { - e.error(c); - } finally { - this.unsubscribe(); - } - } : n.prototype._error, l._complete = i ? function() { - try { - i(); - } catch (u) { - e.error(u); - } finally { - this.unsubscribe(); - } - } : n.prototype._complete, l; - } - return t.prototype.unsubscribe = function() { - var e; - if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { - var r = this.closed; - n.prototype.unsubscribe.call(this), !r && ((e = this.onFinalize) === null || e === void 0 || e.call(this)); - } - }, t; -}(kn), Hu = Ia(function(n) { - return function() { - n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed"; - }; -}), Va = function(n) { - _t(t, n); - function t() { - var e = n.call(this) || this; - return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e; - } - return t.prototype.lift = function(e) { - var r = new Fs(this, this); - return r.operator = e, r; - }, t.prototype._throwIfClosed = function() { - if (this.closed) - throw new Hu(); - }, t.prototype.next = function(e) { - var r = this; - Di(function() { - var i, o; - if (r._throwIfClosed(), !r.isStopped) { - r.currentObservers || (r.currentObservers = Array.from(r.observers)); - try { - for (var s = tr(r.currentObservers), a = s.next(); !a.done; a = s.next()) { - var l = a.value; - l.next(e); - } - } catch (u) { - i = { error: u }; - } finally { - try { - a && !a.done && (o = s.return) && o.call(s); - } finally { - if (i) - throw i.error; - } - } - } - }); - }, t.prototype.error = function(e) { - var r = this; - Di(function() { - if (r._throwIfClosed(), !r.isStopped) { - r.hasError = r.isStopped = !0, r.thrownError = e; - for (var i = r.observers; i.length; ) - i.shift().error(e); - } - }); - }, t.prototype.complete = function() { - var e = this; - Di(function() { - if (e._throwIfClosed(), !e.isStopped) { - e.isStopped = !0; - for (var r = e.observers; r.length; ) - r.shift().complete(); - } - }); - }, t.prototype.unsubscribe = function() { - this.isStopped = this.closed = !0, this.observers = this.currentObservers = null; - }, Object.defineProperty(t.prototype, "observed", { - get: function() { - var e; - return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0; - }, - enumerable: !1, - configurable: !0 - }), t.prototype._trySubscribe = function(e) { - return this._throwIfClosed(), n.prototype._trySubscribe.call(this, e); - }, t.prototype._subscribe = function(e) { - return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e); - }, t.prototype._innerSubscribe = function(e) { - var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers; - return o || s ? xa : (this.currentObservers = null, a.push(e), new Ur(function() { - r.currentObservers = null, Mi(a, e); - })); - }, t.prototype._checkFinalizedStatuses = function(e) { - var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped; - i ? e.error(o) : s && e.complete(); - }, t.prototype.asObservable = function() { - var e = new tt(); - return e.source = this, e; - }, t.create = function(e, r) { - return new Fs(e, r); - }, t; -}(tt), Fs = function(n) { - _t(t, n); - function t(e, r) { - var i = n.call(this) || this; - return i.destination = e, i.source = r, i; - } - return t.prototype.next = function(e) { - var r, i; - (i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, e); - }, t.prototype.error = function(e) { - var r, i; - (i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, e); - }, t.prototype.complete = function() { - var e, r; - (r = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || r === void 0 || r.call(e); - }, t.prototype._subscribe = function(e) { - var r, i; - return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && i !== void 0 ? i : xa; - }, t; -}(Va), Ba = { - now: function() { - return (Ba.delegate || Date).now(); - }, - delegate: void 0 -}, Vu = function(n) { - _t(t, n); - function t(e, r) { - return n.call(this) || this; - } - return t.prototype.schedule = function(e, r) { - return this; - }, t; -}(Ur), Ii = { - setInterval: function(n, t) { - for (var e = [], r = 2; r < arguments.length; r++) - e[r - 2] = arguments[r]; - var i = Ii.delegate; - return i != null && i.setInterval ? i.setInterval.apply(i, Gt([n, t], St(e))) : setInterval.apply(void 0, Gt([n, t], St(e))); - }, - clearInterval: function(n) { - var t = Ii.delegate; - return ((t == null ? void 0 : t.clearInterval) || clearInterval)(n); - }, - delegate: void 0 -}, Bu = function(n) { - _t(t, n); - function t(e, r) { - var i = n.call(this, e, r) || this; - return i.scheduler = e, i.work = r, i.pending = !1, i; - } - return t.prototype.schedule = function(e, r) { - var i; - if (r === void 0 && (r = 0), this.closed) - return this; - this.state = e; - var o = this.id, s = this.scheduler; - return o != null && (this.id = this.recycleAsyncId(s, o, r)), this.pending = !0, this.delay = r, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(s, this.id, r), this; - }, t.prototype.requestAsyncId = function(e, r, i) { - return i === void 0 && (i = 0), Ii.setInterval(e.flush.bind(e, this), i); - }, t.prototype.recycleAsyncId = function(e, r, i) { - if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1) - return r; - r != null && Ii.clearInterval(r); - }, t.prototype.execute = function(e, r) { - if (this.closed) - return new Error("executing a cancelled action"); - this.pending = !1; - var i = this._execute(e, r); - if (i) - return i; - this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null)); - }, t.prototype._execute = function(e, r) { - var i = !1, o; - try { - this.work(e); - } catch (s) { - i = !0, o = s || new Error("Scheduled action threw falsy error"); - } - if (i) - return this.unsubscribe(), o; - }, t.prototype.unsubscribe = function() { - if (!this.closed) { - var e = this, r = e.id, i = e.scheduler, o = i.actions; - this.work = this.state = this.scheduler = null, this.pending = !1, Mi(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, n.prototype.unsubscribe.call(this); - } - }, t; -}(Vu), Ls = function() { - function n(t, e) { - e === void 0 && (e = n.now), this.schedulerActionCtor = t, this.now = e; - } - return n.prototype.schedule = function(t, e, r) { - return e === void 0 && (e = 0), new this.schedulerActionCtor(this, t).schedule(r, e); - }, n.now = Ba.now, n; -}(), Wu = function(n) { - _t(t, n); - function t(e, r) { - r === void 0 && (r = Ls.now); - var i = n.call(this, e, r) || this; - return i.actions = [], i._active = !1, i; - } - return t.prototype.flush = function(e) { - var r = this.actions; - if (this._active) { - r.push(e); - return; - } - var i; - this._active = !0; - do - if (i = e.execute(e.state, e.delay)) - break; - while (e = r.shift()); - if (this._active = !1, i) { - for (; e = r.shift(); ) - e.unsubscribe(); - throw i; - } - }, t; -}(Ls), Wa = new Wu(Bu), ju = Wa; -function ku(n) { - return n && ee(n.schedule); -} -var ja = function(n) { - return n && typeof n.length == "number" && typeof n != "function"; -}; -function Uu(n) { - return ee(n == null ? void 0 : n.then); -} -function zu(n) { - return ee(n[Un]); -} -function Ku(n) { - return Symbol.asyncIterator && ee(n == null ? void 0 : n[Symbol.asyncIterator]); -} -function $u(n) { - return new TypeError("You provided " + (n !== null && typeof n == "object" ? "an invalid object" : "'" + n + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); -} -function Yu() { - return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator; -} -var qu = Yu(); -function Qu(n) { - return ee(n == null ? void 0 : n[qu]); -} -function Xu(n) { - return Tu(this, arguments, function() { - var e, r, i, o; - return Ma(this, function(s) { - switch (s.label) { - case 0: - e = n.getReader(), s.label = 1; - case 1: - s.trys.push([1, , 9, 10]), s.label = 2; - case 2: - return [4, Xt(e.read())]; - case 3: - return r = s.sent(), i = r.value, o = r.done, o ? [4, Xt(void 0)] : [3, 5]; - case 4: - return [2, s.sent()]; - case 5: - return [4, Xt(i)]; - case 6: - return [4, s.sent()]; - case 7: - return s.sent(), [3, 2]; - case 8: - return [3, 10]; - case 9: - return e.releaseLock(), [7]; - case 10: - return [2]; - } - }); - }); -} -function Ju(n) { - return ee(n == null ? void 0 : n.getReader); -} -function so(n) { - if (n instanceof tt) - return n; - if (n != null) { - if (zu(n)) - return Zu(n); - if (ja(n)) - return ec(n); - if (Uu(n)) - return tc(n); - if (Ku(n)) - return ka(n); - if (Qu(n)) - return rc(n); - if (Ju(n)) - return ic(n); - } - throw $u(n); -} -function Zu(n) { - return new tt(function(t) { - var e = n[Un](); - if (ee(e.subscribe)) - return e.subscribe(t); - throw new TypeError("Provided object does not correctly implement Symbol.observable"); - }); -} -function ec(n) { - return new tt(function(t) { - for (var e = 0; e < n.length && !t.closed; e++) - t.next(n[e]); - t.complete(); - }); -} -function tc(n) { - return new tt(function(t) { - n.then(function(e) { - t.closed || (t.next(e), t.complete()); - }, function(e) { - return t.error(e); - }).then(null, Ha); - }); -} -function rc(n) { - return new tt(function(t) { - var e, r; - try { - for (var i = tr(n), o = i.next(); !o.done; o = i.next()) { - var s = o.value; - if (t.next(s), t.closed) - return; - } - } catch (a) { - e = { error: a }; - } finally { - try { - o && !o.done && (r = i.return) && r.call(i); - } finally { - if (e) - throw e.error; - } - } - t.complete(); - }); -} -function ka(n) { - return new tt(function(t) { - oc(n, t).catch(function(e) { - return t.error(e); - }); - }); -} -function ic(n) { - return ka(Xu(n)); -} -function oc(n, t) { - var e, r, i, o; - return Ou(this, void 0, void 0, function() { - var s, a; - return Ma(this, function(l) { - switch (l.label) { - case 0: - l.trys.push([0, 5, 6, 11]), e = bu(n), l.label = 1; - case 1: - return [4, e.next()]; - case 2: - if (r = l.sent(), !!r.done) - return [3, 4]; - if (s = r.value, t.next(s), t.closed) - return [2]; - l.label = 3; - case 3: - return [3, 1]; - case 4: - return [3, 11]; - case 5: - return a = l.sent(), i = { error: a }, [3, 11]; - case 6: - return l.trys.push([6, , 9, 10]), r && !r.done && (o = e.return) ? [4, o.call(e)] : [3, 8]; - case 7: - l.sent(), l.label = 8; - case 8: - return [3, 10]; - case 9: - if (i) - throw i.error; - return [7]; - case 10: - return [7]; - case 11: - return t.complete(), [2]; - } - }); - }); -} -function nc(n, t, e, r, i) { - r === void 0 && (r = 0), i === void 0 && (i = !1); - var o = t.schedule(function() { - e(), i ? n.add(this.schedule(null, r)) : this.unsubscribe(); - }, r); - if (n.add(o), !i) - return o; -} -function sc(n) { - return n instanceof Date && !isNaN(n); -} -function Ua(n, t) { - return no(function(e, r) { - var i = 0; - e.subscribe(rr(r, function(o) { - r.next(n.call(t, o, i++)); - })); - }); -} -var ac = Array.isArray; -function lc(n, t) { - return ac(t) ? n.apply(void 0, Gt([], St(t))) : n(t); -} -function uc(n) { - return Ua(function(t) { - return lc(n, t); - }); -} -function cc(n, t, e, r, i, o, s, a) { - var l = [], u = 0, c = 0, p = !1, d = function() { - p && !l.length && !u && t.complete(); - }, v = function(y) { - return u < r ? f(y) : l.push(y); - }, f = function(y) { - o && t.next(y), u++; - var C = !1; - so(e(y, c++)).subscribe(rr(t, function(m) { - i == null || i(m), o ? v(m) : t.next(m); - }, function() { - C = !0; - }, void 0, function() { - if (C) - try { - u--; - for (var m = function() { - var w = l.shift(); - s ? nc(t, s, function() { - return f(w); - }) : f(w); - }; l.length && u < r; ) - m(); - d(); - } catch (w) { - t.error(w); - } - })); - }; - return n.subscribe(rr(t, v, function() { - p = !0, d(); - })), function() { - a == null || a(); - }; -} -function za(n, t, e) { - return e === void 0 && (e = 1 / 0), ee(t) ? za(function(r, i) { - return Ua(function(o, s) { - return t(r, o, i, s); - })(so(n(r, i))); - }, e) : (typeof t == "number" && (e = t), no(function(r, i) { - return cc(r, i, n, e); - })); -} -var pc = ["addListener", "removeListener"], dc = ["addEventListener", "removeEventListener"], hc = ["on", "off"]; -function En(n, t, e, r) { - if (ee(e) && (r = e, e = void 0), r) - return En(n, t, e).pipe(uc(r)); - var i = St(gc(n) ? dc.map(function(a) { - return function(l) { - return n[a](t, l, e); - }; - }) : fc(n) ? pc.map(Ms(n, t)) : vc(n) ? hc.map(Ms(n, t)) : [], 2), o = i[0], s = i[1]; - if (!o && ja(n)) - return za(function(a) { - return En(a, t, e); - })(so(n)); - if (!o) - throw new TypeError("Invalid event target"); - return new tt(function(a) { - var l = function() { - for (var u = [], c = 0; c < arguments.length; c++) - u[c] = arguments[c]; - return a.next(1 < u.length ? u : u[0]); - }; - return o(l), function() { - return s(l); - }; - }); -} -function Ms(n, t) { - return function(e) { - return function(r) { - return n[e](t, r); - }; - }; -} -function fc(n) { - return ee(n.addListener) && ee(n.removeListener); -} -function vc(n) { - return ee(n.on) && ee(n.off); -} -function gc(n) { - return ee(n.addEventListener) && ee(n.removeEventListener); -} -function yc(n, t, e) { - n === void 0 && (n = 0), e === void 0 && (e = ju); - var r = -1; - return t != null && (ku(t) ? e = t : r = t), new tt(function(i) { - var o = sc(n) ? +n - e.now() : n; - o < 0 && (o = 0); - var s = 0; - return e.schedule(function() { - i.closed || (i.next(s++), 0 <= r ? this.schedule(void 0, r) : i.complete()); - }, o); - }); -} -function Cc(n, t) { - return n === void 0 && (n = 0), t === void 0 && (t = Wa), n < 0 && (n = 0), yc(n, n, t); -} -function mc(n) { - return no(function(t, e) { - var r = !1, i = null, o = null, s = function() { - if (o == null || o.unsubscribe(), o = null, r) { - r = !1; - var a = i; - i = null, e.next(a); - } - }; - t.subscribe(rr(e, function(a) { - o == null || o.unsubscribe(), r = !0, i = a, o = rr(e, s, wn), so(n(a)).subscribe(o); - }, function() { - s(), e.complete(); - }, void 0, function() { - i = o = null; - })); - }); -} -function wc() { - return no(function(n, t) { - var e, r = !1; - n.subscribe(rr(t, function(i) { - var o = e; - e = i, r && t.next([o, i]), r = !0; - })); - }); -} /** * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.3.5 * @link https://www.ag-grid.com/ @@ -1134,7 +9,7 @@ function wc() { * @link https://www.ag-grid.com/ * @license MIT */ -function wt(n) { +function Ct(n) { return n == null || n === "" ? null : n; } function O(n, t) { @@ -1143,13 +18,13 @@ function O(n, t) { function x(n) { return !O(n); } -function De(n) { +function Pe(n) { return n == null || n.length === 0; } -function zn(n) { +function Tn(n) { return n != null && typeof n.toString == "function" ? n.toString() : null; } -function He(n) { +function Ge(n) { if (n !== void 0) { if (n === null || n === "") return null; @@ -1159,42 +34,42 @@ function He(n) { return isNaN(t) ? void 0 : t; } } -function Qe(n) { +function qe(n) { if (n !== void 0) return n === null || n === "" ? !1 : typeof n == "boolean" ? n : /true/i.test(n); } -function Sc(n) { +function ql(n) { if (!(n == null || n === "")) return n; } -function Ec(n, t) { +function Ql(n, t) { return n == null && t == null ? !0 : n == null && t != null || n != null && t == null ? !1 : n === t; } -function _c(n, t) { +function Xl(n, t) { var e = n ? JSON.stringify(n) : null, r = t ? JSON.stringify(t) : null; return e === r; } -function Rc(n, t, e) { +function Jl(n, t, e) { e === void 0 && (e = !1); - var r = n == null, i = t == null; - if (n && n.toNumber && (n = n.toNumber()), t && t.toNumber && (t = t.toNumber()), r && i) + var r = n == null, o = t == null; + if (n && n.toNumber && (n = n.toNumber()), t && t.toNumber && (t = t.toNumber()), r && o) return 0; if (r) return -1; - if (i) + if (o) return 1; - function o(s, a) { + function i(s, a) { return s > a ? 1 : s < a ? -1 : 0; } if (typeof n != "string" || !e) - return o(n, t); + return i(n, t); try { return n.localeCompare(t); } catch { - return o(n, t); + return i(n, t); } } -function zr(n) { +function Vr(n) { if (n instanceof Set || n instanceof Map) { var t = []; return n.forEach(function(e) { @@ -1203,20 +78,20 @@ function zr(n) { } return Object.values(n); } -var Oc = /* @__PURE__ */ Object.freeze({ +var Zl = /* @__PURE__ */ Object.freeze({ __proto__: null, - makeNull: wt, + makeNull: Ct, exists: O, missing: x, - missingOrEmpty: De, - toStringOrNull: zn, - attrToNumber: He, - attrToBoolean: Qe, - attrToString: Sc, - referenceCompare: Ec, - jsonEquals: _c, - defaultComparator: Rc, - values: zr + missingOrEmpty: Pe, + toStringOrNull: Tn, + attrToNumber: Ge, + attrToBoolean: qe, + attrToString: ql, + referenceCompare: Ql, + jsonEquals: Xl, + defaultComparator: Jl, + values: Vr }); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue @@ -1224,7 +99,7 @@ var Oc = /* @__PURE__ */ Object.freeze({ * @link https://www.ag-grid.com/ * @license MIT */ -var Tc = ( +var eu = ( /** @class */ function() { function n() { @@ -1234,11 +109,11 @@ var Tc = ( for (var e = 0; e < t.length; e++) this.existingKeys[t[e]] = !0; }, n.prototype.getUniqueKey = function(t, e) { - t = zn(t); + t = Tn(t); for (var r = 0; ; ) { - var i = void 0; - if (t ? (i = t, r !== 0 && (i += "_" + r)) : e ? (i = e, r !== 0 && (i += "_" + r)) : i = "" + r, !this.existingKeys[i]) - return this.existingKeys[i] = !0, i; + var o = void 0; + if (t ? (o = t, r !== 0 && (o += "_" + r)) : e ? (o = e, r !== 0 && (o += "_" + r)) : o = "" + r, !this.existingKeys[o]) + return this.existingKeys[o] = !0, o; r++; } }, n; @@ -1257,45 +132,45 @@ function J(n, t) { return t(e, n[e]); })); } -function Kn(n) { +function bn(n) { for (var t = {}, e = Object.keys(n), r = 0; r < e.length; r++) { - var i = e[r], o = n[i]; - t[i] = o; + var o = e[r], i = n[o]; + t[o] = i; } return t; } -function bc(n) { +function tu(n) { return JSON.parse(JSON.stringify(n)); } -function xi(n, t) { +function To(n, t) { if (n) { var e = n, r = {}; - return Object.keys(e).forEach(function(i) { - if (!(t && t.indexOf(i) >= 0)) { - var o = e[i], s = Gi(o) && o.constructor === Object; - s ? r[i] = xi(o) : r[i] = o; + return Object.keys(e).forEach(function(o) { + if (!(t && t.indexOf(o) >= 0)) { + var i = e[o], s = Po(i) && i.constructor === Object; + s ? r[o] = To(i) : r[o] = i; } }), r; } } -function Ka(n, t) { +function da(n, t) { return n[t]; } -function $a(n, t, e) { +function ha(n, t, e) { n[t] = e; } -function Pc(n, t) { +function ru(n, t) { for (var e = [], r = 2; r < arguments.length; r++) e[r - 2] = arguments[r]; - e.forEach(function(i) { - return Ya(n, t, i); + e.forEach(function(o) { + return fa(n, t, o); }); } -function Ya(n, t, e, r) { - var i = Ka(n, e); - i !== void 0 && $a(t, e, r ? r(i) : i); +function fa(n, t, e, r) { + var o = da(n, e); + o !== void 0 && ha(t, e, r ? r(o) : o); } -function qa(n) { +function va(n) { var t = {}; return n.filter(function(e) { return e != null; @@ -1305,7 +180,7 @@ function qa(n) { }); }), Object.keys(t); } -function rt(n) { +function et(n) { if (!n) return []; var t = Object; @@ -1316,94 +191,94 @@ function rt(n) { n.hasOwnProperty(r) && n.propertyIsEnumerable(r) && e.push(n[r]); return e; } -function Oe(n, t, e, r) { - e === void 0 && (e = !0), r === void 0 && (r = !1), O(t) && J(t, function(i, o) { - var s = n[i]; - if (s !== o) { +function Re(n, t, e, r) { + e === void 0 && (e = !0), r === void 0 && (r = !1), O(t) && J(t, function(o, i) { + var s = n[o]; + if (s !== i) { if (r) { - var a = s == null && o != null; + var a = s == null && i != null; if (a) { - var l = typeof o == "object" && o.constructor === Object, u = l; - u && (s = {}, n[i] = s); + var l = typeof i == "object" && i.constructor === Object, u = l; + u && (s = {}, n[o] = s); } } - Gi(o) && Gi(s) && !Array.isArray(s) ? Oe(s, o, e, r) : (e || o !== void 0) && (n[i] = o); + Po(i) && Po(s) && !Array.isArray(s) ? Re(s, i, e, r) : (e || i !== void 0) && (n[o] = i); } }); } -function Dc(n) { +function ou(n) { return x(n) || Object.keys(n).length === 0; } -function Ac(n, t, e) { +function iu(n, t, e) { if (n == null) return e; - for (var r = t.split("."), i = n; r.length > 1; ) - if (i = i[r.shift()], i == null) + for (var r = t.split("."), o = n; r.length > 1; ) + if (o = o[r.shift()], o == null) return e; - var o = i[r[0]]; - return o ?? e; + var i = o[r[0]]; + return i ?? e; } -function Fc(n, t, e) { +function nu(n, t, e) { if (n != null) { - var r = t.split("."), i = n; - r.forEach(function(o, s) { - i[o] || (i[o] = {}), s < r.length - 1 && (i = i[o]); - }), i[r[r.length - 1]] = e; + var r = t.split("."), o = n; + r.forEach(function(i, s) { + o[i] || (o[i] = {}), s < r.length - 1 && (o = o[i]); + }), o[r[r.length - 1]] = e; } } -function Ni(n, t, e) { +function bo(n, t, e) { if (!(!t || !n)) { if (!e) return n[t]; - for (var r = t.split("."), i = n, o = 0; o < r.length; o++) { - if (i == null) + for (var r = t.split("."), o = n, i = 0; i < r.length; i++) { + if (o == null) return; - i = i[r[o]]; + o = o[r[i]]; } - return i; + return o; } } -function Qa(n, t) { - Object.keys(n).forEach(function(i) { - var o = n[i]; - typeof o == "object" && (n[i] = void 0); +function ga(n, t) { + Object.keys(n).forEach(function(o) { + var i = n[o]; + typeof i == "object" && (n[o] = void 0); }); var e = Object.getPrototypeOf(n), r = {}; - Object.keys(e).forEach(function(i) { - var o = e[i]; - if (typeof o == "function") { + Object.keys(e).forEach(function(o) { + var i = e[o]; + if (typeof i == "function") { var s = function() { - console.warn("AG Grid: " + t + " function " + i + `() cannot be called as the grid has been destroyed. + console.warn("AG Grid: " + t + " function " + o + `() cannot be called as the grid has been destroyed. Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't be keeping the API reference, your application has a memory leak! Remove the API reference when the grid is destroyed.`); }; - r[i] = { value: s, writable: !0 }; + r[o] = { value: s, writable: !0 }; } }), Object.defineProperties(n, r); } -function Gi(n) { +function Po(n) { return typeof n == "object" && n !== null; } -var Lc = /* @__PURE__ */ Object.freeze({ +var su = /* @__PURE__ */ Object.freeze({ __proto__: null, iterateObject: J, - cloneObject: Kn, - deepCloneObject: bc, - deepCloneDefinition: xi, - getProperty: Ka, - setProperty: $a, - copyPropertiesIfPresent: Pc, - copyPropertyIfPresent: Ya, - getAllKeysInObjects: qa, - getAllValuesInObject: rt, - mergeDeep: Oe, - missingOrEmptyObject: Dc, - get: Ac, - set: Fc, - getValueUsingField: Ni, - removeAllReferences: Qa, - isNonNullObject: Gi + cloneObject: bn, + deepCloneObject: tu, + deepCloneDefinition: To, + getProperty: da, + setProperty: ha, + copyPropertiesIfPresent: ru, + copyPropertyIfPresent: fa, + getAllKeysInObjects: va, + getAllValuesInObject: et, + mergeDeep: Re, + missingOrEmptyObject: ou, + get: iu, + set: nu, + getValueUsingField: bo, + removeAllReferences: ga, + isNonNullObject: Po }); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue @@ -1411,93 +286,93 @@ var Lc = /* @__PURE__ */ Object.freeze({ * @link https://www.ag-grid.com/ * @license MIT */ -var Is = {}; +var ps = {}; function K(n, t) { - Is[t] || (n(), Is[t] = !0); + ps[t] || (n(), ps[t] = !0); } -function ao(n) { +function Xo(n) { if (n.name) return n.name; var t = /function\s+([^\(]+)/.exec(n.toString()); return t && t.length === 2 ? t[1].trim() : null; } -function lo(n) { +function Jo(n) { return !!(n && n.constructor && n.call && n.apply); } -function Xa(n) { - Ja(n, 400); +function ya(n) { + Ca(n, 400); } -var mo = [], wo = !1; -function _n(n) { - mo.push(n), !wo && (wo = !0, window.setTimeout(function() { - var t = mo.slice(); - mo.length = 0, wo = !1, t.forEach(function(e) { +var si = [], ai = !1; +function sn(n) { + si.push(n), !ai && (ai = !0, window.setTimeout(function() { + var t = si.slice(); + si.length = 0, ai = !1, t.forEach(function(e) { return e(); }); }, 0)); } -function Ja(n, t) { +function Ca(n, t) { t === void 0 && (t = 0), n.length > 0 && window.setTimeout(function() { return n.forEach(function(e) { return e(); }); }, t); } -function Ze(n, t) { +function Je(n, t) { var e; return function() { - for (var r = [], i = 0; i < arguments.length; i++) - r[i] = arguments[i]; - var o = this; + for (var r = [], o = 0; o < arguments.length; o++) + r[o] = arguments[o]; + var i = this; window.clearTimeout(e), e = window.setTimeout(function() { - n.apply(o, r); + n.apply(i, r); }, t); }; } -function Rn(n, t) { +function an(n, t) { var e = 0; return function() { - for (var r = [], i = 0; i < arguments.length; i++) - r[i] = arguments[i]; - var o = this, s = (/* @__PURE__ */ new Date()).getTime(); - s - e < t || (e = s, n.apply(o, r)); + for (var r = [], o = 0; o < arguments.length; o++) + r[o] = arguments[o]; + var i = this, s = (/* @__PURE__ */ new Date()).getTime(); + s - e < t || (e = s, n.apply(i, r)); }; } -function Za(n, t, e, r) { +function ma(n, t, e, r) { e === void 0 && (e = 100); - var i = (/* @__PURE__ */ new Date()).getTime(), o = null, s = !1, a = function() { - var l = (/* @__PURE__ */ new Date()).getTime() - i > e; - (n() || l) && (t(), s = !0, o != null && (window.clearInterval(o), o = null), l && r && console.warn(r)); + var o = (/* @__PURE__ */ new Date()).getTime(), i = null, s = !1, a = function() { + var l = (/* @__PURE__ */ new Date()).getTime() - o > e; + (n() || l) && (t(), s = !0, i != null && (window.clearInterval(i), i = null), l && r && console.warn(r)); }; - a(), s || (o = window.setInterval(a, 10)); + a(), s || (i = window.setInterval(a, 10)); } -function Mc() { +function au() { for (var n = [], t = 0; t < arguments.length; t++) n[t] = arguments[t]; return function(e) { - return n.reduce(function(r, i) { - return i(r); + return n.reduce(function(r, o) { + return o(r); }, e); }; } -function el(n) { +function wa(n) { n && n(); } -var Ic = function() { -}, xc = /* @__PURE__ */ Object.freeze({ +var lu = function() { +}, uu = /* @__PURE__ */ Object.freeze({ __proto__: null, doOnce: K, - getFunctionName: ao, - isFunction: lo, - executeInAWhile: Xa, - executeNextVMTurn: _n, - executeAfter: Ja, - debounce: Ze, - throttle: Rn, - waitUntil: Za, - compose: Mc, - callIfPresent: el, - noop: Ic + getFunctionName: Xo, + isFunction: Jo, + executeInAWhile: ya, + executeNextVMTurn: sn, + executeAfter: Ca, + debounce: Je, + throttle: an, + waitUntil: ma, + compose: au, + callIfPresent: wa, + noop: lu }); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue @@ -1505,30 +380,30 @@ var Ic = function() { * @link https://www.ag-grid.com/ * @license MIT */ -var Nc = function(n, t) { +var cu = function(n, t) { var e = typeof Symbol == "function" && n[Symbol.iterator]; if (!e) return n; - var r = e.call(n), i, o = [], s; + var r = e.call(n), o, i = [], s; try { - for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; ) - o.push(i.value); + for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) + i.push(o.value); } catch (a) { s = { error: a }; } finally { try { - i && !i.done && (e = r.return) && e.call(r); + o && !o.done && (e = r.return) && e.call(r); } finally { if (s) throw s.error; } } - return o; -}, Gc = function() { + return i; +}, pu = function() { for (var n = [], t = 0; t < arguments.length; t++) - n = n.concat(Nc(arguments[t])); + n = n.concat(cu(arguments[t])); return n; -}, Hc = ( +}, du = ( /** @class */ function() { function n(t, e) { @@ -1539,7 +414,7 @@ var Nc = function(n, t) { } } return n.prototype.getBeanInstances = function() { - return zr(this.beanWrappers).map(function(t) { + return Vr(this.beanWrappers).map(function(t) { return t.beanInstance; }); }, n.prototype.createBean = function(t, e) { @@ -1550,11 +425,11 @@ var Nc = function(n, t) { this.autoWireBeans(t), this.methodWireBeans(t), this.callLifeCycleMethods(t, "preConstructMethods"), O(e) && t.forEach(e), this.callLifeCycleMethods(t, "postConstructMethods"); }, n.prototype.createBeans = function() { var t = this; - this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)), J(this.beanWrappers, function(r, i) { - var o; - i.bean.__agBeanMetaData && i.bean.__agBeanMetaData.autowireMethods && i.bean.__agBeanMetaData.autowireMethods.agConstructor && (o = i.bean.__agBeanMetaData.autowireMethods.agConstructor); - var s = t.getBeansForParameters(o, i.bean.name), a = new (i.bean.bind.apply(i.bean, Gc([null], s)))(); - i.beanInstance = a; + this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)), J(this.beanWrappers, function(r, o) { + var i; + o.bean.__agBeanMetaData && o.bean.__agBeanMetaData.autowireMethods && o.bean.__agBeanMetaData.autowireMethods.agConstructor && (i = o.bean.__agBeanMetaData.autowireMethods.agConstructor); + var s = t.getBeansForParameters(i, o.bean.name), a = new (o.bean.bind.apply(o.bean, pu([null], s)))(); + o.beanInstance = a; }); var e = Object.keys(this.beanWrappers).join(", "); this.logger.log("created beans: " + e); @@ -1562,22 +437,22 @@ var Nc = function(n, t) { var e = t.__agBeanMetaData; if (!e) { var r = void 0; - t.prototype.constructor ? r = ao(t.prototype.constructor) : r = "" + t, console.error("Context item " + r + " is not a bean"); + t.prototype.constructor ? r = Xo(t.prototype.constructor) : r = "" + t, console.error("Context item " + r + " is not a bean"); return; } - var i = { + var o = { bean: t, beanInstance: null, beanName: e.beanName }; - this.beanWrappers[e.beanName] = i; + this.beanWrappers[e.beanName] = o; }, n.prototype.autoWireBeans = function(t) { var e = this; t.forEach(function(r) { - e.forEachMetaDataInHierarchy(r, function(i, o) { - var s = i.agClassAttributes; + e.forEachMetaDataInHierarchy(r, function(o, i) { + var s = o.agClassAttributes; s && s.forEach(function(a) { - var l = e.lookupBeanInstance(o, a.beanName, a.optional); + var l = e.lookupBeanInstance(i, a.beanName, a.optional); r[a.attributeName] = l; }); }); @@ -1585,10 +460,10 @@ var Nc = function(n, t) { }, n.prototype.methodWireBeans = function(t) { var e = this; t.forEach(function(r) { - e.forEachMetaDataInHierarchy(r, function(i, o) { - J(i.autowireMethods, function(s, a) { + e.forEachMetaDataInHierarchy(r, function(o, i) { + J(o.autowireMethods, function(s, a) { if (s !== "agConstructor") { - var l = e.getBeansForParameters(a, o); + var l = e.getBeansForParameters(a, i); r[s].apply(r, l); } }); @@ -1596,10 +471,10 @@ var Nc = function(n, t) { }); }, n.prototype.forEachMetaDataInHierarchy = function(t, e) { for (var r = Object.getPrototypeOf(t); r != null; ) { - var i = r.constructor; - if (i.hasOwnProperty("__agBeanMetaData")) { - var o = i.__agBeanMetaData, s = this.getBeanName(i); - e(o, s); + var o = r.constructor; + if (o.hasOwnProperty("__agBeanMetaData")) { + var i = o.__agBeanMetaData, s = this.getBeanName(o); + e(i, s); } r = Object.getPrototypeOf(r); } @@ -1609,33 +484,33 @@ var Nc = function(n, t) { var e = t.toString(), r = e.substring(9, e.indexOf("(")); return r; }, n.prototype.getBeansForParameters = function(t, e) { - var r = this, i = []; - return t && J(t, function(o, s) { + var r = this, o = []; + return t && J(t, function(i, s) { var a = r.lookupBeanInstance(e, s); - i[Number(o)] = a; - }), i; + o[Number(i)] = a; + }), o; }, n.prototype.lookupBeanInstance = function(t, e, r) { if (r === void 0 && (r = !1), e === "context") return this; if (this.contextParams.providedBeanInstances && this.contextParams.providedBeanInstances.hasOwnProperty(e)) return this.contextParams.providedBeanInstances[e]; - var i = this.beanWrappers[e]; - return i ? i.beanInstance : (r || console.error("AG Grid: unable to find bean reference " + e + " while initialising " + t), null); + var o = this.beanWrappers[e]; + return o ? o.beanInstance : (r || console.error("AG Grid: unable to find bean reference " + e + " while initialising " + t), null); }, n.prototype.callLifeCycleMethods = function(t, e) { var r = this; - t.forEach(function(i) { - return r.callLifeCycleMethodsOnBean(i, e); + t.forEach(function(o) { + return r.callLifeCycleMethodsOnBean(o, e); }); }, n.prototype.callLifeCycleMethodsOnBean = function(t, e, r) { - var i = {}; + var o = {}; this.forEachMetaDataInHierarchy(t, function(s) { var a = s[e]; a && a.forEach(function(l) { - l != r && (i[l] = !0); + l != r && (o[l] = !0); }); }); - var o = Object.keys(i); - o.forEach(function(s) { + var i = Object.keys(o); + i.forEach(function(s) { return t[s](); }); }, n.prototype.getBean = function(t) { @@ -1652,66 +527,66 @@ var Nc = function(n, t) { var e = this; return t ? (t.forEach(function(r) { e.callLifeCycleMethodsOnBean(r, "preDestroyMethods", "destroy"); - var i = r; - typeof i.destroy == "function" && i.destroy(); + var o = r; + typeof o.destroy == "function" && o.destroy(); }), []) : []; }, n; }() ); -function xs(n, t, e) { - var r = Ht(n.constructor); +function ds(n, t, e) { + var r = It(n.constructor); r.preConstructMethods || (r.preConstructMethods = []), r.preConstructMethods.push(t); } function b(n, t, e) { - var r = Ht(n.constructor); + var r = It(n.constructor); r.postConstructMethods || (r.postConstructMethods = []), r.postConstructMethods.push(t); } -function ve(n, t, e) { - var r = Ht(n.constructor); +function fe(n, t, e) { + var r = It(n.constructor); r.preDestroyMethods || (r.preDestroyMethods = []), r.preDestroyMethods.push(t); } function A(n) { return function(t) { - var e = Ht(t); + var e = It(t); e.beanName = n; }; } function h(n) { return function(t, e, r) { - tl(t, n, !1, t, e, null); + Sa(t, n, !1, t, e, null); }; } function Y(n) { return function(t, e, r) { - tl(t, n, !0, t, e, null); + Sa(t, n, !0, t, e, null); }; } -function tl(n, t, e, r, i, o) { +function Sa(n, t, e, r, o, i) { if (t === null) { console.error("AG Grid: Autowired name should not be null"); return; } - if (typeof o == "number") { + if (typeof i == "number") { console.error("AG Grid: Autowired should be on an attribute"); return; } - var s = Ht(n.constructor); + var s = It(n.constructor); s.agClassAttributes || (s.agClassAttributes = []), s.agClassAttributes.push({ - attributeName: i, + attributeName: o, beanName: t, optional: e }); } -function me(n) { +function Ce(n) { return function(t, e, r) { - var i = typeof t == "function" ? t : t.constructor, o; + var o = typeof t == "function" ? t : t.constructor, i; if (typeof r == "number") { var s = void 0; - e ? (o = Ht(i), s = e) : (o = Ht(i), s = "agConstructor"), o.autowireMethods || (o.autowireMethods = {}), o.autowireMethods[s] || (o.autowireMethods[s] = {}), o.autowireMethods[s][r] = n; + e ? (i = It(o), s = e) : (i = It(o), s = "agConstructor"), i.autowireMethods || (i.autowireMethods = {}), i.autowireMethods[s] || (i.autowireMethods[s] = {}), i.autowireMethods[s][r] = n; } }; } -function Ht(n) { +function It(n) { return n.hasOwnProperty("__agBeanMetaData") || (n.__agBeanMetaData = {}), n.__agBeanMetaData; } /** @@ -1720,42 +595,42 @@ function Ht(n) { * @link https://www.ag-grid.com/ * @license MIT */ -var Ns = function(n, t, e, r) { - var i = arguments.length, o = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s; +var hs = function(n, t, e, r) { + var o = arguments.length, i = o < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, s; if (typeof Reflect == "object" && typeof Reflect.decorate == "function") - o = Reflect.decorate(n, t, e, r); + i = Reflect.decorate(n, t, e, r); else for (var a = n.length - 1; a >= 0; a--) - (s = n[a]) && (o = (i < 3 ? s(o) : i > 3 ? s(t, e, o) : s(t, e)) || o); - return i > 3 && o && Object.defineProperty(t, e, o), o; -}, Zr = function(n, t) { + (s = n[a]) && (i = (o < 3 ? s(i) : o > 3 ? s(t, e, i) : s(t, e)) || i); + return o > 3 && i && Object.defineProperty(t, e, i), i; +}, Kr = function(n, t) { return function(e, r) { t(e, r, n); }; -}, Rt = ( +}, wt = ( /** @class */ function() { function n() { this.allSyncListeners = /* @__PURE__ */ new Map(), this.allAsyncListeners = /* @__PURE__ */ new Map(), this.globalSyncListeners = /* @__PURE__ */ new Set(), this.globalAsyncListeners = /* @__PURE__ */ new Set(), this.asyncFunctionsQueue = [], this.scheduled = !1, this.firedEvents = {}; } - return n.prototype.setBeans = function(t, e, r, i) { - if (i === void 0 && (i = null), this.frameworkOverrides = r, this.gridOptionsService = e, i) { - var o = e.useAsyncEvents(); - this.addGlobalListener(i, o); + return n.prototype.setBeans = function(t, e, r, o) { + if (o === void 0 && (o = null), this.frameworkOverrides = r, this.gridOptionsService = e, o) { + var i = e.useAsyncEvents(); + this.addGlobalListener(o, i); } }, n.prototype.getListeners = function(t, e, r) { - var i = e ? this.allAsyncListeners : this.allSyncListeners, o = i.get(t); - return !o && r && (o = /* @__PURE__ */ new Set(), i.set(t, o)), o; + var o = e ? this.allAsyncListeners : this.allSyncListeners, i = o.get(t); + return !i && r && (i = /* @__PURE__ */ new Set(), o.set(t, i)), i; }, n.prototype.noRegisteredListenersExist = function() { return this.allSyncListeners.size === 0 && this.allAsyncListeners.size === 0 && this.globalSyncListeners.size === 0 && this.globalAsyncListeners.size === 0; }, n.prototype.addEventListener = function(t, e, r) { r === void 0 && (r = !1), this.getListeners(t, r, !0).add(e); }, n.prototype.removeEventListener = function(t, e, r) { r === void 0 && (r = !1); - var i = this.getListeners(t, r, !1); - if (i && (i.delete(e), i.size === 0)) { - var o = r ? this.allAsyncListeners : this.allSyncListeners; - o.delete(t); + var o = this.getListeners(t, r, !1); + if (o && (o.delete(e), o.size === 0)) { + var i = r ? this.allAsyncListeners : this.allSyncListeners; + i.delete(t); } }, n.prototype.addGlobalListener = function(t, e) { e === void 0 && (e = !1), (e ? this.globalAsyncListeners : this.globalSyncListeners).add(t); @@ -1764,17 +639,17 @@ var Ns = function(n, t, e, r) { }, n.prototype.dispatchEvent = function(t) { var e = t; if (this.gridOptionsService) { - var r = this.gridOptionsService, i = r.api, o = r.columnApi, s = r.context; - e.api = i, e.columnApi = o, e.context = s; + var r = this.gridOptionsService, o = r.api, i = r.columnApi, s = r.context; + e.api = o, e.columnApi = i, e.context = s; } this.dispatchToListeners(e, !0), this.dispatchToListeners(e, !1), this.firedEvents[e.type] = !0; }, n.prototype.dispatchEventOnce = function(t) { this.firedEvents[t.type] || this.dispatchEvent(t); }, n.prototype.dispatchToListeners = function(t, e) { - var r = this, i = t.type; + var r = this, o = t.type; if (e && "event" in t) { - var o = t.event; - o instanceof Event && (t.eventPath = o.composedPath()); + var i = t.event; + i instanceof Event && (t.eventPath = i.composedPath()); } var s = function(u) { return u.forEach(function(c) { @@ -1782,16 +657,16 @@ var Ns = function(n, t, e, r) { return c(t); }) : c(t); }); - }, a = this.getListeners(i, e, !1); + }, a = this.getListeners(o, e, !1); a && s(a); var l = e ? this.globalAsyncListeners : this.globalSyncListeners; l.forEach(function(u) { e ? r.dispatchAsync(function() { - return r.frameworkOverrides.dispatchEvent(i, function() { - return u(i, t); + return r.frameworkOverrides.dispatchEvent(o, function() { + return u(o, t); }, !0); - }) : r.frameworkOverrides.dispatchEvent(i, function() { - return u(i, t); + }) : r.frameworkOverrides.dispatchEvent(o, function() { + return u(o, t); }, !0); }); }, n.prototype.dispatchAsync = function(t) { @@ -1802,12 +677,12 @@ var Ns = function(n, t, e, r) { this.asyncFunctionsQueue = [], t.forEach(function(e) { return e(); }); - }, Ns([ - Zr(0, me("loggerFactory")), - Zr(1, me("gridOptionsService")), - Zr(2, me("frameworkOverrides")), - Zr(3, me("globalEventListener")) - ], n.prototype, "setBeans", null), n = Ns([ + }, hs([ + Kr(0, Ce("loggerFactory")), + Kr(1, Ce("gridOptionsService")), + Kr(2, Ce("frameworkOverrides")), + Kr(3, Ce("globalEventListener")) + ], n.prototype, "setBeans", null), n = hs([ A("eventService") ], n), n; }() @@ -1828,25 +703,25 @@ var F; * @link https://www.ag-grid.com/ * @license MIT */ -var Vc = function(n, t) { +var hu = function(n, t) { var e = typeof Symbol == "function" && n[Symbol.iterator]; if (!e) return n; - var r = e.call(n), i, o = [], s; + var r = e.call(n), o, i = [], s; try { - for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; ) - o.push(i.value); + for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) + i.push(o.value); } catch (a) { s = { error: a }; } finally { try { - i && !i.done && (e = r.return) && e.call(r); + o && !o.done && (e = r.return) && e.call(r); } finally { if (s) throw s.error; } } - return o; + return i; }, N = ( /** @class */ function() { @@ -1876,21 +751,21 @@ var Vc = function(n, t) { var r; if (this.isRegistered(t)) return !0; - var i = e + t, o; + var o = e + t, i; if (n.isBundled) - o = "AG Grid: unable to use " + e + ` as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle: + i = "AG Grid: unable to use " + e + ` as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle: