From 2188b274ae4e44a1f94665108a732c08c9155e3f Mon Sep 17 00:00:00 2001 From: i-just Date: Wed, 25 Mar 2026 08:20:47 +0100 Subject: [PATCH 1/2] start with a hidden sites dropdown and only show it when element is selected --- .../ckeditor/dist/ckeditor5-craftcms.js | 1321 +++++++++-------- .../ckeditor/src/link/linkelementview.js | 6 + src/web/assets/ckeditor/src/link/linkui.js | 4 +- 3 files changed, 671 insertions(+), 660 deletions(-) diff --git a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js index dd2522a5..ac43ce42 100644 --- a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js +++ b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js @@ -1,4 +1,4 @@ -import { ImageInsertUI as au, ButtonView as gi, IconImage as su, Command as El, Plugin as Hn, ImageUtils as Rc, Collection as na, ViewModel as yi, createDropdown as ra, DropdownButtonView as lu, IconObjectSizeMedium as cu, addListToDropdown as os, Widget as uu, viewToModelPositionOutsideModelElement as du, toWidget as pu, DomEventObserver as fu, View as Tr, IconPlus as Mc, WidgetToolbarRepository as Pc, isWidget as hu, findAttributeRange as mu, LinkUI as Dc, ContextualBalloon as gu, ModelRange as yu, SwitchButtonView as bu, LabeledFieldView as vu, createLabeledInputText as ku, ClassicEditor as wu, SourceEditing as zc, Heading as _u } from "ckeditor5"; +import { ImageInsertUI as au, ButtonView as gi, IconImage as su, Command as El, Plugin as Hn, ImageUtils as Rc, Collection as na, ViewModel as bi, createDropdown as ra, DropdownButtonView as lu, IconObjectSizeMedium as cu, addListToDropdown as os, Widget as uu, viewToModelPositionOutsideModelElement as du, toWidget as pu, DomEventObserver as fu, View as Tr, IconPlus as Mc, WidgetToolbarRepository as Pc, isWidget as hu, findAttributeRange as mu, LinkUI as Dc, ContextualBalloon as gu, ModelRange as bu, SwitchButtonView as yu, LabeledFieldView as vu, createLabeledInputText as ku, ClassicEditor as wu, SourceEditing as zc, Heading as _u } from "ckeditor5"; /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. @@ -394,7 +394,7 @@ class Su extends Hn { if (!C || !C.transform) return this._getOptionLabelValue(T); const m = _.find( - (b) => b.handle === C.transform + (y) => y.handle === C.transform ); return m ? m.name : C.transform; }), k.bind("isEnabled").to(this), os( @@ -432,7 +432,7 @@ class Su extends Hn { return _.map((T) => { const X = { type: "button", - model: new yi({ + model: new bi({ commandName: "transformImage", commandValue: T.value, label: this._getOptionLabelValue(T), @@ -783,7 +783,7 @@ class Pu extends Hn { "form,.lp-editor-container" ).data("elementEditor"); m && await m.checkForm(); - const { data: b } = await Craft.sendActionRequest( + const { data: y } = await Craft.sendActionRequest( "POST", "ckeditor/ckeditor/entry-card-html", { @@ -794,7 +794,7 @@ class Pu extends Hn { } } ); - return b; + return y; } catch (d) { return console.error((u = d == null ? void 0 : d.response) == null ? void 0 : u.data), { cardHtml: '
' + (((k = (f = d == null ? void 0 : d.response) == null ? void 0 : f.data) == null ? void 0 : k.message) || "An unknown error occurred.") + "
" }; } @@ -1002,7 +1002,7 @@ class zu extends Hn { return _.map((O) => { const T = { type: "button", - model: new yi({ + model: new bi({ commandValue: O.value, //entry type id color: O.expanded ? null : O.color, @@ -1125,8 +1125,8 @@ class zu extends Hn { data: u } )).data; - } catch (b) { - throw Craft.cp.displayError((m = (C = b == null ? void 0 : b.response) == null ? void 0 : C.data) == null ? void 0 : m.error), b; + } catch (y) { + throw Craft.cp.displayError((m = (C = y == null ? void 0 : y.response) == null ? void 0 : C.data) == null ? void 0 : m.error), y; } const d = Craft.createElementEditor(this.elementType, { elementId: k.element.id, @@ -1135,17 +1135,17 @@ class zu extends Hn { fresh: 1, siteId: k.element.siteId }, - onSubmit: (b) => { + onSubmit: (y) => { E.commands.execute("insertEntry", { - entryId: b.data.id, - siteId: b.data.siteId + entryId: y.data.id, + siteId: y.data.siteId }); } }); d.on("beforeClose", () => { - d.$triggerElement = null, O.change((b) => { - b.setSelection( - b.createPositionAt( + d.$triggerElement = null, O.change((y) => { + y.setSelection( + y.createPositionAt( E.model.document.getRoot(), X.end.path[0] ) @@ -1360,7 +1360,10 @@ class Lu extends Tr { } } ]; - Craft.addActionsToChip(i, u), _._alignFocus(); + Craft.addActionsToChip(i, u), this.linkUi.sitesView.siteDropdownView.buttonView.set( + "isVisible", + !0 + ), _._alignFocus(); } else if (((X = this.linkUi.previousLinkValue) == null ? void 0 : X.length) > 0) { const { formView: i } = this.linkUi._linkUI; i.urlInputView.fieldView.set( @@ -1411,13 +1414,13 @@ class Fu extends Tr { }), this.siteDropdownItemModels = Object.fromEntries( Craft.sites.map((T) => [ T.id, - new yi({ + new bi({ label: T.name, siteId: T.id, withText: !0 }) ]) - ), this.siteDropdownItemModels.current = new yi({ + ), this.siteDropdownItemModels.current = new bi({ label: Craft.t("ckeditor", "Link to the current site"), siteId: null, withText: !0 @@ -1660,7 +1663,7 @@ class Vu extends Hn { const _ = []; for (const E of this.linkOptions) _.push( - new yi({ + new bi({ label: E.label, handle: E.refHandle, linkOption: E, @@ -1668,7 +1671,7 @@ class Vu extends Hn { }) ); return _.push( - new yi({ + new bi({ label: Craft.t("app", "URL"), handle: "default", withText: !0 @@ -1685,7 +1688,7 @@ class Vu extends Hn { linkUi: this, linkOption: _, value: this._urlInputValue() - }), this.sitesView !== null && (d = (k = this.sitesView) == null ? void 0 : k.siteDropdownView) != null && d.buttonView && this.sitesView.siteDropdownView.buttonView.set("isVisible", !0)); + }), this.sitesView !== null && (d = (k = this.sitesView) == null ? void 0 : k.siteDropdownView) != null && d.buttonView && this.sitesView.siteDropdownView.buttonView.set("isVisible", !1)); let i = [ this.linkTypeDropdownView, this.elementInputView @@ -1739,19 +1742,19 @@ class Vu extends Hn { v.setSelection(i); }); const m = E.commands.get("link"); - let b = this._getAdvancedFieldValues(); - m.execute(C, b); + let y = this._getAdvancedFieldValues(); + m.execute(C, y); } else O.change((m) => { - let b = this._getAdvancedFieldValues(); + let y = this._getAdvancedFieldValues(); if (m.insertText( d.label, { linkHref: C }, T.getFirstPosition(), - b - ), i instanceof yu) + y + ), i instanceof bu) try { const v = i.clone(); v.end.path[1] += d.label.length, m.setSelection(v); @@ -1790,7 +1793,7 @@ class Vu extends Hn { let i = (T = X.conversion) == null ? void 0 : T.model; if (i && typeof E[i] > "u") if (X.conversion.type === "bool") { - const u = new bu(); + const u = new yu(); u.set({ withText: !0, label: X.label, @@ -1809,20 +1812,20 @@ class Vu extends Hn { "change:isFocused", (f, k, d, C) => { if (d !== C && !d) { - let m = f.source.element.value, b = null; + let m = f.source.element.value, y = null; const v = this._urlInputRefMatch(this.urlWithRefHandleRE); - v ? b = v[1] : b = this._urlInputValue(); + v ? y = v[1] : y = this._urlInputValue(); try { - let N = new URL(b), I = N.search, D = N.hash, L = b.replace(D, "").replace(I, ""); + let N = new URL(y), I = N.search, D = N.hash, L = y.replace(D, "").replace(I, ""); const se = this._urlInputValue().replace( - b, + y, L + m ); E.urlInputView.fieldView.set("value", se); } catch { - let [I, D] = b.split("#"), [L, se] = I.split("?"); + let [I, D] = y.split("#"), [L, se] = I.split("?"); const ee = this._urlInputValue().replace( - b, + y, L + m ); E.urlInputView.fieldView.set("value", ee); @@ -1942,11 +1945,11 @@ function $u() { k(d, C), i.exports = d.locals || {}; }, 42: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.toString = void 0; - const k = f(1099), d = f(7860), C = f(5180), m = { string: k.quoteString, number: (b) => Object.is(b, -0) ? "-0" : String(b), boolean: String, symbol: (b, v, N) => { - const I = Symbol.keyFor(b); - return I !== void 0 ? `Symbol.for(${N(I)})` : `Symbol(${N(b.description)})`; - }, bigint: (b, v, N) => `BigInt(${N(String(b))})`, undefined: String, object: d.objectToString, function: C.functionToString }; - u.toString = (b, v, N, I) => b === null ? "null" : m[typeof b](b, v, N, I); + const k = f(1099), d = f(7860), C = f(5180), m = { string: k.quoteString, number: (y) => Object.is(y, -0) ? "-0" : String(y), boolean: String, symbol: (y, v, N) => { + const I = Symbol.keyFor(y); + return I !== void 0 ? `Symbol.for(${N(I)})` : `Symbol(${N(y.description)})`; + }, bigint: (y, v, N) => `BigInt(${N(String(y))})`, undefined: String, object: d.objectToString, function: C.functionToString }; + u.toString = (y, v, N, I) => y === null ? "null" : m[typeof y](y, v, N, I); }, 312: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }); var k, d = f(1720), C = (k = d) && k.__esModule ? k : { default: k }; @@ -2070,7 +2073,7 @@ function $u() { return R; }, R; } - function b(R, F) { + function y(R, F) { var H = Object.keys(R); if (Object.getOwnPropertySymbols) { var ne = Object.getOwnPropertySymbols(R); @@ -2083,9 +2086,9 @@ function $u() { function v(R) { for (var F = 1; F < arguments.length; F++) { var H = arguments[F] != null ? arguments[F] : {}; - F % 2 ? b(Object(H), !0).forEach(function(ne) { + F % 2 ? y(Object(H), !0).forEach(function(ne) { N(R, ne, H[ne]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(H)) : b(Object(H)).forEach(function(ne) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(H)) : y(Object(H)).forEach(function(ne) { Object.defineProperty(R, ne, Object.getOwnPropertyDescriptor(H, ne)); }); } @@ -2118,21 +2121,21 @@ function $u() { Object.defineProperty(u, "__esModule", { value: !0 }), u.stringifyPath = u.quoteKey = u.isValidVariableName = u.IS_VALID_IDENTIFIER = u.quoteString = void 0; const f = /[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, k = /* @__PURE__ */ new Map([["\b", "\\b"], [" ", "\\t"], [` `, "\\n"], ["\f", "\\f"], ["\r", "\\r"], ["'", "\\'"], ['"', '\\"'], ["\\", "\\\\"]]); - function d(b) { - return k.get(b) || `\\u${`0000${b.charCodeAt(0).toString(16)}`.slice(-4)}`; + function d(y) { + return k.get(y) || `\\u${`0000${y.charCodeAt(0).toString(16)}`.slice(-4)}`; } - u.quoteString = function(b) { - return `'${b.replace(f, d)}'`; + u.quoteString = function(y) { + return `'${y.replace(f, d)}'`; }; const C = new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" ")); - function m(b) { - return typeof b == "string" && !C.has(b) && u.IS_VALID_IDENTIFIER.test(b); + function m(y) { + return typeof y == "string" && !C.has(y) && u.IS_VALID_IDENTIFIER.test(y); } - u.IS_VALID_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/, u.isValidVariableName = m, u.quoteKey = function(b, v) { - return m(b) ? b : v(b); - }, u.stringifyPath = function(b, v) { + u.IS_VALID_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/, u.isValidVariableName = m, u.quoteKey = function(y, v) { + return m(y) ? y : v(y); + }, u.stringifyPath = function(y, v) { let N = ""; - for (const I of b) m(I) ? N += `.${I}` : N += `[${v(I)}]`; + for (const I of y) m(I) ? N += `.${I}` : N += `[${v(I)}]`; return N; }; }, 1197: (i, u, f) => { @@ -2147,30 +2150,30 @@ function $u() { k(d, C), i.exports = d.locals || {}; }, 1345: (i, u, f) => { function k() { - var b = this.constructor.getDerivedStateFromProps(this.props, this.state); - b != null && this.setState(b); + var y = this.constructor.getDerivedStateFromProps(this.props, this.state); + y != null && this.setState(y); } - function d(b) { + function d(y) { this.setState((function(v) { - var N = this.constructor.getDerivedStateFromProps(b, v); + var N = this.constructor.getDerivedStateFromProps(y, v); return N ?? null; }).bind(this)); } - function C(b, v) { + function C(y, v) { try { var N = this.props, I = this.state; - this.props = b, this.state = v, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(N, I); + this.props = y, this.state = v, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(N, I); } finally { this.props = N, this.state = I; } } - function m(b) { - var v = b.prototype; + function m(y) { + var v = y.prototype; if (!v || !v.isReactComponent) throw new Error("Can only polyfill class components"); - if (typeof b.getDerivedStateFromProps != "function" && typeof v.getSnapshotBeforeUpdate != "function") return b; + if (typeof y.getDerivedStateFromProps != "function" && typeof v.getSnapshotBeforeUpdate != "function") return y; var N = null, I = null, D = null; if (typeof v.componentWillMount == "function" ? N = "componentWillMount" : typeof v.UNSAFE_componentWillMount == "function" && (N = "UNSAFE_componentWillMount"), typeof v.componentWillReceiveProps == "function" ? I = "componentWillReceiveProps" : typeof v.UNSAFE_componentWillReceiveProps == "function" && (I = "UNSAFE_componentWillReceiveProps"), typeof v.componentWillUpdate == "function" ? D = "componentWillUpdate" : typeof v.UNSAFE_componentWillUpdate == "function" && (D = "UNSAFE_componentWillUpdate"), N !== null || I !== null || D !== null) { - var L = b.displayName || b.name, se = typeof b.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + var L = y.displayName || y.name, se = typeof y.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. ` + L + " uses " + se + " but also contains the following legacy lifecycles:" + (N !== null ? ` @@ -2181,7 +2184,7 @@ function $u() { The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`); } - if (typeof b.getDerivedStateFromProps == "function" && (v.componentWillMount = k, v.componentWillReceiveProps = d), typeof v.getSnapshotBeforeUpdate == "function") { + if (typeof y.getDerivedStateFromProps == "function" && (v.componentWillMount = k, v.componentWillReceiveProps = d), typeof v.getSnapshotBeforeUpdate == "function") { if (typeof v.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype"); v.componentWillUpdate = C; var ee = v.componentDidUpdate; @@ -2190,7 +2193,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); ee.call(this, R, F, ne); }; } - return b; + return y; } f.r(u), f.d(u, { polyfill: () => m }), k.__suppressDeprecationWarning = !0, d.__suppressDeprecationWarning = !0, C.__suppressDeprecationWarning = !0; }, 1720: (i, u, f) => { @@ -2211,7 +2214,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); return function(j, A, ae) { return A && S(j.prototype, A), ae && S(j, ae), j; }; - })(), C = f(6540), m = ee(C), b = ee(f(961)), v = ee(f(5556)), N = ee(f(9090)), I = (function(S) { + })(), C = f(6540), m = ee(C), y = ee(f(961)), v = ee(f(5556)), N = ee(f(9090)), I = (function(S) { if (S && S.__esModule) return S; var j = {}; if (S != null) for (var A in S) Object.prototype.hasOwnProperty.call(S, A) && (j[A] = S[A]); @@ -2224,10 +2227,10 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (!S) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return !j || typeof j != "object" && typeof j != "function" ? S : j; } - var F = u.portalClassName = "ReactModalPortal", H = u.bodyOpenClassName = "ReactModal__Body--open", ne = D.canUseDOM && b.default.createPortal !== void 0, pe = function(S) { + var F = u.portalClassName = "ReactModalPortal", H = u.bodyOpenClassName = "ReactModal__Body--open", ne = D.canUseDOM && y.default.createPortal !== void 0, pe = function(S) { return document.createElement(S); }, oe = function() { - return ne ? b.default.createPortal : b.default.unstable_renderSubtreeIntoContainer; + return ne ? y.default.createPortal : y.default.unstable_renderSubtreeIntoContainer; }; function fe(S) { return S(); @@ -2240,7 +2243,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); })(this, j); for (var Ee = arguments.length, J = Array(Ee), U = 0; U < Ee; U++) J[U] = arguments[U]; return ae = Z = R(this, (A = j.__proto__ || Object.getPrototypeOf(j)).call.apply(A, [this].concat(J))), Z.removePortal = function() { - !ne && b.default.unmountComponentAtNode(Z.node); + !ne && y.default.unmountComponentAtNode(Z.node); var G = fe(Z.props.parentSelector); G && G.contains(Z.node) ? G.removeChild(Z.node) : console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.'); }, Z.portalRef = function(G) { @@ -2283,8 +2286,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); return m.default.createElement("div", S, j); } }, ge.defaultStyles = { overlay: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, backgroundColor: "rgba(255, 255, 255, 0.75)" }, content: { position: "absolute", top: "40px", left: "40px", right: "40px", bottom: "40px", border: "1px solid #ccc", background: "#fff", overflow: "auto", WebkitOverflowScrolling: "touch", borderRadius: "4px", outline: "none", padding: "20px" } }, (0, se.polyfill)(ge), u.default = ge; }, 1726: (i, u, f) => { - Object.defineProperty(u, "__esModule", { value: !0 }), u.getBoundPosition = function(m, b, v) { - if (!m.props.bounds) return [b, v]; + Object.defineProperty(u, "__esModule", { value: !0 }), u.getBoundPosition = function(m, y, v) { + if (!m.props.bounds) return [y, v]; var N = m.props.bounds; N = typeof N == "string" ? N : (function(F) { return { left: F.left, top: F.top, right: F.right, bottom: F.bottom }; @@ -2296,38 +2299,38 @@ https://fb.me/react-async-component-lifecycle-hooks`); var ee = se.getComputedStyle(I), R = se.getComputedStyle(D); N = { left: -I.offsetLeft + (0, k.int)(R.paddingLeft) + (0, k.int)(ee.marginLeft), top: -I.offsetTop + (0, k.int)(R.paddingTop) + (0, k.int)(ee.marginTop), right: (0, d.innerWidth)(D) - (0, d.outerWidth)(I) - I.offsetLeft + (0, k.int)(R.paddingRight) - (0, k.int)(ee.marginRight), bottom: (0, d.innerHeight)(D) - (0, d.outerHeight)(I) - I.offsetTop + (0, k.int)(R.paddingBottom) - (0, k.int)(ee.marginBottom) }; } - return (0, k.isNum)(N.right) && (b = Math.min(b, N.right)), (0, k.isNum)(N.bottom) && (v = Math.min(v, N.bottom)), (0, k.isNum)(N.left) && (b = Math.max(b, N.left)), (0, k.isNum)(N.top) && (v = Math.max(v, N.top)), [b, v]; - }, u.snapToGrid = function(m, b, v) { - var N = Math.round(b / m[0]) * m[0], I = Math.round(v / m[1]) * m[1]; + return (0, k.isNum)(N.right) && (y = Math.min(y, N.right)), (0, k.isNum)(N.bottom) && (v = Math.min(v, N.bottom)), (0, k.isNum)(N.left) && (y = Math.max(y, N.left)), (0, k.isNum)(N.top) && (v = Math.max(v, N.top)), [y, v]; + }, u.snapToGrid = function(m, y, v) { + var N = Math.round(y / m[0]) * m[0], I = Math.round(v / m[1]) * m[1]; return [N, I]; }, u.canDragX = function(m) { return m.props.axis === "both" || m.props.axis === "x"; }, u.canDragY = function(m) { return m.props.axis === "both" || m.props.axis === "y"; - }, u.getControlPosition = function(m, b, v) { - var N = typeof b == "number" ? (0, d.getTouch)(m, b) : null; - if (typeof b == "number" && !N) return null; + }, u.getControlPosition = function(m, y, v) { + var N = typeof y == "number" ? (0, d.getTouch)(m, y) : null; + if (typeof y == "number" && !N) return null; var I = C(v), D = v.props.offsetParent || I.offsetParent || I.ownerDocument.body; return (0, d.offsetXYFromParent)(N || m, D, v.props.scale); - }, u.createCoreData = function(m, b, v) { + }, u.createCoreData = function(m, y, v) { var N = m.state, I = !(0, k.isNum)(N.lastX), D = C(m); - return I ? { node: D, deltaX: 0, deltaY: 0, lastX: b, lastY: v, x: b, y: v } : { node: D, deltaX: b - N.lastX, deltaY: v - N.lastY, lastX: N.lastX, lastY: N.lastY, x: b, y: v }; - }, u.createDraggableData = function(m, b) { + return I ? { node: D, deltaX: 0, deltaY: 0, lastX: y, lastY: v, x: y, y: v } : { node: D, deltaX: y - N.lastX, deltaY: v - N.lastY, lastX: N.lastX, lastY: N.lastY, x: y, y: v }; + }, u.createDraggableData = function(m, y) { var v = m.props.scale; - return { node: b.node, x: m.state.x + b.deltaX / v, y: m.state.y + b.deltaY / v, deltaX: b.deltaX / v, deltaY: b.deltaY / v, lastX: m.state.x, lastY: m.state.y }; + return { node: y.node, x: m.state.x + y.deltaX / v, y: m.state.y + y.deltaY / v, deltaX: y.deltaX / v, deltaY: y.deltaY / v, lastX: m.state.x, lastY: m.state.y }; }; var k = f(7056), d = f(1089); function C(m) { - var b = m.findDOMNode(); - if (!b) throw new Error(": Unmounted during event!"); - return b; + var y = m.findDOMNode(); + if (!y) throw new Error(": Unmounted during event!"); + return y; } }, 2411: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function v(N) { var I = [].slice.call(N.querySelectorAll("*"), 0).reduce(function(D, L) { return D.concat(L.shadowRoot ? v(L.shadowRoot) : [L]); }, []); - return I.filter(b); + return I.filter(y); }; var f = "none", k = "contents", d = /^(input|select|textarea|button|object|iframe)$/; function C(v) { @@ -2352,7 +2355,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); return !0; })(v); } - function b(v) { + function y(v) { var N = v.getAttribute("tabindex"); N === null && (N = void 0); var I = isNaN(N); @@ -2373,7 +2376,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } if (!k) throw Error(m(227)); - function b(e, t, n, r, a, p, h, w, W) { + function y(e, t, n, r, a, p, h, w, W) { var V = Array.prototype.slice.call(arguments, 3); try { t.apply(n, V); @@ -2385,7 +2388,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); v = !0, N = e; } }; function se(e, t, n, r, a, p, h, w, W) { - v = !1, N = null, b.apply(L, arguments); + v = !1, N = null, y.apply(L, arguments); } var ee = null, R = null, F = null; function H(e, t, n) { @@ -2464,7 +2467,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); function Je() { J === null && U === null || (Ue(), me()); } - function ye(e, t, n) { + function be(e, t, n) { if (Ke) return e(t, n); Ke = !0; try { @@ -2728,7 +2731,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var t = e.textContent; t === e._wrapperState.initialValue && t !== "" && t !== null && (e.value = t); } - var hn = "http://www.w3.org/1999/xhtml", bi = "http://www.w3.org/2000/svg"; + var hn = "http://www.w3.org/1999/xhtml", yi = "http://www.w3.org/2000/svg"; function mn(e) { switch (e) { case "svg": @@ -2743,7 +2746,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); return e == null || e === "http://www.w3.org/1999/xhtml" ? mn(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e; } var gn, ct, Dr = (ct = function(e, t) { - if (e.namespaceURI !== bi || "innerHTML" in e) e.innerHTML = t; + if (e.namespaceURI !== yi || "innerHTML" in e) e.innerHTML = t; else { for ((gn = gn || document.createElement("div")).innerHTML = "" + t.valueOf().toString() + "", t = gn.firstChild; e.firstChild; ) e.removeChild(e.firstChild); for (; t.firstChild; ) e.appendChild(t.firstChild); @@ -2773,7 +2776,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); return e; } Z && (Ir = document.createElement("div").style, "AnimationEvent" in window || (delete Qn.animationend.animation, delete Qn.animationiteration.animation, delete Qn.animationstart.animation), "TransitionEvent" in window || delete Qn.transitionend.transition); - var M = Rr("animationend"), Q = Rr("animationiteration"), be = Rr("animationstart"), De = Rr("transitionend"), tt = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), He = new (typeof WeakMap == "function" ? WeakMap : Map)(); + var M = Rr("animationend"), Q = Rr("animationiteration"), ye = Rr("animationstart"), De = Rr("transitionend"), tt = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), He = new (typeof WeakMap == "function" ? WeakMap : Map)(); function Ge(e) { var t = He.get(e); return t === void 0 && (t = /* @__PURE__ */ new Map(), He.set(e, t)), t; @@ -2879,8 +2882,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); function jt(e, t, n) { Array.isArray(e) ? e.forEach(t, n) : e && t.call(n, e); } - var yt = null; - function bt(e) { + var bt = null; + function yt(e) { if (e) { var t = e._dispatchListeners, n = e._dispatchInstances; if (Array.isArray(t)) for (var r = 0; r < t.length && !e.isPropagationStopped(); r++) H(e, t[r], n[r]); @@ -2888,9 +2891,9 @@ https://fb.me/react-async-component-lifecycle-hooks`); e._dispatchListeners = null, e._dispatchInstances = null, e.isPersistent() || e.constructor.release(e); } } - function yn(e) { - if (e !== null && (yt = kt(yt, e)), e = yt, yt = null, e) { - if (jt(e, bt), yt) throw Error(m(95)); + function bn(e) { + if (e !== null && (bt = kt(bt, e)), e = bt, bt = null, e) { + if (jt(e, yt), bt) throw Error(m(95)); if (I) throw e = D, I = !1, D = null, e; } } @@ -2902,13 +2905,13 @@ https://fb.me/react-async-component-lifecycle-hooks`); var t = (e = "on" + e) in document; return t || ((t = document.createElement("div")).setAttribute(e, "return;"), t = typeof t[e] == "function"), t; } - var bn = []; + var yn = []; function Xr(e) { - e.topLevelType = null, e.nativeEvent = null, e.targetInst = null, e.ancestors.length = 0, 10 > bn.length && bn.push(e); + e.topLevelType = null, e.nativeEvent = null, e.targetInst = null, e.ancestors.length = 0, 10 > yn.length && yn.push(e); } function To(e, t, n, r) { - if (bn.length) { - var a = bn.pop(); + if (yn.length) { + var a = yn.pop(); return a.topLevelType = e, a.eventSystemFlags = r, a.nativeEvent = t, a.targetInst = n, a; } return { topLevelType: e, eventSystemFlags: r, nativeEvent: t, targetInst: n, ancestors: [] }; @@ -2939,7 +2942,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var V = ge[W]; V && (V = V.extractEvents(r, t, p, a, h)) && (w = kt(w, V)); } - yn(w); + bn(w); } } function nt(e, t, n) { @@ -3051,7 +3054,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); for (wt !== null && Zr(wt, e), Tt !== null && Zr(Tt, e), Lt !== null && Zr(Lt, e), kn.forEach(t), zn.forEach(t), n = 0; n < wn.length; n++) (r = wn[n]).blockedOn === e && (r.blockedOn = null); for (; 0 < wn.length && (n = wn[0]).blockedOn === null; ) Mr(n), n.blockedOn === null && wn.shift(); } - var oa = {}, ki = /* @__PURE__ */ new Map(), wi = /* @__PURE__ */ new Map(), is = ["abort", "abort", M, "animationEnd", Q, "animationIteration", be, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", De, "transitionEnd", "waiting", "waiting"]; + var oa = {}, ki = /* @__PURE__ */ new Map(), wi = /* @__PURE__ */ new Map(), is = ["abort", "abort", M, "animationEnd", Q, "animationIteration", ye, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", De, "transitionEnd", "waiting", "waiting"]; function _i(e, t) { for (var n = 0; n < e.length; n += 2) { var r = e[n], a = e[n + 1], p = "on" + (a[0].toUpperCase() + a.slice(1)); @@ -3115,7 +3118,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); })(a, e, t, n, r)) { Xn(e, r), e = To(e, r, null, t); try { - ye(Oo, e); + be(Oo, e); } finally { Xr(e); } @@ -3139,7 +3142,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } e = To(e, r, n, t); try { - ye(Oo, e); + be(Oo, e); } finally { Xr(e); } @@ -3246,7 +3249,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var t = e && e.nodeName && e.nodeName.toLowerCase(); return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true"); } - var eo = "$", to = "/$", Ni = "$?", yr = "$!", Do = null, Et = null; + var eo = "$", to = "/$", Ni = "$?", br = "$!", Do = null, Et = null; function Yt(e, t) { switch (e) { case "button": @@ -3273,7 +3276,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); for (var t = 0; e; ) { if (e.nodeType === 8) { var n = e.data; - if (n === eo || n === yr || n === Ni) { + if (n === eo || n === br || n === Ni) { if (t === 0) return e; t--; } else n === to && t++; @@ -3282,7 +3285,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return null; } - var br = Math.random().toString(36).slice(2), vr = "__reactInternalInstance$" + br, ri = "__reactEventHandlers$" + br, Io = "__reactContainere$" + br; + var yr = Math.random().toString(36).slice(2), vr = "__reactInternalInstance$" + yr, ri = "__reactEventHandlers$" + yr, Io = "__reactContainere$" + yr; function no(e) { var t = e[vr]; if (t) return t; @@ -3490,13 +3493,13 @@ https://fb.me/react-async-component-lifecycle-hooks`); var t = e && e.nodeName && e.nodeName.toLowerCase(); return t === "input" ? !!hs[e.type] : t === "textarea"; } - var ya = { change: { phasedRegistrationNames: { bubbled: "onChange", captured: "onChangeCapture" }, dependencies: "blur change click focus input keydown keyup selectionchange".split(" ") } }; - function ba(e, t, n) { - return (e = Ot.getPooled(ya.change, e, t, n)).type = "change", le(n), $t(e), e; + var ba = { change: { phasedRegistrationNames: { bubbled: "onChange", captured: "onChangeCapture" }, dependencies: "blur change click focus input keydown keyup selectionchange".split(" ") } }; + function ya(e, t, n) { + return (e = Ot.getPooled(ba.change, e, t, n)).type = "change", le(n), $t(e), e; } var ao = null, Ao = null; function ms(e) { - yn(e); + bn(e); } function si(e) { if (sn(Zn(e))) return e; @@ -3509,7 +3512,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); ao && (ao.detachEvent("onpropertychange", ka), Ao = ao = null); } function ka(e) { - if (e.propertyName === "value" && si(Ao)) if (e = ba(Ao, e, ur(e)), Le) yn(e); + if (e.propertyName === "value" && si(Ao)) if (e = ya(Ao, e, ur(e)), Le) bn(e); else { Le = !0; try { @@ -3519,10 +3522,10 @@ https://fb.me/react-async-component-lifecycle-hooks`); } } } - function ys(e, t, n) { + function bs(e, t, n) { e === "focus" ? (va(), Ao = n, (ao = t).attachEvent("onpropertychange", ka)) : e === "blur" && va(); } - function bs(e) { + function ys(e) { if (e === "selectionchange" || e === "keyup" || e === "keydown") return si(Ao); } function vs(e, t) { @@ -3532,16 +3535,16 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (e === "input" || e === "change") return si(t); } Z && (Li = Mn("input") && (!document.documentMode || 9 < document.documentMode)); - var ws = { eventTypes: ya, _isInputEventSupported: Li, extractEvents: function(e, t, n, r) { + var ws = { eventTypes: ba, _isInputEventSupported: Li, extractEvents: function(e, t, n, r) { var a = t ? Zn(t) : window, p = a.nodeName && a.nodeName.toLowerCase(); if (p === "select" || p === "input" && a.type === "file") var h = gs; else if (ga(a)) if (Li) h = ks; else { - h = bs; - var w = ys; + h = ys; + var w = bs; } else (p = a.nodeName) && p.toLowerCase() === "input" && (a.type === "checkbox" || a.type === "radio") && (h = vs); - if (h && (h = h(e, t))) return ba(h, n, r); + if (h && (h = h(e, t))) return ya(h, n, r); w && w(e, a, t), e === "blur" && (e = a._wrapperState) && e.controlled && a.type === "number" && So(a, "number", a.value); } }, jo = Ot.extend({ view: null, detail: null }), _s = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function Es(e) { @@ -3700,7 +3703,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); break; case M: case Q: - case be: + case ye: e = Os; break; case De: @@ -3734,12 +3737,12 @@ https://fb.me/react-async-component-lifecycle-hooks`); } }; if (ne) throw Error(m(101)); ne = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), oe(), ee = Ri, R = kr, F = Zn, ae({ SimpleEventPlugin: c, EnterLeaveEventPlugin: xs, ChangeEventPlugin: ws, SelectEventPlugin: Ts, BeforeInputEventPlugin: ai }); - var g = [], y = -1; + var g = [], b = -1; function x(e) { - 0 > y || (e.current = g[y], g[y] = null, y--); + 0 > b || (e.current = g[b], g[b] = null, b--); } function z(e, t) { - y++, g[y] = e.current, e.current = t; + b++, g[b] = e.current, e.current = t; } var K = {}, Y = { current: K }, ie = { current: !1 }, ue = K; function he(e, t) { @@ -3972,15 +3975,15 @@ https://fb.me/react-async-component-lifecycle-hooks`); }, enqueueSetState: function(e, t, n) { e = e._reactInternalFiber; var r = Sr(), a = Wi.suspense; - (a = po(r = Ko(r, e, a), a)).payload = t, n != null && (a.callback = n), fo(e, a), yo(e, r); + (a = po(r = Ko(r, e, a), a)).payload = t, n != null && (a.callback = n), fo(e, a), bo(e, r); }, enqueueReplaceState: function(e, t, n) { e = e._reactInternalFiber; var r = Sr(), a = Wi.suspense; - (a = po(r = Ko(r, e, a), a)).tag = 1, a.payload = t, n != null && (a.callback = n), fo(e, a), yo(e, r); + (a = po(r = Ko(r, e, a), a)).tag = 1, a.payload = t, n != null && (a.callback = n), fo(e, a), bo(e, r); }, enqueueForceUpdate: function(e, t) { e = e._reactInternalFiber; var n = Sr(), r = Wi.suspense; - (r = po(n = Ko(n, e, r), r)).tag = 2, t != null && (r.callback = t), fo(e, r), yo(e, n); + (r = po(n = Ko(n, e, r), r)).tag = 2, t != null && (r.callback = t), fo(e, r), bo(e, n); } }; function Ol(e, t, n, r, a, p, h) { return typeof (e = e.stateNode).shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, p, h) : !t.prototype || !t.prototype.isPureReactComponent || !Fr(n, r) || !Fr(a, p); @@ -4053,10 +4056,10 @@ https://fb.me/react-async-component-lifecycle-hooks`); return B !== null && B.elementType === re.type ? ((ve = a(B, re.props)).ref = qi(q, B, re), ve.return = q, ve) : ((ve = ts(re.type, re.key, re.props, null, q.mode, ve)).ref = qi(q, B, re), ve.return = q, ve); } function V(q, B, re, ve) { - return B === null || B.tag !== 4 || B.stateNode.containerInfo !== re.containerInfo || B.stateNode.implementation !== re.implementation ? ((B = yl(re, q.mode, ve)).return = q, B) : ((B = a(B, re.children || [])).return = q, B); + return B === null || B.tag !== 4 || B.stateNode.containerInfo !== re.containerInfo || B.stateNode.implementation !== re.implementation ? ((B = bl(re, q.mode, ve)).return = q, B) : ((B = a(B, re.children || [])).return = q, B); } function ce(q, B, re, ve, xe) { - return B === null || B.tag !== 7 ? ((B = bo(re, q.mode, ve, xe)).return = q, B) : ((B = a(B, re)).return = q, B); + return B === null || B.tag !== 7 ? ((B = yo(re, q.mode, ve, xe)).return = q, B) : ((B = a(B, re)).return = q, B); } function Re(q, B, re) { if (typeof B == "string" || typeof B == "number") return (B = gl("" + B, q.mode, re)).return = q, B; @@ -4065,9 +4068,9 @@ https://fb.me/react-async-component-lifecycle-hooks`); case Gt: return (re = ts(B.type, B.key, B.props, null, q.mode, re)).ref = qi(q, null, B), re.return = q, re; case On: - return (B = yl(B, q.mode, re)).return = q, B; + return (B = bl(B, q.mode, re)).return = q, B; } - if (Pa(B) || Wn(B)) return (B = bo(B, q.mode, re, null)).return = q, B; + if (Pa(B) || Wn(B)) return (B = yo(B, q.mode, re, null)).return = q, B; Da(q, B); } return null; @@ -4167,7 +4170,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } t(q, xe), xe = xe.sibling; } - re.type === Nn ? ((B = bo(re.props.children, q.mode, ve, re.key)).return = q, q = B) : ((ve = ts(re.type, re.key, re.props, null, q.mode, ve)).ref = qi(q, B, re), ve.return = q, q = ve); + re.type === Nn ? ((B = yo(re.props.children, q.mode, ve, re.key)).return = q, q = B) : ((ve = ts(re.type, re.key, re.props, null, q.mode, ve)).ref = qi(q, B, re), ve.return = q, q = ve); } return h(q); case On: @@ -4183,7 +4186,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } t(q, B), B = B.sibling; } - (B = yl(re, q.mode, ve)).return = q, q = B; + (B = bl(re, q.mode, ve)).return = q, q = B; } return h(q); } @@ -4230,7 +4233,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); for (var t = e; t !== null; ) { if (t.tag === 13) { var n = t.memoizedState; - if (n !== null && ((n = n.dehydrated) === null || n.data === Ni || n.data === yr)) return t; + if (n !== null && ((n = n.dehydrated) === null || n.data === Ni || n.data === br)) return t; } else if (t.tag === 19 && t.memoizedProps.revealOrder !== void 0) { if (64 & t.effectTag) return t; } else if (t.child !== null) { @@ -4416,7 +4419,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (a.eagerReducer = p, a.eagerState = w, rr(w, h)) return; } catch { } - yo(e, r); + bo(e, r); } } var Fa = { readContext: Ln, useCallback: Sn, useContext: Sn, useEffect: Sn, useImperativeHandle: Sn, useLayoutEffect: Sn, useMemo: Sn, useReducer: Sn, useRef: Sn, useState: Sn, useDebugValue: Sn, useResponder: Sn, useDeferredValue: Sn, useTransition: Sn }, Lc = { readContext: Ln, useCallback: Ll, useContext: Ln, useEffect: Ml, useImperativeHandle: function(e, t, n) { @@ -4527,7 +4530,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); break e; } t--; - } else n !== eo && n !== yr && n !== Ni || t++; + } else n !== eo && n !== br && n !== Ni || t++; } e = e.nextSibling; } @@ -4601,8 +4604,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); var r, a = t.mode, p = t.pendingProps, h = Ct.current, w = !1; if ((r = !!(64 & t.effectTag)) || (r = !!(2 & h) && (e === null || e.memoizedState !== null)), r ? (w = !0, t.effectTag &= -65) : e !== null && e.memoizedState === null || p.fallback === void 0 || p.unstable_avoidThisFallback === !0 || (h |= 1), z(Ct, 1 & h), e === null) { if (p.fallback !== void 0 && Qs(t), w) { - if (w = p.fallback, (p = bo(null, a, 0, null)).return = t, !(2 & t.mode)) for (e = t.memoizedState !== null ? t.child.child : t.child, p.child = e; e !== null; ) e.return = p, e = e.sibling; - return (n = bo(w, a, n, null)).return = t, p.sibling = n, t.memoizedState = Js, t.child = p, n; + if (w = p.fallback, (p = yo(null, a, 0, null)).return = t, !(2 & t.mode)) for (e = t.memoizedState !== null ? t.child.child : t.child, p.child = e; e !== null; ) e.return = p, e = e.sibling; + return (n = yo(w, a, n, null)).return = t, p.sibling = n, t.memoizedState = Js, t.child = p, n; } return a = p.children, t.memoizedState = null, t.child = As(t, null, a, n); } @@ -4614,8 +4617,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); return n = di(t, e.child, p.children, n), t.memoizedState = null, t.child = n; } if (e = e.child, w) { - if (w = p.fallback, (p = bo(null, a, 0, null)).return = t, p.child = e, e !== null && (e.return = p), !(2 & t.mode)) for (e = t.memoizedState !== null ? t.child.child : t.child, p.child = e; e !== null; ) e.return = p, e = e.sibling; - return (n = bo(w, a, n, null)).return = t, p.sibling = n, n.effectTag |= 2, p.childExpirationTime = 0, t.memoizedState = Js, t.child = p, n; + if (w = p.fallback, (p = yo(null, a, 0, null)).return = t, p.child = e, e !== null && (e.return = p), !(2 & t.mode)) for (e = t.memoizedState !== null ? t.child.child : t.child, p.child = e; e !== null; ) e.return = p, e = e.sibling; + return (n = yo(w, a, n, null)).return = t, p.sibling = n, n.effectTag |= 2, p.childExpirationTime = 0, t.memoizedState = Js, t.child = p, n; } return t.memoizedState = null, t.child = di(t, e, p.children, n); } @@ -5341,7 +5344,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return Cn !== null && e === dn && --e, e; } - function yo(e, t) { + function bo(e, t) { if (50 < ea) throw ea = 0, ul = null, Error(m(185)); if ((e = Za(e, t)) !== null) { var n = Ft(); @@ -5381,12 +5384,12 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (e.callbackExpirationTime === t && a >= r) return; n !== jn && vt(n); } - e.callbackExpirationTime = t, e.callbackPriority = r, t = t === 1073741823 ? $i(dl.bind(null, e)) : Hi(r, yc.bind(null, e), { timeout: 10 * (1073741821 - t) - Nt() }), e.callbackNode = t; + e.callbackExpirationTime = t, e.callbackPriority = r, t = t === 1073741823 ? $i(dl.bind(null, e)) : Hi(r, bc.bind(null, e), { timeout: 10 * (1073741821 - t) - Nt() }), e.callbackNode = t; } } } - function yc(e, t) { - if (Ga = 0, t) return bl(e, t = Sr()), Tn(e), null; + function bc(e, t) { + if (Ga = 0, t) return yl(e, t = Sr()), Tn(e), null; var n = Ja(e); if (n !== 0) { if (t = e.callbackNode, (We & (ar | xr)) !== Ut) throw Error(m(327)); @@ -5405,7 +5408,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); case $a: throw Error(m(345)); case mc: - bl(e, 2 < n ? 2 : n); + yl(e, 2 < n ? 2 : n); break; case Ba: if (Zo(e, n), n === (r = e.lastSuspendedTime) && (e.nextKnownPendingLevel = pl(a)), Br === 1073741823 && 10 < (a = ll + gc - Nt())) { @@ -5456,7 +5459,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); default: throw Error(m(329)); } - if (Tn(e), e.callbackNode === t) return yc.bind(null, e); + if (Tn(e), e.callbackNode === t) return bc.bind(null, e); } } return null; @@ -5479,7 +5482,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return null; } - function bc(e, t) { + function yc(e, t) { var n = We; We |= 1; try { @@ -6033,7 +6036,7 @@ Add a component higher in the tree to provide a loading else if (typeof e == "string") h = 5; else e: switch (e) { case Nn: - return bo(n.children, a, p, t); + return yo(n.children, a, p, t); case pn: h = 8, a |= 7; break; @@ -6071,13 +6074,13 @@ Add a component higher in the tree to provide a loading } return (t = Cr(h, n, t, a)).elementType = e, t.type = r, t.expirationTime = p, t; } - function bo(e, t, n, r) { + function yo(e, t, n, r) { return (e = Cr(7, e, r, t)).expirationTime = n, e; } function gl(e, t, n) { return (e = Cr(6, e, null, t)).expirationTime = n, e; } - function yl(e, t, n) { + function bl(e, t, n) { return (t = Cr(4, e.children !== null ? e.children : [], e.key, t)).expirationTime = n, t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation }, t; } function ru(e, t, n) { @@ -6096,7 +6099,7 @@ Add a component higher in the tree to provide a loading var n = e.firstSuspendedTime; n !== 0 && (t >= n ? e.firstSuspendedTime = e.lastSuspendedTime = e.nextKnownPendingLevel = 0 : t >= e.lastSuspendedTime && (e.lastSuspendedTime = t + 1), t > e.nextKnownPendingLevel && (e.nextKnownPendingLevel = t)); } - function bl(e, t) { + function yl(e, t) { var n = e.lastExpiredTime; (n === 0 || n > t) && (e.lastExpiredTime = t); } @@ -6131,7 +6134,7 @@ Add a component higher in the tree to provide a loading } n = w; } else n = K; - return t.context === null ? t.context = n : t.pendingContext = n, (t = po(p, h)).payload = { element: e }, (r = r === void 0 ? null : r) !== null && (t.callback = r), fo(a, t), yo(a, p), p; + return t.context === null ? t.context = n : t.pendingContext = n, (t = po(p, h)).payload = { element: e }, (r = r === void 0 ? null : r) !== null && (t.callback = r), fo(a, t), bo(a, p), p; } function vl(e) { return (e = e.current).child ? (e.child.tag, e.child.stateNode) : null; @@ -6203,14 +6206,14 @@ Add a component higher in the tree to provide a loading }, Ze = function(e) { if (e.tag === 13) { var t = Fo(Sr(), 150, 100); - yo(e, t), kl(e, t); + bo(e, t), kl(e, t); } }, Yn = function(e) { - e.tag === 13 && (yo(e, 3), kl(e, 3)); + e.tag === 13 && (bo(e, 3), kl(e, 3)); }, vn = function(e) { if (e.tag === 13) { var t = Sr(); - yo(e, t = Ko(t, e, null)), kl(e, t); + bo(e, t = Ko(t, e, null)), kl(e, t); } }, Ee = function(e, t, n) { switch (t) { @@ -6233,7 +6236,7 @@ Add a component higher in the tree to provide a loading case "select": (t = n.value) != null && Dn(e, !!n.multiple, t, !1); } - }, ke = bc, Ne = function(e, t, n, r, a) { + }, ke = yc, Ne = function(e, t, n, r, a) { var p = We; We |= 4; try { @@ -6246,7 +6249,7 @@ Add a component higher in the tree to provide a loading if (qo !== null) { var e = qo; qo = null, e.forEach(function(t, n) { - bl(n, t), Tn(n); + yl(n, t), Tn(n); }), tn(); } })(), mi()); @@ -6261,7 +6264,7 @@ Add a component higher in the tree to provide a loading }; var ou = { Events: [kr, Zn, Ri, ae, S, $t, function(e) { jt(e, zi); - }, le, me, Po, yn, mi, { current: !1 }] }; + }, le, me, Po, bn, mi, { current: !1 }] }; (function(e) { var t = e.findFiberByHostInstance; (function(n) { @@ -6317,7 +6320,7 @@ Add a component higher in the tree to provide a loading e._reactRootContainer = null, e[Io] = null; }); }), !0); - }, u.unstable_batchedUpdates = bc, u.unstable_createPortal = function(e, t) { + }, u.unstable_batchedUpdates = yc, u.unstable_createPortal = function(e, t) { return Nc(e, t, 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null); }, u.unstable_renderSubtreeIntoContainer = function(e, t, n, r) { if (!ta(n)) throw Error(m(200)); @@ -6349,15 +6352,15 @@ Add a component higher in the tree to provide a loading throw R.name = "Invariant Violation", R; } } - function b() { + function y() { return m; } m.isRequired = m; - var v = { array: m, bigint: m, bool: m, func: m, number: m, object: m, string: m, symbol: m, any: m, arrayOf: b, element: m, elementType: m, instanceOf: b, node: m, objectOf: b, oneOf: b, oneOfType: b, shape: b, exact: b, checkPropTypes: C, resetWarningCache: d }; + var v = { array: m, bigint: m, bool: m, func: m, number: m, object: m, string: m, symbol: m, any: m, arrayOf: y, element: m, elementType: m, instanceOf: y, node: m, objectOf: y, oneOf: y, oneOfType: y, shape: y, exact: y, checkPropTypes: C, resetWarningCache: d }; return v.PropTypes = v, v; }; }, 2799: (i, u) => { - var f = typeof Symbol == "function" && Symbol.for, k = f ? Symbol.for("react.element") : 60103, d = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, m = f ? Symbol.for("react.strict_mode") : 60108, b = f ? Symbol.for("react.profiler") : 60114, v = f ? Symbol.for("react.provider") : 60109, N = f ? Symbol.for("react.context") : 60110, I = f ? Symbol.for("react.async_mode") : 60111, D = f ? Symbol.for("react.concurrent_mode") : 60111, L = f ? Symbol.for("react.forward_ref") : 60112, se = f ? Symbol.for("react.suspense") : 60113, ee = f ? Symbol.for("react.suspense_list") : 60120, R = f ? Symbol.for("react.memo") : 60115, F = f ? Symbol.for("react.lazy") : 60116, H = f ? Symbol.for("react.block") : 60121, ne = f ? Symbol.for("react.fundamental") : 60117, pe = f ? Symbol.for("react.responder") : 60118, oe = f ? Symbol.for("react.scope") : 60119; + var f = typeof Symbol == "function" && Symbol.for, k = f ? Symbol.for("react.element") : 60103, d = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, m = f ? Symbol.for("react.strict_mode") : 60108, y = f ? Symbol.for("react.profiler") : 60114, v = f ? Symbol.for("react.provider") : 60109, N = f ? Symbol.for("react.context") : 60110, I = f ? Symbol.for("react.async_mode") : 60111, D = f ? Symbol.for("react.concurrent_mode") : 60111, L = f ? Symbol.for("react.forward_ref") : 60112, se = f ? Symbol.for("react.suspense") : 60113, ee = f ? Symbol.for("react.suspense_list") : 60120, R = f ? Symbol.for("react.memo") : 60115, F = f ? Symbol.for("react.lazy") : 60116, H = f ? Symbol.for("react.block") : 60121, ne = f ? Symbol.for("react.fundamental") : 60117, pe = f ? Symbol.for("react.responder") : 60118, oe = f ? Symbol.for("react.scope") : 60119; function fe(S) { if (typeof S == "object" && S !== null) { var j = S.$$typeof; @@ -6367,7 +6370,7 @@ Add a component higher in the tree to provide a loading case I: case D: case C: - case b: + case y: case m: case se: return S; @@ -6391,7 +6394,7 @@ Add a component higher in the tree to provide a loading function ge(S) { return fe(S) === D; } - u.AsyncMode = I, u.ConcurrentMode = D, u.ContextConsumer = N, u.ContextProvider = v, u.Element = k, u.ForwardRef = L, u.Fragment = C, u.Lazy = F, u.Memo = R, u.Portal = d, u.Profiler = b, u.StrictMode = m, u.Suspense = se, u.isAsyncMode = function(S) { + u.AsyncMode = I, u.ConcurrentMode = D, u.ContextConsumer = N, u.ContextProvider = v, u.Element = k, u.ForwardRef = L, u.Fragment = C, u.Lazy = F, u.Memo = R, u.Portal = d, u.Profiler = y, u.StrictMode = m, u.Suspense = se, u.isAsyncMode = function(S) { return ge(S) || fe(S) === I; }, u.isConcurrentMode = ge, u.isContextConsumer = function(S) { return fe(S) === N; @@ -6410,13 +6413,13 @@ Add a component higher in the tree to provide a loading }, u.isPortal = function(S) { return fe(S) === d; }, u.isProfiler = function(S) { - return fe(S) === b; + return fe(S) === y; }, u.isStrictMode = function(S) { return fe(S) === m; }, u.isSuspense = function(S) { return fe(S) === se; }, u.isValidElementType = function(S) { - return typeof S == "string" || typeof S == "function" || S === C || S === D || S === b || S === m || S === se || S === ee || typeof S == "object" && S !== null && (S.$$typeof === F || S.$$typeof === R || S.$$typeof === v || S.$$typeof === N || S.$$typeof === L || S.$$typeof === ne || S.$$typeof === pe || S.$$typeof === oe || S.$$typeof === H); + return typeof S == "string" || typeof S == "function" || S === C || S === D || S === y || S === m || S === se || S === ee || typeof S == "object" && S !== null && (S.$$typeof === F || S.$$typeof === R || S.$$typeof === v || S.$$typeof === N || S.$$typeof === L || S.$$typeof === ne || S.$$typeof === pe || S.$$typeof === oe || S.$$typeof === H); }, u.typeOf = fe; }, 2841: (i, u, f) => { f.r(u), f.d(u, { default: () => C }); @@ -6426,20 +6429,20 @@ Add a component higher in the tree to provide a loading d.push([i.id, ".ck-inspector .ck-inspector-checkbox{vertical-align:middle}", ""]); const C = d; }, 3514: (i, u) => { - Object.defineProperty(u, "__esModule", { value: !0 }), u.getPrefix = k, u.browserPrefixToKey = d, u.browserPrefixToStyle = function(m, b) { - return b ? "-".concat(b.toLowerCase(), "-").concat(m) : m; + Object.defineProperty(u, "__esModule", { value: !0 }), u.getPrefix = k, u.browserPrefixToKey = d, u.browserPrefixToStyle = function(m, y) { + return y ? "-".concat(y.toLowerCase(), "-").concat(m) : m; }, u.default = void 0; var f = ["Moz", "Webkit", "O", "ms"]; function k() { var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform"; if (typeof window > "u" || window.document === void 0) return ""; - var b = window.document.documentElement.style; - if (m in b) return ""; - for (var v = 0; v < f.length; v++) if (d(m, f[v]) in b) return f[v]; + var y = window.document.documentElement.style; + if (m in y) return ""; + for (var v = 0; v < f.length; v++) if (d(m, f[v]) in y) return f[v]; return ""; } - function d(m, b) { - return b ? "".concat(b).concat((function(v) { + function d(m, y) { + return y ? "".concat(y).concat((function(v) { for (var N = "", I = !0, D = 0; D < v.length; D++) I ? (N += v[D].toUpperCase(), I = !1) : v[D] === "-" ? I = !0 : N += v[D]; return N; })(m)) : m; @@ -6459,11 +6462,11 @@ Add a component higher in the tree to provide a loading d.push([i.id, ".ck-inspector-side-pane{position:relative}", ""]); const C = d; }, 4146: (i, u, f) => { - var k = f(4363), d = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, C = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, m = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, b = {}; + var k = f(4363), d = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, C = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, m = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, y = {}; function v(R) { - return k.isMemo(R) ? m : b[R.$$typeof] || d; + return k.isMemo(R) ? m : y[R.$$typeof] || d; } - b[k.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, b[k.Memo] = m; + y[k.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, y[k.Memo] = m; var N = Object.defineProperty, I = Object.getOwnPropertyNames, D = Object.getOwnPropertySymbols, L = Object.getOwnPropertyDescriptor, se = Object.getPrototypeOf, ee = Object.prototype; i.exports = function R(F, H, ne) { if (typeof H != "string") { @@ -6499,8 +6502,8 @@ Add a component higher in the tree to provide a loading Object.defineProperty(u, "__esModule", { value: !0 }), u.resetState = function() { var C = document.getElementsByTagName("html")[0]; for (var m in f) d(C, f[m]); - var b = document.body; - for (var v in k) d(b, k[v]); + var y = document.body; + for (var v in k) d(y, k[v]); f = {}, k = {}; }, u.log = function() { }; @@ -6509,19 +6512,19 @@ Add a component higher in the tree to provide a loading C.classList.remove(m); } u.add = function(C, m) { - return b = C.classList, v = C.nodeName.toLowerCase() == "html" ? f : k, void m.split(" ").forEach(function(N) { + return y = C.classList, v = C.nodeName.toLowerCase() == "html" ? f : k, void m.split(" ").forEach(function(N) { (function(I, D) { I[D] || (I[D] = 0), I[D] += 1; - })(v, N), b.add(N); + })(v, N), y.add(N); }); - var b, v; + var y, v; }, u.remove = function(C, m) { - return b = C.classList, v = C.nodeName.toLowerCase() == "html" ? f : k, void m.split(" ").forEach(function(N) { + return y = C.classList, v = C.nodeName.toLowerCase() == "html" ? f : k, void m.split(" ").forEach(function(N) { (function(I, D) { I[D] && (I[D] -= 1); - })(v, N), v[N] === 0 && b.remove(N); + })(v, N), v[N] === 0 && y.remove(N); }); - var b, v; + var y, v; }; }, 4987: (i) => { function u(v, N, I, D) { @@ -6551,11 +6554,11 @@ Add a component higher in the tree to provide a loading }, m.prototype.set = function(v, N) { this.cache[v] = N; }; - var b = { create: function() { + var y = { create: function() { return new m(); } }; i.exports = function(v, N) { - var I = N && N.cache ? N.cache : b, D = N && N.serializer ? N.serializer : C; + var I = N && N.cache ? N.cache : y, D = N && N.serializer ? N.serializer : C; return (N && N.strategy ? N.strategy : d)(v, { cache: I, serializer: D }); }, i.exports.strategies = { variadic: function(v, N) { return k(v, this, f, N.cache.create(), N.serializer); @@ -6580,7 +6583,7 @@ Add a component higher in the tree to provide a loading return H[ne]; }; })(), m = []; - function b(H) { + function y(H) { for (var ne = -1, pe = 0; pe < m.length; pe++) if (m[pe].identifier === H) { ne = pe; break; @@ -6591,7 +6594,7 @@ Add a component higher in the tree to provide a loading for (var pe = {}, oe = [], fe = 0; fe < H.length; fe++) { var ge = H[fe], S = ne.base ? ge[0] + ne.base : ge[0], j = pe[S] || 0, A = "".concat(S, " ").concat(j); pe[S] = j + 1; - var ae = b(A), Z = { css: ge[1], media: ge[2], sourceMap: ge[3] }; + var ae = y(A), Z = { css: ge[1], media: ge[2], sourceMap: ge[3] }; ae !== -1 ? (m[ae].references++, m[ae].updater(Z)) : m.push({ identifier: A, updater: F(Z, ne), references: 1 }), oe.push(A); } return oe; @@ -6658,11 +6661,11 @@ Add a component higher in the tree to provide a loading return function(oe) { if (oe = oe || [], Object.prototype.toString.call(oe) === "[object Array]") { for (var fe = 0; fe < pe.length; fe++) { - var ge = b(pe[fe]); + var ge = y(pe[fe]); m[ge].references--; } for (var S = v(oe, ne), j = 0; j < pe.length; j++) { - var A = b(pe[j]); + var A = y(pe[j]); m[A].references === 0 && (m[A].updater(), m.splice(A, 1)); } pe = S; @@ -6672,7 +6675,7 @@ Add a component higher in the tree to provide a loading }, 5180: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.FunctionParser = u.dedentFunction = u.functionToString = u.USED_METHOD_KEY = void 0; const k = f(1099), d = { " "() { - } }[" "].toString().charAt(0) === '"', C = { Function: "function ", GeneratorFunction: "function* ", AsyncFunction: "async function ", AsyncGeneratorFunction: "async function* " }, m = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, b = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" ")); + } }[" "].toString().charAt(0) === '"', C = { Function: "function ", GeneratorFunction: "function* ", AsyncFunction: "async function ", AsyncGeneratorFunction: "async function* " }, m = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, y = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" ")); u.USED_METHOD_KEY = /* @__PURE__ */ new WeakSet(); function v(I) { let D; @@ -6776,7 +6779,7 @@ ${D}`).join(` const ee = this.consumeSyntax(); if (ee === L) return D + L; if (!ee || ee === ")" || ee === "]" || ee === "}") return; - ee === "/" && se && this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/) ? (se = !1, this.consumeWhitespace()) : se = b.has(ee); + ee === "/" && se && this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/) ? (se = !1, this.consumeWhitespace()) : se = y.has(ee); } } consumeMatch(D) { @@ -6809,28 +6812,28 @@ ${D}`).join(` if (Object.getOwnPropertyNames(C).map(function(v) { return C[v]; }).join("") !== "0123456789") return !1; - var b = {}; + var y = {}; return "abcdefghijklmnopqrst".split("").forEach(function(v) { - b[v] = v; - }), Object.keys(Object.assign({}, b)).join("") === "abcdefghijklmnopqrst"; + y[v] = v; + }), Object.keys(Object.assign({}, y)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } })() ? Object.assign : function(d, C) { - for (var m, b, v = (function(L) { + for (var m, y, v = (function(L) { if (L == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(L); })(d), N = 1; N < arguments.length; N++) { for (var I in m = Object(arguments[N])) f.call(m, I) && (v[I] = m[I]); if (u) { - b = u(m); - for (var D = 0; D < b.length; D++) k.call(m, b[D]) && (v[b[D]] = m[b[D]]); + y = u(m); + for (var D = 0; D < y.length; D++) k.call(m, y[D]) && (v[y[D]] = m[y[D]]); } } return v; }; }, 5287: (i, u, f) => { - var k = f(5228), d = typeof Symbol == "function" && Symbol.for, C = d ? Symbol.for("react.element") : 60103, m = d ? Symbol.for("react.portal") : 60106, b = d ? Symbol.for("react.fragment") : 60107, v = d ? Symbol.for("react.strict_mode") : 60108, N = d ? Symbol.for("react.profiler") : 60114, I = d ? Symbol.for("react.provider") : 60109, D = d ? Symbol.for("react.context") : 60110, L = d ? Symbol.for("react.forward_ref") : 60112, se = d ? Symbol.for("react.suspense") : 60113, ee = d ? Symbol.for("react.memo") : 60115, R = d ? Symbol.for("react.lazy") : 60116, F = typeof Symbol == "function" && Symbol.iterator; + var k = f(5228), d = typeof Symbol == "function" && Symbol.for, C = d ? Symbol.for("react.element") : 60103, m = d ? Symbol.for("react.portal") : 60106, y = d ? Symbol.for("react.fragment") : 60107, v = d ? Symbol.for("react.strict_mode") : 60108, N = d ? Symbol.for("react.profiler") : 60114, I = d ? Symbol.for("react.provider") : 60109, D = d ? Symbol.for("react.context") : 60110, L = d ? Symbol.for("react.forward_ref") : 60112, se = d ? Symbol.for("react.suspense") : 60113, ee = d ? Symbol.for("react.memo") : 60115, R = d ? Symbol.for("react.lazy") : 60116, F = typeof Symbol == "function" && Symbol.iterator; function H(P) { for (var te = "https://reactjs.org/docs/error-decoder.html?invariant=" + P, we = 1; we < arguments.length; we++) te += "&args[]=" + encodeURIComponent(arguments[we]); return "Minified React error #" + P + "; visit " + te + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; @@ -6942,7 +6945,7 @@ ${D}`).join(` if (P === null) throw Error(H(321)); return P; } - var ye = { ReactCurrentDispatcher: Ke, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: j, IsSomeRendererActing: { current: !1 }, assign: k }; + var be = { ReactCurrentDispatcher: Ke, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: j, IsSomeRendererActing: { current: !1 }, assign: k }; u.Children = { map: function(P, te, we) { if (P == null) return P; var Se = []; @@ -6962,7 +6965,7 @@ ${D}`).join(` }, only: function(P) { if (!Ee(P)) throw Error(H(143)); return P; - } }, u.Component = oe, u.Fragment = b, u.Profiler = N, u.PureComponent = ge, u.StrictMode = v, u.Suspense = se, u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, u.cloneElement = function(P, te, we) { + } }, u.Component = oe, u.Fragment = y, u.Profiler = N, u.PureComponent = ge, u.StrictMode = v, u.Suspense = se, u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = be, u.cloneElement = function(P, te, we) { if (P == null) throw Error(H(267, P)); var Se = k({}, P.props), Pe = P.key, _e = P.ref, lt = P._owner; if (te != null) { @@ -7013,12 +7016,12 @@ ${D}`).join(` }, 5323: (i, u, f) => { u.A = void 0; const k = f(42), d = f(1099), C = Symbol("root"); - u.A = function(m, b, v, N = {}) { + u.A = function(m, y, v, N = {}) { const I = typeof v == "string" ? v : " ".repeat(v || 0), D = [], L = /* @__PURE__ */ new Set(), se = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Map(); let R = 0; const { maxDepth: F = 100, references: H = !1, skipUndefinedProperties: ne = !1, maxValues: pe = 1e5 } = N, oe = (function(j) { return j ? (A, ae, Z, Ee) => j(A, ae, (J) => k.toString(J, ae, Z, Ee), Ee) : k.toString; - })(b), fe = (j, A) => { + })(y), fe = (j, A) => { if (++R > pe || ne && j === void 0 || D.length > F) return; if (A === void 0) return oe(j, I, fe, A); D.push(A); @@ -7078,7 +7081,7 @@ ${D}`).join(` ke && (ke.get || ke.set) ? Object.defineProperty(G, me, ke) : G[me] = J[me]; } return G.default = J, U && U.set(J, G), G; - })(f(6540)), d = L(f(5556)), C = L(f(961)), m = L(f(6942)), b = f(1089), v = f(1726), N = f(7056), I = L(f(6888)), D = L(f(8696)); + })(f(6540)), d = L(f(5556)), C = L(f(961)), m = L(f(6942)), y = f(1089), v = f(1726), N = f(7056), I = L(f(6888)), D = L(f(8696)); function L(J) { return J && J.__esModule ? J : { default: J }; } @@ -7244,8 +7247,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (me.props.bounds) { var Le = Ae.x, Ke = Ae.y; Ae.x += me.state.slackX, Ae.y += me.state.slackY; - var Je = H((0, v.getBoundPosition)(A(me), Ae.x, Ae.y), 2), ye = Je[0], P = Je[1]; - Ae.x = ye, Ae.y = P, Ae.slackX = me.state.slackX + (Le - Ae.x), Ae.slackY = me.state.slackY + (Ke - Ae.y), Ue.x = Ae.x, Ue.y = Ae.y, Ue.deltaX = Ae.x - me.state.x, Ue.deltaY = Ae.y - me.state.y; + var Je = H((0, v.getBoundPosition)(A(me), Ae.x, Ae.y), 2), be = Je[0], P = Je[1]; + Ae.x = be, Ae.y = P, Ae.slackX = me.state.slackX + (Le - Ae.x), Ae.slackY = me.state.slackY + (Ke - Ae.y), Ue.x = Ae.x, Ue.y = Ae.y, Ue.deltaX = Ae.x - me.state.x, Ue.deltaY = Ae.y - me.state.y; } if (me.props.onDrag(ke, Ue) === !1) return !1; me.setState(Ae); @@ -7270,10 +7273,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, { key: "findDOMNode", value: function() { return this.props.nodeRef ? this.props.nodeRef.current : C.default.findDOMNode(this); } }, { key: "render", value: function() { - var le, me = this.props, ke = (me.axis, me.bounds, me.children), Ne = me.defaultPosition, Ue = me.defaultClassName, Ae = me.defaultClassNameDragging, Le = me.defaultClassNameDragged, Ke = me.position, Je = me.positionOffset, ye = (me.scale, F(me, ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"])), P = {}, te = null, we = !Ke || this.state.dragging, Se = Ke || Ne, Pe = { x: (0, v.canDragX)(this) && we ? this.state.x : Se.x, y: (0, v.canDragY)(this) && we ? this.state.y : Se.y }; - this.state.isElementSVG ? te = (0, b.createSVGTransform)(Pe, Je) : P = (0, b.createCSSTransform)(Pe, Je); + var le, me = this.props, ke = (me.axis, me.bounds, me.children), Ne = me.defaultPosition, Ue = me.defaultClassName, Ae = me.defaultClassNameDragging, Le = me.defaultClassNameDragged, Ke = me.position, Je = me.positionOffset, be = (me.scale, F(me, ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"])), P = {}, te = null, we = !Ke || this.state.dragging, Se = Ke || Ne, Pe = { x: (0, v.canDragX)(this) && we ? this.state.x : Se.x, y: (0, v.canDragY)(this) && we ? this.state.y : Se.y }; + this.state.isElementSVG ? te = (0, y.createSVGTransform)(Pe, Je) : P = (0, y.createCSSTransform)(Pe, Je); var _e = (0, m.default)(ke.props.className || "", Ue, (Z(le = {}, Ae, this.state.dragging), Z(le, Le, this.state.dragged), le)); - return k.createElement(I.default, R({}, ye, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), k.cloneElement(k.Children.only(ke), { className: _e, style: oe(oe({}, ke.props.style), P), transform: te })); + return k.createElement(I.default, R({}, be, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), k.cloneElement(k.Children.only(ke), { className: _e, style: oe(oe({}, ke.props.style), P), transform: te })); } }]), G; })(k.Component); u.default = Ee, Z(Ee, "displayName", "Draggable"), Z(Ee, "propTypes", oe(oe({}, I.default.propTypes), {}, { axis: d.default.oneOf(["both", "x", "y", "none"]), bounds: d.default.oneOfType([d.default.shape({ left: d.default.number, right: d.default.number, top: d.default.number, bottom: d.default.number }), d.default.string, d.default.oneOf([!1])]), defaultClassName: d.default.string, defaultClassNameDragging: d.default.string, defaultClassNameDragged: d.default.string, defaultPosition: d.default.shape({ x: d.default.number, y: d.default.number }), positionOffset: d.default.shape({ x: d.default.oneOfType([d.default.number, d.default.string]), y: d.default.oneOfType([d.default.number, d.default.string]) }), position: d.default.shape({ x: d.default.number, y: d.default.number }), className: N.dontSetMe, style: N.dontSetMe, transform: N.dontSetMe })), Z(Ee, "defaultProps", oe(oe({}, I.default.defaultProps), {}, { axis: "both", bounds: !1, defaultClassName: "react-draggable", defaultClassNameDragging: "react-draggable-dragging", defaultClassNameDragged: "react-draggable-dragged", defaultPosition: { x: 0, y: 0 }, position: null, scale: 1 })); @@ -7288,8 +7291,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, f.i = function(k, d, C) { typeof k == "string" && (k = [[null, k, ""]]); var m = {}; - if (C) for (var b = 0; b < this.length; b++) { - var v = this[b][0]; + if (C) for (var y = 0; y < this.length; y++) { + var v = this[y][0]; v != null && (m[v] = !0); } for (var N = 0; N < k.length; N++) { @@ -7327,11 +7330,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; }, 6462: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.resetState = function() { - b && (b.removeAttribute ? b.removeAttribute("aria-hidden") : b.length != null ? b.forEach(function(I) { + y && (y.removeAttribute ? y.removeAttribute("aria-hidden") : y.length != null ? y.forEach(function(I) { return I.removeAttribute("aria-hidden"); - }) : document.querySelectorAll(b).forEach(function(I) { + }) : document.querySelectorAll(y).forEach(function(I) { return I.removeAttribute("aria-hidden"); - })), b = null; + })), y = null; }, u.log = function() { }, u.assertNodeList = v, u.setElement = function(I) { var D = I; @@ -7339,7 +7342,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var L = document.querySelectorAll(D); v(L, D), D = L; } - return b = D || b; + return y = D || y; }, u.validateElement = N, u.hide = function(I) { var D = !0, L = !1, se = void 0; try { @@ -7369,14 +7372,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }, u.documentNotReadyOrSSRTesting = function() { - b = null; + y = null; }; - var k, d = f(9771), C = (k = d) && k.__esModule ? k : { default: k }, m = f(834), b = null; + var k, d = f(9771), C = (k = d) && k.__esModule ? k : { default: k }, m = f(834), y = null; function v(I, D) { if (!I || !I.length) throw new Error("react-modal: No elements were found for selector " + D + "."); } function N(I) { - var D = I || b; + var D = I || y; return D ? Array.isArray(D) || D instanceof HTMLCollection || D instanceof NodeList ? D : [D] : ((0, C.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []); } }, 6540: (i, u, f) => { @@ -7399,7 +7402,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho U && (U.get || U.set) ? Object.defineProperty(Z, J, U) : Z[J] = A[J]; } return Z.default = A, ae && ae.set(A, Z), Z; - })(f(6540)), d = I(f(5556)), C = I(f(961)), m = f(1089), b = f(1726), v = f(7056), N = I(f(8696)); + })(f(6540)), d = I(f(5556)), C = I(f(961)), m = f(1089), y = f(1726), v = f(7056), N = I(f(8696)); function I(A) { return A && A.__esModule ? A : { default: A }; } @@ -7519,23 +7522,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ke.type === "touchstart" && ke.preventDefault(); var Ae = (0, m.getTouchIdentifier)(ke); U.setState({ touchIdentifier: Ae }); - var Le = (0, b.getControlPosition)(ke, Ae, ne(U)); + var Le = (0, y.getControlPosition)(ke, Ae, ne(U)); if (Le != null) { - var Ke = Le.x, Je = Le.y, ye = (0, b.createCoreData)(ne(U), Ke, Je); - (0, N.default)("DraggableCore: handleDragStart: %j", ye), (0, N.default)("calling", U.props.onStart), U.props.onStart(ke, ye) !== !1 && U.mounted !== !1 && (U.props.enableUserSelectHack && (0, m.addUserSelectStyles)(Ue), U.setState({ dragging: !0, lastX: Ke, lastY: Je }), (0, m.addEvent)(Ue, S.move, U.handleDrag), (0, m.addEvent)(Ue, S.stop, U.handleDragStop)); + var Ke = Le.x, Je = Le.y, be = (0, y.createCoreData)(ne(U), Ke, Je); + (0, N.default)("DraggableCore: handleDragStart: %j", be), (0, N.default)("calling", U.props.onStart), U.props.onStart(ke, be) !== !1 && U.mounted !== !1 && (U.props.enableUserSelectHack && (0, m.addUserSelectStyles)(Ue), U.setState({ dragging: !0, lastX: Ke, lastY: Je }), (0, m.addEvent)(Ue, S.move, U.handleDrag), (0, m.addEvent)(Ue, S.stop, U.handleDragStop)); } } }), oe(ne(U), "handleDrag", function(ke) { - var Ne = (0, b.getControlPosition)(ke, U.state.touchIdentifier, ne(U)); + var Ne = (0, y.getControlPosition)(ke, U.state.touchIdentifier, ne(U)); if (Ne != null) { var Ue = Ne.x, Ae = Ne.y; if (Array.isArray(U.props.grid)) { - var Le = Ue - U.state.lastX, Ke = Ae - U.state.lastY, Je = se((0, b.snapToGrid)(U.props.grid, Le, Ke), 2); + var Le = Ue - U.state.lastX, Ke = Ae - U.state.lastY, Je = se((0, y.snapToGrid)(U.props.grid, Le, Ke), 2); if (Le = Je[0], Ke = Je[1], !Le && !Ke) return; Ue = U.state.lastX + Le, Ae = U.state.lastY + Ke; } - var ye = (0, b.createCoreData)(ne(U), Ue, Ae); - if ((0, N.default)("DraggableCore: handleDrag: %j", ye), U.props.onDrag(ke, ye) !== !1 && U.mounted !== !1) U.setState({ lastX: Ue, lastY: Ae }); + var be = (0, y.createCoreData)(ne(U), Ue, Ae); + if ((0, N.default)("DraggableCore: handleDrag: %j", be), U.props.onDrag(ke, be) !== !1 && U.mounted !== !1) U.setState({ lastX: Ue, lastY: Ae }); else try { U.handleDragStop(new MouseEvent("mouseup")); } catch { @@ -7545,9 +7548,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }), oe(ne(U), "handleDragStop", function(ke) { if (U.state.dragging) { - var Ne = (0, b.getControlPosition)(ke, U.state.touchIdentifier, ne(U)); + var Ne = (0, y.getControlPosition)(ke, U.state.touchIdentifier, ne(U)); if (Ne != null) { - var Ue = Ne.x, Ae = Ne.y, Le = (0, b.createCoreData)(ne(U), Ue, Ae); + var Ue = Ne.x, Ae = Ne.y, Le = (0, y.createCoreData)(ne(U), Ue, Ae); if (U.props.onStop(ke, Le) === !1 || U.mounted === !1) return !1; var Ke = U.findDOMNode(); Ke && U.props.enableUserSelectHack && (0, m.removeUserSelectStyles)(Ke.ownerDocument), (0, N.default)("DraggableCore: handleDragStop: %j", Le), U.setState({ dragging: !1, lastX: NaN, lastY: NaN }), Ke && ((0, N.default)("DraggableCore: Removing handlers"), (0, m.removeEvent)(Ke.ownerDocument, S.move, U.handleDrag), (0, m.removeEvent)(Ke.ownerDocument, S.stop, U.handleDragStop)); @@ -7594,23 +7597,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho (function() { var k = {}.hasOwnProperty; function d() { - for (var b = "", v = 0; v < arguments.length; v++) { + for (var y = "", v = 0; v < arguments.length; v++) { var N = arguments[v]; - N && (b = m(b, C(N))); + N && (y = m(y, C(N))); } - return b; + return y; } - function C(b) { - if (typeof b == "string" || typeof b == "number") return b; - if (typeof b != "object") return ""; - if (Array.isArray(b)) return d.apply(null, b); - if (b.toString !== Object.prototype.toString && !b.toString.toString().includes("[native code]")) return b.toString(); + function C(y) { + if (typeof y == "string" || typeof y == "number") return y; + if (typeof y != "object") return ""; + if (Array.isArray(y)) return d.apply(null, y); + if (y.toString !== Object.prototype.toString && !y.toString.toString().includes("[native code]")) return y.toString(); var v = ""; - for (var N in b) k.call(b, N) && b[N] && (v = m(v, N)); + for (var N in y) k.call(y, N) && y[N] && (v = m(v, N)); return v; } - function m(b, v) { - return v ? b ? b + " " + v : b + v : b; + function m(y, v) { + return v ? y ? y + " " + v : y + v : y; } i.exports ? (d.default = d, i.exports = d) : (f = (function() { return d; @@ -7634,11 +7637,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (f[k]) return new Error("Invalid prop ".concat(k, " passed to ").concat(d, " - do not set this, set it on the child.")); }; }, 7067: (i, u, f) => { - Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function(b, v) { - var N = (0, C.default)(b); + Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function(y, v) { + var N = (0, C.default)(y); if (!N.length) return void v.preventDefault(); var I = void 0, D = v.shiftKey, L = N[0], se = N[N.length - 1], ee = m(); - if (b === ee) { + if (y === ee) { if (!D) return; I = se; } @@ -7652,8 +7655,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; var k, d = f(2411), C = (k = d) && k.__esModule ? k : { default: k }; function m() { - var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document; - return b.activeElement.shadowRoot ? m(b.activeElement.shadowRoot) : b.activeElement; + var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document; + return y.activeElement.shadowRoot ? m(y.activeElement.shadowRoot) : y.activeElement; } i.exports = u.default; }, 7195: (i, u, f) => { @@ -7673,20 +7676,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, 7463: (i, u) => { var f, k, d, C, m; if (typeof window > "u" || typeof MessageChannel != "function") { - var b = null, v = null, N = function() { - if (b !== null) try { - var ye = u.unstable_now(); - b(!0, ye), b = null; + var y = null, v = null, N = function() { + if (y !== null) try { + var be = u.unstable_now(); + y(!0, be), y = null; } catch (P) { throw setTimeout(N, 0), P; } }, I = Date.now(); u.unstable_now = function() { return Date.now() - I; - }, f = function(ye) { - b !== null ? setTimeout(f, 0, ye) : (b = ye, setTimeout(N, 0)); - }, k = function(ye, P) { - v = setTimeout(ye, P); + }, f = function(be) { + y !== null ? setTimeout(f, 0, be) : (y = be, setTimeout(N, 0)); + }, k = function(be, P) { + v = setTimeout(be, P); }, d = function() { clearTimeout(v); }, C = function() { @@ -7712,54 +7715,54 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho C = function() { return u.unstable_now() >= fe; }, m = function() { - }, u.unstable_forceFrameRate = function(ye) { - 0 > ye || 125 < ye ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported") : oe = 0 < ye ? Math.floor(1e3 / ye) : 5; + }, u.unstable_forceFrameRate = function(be) { + 0 > be || 125 < be ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported") : oe = 0 < be ? Math.floor(1e3 / be) : 5; }; var ge = new MessageChannel(), S = ge.port2; ge.port1.onmessage = function() { if (ne !== null) { - var ye = u.unstable_now(); - fe = ye + oe; + var be = u.unstable_now(); + fe = be + oe; try { - ne(!0, ye) ? S.postMessage(null) : (H = !1, ne = null); + ne(!0, be) ? S.postMessage(null) : (H = !1, ne = null); } catch (P) { throw S.postMessage(null), P; } } else H = !1; - }, f = function(ye) { - ne = ye, H || (H = !0, S.postMessage(null)); - }, k = function(ye, P) { + }, f = function(be) { + ne = be, H || (H = !0, S.postMessage(null)); + }, k = function(be, P) { pe = se(function() { - ye(u.unstable_now()); + be(u.unstable_now()); }, P); }, d = function() { ee(pe), pe = -1; }; } - function j(ye, P) { - var te = ye.length; - ye.push(P); + function j(be, P) { + var te = be.length; + be.push(P); e: for (; ; ) { - var we = te - 1 >>> 1, Se = ye[we]; + var we = te - 1 >>> 1, Se = be[we]; if (!(Se !== void 0 && 0 < Z(Se, P))) break e; - ye[we] = P, ye[te] = Se, te = we; + be[we] = P, be[te] = Se, te = we; } } - function A(ye) { - return (ye = ye[0]) === void 0 ? null : ye; + function A(be) { + return (be = be[0]) === void 0 ? null : be; } - function ae(ye) { - var P = ye[0]; + function ae(be) { + var P = be[0]; if (P !== void 0) { - var te = ye.pop(); + var te = be.pop(); if (te !== P) { - ye[0] = te; - e: for (var we = 0, Se = ye.length; we < Se; ) { - var Pe = 2 * (we + 1) - 1, _e = ye[Pe], lt = Pe + 1, Qe = ye[lt]; - if (_e !== void 0 && 0 > Z(_e, te)) Qe !== void 0 && 0 > Z(Qe, _e) ? (ye[we] = Qe, ye[lt] = te, we = lt) : (ye[we] = _e, ye[Pe] = te, we = Pe); + be[0] = te; + e: for (var we = 0, Se = be.length; we < Se; ) { + var Pe = 2 * (we + 1) - 1, _e = be[Pe], lt = Pe + 1, Qe = be[lt]; + if (_e !== void 0 && 0 > Z(_e, te)) Qe !== void 0 && 0 > Z(Qe, _e) ? (be[we] = Qe, be[lt] = te, we = lt) : (be[we] = _e, be[Pe] = te, we = Pe); else { if (!(Qe !== void 0 && 0 > Z(Qe, te))) break e; - ye[we] = Qe, ye[lt] = te, we = lt; + be[we] = Qe, be[lt] = te, we = lt; } } } @@ -7767,33 +7770,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return null; } - function Z(ye, P) { - var te = ye.sortIndex - P.sortIndex; - return te !== 0 ? te : ye.id - P.id; + function Z(be, P) { + var te = be.sortIndex - P.sortIndex; + return te !== 0 ? te : be.id - P.id; } var Ee = [], J = [], U = 1, G = null, le = 3, me = !1, ke = !1, Ne = !1; - function Ue(ye) { + function Ue(be) { for (var P = A(J); P !== null; ) { if (P.callback === null) ae(J); else { - if (!(P.startTime <= ye)) break; + if (!(P.startTime <= be)) break; ae(J), P.sortIndex = P.expirationTime, j(Ee, P); } P = A(J); } } - function Ae(ye) { - if (Ne = !1, Ue(ye), !ke) if (A(Ee) !== null) ke = !0, f(Le); + function Ae(be) { + if (Ne = !1, Ue(be), !ke) if (A(Ee) !== null) ke = !0, f(Le); else { var P = A(J); - P !== null && k(Ae, P.startTime - ye); + P !== null && k(Ae, P.startTime - be); } } - function Le(ye, P) { + function Le(be, P) { ke = !1, Ne && (Ne = !1, d()), me = !0; var te = le; try { - for (Ue(P), G = A(Ee); G !== null && (!(G.expirationTime > P) || ye && !C()); ) { + for (Ue(P), G = A(Ee); G !== null && (!(G.expirationTime > P) || be && !C()); ) { var we = G.callback; if (we !== null) { G.callback = null, le = G.priorityLevel; @@ -7812,8 +7815,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho G = null, le = te, me = !1; } } - function Ke(ye) { - switch (ye) { + function Ke(be) { + switch (be) { case 1: return -1; case 2: @@ -7827,15 +7830,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } var Je = m; - u.unstable_IdlePriority = 5, u.unstable_ImmediatePriority = 1, u.unstable_LowPriority = 4, u.unstable_NormalPriority = 3, u.unstable_Profiling = null, u.unstable_UserBlockingPriority = 2, u.unstable_cancelCallback = function(ye) { - ye.callback = null; + u.unstable_IdlePriority = 5, u.unstable_ImmediatePriority = 1, u.unstable_LowPriority = 4, u.unstable_NormalPriority = 3, u.unstable_Profiling = null, u.unstable_UserBlockingPriority = 2, u.unstable_cancelCallback = function(be) { + be.callback = null; }, u.unstable_continueExecution = function() { ke || me || (ke = !0, f(Le)); }, u.unstable_getCurrentPriorityLevel = function() { return le; }, u.unstable_getFirstCallbackNode = function() { return A(Ee); - }, u.unstable_next = function(ye) { + }, u.unstable_next = function(be) { switch (le) { case 1: case 2: @@ -7848,13 +7851,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var te = le; le = P; try { - return ye(); + return be(); } finally { le = te; } }, u.unstable_pauseExecution = function() { - }, u.unstable_requestPaint = Je, u.unstable_runWithPriority = function(ye, P) { - switch (ye) { + }, u.unstable_requestPaint = Je, u.unstable_runWithPriority = function(be, P) { + switch (be) { case 1: case 2: case 3: @@ -7862,34 +7865,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho case 5: break; default: - ye = 3; + be = 3; } var te = le; - le = ye; + le = be; try { return P(); } finally { le = te; } - }, u.unstable_scheduleCallback = function(ye, P, te) { + }, u.unstable_scheduleCallback = function(be, P, te) { var we = u.unstable_now(); if (typeof te == "object" && te !== null) { var Se = te.delay; - Se = typeof Se == "number" && 0 < Se ? we + Se : we, te = typeof te.timeout == "number" ? te.timeout : Ke(ye); - } else te = Ke(ye), Se = we; - return ye = { id: U++, callback: P, priorityLevel: ye, startTime: Se, expirationTime: te = Se + te, sortIndex: -1 }, Se > we ? (ye.sortIndex = Se, j(J, ye), A(Ee) === null && ye === A(J) && (Ne ? d() : Ne = !0, k(Ae, Se - we))) : (ye.sortIndex = te, j(Ee, ye), ke || me || (ke = !0, f(Le))), ye; + Se = typeof Se == "number" && 0 < Se ? we + Se : we, te = typeof te.timeout == "number" ? te.timeout : Ke(be); + } else te = Ke(be), Se = we; + return be = { id: U++, callback: P, priorityLevel: be, startTime: Se, expirationTime: te = Se + te, sortIndex: -1 }, Se > we ? (be.sortIndex = Se, j(J, be), A(Ee) === null && be === A(J) && (Ne ? d() : Ne = !0, k(Ae, Se - we))) : (be.sortIndex = te, j(Ee, be), ke || me || (ke = !0, f(Le))), be; }, u.unstable_shouldYield = function() { - var ye = u.unstable_now(); - Ue(ye); + var be = u.unstable_now(); + Ue(be); var P = A(Ee); - return P !== G && G !== null && P !== null && P.callback !== null && P.startTime <= ye && P.expirationTime < G.expirationTime || C(); - }, u.unstable_wrapCallback = function(ye) { + return P !== G && G !== null && P !== null && P.callback !== null && P.startTime <= be && P.expirationTime < G.expirationTime || C(); + }, u.unstable_wrapCallback = function(be) { var P = le; return function() { var te = le; le = P; try { - return ye.apply(this, arguments); + return be.apply(this, arguments); } finally { le = te; } @@ -7897,25 +7900,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; }, 7727: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.resetState = function() { - for (var I = [m, b], D = 0; D < I.length; D++) { + for (var I = [m, y], D = 0; D < I.length; D++) { var L = I[D]; L && L.parentNode && L.parentNode.removeChild(L); } - m = b = null, v = []; + m = y = null, v = []; }, u.log = function() { console.log("bodyTrap ----------"), console.log(v.length); - for (var I = [m, b], D = 0; D < I.length; D++) { + for (var I = [m, y], D = 0; D < I.length; D++) { var L = I[D] || {}; console.log(L.nodeName, L.className, L.id); } console.log("edn bodyTrap ----------"); }; - var k, d = f(9628), C = (k = d) && k.__esModule ? k : { default: k }, m = void 0, b = void 0, v = []; + var k, d = f(9628), C = (k = d) && k.__esModule ? k : { default: k }, m = void 0, y = void 0, v = []; function N() { v.length !== 0 && v[v.length - 1].focusContent(); } C.default.subscribe(function(I, D) { - m || b || ((m = document.createElement("div")).setAttribute("data-react-modal-body-trap", ""), m.style.position = "absolute", m.style.opacity = "0", m.setAttribute("tabindex", "0"), m.addEventListener("focus", N), (b = m.cloneNode()).addEventListener("focus", N)), (v = D).length > 0 ? (document.body.firstChild !== m && document.body.insertBefore(m, document.body.firstChild), document.body.lastChild !== b && document.body.appendChild(b)) : (m.parentElement && m.parentElement.removeChild(m), b.parentElement && b.parentElement.removeChild(b)); + m || y || ((m = document.createElement("div")).setAttribute("data-react-modal-body-trap", ""), m.style.position = "absolute", m.style.opacity = "0", m.setAttribute("tabindex", "0"), m.addEventListener("focus", N), (y = m.cloneNode()).addEventListener("focus", N)), (v = D).length > 0 ? (document.body.firstChild !== m && document.body.insertBefore(m, document.body.firstChild), document.body.lastChild !== y && document.body.appendChild(y)) : (m.parentElement && m.parentElement.removeChild(m), y.parentElement && y.parentElement.removeChild(y)); }); }, 7785: (i, u, f) => { var k = f(5072), d = f(2444); @@ -7938,19 +7941,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, u.popWithoutFocus = function() { m.length > 0 && m.pop(); }, u.setupScopedFocus = function(D) { - b = D, window.addEventListener ? (window.addEventListener("blur", N, !1), document.addEventListener("focus", I, !0)) : (window.attachEvent("onBlur", N), document.attachEvent("onFocus", I)); + y = D, window.addEventListener ? (window.addEventListener("blur", N, !1), document.addEventListener("focus", I, !0)) : (window.attachEvent("onBlur", N), document.attachEvent("onFocus", I)); }, u.teardownScopedFocus = function() { - b = null, window.addEventListener ? (window.removeEventListener("blur", N), document.removeEventListener("focus", I)) : (window.detachEvent("onBlur", N), document.detachEvent("onFocus", I)); + y = null, window.addEventListener ? (window.removeEventListener("blur", N), document.removeEventListener("focus", I)) : (window.detachEvent("onBlur", N), document.detachEvent("onFocus", I)); }; - var k, d = f(2411), C = (k = d) && k.__esModule ? k : { default: k }, m = [], b = null, v = !1; + var k, d = f(2411), C = (k = d) && k.__esModule ? k : { default: k }, m = [], y = null, v = !1; function N() { v = !0; } function I() { if (v) { - if (v = !1, !b) return; + if (v = !1, !y) return; setTimeout(function() { - b.contains(document.activeElement) || ((0, C.default)(b)[0] || b).focus(); + y.contains(document.activeElement) || ((0, C.default)(y)[0] || y).focus(); }, 0); } } @@ -7960,10 +7963,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho u.objectToString = (v, N, I, D) => { if (typeof Buffer == "function" && Buffer.isBuffer(v)) return `Buffer.from(${I(v.toString("base64"))}, 'base64')`; if (typeof f.g == "object" && v === f.g) return m(v, N, I); - const L = b[Object.prototype.toString.call(v)]; + const L = y[Object.prototype.toString.call(v)]; return L ? L(v, N, I, D) : void 0; }; - const m = (v, N, I) => `Function(${I("return this")})()`, b = { "[object Array]": C.arrayToString, "[object Object]": (v, N, I, D) => { + const m = (v, N, I) => `Function(${I("return this")})()`, y = { "[object Array]": C.arrayToString, "[object Object]": (v, N, I, D) => { const L = N ? ` ` : "", se = N ? " " : "", ee = Object.keys(v).reduce(function(R, F) { const H = v[F], ne = I(H, F); @@ -7978,12 +7981,12 @@ ${N}`); }, 7965: (i, u, f) => { var k = f(6426), d = { "text/plain": "Text", "text/html": "Url", default: "Text" }; i.exports = function(C, m) { - var b, v, N, I, D, L, se = !1; - m || (m = {}), b = m.debug || !1; + var y, v, N, I, D, L, se = !1; + m || (m = {}), y = m.debug || !1; try { if (N = k(), I = document.createRange(), D = document.getSelection(), (L = document.createElement("span")).textContent = C, L.ariaHidden = "true", L.style.all = "unset", L.style.position = "fixed", L.style.top = 0, L.style.clip = "rect(0, 0, 0, 0)", L.style.whiteSpace = "pre", L.style.webkitUserSelect = "text", L.style.MozUserSelect = "text", L.style.msUserSelect = "text", L.style.userSelect = "text", L.addEventListener("copy", function(ee) { if (ee.stopPropagation(), m.format) if (ee.preventDefault(), ee.clipboardData === void 0) { - b && console.warn("unable to use e.clipboardData"), b && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); + y && console.warn("unable to use e.clipboardData"), y && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); var R = d[m.format] || d.default; window.clipboardData.setData(R, C); } else ee.clipboardData.clearData(), ee.clipboardData.setData(m.format, C); @@ -7991,11 +7994,11 @@ ${N}`); }), document.body.appendChild(L), I.selectNodeContents(L), D.addRange(I), !document.execCommand("copy")) throw new Error("copy command was unsuccessful"); se = !0; } catch (ee) { - b && console.error("unable to copy using execCommand: ", ee), b && console.warn("trying IE specific stuff"); + y && console.error("unable to copy using execCommand: ", ee), y && console.warn("trying IE specific stuff"); try { window.clipboardData.setData(m.format || "text", C), m.onCopy && m.onCopy(window.clipboardData), se = !0; } catch (R) { - b && console.error("unable to copy using clipboardData: ", R), b && console.error("falling back to prompt"), v = (function(F) { + y && console.error("unable to copy using clipboardData: ", R), y && console.error("falling back to prompt"), v = (function(F) { var H = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C"; return F.replace(/#{\s*key\s*}/g, H); })("message" in m ? m.message : "Copy to clipboard: #{key}, Enter"), window.prompt(v, C); @@ -8007,8 +8010,8 @@ ${N}`); }; }, 8142: (i, u, f) => { i = f.nmd(i); - var k = "__lodash_hash_undefined__", d = 9007199254740991, C = "[object Arguments]", m = "[object Array]", b = "[object Boolean]", v = "[object Date]", N = "[object Error]", I = "[object Function]", D = "[object Map]", L = "[object Number]", se = "[object Object]", ee = "[object Promise]", R = "[object RegExp]", F = "[object Set]", H = "[object String]", ne = "[object Symbol]", pe = "[object WeakMap]", oe = "[object ArrayBuffer]", fe = "[object DataView]", ge = /^\[object .+?Constructor\]$/, S = /^(?:0|[1-9]\d*)$/, j = {}; - j["[object Float32Array]"] = j["[object Float64Array]"] = j["[object Int8Array]"] = j["[object Int16Array]"] = j["[object Int32Array]"] = j["[object Uint8Array]"] = j["[object Uint8ClampedArray]"] = j["[object Uint16Array]"] = j["[object Uint32Array]"] = !0, j[C] = j[m] = j[oe] = j[b] = j[fe] = j[v] = j[N] = j[I] = j[D] = j[L] = j[se] = j[R] = j[F] = j[H] = j[pe] = !1; + var k = "__lodash_hash_undefined__", d = 9007199254740991, C = "[object Arguments]", m = "[object Array]", y = "[object Boolean]", v = "[object Date]", N = "[object Error]", I = "[object Function]", D = "[object Map]", L = "[object Number]", se = "[object Object]", ee = "[object Promise]", R = "[object RegExp]", F = "[object Set]", H = "[object String]", ne = "[object Symbol]", pe = "[object WeakMap]", oe = "[object ArrayBuffer]", fe = "[object DataView]", ge = /^\[object .+?Constructor\]$/, S = /^(?:0|[1-9]\d*)$/, j = {}; + j["[object Float32Array]"] = j["[object Float64Array]"] = j["[object Int8Array]"] = j["[object Int16Array]"] = j["[object Int32Array]"] = j["[object Uint8Array]"] = j["[object Uint8ClampedArray]"] = j["[object Uint16Array]"] = j["[object Uint32Array]"] = !0, j[C] = j[m] = j[oe] = j[y] = j[fe] = j[v] = j[N] = j[I] = j[D] = j[L] = j[se] = j[R] = j[F] = j[H] = j[pe] = !1; var A = typeof f.g == "object" && f.g && f.g.Object === Object && f.g, ae = typeof self == "object" && self && self.Object === Object && self, Z = A || ae || Function("return this")(), Ee = u && !u.nodeType && u, J = Ee && i && !i.nodeType && i, U = J && J.exports === Ee, G = U && A.process, le = (function() { try { return G && G.binding && G.binding("util"); @@ -8016,75 +8019,75 @@ ${N}`); } })(), me = le && le.isTypedArray; function ke(M, Q) { - for (var be = -1, De = M == null ? 0 : M.length; ++be < De; ) if (Q(M[be], be, M)) return !0; + for (var ye = -1, De = M == null ? 0 : M.length; ++ye < De; ) if (Q(M[ye], ye, M)) return !0; return !1; } function Ne(M) { - var Q = -1, be = Array(M.size); + var Q = -1, ye = Array(M.size); return M.forEach(function(De, tt) { - be[++Q] = [tt, De]; - }), be; + ye[++Q] = [tt, De]; + }), ye; } function Ue(M) { - var Q = -1, be = Array(M.size); + var Q = -1, ye = Array(M.size); return M.forEach(function(De) { - be[++Q] = De; - }), be; + ye[++Q] = De; + }), ye; } - var Ae, Le, Ke, Je = Array.prototype, ye = Function.prototype, P = Object.prototype, te = Z["__core-js_shared__"], we = ye.toString, Se = P.hasOwnProperty, Pe = (Ae = /[^.]+$/.exec(te && te.keys && te.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Ae : "", _e = P.toString, lt = RegExp("^" + we.call(Se).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Qe = U ? Z.Buffer : void 0, et = Z.Symbol, Pt = Z.Uint8Array, ko = P.propertyIsEnumerable, Dt = Je.splice, Gt = et ? et.toStringTag : void 0, On = Object.getOwnPropertySymbols, Nn = Qe ? Qe.isBuffer : void 0, wo = (Le = Object.keys, Ke = Object, function(M) { + var Ae, Le, Ke, Je = Array.prototype, be = Function.prototype, P = Object.prototype, te = Z["__core-js_shared__"], we = be.toString, Se = P.hasOwnProperty, Pe = (Ae = /[^.]+$/.exec(te && te.keys && te.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Ae : "", _e = P.toString, lt = RegExp("^" + we.call(Se).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Qe = U ? Z.Buffer : void 0, et = Z.Symbol, Pt = Z.Uint8Array, ko = P.propertyIsEnumerable, Dt = Je.splice, Gt = et ? et.toStringTag : void 0, On = Object.getOwnPropertySymbols, Nn = Qe ? Qe.isBuffer : void 0, wo = (Le = Object.keys, Ke = Object, function(M) { return Le(Ke(M)); }), $n = In(Z, "DataView"), Bn = In(Z, "Map"), an = In(Z, "Promise"), pn = In(Z, "Set"), sr = In(Z, "WeakMap"), Ht = In(Object, "create"), Wr = mn($n), qr = mn(Bn), _o = mn(an), Eo = mn(pn), xo = mn(sr), Wn = et ? et.prototype : void 0, Kt = Wn ? Wn.valueOf : void 0; function zt(M) { - var Q = -1, be = M == null ? 0 : M.length; - for (this.clear(); ++Q < be; ) { + var Q = -1, ye = M == null ? 0 : M.length; + for (this.clear(); ++Q < ye; ) { var De = M[Q]; this.set(De[0], De[1]); } } function Ye(M) { - var Q = -1, be = M == null ? 0 : M.length; - for (this.clear(); ++Q < be; ) { + var Q = -1, ye = M == null ? 0 : M.length; + for (this.clear(); ++Q < ye; ) { var De = M[Q]; this.set(De[0], De[1]); } } function Pn(M) { - var Q = -1, be = M == null ? 0 : M.length; - for (this.clear(); ++Q < be; ) { + var Q = -1, ye = M == null ? 0 : M.length; + for (this.clear(); ++Q < ye; ) { var De = M[Q]; this.set(De[0], De[1]); } } function qn(M) { - var Q = -1, be = M == null ? 0 : M.length; - for (this.__data__ = new Pn(); ++Q < be; ) this.add(M[Q]); + var Q = -1, ye = M == null ? 0 : M.length; + for (this.__data__ = new Pn(); ++Q < ye; ) this.add(M[Q]); } function sn(M) { var Q = this.__data__ = new Ye(M); this.size = Q.size; } function Kr(M, Q) { - var be = ct(M), De = !be && gn(M), tt = !be && !De && Dr(M), He = !be && !De && !tt && Ir(M), Ge = be || De || tt || He, rt = Ge ? (function(ht, kt) { - for (var jt = -1, yt = Array(ht); ++jt < ht; ) yt[jt] = kt(jt); - return yt; + var ye = ct(M), De = !ye && gn(M), tt = !ye && !De && Dr(M), He = !ye && !De && !tt && Ir(M), Ge = ye || De || tt || He, rt = Ge ? (function(ht, kt) { + for (var jt = -1, bt = Array(ht); ++jt < ht; ) bt[jt] = kt(jt); + return bt; })(M.length, String) : [], At = rt.length; - for (var ft in M) !Se.call(M, ft) || Ge && (ft == "length" || tt && (ft == "offset" || ft == "parent") || He && (ft == "buffer" || ft == "byteLength" || ft == "byteOffset") || bi(ft, At)) || rt.push(ft); + for (var ft in M) !Se.call(M, ft) || Ge && (ft == "length" || tt && (ft == "offset" || ft == "parent") || He && (ft == "buffer" || ft == "byteLength" || ft == "byteOffset") || yi(ft, At)) || rt.push(ft); return rt; } function Or(M, Q) { - for (var be = M.length; be--; ) if (Yr(M[be][0], Q)) return be; + for (var ye = M.length; ye--; ) if (Yr(M[ye][0], Q)) return ye; return -1; } function fn(M) { return M == null ? M === void 0 ? "[object Undefined]" : "[object Null]" : Gt && Gt in Object(M) ? (function(Q) { - var be = Se.call(Q, Gt), De = Q[Gt]; + var ye = Se.call(Q, Gt), De = Q[Gt]; try { Q[Gt] = void 0; var tt = !0; } catch { } var He = _e.call(Q); - return tt && (be ? Q[Gt] = De : delete Q[Gt]), He; + return tt && (ye ? Q[Gt] = De : delete Q[Gt]), He; })(M) : (function(Q) { return _e.call(Q); })(M); @@ -8092,21 +8095,21 @@ ${N}`); function pt(M) { return Rn(M) && fn(M) == C; } - function Qr(M, Q, be, De, tt) { + function Qr(M, Q, ye, De, tt) { return M === Q || (M == null || Q == null || !Rn(M) && !Rn(Q) ? M != M && Q != Q : (function(He, Ge, rt, At, ft, ht) { - var kt = ct(He), jt = ct(Ge), yt = kt ? m : hn(He), bt = jt ? m : hn(Ge), yn = (yt = yt == C ? se : yt) == se, ur = (bt = bt == C ? se : bt) == se, Mn = yt == bt; + var kt = ct(He), jt = ct(Ge), bt = kt ? m : hn(He), yt = jt ? m : hn(Ge), bn = (bt = bt == C ? se : bt) == se, ur = (yt = yt == C ? se : yt) == se, Mn = bt == yt; if (Mn && Dr(He)) { if (!Dr(Ge)) return !1; - kt = !0, yn = !1; + kt = !0, bn = !1; } - if (Mn && !yn) return ht || (ht = new sn()), kt || Ir(He) ? Dn(He, Ge, rt, At, ft, ht) : (function(nt, Ze, Yn, vn, dr, ut, wt) { + if (Mn && !bn) return ht || (ht = new sn()), kt || Ir(He) ? Dn(He, Ge, rt, At, ft, ht) : (function(nt, Ze, Yn, vn, dr, ut, wt) { switch (Yn) { case fe: if (nt.byteLength != Ze.byteLength || nt.byteOffset != Ze.byteOffset) return !1; nt = nt.buffer, Ze = Ze.buffer; case oe: return !(nt.byteLength != Ze.byteLength || !ut(new Pt(nt), new Pt(Ze))); - case b: + case y: case v: case L: return Yr(+nt, +Ze); @@ -8129,11 +8132,11 @@ ${N}`); if (Kt) return Kt.call(nt) == Kt.call(Ze); } return !1; - })(He, Ge, yt, rt, At, ft, ht); + })(He, Ge, bt, rt, At, ft, ht); if (!(1 & rt)) { - var bn = yn && Se.call(He, "__wrapped__"), Xr = ur && Se.call(Ge, "__wrapped__"); - if (bn || Xr) { - var To = bn ? He.value() : He, Oo = Xr ? Ge.value() : Ge; + var yn = bn && Se.call(He, "__wrapped__"), Xr = ur && Se.call(Ge, "__wrapped__"); + if (yn || Xr) { + var To = yn ? He.value() : He, Oo = Xr ? Ge.value() : Ge; return ht || (ht = new sn()), ft(To, Oo, rt, At, ht); } } @@ -8163,7 +8166,7 @@ ${N}`); } return ut.delete(nt), ut.delete(Ze), pr; })(He, Ge, rt, At, ft, ht)) : !1; - })(M, Q, be, De, Qr, tt)); + })(M, Q, ye, De, Qr, tt)); } function So(M) { return !(!Qn(M) || (function(Q) { @@ -8171,34 +8174,34 @@ ${N}`); })(M)) && (Kn(M) ? lt : ge).test(mn(M)); } function Nr(M) { - if (be = (Q = M) && Q.constructor, De = typeof be == "function" && be.prototype || P, Q !== De) return wo(M); - var Q, be, De, tt = []; + if (ye = (Q = M) && Q.constructor, De = typeof ye == "function" && ye.prototype || P, Q !== De) return wo(M); + var Q, ye, De, tt = []; for (var He in Object(M)) Se.call(M, He) && He != "constructor" && tt.push(He); return tt; } - function Dn(M, Q, be, De, tt, He) { - var Ge = 1 & be, rt = M.length, At = Q.length; + function Dn(M, Q, ye, De, tt, He) { + var Ge = 1 & ye, rt = M.length, At = Q.length; if (rt != At && !(Ge && At > rt)) return !1; var ft = He.get(M); if (ft && He.get(Q)) return ft == Q; - var ht = -1, kt = !0, jt = 2 & be ? new qn() : void 0; + var ht = -1, kt = !0, jt = 2 & ye ? new qn() : void 0; for (He.set(M, Q), He.set(Q, M); ++ht < rt; ) { - var yt = M[ht], bt = Q[ht]; - if (De) var yn = Ge ? De(bt, yt, ht, Q, M, He) : De(yt, bt, ht, M, Q, He); - if (yn !== void 0) { - if (yn) continue; + var bt = M[ht], yt = Q[ht]; + if (De) var bn = Ge ? De(yt, bt, ht, Q, M, He) : De(bt, yt, ht, M, Q, He); + if (bn !== void 0) { + if (bn) continue; kt = !1; break; } if (jt) { if (!ke(Q, function(ur, Mn) { - if (bn = Mn, !jt.has(bn) && (yt === ur || tt(yt, ur, be, De, He))) return jt.push(Mn); - var bn; + if (yn = Mn, !jt.has(yn) && (bt === ur || tt(bt, ur, ye, De, He))) return jt.push(Mn); + var yn; })) { kt = !1; break; } - } else if (yt !== bt && !tt(yt, bt, be, De, He)) { + } else if (bt !== yt && !tt(bt, yt, ye, De, He)) { kt = !1; break; } @@ -8206,8 +8209,8 @@ ${N}`); return He.delete(M), He.delete(Q), kt; } function Pr(M) { - return (function(Q, be, De) { - var tt = be(Q); + return (function(Q, ye, De) { + var tt = ye(Q); return ct(Q) ? tt : (function(He, Ge) { for (var rt = -1, At = Ge.length, ft = He.length; ++rt < At; ) He[ft + rt] = Ge[rt]; return He; @@ -8215,14 +8218,14 @@ ${N}`); })(M, Rr, Co); } function lr(M, Q) { - var be, De, tt = M.__data__; - return ((De = typeof (be = Q)) == "string" || De == "number" || De == "symbol" || De == "boolean" ? be !== "__proto__" : be === null) ? tt[typeof Q == "string" ? "string" : "hash"] : tt.map; + var ye, De, tt = M.__data__; + return ((De = typeof (ye = Q)) == "string" || De == "number" || De == "symbol" || De == "boolean" ? ye !== "__proto__" : ye === null) ? tt[typeof Q == "string" ? "string" : "hash"] : tt.map; } function In(M, Q) { - var be = (function(De, tt) { + var ye = (function(De, tt) { return De == null ? void 0 : De[tt]; })(M, Q); - return So(be) ? be : void 0; + return So(ye) ? ye : void 0; } zt.prototype.clear = function() { this.__data__ = Ht ? Ht(null) : {}, this.size = 0; @@ -8232,29 +8235,29 @@ ${N}`); }, zt.prototype.get = function(M) { var Q = this.__data__; if (Ht) { - var be = Q[M]; - return be === k ? void 0 : be; + var ye = Q[M]; + return ye === k ? void 0 : ye; } return Se.call(Q, M) ? Q[M] : void 0; }, zt.prototype.has = function(M) { var Q = this.__data__; return Ht ? Q[M] !== void 0 : Se.call(Q, M); }, zt.prototype.set = function(M, Q) { - var be = this.__data__; - return this.size += this.has(M) ? 0 : 1, be[M] = Ht && Q === void 0 ? k : Q, this; + var ye = this.__data__; + return this.size += this.has(M) ? 0 : 1, ye[M] = Ht && Q === void 0 ? k : Q, this; }, Ye.prototype.clear = function() { this.__data__ = [], this.size = 0; }, Ye.prototype.delete = function(M) { - var Q = this.__data__, be = Or(Q, M); - return !(be < 0) && (be == Q.length - 1 ? Q.pop() : Dt.call(Q, be, 1), --this.size, !0); + var Q = this.__data__, ye = Or(Q, M); + return !(ye < 0) && (ye == Q.length - 1 ? Q.pop() : Dt.call(Q, ye, 1), --this.size, !0); }, Ye.prototype.get = function(M) { - var Q = this.__data__, be = Or(Q, M); - return be < 0 ? void 0 : Q[be][1]; + var Q = this.__data__, ye = Or(Q, M); + return ye < 0 ? void 0 : Q[ye][1]; }, Ye.prototype.has = function(M) { return Or(this.__data__, M) > -1; }, Ye.prototype.set = function(M, Q) { - var be = this.__data__, De = Or(be, M); - return De < 0 ? (++this.size, be.push([M, Q])) : be[De][1] = Q, this; + var ye = this.__data__, De = Or(ye, M); + return De < 0 ? (++this.size, ye.push([M, Q])) : ye[De][1] = Q, this; }, Pn.prototype.clear = function() { this.size = 0, this.__data__ = { hash: new zt(), map: new (Bn || Ye)(), string: new zt() }; }, Pn.prototype.delete = function(M) { @@ -8265,8 +8268,8 @@ ${N}`); }, Pn.prototype.has = function(M) { return lr(this, M).has(M); }, Pn.prototype.set = function(M, Q) { - var be = lr(this, M), De = be.size; - return be.set(M, Q), this.size += be.size == De ? 0 : 1, this; + var ye = lr(this, M), De = ye.size; + return ye.set(M, Q), this.size += ye.size == De ? 0 : 1, this; }, qn.prototype.add = qn.prototype.push = function(M) { return this.__data__.set(M, k), this; }, qn.prototype.has = function(M) { @@ -8274,26 +8277,26 @@ ${N}`); }, sn.prototype.clear = function() { this.__data__ = new Ye(), this.size = 0; }, sn.prototype.delete = function(M) { - var Q = this.__data__, be = Q.delete(M); - return this.size = Q.size, be; + var Q = this.__data__, ye = Q.delete(M); + return this.size = Q.size, ye; }, sn.prototype.get = function(M) { return this.__data__.get(M); }, sn.prototype.has = function(M) { return this.__data__.has(M); }, sn.prototype.set = function(M, Q) { - var be = this.__data__; - if (be instanceof Ye) { - var De = be.__data__; - if (!Bn || De.length < 199) return De.push([M, Q]), this.size = ++be.size, this; - be = this.__data__ = new Pn(De); + var ye = this.__data__; + if (ye instanceof Ye) { + var De = ye.__data__; + if (!Bn || De.length < 199) return De.push([M, Q]), this.size = ++ye.size, this; + ye = this.__data__ = new Pn(De); } - return be.set(M, Q), this.size = be.size, this; + return ye.set(M, Q), this.size = ye.size, this; }; var Co = On ? function(M) { - return M == null ? [] : (M = Object(M), (function(Q, be) { + return M == null ? [] : (M = Object(M), (function(Q, ye) { for (var De = -1, tt = Q == null ? 0 : Q.length, He = 0, Ge = []; ++De < tt; ) { var rt = Q[De]; - be(rt, De, Q) && (Ge[He++] = rt); + ye(rt, De, Q) && (Ge[He++] = rt); } return Ge; })(On(M), function(Q) { @@ -8302,7 +8305,7 @@ ${N}`); } : function() { return []; }, hn = fn; - function bi(M, Q) { + function yi(M, Q) { return !!(Q = Q ?? d) && (typeof M == "number" || S.test(M)) && M > -1 && M % 1 == 0 && M < Q; } function mn(M) { @@ -8322,7 +8325,7 @@ ${N}`); return M === Q || M != M && Q != Q; } ($n && hn(new $n(new ArrayBuffer(1))) != fe || Bn && hn(new Bn()) != D || an && hn(an.resolve()) != ee || pn && hn(new pn()) != F || sr && hn(new sr()) != pe) && (hn = function(M) { - var Q = fn(M), be = Q == se ? M.constructor : void 0, De = be ? mn(be) : ""; + var Q = fn(M), ye = Q == se ? M.constructor : void 0, De = ye ? mn(ye) : ""; if (De) switch (De) { case Wr: return fe; @@ -8404,8 +8407,8 @@ ${N}`); const C = d; }, 8814: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.arrayToString = void 0, u.arrayToString = (f, k, d) => { - const C = f.map(function(b, v) { - const N = d(b, v); + const C = f.map(function(y, v) { + const N = d(y, v); return N === void 0 ? String(N) : k + N.split(` `).join(` ${k}`); @@ -8427,10 +8430,10 @@ ${k}`); var C = { injectType: "singletonStyleTag", attributes: { "data-cke-inspector": !0 }, insert: "head", singleton: !0 }; k(d, C), i.exports = d.locals || {}; }, 8989: (i, u) => { - var f = 60103, k = 60106, d = 60107, C = 60108, m = 60114, b = 60109, v = 60110, N = 60112, I = 60113, D = 60120, L = 60115, se = 60116; + var f = 60103, k = 60106, d = 60107, C = 60108, m = 60114, y = 60109, v = 60110, N = 60112, I = 60113, D = 60120, L = 60115, se = 60116; if (typeof Symbol == "function" && Symbol.for) { var ee = Symbol.for; - f = ee("react.element"), k = ee("react.portal"), d = ee("react.fragment"), C = ee("react.strict_mode"), m = ee("react.profiler"), b = ee("react.provider"), v = ee("react.context"), N = ee("react.forward_ref"), I = ee("react.suspense"), D = ee("react.suspense_list"), L = ee("react.memo"), se = ee("react.lazy"), ee("react.block"), ee("react.server.block"), ee("react.fundamental"), ee("react.debug_trace_mode"), ee("react.legacy_hidden"); + f = ee("react.element"), k = ee("react.portal"), d = ee("react.fragment"), C = ee("react.strict_mode"), m = ee("react.profiler"), y = ee("react.provider"), v = ee("react.context"), N = ee("react.forward_ref"), I = ee("react.suspense"), D = ee("react.suspense_list"), L = ee("react.memo"), se = ee("react.lazy"), ee("react.block"), ee("react.server.block"), ee("react.fundamental"), ee("react.debug_trace_mode"), ee("react.legacy_hidden"); } function R(F) { if (typeof F == "object" && F !== null) { @@ -8450,7 +8453,7 @@ ${k}`); case N: case se: case L: - case b: + case y: return F; default: return H; @@ -8486,7 +8489,7 @@ ${k}`); return function(fe, ge, S) { return ge && oe(fe.prototype, ge), S && oe(fe, S), fe; }; - })(), m = f(6540), b = F(f(5556)), v = R(f(7791)), N = F(f(7067)), I = R(f(6462)), D = R(f(4838)), L = f(834), se = F(L), ee = F(f(9628)); + })(), m = f(6540), y = F(f(5556)), v = R(f(7791)), N = F(f(7067)), I = R(f(6462)), D = R(f(4838)), L = f(834), se = F(L), ee = F(f(9628)); function R(oe) { if (oe && oe.__esModule) return oe; var fe = {}; @@ -8582,7 +8585,7 @@ ${k}`); return this.props.overlayElement(U, le); } }]), fe; })(m.Component); - pe.defaultProps = { style: { overlay: {}, content: {} }, defaultStyles: {} }, pe.propTypes = { isOpen: b.default.bool.isRequired, defaultStyles: b.default.shape({ content: b.default.object, overlay: b.default.object }), style: b.default.shape({ content: b.default.object, overlay: b.default.object }), className: b.default.oneOfType([b.default.string, b.default.object]), overlayClassName: b.default.oneOfType([b.default.string, b.default.object]), parentSelector: b.default.func, bodyOpenClassName: b.default.string, htmlOpenClassName: b.default.string, ariaHideApp: b.default.bool, appElement: b.default.oneOfType([b.default.instanceOf(se.default), b.default.instanceOf(L.SafeHTMLCollection), b.default.instanceOf(L.SafeNodeList), b.default.arrayOf(b.default.instanceOf(se.default))]), onAfterOpen: b.default.func, onAfterClose: b.default.func, onRequestClose: b.default.func, closeTimeoutMS: b.default.number, shouldFocusAfterRender: b.default.bool, shouldCloseOnOverlayClick: b.default.bool, shouldReturnFocusAfterClose: b.default.bool, preventScroll: b.default.bool, role: b.default.string, contentLabel: b.default.string, aria: b.default.object, data: b.default.object, children: b.default.node, shouldCloseOnEsc: b.default.bool, overlayRef: b.default.func, contentRef: b.default.func, id: b.default.string, overlayElement: b.default.func, contentElement: b.default.func, testId: b.default.string }, u.default = pe, i.exports = u.default; + pe.defaultProps = { style: { overlay: {}, content: {} }, defaultStyles: {} }, pe.propTypes = { isOpen: y.default.bool.isRequired, defaultStyles: y.default.shape({ content: y.default.object, overlay: y.default.object }), style: y.default.shape({ content: y.default.object, overlay: y.default.object }), className: y.default.oneOfType([y.default.string, y.default.object]), overlayClassName: y.default.oneOfType([y.default.string, y.default.object]), parentSelector: y.default.func, bodyOpenClassName: y.default.string, htmlOpenClassName: y.default.string, ariaHideApp: y.default.bool, appElement: y.default.oneOfType([y.default.instanceOf(se.default), y.default.instanceOf(L.SafeHTMLCollection), y.default.instanceOf(L.SafeNodeList), y.default.arrayOf(y.default.instanceOf(se.default))]), onAfterOpen: y.default.func, onAfterClose: y.default.func, onRequestClose: y.default.func, closeTimeoutMS: y.default.number, shouldFocusAfterRender: y.default.bool, shouldCloseOnOverlayClick: y.default.bool, shouldReturnFocusAfterClose: y.default.bool, preventScroll: y.default.bool, role: y.default.string, contentLabel: y.default.string, aria: y.default.object, data: y.default.object, children: y.default.node, shouldCloseOnEsc: y.default.bool, overlayRef: y.default.func, contentRef: y.default.func, id: y.default.string, overlayElement: y.default.func, contentElement: y.default.func, testId: y.default.string }, u.default = pe, i.exports = u.default; }, 9628: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.log = function() { console.log("portalOpenInstances ----------"), console.log(k.openInstances.length), k.openInstances.forEach(function(d) { @@ -8593,18 +8596,18 @@ ${k}`); }; var f = function d() { var C = this; - (function(m, b) { - if (!(m instanceof b)) throw new TypeError("Cannot call a class as a function"); + (function(m, y) { + if (!(m instanceof y)) throw new TypeError("Cannot call a class as a function"); })(this, d), this.register = function(m) { C.openInstances.indexOf(m) === -1 && (C.openInstances.push(m), C.emit("register")); }, this.deregister = function(m) { - var b = C.openInstances.indexOf(m); - b !== -1 && (C.openInstances.splice(b, 1), C.emit("deregister")); + var y = C.openInstances.indexOf(m); + y !== -1 && (C.openInstances.splice(y, 1), C.emit("deregister")); }, this.subscribe = function(m) { C.subscribers.push(m); }, this.emit = function(m) { - C.subscribers.forEach(function(b) { - return b(m, C.openInstances.slice()); + C.subscribers.forEach(function(y) { + return y(m, C.openInstances.slice()); }); }, this.openInstances = [], this.subscribers = []; }, k = new f(); @@ -8669,21 +8672,21 @@ ${k}`); for (var o = l; Object.getPrototypeOf(o) !== null; ) o = Object.getPrototypeOf(o); return Object.getPrototypeOf(l) === o; } - function b(l, o, s) { + function y(l, o, s) { var c; if (typeof o == "function" && typeof s == "function" || typeof s == "function" && typeof arguments[3] == "function") throw new Error(f(0)); if (typeof o == "function" && s === void 0 && (s = o, o = void 0), s !== void 0) { if (typeof s != "function") throw new Error(f(1)); - return s(b)(l, o); + return s(y)(l, o); } if (typeof l != "function") throw new Error(f(2)); - var g = l, y = o, x = [], z = x, K = !1; + var g = l, b = o, x = [], z = x, K = !1; function Y() { z === x && (z = x.slice()); } function ie() { if (K) throw new Error(f(3)); - return y; + return b; } function ue(de) { if (typeof de != "function") throw new Error(f(4)); @@ -8703,7 +8706,7 @@ ${k}`); if (de.type === void 0) throw new Error(f(8)); if (K) throw new Error(f(9)); try { - K = !0, y = g(y, de); + K = !0, b = g(b, de); } finally { K = !1; } @@ -8740,7 +8743,7 @@ ${k}`); function g() { x.onStateChange && x.onStateChange(); } - function y() { + function b() { s || (s = o ? o.addNestedSub(g) : l.subscribe(g), c = (function() { var z = I(), K = null, Y = null; return { clear: function() { @@ -8761,12 +8764,12 @@ ${k}`); })()); } var x = { addNestedSub: function(z) { - return y(), c.subscribe(z); + return b(), c.subscribe(z); }, notifyNestedSubs: function() { c.notify(); }, handleChangeWrapper: g, isSubscribed: function() { return !!s; - }, trySubscribe: y, tryUnsubscribe: function() { + }, trySubscribe: b, tryUnsubscribe: function() { s && (s(), s = void 0, c.clear(), c = D); }, getListeners: function() { return c; @@ -8778,15 +8781,15 @@ ${k}`); var o = l.store, s = l.context, c = l.children, g = (0, i.useMemo)(function() { var z = L(o); return { store: o, subscription: z }; - }, [o]), y = (0, i.useMemo)(function() { + }, [o]), b = (0, i.useMemo)(function() { return o.getState(); }, [o]); se(function() { var z = g.subscription; - return z.onStateChange = z.notifyNestedSubs, z.trySubscribe(), y !== o.getState() && z.notifyNestedSubs(), function() { + return z.onStateChange = z.notifyNestedSubs, z.trySubscribe(), b !== o.getState() && z.notifyNestedSubs(), function() { z.tryUnsubscribe(), z.onStateChange = null; }; - }, [g, y]); + }, [g, b]); var x = s || v; return i.createElement(x.Provider, { value: g }, c); }; @@ -8818,10 +8821,10 @@ ${k}`); return l.apply(void 0, o); }, s); } - function ae(l, o, s, c, g, y, x) { - l.current = c, o.current = g, s.current = !1, y.current && (y.current = null, x()); + function ae(l, o, s, c, g, b, x) { + l.current = c, o.current = g, s.current = !1, b.current && (b.current = null, x()); } - function Z(l, o, s, c, g, y, x, z, K, Y) { + function Z(l, o, s, c, g, b, x, z, K, Y) { if (l) { var ie = !1, ue = null, he = function() { if (!ie) { @@ -8831,7 +8834,7 @@ ${k}`); } catch (ze) { Oe = ze, ue = ze; } - Oe || (ue = null), de === y.current ? x.current || K() : (y.current = de, z.current = de, x.current = !0, Y({ type: "STORE_UPDATED", payload: { error: Oe } })); + Oe || (ue = null), de === b.current ? x.current || K() : (b.current = de, z.current = de, x.current = !0, Y({ type: "STORE_UPDATED", payload: { error: Oe } })); } }; return s.onStateChange = he, s.trySubscribe(), he(), function() { @@ -8846,7 +8849,7 @@ ${k}`); o === void 0 && (o = {}); var s = o, c = s.getDisplayName, g = c === void 0 ? function(je) { return "ConnectAdvanced(" + je + ")"; - } : c, y = s.methodName, x = y === void 0 ? "connectAdvanced" : y, z = s.renderCountProp, K = z === void 0 ? void 0 : z, Y = s.shouldHandleStateChanges, ie = Y === void 0 || Y, ue = s.storeKey, he = ue === void 0 ? "store" : ue, de = (s.withRef, s.forwardRef), Oe = de !== void 0 && de, Ce = s.context, ze = Ce === void 0 ? v : Ce, st = F(s, oe), Be = ze; + } : c, b = s.methodName, x = b === void 0 ? "connectAdvanced" : b, z = s.renderCountProp, K = z === void 0 ? void 0 : z, Y = s.shouldHandleStateChanges, ie = Y === void 0 || Y, ue = s.storeKey, he = ue === void 0 ? "store" : ue, de = (s.withRef, s.forwardRef), Oe = de !== void 0 && de, Ce = s.context, ze = Ce === void 0 ? v : Ce, st = F(s, oe), Be = ze; return function(je) { var dt = je.displayName || je.name || "Component", vt = g(dt), Bt = R({}, st, { getDisplayName: g, methodName: x, renderCountProp: K, shouldHandleStateChanges: ie, storeKey: he, displayName: vt, wrappedComponentName: dt, WrappedComponent: je }), xt = st.pure, It = xt ? i.useMemo : function(it) { return it(); @@ -8918,13 +8921,13 @@ ${k}`); function ke(l, o) { return function(s, c) { c.displayName; - var g = function(y, x) { - return g.dependsOnOwnProps ? g.mapToProps(y, x) : g.mapToProps(y); + var g = function(b, x) { + return g.dependsOnOwnProps ? g.mapToProps(b, x) : g.mapToProps(b); }; - return g.dependsOnOwnProps = !0, g.mapToProps = function(y, x) { + return g.dependsOnOwnProps = !0, g.mapToProps = function(b, x) { g.mapToProps = l, g.dependsOnOwnProps = me(l); - var z = g(y, x); - return typeof z == "function" && (g.mapToProps = z, g.dependsOnOwnProps = me(z), z = g(y, x)), z; + var z = g(b, x); + return typeof z == "function" && (g.mapToProps = z, g.dependsOnOwnProps = me(z), z = g(b, x)), z; }, g; }; } @@ -8937,13 +8940,13 @@ ${k}`); }, function(l) { return l && typeof l == "object" ? le(function(o) { return (function(s, c) { - var g = {}, y = function(z) { + var g = {}, b = function(z) { var K = s[z]; typeof K == "function" && (g[z] = function() { return c(K.apply(void 0, arguments)); }); }; - for (var x in s) y(x); + for (var x in s) b(x); return g; })(l, o); }) : void 0; @@ -8961,10 +8964,10 @@ ${k}`); return typeof l == "function" ? /* @__PURE__ */ (function(o) { return function(s, c) { c.displayName; - var g, y = c.pure, x = c.areMergedPropsEqual, z = !1; + var g, b = c.pure, x = c.areMergedPropsEqual, z = !1; return function(K, Y, ie) { var ue = o(K, Y, ie); - return z ? y && x(ue, g) || (g = ue) : (z = !0, g = ue), g; + return z ? b && x(ue, g) || (g = ue) : (z = !0, g = ue), g; }; }; })(l) : void 0; @@ -8975,23 +8978,23 @@ ${k}`); }]; var Ke = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"]; function Je(l, o, s, c) { - return function(g, y) { - return s(l(g, y), o(c, y), y); + return function(g, b) { + return s(l(g, b), o(c, b), b); }; } - function ye(l, o, s, c, g) { - var y, x, z, K, Y, ie = g.areStatesEqual, ue = g.areOwnPropsEqual, he = g.areStatePropsEqual, de = !1; + function be(l, o, s, c, g) { + var b, x, z, K, Y, ie = g.areStatesEqual, ue = g.areOwnPropsEqual, he = g.areStatePropsEqual, de = !1; function Oe(Ce, ze) { - var st, Be, je = !ue(ze, x), dt = !ie(Ce, y, ze, x); - return y = Ce, x = ze, je && dt ? (z = l(y, x), o.dependsOnOwnProps && (K = o(c, x)), Y = s(z, K, x)) : je ? (l.dependsOnOwnProps && (z = l(y, x)), o.dependsOnOwnProps && (K = o(c, x)), Y = s(z, K, x)) : (dt && (st = l(y, x), Be = !he(st, z), z = st, Be && (Y = s(z, K, x))), Y); + var st, Be, je = !ue(ze, x), dt = !ie(Ce, b, ze, x); + return b = Ce, x = ze, je && dt ? (z = l(b, x), o.dependsOnOwnProps && (K = o(c, x)), Y = s(z, K, x)) : je ? (l.dependsOnOwnProps && (z = l(b, x)), o.dependsOnOwnProps && (K = o(c, x)), Y = s(z, K, x)) : (dt && (st = l(b, x), Be = !he(st, z), z = st, Be && (Y = s(z, K, x))), Y); } return function(Ce, ze) { - return de ? Oe(Ce, ze) : (z = l(y = Ce, x = ze), K = o(c, x), Y = s(z, K, x), de = !0, Y); + return de ? Oe(Ce, ze) : (z = l(b = Ce, x = ze), K = o(c, x), Y = s(z, K, x), de = !0, Y); }; } function P(l, o) { - var s = o.initMapStateToProps, c = o.initMapDispatchToProps, g = o.initMergeProps, y = F(o, Ke), x = s(l, y), z = c(l, y), K = g(l, y); - return (y.pure ? ye : Je)(x, z, K, l, y); + var s = o.initMapStateToProps, c = o.initMapDispatchToProps, g = o.initMergeProps, b = F(o, Ke), x = s(l, b), z = c(l, b), K = g(l, b); + return (b.pure ? be : Je)(x, z, K, l, b); } var te = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"]; function we(l, o, s) { @@ -8999,7 +9002,7 @@ ${k}`); var g = o[c](l); if (g) return g; } - return function(y, x) { + return function(b, x) { throw new Error("Invalid value of type " + typeof l + " for " + s + " argument when connecting component " + x.wrappedComponentName + "."); }; } @@ -9007,10 +9010,10 @@ ${k}`); return l === o; } function Pe(l) { - var o = {}, s = o.connectHOC, c = s === void 0 ? J : s, g = o.mapStateToPropsFactories, y = g === void 0 ? Ue : g, x = o.mapDispatchToPropsFactories, z = x === void 0 ? Ne : x, K = o.mergePropsFactories, Y = K === void 0 ? Le : K, ie = o.selectorFactory, ue = ie === void 0 ? P : ie; + var o = {}, s = o.connectHOC, c = s === void 0 ? J : s, g = o.mapStateToPropsFactories, b = g === void 0 ? Ue : g, x = o.mapDispatchToPropsFactories, z = x === void 0 ? Ne : x, K = o.mergePropsFactories, Y = K === void 0 ? Le : K, ie = o.selectorFactory, ue = ie === void 0 ? P : ie; return function(he, de, Oe, Ce) { Ce === void 0 && (Ce = {}); - var ze = Ce, st = ze.pure, Be = st === void 0 || st, je = ze.areStatesEqual, dt = je === void 0 ? Se : je, vt = ze.areOwnPropsEqual, Bt = vt === void 0 ? G : vt, xt = ze.areStatePropsEqual, It = xt === void 0 ? G : xt, St = ze.areMergedPropsEqual, mt = St === void 0 ? G : St, En = F(ze, te), it = we(he, y, "mapStateToProps"), xn = we(de, z, "mapDispatchToProps"), jn = we(Oe, Y, "mergeProps"); + var ze = Ce, st = ze.pure, Be = st === void 0 || st, je = ze.areStatesEqual, dt = je === void 0 ? Se : je, vt = ze.areOwnPropsEqual, Bt = vt === void 0 ? G : vt, xt = ze.areStatePropsEqual, It = xt === void 0 ? G : xt, St = ze.areMergedPropsEqual, mt = St === void 0 ? G : St, En = F(ze, te), it = we(he, b, "mapStateToProps"), xn = we(de, z, "mapDispatchToProps"), jn = we(Oe, Y, "mergeProps"); return c(ue, R({ methodName: "connect", getDisplayName: function(lo) { return "Connect(" + lo + ")"; }, shouldHandleStateChanges: !!he, initMapStateToProps: it, initMapDispatchToProps: xn, initMergeProps: jn, pure: Be, areStatesEqual: dt, areOwnPropsEqual: Bt, areStatePropsEqual: It, areMergedPropsEqual: mt }, En)); @@ -9115,21 +9118,21 @@ ${k}`); s.attributes[c] = { value: g }; }), s.properties = pt(s.properties), s.attributes = pt(s.attributes); for (const c in s.attributes) { - const g = {}, y = l.model.schema.getAttributeProperties(c); - for (const x in y) g[x] = { value: y[x] }; + const g = {}, b = l.model.schema.getAttributeProperties(c); + for (const x in b) g[x] = { value: b[x] }; s.attributes[c].subProperties = pt(g); } return s; } function In(l, o) { const s = {}, { startOffset: c, endOffset: g } = l; - return Object.assign(s, { startOffset: c, endOffset: g, node: l, path: l.getPath(), positionsBefore: [], positionsAfter: [] }), xo(l) ? (function(y, x) { - const z = y.node; - Object.assign(y, { type: "element", name: z.name, children: [], maxOffset: z.maxOffset, positions: [] }); - for (const K of z.getChildren()) y.children.push(In(K, x)); + return Object.assign(s, { startOffset: c, endOffset: g, node: l, path: l.getPath(), positionsBefore: [], positionsAfter: [] }), xo(l) ? (function(b, x) { + const z = b.node; + Object.assign(b, { type: "element", name: z.name, children: [], maxOffset: z.maxOffset, positions: [] }); + for (const K of z.getChildren()) b.children.push(In(K, x)); (function(K, Y) { for (const ie of Y) { - const ue = bi(K, ie); + const ue = yi(K, ie); for (const he of ue) { const de = he.offset; if (de === 0) { @@ -9159,10 +9162,10 @@ ${k}`); } } } - })(y, x), y.attributes = Co(z); - })(s, o) : (function(y) { - const x = y.node; - Object.assign(y, { type: "text", text: x.data, positions: [], presentation: { dontRenderAttributeValue: !0 } }), y.attributes = Co(x); + })(b, x), b.attributes = Co(z); + })(s, o) : (function(b) { + const x = b.node; + Object.assign(b, { type: "text", text: x.data, positions: [], presentation: { dontRenderAttributeValue: !0 } }), b.attributes = Co(x); })(s), s; } function Co(l) { @@ -9172,9 +9175,9 @@ ${k}`); function hn(l) { return [...l.getAttributes()].sort(([o], [s]) => o < s ? -1 : 1); } - function bi(l, o) { - const s = l.path, c = o.start.path, g = o.end.path, y = []; - return mn(s, c) && y.push({ offset: c[c.length - 1], isEnd: !1, presentation: o.presentation || null, type: o.type, name: o.name || null }), mn(s, g) && y.push({ offset: g[g.length - 1], isEnd: !0, presentation: o.presentation || null, type: o.type, name: o.name || null }), y; + function yi(l, o) { + const s = l.path, c = o.start.path, g = o.end.path, b = []; + return mn(s, c) && b.push({ offset: c[c.length - 1], isEnd: !1, presentation: o.presentation || null, type: o.type, name: o.name || null }), mn(s, g) && b.push({ offset: g[g.length - 1], isEnd: !0, presentation: o.presentation || null, type: o.type, name: o.name || null }), b; } function mn(l, o) { return l.length === o.length - 1 && Kr(l, o) === "prefix"; @@ -9203,34 +9206,34 @@ ${k}`); } const Dr = "active-model-tab-name", Kn = "model-show-markers", cr = "model-compact-text"; function Qn(l, o, s) { - const c = (function(g, y, x) { - if (g.ui.activeTab !== "Model") return y; - if (!y) return Rn(g, y); + const c = (function(g, b, x) { + if (g.ui.activeTab !== "Model") return b; + if (!b) return Rn(g, b); switch (x.type) { case Qe: return (function(z, K, Y) { const ie = Y.currentRootName; return { ...K, ...Ir(z, K, { currentRootName: ie }), currentNode: null, currentNodeDefinition: null, currentRootName: ie }; - })(g, y, x); + })(g, b, x); case et: - return { ...y, currentNode: x.currentNode, currentNodeDefinition: lr(gn(g), x.currentNode) }; + return { ...b, currentNode: x.currentNode, currentNodeDefinition: lr(gn(g), x.currentNode) }; case Ht: case Gt: - return { ...y, ...Ir(g, y) }; + return { ...b, ...Ir(g, b) }; case an: case pn: - return Rn(g, y); + return Rn(g, b); default: - return y; + return b; } })(l, o, s); - return c && (c.ui = (function(g, y) { + return c && (c.ui = (function(g, b) { if (!g) return { activeTab: ct.get(Dr) || "Inspect", showMarkers: ct.get(Kn) === "true", showCompactText: ct.get(cr) === "true" }; - switch (y.type) { + switch (b.type) { case Pt: return (function(x, z) { return ct.set(Dr, z.tabName), { ...x, activeTab: z.tabName }; - })(g, y); + })(g, b); case ko: return (function(x) { const z = !x.showMarkers; @@ -9253,12 +9256,12 @@ ${k}`); return { ...o, ...Ir(l, o, { currentRootName: c }), currentRootName: c, currentNode: null, currentNodeDefinition: null }; } function Ir(l, o, s) { - const c = gn(l), g = { ...o, ...s }, y = g.currentRootName, x = (function(ue, he) { + const c = gn(l), g = { ...o, ...s }, b = g.currentRootName, x = (function(ue, he) { if (!ue) return []; const de = [], Oe = ue.model; for (const Ce of Oe.document.selection.getRanges()) Ce.root.rootName === he && de.push({ type: "selection", start: zt(Ce.start), end: zt(Ce.end) }); return de; - })(c, y), z = (function(ue, he) { + })(c, b), z = (function(ue, he) { if (!ue) return []; const de = [], Oe = ue.model; let Ce = 0; @@ -9267,13 +9270,13 @@ ${k}`); dt.root.rootName === he && de.push({ type: "marker", marker: ze, name: st, affectsData: Be, managedUsingOperations: je, presentation: { color: Dn[Ce++ % (Dn.length - 1)] }, start: zt(dt), end: zt(vt) }); } return de; - })(c, y), K = (function({ currentEditor: ue, currentRootName: he, ranges: de, markers: Oe }) { + })(c, b), K = (function({ currentEditor: ue, currentRootName: he, ranges: de, markers: Oe }) { return ue ? [In(ue.model.document.getRoot(he), [...de, ...Oe])] : []; })({ currentEditor: c, currentRootName: g.currentRootName, ranges: x, markers: z }); let Y = g.currentNode, ie = g.currentNodeDefinition; - return Y ? Y.root.rootName !== y || !Wn(Y) && !Y.parent ? (Y = null, ie = null) : ie = lr(c, Y) : ie = null, { treeDefinition: K, currentNode: Y, currentNodeDefinition: ie, ranges: x, markers: z }; + return Y ? Y.root.rootName !== b || !Wn(Y) && !Y.parent ? (Y = null, ie = null) : ie = lr(c, Y) : ie = null, { treeDefinition: K, currentNode: Y, currentNodeDefinition: ie, ranges: x, markers: z }; } - const Rr = "SET_VIEW_CURRENT_ROOT_NAME", M = "SET_VIEW_CURRENT_NODE", Q = "SET_VIEW_ACTIVE_TAB", be = "TOGGLE_VIEW_SHOW_ELEMENT_TYPES", De = "UPDATE_VIEW_STATE"; + const Rr = "SET_VIEW_CURRENT_ROOT_NAME", M = "SET_VIEW_CURRENT_NODE", Q = "SET_VIEW_ACTIVE_TAB", ye = "TOGGLE_VIEW_SHOW_ELEMENT_TYPES", De = "UPDATE_VIEW_STATE"; function tt(l) { return { type: Q, tabName: l }; } @@ -9299,33 +9302,33 @@ ${k}`); return l && l.is("rootElement"); } function jt(l) { - return { path: [...l.parent.getPath(), l.offset], offset: l.offset, isAtEnd: l.isAtEnd, isAtStart: l.isAtStart, parent: yt(l.parent) }; + return { path: [...l.parent.getPath(), l.offset], offset: l.offset, isAtEnd: l.isAtEnd, isAtStart: l.isAtStart, parent: bt(l.parent) }; } - function yt(l) { + function bt(l) { return Ge(l) ? rt(l) ? "attribute:" + l.name : kt(l) ? "root:" + l.name : "container:" + l.name : l.data; } - const bt = "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view", yn = `<!--The View UI element content has been skipped. Find out why. -->`, ur = `<!--The View raw element content has been skipped. Find out why. -->`; + const yt = "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view", bn = `<!--The View UI element content has been skipped. Find out why. -->`, ur = `<!--The View raw element content has been skipped. Find out why. -->`; function Mn(l) { return l ? [...l.editing.view.document.roots] : []; } - function bn(l) { + function yn(l) { const o = { editorNode: l, properties: {}, attributes: {}, customProperties: {} }; if (Ge(l)) { - kt(l) ? (o.type = "RootEditableElement", o.name = l.rootName, o.url = `${bt}_rooteditableelement-RootEditableElement.html`) : (o.name = l.name, rt(l) ? (o.type = "AttributeElement", o.url = `${bt}_attributeelement-AttributeElement.html`) : At(l) ? (o.type = "EmptyElement", o.url = `${bt}_emptyelement-EmptyElement.html`) : ft(l) ? (o.type = "UIElement", o.url = `${bt}_uielement-UIElement.html`) : ht(l) ? (o.type = "RawElement", o.url = `${bt}_rawelement-RawElement.html`) : (function(s) { + kt(l) ? (o.type = "RootEditableElement", o.name = l.rootName, o.url = `${yt}_rooteditableelement-RootEditableElement.html`) : (o.name = l.name, rt(l) ? (o.type = "AttributeElement", o.url = `${yt}_attributeelement-AttributeElement.html`) : At(l) ? (o.type = "EmptyElement", o.url = `${yt}_emptyelement-EmptyElement.html`) : ft(l) ? (o.type = "UIElement", o.url = `${yt}_uielement-UIElement.html`) : ht(l) ? (o.type = "RawElement", o.url = `${yt}_rawelement-RawElement.html`) : (function(s) { return s && Ge(s) && s.is("editableElement"); - })(l) ? (o.type = "EditableElement", o.url = `${bt}_editableelement-EditableElement.html`) : (o.type = "ContainerElement", o.url = `${bt}_containerelement-ContainerElement.html`)), nt(l).forEach(([s, c]) => { + })(l) ? (o.type = "EditableElement", o.url = `${yt}_editableelement-EditableElement.html`) : (o.type = "ContainerElement", o.url = `${yt}_containerelement-ContainerElement.html`)), nt(l).forEach(([s, c]) => { o.attributes[s] = { value: c }; }), o.properties = { index: { value: l.index }, isEmpty: { value: l.isEmpty }, childCount: { value: l.childCount } }; for (let [s, c] of l.getCustomProperties()) typeof s == "symbol" && (s = s.toString()), o.customProperties[s] = { value: c }; - } else o.name = l.data, o.type = "Text", o.url = `${bt}_text-Text.html`, o.properties = { index: { value: l.index } }; + } else o.name = l.data, o.type = "Text", o.url = `${yt}_text-Text.html`, o.properties = { index: { value: l.index } }; return o.properties = pt(o.properties), o.customProperties = pt(o.customProperties), o.attributes = pt(o.attributes), o; } function Xr(l, o) { const s = {}; return Object.assign(s, { index: l.index, path: l.getPath(), node: l, positionsBefore: [], positionsAfter: [] }), Ge(l) ? (function(c, g) { - const y = c.node; - Object.assign(c, { type: "element", children: [], positions: [] }), c.name = y.name, rt(y) ? c.elementType = "attribute" : kt(y) ? c.elementType = "root" : At(y) ? c.elementType = "empty" : ft(y) ? c.elementType = "ui" : ht(y) ? c.elementType = "raw" : c.elementType = "container", At(y) ? c.presentation = { isEmpty: !0 } : ft(y) ? c.children.push({ type: "comment", text: yn }) : ht(y) && c.children.push({ type: "comment", text: ur }); - for (const x of y.getChildren()) c.children.push(Xr(x, g)); + const b = c.node; + Object.assign(c, { type: "element", children: [], positions: [] }), c.name = b.name, rt(b) ? c.elementType = "attribute" : kt(b) ? c.elementType = "root" : At(b) ? c.elementType = "empty" : ft(b) ? c.elementType = "ui" : ht(b) ? c.elementType = "raw" : c.elementType = "container", At(b) ? c.presentation = { isEmpty: !0 } : ft(b) ? c.children.push({ type: "comment", text: bn }) : ht(b) && c.children.push({ type: "comment", text: ur }); + for (const x of b.getChildren()) c.children.push(Xr(x, g)); (function(x, z) { for (const K of z) { const Y = To(x, K); @@ -9356,18 +9359,18 @@ ${k}`); })(c, g), c.attributes = (function(x) { const z = nt(x).map(([K, Y]) => [K, fn(Y, !1)]); return new Map(z); - })(y); + })(b); })(s, o) : (function(c, g) { Object.assign(c, { type: "text", startOffset: 0, text: c.node.data, positions: [] }); - for (const y of g) { - const x = To(c, y); + for (const b of g) { + const x = To(c, b); c.positions.push(...x); } })(s, o), s; } function To(l, o) { - const s = l.path, c = o.start.path, g = o.end.path, y = []; - return Oo(s, c) && y.push({ offset: c[c.length - 1], isEnd: !1, presentation: o.presentation || null, type: o.type, name: o.name || null }), Oo(s, g) && y.push({ offset: g[g.length - 1], isEnd: !0, presentation: o.presentation || null, type: o.type, name: o.name || null }), y; + const s = l.path, c = o.start.path, g = o.end.path, b = []; + return Oo(s, c) && b.push({ offset: c[c.length - 1], isEnd: !1, presentation: o.presentation || null, type: o.type, name: o.name || null }), Oo(s, g) && b.push({ offset: g[g.length - 1], isEnd: !0, presentation: o.presentation || null, type: o.type, name: o.name || null }), b; } function Oo(l, o) { return l.length === o.length - 1 && Kr(l, o) === "prefix"; @@ -9377,41 +9380,41 @@ ${k}`); } const Ze = "active-view-tab-name", Yn = "view-element-types"; function vn(l, o, s) { - const c = (function(g, y, x) { - if (g.ui.activeTab !== "View") return y; - if (!y) return dr(g, y); + const c = (function(g, b, x) { + if (g.ui.activeTab !== "View") return b; + if (!b) return dr(g, b); switch (x.type) { case Rr: return (function(z, K, Y) { const ie = Y.currentRootName; return { ...K, ...ut(z, K, { currentRootName: ie }), currentNode: null, currentNodeDefinition: null, currentRootName: ie }; - })(g, y, x); + })(g, b, x); case M: - return { ...y, currentNode: x.currentNode, currentNodeDefinition: bn(x.currentNode) }; + return { ...b, currentNode: x.currentNode, currentNodeDefinition: yn(x.currentNode) }; case Ht: case De: - return { ...y, ...ut(g, y) }; + return { ...b, ...ut(g, b) }; case an: case pn: - return dr(g, y); + return dr(g, b); default: - return y; + return b; } })(l, o, s); - return c && (c.ui = (function(g, y, x) { - if (!y) return { activeTab: ct.get(Ze) || "Inspect", showElementTypes: ct.get(Yn) === "true" }; + return c && (c.ui = (function(g, b, x) { + if (!b) return { activeTab: ct.get(Ze) || "Inspect", showElementTypes: ct.get(Yn) === "true" }; switch (x.type) { case Q: return (function(z, K) { return ct.set(Ze, K.tabName), { ...z, activeTab: K.tabName }; - })(y, x); - case be: + })(b, x); + case ye: return (function(z, K) { const Y = !K.showElementTypes; return ct.set(Yn, Y), { ...K, showElementTypes: Y }; - })(0, y); + })(0, b); default: - return y; + return b; } })(0, c.ui, s)), c; } @@ -9420,16 +9423,16 @@ ${k}`); return { ...o, ...ut(l, o, { currentRootName: c }), currentRootName: c, currentNode: null, currentNodeDefinition: null }; } function ut(l, o, s) { - const c = { ...o, ...s }, g = c.currentRootName, y = (function(Y, ie) { + const c = { ...o, ...s }, g = c.currentRootName, b = (function(Y, ie) { if (!Y) return []; const ue = [], he = Y.editing.view.document.selection; for (const de of he.getRanges()) de.root.rootName === ie && ue.push({ type: "selection", start: jt(de.start), end: jt(de.end) }); return ue; })(gn(l), g), x = (function({ currentEditor: Y, currentRootName: ie, ranges: ue }) { return Y && ie ? [Xr(Y.editing.view.document.getRoot(ie), [...ue])] : null; - })({ currentEditor: gn(l), currentRootName: g, ranges: y }); + })({ currentEditor: gn(l), currentRootName: g, ranges: b }); let z = c.currentNode, K = c.currentNodeDefinition; - return z ? z.root.rootName !== g || !kt(z) && !z.parent ? (z = null, K = null) : K = bn(z) : K = null, { treeDefinition: x, currentNode: z, currentNodeDefinition: K, ranges: y }; + return z ? z.root.rootName !== g || !kt(z) && !z.parent ? (z = null, K = null) : K = yn(z) : K = null, { treeDefinition: x, currentNode: z, currentNodeDefinition: K, ranges: b }; } const wt = "SET_COMMANDS_CURRENT_COMMAND_NAME", Tt = "UPDATE_COMMANDS_STATE"; function Lt() { @@ -9444,8 +9447,8 @@ ${k}`); if (!l.get(o)) return []; const s = []; for (const [c, g] of l.get(o).commands) { - const y = []; - g.value !== void 0 && y.push(["value", fn(g.value, !1)]), s.push({ name: c, type: "element", children: [], node: c, attributes: y, presentation: { isEmpty: !0, cssClass: ["ck-inspector-tree-node_tagless", g.isEnabled ? "" : "ck-inspector-tree-node_disabled"].join(" ") } }); + const b = []; + g.value !== void 0 && b.push(["value", fn(g.value, !1)]), s.push({ name: c, type: "element", children: [], node: c, attributes: b, presentation: { isEmpty: !0, cssClass: ["ck-inspector-tree-node_tagless", g.isEnabled ? "" : "ck-inspector-tree-node_disabled"].join(" ") } }); } return s.sort((c, g) => c.name > g.name ? 1 : -1); } @@ -9459,9 +9462,9 @@ ${k}`); const pr = ["isBlock", "isInline", "isObject", "isContent", "isLimit", "isSelectable"], Xn = "https://ckeditor.com/docs/ckeditor5/latest/api/"; function _n({ editors: l, currentEditorName: o }, s) { if (!s) return null; - const c = l.get(o).model.schema, g = c.getDefinitions()[s], y = {}, x = {}, z = {}; + const c = l.get(o).model.schema, g = c.getDefinitions()[s], b = {}, x = {}, z = {}; let K = {}; - for (const Y of pr) g[Y] && (y[Y] = { value: g[Y] }); + for (const Y of pr) g[Y] && (b[Y] = { value: g[Y] }); for (const Y of g.allowChildren.sort()) x[Y] = { value: !0, title: `Click to see the definition of ${Y}` }; for (const Y of g.allowIn.sort()) z[Y] = { value: !0, title: `Click to see the definition of ${Y}` }; for (const Y of g.allowAttributes.sort()) K[Y] = { value: !0 }; @@ -9471,13 +9474,13 @@ ${k}`); for (const he in ie) ue[he] = { value: ie[he] }; K[Y].subProperties = pt(ue); } - return { currentSchemaDefinitionName: s, type: "SchemaCompiledItemDefinition", urls: { general: Xn + "module_engine_model_schema-SchemaCompiledItemDefinition.html", allowAttributes: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowAttributes", allowChildren: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowChildren", allowIn: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowIn" }, properties: pt(y), allowChildren: pt(x), allowIn: pt(z), allowAttributes: K, definition: g }; + return { currentSchemaDefinitionName: s, type: "SchemaCompiledItemDefinition", urls: { general: Xn + "module_engine_model_schema-SchemaCompiledItemDefinition.html", allowAttributes: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowAttributes", allowChildren: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowChildren", allowIn: Xn + "module_engine_model_schema-SchemaItemDefinition.html#member-allowIn" }, properties: pt(b), allowChildren: pt(x), allowIn: pt(z), allowAttributes: K, definition: g }; } function Mr({ editors: l, currentEditorName: o }) { if (!l.get(o)) return []; const s = [], c = l.get(o).model.schema.getDefinitions(); for (const g in c) s.push({ name: g, type: "element", children: [], node: g, attributes: [], presentation: { isEmpty: !0, cssClass: "ck-inspector-tree-node_tagless" } }); - return s.sort((g, y) => g.name > y.name ? 1 : -1); + return s.sort((g, b) => g.name > b.name ? 1 : -1); } function fr(l, o = {}) { return { ...o, currentSchemaDefinitionName: null, currentSchemaDefinition: null, treeDefinition: Mr(l) }; @@ -9487,20 +9490,20 @@ ${k}`); const s = (function(c, g) { switch (g.type) { case an: - return (function(y, x) { + return (function(b, x) { const z = { editors: new Map(x.editors) }; - return x.editors.size ? x.editors.has(y.currentEditorName) || (z.currentEditorName = sn(x.editors)) : z.currentEditorName = null, { ...y, ...z }; + return x.editors.size ? x.editors.has(b.currentEditorName) || (z.currentEditorName = sn(x.editors)) : z.currentEditorName = null, { ...b, ...z }; })(c, g); case pn: - return (function(y, x) { - return { ...y, currentEditorName: x.editorName }; + return (function(b, x) { + return { ...b, currentEditorName: x.editorName }; })(c, g); default: return c; } })(l, o); - return s.currentEditorGlobals = (function(c, g, y) { - switch (y.type) { + return s.currentEditorGlobals = (function(c, g, b) { + switch (b.type) { case an: case pn: return { ...ki(c, {}) }; @@ -9511,36 +9514,36 @@ ${k}`); } })(s, s.currentEditorGlobals, o), s.ui = (function(c, g) { if (!c.activeTab) { - let y; - return y = c.isCollapsed !== void 0 ? c.isCollapsed : ct.get(zr) === "true", { ...c, isCollapsed: y, activeTab: ct.get(hr) || "Model", height: ct.get(Zr) || "400px", sidePaneWidth: ct.get(vi) || "500px" }; + let b; + return b = c.isCollapsed !== void 0 ? c.isCollapsed : ct.get(zr) === "true", { ...c, isCollapsed: b, activeTab: ct.get(hr) || "Model", height: ct.get(Zr) || "400px", sidePaneWidth: ct.get(vi) || "500px" }; } switch (g.type) { case wo: - return (function(y) { - const x = !y.isCollapsed; - return ct.set(zr, x), { ...y, isCollapsed: x }; + return (function(b) { + const x = !b.isCollapsed; + return ct.set(zr, x), { ...b, isCollapsed: x }; })(c); case $n: - return (function(y, x) { - return ct.set(Zr, x.newHeight), { ...y, height: x.newHeight }; + return (function(b, x) { + return ct.set(Zr, x.newHeight), { ...b, height: x.newHeight }; })(c, g); case Bn: - return (function(y, x) { - return ct.set(vi, x.newWidth), { ...y, sidePaneWidth: x.newWidth }; + return (function(b, x) { + return ct.set(vi, x.newWidth), { ...b, sidePaneWidth: x.newWidth }; })(c, g); case Ht: - return (function(y, x) { - return ct.set(hr, x.tabName), { ...y, activeTab: x.tabName }; + return (function(b, x) { + return ct.set(hr, x.tabName), { ...b, activeTab: x.tabName }; })(c, g); default: return c; } - })(s.ui, o), s.model = Qn(s, s.model, o), s.view = vn(s, s.view, o), s.commands = (function(c, g, y) { + })(s.ui, o), s.model = Qn(s, s.model, o), s.view = vn(s, s.view, o), s.commands = (function(c, g, b) { if (c.ui.activeTab !== "Commands") return g; if (!g) return wn(c, g); - switch (y.type) { + switch (b.type) { case wt: - return { ...g, currentCommandDefinition: kn(c, y.currentCommandName), currentCommandName: y.currentCommandName }; + return { ...g, currentCommandDefinition: kn(c, b.currentCommandName), currentCommandName: b.currentCommandName }; case Ht: case Tt: return { ...g, currentCommandDefinition: kn(c, g.currentCommandName), treeDefinition: zn(c) }; @@ -9550,12 +9553,12 @@ ${k}`); default: return g; } - })(s, s.commands, o), s.schema = (function(c, g, y) { + })(s, s.commands, o), s.schema = (function(c, g, b) { if (c.ui.activeTab !== "Schema") return g; if (!g) return fr(c, g); - switch (y.type) { + switch (b.type) { case ln: - return { ...g, currentSchemaDefinition: _n(c, y.currentSchemaDefinitionName), currentSchemaDefinitionName: y.currentSchemaDefinitionName }; + return { ...g, currentSchemaDefinition: _n(c, b.currentSchemaDefinitionName), currentSchemaDefinitionName: b.currentSchemaDefinitionName }; case Ht: return { ...g, currentSchemaDefinition: _n(c, g.currentSchemaDefinitionName), treeDefinition: Mr(c) }; case an: @@ -9575,7 +9578,7 @@ ${k}`); return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, g) { c.__proto__ = g; } || function(c, g) { - for (var y in g) g.hasOwnProperty(y) && (c[y] = g[y]); + for (var b in g) g.hasOwnProperty(b) && (c[b] = g[b]); }, l(o, s); }; return function(o, s) { @@ -9606,7 +9609,7 @@ ${k}`); return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, g) { c.__proto__ = g; } || function(c, g) { - for (var y in g) g.hasOwnProperty(y) && (c[y] = g[y]); + for (var b in g) g.hasOwnProperty(b) && (c[b] = g[b]); }, l(o, s); }; return function(o, s) { @@ -9630,8 +9633,8 @@ ${k}`); return !!(l.touches && l.touches.length); }, ia = An()(function(l, o, s) { s === void 0 && (s = 0); - var c = o.reduce(function(y, x, z) { - return Math.abs(x - l) < Math.abs(o[y] - l) ? z : y; + var c = o.reduce(function(b, x, z) { + return Math.abs(x - l) < Math.abs(o[b] - l) ? z : b; }, 0), g = Math.abs(o[c] - l); return s === 0 || g < s ? o[c] : l; }), _t = An()(function(l, o) { @@ -9646,8 +9649,8 @@ ${k}`); if (_t(l, "vh")) return c * (Number(l.replace("vh", "")) / 100); } return l; - }, xi = An()(function(l, o, s, c, g, y, x) { - return c = ti(c, l.width, o, s), g = ti(g, l.height, o, s), y = ti(y, l.width, o, s), x = ti(x, l.height, o, s), { maxWidth: c === void 0 ? void 0 : Number(c), maxHeight: g === void 0 ? void 0 : Number(g), minWidth: y === void 0 ? void 0 : Number(y), minHeight: x === void 0 ? void 0 : Number(x) }; + }, xi = An()(function(l, o, s, c, g, b, x) { + return c = ti(c, l.width, o, s), g = ti(g, l.height, o, s), b = ti(b, l.width, o, s), x = ti(x, l.height, o, s), { maxWidth: c === void 0 ? void 0 : Number(c), maxHeight: g === void 0 ? void 0 : Number(g), minWidth: b === void 0 ? void 0 : Number(b), minHeight: x === void 0 ? void 0 : Number(x) }; }), Si = ["as", "style", "className", "grid", "snap", "bounds", "boundsByDirection", "size", "defaultSize", "minWidth", "minHeight", "maxWidth", "maxHeight", "lockAspectRatio", "lockAspectRatioExtraWidth", "lockAspectRatioExtraHeight", "enable", "handleStyles", "handleClasses", "handleWrapperStyle", "handleWrapperClass", "children", "onResizeStart", "onResize", "onResizeStop", "handleComponent", "scale", "resizeRatio", "snapGap"], Ci = "__resizable_base__", Gn = (function(l) { function o(s) { var c = l.call(this, s) || this; @@ -9655,11 +9658,11 @@ ${k}`); if (!c.resizable || !c.window) return null; var g = c.parentNode; if (!g) return null; - var y = c.window.document.createElement("div"); - return y.style.width = "100%", y.style.height = "100%", y.style.position = "absolute", y.style.transform = "scale(0, 0)", y.style.left = "0", y.style.flex = "0", y.classList ? y.classList.add(Ci) : y.className += Ci, g.appendChild(y), y; + var b = c.window.document.createElement("div"); + return b.style.width = "100%", b.style.height = "100%", b.style.position = "absolute", b.style.transform = "scale(0, 0)", b.style.left = "0", b.style.flex = "0", b.classList ? b.classList.add(Ci) : b.className += Ci, g.appendChild(b), b; }, c.removeBase = function(g) { - var y = c.parentNode; - y && y.removeChild(g); + var b = c.parentNode; + b && b.removeChild(g); }, c.ref = function(g) { g && (c.resizable = g); }, c.state = { isResizing: !1, width: (c.propsSize && c.propsSize.width) === void 0 ? "auto" : c.propsSize && c.propsSize.width, height: (c.propsSize && c.propsSize.height) === void 0 ? "auto" : c.propsSize && c.propsSize.height, direction: "right", original: { x: 0, y: 0, width: 0, height: 0 }, backgroundStyle: { height: "100%", width: "100%", backgroundColor: "rgba(0,0,0,0)", cursor: "auto", opacity: 0, position: "fixed", zIndex: 9999, top: "0", left: "0", bottom: "0", right: "0" }, flexBasis: void 0 }, c.onResizeStart = c.onResizeStart.bind(c), c.onMouseMove = c.onMouseMove.bind(c), c.onMouseUp = c.onMouseUp.bind(c), c; @@ -9673,19 +9676,19 @@ ${k}`); }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "size", { get: function() { var s = 0, c = 0; if (this.resizable && this.window) { - var g = this.resizable.offsetWidth, y = this.resizable.offsetHeight, x = this.resizable.style.position; - x !== "relative" && (this.resizable.style.position = "relative"), s = this.resizable.style.width !== "auto" ? this.resizable.offsetWidth : g, c = this.resizable.style.height !== "auto" ? this.resizable.offsetHeight : y, this.resizable.style.position = x; + var g = this.resizable.offsetWidth, b = this.resizable.offsetHeight, x = this.resizable.style.position; + x !== "relative" && (this.resizable.style.position = "relative"), s = this.resizable.style.width !== "auto" ? this.resizable.offsetWidth : g, c = this.resizable.style.height !== "auto" ? this.resizable.offsetHeight : b, this.resizable.style.position = x; } return { width: s, height: c }; }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "sizeStyle", { get: function() { - var s = this, c = this.props.size, g = function(y) { - if (s.state[y] === void 0 || s.state[y] === "auto") return "auto"; - if (s.propsSize && s.propsSize[y] && _t(s.propsSize[y].toString(), "%")) { - if (_t(s.state[y].toString(), "%")) return s.state[y].toString(); + var s = this, c = this.props.size, g = function(b) { + if (s.state[b] === void 0 || s.state[b] === "auto") return "auto"; + if (s.propsSize && s.propsSize[b] && _t(s.propsSize[b].toString(), "%")) { + if (_t(s.state[b].toString(), "%")) return s.state[b].toString(); var x = s.getParentSize(); - return Number(s.state[y].toString().replace("px", "")) / x[y] * 100 + "%"; + return Number(s.state[b].toString().replace("px", "")) / x[b] * 100 + "%"; } - return ei(s.state[y]); + return ei(s.state[b]); }; return { width: c && c.width !== void 0 && !this.state.isResizing ? ei(c.width) : g("width"), height: c && c.height !== void 0 && !this.state.isResizing ? ei(c.height) : g("height") }; }, enumerable: !1, configurable: !0 }), o.prototype.getParentSize = function() { @@ -9694,8 +9697,8 @@ ${k}`); if (!s) return { width: 0, height: 0 }; var c = !1, g = this.parentNode.style.flexWrap; g !== "wrap" && (c = !0, this.parentNode.style.flexWrap = "wrap"), s.style.position = "relative", s.style.minWidth = "100%"; - var y = { width: s.offsetWidth, height: s.offsetHeight }; - return c && (this.parentNode.style.flexWrap = g), this.removeBase(s), y; + var b = { width: s.offsetWidth, height: s.offsetHeight }; + return c && (this.parentNode.style.flexWrap = g), this.removeBase(s), b; }, o.prototype.bindEvents = function() { this.window && (this.window.addEventListener("mouseup", this.onMouseUp), this.window.addEventListener("mousemove", this.onMouseMove), this.window.addEventListener("mouseleave", this.onMouseUp), this.window.addEventListener("touchmove", this.onMouseMove, { capture: !0, passive: !1 }), this.window.addEventListener("touchend", this.onMouseUp)); }, o.prototype.unbindEvents = function() { @@ -9711,17 +9714,17 @@ ${k}`); var g = this.propsSize && this.propsSize[c]; return this.state[c] !== "auto" || this.state.original[c] !== s || g !== void 0 && g !== "auto" ? s : "auto"; }, o.prototype.calculateNewMaxFromBoundary = function(s, c) { - var g, y, x = this.props.boundsByDirection, z = this.state.direction, K = x && mr("left", z), Y = x && mr("top", z); + var g, b, x = this.props.boundsByDirection, z = this.state.direction, K = x && mr("left", z), Y = x && mr("top", z); if (this.props.bounds === "parent") { var ie = this.parentNode; - ie && (g = K ? this.resizableRight - this.parentLeft : ie.offsetWidth + (this.parentLeft - this.resizableLeft), y = Y ? this.resizableBottom - this.parentTop : ie.offsetHeight + (this.parentTop - this.resizableTop)); - } else this.props.bounds === "window" ? this.window && (g = K ? this.resizableRight : this.window.innerWidth - this.resizableLeft, y = Y ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (g = K ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), y = Y ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop)); - return g && Number.isFinite(g) && (s = s && s < g ? s : g), y && Number.isFinite(y) && (c = c && c < y ? c : y), { maxWidth: s, maxHeight: c }; + ie && (g = K ? this.resizableRight - this.parentLeft : ie.offsetWidth + (this.parentLeft - this.resizableLeft), b = Y ? this.resizableBottom - this.parentTop : ie.offsetHeight + (this.parentTop - this.resizableTop)); + } else this.props.bounds === "window" ? this.window && (g = K ? this.resizableRight : this.window.innerWidth - this.resizableLeft, b = Y ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (g = K ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), b = Y ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop)); + return g && Number.isFinite(g) && (s = s && s < g ? s : g), b && Number.isFinite(b) && (c = c && c < b ? c : b), { maxWidth: s, maxHeight: c }; }, o.prototype.calculateNewSizeFromDirection = function(s, c) { - var g = this.props.scale || 1, y = this.props.resizeRatio || 1, x = this.state, z = x.direction, K = x.original, Y = this.props, ie = Y.lockAspectRatio, ue = Y.lockAspectRatioExtraHeight, he = Y.lockAspectRatioExtraWidth, de = K.width, Oe = K.height, Ce = ue || 0, ze = he || 0; - return mr("right", z) && (de = K.width + (s - K.x) * y / g, ie && (Oe = (de - ze) / this.ratio + Ce)), mr("left", z) && (de = K.width - (s - K.x) * y / g, ie && (Oe = (de - ze) / this.ratio + Ce)), mr("bottom", z) && (Oe = K.height + (c - K.y) * y / g, ie && (de = (Oe - Ce) * this.ratio + ze)), mr("top", z) && (Oe = K.height - (c - K.y) * y / g, ie && (de = (Oe - Ce) * this.ratio + ze)), { newWidth: de, newHeight: Oe }; - }, o.prototype.calculateNewSizeFromAspectRatio = function(s, c, g, y) { - var x = this.props, z = x.lockAspectRatio, K = x.lockAspectRatioExtraHeight, Y = x.lockAspectRatioExtraWidth, ie = y.width === void 0 ? 10 : y.width, ue = g.width === void 0 || g.width < 0 ? s : g.width, he = y.height === void 0 ? 10 : y.height, de = g.height === void 0 || g.height < 0 ? c : g.height, Oe = K || 0, Ce = Y || 0; + var g = this.props.scale || 1, b = this.props.resizeRatio || 1, x = this.state, z = x.direction, K = x.original, Y = this.props, ie = Y.lockAspectRatio, ue = Y.lockAspectRatioExtraHeight, he = Y.lockAspectRatioExtraWidth, de = K.width, Oe = K.height, Ce = ue || 0, ze = he || 0; + return mr("right", z) && (de = K.width + (s - K.x) * b / g, ie && (Oe = (de - ze) / this.ratio + Ce)), mr("left", z) && (de = K.width - (s - K.x) * b / g, ie && (Oe = (de - ze) / this.ratio + Ce)), mr("bottom", z) && (Oe = K.height + (c - K.y) * b / g, ie && (de = (Oe - Ce) * this.ratio + ze)), mr("top", z) && (Oe = K.height - (c - K.y) * b / g, ie && (de = (Oe - Ce) * this.ratio + ze)), { newWidth: de, newHeight: Oe }; + }, o.prototype.calculateNewSizeFromAspectRatio = function(s, c, g, b) { + var x = this.props, z = x.lockAspectRatio, K = x.lockAspectRatioExtraHeight, Y = x.lockAspectRatioExtraWidth, ie = b.width === void 0 ? 10 : b.width, ue = g.width === void 0 || g.width < 0 ? s : g.width, he = b.height === void 0 ? 10 : b.height, de = g.height === void 0 || g.height < 0 ? c : g.height, Oe = K || 0, Ce = Y || 0; if (z) { var ze = (he - Oe) * this.ratio + Ce, st = (de - Oe) * this.ratio + Ce, Be = (ie - Ce) / this.ratio + Oe, je = (ue - Ce) / this.ratio + Oe, dt = Math.max(ie, ze), vt = Math.min(ue, st), Bt = Math.max(he, Be), xt = Math.min(de, je); s = Jo(s, dt, vt), c = Jo(c, Bt, xt); @@ -9740,17 +9743,17 @@ ${k}`); this.targetLeft = g.left, this.targetTop = g.top; } if (this.resizable) { - var y = this.resizable.getBoundingClientRect(), x = y.left, z = y.top, K = y.right, Y = y.bottom; + var b = this.resizable.getBoundingClientRect(), x = b.left, z = b.top, K = b.right, Y = b.bottom; this.resizableLeft = x, this.resizableRight = K, this.resizableTop = z, this.resizableBottom = Y; } }, o.prototype.onResizeStart = function(s, c) { if (this.resizable && this.window) { - var g, y = 0, x = 0; + var g, b = 0, x = 0; if (s.nativeEvent && (function(ue) { return !!((ue.clientX || ue.clientX === 0) && (ue.clientY || ue.clientY === 0)); })(s.nativeEvent)) { - if (y = s.nativeEvent.clientX, x = s.nativeEvent.clientY, s.nativeEvent.which === 3) return; - } else s.nativeEvent && gr(s.nativeEvent) && (y = s.nativeEvent.touches[0].clientX, x = s.nativeEvent.touches[0].clientY); + if (b = s.nativeEvent.clientX, x = s.nativeEvent.clientY, s.nativeEvent.which === 3) return; + } else s.nativeEvent && gr(s.nativeEvent) && (b = s.nativeEvent.touches[0].clientX, x = s.nativeEvent.touches[0].clientY); if (this.props.onResizeStart && this.resizable && this.props.onResizeStart(s, c, this.resizable) === !1) return; this.props.size && (this.props.size.height !== void 0 && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), this.props.size.width !== void 0 && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height; var z = this.window.getComputedStyle(this.resizable); @@ -9762,7 +9765,7 @@ ${k}`); } } this.setBoundingClientRect(), this.bindEvents(); - var ie = { original: { x: y, y: x, width: this.size.width, height: this.size.height }, isResizing: !0, backgroundStyle: Qt(Qt({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(s.target).cursor || "auto" }), direction: c, flexBasis: g }; + var ie = { original: { x: b, y: x, width: this.size.width, height: this.size.height }, isResizing: !0, backgroundStyle: Qt(Qt({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(s.target).cursor || "auto" }), direction: c, flexBasis: g }; this.setState(ie); } }, o.prototype.onMouseMove = function(s) { @@ -9771,9 +9774,9 @@ ${k}`); s.preventDefault(), s.stopPropagation(); } catch { } - var c = this.props, g = c.maxWidth, y = c.maxHeight, x = c.minWidth, z = c.minHeight, K = gr(s) ? s.touches[0].clientX : s.clientX, Y = gr(s) ? s.touches[0].clientY : s.clientY, ie = this.state, ue = ie.direction, he = ie.original, de = ie.width, Oe = ie.height, Ce = this.getParentSize(), ze = xi(Ce, this.window.innerWidth, this.window.innerHeight, g, y, x, z); - g = ze.maxWidth, y = ze.maxHeight, x = ze.minWidth, z = ze.minHeight; - var st = this.calculateNewSizeFromDirection(K, Y), Be = st.newHeight, je = st.newWidth, dt = this.calculateNewMaxFromBoundary(g, y), vt = this.calculateNewSizeFromAspectRatio(je, Be, { width: dt.maxWidth, height: dt.maxHeight }, { width: x, height: z }); + var c = this.props, g = c.maxWidth, b = c.maxHeight, x = c.minWidth, z = c.minHeight, K = gr(s) ? s.touches[0].clientX : s.clientX, Y = gr(s) ? s.touches[0].clientY : s.clientY, ie = this.state, ue = ie.direction, he = ie.original, de = ie.width, Oe = ie.height, Ce = this.getParentSize(), ze = xi(Ce, this.window.innerWidth, this.window.innerHeight, g, b, x, z); + g = ze.maxWidth, b = ze.maxHeight, x = ze.minWidth, z = ze.minHeight; + var st = this.calculateNewSizeFromDirection(K, Y), Be = st.newHeight, je = st.newWidth, dt = this.calculateNewMaxFromBoundary(g, b), vt = this.calculateNewSizeFromAspectRatio(je, Be, { width: dt.maxWidth, height: dt.maxHeight }, { width: x, height: z }); if (je = vt.newWidth, Be = vt.newHeight, this.props.grid) { var Bt = Po(je, this.props.grid[0]), xt = Po(Be, this.props.grid[1]), It = this.props.snapGap || 0; je = It === 0 || Math.abs(Bt - je) <= It ? Bt : je, Be = It === 0 || Math.abs(xt - Be) <= It ? xt : Be; @@ -9785,18 +9788,18 @@ ${k}`); this.flexDir === "row" ? mt.flexBasis = mt.width : this.flexDir === "column" && (mt.flexBasis = mt.height), this.setState(mt), this.props.onResize && this.props.onResize(s, ue, this.resizable, St); } }, o.prototype.onMouseUp = function(s) { - var c = this.state, g = c.isResizing, y = c.direction, x = c.original; + var c = this.state, g = c.isResizing, b = c.direction, x = c.original; if (g && this.resizable) { var z = { width: this.size.width - x.width, height: this.size.height - x.height }; - this.props.onResizeStop && this.props.onResizeStop(s, y, this.resizable, z), this.props.size && this.setState(this.props.size), this.unbindEvents(), this.setState({ isResizing: !1, backgroundStyle: Qt(Qt({}, this.state.backgroundStyle), { cursor: "auto" }) }); + this.props.onResizeStop && this.props.onResizeStop(s, b, this.resizable, z), this.props.size && this.setState(this.props.size), this.unbindEvents(), this.setState({ isResizing: !1, backgroundStyle: Qt(Qt({}, this.state.backgroundStyle), { cursor: "auto" }) }); } }, o.prototype.updateSize = function(s) { this.setState({ width: s.width, height: s.height }); }, o.prototype.renderResizer = function() { - var s = this, c = this.props, g = c.enable, y = c.handleStyles, x = c.handleClasses, z = c.handleWrapperStyle, K = c.handleWrapperClass, Y = c.handleComponent; + var s = this, c = this.props, g = c.enable, b = c.handleStyles, x = c.handleClasses, z = c.handleWrapperStyle, K = c.handleWrapperClass, Y = c.handleComponent; if (!g) return null; var ie = Object.keys(g).map(function(ue) { - return g[ue] !== !1 ? i.createElement(as, { key: ue, direction: ue, onResizeStart: s.onResizeStart, replaceStyles: y && y[ue], className: x && x[ue] }, Y && Y[ue] ? Y[ue] : null) : null; + return g[ue] !== !1 ? i.createElement(as, { key: ue, direction: ue, onResizeStart: s.onResizeStart, replaceStyles: b && b[ue], className: x && x[ue] }, Y && Y[ue] ? Y[ue] : null) : null; }); return i.createElement("div", { className: K, style: z }, ie); }, o.prototype.render = function() { @@ -9804,8 +9807,8 @@ ${k}`); return Si.indexOf(z) !== -1 || (x[z] = s.props[z]), x; }, {}), g = Qt(Qt(Qt({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 }); this.state.flexBasis && (g.flexBasis = this.state.flexBasis); - var y = this.props.as || "div"; - return i.createElement(y, Qt({ ref: this.ref, style: g, className: this.props.className }, c), this.state.isResizing && i.createElement("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()); + var b = this.props.as || "div"; + return i.createElement(b, Qt({ ref: this.ref, style: g, className: this.props.className }, c), this.state.isResizing && i.createElement("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()); }, o.defaultProps = { as: "div", onResizeStart: function() { }, onResize: function() { }, onResizeStop: function() { @@ -9837,7 +9840,7 @@ ${k}`); Jr(s, c), s.prototype = c === null ? Object.create(c) : (g.prototype = c.prototype, new g()); })(o, l), o.prototype.componentDidMount = function() { this.updateOffsetFromParent(); - var s = this.offsetFromParent, c = s.left, g = s.top, y = this.getDraggablePosition(), x = y.x, z = y.y; + var s = this.offsetFromParent, c = s.left, g = s.top, b = this.getDraggablePosition(), x = b.x, z = b.y; this.draggable.setState({ x: x - c, y: z - g }), this.forceUpdate(); }, o.prototype.getDraggablePosition = function() { var s = this.draggable.state; @@ -9872,22 +9875,22 @@ ${k}`); } }, o.prototype.onDragStart = function(s, c) { if (this.props.onDragStart && this.props.onDragStart(s, c), this.props.bounds) { - var g, y = this.getParent(), x = this.props.scale; - if (this.props.bounds === "parent") g = y; + var g, b = this.getParent(), x = this.props.scale; + if (this.props.bounds === "parent") g = b; else { if (this.props.bounds === "body") { - var z = y.getBoundingClientRect(), K = z.left, Y = z.top, ie = document.body.getBoundingClientRect(), ue = -(K - y.offsetLeft * x - ie.left) / x, he = -(Y - y.offsetTop * x - ie.top) / x, de = (document.body.offsetWidth - this.resizable.size.width * x) / x + ue, Oe = (document.body.offsetHeight - this.resizable.size.height * x) / x + he; + var z = b.getBoundingClientRect(), K = z.left, Y = z.top, ie = document.body.getBoundingClientRect(), ue = -(K - b.offsetLeft * x - ie.left) / x, he = -(Y - b.offsetTop * x - ie.top) / x, de = (document.body.offsetWidth - this.resizable.size.width * x) / x + ue, Oe = (document.body.offsetHeight - this.resizable.size.height * x) / x + he; return this.setState({ bounds: { top: he, right: de, bottom: Oe, left: ue } }); } if (this.props.bounds === "window") { if (!this.resizable) return; - var Ce = y.getBoundingClientRect(), ze = Ce.left, st = Ce.top, Be = -(ze - y.offsetLeft * x) / x, je = -(st - y.offsetTop * x) / x; + var Ce = b.getBoundingClientRect(), ze = Ce.left, st = Ce.top, Be = -(ze - b.offsetLeft * x) / x, je = -(st - b.offsetTop * x) / x; return de = (window.innerWidth - this.resizable.size.width * x) / x + Be, Oe = (window.innerHeight - this.resizable.size.height * x) / x + je, this.setState({ bounds: { top: je, right: de, bottom: Oe, left: Be } }); } g = document.querySelector(this.props.bounds); } - if (g instanceof HTMLElement && y instanceof HTMLElement) { - var dt = g.getBoundingClientRect(), vt = dt.left, Bt = dt.top, xt = y.getBoundingClientRect(), It = (vt - xt.left) / x, St = Bt - xt.top; + if (g instanceof HTMLElement && b instanceof HTMLElement) { + var dt = g.getBoundingClientRect(), vt = dt.left, Bt = dt.top, xt = b.getBoundingClientRect(), It = (vt - xt.left) / x, St = Bt - xt.top; if (this.resizable) { this.updateOffsetFromParent(); var mt = this.offsetFromParent; @@ -9902,12 +9905,12 @@ ${k}`); } }, o.prototype.onDragStop = function(s, c) { if (this.props.onDragStop) { - var g = this.offsetFromParent, y = g.left, x = g.top; - return this.props.onDragStop(s, Zt(Zt({}, c), { x: c.x + y, y: c.y + x })); + var g = this.offsetFromParent, b = g.left, x = g.top; + return this.props.onDragStop(s, Zt(Zt({}, c), { x: c.x + b, y: c.y + x })); } }, o.prototype.onResizeStart = function(s, c, g) { s.stopPropagation(), this.resizing = !0; - var y = this.props.scale, x = this.offsetFromParent, z = this.getDraggablePosition(); + var b = this.props.scale, x = this.offsetFromParent, z = this.getDraggablePosition(); if (this.resizingPosition = { x: z.x + x.left, y: z.y + x.top }, this.setState({ original: z }), this.props.bounds) { var K = this.getParent(), Y = void 0; Y = this.props.bounds === "parent" ? K : this.props.bounds === "body" ? document.body : this.props.bounds === "window" ? window : document.querySelector(this.props.bounds); @@ -9921,22 +9924,22 @@ ${k}`); de && typeof de == "string" && (de.endsWith("%") ? (Ce = Number(de.replace("%", "")) / 100, de = Oe.width * Ce) : de.endsWith("px") && (de = Number(de.replace("px", "")))); var ze = ie.getBoundingClientRect(), st = ze.left, Be = ze.top, je = this.props.bounds === "window" ? { left: 0, top: 0 } : Y.getBoundingClientRect(), dt = je.left, vt = je.top, Bt = this.getOffsetWidth(Y), xt = this.getOffsetHeight(Y), It = c.toLowerCase().endsWith("left"), St = c.toLowerCase().endsWith("right"), mt = c.startsWith("top"), En = c.startsWith("bottom"); if (It && this.resizable) { - var it = (st - dt) / y + this.resizable.size.width; + var it = (st - dt) / b + this.resizable.size.width; this.setState({ maxWidth: it > Number(he) ? he : it }); } - (St || this.props.lockAspectRatio && !It) && (it = Bt + (dt - st) / y, this.setState({ maxWidth: it > Number(he) ? he : it })), mt && this.resizable && (it = (Be - vt) / y + this.resizable.size.height, this.setState({ maxHeight: it > Number(de) ? de : it })), (En || this.props.lockAspectRatio && !mt) && (it = xt + (vt - Be) / y, this.setState({ maxHeight: it > Number(de) ? de : it })); + (St || this.props.lockAspectRatio && !It) && (it = Bt + (dt - st) / b, this.setState({ maxWidth: it > Number(he) ? he : it })), mt && this.resizable && (it = (Be - vt) / b + this.resizable.size.height, this.setState({ maxHeight: it > Number(de) ? de : it })), (En || this.props.lockAspectRatio && !mt) && (it = xt + (vt - Be) / b, this.setState({ maxHeight: it > Number(de) ? de : it })); } } else this.setState({ maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight }); this.props.onResizeStart && this.props.onResizeStart(s, c, g); - }, o.prototype.onResize = function(s, c, g, y) { - var x = { x: this.state.original.x, y: this.state.original.y }, z = -y.width, K = -y.height; + }, o.prototype.onResize = function(s, c, g, b) { + var x = { x: this.state.original.x, y: this.state.original.y }, z = -b.width, K = -b.height; ["top", "left", "topLeft", "bottomLeft", "topRight"].indexOf(c) !== -1 && (c === "bottomLeft" ? x.x += z : (c === "topRight" || (x.x += z), x.y += K)), x.x === this.draggable.state.x && x.y === this.draggable.state.y || this.draggable.setState(x), this.updateOffsetFromParent(); var Y = this.offsetFromParent, ie = this.getDraggablePosition().x + Y.left, ue = this.getDraggablePosition().y + Y.top; - this.resizingPosition = { x: ie, y: ue }, this.props.onResize && this.props.onResize(s, c, g, y, { x: ie, y: ue }); - }, o.prototype.onResizeStop = function(s, c, g, y) { + this.resizingPosition = { x: ie, y: ue }, this.props.onResize && this.props.onResize(s, c, g, b, { x: ie, y: ue }); + }, o.prototype.onResizeStop = function(s, c, g, b) { this.resizing = !1; var x = this.getMaxSizesFromProps(), z = x.maxWidth, K = x.maxHeight; - this.setState({ maxWidth: z, maxHeight: K }), this.props.onResizeStop && this.props.onResizeStop(s, c, g, y, this.resizingPosition); + this.setState({ maxWidth: z, maxHeight: K }), this.props.onResizeStop && this.props.onResizeStop(s, c, g, b, this.resizingPosition); }, o.prototype.updateSize = function(s) { this.resizable && this.resizable.updateSize({ width: s.width, height: s.height }); }, o.prototype.updatePosition = function(s) { @@ -9944,10 +9947,10 @@ ${k}`); }, o.prototype.updateOffsetFromParent = function() { var s = this.props.scale, c = this.getParent(), g = this.getSelfElement(); if (!c || g === null) return { top: 0, left: 0 }; - var y = c.getBoundingClientRect(), x = y.left, z = y.top, K = g.getBoundingClientRect(), Y = this.getDraggablePosition(); + var b = c.getBoundingClientRect(), x = b.left, z = b.top, K = g.getBoundingClientRect(), Y = this.getDraggablePosition(); this.offsetFromParent = { left: K.left - x - Y.x * s, top: K.top - z - Y.y * s }; }, o.prototype.render = function() { - var s = this.props, c = s.disableDragging, g = s.style, y = s.dragHandleClassName, x = s.position, z = s.onMouseDown, K = s.onMouseUp, Y = s.dragAxis, ie = s.dragGrid, ue = s.bounds, he = s.enableUserSelectHack, de = s.cancel, Oe = s.children, Ce = (s.onResizeStart, s.onResize, s.onResizeStop, s.onDragStart, s.onDrag, s.onDragStop, s.resizeHandleStyles), ze = s.resizeHandleClasses, st = s.resizeHandleComponent, Be = s.enableResizing, je = s.resizeGrid, dt = s.resizeHandleWrapperClass, vt = s.resizeHandleWrapperStyle, Bt = s.scale, xt = s.allowAnyClick, It = (function(qt, cn) { + var s = this.props, c = s.disableDragging, g = s.style, b = s.dragHandleClassName, x = s.position, z = s.onMouseDown, K = s.onMouseUp, Y = s.dragAxis, ie = s.dragGrid, ue = s.bounds, he = s.enableUserSelectHack, de = s.cancel, Oe = s.children, Ce = (s.onResizeStart, s.onResize, s.onResizeStop, s.onDragStart, s.onDrag, s.onDragStop, s.resizeHandleStyles), ze = s.resizeHandleClasses, st = s.resizeHandleComponent, Be = s.enableResizing, je = s.resizeGrid, dt = s.resizeHandleWrapperClass, vt = s.resizeHandleWrapperStyle, Bt = s.scale, xt = s.allowAnyClick, It = (function(qt, cn) { var Nt = {}; for (var Ft in qt) Object.prototype.hasOwnProperty.call(qt, Ft) && cn.indexOf(Ft) < 0 && (Nt[Ft] = qt[Ft]); if (qt != null && typeof Object.getOwnPropertySymbols == "function") { @@ -9957,10 +9960,10 @@ ${k}`); return Nt; })(s, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick"]), St = this.props.default ? Zt({}, this.props.default) : void 0; delete It.default; - var mt, En = c || y ? { cursor: "auto" } : { cursor: "move" }, it = Zt(Zt(Zt({}, sa), En), g), xn = this.offsetFromParent, jn = xn.left, lo = xn.top; + var mt, En = c || b ? { cursor: "auto" } : { cursor: "move" }, it = Zt(Zt(Zt({}, sa), En), g), xn = this.offsetFromParent, jn = xn.left, lo = xn.top; x && (mt = { x: x.x - jn, y: x.y - lo }); var Wt, Jt = this.resizing ? void 0 : mt, en = this.resizing ? "both" : Y; - return (0, i.createElement)(aa, { ref: this.refDraggable, handle: y ? "." + y : void 0, defaultPosition: St, onMouseDown: z, onMouseUp: K, onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop, axis: en, disabled: c, grid: ie, bounds: ue ? this.state.bounds : void 0, position: Jt, enableUserSelectHack: he, cancel: de, scale: Bt, allowAnyClick: xt, nodeRef: this.resizableElement }, (0, i.createElement)(Gn, Zt({}, It, { ref: this.refResizable, defaultSize: St, size: this.props.size, enable: typeof Be == "boolean" ? (Wt = Be, { bottom: Wt, bottomLeft: Wt, bottomRight: Wt, left: Wt, right: Wt, top: Wt, topLeft: Wt, topRight: Wt }) : Be, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: it, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.resizing ? this.state.maxHeight : this.props.maxHeight, grid: je, handleWrapperClass: dt, handleWrapperStyle: vt, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: Ce, handleClasses: ze, handleComponent: st, scale: this.props.scale }), Oe)); + return (0, i.createElement)(aa, { ref: this.refDraggable, handle: b ? "." + b : void 0, defaultPosition: St, onMouseDown: z, onMouseUp: K, onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop, axis: en, disabled: c, grid: ie, bounds: ue ? this.state.bounds : void 0, position: Jt, enableUserSelectHack: he, cancel: de, scale: Bt, allowAnyClick: xt, nodeRef: this.resizableElement }, (0, i.createElement)(Gn, Zt({}, It, { ref: this.refResizable, defaultSize: St, size: this.props.size, enable: typeof Be == "boolean" ? (Wt = Be, { bottom: Wt, bottomLeft: Wt, bottomRight: Wt, left: Wt, right: Wt, top: Wt, topLeft: Wt, topRight: Wt }) : Be, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: it, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.resizing ? this.state.maxHeight : this.props.maxHeight, grid: je, handleWrapperClass: dt, handleWrapperStyle: vt, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: Ce, handleClasses: ze, handleComponent: st, scale: this.props.scale }), Oe)); }, o.defaultProps = { maxWidth: Number.MAX_SAFE_INTEGER, maxHeight: Number.MAX_SAFE_INTEGER, scale: 1, onResizeStart: function() { }, onResize: function() { }, onResizeStop: function() { @@ -10007,13 +10010,13 @@ ${k}`); return i.createElement(eo, null, [this.props.contentBefore, i.createElement(la, { key: "navigation", definitions: o.map((s) => s.props.label), activeTab: this.props.activeTab, onClick: this.handleTabClick }), this.props.contentAfter], o.filter((s) => s.props.label === this.props.activeTab)); } } - var Ni = T(8142), yr = T.n(Ni); + var Ni = T(8142), br = T.n(Ni); class Do extends i.Component { render() { return [i.createElement("label", { htmlFor: this.props.id, key: "label" }, this.props.label, ":"), i.createElement("select", { id: this.props.id, value: this.props.value, onChange: this.props.onChange, key: "select" }, this.props.options.map((o) => i.createElement("option", { value: o, key: o }, o)))]; } shouldComponentUpdate(o) { - return !yr()(this.props, o); + return !br()(this.props, o); } } T(5627); @@ -10063,7 +10066,7 @@ ${k}`); return this.definition.node === this.globalTreeProps.activeNode; } shouldComponentUpdate(o) { - return !yr()(this.props, o); + return !br()(this.props, o); } } class Ii extends i.PureComponent { @@ -10073,27 +10076,27 @@ ${k}`); return this.props.dontRenderValue || (o = i.createElement("span", { className: "ck-inspector-tree-node__attribute__value" }, s)), i.createElement("span", { className: "ck-inspector-tree-node__attribute" }, i.createElement("span", { className: "ck-inspector-tree-node__attribute__name", title: s }, this.props.name), o); } } - class br extends i.Component { + class yr extends i.Component { render() { const o = this.props.definition, s = { className: ["ck-inspector-tree__position", o.type === "selection" ? "ck-inspector-tree__position_selection" : "", o.type === "marker" ? "ck-inspector-tree__position_marker" : "", o.isEnd ? "ck-inspector-tree__position_end" : ""].join(" "), style: {} }; return o.presentation && o.presentation.color && (s.style["--ck-inspector-color-tree-position"] = o.presentation.color), o.type === "marker" && (s["data-marker-name"] = o.name), i.createElement("span", s, "​"); } shouldComponentUpdate(o) { - return !yr()(this.props, o); + return !br()(this.props, o); } } class vr extends Ar { render() { - const o = this.definition, s = o.presentation, c = s && s.isEmpty, g = s && s.cssClass, y = this.getChildren(), x = ["ck-inspector-code", "ck-inspector-tree-node", this.isActive ? "ck-inspector-tree-node_active" : "", c ? "ck-inspector-tree-node_empty" : "", g], z = [], K = []; + const o = this.definition, s = o.presentation, c = s && s.isEmpty, g = s && s.cssClass, b = this.getChildren(), x = ["ck-inspector-code", "ck-inspector-tree-node", this.isActive ? "ck-inspector-tree-node_active" : "", c ? "ck-inspector-tree-node_empty" : "", g], z = [], K = []; o.positionsBefore && o.positionsBefore.forEach((ie, ue) => { - z.push(i.createElement(br, { key: "position-before:" + ue, definition: ie })); + z.push(i.createElement(yr, { key: "position-before:" + ue, definition: ie })); }), o.positionsAfter && o.positionsAfter.forEach((ie, ue) => { - K.push(i.createElement(br, { key: "position-after:" + ue, definition: ie })); + K.push(i.createElement(yr, { key: "position-after:" + ue, definition: ie })); }), o.positions && o.positions.forEach((ie, ue) => { - y.push(i.createElement(br, { key: "position" + ue, definition: ie })); + b.push(i.createElement(yr, { key: "position" + ue, definition: ie })); }); let Y = o.name; - return this.globalTreeProps.showElementTypes && (Y = o.elementType + ":" + Y), i.createElement("div", { className: x.join(" "), onClick: this.handleClick }, z, i.createElement("span", { className: "ck-inspector-tree-node__name" }, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), Y, this.getAttributes(), c ? "" : i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" })), i.createElement("div", { className: "ck-inspector-tree-node__content" }, y), c ? "" : i.createElement("span", { className: "ck-inspector-tree-node__name ck-inspector-tree-node__name_close" }, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), "/", Y, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" }), K)); + return this.globalTreeProps.showElementTypes && (Y = o.elementType + ":" + Y), i.createElement("div", { className: x.join(" "), onClick: this.handleClick }, z, i.createElement("span", { className: "ck-inspector-tree-node__name" }, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), Y, this.getAttributes(), c ? "" : i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" })), i.createElement("div", { className: "ck-inspector-tree-node__content" }, b), c ? "" : i.createElement("span", { className: "ck-inspector-tree-node__name ck-inspector-tree-node__name_close" }, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_open" }), "/", Y, i.createElement("span", { className: "ck-inspector-tree-node__name__bracket ck-inspector-tree-node__name__bracket_close" }), K)); } getAttributes() { const o = [], s = this.definition; @@ -10101,30 +10104,30 @@ ${k}`); return o; } shouldComponentUpdate(o) { - return !yr()(this.props, o); + return !br()(this.props, o); } } class ri extends Ar { render() { const o = this.definition, s = ["ck-inspector-tree-text", this.isActive ? "ck-inspector-tree-node_active" : ""].join(" "); let c = this.definition.text; - o.positions && o.positions.length && (c = c.split(""), Array.from(o.positions).sort((y, x) => y.offset < x.offset ? -1 : y.offset === x.offset ? 0 : 1).reverse().forEach((y, x) => { - c.splice(y.offset - o.startOffset, 0, i.createElement(br, { key: "position" + x, definition: y })); + o.positions && o.positions.length && (c = c.split(""), Array.from(o.positions).sort((b, x) => b.offset < x.offset ? -1 : b.offset === x.offset ? 0 : 1).reverse().forEach((b, x) => { + c.splice(b.offset - o.startOffset, 0, i.createElement(yr, { key: "position" + x, definition: b })); })); const g = [c]; - return o.positionsBefore && o.positionsBefore.length && o.positionsBefore.forEach((y, x) => { - g.unshift(i.createElement(br, { key: "position-before:" + x, definition: y })); - }), o.positionsAfter && o.positionsAfter.length && o.positionsAfter.forEach((y, x) => { - g.push(i.createElement(br, { key: "position-after:" + x, definition: y })); + return o.positionsBefore && o.positionsBefore.length && o.positionsBefore.forEach((b, x) => { + g.unshift(i.createElement(yr, { key: "position-before:" + x, definition: b })); + }), o.positionsAfter && o.positionsAfter.length && o.positionsAfter.forEach((b, x) => { + g.push(i.createElement(yr, { key: "position-after:" + x, definition: b })); }), i.createElement("span", { className: s, onClick: this.handleClick }, i.createElement("span", { className: "ck-inspector-tree-node__content" }, this.globalTreeProps.showCompactText ? "" : this.getAttributes(), this.globalTreeProps.showCompactText ? "" : '"', g, this.globalTreeProps.showCompactText ? "" : '"')); } getAttributes() { const o = [], s = this.definition, c = s.presentation, g = c && c.dontRenderAttributeValue; - for (const [y, x] of s.attributes) o.push(i.createElement(Ii, { key: y, name: y, value: x, dontRenderValue: g })); + for (const [b, x] of s.attributes) o.push(i.createElement(Ii, { key: b, name: b, value: x, dontRenderValue: g })); return i.createElement("span", { className: "ck-inspector-tree-text__attributes" }, o); } shouldComponentUpdate(o) { - return !yr()(this.props, o); + return !br()(this.props, o); } } class Io extends i.Component { @@ -10163,7 +10166,7 @@ ${k}`); return i.createElement(eo, null, [i.createElement("div", { className: "ck-inspector-tree__config", key: "root-cfg" }, i.createElement(Do, { id: "view-root-select", label: "Root", value: this.props.currentRootName, options: Pr(o).map((s) => s.rootName), onChange: this.handleRootChange })), i.createElement("span", { className: "ck-inspector-separator", key: "separator" }), i.createElement("div", { className: "ck-inspector-tree__config", key: "text-cfg" }, i.createElement(Zn, { label: "Compact text", id: "model-compact-text", isChecked: this.props.showCompactText, onChange: this.props.toggleModelShowCompactText }), i.createElement(Zn, { label: "Show markers", id: "model-show-markers", isChecked: this.props.showMarkers, onChange: this.props.toggleModelShowMarkers }))], i.createElement(kr, { className: [this.props.showMarkers ? "" : "ck-inspector-model-tree__hide-markers"], definition: this.props.treeDefinition, textDirection: o.locale.contentLanguageDirection, onClick: this.handleTreeClick, showCompactText: this.props.showCompactText, activeNode: this.props.currentNode })); } } - const Jn = _e(({ editors: l, currentEditorName: o, model: { treeDefinition: s, currentRootName: c, currentNode: g, ui: { showMarkers: y, showCompactText: x } } }) => ({ treeDefinition: s, editors: l, currentEditorName: o, currentRootName: c, currentNode: g, showMarkers: y, showCompactText: x }), { toggleModelShowCompactText: function() { + const Jn = _e(({ editors: l, currentEditorName: o, model: { treeDefinition: s, currentRootName: c, currentNode: g, ui: { showMarkers: b, showCompactText: x } } }) => ({ treeDefinition: s, editors: l, currentEditorName: o, currentRootName: c, currentNode: g, showMarkers: b, showCompactText: x }), { toggleModelShowCompactText: function() { return { type: Dt }; }, setModelCurrentRootName: function(l) { return { type: Qe, currentRootName: l }; @@ -10177,13 +10180,13 @@ ${k}`); render() { const o = this.props.presentation && this.props.presentation.expandCollapsibles, s = []; for (const c in this.props.itemDefinitions) { - const g = this.props.itemDefinitions[c], { subProperties: y, presentation: x = {} } = g, z = y && Object.keys(y).length, K = Qr(String(g.value), 2e3), Y = [i.createElement(ca, { key: `${this.props.name}-${c}-name`, name: c, listUid: this.props.name, canCollapse: z, colorBox: x.colorBox, expandCollapsibles: o, onClick: this.props.onPropertyTitleClick, title: g.title }), i.createElement("dd", { key: `${this.props.name}-${c}-value` }, i.createElement("input", { id: `${this.props.name}-${c}-value-input`, type: "text", value: K, readOnly: !0 }))]; - z && Y.push(i.createElement(oi, { name: `${this.props.name}-${c}`, key: `${this.props.name}-${c}`, itemDefinitions: y, presentation: this.props.presentation })), s.push(Y); + const g = this.props.itemDefinitions[c], { subProperties: b, presentation: x = {} } = g, z = b && Object.keys(b).length, K = Qr(String(g.value), 2e3), Y = [i.createElement(ca, { key: `${this.props.name}-${c}-name`, name: c, listUid: this.props.name, canCollapse: z, colorBox: x.colorBox, expandCollapsibles: o, onClick: this.props.onPropertyTitleClick, title: g.title }), i.createElement("dd", { key: `${this.props.name}-${c}-value` }, i.createElement("input", { id: `${this.props.name}-${c}-value-input`, type: "text", value: K, readOnly: !0 }))]; + z && Y.push(i.createElement(oi, { name: `${this.props.name}-${c}`, key: `${this.props.name}-${c}`, itemDefinitions: b, presentation: this.props.presentation })), s.push(Y); } return i.createElement("dl", { className: "ck-inspector-property-list ck-inspector-code" }, s); } shouldComponentUpdate(o) { - return !yr()(this.props, o); + return !br()(this.props, o); } } class ca extends i.PureComponent { @@ -10281,8 +10284,8 @@ ${k}`); } } const us = _e(({ editors: l, currentEditorName: o, model: { ranges: s } }) => { - const c = l.get(o), g = (function(y, x) { - const z = y.model.document.selection, K = z.anchor, Y = z.focus, ie = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isGravityOverridden: { value: z.isGravityOverridden }, rangeCount: { value: z.rangeCount } }, attributes: {}, anchor: Mo(zt(K)), focus: Mo(zt(Y)), ranges: {} }; + const c = l.get(o), g = (function(b, x) { + const z = b.model.document.selection, K = z.anchor, Y = z.focus, ie = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isGravityOverridden: { value: z.isGravityOverridden }, rangeCount: { value: z.rangeCount } }, attributes: {}, anchor: Mo(zt(K)), focus: Mo(zt(Y)), ranges: {} }; for (const [ue, he] of z.getAttributes()) ie.attributes[ue] = { value: he }; x.forEach((ue, he) => { ie.ranges[he] = { value: "", subProperties: { start: { value: "", subProperties: pt(Mo(ue.start)) }, end: { value: "", subProperties: pt(Mo(ue.end)) } } }; @@ -10292,22 +10295,22 @@ ${k}`); })(c, s); return { editor: c, currentEditorName: o, info: g }; }, {})(cs); - function Mo({ path: l, stickiness: o, index: s, isAtEnd: c, isAtStart: g, offset: y, textNode: x }) { - return { path: { value: l }, stickiness: { value: o }, index: { value: s }, isAtEnd: { value: c }, isAtStart: { value: g }, offset: { value: y }, textNode: { value: x } }; + function Mo({ path: l, stickiness: o, index: s, isAtEnd: c, isAtStart: g, offset: b, textNode: x }) { + return { path: { value: l }, stickiness: { value: o }, index: { value: s }, isAtEnd: { value: c }, isAtStart: { value: g }, offset: { value: b }, textNode: { value: x } }; } class ds extends i.Component { render() { const o = (function(g) { - const y = {}; + const b = {}; for (const x of g) { const z = x.name.split(":"); - let K = y; + let K = b; for (const Y of z) { const ie = Y === z[z.length - 1]; K = K[Y] ? K[Y] : K[Y] = ie ? x : {}; } } - return y; + return b; })(this.props.markers), s = da(o), c = this.props.editors.get(this.props.currentEditorName); return Object.keys(o).length ? i.createElement(er, { header: [i.createElement("span", { key: "link" }, i.createElement("a", { href: "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_model_markercollection-Marker.html", target: "_blank", rel: "noopener noreferrer" }, i.createElement("b", null, "Markers"))), i.createElement(Et, { key: "log", icon: i.createElement($t, null), text: "Log in console", onClick: () => Ye.log([...c.model.markers]) })], lists: [{ name: "Markers tree", itemDefinitions: s, presentation: { expandCollapsibles: !0 } }] }) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "No markers in the document.")); } @@ -10352,10 +10355,10 @@ ${k}`); return i.createElement(eo, null, [i.createElement("div", { className: "ck-inspector-tree__config", key: "root-cfg" }, i.createElement(Do, { id: "view-root-select", label: "Root", value: this.props.currentRootName, options: Mn(o).map((s) => s.rootName), onChange: this.handleRootChange })), i.createElement("span", { className: "ck-inspector-separator", key: "separator" }), i.createElement("div", { className: "ck-inspector-tree__config", key: "types-cfg" }, i.createElement(Zn, { label: "Show element types", id: "view-show-types", isChecked: this.props.showElementTypes, onChange: this.props.toggleViewShowElementTypes }))], i.createElement(kr, { definition: this.props.treeDefinition, textDirection: o.locale.contentLanguageDirection, onClick: this.handleTreeClick, showCompactText: "true", showElementTypes: this.props.showElementTypes, activeNode: this.props.currentNode })); } } - const fa = _e(({ editors: l, currentEditorName: o, view: { treeDefinition: s, currentRootName: c, currentNode: g, ui: { showElementTypes: y } } }) => ({ treeDefinition: s, editors: l, currentEditorName: o, currentRootName: c, currentNode: g, showElementTypes: y }), { setViewCurrentRootName: function(l) { + const fa = _e(({ editors: l, currentEditorName: o, view: { treeDefinition: s, currentRootName: c, currentNode: g, ui: { showElementTypes: b } } }) => ({ treeDefinition: s, editors: l, currentEditorName: o, currentRootName: c, currentNode: g, showElementTypes: b }), { setViewCurrentRootName: function(l) { return { type: Rr, currentRootName: l }; }, toggleViewShowElementTypes: function() { - return { type: be }; + return { type: ye }; }, setViewCurrentNode: function(l) { return { type: M, currentNode: l }; }, setViewActiveTab: tt })(pa); @@ -10368,7 +10371,7 @@ ${k}`); } render() { const o = this.props.currentNodeDefinition; - return o ? i.createElement(er, { header: [i.createElement("span", { key: "link" }, i.createElement("a", { href: o.url, target: "_blank", rel: "noopener noreferrer" }, i.createElement("b", null, o.type), ":"), o.type === "Text" ? i.createElement("em", null, o.name) : o.name), i.createElement(Et, { key: "log", icon: i.createElement($t, null), text: "Log in console", onClick: this.handleNodeLogButtonClick })], lists: [{ name: "Attributes", url: o.url, itemDefinitions: o.attributes }, { name: "Properties", url: o.url, itemDefinitions: o.properties }, { name: "Custom Properties", url: `${bt}_element-Element.html#function-getCustomProperty`, itemDefinitions: o.customProperties }] }) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Select a node in the tree to inspect")); + return o ? i.createElement(er, { header: [i.createElement("span", { key: "link" }, i.createElement("a", { href: o.url, target: "_blank", rel: "noopener noreferrer" }, i.createElement("b", null, o.type), ":"), o.type === "Text" ? i.createElement("em", null, o.name) : o.name), i.createElement(Et, { key: "log", icon: i.createElement($t, null), text: "Log in console", onClick: this.handleNodeLogButtonClick })], lists: [{ name: "Attributes", url: o.url, itemDefinitions: o.attributes }, { name: "Properties", url: o.url, itemDefinitions: o.properties }, { name: "Custom Properties", url: `${yt}_element-Element.html#function-getCustomProperty`, itemDefinitions: o.customProperties }] }) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Select a node in the tree to inspect")); } } const ha = _e(({ view: { currentNodeDefinition: l } }) => ({ currentNodeDefinition: l }), {})(nr), oo = "https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view_selection-Selection.html"; @@ -10390,8 +10393,8 @@ ${k}`); } } const io = _e(({ editors: l, currentEditorName: o, view: { ranges: s } }) => { - const c = l.get(o), g = (function(y, x) { - const z = y.editing.view.document.selection, K = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isFake: { value: z.isFake }, rangeCount: { value: z.rangeCount } }, anchor: ai(jt(z.anchor)), focus: ai(jt(z.focus)), ranges: {} }; + const c = l.get(o), g = (function(b, x) { + const z = b.editing.view.document.selection, K = { properties: { isCollapsed: { value: z.isCollapsed }, isBackward: { value: z.isBackward }, isFake: { value: z.isFake }, rangeCount: { value: z.rangeCount } }, anchor: ai(jt(z.anchor)), focus: ai(jt(z.focus)), ranges: {} }; x.forEach((Y, ie) => { K.ranges[ie] = { value: "", subProperties: { start: { value: "", subProperties: pt(ai(Y.start)) }, end: { value: "", subProperties: pt(ai(Y.end)) } } }; }); @@ -10409,7 +10412,7 @@ ${k}`); } } const ga = _e(({ currentEditorName: l, view: { ui: { activeTab: o } } }) => ({ currentEditorName: l, activeTab: o }), { setViewActiveTab: tt, updateViewState: He })(hs); - class ya extends i.Component { + class ba extends i.Component { constructor(o) { super(o), this.handleTreeClick = this.handleTreeClick.bind(this); } @@ -10420,9 +10423,9 @@ ${k}`); return i.createElement(eo, null, i.createElement(kr, { definition: this.props.treeDefinition, onClick: this.handleTreeClick, activeNode: this.props.currentCommandName })); } } - const ba = _e(({ commands: { treeDefinition: l, currentCommandName: o } }) => ({ treeDefinition: l, currentCommandName: o }), { setCommandsCurrentCommandName: function(l) { + const ya = _e(({ commands: { treeDefinition: l, currentCommandName: o } }) => ({ treeDefinition: l, currentCommandName: o }), { setCommandsCurrentCommandName: function(l) { return { type: wt, currentCommandName: l }; - } })(ya); + } })(ba); function ao() { return ao = Object.assign ? Object.assign.bind() : function(l) { for (var o = 1; o < arguments.length; o++) { @@ -10451,7 +10454,7 @@ ${k}`); const si = _e(({ editors: l, currentEditorName: o, commands: { currentCommandName: s, currentCommandDefinition: c } }) => ({ editors: l, currentEditorName: o, currentCommandName: s, currentCommandDefinition: c }), {})(ms); class gs extends i.Component { render() { - return this.props.currentEditorName ? i.createElement(Yt, { splitVertically: "true" }, i.createElement(ba, null), i.createElement(ni, null, i.createElement(to, { activeTab: "Inspect" }, i.createElement(si, { label: "Inspect" })))) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Nothing to show. Attach another editor instance to start inspecting.")); + return this.props.currentEditorName ? i.createElement(Yt, { splitVertically: "true" }, i.createElement(ya, null), i.createElement(ni, null, i.createElement(to, { activeTab: "Inspect" }, i.createElement(si, { label: "Inspect" })))) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Nothing to show. Attach another editor instance to start inspecting.")); } } const Li = _e(({ currentEditorName: l }) => ({ currentEditorName: l }), { updateCommandsState: Lt })(gs); @@ -10467,7 +10470,7 @@ ${k}`); } } const ka = _e(({ schema: { treeDefinition: l, currentSchemaDefinitionName: o } }) => ({ treeDefinition: l, currentSchemaDefinitionName: o }), { setSchemaCurrentDefinitionName: Gr })(va); - class ys extends i.Component { + class bs extends i.Component { render() { const o = this.props.currentSchemaDefinition; return o ? i.createElement(er, { header: [i.createElement("span", { key: "link" }, i.createElement("a", { href: o.urls.general, target: "_blank", rel: "noopener noreferrer" }, i.createElement("b", null, o.type)), ":", this.props.currentSchemaDefinitionName)], lists: [{ name: "Properties", url: o.urls.general, itemDefinitions: o.properties }, { name: "Allowed attributes", url: o.urls.allowAttributes, itemDefinitions: o.allowAttributes }, { name: "Allowed children", url: o.urls.allowChildren, itemDefinitions: o.allowChildren, onPropertyTitleClick: (s) => { @@ -10477,10 +10480,10 @@ ${k}`); } }] }) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Select a schema definition to inspect")); } } - const bs = _e(({ editors: l, currentEditorName: o, schema: { currentSchemaDefinitionName: s, currentSchemaDefinition: c } }) => ({ editors: l, currentEditorName: o, currentSchemaDefinitionName: s, currentSchemaDefinition: c }), { setSchemaCurrentDefinitionName: Gr })(ys); + const ys = _e(({ editors: l, currentEditorName: o, schema: { currentSchemaDefinitionName: s, currentSchemaDefinition: c } }) => ({ editors: l, currentEditorName: o, currentSchemaDefinitionName: s, currentSchemaDefinition: c }), { setSchemaCurrentDefinitionName: Gr })(bs); class vs extends i.Component { render() { - return this.props.currentEditorName ? i.createElement(Yt, { splitVertically: "true" }, i.createElement(ka, null), i.createElement(ni, null, i.createElement(to, { activeTab: "Inspect" }, i.createElement(bs, { label: "Inspect" })))) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Nothing to show. Attach another editor instance to start inspecting.")); + return this.props.currentEditorName ? i.createElement(Yt, { splitVertically: "true" }, i.createElement(ka, null), i.createElement(ni, null, i.createElement(to, { activeTab: "Inspect" }, i.createElement(ys, { label: "Inspect" })))) : i.createElement(Yt, { isEmpty: "true" }, i.createElement("p", null, "Nothing to show. Attach another editor instance to start inspecting.")); } } const ks = _e(({ currentEditorName: l }) => ({ currentEditorName: l }))(vs); @@ -10679,14 +10682,14 @@ ${k}`); static attach(...o) { const { CKEDITOR_VERSION: s } = window; if (s) { - const [y] = s.split(".").map(Number); - y < 34 && Ye.warn("[CKEditorInspector] The inspector requires using CKEditor 5 in version 34 or higher. If you cannot update CKEditor 5, consider downgrading the major version of the inspector to version 3."); + const [b] = s.split(".").map(Number); + b < 34 && Ye.warn("[CKEditorInspector] The inspector requires using CKEditor 5 in version 34 or higher. If you cannot update CKEditor 5, consider downgrading the major version of the inspector to version 3."); } else Ye.warn("[CKEditorInspector] Could not determine a version of CKEditor 5. Some of the functionalities may not work as expected."); const { editors: c, options: g } = qn(o); - for (const y in c) { - const x = c[y]; - Ye.group("%cAttached the inspector to a CKEditor 5 instance. To learn more, visit https://ckeditor.com/docs/ckeditor5.", "font-weight: bold;"), Ye.log(`Editor instance "${y}"`, x), Ye.groupEnd(), $e._editors.set(y, x), x.on("destroy", () => { - $e.detach(y); + for (const b in c) { + const x = c[b]; + Ye.group("%cAttached the inspector to a CKEditor 5 instance. To learn more, visit https://ckeditor.com/docs/ckeditor5.", "font-weight: bold;"), Ye.log(`Editor instance "${b}"`, x), Ye.groupEnd(), $e._editors.set(b, x), x.on("destroy", () => { + $e.detach(b); }), $e._mount(g), $e._updateEditorsState(); } return Object.keys(c); @@ -10694,8 +10697,8 @@ ${k}`); static attachToAll(o) { const s = document.querySelectorAll(".ck.ck-content.ck-editor__editable"), c = []; for (const g of s) { - const y = g.ckeditorInstance; - y && !$e._isAttachedTo(y) && c.push(...$e.attach(y, o)); + const b = g.ckeditorInstance; + b && !$e._isAttachedTo(b) && c.push(...$e.attach(b, o)); } return c; } @@ -10716,19 +10719,19 @@ ${k}`); const s = $e._wrapper = document.createElement("div"); let c, g; s.className = "ck-inspector-wrapper", document.body.appendChild(s), $e._editorListener = new Yr({ onModelChange() { - const y = $e._store; - y.getState().ui.isCollapsed || (y.dispatch(Nn()), y.dispatch(Lt())); + const b = $e._store; + b.getState().ui.isCollapsed || (b.dispatch(Nn()), b.dispatch(Lt())); }, onViewRender() { - const y = $e._store; - y.getState().ui.isCollapsed || y.dispatch(He()); + const b = $e._store; + b.getState().ui.isCollapsed || b.dispatch(He()); }, onReadOnlyChange() { $e._store.dispatch({ type: sr }); - } }), $e._store = b(oa, { editors: $e._editors, currentEditorName: sn($e._editors), currentEditorGlobals: {}, ui: { isCollapsed: o.isCollapsed } }), $e._store.subscribe(() => { - const y = $e._store.getState(), x = y.editors.get(y.currentEditorName); + } }), $e._store = y(oa, { editors: $e._editors, currentEditorName: sn($e._editors), currentEditorGlobals: {}, ui: { isCollapsed: o.isCollapsed } }), $e._store.subscribe(() => { + const b = $e._store.getState(), x = b.editors.get(b.currentEditorName); c !== x && (c && $e._editorListener.stopListening(c), x && $e._editorListener.startListening(x), c = x); }), $e._store.subscribe(() => { - const y = $e._store, x = y.getState().ui.isCollapsed, z = g && !x; - g = x, z && (y.dispatch(Nn()), y.dispatch(Lt()), y.dispatch(He())); + const b = $e._store, x = b.getState().ui.isCollapsed, z = g && !x; + g = x, z && (b.dispatch(Nn()), b.dispatch(Lt()), b.dispatch(He())); }), u.render(i.createElement(ee, { store: $e._store }, i.createElement(Os, null)), s); } static _isAttachedTo(o) { @@ -10805,7 +10808,7 @@ const qu = function(Te) { let f = u, k = !1; const d = Craft.siteId; let C = null, m = null; - const b = Te.getData(), v = [...u.matchAll(/data-entry-id="([0-9]+)/g)]; + const y = Te.getData(), v = [...u.matchAll(/data-entry-id="([0-9]+)/g)]; X.stop(); const N = $(Te.ui.view.element); let D = N.parents("form").data("elementEditor"); @@ -10820,7 +10823,7 @@ const qu = function(Te) { let ee = null; if (v[se][1] && (ee = v[se][1]), ee !== null) { const R = new RegExp('data-entry-id="' + ee + '"'); - if (!(E === Te.id && !R.test(b))) { + if (!(E === Te.id && !R.test(y))) { let F = null; E !== Te.id && (_.includes(Au) ? F = Te.config.get("entryTypeOptions").map((H) => H.value) : (Craft.cp.displayError( Craft.t( diff --git a/src/web/assets/ckeditor/src/link/linkelementview.js b/src/web/assets/ckeditor/src/link/linkelementview.js index e1178f7e..95e6fabe 100644 --- a/src/web/assets/ckeditor/src/link/linkelementview.js +++ b/src/web/assets/ckeditor/src/link/linkelementview.js @@ -142,6 +142,12 @@ export default class CraftLinkElementView extends View { Craft.addActionsToChip($element, actions); //Craft.cp.elementThumbLoader.load($element); + // only show the sites dropdown, if an element has been selected + this.linkUi.sitesView.siteDropdownView.buttonView.set( + 'isVisible', + true, + ); + // reshuffle focus linkUi._alignFocus(); } else { diff --git a/src/web/assets/ckeditor/src/link/linkui.js b/src/web/assets/ckeditor/src/link/linkui.js index cb7cef94..b3a56fb9 100644 --- a/src/web/assets/ckeditor/src/link/linkui.js +++ b/src/web/assets/ckeditor/src/link/linkui.js @@ -382,9 +382,11 @@ export default class CraftLinkUI extends Plugin { linkOption: linkOption, value: this._urlInputValue(), }); + + // start with a hidden sites dropdown - we only want to show it if an element is selected if (this.sitesView !== null) { if (this.sitesView?.siteDropdownView?.buttonView) { - this.sitesView.siteDropdownView.buttonView.set('isVisible', true); + this.sitesView.siteDropdownView.buttonView.set('isVisible', false); } } } From 1d2661b0c7f46656093f7e54cf6e70b62be79c54 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Mon, 30 Mar 2026 11:41:28 -0700 Subject: [PATCH 2/2] Release note [ci skip] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4838ff5..27e23901 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Fixed a bug where invisible characters were being stripped out of field contents. ([#537](https://github.com/craftcms/ckeditor/issues/537)) +- Fixed a bug where Link modals had empty Site menus when no element was selected. ([#534](https://github.com/craftcms/ckeditor/discussions/534), [#545](https://github.com/craftcms/ckeditor/issues/545)) ## 5.3.1 - 2026-03-20