diff --git a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js index 51ba012c..a3054f49 100644 --- a/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js +++ b/src/web/assets/ckeditor/dist/ckeditor5-craftcms.js @@ -1,11 +1,11 @@ -import { ImageTextAlternativeUI as su, ButtonView as Jo, FormRowView as lu, ImageInsertUI as cu, IconImage as uu, Command as El, Plugin as $n, ImageUtils as Mc, Collection as na, ViewModel as yi, createDropdown as ra, DropdownButtonView as du, IconObjectSizeMedium as pu, addListToDropdown as os, Widget as fu, viewToModelPositionOutsideModelElement as hu, toWidget as mu, DomEventObserver as gu, View as Tr, IconPlus as zc, WidgetToolbarRepository as Pc, isWidget as yu, findAttributeRange as bu, LinkUI as Dc, ContextualBalloon as vu, ModelRange as ku, SwitchButtonView as wu, LabeledFieldView as _u, createLabeledInputText as Eu, ClassicEditor as xu, SourceEditing as Ac, Heading as Su } from "ckeditor5"; +import { ImageTextAlternativeUI as lu, ButtonView as Jo, FormRowView as cu, ImageInsertUI as uu, IconImage as du, Command as El, Plugin as $n, ImageUtils as Mc, Collection as na, ViewModel as yi, createDropdown as ra, DropdownButtonView as pu, IconObjectSizeMedium as fu, addListToDropdown as os, Widget as hu, viewToModelPositionOutsideModelElement as mu, toWidget as gu, DomEventObserver as yu, View as Tr, IconPlus as zc, WidgetToolbarRepository as Pc, isWidget as bu, findAttributeRange as vu, LinkUI as Dc, ContextualBalloon as ku, ModelRange as wu, SwitchButtonView as _u, LabeledFieldView as Eu, createLabeledInputText as xu, ClassicEditor as Su, SourceEditing as Ac, Heading as Cu } from "ckeditor5"; /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -const Ic = /#asset:\d+(?:@\d+)?:alt$/, Cu = /#asset:(\d+)(?:@(\d+))?/; -class ed extends su { +const Ic = /#asset:\d+(?:@\d+)?:alt$/, Tu = /#asset:(\d+)(?:@(\d+))?/; +class td extends lu { static get pluginName() { return "CraftImageTextAlternativeUI"; } @@ -39,7 +39,7 @@ class ed extends su { _srcInfo(k) { if (!k || !k.hasAttribute("src")) return null; - const v = k.getAttribute("src").match(Cu); + const v = k.getAttribute("src").match(Tu); return v ? { assetId: v[1], siteId: v[2] ?? null @@ -52,7 +52,7 @@ class ed extends su { withText: !0, class: "btn" }), v.render(), this.listenTo(v, "execute", () => this._syncFromAsset()); - const T = new lu(k.locale, { + const T = new cu(k.locale, { children: [v] }); this._form.children.add(T), this._form.focusTracker.add(v.element), this._form._focusables.add(v), this._syncButton = v, this._syncButtonRow = T; @@ -99,7 +99,7 @@ class ed extends su { * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -class td extends cu { +class nd extends uu { static get pluginName() { return "CraftImageInsertUI"; } @@ -146,7 +146,7 @@ class td extends cu { } _createToolbarImageButton(k) { const v = this.editor, T = v.t, O = new Jo(k); - O.isEnabled = !0, O.label = T("Insert image"), O.icon = uu, O.tooltip = !0; + O.isEnabled = !0, O.label = T("Insert image"), O.icon = du, O.tooltip = !0; const K = v.commands.get("insertImage"); return O.bind("isEnabled").to(K), this.listenTo(O, "execute", () => this._showImageSelectModal()), O; } @@ -358,7 +358,7 @@ class td extends cu { * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -class Tu extends El { +class Ou extends El { refresh() { const k = this._element(), v = this._srcInfo(k); this.isEnabled = !!v, v ? this.value = { @@ -437,7 +437,7 @@ class jc extends $n { super(k), k.config.define("transforms", []); } init() { - const k = this.editor, v = new Tu(k); + const k = this.editor, v = new Ou(k); k.commands.add("transformImage", v); } } @@ -446,8 +446,8 @@ class jc extends $n { * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -const Ou = pu; -class Nu extends $n { +const Nu = fu; +class Pu extends $n { static get requires() { return [jc]; } @@ -476,11 +476,11 @@ class Nu extends $n { value: u.handle })) ], i = (u) => { - const f = v.commands.get("transformImage"), _ = ra(u, du), d = _.buttonView; + const f = v.commands.get("transformImage"), _ = ra(u, pu), d = _.buttonView; return d.set({ tooltip: T("Resize image"), commandValue: null, - icon: Ou, + icon: Nu, isToggleable: !0, label: this._getOptionLabelValue(O), withText: !0, @@ -535,11 +535,11 @@ class Nu extends $n { icon: null }) }; - K.model.bind("isOn").to(v, "value", Pu(O.value)), T.add(K); + K.model.bind("isOn").to(v, "value", Du(O.value)), T.add(K); }), T; } } -function Pu(Se) { +function Du(Se) { return (k) => { const v = k; return Se === null && v === Se ? !0 : v !== null && v.transform === Se; @@ -550,9 +550,9 @@ function Pu(Se) { * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -class nd extends $n { +class rd extends $n { static get requires() { - return [jc, Nu]; + return [jc, Pu]; } static get pluginName() { return "ImageTransform"; @@ -563,7 +563,7 @@ class nd extends $n { * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -class Du extends El { +class Iu extends El { refresh() { const k = this._element(), v = this._srcInfo(k); if (this.isEnabled = !!v, this.isEnabled) { @@ -700,7 +700,7 @@ class Lc extends $n { return "ImageEditorEditing"; } init() { - const k = this.editor, v = new Du(k); + const k = this.editor, v = new Iu(k); k.commands.add("imageEditor", v); } } @@ -709,7 +709,7 @@ class Lc extends $n { * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -class Iu extends $n { +class Ru extends $n { static get requires() { return [Lc]; } @@ -741,15 +741,15 @@ class Iu extends $n { * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -class rd extends $n { +class od extends $n { static get requires() { - return [Lc, Iu]; + return [Lc, Ru]; } static get pluginName() { return "ImageEditor"; } } -class Ru extends El { +class Mu extends El { execute(k) { const v = this.editor, T = v.model.document.selection; if (!T.isCollapsed && T.getFirstRange()) { @@ -774,12 +774,12 @@ class Ru extends El { this.isEnabled = !0; } } -class Mu extends $n { +class zu extends $n { /** * @inheritDoc */ static get requires() { - return [fu]; + return [hu]; } /** * @inheritDoc @@ -793,9 +793,9 @@ class Mu extends $n { init() { this._defineSchema(), this._defineConverters(); const k = this.editor; - k.commands.add("insertEntry", new Ru(k)), k.editing.mapper.on( + k.commands.add("insertEntry", new Mu(k)), k.editing.mapper.on( "viewToModelPosition", - hu(k.model, (v) => { + mu(k.model, (v) => { v.hasClass("cke-entry-card"); }) ); @@ -838,7 +838,7 @@ class Mu extends $n { "data-entry-id": K, "data-site-id": i }); - return v(T, O, u), mu(u, O); + return v(T, O, u), gu(u, O); } }), k.for("dataDowncast").elementToElement({ model: "craftEntryModel", @@ -905,7 +905,7 @@ class Mu extends $n { } } } -class zu extends gu { +class Au extends yu { constructor(k) { super(k), this.domEventType = "dblclick"; } @@ -913,7 +913,7 @@ class zu extends gu { this.fire(k.type, k); } } -class Au extends Tr { +class ju extends Tr { constructor(k, v = {}) { super(k), this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor, this.entryType = v.entryType; const T = this.editor.commands.get("insertEntry"); @@ -942,7 +942,7 @@ class Au extends Tr { this.element.children[0].focus(); } } -class ju extends Tr { +class Lu extends Tr { constructor(k, v = {}) { super(k), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor; const T = v.entryTypes, O = this.editor.commands.get("insertEntry"); @@ -974,7 +974,7 @@ class ju extends Tr { this.element.children[0].children[0].focus(); } } -class Lu extends Tr { +class Fu extends Tr { constructor(k, v = {}) { super(k), this.bindTemplate, this.set("isFocused", !1), this.entriesUi = v.entriesUi, this.editor = this.entriesUi.editor; const T = this.editor.commands.get("insertEntry"), O = ra(k); @@ -1000,7 +1000,7 @@ class Lu extends Tr { this.element.focus(); } } -class Fu extends $n { +class Vu extends $n { /** * @inheritDoc */ @@ -1032,7 +1032,7 @@ class Fu extends $n { // If a related element is returned the toolbar is attached getRelatedElement: (v) => { const T = v.getSelectedElement(); - return T && yu(T) && T.hasClass("cke-entry-card") ? T : null; + return T && bu(T) && T.hasClass("cke-entry-card") ? T : null; } }); } @@ -1043,7 +1043,7 @@ class Fu extends $n { */ _listenToEvents() { const k = this.editor.editing.view, v = k.document; - k.addObserver(zu), this.editor.listenTo(v, "dblclick", (T, O) => { + k.addObserver(Au), this.editor.listenTo(v, "dblclick", (T, O) => { if (!this.editor.isReadOnly) { const K = this.editor.editing.mapper.toModelElement( O.target.parent @@ -1070,7 +1070,7 @@ class Fu extends $n { if (v.length == 1 && v[0].value == "fake") this.editor.ui.componentFactory.add( "createEntry", - (T) => new Lu(this.editor.locale, { + (T) => new Fu(this.editor.locale, { entriesUi: this }) ); @@ -1081,14 +1081,14 @@ class Fu extends $n { O.forEach((i, u) => { this.editor.ui.componentFactory.add( `createEntry-${i.model.uid}`, - (f) => new Au(this.editor.locale, { + (f) => new ju(this.editor.locale, { entriesUi: this, entryType: i }) ); }), K.length && this.editor.ui.componentFactory.add( "createEntry", - (i) => new ju(this.editor.locale, { + (i) => new Lu(this.editor.locale, { entriesUi: this, entryTypes: K }) @@ -1262,9 +1262,9 @@ class Fu extends $n { }); } } -class Vu extends $n { +class Uu extends $n { static get requires() { - return [Mu, Fu]; + return [zu, Vu]; } static get pluginName() { return "CraftEntries"; @@ -1275,7 +1275,16 @@ class Vu extends $n { * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -class Uu extends $n { +function Fc(Se, k) { + if (k) + return Se.type === "bool" && Se.value == !0 ? "" : k; +} +/** + * @link https://craftcms.com/ + * @copyright Copyright (c) Pixel & Tonic, Inc. + * @license GPL-3.0-or-later + */ +class $u extends $n { static get pluginName() { return "CraftLinkEditing"; } @@ -1333,28 +1342,24 @@ class Uu extends $n { k.execute("link", ...K); const _ = u.getFirstPosition(); this.conversionData.forEach((d) => { + const C = Fc( + d, + i[d.model] + ); if (u.isCollapsed) { - const C = _.textNode || _.nodeBefore; - i[d.model] ? f.setAttribute( + const h = _.textNode || _.nodeBefore; + C !== void 0 ? f.setAttribute( d.model, - // for bool type options, if the value is set to true, set the attribute with empty value - // see https://github.com/craftcms/ckeditor/issues/551 for more info - d.type == "bool" && d.value == !0 ? "" : i[d.model], - f.createRangeOn(C) - ) : f.removeAttribute(d.model, f.createRangeOn(C)); + C, + f.createRangeOn(h) + ) : f.removeAttribute(d.model, f.createRangeOn(h)); } else { - const C = k.model.schema.getValidRanges( + const h = k.model.schema.getValidRanges( u.getRanges(), d.model ); - for (const h of C) - i[d.model] ? f.setAttribute( - d.model, - // for bool type options, if the value is set to true, set the attribute with empty value - // see https://github.com/craftcms/ckeditor/issues/606 for more info - d.type == "bool" && d.value == !0 ? "" : i[d.model], - h - ) : f.removeAttribute(d.model, h); + for (const b of h) + C !== void 0 ? f.setAttribute(d.model, C, b) : f.removeAttribute(d.model, b); } }); }); @@ -1373,7 +1378,7 @@ class Uu extends $n { let f; this.conversionData.forEach((_) => { O.isCollapsed ? f = [ - bu( + vu( O.getFirstPosition(), _.model, O.getAttribute(_.model), @@ -1393,7 +1398,7 @@ class Uu extends $n { ); } } -class $u extends Tr { +class Bu extends Tr { constructor(k, v = {}) { super(k), this.bindTemplate, this.set("isFocused", !1), this.linkUi = v.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = v.linkOption; const T = this.linkUi._getLinkElementRefHandle(); @@ -1423,7 +1428,10 @@ class $u extends Tr { super.render(); const k = this.linkUi, v = k._linkUI, T = this.linkOption; this.element.addEventListener("click", function(O) { - (this.children[0].classList.contains("add") || O.target.classList.contains("ck-button__label")) && (v._hideUI(!1), k._showElementSelectorModal(T)); + if (this.children[0].classList.contains("add") || O.target.classList.contains("ck-button__label")) { + const K = v.formView.displayedTextInputView.fieldView.element.value; + v._hideUI(!1), k._showElementSelectorModal(T, K); + } }), this.element.children.length == 0 && Craft.sendActionRequest( "POST", "ckeditor/ckeditor/render-element-with-supported-sites", @@ -1494,7 +1502,7 @@ class $u extends Tr { }); } } -class Bu extends Tr { +class Hu extends Tr { constructor(k, v = {}) { super(k), this.bindTemplate, this.set("isFocused", !1), this.linkUi = v.linkUi, this.editor = this.linkUi.editor, this.elementId = this.linkUi._getLinkElementId(), this.siteId = this.linkUi._getLinkSiteId(), this.linkOption = v.linkOption, this.linkUi._getLinkElementRefHandle(), this.siteDropdownView = ra(this.linkUi._linkUI.formView.locale), this.siteDropdownItemModels = null, this.localizedRefHandleRE = null; const T = CKE_LOCALIZED_REF_HANDLES.join("|"); @@ -1583,7 +1591,7 @@ class Bu extends Tr { }); } } -class Hu extends Tr { +class Wu extends Tr { constructor(k, v = {}) { super(k); const T = this.bindTemplate; @@ -1633,7 +1641,7 @@ class Hu extends Tr { * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -class Wu extends $n { +class qu extends $n { static get requires() { return [Dc]; } @@ -1645,7 +1653,7 @@ class Wu extends $n { } init() { const k = this.editor; - this._linkUI = k.plugins.get(Dc), this._balloon = k.plugins.get(vu), this.linkOptions = k.config.get("linkOptions"), this.advancedLinkFields = k.config.get("advancedLinkFields"), this.conversionData = this.advancedLinkFields.map((T) => T.conversion ?? null).filter((T) => T); + this._linkUI = k.plugins.get(Dc), this._balloon = k.plugins.get(ku), this.linkOptions = k.config.get("linkOptions"), this.advancedLinkFields = k.config.get("advancedLinkFields"), this.conversionData = this.advancedLinkFields.map((T) => T.conversion ?? null).filter((T) => T); const v = CKE_LOCALIZED_REF_HANDLES.join("|"); this.elementTypeRefHandleRE = new RegExp( `(#((?:${v})):\\d+)` @@ -1796,7 +1804,7 @@ class Wu extends $n { _showLinkTypeForm(k) { var u, f, _, d; const { formView: v } = this._linkUI, { children: T } = v, { urlInputView: O } = v, { displayedTextInputView: K } = v; - K.focus(), this.linkTypeWrapperView !== null && T.remove(this.linkTypeWrapperView), k === "default" ? (this.elementInputView = O, this.sitesView !== null && (f = (u = this.sitesView) == null ? void 0 : u.siteDropdownView) != null && f.buttonView && this.sitesView.siteDropdownView.buttonView.set("isVisible", !1)) : (this.elementInputView = new $u(v.locale, { + K.focus(), this.linkTypeWrapperView !== null && T.remove(this.linkTypeWrapperView), k === "default" ? (this.elementInputView = O, this.sitesView !== null && (f = (u = this.sitesView) == null ? void 0 : u.siteDropdownView) != null && f.buttonView && this.sitesView.siteDropdownView.buttonView.set("isVisible", !1)) : (this.elementInputView = new Bu(v.locale, { linkUi: this, linkOption: k, value: this._urlInputValue() @@ -1805,7 +1813,7 @@ class Wu extends $n { this.linkTypeDropdownView, this.elementInputView ]; - if (Craft.isMultiSite && this.sitesView == null && (this.sitesView = new Bu(v.locale, { + if (Craft.isMultiSite && this.sitesView == null && (this.sitesView = new Hu(v.locale, { linkUi: this, linkOption: k })), this.sitesView != null) { @@ -1834,41 +1842,43 @@ class Wu extends $n { /** * Show element selector modal for given element type (link option). */ - _showElementSelectorModal(k) { - const v = this.editor, T = v.model, O = T.document.selection, K = O.isCollapsed, i = O.getFirstRange(), u = this._linkUI._getSelectedLinkElement(), f = () => { - v.editing.view.focus(), !K && i && T.change((_) => { - _.setSelection(i); + _showElementSelectorModal(k, v) { + const T = this.editor, O = T.model, K = O.document.selection, i = K.isCollapsed, u = K.getFirstRange(), f = this._linkUI._getSelectedLinkElement(), _ = () => { + T.editing.view.focus(), !i && u && O.change((d) => { + d.setSelection(u); }), this._linkUI._hideFakeVisualSelection(); }; - u || this._linkUI._showFakeVisualSelection(), Craft.createElementSelectorModal(k.elementType, { + f || this._linkUI._showFakeVisualSelection(), Craft.createElementSelectorModal(k.elementType, { storageKey: `ckeditor:${this.pluginName}:${k.elementType}`, sources: k.sources, criteria: k.criteria, - defaultSiteId: v.config.get("elementSiteId"), + defaultSiteId: T.config.get("elementSiteId"), autoFocusSearchBox: !1, - onSelect: (_) => { - if (_.length) { - const d = _[0], C = `${d.url}#${k.refHandle}:${d.id}@${d.siteId}`; - if (v.editing.view.focus(), (!K || u) && i) { - T.change((w) => { - w.setSelection(i); + onSelect: (d) => { + if (d.length) { + const C = d[0], h = `${C.url}#${k.refHandle}:${C.id}@${C.siteId}`; + if (T.editing.view.focus(), (!i || f) && u) { + O.change((N) => { + N.setSelection(u); }); - const h = v.commands.get("link"); - let b = this._getAdvancedFieldValues(); - h.execute(C, {}, void 0, b); + const b = T.commands.get("link"); + let w = this._getAdvancedFieldValues(); + b.execute(h, {}, void 0, w); } else - T.change((h) => { - let b = this._getAdvancedFieldValues(), w = { linkHref: C }; - if (this.conversionData.forEach((N) => { - b[N.model] && (w[N.model] = N.type == "bool" && N.value == !0 ? "" : b[N.model]); - }), h.insertText( - d.label, - w, - O.getFirstPosition() - ), i instanceof ku) + O.change((b) => { + let w = this._getAdvancedFieldValues(), N = { linkHref: h }; + this.conversionData.forEach((P) => { + const j = Fc( + P, + w[P.model] + ); + j !== void 0 && (N[P.model] = j); + }); + const I = v || C.label; + if (b.insertText(I, N, K.getFirstPosition()), u instanceof wu) try { - const N = i.clone(); - N.end.path[1] += d.label.length, h.setSelection(N); + const P = u.clone(); + P.end.path[1] += I.length, b.setSelection(P); } catch { } }); @@ -1876,10 +1886,10 @@ class Wu extends $n { this._linkUI._showUI(!0); }, 100); } else - f(); + _(); }, onCancel: () => { - f(); + _(); }, closeOtherModals: !1 }); @@ -1897,14 +1907,14 @@ class Wu extends $n { _addAdvancedLinkFieldInputs() { var O; const k = this.editor.commands.get("link"), { formView: v } = this._linkUI, { children: T } = v; - this.advancedView = new Hu(v.locale, { + this.advancedView = new Wu(v.locale, { linkUi: this }), T.add(this.advancedView, 3); for (const K of this.advancedLinkFields) { let i = (O = K.conversion) == null ? void 0 : O.model; if (i && typeof v[i] > "u") if (K.conversion.type === "bool") { - const u = new wu(); + const u = new _u(); u.set({ withText: !0, label: K.label, @@ -1927,17 +1937,17 @@ class Wu extends $n { const w = this._urlInputRefMatch(this.urlWithRefHandleRE); w ? b = w[1] : b = this._urlInputValue(); try { - let N = new URL(b), I = N.search, D = N.hash, L = b.replace(D, "").replace(I, ""); + let N = new URL(b), I = N.search, P = N.hash, j = b.replace(P, "").replace(I, ""); const ae = this._urlInputValue().replace( b, - L + h + j + h ); v.urlInputView.fieldView.set("value", ae); } catch { - let [I, D] = b.split("#"), [L, ae] = I.split("?"); + let [I, P] = b.split("#"), [j, ae] = I.split("?"); const te = this._urlInputValue().replace( b, - L + h + j + h ); v.urlInputView.fieldView.set("value", te); } @@ -1960,9 +1970,9 @@ class Wu extends $n { */ _addLabeledField(k) { const { formView: v } = this._linkUI; - let T = new _u( + let T = new Eu( v.locale, - Eu + xu ); return T.label = k.label, k.tooltip && (T.infoText = k.tooltip), this.advancedView.advancedChildren.add(T), T; } @@ -2032,21 +2042,21 @@ class Wu extends $n { }), v; } } -class od extends $n { +class id extends $n { static get requires() { - return [Uu, Wu]; + return [$u, qu]; } static get pluginName() { return "CraftLink"; } } -function qu(Se) { +function Ku(Se) { return Se && Se.__esModule && Object.prototype.hasOwnProperty.call(Se, "default") ? Se.default : Se; } var _l = { exports: {} }; /*! For license information please see inspector.js.LICENSE.txt */ var Rc; -function Ku() { +function Qu() { return Rc || (Rc = 1, (function(Se, k) { (function(v, T) { Se.exports = T(); @@ -2102,10 +2112,10 @@ function Ku() { return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F; }, _(R); } - Object.defineProperty(u, "__esModule", { value: !0 }), u.matchesSelector = D, u.matchesSelectorAndParentsTo = function(R, F, q) { + Object.defineProperty(u, "__esModule", { value: !0 }), u.matchesSelector = P, u.matchesSelectorAndParentsTo = function(R, F, q) { var G = R; do { - if (D(G, F)) return !0; + if (P(G, F)) return !0; if (G === q) return !1; G = G.parentNode; } while (G); @@ -2136,11 +2146,11 @@ function Ku() { var G = F === F.ownerDocument.body ? { left: 0, top: 0 } : F.getBoundingClientRect(), pe = (R.clientX + F.scrollLeft - G.left) / q, oe = (R.clientY + F.scrollTop - G.top) / q; return { x: pe, y: oe }; }, u.createCSSTransform = function(R, F) { - var q = L(R, F, "px"); + var q = j(R, F, "px"); return N({}, (0, C.browserPrefixToKey)("transform", C.default), q); }, u.createSVGTransform = function(R, F) { - return L(R, F, ""); - }, u.getTranslation = L, u.getTouch = function(R, F) { + return j(R, F, ""); + }, u.getTranslation = j, u.getTouch = function(R, F) { return R.targetTouches && (0, d.findInArray)(R.targetTouches, function(q) { return F === q.identifier; }) || R.changedTouches && (0, d.findInArray)(R.changedTouches, function(q) { @@ -2211,12 +2221,12 @@ function Ku() { return F in R ? Object.defineProperty(R, F, { value: q, enumerable: !0, configurable: !0, writable: !0 }) : R[F] = q, R; } var I = ""; - function D(R, F) { + function P(R, F) { return I || (I = (0, d.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(q) { return (0, d.isFunction)(R[q]); })), !!(0, d.isFunction)(R[I]) && R[I](F); } - function L(R, F, q) { + function j(R, F, q) { var G = R.x, pe = R.y, oe = "translate(".concat(G).concat(q, ",").concat(pe).concat(q, ")"); if (F) { var fe = "".concat(typeof F.x == "string" ? F.x : F.x + q), he = "".concat(typeof F.y == "string" ? F.y : F.y + q); @@ -2284,15 +2294,15 @@ function Ku() { var w = b.prototype; if (!w || !w.isReactComponent) throw new Error("Can only polyfill class components"); if (typeof b.getDerivedStateFromProps != "function" && typeof w.getSnapshotBeforeUpdate != "function") return b; - var N = null, I = null, D = null; - if (typeof w.componentWillMount == "function" ? N = "componentWillMount" : typeof w.UNSAFE_componentWillMount == "function" && (N = "UNSAFE_componentWillMount"), typeof w.componentWillReceiveProps == "function" ? I = "componentWillReceiveProps" : typeof w.UNSAFE_componentWillReceiveProps == "function" && (I = "UNSAFE_componentWillReceiveProps"), typeof w.componentWillUpdate == "function" ? D = "componentWillUpdate" : typeof w.UNSAFE_componentWillUpdate == "function" && (D = "UNSAFE_componentWillUpdate"), N !== null || I !== null || D !== null) { - var L = b.displayName || b.name, ae = typeof b.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + var N = null, I = null, P = null; + if (typeof w.componentWillMount == "function" ? N = "componentWillMount" : typeof w.UNSAFE_componentWillMount == "function" && (N = "UNSAFE_componentWillMount"), typeof w.componentWillReceiveProps == "function" ? I = "componentWillReceiveProps" : typeof w.UNSAFE_componentWillReceiveProps == "function" && (I = "UNSAFE_componentWillReceiveProps"), typeof w.componentWillUpdate == "function" ? P = "componentWillUpdate" : typeof w.UNSAFE_componentWillUpdate == "function" && (P = "UNSAFE_componentWillUpdate"), N !== null || I !== null || P !== null) { + var j = b.displayName || b.name, ae = typeof b.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. -` + L + " uses " + ae + " but also contains the following legacy lifecycles:" + (N !== null ? ` +` + j + " uses " + ae + " but also contains the following legacy lifecycles:" + (N !== null ? ` ` + N : "") + (I !== null ? ` - ` + I : "") + (D !== null ? ` - ` + D : "") + ` + ` + I : "") + (P !== null ? ` + ` + P : "") + ` The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`); @@ -2312,35 +2322,35 @@ https://fb.me/react-async-component-lifecycle-hooks`); }, 1720: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.bodyOpenClassName = u.portalClassName = void 0; var _ = Object.assign || function(S) { - for (var j = 1; j < arguments.length; j++) { - var A = arguments[j]; + for (var L = 1; L < arguments.length; L++) { + var A = arguments[L]; for (var se in A) Object.prototype.hasOwnProperty.call(A, se) && (S[se] = A[se]); } return S; }, d = /* @__PURE__ */ (function() { - function S(j, A) { + function S(L, A) { for (var se = 0; se < A.length; se++) { var J = A[se]; - J.enumerable = J.enumerable || !1, J.configurable = !0, "value" in J && (J.writable = !0), Object.defineProperty(j, J.key, J); + J.enumerable = J.enumerable || !1, J.configurable = !0, "value" in J && (J.writable = !0), Object.defineProperty(L, J.key, J); } } - return function(j, A, se) { - return A && S(j.prototype, A), se && S(j, se), j; + return function(L, A, se) { + return A && S(L.prototype, A), se && S(L, se), L; }; })(), C = f(6540), h = te(C), b = te(f(961)), w = te(f(5556)), N = te(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]); - return j.default = S, j; - })(f(6462)), D = f(834), L = te(D), ae = f(1345); + var L = {}; + if (S != null) for (var A in S) Object.prototype.hasOwnProperty.call(S, A) && (L[A] = S[A]); + return L.default = S, L; + })(f(6462)), P = f(834), j = te(P), ae = f(1345); function te(S) { return S && S.__esModule ? S : { default: S }; } - function R(S, j) { + function R(S, L) { 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; + return !L || typeof L != "object" && typeof L != "function" ? S : L; } - var F = u.portalClassName = "ReactModalPortal", q = u.bodyOpenClassName = "ReactModal__Body--open", G = D.canUseDOM && b.default.createPortal !== void 0, pe = function(S) { + var F = u.portalClassName = "ReactModalPortal", q = u.bodyOpenClassName = "ReactModal__Body--open", G = P.canUseDOM && b.default.createPortal !== void 0, pe = function(S) { return document.createElement(S); }, oe = function() { return G ? b.default.createPortal : b.default.unstable_renderSubtreeIntoContainer; @@ -2349,54 +2359,54 @@ https://fb.me/react-async-component-lifecycle-hooks`); return S(); } var he = (function(S) { - function j() { + function L() { var A, se, J; (function(Z, le) { if (!(Z instanceof le)) throw new TypeError("Cannot call a class as a function"); - })(this, j); + })(this, L); for (var Ee = arguments.length, ee = Array(Ee), V = 0; V < Ee; V++) ee[V] = arguments[V]; - return se = J = R(this, (A = j.__proto__ || Object.getPrototypeOf(j)).call.apply(A, [this].concat(ee))), J.removePortal = function() { + return se = J = R(this, (A = L.__proto__ || Object.getPrototypeOf(L)).call.apply(A, [this].concat(ee))), J.removePortal = function() { !G && b.default.unmountComponentAtNode(J.node); var Z = fe(J.props.parentSelector); Z && Z.contains(J.node) ? Z.removeChild(J.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.'); }, J.portalRef = function(Z) { J.portal = Z; }, J.renderPortal = function(Z) { - var le = oe()(J, h.default.createElement(N.default, _({ defaultStyles: j.defaultStyles }, Z)), J.node); + var le = oe()(J, h.default.createElement(N.default, _({ defaultStyles: L.defaultStyles }, Z)), J.node); J.portalRef(le); }, R(J, se); } return (function(A, se) { if (typeof se != "function" && se !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof se); A.prototype = Object.create(se && se.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), se && (Object.setPrototypeOf ? Object.setPrototypeOf(A, se) : A.__proto__ = se); - })(j, S), d(j, [{ key: "componentDidMount", value: function() { - D.canUseDOM && (G || (this.node = pe("div")), this.node.className = this.props.portalClassName, fe(this.props.parentSelector).appendChild(this.node), !G && this.renderPortal(this.props)); + })(L, S), d(L, [{ key: "componentDidMount", value: function() { + P.canUseDOM && (G || (this.node = pe("div")), this.node.className = this.props.portalClassName, fe(this.props.parentSelector).appendChild(this.node), !G && this.renderPortal(this.props)); } }, { key: "getSnapshotBeforeUpdate", value: function(A) { return { prevParent: fe(A.parentSelector), nextParent: fe(this.props.parentSelector) }; } }, { key: "componentDidUpdate", value: function(A, se, J) { - if (D.canUseDOM) { + if (P.canUseDOM) { var Ee = this.props, ee = Ee.isOpen, V = Ee.portalClassName; A.portalClassName !== V && (this.node.className = V); var Z = J.prevParent, le = J.nextParent; le !== Z && (Z.removeChild(this.node), le.appendChild(this.node)), (A.isOpen || ee) && !G && this.renderPortal(this.props); } } }, { key: "componentWillUnmount", value: function() { - if (D.canUseDOM && this.node && this.portal) { + if (P.canUseDOM && this.node && this.portal) { var A = this.portal.state, se = Date.now(), J = A.isOpen && this.props.closeTimeoutMS && (A.closesAt || se + this.props.closeTimeoutMS); J ? (A.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, J - se)) : this.removePortal(); } } }, { key: "render", value: function() { - return D.canUseDOM && G ? (!this.node && G && (this.node = pe("div")), oe()(h.default.createElement(N.default, _({ ref: this.portalRef, defaultStyles: j.defaultStyles }, this.props)), this.node)) : null; + return P.canUseDOM && G ? (!this.node && G && (this.node = pe("div")), oe()(h.default.createElement(N.default, _({ ref: this.portalRef, defaultStyles: L.defaultStyles }, this.props)), this.node)) : null; } }], [{ key: "setAppElement", value: function(A) { I.setElement(A); - } }]), j; + } }]), L; })(C.Component); - he.propTypes = { isOpen: w.default.bool.isRequired, style: w.default.shape({ content: w.default.object, overlay: w.default.object }), portalClassName: w.default.string, bodyOpenClassName: w.default.string, htmlOpenClassName: w.default.string, className: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), overlayClassName: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), appElement: w.default.oneOfType([w.default.instanceOf(L.default), w.default.instanceOf(D.SafeHTMLCollection), w.default.instanceOf(D.SafeNodeList), w.default.arrayOf(w.default.instanceOf(L.default))]), onAfterOpen: w.default.func, onRequestClose: w.default.func, closeTimeoutMS: w.default.number, ariaHideApp: w.default.bool, shouldFocusAfterRender: w.default.bool, shouldCloseOnOverlayClick: w.default.bool, shouldReturnFocusAfterClose: w.default.bool, preventScroll: w.default.bool, parentSelector: w.default.func, aria: w.default.object, data: w.default.object, role: w.default.string, contentLabel: w.default.string, shouldCloseOnEsc: w.default.bool, overlayRef: w.default.func, contentRef: w.default.func, id: w.default.string, overlayElement: w.default.func, contentElement: w.default.func }, he.defaultProps = { isOpen: !1, portalClassName: F, bodyOpenClassName: q, role: "dialog", ariaHideApp: !0, closeTimeoutMS: 0, shouldFocusAfterRender: !0, shouldCloseOnEsc: !0, shouldCloseOnOverlayClick: !0, shouldReturnFocusAfterClose: !0, preventScroll: !1, parentSelector: function() { + he.propTypes = { isOpen: w.default.bool.isRequired, style: w.default.shape({ content: w.default.object, overlay: w.default.object }), portalClassName: w.default.string, bodyOpenClassName: w.default.string, htmlOpenClassName: w.default.string, className: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), overlayClassName: w.default.oneOfType([w.default.string, w.default.shape({ base: w.default.string.isRequired, afterOpen: w.default.string.isRequired, beforeClose: w.default.string.isRequired })]), appElement: w.default.oneOfType([w.default.instanceOf(j.default), w.default.instanceOf(P.SafeHTMLCollection), w.default.instanceOf(P.SafeNodeList), w.default.arrayOf(w.default.instanceOf(j.default))]), onAfterOpen: w.default.func, onRequestClose: w.default.func, closeTimeoutMS: w.default.number, ariaHideApp: w.default.bool, shouldFocusAfterRender: w.default.bool, shouldCloseOnOverlayClick: w.default.bool, shouldReturnFocusAfterClose: w.default.bool, preventScroll: w.default.bool, parentSelector: w.default.func, aria: w.default.object, data: w.default.object, role: w.default.string, contentLabel: w.default.string, shouldCloseOnEsc: w.default.bool, overlayRef: w.default.func, contentRef: w.default.func, id: w.default.string, overlayElement: w.default.func, contentElement: w.default.func }, he.defaultProps = { isOpen: !1, portalClassName: F, bodyOpenClassName: q, role: "dialog", ariaHideApp: !0, closeTimeoutMS: 0, shouldFocusAfterRender: !0, shouldCloseOnEsc: !0, shouldCloseOnOverlayClick: !0, shouldReturnFocusAfterClose: !0, preventScroll: !1, parentSelector: function() { return document.body; - }, overlayElement: function(S, j) { - return h.default.createElement("div", S, j); - }, contentElement: function(S, j) { - return h.default.createElement("div", S, j); + }, overlayElement: function(S, L) { + return h.default.createElement("div", S, L); + }, contentElement: function(S, L) { + return h.default.createElement("div", S, L); } }, he.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, ae.polyfill)(he), u.default = he; }, 1726: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.getBoundPosition = function(h, b, w) { @@ -2407,10 +2417,10 @@ https://fb.me/react-async-component-lifecycle-hooks`); })(N); var I = C(h); if (typeof N == "string") { - var D, L = I.ownerDocument, ae = L.defaultView; - if (!((D = N === "parent" ? I.parentNode : L.querySelector(N)) instanceof ae.HTMLElement)) throw new Error('Bounds selector "' + N + '" could not find an element.'); - var te = ae.getComputedStyle(I), R = ae.getComputedStyle(D); - N = { left: -I.offsetLeft + (0, _.int)(R.paddingLeft) + (0, _.int)(te.marginLeft), top: -I.offsetTop + (0, _.int)(R.paddingTop) + (0, _.int)(te.marginTop), right: (0, d.innerWidth)(D) - (0, d.outerWidth)(I) - I.offsetLeft + (0, _.int)(R.paddingRight) - (0, _.int)(te.marginRight), bottom: (0, d.innerHeight)(D) - (0, d.outerHeight)(I) - I.offsetTop + (0, _.int)(R.paddingBottom) - (0, _.int)(te.marginBottom) }; + var P, j = I.ownerDocument, ae = j.defaultView; + if (!((P = N === "parent" ? I.parentNode : j.querySelector(N)) instanceof ae.HTMLElement)) throw new Error('Bounds selector "' + N + '" could not find an element.'); + var te = ae.getComputedStyle(I), R = ae.getComputedStyle(P); + N = { left: -I.offsetLeft + (0, _.int)(R.paddingLeft) + (0, _.int)(te.marginLeft), top: -I.offsetTop + (0, _.int)(R.paddingTop) + (0, _.int)(te.marginTop), right: (0, d.innerWidth)(P) - (0, d.outerWidth)(I) - I.offsetLeft + (0, _.int)(R.paddingRight) - (0, _.int)(te.marginRight), bottom: (0, d.innerHeight)(P) - (0, d.outerHeight)(I) - I.offsetTop + (0, _.int)(R.paddingBottom) - (0, _.int)(te.marginBottom) }; } return (0, _.isNum)(N.right) && (b = Math.min(b, N.right)), (0, _.isNum)(N.bottom) && (w = Math.min(w, N.bottom)), (0, _.isNum)(N.left) && (b = Math.max(b, N.left)), (0, _.isNum)(N.top) && (w = Math.max(w, N.top)), [b, w]; }, u.snapToGrid = function(h, b, w) { @@ -2423,11 +2433,11 @@ https://fb.me/react-async-component-lifecycle-hooks`); }, u.getControlPosition = function(h, b, w) { var N = typeof b == "number" ? (0, d.getTouch)(h, b) : null; if (typeof b == "number" && !N) return null; - var I = C(w), D = w.props.offsetParent || I.offsetParent || I.ownerDocument.body; - return (0, d.offsetXYFromParent)(N || h, D, w.props.scale); + var I = C(w), P = w.props.offsetParent || I.offsetParent || I.ownerDocument.body; + return (0, d.offsetXYFromParent)(N || h, P, w.props.scale); }, u.createCoreData = function(h, b, w) { - var N = h.state, I = !(0, _.isNum)(N.lastX), D = C(h); - return I ? { node: D, deltaX: 0, deltaY: 0, lastX: b, lastY: w, x: b, y: w } : { node: D, deltaX: b - N.lastX, deltaY: w - N.lastY, lastX: N.lastX, lastY: N.lastY, x: b, y: w }; + var N = h.state, I = !(0, _.isNum)(N.lastX), P = C(h); + return I ? { node: P, deltaX: 0, deltaY: 0, lastX: b, lastY: w, x: b, y: w } : { node: P, deltaX: b - N.lastX, deltaY: w - N.lastY, lastX: N.lastX, lastY: N.lastY, x: b, y: w }; }, u.createDraggableData = function(h, b) { var w = h.props.scale; return { node: b.node, x: h.state.x + b.deltaX / w, y: h.state.y + b.deltaY / w, deltaX: b.deltaX / w, deltaY: b.deltaY / w, lastX: h.state.x, lastY: h.state.y }; @@ -2440,8 +2450,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); } }, 2411: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function w(N) { - var I = [].slice.call(N.querySelectorAll("*"), 0).reduce(function(D, L) { - return D.concat(L.shadowRoot ? w(L.shadowRoot) : [L]); + var I = [].slice.call(N.querySelectorAll("*"), 0).reduce(function(P, j) { + return P.concat(j.shadowRoot ? w(j.shadowRoot) : [j]); }, []); return I.filter(b); }; @@ -2450,20 +2460,20 @@ https://fb.me/react-async-component-lifecycle-hooks`); var N = w.offsetWidth <= 0 && w.offsetHeight <= 0; if (N && !w.innerHTML) return !0; try { - var I = window.getComputedStyle(w), D = I.getPropertyValue("display"); - return N ? D !== _ && (function(L, ae) { - return ae.getPropertyValue("overflow") !== "visible" || L.scrollWidth <= 0 && L.scrollHeight <= 0; - })(w, I) : D === f; + var I = window.getComputedStyle(w), P = I.getPropertyValue("display"); + return N ? P !== _ && (function(j, ae) { + return ae.getPropertyValue("overflow") !== "visible" || j.scrollWidth <= 0 && j.scrollHeight <= 0; + })(w, I) : P === f; } catch { return console.warn("Failed to inspect element style"), !1; } } function h(w, N) { var I = w.nodeName.toLowerCase(); - return (d.test(I) && !w.disabled || I === "a" && w.href || N) && (function(D) { - for (var L = D, ae = D.getRootNode && D.getRootNode(); L && L !== document.body; ) { - if (ae && L === ae && (L = ae.host.parentNode), C(L)) return !1; - L = L.parentNode; + return (d.test(I) && !w.disabled || I === "a" && w.href || N) && (function(P) { + for (var j = P, ae = P.getRootNode && P.getRootNode(); j && j !== document.body; ) { + if (ae && j === ae && (j = ae.host.parentNode), C(j)) return !1; + j = j.parentNode; } return !0; })(w); @@ -2497,11 +2507,11 @@ https://fb.me/react-async-component-lifecycle-hooks`); this.onError(ce); } } - var w = !1, N = null, I = !1, D = null, L = { onError: function(e) { + var w = !1, N = null, I = !1, P = null, j = { onError: function(e) { w = !0, N = e; } }; function ae(e, t, n, r, a, p, m, E, H) { - w = !1, N = null, b.apply(L, arguments); + w = !1, N = null, b.apply(j, arguments); } var te = null, R = null, F = null; function q(e, t, n) { @@ -2510,7 +2520,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (ae.apply(this, arguments), w) { if (!w) throw Error(h(198)); var ot = N; - w = !1, N = null, I || (I = !0, D = ot); + w = !1, N = null, I || (I = !0, P = ot); } })(r, t, void 0, e), e.currentTarget = null; } @@ -2536,10 +2546,10 @@ https://fb.me/react-async-component-lifecycle-hooks`); } } function fe(e, t, n) { - if (j[e]) throw Error(h(100, e)); - j[e] = t, A[e] = t.eventTypes[n].dependencies; + if (L[e]) throw Error(h(100, e)); + L[e] = t, A[e] = t.eventTypes[n].dependencies; } - var he = [], S = {}, j = {}, A = {}; + var he = [], S = {}, L = {}, A = {}; function se(e) { var t, n = !1; for (t in e) if (e.hasOwnProperty(t)) { @@ -2589,7 +2599,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); Ke = !1, Je(); } } - var P = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ne = Object.prototype.hasOwnProperty, we = {}, Ce = {}; + var D = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ne = Object.prototype.hasOwnProperty, we = {}, Ce = {}; function Pe(e, t, n, r, a, p) { this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = a, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = p; } @@ -2661,7 +2671,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } return !1; })(t, n, a, r) && (n = null), r || a === null ? (function(p) { - return !!ne.call(Ce, p) || !ne.call(we, p) && (P.test(p) ? Ce[p] = !0 : (we[p] = !0, !1)); + return !!ne.call(Ce, p) || !ne.call(we, p) && (D.test(p) ? Ce[p] = !0 : (we[p] = !0, !1)); })(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : a.mustUseProperty ? e[a.propertyName] = n === null ? a.type !== 3 && "" : n : (t = a.attributeName, r = a.attributeNamespace, n === null ? e.removeAttribute(t) : (n = (a = a.type) === 3 || a === 4 && n === !0 ? "" : "" + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); } et.hasOwnProperty("ReactCurrentDispatcher") || (et.ReactCurrentDispatcher = { current: null }), et.hasOwnProperty("ReactCurrentBatchConfig") || (et.ReactCurrentBatchConfig = { suspense: null }); @@ -3007,7 +3017,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); function yn(e) { if (e !== null && (yt = kt(yt, e)), e = yt, yt = null, e) { if (jt(e, bt), yt) throw Error(h(95)); - if (I) throw e = D, I = !1, D = null, e; + if (I) throw e = P, I = !1, P = null, e; } } function ur(e) { @@ -4256,8 +4266,8 @@ https://fb.me/react-async-component-lifecycle-hooks`); return xe; } for (Fe = r(W, Fe); !Xe.done; at++, Xe = re.next()) (Xe = ot(Fe, W, at, Xe.value, ve)) !== null && (e && Xe.alternate !== null && Fe.delete(Xe.key === null ? at : Xe.key), B = p(Xe, B, at), Ie === null ? xe = Xe : Ie.sibling = Xe, Ie = Xe); - return e && Fe.forEach(function(au) { - return t(W, au); + return e && Fe.forEach(function(su) { + return t(W, su); }), xe; } return function(W, B, re, ve) { @@ -4375,11 +4385,11 @@ https://fb.me/react-async-component-lifecycle-hooks`); return !0; } function Us(e, t, n, r, a, p) { - if (ho = p, Rt = t, t.memoizedState = null, t.updateQueue = null, t.expirationTime = 0, Ra.current = e === null || e.memoizedState === null ? Fc : Vc, e = n(r, a), t.expirationTime === ho) { + if (ho = p, Rt = t, t.memoizedState = null, t.updateQueue = null, t.expirationTime = 0, Ra.current = e === null || e.memoizedState === null ? Vc : Uc, e = n(r, a), t.expirationTime === ho) { p = 0; do { if (t.expirationTime = 0, !(25 > p)) throw Error(h(301)); - p += 1, Xt = rn = null, t.updateQueue = null, Ra.current = Uc, e = n(r, a); + p += 1, Xt = rn = null, t.updateQueue = null, Ra.current = $c, e = n(r, a); } while (t.expirationTime === ho); } if (Ra.current = Fa, t = rn !== null && rn.next !== null, ho = 0, Xt = rn = Rt = null, Ma = !1, t) throw Error(h(300)); @@ -4535,7 +4545,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); yo(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 }, Fc = { readContext: Ln, useCallback: Ll, useContext: Ln, useEffect: Ml, useImperativeHandle: function(e, t, n) { + 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 }, Vc = { readContext: Ln, useCallback: Ll, useContext: Ln, useEffect: Ml, useImperativeHandle: function(e, t, n) { return n = n != null ? n.concat([e]) : null, Hs(4, 2, Al.bind(null, t, e), n); }, useLayoutEffect: function(e, t) { return Hs(4, 2, e, t); @@ -4561,7 +4571,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); }, useTransition: function(e) { var t = $s(!1), n = t[0]; return t = t[1], [Ll(Ks.bind(null, t, e), [t, e]), n]; - } }, Vc = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Fl, useReducer: za, useRef: Rl, useState: function() { + } }, Uc = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Fl, useReducer: za, useRef: Rl, useState: function() { return za(Bo); }, useDebugValue: qs, useResponder: Fs, useDeferredValue: function(e, t) { var n = za(Bo), r = n[0], a = n[1]; @@ -4577,7 +4587,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); }, useTransition: function(e) { var t = za(Bo), n = t[0]; return t = t[1], [La(Ks.bind(null, t, e), [t, e]), n]; - } }, Uc = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Fl, useReducer: Aa, useRef: Rl, useState: function() { + } }, $c = { readContext: Ln, useCallback: La, useContext: Ln, useEffect: ja, useImperativeHandle: jl, useLayoutEffect: zl, useMemo: Fl, useReducer: Aa, useRef: Rl, useState: function() { return Aa(Bo); }, useDebugValue: qs, useResponder: Fs, useDeferredValue: function(e, t) { var n = Aa(Bo), r = n[0], a = n[1]; @@ -4655,7 +4665,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); function Ys() { mo = $r = null, Ho = !1; } - var $c = et.ReactCurrentOwner, Er = !1; + var Bc = et.ReactCurrentOwner, Er = !1; function Vn(e, t, n, r) { t.child = e === null ? As(t, null, n, r) : pi(t, e.child, n, r); } @@ -4704,7 +4714,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); Kl(e, t); var m = !!(64 & t.effectTag); if (!r && !m) return a && He(t, n, !1), Br(e, t, p); - r = t.stateNode, $c.current = t; + r = t.stateNode, Bc.current = t; var E = m && typeof n.getDerivedStateFromError != "function" ? null : r.render(); return t.effectTag |= 1, e !== null && m ? (t.child = pi(t, e.child, null, p), t.child = pi(t, null, E, p)) : Vn(e, t, E, p), t.memoizedState = r.state, a && He(t, n, !0), t.child; } @@ -4812,7 +4822,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null; } } - function Bc(e, t, n) { + function Hc(e, t, n) { var r = t.pendingProps; switch (t.tag) { case 2: @@ -4878,7 +4888,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } for (var m in xi(a, p), e = null, p) if (p.hasOwnProperty(m)) { var E = p[m]; - m === "children" ? typeof E == "string" ? r.textContent !== E && (e = ["children", E]) : typeof E == "number" && r.textContent !== "" + E && (e = ["children", "" + E]) : j.hasOwnProperty(m) && E != null && Gn(n, m); + m === "children" ? typeof E == "string" ? r.textContent !== E && (e = ["children", E]) : typeof E == "number" && r.textContent !== "" + E && (e = ["children", "" + E]) : L.hasOwnProperty(m) && E != null && Gn(n, m); } switch (a) { case "input": @@ -4939,7 +4949,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var H = E; for (p in H) if (H.hasOwnProperty(p)) { var U = H[p]; - p === "style" ? ti(e, U) : p === "dangerouslySetInnerHTML" ? (U = U ? U.__html : void 0) != null && Dr(e, U) : p === "children" ? typeof U == "string" ? (a !== "textarea" || U !== "") && Kn(e, U) : typeof U == "number" && Kn(e, "" + U) : p !== "suppressContentEditableWarning" && p !== "suppressHydrationWarning" && p !== "autoFocus" && (j.hasOwnProperty(p) ? U != null && Gn(n, p) : U != null && Pt(e, p, U, m)); + p === "style" ? ti(e, U) : p === "dangerouslySetInnerHTML" ? (U = U ? U.__html : void 0) != null && Dr(e, U) : p === "children" ? typeof U == "string" ? (a !== "textarea" || U !== "") && Kn(e, U) : typeof U == "number" && Kn(e, "" + U) : p !== "suppressContentEditableWarning" && p !== "suppressHydrationWarning" && p !== "autoFocus" && (L.hasOwnProperty(p) ? U != null && Gn(n, p) : U != null && Pt(e, p, U, m)); } switch (a) { case "input": @@ -4996,7 +5006,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } throw Error(h(156, t.tag)); } - function Hc(e) { + function Wc(e) { switch (e.tag) { case 1: de(e.type) && Oe(); @@ -5058,21 +5068,21 @@ https://fb.me/react-async-component-lifecycle-hooks`); typeof p.onClick != "function" && typeof r.onClick == "function" && (H.onclick = Jr); } for (m in xi(n, r), n = null, p) if (!r.hasOwnProperty(m) && p.hasOwnProperty(m) && p[m] != null) if (m === "style") for (E in H = p[m]) H.hasOwnProperty(E) && (n || (n = {}), n[E] = ""); - else m !== "dangerouslySetInnerHTML" && m !== "children" && m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && m !== "autoFocus" && (j.hasOwnProperty(m) ? e || (e = []) : (e = e || []).push(m, null)); + else m !== "dangerouslySetInnerHTML" && m !== "children" && m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && m !== "autoFocus" && (L.hasOwnProperty(m) ? e || (e = []) : (e = e || []).push(m, null)); for (m in r) { var U = r[m]; if (H = p != null ? p[m] : void 0, r.hasOwnProperty(m) && U !== H && (U != null || H != null)) if (m === "style") if (H) { for (E in H) !H.hasOwnProperty(E) || U && U.hasOwnProperty(E) || (n || (n = {}), n[E] = ""); for (E in U) U.hasOwnProperty(E) && H[E] !== U[E] && (n || (n = {}), n[E] = U[E]); } else n || (e || (e = []), e.push(m, n)), n = U; - else m === "dangerouslySetInnerHTML" ? (U = U ? U.__html : void 0, H = H ? H.__html : void 0, U != null && H !== U && (e = e || []).push(m, U)) : m === "children" ? H === U || typeof U != "string" && typeof U != "number" || (e = e || []).push(m, "" + U) : m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && (j.hasOwnProperty(m) ? (U != null && Gn(a, m), e || H === U || (e = [])) : (e = e || []).push(m, U)); + else m === "dangerouslySetInnerHTML" ? (U = U ? U.__html : void 0, H = H ? H.__html : void 0, U != null && H !== U && (e = e || []).push(m, U)) : m === "children" ? H === U || typeof U != "string" && typeof U != "number" || (e = e || []).push(m, "" + U) : m !== "suppressContentEditableWarning" && m !== "suppressHydrationWarning" && (L.hasOwnProperty(m) ? (U != null && Gn(a, m), e || H === U || (e = [])) : (e = e || []).push(m, U)); } n && (e = e || []).push("style", n), a = e, (t.updateQueue = a) && (t.effectTag |= 4); } }, Zl = function(e, t, n, r) { n !== r && (t.effectTag |= 4); }; - var Wc = typeof WeakSet == "function" ? WeakSet : Set; + var qc = typeof WeakSet == "function" ? WeakSet : Set; function nl(e, t) { var n = t.source, r = t.stack; r === null && n !== null && (r = zt(n)), n !== null && Kt(n.type), t = t.value, e !== null && e.tag === 1 && Kt(e.type); @@ -5093,7 +5103,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } else t.current = null; } - function qc(e, t) { + function Kc(e, t) { switch (t.tag) { case 0: case 11: @@ -5138,7 +5148,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); } while (n !== t); } } - function Kc(e, t, n) { + function Qc(e, t, n) { switch (n.tag) { case 0: case 11: @@ -5398,13 +5408,13 @@ https://fb.me/react-async-component-lifecycle-hooks`); if (t !== null) { e.updateQueue = null; var n = e.stateNode; - n === null && (n = e.stateNode = new Wc()), t.forEach(function(r) { - var a = nu.bind(null, e, r); + n === null && (n = e.stateNode = new qc()), t.forEach(function(r) { + var a = ru.bind(null, e, r); n.has(r) || (n.add(r), r.then(a, a)); }); } } - var Qc = typeof WeakMap == "function" ? WeakMap : Map; + var Yc = typeof WeakMap == "function" ? WeakMap : Map; function dc(e, t, n) { (n = po(n, null)).tag = 3, n.payload = { element: null }; var r = t.value; @@ -5428,7 +5438,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); this.componentDidCatch(t.value, { componentStack: m !== null ? m : "" }); }), n; } - var fc, Yc = Math.ceil, $a = et.ReactCurrentDispatcher, hc = et.ReactCurrentOwner, Vt = 0, al = 8, ar = 16, xr = 32, Wo = 0, Ba = 1, mc = 2, Ha = 3, Wa = 4, sl = 5, We = Vt, Cn = null, qe = null, dn = 0, Ut = Wo, qa = null, Hr = 1073741823, Xi = 1073741823, Ka = null, Gi = 0, Qa = !1, ll = 0, gc = 500, Me = null, Ya = !1, cl = null, go = null, Xa = !1, Zi = null, Ji = 90, qo = null, ea = 0, ul = null, Ga = 0; + var fc, Xc = Math.ceil, $a = et.ReactCurrentDispatcher, hc = et.ReactCurrentOwner, Vt = 0, al = 8, ar = 16, xr = 32, Wo = 0, Ba = 1, mc = 2, Ha = 3, Wa = 4, sl = 5, We = Vt, Cn = null, qe = null, dn = 0, Ut = Wo, qa = null, Hr = 1073741823, Xi = 1073741823, Ka = null, Gi = 0, Qa = !1, ll = 0, gc = 500, Me = null, Ya = !1, cl = null, go = null, Xa = !1, Zi = null, Ji = 90, qo = null, ea = 0, ul = null, Ga = 0; function Sr() { return (We & (ar | xr)) !== Vt ? 1073741821 - (Nt() / 10 | 0) : Ga !== 0 ? Ga : Ga = 1073741821 - (Nt() / 10 | 0); } @@ -5510,7 +5520,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var r = We; We |= ar; for (var a = wc(); ; ) try { - Gc(); + Zc(); break; } catch (E) { kc(e, E); @@ -5552,7 +5562,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); e.lastPingedTime = r; break; } - if (Xi !== 1073741823 ? r = 10 * (1073741821 - Xi) - Nt() : Hr === 1073741823 ? r = 0 : (r = 10 * (1073741821 - Hr) - 5e3, 0 > (r = (a = Nt()) - r) && (r = 0), (n = 10 * (1073741821 - n) - a) < (r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * Yc(r / 1960)) - r) && (r = n)), 10 < r) { + if (Xi !== 1073741823 ? r = 10 * (1073741821 - Xi) - Nt() : Hr === 1073741823 ? r = 0 : (r = 10 * (1073741821 - Hr) - 5e3, 0 > (r = (a = Nt()) - r) && (r = 0), (n = 10 * (1073741821 - n) - a) < (r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * Xc(r / 1960)) - r) && (r = n)), 10 < r) { e.timeoutHandle = Di(Yo.bind(null, e), r); break; } @@ -5584,7 +5594,7 @@ https://fb.me/react-async-component-lifecycle-hooks`); var n = We; We |= ar; for (var r = wc(); ; ) try { - Xc(); + Gc(); break; } catch (a) { kc(e, a); @@ -5686,9 +5696,9 @@ https://fb.me/react-async-component-lifecycle-hooks`); } E = void 0, m = t; var re = a.pingCache; - if (re === null ? (re = a.pingCache = new Qc(), E = /* @__PURE__ */ new Set(), re.set(H, E)) : (E = re.get(H)) === void 0 && (E = /* @__PURE__ */ new Set(), re.set(H, E)), !E.has(m)) { + if (re === null ? (re = a.pingCache = new Yc(), E = /* @__PURE__ */ new Set(), re.set(H, E)) : (E = re.get(H)) === void 0 && (E = /* @__PURE__ */ new Set(), re.set(H, E)), !E.has(m)) { E.add(m); - var ve = tu.bind(null, a, H, m); + var ve = nu.bind(null, a, H, m); H.then(ve, ve); } Re.effectTag |= 4096, Re.expirationTime = t; @@ -5735,10 +5745,10 @@ Add a component higher in the tree to provide a loading function es(e) { e > Gi && (Gi = e); } - function Xc() { + function Gc() { for (; qe !== null; ) qe = Ec(qe); } - function Gc() { + function Zc() { for (; qe !== null && !lo(); ) qe = Ec(qe); } function Ec(e) { @@ -5750,10 +5760,10 @@ Add a component higher in the tree to provide a loading do { var t = qe.alternate; if (e = qe.return, 2048 & qe.effectTag) { - if ((t = Hc(qe)) !== null) return t.effectTag &= 2047, t; + if ((t = Wc(qe)) !== null) return t.effectTag &= 2047, t; e !== null && (e.firstEffect = e.lastEffect = null, e.effectTag |= 2048); } else { - if (t = Bc(t, qe, dn), dn === 1 || qe.childExpirationTime !== 1) { + if (t = Hc(t, qe, dn), dn === 1 || qe.childExpirationTime !== 1) { for (var n = 0, r = qe.child; r !== null; ) { var a = r.expirationTime, p = r.childExpirationTime; a > n && (n = a), p > n && (n = p), r = r.sibling; @@ -5774,9 +5784,9 @@ Add a component higher in the tree to provide a loading } function Yo(e) { var t = Ft(); - return or(99, Zc.bind(null, e, t)), null; + return or(99, Jc.bind(null, e, t)), null; } - function Zc(e, t) { + function Jc(e, t) { do gi(); while (Zi !== null); @@ -5822,7 +5832,7 @@ Add a component higher in the tree to provide a loading Et = { activeElementDetached: null, focusedElem: m, selectionRange: E }, An = !1, Me = a; do try { - Jc(); + eu(); } catch (Xe) { if (Me === null) throw Error(h(330)); Xo(Me, Xe), Me = Me.nextEffect; @@ -5875,7 +5885,7 @@ Add a component higher in the tree to provide a loading try { for (ve = e; Me !== null; ) { var Fe = Me.effectTag; - if (36 & Fe && Kc(ve, Me.alternate, Me), 128 & Fe) { + if (36 & Fe && Qc(ve, Me.alternate, Me), 128 & Fe) { xe = void 0; var at = Me.ref; if (at !== null) { @@ -5897,10 +5907,10 @@ Add a component higher in the tree to provide a loading if ((t = e.firstPendingTime) === 0 && (go = null), t === 1073741823 ? e === ul ? ea++ : (ea = 0, ul = e) : ea = 0, typeof fl == "function" && fl(n.stateNode, r), Tn(e), Ya) throw Ya = !1, e = cl, cl = null, e; return (We & al) !== Vt || tn(), null; } - function Jc() { + function eu() { for (; Me !== null; ) { var e = Me.effectTag; - 256 & e && qc(Me.alternate, Me), !(512 & e) || Xa || (Xa = !0, $i(97, function() { + 256 & e && Kc(Me.alternate, Me), !(512 & e) || Xa || (Xa = !0, $i(97, function() { return gi(), null; })), Me = Me.nextEffect; } @@ -5908,10 +5918,10 @@ Add a component higher in the tree to provide a loading function gi() { if (Ji !== 90) { var e = 97 < Ji ? 97 : Ji; - return Ji = 90, or(e, eu); + return Ji = 90, or(e, tu); } } - function eu() { + function tu() { if (Zi === null) return !1; var e = Zi; if (Zi = null, (We & (ar | xr)) !== Vt) throw Error(h(331)); @@ -5954,11 +5964,11 @@ Add a component higher in the tree to provide a loading n = n.return; } } - function tu(e, t, n) { + function nu(e, t, n) { var r = e.pingCache; r !== null && r.delete(t), Cn === e && dn === n ? Ut === Wa || Ut === Ha && Hr === 1073741823 && Nt() - ll < gc ? Qo(e, dn) : Qa = !0 : Cc(e, n) && ((t = e.lastPingedTime) !== 0 && t < n || (e.lastPingedTime = n, Tn(e))); } - function nu(e, t) { + function ru(e, t) { var n = e.stateNode; n !== null && n.delete(t), (t = 0) == 0 && (t = Ko(t = Sr(), e, null)), (e = Za(e, t)) !== null && Tn(e); } @@ -6130,11 +6140,11 @@ Add a component higher in the tree to provide a loading throw Error(h(156, t.tag)); }; var fl = null, hl = null; - function ru(e, t, n, r) { + function ou(e, t, n, r) { this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.effectTag = 0, this.lastEffect = this.firstEffect = this.nextEffect = null, this.childExpirationTime = this.expirationTime = 0, this.alternate = null; } function Cr(e, t, n, r) { - return new ru(e, t, n, r); + return new ou(e, t, n, r); } function ml(e) { return !(!(e = e.prototype) || !e.isReactComponent); @@ -6196,7 +6206,7 @@ Add a component higher in the tree to provide a loading function yl(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 ou(e, t, n) { + function iu(e, t, n) { this.tag = t, this.current = null, this.containerInfo = e, this.pingCache = this.pendingChildren = null, this.finishedExpirationTime = 0, this.finishedWork = null, this.timeoutHandle = -1, this.pendingContext = this.context = null, this.hydrate = n, this.callbackNode = null, this.callbackPriority = 90, this.lastExpiredTime = this.lastPingedTime = this.nextKnownPendingLevel = this.lastSuspendedTime = this.firstSuspendedTime = this.firstPendingTime = 0; } function Cc(e, t) { @@ -6259,7 +6269,7 @@ Add a component higher in the tree to provide a loading Oc(e, t), (e = e.alternate) && Oc(e, t); } function wl(e, t, n) { - var r = new ou(e, t, n = n != null && n.hydrate === !0), a = Cr(3, null, null, t === 2 ? 7 : t === 1 ? 3 : 0); + var r = new iu(e, t, n = n != null && n.hydrate === !0), a = Cr(3, null, null, t === 2 ? 7 : t === 1 ? 3 : 0); r.current = a, a.stateNode = r, Rs(a), e[Io] = r.current, n && t !== 0 && (function(p, m) { var E = Ge(m); ln.forEach(function(H) { @@ -6375,7 +6385,7 @@ Add a component higher in the tree to provide a loading (We = n) === Vt && tn(); } }; - var iu = { Events: [kr, Zn, Ri, se, S, Bt, function(e) { + var au = { Events: [kr, Zn, Ri, se, S, Bt, function(e) { jt(e, zi); }, le, ge, Po, yn, gi, { current: !1 }] }; (function(e) { @@ -6404,7 +6414,7 @@ Add a component higher in the tree to provide a loading }, findFiberByHostInstance: function(n) { return t ? t(n) : null; }, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null })); - })({ findFiberByHostInstance: no, bundleType: 0, version: "16.14.0", rendererPackageName: "react-dom" }), u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = iu, u.createPortal = Nc, u.findDOMNode = function(e) { + })({ findFiberByHostInstance: no, bundleType: 0, version: "16.14.0", rendererPackageName: "react-dom" }), u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = au, u.createPortal = Nc, u.findDOMNode = function(e) { if (e == null) return null; if (e.nodeType === 1) return e; var t = e._reactInternalFiber; @@ -6459,7 +6469,7 @@ Add a component higher in the tree to provide a loading function C() { } C.resetWarningCache = d, i.exports = function() { - function h(N, I, D, L, ae, te) { + function h(N, I, P, j, ae, te) { if (te !== _) { var R = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"); throw R.name = "Invariant Violation", R; @@ -6473,15 +6483,15 @@ Add a component higher in the tree to provide a loading return w.PropTypes = w, w; }; }, 2799: (i, u) => { - var f = typeof Symbol == "function" && Symbol.for, _ = f ? Symbol.for("react.element") : 60103, d = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, h = f ? Symbol.for("react.strict_mode") : 60108, b = f ? Symbol.for("react.profiler") : 60114, w = 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, ae = f ? Symbol.for("react.suspense") : 60113, te = f ? Symbol.for("react.suspense_list") : 60120, R = f ? Symbol.for("react.memo") : 60115, F = f ? Symbol.for("react.lazy") : 60116, q = f ? Symbol.for("react.block") : 60121, G = 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, _ = f ? Symbol.for("react.element") : 60103, d = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, h = f ? Symbol.for("react.strict_mode") : 60108, b = f ? Symbol.for("react.profiler") : 60114, w = f ? Symbol.for("react.provider") : 60109, N = f ? Symbol.for("react.context") : 60110, I = f ? Symbol.for("react.async_mode") : 60111, P = f ? Symbol.for("react.concurrent_mode") : 60111, j = f ? Symbol.for("react.forward_ref") : 60112, ae = f ? Symbol.for("react.suspense") : 60113, te = f ? Symbol.for("react.suspense_list") : 60120, R = f ? Symbol.for("react.memo") : 60115, F = f ? Symbol.for("react.lazy") : 60116, q = f ? Symbol.for("react.block") : 60121, G = 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; - switch (j) { + var L = S.$$typeof; + switch (L) { case _: switch (S = S.type) { case I: - case D: + case P: case C: case b: case h: @@ -6490,24 +6500,24 @@ Add a component higher in the tree to provide a loading default: switch (S = S && S.$$typeof) { case N: - case L: + case j: case F: case R: case w: return S; default: - return j; + return L; } } case d: - return j; + return L; } } } function he(S) { - return fe(S) === D; + return fe(S) === P; } - u.AsyncMode = I, u.ConcurrentMode = D, u.ContextConsumer = N, u.ContextProvider = w, u.Element = _, u.ForwardRef = L, u.Fragment = C, u.Lazy = F, u.Memo = R, u.Portal = d, u.Profiler = b, u.StrictMode = h, u.Suspense = ae, u.isAsyncMode = function(S) { + u.AsyncMode = I, u.ConcurrentMode = P, u.ContextConsumer = N, u.ContextProvider = w, u.Element = _, u.ForwardRef = j, u.Fragment = C, u.Lazy = F, u.Memo = R, u.Portal = d, u.Profiler = b, u.StrictMode = h, u.Suspense = ae, u.isAsyncMode = function(S) { return he(S) || fe(S) === I; }, u.isConcurrentMode = he, u.isContextConsumer = function(S) { return fe(S) === N; @@ -6516,7 +6526,7 @@ Add a component higher in the tree to provide a loading }, u.isElement = function(S) { return typeof S == "object" && S !== null && S.$$typeof === _; }, u.isForwardRef = function(S) { - return fe(S) === L; + return fe(S) === j; }, u.isFragment = function(S) { return fe(S) === C; }, u.isLazy = function(S) { @@ -6532,7 +6542,7 @@ Add a component higher in the tree to provide a loading }, u.isSuspense = function(S) { return fe(S) === ae; }, u.isValidElementType = function(S) { - return typeof S == "string" || typeof S == "function" || S === C || S === D || S === b || S === h || S === ae || S === te || typeof S == "object" && S !== null && (S.$$typeof === F || S.$$typeof === R || S.$$typeof === w || S.$$typeof === N || S.$$typeof === L || S.$$typeof === G || S.$$typeof === pe || S.$$typeof === oe || S.$$typeof === q); + return typeof S == "string" || typeof S == "function" || S === C || S === P || S === b || S === h || S === ae || S === te || typeof S == "object" && S !== null && (S.$$typeof === F || S.$$typeof === R || S.$$typeof === w || S.$$typeof === N || S.$$typeof === j || S.$$typeof === G || S.$$typeof === pe || S.$$typeof === oe || S.$$typeof === q); }, u.typeOf = fe; }, 2841: (i, u, f) => { f.r(u), f.d(u, { default: () => C }); @@ -6556,7 +6566,7 @@ Add a component higher in the tree to provide a loading } function d(h, b) { return b ? "".concat(b).concat((function(w) { - for (var N = "", I = !0, D = 0; D < w.length; D++) I ? (N += w[D].toUpperCase(), I = !1) : w[D] === "-" ? I = !0 : N += w[D]; + for (var N = "", I = !0, P = 0; P < w.length; P++) I ? (N += w[P].toUpperCase(), I = !1) : w[P] === "-" ? I = !0 : N += w[P]; return N; })(h)) : h; } @@ -6580,7 +6590,7 @@ Add a component higher in the tree to provide a loading return _.isMemo(R) ? h : b[R.$$typeof] || d; } b[_.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, b[_.Memo] = h; - var N = Object.defineProperty, I = Object.getOwnPropertyNames, D = Object.getOwnPropertySymbols, L = Object.getOwnPropertyDescriptor, ae = Object.getPrototypeOf, te = Object.prototype; + var N = Object.defineProperty, I = Object.getOwnPropertyNames, P = Object.getOwnPropertySymbols, j = Object.getOwnPropertyDescriptor, ae = Object.getPrototypeOf, te = Object.prototype; i.exports = function R(F, q, G) { if (typeof q != "string") { if (te) { @@ -6588,13 +6598,13 @@ Add a component higher in the tree to provide a loading pe && pe !== te && R(F, pe, G); } var oe = I(q); - D && (oe = oe.concat(D(q))); + P && (oe = oe.concat(P(q))); for (var fe = w(F), he = w(q), S = 0; S < oe.length; ++S) { - var j = oe[S]; - if (!(C[j] || G && G[j] || he && he[j] || fe && fe[j])) { - var A = L(q, j); + var L = oe[S]; + if (!(C[L] || G && G[L] || he && he[L] || fe && fe[L])) { + var A = j(q, L); try { - N(F, j, A); + N(F, L, A); } catch { } } @@ -6626,30 +6636,30 @@ Add a component higher in the tree to provide a loading } u.add = function(C, h) { return b = C.classList, w = C.nodeName.toLowerCase() == "html" ? f : _, void h.split(" ").forEach(function(N) { - (function(I, D) { - I[D] || (I[D] = 0), I[D] += 1; + (function(I, P) { + I[P] || (I[P] = 0), I[P] += 1; })(w, N), b.add(N); }); var b, w; }, u.remove = function(C, h) { return b = C.classList, w = C.nodeName.toLowerCase() == "html" ? f : _, void h.split(" ").forEach(function(N) { - (function(I, D) { - I[D] && (I[D] -= 1); + (function(I, P) { + I[P] && (I[P] -= 1); })(w, N), w[N] === 0 && b.remove(N); }); var b, w; }; }, 4987: (i) => { - function u(w, N, I, D) { - var L, ae = (L = D) == null || typeof L == "number" || typeof L == "boolean" ? D : I(D), te = N.get(ae); - return te === void 0 && (te = w.call(this, D), N.set(ae, te)), te; + function u(w, N, I, P) { + var j, ae = (j = P) == null || typeof j == "number" || typeof j == "boolean" ? P : I(P), te = N.get(ae); + return te === void 0 && (te = w.call(this, P), N.set(ae, te)), te; } function f(w, N, I) { - var D = Array.prototype.slice.call(arguments, 3), L = I(D), ae = N.get(L); - return ae === void 0 && (ae = w.apply(this, D), N.set(L, ae)), ae; + var P = Array.prototype.slice.call(arguments, 3), j = I(P), ae = N.get(j); + return ae === void 0 && (ae = w.apply(this, P), N.set(j, ae)), ae; } - function _(w, N, I, D, L) { - return I.bind(N, w, D, L); + function _(w, N, I, P, j) { + return I.bind(N, w, P, j); } function d(w, N) { return _(w, this, w.length === 1 ? u : f, N.cache.create(), N.serializer); @@ -6671,8 +6681,8 @@ Add a component higher in the tree to provide a loading return new h(); } }; i.exports = function(w, N) { - var I = N && N.cache ? N.cache : b, D = N && N.serializer ? N.serializer : C; - return (N && N.strategy ? N.strategy : d)(w, { cache: I, serializer: D }); + var I = N && N.cache ? N.cache : b, P = N && N.serializer ? N.serializer : C; + return (N && N.strategy ? N.strategy : d)(w, { cache: I, serializer: P }); }, i.exports.strategies = { variadic: function(w, N) { return _(w, this, f, N.cache.create(), N.serializer); }, monadic: function(w, N) { @@ -6705,8 +6715,8 @@ Add a component higher in the tree to provide a loading } function w(q, G) { for (var pe = {}, oe = [], fe = 0; fe < q.length; fe++) { - var he = q[fe], S = G.base ? he[0] + G.base : he[0], j = pe[S] || 0, A = "".concat(S, " ").concat(j); - pe[S] = j + 1; + var he = q[fe], S = G.base ? he[0] + G.base : he[0], L = pe[S] || 0, A = "".concat(S, " ").concat(L); + pe[S] = L + 1; var se = b(A), J = { css: he[1], media: he[2], sourceMap: he[3] }; se !== -1 ? (h[se].references++, h[se].updater(J)) : h.push({ identifier: A, updater: F(J, G), references: 1 }), oe.push(A); } @@ -6728,13 +6738,13 @@ Add a component higher in the tree to provide a loading } return G; } - var I, D = (I = [], function(q, G) { + var I, P = (I = [], function(q, G) { return I[q] = G, I.filter(Boolean).join(` `); }); - function L(q, G, pe, oe) { + function j(q, G, pe, oe) { var fe = pe ? "" : oe.media ? "@media ".concat(oe.media, " {").concat(oe.css, "}") : oe.css; - if (q.styleSheet) q.styleSheet.cssText = D(G, fe); + if (q.styleSheet) q.styleSheet.cssText = P(G, fe); else { var he = document.createTextNode(fe), S = q.childNodes; S[G] && q.removeChild(S[G]), S.length ? q.insertBefore(he, S[G]) : q.appendChild(he); @@ -6754,7 +6764,7 @@ Add a component higher in the tree to provide a loading var pe, oe, fe; if (G.singleton) { var he = R++; - pe = te || (te = N(G)), oe = L.bind(null, pe, he, !1), fe = L.bind(null, pe, he, !0); + pe = te || (te = N(G)), oe = j.bind(null, pe, he, !1), fe = j.bind(null, pe, he, !0); } else pe = N(G), oe = ae.bind(null, pe, G), fe = function() { (function(S) { if (S.parentNode === null) return !1; @@ -6777,8 +6787,8 @@ Add a component higher in the tree to provide a loading var he = b(pe[fe]); h[he].references--; } - for (var S = w(oe, G), j = 0; j < pe.length; j++) { - var A = b(pe[j]); + for (var S = w(oe, G), L = 0; L < pe.length; L++) { + var A = b(pe[L]); h[A].references === 0 && (h[A].updater(), h.splice(A, 1)); } pe = S; @@ -6791,29 +6801,29 @@ Add a component higher in the tree to provide a loading } }[" "].toString().charAt(0) === '"', C = { Function: "function ", GeneratorFunction: "function* ", AsyncFunction: "async function ", AsyncGeneratorFunction: "async function* " }, h = { Function: "", GeneratorFunction: "*", AsyncFunction: "async ", AsyncGeneratorFunction: "async *" }, b = new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" ")); u.USED_METHOD_KEY = /* @__PURE__ */ new WeakSet(); function w(I) { - let D; - for (const L of I.split(` + let P; + for (const j of I.split(` `).slice(1)) { - const ae = /^[\s\t]+/.exec(L); + const ae = /^[\s\t]+/.exec(j); if (!ae) return I; const [te] = ae; - (D === void 0 || te.length < D.length) && (D = te); + (P === void 0 || te.length < P.length) && (P = te); } - return D ? I.split(` -${D}`).join(` + return P ? I.split(` +${P}`).join(` `) : I; } - u.functionToString = (I, D, L, ae) => { + u.functionToString = (I, P, j, ae) => { const te = typeof ae == "string" ? ae : void 0; - return te !== void 0 && u.USED_METHOD_KEY.add(I), new N(I, D, L, te).stringify(); + return te !== void 0 && u.USED_METHOD_KEY.add(I), new N(I, P, j, te).stringify(); }, u.dedentFunction = w; class N { - constructor(D, L, ae, te) { - this.fn = D, this.indent = L, this.next = ae, this.key = te, this.pos = 0, this.hadKeyword = !1, this.fnString = Function.prototype.toString.call(D), this.fnType = D.constructor.name, this.keyQuote = te === void 0 ? "" : _.quoteKey(te, ae), this.keyPrefix = te === void 0 ? "" : `${this.keyQuote}:${L ? " " : ""}`, this.isMethodCandidate = te !== void 0 && (this.fn.name === "" || this.fn.name === te); + constructor(P, j, ae, te) { + this.fn = P, this.indent = j, this.next = ae, this.key = te, this.pos = 0, this.hadKeyword = !1, this.fnString = Function.prototype.toString.call(P), this.fnType = P.constructor.name, this.keyQuote = te === void 0 ? "" : _.quoteKey(te, ae), this.keyPrefix = te === void 0 ? "" : `${this.keyQuote}:${j ? " " : ""}`, this.isMethodCandidate = te !== void 0 && (this.fn.name === "" || this.fn.name === te); } stringify() { - const D = this.tryParse(); - return D ? w(D) : `${this.keyPrefix}void ${this.next(this.fnString)}`; + const P = this.tryParse(); + return P ? w(P) : `${this.keyPrefix}void ${this.next(this.fnString)}`; } getPrefix() { return this.isMethodCandidate && !this.hadKeyword ? h[this.fnType] + this.keyQuote : this.keyPrefix + C[this.fnType]; @@ -6821,14 +6831,14 @@ ${D}`).join(` tryParse() { if (this.fnString[this.fnString.length - 1] !== "}") return this.keyPrefix + this.fnString; if (this.fn.name) { - const L = this.tryStrippingName(); - if (L) return L; + const j = this.tryStrippingName(); + if (j) return j; } - const D = this.pos; + const P = this.pos; if (this.consumeSyntax() === "class") return this.fnString; - if (this.pos = D, this.tryParsePrefixTokens()) { - const L = this.tryStrippingName(); - if (L) return L; + if (this.pos = P, this.tryParsePrefixTokens()) { + const j = this.tryStrippingName(); + if (j) return j; let ae = this.pos; switch (this.consumeSyntax("WORD_LIKE")) { case "WORD_LIKE": @@ -6845,31 +6855,31 @@ ${D}`).join(` } tryStrippingName() { if (d) return; - let D = this.pos; - const L = this.fnString.substr(this.pos, this.fn.name.length); - if (L === this.fn.name && (this.pos += L.length, this.consumeSyntax() === "()" && this.consumeSyntax() === "{}" && this.pos === this.fnString.length)) return !this.isMethodCandidate && _.isValidVariableName(L) || (D += L.length), this.getPrefix() + this.fnString.substr(D); - this.pos = D; + let P = this.pos; + const j = this.fnString.substr(this.pos, this.fn.name.length); + if (j === this.fn.name && (this.pos += j.length, this.consumeSyntax() === "()" && this.consumeSyntax() === "{}" && this.pos === this.fnString.length)) return !this.isMethodCandidate && _.isValidVariableName(j) || (P += j.length), this.getPrefix() + this.fnString.substr(P); + this.pos = P; } tryParsePrefixTokens() { - let D = this.pos; + let P = this.pos; switch (this.hadKeyword = !1, this.fnType) { case "AsyncFunction": if (this.consumeSyntax() !== "async") return !1; - D = this.pos; + P = this.pos; case "Function": - return this.consumeSyntax() === "function" ? this.hadKeyword = !0 : this.pos = D, !0; + return this.consumeSyntax() === "function" ? this.hadKeyword = !0 : this.pos = P, !0; case "AsyncGeneratorFunction": if (this.consumeSyntax() !== "async") return !1; case "GeneratorFunction": - let L = this.consumeSyntax(); - return L === "function" && (L = this.consumeSyntax(), this.hadKeyword = !0), L === "*"; + let j = this.consumeSyntax(); + return j === "function" && (j = this.consumeSyntax(), this.hadKeyword = !0), j === "*"; } } - consumeSyntax(D) { - const L = this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/); - if (!L) return; - const [ae, te] = L; - if (this.consumeWhitespace(), te) return D || te; + consumeSyntax(P) { + const j = this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/); + if (!j) return; + const [ae, te] = j; + if (this.consumeWhitespace(), te) return P || te; switch (ae) { case "(": return this.consumeSyntaxUntil("(", ")"); @@ -6886,22 +6896,22 @@ ${D}`).join(` } return ae; } - consumeSyntaxUntil(D, L) { + consumeSyntaxUntil(P, j) { let ae = !0; for (; ; ) { const te = this.consumeSyntax(); - if (te === L) return D + L; + if (te === j) return P + j; if (!te || te === ")" || te === "]" || te === "}") return; te === "/" && ae && this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/) ? (ae = !1, this.consumeWhitespace()) : ae = b.has(te); } } - consumeMatch(D) { - const L = D.exec(this.fnString.substr(this.pos)); - return L && (this.pos += L[0].length), L; + consumeMatch(P) { + const j = P.exec(this.fnString.substr(this.pos)); + return j && (this.pos += j[0].length), j; } - consumeRegExp(D, L) { - const ae = D.exec(this.fnString.substr(this.pos)); - if (ae) return this.pos += ae[0].length, this.consumeWhitespace(), L; + consumeRegExp(P, j) { + const ae = P.exec(this.fnString.substr(this.pos)); + if (ae) return this.pos += ae[0].length, this.consumeWhitespace(), j; } consumeTemplate() { for (; ; ) { @@ -6933,23 +6943,23 @@ ${D}`).join(` return !1; } })() ? Object.assign : function(d, C) { - for (var h, b, w = (function(L) { - if (L == null) throw new TypeError("Object.assign cannot be called with null or undefined"); - return Object(L); + for (var h, b, w = (function(j) { + if (j == null) throw new TypeError("Object.assign cannot be called with null or undefined"); + return Object(j); })(d), N = 1; N < arguments.length; N++) { for (var I in h = Object(arguments[N])) f.call(h, I) && (w[I] = h[I]); if (u) { b = u(h); - for (var D = 0; D < b.length; D++) _.call(h, b[D]) && (w[b[D]] = h[b[D]]); + for (var P = 0; P < b.length; P++) _.call(h, b[P]) && (w[b[P]] = h[b[P]]); } } return w; }; }, 5287: (i, u, f) => { - var _ = f(5228), d = typeof Symbol == "function" && Symbol.for, C = d ? Symbol.for("react.element") : 60103, h = d ? Symbol.for("react.portal") : 60106, b = d ? Symbol.for("react.fragment") : 60107, w = 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, ae = d ? Symbol.for("react.suspense") : 60113, te = d ? Symbol.for("react.memo") : 60115, R = d ? Symbol.for("react.lazy") : 60116, F = typeof Symbol == "function" && Symbol.iterator; - function q(P) { - for (var ne = "https://reactjs.org/docs/error-decoder.html?invariant=" + P, we = 1; we < arguments.length; we++) ne += "&args[]=" + encodeURIComponent(arguments[we]); - return "Minified React error #" + P + "; visit " + ne + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + var _ = f(5228), d = typeof Symbol == "function" && Symbol.for, C = d ? Symbol.for("react.element") : 60103, h = d ? Symbol.for("react.portal") : 60106, b = d ? Symbol.for("react.fragment") : 60107, w = d ? Symbol.for("react.strict_mode") : 60108, N = d ? Symbol.for("react.profiler") : 60114, I = d ? Symbol.for("react.provider") : 60109, P = d ? Symbol.for("react.context") : 60110, j = d ? Symbol.for("react.forward_ref") : 60112, ae = d ? Symbol.for("react.suspense") : 60113, te = d ? Symbol.for("react.memo") : 60115, R = d ? Symbol.for("react.lazy") : 60116, F = typeof Symbol == "function" && Symbol.iterator; + function q(D) { + for (var ne = "https://reactjs.org/docs/error-decoder.html?invariant=" + D, we = 1; we < arguments.length; we++) ne += "&args[]=" + encodeURIComponent(arguments[we]); + return "Minified React error #" + D + "; visit " + ne + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var G = { isMounted: function() { return !1; @@ -6957,24 +6967,24 @@ ${D}`).join(` }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, pe = {}; - function oe(P, ne, we) { - this.props = P, this.context = ne, this.refs = pe, this.updater = we || G; + function oe(D, ne, we) { + this.props = D, this.context = ne, this.refs = pe, this.updater = we || G; } function fe() { } - function he(P, ne, we) { - this.props = P, this.context = ne, this.refs = pe, this.updater = we || G; + function he(D, ne, we) { + this.props = D, this.context = ne, this.refs = pe, this.updater = we || G; } - oe.prototype.isReactComponent = {}, oe.prototype.setState = function(P, ne) { - if (typeof P != "object" && typeof P != "function" && P != null) throw Error(q(85)); - this.updater.enqueueSetState(this, P, ne, "setState"); - }, oe.prototype.forceUpdate = function(P) { - this.updater.enqueueForceUpdate(this, P, "forceUpdate"); + oe.prototype.isReactComponent = {}, oe.prototype.setState = function(D, ne) { + if (typeof D != "object" && typeof D != "function" && D != null) throw Error(q(85)); + this.updater.enqueueSetState(this, D, ne, "setState"); + }, oe.prototype.forceUpdate = function(D) { + this.updater.enqueueForceUpdate(this, D, "forceUpdate"); }, fe.prototype = oe.prototype; var S = he.prototype = new fe(); S.constructor = he, _(S, oe.prototype), S.isPureReactComponent = !0; - var j = { current: null }, A = Object.prototype.hasOwnProperty, se = { key: !0, ref: !0, __self: !0, __source: !0 }; - function J(P, ne, we) { + var L = { current: null }, A = Object.prototype.hasOwnProperty, se = { key: !0, ref: !0, __self: !0, __source: !0 }; + function J(D, ne, we) { var Ce, Pe = {}, _e = null, lt = null; if (ne != null) for (Ce in ne.ref !== void 0 && (lt = ne.ref), ne.key !== void 0 && (_e = "" + ne.key), ne) A.call(ne, Ce) && !se.hasOwnProperty(Ce) && (Pe[Ce] = ne[Ce]); var Qe = arguments.length - 2; @@ -6983,106 +6993,106 @@ ${D}`).join(` for (var et = Array(Qe), Pt = 0; Pt < Qe; Pt++) et[Pt] = arguments[Pt + 2]; Pe.children = et; } - if (P && P.defaultProps) for (Ce in Qe = P.defaultProps) Pe[Ce] === void 0 && (Pe[Ce] = Qe[Ce]); - return { $$typeof: C, type: P, key: _e, ref: lt, props: Pe, _owner: j.current }; + if (D && D.defaultProps) for (Ce in Qe = D.defaultProps) Pe[Ce] === void 0 && (Pe[Ce] = Qe[Ce]); + return { $$typeof: C, type: D, key: _e, ref: lt, props: Pe, _owner: L.current }; } - function Ee(P) { - return typeof P == "object" && P !== null && P.$$typeof === C; + function Ee(D) { + return typeof D == "object" && D !== null && D.$$typeof === C; } var ee = /\/+/g, V = []; - function Z(P, ne, we, Ce) { + function Z(D, ne, we, Ce) { if (V.length) { var Pe = V.pop(); - return Pe.result = P, Pe.keyPrefix = ne, Pe.func = we, Pe.context = Ce, Pe.count = 0, Pe; + return Pe.result = D, Pe.keyPrefix = ne, Pe.func = we, Pe.context = Ce, Pe.count = 0, Pe; } - return { result: P, keyPrefix: ne, func: we, context: Ce, count: 0 }; + return { result: D, keyPrefix: ne, func: we, context: Ce, count: 0 }; } - function le(P) { - P.result = null, P.keyPrefix = null, P.func = null, P.context = null, P.count = 0, 10 > V.length && V.push(P); + function le(D) { + D.result = null, D.keyPrefix = null, D.func = null, D.context = null, D.count = 0, 10 > V.length && V.push(D); } - function ge(P, ne, we, Ce) { - var Pe = typeof P; - Pe !== "undefined" && Pe !== "boolean" || (P = null); + function ge(D, ne, we, Ce) { + var Pe = typeof D; + Pe !== "undefined" && Pe !== "boolean" || (D = null); var _e = !1; - if (P === null) _e = !0; + if (D === null) _e = !0; else switch (Pe) { case "string": case "number": _e = !0; break; case "object": - switch (P.$$typeof) { + switch (D.$$typeof) { case C: case h: _e = !0; } } - if (_e) return we(Ce, P, ne === "" ? "." + Ne(P, 0) : ne), 1; - if (_e = 0, ne = ne === "" ? "." : ne + ":", Array.isArray(P)) for (var lt = 0; lt < P.length; lt++) { - var Qe = ne + Ne(Pe = P[lt], lt); + if (_e) return we(Ce, D, ne === "" ? "." + Ne(D, 0) : ne), 1; + if (_e = 0, ne = ne === "" ? "." : ne + ":", Array.isArray(D)) for (var lt = 0; lt < D.length; lt++) { + var Qe = ne + Ne(Pe = D[lt], lt); _e += ge(Pe, Qe, we, Ce); } - else if (P === null || typeof P != "object" ? Qe = null : Qe = typeof (Qe = F && P[F] || P["@@iterator"]) == "function" ? Qe : null, typeof Qe == "function") for (P = Qe.call(P), lt = 0; !(Pe = P.next()).done; ) _e += ge(Pe = Pe.value, Qe = ne + Ne(Pe, lt++), we, Ce); - else if (Pe === "object") throw we = "" + P, Error(q(31, we === "[object Object]" ? "object with keys {" + Object.keys(P).join(", ") + "}" : we, "")); + else if (D === null || typeof D != "object" ? Qe = null : Qe = typeof (Qe = F && D[F] || D["@@iterator"]) == "function" ? Qe : null, typeof Qe == "function") for (D = Qe.call(D), lt = 0; !(Pe = D.next()).done; ) _e += ge(Pe = Pe.value, Qe = ne + Ne(Pe, lt++), we, Ce); + else if (Pe === "object") throw we = "" + D, Error(q(31, we === "[object Object]" ? "object with keys {" + Object.keys(D).join(", ") + "}" : we, "")); return _e; } - function ke(P, ne, we) { - return P == null ? 0 : ge(P, "", ne, we); + function ke(D, ne, we) { + return D == null ? 0 : ge(D, "", ne, we); } - function Ne(P, ne) { - return typeof P == "object" && P !== null && P.key != null ? (function(we) { + function Ne(D, ne) { + return typeof D == "object" && D !== null && D.key != null ? (function(we) { var Ce = { "=": "=0", ":": "=2" }; return "$" + ("" + we).replace(/[=:]/g, function(Pe) { return Ce[Pe]; }); - })(P.key) : ne.toString(36); + })(D.key) : ne.toString(36); } - function Ve(P, ne) { - P.func.call(P.context, ne, P.count++); + function Ve(D, ne) { + D.func.call(D.context, ne, D.count++); } - function Ae(P, ne, we) { - var Ce = P.result, Pe = P.keyPrefix; - P = P.func.call(P.context, ne, P.count++), Array.isArray(P) ? Le(P, Ce, we, function(_e) { + function Ae(D, ne, we) { + var Ce = D.result, Pe = D.keyPrefix; + D = D.func.call(D.context, ne, D.count++), Array.isArray(D) ? Le(D, Ce, we, function(_e) { return _e; - }) : P != null && (Ee(P) && (P = (function(_e, lt) { + }) : D != null && (Ee(D) && (D = (function(_e, lt) { return { $$typeof: C, type: _e.type, key: lt, ref: _e.ref, props: _e.props, _owner: _e._owner }; - })(P, Pe + (!P.key || ne && ne.key === P.key ? "" : ("" + P.key).replace(ee, "$&/") + "/") + we)), Ce.push(P)); + })(D, Pe + (!D.key || ne && ne.key === D.key ? "" : ("" + D.key).replace(ee, "$&/") + "/") + we)), Ce.push(D)); } - function Le(P, ne, we, Ce, Pe) { + function Le(D, ne, we, Ce, Pe) { var _e = ""; - we != null && (_e = ("" + we).replace(ee, "$&/") + "/"), ke(P, Ae, ne = Z(ne, _e, Ce, Pe)), le(ne); + we != null && (_e = ("" + we).replace(ee, "$&/") + "/"), ke(D, Ae, ne = Z(ne, _e, Ce, Pe)), le(ne); } var Ke = { current: null }; function Je() { - var P = Ke.current; - if (P === null) throw Error(q(321)); - return P; + var D = Ke.current; + if (D === null) throw Error(q(321)); + return D; } - var ye = { ReactCurrentDispatcher: Ke, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: j, IsSomeRendererActing: { current: !1 }, assign: _ }; - u.Children = { map: function(P, ne, we) { - if (P == null) return P; + var ye = { ReactCurrentDispatcher: Ke, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: L, IsSomeRendererActing: { current: !1 }, assign: _ }; + u.Children = { map: function(D, ne, we) { + if (D == null) return D; var Ce = []; - return Le(P, Ce, null, ne, we), Ce; - }, forEach: function(P, ne, we) { - if (P == null) return P; - ke(P, Ve, ne = Z(null, null, ne, we)), le(ne); - }, count: function(P) { - return ke(P, function() { + return Le(D, Ce, null, ne, we), Ce; + }, forEach: function(D, ne, we) { + if (D == null) return D; + ke(D, Ve, ne = Z(null, null, ne, we)), le(ne); + }, count: function(D) { + return ke(D, function() { return null; }, null); - }, toArray: function(P) { + }, toArray: function(D) { var ne = []; - return Le(P, ne, null, function(we) { + return Le(D, ne, null, function(we) { return we; }), ne; - }, only: function(P) { - if (!Ee(P)) throw Error(q(143)); - return P; - } }, u.Component = oe, u.Fragment = b, u.Profiler = N, u.PureComponent = he, u.StrictMode = w, u.Suspense = ae, u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, u.cloneElement = function(P, ne, we) { - if (P == null) throw Error(q(267, P)); - var Ce = _({}, P.props), Pe = P.key, _e = P.ref, lt = P._owner; + }, only: function(D) { + if (!Ee(D)) throw Error(q(143)); + return D; + } }, u.Component = oe, u.Fragment = b, u.Profiler = N, u.PureComponent = he, u.StrictMode = w, u.Suspense = ae, u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, u.cloneElement = function(D, ne, we) { + if (D == null) throw Error(q(267, D)); + var Ce = _({}, D.props), Pe = D.key, _e = D.ref, lt = D._owner; if (ne != null) { - if (ne.ref !== void 0 && (_e = ne.ref, lt = j.current), ne.key !== void 0 && (Pe = "" + ne.key), P.type && P.type.defaultProps) var Qe = P.type.defaultProps; + if (ne.ref !== void 0 && (_e = ne.ref, lt = L.current), ne.key !== void 0 && (Pe = "" + ne.key), D.type && D.type.defaultProps) var Qe = D.type.defaultProps; for (et in ne) A.call(ne, et) && !se.hasOwnProperty(et) && (Ce[et] = ne[et] === void 0 && Qe !== void 0 ? Qe[et] : ne[et]); } var et = arguments.length - 2; @@ -7092,73 +7102,73 @@ ${D}`).join(` for (var Pt = 0; Pt < et; Pt++) Qe[Pt] = arguments[Pt + 2]; Ce.children = Qe; } - return { $$typeof: C, type: P.type, key: Pe, ref: _e, props: Ce, _owner: lt }; - }, u.createContext = function(P, ne) { - return ne === void 0 && (ne = null), (P = { $$typeof: D, _calculateChangedBits: ne, _currentValue: P, _currentValue2: P, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: I, _context: P }, P.Consumer = P; - }, u.createElement = J, u.createFactory = function(P) { - var ne = J.bind(null, P); - return ne.type = P, ne; + return { $$typeof: C, type: D.type, key: Pe, ref: _e, props: Ce, _owner: lt }; + }, u.createContext = function(D, ne) { + return ne === void 0 && (ne = null), (D = { $$typeof: P, _calculateChangedBits: ne, _currentValue: D, _currentValue2: D, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: I, _context: D }, D.Consumer = D; + }, u.createElement = J, u.createFactory = function(D) { + var ne = J.bind(null, D); + return ne.type = D, ne; }, u.createRef = function() { return { current: null }; - }, u.forwardRef = function(P) { - return { $$typeof: L, render: P }; - }, u.isValidElement = Ee, u.lazy = function(P) { - return { $$typeof: R, _ctor: P, _status: -1, _result: null }; - }, u.memo = function(P, ne) { - return { $$typeof: te, type: P, compare: ne === void 0 ? null : ne }; - }, u.useCallback = function(P, ne) { - return Je().useCallback(P, ne); - }, u.useContext = function(P, ne) { - return Je().useContext(P, ne); + }, u.forwardRef = function(D) { + return { $$typeof: j, render: D }; + }, u.isValidElement = Ee, u.lazy = function(D) { + return { $$typeof: R, _ctor: D, _status: -1, _result: null }; + }, u.memo = function(D, ne) { + return { $$typeof: te, type: D, compare: ne === void 0 ? null : ne }; + }, u.useCallback = function(D, ne) { + return Je().useCallback(D, ne); + }, u.useContext = function(D, ne) { + return Je().useContext(D, ne); }, u.useDebugValue = function() { - }, u.useEffect = function(P, ne) { - return Je().useEffect(P, ne); - }, u.useImperativeHandle = function(P, ne, we) { - return Je().useImperativeHandle(P, ne, we); - }, u.useLayoutEffect = function(P, ne) { - return Je().useLayoutEffect(P, ne); - }, u.useMemo = function(P, ne) { - return Je().useMemo(P, ne); - }, u.useReducer = function(P, ne, we) { - return Je().useReducer(P, ne, we); - }, u.useRef = function(P) { - return Je().useRef(P); - }, u.useState = function(P) { - return Je().useState(P); + }, u.useEffect = function(D, ne) { + return Je().useEffect(D, ne); + }, u.useImperativeHandle = function(D, ne, we) { + return Je().useImperativeHandle(D, ne, we); + }, u.useLayoutEffect = function(D, ne) { + return Je().useLayoutEffect(D, ne); + }, u.useMemo = function(D, ne) { + return Je().useMemo(D, ne); + }, u.useReducer = function(D, ne, we) { + return Je().useReducer(D, ne, we); + }, u.useRef = function(D) { + return Je().useRef(D); + }, u.useState = function(D) { + return Je().useState(D); }, u.version = "16.14.0"; }, 5323: (i, u, f) => { u.A = void 0; const _ = f(42), d = f(1099), C = Symbol("root"); u.A = function(h, b, w, N = {}) { - const I = typeof w == "string" ? w : " ".repeat(w || 0), D = [], L = /* @__PURE__ */ new Set(), ae = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map(); + const I = typeof w == "string" ? w : " ".repeat(w || 0), P = [], j = /* @__PURE__ */ new Set(), ae = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map(); let R = 0; - const { maxDepth: F = 100, references: q = !1, skipUndefinedProperties: G = !1, maxValues: pe = 1e5 } = N, oe = (function(j) { - return j ? (A, se, J, Ee) => j(A, se, (ee) => _.toString(ee, se, J, Ee), Ee) : _.toString; - })(b), fe = (j, A) => { - if (++R > pe || G && j === void 0 || D.length > F) return; - if (A === void 0) return oe(j, I, fe, A); - D.push(A); - const se = he(j, A === C ? void 0 : A); - return D.pop(), se; - }, he = q ? (j, A) => { - if (j !== null && (typeof j == "object" || typeof j == "function" || typeof j == "symbol")) { - if (ae.has(j)) return te.set(D.slice(1), ae.get(j)), oe(void 0, I, fe, A); - ae.set(j, D.slice(1)); - } - return oe(j, I, fe, A); - } : (j, A) => { - if (L.has(j)) return; - L.add(j); - const se = oe(j, I, fe, A); - return L.delete(j), se; + const { maxDepth: F = 100, references: q = !1, skipUndefinedProperties: G = !1, maxValues: pe = 1e5 } = N, oe = (function(L) { + return L ? (A, se, J, Ee) => L(A, se, (ee) => _.toString(ee, se, J, Ee), Ee) : _.toString; + })(b), fe = (L, A) => { + if (++R > pe || G && L === void 0 || P.length > F) return; + if (A === void 0) return oe(L, I, fe, A); + P.push(A); + const se = he(L, A === C ? void 0 : A); + return P.pop(), se; + }, he = q ? (L, A) => { + if (L !== null && (typeof L == "object" || typeof L == "function" || typeof L == "symbol")) { + if (ae.has(L)) return te.set(P.slice(1), ae.get(L)), oe(void 0, I, fe, A); + ae.set(L, P.slice(1)); + } + return oe(L, I, fe, A); + } : (L, A) => { + if (j.has(L)) return; + j.add(L); + const se = oe(L, I, fe, A); + return j.delete(L), se; }, S = fe(h, C); if (te.size) { - const j = I ? " " : "", A = I ? ` + const L = I ? " " : "", A = I ? ` ` : ""; - let se = `var x${j}=${j}${S};${A}`; + let se = `var x${L}=${L}${S};${A}`; for (const [J, Ee] of te.entries()) - se += `x${d.stringifyPath(J, fe)}${j}=${j}x${d.stringifyPath(Ee, fe)};${A}`; - return `(function${j}()${j}{${A}${se}return x;${A}}())`; + se += `x${d.stringifyPath(J, fe)}${L}=${L}x${d.stringifyPath(Ee, fe)};${A}`; + return `(function${L}()${L}{${A}${se}return x;${A}}())`; } return S; }; @@ -7194,8 +7204,8 @@ ${D}`).join(` ke && (ke.get || ke.set) ? Object.defineProperty(Z, ge, ke) : Z[ge] = ee[ge]; } return Z.default = ee, V && V.set(ee, Z), Z; - })(f(6540)), d = L(f(5556)), C = L(f(961)), h = L(f(6942)), b = f(1089), w = f(1726), N = f(7056), I = L(f(6888)), D = L(f(8696)); - function L(ee) { + })(f(6540)), d = j(f(5556)), C = j(f(961)), h = j(f(6942)), b = f(1089), w = f(1726), N = f(7056), I = j(f(6888)), P = j(f(8696)); + function j(ee) { return ee && ee.__esModule ? ee : { default: ee }; } function ae() { @@ -7306,7 +7316,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return Z.__proto__ = le, Z; }, S(ee, V); } - function j(ee) { + function L(ee) { var V = (function() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") return !0; @@ -7345,29 +7355,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (typeof ge != "function" && ge !== null) throw new TypeError("Super expression must either be null or a function"); le.prototype = Object.create(ge && ge.prototype, { constructor: { value: le, writable: !0, configurable: !0 } }), ge && S(le, ge); })(Z, ee); - var V = j(Z); + var V = L(Z); function Z(le) { var ge; return (function(ke, Ne) { if (!(ke instanceof Ne)) throw new TypeError("Cannot call a class as a function"); })(this, Z), J(A(ge = V.call(this, le)), "onDragStart", function(ke, Ne) { - if ((0, D.default)("Draggable: onDragStart: %j", Ne), ge.props.onStart(ke, (0, w.createDraggableData)(A(ge), Ne)) === !1) return !1; + if ((0, P.default)("Draggable: onDragStart: %j", Ne), ge.props.onStart(ke, (0, w.createDraggableData)(A(ge), Ne)) === !1) return !1; ge.setState({ dragging: !0, dragged: !0 }); }), J(A(ge), "onDrag", function(ke, Ne) { if (!ge.state.dragging) return !1; - (0, D.default)("Draggable: onDrag: %j", Ne); + (0, P.default)("Draggable: onDrag: %j", Ne); var Ve = (0, w.createDraggableData)(A(ge), Ne), Ae = { x: Ve.x, y: Ve.y }; if (ge.props.bounds) { var Le = Ae.x, Ke = Ae.y; Ae.x += ge.state.slackX, Ae.y += ge.state.slackY; - var Je = q((0, w.getBoundPosition)(A(ge), Ae.x, Ae.y), 2), ye = Je[0], P = Je[1]; - Ae.x = ye, Ae.y = P, Ae.slackX = ge.state.slackX + (Le - Ae.x), Ae.slackY = ge.state.slackY + (Ke - Ae.y), Ve.x = Ae.x, Ve.y = Ae.y, Ve.deltaX = Ae.x - ge.state.x, Ve.deltaY = Ae.y - ge.state.y; + var Je = q((0, w.getBoundPosition)(A(ge), Ae.x, Ae.y), 2), ye = Je[0], D = Je[1]; + Ae.x = ye, Ae.y = D, Ae.slackX = ge.state.slackX + (Le - Ae.x), Ae.slackY = ge.state.slackY + (Ke - Ae.y), Ve.x = Ae.x, Ve.y = Ae.y, Ve.deltaX = Ae.x - ge.state.x, Ve.deltaY = Ae.y - ge.state.y; } if (ge.props.onDrag(ke, Ve) === !1) return !1; ge.setState(Ae); }), J(A(ge), "onDragStop", function(ke, Ne) { if (!ge.state.dragging || ge.props.onStop(ke, (0, w.createDraggableData)(A(ge), Ne)) === !1) return !1; - (0, D.default)("Draggable: onDragStop: %j", Ne); + (0, P.default)("Draggable: onDragStop: %j", Ne); var Ve = { dragging: !1, slackX: 0, slackY: 0 }; if (ge.props.position) { var Ae = ge.props.position, Le = Ae.x, Ke = Ae.y; @@ -7378,7 +7388,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return he(Z, null, [{ key: "getDerivedStateFromProps", value: function(le, ge) { var ke = le.position, Ne = ge.prevPropsPosition; - return !ke || Ne && ke.x === Ne.x && ke.y === Ne.y ? null : ((0, D.default)("Draggable: getDerivedStateFromProps %j", { position: ke, prevPropsPosition: Ne }), { x: ke.x, y: ke.y, prevPropsPosition: oe({}, ke) }); + return !ke || Ne && ke.x === Ne.x && ke.y === Ne.y ? null : ((0, P.default)("Draggable: getDerivedStateFromProps %j", { position: ke, prevPropsPosition: Ne }), { x: ke.x, y: ke.y, prevPropsPosition: oe({}, ke) }); } }]), he(Z, [{ key: "componentDidMount", value: function() { window.SVGElement !== void 0 && this.findDOMNode() instanceof window.SVGElement && this.setState({ isElementSVG: !0 }); } }, { key: "componentWillUnmount", value: function() { @@ -7386,10 +7396,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, ge = this.props, ke = (ge.axis, ge.bounds, ge.children), Ne = ge.defaultPosition, Ve = ge.defaultClassName, Ae = ge.defaultClassNameDragging, Le = ge.defaultClassNameDragged, Ke = ge.position, Je = ge.positionOffset, ye = (ge.scale, F(ge, ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"])), P = {}, ne = null, we = !Ke || this.state.dragging, Ce = Ke || Ne, Pe = { x: (0, w.canDragX)(this) && we ? this.state.x : Ce.x, y: (0, w.canDragY)(this) && we ? this.state.y : Ce.y }; - this.state.isElementSVG ? ne = (0, b.createSVGTransform)(Pe, Je) : P = (0, b.createCSSTransform)(Pe, Je); + var le, ge = this.props, ke = (ge.axis, ge.bounds, ge.children), Ne = ge.defaultPosition, Ve = ge.defaultClassName, Ae = ge.defaultClassNameDragging, Le = ge.defaultClassNameDragged, Ke = ge.position, Je = ge.positionOffset, ye = (ge.scale, F(ge, ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"])), D = {}, ne = null, we = !Ke || this.state.dragging, Ce = Ke || Ne, Pe = { x: (0, w.canDragX)(this) && we ? this.state.x : Ce.x, y: (0, w.canDragY)(this) && we ? this.state.y : Ce.y }; + this.state.isElementSVG ? ne = (0, b.createSVGTransform)(Pe, Je) : D = (0, b.createCSSTransform)(Pe, Je); var _e = (0, h.default)(ke.props.className || "", Ve, (J(le = {}, Ae, this.state.dragging), J(le, Le, this.state.dragged), le)); - return _.createElement(I.default, R({}, ye, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), _.cloneElement(_.Children.only(ke), { className: _e, style: oe(oe({}, ke.props.style), P), transform: ne })); + return _.createElement(I.default, R({}, ye, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), _.cloneElement(_.Children.only(ke), { className: _e, style: oe(oe({}, ke.props.style), D), transform: ne })); } }]), Z; })(_.Component); u.default = Ee, J(Ee, "displayName", "Draggable"), J(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 })), J(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 })); @@ -7450,50 +7460,50 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho })), b = null; }, u.log = function() { }, u.assertNodeList = w, u.setElement = function(I) { - var D = I; - if (typeof D == "string" && h.canUseDOM) { - var L = document.querySelectorAll(D); - w(L, D), D = L; + var P = I; + if (typeof P == "string" && h.canUseDOM) { + var j = document.querySelectorAll(P); + w(j, P), P = j; } - return b = D || b; + return b = P || b; }, u.validateElement = N, u.hide = function(I) { - var D = !0, L = !1, ae = void 0; + var P = !0, j = !1, ae = void 0; try { - for (var te, R = N(I)[Symbol.iterator](); !(D = (te = R.next()).done); D = !0) + for (var te, R = N(I)[Symbol.iterator](); !(P = (te = R.next()).done); P = !0) te.value.setAttribute("aria-hidden", "true"); } catch (F) { - L = !0, ae = F; + j = !0, ae = F; } finally { try { - !D && R.return && R.return(); + !P && R.return && R.return(); } finally { - if (L) throw ae; + if (j) throw ae; } } }, u.show = function(I) { - var D = !0, L = !1, ae = void 0; + var P = !0, j = !1, ae = void 0; try { - for (var te, R = N(I)[Symbol.iterator](); !(D = (te = R.next()).done); D = !0) + for (var te, R = N(I)[Symbol.iterator](); !(P = (te = R.next()).done); P = !0) te.value.removeAttribute("aria-hidden"); } catch (F) { - L = !0, ae = F; + j = !0, ae = F; } finally { try { - !D && R.return && R.return(); + !P && R.return && R.return(); } finally { - if (L) throw ae; + if (j) throw ae; } } }, u.documentNotReadyOrSSRTesting = function() { b = null; }; var _, d = f(9771), C = (_ = d) && _.__esModule ? _ : { default: _ }, h = f(834), b = null; - function w(I, D) { - if (!I || !I.length) throw new Error("react-modal: No elements were found for selector " + D + "."); + function w(I, P) { + if (!I || !I.length) throw new Error("react-modal: No elements were found for selector " + P + "."); } function N(I) { - var D = I || b; - 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(" ")), []); + var P = I || b; + return P ? Array.isArray(P) || P instanceof HTMLCollection || P instanceof NodeList ? P : [P] : ((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) => { i.exports = f(5287); @@ -7506,8 +7516,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Object.defineProperty(u, "__esModule", { value: !0 }), u.default = void 0; var _ = (function(A) { if (A && A.__esModule) return A; - if (A === null || L(A) !== "object" && typeof A != "function") return { default: A }; - var se = D(); + if (A === null || j(A) !== "object" && typeof A != "function") return { default: A }; + var se = P(); if (se && se.has(A)) return se.get(A); var J = {}, Ee = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var ee in A) if (Object.prototype.hasOwnProperty.call(A, ee)) { @@ -7519,19 +7529,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function I(A) { return A && A.__esModule ? A : { default: A }; } - function D() { + function P() { if (typeof WeakMap != "function") return null; var A = /* @__PURE__ */ new WeakMap(); - return D = function() { + return P = function() { return A; }, A; } - function L(A) { - return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(se) { + function j(A) { + return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(se) { return typeof se; } : function(se) { return se && typeof Symbol == "function" && se.constructor === Symbol && se !== Symbol.prototype ? "symbol" : typeof se; - }, L(A); + }, j(A); } function ae(A, se) { return (function(J) { @@ -7598,7 +7608,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho J = Reflect.construct(Ee, arguments, ee); } else J = Ee.apply(this, arguments); return (function(V, Z) { - return Z && (L(Z) === "object" || typeof Z == "function") ? Z : G(V); + return Z && (j(Z) === "object" || typeof Z == "function") ? Z : G(V); })(this, J); }; } @@ -7614,7 +7624,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function oe(A, se, J) { return se in A ? Object.defineProperty(A, se, { value: J, enumerable: !0, configurable: !0, writable: !0 }) : A[se] = J, A; } - var fe = { start: "touchstart", move: "touchmove", stop: "touchend" }, he = { start: "mousedown", move: "mousemove", stop: "mouseup" }, S = he, j = (function(A) { + var fe = { start: "touchstart", move: "touchmove", stop: "touchend" }, he = { start: "mousedown", move: "mousemove", stop: "mouseup" }, S = he, L = (function(A) { (function(V, Z) { if (typeof Z != "function" && Z !== null) throw new TypeError("Super expression must either be null or a function"); V.prototype = Object.create(Z && Z.prototype, { constructor: { value: V, writable: !0, configurable: !0 } }), Z && F(V, Z); @@ -7655,8 +7665,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho else try { V.handleDragStop(new MouseEvent("mouseup")); } catch { - var P = document.createEvent("MouseEvents"); - P.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), V.handleDragStop(P); + var D = document.createEvent("MouseEvents"); + D.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), V.handleDragStop(D); } } }), oe(G(V), "handleDragStop", function(ke) { @@ -7696,9 +7706,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return _.cloneElement(_.Children.only(this.props.children), { onMouseDown: this.onMouseDown, onMouseUp: this.onMouseUp, onTouchEnd: this.onTouchEnd }); } }]) && R(se.prototype, J), ee; })(_.Component); - u.default = j, oe(j, "displayName", "DraggableCore"), oe(j, "propTypes", { allowAnyClick: d.default.bool, disabled: d.default.bool, enableUserSelectHack: d.default.bool, offsetParent: function(A, se) { + u.default = L, oe(L, "displayName", "DraggableCore"), oe(L, "propTypes", { allowAnyClick: d.default.bool, disabled: d.default.bool, enableUserSelectHack: d.default.bool, offsetParent: function(A, se) { if (A[se] && A[se].nodeType !== 1) throw new Error("Draggable's offsetParent must be a DOM Node."); - }, grid: d.default.arrayOf(d.default.number), handle: d.default.string, cancel: d.default.string, nodeRef: d.default.object, onStart: d.default.func, onDrag: d.default.func, onStop: d.default.func, onMouseDown: d.default.func, scale: d.default.number, className: w.dontSetMe, style: w.dontSetMe, transform: w.dontSetMe }), oe(j, "defaultProps", { allowAnyClick: !1, cancel: null, disabled: !1, enableUserSelectHack: !0, offsetParent: null, handle: null, grid: null, transform: null, onStart: function() { + }, grid: d.default.arrayOf(d.default.number), handle: d.default.string, cancel: d.default.string, nodeRef: d.default.object, onStart: d.default.func, onDrag: d.default.func, onStop: d.default.func, onMouseDown: d.default.func, scale: d.default.number, className: w.dontSetMe, style: w.dontSetMe, transform: w.dontSetMe }), oe(L, "defaultProps", { allowAnyClick: !1, cancel: null, disabled: !1, enableUserSelectHack: !0, offsetParent: null, handle: null, grid: null, transform: null, onStart: function() { }, onDrag: function() { }, onStop: function() { }, onMouseDown: function() { @@ -7753,16 +7763,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Object.defineProperty(u, "__esModule", { value: !0 }), u.default = function(b, w) { var N = (0, C.default)(b); if (!N.length) return void w.preventDefault(); - var I = void 0, D = w.shiftKey, L = N[0], ae = N[N.length - 1], te = h(); + var I = void 0, P = w.shiftKey, j = N[0], ae = N[N.length - 1], te = h(); if (b === te) { - if (!D) return; + if (!P) return; I = ae; } - if (ae !== te || D || (I = L), L === te && D && (I = ae), I) return w.preventDefault(), void I.focus(); + if (ae !== te || P || (I = j), j === te && P && (I = ae), I) return w.preventDefault(), void I.focus(); var R = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent); if (!(R == null || R[1] == "Chrome" || /\biPod\b|\biPad\b/g.exec(navigator.userAgent) != null)) { var F = N.indexOf(te); - if (F > -1 && (F += D ? -1 : 1), (I = N[F]) === void 0) return w.preventDefault(), void (I = D ? ae : L).focus(); + if (F > -1 && (F += P ? -1 : 1), (I = N[F]) === void 0) return w.preventDefault(), void (I = P ? ae : j).focus(); w.preventDefault(), I.focus(); } }; @@ -7793,16 +7803,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (b !== null) try { var ye = u.unstable_now(); b(!0, ye), b = null; - } catch (P) { - throw setTimeout(N, 0), P; + } catch (D) { + throw setTimeout(N, 0), D; } }, 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)); - }, _ = function(ye, P) { - w = setTimeout(ye, P); + }, _ = function(ye, D) { + w = setTimeout(ye, D); }, d = function() { clearTimeout(w); }, C = function() { @@ -7810,18 +7820,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, h = u.unstable_forceFrameRate = function() { }; } else { - var D = window.performance, L = window.Date, ae = window.setTimeout, te = window.clearTimeout; + var P = window.performance, j = window.Date, ae = window.setTimeout, te = window.clearTimeout; if (typeof console < "u") { var R = window.cancelAnimationFrame; typeof window.requestAnimationFrame != "function" && console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"), typeof R != "function" && console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"); } - if (typeof D == "object" && typeof D.now == "function") u.unstable_now = function() { - return D.now(); + if (typeof P == "object" && typeof P.now == "function") u.unstable_now = function() { + return P.now(); }; else { - var F = L.now(); + var F = j.now(); u.unstable_now = function() { - return L.now() - F; + return j.now() - F; }; } var q = !1, G = null, pe = -1, oe = 5, fe = 0; @@ -7838,37 +7848,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho fe = ye + oe; try { G(!0, ye) ? S.postMessage(null) : (q = !1, G = null); - } catch (P) { - throw S.postMessage(null), P; + } catch (D) { + throw S.postMessage(null), D; } } else q = !1; }, f = function(ye) { G = ye, q || (q = !0, S.postMessage(null)); - }, _ = function(ye, P) { + }, _ = function(ye, D) { pe = ae(function() { ye(u.unstable_now()); - }, P); + }, D); }, d = function() { te(pe), pe = -1; }; } - function j(ye, P) { + function L(ye, D) { var ne = ye.length; - ye.push(P); + ye.push(D); e: for (; ; ) { var we = ne - 1 >>> 1, Ce = ye[we]; - if (!(Ce !== void 0 && 0 < J(Ce, P))) break e; - ye[we] = P, ye[ne] = Ce, ne = we; + if (!(Ce !== void 0 && 0 < J(Ce, D))) break e; + ye[we] = D, ye[ne] = Ce, ne = we; } } function A(ye) { return (ye = ye[0]) === void 0 ? null : ye; } function se(ye) { - var P = ye[0]; - if (P !== void 0) { + var D = ye[0]; + if (D !== void 0) { var ne = ye.pop(); - if (ne !== P) { + if (ne !== D) { ye[0] = ne; e: for (var we = 0, Ce = ye.length; we < Ce; ) { var Pe = 2 * (we + 1) - 1, _e = ye[Pe], lt = Pe + 1, Qe = ye[lt]; @@ -7879,49 +7889,49 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } - return P; + return D; } return null; } - function J(ye, P) { - var ne = ye.sortIndex - P.sortIndex; - return ne !== 0 ? ne : ye.id - P.id; + function J(ye, D) { + var ne = ye.sortIndex - D.sortIndex; + return ne !== 0 ? ne : ye.id - D.id; } var Ee = [], ee = [], V = 1, Z = null, le = 3, ge = !1, ke = !1, Ne = !1; function Ve(ye) { - for (var P = A(ee); P !== null; ) { - if (P.callback === null) se(ee); + for (var D = A(ee); D !== null; ) { + if (D.callback === null) se(ee); else { - if (!(P.startTime <= ye)) break; - se(ee), P.sortIndex = P.expirationTime, j(Ee, P); + if (!(D.startTime <= ye)) break; + se(ee), D.sortIndex = D.expirationTime, L(Ee, D); } - P = A(ee); + D = A(ee); } } function Ae(ye) { if (Ne = !1, Ve(ye), !ke) if (A(Ee) !== null) ke = !0, f(Le); else { - var P = A(ee); - P !== null && _(Ae, P.startTime - ye); + var D = A(ee); + D !== null && _(Ae, D.startTime - ye); } } - function Le(ye, P) { + function Le(ye, D) { ke = !1, Ne && (Ne = !1, d()), ge = !0; var ne = le; try { - for (Ve(P), Z = A(Ee); Z !== null && (!(Z.expirationTime > P) || ye && !C()); ) { + for (Ve(D), Z = A(Ee); Z !== null && (!(Z.expirationTime > D) || ye && !C()); ) { var we = Z.callback; if (we !== null) { Z.callback = null, le = Z.priorityLevel; - var Ce = we(Z.expirationTime <= P); - P = u.unstable_now(), typeof Ce == "function" ? Z.callback = Ce : Z === A(Ee) && se(Ee), Ve(P); + var Ce = we(Z.expirationTime <= D); + D = u.unstable_now(), typeof Ce == "function" ? Z.callback = Ce : Z === A(Ee) && se(Ee), Ve(D); } else se(Ee); Z = A(Ee); } if (Z !== null) var Pe = !0; else { var _e = A(ee); - _e !== null && _(Ae, _e.startTime - P), Pe = !1; + _e !== null && _(Ae, _e.startTime - D), Pe = !1; } return Pe; } finally { @@ -7956,20 +7966,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho case 1: case 2: case 3: - var P = 3; + var D = 3; break; default: - P = le; + D = le; } var ne = le; - le = P; + le = D; try { return ye(); } finally { le = ne; } }, u.unstable_pauseExecution = function() { - }, u.unstable_requestPaint = Je, u.unstable_runWithPriority = function(ye, P) { + }, u.unstable_requestPaint = Je, u.unstable_runWithPriority = function(ye, D) { switch (ye) { case 1: case 2: @@ -7983,27 +7993,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var ne = le; le = ye; try { - return P(); + return D(); } finally { le = ne; } - }, u.unstable_scheduleCallback = function(ye, P, ne) { + }, u.unstable_scheduleCallback = function(ye, D, ne) { var we = u.unstable_now(); if (typeof ne == "object" && ne !== null) { var Ce = ne.delay; Ce = typeof Ce == "number" && 0 < Ce ? we + Ce : we, ne = typeof ne.timeout == "number" ? ne.timeout : Ke(ye); } else ne = Ke(ye), Ce = we; - return ye = { id: V++, callback: P, priorityLevel: ye, startTime: Ce, expirationTime: ne = Ce + ne, sortIndex: -1 }, Ce > we ? (ye.sortIndex = Ce, j(ee, ye), A(Ee) === null && ye === A(ee) && (Ne ? d() : Ne = !0, _(Ae, Ce - we))) : (ye.sortIndex = ne, j(Ee, ye), ke || ge || (ke = !0, f(Le))), ye; + return ye = { id: V++, callback: D, priorityLevel: ye, startTime: Ce, expirationTime: ne = Ce + ne, sortIndex: -1 }, Ce > we ? (ye.sortIndex = Ce, L(ee, ye), A(Ee) === null && ye === A(ee) && (Ne ? d() : Ne = !0, _(Ae, Ce - we))) : (ye.sortIndex = ne, L(Ee, ye), ke || ge || (ke = !0, f(Le))), ye; }, u.unstable_shouldYield = function() { var ye = u.unstable_now(); Ve(ye); - var P = A(Ee); - return P !== Z && Z !== null && P !== null && P.callback !== null && P.startTime <= ye && P.expirationTime < Z.expirationTime || C(); + var D = A(Ee); + return D !== Z && Z !== null && D !== null && D.callback !== null && D.startTime <= ye && D.expirationTime < Z.expirationTime || C(); }, u.unstable_wrapCallback = function(ye) { - var P = le; + var D = le; return function() { var ne = le; - le = P; + le = D; try { return ye.apply(this, arguments); } finally { @@ -8013,16 +8023,16 @@ 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 = [h, b], D = 0; D < I.length; D++) { - var L = I[D]; - L && L.parentNode && L.parentNode.removeChild(L); + for (var I = [h, b], P = 0; P < I.length; P++) { + var j = I[P]; + j && j.parentNode && j.parentNode.removeChild(j); } h = b = null, w = []; }, u.log = function() { console.log("bodyTrap ----------"), console.log(w.length); - for (var I = [h, b], D = 0; D < I.length; D++) { - var L = I[D] || {}; - console.log(L.nodeName, L.className, L.id); + for (var I = [h, b], P = 0; P < I.length; P++) { + var j = I[P] || {}; + console.log(j.nodeName, j.className, j.id); } console.log("edn bodyTrap ----------"); }; @@ -8030,8 +8040,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function N() { w.length !== 0 && w[w.length - 1].focusContent(); } - C.default.subscribe(function(I, D) { - h || b || ((h = document.createElement("div")).setAttribute("data-react-modal-body-trap", ""), h.style.position = "absolute", h.style.opacity = "0", h.setAttribute("tabindex", "0"), h.addEventListener("focus", N), (b = h.cloneNode()).addEventListener("focus", N)), (w = D).length > 0 ? (document.body.firstChild !== h && document.body.insertBefore(h, document.body.firstChild), document.body.lastChild !== b && document.body.appendChild(b)) : (h.parentElement && h.parentElement.removeChild(h), b.parentElement && b.parentElement.removeChild(b)); + C.default.subscribe(function(I, P) { + h || b || ((h = document.createElement("div")).setAttribute("data-react-modal-body-trap", ""), h.style.position = "absolute", h.style.opacity = "0", h.setAttribute("tabindex", "0"), h.addEventListener("focus", N), (b = h.cloneNode()).addEventListener("focus", N)), (w = P).length > 0 ? (document.body.firstChild !== h && document.body.insertBefore(h, document.body.firstChild), document.body.lastChild !== b && document.body.appendChild(b)) : (h.parentElement && h.parentElement.removeChild(h), b.parentElement && b.parentElement.removeChild(b)); }); }, 7785: (i, u, f) => { var _ = f(5072), d = f(2444); @@ -8045,16 +8055,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, u.handleBlur = N, u.handleFocus = I, u.markForFocusLater = function() { h.push(document.activeElement); }, u.returnFocus = function() { - var D = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], L = null; + var P = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], j = null; try { - return void (h.length !== 0 && (L = h.pop()).focus({ preventScroll: D })); + return void (h.length !== 0 && (j = h.pop()).focus({ preventScroll: P })); } catch { - console.warn(["You tried to return focus to", L, "but it is not in the DOM anymore"].join(" ")); + console.warn(["You tried to return focus to", j, "but it is not in the DOM anymore"].join(" ")); } }, u.popWithoutFocus = function() { h.length > 0 && h.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)); + }, u.setupScopedFocus = function(P) { + b = P, 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)); }; @@ -8073,14 +8083,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, 7860: (i, u, f) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.objectToString = void 0; const _ = f(1099), d = f(5180), C = f(8814); - u.objectToString = (w, N, I, D) => { + u.objectToString = (w, N, I, P) => { if (typeof Buffer == "function" && Buffer.isBuffer(w)) return `Buffer.from(${I(w.toString("base64"))}, 'base64')`; if (typeof f.g == "object" && w === f.g) return h(w, N, I); - const L = b[Object.prototype.toString.call(w)]; - return L ? L(w, N, I, D) : void 0; + const j = b[Object.prototype.toString.call(w)]; + return j ? j(w, N, I, P) : void 0; }; - const h = (w, N, I) => `Function(${I("return this")})()`, b = { "[object Array]": C.arrayToString, "[object Object]": (w, N, I, D) => { - const L = N ? ` + const h = (w, N, I) => `Function(${I("return this")})()`, b = { "[object Array]": C.arrayToString, "[object Object]": (w, N, I, P) => { + const j = N ? ` ` : "", ae = N ? " " : "", te = Object.keys(w).reduce(function(R, F) { const q = w[F], G = I(q, F); if (G === void 0) return R; @@ -8088,23 +8098,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).join(` ${N}`); return d.USED_METHOD_KEY.has(q) ? (R.push(`${N}${pe}`), R) : (R.push(`${N}${_.quoteKey(F, I)}:${ae}${pe}`), R); - }, []).join(`,${L}`); - return te === "" ? "{}" : `{${L}${te}${L}}`; + }, []).join(`,${j}`); + return te === "" ? "{}" : `{${j}${te}${j}}`; }, "[object Error]": (w, N, I) => `new Error(${I(w.message)})`, "[object Date]": (w) => `new Date(${w.getTime()})`, "[object String]": (w, N, I) => `new String(${I(w.toString())})`, "[object Number]": (w) => `new Number(${w})`, "[object Boolean]": (w) => `new Boolean(${w})`, "[object Set]": (w, N, I) => `new Set(${I(Array.from(w))})`, "[object Map]": (w, N, I) => `new Map(${I(Array.from(w))})`, "[object RegExp]": String, "[object global]": h, "[object Window]": h }; }, 7965: (i, u, f) => { var _ = f(6426), d = { "text/plain": "Text", "text/html": "Url", default: "Text" }; i.exports = function(C, h) { - var b, w, N, I, D, L, ae = !1; + var b, w, N, I, P, j, ae = !1; h || (h = {}), b = h.debug || !1; try { - if (N = _(), 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(te) { + if (N = _(), I = document.createRange(), P = document.getSelection(), (j = document.createElement("span")).textContent = C, j.ariaHidden = "true", j.style.all = "unset", j.style.position = "fixed", j.style.top = 0, j.style.clip = "rect(0, 0, 0, 0)", j.style.whiteSpace = "pre", j.style.webkitUserSelect = "text", j.style.MozUserSelect = "text", j.style.msUserSelect = "text", j.style.userSelect = "text", j.addEventListener("copy", function(te) { if (te.stopPropagation(), h.format) if (te.preventDefault(), te.clipboardData === void 0) { b && console.warn("unable to use e.clipboardData"), b && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); var R = d[h.format] || d.default; window.clipboardData.setData(R, C); } else te.clipboardData.clearData(), te.clipboardData.setData(h.format, C); h.onCopy && (te.preventDefault(), h.onCopy(te.clipboardData)); - }), document.body.appendChild(L), I.selectNodeContents(L), D.addRange(I), !document.execCommand("copy")) throw new Error("copy command was unsuccessful"); + }), document.body.appendChild(j), I.selectNodeContents(j), P.addRange(I), !document.execCommand("copy")) throw new Error("copy command was unsuccessful"); ae = !0; } catch (te) { b && console.error("unable to copy using execCommand: ", te), b && console.warn("trying IE specific stuff"); @@ -8117,14 +8127,14 @@ ${N}`); })("message" in h ? h.message : "Copy to clipboard: #{key}, Enter"), window.prompt(w, C); } } finally { - D && (typeof D.removeRange == "function" ? D.removeRange(I) : D.removeAllRanges()), L && document.body.removeChild(L), N(); + P && (typeof P.removeRange == "function" ? P.removeRange(I) : P.removeAllRanges()), j && document.body.removeChild(j), N(); } return ae; }; }, 8142: (i, u, f) => { i = f.nmd(i); - var _ = "__lodash_hash_undefined__", d = 9007199254740991, C = "[object Arguments]", h = "[object Array]", b = "[object Boolean]", w = "[object Date]", N = "[object Error]", I = "[object Function]", D = "[object Map]", L = "[object Number]", ae = "[object Object]", te = "[object Promise]", R = "[object RegExp]", F = "[object Set]", q = "[object String]", G = "[object Symbol]", pe = "[object WeakMap]", oe = "[object ArrayBuffer]", fe = "[object DataView]", he = /^\[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[h] = j[oe] = j[b] = j[fe] = j[w] = j[N] = j[I] = j[D] = j[L] = j[ae] = j[R] = j[F] = j[q] = j[pe] = !1; + var _ = "__lodash_hash_undefined__", d = 9007199254740991, C = "[object Arguments]", h = "[object Array]", b = "[object Boolean]", w = "[object Date]", N = "[object Error]", I = "[object Function]", P = "[object Map]", j = "[object Number]", ae = "[object Object]", te = "[object Promise]", R = "[object RegExp]", F = "[object Set]", q = "[object String]", G = "[object Symbol]", pe = "[object WeakMap]", oe = "[object ArrayBuffer]", fe = "[object DataView]", he = /^\[object .+?Constructor\]$/, S = /^(?:0|[1-9]\d*)$/, L = {}; + L["[object Float32Array]"] = L["[object Float64Array]"] = L["[object Int8Array]"] = L["[object Int16Array]"] = L["[object Int32Array]"] = L["[object Uint8Array]"] = L["[object Uint8ClampedArray]"] = L["[object Uint16Array]"] = L["[object Uint32Array]"] = !0, L[C] = L[h] = L[oe] = L[b] = L[fe] = L[w] = L[N] = L[I] = L[P] = L[j] = L[ae] = L[R] = L[F] = L[q] = L[pe] = !1; var A = typeof f.g == "object" && f.g && f.g.Object === Object && f.g, se = typeof self == "object" && self && self.Object === Object && self, J = A || se || Function("return this")(), Ee = u && !u.nodeType && u, ee = Ee && i && !i.nodeType && i, V = ee && ee.exports === Ee, Z = V && A.process, le = (function() { try { return Z && Z.binding && Z.binding("util"); @@ -8147,7 +8157,7 @@ ${N}`); be[++Y] = De; }), be; } - var Ae, Le, Ke, Je = Array.prototype, ye = Function.prototype, P = Object.prototype, ne = J["__core-js_shared__"], we = ye.toString, Ce = P.hasOwnProperty, Pe = (Ae = /[^.]+$/.exec(ne && ne.keys && ne.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Ae : "", _e = P.toString, lt = RegExp("^" + we.call(Ce).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Qe = V ? J.Buffer : void 0, et = J.Symbol, Pt = J.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, ye = Function.prototype, D = Object.prototype, ne = J["__core-js_shared__"], we = ye.toString, Ce = D.hasOwnProperty, Pe = (Ae = /[^.]+$/.exec(ne && ne.keys && ne.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Ae : "", _e = D.toString, lt = RegExp("^" + we.call(Ce).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Qe = V ? J.Buffer : void 0, et = J.Symbol, Pt = J.Uint8Array, ko = D.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)); }), Bn = In(J, "DataView"), Hn = In(J, "Map"), an = In(J, "Promise"), pn = In(J, "Set"), sr = In(J, "WeakMap"), $t = In(Object, "create"), Wr = mn(Bn), qr = mn(Hn), _o = mn(an), Eo = mn(pn), xo = mn(sr), Wn = et ? et.prototype : void 0, Kt = Wn ? Wn.valueOf : void 0; function zt(M) { @@ -8224,14 +8234,14 @@ ${N}`); return !(nt.byteLength != Ze.byteLength || !ut(new Pt(nt), new Pt(Ze))); case b: case w: - case L: + case j: return Yr(+nt, +Ze); case N: return nt.name == Ze.name && nt.message == Ze.message; case R: case q: return nt == Ze + ""; - case D: + case P: var Tt = Ne; case F: var Lt = 1 & vn; @@ -8287,7 +8297,7 @@ ${N}`); })(M)) && (Kn(M) ? lt : he).test(mn(M)); } function Nr(M) { - if (be = (Y = M) && Y.constructor, De = typeof be == "function" && be.prototype || P, Y !== De) return wo(M); + if (be = (Y = M) && Y.constructor, De = typeof be == "function" && be.prototype || D, Y !== De) return wo(M); var Y, be, De, tt = []; for (var $e in Object(M)) Ce.call(M, $e) && $e != "constructor" && tt.push($e); return tt; @@ -8437,13 +8447,13 @@ ${N}`); function Yr(M, Y) { return M === Y || M != M && Y != Y; } - (Bn && hn(new Bn(new ArrayBuffer(1))) != fe || Hn && hn(new Hn()) != D || an && hn(an.resolve()) != te || pn && hn(new pn()) != F || sr && hn(new sr()) != pe) && (hn = function(M) { + (Bn && hn(new Bn(new ArrayBuffer(1))) != fe || Hn && hn(new Hn()) != P || an && hn(an.resolve()) != te || pn && hn(new pn()) != F || sr && hn(new sr()) != pe) && (hn = function(M) { var Y = fn(M), be = Y == ae ? M.constructor : void 0, De = be ? mn(be) : ""; if (De) switch (De) { case Wr: return fe; case qr: - return D; + return P; case _o: return te; case Eo: @@ -8480,7 +8490,7 @@ ${N}`); return M(Y); }; })(ge) : function(M) { - return Rn(M) && cr(M.length) && !!j[fn(M)]; + return Rn(M) && cr(M.length) && !!L[fn(M)]; }; function Rr(M) { return (Y = M) != null && cr(Y.length) && !Kn(Y) ? Kr(M) : Nr(M); @@ -8543,10 +8553,10 @@ ${_}`); var C = { injectType: "singletonStyleTag", attributes: { "data-cke-inspector": !0 }, insert: "head", singleton: !0 }; _(d, C), i.exports = d.locals || {}; }, 8989: (i, u) => { - var f = 60103, _ = 60106, d = 60107, C = 60108, h = 60114, b = 60109, w = 60110, N = 60112, I = 60113, D = 60120, L = 60115, ae = 60116; + var f = 60103, _ = 60106, d = 60107, C = 60108, h = 60114, b = 60109, w = 60110, N = 60112, I = 60113, P = 60120, j = 60115, ae = 60116; if (typeof Symbol == "function" && Symbol.for) { var te = Symbol.for; - f = te("react.element"), _ = te("react.portal"), d = te("react.fragment"), C = te("react.strict_mode"), h = te("react.profiler"), b = te("react.provider"), w = te("react.context"), N = te("react.forward_ref"), I = te("react.suspense"), D = te("react.suspense_list"), L = te("react.memo"), ae = te("react.lazy"), te("react.block"), te("react.server.block"), te("react.fundamental"), te("react.debug_trace_mode"), te("react.legacy_hidden"); + f = te("react.element"), _ = te("react.portal"), d = te("react.fragment"), C = te("react.strict_mode"), h = te("react.profiler"), b = te("react.provider"), w = te("react.context"), N = te("react.forward_ref"), I = te("react.suspense"), P = te("react.suspense_list"), j = te("react.memo"), ae = te("react.lazy"), te("react.block"), te("react.server.block"), te("react.fundamental"), te("react.debug_trace_mode"), te("react.legacy_hidden"); } function R(F) { if (typeof F == "object" && F !== null) { @@ -8558,14 +8568,14 @@ ${_}`); case h: case C: case I: - case D: + case P: return F; default: switch (F = F && F.$$typeof) { case w: case N: case ae: - case L: + case j: case b: return F; default: @@ -8595,14 +8605,14 @@ ${_}`); }, C = /* @__PURE__ */ (function() { function oe(fe, he) { for (var S = 0; S < he.length; S++) { - var j = he[S]; - j.enumerable = j.enumerable || !1, j.configurable = !0, "value" in j && (j.writable = !0), Object.defineProperty(fe, j.key, j); + var L = he[S]; + L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(fe, L.key, L); } } return function(fe, he, S) { return he && oe(fe.prototype, he), S && oe(fe, S), fe; }; - })(), h = f(6540), b = F(f(5556)), w = R(f(7791)), N = F(f(7067)), I = R(f(6462)), D = R(f(4838)), L = f(834), ae = F(L), te = F(f(9628)); + })(), h = f(6540), b = F(f(5556)), w = R(f(7791)), N = F(f(7067)), I = R(f(6462)), P = R(f(4838)), j = f(834), ae = F(j), te = F(f(9628)); function R(oe) { if (oe && oe.__esModule) return oe; var fe = {}; @@ -8615,20 +8625,20 @@ ${_}`); f(7727); var q = { overlay: "ReactModal__Overlay", content: "ReactModal__Content" }, G = 0, pe = (function(oe) { function fe(he) { - (function(j, A) { - if (!(j instanceof A)) throw new TypeError("Cannot call a class as a function"); + (function(L, A) { + if (!(L instanceof A)) throw new TypeError("Cannot call a class as a function"); })(this, fe); - var S = (function(j, A) { - if (!j) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !A || typeof A != "object" && typeof A != "function" ? j : A; + var S = (function(L, A) { + if (!L) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !A || typeof A != "object" && typeof A != "function" ? L : A; })(this, (fe.__proto__ || Object.getPrototypeOf(fe)).call(this, he)); - return S.setOverlayRef = function(j) { - S.overlay = j, S.props.overlayRef && S.props.overlayRef(j); - }, S.setContentRef = function(j) { - S.content = j, S.props.contentRef && S.props.contentRef(j); + return S.setOverlayRef = function(L) { + S.overlay = L, S.props.overlayRef && S.props.overlayRef(L); + }, S.setContentRef = function(L) { + S.content = L, S.props.contentRef && S.props.contentRef(L); }, S.afterClose = function() { - var j = S.props, A = j.appElement, se = j.ariaHideApp, J = j.htmlOpenClassName, Ee = j.bodyOpenClassName, ee = j.parentSelector, V = ee && ee().ownerDocument || document; - Ee && D.remove(V.body, Ee), J && D.remove(V.getElementsByTagName("html")[0], J), se && G > 0 && (G -= 1) === 0 && I.show(A), S.props.shouldFocusAfterRender && (S.props.shouldReturnFocusAfterClose ? (w.returnFocus(S.props.preventScroll), w.teardownScopedFocus()) : w.popWithoutFocus()), S.props.onAfterClose && S.props.onAfterClose(), te.default.deregister(S); + var L = S.props, A = L.appElement, se = L.ariaHideApp, J = L.htmlOpenClassName, Ee = L.bodyOpenClassName, ee = L.parentSelector, V = ee && ee().ownerDocument || document; + Ee && P.remove(V.body, Ee), J && P.remove(V.getElementsByTagName("html")[0], J), se && G > 0 && (G -= 1) === 0 && I.show(A), S.props.shouldFocusAfterRender && (S.props.shouldReturnFocusAfterClose ? (w.returnFocus(S.props.preventScroll), w.teardownScopedFocus()) : w.popWithoutFocus()), S.props.onAfterClose && S.props.onAfterClose(), te.default.deregister(S); }, S.open = function() { S.beforeOpen(), S.state.afterOpen && S.state.beforeClose ? (clearTimeout(S.closeTimer), S.setState({ beforeClose: !1 })) : (S.props.shouldFocusAfterRender && (w.setupScopedFocus(S.node), w.markForFocusLater()), S.setState({ isOpen: !0 }, function() { S.openAnimationFrame = requestAnimationFrame(function() { @@ -8640,42 +8650,42 @@ ${_}`); }, S.focusContent = function() { return S.content && !S.contentHasFocus() && S.content.focus({ preventScroll: !0 }); }, S.closeWithTimeout = function() { - var j = Date.now() + S.props.closeTimeoutMS; - S.setState({ beforeClose: !0, closesAt: j }, function() { + var L = Date.now() + S.props.closeTimeoutMS; + S.setState({ beforeClose: !0, closesAt: L }, function() { S.closeTimer = setTimeout(S.closeWithoutTimeout, S.state.closesAt - Date.now()); }); }, S.closeWithoutTimeout = function() { S.setState({ beforeClose: !1, isOpen: !1, afterOpen: !1, closesAt: null }, S.afterClose); - }, S.handleKeyDown = function(j) { + }, S.handleKeyDown = function(L) { (function(A) { return A.code === "Tab" || A.keyCode === 9; - })(j) && (0, N.default)(S.content, j), S.props.shouldCloseOnEsc && (function(A) { + })(L) && (0, N.default)(S.content, L), S.props.shouldCloseOnEsc && (function(A) { return A.code === "Escape" || A.keyCode === 27; - })(j) && (j.stopPropagation(), S.requestClose(j)); - }, S.handleOverlayOnClick = function(j) { - S.shouldClose === null && (S.shouldClose = !0), S.shouldClose && S.props.shouldCloseOnOverlayClick && (S.ownerHandlesClose() ? S.requestClose(j) : S.focusContent()), S.shouldClose = null; + })(L) && (L.stopPropagation(), S.requestClose(L)); + }, S.handleOverlayOnClick = function(L) { + S.shouldClose === null && (S.shouldClose = !0), S.shouldClose && S.props.shouldCloseOnOverlayClick && (S.ownerHandlesClose() ? S.requestClose(L) : S.focusContent()), S.shouldClose = null; }, S.handleContentOnMouseUp = function() { S.shouldClose = !1; - }, S.handleOverlayOnMouseDown = function(j) { - S.props.shouldCloseOnOverlayClick || j.target != S.overlay || j.preventDefault(); + }, S.handleOverlayOnMouseDown = function(L) { + S.props.shouldCloseOnOverlayClick || L.target != S.overlay || L.preventDefault(); }, S.handleContentOnClick = function() { S.shouldClose = !1; }, S.handleContentOnMouseDown = function() { S.shouldClose = !1; - }, S.requestClose = function(j) { - return S.ownerHandlesClose() && S.props.onRequestClose(j); + }, S.requestClose = function(L) { + return S.ownerHandlesClose() && S.props.onRequestClose(L); }, S.ownerHandlesClose = function() { return S.props.onRequestClose; }, S.shouldBeClosed = function() { return !S.state.isOpen && !S.state.beforeClose; }, S.contentHasFocus = function() { return document.activeElement === S.content || S.content.contains(document.activeElement); - }, S.buildClassName = function(j, A) { - var se = (A === void 0 ? "undefined" : d(A)) === "object" ? A : { base: q[j], afterOpen: q[j] + "--after-open", beforeClose: q[j] + "--before-close" }, J = se.base; + }, S.buildClassName = function(L, A) { + var se = (A === void 0 ? "undefined" : d(A)) === "object" ? A : { base: q[L], afterOpen: q[L] + "--after-open", beforeClose: q[L] + "--before-close" }, J = se.base; return S.state.afterOpen && (J = J + " " + se.afterOpen), S.state.beforeClose && (J = J + " " + se.beforeClose), typeof A == "string" && A ? J + " " + A : J; - }, S.attributesFromObject = function(j, A) { + }, S.attributesFromObject = function(L, A) { return Object.keys(A).reduce(function(se, J) { - return se[j + "-" + J] = A[J], se; + return se[L + "-" + J] = A[J], se; }, {}); }, S.state = { afterOpen: !1, beforeClose: !1 }, S.shouldClose = null, S.moveFromContentToOverlay = null, S; } @@ -8689,16 +8699,16 @@ ${_}`); } }, { key: "componentWillUnmount", value: function() { this.state.isOpen && this.afterClose(), clearTimeout(this.closeTimer), cancelAnimationFrame(this.openAnimationFrame); } }, { key: "beforeOpen", value: function() { - var he = this.props, S = he.appElement, j = he.ariaHideApp, A = he.htmlOpenClassName, se = he.bodyOpenClassName, J = he.parentSelector, Ee = J && J().ownerDocument || document; - se && D.add(Ee.body, se), A && D.add(Ee.getElementsByTagName("html")[0], A), j && (G += 1, I.hide(S)), te.default.register(this); + var he = this.props, S = he.appElement, L = he.ariaHideApp, A = he.htmlOpenClassName, se = he.bodyOpenClassName, J = he.parentSelector, Ee = J && J().ownerDocument || document; + se && P.add(Ee.body, se), A && P.add(Ee.getElementsByTagName("html")[0], A), L && (G += 1, I.hide(S)), te.default.register(this); } }, { key: "render", value: function() { - var he = this.props, S = he.id, j = he.className, A = he.overlayClassName, se = he.defaultStyles, J = he.children, Ee = j ? {} : se.content, ee = A ? {} : se.overlay; + var he = this.props, S = he.id, L = he.className, A = he.overlayClassName, se = he.defaultStyles, J = he.children, Ee = L ? {} : se.content, ee = A ? {} : se.overlay; if (this.shouldBeClosed()) return null; - var V = { ref: this.setOverlayRef, className: this.buildClassName("overlay", A), style: _({}, ee, this.props.style.overlay), onClick: this.handleOverlayOnClick, onMouseDown: this.handleOverlayOnMouseDown }, Z = _({ id: S, ref: this.setContentRef, style: _({}, Ee, this.props.style.content), className: this.buildClassName("content", j), tabIndex: "-1", onKeyDown: this.handleKeyDown, onMouseDown: this.handleContentOnMouseDown, onMouseUp: this.handleContentOnMouseUp, onClick: this.handleContentOnClick, role: this.props.role, "aria-label": this.props.contentLabel }, this.attributesFromObject("aria", _({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), { "data-testid": this.props.testId }), le = this.props.contentElement(Z, J); + var V = { ref: this.setOverlayRef, className: this.buildClassName("overlay", A), style: _({}, ee, this.props.style.overlay), onClick: this.handleOverlayOnClick, onMouseDown: this.handleOverlayOnMouseDown }, Z = _({ id: S, ref: this.setContentRef, style: _({}, Ee, this.props.style.content), className: this.buildClassName("content", L), tabIndex: "-1", onKeyDown: this.handleKeyDown, onMouseDown: this.handleContentOnMouseDown, onMouseUp: this.handleContentOnMouseUp, onClick: this.handleContentOnClick, role: this.props.role, "aria-label": this.props.contentLabel }, this.attributesFromObject("aria", _({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), { "data-testid": this.props.testId }), le = this.props.contentElement(Z, J); return this.props.overlayElement(V, le); } }]), fe; })(h.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(ae.default), b.default.instanceOf(L.SafeHTMLCollection), b.default.instanceOf(L.SafeNodeList), b.default.arrayOf(b.default.instanceOf(ae.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: 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(ae.default), b.default.instanceOf(j.SafeHTMLCollection), b.default.instanceOf(j.SafeNodeList), b.default.arrayOf(b.default.instanceOf(ae.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; }, 9628: (i, u) => { Object.defineProperty(u, "__esModule", { value: !0 }), u.log = function() { console.log("portalOpenInstances ----------"), console.log(_.openInstances.length), _.openInstances.forEach(function(d) { @@ -8847,12 +8857,12 @@ ${_}`); l(); }, I = function() { return N; - }, D = { notify: function() { + }, P = { notify: function() { }, get: function() { return []; } }; - function L(l, o) { - var s, c = D; + function j(l, o) { + var s, c = P; function g() { x.onStateChange && x.onStateChange(); } @@ -8883,7 +8893,7 @@ ${_}`); }, handleChangeWrapper: g, isSubscribed: function() { return !!s; }, trySubscribe: y, tryUnsubscribe: function() { - s && (s(), s = void 0, c.clear(), c = D); + s && (s(), s = void 0, c.clear(), c = P); }, getListeners: function() { return c; } }; @@ -8892,7 +8902,7 @@ ${_}`); var ae = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? i.useLayoutEffect : i.useEffect; const te = function(l) { var o = l.store, s = l.context, c = l.children, g = (0, i.useMemo)(function() { - var z = L(o); + var z = j(o); return { store: o, subscription: z }; }, [o]), y = (0, i.useMemo)(function() { return o.getState(); @@ -8925,7 +8935,7 @@ ${_}`); return s; } var q = O(4146), G = O.n(q), pe = O(4737), oe = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"], fe = ["reactReduxForwardedRef"], he = [], S = [null, null]; - function j(l, o) { + function L(l, o) { var s = l[1]; return [o.payload, s + 1]; } @@ -8981,11 +8991,11 @@ ${_}`); })(cn); }, [cn]), Ft = (0, i.useMemo)(function() { if (!ie) return S; - var ir = L(cn, qt ? null : en.subscription), Uo = ir.notifyNestedSubs.bind(ir); + var ir = j(cn, qt ? null : en.subscription), Uo = ir.notifyNestedSubs.bind(ir); return [ir, Uo]; }, [cn, qt, en]), un = Ft[0], or = Ft[1], $i = (0, i.useMemo)(function() { return qt ? en : R({}, en, { subscription: un }); - }, [qt, en, un]), Bi = (0, i.useReducer)(j, he, Ee), tn = Bi[0][0], Ta = Bi[1]; + }, [qt, en, un]), Bi = (0, i.useReducer)(L, he, Ee), tn = Bi[0][0], Ta = Bi[1]; if (tn && tn.error) throw tn.error; var Fo = (0, i.useRef)(), nn = (0, i.useRef)(Wt), Ur = (0, i.useRef)(), Vo = (0, i.useRef)(!1), wr = It(function() { return Ur.current && Wt === nn.current ? Ur.current : Nt(cn.getState(), Wt); @@ -9105,7 +9115,7 @@ ${_}`); return de ? Oe(Te, ze) : (z = l(y = Te, x = ze), Q = o(c, x), X = s(z, Q, x), de = !0, X); }; } - function P(l, o) { + function D(l, o) { var s = o.initMapStateToProps, c = o.initMapDispatchToProps, g = o.initMergeProps, y = F(o, Ke), x = s(l, y), z = c(l, y), Q = g(l, y); return (y.pure ? ye : Je)(x, z, Q, l, y); } @@ -9123,7 +9133,7 @@ ${_}`); return l === o; } function Pe(l) { - var o = {}, s = o.connectHOC, c = s === void 0 ? ee : s, g = o.mapStateToPropsFactories, y = g === void 0 ? Ve : g, x = o.mapDispatchToPropsFactories, z = x === void 0 ? Ne : x, Q = o.mergePropsFactories, X = Q === void 0 ? Le : Q, ie = o.selectorFactory, ue = ie === void 0 ? P : ie; + var o = {}, s = o.connectHOC, c = s === void 0 ? ee : s, g = o.mapStateToPropsFactories, y = g === void 0 ? Ve : g, x = o.mapDispatchToPropsFactories, z = x === void 0 ? Ne : x, Q = o.mergePropsFactories, X = Q === void 0 ? Le : Q, ie = o.selectorFactory, ue = ie === void 0 ? D : ie; return function(me, de, Oe, Te) { Te === void 0 && (Te = {}); var ze = Te, st = ze.pure, He = st === void 0 || st, je = ze.areStatesEqual, dt = je === void 0 ? Ce : je, vt = ze.areOwnPropsEqual, Ht = vt === void 0 ? Z : vt, xt = ze.areStatePropsEqual, It = xt === void 0 ? Z : xt, St = ze.areMergedPropsEqual, mt = St === void 0 ? Z : St, En = F(ze, ne), it = we(me, y, "mapStateToProps"), xn = we(de, z, "mapDispatchToProps"), jn = we(Oe, X, "mergeProps"); @@ -10856,14 +10866,14 @@ ${_}`); })()); })(_l)), _l.exports; } -var Qu = Ku(); -const Yu = /* @__PURE__ */ qu(Qu); +var Yu = Qu(); +const Xu = /* @__PURE__ */ Ku(Yu); /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license GPL-3.0-or-later */ -const Xu = function(Se) { +const Gu = function(Se) { const k = Se.plugins.get(Ac), v = $(Se.ui.view.element), T = $(Se.sourceElement), O = `ckeditor${Math.floor(Math.random() * 1e9)}`, K = [ "keypress", "keyup", @@ -10886,7 +10896,7 @@ const Xu = function(Se) { } else i.off(`.${O}`); }); -}, Gu = function(Se, k) { +}, Zu = function(Se, k) { if (k.heading !== void 0) { var v = k.heading.options; v.find((T) => T.view === "h1") !== void 0 && Se.keystrokes.set( @@ -10909,7 +10919,7 @@ const Xu = function(Se) { () => Se.execute("heading", { value: "heading6" }) ), v.find((T) => T.model === "paragraph") !== void 0 && Se.keystrokes.set("Ctrl+Alt+p", "paragraph"); } -}, Zu = function(Se, k) { +}, Ju = function(Se, k) { let v = null; const T = Se.editing.view.document, O = Se.plugins.get("ClipboardPipeline"); T.on("clipboardOutput", (K, i) => { @@ -10928,14 +10938,14 @@ const Xu = function(Se) { ]; K.stop(); const N = $(Se.ui.view.element); - let D = N.parents("form").data("elementEditor"); - await D.ensureIsDraftOrRevision(); - let L = N.parents(".input"); - if (L.length > 0) { - let ae = $(L[0]).find("div.ckeditor-container"); + let P = N.parents("form").data("elementEditor"); + await P.ensureIsDraftOrRevision(); + let j = N.parents(".input"); + if (j.length > 0) { + let ae = $(j[0]).find("div.ckeditor-container"); ae.length > 0 && (C = $(ae[0]).data("element-id")); } - C == null && (C = D.settings.elementId), h = N.parents(".field").data("layoutElement"); + C == null && (C = P.settings.elementId), h = N.parents(".field").data("layoutElement"); for (let ae = 0; ae < w.length; ae++) { let te = null; w[ae][1] && (te = w[ae][1]); @@ -10944,7 +10954,7 @@ const Xu = function(Se) { const F = new RegExp('data-entry-id="' + te + '"'); if (!(v === Se.id && !F.test(b))) { let q = null; - v !== Se.id && (k.includes(Vu) ? q = Se.config.get("entryTypeOptions").map((G) => G.value) : (Craft.cp.displayError( + v !== Se.id && (k.includes(Uu) ? q = Se.config.get("entryTypeOptions").map((G) => G.value) : (Craft.cp.displayError( Craft.t( "ckeditor", "This field doesn’t allow nested entries." @@ -10981,10 +10991,10 @@ const Xu = function(Se) { } } }); -}, id = async function(Se, k) { +}, ad = async function(Se, k) { typeof Se == "string" && (Se = document.querySelector(`#${Se}`)), k.licenseKey = "GPL", k.attachTo = Se; - const v = await xu.create(k); - Craft.showCkeditorInspector && Craft.userIsAdmin && Yu.attach(v), v.editing.view.change((i) => { + const v = await Su.create(k); + Craft.showCkeditorInspector && Craft.userIsAdmin && Xu.attach(v), v.editing.view.change((i) => { const u = v.editing.view.document.getRoot(); if (typeof k.accessibleFieldName < "u" && k.accessibleFieldName.length) { let f = u.getAttribute("aria-label"); @@ -11023,14 +11033,14 @@ const Xu = function(Se) { } return v.model.document.on("change:data", () => { v.updateSourceElement(); - }), k.plugins.includes(Ac) && Xu(v), k.plugins.includes(Su) && Gu(v, k), Zu(v, k.plugins), v; + }), k.plugins.includes(Ac) && Gu(v), k.plugins.includes(Cu) && Zu(v, k), Ju(v, k.plugins), v; }; export { - Vu as CraftEntries, - td as CraftImageInsertUI, - ed as CraftImageTextAlternativeUI, - od as CraftLink, - rd as ImageEditor, - nd as ImageTransform, - id as create + Uu as CraftEntries, + nd as CraftImageInsertUI, + td as CraftImageTextAlternativeUI, + id as CraftLink, + od as ImageEditor, + rd as ImageTransform, + ad as create }; diff --git a/src/web/assets/ckeditor/src/link/linkediting.js b/src/web/assets/ckeditor/src/link/linkediting.js index 8a8d82d6..bfdb0148 100644 --- a/src/web/assets/ckeditor/src/link/linkediting.js +++ b/src/web/assets/ckeditor/src/link/linkediting.js @@ -5,6 +5,7 @@ */ import {findAttributeRange, Plugin} from 'ckeditor5'; +import {resolveAdvancedFieldAttributeValue} from './linkutils.js'; /** * These imports aren't ideal but are necessary for now because the main @@ -115,16 +116,17 @@ export default class CraftLinkEditing extends Plugin { const firstPosition = selection.getFirstPosition(); this.conversionData.forEach((item) => { + const value = resolveAdvancedFieldAttributeValue( + item, + extraAttributeValues[item.model], + ); + if (selection.isCollapsed) { const node = firstPosition.textNode || firstPosition.nodeBefore; - if (extraAttributeValues[item.model]) { + if (value !== undefined) { writer.setAttribute( item.model, - // for bool type options, if the value is set to true, set the attribute with empty value - // see https://github.com/craftcms/ckeditor/issues/551 for more info - item.type == 'bool' && item.value == true - ? '' - : extraAttributeValues[item.model], + value, writer.createRangeOn(node), ); } else { @@ -139,16 +141,8 @@ export default class CraftLinkEditing extends Plugin { ); for (const range of ranges) { - if (extraAttributeValues[item.model]) { - writer.setAttribute( - item.model, - // for bool type options, if the value is set to true, set the attribute with empty value - // see https://github.com/craftcms/ckeditor/issues/606 for more info - item.type == 'bool' && item.value == true - ? '' - : extraAttributeValues[item.model], - range, - ); + if (value !== undefined) { + writer.setAttribute(item.model, value, range); } else { writer.removeAttribute(item.model, range); } diff --git a/src/web/assets/ckeditor/src/link/linkelementview.js b/src/web/assets/ckeditor/src/link/linkelementview.js index d13b6c1c..0e57eb38 100644 --- a/src/web/assets/ckeditor/src/link/linkelementview.js +++ b/src/web/assets/ckeditor/src/link/linkelementview.js @@ -66,8 +66,11 @@ export default class CraftLinkElementView extends View { this.children[0].classList.contains('add') || ev.target.classList.contains('ck-button__label') ) { + // capture the displayed text before hiding the UI, which resets the form fields + const displayText = + _linkUI.formView.displayedTextInputView.fieldView.element.value; _linkUI._hideUI(false); - linkUi._showElementSelectorModal(linkOption); + linkUi._showElementSelectorModal(linkOption, displayText); } }); diff --git a/src/web/assets/ckeditor/src/link/linkui.js b/src/web/assets/ckeditor/src/link/linkui.js index 0fde55cc..1a54d885 100644 --- a/src/web/assets/ckeditor/src/link/linkui.js +++ b/src/web/assets/ckeditor/src/link/linkui.js @@ -22,6 +22,7 @@ import { import CraftLinkElementView from './linkelementview.js'; import CraftLinkSitesView from './linksitesview.js'; import CraftLinkAdvancedView from './linkadvancedview.js'; +import {resolveAdvancedFieldAttributeValue} from './linkutils.js'; export default class CraftLinkUI extends Plugin { static get requires() { @@ -447,7 +448,7 @@ export default class CraftLinkUI extends Plugin { /** * Show element selector modal for given element type (link option). */ - _showElementSelectorModal(linkOption) { + _showElementSelectorModal(linkOption, displayText) { const editor = this.editor; const model = editor.model; const selection = model.document.selection; @@ -514,25 +515,23 @@ export default class CraftLinkUI extends Plugin { let attributes = {linkHref: url}; this.conversionData.forEach((item) => { - if (values[item.model]) { - // for bool type options, if the value is set to true, set the attribute with empty value - // see https://github.com/craftcms/ckeditor/issues/551 for more info - attributes[item.model] = - item.type == 'bool' && item.value == true - ? '' - : values[item.model]; + const value = resolveAdvancedFieldAttributeValue( + item, + values[item.model], + ); + if (value !== undefined) { + attributes[item.model] = value; } }); - writer.insertText( - element.label, - attributes, - selection.getFirstPosition(), - ); + const text = displayText || element.label; + + writer.insertText(text, attributes, selection.getFirstPosition()); + if (range instanceof ModelRange) { try { const newRange = range.clone(); - newRange.end.path[1] += element.label.length; + newRange.end.path[1] += text.length; writer.setSelection(newRange); } catch (e) {} } diff --git a/src/web/assets/ckeditor/src/link/linkutils.js b/src/web/assets/ckeditor/src/link/linkutils.js new file mode 100644 index 00000000..732d08d2 --- /dev/null +++ b/src/web/assets/ckeditor/src/link/linkutils.js @@ -0,0 +1,27 @@ +/** + * @link https://craftcms.com/ + * @copyright Copyright (c) Pixel & Tonic, Inc. + * @license GPL-3.0-or-later + */ + +/** + * Resolve the raw value from an advanced link field into the value that + * should be stored as the corresponding model attribute. + * + * For bool type fields, a truthy value collapses to an empty string + * attribute value; see https://github.com/craftcms/ckeditor/issues/551 and + * https://github.com/craftcms/ckeditor/issues/606 + * + * Returns `undefined` when there's no value, so the attribute should be + * removed/omitted rather than set. + * @param {Object} item + * @param {*} rawValue + * @return {string|undefined} + */ +export function resolveAdvancedFieldAttributeValue(item, rawValue) { + if (!rawValue) { + return undefined; + } + + return item.type === 'bool' && item.value == true ? '' : rawValue; +}